/* ==========================================================================
   Product Listing — Phase PLP-1 / runtime & state foundation
   Frontend-only. No pricing, inventory or cart authority lives here.
   ========================================================================== */

.plp-page .product-card--out-of-stock { opacity: .72; }
.plp-page .product-card--out-of-stock .card-media { opacity: .62; }
.plp-page .product-card--out-of-stock .card-media img { filter: grayscale(72%); }

body.plp-filter-open,
body.plp-variant-open { overflow: hidden; }

.plp-feedback {
    position: fixed;
    left: 50%;
    top: max(16px, env(safe-area-inset-top, 0px));
    z-index: 210;
    width: min(520px, calc(100vw - 28px));
    padding: 11px 14px;
    border: 1px solid rgba(201,169,97,.30);
    border-radius: var(--radius-md);
    background: #17181d;
    box-shadow: 0 16px 42px rgba(0,0,0,.38);
    color: var(--text);
    font-family: var(--font-fa);
    font-size: .8rem;
    line-height: 1.75;
    text-align: right;
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, -8px);
    transition: opacity .2s ease, transform .2s ease;
}

.plp-feedback.is-visible {
    opacity: 1;
    transform: translate(-50%, 0);
}

.plp-feedback.is-error { border-color: rgba(239,64,86,.42); }
.plp-feedback.is-success { border-color: rgba(107,143,113,.42); }

@media (prefers-reduced-motion: reduce) {
    .plp-feedback { transition: none; }
}

.plp-page .filter-toggle-btn,
.plp-page .filter-sidebar-close { min-height: var(--touch-min); }

.plp-page .filter-sidebar-close {
    width: var(--touch-min);
    height: var(--touch-min);
}

.plp-page .quick-add-btn[aria-busy="true"],
.plp-page .wishlist-btn[aria-busy="true"] {
    cursor: wait;
    opacity: .56;
    pointer-events: none;
}

@media (min-width: 901px) {
    body.plp-filter-open { overflow: auto; }
}

@media (prefers-reduced-motion: reduce) {
    .plp-page .filter-sidebar,
    .plp-page .filter-sidebar-overlay { transition: none !important; }
}

/* ==========================================================================
   Phase PLP-1.1 — Mobile catalogue geometry
   Scoped to the product-list page; desktop/shared product cards stay untouched.
   ========================================================================== */
@media (max-width: 760px) {
    .plp-page .products-layout .product-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        overflow: visible;
        padding: 0;
        scroll-snap-type: none;
        scroll-padding-inline: 0;
    }

    .plp-page .products-layout .product-grid .product-card {
        width: auto;
        min-width: 0;
        max-width: none;
        flex: none;
        scroll-snap-align: none;
    }

    .plp-page .products-layout .product-grid .empty-state {
        grid-column: 1 / -1;
        width: 100%;
        max-width: none;
    }

    .plp-page .product-card .card-media {
        width: 100%;
        aspect-ratio: 1 / 1;
    }
}

@media (max-width: 390px) {
    .plp-page .products-layout .product-grid {
        gap: 8px;
    }

    .plp-page .product-card .card-body {
        padding-inline: 9px;
    }
}

/* ==========================================================================
   Phase PLP-2A — Mobile product-card polish
   PLP-only presentation. Desktop and shared catalogue cards remain untouched.
   ========================================================================== */
