:root {
    color-scheme: light;
    --color-ink: #18181b;
    --color-muted: #667085;
    --color-soft: #f6f8f5;
    --color-panel: #ffffff;
    --color-line: #dfe6e2;
    --color-accent: #0f766e;
    --color-dark: #18181b;
    --shadow-soft: 0 18px 50px rgb(24 24 27 / 8%);
    --radius-xl: 24px;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: var(--color-ink);
    background: var(--color-soft);
}

body.cart-open {
    overflow: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
}

img {
    max-width: 100%;
}

.site-shell {
    width: min(1160px, calc(100vw - 32px));
    margin: 0 auto;
}

.announcement {
    background: var(--color-dark);
    color: #fff;
    text-align: center;
    padding: 9px 16px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgb(246 248 245 / 88%);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--color-line);
}

.header-inner {
    min-height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand,
.footer-brand {
    font-family: Georgia, serif;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.nav {
    display: flex;
    gap: 24px;
    color: var(--color-muted);
    font-size: 0.95rem;
}

.nav a:hover,
.section-heading a:hover {
    color: var(--color-ink);
}

.cart-button {
    border: 0;
    background: transparent;
    color: var(--color-ink);
    cursor: pointer;
    font-weight: 700;
    padding: 8px 0;
}

main.site-shell {
    padding: 28px 0 72px;
}

.hero {
    display: block;
}

.hero-copy {
    min-height: 420px;
    border-radius: var(--radius-xl);
    overflow: hidden;
    display: grid;
    align-content: center;
    gap: 18px;
    padding: clamp(28px, 5vw, 64px);
    background:
        radial-gradient(circle at 84% 18%, rgb(15 118 110 / 12%), transparent 28%),
        linear-gradient(135deg, #ffffff, #edf5f2);
    border: 1px solid var(--color-line);
}

.hero h1,
.section h2,
.collection-hero h1,
.product-info h1 {
    margin: 0;
    font-family: Georgia, serif;
    font-weight: 500;
    line-height: 1.02;
}

.hero h1 {
    font-size: clamp(3rem, 8vw, 6.2rem);
}

.hero-copy p {
    max-width: 34rem;
    color: var(--color-muted);
    line-height: 1.6;
}

.eyebrow {
    margin: 0;
    color: var(--color-accent);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.primary-link,
.secondary-link,
.add-cart-button,
.checkout-button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-height: 44px;
    border-radius: 999px;
    padding: 0 22px;
    font-weight: 800;
    cursor: pointer;
}

.primary-link,
.add-cart-button,
.checkout-button {
    border: 1px solid var(--color-dark);
    background: var(--color-dark);
    color: #fff;
}

.secondary-link {
    border: 1px solid var(--color-line);
    background: transparent;
    color: var(--color-ink);
    cursor: pointer;
}

.checkout-button:disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

.service-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin-top: 18px;
    border: 1px solid var(--color-line);
    border-radius: 18px;
    background: var(--color-panel);
    overflow: hidden;
}

.service-strip div {
    display: grid;
    gap: 4px;
    padding: 22px;
    text-align: center;
}

.service-strip div + div {
    border-left: 1px solid var(--color-line);
}

.service-strip span,
.breadcrumbs,
.product-description-block,
.site-footer p,
.cart-line-variant,
.cart-empty {
    color: var(--color-muted);
}

.section {
    margin-top: 56px;
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}

.section-heading h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

.section-heading a {
    color: var(--color-muted);
    font-weight: 700;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.product-grid.compact {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.product-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--color-line);
    border-radius: 20px;
    background: var(--color-panel);
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.product-card[hidden] {
    display: none;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-soft);
}

.product-image,
.image-placeholder {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: #eef3f1;
}

.product-image img,
.main-product-image,
.thumbnail-button img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.product-card:hover .product-image img {
    transform: scale(1.04);
}

.product-image img {
    transition: transform 420ms ease;
}

.product-card-body {
    display: grid;
    gap: 8px;
    padding: 16px;
}

.product-title {
    font-weight: 700;
    line-height: 1.35;
}

.product-swatches {
    display: flex;
    gap: 6px;
    min-height: 14px;
}

.product-swatches span {
    width: 14px;
    height: 14px;
    border: 1px solid rgb(0 0 0 / 12%);
    border-radius: 999px;
}

.product-price,
.detail-price {
    font-weight: 850;
}

.product-price small,
.detail-price small {
    margin-right: 6px;
    color: var(--color-muted);
    font-size: 0.8rem;
    font-weight: 500;
}

.empty-state {
    padding: 44px;
    border: 1px dashed var(--color-line);
    border-radius: 18px;
    background: var(--color-panel);
    color: var(--color-muted);
    text-align: center;
}

.breadcrumbs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 24px;
    font-size: 0.9rem;
}

.collection-hero {
    display: grid;
    gap: 12px;
    padding: clamp(32px, 6vw, 72px);
    border-radius: var(--radius-xl);
    background: var(--color-dark);
    color: #fff;
}

.collection-hero h1 {
    font-size: clamp(2.5rem, 6vw, 5rem);
}

.collection-hero p:last-child {
    color: rgb(255 255 255 / 78%);
}

.collection-layout {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}

.filter-panel {
    position: sticky;
    top: 94px;
    display: grid;
    gap: 18px;
    max-height: calc(100dvh - 118px);
    overflow-y: auto;
    border: 1px solid var(--color-line);
    border-radius: 20px;
    background: var(--color-panel);
    padding: 20px;
}

.filter-header,
.collection-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.filter-header h2 {
    margin: 0;
    font-family: Georgia, serif;
    font-size: 1.35rem;
    font-weight: 500;
}

.filter-header button,
#clear-filters-empty {
    border: 0;
    background: transparent;
    color: var(--color-muted);
    cursor: pointer;
    padding: 0;
    text-decoration: underline;
}

