.products-page {
    padding: 28px 0 72px;
    font-family: var(--body-font);
}

body.filters-open {
    overflow: hidden;
    touch-action: none;
}

.products-breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 22px;
    color: #818276;
    font-size: 11px;
}

.products-breadcrumb a:hover {
    color: var(--copper-dark);
}

.products-page__header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 28px;
    padding: 26px 30px;
    border: 1px solid #e9e3d9;
    border-radius: 16px;
    background: linear-gradient(115deg, #f3ede1 0%, #fbf9f4 65%, #f1e9dc 100%);
}

.products-page__header h1 {
    margin: 6px 0 5px;
    color: var(--ink);
    font-family: var(--body-font);
    font-size: clamp(24px, 3vw, 34px);
    font-weight: 600;
}

.products-page__header p {
    color: #7b7d71;
    font-size: 12px;
}

.products-layout {
    display: grid;
    grid-template-columns: minmax(255px, 285px) minmax(0, 1fr);
    align-items: start;
    gap: 25px;
    margin-top: 25px;
}

.products-filter-panel {
    position: sticky;
    top: 18px;
    display: flex;
    max-height: calc(100vh - 36px);
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #e8e3d9;
    border-radius: 13px;
    background: #fff;
    box-shadow: 0 10px 30px #273b3408;
    font-family: var(--body-font);
}

.products-filter-panel__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 17px 17px 14px;
    border-bottom: 1px solid #efede7;
}

.products-filter-panel__header .eyebrow {
    color: var(--copper-dark);
    font-size: 9px;
}

.products-filter-panel__header h2 {
    margin-top: 3px;
    color: var(--ink);
    font-family: var(--body-font);
    font-size: 17px;
    font-weight: 600;
}

.products-filter-panel__close {
    display: none;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 50%;
}

.products-filter-panel__close .icon {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
}

.products-filter-panel__body {
    flex: 1 1 auto;
    overflow: auto;
    overscroll-behavior: contain;
    padding: 2px 17px 12px;
}

.filter-group {
    padding: 13px 0;
    border-bottom: 1px solid #f0eee9;
}

.filter-group > summary,
.filter-tree__branch > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: #37483e;
    font-size: 11px;
    font-weight: 600;
    list-style: none;
    cursor: pointer;
}

.filter-group > summary::-webkit-details-marker,
.filter-tree__branch > summary::-webkit-details-marker {
    display: none;
}

.filter-group > summary::after,
.filter-tree__branch > summary::after {
    content: "+";
    color: #a47b56;
    font-size: 17px;
    font-weight: 400;
    line-height: 1;
}

.filter-group[open] > summary::after,
.filter-tree__branch[open] > summary::after {
    content: "-";
}

.filter-group > summary small {
    margin-inline-start: auto;
    color: #99968b;
    font-size: 9px;
    font-weight: 400;
}

.filter-options {
    display: grid;
    gap: 9px;
    padding-top: 12px;
}

.filter-tree {
    gap: 8px;
}

.filter-tree__branch > summary {
    padding: 5px 0;
    color: #59675e;
    font-size: 10px;
    font-weight: 500;
}

.filter-tree__children {
    display: grid;
    gap: 9px;
    margin: 4px 7px 2px 0;
    padding-inline-start: 11px;
    border-inline-start: 1px solid #e9e5dd;
}

.filter-option {
    display: inline-flex;
    min-height: 20px;
    align-items: center;
    gap: 8px;
    color: #62665e;
    font-size: 10px;
    cursor: pointer;
}

.filter-option input {
    width: 15px;
    height: 15px;
    flex: 0 0 15px;
    margin: 0;
    accent-color: var(--forest);
}

.filter-option input:focus-visible {
    outline-offset: 2px;
}

.filter-option__count {
    margin-inline-start: auto;
    color: #a19e93;
    font-size: 9px;
}

.filter-empty {
    padding: 8px 0;
    color: #99968b;
    font-size: 9px;
}

.filter-price-slider {
    padding: 18px 6px 4px;
    direction: ltr;
}

.filter-price-slider .irs {
    font-family: var(--body-font);
}

.filter-price-slider .irs--flat .irs-line {
    height: 5px;
    background: #e8e4dc;
}

.filter-price-slider .irs--flat .irs-bar {
    height: 5px;
    background: var(--copper);
}

.filter-price-slider .irs--flat .irs-handle {
    top: 19px;
    width: 16px;
    height: 16px;
    border: 2px solid #fff;
    border-radius: 50%;
    background: var(--forest);
    box-shadow: 0 0 0 1px var(--forest);
    cursor: grab;
}

.filter-price-slider .irs--flat .irs-handle > i:first-child {
    display: none;
}

