/* Jewelpa storefront — white theme on brand tokens (DESIGN-TOKENS: Marcellus / DM Sans, obsidian ink, sage + bronze accents). */
:root {
    --bg: #FFFFFF;
    --surface: #FAF9F6;
    --surface-2: #F4F2EC;
    --ink: #2A2D27;
    --muted: #62665C;
    --line: #E8E5DC;
    --sand: #DEDBD0;
    --sage: #5E6B5B;
    --bronze: #9A7B5A;
    --celadon: #E6E9E1;
    --laurel: #8A9587;
    --espresso: #261E1A;
    --sale: #2563EB;
    --error: #A3352B;
    --font-heading: "Marcellus", Georgia, "Times New Roman", serif;
    --font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --gutter: 16px;
    --page: 1360px;
    --radius: 2px;
    --header-h: 64px;
    --tap: 44px;
    --ease: cubic-bezier(.2, .7, .2, 1);
}
@media (min-width: 750px) { :root { --gutter: 32px; --header-h: 80px; } }
@media (min-width: 1200px) { :root { --gutter: 48px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.6 var(--font-body); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--sage); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 400; line-height: 1.2; margin: 0 0 .5em; letter-spacing: .01em; }
h5, h6 { font-weight: 500; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
table { border-collapse: collapse; width: 100%; }
s { text-decoration-thickness: 1px; }
progress { width: 100%; height: 4px; appearance: none; border: 0; background: var(--line); border-radius: 4px; overflow: hidden; }
progress::-webkit-progress-bar { background: var(--line); }
progress::-webkit-progress-value { background: var(--sage); }
progress::-moz-progress-bar { background: var(--sage); }

.wrap { width: 100%; max-width: var(--page); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 760px; }
.narrow-wide { max-width: 960px; }
.page-pad { padding-block: 32px 64px; }
@media (min-width: 990px) { .page-pad { padding-block: 48px 96px; } }
.center { text-align: center; }
.center-block { display: block; text-align: center; margin-top: 16px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.lead { font-size: 18px; color: var(--muted); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 8px; top: -60px; background: var(--ink); color: #fff; padding: 10px 16px; z-index: 100; }
.skip-link:focus { top: 8px; color: #fff; }
.mobile-only { display: inline-flex; }
.desktop-only { display: none !important; }
@media (min-width: 990px) { .mobile-only { display: none !important; } .desktop-only { display: inline-flex !important; } }
.hp { position: absolute; left: -9999px; }
.eyebrow { font: 500 12px/1.4 var(--font-body); letter-spacing: .18em; text-transform: uppercase; color: var(--bronze); margin-bottom: 12px; }
.page-title { font-size: clamp(28px, 4vw, 40px); margin-bottom: 24px; }
.section { padding-block: 56px; }
@media (min-width: 990px) { .section { padding-block: 88px; } }
.section-title { font-size: clamp(26px, 3vw, 36px); margin-bottom: 32px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.section-head h2 { font-size: clamp(26px, 3vw, 36px); margin: 0; }
.section-head--end { justify-content: flex-end; margin-bottom: 16px; }
.small-title { font: 500 13px/1.4 var(--font-body); letter-spacing: .14em; text-transform: uppercase; margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
.placeholder { display: grid; place-items: center; width: 100%; height: 100%; color: var(--sand); background: var(--surface); }
.icon { flex-shrink: 0; }

/* Buttons & links */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 28px; border: 1px solid var(--ink); font: 500 14px/1 var(--font-body); letter-spacing: .1em; text-transform: uppercase; transition: background .2s, color .2s; border-radius: var(--radius); }
.btn-primary { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-primary:hover { background: #000; color: #fff; }
.btn-secondary { background: transparent; color: var(--ink); }
.btn-secondary:hover { background: var(--ink); color: #fff; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn-block { width: 100%; }
.link-underline { position: relative; display: inline-flex; align-items: center; min-height: var(--tap); font-weight: 500; letter-spacing: .02em; }
.link-underline::after { content: ""; position: absolute; left: 0; right: 0; bottom: 10px; height: 1px; background: currentColor; opacity: .45; transition: height .25s, opacity .25s; }
.link-underline:hover::after, .link-underline:focus-visible::after { height: 2px; opacity: 1; }
.link-btn { display: inline-flex; align-items: center; gap: 6px; text-decoration: underline; text-underline-offset: 3px; min-height: var(--tap); font-size: 14px; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; min-width: var(--tap); min-height: var(--tap); position: relative; }
.round-btn { width: 44px; height: 44px; border: 1px solid var(--sand); border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: #fff; transition: border-color .2s; }
.round-btn:hover:not([disabled]) { border-color: var(--ink); }
.round-btn[disabled] { opacity: .35; cursor: default; }
.carousel-arrows { display: none; gap: 8px; }
@media (min-width: 990px) { .carousel-arrows { display: flex; } }

/* Forms */
label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 6px; }
input:not([type=checkbox]):not([type=radio]):not([type=range]), select, textarea {
    width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid var(--sand); background: #fff; border-radius: var(--radius); font-size: 16px; transition: border-color .2s;
}
textarea { min-height: auto; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%232A2D27' stroke-width='1.3'%3E%3Cpath d='m1 1.5 5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px; }
input[type=checkbox], input[type=radio] { width: 18px; height: 18px; accent-color: var(--ink); margin: 0; flex-shrink: 0; }
.check { display: flex; align-items: center; gap: 10px; font-weight: 400; min-height: var(--tap); margin: 0; cursor: pointer; }
.field { margin-bottom: 16px; }
.field-row { display: grid; gap: 0 16px; }
@media (min-width: 600px) { .field-row { grid-template-columns: 1fr 1fr; } .field-row.three { grid-template-columns: 1.2fr 1.2fr .8fr; } }
.form-error { color: var(--error); font-size: 14px; display: block; }
.form-error ul { list-style: none; margin-bottom: 12px; }
.input-validation-error { border-color: var(--error) !important; }
fieldset { border: 0; padding: 0; margin: 0 0 28px; min-width: 0; }
legend { font: 500 13px/1.4 var(--font-body); letter-spacing: .14em; text-transform: uppercase; margin-bottom: 14px; padding: 0; }
.stack-form { max-width: 520px; }
.auth { max-width: 520px; }
.inline-field { display: flex; gap: 8px; }
.inline-field input { flex: 1; }
.inline-field .btn { padding: 0 18px; }
.flash, .notice { background: var(--celadon); border-left: 3px solid var(--sage); padding: 14px 18px; margin: 16px 0; }

/* Announcement & header */
.announcement { background: var(--sage); color: #fff; text-align: center; font-size: 13px; letter-spacing: .04em; padding: 9px var(--gutter); }
.announcement a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.site-header { position: sticky; top: 0; z-index: 40; background: #fff; border-bottom: 1px solid var(--line); }
.header-bar { height: var(--header-h); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
.header-left { display: flex; align-items: center; height: 100%; }
.header-right { display: flex; align-items: center; justify-content: flex-end; }
.wordmark { font: 400 22px/1 var(--font-heading); letter-spacing: .28em; padding-left: .28em; white-space: nowrap; }
@media (min-width: 990px) { .wordmark { font-size: 28px; } }
.wordmark--sm { font-size: 18px; }
.utility-link { font-size: 14px; margin-right: 12px; min-height: var(--tap); align-items: center; }
.cart-count { position: absolute; top: 6px; right: 4px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--ink); color: #fff; font-size: 10px; font-weight: 500; line-height: 17px; text-align: center; }
.cart-count[hidden] { display: none; }
.main-nav, .main-nav > ul { height: 100%; }
.main-nav > ul { list-style: none; display: flex; gap: 28px; }
@media (max-width: 1180px) { .main-nav > ul { gap: 16px; } .utility-link { display: none !important; } }
.nav-item { display: flex; align-items: center; }
.nav-link { font: 400 15px/1 var(--font-heading); letter-spacing: .06em; padding: 8px 0; position: relative; }
.nav-link::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: var(--ink); transform: scaleX(0); transition: transform .25s var(--ease); }
.nav-item:hover .nav-link::after, .nav-link.is-active::after, .nav-item:focus-within .nav-link::after { transform: scaleX(1); }
.mega { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); box-shadow: 0 18px 30px -24px rgba(42, 45, 39, .35);
    visibility: hidden; opacity: 0; transform: translateY(-4px); transition: opacity .2s, transform .2s, visibility 0s .2s; }
.nav-item.has-mega:hover .mega, .nav-item.has-mega:focus-within .mega { visibility: visible; opacity: 1; transform: none; transition-delay: .12s, .12s, 0s; }
.mega-inner { display: flex; flex-wrap: wrap; gap: 40px 64px; padding-block: 36px 44px; }
.mega-col { border-left: 1px solid var(--line); padding-left: 24px; min-width: 160px; }
.mega-heading { font: 500 13px/1.4 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.mega-col ul { list-style: none; display: grid; gap: 10px; }
.mega-col a { font-size: 15px; }

/* Dialog drawers */
dialog { border: 0; padding: 0; max-width: none; max-height: none; color: var(--ink); }
dialog::backdrop { background: rgba(42, 45, 39, .38); }
.drawer { position: fixed; inset: 0 auto 0 0; margin: 0; width: min(420px, 92vw); height: 100dvh; background: #fff; display: none; flex-direction: column; }
.drawer[open] { display: flex; animation: slide-in-left .3s var(--ease); }
.drawer.is-closing { animation: slide-out-left .22s ease forwards; }
@keyframes slide-in-left { from { transform: translateX(-100%); } }
@keyframes slide-out-left { to { transform: translateX(-100%); } }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 12px 12px var(--gutter); border-bottom: 1px solid var(--line); }
.drawer-title { font: 500 15px/1 var(--font-body); letter-spacing: .12em; text-transform: uppercase; margin: 0; display: flex; align-items: center; gap: 8px; }
.drawer-body { flex: 1 1 auto; overflow-y: auto; padding: 16px var(--gutter) 24px; overscroll-behavior: contain; }
.drawer-foot { display: grid; grid-template-columns: 1fr 1.4fr; gap: 12px; padding: 14px var(--gutter) calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.search-inline { display: flex; border: 1px solid var(--sand); margin-bottom: 16px; }
.search-inline input { border: 0 !important; box-shadow: none !important; }
.search-inline button { width: 48px; display: grid; place-items: center; }
.m-nav { list-style: none; border-top: 1px solid var(--line); }
.m-nav > li { border-bottom: 1px solid var(--line); }
.m-nav a, .m-nav summary { display: flex; align-items: center; justify-content: space-between; min-height: 52px; font: 400 18px/1.2 var(--font-heading); cursor: pointer; list-style: none; }
.m-nav summary::-webkit-details-marker { display: none; }
.m-nav details[open] summary .icon { transform: rotate(45deg); }
.m-nav details ul { list-style: none; padding: 0 0 12px 12px; display: grid; grid-template-columns: 1fr 1fr; }
.m-nav details ul a { font: 400 15px/1.3 var(--font-body); min-height: var(--tap); }
.m-utility { list-style: none; margin-top: 20px; }
.m-utility a { display: flex; align-items: center; min-height: var(--tap); color: var(--muted); }
.search-dialog { position: fixed; inset: 0 0 auto 0; width: 100%; margin: 0; background: #fff; border-bottom: 1px solid var(--line); }
.search-dialog[open] { animation: fade-down .25s var(--ease); }
@keyframes fade-down { from { opacity: 0; transform: translateY(-12px); } }
.search-form { display: flex; align-items: center; gap: 12px; height: 88px; }
.search-form input { border: 0 !important; box-shadow: none !important; font: 400 22px/1.2 var(--font-heading) !important; padding: 0 !important; }
.modal { width: min(560px, calc(100vw - 32px)); padding: 24px; background: #fff; border-radius: 4px; }
.modal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.modal-head h2 { margin: 0; font-size: 24px; }

/* Hero */
.hero { display: grid; background: #fff; }
.hero-media { aspect-ratio: 4 / 5; overflow: hidden; background: var(--surface); }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-copy { padding: 32px var(--gutter) 48px; text-align: center; }
.hero h1 { font-size: clamp(36px, 5vw, 64px); margin-bottom: 16px; }
.hero-sub { color: var(--muted); font-size: 17px; max-width: 460px; margin: 0 auto 28px; }
@media (min-width: 990px) {
    .hero { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; }
    .hero-media { aspect-ratio: 4 / 5; max-height: min(78vh, 680px); width: 100%; }
    .hero-copy { display: flex; flex-direction: column; justify-content: flex-start; align-items: flex-start; text-align: left; padding: clamp(48px, 6vw, 96px) clamp(48px, 7vw, 120px) 48px; }
    .hero-sub { margin-left: 0; }
}

/* Brand statement */
.brand-statement { text-align: center; padding-block: 64px; }
@media (min-width: 990px) { .brand-statement { padding-block: 120px; } }
.brand-statement .wrap { max-width: 728px; }
.brand-mark { display: inline-flex; color: var(--bronze); margin-bottom: 24px; }
.brand-statement h2 { font-size: clamp(28px, 3vw, 44px); line-height: 1.3; }
.brand-statement p { font-size: clamp(17px, 1.2vw, 18px); line-height: 1.7; color: var(--muted); margin: 0; }

/* Horizontal tracks (native scroll-snap) */
.track { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; overscroll-behavior-x: contain; }
.track::-webkit-scrollbar { display: none; }
.track > * { scroll-snap-align: start; flex-shrink: 0; }
.wrap-track { padding-inline: max(var(--gutter), calc((100vw - var(--page)) / 2 + var(--gutter))); scroll-padding-inline: max(var(--gutter), calc((100vw - var(--page)) / 2 + var(--gutter))); }
.track.is-dragging { scroll-snap-type: none; scroll-behavior: auto; cursor: grabbing; user-select: none; }
@media (min-width: 990px) { .track { gap: 24px; } }
.cat-card { width: 70vw; max-width: 320px; display: flex; flex-direction: column; }
@media (min-width: 750px) { .cat-card { width: 38vw; } }
@media (min-width: 990px) { .cat-card { width: calc((min(100vw, var(--page)) - 2 * var(--gutter) - 72px) / 4.2); max-width: none; } }
.cat-card-media { aspect-ratio: 4 / 5; overflow: hidden; background: var(--surface); margin-bottom: 14px; }
.cat-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.cat-card:hover img { transform: scale(1.03); }
.cat-card-title { font: 400 22px/1.2 var(--font-heading); }
.cat-card .link-underline { font-size: 14px; color: var(--muted); align-self: flex-start; }

/* Spotlight: dark on desktop, light on mobile */
.spotlight { display: grid; background: var(--surface-2); }
.spotlight-media { aspect-ratio: 4 / 5; overflow: hidden; order: -1; }
.spotlight-media img { width: 100%; height: 100%; object-fit: cover; }
.spotlight-copy { padding: 36px var(--gutter) 48px; }
.spotlight h2 { font-size: clamp(28px, 3vw, 42px); }
.spotlight p { color: var(--muted); max-width: 460px; }
@media (min-width: 990px) {
    .spotlight { grid-template-columns: 2fr 3fr; background: var(--espresso); color: #F4F2EC; min-height: clamp(520px, 44vw, 680px); }
    .spotlight-media { aspect-ratio: auto; order: 0; }
    .spotlight-copy { display: flex; flex-direction: column; justify-content: center; padding: 64px clamp(48px, 6vw, 112px); }
    .spotlight p { color: rgba(244, 242, 236, .8); }
    .spotlight a:hover { color: #fff; }
}

/* Two collection cards */
.two-cards { display: grid; gap: 24px; }
@media (min-width: 750px) { .two-cards { grid-template-columns: 1fr 1fr; gap: clamp(24px, 3.5vw, 48px); } }
.wide-card { display: flex; flex-direction: column; align-items: flex-start; }
.wide-card-media { aspect-ratio: 16 / 10; overflow: hidden; width: 100%; background: var(--surface); margin-bottom: 16px; }
.wide-card-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; transition: transform .6s var(--ease); }
.wide-card:hover img { transform: scale(1.03); }
.wide-card-title { font: 400 26px/1.2 var(--font-heading); }

/* Tabs */
.tablist { display: flex; justify-content: center; gap: 4px 28px; overflow-x: auto; scrollbar-width: none; margin-bottom: 28px; border-bottom: 1px solid var(--line); }
.tablist::-webkit-scrollbar { display: none; }
.tablist [role=tab] { min-height: var(--tap); padding: 0 2px; font: 400 17px/1 var(--font-heading); color: var(--muted); border-bottom: 1.5px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tablist [role=tab][aria-selected=true] { color: var(--ink); border-color: var(--ink); }
.product-track .track-item { width: 72vw; }
@media (min-width: 750px) { .product-track .track-item { width: 34vw; } }
@media (min-width: 990px) { .product-track .track-item { width: clamp(240px, 20vw, 300px); } }
.shop-all { margin-top: 32px; }

/* Product card */
.p-card { position: relative; display: flex; flex-direction: column; }
.p-card-media { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var(--surface); }
.p-card-media img { width: 100%; height: 100%; object-fit: cover; transition: opacity .4s, transform .6s var(--ease); }
.p-card-alt { position: absolute; inset: 0; opacity: 0; }
@media (hover: hover) { .p-card:hover .p-card-alt { opacity: 1; } .p-card:hover .p-card-media img:first-child { transform: scale(1.02); } }
.p-card-body { padding-top: 12px; }
.p-card-title { font: 400 15px/1.4 var(--font-body); margin: 0 0 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.p-card-title a::after { content: ""; position: absolute; inset: 0; }
.price { font-weight: 500; display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; margin: 0; }
.price-from { font-weight: 400; color: var(--muted); font-size: 14px; }
.price-compare { color: var(--muted); font-weight: 400; }
.price--lg { font-size: 24px; }
.mini-rating { display: flex; align-items: center; gap: 4px; font-size: 13px; color: var(--muted); margin: 4px 0 0; }
.mini-rating .icon { fill: var(--bronze); stroke: var(--bronze); }
.badge { position: absolute; top: 10px; left: 10px; padding: 4px 8px; font-size: 11px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; }
.badge--sale { background: var(--sale); color: #fff; }
.badge--soldout { background: #F1F5F9; color: #64748B; }
.wish-btn { position: absolute; top: 4px; right: 4px; z-index: 2; width: var(--tap); height: var(--tap); display: grid; place-items: center; color: var(--ink); }
.wish-btn .icon { transition: fill .2s, transform .2s; }
.wish-btn[aria-pressed=true] .icon { fill: var(--ink); }
.wish-btn:active .icon { transform: scale(.85); }
.wish-btn--lg { position: static; width: 52px; height: 52px; border: 1px solid var(--sand); flex-shrink: 0; }

/* Stories */
.stories { display: grid; gap: 48px; }
@media (min-width: 750px) { .stories { grid-template-columns: 1fr 1fr; gap: clamp(32px, 4.5vw, 72px); } }
.story-media { aspect-ratio: 1; overflow: hidden; background: var(--surface); margin-bottom: 20px; }
.story-media img { width: 100%; height: 100%; object-fit: cover; }
.story-title { font-size: clamp(24px, 2.4vw, 32px); }
.story p { color: var(--muted); max-width: 540px; }

/* Trust highlights */
.trust { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding-block: 40px; }
.trust-grid { display: grid; }
.trust-item { display: flex; gap: 16px; padding: 20px 0; border-top: 1px solid var(--line); }
.trust-item:first-child { border-top: 0; }
.trust-item .icon { color: var(--bronze); margin-top: 4px; }
.trust-item h3 { font-size: 20px; margin-bottom: 6px; }
.trust-item p { color: var(--muted); font-size: 15px; margin-bottom: 4px; }
@media (min-width: 750px) {
    .trust-grid { grid-template-columns: repeat(2, 1fr); }
    .trust-item { flex-direction: column; align-items: center; text-align: center; padding: 24px 32px; border-top: 0; }
    .trust-item:nth-child(n+2) { border-left: 1px solid var(--line); }
}
@media (min-width: 990px) {
    .trust-grid--3, .trust-grid--5, .trust-grid--6 { grid-template-columns: repeat(3, 1fr); }
    .trust-grid--1 { grid-template-columns: minmax(0, 480px); justify-content: center; }
}

/* Breadcrumb & collection */
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; color: var(--muted); padding-top: 20px; margin-bottom: 16px; }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; color: var(--sand); }
.breadcrumb a:hover { color: var(--ink); }
.collection-head h1 { font-size: clamp(32px, 4vw, 48px); margin-bottom: 8px; }
.collection-desc { color: var(--muted); max-width: 680px; }
.showcase { margin: 16px 0 24px; }
.promo-card { position: relative; width: clamp(260px, 78vw, 320px); aspect-ratio: 4 / 3; overflow: hidden; background: var(--surface); display: block; }
@media (min-width: 990px) { .promo-card { width: clamp(320px, 28vw, 420px); } }
.promo-card img { width: 100%; height: 100%; object-fit: cover; }
.promo-label { position: absolute; left: 16px; bottom: 16px; background: #fff; padding: 8px 14px; font: 400 17px/1.2 var(--font-heading); }
.mini-cat { width: clamp(150px, 15vw, 220px); display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.mini-cat-media { display: block; aspect-ratio: 4 / 5; max-height: calc(clamp(260px, 78vw, 320px) * .75); overflow: hidden; background: var(--surface); }
@media (min-width: 990px) { .mini-cat-media { max-height: calc(clamp(320px, 28vw, 420px) * .75 - 34px); aspect-ratio: auto; height: calc(clamp(320px, 28vw, 420px) * .75 - 34px); } }
.mini-cat-media img { width: 100%; height: 100%; object-fit: cover; }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 12px; border-block: 1px solid var(--line); margin-bottom: 16px; }
.btn-filter { display: inline-flex; align-items: center; gap: 8px; min-height: var(--tap); font-weight: 500; letter-spacing: .06em; text-transform: uppercase; font-size: 13px; }
.count-badge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; border-radius: 10px; background: var(--ink); color: #fff; font-size: 11px; padding: 0 5px; }
.toolbar-right { display: flex; align-items: center; gap: 20px; }
.item-count { margin: 0; color: var(--muted); font-size: 14px; }
.sort-form select { min-height: var(--tap); border: 0; padding-left: 4px; font-size: 14px; width: auto; }
.sort-form select:focus { box-shadow: none; }
.density { gap: 4px; }
.density a { width: 36px; height: 36px; display: grid; place-items: center; opacity: .4; }
.density a.is-active, .density a:hover { opacity: 1; }
.density-dots { width: 18px; height: 12px; background: repeating-linear-gradient(90deg, var(--ink) 0 calc(100% / var(--n) - 2px), transparent 0 calc(100% / var(--n))); }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 14px; border: 1px solid var(--sand); border-radius: 18px; font-size: 14px; white-space: nowrap; }
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip--clear { border: 0; text-decoration: underline; text-underline-offset: 3px; }
.product-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px 12px; }
@media (min-width: 750px) { .product-grid { grid-template-columns: repeat(3, 1fr); gap: 40px 20px; } .product-grid.density-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 990px) { .product-grid.density-4 { grid-template-columns: repeat(4, 1fr); } .product-grid.density-3 { grid-template-columns: repeat(3, 1fr); } .product-grid { gap: 48px 24px; } }
.empty-state { text-align: center; padding: 48px 0; }

/* Filter drawer: left drawer on desktop, bottom sheet on phones */
.filter-form { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; max-height: 100%; }
.filter-form .drawer-body { min-height: 0; }
.filter-drawer { overflow: hidden; }
.filter-group { border-bottom: 1px solid var(--line); padding-bottom: 20px; margin-bottom: 20px; }
.filter-group .check { min-height: 40px; }
@media (max-width: 749px) {
    .filter-drawer { inset: auto 0 0 0; width: 100%; height: auto; max-height: min(85dvh, calc(100dvh - 32px)); border-radius: 16px 16px 0 0; box-shadow: 0 -8px 30px rgba(0, 0, 0, .12); }
    .filter-drawer[open] { animation: sheet-up .3s var(--ease); }
    .filter-drawer.is-closing { animation: sheet-down .22s ease forwards; }
    .filter-drawer .drawer-body { flex: 0 1 auto; }
}
@media (min-width: 750px) { .filter-drawer { width: 480px; } }
@keyframes sheet-up { from { transform: translateY(100%); } }
@keyframes sheet-down { to { transform: translateY(100%); } }
.price-inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 8px; }
.price-inputs label { font-weight: 400; font-size: 13px; color: var(--muted); }
.money-input { display: flex; align-items: center; border: 1px solid var(--sand); padding-left: 12px; margin-top: 4px; }
.money-input input { border: 0 !important; min-height: 42px !important; padding-left: 6px !important; box-shadow: none !important; }
.money-input:focus-within { border-color: var(--ink); }
.range { position: relative; height: 36px; margin: 0 2px; }
.range-track, .range-fill { position: absolute; top: 50%; height: 2px; transform: translateY(-50%); border-radius: 1px; }
.range-track { left: 7px; right: 7px; background: rgba(42, 45, 39, .22); }
.range-fill { background: var(--ink); margin-inline: 7px; }
.range input[type=range] { position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 100%; height: 2px; margin: 0; background: transparent; appearance: none; -webkit-appearance: none; pointer-events: none; }
.range input[type=range]::-webkit-slider-runnable-track { height: 2px; background: transparent; border: 0; }
.range input[type=range]::-moz-range-track { height: 2px; background: transparent; border: 0; }
.range input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; pointer-events: auto; width: 14px; height: 14px; margin-top: -6px; border-radius: 50%; background: #fff; border: 2px solid var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .15); cursor: grab; position: relative; z-index: 3; }
.range input[type=range]::-moz-range-thumb { pointer-events: auto; width: 14px; height: 14px; box-sizing: border-box; border-radius: 50%; background: #fff; border: 2px solid var(--ink); cursor: grab; }

/* Product detail */
.pdp { display: grid; gap: 28px; padding-bottom: 48px; }
@media (min-width: 990px) { .pdp { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(40px, 5vw, 80px); align-items: start; } .pdp-info { position: sticky; top: calc(var(--header-h) + 24px); } }
.gallery { min-width: 0; margin-inline: calc(var(--gutter) * -1); }
@media (min-width: 990px) { .gallery { margin-inline: 0; } }
.gallery-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; background: var(--surface); }
.gallery-track::-webkit-scrollbar { display: none; }
@media (hover: hover) { .gallery-track { cursor: grab; } }
.gallery-track.is-dragging { scroll-snap-type: none; cursor: grabbing; }
.gallery-slide { flex: 0 0 100%; scroll-snap-align: start; margin: 0; aspect-ratio: 1; }
.zoom-btn { width: 100%; height: 100%; cursor: zoom-in; display: block; }
.gallery-slide img { width: 100%; height: 100%; object-fit: cover; user-select: none; }
.thumbs { display: flex; gap: 8px; padding: 12px var(--gutter) 0; overflow-x: auto; scrollbar-width: none; }
@media (min-width: 990px) { .thumbs { padding-inline: 0; } }
.thumb { width: 72px; height: 72px; flex-shrink: 0; border: 1px solid transparent; padding: 2px; opacity: .6; transition: opacity .2s, border-color .2s; }
.thumb[aria-current=true] { border-color: var(--ink); opacity: 1; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.price-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.rating-link { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; min-height: var(--tap); }
.rating-link--empty { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.stars { --r: 0; font-size: 16px; letter-spacing: 2px; background: linear-gradient(90deg, var(--bronze) calc(var(--r) / 5 * 100%), var(--sand) 0); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stars--lg { font-size: 22px; }
.tax-note { font-size: 13px; color: var(--muted); margin: -4px 0 12px; }
.pdp-title { font-size: clamp(28px, 3vw, 38px); margin-bottom: 16px; }
.badges { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 20px; padding-block: 12px; border-block: 1px solid var(--line); margin-bottom: 12px; font-size: 13px; color: var(--muted); }
.badges li, .badges a { display: inline-flex; align-items: center; gap: 6px; }
.badges .icon { color: var(--bronze); }
.sku { font-size: 13px; color: var(--muted); margin-bottom: 20px; }
.option-group { margin-bottom: 20px; }
.option-group legend { margin-bottom: 10px; }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.swatch { position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: var(--tap); padding: 0 14px 0 10px; border: 1px solid var(--sand); font-weight: 400; margin: 0; cursor: pointer; }
.swatch input { position: absolute; opacity: 0; }
.swatch:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.swatch:has(input:focus-visible) { outline: 2px solid var(--ink); outline-offset: 2px; }
.swatch-dot { width: 18px; height: 18px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .12); background: linear-gradient(135deg, #f4f4f2, #b9bcbf); }
.swatch-dot--rose-gold-plated { background: linear-gradient(135deg, #f6d9cc, #c38f7d); }
.swatch-dot--gold-plated { background: linear-gradient(135deg, #f6e7b8, #c9a14a); }
.gift-box { background: var(--surface); padding: 6px 14px; margin-bottom: 20px; }
.gift-box .check { font-size: 15px; flex-wrap: wrap; }
.gift-message { padding-bottom: 12px; }
.size-head { display: flex; justify-content: space-between; align-items: center; }
.size-head label { margin: 0; }
.stock { font-size: 14px; color: var(--sage); margin-bottom: 12px; }
.stock.is-out { color: var(--error); }
.buy-row { display: flex; gap: 8px; margin-bottom: 8px; }
.delivery-note { display: flex; gap: 8px; align-items: center; font-size: 14px; color: var(--muted); margin-top: 16px; }
.accordions { margin-top: 28px; border-top: 1px solid var(--line); }
.accordions details, .faq-item { border-bottom: 1px solid var(--line); }
.accordions summary, .faq-item summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 56px; cursor: pointer; list-style: none; font-weight: 500; }
.accordions summary::-webkit-details-marker, .faq-item summary::-webkit-details-marker { display: none; }
.accordions details[open] summary .icon, .faq-item[open] summary .icon { transform: rotate(45deg); }
.accordions summary .icon, .faq-item summary .icon { transition: transform .2s; }
.accordions details > :not(summary) { padding-bottom: 20px; color: var(--muted); }
.spec-table th, .spec-table td { text-align: left; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; vertical-align: top; }
.spec-table th { font-weight: 500; color: var(--ink); width: 42%; padding-right: 12px; }
.coupons { margin-top: 28px; }
.coupons ul { list-style: none; display: grid; gap: 10px; margin-bottom: 8px; }
.coupon { display: flex; justify-content: space-between; align-items: center; gap: 12px; border: 1px dashed var(--sand); padding: 12px 14px; }
.coupon p { margin: 0; }
.coupon-desc { font-weight: 500; }
.coupon-code { border: 1px solid var(--ink); padding: 8px 12px; font-weight: 500; letter-spacing: .08em; min-height: 40px; white-space: nowrap; }
.coupon-code:hover { background: var(--ink); color: #fff; }
.zoom-dialog { width: 100vw; height: 100dvh; background: #fff; }
.zoom-dialog[open] { display: grid; place-items: center; }
.zoom-dialog img { max-width: 100%; max-height: 100dvh; object-fit: contain; }
.zoom-dialog .icon-btn { position: fixed; top: 12px; right: 12px; background: #fff; border-radius: 50%; z-index: 2; }

/* Reviews */
.reviews { border-top: 1px solid var(--line); }
.review-summary { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.review-list { list-style: none; margin: 24px 0; }
.review { border-top: 1px solid var(--line); padding: 20px 0; }
.review h3 { font-size: 20px; margin: 6px 0; }
.verified { color: var(--sage); }
.review-form summary { list-style: none; display: inline-flex; margin-bottom: 20px; }
.review-form summary::-webkit-details-marker { display: none; }
.review-form form { max-width: 560px; }
.rating-input { display: inline-flex; flex-direction: row-reverse; gap: 4px; margin-bottom: 8px; }
.rating-input legend { width: 100%; }
.rating-input input { position: absolute; opacity: 0; }
.rating-input label { font-size: 28px; color: var(--sand); cursor: pointer; margin: 0; line-height: 1; padding: 4px; }
.rating-input input:checked ~ label, .rating-input label:hover, .rating-input label:hover ~ label { color: var(--bronze); }
.rating-input input:focus-visible + label { outline: 2px solid var(--ink); }

/* Cart & checkout */
.cart-layout { display: grid; gap: 32px; }
@media (min-width: 990px) { .cart-layout { grid-template-columns: minmax(0, 1fr) 400px; gap: 56px; align-items: start; } }
.ship-progress { background: var(--surface); padding: 14px 16px; margin-bottom: 16px; font-size: 14px; }
.ship-progress p { margin-bottom: 8px; }
.cart-lines { list-style: none; border-top: 1px solid var(--line); }
.cart-line { display: grid; grid-template-columns: 96px 1fr auto; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.cart-thumb { aspect-ratio: 4 / 5; background: var(--surface); overflow: hidden; }
.cart-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-info h2 { font: 500 16px/1.4 var(--font-body); margin-bottom: 4px; }
.cart-info p { margin-bottom: 6px; }
.gift-flag { display: flex; gap: 6px; align-items: center; color: var(--sage); }
.cart-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--sand); }
.qty button { width: 40px; height: 40px; display: grid; place-items: center; }
.qty button[disabled] { opacity: .3; cursor: default; }
.qty span { min-width: 28px; text-align: center; }
.cart-price { font-weight: 500; margin: 0; }
.summary-card { background: var(--surface); padding: 24px; }
@media (min-width: 990px) { .summary-card { position: sticky; top: calc(var(--header-h) + 24px); } }
.coupon-form, .applied-coupon { margin-bottom: 20px; }
.applied-coupon { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 14px; }
.applied-coupon span { display: flex; align-items: center; gap: 6px; }
.totals { margin: 0 0 8px; }
.totals div { display: flex; justify-content: space-between; padding: 6px 0; }
.totals dt, .totals dd { margin: 0; }
.totals .discount dd { color: var(--sage); }
.totals .grand { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 14px; font-weight: 500; font-size: 18px; }
.summary-card .btn-block { margin-top: 16px; }
.mini-lines { list-style: none; margin-bottom: 16px; }
.mini-lines li { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.mini-lines li > span:nth-child(2) { display: flex; flex-direction: column; }
.mini-lines img { width: 56px; height: 70px; object-fit: cover; background: #fff; }
.pay-option { display: flex; gap: 14px; align-items: flex-start; border: 1px solid var(--sand); padding: 16px; margin-bottom: 10px; font-weight: 400; cursor: pointer; }
.pay-option:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.pay-option > span { display: flex; flex-direction: column; gap: 2px; }
.pay-option input { margin-top: 3px; }
.checkout-form .btn-block { margin-bottom: 12px; }

/* Orders & account */
.account-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 32px; }
.account-actions { display: flex; gap: 8px; }
.table-scroll { overflow-x: auto; margin-bottom: 24px; }
.data-table th, .data-table td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line); font-size: 15px; white-space: nowrap; }
.data-table th { font-weight: 500; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.status { display: inline-block; padding: 3px 10px; border-radius: 12px; font-size: 12px; font-weight: 500; background: var(--celadon); color: var(--sage); }
.status--pending { background: #FFF7E6; color: #8A5A00; }
.status--cancelled { background: #F1F5F9; color: #64748B; }
.status--shipped, .status--delivered { background: var(--ink); color: #fff; }
.order-detail { margin: 32px 0; }
.order-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; background: var(--surface); padding: 20px; margin: 0 0 24px; }
.order-meta dt { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.order-meta dd { margin: 4px 0 0; font-weight: 500; }
.address-block { margin-top: 24px; }

/* Content */
.prose { line-height: 1.75; }
.prose h2 { font-size: 26px; margin-top: 1.6em; }
.prose h3 { font-size: 21px; margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.3em; margin-bottom: 1em; }
.prose li { margin-bottom: .4em; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose table { margin: 1em 0 1.5em; }
.prose th, .prose td { border-bottom: 1px solid var(--line); padding: 10px 8px; text-align: left; }
.prose th { font-weight: 500; }
.prose img { margin: 1.5em 0; }
.faq-search { margin-bottom: 32px; }
.faq-group { margin-bottom: 32px; }
.faq-item .prose { padding-bottom: 16px; color: var(--muted); }
.contact-layout { display: grid; gap: 40px; }
@media (min-width: 990px) { .contact-layout { grid-template-columns: 1fr 1fr; gap: 80px; } }
.contact-list div { padding: 12px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 110px 1fr; }
.contact-list dt { color: var(--muted); }
.contact-list dd { margin: 0; }
.topic-nav { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 32px; }
.topic-nav a { padding: 8px 16px; border: 1px solid var(--sand); border-radius: 18px; font-size: 14px; }
.topic-nav a.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }
.post-grid { display: grid; gap: 40px 24px; }
@media (min-width: 750px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 990px) { .post-grid { grid-template-columns: repeat(3, 1fr); } }
.post-card-media { display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--surface); margin-bottom: 16px; }
.post-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.post-card:hover img { transform: scale(1.03); }
.post-card-title { font-size: 24px; }
.post-card p:last-child { color: var(--muted); }
.article-hero { max-width: 1200px; margin-bottom: 40px; }
.article-hero img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.article-body { padding-bottom: 64px; font-size: 17px; }
.pager { display: flex; justify-content: center; gap: 8px; margin-top: 40px; }
.pager a { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--sand); }
.pager a[aria-current=page] { background: var(--ink); color: #fff; }
.search-page-form { display: flex; gap: 8px; max-width: 640px; margin-bottom: 24px; }
.search-page-form input { flex: 1; }
.center .search-page-form { margin-inline: auto; margin-top: 24px; }

/* Footer */
.site-footer { margin-top: 0; }
.footer-main { background: var(--sage); color: #F4F2EC; padding-top: 56px; }
.footer-main a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.footer-top { display: grid; gap: 40px; padding-bottom: 40px; }
@media (min-width: 990px) { .footer-top { grid-template-columns: 1fr 2fr; gap: 80px; } }
.footer-heading { font-size: 26px; color: #fff; }
.footer-news p { color: rgba(244, 242, 236, .85); }
.news-form label { color: rgba(244, 242, 236, .85); font-weight: 400; }
.news-row { display: flex; min-height: 48px; border: 1px solid rgba(244, 242, 236, .75); }
.news-row input { flex: 1; background: transparent !important; color: #F4F2EC !important; border: 0 !important; box-shadow: none !important; }
.news-row input::placeholder { color: rgba(244, 242, 236, .6); }
.news-row input:-webkit-autofill { -webkit-text-fill-color: #F4F2EC; box-shadow: 0 0 0 40px var(--sage) inset !important; }
.news-row button { background: #F4F2EC; color: var(--sage); padding: 0 20px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; font-size: 13px; }
.news-row:focus-within { outline: 2px solid #fff; outline-offset: 2px; }
.footer-cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
@media (min-width: 750px) { .footer-cols { grid-template-columns: repeat(3, 1fr); } }
.footer-label { font: 500 13px/1.4 var(--font-body); letter-spacing: .16em; text-transform: uppercase; color: #fff; margin-bottom: 16px; }
.footer-cols ul { list-style: none; display: grid; gap: 4px; }
.footer-cols a { display: inline-flex; align-items: center; min-height: 36px; color: #F4F2EC; }
.footer-brand { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; border-top: 1px solid rgba(244, 242, 236, .25); padding-block: 32px; }
.footer-wordmark { font: 400 clamp(48px, 12vw, 160px)/0.9 var(--font-heading); letter-spacing: .16em; margin: 0; color: #fff; }
.socials { list-style: none; display: flex; gap: 8px; }
.socials a { width: 44px; height: 44px; border: 1px solid rgba(244, 242, 236, .6); border-radius: 50%; display: grid; place-items: center; color: #fff; }
.footer-utility { background: var(--espresso); color: #F4F2EC; font-size: 13px; }
.footer-utility-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; padding-block: 16px; }
.footer-utility p { margin: 0; }
.policy-links { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 16px; }
.policy-links a { display: inline-flex; min-height: 36px; align-items: center; }
.payments { display: flex; gap: 12px; color: rgba(244, 242, 236, .75); }

/* Toast */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 12px 20px; font-size: 14px; z-index: 60; width: max-content; max-width: calc(100vw - 32px); box-shadow: 0 8px 24px rgba(0, 0, 0, .2); animation: toast-in .25s var(--ease); }
.toast a { color: #fff; text-decoration: underline; margin-left: 8px; }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 12px); } }

/* ==========================================================================
   Motion layer: zero-dependency effects. Scroll-driven animations where the
   browser supports them (Chrome, Edge, Safari 26+), IntersectionObserver
   fallback in site.js, and calm static pages under prefers-reduced-motion.
   ========================================================================== */
::selection { background: var(--celadon); color: var(--ink); }
a, button { transition: color .25s var(--ease), background-color .25s var(--ease), border-color .25s var(--ease); }

/* Page-to-page cross-fade (View Transitions API, no JS) */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out .22s ease both; }
::view-transition-new(root) { animation: vt-in .38s var(--ease) both; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; transform: translateY(8px); } }

/* Reading progress bar */
.scroll-progress { display: none; }
@supports (animation-timeline: scroll()) {
    .scroll-progress { display: block; position: fixed; inset: 0 0 auto 0; height: 2px; z-index: 100; transform-origin: 0 50%;
        background: linear-gradient(90deg, var(--bronze), var(--sage)); animation: progress linear both; animation-timeline: scroll(root); }
}
@keyframes progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* Header elevates and frosts once the page scrolls (class from site.js) */
.site-header { transition: box-shadow .35s var(--ease), background-color .35s var(--ease); }
.site-header.is-scrolled { background: rgba(255, 255, 255, .9); -webkit-backdrop-filter: saturate(160%) blur(14px); backdrop-filter: saturate(160%) blur(14px); box-shadow: 0 12px 30px -22px rgba(42, 45, 39, .45); }
.cart-count.bump { animation: bump .5s var(--ease); }
@keyframes bump { 40% { transform: scale(1.45); } }

/* Mega menu + mobile drawer stagger */
.nav-item.has-mega:hover .mega-col, .nav-item.has-mega:focus-within .mega-col { animation: rise .55s var(--ease) both; }
.mega-col:nth-child(2) { animation-delay: .06s !important; }
.mega-col:nth-child(3) { animation-delay: .12s !important; }
.mega-col:nth-child(4) { animation-delay: .18s !important; }
.drawer[open] .m-nav > li, .drawer[open] .m-utility > li { animation: slide-in .55s var(--ease) both; }
.drawer[open] .m-nav > li:nth-child(2) { animation-delay: .04s; }
.drawer[open] .m-nav > li:nth-child(3) { animation-delay: .08s; }
.drawer[open] .m-nav > li:nth-child(4) { animation-delay: .12s; }
.drawer[open] .m-nav > li:nth-child(5) { animation-delay: .16s; }
.drawer[open] .m-nav > li:nth-child(6) { animation-delay: .2s; }
.drawer[open] .m-utility > li { animation-delay: .24s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
@keyframes slide-in { from { opacity: 0; transform: translateX(-18px); } }

/* Buttons: colour sweep + arrow nudge */
.btn { position: relative; overflow: hidden; isolation: isolate; }
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--bronze); transform: scaleX(0); transform-origin: right center; transition: transform .55s var(--ease); }
.btn:hover::before, .btn:focus-visible::before { transform: scaleX(1); transform-origin: left center; }
.btn-primary:hover { background: var(--ink); border-color: var(--bronze); }
.btn-secondary::before { background: var(--ink); }
.btn[disabled]::before { display: none; }
.btn .icon { transition: transform .4s var(--ease); }
.btn:hover .icon { transform: translateX(5px); }

/* Hero: slow settle on the image, staggered copy, rotating gem watermark */
.hero-media img { animation: settle 2.6s cubic-bezier(.16, .8, .2, 1) both; }
@keyframes settle { from { transform: scale(1.1); } }
.hero-copy { position: relative; overflow: hidden; isolation: isolate; }
.hero-copy > * { animation: rise 1s var(--ease) both; }
.hero-copy > :nth-child(1) { animation-delay: .15s; }
.hero-copy > :nth-child(2) { animation-delay: .3s; }
.hero-copy > :nth-child(3) { animation-delay: .45s; }
.hero-copy > :nth-child(4) { animation-delay: .6s; }
.hero-copy::after { content: ""; position: absolute; z-index: -1; right: -90px; bottom: -110px; width: 420px; aspect-ratio: 1; opacity: .07; pointer-events: none;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232A2D27' stroke-width='.35'%3E%3Ccircle cx='12' cy='12' r='9.5'/%3E%3Cpath d='M12 2.5 15 9l6.5 3-6.5 3-3 6.5L9 15l-6.5-3L9 9z'/%3E%3Cpath d='M9 9h6v6H9z'/%3E%3C/svg%3E") center / contain no-repeat;
    animation: spin 90s linear infinite; }
.hero .eyebrow::before { content: ""; display: inline-block; width: 36px; height: 1px; background: currentColor; vertical-align: middle; margin-right: 12px; }
.hero h1 { font-size: clamp(40px, 5.2vw, 82px); letter-spacing: -.005em; line-height: 1.06; }
@keyframes spin { to { transform: rotate(360deg); } }
.brand-mark .gem { animation: spin 40s linear infinite; }

/* Marquee band */
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding: 16px 0; background: #fff; }
.marquee-track { display: flex; width: max-content; animation: marquee 42s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-group { display: flex; align-items: center; gap: 30px; padding-right: 30px; white-space: nowrap;
    font: 400 14px/1 var(--font-heading); letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.marquee-dot { display: inline-flex; color: var(--bronze); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Section titles get a hairline accent */
.section-title.center::after { content: ""; display: block; width: 48px; height: 1px; background: var(--bronze); margin: 18px auto 0; }
.eyebrow.center { text-align: center; }

/* Image loading: shimmer placeholder, then fade in (classes from site.js) */
.is-shimmer { background: linear-gradient(100deg, var(--surface) 30%, #fff 50%, var(--surface) 70%) 0 0 / 220% 100%; animation: shimmer 1.4s linear infinite; }
@keyframes shimmer { to { background-position: -220% 0; } }
img.fade-img { opacity: 0; transition: opacity .8s var(--ease), transform 1.2s var(--ease); }
img.fade-img.is-loaded { opacity: 1; }

/* Cards */
.cat-card-media img, .wide-card-media img, .post-card-media img, .story-media img { transition: transform 1.2s var(--ease), opacity .8s var(--ease); }
.cat-card:hover .cat-card-media img, .wide-card:hover img, .post-card:hover img { transform: scale(1.06); }
.cat-card-title, .wide-card-title { transition: color .3s var(--ease); }
.cat-card:hover .cat-card-title, .wide-card:hover .wide-card-title { color: var(--bronze); }
.p-card-media img { transition: opacity .5s var(--ease), transform 1.2s var(--ease); }
.p-card-cta { position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 1; padding: 11px; text-align: center; background: rgba(255, 255, 255, .92);
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); font: 500 11px/1 var(--font-body); letter-spacing: .18em; text-transform: uppercase;
    transform: translateY(calc(100% + 16px)); opacity: 0; transition: transform .45s var(--ease), opacity .45s var(--ease); }
@media (hover: hover) {
    .p-card:hover .p-card-cta { transform: none; opacity: 1; }
    .p-card:hover .p-card-media img:first-child { transform: scale(1.06); }
    .p-card:hover .p-card-title a { color: var(--bronze); }
}
.wish-btn[aria-pressed=true] .icon { animation: heart-pop .45s var(--ease); fill: var(--bronze); stroke: var(--bronze); }
@keyframes heart-pop { 45% { transform: scale(1.35); } }
.trust-item .icon { transition: transform .5s var(--ease); }
.trust-item:hover .icon { transform: translateY(-4px) rotate(-6deg); }
.footer-cols a { background: linear-gradient(currentColor, currentColor) 0 calc(100% - 8px) / 0 1px no-repeat; transition: background-size .4s var(--ease); }
.footer-cols a:hover { background-size: 100% 1px; text-decoration: none !important; }
.footer-follow { margin: 0; font: 500 13px/1.4 var(--font-body); letter-spacing: .16em; text-transform: uppercase; color: #fff; }
.footer-brand { align-items: center; }
.footer-main { padding-bottom: 8px; }

/* Back to top */
.to-top { position: fixed; right: 20px; bottom: 20px; z-index: 50; width: 48px; height: 48px; border-radius: 50%; background: var(--ink); color: #fff;
    display: grid; place-items: center; box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .4); opacity: 0; transform: translateY(16px); pointer-events: none;
    transition: opacity .35s var(--ease), transform .35s var(--ease), background-color .25s; }
.to-top .icon { transform: rotate(90deg); }
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--bronze); }

/* Scroll reveals: native scroll-driven animations */
@keyframes reveal-up { from { opacity: 0; transform: translateY(42px); } to { opacity: 1; transform: none; } }
@keyframes reveal-clip { from { clip-path: inset(14% 10% 14% 10%); } to { clip-path: inset(0); } }
@keyframes drift { from { transform: translateY(-7%) scale(1.16); } to { transform: translateY(7%) scale(1.16); } }
@keyframes draw { from { stroke-dashoffset: 90; } to { stroke-dashoffset: 0; } }
@supports (animation-timeline: view()) {
    .section-head, .section-title, .section .eyebrow, .brand-statement .wrap > *, .track, .two-cards > *, .story, .trust-item,
    .product-grid > .p-card, .post-card, .spotlight-copy > *, .footer-top > *, .collection-head > *, .tablist, .shop-all,
    .accordions, .coupons, .reviews .wrap > *, .faq-group, .contact-layout > *, .article-body > *, .empty-state {
        animation: reveal-up linear both; animation-timeline: view(); animation-range: entry 0% cover 22%;
    }
    .wide-card-media, .story-media, .post-card-media { animation: reveal-clip linear both; animation-timeline: view(); animation-range: entry 0% cover 35%; }
    .spotlight-media img { animation: drift linear both; animation-timeline: view(); }
    .trust-item .icon * { stroke-dasharray: 90; animation: draw linear both; animation-timeline: view(); animation-range: entry 10% cover 40%; }
}
/* Fallback (browsers without scroll timelines): site.js adds .reveal / .is-revealed below the fold */
.reveal { opacity: 0; transform: translateY(42px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-revealed { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    @view-transition { navigation: none; }
    .scroll-progress, .hero-copy::after { display: none !important; }
    .reveal, img.fade-img { opacity: 1 !important; transform: none !important; }
    .marquee-track { width: auto; flex-wrap: wrap; }
}
