/* =========================================================
   Design tokens and page
   ========================================================= */
.products-page {
    --products-ink: #172033;
    --products-muted: #748096;
    --products-border: #e6eaf1;
    --products-primary: #5145cd;
    --products-primary-dark: #4035b3;
    --products-radius: 16px;

    min-height: 75vh;
    padding: 32px 18px 70px;
    color: var(--products-ink);
    background:
        radial-gradient(ellipse at 8% 0%, rgba(99,102,241,.055), transparent 28%),
        #f7f8fc;
}

.products-container {
    width: 100%;
    max-width: 1480px;
    margin-inline: auto;
}

/* Header */
.products-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 27px;
}

.products-header-content { min-width: 0; }

.products-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 9px;
    color: var(--products-primary);
    font-size: 12px;
    font-weight: 800;
}

.products-eyebrow::before {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--products-primary);
    content: "";
}

.products-header h1 {
    margin: 0 0 8px;
    color: #151b2b;
    font-size: clamp(27px, 3vw, 38px);
    font-weight: 900;
    line-height: 1.35;
    letter-spacing: -.6px;
}

.products-header p {
    margin: 0;
    color: var(--products-muted);
    font-size: 13px;
    line-height: 1.9;
}

.products-count {
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-width: 108px;
    min-height: 83px;
    padding: 12px 16px;
    border: 1px solid var(--products-border);
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 6px 24px rgba(24,35,60,.035);
}

.products-count-number {
    color: var(--products-primary);
    font-size: 24px;
    font-weight: 900;
    line-height: 1.2;
}

.products-count-label {
    color: var(--products-muted);
    font-size: 10px;
    font-weight: 700;
}

/* =========================================================
   Main two-column layout
   RTL means the first column is on the right.
   ========================================================= */
.products-layout {
    display: grid;
    grid-template-columns: 270px minmax(0, 1fr);
    align-items: start;
    gap: 25px;
}

.products-sidebar {
    min-width: 0;
    align-self: start;
    position: sticky;
    top: 20px;
}

.products-main {
    min-width: 0;
}

/* =========================================================
   Sidebar filters
   ========================================================= */
.filter-panel {
    overflow: hidden;
    border: 1px solid var(--products-border);
    border-radius: 17px;
    background: #fff;
    box-shadow: 0 8px 28px rgba(24,35,60,.045);
}

.filter-panel-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 18px 16px;
    border-bottom: 1px solid #edf0f5;
    background: linear-gradient(135deg, #fff, #f8f8ff);
}

.filter-heading-title {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.filter-heading-icon {
    display: flex;
    flex: 0 0 39px;
    align-items: center;
    justify-content: center;
    width: 39px;
    height: 39px;
    border: 1px solid #e3e1ff;
    border-radius: 12px;
    background: #f1f0ff;
    color: var(--products-primary);
}

.filter-heading-icon svg {
    width: 23px;
    height: 23px;
}

.filter-heading-title h2 {
    margin: 0 0 4px;
    color: var(--products-ink);
    font-size: 13px;
    font-weight: 900;
}

.filter-heading-title p {
    margin: 0;
    color: var(--products-muted);
    font-size: 10px;
    line-height: 1.6;
}

.mobile-filter-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 7px 9px;
    border: 1px solid var(--products-border);
    border-radius: 9px;
    background: #fff;
    color: var(--products-ink);
    font-family: inherit;
    font-size: 10px;
    font-weight: 800;
    cursor: pointer;
}

.filter-toggle-arrow { transition: transform .2s ease; }

.mobile-filter-toggle[aria-expanded="false"] .filter-toggle-arrow {
    transform: rotate(180deg);
}

.products-toolbar { margin: 0; }

.filter-main { padding: 18px 16px 15px; }

.filter-main.is-collapsed { display: none; }

.filter-field {
    display: flex;
    flex-direction: column;
    min-width: 0;
    margin-bottom: 17px;
}

.filter-field label {
    display: block;
    margin-bottom: 8px;
    color: #384359;
    font-size: 11px;
    font-weight: 800;
}

.filter-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    height: 44px;
    min-width: 0;
    border: 1px solid #e1e6ef;
    border-radius: 10px;
    background: #fafbfe;
    transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}

.filter-input-wrap:focus-within {
    border-color: #a6a0f5;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(81,69,205,.08);
}

.field-icon {
    flex: 0 0 37px;
    width: 19px;
    height: 19px;
    margin-inline: 9px 0;
    color: #858ca2;
    pointer-events: none;
}