.filter-price-slider .irs--flat .irs-from,
.filter-price-slider .irs--flat .irs-to,
.filter-price-slider .irs--flat .irs-single {
    padding: 4px 7px;
    border-radius: 5px;
    background: var(--forest);
    font-family: var(--body-font);
    font-size: 9px;
}

.filter-price-slider .irs--flat .irs-from::before,
.filter-price-slider .irs--flat .irs-to::before,
.filter-price-slider .irs--flat .irs-single::before {
    border-top-color: var(--forest);
}

.filter-price-slider__bounds {
    display: flex;
    justify-content: space-between;
    flex-direction:row-reverse;
    gap: 10px;
    margin-top: 5px;
    color: #99968b;
    font-size: 9px;
    direction: rtl;
}

.filter-price-slider__bounds[hidden] {
    display: none;
}

.filter-subgroup + .filter-subgroup {
    margin-top: 16px;
}

.filter-subgroup h3 {
    margin: 12px 0 0;
    color: #858479;
    font-size: 10px;
    font-weight: 500;
}

.filter-options--swatches {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.filter-options--swatches .filter-option {
    gap: 6px;
}

.filter-swatch {
    width: 15px;
    height: 15px;
    flex: 0 0 15px;
    border: 1px solid #d8d4ca;
    border-radius: 50%;
    background: var(--swatch);
}

.filter-swatch--white { --swatch: #fff; }
.filter-swatch--black { --swatch: #252525; }
.filter-swatch--gray { --swatch: #969696; }
.filter-swatch--gold { --swatch: #c8a04d; }

.filter-availability {
    padding: 14px 0 9px;
}

.products-filter-panel__actions {
    display: grid;
    gap: 9px;
    padding: 13px 17px 15px;
    border-top: 1px solid #efede7;
    background: #fff;
}

.products-filter-panel__actions .button {
    min-height: 42px;
    justify-content: center;
    font-family: var(--body-font);
    font-size: 11px;
}

.products-filter-apply {
    display: none;
}

.products-filter-panel__clear {
    min-height: 28px;
    color: #8b6550;
    font-family: var(--body-font);
    font-size: 10px;
}

.products-filter-panel__note {
    color: #98958b;
    font-size: 9px;
    text-align: center;
}

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

.products-results__toolbar {
    display: flex;
    min-height: 58px;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 15px;
}

.products-results__toolbar h2 {
    color: var(--ink);
    font-family: var(--body-font);
    font-size: 17px;
    font-weight: 600;
}

.products-results__toolbar p {
    margin-top: 3px;
    color: #858479;
    font-size: 10px;
}

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

.products-results__count {
    flex: 0 0 auto;
    margin-inline-start: auto;
    padding: 7px 11px;
    border: 1px solid #e8e2d7;
    border-radius: 999px;
    background: linear-gradient(120deg, #fff, #f7f4ed);
    color: #69766b;
    font-size: 10px;
    white-space: nowrap;
}

.products-filter-open {
    display: none;
}

.products-filter-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin: 7px 0 0;
}

.products-filter-summary[hidden] {
    display: none;
}

.products-filter-summary span {
    padding: 5px 10px;
    border: 1px solid #e7e2d8;
    border-radius: 20px;
    background: #fff;
    color: #69766b;
    font-size: 9px;
}

.products-filter-summary span:first-child {
    border-color: #dce8df;
    background: #f0f6f1;
    color: #3e5d4b;
}

.products-card-list .catalog-card-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.products-card-list .catalog-card {
    min-width: 0;
}

.products-card-list[aria-busy="true"] .catalog-card {
    position: relative;
    isolation: isolate;
    pointer-events: none;
}

.products-card-list[aria-busy="true"] .catalog-card > * {
    opacity: .2;
    filter: blur(1.4px);
    transition: opacity .22s ease, filter .22s ease;
}

.products-card-list[aria-busy="true"] .catalog-card::after {
    position: absolute;
    z-index: 5;
    top: -35%;
    bottom: -35%;
    left: -38%;
    width: 34%;
    content: "";
    background: linear-gradient(105deg,
        transparent 0%,
        #d7e6dc35 28%,
        #fffdf0e8 49%,
        #d5e2d85c 66%,
        transparent 100%);
    filter: blur(2px);
    transform: skewX(-22deg);
    animation: product-card-loading-sweep 1.25s cubic-bezier(.45, 0, .35, 1) infinite;
    pointer-events: none;
}

.products-card-list[aria-busy="true"] .catalog-card:nth-child(4n + 2)::after { animation-delay: .12s; }
.products-card-list[aria-busy="true"] .catalog-card:nth-child(4n + 3)::after { animation-delay: .24s; }
.products-card-list[aria-busy="true"] .catalog-card:nth-child(4n)::after { animation-delay: .36s; }

@keyframes product-card-loading-sweep {
    from { transform: translateX(0) skewX(-22deg); }
    to { transform: translateX(510%) skewX(-22deg); }
}

@media (prefers-reduced-motion: reduce) {
    .products-card-list[aria-busy="true"] .catalog-card::after {
        animation: none;
        opacity: .28;
    }
}

.products-results-loading {
    display: grid;
    min-height: 220px;
    place-items: center;
    border: 1px dashed #e1dbd0;
    border-radius: 12px;
    color: #858479;
    font-size: 12px;
}

.products-retry {
    margin-inline-start: 8px;
    color: var(--copper-dark);
    text-decoration: underline;
}

.filter-loading {
    padding: 8px 0;
    color: #99968b;
    font-size: 9px;
}

/* Refined filter hierarchy and clearer disclosure controls. */
.products-filter-panel {
    border-color: #e5e0d5;
    border-radius: 18px;
    background: linear-gradient(160deg, #fff 0%, #fdfcf9 100%);
    box-shadow: 0 16px 42px #273b3410, 0 2px 8px #273b3408;
}

.products-filter-panel__header {
    padding: 19px 18px 16px;
    background: linear-gradient(120deg, #f8f5ee, #fff 72%);
}

.products-filter-panel__header h2 {
    font-size: 18px;
}

.products-filter-panel__body {
    padding: 10px 13px 14px;
}

.filter-group {
    margin: 0 0 9px;
    padding: 0;
    overflow: hidden;
    border: 1px solid #efebe3;
    border-radius: 13px;
    background: #fff;
    box-shadow: 0 2px 8px #273b3405;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.filter-group:hover {
    border-color: #e3d8c7;
    box-shadow: 0 7px 18px #273b340c;
    transform: translateY(-1px);
}

.filter-group > summary,
.filter-tree__branch > summary {
    position: relative;
    min-height: 48px;
    justify-content: flex-start;
    padding: 12px 13px;
    color: #30443a;
    font-size: 11px;
    transition: background-color .2s ease, color .2s ease;
}

.filter-group > summary:hover,
.filter-tree__branch > summary:hover {
    background: #faf8f3;
    color: var(--forest);
}

.filter-group > summary::after,
.filter-tree__branch > summary::after {
    display: grid;
    width: 25px;
    height: 25px;
    flex: 0 0 25px;
    place-items: center;
    margin-inline-start: auto;
    border: 1px solid #e9e2d5;
    border-radius: 8px;
    background: #f8f5ee;
    color: #94704e;
    font-size: 17px;
    line-height: 1;
    transition: background-color .2s ease, color .2s ease, transform .2s ease;
}

.filter-group[open] > summary::after,
.filter-tree__branch[open] > summary::after {
    content: "−";
    background: #edf3ef;
    color: var(--forest);
}

.filter-group > summary small {
    margin-inline-start: 0;
}

.filter-group > .filter-options,
.filter-group > .filter-price-slider {
    padding: 12px 13px 14px;
    border-top: 1px solid #f1eee8;
    background: linear-gradient(180deg, #fdfcf9, #fff 40%);
}

.filter-tree__branch {
    overflow: hidden;
    border: 1px solid #f0ece4;
    border-radius: 10px;
    background: #fff;
}

.filter-tree__branch > summary {
    min-height: 40px;
    padding: 8px 10px;
    font-size: 10px;
}

.filter-tree__branch > summary::after {
    width: 21px;
    height: 21px;
    flex-basis: 21px;
    font-size: 15px;
}

.filter-tree__branch > .filter-option {
    margin: 6px 10px;
}

.filter-tree__children {
    gap: 6px;
    margin: 2px 10px 10px;
    padding-inline-start: 9px;
}

.filter-option {
    min-height: 34px;
    padding: 6px 8px;
    border: 1px solid transparent;
    border-radius: 9px;
    transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}

.filter-option:hover {
    border-color: #eee8dc;
    background: #faf8f3;
    color: #35483e;
}

.filter-option input {
    width: 16px;
    height: 16px;
    flex-basis: 16px;
}

.filter-option input:checked + span {
    color: #30483b;
    font-weight: 600;
}

.filter-option input:focus-visible {
    outline: 2px solid #b9946e;
    outline-offset: 3px;
}

.filter-subgroup h3 {
    margin: 13px 2px 0;
    color: #6f776d;
    font-size: 10px;
    font-weight: 600;
}

.filter-options--swatches .filter-option {
    min-height: 38px;
    padding: 6px;
}

.filter-availability {
    margin-top: 3px;
    padding: 12px 8px 8px;
    border: 1px solid #e8eee9;
    border-radius: 12px;
    background: linear-gradient(120deg, #f3f7f3, #fff);
}

.filter-sort-control {
    display: grid;
    gap: 8px;
    padding: 12px 13px 14px;
    border-top: 1px solid #f1eee8;
    background: linear-gradient(180deg, #fdfcf9, #fff 40%);
}

.filter-sort-control label {
    color: #72786e;
    font-size: 10px;
}

.filter-sort-control select {
    width: 100%;
    min-height: 42px;
    padding: 0 12px;
    border: 1px solid #e5e0d5;
    border-radius: 10px;
    outline: none;
    background: #fff;
    color: #30443a;
    font: inherit;
    font-size: 11px;
    cursor: pointer;
    transition: border-color .18s ease, box-shadow .18s ease;
}

.filter-sort-control select:hover,
.filter-sort-control select:focus-visible {
    border-color: #b99a76;
    box-shadow: 0 0 0 3px #b99a761f;
}

.products-filter-panel__actions {
    padding: 14px 16px 16px;
    background: #fcfbf8;
}

.products-filter-panel__clear {
    transition: color .18s ease, background-color .18s ease;
}

.products-filter-panel__clear:hover {
    border-radius: 8px;
    background: #f5eee7;
    color: #704a35;
}

@media (prefers-reduced-motion: reduce) {
    .filter-group,
    .filter-group > summary::after,
    .filter-tree__branch > summary::after,
    .filter-option,
    .filter-sort-control select,
    .products-filter-panel__clear {
        transition: none;
    }
}

.products-filter-backdrop {
    display: none;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

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

    .products-card-list .catalog-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 820px) {
    .products-page {
        padding-top: 18px;
    }

    .products-page__header {
        align-items: stretch;
        flex-direction: column;
        gap: 15px;
        padding: 20px;
    }

    .products-layout {
        display: block;
        margin-top: 17px;
    }

    .products-filter-panel {
        position: fixed;
        z-index: 1201;
        inset: 0;
        display: flex;
        width: 100%;
        max-width: none;
        height: 100vh;
        height: 100dvh;
        max-height: none;
        border: 0;
        border-radius: 0;
        box-shadow: none;
        transform: translateX(105%);
        transition: transform .28s ease;
        visibility: hidden;
    }

    .products-filter-panel.is-open {
        transform: translateX(0);
        visibility: visible;
    }

    .products-filter-panel__header {
        flex: 0 0 auto;
        padding: max(17px, env(safe-area-inset-top)) 18px 15px;
    }

    .products-filter-panel__close {
        display: grid;
    }

    .products-filter-panel__body {
        padding: 4px 20px 20px;
        touch-action: pan-y;
    }

    .products-filter-panel__actions {
        flex: 0 0 auto;
        grid-template-columns: 1fr 1fr;
        align-items: center;
        gap: 8px 13px;
        padding: 12px 18px max(14px, env(safe-area-inset-bottom));
    }

    .products-filter-panel__actions .button {
        display: flex;
        grid-column: 1 / -1;
        min-height: 48px;
    }

    .products-filter-apply {
        display: flex;
    }

    .products-filter-panel__clear {
        grid-column: 1 / 2;
        grid-row: 2;
    }

    .products-filter-panel__note {
        grid-column: 2 / 3;
        grid-row: 2;
    }

    .products-filter-open {
        display: inline-flex;
        min-height: 40px;
        align-items: center;
        gap: 8px;
        padding: 0 13px;
        border: 1px solid #ded9cf;
        border-radius: 8px;
        background: #fff;
        color: var(--forest);
        font-family: var(--body-font);
        font-size: 10px;
    }

    .products-filter-open .icon {
        width: 17px;
        height: 17px;
        fill: none;
        stroke: currentColor;
        stroke-width: 1.6;
    }

    .products-filter-open span:not([hidden]) {
        display: grid;
        min-width: 18px;
        height: 18px;
        place-items: center;
        border-radius: 50%;
        background: var(--forest);
        color: #fff;
        font-size: 9px;
    }

    .products-filter-backdrop:not([hidden]) {
        position: fixed;
        z-index: 1200;
        inset: 0;
        display: block;
        background: #17231fc2;
        backdrop-filter: blur(2px);
    }

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

@media (max-width: 480px) {
    .products-page__header {
        padding: 17px 15px;
    }

    .products-page__header h1 {
        font-size: 23px;
    }

    .products-page__header p {
        font-size: 10px;
    }

    .products-results__toolbar h2 {
        font-size: 15px;
    }

    .products-results__toolbar p {
        max-width: 210px;
        font-size: 9px;
    }

    .products-card-list .catalog-card-grid {
        gap: 9px;
    }
}
