:root {
    --ink: #1c211d;
    --paper: #f4f1ea;
    --white: #fff;
    --moss: #596b55;
    --moss-dark: #394636;
    --clay: #b87352;
    --line: #d8d4ca;
    --muted: #716f68;
    --serif: "Fraunces", Georgia, serif;
    --sans: "DM Sans", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }

.demo-notice {
    display: flex;
    justify-content: center;
    gap: 1rem;
    padding: .55rem 1rem;
    background: var(--ink);
    color: #fff;
    font-size: .72rem;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.demo-notice span { color: #c9d2c6; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    border-bottom: 1px solid rgba(28, 33, 29, .12);
    background: rgba(244, 241, 234, .94);
    backdrop-filter: blur(16px);
}
.header-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    width: min(100% - 3rem, 1360px);
    height: 82px;
    margin: auto;
}
.brand { display: inline-flex; align-items: center; gap: .75rem; width: max-content; font-family: var(--serif); font-size: 1.25rem; font-weight: 600; }
.brand-mark { display: grid; width: 38px; height: 38px; place-items: center; border: 1px solid var(--ink); border-radius: 50%; font-family: var(--sans); font-size: .67rem; font-weight: 700; letter-spacing: .05em; }
.main-nav { display: flex; gap: 2.25rem; font-size: .84rem; font-weight: 600; }
.main-nav a { position: relative; padding: 1rem 0; }
.main-nav a::after { position: absolute; right: 0; bottom: .65rem; left: 0; height: 1px; background: var(--ink); content: ""; transform: scaleX(0); transition: transform .25s; }
.main-nav a:hover::after { transform: scaleX(1); }
.header-actions { display: flex; justify-content: flex-end; gap: .25rem; }
.icon-button { display: grid; position: relative; width: 44px; height: 44px; padding: 0; place-items: center; border: 0; border-radius: 50%; background: transparent; cursor: pointer; transition: background .2s; }
.icon-button:hover { background: rgba(28, 33, 29, .08); }
.icon-button svg { width: 21px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.6; }
.cart-count { position: absolute; top: 0; right: -1px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 20px; background: var(--clay); color: #fff; font-size: .68rem; font-weight: 700; line-height: 19px; }
.search-panel { padding: 1.3rem max(1.5rem, calc((100vw - 820px) / 2)); border-top: 1px solid var(--line); background: #fff; }
.search-panel label { display: block; margin-bottom: .6rem; font-family: var(--serif); font-size: 1.4rem; }
.search-field { display: flex; align-items: center; gap: .8rem; border-bottom: 1px solid var(--ink); }
.search-field svg { width: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.search-field input { width: 100%; padding: .8rem 0; border: 0; outline: 0; font-size: 1rem; }

.hero { position: relative; min-height: 710px; overflow: hidden; }
.hero-image { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20, 25, 21, .18), transparent 60%), url("../img/shop/hero.jpg") center/cover; }
.hero-card { position: absolute; top: 50%; left: max(1.5rem, calc((100vw - 1360px) / 2)); width: min(510px, calc(100% - 3rem)); padding: 3.8rem; background: rgba(244, 241, 234, .95); transform: translateY(-50%); }
.eyebrow { margin: 0 0 .8rem; color: var(--moss); font-size: .7rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.hero h1 { margin: 0; font-family: var(--serif); font-size: clamp(4rem, 6vw, 6.5rem); font-weight: 500; letter-spacing: -.055em; line-height: .88; }
.hero-card > p:not(.eyebrow) { max-width: 380px; margin: 1.7rem 0 2rem; color: #555952; font-size: 1.05rem; line-height: 1.7; }
.primary-link { display: inline-flex; align-items: center; gap: 1.4rem; padding: 1rem 1.25rem; background: var(--ink); color: #fff; font-size: .82rem; font-weight: 700; transition: background .2s; }
.primary-link:hover { background: var(--moss-dark); }
.primary-link span { font-size: 1.1rem; }
.hero-caption { position: absolute; right: max(1.5rem, calc((100vw - 1360px) / 2)); bottom: 2rem; margin: 0; color: #fff; font-family: var(--serif); font-size: .95rem; line-height: 1.45; text-align: right; text-shadow: 0 1px 6px rgba(0,0,0,.45); }

.benefits { display: grid; grid-template-columns: repeat(3, 1fr); width: min(100% - 3rem, 1360px); margin: auto; padding: 2.3rem 0; border-bottom: 1px solid var(--line); }
.benefits article { display: flex; gap: 1.2rem; align-items: flex-start; padding: 0 2rem; border-right: 1px solid var(--line); }
.benefits article:first-child { padding-left: 0; }
.benefits article:last-child { border: 0; }
.benefits article > span { color: var(--clay); font-family: var(--serif); font-size: 1.4rem; }
.benefits strong { font-size: .9rem; }
.benefits p { margin: .35rem 0 0; color: var(--muted); font-size: .78rem; line-height: 1.5; }

.collection { width: min(100% - 3rem, 1360px); margin: auto; padding: 8rem 0; }
.section-heading { display: grid; grid-template-columns: 1fr 390px; align-items: end; gap: 3rem; }
.section-heading h2, .story h2 { margin: 0; font-family: var(--serif); font-size: clamp(3.2rem, 5vw, 5.5rem); font-weight: 500; letter-spacing: -.04em; line-height: .95; }
.section-heading > p { margin: 0; color: var(--muted); line-height: 1.7; }
.catalogue-toolbar { display: flex; justify-content: space-between; align-items: center; margin: 4rem 0 2rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.filters { display: flex; flex-wrap: wrap; gap: .6rem; }
.filter { padding: .7rem 1.05rem; border: 1px solid transparent; border-radius: 30px; background: transparent; font-size: .78rem; font-weight: 600; cursor: pointer; }
.filter:hover { border-color: #aaa89f; }
.filter.active { border-color: var(--ink); background: var(--ink); color: #fff; }
.result-count { color: var(--muted); font-size: .78rem; }
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 3.5rem 1.2rem; }
.product-card { min-width: 0; }
.product-visual { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: #e5e0d6; }
.product-visual img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2,.7,.2,1); }
.product-card:hover .product-visual img { transform: scale(1.04); }
.product-badge { position: absolute; top: .9rem; left: .9rem; padding: .45rem .7rem; background: var(--paper); font-size: .66rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.add-product { position: absolute; right: .8rem; bottom: .8rem; left: .8rem; padding: .95rem; border: 0; background: var(--white); color: var(--ink); font-size: .78rem; font-weight: 700; cursor: pointer; opacity: 0; transform: translateY(12px); transition: opacity .25s, transform .25s, background .2s; }
.product-card:hover .add-product, .add-product:focus { opacity: 1; transform: translateY(0); }
.add-product:hover { background: var(--ink); color: #fff; }
.product-info { display: grid; grid-template-columns: 1fr auto; gap: .4rem 1rem; padding-top: 1rem; }
.product-category { grid-column: 1 / -1; margin: 0; color: var(--muted); font-size: .68rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.product-info h3 { margin: 0; font-family: var(--serif); font-size: 1.3rem; font-weight: 500; }
.product-price { margin: .2rem 0 0; font-size: .85rem; font-weight: 700; }
.empty-state { padding: 5rem 0; color: var(--muted); text-align: center; }

.story { display: grid; grid-template-columns: 1.1fr .9fr; min-height: 680px; background: var(--moss-dark); color: #fff; }
.story-image { min-height: 540px; background: url("../img/shop/story.jpg") center/cover; }
.story-content { display: flex; flex-direction: column; justify-content: center; max-width: 610px; padding: 6rem clamp(2rem, 7vw, 7rem); }
.story-content .eyebrow { color: #c3cdbf; }
.story-content h2 { margin-bottom: 2rem; }
.story-content > p:not(.eyebrow) { margin: 0 0 1rem; color: #d6ddd3; line-height: 1.75; }
.story-content a { display: inline-flex; gap: 1.2rem; align-items: center; width: max-content; margin-top: 1.2rem; padding-bottom: .35rem; border-bottom: 1px solid #fff; font-size: .82rem; font-weight: 700; }

.site-footer { display: flex; justify-content: space-between; align-items: center; width: min(100% - 3rem, 1360px); margin: auto; padding: 3rem 0; }
.footer-brand { display: flex; align-items: center; gap: 1rem; }
.footer-brand strong { font-family: var(--serif); font-size: 1.2rem; }
.footer-brand p { margin: .2rem 0 0; color: var(--muted); font-size: .75rem; }
.site-footer > a { font-size: .78rem; font-weight: 700; }

.overlay { position: fixed; inset: 0; z-index: 40; background: rgba(10, 12, 10, .45); backdrop-filter: blur(3px); }
.cart-drawer { display: flex; position: fixed; z-index: 50; top: 0; right: 0; bottom: 0; flex-direction: column; width: min(100%, 480px); background: var(--paper); box-shadow: -20px 0 60px rgba(0,0,0,.2); transform: translateX(105%); transition: transform .35s cubic-bezier(.3,.7,.3,1); }
.cart-drawer.open { transform: translateX(0); }
.cart-header { display: flex; justify-content: space-between; align-items: center; padding: 2rem; border-bottom: 1px solid var(--line); }
.cart-header h2 { margin: 0; font-family: var(--serif); font-size: 2.2rem; font-weight: 500; }
.cart-header .icon-button { font-size: 1.5rem; }
.cart-items { flex: 1; padding: 0 2rem; overflow-y: auto; }
.empty-cart { display: grid; height: 100%; place-content: center; text-align: center; }
.empty-cart svg { width: 42px; margin: auto; fill: none; stroke: var(--muted); stroke-width: 1.2; }
.empty-cart strong { margin-top: 1rem; font-family: var(--serif); font-size: 1.5rem; }
.empty-cart p { color: var(--muted); font-size: .85rem; }
.cart-item { display: grid; grid-template-columns: 90px 1fr; gap: 1rem; padding: 1.3rem 0; border-bottom: 1px solid var(--line); }
.cart-item img { width: 90px; height: 112px; object-fit: cover; }
.cart-item-content { display: flex; flex-direction: column; justify-content: space-between; min-width: 0; }
.cart-item h3 { margin: 0; font-family: var(--serif); font-size: 1.1rem; font-weight: 500; }
.cart-item-unit { margin: .25rem 0; color: var(--muted); font-size: .76rem; }
.cart-item-bottom { display: flex; justify-content: space-between; align-items: center; }
.quantity { display: flex; border: 1px solid var(--line); }
.quantity button { width: 30px; height: 29px; border: 0; background: transparent; cursor: pointer; }
.quantity span { min-width: 24px; text-align: center; font-size: .76rem; line-height: 29px; }
.cart-item-total { font-size: .82rem; }
.cart-footer { padding: 1.5rem 2rem 2rem; border-top: 1px solid var(--line); background: #fff; }
.cart-total-line { display: flex; justify-content: space-between; font-size: 1rem; }
.cart-footer > p { margin: .55rem 0 1.2rem; color: var(--muted); font-size: .72rem; }
.checkout-button, .modal-card button { width: 100%; padding: 1rem; border: 0; background: var(--ink); color: #fff; font-weight: 700; cursor: pointer; }
.checkout-button:disabled { cursor: not-allowed; opacity: .4; }
.cart-footer small { display: block; margin-top: .8rem; color: var(--muted); font-size: .68rem; text-align: center; }

.modal { display: grid; position: fixed; z-index: 60; inset: 0; padding: 1.5rem; place-items: center; background: rgba(10, 12, 10, .65); backdrop-filter: blur(4px); }
.modal-card { width: min(100%, 520px); padding: 3.2rem; background: var(--paper); text-align: center; }
.modal-icon { display: grid; width: 54px; height: 54px; margin: 0 auto 1.5rem; place-items: center; border-radius: 50%; background: var(--moss); color: #fff; }
.modal-card h2 { margin: .5rem 0 1rem; font-family: var(--serif); font-size: 2.4rem; font-weight: 500; line-height: 1.1; }
.modal-card > p:not(.eyebrow) { color: var(--muted); line-height: 1.7; }
.modal-card button { margin-top: 1rem; }
.toast { position: fixed; z-index: 70; bottom: 1.5rem; left: 50%; padding: .8rem 1.2rem; background: var(--ink); color: #fff; font-size: .78rem; font-weight: 700; box-shadow: 0 10px 35px rgba(0,0,0,.25); transform: translateX(-50%); }
.no-scroll { overflow: hidden; }

@media (max-width: 980px) {
    .header-inner { grid-template-columns: 1fr auto; }
    .main-nav { display: none; }
    .hero { min-height: 680px; }
    .hero-card { padding: 3rem; }
    .product-grid { grid-template-columns: repeat(2, 1fr); }
    .story { grid-template-columns: 1fr; }
    .story-image { min-height: 500px; }
    .story-content { max-width: none; }
}

@media (max-width: 720px) {
    .demo-notice { gap: .4rem; justify-content: space-between; font-size: .58rem; }
    .header-inner { width: calc(100% - 2rem); height: 68px; }
    .brand { font-size: 1.05rem; }
    .brand-mark { width: 34px; height: 34px; }
    .hero { display: flex; min-height: auto; flex-direction: column; background: var(--paper); }
    .hero-image { position: relative; height: 55vh; min-height: 400px; background-position: 65% center; }
    .hero-card { position: relative; top: auto; left: auto; width: 100%; padding: 2.5rem 1.5rem 3rem; transform: none; }
    .hero h1 { font-size: 4.2rem; }
    .hero-caption { display: none; }
    .benefits { grid-template-columns: 1fr; width: calc(100% - 3rem); padding: 1rem 0; }
    .benefits article, .benefits article:first-child { padding: 1.2rem 0; border-right: 0; border-bottom: 1px solid var(--line); }
    .benefits article:last-child { border-bottom: 0; }
    .collection { width: calc(100% - 2rem); padding: 5rem 0; }
    .section-heading { grid-template-columns: 1fr; gap: 1.5rem; }
    .section-heading h2 { font-size: 3.5rem; }
    .catalogue-toolbar { align-items: flex-start; flex-direction: column; margin-top: 2.8rem; }
    .filters { flex-wrap: nowrap; width: 100%; padding-bottom: .4rem; overflow-x: auto; }
    .filter { flex: none; }
    .product-grid { gap: 2.5rem .7rem; }
    .product-info { grid-template-columns: 1fr; }
    .product-category { grid-column: auto; }
    .product-info h3 { font-size: 1.05rem; }
    .product-price { margin: 0; }
    .add-product { opacity: 1; transform: none; }
    .story-image { min-height: 420px; }
    .story-content { padding: 4rem 1.5rem; }
    .story-content h2 { font-size: 3.5rem; }
    .site-footer { align-items: flex-start; flex-direction: column; width: calc(100% - 3rem); gap: 2rem; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