.filter-input-wrap input,
.filter-input-wrap select {
    width: 100%;
    height: 100%;
    min-width: 0;
    padding: 0 10px;
    border: 0;
    outline: 0;
    background: transparent;
    color: #252e42;
    font-family: inherit;
    font-size: 11px;
}

.filter-input-wrap input::placeholder { color: #a0a7b6; }

.search-input-wrap input { padding-right: 0; }

.input-clear {
    flex: 0 0 27px;
    width: 27px;
    height: 27px;
    margin-left: 6px;
    border: 0;
    border-radius: 7px;
    background: #eeedff;
    color: var(--products-primary);
    font-size: 18px;
    cursor: pointer;
}

.filter-input-wrap select {
    padding-left: 27px;
    padding-right: 0;
    appearance: none;
    cursor: pointer;
}

.select-arrow {
    position: absolute;
    left: 10px;
    color: #8992a5;
    font-size: 14px;
    pointer-events: none;
}

/* Price range */
.price-filter-section {
    padding-top: 17px;
    border-top: 1px solid #edf0f5;
}

.price-filter-heading { margin-bottom: 14px; }

.price-filter-heading h3 {
    margin: 0 0 5px;
    color: var(--products-ink);
    font-size: 12px;
    font-weight: 900;
}

.price-filter-heading p {
    margin: 0;
    color: var(--products-muted);
    font-size: 10px;
    line-height: 1.8;
}

.price-fields {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 9px;
}

.price-fields .filter-field { margin-bottom: 12px; }

.price-fields .filter-field label { font-size: 10px; }

.price-input-wrap { background: #fff; }

.price-input-wrap input {
    padding-right: 9px;
    padding-left: 3px;
    direction: rtl;
    font-size: 11px;
}

.currency-label {
    flex: 0 0 auto;
    margin-left: 8px;
    color: #838ba0;
    font-size: 9px;
    font-weight: 800;
}

.active-filter-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin: 0 0 12px;
    padding: 6px 8px;
    border: 1px solid #dfdcff;
    border-radius: 8px;
    background: #f2f0ff;
    color: var(--products-primary);
    font-size: 9px;
    font-weight: 800;
}

/* Filter buttons */
.filter-actions {
    display: flex;
    flex-direction: column;
    gap: 9px;
    margin-top: 3px;
}

.apply-filters-btn,
.reset-filters-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 43px;
    padding: 9px 12px;
    border-radius: 10px;
    font-family: inherit;
    font-size: 11px;
    font-weight: 800;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}

.apply-filters-btn {
    border: 1px solid var(--products-primary);
    background: var(--products-primary);
    color: #fff;
}

.apply-filters-btn svg {
    width: 17px;
    height: 17px;
}

.apply-filters-btn:hover {
    transform: translateY(-1px);
    border-color: var(--products-primary-dark);
    background: var(--products-primary-dark);
}

.reset-filters-btn {
    border: 1px solid #e1e6ef;
    background: #fff;
    color: #536078;
}

.reset-filters-btn:hover {
    border-color: #f2c6c6;
    background: #fff7f7;
    color: #c24141;
}

.filter-footer {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-top: 17px;
    padding-top: 13px;
    border-top: 1px dashed #e8ebf2;
    color: #858da0;
    font-size: 9px;
    line-height: 1.7;
}

.filter-footer-dot,
.results-status-dot {
    width: 7px;
    height: 7px;
    flex: 0 0 7px;
    border-radius: 50%;
    background: #22b573;
}

/* =========================================================
   Results bar
   ========================================================= */
.products-result-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 17px;
    padding: 15px 17px;
    border: 1px solid var(--products-border);
    border-radius: 14px;
    background: #fff;
}

.results-description h2 {
    margin: 0 0 5px;
    color: var(--products-ink);
    font-size: 17px;
    font-weight: 900;
}

.results-description p {
    margin: 0;
    color: var(--products-muted);
    font-size: 10px;
    line-height: 1.8;
}

.results-description strong {
    color: #39445a;
    font-weight: 900;
}

.results-status {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 7px;
    padding: 8px 10px;
    border: 1px solid var(--products-border);
    border-radius: 9px;
    background: #fff;
    color: #68748b;
    font-size: 10px;
    font-weight: 700;
}

/* =========================================================
   Product cards
   ========================================================= */
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    gap: 16px;
}

.product-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    border: 1px solid #e6eaf1;
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 5px 20px rgba(24,35,60,.035);
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.product-card:hover {
    transform: translateY(-4px);
    border-color: #d7d4ff;
    box-shadow: 0 16px 35px rgba(24,35,60,.09);
}