.filter-search,
.filter-block {
    display: grid;
    gap: 10px;
    border-top: 1px solid var(--color-line);
    padding-top: 16px;
}

.filter-search span,
.filter-block h3,
.collection-toolbar label span {
    color: var(--color-muted);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.filter-search input,
.collection-toolbar select {
    width: 100%;
    min-height: 42px;
    border: 1px solid var(--color-line);
    border-radius: 12px;
    background: #fff;
    color: var(--color-ink);
    padding: 0 13px;
}

.filter-stack {
    display: grid;
    gap: 10px;
}

.filter-row {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 0.95rem;
}

.filter-row input,
.filter-chip input {
    accent-color: var(--color-dark);
}

.swatch-dot {
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
    border: 1px solid rgb(0 0 0 / 14%);
    border-radius: 999px;
}

.filter-chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-chip {
    cursor: pointer;
}

.filter-chip input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
}

.filter-chip span {
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    border: 1px solid var(--color-line);
    border-radius: 999px;
    padding: 0 13px;
    font-weight: 700;
}

.filter-chip:has(input:checked) span {
    border-color: var(--color-dark);
    background: var(--color-dark);
    color: #fff;
}

.collection-toolbar {
    margin-bottom: 18px;
    color: var(--color-muted);
}

.collection-toolbar strong {
    color: var(--color-ink);
}

.collection-toolbar label {
    display: flex;
    align-items: center;
    gap: 10px;
}

#filtered-empty-state {
    margin-top: 18px;
}

.product-detail {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
    gap: 44px;
    align-items: start;
}

.product-gallery {
    min-width: 0;
}

.gallery-main {
    position: relative;
}

.gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 1px solid var(--color-line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.88);
    color: var(--color-ink);
    cursor: pointer;
    padding: 0;
}

.gallery-arrow:hover {
    background: #fff;
}

.gallery-arrow--prev {
    left: 12px;
}

.gallery-arrow--next {
    right: 12px;
}

.main-product-image,
.image-placeholder {
    aspect-ratio: 4 / 5;
    border-radius: var(--radius-xl);
    background: #eef3f1;
}

.thumbnail-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

.thumbnail-button {
    width: 74px;
    aspect-ratio: 1;
    overflow: hidden;
    border: 1px solid var(--color-line);
    border-radius: 14px;
    background: #fff;
    cursor: pointer;
    padding: 0;
}

.thumbnail-button.is-active {
    outline: 2px solid var(--color-dark);
    outline-offset: 2px;
}

.product-info {
    position: sticky;
    top: 96px;
    display: grid;
    gap: 20px;
}

.product-info h1 {
    font-size: clamp(2.2rem, 5vw, 4rem);
}

.detail-price {
    margin: 0;
    font-size: 2rem;
}

.option-panel {
    display: grid;
    gap: 18px;
    padding: 18px;
    border: 1px solid var(--color-line);
    border-radius: 18px;
    background: var(--color-panel);
}

.option-group {
    display: grid;
    gap: 10px;
}

