@font-face {
    font-family: Onest;
    src: url("../admin-assets/fonts/Onest-Variable.ttf") format("truetype");
    font-weight: 100 900;
    font-display: swap;
}

:root {
    --porcelain: #f7f8f5;
    --sage: #eef1e8;
    --ink: #072521;
    --green: #2a5b55;
    --cream: #f4ede5;
    --line: rgba(7, 37, 33, .12);
    --glass: rgba(42, 91, 85, .16);
    --shadow: 0 8px 24px rgba(7, 37, 33, .08);
    --page-gutter: clamp(16px, 3.34vw, 48px);
    color-scheme: light;
}

* { box-sizing: border-box; }
body { margin: 0; font: 400 16px/1.5 Onest, system-ui, sans-serif; color: var(--ink); background: var(--porcelain); }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
img { vertical-align: middle; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
[hidden] { display: none !important; }

.store-width { width: min(100% - 2 * var(--page-gutter), 1344px); margin-inline: auto; }
.store-muted { color: #526b65; }
.store-kicker { font-size: 12px; line-height: 16px; text-transform: uppercase; }
.store-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.store-notice { background: var(--sage); padding: 12px 16px; margin-block: 0 16px; border-radius: 14px; }

.glass {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    min-height: 46px;
    padding: 0 24px;
    border: 1px solid rgba(7, 37, 33, .18);
    border-radius: 30px;
    background: var(--glass);
    font-size: 14px;
    font-weight: 500;
    text-align: center;
}
.glass:hover:not(:disabled) { background: rgba(42, 91, 85, .23); }
.glass:active:not(:disabled) { background: rgba(42, 91, 85, .32); }
.glass-clear { background: rgba(244, 237, 229, .12); border-color: var(--line); }
.glass:disabled, fieldset:disabled { opacity: .55; }

.product-availability { position: relative; width: fit-content; }
.product-availability summary { cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
.store-popover { position: absolute; z-index: 4; top: calc(100% + 8px); right: 0; min-width: 180px; background: var(--porcelain); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); padding: 12px; }
.store-popover a { display: block; padding: 8px 12px; border-radius: 10px; }
.store-popover a:hover { background: var(--glass); }
.catalog-section, .product-section { padding-block: 40px 64px; }
.store-crumbs { display: flex; gap: 12px; align-items: center; margin-bottom: 24px; font-size: 13px; line-height: 18px; }
.store-crumbs a { color: #526b65; }
.store-crumbs a:hover { text-decoration: underline; }
.catalog-heading { min-height: 100px; display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.catalog-heading h1, .product-details h1 { font-size: clamp(36px, 4vw, 56px); font-weight: 600; line-height: 1.22; letter-spacing: -.035em; }
.catalog-layout { display: grid; grid-template-columns: 248px minmax(0, 1fr); grid-template-areas: "filters toolbar" "filters results"; grid-template-rows: auto 1fr; gap: 24px; align-items: start; }
.catalog-filters { grid-area: filters; border: 1px solid var(--line); border-radius: 30px; background: rgba(244, 237, 229, .12); padding: 16px; }
.filter-sheet-actions { display: flex; flex-direction: column; }
.filter-sheet-actions > .glass { display: flex; width: 100%; margin-top: 12px; min-height: 44px; }
.filter-sheet-actions .filter-reset { order: 1; }
.filter-section-toggle, .filter-mobile-label { display: none; }
.filter-toggle { display: none; }
.filter-group { min-width: 0; border: 0; border-bottom: 1px solid var(--line); margin: 0 0 16px; padding: 8px 0 16px; }
.filter-section:last-of-type .filter-group { border: 0; padding-bottom: 0; margin-bottom: 0; }
.filter-group legend { padding: 0; font-weight: 500; }
.filter-category { position: relative; display: block; }
.filter-clear { width: 100%; padding: 0; border: 0; background: transparent; text-align: left; }
.filter-category input { position: absolute; opacity: 0; }
.filter-category span { display: block; width: 100%; padding: 5px 12px; min-height: 30px; border: 0; border-radius: 18px; text-align: left; font-size: 13px; background: transparent; }
.filter-category span { cursor: pointer; }
.catalog-layout > .catalog-filters .filter-category :is(input:checked + span, span:hover),
.catalog-layout > .catalog-filters .filter-clear[aria-pressed="true"] span { background: rgba(7, 37, 33, .12); }
.filter-category input:focus-visible + span { outline: 2px solid var(--green); }
.filter-swatches { display: flex; gap: 6px; }
.filter-swatch { width: 30px; height: 30px; flex-shrink: 0; border: 3px solid var(--porcelain); outline: 1px solid var(--line); border-radius: 50%; }
.swatch-white { background: #fffdf7; }
.swatch-pink { background: #dfa1ae; }
.swatch-red { background: #b94b59; }
.swatch-yellow { background: #e9c266; }
.swatch-purple { background: #aa91be; }
.swatch-mix { background: conic-gradient(#e9c266 25%, #fffdf7 0 50%, #aa91be 0 75%, #dfa1ae 0); }
.filter-any { margin-top: 8px; }
.swatch-option { position: relative; display: flex; cursor: pointer; }
.swatch-option input, .filter-sale input { position: absolute; opacity: 0; }
.swatch-option input:checked + .filter-swatch, .swatch-option input:focus-visible + .filter-swatch { outline: 2px solid var(--green); }
.filter-sale label { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 8px; font-weight: 500; cursor: pointer; }
.sale-switch { width: 36px; height: 20px; border-radius: 20px; }
.filter-sale input:focus-visible + .sale-switch { outline: 2px solid var(--green); outline-offset: 3px; }
.filter-sale input:checked + .sale-switch { position: relative; background: var(--green); }
.filter-sale input:checked + .sale-switch img { visibility: hidden; }
.filter-sale input:checked + .sale-switch::after { content: ""; position: absolute; right: 3px; top: 3px; width: 14px; height: 14px; border-radius: 50%; background: var(--porcelain); }
.filter-prices { display: flex; gap: 8px; }
.filter-prices input { min-width: 0; width: 50%; min-height: 44px; border: 1px solid var(--line); border-radius: 24px; padding: 0 8px; background: transparent; font-size: 13px; }
.filter-prices input { appearance: textfield; }
.filter-prices input::-webkit-inner-spin-button, .filter-prices input::-webkit-outer-spin-button { appearance: none; margin: 0; }
.filter-prices input::placeholder { color: #526b65; opacity: 1; }

.catalog-results { grid-area: results; min-width: 0; }
.catalog-count, .catalog-search-mobile-submit, .filter-toggle img, .catalog-sort-button .catalog-sort-mobile-icon { display: none; }
.catalog-toolbar { grid-area: toolbar; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(160px, min(308px, 34%)); gap: 12px; align-items: stretch; }
.catalog-toolbar > .glass, .catalog-search, .catalog-sort { min-height: 52px; }
.catalog-search { display: flex; align-items: center; gap: 12px; border: 1px solid var(--line); background: rgba(244, 237, 229, .12); border-radius: 30px; padding: 0 16px; }
.catalog-search input { width: 100%; min-width: 0; border: 0; padding: 0; background: transparent; font-size: 14px; }
.catalog-search input:focus { outline: none; }
.catalog-search:has(input:focus-visible) { background-color: var(--glass); }
.catalog-search input::placeholder { color: #526b65; }
.catalog-sort { position: relative; }
.catalog-sort-field {
    width: 100%;
    min-height: 52px;
    padding: 0 17px;
    border: 1px solid var(--line);
    border-radius: 26px;
    background: rgba(244, 237, 229, .12);
    cursor: pointer;
    font-size: 16px;
    line-height: 24px;
}
.catalog-sort select { appearance: none; padding-right: 48px; }
.catalog-sort-native-chevron { position: absolute; top: 14px; right: 17px; pointer-events: none; }
.catalog-sort-button { display: flex; align-items: center; justify-content: space-between; gap: 8px; text-align: left; }
.catalog-sort-button[aria-expanded="true"] { border-color: var(--green); box-shadow: inset 0 0 0 1px var(--green); }
.catalog-sort-button[aria-expanded="true"] .catalog-sort-desktop-icon { transform: rotate(180deg); }
.catalog-sort-options {
    position: absolute;
    z-index: 3;
    inset: calc(100% + 8px) 0 auto;
    display: grid;
    gap: 4px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 26px;
    background: rgba(247, 248, 245, .94);
    box-shadow: 0 8px 24px rgba(7, 37, 33, .12);
}
.catalog-sort-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-height: 44px;
    padding: 0 12px;
    border: 0;
    border-radius: 18px;
    background: transparent;
    text-align: left;
}
.catalog-sort-option:hover, .catalog-sort-option[aria-selected="true"] { background: var(--sage); }
.catalog-sort-option[aria-selected="false"] img { visibility: hidden; }
.catalog-sort img { flex: none; }
.store-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.store-card { overflow: hidden; border: 1px solid rgba(244, 237, 229, .28); border-radius: 30px; box-shadow: var(--shadow); background: rgba(244, 237, 229, .12); }
.store-card a { display: block; height: 100%; }
.store-card a:focus-visible { outline-offset: -4px; }
.store-card:hover { box-shadow: 0 10px 26px rgba(7, 37, 33, .14); }
.store-card-image { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }
.store-placeholder { display: grid; place-items: center; background: var(--cream); color: #526b65; }
.store-card-copy { padding: 14px 18px 20px; }
.store-card-copy h3 { font-size: 15px; line-height: 22px; font-weight: 400; overflow-wrap: anywhere; }
.store-card-copy p { margin-top: 10px; font-size: clamp(20px, 1.8vw, 26px); font-weight: 500; }
.catalog-empty { grid-column: 1 / -1; padding: 48px 24px; border: 1px dashed var(--line); border-radius: 30px; text-align: center; }
.catalog-empty h2 { font-size: 24px; font-weight: 500; }
.catalog-empty p { margin-top: 8px; }
.catalog-pagination { display: flex; justify-content: center; gap: 12px; margin-top: 30px; }
.catalog-pagination:empty { display: none; }
.load-more { width: min(250px, 100%); min-height: 60px; box-shadow: var(--shadow); }
.load-more[aria-busy="true"] { opacity: .55; pointer-events: none; }

.loyalty-wrap { padding: 24px 0; }
.loyalty { display: flex; align-items: center; justify-content: space-between; gap: 36px; min-height: 220px; padding: 40px; border-radius: 36px; background: rgba(42, 91, 85, .14); }
.loyalty h2, .custom-order h2 { font-size: clamp(24px, 2.3vw, 32px); line-height: 1.25; font-weight: 500; margin-block: 8px 12px; }
.loyalty .glass { flex: 0 0 248px; min-height: 60px; }
.custom-wrap { padding-block: 48px 64px; background: var(--sage); }
.custom-order { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; padding: 8px; }
.custom-order > div { display: flex; align-items: flex-start; flex-direction: column; justify-content: center; padding: 32px; background: rgba(7, 37, 33, .14); border-radius: 30px; }
.custom-order > img { width: 100%; height: 344px; object-fit: cover; border-radius: 30px; }
.custom-order .glass { margin-top: 16px; min-height: 60px; }

.product-layout { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 48px; }
.product-cover { display: block; width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 36px; }
.product-cover.store-placeholder { display: grid; }
.product-gallery-main, .product-gallery-photos { position: relative; }
@media (min-width: 768px) {
    .product-gallery-photos > :not([data-active]) { display: none; }
}
.product-gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    min-height: 33px;
    padding: 0;
    border-color: rgba(244, 237, 229, .28);
    background: rgba(244, 237, 229, .12);
    backdrop-filter: blur(16px);
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, .16), 0 8px 24px rgba(10, 8, 8, .16);
}
.product-gallery-back { left: 16px; }
.product-gallery-back img { transform: rotate(180deg); }
.product-gallery-next { right: 16px; }
.product-gallery-arrow:hover:not(:disabled) { background: rgba(244, 237, 229, .24); }
.product-gallery-arrow:active:not(:disabled) { background: rgba(244, 237, 229, .36); }
.product-gallery-arrow:focus-visible { outline-color: var(--cream); }
@media (hover: hover) and (pointer: fine) {
    .product-gallery-arrow { opacity: 0; pointer-events: none; }
    .product-gallery-main:hover .product-gallery-arrow,
    .product-gallery-arrow:focus-visible { opacity: 1; pointer-events: auto; }
}
.product-thumbs { display: flex; gap: 16px; margin-top: 16px; overflow-x: auto; padding: 3px; }
.product-thumbs button { padding: 0; flex: 0 0 calc((100% - 48px) / 4); overflow: hidden; border: 1px solid transparent; border-radius: 22px; background: transparent; }
.product-thumbs button[aria-pressed="true"] { border-color: var(--green); }
.product-thumbs img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.product-details { display: flex; flex-direction: column; align-items: flex-start; min-height: clamp(450px, 60vw, 864px); padding: 32px; border: 1px solid rgba(244, 237, 229, .28); border-radius: 36px; background: rgba(244, 237, 229, .12); box-shadow: var(--shadow); }
.product-details h1 { margin-block: 8px 12px; overflow-wrap: anywhere; }
.product-availability summary { padding: 0 16px; min-height: 36px; font-size: 13px; background: rgba(7, 37, 33, .12); }
.availability-note { left: 0; right: auto; width: min(360px, 74vw); font-size: 14px; }
.availability-note::before { content: ""; position: absolute; inset: -9px 0 auto; height: 9px; }
.product-price { margin-top: 20px; font-size: 32px; line-height: 40px; }
.product-description { margin: 20px 0 32px; overflow-wrap: anywhere; }
.product-description h2 { margin: 0 0 8px; font-size: 16px; font-weight: 500; }
.product-description p + p { margin-top: 10px; }
.product-description img { max-width: 100%; height: auto; }
.product-description a { text-decoration: underline; }
.product-order { display: flex; gap: 16px; width: 100%; margin-top: auto; }
.product-order > .glass { flex: 1; min-height: 60px; }
.quantity-stepper { display: flex; align-items: center; justify-content: center; gap: 4px; min-height: 60px; padding: 0 8px; border: 1px solid var(--line); border-radius: 30px; }
.quantity-stepper button, .store-icon-button { display: grid; place-items: center; border: 0; border-radius: 24px; background: transparent; width: 38px; height: 40px; padding: 0; }
.quantity-stepper button:hover:not(:disabled), .store-icon-button:hover { background: var(--glass); }
.quantity-stepper button:disabled { opacity: .4; }
.quantity-stepper output { min-width: 22px; text-align: center; }
.product-feedback:not(:empty) { margin-top: 10px; font-size: 13px; }
.related-section { padding-block: 40px 64px; }
.related-section h2 { font-size: 32px; font-weight: 400; margin-bottom: 24px; }

.store-dialog { width: min(calc(100% - 32px), 460px); max-height: 85dvh; border: 1px solid var(--line); border-radius: 24px; padding: 24px; background: var(--porcelain); color: var(--ink); box-shadow: var(--shadow); }
.store-dialog::backdrop { background: rgba(7, 37, 33, .4); }
.dialog-heading, .basket-items li { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.dialog-heading h2 { font-weight: 500; }
.store-dialog > p { margin-top: 12px; }
.basket-items { list-style: none; padding: 0; }
.basket-items li { padding-block: 10px; border-bottom: 1px solid var(--line); }
.basket-items .glass { min-height: 38px; padding-inline: 12px; }
.basket-total { font-size: 20px; font-weight: 500; }

@media (max-width: 1080px) {
    .catalog-layout { grid-template-columns: 226px minmax(0, 1fr); gap: 16px; }
    .catalog-filters { padding: 14px; }
    .filter-swatches { gap: 5px; }
    .filter-swatch { width: 27px; height: 27px; }
    .store-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
    .product-layout { gap: 24px; }
}
@media (max-width: 800px) {
    .catalog-section, .product-section { padding-block: 24px 40px; }
    .catalog-heading { min-height: 0; align-items: flex-start; flex-direction: column; }
    .catalog-layout { grid-template-columns: minmax(0, 1fr); grid-template-areas: "toolbar" "filters" "results"; grid-template-rows: auto; }
    .catalog-toolbar { grid-template-columns: minmax(0, 1fr) auto; }
    .catalog-sort { grid-column: 1 / -1; }
    .catalog-layout.is-enhanced .filter-toggle { display: inline-flex; justify-self: start; }
    .catalog-layout.is-enhanced > .catalog-filters { display: none; }
    .catalog-filters { padding: 18px; }
    .loyalty { gap: 16px; padding: 24px; }
    .loyalty .glass { flex: none; min-height: 46px; }
    .product-details { min-height: 440px; padding: 20px; }
    .product-order { gap: 8px; }
}
@media (max-width: 600px) {
    .store-crumbs { flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
    .catalog-heading { gap: 4px; }
    .store-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .store-card { border-radius: 16px; }
    .store-card-image { aspect-ratio: 3 / 4; border-radius: 15px; }
    .store-card-copy { padding: 9px 11px 12px; }
    .store-card-copy h3 { font-size: 13px; line-height: 18px; }
    .store-card-copy p { margin-top: 4px; }
    .product-layout, .custom-order { grid-template-columns: 1fr; gap: 16px; }
    .product-cover, .product-details { border-radius: 22px; }
    .product-details { min-height: 0; }
    .product-order > .glass, .quantity-stepper { min-height: 48px; }
    .product-order > .glass { padding-inline: 10px; }
    .quantity-stepper button { width: 30px; }
    .loyalty { flex-direction: column; align-items: flex-start; border-radius: 24px; }
    .custom-wrap { padding-block: 24px; }
    .custom-order { padding: 0; }
    .custom-order > img { height: 215px; }
    .custom-order > div { padding: 20px; }
}

.additions-section { background: var(--sage); padding-block: 40px 48px; }
.additions-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 24px; }
.additions-heading h2 { font-size: clamp(22px, 3vw, 32px); font-weight: 400; }
.additions-controls { display: flex; gap: 12px; }
.additions-controls button { min-height: 33px; width: 60px; padding: 0; }
.additions-back img { transform: rotate(180deg); }
.additions-track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 72px) / 4); gap: 24px; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x mandatory; padding-bottom: 18px; }
.additions-track::-webkit-scrollbar { display: none; }
.additions-track .store-card { scroll-snap-align: start; }
@media (max-width: 600px) {
    .additions-section { padding-block: 24px; }
    .additions-controls { gap: 6px; }
    .additions-controls button { width: 44px; }
    .additions-track { grid-auto-columns: calc((100% - 12px) / 2); gap: 12px; }
}


.store-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; }
.store-old-price { font-size: .68em; font-weight: 400; color: #526b65; }

@media (max-width: 767px) {
    .catalog-section { padding-top: 8px; }
    .catalog-section .store-crumbs, .catalog-heading > p { display: none; }
    .catalog-heading { margin-bottom: 12px; }
    .catalog-heading h1 { font: 400 28px/36px Onest, system-ui, sans-serif; letter-spacing: 0; }
    .catalog-layout { gap: 0; }
    .catalog-toolbar { grid-template-columns: minmax(0, 130px) minmax(0, 1fr); gap: 12px; }
    .catalog-search { grid-column: 1 / -1; gap: 12px; }
    .catalog-search, .catalog-sort-field, .catalog-toolbar .filter-toggle {
        background: rgba(42, 91, 85, .12);
        border-color: rgba(42, 91, 85, .20);
        border-radius: 26px;
    }
    .catalog-search input, .catalog-sort-field, .catalog-toolbar .filter-toggle { font-size: 13px; line-height: 18px; font-weight: 400; }
    .catalog-search input::placeholder { color: var(--ink); opacity: 1; }
    .catalog-toolbar .catalog-search-submit, .catalog-search-desktop-icon, .catalog-sort-button .catalog-sort-desktop-icon { display: none; }
    .catalog-search-mobile-submit { display: grid; place-items: center; flex: 0 0 20px; min-height: 44px; padding: 0; border: 0; background: none; }
    .catalog-sort { grid-column: 2; min-height: 44px; }
    .catalog-sort-field, .catalog-toolbar .filter-toggle { min-height: 44px; }
    .catalog-sort-native-chevron { top: 10px; }
    .catalog-sort-button { justify-content: center; padding-inline: 8px; }
    .catalog-toolbar .filter-toggle { width: 100%; padding: 0 8px; }
    .filter-toggle img, .catalog-sort-button .catalog-sort-mobile-icon { display: block; flex: none; }
    .catalog-filters { margin-top: 12px; }
    .catalog-count { display: block; margin: 12px 0 16px; font-size: 13px; line-height: 18px; }
    .catalog-section .store-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; }
    .catalog-section .store-card { border-radius: 14px; box-shadow: none; }
    .catalog-section .store-card-image { aspect-ratio: 3 / 4; border-radius: 14px; }
    .catalog-section .store-card-copy { padding: 12px; }
    .catalog-section .store-card-copy p { margin-top: 4px; font-size: 20px; line-height: 28px; }
    .catalog-section .catalog-pagination { margin-top: 24px; }
    .catalog-section .load-more { width: 100%; min-height: 52px; }
    .catalog-section ~ :is(.loyalty-wrap, .custom-wrap):not(:target) { display: none; }
}

html.catalog-filter-open { overflow: hidden; }

.catalog-filter-sheet {
    position: fixed;
    inset: auto 0 0;
    width: 100%;
    max-width: none;
    height: min(740px, calc(100dvh - 24px));
    max-height: none;
    margin: 0 auto;
    padding: 16px;
    padding-bottom: max(16px, env(safe-area-inset-bottom));
    border: 1px solid rgba(244, 237, 229, .28);
    border-radius: 30px;
    background: rgba(247, 248, 245, .94);
    color: var(--ink);
    overflow: hidden;
    translate: 0 var(--filter-drag, 0px);
    -webkit-tap-highlight-color: transparent;
}
.catalog-filter-sheet[open] { display: flex; flex-direction: column; gap: 12px; animation: filter-sheet-in 220ms ease-out; }
.catalog-filter-sheet::backdrop { background: rgba(8, 16, 15, .72); backdrop-filter: blur(2px); }
@keyframes filter-sheet-in { from { transform: translateY(100%); } }

.filter-sheet-header { flex: none; touch-action: none; user-select: none; }
.filter-sheet-handle { display: block; width: 40px; height: 4px; margin-bottom: 10px; border-radius: 2px; background: rgba(42, 91, 85, .28); }
.filter-sheet-heading { display: flex; align-items: center; justify-content: space-between; }
.filter-sheet-heading h2 { font-size: 28px; line-height: 36px; font-weight: 400; }
.filter-sheet-close {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--cream);
    border-radius: 30px;
    background: rgba(244, 237, 229, .12);
}

.filter-sheet-close-icon {
    width: 24px;
    height: 24px;
    background: var(--ink);
    mask: url("filter-sheet-close.svg") center no-repeat;
}

.catalog-filter-sheet .catalog-filters {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-height: 0;
    gap: 12px;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
}
.catalog-filter-sheet .filter-sheet-options {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-height: 0;
    overflow: auto;
    overscroll-behavior: contain;
}
.catalog-filter-sheet .filter-section { border-bottom: 1px solid var(--line); }
.catalog-filter-sheet .filter-section-sale { order: 1; }
.catalog-filter-sheet .filter-section-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 64px;
    padding: 12px;
    border: 0;
    background: transparent;
    text-align: left;
}
.filter-section-toggle[aria-expanded="true"] img { transform: rotate(180deg); }
.catalog-filter-sheet .filter-section-toggle[aria-expanded="false"] + .filter-section-content { display: none; }
.catalog-filter-sheet .filter-group { margin: 0; padding: 0 0 12px; border: 0; }
.catalog-filter-sheet :is(.filter-section-sale, .filter-section-price) .filter-group { padding-inline: 12px; }
.catalog-filter-sheet .filter-group legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.catalog-filter-sheet .filter-swatches { flex-direction: column; gap: 0; }
.catalog-filter-sheet :is(.swatch-option, .filter-category) {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 52px;
    margin-block: 4px;
    padding: 12px;
    border-radius: 26px;
    cursor: pointer;
}
.catalog-filter-sheet :is(.swatch-option, .filter-category):is(:has(input:checked), [aria-pressed="true"]) { background: rgba(42, 91, 85, .12); }
.catalog-filter-sheet :is(.swatch-option, .filter-category)::before {
    content: "";
    box-sizing: border-box;
    width: 24px;
    height: 24px;
    flex: none;
    border: 1px solid var(--green);
    border-radius: 6px;
    background: rgba(244, 237, 229, .12);
}
.catalog-filter-sheet :is(.swatch-option, .filter-category):is(:has(input:checked), [aria-pressed="true"])::before {
    background: var(--line) url("sort-check.svg") center no-repeat;
}
.catalog-filter-sheet :is(.swatch-option, .filter-category):has(input:focus-visible) { outline: 2px solid var(--green); outline-offset: -2px; }
.catalog-filter-sheet .filter-category span { width: auto; min-height: 0; padding: 0; font-size: 16px; background: none; }
.catalog-filter-sheet .filter-category input:focus-visible + span { outline: none; }
.catalog-filter-sheet .swatch-option input:is(:checked, :focus-visible) + .filter-swatch { outline: none; }
.catalog-filter-sheet .filter-swatch { width: 24px; height: 24px; border: 0; outline: none; }
.catalog-filter-sheet .filter-color-name { position: static; width: auto; height: auto; overflow: visible; clip: auto; }
.catalog-filter-sheet .filter-section-color:not(:has(.swatch-option input:checked)) .filter-any { display: none; }
.catalog-filter-sheet .filter-sale label { min-height: 44px; }

.catalog-filter-sheet .filter-sheet-actions {
    flex: none;
    flex-direction: row;
    align-items: center;
    gap: 12px;
}
.catalog-filter-sheet .filter-sheet-actions > .glass { min-height: 52px; margin: 0; font-size: 16px; }
.catalog-filter-sheet .filter-reset { order: 0; width: 100px; flex: none; padding: 0; border: 0; background: transparent; }
.catalog-filter-sheet .filter-submit { border-color: rgba(7, 37, 33, .28); box-shadow: 0 3px 6px rgba(7, 37, 33, .05); padding-inline: 12px; }
.catalog-filter-sheet .filter-desktop-label { display: none; }
.catalog-filter-sheet .filter-mobile-label { display: inline; }

@media (prefers-reduced-motion: reduce) {
    .catalog-filter-sheet[open] { animation: none; }
}

@media (max-width: 767px) {
    .product-layout { grid-template-columns: minmax(0, 1fr); gap: 24px; }
    .product-cover { border-radius: 14px; }
    .product-gallery-photos {
        display: flex;
        overflow-x: auto;
        overscroll-behavior-inline: contain;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
    }
    .product-gallery-photos > .product-cover { flex: 0 0 100%; min-width: 0; scroll-snap-align: start; scroll-snap-stop: always; }
    .product-gallery-arrow { display: none; }
    .product-thumbs { gap: 12px; margin-top: 12px; padding: 0; scrollbar-width: none; }
    .product-gallery-photos::-webkit-scrollbar, .product-thumbs::-webkit-scrollbar { display: none; }
    .product-thumbs button { flex-basis: calc((100% - 36px) / 4); height: 64px; border: 0; border-radius: 16px; }
    .product-thumbs button[aria-pressed="true"] { outline: 2px solid var(--green); outline-offset: -2px; }
    .product-thumbs button:focus-visible { outline-offset: -2px; }
    .product-thumbs img { display: block; height: 100%; aspect-ratio: auto; }
}