.product-image {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 225px;
    padding: 14px;
    overflow: hidden;
    background: #f6f7fb;
    cursor: pointer;
    isolation: isolate;
}

.product-image::before {
    position: absolute;
    inset: 11px;
    z-index: -1;
    border: 1px solid #eceef4;
    border-radius: 12px;
    background: #fff;
    content: "";
}

.product-image:focus-visible {
    outline: 3px solid #8a82ed;
    outline-offset: -3px;
}

.product-image-real {
    display: block;
    width: 100%;
    height: 100%;
    padding: 17px;
    box-sizing: border-box;
    object-fit: contain;
    filter: drop-shadow(0 8px 12px rgba(20,30,50,.08));
    transition: transform .3s ease;
}

.product-card:hover .product-image-real { transform: scale(1.045); }

.product-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 108px;
    height: 108px;
    border: 1px solid #eceef4;
    border-radius: 23px;
    background: linear-gradient(145deg,#fff,#f4f5fb);
    box-shadow: 0 10px 25px rgba(20,30,50,.06);
    font-size: 54px;
    transition: transform .3s ease;
}

.product-card:hover .product-image-placeholder { transform: translateY(-3px); }

.product-category-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 3;
    max-width: 65%;
    overflow: hidden;
    padding: 6px 8px;
    border: 1px solid rgba(230,232,244,.8);
    border-radius: 8px;
    background: rgba(255,255,255,.94);
    color: #5a50c4;
    font-size: 9px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.product-favorite {
    position: absolute;
    top: 11px;
    left: 11px;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    padding: 0;
    border: 1px solid #e6e8ef;
    border-radius: 10px;
    background: rgba(255,255,255,.96);
    color: #6c7485;
    font-family: inherit;
    font-size: 21px;
    cursor: pointer;
    transition: transform .2s ease, background .2s ease, color .2s ease;
}