@media (max-width: 760px) {
    .plp-page .product-card {
        display: flex;
        height: 100%;
        min-width: 0;
        flex-direction: column;
        border-color: rgba(255,255,255,.07);
        border-radius: 12px;
        background: #17181c;
        box-shadow: none;
        transform: none;
    }

    .plp-page .product-card:hover {
        border-color: rgba(255,255,255,.07);
        box-shadow: none;
        transform: none;
    }

    .plp-page .product-card:hover .card-media img { transform: none; }

    .plp-page .card-media-link {
        display: block;
        min-width: 0;
    }

    .plp-page .product-card .card-media { border-radius: 11px 11px 0 0; }
    .plp-page .product-card .card-media::after { display: none; }

    .plp-page .wishlist-btn {
        top: 5px;
        inset-inline-end: 5px;
        width: 44px;
        height: 44px;
        border: 1px solid rgba(255,255,255,.07);
        background: rgba(12,13,16,.72);
        color: var(--text);
        font-size: .94rem;
        backdrop-filter: none;
    }

    .plp-page .wishlist-btn.is-active {
        color: var(--gold-light);
        border-color: rgba(201,169,97,.24);
        background: rgba(12,13,16,.84);
    }

    .plp-page .ribbon {
        top: 9px;
        inset-inline-start: 8px;
        max-width: calc(100% - 62px);
        padding: 3px 7px;
        overflow: hidden;
        border-radius: 7px;
        font-size: .58rem;
        line-height: 1.45;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .plp-page .color-swatches {
        inset-inline-end: 8px;
        bottom: 7px;
        gap: 3px;
    }

    .plp-page .swatch {
        width: 10px;
        height: 10px;
        border-width: 1px;
    }

    .plp-page .product-card .card-body {
        display: flex;
        min-width: 0;
        flex: 1 1 auto;
        flex-direction: column;
        gap: 5px;
        padding: 9px 9px 10px;
    }

    .plp-page .card-title-link {
        display: block;
        min-width: 0;
    }

    .plp-page .product-card .brand-name {
        overflow: hidden;
        margin: 0 0 2px;
        color: var(--gold-dim);
        font-family: var(--font-fa);
        font-size: .59rem;
        font-weight: 650;
        letter-spacing: 0;
        line-height: 1.55;
        text-overflow: ellipsis;
        text-transform: none;
        white-space: nowrap;
    }

    .plp-page .product-card .card-body h3 {
        display: -webkit-box;
        min-height: 2.8em;
        margin: 0;
        overflow: hidden;
        color: var(--text);
        font-family: var(--font-fa);
        font-size: .76rem;
        font-weight: 700;
        line-height: 1.4;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }

    .plp-page .card-meta {
        display: grid;
        min-width: 0;
        gap: 2px;
        margin: 0;
    }

    .plp-page .rating,
    .plp-page .fast-shipping {
        display: inline-flex;
        min-width: 0;
        max-width: 100%;
        align-items: center;
        gap: 4px;
        overflow: hidden;
        color: var(--text-muted);
        font-family: var(--font-fa);
        font-size: .59rem;
        line-height: 1.55;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .plp-page .rating i,
    .plp-page .fast-shipping i {
        flex: 0 0 auto;
        font-size: .62rem;
    }

    .plp-page .rating i { color: var(--gold); }
    .plp-page .fast-shipping i { color: var(--gold-dim); }

    .plp-page .countdown {
        width: fit-content;
        max-width: 100%;
        margin: 1px 0 0;
        overflow: hidden;
        color: #d7b369;
        font-family: var(--font-fa);
        font-size: .59rem;
        line-height: 1.55;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .plp-page .stock-bar { margin: 1px 0 0; }

    .plp-page .stock-track {
        height: 3px;
        margin-bottom: 3px;
        background: rgba(255,255,255,.055);
    }

    .plp-page .stock-fill { background: #ef4056; }

    .plp-page .stock-label {
        display: block;
        overflow: hidden;
        color: #dd8793;
        font-family: var(--font-fa);
        font-size: .56rem;
        line-height: 1.55;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .plp-page .card-footer {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 44px;
        align-items: end;
        gap: 6px;
        min-width: 0;
        margin-top: auto;
        padding-top: 3px;
    }

    .plp-page .price {
        display: flex;
        min-width: 0;
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
        margin: 0;
        font-family: var(--font-fa);
        font-size: .78rem;
        font-variant-numeric: tabular-nums;
        line-height: 1.5;
    }

    .plp-page .discount-badge {
        align-self: flex-start;
        min-width: 30px;
        margin: 0;
        padding: 2px 6px;
        border-radius: 7px;
        background: #ef4056;
        color: #fff;
        font-family: var(--font-fa);
        font-size: .60rem;
        font-weight: 800;
        line-height: 1.5;
        text-align: center;
    }

    .plp-page .price-stack {
        display: grid;
        min-width: 0;
        gap: 1px;
    }

    .plp-page .price-stack .old-price,
    .plp-page .old-price {
        overflow: hidden;
        color: #8d8a83;
        font-family: var(--font-fa);
        font-size: .61rem;
        font-weight: 500;
        line-height: 1.45;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .plp-page .price-stack .new-price,
    .plp-page .new-price {
        overflow: hidden;
        max-width: 100%;
        color: var(--gold-light);
        font-family: var(--font-fa);
        font-size: .76rem;
        font-weight: 800;
        line-height: 1.55;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .plp-page .quick-add-btn {
        width: 44px;
        height: 44px;
        border-color: rgba(201,169,97,.16);
        border-radius: 11px;
        background: rgba(201,169,97,.055);
        color: var(--gold-light);
        font-size: 1rem;
    }

    .plp-page .quick-add-btn:disabled {
        border-color: rgba(255,255,255,.06);
        background: rgba(255,255,255,.025);
        color: var(--text-muted);
        opacity: .58;
    }

    .plp-page .wishlist-btn:focus-visible,
    .plp-page .quick-add-btn:focus-visible,
    .plp-page .card-media-link:focus-visible,
    .plp-page .card-title-link:focus-visible {
        outline: 2px solid rgba(201,169,97,.72);
        outline-offset: 2px;
    }
}

@media (max-width: 390px) {
    .plp-page .product-card .card-body {
        gap: 4px;
        padding: 8px;
    }

    .plp-page .product-card .card-body h3 { font-size: .72rem; }

    .plp-page .rating,
    .plp-page .fast-shipping,
    .plp-page .countdown { font-size: .56rem; }

    .plp-page .price-stack .new-price,
    .plp-page .new-price { font-size: .72rem; }

    .plp-page .discount-badge {
        min-width: 28px;
        padding-inline: 5px;
        font-size: .57rem;
    }
}

@media (hover: hover) and (pointer: fine) and (max-width: 760px) {
    .plp-page .wishlist-btn:hover {
        border-color: rgba(201,169,97,.24);
        color: var(--gold-light);
    }

    .plp-page .quick-add-btn:hover:not(:disabled) {
        border-color: rgba(201,169,97,.42);
        background: rgba(201,169,97,.09);
    }
}

@media (prefers-reduced-motion: reduce) {
    .plp-page .product-card,
    .plp-page .product-card .card-media img,
    .plp-page .wishlist-btn,
    .plp-page .quick-add-btn { transition: none !important; }
}

/* ==========================================================================
   Phase PLP-2B — Mobile header / sort / filter hierarchy
   PLP-only presentation. Product cards and backend contracts stay untouched.
   ========================================================================== */
@media (max-width: 900px) {
    .plp-page.section--tight {
        padding-top: 30px;
        padding-bottom: 48px;
    }

    .plp-page .breadcrumb-trail {
        max-width: 100%;
        gap: 5px;
        overflow-x: auto;
        margin-bottom: 10px;
        padding-bottom: 2px;
        color: var(--text-muted);
        font-family: var(--font-fa);
        font-size: .66rem;
        line-height: 1.7;
        overscroll-behavior-inline: contain;
        scrollbar-width: none;
        white-space: nowrap;
    }

    .plp-page .breadcrumb-trail::-webkit-scrollbar {
        display: none;
    }

    .plp-page .section-head {
        align-items: flex-start;
        margin-bottom: 14px;
        gap: 8px;
    }

    .plp-page .section-head > div {
        min-width: 0;
        width: 100%;
    }

    .plp-page .eyebrow {
        gap: 6px;
        margin-bottom: 5px;
        font-family: var(--font-fa);
        font-size: .64rem;
        font-weight: 700;
        letter-spacing: 0;
        text-transform: none;
    }

    .plp-page .eyebrow::before {
        width: 5px;
        height: 5px;
    }

    .plp-page .section-head .page-title {
        display: flex;
        min-width: 0;
        align-items: baseline;
        flex-wrap: wrap;
        gap: 4px 8px;
        margin: 0;
        font-size: 1.32rem;
        line-height: 1.55;
        letter-spacing: 0;
    }

    .plp-page .result-count {
        display: inline-flex;
        align-items: center;
        margin: 0;
        color: var(--text-muted);
        font-family: var(--font-fa);
        font-size: .64rem;
        font-weight: 500;
        line-height: 1.6;
        white-space: nowrap;
    }

    .plp-page .sort-tabs {
        display: flex;
        width: 100%;
        gap: 2px;
        overflow-x: auto;
        overflow-y: hidden;
        margin: 0 0 12px;
        padding: 0;
        border-bottom: 1px solid rgba(255,255,255,.07);
        overscroll-behavior-inline: contain;
        scroll-snap-type: x proximity;
        scrollbar-width: none;
    }

    .plp-page .sort-tabs::-webkit-scrollbar {
        display: none;
    }

    .plp-page .sort-tab {
        position: relative;
        flex: 0 0 auto;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 0 9px;
        border-bottom: 2px solid transparent;
        color: var(--text-muted);
        font-family: var(--font-fa);
        font-size: .70rem;
        font-weight: 600;
        line-height: 1.4;
        scroll-snap-align: start;
        white-space: nowrap;
    }

    .plp-page .sort-tab.is-active,
    .plp-page .sort-tab[aria-current="page"] {
        border-color: var(--gold);
        color: var(--gold-light);
        font-weight: 800;
    }

    .plp-page .sort-tab:focus-visible {
        border-radius: 6px 6px 0 0;
        outline: 2px solid rgba(201,169,97,.72);
        outline-offset: -3px;
    }

    .plp-page .filter-toggle-btn {
        width: 100%;
        min-height: 46px;
        justify-content: center;
        gap: 8px;
        margin: 0 0 14px;
        padding: 9px 14px;
        border-color: rgba(201,169,97,.16);
        border-radius: 11px;
        background: rgba(201,169,97,.045);
        color: var(--text);
        font-family: var(--font-fa);
        font-size: .75rem;
        font-weight: 750;
        line-height: 1.5;
    }

    .plp-page .filter-toggle-btn i {
        color: var(--gold);
        font-size: .90rem;
    }

    .plp-page .filter-toggle-btn[aria-expanded="true"] {
        border-color: rgba(201,169,97,.34);
        background: rgba(201,169,97,.075);
        color: var(--gold-light);
    }

    .plp-page .filter-toggle-btn:focus-visible {
        outline: 2px solid rgba(201,169,97,.72);
        outline-offset: 2px;
    }

    .plp-page .products-layout {
        gap: 0;
    }
}

@media (max-width: 390px) {
    .plp-page.section--tight {
        padding-top: 24px;
    }

    .plp-page .breadcrumb-trail {
        font-size: .62rem;
    }

    .plp-page .section-head .page-title {
        font-size: 1.22rem;
    }

    .plp-page .sort-tab {
        padding-inline: 8px;
        font-size: .66rem;
    }

    .plp-page .filter-toggle-btn {
        min-height: 44px;
        margin-bottom: 12px;
        font-size: .71rem;
    }
}

@media (hover: hover) and (pointer: fine) and (max-width: 900px) {
    .plp-page .sort-tab:hover {
        color: var(--text);
    }

    .plp-page .filter-toggle-btn:hover {
        border-color: rgba(201,169,97,.28);
        background: rgba(201,169,97,.065);
        color: var(--gold-light);
    }
}

@media (prefers-reduced-motion: reduce) {
    .plp-page .sort-tabs {
        scroll-behavior: auto;
    }
}

/* ==========================================================================
   Phase PLP-2C — Mobile readability tuning
   Keep the confirmed two-column geometry; increase legibility and hierarchy.
   ========================================================================== */
@media (max-width: 760px) {
    .plp-page .product-card .card-body {
        gap: 6px;
        padding: 10px 10px 11px;
    }

    .plp-page .product-card .brand-name {
        margin-bottom: 2px;
        font-size: .66rem;
        font-weight: 700;
        line-height: 1.6;
    }

    .plp-page .product-card .card-body h3 {
        min-height: 2.9em;
        font-size: .82rem;
        font-weight: 750;
        line-height: 1.45;
    }

    .plp-page .card-meta {
        gap: 3px;
    }

    .plp-page .rating,
    .plp-page .fast-shipping {
        font-size: .66rem;
        line-height: 1.65;
    }

    .plp-page .rating i,
    .plp-page .fast-shipping i {
        font-size: .68rem;
    }

    .plp-page .countdown {
        font-size: .65rem;
        line-height: 1.65;
    }

    .plp-page .stock-label {
        font-size: .62rem;
        line-height: 1.65;
    }

    .plp-page .card-footer {
        gap: 7px;
        padding-top: 5px;
    }

    .plp-page .price {
        gap: 3px;
        font-size: .84rem;
        line-height: 1.55;
    }

    .plp-page .price-stack .old-price,
    .plp-page .old-price {
        font-size: .66rem;
        line-height: 1.5;
    }

    .plp-page .price-stack .new-price,
    .plp-page .new-price {
        font-size: .84rem;
        font-weight: 850;
        line-height: 1.6;
    }

    .plp-page .discount-badge {
        min-width: 32px;
        padding: 3px 6px;
        font-size: .64rem;
        line-height: 1.45;
    }

    .plp-page .ribbon {
        font-size: .62rem;
        line-height: 1.5;
    }

    .plp-page .wishlist-btn,
    .plp-page .quick-add-btn {
        font-size: 1.02rem;
    }
}

/* 360–390 px: keep readable, but avoid turning two-column cards into tall blocks. */
@media (max-width: 390px) {
    .plp-page .product-card .card-body {
        gap: 5px;
        padding: 9px;
    }

    .plp-page .product-card .brand-name {
        font-size: .63rem;
    }

    .plp-page .product-card .card-body h3 {
        min-height: 2.88em;
        font-size: .78rem;
        line-height: 1.44;
    }

    .plp-page .rating,
    .plp-page .fast-shipping,
    .plp-page .countdown {
        font-size: .62rem;
    }

    .plp-page .stock-label {
        font-size: .59rem;
    }

    .plp-page .price-stack .old-price,
    .plp-page .old-price {
        font-size: .63rem;
    }

    .plp-page .price-stack .new-price,
    .plp-page .new-price {
        font-size: .80rem;
    }

    .plp-page .discount-badge {
        min-width: 30px;
        padding-inline: 5px;
        font-size: .61rem;
    }
}

/* ==========================================================================
   Phase PLP-2C.1 — Strong mobile readability pass
   Noticeable legibility increase without changing the confirmed 2-column grid.
   ========================================================================== */
@media (max-width: 760px) {
    .plp-page .product-card .card-body {
        gap: 7px;
        padding: 11px 10px 12px;
    }

    .plp-page .product-card .brand-name {
        margin-bottom: 2px;
        color: #c8a95f;
        font-size: .70rem;
        font-weight: 750;
        line-height: 1.65;
    }

    .plp-page .product-card .card-body h3 {
        min-height: 2.9em;
        color: #f3f1ec;
        font-size: .88rem;
        font-weight: 800;
        line-height: 1.45;
    }

    .plp-page .card-meta {
        gap: 3px;
    }

    .plp-page .rating,
    .plp-page .fast-shipping {
        color: #b8b4ab;
        font-size: .68rem;
        font-weight: 550;
        line-height: 1.7;
    }

    .plp-page .rating i,
    .plp-page .fast-shipping i {
        font-size: .72rem;
    }

    .plp-page .countdown {
        color: #d7b369;
        font-size: .68rem;
        font-weight: 600;
        line-height: 1.7;
    }

    .plp-page .stock-label {
        color: #e28d98;
        font-size: .64rem;
        font-weight: 600;
        line-height: 1.7;
    }

    .plp-page .card-footer {
        gap: 7px;
        padding-top: 6px;
    }

    .plp-page .price-stack .old-price,
    .plp-page .old-price {
        color: #a6a198;
        font-size: .70rem;
        line-height: 1.55;
    }

    .plp-page .price-stack .new-price,
    .plp-page .new-price {
        color: #e2c679;
        font-size: .88rem;
        font-weight: 900;
        line-height: 1.6;
    }

    .plp-page .discount-badge {
        min-width: 33px;
        padding: 3px 7px;
        font-size: .68rem;
        font-weight: 850;
        line-height: 1.45;
    }

    .plp-page .ribbon {
        font-size: .66rem;
        font-weight: 800;
    }

    .plp-page .wishlist-btn,
    .plp-page .quick-add-btn {
        font-size: 1.06rem;
    }
}

/* Narrow phones stay readable but protect the two-column layout. */
@media (max-width: 390px) {
    .plp-page .product-card .card-body {
        gap: 6px;
        padding: 10px 9px 11px;
    }

    .plp-page .product-card .brand-name {
        font-size: .67rem;
    }

    .plp-page .product-card .card-body h3 {
        font-size: .84rem;
    }

    .plp-page .rating,
    .plp-page .fast-shipping,
    .plp-page .countdown {
        font-size: .65rem;
    }

    .plp-page .stock-label {
        font-size: .61rem;
    }

    .plp-page .price-stack .old-price,
    .plp-page .old-price {
        font-size: .67rem;
    }

    .plp-page .price-stack .new-price,
    .plp-page .new-price {
        font-size: .84rem;
    }

    .plp-page .discount-badge {
        min-width: 31px;
        padding-inline: 6px;
        font-size: .65rem;
    }
}

/* ==========================================================================
   Phase PLP-2D — Price / discount / purchase-footer refinement
   One hierarchy for desktop and mobile; no pricing authority is moved client-side.
   ========================================================================== */
.plp-page .card-footer {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 44px;
    align-items: end;
    gap: 10px;
    min-width: 0;
    min-height: 64px;
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid rgba(255,255,255,.055);
}

.plp-page .price {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
        "new new"
        "old badge";
    align-items: center;
    gap: 2px 7px;
    min-width: 0;
    margin: 0;
    font-family: var(--font-fa);
    font-variant-numeric: tabular-nums;
}

.plp-page .price-stack {
    display: contents;
}

.plp-page .price .new-price {
    grid-area: new;
    min-width: 0;
    max-width: none;
    overflow: visible;
    color: var(--gold-light);
    font-family: var(--font-fa);
    font-size: .92rem;
    font-weight: 850;
    line-height: 1.55;
    text-overflow: clip;
    white-space: normal;
}

.plp-page .price > .new-price:only-child {
    grid-area: 1 / 1 / 3 / 3;
    align-self: center;
}

.plp-page .price .old-price {
    grid-area: old;
    min-width: 0;
    overflow: hidden;
    color: #918d84;
    font-family: var(--font-fa);
    font-size: .67rem;
    font-weight: 500;
    line-height: 1.45;
    text-decoration-thickness: 1px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.plp-page .price .discount-badge {
    grid-area: badge;
    justify-self: end;
    min-width: 31px;
    margin: 0;
    padding: 2px 6px;
    border-radius: 7px;
    background: #ef4056;
    color: #fff;
    font-family: var(--font-fa);
    font-size: .64rem;
    font-weight: 850;
    line-height: 1.5;
    text-align: center;
}

.plp-page .quick-add-btn {
    width: 44px;
    height: 44px;
    align-self: end;
    border: 1px solid rgba(201,169,97,.18);
    border-radius: 11px;
    background: rgba(201,169,97,.035);
    box-shadow: none;
    color: var(--gold);
    font-size: 1rem;
}

.plp-page .quick-add-btn:disabled {
    border-color: rgba(255,255,255,.06);
    background: rgba(255,255,255,.018);
    color: #77746d;
    opacity: .68;
}

/* Discount timer becomes a small secondary status, not a competing CTA. */
.plp-page .countdown {
    display: inline-flex;
    width: fit-content;
    max-width: 100%;
    min-height: 24px;
    align-items: center;
    gap: 5px;
    margin: 1px 0 2px;
    padding: 3px 7px;
    overflow: hidden;
    border: 1px solid rgba(201,169,97,.12);
    border-radius: 7px;
    background: rgba(201,169,97,.035);
    color: #c9ad69;
    font-family: var(--font-fa);
    font-size: .65rem;
    font-weight: 600;
    line-height: 1.45;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.plp-page .countdown i {
    flex: 0 0 auto;
    color: var(--gold-dim);
    font-size: .67rem;
    opacity: .9;
}

.plp-page .stock-track {
    background: rgba(255,255,255,.055);
}

.plp-page .stock-fill {
    background: rgba(239,64,86,.76);
}

.plp-page .stock-label {
    color: #d9828e;
}

@media (hover: hover) and (pointer: fine) {
    .plp-page .quick-add-btn:hover:not(:disabled) {
        border-color: rgba(201,169,97,.42);
        background: rgba(201,169,97,.075);
        color: var(--gold-light);
    }
}

/* Mobile keeps the same two-column geometry; only the purchase hierarchy adapts. */
@media (max-width: 760px) {
    .plp-page .card-footer {
        grid-template-columns: minmax(0, 1fr) 44px;
        gap: 7px;
        min-height: 66px;
        padding-top: 8px;
    }

    .plp-page .price {
        gap: 2px 5px;
    }

    .plp-page .price .new-price {
        font-size: .86rem;
        font-weight: 900;
        line-height: 1.5;
    }

    .plp-page .price .old-price {
        font-size: .66rem;
    }

    .plp-page .price .discount-badge {
        min-width: 31px;
        padding: 2px 5px;
        font-size: .64rem;
    }

    .plp-page .countdown {
        min-height: 22px;
        gap: 4px;
        margin-bottom: 1px;
        padding: 2px 6px;
        border-radius: 6px;
        font-size: .63rem;
    }

    .plp-page .countdown i {
        font-size: .64rem;
    }
}

@media (max-width: 390px) {
    .plp-page .card-footer {
        gap: 6px;
    }

    .plp-page .price .new-price {
        font-size: .82rem;
    }

    .plp-page .price .old-price {
        font-size: .63rem;
    }

    .plp-page .price .discount-badge {
        min-width: 30px;
        font-size: .61rem;
    }

    .plp-page .countdown {
        font-size: .60rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .plp-page .quick-add-btn {
        transition: none !important;
    }
}

/* ==========================================================================
   Phase PLP-2E — Card badge / wishlist hierarchy
   PLP-only via plp_layout=listing; shared product-card consumers stay intact.
   ========================================================================== */
.plp-page .card-topline {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
}

.plp-page .card-topline .brand-name {
    min-width: 0;
    margin: 0;
    overflow: hidden;
    color: #c6ad70;
    font-family: var(--font-fa);
    font-size: .70rem;
    font-weight: 700;
    line-height: 1.5;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.plp-page .wishlist-btn--inline {
    position: static;
    inset: auto;
    width: 44px;
    height: 44px;
    margin-inline-start: auto;
    flex: 0 0 44px;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 11px;
    background: rgba(255,255,255,.025);
    color: #d8d3c8;
    box-shadow: none;
    font-size: .95rem;
}

.plp-page .wishlist-btn--inline:hover,
.plp-page .wishlist-btn--inline.is-active {
    border-color: rgba(201,169,97,.28);
    background: rgba(201,169,97,.055);
    color: var(--gold-light);
}

.plp-page .media-chip {
    position: absolute;
    top: 12px;
    inset-inline-end: 12px;
    z-index: 3;
    display: inline-flex;
    min-width: 42px;
    min-height: 28px;
    align-items: center;
    justify-content: center;
    padding: 4px 9px;
    border-radius: 9px;
    box-shadow: 0 8px 20px rgba(0,0,0,.18);
    font-family: var(--font-fa);
    font-size: .68rem;
    font-weight: 850;
    line-height: 1;
}

.plp-page .media-chip--discount {
    background: #ef4056;
    color: #fff;
}

.plp-page .media-chip--new {
    background: rgba(95,142,106,.96);
    color: #fff;
}

.plp-page .countdown {
    display: inline-flex;
    width: fit-content;
    max-width: 100%;
    min-height: auto;
    align-items: center;
    gap: 4px;
    margin: 0;
    padding: 0;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #bba473;
    font-family: var(--font-fa);
    font-size: .65rem;
    font-weight: 600;
    line-height: 1.5;
    text-overflow: clip;
    white-space: nowrap;
}

.plp-page .countdown i {
    color: #9e8a60;
    font-size: .64rem;
    opacity: .95;
}

.plp-page .price {
    display: grid;
    grid-template-columns: minmax(0,1fr);
    grid-template-areas:
        "new"
        "old";
    gap: 3px;
}

.plp-page .price-stack {
    display: contents;
}

.plp-page .price .new-price {
    grid-area: new;
    overflow: visible;
    color: var(--gold-light);
    font-size: .95rem;
    font-weight: 850;
    line-height: 1.5;
    text-overflow: clip;
    white-space: nowrap;
}

.plp-page .price .old-price {
    grid-area: old;
    overflow: hidden;
    color: #8f8a82;
    font-size: .69rem;
    font-weight: 500;
    line-height: 1.4;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.plp-page .price .discount-badge {
    display: none;
}

@media (max-width: 760px) {
    .plp-page .card-topline {
        min-height: 44px;
        gap: 7px;
    }

    .plp-page .card-topline .brand-name {
        font-size: .65rem;
    }

    .plp-page .media-chip {
        top: 9px;
        inset-inline-end: 9px;
        min-width: 38px;
        min-height: 26px;
        padding: 4px 7px;
        border-radius: 8px;
        font-size: .64rem;
    }

    .plp-page .countdown {
        font-size: .62rem;
    }

    .plp-page .price .new-price {
        font-size: .86rem;
        white-space: normal;
    }

    .plp-page .price .old-price {
        font-size: .64rem;
    }
}

@media (hover: hover) and (pointer: fine) {
    .plp-page .wishlist-btn--inline:hover {
        transform: translateY(-1px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .plp-page .wishlist-btn--inline {
        transition: none !important;
    }
}

/* ==========================================================================
   Phase PLP-2F — Mobile filter drawer polish
   Presentation-only: existing filter URLs, form semantics and JS controller stay authoritative.
   ========================================================================== */
.plp-page .filter-head__actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.plp-page .filter-drawer-actions {
    margin-top: 14px;
}

.plp-page .filter-apply-btn {
    display: inline-flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    gap: 7px;
}

@media (max-width: 900px) {
    .plp-page .filter-sidebar-overlay {
        z-index: 180;
        background: rgba(5,5,7,.66);
    }

    .plp-page .filter-sidebar {
        inset-inline-start: -370px;
        z-index: 185;
        width: min(336px, calc(100vw - 28px));
        height: 100vh;
        height: 100dvh;
        padding: 0;
        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior: contain;
        border: 0;
        border-inline-start: 1px solid rgba(255,255,255,.08);
        border-radius: 0;
        background: #15161a;
        box-shadow: -22px 0 48px rgba(0,0,0,.36);
        scrollbar-width: thin;
        scrollbar-color: rgba(201,169,97,.24) transparent;
        -webkit-overflow-scrolling: touch;
    }

    .plp-page .filter-sidebar.is-open {
        inset-inline-start: 0;
    }

    .plp-page .filter-sidebar::-webkit-scrollbar {
        width: 5px;
    }

    .plp-page .filter-sidebar::-webkit-scrollbar-thumb {
        border-radius: 999px;
        background: rgba(201,169,97,.24);
    }

    .plp-page .filter-head {
        position: sticky;
        top: 0;
        z-index: 4;
        display: flex;
        min-height: 68px;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        margin: 0;
        padding: max(10px, env(safe-area-inset-top, 0px)) 14px 10px;
        border-bottom: 1px solid rgba(255,255,255,.07);
        background: #15161a;
    }

    .plp-page .filter-head h2 {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        margin: 0;
        color: var(--text);
        font-family: var(--font-fa);
        font-size: .92rem;
        font-weight: 850;
        line-height: 1.4;
    }

    .plp-page .filter-head h2 i {
        color: var(--gold);
        font-size: .92rem;
    }

    .plp-page .filter-head__actions {
        flex: 0 0 auto;
    }

    .plp-page .filter-clear,
    .plp-page .filter-sidebar-close {
        min-height: 44px;
        border-radius: 10px;
    }

    .plp-page .filter-clear {
        display: inline-flex;
        align-items: center;
        padding: 0 9px;
        color: #99948b;
        font-family: var(--font-fa);
        font-size: .68rem;
        font-weight: 650;
    }

    .plp-page .filter-sidebar-close {
        display: inline-grid;
        width: 44px;
        height: 44px;
        margin: 0;
        place-items: center;
        border: 1px solid rgba(255,255,255,.08);
        background: rgba(255,255,255,.025);
        color: var(--text);
        font-size: .86rem;
    }

    .plp-page .active-chips {
        margin: 0;
        padding: 12px 14px 0;
    }

    .plp-page .active-chips .chip {
        min-height: 36px;
        padding: 6px 10px;
        border-color: rgba(201,169,97,.22);
        border-radius: 9px;
        background: rgba(201,169,97,.055);
        font-family: var(--font-fa);
        font-size: .68rem;
    }

    .plp-page #filterForm {
        padding: 0 14px;
    }

    .plp-page .filter-group {
        padding: 16px 0;
        border-bottom-color: rgba(255,255,255,.065);
    }

    .plp-page .filter-group h3 {
        margin: 0 0 9px;
        color: #e7e3db;
        font-family: var(--font-fa);
        font-size: .78rem;
        font-weight: 800;
        line-height: 1.6;
    }

    .plp-page .filter-radio {
        min-height: 44px;
        gap: 10px;
        margin: 1px 0;
        padding: 7px 6px;
        border-radius: 9px;
        color: #b6b1a8;
        font-family: var(--font-fa);
        font-size: .76rem;
        line-height: 1.55;
    }

    .plp-page .filter-radio input[type="radio"] {
        appearance: none;
        width: 18px;
        height: 18px;
        flex: 0 0 18px;
        margin: 0;
        border: 1px solid #77736c;
        border-radius: 50%;
        background: transparent;
        box-shadow: none;
        cursor: pointer;
    }

    .plp-page .filter-radio input[type="radio"]:checked {
        border-color: var(--gold);
        background: var(--gold);
        box-shadow: inset 0 0 0 4px #15161a;
    }

    .plp-page .filter-radio input[type="radio"]:focus-visible {
        outline: 2px solid rgba(201,169,97,.68);
        outline-offset: 3px;
    }

    .plp-page .price-range-inputs {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .plp-page .price-range-inputs input {
        min-width: 0;
        min-height: 46px;
        padding: 9px 11px;
        border: 1px solid rgba(255,255,255,.08);
        border-radius: 10px;
        background: #0f1013;
        color: var(--text);
        font-family: var(--font-fa);
        font-size: .76rem;
        font-variant-numeric: tabular-nums;
        line-height: 1.5;
    }

    .plp-page .price-range-inputs input::placeholder {
        color: #77736c;
        opacity: 1;
    }

    .plp-page .price-range-inputs input:focus {
        border-color: rgba(201,169,97,.48);
        outline: 0;
        box-shadow: 0 0 0 3px rgba(201,169,97,.08);
    }

    .plp-page .filter-toggle {
        min-height: 56px;
        margin: 0;
        padding: 12px 6px;
        border-bottom: 1px solid rgba(255,255,255,.065);
        color: #d8d4cc;
        font-family: var(--font-fa);
        font-size: .77rem;
        font-weight: 700;
    }

    .plp-page .toggle-track {
        width: 40px;
        height: 22px;
        flex: 0 0 40px;
        border-color: rgba(255,255,255,.12);
        background: #23242a;
    }

    .plp-page .toggle-track::after {
        top: 3px;
        inset-inline-start: 3px;
        width: 14px;
        height: 14px;
        background: #918d85;
    }

    .plp-page .filter-toggle input:checked + .toggle-track {
        border-color: rgba(201,169,97,.66);
        background: var(--gold);
    }

    .plp-page .filter-toggle input:checked + .toggle-track::after {
        background: #17140e;
        transform: translateX(-19px);
    }

    .plp-page .filter-drawer-actions {
        position: sticky;
        bottom: 0;
        z-index: 4;
        margin: 0;
        padding: 12px 14px max(12px, env(safe-area-inset-bottom, 0px));
        border-top: 1px solid rgba(255,255,255,.07);
        background: #15161a;
    }

    .plp-page .filter-apply-btn {
        min-height: 48px;
        margin: 0;
        border: 1px solid rgba(201,169,97,.48);
        border-radius: 11px;
        background: #c9a961;
        color: #17140e;
        box-shadow: none;
        font-family: var(--font-fa);
        font-size: .78rem;
        font-weight: 850;
        line-height: 1.5;
    }

    .plp-page .filter-apply-btn i {
        font-size: .92rem;
    }

    .plp-page .filter-clear:focus-visible,
    .plp-page .filter-sidebar-close:focus-visible,
    .plp-page .filter-apply-btn:focus-visible {
        outline: 2px solid rgba(201,169,97,.72);
        outline-offset: 2px;
    }
}

@media (hover: hover) and (pointer: fine) and (max-width: 900px) {
    .plp-page .filter-clear:hover {
        color: var(--gold-light);
    }

    .plp-page .filter-sidebar-close:hover {
        border-color: rgba(201,169,97,.28);
        background: rgba(201,169,97,.055);
        color: var(--gold-light);
    }

    .plp-page .filter-radio:hover {
        background: rgba(255,255,255,.025);
        color: var(--text);
    }

    .plp-page .filter-apply-btn:hover {
        border-color: var(--gold-light);
        background: #d6b66d;
        color: #14120d;
    }
}

@media (max-width: 390px) {
    .plp-page .filter-sidebar {
        width: min(326px, calc(100vw - 22px));
    }

    .plp-page .filter-head,
    .plp-page #filterForm,
    .plp-page .filter-drawer-actions {
        padding-inline: 12px;
    }

    .plp-page .active-chips {
        padding-inline: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .plp-page .filter-radio,
    .plp-page .filter-sidebar-close,
    .plp-page .filter-apply-btn {
        transition: none !important;
    }
}

/* ==========================================================================
   Phase PLP-2G — Mobile floating-controls safe slot
   Support and back-to-top share one edge slot above the bottom navigation.
   Existing global scroll visibility remains authoritative; no new JS/listeners.
   ========================================================================== */
@media (max-width: 860px) {
    /* One quiet edge slot, kept clear of the bottom navigation + safe area. */
    #supportFab.support-fab {
        inset-inline-start: 10px;
        bottom: calc(76px + env(safe-area-inset-bottom, 0px));
        width: 46px;
        min-width: 46px;
        height: 46px;
        min-height: 46px;
        padding: 0;
        box-shadow: 0 10px 26px rgba(0,0,0,.30);
    }

    #supportFab.support-fab .support-fab-icon {
        width: 40px;
        height: 40px;
    }

    #supportFab.support-fab .support-fab-icon i {
        font-size: 1.08rem;
    }

    #supportFab.support-fab .support-fab-pulse {
        display: none;
    }

    #supportFab.support-fab .support-fab-badge {
        inset-inline-end: -4px;
        top: -5px;
        min-width: 20px;
        height: 20px;
        padding-inline: 5px;
        font-size: .61rem;
    }

    .back-to-top {
        inset-inline-start: auto;
        inset-inline-end: 10px;
        bottom: calc(78px + env(safe-area-inset-bottom, 0px));
        width: 42px;
        height: 42px;
        z-index: 96;
        border-color: rgba(201,169,97,.18);
        background: rgba(25,25,31,.96);
        box-shadow: 0 9px 24px rgba(0,0,0,.28);
        font-size: .96rem;
    }

    /*
     * Support stays available while scrolling. Back-to-top uses the opposite
     * edge, so the two controls no longer need to suppress each other.
     */
    .back-to-top.is-visible + .support-widget #supportFab.support-fab:not([aria-expanded="true"]) {
        opacity: 1;
        transform: none;
        pointer-events: auto;
    }

    .back-to-top.is-visible + .support-widget .support-nudge {
        opacity: 0 !important;
        pointer-events: none !important;
    }

    body.support-widget-open .back-to-top,
    body.plp-filter-open .back-to-top,
    body.plp-filter-open #supportFab.support-fab,
    body.plp-variant-open .back-to-top,
    body.plp-variant-open #supportFab.support-fab {
        opacity: 0 !important;
        transform: translateY(8px) scale(.94) !important;
        pointer-events: none !important;
    }

    /* The PLP already has dense product content; keep proactive nudges out of it. */
    .support-nudge {
        max-width: min(214px, calc(100vw - 88px));
    }
}

@media (max-width: 390px) {
    #supportFab.support-fab {
        inset-inline-start: 8px;
    }

    .back-to-top {
        inset-inline-start: auto;
        inset-inline-end: 8px;
    }
}

@media (prefers-reduced-motion: reduce) {
    #supportFab.support-fab,
    .back-to-top {
        transition: none !important;
    }
}

/* ==========================================================================
   PLP Final Quality Gate — empty state, pagination and minimum touch targets
   ========================================================================== */
.plp-page .plp-empty-state {
    display: grid;
    grid-column: 1 / -1;
    width: 100%;
    min-height: 220px;
    place-items: center;
    align-content: center;
    gap: 9px;
    padding: 34px 20px;
    border: 1px dashed rgba(201,169,97,.18);
    border-radius: 14px;
    background: rgba(255,255,255,.012);
    color: var(--text-muted);
    text-align: center;
}

.plp-page .plp-empty-state__icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    margin-bottom: 2px;
    border: 1px solid rgba(201,169,97,.18);
    border-radius: 15px;
    background: rgba(201,169,97,.045);
    color: var(--gold-dim);
    font-size: 1.25rem;
}

.plp-page .plp-empty-state h2,
.plp-page .plp-empty-state p {
    margin: 0;
    font-family: var(--font-fa);
}

.plp-page .plp-empty-state h2 {
    color: var(--text);
    font-size: .92rem;
    font-weight: 800;
    line-height: 1.7;
}

.plp-page .plp-empty-state p {
    max-width: 38ch;
    color: #99958d;
    font-size: .76rem;
    line-height: 1.9;
}

.plp-page .plp-empty-state__reset {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 5px;
    padding: 8px 15px;
    border: 1px solid rgba(201,169,97,.24);
    border-radius: 10px;
    background: rgba(201,169,97,.055);
    color: var(--gold-light);
    font-family: var(--font-fa);
    font-size: .74rem;
    font-weight: 750;
}

.plp-page .pagination {
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 36px;
}

.plp-page .pagination a,
.plp-page .pagination .page-num {
    min-width: 44px;
    min-height: 44px;
    display: inline-grid;
    place-items: center;
    padding: 0 10px;
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 10px;
    background: rgba(255,255,255,.018);
    color: #aaa59d;
    font-family: var(--font-fa);
    font-size: .76rem;
    line-height: 1;
}

.plp-page .pagination a {
    color: var(--gold);
}

.plp-page .pagination .page-num.is-active {
    border-color: rgba(201,169,97,.34);
    background: rgba(201,169,97,.09);
    color: var(--gold-light);
    font-weight: 800;
}

.plp-page .pagination a:focus-visible,
.plp-page .plp-empty-state__reset:focus-visible {
    outline: 2px solid rgba(201,169,97,.72);
    outline-offset: 2px;
}

@media (hover: hover) and (pointer: fine) {
    .plp-page .pagination a:hover,
    .plp-page .plp-empty-state__reset:hover {
        border-color: rgba(201,169,97,.32);
        background: rgba(201,169,97,.065);
        color: var(--gold-light);
    }
}

@media (max-width: 860px) {
    .plp-page .pagination {
        gap: 6px;
        margin-top: 30px;
    }

    .back-to-top {
        width: 44px;
        height: 44px;
    }
}

@media (max-width: 390px) {
    .plp-page .plp-empty-state {
        min-height: 190px;
        padding: 28px 15px;
    }

    .plp-page .pagination a,
    .plp-page .pagination .page-num {
        min-width: 44px;
        min-height: 44px;
        padding-inline: 8px;
    }
}

/* ==========================================================================
   PLP-2H — Desktop filter drawer
   Progressive enhancement: desktop drawer rules activate only after JS adds
   .plp-js. Without JS, the original static desktop sidebar remains available.
   ========================================================================== */
@media (min-width: 901px) {
    body.plp-filter-open {
        overflow: hidden;
    }

    html.plp-js-ready .plp-page .products-layout,
    .plp-page.plp-js .products-layout {
        display: block;
    }

    html.plp-js-ready .plp-page .products-layout .product-grid,
    .plp-page.plp-js .products-layout .product-grid {
        width: 100%;
    }

    html.plp-js-ready .plp-page .filter-toggle-btn,
    .plp-page.plp-js .filter-toggle-btn {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        margin: 0 0 20px;
        padding: 9px 15px;
        border: 1px solid rgba(201,169,97,.18);
        border-radius: 11px;
        background: rgba(201,169,97,.045);
        color: var(--text);
        font-family: var(--font-fa);
        font-size: .78rem;
        font-weight: 750;
        line-height: 1.45;
        cursor: pointer;
    }

    html.plp-js-ready .plp-page .filter-toggle-btn i,
    .plp-page.plp-js .filter-toggle-btn i {
        color: var(--gold);
        font-size: .92rem;
    }

    html.plp-js-ready .plp-page .filter-toggle-btn.has-active-filters::after,
    .plp-page.plp-js .filter-toggle-btn.has-active-filters::after {
        content: "";
        width: 6px;
        height: 6px;
        flex: 0 0 6px;
        border-radius: 50%;
        background: var(--gold);
        box-shadow: 0 0 0 3px rgba(201,169,97,.10);
    }

    .plp-page.plp-js .filter-toggle-btn[aria-expanded="true"] {
        border-color: rgba(201,169,97,.38);
        background: rgba(201,169,97,.085);
        color: var(--gold-light);
    }

    .plp-page.plp-js .filter-toggle-btn:focus-visible {
        outline: 2px solid rgba(201,169,97,.72);
        outline-offset: 2px;
    }

    html.plp-js-ready .plp-page .filter-sidebar-overlay,
    .plp-page.plp-js .filter-sidebar-overlay {
        position: fixed;
        inset: 0;
        z-index: 180;
        display: block;
        background: rgba(4,4,7,.60);
        opacity: 0;
        pointer-events: none;
        transition: opacity .22s ease;
    }

    .plp-page.plp-js .filter-sidebar-overlay.is-open {
        opacity: 1;
        pointer-events: auto;
    }

    html.plp-js-ready .plp-page .filter-sidebar,
    .plp-page.plp-js .filter-sidebar {
        position: fixed;
        top: 0;
        bottom: 0;
        inset-inline-start: -430px;
        z-index: 185;
        width: min(380px, calc(100vw - 72px));
        height: 100vh;
        height: 100dvh;
        padding: 0;
        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior: contain;
        border: 0;
        border-inline-end: 1px solid rgba(255,255,255,.08);
        border-radius: 0;
        background: #15161a;
        box-shadow: -24px 0 58px rgba(0,0,0,.40);
        scrollbar-width: thin;
        scrollbar-color: rgba(201,169,97,.24) transparent;
        transition: inset-inline-start .26s var(--ease);
    }

    .plp-page.plp-js .filter-sidebar.is-open {
        inset-inline-start: 0;
    }

    .plp-page.plp-js .filter-sidebar::-webkit-scrollbar {
        width: 5px;
    }

    .plp-page.plp-js .filter-sidebar::-webkit-scrollbar-thumb {
        border-radius: 999px;
        background: rgba(201,169,97,.24);
    }

    .plp-page.plp-js .filter-head {
        position: sticky;
        top: 0;
        z-index: 4;
        min-height: 72px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        margin: 0;
        padding: 13px 18px;
        border-bottom: 1px solid rgba(255,255,255,.07);
        background: #15161a;
    }

    .plp-page.plp-js .filter-head h2 {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        margin: 0;
        color: var(--text);
        font-family: var(--font-fa);
        font-size: .94rem;
        font-weight: 850;
    }

    .plp-page.plp-js .filter-head h2 i {
        color: var(--gold);
    }

    .plp-page.plp-js .filter-head__actions {
        flex: 0 0 auto;
    }

    .plp-page.plp-js .filter-clear {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        padding: 0 10px;
        border-radius: 10px;
        color: #99948b;
        font-family: var(--font-fa);
        font-size: .69rem;
        font-weight: 650;
    }

    .plp-page.plp-js .filter-sidebar-close {
        width: 44px;
        height: 44px;
        min-height: 44px;
        display: inline-grid;
        margin: 0;
        place-items: center;
        border: 1px solid rgba(255,255,255,.08);
        border-radius: 10px;
        background: rgba(255,255,255,.025);
        color: var(--text);
        font-size: .86rem;
    }

    .plp-page.plp-js .active-chips {
        margin: 0;
        padding: 13px 18px 0;
    }

    .plp-page.plp-js .active-chips .chip {
        min-height: 36px;
        padding: 6px 10px;
        border-color: rgba(201,169,97,.22);
        border-radius: 9px;
        background: rgba(201,169,97,.055);
        font-family: var(--font-fa);
        font-size: .68rem;
    }

    .plp-page.plp-js #filterForm {
        padding: 0 18px;
    }

    .plp-page.plp-js .filter-group {
        padding: 17px 0;
        border-bottom-color: rgba(255,255,255,.065);
    }

    .plp-page.plp-js .filter-group h3 {
        margin: 0 0 9px;
        color: #e7e3db;
        font-family: var(--font-fa);
        font-size: .80rem;
        font-weight: 800;
        line-height: 1.6;
    }

    .plp-page.plp-js .filter-radio {
        min-height: 44px;
        display: flex;
        align-items: center;
        gap: 10px;
        margin: 1px 0;
        padding: 7px 6px;
        border-radius: 9px;
        color: #b6b1a8;
        font-family: var(--font-fa);
        font-size: .77rem;
        line-height: 1.55;
    }

    .plp-page.plp-js .filter-radio input[type="radio"] {
        appearance: none;
        width: 18px;
        height: 18px;
        flex: 0 0 18px;
        margin: 0;
        border: 1px solid #77736c;
        border-radius: 50%;
        background: transparent;
        box-shadow: none;
        cursor: pointer;
    }

    .plp-page.plp-js .filter-radio input[type="radio"]:checked {
        border-color: var(--gold);
        background: var(--gold);
        box-shadow: inset 0 0 0 4px #15161a;
    }

    .plp-page.plp-js .price-range-inputs {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 9px;
    }

    .plp-page.plp-js .price-range-inputs input {
        min-width: 0;
        min-height: 46px;
        padding: 9px 11px;
        border: 1px solid rgba(255,255,255,.08);
        border-radius: 10px;
        background: #0f1013;
        color: var(--text);
        font-family: var(--font-fa);
        font-size: .77rem;
        font-variant-numeric: tabular-nums;
    }

    .plp-page.plp-js .filter-toggle {
        min-height: 56px;
        margin: 0;
        padding: 12px 6px;
        border-bottom: 1px solid rgba(255,255,255,.065);
        color: #d8d4cc;
        font-family: var(--font-fa);
        font-size: .78rem;
        font-weight: 700;
    }

    .plp-page.plp-js .toggle-track {
        width: 40px;
        height: 22px;
        flex: 0 0 40px;
        border-color: rgba(255,255,255,.12);
        background: #23242a;
    }

    .plp-page.plp-js .toggle-track::after {
        top: 3px;
        inset-inline-start: 3px;
        width: 14px;
        height: 14px;
        background: #918d85;
    }

    .plp-page.plp-js .filter-toggle input:checked + .toggle-track {
        border-color: rgba(201,169,97,.66);
        background: var(--gold);
    }

    .plp-page.plp-js .filter-toggle input:checked + .toggle-track::after {
        background: #17140e;
        transform: translateX(-19px);
    }

    .plp-page.plp-js .filter-drawer-actions {
        position: sticky;
        bottom: 0;
        z-index: 4;
        margin: 0;
        padding: 12px 18px 14px;
        border-top: 1px solid rgba(255,255,255,.07);
        background: #15161a;
    }

    .plp-page.plp-js .filter-apply-btn {
        min-height: 48px;
        margin: 0;
        border: 1px solid rgba(201,169,97,.48);
        border-radius: 11px;
        background: #c9a961;
        color: #17140e;
        box-shadow: none;
        font-family: var(--font-fa);
        font-size: .79rem;
        font-weight: 850;
    }

    .plp-page.plp-js .filter-clear:focus-visible,
    .plp-page.plp-js .filter-sidebar-close:focus-visible,
    .plp-page.plp-js .filter-apply-btn:focus-visible {
        outline: 2px solid rgba(201,169,97,.72);
        outline-offset: 2px;
    }
}

@media (hover: hover) and (pointer: fine) and (min-width: 901px) {
    .plp-page.plp-js .filter-toggle-btn:hover,
    .plp-page.plp-js .filter-sidebar-close:hover {
        border-color: rgba(201,169,97,.30);
        background: rgba(201,169,97,.07);
        color: var(--gold-light);
    }

    .plp-page.plp-js .filter-clear:hover {
        color: var(--gold-light);
    }

    .plp-page.plp-js .filter-radio:hover {
        background: rgba(255,255,255,.025);
        color: var(--text);
    }

    .plp-page.plp-js .filter-apply-btn:hover {
        border-color: var(--gold-light);
        background: #d6b66d;
        color: #14120d;
    }
}

@media (prefers-reduced-motion: reduce) {
    .plp-page.plp-js .filter-sidebar,
    .plp-page.plp-js .filter-sidebar-overlay {
        transition: none !important;
    }
}

/* ==========================================================================
   PLP-2I — Discount urgency refinement
   The backend exposes only the authoritative discount end time. Therefore the
   rail becomes a real remaining-time meter only inside the final 24 hours;
   before that it stays a neutral visual rule and never implies fake progress.
   ========================================================================== */
.plp-page .countdown.countdown--plp {
    width: 100%;
    max-width: 100%;
    display: grid;
    gap: 5px;
    margin: 2px 0 1px;
    padding: 6px 0 5px;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #cdb475;
    white-space: normal;
}

.plp-page .countdown--plp .countdown-head {
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.plp-page .countdown--plp .countdown-label {
    min-width: 0;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    overflow: hidden;
    color: #a99567;
    font-family: var(--font-fa);
    font-size: .62rem;
    font-weight: 650;
    line-height: 1.45;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.plp-page .countdown--plp .countdown-label i {
    flex: 0 0 auto;
    color: #bca365;
    font-size: .66rem;
}

.plp-page .countdown--plp .countdown-text {
    flex: 0 0 auto;
    color: #e0c781;
    font-family: var(--font-fa);
    font-size: .68rem;
    font-weight: 850;
    font-variant-numeric: tabular-nums;
    line-height: 1.35;
    letter-spacing: 0;
    white-space: nowrap;
}

.plp-page .countdown--plp .countdown-rail {
    position: relative;
    width: 100%;
    height: 2px;
    display: block;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(201,169,97,.11);
}

.plp-page .countdown--plp .countdown-rail::after {
    content: "";
    position: absolute;
    inset-inline-start: 0;
    top: 0;
    width: 28px;
    height: 100%;
    border-radius: inherit;
    background: rgba(201,169,97,.42);
}

.plp-page .countdown--plp .countdown-rail-fill {
    position: absolute;
    inset-inline-start: 0;
    top: 0;
    width: var(--countdown-remaining, 0%);
    height: 100%;
    display: block;
    border-radius: inherit;
    background: #ef4056;
    opacity: 0;
    transition: width 1s linear, opacity .18s ease, background-color .18s ease;
}

/* Only the final 24 hours show measurable progress based on real remaining time. */
.plp-page .countdown--plp.countdown--last-day .countdown-rail::after {
    opacity: 0;
}

.plp-page .countdown--plp.countdown--last-day .countdown-rail {
    background: rgba(239,64,86,.13);
}

.plp-page .countdown--plp.countdown--last-day .countdown-rail-fill {
    opacity: 1;
}

.plp-page .countdown--plp.countdown--last-day .countdown-label {
    color: #d3b470;
}

.plp-page .countdown--plp.countdown--urgent .countdown-label,
.plp-page .countdown--plp.countdown--urgent .countdown-label i {
    color: #e69065;
}

.plp-page .countdown--plp.countdown--urgent .countdown-text {
    color: #f0aa78;
}

.plp-page .countdown--plp.countdown--urgent .countdown-rail-fill {
    background: #ed765f;
}

.plp-page .countdown--plp.countdown--critical .countdown-label,
.plp-page .countdown--plp.countdown--critical .countdown-label i {
    color: #ef6b7d;
}

.plp-page .countdown--plp.countdown--critical .countdown-text {
    color: #ff8191;
}

.plp-page .countdown--plp.countdown--critical .countdown-rail {
    background: rgba(239,64,86,.19);
}

.plp-page .countdown--plp.countdown--critical .countdown-rail-fill {
    background: #ef4056;
}

@media (max-width: 760px) {
    .plp-page .countdown.countdown--plp {
        gap: 4px;
        margin-block: 1px 0;
        padding-block: 5px 4px;
    }

    .plp-page .countdown--plp .countdown-head {
        gap: 5px;
    }

    .plp-page .countdown--plp .countdown-label {
        gap: 4px;
        font-size: .56rem;
    }

    .plp-page .countdown--plp .countdown-label i {
        font-size: .59rem;
    }

    .plp-page .countdown--plp .countdown-text {
        font-size: .61rem;
    }

    .plp-page .countdown--plp .countdown-rail {
        height: 2px;
    }

    .plp-page .countdown--plp .countdown-rail::after {
        width: 22px;
    }
}

@media (max-width: 390px) {
    .plp-page .countdown--plp .countdown-label {
        font-size: .53rem;
    }

    .plp-page .countdown--plp .countdown-text {
        font-size: .58rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .plp-page .countdown--plp .countdown-rail-fill {
        transition: none !important;
    }
}