.option-group > span {
    color: var(--color-muted);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.option-values {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.option-value {
    min-width: 42px;
    min-height: 40px;
    border: 1px solid var(--color-line);
    border-radius: 12px;
    background: #fff;
    color: var(--color-ink);
    cursor: pointer;
    padding: 8px 13px;
    font-weight: 700;
}

.option-value.is-active {
    border-color: var(--color-dark);
    background: var(--color-dark);
    color: #fff;
}

.option-swatch {
    width: 42px;
    border-radius: 999px;
    color: transparent;
    padding: 0;
}

.option-swatch span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
}

.option-swatch.is-active {
    box-shadow: 0 0 0 2px var(--color-soft), 0 0 0 4px var(--color-dark);
}

.add-cart-button {
    width: 100%;
    min-height: 52px;
    cursor: pointer;
    font-size: 1rem;
}

.product-benefits {
    display: grid;
    gap: 8px;
    color: var(--color-muted);
    font-size: 0.94rem;
}

.product-benefits span::before {
    content: "+";
    color: #15803d;
    font-weight: 900;
    margin-right: 8px;
}

.product-description-block {
    border-top: 1px solid var(--color-line);
    padding-top: 20px;
    line-height: 1.7;
}

.details-panel {
    border-top: 1px solid var(--color-line);
    padding-top: 14px;
}

.details-panel summary {
    cursor: pointer;
    font-weight: 800;
}

.details-panel dl {
    display: grid;
    gap: 0;
    margin: 12px 0 0;
}

.details-panel div {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 16px;
    border-top: 1px solid var(--color-line);
    padding: 10px 0;
}

.details-panel dt {
    color: var(--color-muted);
    font-weight: 700;
}

.details-panel dd {
    margin: 0;
}

.site-footer {
    background: var(--color-dark);
    color: rgb(255 255 255 / 72%);
    margin-top: 64px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 36px;
    padding: 52px 0;
}

.footer-grid h2 {
    margin: 0 0 12px;
    color: #fff;
    font-size: 0.76rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.footer-grid a {
    display: block;
}

.footer-brand {
    color: #fff;
    margin-bottom: 12px;
}

.cart-overlay {
    position: fixed;
    inset: 0;
    z-index: 40;
    visibility: hidden;
    background: rgb(24 24 27 / 45%);
    opacity: 0;
    transition: opacity 220ms ease;
}

.cart-overlay.open {
    visibility: visible;
    opacity: 1;
}

.cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 50;
    display: flex;
    width: min(430px, 92vw);
    height: 100dvh;
    flex-direction: column;
    background: #fff;
    box-shadow: -18px 0 50px rgb(24 24 27 / 16%);
    transform: translateX(100%);
    transition: transform 260ms ease;
}

.cart-drawer.open {
    transform: translateX(0);
}

.cart-header,
.cart-footer {
    padding: 18px 20px;
}

.cart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--color-line);
}

.cart-header h2 {
    margin: 0;
    font-family: Georgia, serif;
    font-size: 1.55rem;
}

.cart-header button {
    border: 0;
    background: transparent;
    color: var(--color-muted);
    cursor: pointer;
    font-size: 1.2rem;
}

.cart-body {
    flex: 1;
    overflow-y: auto;
    padding: 0 20px;
}

.cart-footer {
    border-top: 1px solid var(--color-line);
}

.cart-subtotal,
.cart-line-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.cart-subtotal {
    margin-bottom: 12px;
}

.cart-line {
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 14px;
    border-bottom: 1px solid var(--color-line);
    padding: 18px 0;
}

.cart-line-img {
    width: 64px;
    height: 82px;
    object-fit: cover;
    border-radius: 10px;
    background: #eef3f1;
}

.cart-line-title {
    display: block;
    font-weight: 800;
    line-height: 1.35;
}

.cart-line-variant {
    margin-top: 2px;
    font-size: 0.86rem;
}

.cart-line-row {
    margin-top: 10px;
}

.cart-line-price {
    font-weight: 800;
}

.qty {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--color-line);
    border-radius: 999px;
}

.qty button {
    width: 30px;
    height: 30px;
    border: 0;
    background: none;
    color: var(--color-muted);
    cursor: pointer;
}

.qty span {
    min-width: 26px;
    text-align: center;
}

.cart-line-remove {
    margin-top: 8px;
    border: 0;
    background: none;
    color: var(--color-muted);
    cursor: pointer;
    padding: 0;
    text-decoration: underline;
}

.cart-empty {
    padding: 48px 0;
    text-align: center;
}

@media (max-width: 920px) {
    .product-detail {
        grid-template-columns: 1fr;
    }

    .hero-copy {
        min-height: 360px;
    }

    .collection-layout {
        grid-template-columns: 1fr;
    }

    .filter-panel {
        position: static;
        max-height: none;
    }

    .product-info {
        position: static;
    }

    .product-grid,
    .product-grid.compact {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 680px) {
    .announcement {
        font-size: 0.62rem;
    }

    .header-inner {
        gap: 14px;
    }

    .nav {
        display: none;
    }

    .service-strip,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .service-strip div + div {
        border-top: 1px solid var(--color-line);
        border-left: 0;
    }

    .product-grid,
    .product-grid.compact {
        gap: 12px;
    }

    .product-card-body {
        padding: 12px;
    }

    .details-panel div {
        grid-template-columns: 1fr;
        gap: 2px;
    }
}