.product-favorite:hover { transform: scale(1.05); color: #e54861; }
.product-favorite.active { border-color: #e54861; background: #e54861; color: #fff; }
.product-favorite.active:hover { background: #ce3450; }
.product-favorite:disabled { cursor: wait; opacity: .65; }

.product-image-overlay {
    position: absolute;
    right: 50%;
    bottom: 13px;
    padding: 8px 12px;
    transform: translate(50%, 8px);
    border-radius: 9px;
    background: rgba(22,28,44,.9);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
}

.product-card:hover .product-image-overlay {
    transform: translate(50%, 0);
    opacity: 1;
}

.product-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-height: 168px;
    padding: 14px;
}

.product-category {
    display: block;
    margin-bottom: 6px;
    color: #766ad3;
    font-size: 10px;
    font-weight: 800;
}

.product-content h3 {
    display: -webkit-box;
    min-height: 23px;
    margin: 0 0 10px;
    overflow: hidden;
    color: #1b2232;
    font-size: 14px;
    font-weight: 900;
    line-height: 1.55;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.product-stock-status {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 10px;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.7;
}

.stock-status-dot {
    width: 7px;
    height: 7px;
    flex: 0 0 7px;
    border-radius: 50%;
}

.product-stock-status.in-stock { color: #16834c; }
.product-stock-status.in-stock .stock-status-dot {
    background: #22b573;
    box-shadow: 0 0 0 3px #e0f7eb;
}

.product-stock-status.out-of-stock { color: #c64242; }
.product-stock-status.out-of-stock .stock-status-dot {
    background: #e65050;
    box-shadow: 0 0 0 3px #fee7e7;
}

.stock-quantity { color: #828a9b; font-weight: 500; }

.product-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 9px;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid #eff1f5;
}

.product-price {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
    min-width: 0;
}

.product-price-current {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 4px;
}

.product-price strong {
    color: #192033;
    font-size: 16px;
    font-weight: 900;
    letter-spacing: -.3px;
}

.product-price-current span {
    color: #8790a2;
    font-size: 10px;
    font-weight: 800;
}

.product-price del {
    color: #9ba2b0;
    font-size: 10px;
    font-weight: 600;
}

.add-cart-btn {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-width: 94px;
    min-height: 37px;
    padding: 0 9px;
    border: 0;
    border-radius: 9px;
    background: #20283a;
    color: #fff;
    font-family: inherit;
    font-size: 10px;
    font-weight: 800;
    white-space: nowrap;
    cursor: pointer;
    box-shadow: 0 5px 12px rgba(32,40,58,.1);
    transition: background .2s ease, transform .2s ease;
}

.add-cart-btn:hover { transform: translateY(-1px); background: var(--products-primary); }

.add-cart-btn:disabled,
.add-cart-btn:disabled:hover {
    transform: none;
    background: #e9ebf0;
    color: #9ba2b0;
    box-shadow: none;
    cursor: not-allowed;
}

/* Empty state */
.products-empty {
    grid-column: 1 / -1;
    padding: 65px 20px;
    border: 1px dashed #dfe3ed;
    border-radius: 17px;
    background: rgba(255,255,255,.8);
    text-align: center;
}

.products-empty-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    margin: 0 auto 17px;
    border-radius: 21px;
    background: #efeeff;
    color: var(--products-primary);
    font-size: 34px;
}

.products-empty h3 {
    margin: 0 0 9px;
    color: var(--products-ink);
    font-size: 19px;
    font-weight: 900;
}

.products-empty p {
    margin: 0 0 20px;
    color: var(--products-muted);
    font-size: 12px;
    line-height: 1.9;
}

.empty-reset-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 41px;
    padding: 0 17px;
    border-radius: 10px;
    background: var(--products-primary);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    text-decoration: none;
}

/* =========================================================
   Loading and pagination
   ========================================================= */
.products-load-more {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 13px;
    padding: 30px 12px 8px;
    color: #778197;
    font-size: 11px;
}

.products-load-more[hidden],
.products-load-spinner[hidden],
.products-load-button[hidden] { display: none !important; }

.products-load-spinner { display: flex; align-items: center; gap: 10px; }

.products-spinner {
    width: 19px;
    height: 19px;
    border: 2px solid #e5e7eb;
    border-top-color: var(--products-primary);
    border-radius: 50%;
    animation: productsSpin .7s linear infinite;
}

@keyframes productsSpin { to { transform: rotate(360deg); } }

.products-load-button {
    min-height: 40px;
    padding: 0 18px;
    border: 1px solid var(--products-border);
    border-radius: 10px;
    background: #fff;
    color: #4a5369;
    font-family: inherit;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
}

.products-load-button:hover { border-color: #c8c3ff; color: var(--products-primary); }
.products-load-button:disabled { opacity: .6; cursor: wait; }

.products-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-top: 35px;
}

.products-pagination a,
.products-pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 37px;
    height: 37px;
    border: 1px solid #e3e7ef;
    border-radius: 9px;
    background: #fff;
    color: #525d73;
    font-size: 11px;
    font-weight: 800;
    text-decoration: none;
    transition: .2s ease;
}

.products-pagination a:hover { border-color: #c9c4ff; color: var(--products-primary); }
.products-pagination span.active { border-color: var(--products-primary); background: var(--products-primary); color: #fff; }
.products-pagination .pagination-arrow { font-size: 15px; }
.products-pagination .pagination-dots { width: auto; border: 0; background: transparent; color: #9aa1af; }
.products-pagination .pagination-arrow.disabled { background: #f7f8fa; color: #c2c8d3; }

/* Toast */
.products-toast {
    position: fixed;
    top: 85px;
    right: 22px;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 12px;
    width: min(390px, calc(100vw - 32px));
    padding: 14px;
    transform: translateX(25px);
    border: 1px solid #e5e8ef;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 16px 45px rgba(15,23,42,.15);
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
}

.products-toast.show { transform: translateX(0); opacity: 1; visibility: visible; }

.products-toast-icon {
    display: flex;
    flex: 0 0 35px;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: #def7e8;
    color: #16834c;
    font-weight: 900;
}

.products-toast.error .products-toast-icon { background: #fee5e5; color: #c64242; }
.products-toast-content { display: flex; flex: 1; flex-direction: column; gap: 4px; }
.products-toast-content strong { color: #1b2232; font-size: 12px; font-weight: 900; }
.products-toast-content span { color: #778197; font-size: 11px; line-height: 1.7; }
.products-toast-close { width: 28px; height: 28px; border: 0; background: transparent; color: #8d95a5; font-family: inherit; font-size: 21px; cursor: pointer; }

/* =========================================================
   Responsive layouts
   ========================================================= */
@media (min-width: 761px) {
    .filter-main.is-collapsed { display: block; }
}

@media (max-width: 1200px) {
    .products-layout {
        grid-template-columns: 245px minmax(0, 1fr);
        gap: 18px;
    }

    .products-grid { gap: 12px; }

    .product-image { height: 205px; }

    .product-content { padding: 12px; }

    .product-bottom {
        align-items: flex-start;
        flex-direction: column;
    }

    .product-price { align-items: flex-start; }

    .add-cart-btn { width: 100%; }
}

@media (max-width: 960px) {
    .products-layout { grid-template-columns: 225px minmax(0, 1fr); gap: 14px; }
    .products-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .product-image { height: 220px; }
    .product-bottom { align-items: center; flex-direction: row; }
    .add-cart-btn { width: auto; }
}

@media (max-width: 760px) {
    .products-page { padding: 25px 13px 50px; }

    .products-header { gap: 12px; margin-bottom: 20px; }
    .products-header h1 { font-size: 28px; }
    .products-header p { font-size: 11px; }
    .products-eyebrow { margin-bottom: 7px; font-size: 10px; }

    .products-count {
        min-width: 73px;
        min-height: 65px;
        padding: 7px;
        border-radius: 12px;
    }

    .products-count-number { font-size: 20px; }
    .products-count-label { font-size: 9px; }

    .products-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 18px;
    }

    .products-sidebar {
        position: static;
        width: 100%;
    }

    .filter-panel { border-radius: 14px; }

    .filter-panel-heading { padding: 13px; }

    .filter-heading-title { gap: 9px; }
    .filter-heading-icon { flex-basis: 36px; width: 36px; height: 36px; }
    .filter-heading-icon svg { width: 21px; height: 21px; }

    .filter-heading-title h2 { font-size: 12px; }
    .filter-heading-title p { font-size: 9px; }

    .mobile-filter-toggle { display: inline-flex; }

    .filter-main { padding: 15px 13px 13px; }

    .filter-main.is-collapsed { display: none; }

    .filter-field { margin-bottom: 14px; }
    .filter-field label { margin-bottom: 7px; font-size: 10px; }
    .filter-input-wrap { height: 44px; }

    .filter-input-wrap input,
    .filter-input-wrap select { font-size: 11px; }

    .price-filter-section { padding-top: 14px; }
    .price-filter-heading h3 { font-size: 11px; }
    .price-filter-heading p { font-size: 9px; }

    .price-fields { gap: 9px; }
    .price-fields .filter-field label { font-size: 9px; }
    .price-input-wrap { height: 42px; }

    .filter-actions { gap: 8px; }
    .apply-filters-btn, .reset-filters-btn { min-height: 42px; }

    .filter-footer { margin-top: 14px; padding-top: 11px; font-size: 9px; }

    .products-result-bar {
        margin-bottom: 12px;
        padding: 12px;
    }

    .results-description h2 { font-size: 16px; }
    .results-description p { font-size: 9px; }

    .results-status {
        gap: 5px;
        padding: 7px 8px;
        font-size: 9px;
    }

    .products-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }

    .product-image { height: 190px; padding: 10px; }
    .product-image::before { inset: 8px; }
    .product-image-real { padding: 12px; }

    .product-image-placeholder {
        width: 88px;
        height: 88px;
        border-radius: 19px;
        font-size: 45px;
    }

    .product-category-badge { top: 9px; right: 9px; padding: 5px 7px; font-size: 8px; }
    .product-favorite { top: 8px; left: 8px; width: 32px; height: 32px; font-size: 19px; }

    .product-content { min-height: 155px; padding: 10px; }
    .product-category { font-size: 9px; }
    .product-content h3 { font-size: 12px; }
    .product-stock-status { gap: 5px; font-size: 9px; }

    .product-bottom {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
        padding-top: 10px;
    }

    .product-price strong { font-size: 15px; }
    .add-cart-btn { width: 100%; min-height: 36px; font-size: 10px; }
    .product-image-overlay { display: none; }

    .products-pagination { margin-top: 26px; gap: 5px; }
    .products-pagination a, .products-pagination span { width: 33px; height: 33px; }

    .products-toast { top: 72px; right: 12px; width: auto; }
}

@media (max-width: 380px) {
    .products-page { padding-inline: 9px; }
    .products-header h1 { font-size: 24px; }
    .products-header p { font-size: 10px; }
    .products-count { min-width: 65px; }
    .products-grid { gap: 8px; }
    .product-image { height: 160px; }
    .product-content { padding: 9px; }
    .product-price strong { font-size: 14px; }
    .results-status { gap: 4px; padding-inline: 6px; }
    .mobile-filter-toggle { padding-inline: 7px; }
}

@media (prefers-reduced-motion: reduce) {
    .products-page *,
    .products-page *::before,
    .products-page *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}