/* =========================================================
   Storefront — luxury watch theme
   Mobile first. All colours, type and spacing are tokens below.
   ========================================================= */
:root {
    /* Surfaces */
    --ink: #121213;          /* header, hero, story, footer */
    --charcoal: #1B1B1D;     /* raised dark surfaces */
    --ivory: #F6F3EE;        /* page */
    --paper: #FFFFFF;        /* photo plates, cards, inputs */
    --stone: #E6E0D6;        /* hairlines on light */
    --line-dark: rgba(242, 238, 231, .14); /* hairlines on dark */

    /* Text (all pairs WCAG AA on their surface) */
    --text: #1A1918;         /* 15.9:1 on ivory */
    --muted: #625C53;        /* 6.0:1 on ivory */
    --text-light: #F2EEE7;   /* 16.2:1 on ink */
    --muted-light: #A39D93;  /* 7.0:1 on ink */
    --ui-border: #8F877C;    /* form controls, 3.2:1 on ivory */

    /* The one metallic accent: champagne gold */
    --gold: #C6A878;         /* on dark: 8.3:1 */
    --gold-ink: #86693F;     /* on light: 4.6:1 */

    --error: #9E3B2E;
    --ok: #2F6B4A;

    /* Type */
    --serif: 'Cormorant Garamond', 'Times New Roman', Georgia, serif;
    --sans: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --track: .22em;          /* small uppercase labels */

    /* Layout & motion */
    --gutter: 16px;
    --max: 1320px;
    --hh: 64px;              /* header height */
    --radius: 2px;
    --ease: cubic-bezier(.22, .61, .36, 1);
    --slow: .9s;
    --fast: .3s;
}
@media (min-width: 720px) { :root { --gutter: 32px; } }
@media (min-width: 1080px) { :root { --gutter: 48px; --hh: 84px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--hh) + 16px); }
body {
    margin: 0;
    background: var(--ivory);
    color: var(--text);
    font: 400 15px/1.7 var(--sans);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
@supports (overflow: clip) { body { overflow-x: clip; } }
body.no-scroll { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
button:disabled { cursor: not-allowed; }
:focus-visible { outline: 2px solid var(--gold-ink); outline-offset: 3px; }
.header :focus-visible, .footer :focus-visible, .story :focus-visible, .hero :focus-visible, .mnav :focus-visible, .search :focus-visible, .lightbox :focus-visible { outline-color: var(--gold); }
h1, h2, h3, h4 { margin: 0; font-weight: 500; }
p { margin: 0; }
dl, dd { margin: 0; }
fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
legend { padding: 0; }

.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: fixed; left: 16px; top: -60px; z-index: 100; padding: 12px 18px; background: var(--paper); color: var(--text); transition: top var(--fast); }
.skip:focus { top: 16px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.underline { text-decoration: underline; text-underline-offset: 3px; }

.i { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- Type ---------- */
.label {
    display: block;
    font: 600 11px/1.4 var(--sans);
    letter-spacing: var(--track);
    text-transform: uppercase;
    color: var(--gold-ink);
}
.h2 { font: 400 clamp(34px, 6vw, 56px)/1.05 var(--serif); letter-spacing: -.005em; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 12px;
    min-height: 52px; padding: 0 30px;
    font: 600 12px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase;
    border: 1px solid transparent; border-radius: var(--radius);
    transition: background var(--fast) var(--ease), color var(--fast) var(--ease), border-color var(--fast) var(--ease), opacity var(--fast);
    text-align: center;
}
.btn--dark { background: var(--ink); color: var(--text-light); }
.btn--dark:hover { background: #2a2a2d; }
.btn--light { background: var(--text-light); color: var(--ink); }
.btn--light:hover { background: var(--gold); }
.btn--line { border-color: var(--ink); color: var(--ink); }
.btn--line:hover { background: var(--ink); color: var(--text-light); }
.btn--text { padding-inline: 12px; color: var(--muted); }
.btn--text:hover { color: var(--text); }
.btn--block { width: 100%; }
.btn--grow { flex: 1; }
.btn:disabled { opacity: .45; }
.btn__sep { width: 18px; height: 1px; background: currentColor; opacity: .5; }

.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; transition: color var(--fast), background var(--fast); }

.link-line {
    display: inline-flex; align-items: center; gap: 10px; min-height: 44px;
    font: 600 12px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase;
}
.link-line .i { width: 18px; transition: transform var(--fast) var(--ease); }
.link-line:hover .i { transform: translateX(4px); }
.link-line--light { color: var(--text-light); }

/* ---------- Photo plates (fixed ratio, placeholder, loading shimmer) ---------- */
.plate {
    position: relative; display: block; overflow: hidden;
    aspect-ratio: 1 / 1;
    background: var(--paper);
}
.plate img {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: contain;
    transition: opacity .8s var(--ease), transform 1.2s var(--ease);
}
.plate__ph { position: absolute; inset: 0; margin: auto; width: 22%; height: 22%; fill: none; stroke: #C9C1B4; stroke-width: 1; stroke-linecap: round; opacity: 0; }
.plate.is-missing { background: #EFEBE4; }
.plate.is-missing img { display: none; }
.plate.is-missing .plate__ph { opacity: 1; }
.js .plate:not(.is-loaded):not(.is-missing)::before {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(100deg, transparent 30%, rgba(230, 224, 214, .6) 50%, transparent 70%) 0 0 / 250% 100%;
    animation: shimmer 1.6s linear infinite;
}
.js .plate:not(.is-loaded) img { opacity: 0; }

/* =========================================================
   Header
   ========================================================= */
.header {
    position: sticky; top: 0; z-index: 40;
    height: var(--hh);
    background: var(--ink);
    color: var(--text-light);
    border-bottom: 1px solid var(--line-dark);
    transition: background var(--slow) var(--ease), border-color var(--slow) var(--ease);
}
.header__inner { height: 100%; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
.header__burger { justify-self: start; width: 44px; height: 44px; display: grid; place-content: center; gap: 7px; }
.header__burger span { display: block; width: 22px; height: 1px; background: currentColor; transition: transform var(--fast) var(--ease); }
.nav-open .header__burger span:first-child { transform: translateY(4px) rotate(45deg); }
.nav-open .header__burger span:last-child { transform: translateY(-4px) rotate(-45deg); }
.nav { display: none; }
.logo { grid-column: 2; display: block; }
.logo img {
    height: calc(var(--hh) - 8px); width: auto;
    filter: url(#logo-knockout); /* black ground becomes transparent (see header.php) */
}
.header__actions { justify-self: end; display: flex; gap: 2px; margin-right: -10px; }
.header .icon-btn:hover { color: var(--gold); }
.cart-btn { position: relative; }
.cart-count {
    position: absolute; top: 6px; right: 4px;
    min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px;
    background: var(--gold); color: var(--ink);
    font: 700 10px/17px var(--sans); text-align: center;
    transform: scale(0); transition: transform var(--fast) var(--ease);
}
.cart-count.has-items { transform: scale(1); }
.cart-count.bump { animation: bump .5s var(--ease); }

/* Home: the header floats over the hero until the page scrolls */
.page-home .header { margin-bottom: calc(-1 * var(--hh)); }
.page-home .header:not(.is-scrolled) { background: transparent; border-color: transparent; }
.page-home.nav-open .header { background: var(--ink); }

@media (min-width: 1080px) {
    .header__burger { display: none; }
    .nav { display: flex; gap: 32px; grid-column: 1; grid-row: 1; }
    .nav__link {
        position: relative; display: inline-flex; align-items: center; min-height: 44px;
        font: 500 12px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase;
        color: var(--muted-light); transition: color var(--fast);
    }
    .nav__link::after { content: ""; position: absolute; left: 0; right: 0; bottom: 10px; height: 1px; background: var(--gold); transform: scaleX(0); transition: transform var(--fast) var(--ease); }
    .nav__link:hover, .nav__link.is-active { color: var(--text-light); }
    .nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); }
}

/* ---------- Mobile menu ---------- */
.mnav {
    position: fixed; inset: var(--hh) 0 0; z-index: 39;
    display: flex; flex-direction: column; justify-content: space-between;
    padding: 24px var(--gutter) calc(24px + env(safe-area-inset-bottom));
    background: var(--ink); color: var(--text-light);
    opacity: 0; visibility: hidden;
    transition: opacity .5s var(--ease), visibility .5s;
}
.nav-open .mnav { opacity: 1; visibility: visible; }
.mnav__links { display: flex; flex-direction: column; }
.mnav__link {
    display: flex; align-items: center; min-height: 56px;
    border-bottom: 1px solid var(--line-dark);
    font: 400 30px/1.2 var(--serif);
    transform: translateY(10px); opacity: 0;
    transition: transform .6s var(--ease), opacity .6s var(--ease), color var(--fast);
}
.nav-open .mnav__link { transform: none; opacity: 1; }
.nav-open .mnav__link:nth-child(2) { transition-delay: .05s; }
.nav-open .mnav__link:nth-child(3) { transition-delay: .1s; }
.nav-open .mnav__link:nth-child(4) { transition-delay: .15s; }
.nav-open .mnav__link:nth-child(n+5) { transition-delay: .2s; }
.mnav__link.is-active { color: var(--gold); }
.mnav__foot { display: flex; flex-direction: column; gap: 4px; color: var(--muted-light); }
.mnav__foot a, .mnav__foot button { display: flex; align-items: center; gap: 12px; min-height: 44px; font-size: 14px; }
@media (min-width: 1080px) { .mnav { display: none; } }

/* ---------- Search ---------- */
.search {
    position: fixed; inset: 0 0 auto; z-index: 45;
    background: var(--ink); color: var(--text-light);
    border-bottom: 1px solid var(--line-dark);
    transform: translateY(-100%); visibility: hidden;
    transition: transform .6s var(--ease), visibility .6s;
}
.search.is-open { transform: none; visibility: visible; }
.search__form { display: flex; align-items: center; gap: 14px; height: calc(var(--hh) + 24px); }
.search__form > .i { color: var(--muted-light); }
.search__form input { flex: 1; min-width: 0; height: 48px; background: none; border: 0; font: 400 26px/1 var(--serif); }
.search__form input::placeholder { color: var(--muted-light); }
.search__form input:focus { outline: none; }

/* =========================================================
   Home
   ========================================================= */
.hero {
    position: relative; isolation: isolate; overflow: hidden;
    min-height: 100vh; min-height: 100svh;
    display: flex; align-items: flex-end;
    padding: calc(var(--hh) + 48px) 0 96px;
    background: var(--ink); color: var(--text-light);
}
.hero__bg {
    position: absolute; inset: 0; z-index: -2;
    width: 100%; height: 100%; object-fit: cover;
    animation: drift 24s var(--ease) both;
}
.hero::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background:
        linear-gradient(180deg, rgba(18, 18, 19, .55) 0%, rgba(18, 18, 19, 0) 30%),
        linear-gradient(0deg, rgba(18, 18, 19, .88) 0%, rgba(18, 18, 19, .35) 55%, rgba(18, 18, 19, .2) 100%);
}
.hero--plain::before { background: radial-gradient(ellipse at 70% 20%, #2b2a28 0%, var(--ink) 65%); }
.hero__kicker { color: var(--gold); }
.hero__title { margin-top: 18px; font: 400 clamp(52px, 13vw, 128px)/.95 var(--serif); letter-spacing: -.01em; }
.hero__sub { margin-top: 20px; max-width: 46ch; color: var(--text-light); font-size: 16px; }
.hero__cta { margin-top: 36px; }
.hero__scroll { position: absolute; left: 50%; bottom: 20px; width: 44px; height: 56px; transform: translateX(-50%); display: grid; place-items: center; }
.hero__scroll span { width: 1px; height: 40px; background: linear-gradient(var(--gold), transparent); animation: scrollcue 2.6s var(--ease) infinite; transform-origin: top; }

/* ---------- Hero showcase: dial + gliding watches ---------- */
.hero--showcase {
    flex-direction: column; align-items: stretch; justify-content: space-between; gap: 24px;
    min-height: max(640px, 100svh);
    padding: calc(var(--hh) + 28px) 0 28px;
}
.hero--showcase .hero__title { font-size: clamp(46px, 9vw, 112px); }
.hero--showcase .hero__cta { margin-top: 28px; }
.hero--showcase::before {
    background:
        radial-gradient(ellipse 60% 45% at 50% 78%, rgba(198, 168, 120, .14), transparent 70%),
        linear-gradient(180deg, rgba(18, 18, 19, .72) 0%, rgba(18, 18, 19, .45) 45%, rgba(18, 18, 19, .9) 100%);
}

.dial {
    position: absolute; z-index: -1; pointer-events: none;
    width: min(150vw, 1100px); height: auto; aspect-ratio: 1;
    left: 50%; top: 58%; transform: translate(-50%, -50%);
    fill: none; stroke: var(--text-light); opacity: .16;
}
.dial__ring { stroke-width: .35; }
.dial__ring--inner { stroke-width: .2; opacity: .6; }
.dial__tick { stroke-width: .4; }
.dial__tick--major { stroke-width: 1; stroke: var(--gold); }
.dial__hand { stroke-linecap: round; }
.dial__hand--h { stroke-width: 1.3; transform: rotate(var(--hd, 0deg)); }
.dial__hand--m { stroke-width: .8; transform: rotate(var(--md, 0deg)); }
.dial__hand--sec { stroke: var(--gold); stroke-width: .5; }
.dial__hand--s { animation: sweep 60s linear infinite; animation-delay: var(--sd, 0s); }
.dial__pin { fill: var(--gold); stroke: none; }
@media (min-width: 960px) { .dial { left: 72%; top: 50%; width: min(110vh, 980px); } }

.showcase {
    position: relative;
    --w: clamp(132px, 15vw, 228px);
    margin-bottom: 8px;
    cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none;
    /* fade the row out at both screen edges */
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
            mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.showcase.is-dragging { cursor: grabbing; }
.showcase::after { /* the surface the watches stand on */
    content: ""; position: absolute; left: 0; right: 0; bottom: 58px; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(198, 168, 120, .45), transparent);
}
.showcase__track { display: flex; width: max-content; will-change: transform; }
.showcase__item {
    position: relative; flex: none; display: block;
    width: var(--w); margin-inline: calc(var(--w) * .1);
    padding-bottom: 58px;
    -webkit-tap-highlight-color: transparent;
}
.showcase__item img {
    width: 100%; height: auto;
    /* soft fade where the bracelet meets the surface */
    -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent 94%);
            mask-image: linear-gradient(180deg, #000 70%, transparent 94%);
    filter: drop-shadow(0 18px 22px rgba(0, 0, 0, .45));
    animation: bob var(--bob, 7s) ease-in-out var(--bd, 0s) infinite;
    transition: transform var(--slow) var(--ease);
    pointer-events: none;
}
.showcase__label {
    position: absolute; left: 0; right: 0; bottom: 0;
    display: grid; gap: 2px; text-align: center;
    opacity: .7; transition: opacity var(--fast);
}
.showcase__name { font: 400 16px/1.2 var(--serif); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.showcase__price { font: 600 10px/1.4 var(--sans); letter-spacing: var(--track); text-transform: uppercase; color: var(--gold); }
@media (hover: hover) {
    .showcase__label { opacity: 0; transform: translateY(6px); transition: opacity var(--fast), transform var(--fast) var(--ease); }
    .showcase__item:hover .showcase__label, .showcase__item:focus-visible .showcase__label { opacity: 1; transform: none; }
    .showcase__item:hover img { animation-play-state: paused; }
}
.showcase__item:focus-visible { outline-offset: -2px; }

/* Without the JS loop the row simply scrolls sideways */
html:not(.js-showcase) .showcase { overflow-x: auto; scrollbar-width: none; }

.section { padding-block: 72px; }
@media (min-width: 860px) { .section { padding-block: 120px; } }
.section__head { margin-bottom: 36px; display: grid; gap: 14px; }
.section__head--split { grid-template-columns: 1fr auto; align-items: end; }
@media (min-width: 860px) { .section__head { margin-bottom: 56px; } }

/* Collections */
.collections { display: grid; gap: 16px; }
.collection { position: relative; display: block; background: var(--paper); }
.collection .plate img { transition: transform 1.6s var(--ease); }
.collection:hover .plate img { transform: scale(1.04); }
.collection__body { display: grid; gap: 10px; padding: 24px; }
.collection__name { font: 400 32px/1.1 var(--serif); }
.collection .link-line { margin-top: 4px; }
@media (min-width: 720px) {
    .collections--2 { grid-template-columns: 1fr 1fr; }
    .collections--3 { grid-template-columns: repeat(3, 1fr); }
    /* A single collection becomes an editorial split */
    .collections--1 .collection { display: grid; grid-template-columns: 1fr 1fr; align-items: center; }
    .collections--1 .collection__body { padding: 48px clamp(32px, 6vw, 96px); }
    .collections--1 .collection__name { font-size: clamp(40px, 5vw, 64px); }
}

/* Product grid & card */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 16px; }
@media (min-width: 860px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 64px 28px; } }
@media (min-width: 1200px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.card { display: flex; flex-direction: column; min-width: 0; }
.card__media { position: relative; display: block; }
.card__media .plate img { transition: opacity .8s var(--ease), transform 1.6s var(--ease); }
.card:hover .card__media .plate:first-child img { transform: scale(1.035); }
.plate--alt { position: absolute; inset: 0; opacity: 0; transition: opacity .9s var(--ease); }
@media (hover: hover) { .card:hover .has-alt .plate--alt { opacity: 1; } }
.card__info { display: grid; gap: 6px; padding-top: 18px; }
.card__title { font: 500 20px/1.2 var(--serif); overflow-wrap: anywhere; }
.card__title a { display: inline-block; padding-block: 10px; margin-block: -10px; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .6s var(--ease); }
.card__title a:hover { background-size: 100% 1px; }
.card__price { display: flex; gap: 10px; align-items: baseline; font-size: 14px; letter-spacing: .04em; }
.card__price s { font-size: 13px; }
@media (min-width: 860px) { .card__title { font-size: 22px; } }

/* Story */
.story { background: var(--ink); color: var(--text-light); padding-block: 88px; }
.story .label { color: var(--gold); }
.story__inner { display: grid; gap: 56px; }
.story__copy { display: grid; gap: 22px; align-content: start; max-width: 560px; }
.story__lead { font: 400 22px/1.5 var(--serif); color: var(--text-light); }
.story__facts { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line-dark); }
.story__facts > div { padding: 24px 16px 24px 0; border-bottom: 1px solid var(--line-dark); }
.story__facts dt { font: 600 11px/1.4 var(--sans); letter-spacing: var(--track); text-transform: uppercase; color: var(--muted-light); }
.story__facts dd { margin-top: 10px; font: 400 44px/1 var(--serif); }
.story__facts dd.story__small { font-size: 22px; line-height: 1.3; }
.story__facts a { display: inline-flex; align-items: center; min-height: 44px; margin-block: -9px; }
.story__facts a:hover { color: var(--gold); }
@media (min-width: 860px) {
    .story { padding-block: 140px; }
    .story__inner { grid-template-columns: 1.1fr 1fr; gap: 96px; align-items: center; }
}

/* =========================================================
   Footer
   ========================================================= */
.footer { background: var(--ink); color: var(--muted-light); border-top: 1px solid var(--line-dark); padding: 64px 0 28px; font-size: 14px; }
.footer__top { display: grid; gap: 40px; }
.footer__brand { display: grid; gap: 18px; justify-items: start; max-width: 320px; }
.logo--footer img { height: 110px; width: auto; filter: url(#logo-knockout); }
.footer__col { display: grid; gap: 2px; align-content: start; }
.footer__col .label { color: var(--gold); margin-bottom: 10px; }
.footer__col a, .footer__col span { display: flex; align-items: center; min-height: 44px; transition: color var(--fast); }
.footer__col a:hover { color: var(--text-light); }
.socials { display: flex; gap: 4px; margin-left: -10px; }
.socials a { display: grid; place-items: center; width: 44px; height: 44px; transition: color var(--fast); }
.socials a:hover { color: var(--gold); }
.footer__bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line-dark); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: 12px; letter-spacing: .08em; }
@media (min-width: 860px) { .footer__top { grid-template-columns: 2fr 1fr 1fr; } }
.has-buybar .footer { padding-bottom: 104px; }

/* =========================================================
   Bag drawer & toast
   ========================================================= */
.overlay { position: fixed; inset: 0; z-index: 50; background: rgba(18, 18, 19, .5); opacity: 0; visibility: hidden; transition: opacity .5s var(--ease), visibility .5s; }
.cart-open .overlay { opacity: 1; visibility: visible; }
.drawer {
    position: fixed; top: 0; right: 0; bottom: 0; z-index: 51;
    width: min(440px, 100%);
    display: flex; flex-direction: column;
    background: var(--ivory);
    transform: translateX(100%); visibility: hidden;
    transition: transform .6s var(--ease), visibility .6s;
}
.cart-open .drawer { transform: none; visibility: visible; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 14px 12px 14px var(--gutter); border-bottom: 1px solid var(--stone); }
.drawer__title { font: 400 26px/1.2 var(--serif); }
.drawer__title .muted { font-size: 18px; }
.drawer__items { flex: 1; overflow-y: auto; padding: 8px var(--gutter); }
.drawer__empty { display: grid; gap: 10px; justify-items: center; text-align: center; padding: 72px 8px; }
.drawer__empty p:first-child { font: 400 24px/1.3 var(--serif); }
.drawer__empty .btn { margin-top: 18px; }
.drawer__foot { display: grid; gap: 10px; padding: 20px var(--gutter) calc(20px + env(safe-area-inset-bottom)); border-top: 1px solid var(--stone); }
.drawer__total { display: flex; justify-content: space-between; align-items: baseline; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; }
.drawer__total strong { font: 500 24px/1 var(--serif); letter-spacing: 0; }

.line { display: grid; grid-template-columns: 84px 1fr auto; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--stone); }
.line__img { display: block; }
.line h4 { font: 500 18px/1.25 var(--serif); }
.line small { display: block; margin-top: 2px; color: var(--muted); font-size: 13px; }
.line__qty { display: inline-flex; align-items: center; margin-top: 10px; border: 1px solid var(--stone); }
.line__qty button { width: 40px; height: 40px; font-size: 16px; }
.line__qty span { min-width: 22px; text-align: center; font-size: 14px; }
.line__right { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; }
.line__right strong { font-weight: 500; font-size: 14px; }
.line__remove { min-height: 44px; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }

.toast {
    position: fixed; left: 50%; bottom: 24px; z-index: 60;
    max-width: calc(100% - 32px); padding: 14px 22px;
    background: var(--ink); color: var(--text-light); font-size: 14px;
    transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
    transition: transform .5s var(--ease), opacity .5s var(--ease);
}
.toast.is-show { transform: translate(-50%, 0); opacity: 1; }
.has-buybar .toast { bottom: 100px; }
.cart-open .toast { opacity: 0; } /* the open bag already confirms the item */

/* =========================================================
   Inner pages
   ========================================================= */
.page-head { padding-top: 32px; padding-bottom: 32px; }
.page-head__title { margin-top: 20px; font: 400 clamp(42px, 8vw, 80px)/1 var(--serif); }
.page-head__sub { margin-top: 14px; color: var(--muted); }
.page-head--slim .page-head__title { font-size: clamp(38px, 6vw, 56px); }
@media (min-width: 860px) { .page-head { padding-top: 56px; padding-bottom: 48px; } }

.crumbs { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 12px; letter-spacing: .08em; color: var(--muted); }
.crumbs a { display: inline-flex; align-items: center; min-height: 24px; }
.crumbs a:hover { color: var(--text); }
.crumbs [aria-current] { color: var(--text); overflow-wrap: anywhere; }

/* Catalog */
.catalog { padding-bottom: 96px; }
.chips {
    display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none;
    margin: 0 calc(-1 * var(--gutter)) 16px; padding: 2px var(--gutter);
}
.chips::-webkit-scrollbar { display: none; }
.chip {
    flex: none; display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px;
    border: 1px solid var(--stone); border-radius: 999px;
    font-size: 13px; letter-spacing: .06em; white-space: nowrap; cursor: pointer;
    transition: border-color var(--fast), background var(--fast), color var(--fast);
}
.chip:hover { border-color: var(--ui-border); }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: var(--text-light); }

.filters {
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
    padding: 16px 0 28px; margin-bottom: 36px; border-bottom: 1px solid var(--stone);
}
.filters > * { min-width: 0; }
.filters__search { grid-column: 1 / -1; position: relative; display: block; }
.filters__search .i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.filters input, .select select, .field input, .field textarea {
    width: 100%; min-height: 48px; padding: 0 14px;
    background: var(--paper); border: 1px solid var(--ui-border); border-radius: var(--radius);
    font-size: 15px; transition: border-color var(--fast), box-shadow var(--fast);
}
.filters__search input { padding-left: 44px; }
.filters input:focus, .select select:focus, .field input:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.filters__price { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; color: var(--muted); }
.select { position: relative; display: block; }
.select select { appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer; }
.select::after { content: ""; position: absolute; right: 16px; top: 50%; width: 7px; height: 7px; border: solid var(--text); border-width: 0 1.2px 1.2px 0; transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.filters .btn { min-height: 48px; }
.filters .btn--text { grid-column: 1 / -1; justify-self: start; min-height: 44px; padding-left: 0; }
@media (min-width: 860px) {
    .filters { display: flex; align-items: center; flex-wrap: wrap; }
    .filters__search { flex: 1 1 260px; max-width: 380px; }
    .filters__price { flex: 0 1 300px; }
    .filters .select { flex: 0 0 220px; margin-left: auto; }
    .filters .btn--text { padding-left: 12px; }
}

.pager { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 6px; margin-top: 72px; }
.pager a { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 44px; min-height: 44px; padding: 0 10px; font-size: 14px; border-bottom: 1px solid transparent; transition: border-color var(--fast); }
.pager a:hover { border-color: var(--stone); }
.pager__num.is-active { border-color: var(--ink); }
.pager__step span { letter-spacing: .14em; text-transform: uppercase; font-size: 12px; font-weight: 600; }
.pager .i { width: 16px; }

/* Empty / error states */
.state { display: grid; justify-items: center; gap: 14px; max-width: 520px; margin: 0 auto; padding: 72px 0 96px; text-align: center; }
.state--page { padding: 96px 0 128px; }
.state__mark { width: 48px; height: 48px; fill: none; stroke: var(--gold-ink); stroke-width: 1; stroke-linecap: round; margin-bottom: 8px; }
.state__title { font: 400 clamp(32px, 6vw, 48px)/1.1 var(--serif); }
.state__text { color: var(--muted); }
.state__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 18px; }

/* =========================================================
   Product page
   ========================================================= */
.pdp { padding-top: 24px; padding-bottom: 32px; }
.pdp__grid { display: grid; gap: 32px; margin-top: 20px; }
@media (min-width: 960px) {
    .pdp { padding-top: 40px; }
    .pdp__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 72px; margin-top: 32px; align-items: start; }
    .gallery { position: sticky; top: calc(var(--hh) + 24px); }
}

.gallery { margin-inline: calc(-1 * var(--gutter)); }
@media (min-width: 720px) { .gallery { margin-inline: 0; } }
.gallery__stage { position: relative; }
.gallery__zoom { display: block; width: 100%; position: relative; cursor: zoom-in; }
.gallery__zoom .plate img { transition: opacity .4s var(--ease), transform .5s var(--ease); }
.gallery__zoom.is-zooming .plate img { transform: scale(2.2); transition: opacity .4s var(--ease), transform .3s var(--ease); }
.gallery__zoom img.is-swapping { opacity: 0; }
.gallery__hint { position: absolute; right: 14px; bottom: 14px; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, .9); border: 1px solid var(--stone); color: var(--text); transition: opacity var(--fast); }
.gallery__zoom.is-zooming .gallery__hint { opacity: 0; }
.gallery__thumbs { display: flex; gap: 10px; margin-top: 10px; padding-inline: var(--gutter); overflow-x: auto; scrollbar-width: none; }
.gallery__thumbs::-webkit-scrollbar { display: none; }
@media (min-width: 720px) { .gallery__thumbs { padding-inline: 0; } }
.thumb { flex: none; width: 76px; border: 1px solid transparent; transition: border-color var(--fast); }
.thumb.is-active { border-color: var(--ink); }
.thumb:hover:not(.is-active) { border-color: var(--stone); }

.pdp__info { display: grid; gap: 22px; align-content: start; }
.pdp__title { margin-top: -8px; font: 400 clamp(36px, 6vw, 54px)/1.05 var(--serif); overflow-wrap: anywhere; }
.pdp__meta { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; padding-bottom: 22px; border-bottom: 1px solid var(--stone); }
.pdp__price { display: flex; gap: 12px; align-items: baseline; font: 400 28px/1 var(--serif); }
.pdp__price s { font-size: 18px; }
.pdp__rating { display: inline-flex; gap: 8px; align-items: center; min-height: 44px; font-size: 13px; }

.opt { display: grid; gap: 14px; }
.opt__head { display: flex; gap: 12px; align-items: baseline; }
.opt__head strong { font-weight: 500; font-size: 14px; }
.swatches, .sizes { display: flex; flex-wrap: wrap; gap: 8px; }
.swatch { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 1px solid transparent; transition: border-color var(--fast); }
.swatch span { width: 34px; height: 34px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); }
.swatch:hover { border-color: var(--stone); }
.swatch.is-active { border-color: var(--ink); }
.swatch.is-out { opacity: .35; }
.swatch.is-out span { background: linear-gradient(135deg, transparent 47%, var(--muted) 48%, var(--muted) 52%, transparent 53%), var(--c); }
.size { min-width: 56px; min-height: 48px; padding: 0 16px; border: 1px solid var(--stone); font-size: 14px; transition: border-color var(--fast), background var(--fast), color var(--fast); }
.size:hover { border-color: var(--ui-border); }
.size.is-active { background: var(--ink); border-color: var(--ink); color: var(--text-light); }
.size.is-out { color: var(--muted); text-decoration: line-through; }

.stock { display: flex; align-items: center; gap: 10px; min-height: 24px; font-size: 13px; letter-spacing: .04em; color: var(--muted); }
.stock::before { content: ""; width: 7px; height: 7px; border-radius: 50%; border: 1px solid var(--ui-border); }
.stock.is-in::before { background: var(--ok); border-color: var(--ok); }
.stock.is-out::before { background: var(--muted); border-color: var(--muted); }
.stock.is-error { color: var(--error); animation: nudge .4s var(--ease); }
.stock.is-error::before { border-color: var(--error); }

.pdp__buy { display: flex; gap: 10px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--ui-border); border-radius: var(--radius); }
.qty button { width: 44px; height: 50px; font-size: 18px; }
.qty input { width: 32px; height: 50px; border: 0; background: none; text-align: center; font-size: 15px; -moz-appearance: textfield; }
.qty input::-webkit-inner-spin-button, .qty input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.qty input:focus { outline: none; }

.accordion { border-top: 1px solid var(--stone); margin-top: 6px; }
.accordion details { border-bottom: 1px solid var(--stone); }
.accordion summary {
    display: flex; justify-content: space-between; align-items: center; min-height: 60px;
    font: 600 12px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase;
    list-style: none; cursor: pointer;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: ""; width: 11px; height: 11px; background: linear-gradient(currentColor, currentColor) center / 100% 1px no-repeat, linear-gradient(currentColor, currentColor) center / 1px 100% no-repeat; transition: transform var(--fast) var(--ease); }
.accordion details[open] summary::after { transform: rotate(45deg); }
.accordion__body { display: grid; gap: 12px; padding-bottom: 24px; color: var(--muted); }

/* Sticky buy bar (mobile) */
.buybar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    display: flex; align-items: center; gap: 14px;
    padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom));
    background: rgba(246, 243, 238, .96); border-top: 1px solid var(--stone);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    transform: translateY(105%); transition: transform .5s var(--ease);
}
.buybar.is-show { transform: none; }
.buybar__info { flex: 1; min-width: 0; display: grid; }
.buybar__info strong { font: 500 17px/1.2 var(--serif); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.buybar__info span { font-size: 13px; color: var(--muted); }
.buybar .btn { min-height: 48px; padding: 0 22px; }
@media (min-width: 960px) { .buybar { display: none; } }

/* Lightbox */
.lightbox { width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: var(--paper); color: var(--text); }
.lightbox::backdrop { background: rgba(18, 18, 19, .8); }
.lightbox[open] { display: grid; place-items: center; animation: fade .4s var(--ease); }
.lightbox img { width: 100%; height: 100%; object-fit: contain; touch-action: pinch-zoom; }
.lightbox__close { position: absolute; top: 12px; right: 12px; background: var(--paper); border: 1px solid var(--stone); }
.lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); background: var(--paper); border: 1px solid var(--stone); }
.lightbox__nav--prev { left: 12px; }
.lightbox__nav--next { right: 12px; }

/* Reviews */
.reviews { border-top: 1px solid var(--stone); }
.reviews__empty { color: var(--muted); font: 400 21px/1.5 var(--serif); max-width: 44ch; }
.reviews__grid { display: grid; gap: 40px; }
@media (min-width: 860px) { .reviews__grid { grid-template-columns: 300px 1fr; gap: 72px; align-items: start; } }
.reviews__summary { display: grid; gap: 8px; justify-items: start; }
.reviews__avg { font: 400 64px/1 var(--serif); }
.reviews__bars { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 6px; width: 100%; font-size: 13px; }
.reviews__bars li { display: grid; grid-template-columns: 28px 1fr 24px; gap: 10px; align-items: center; }
.reviews__bar { height: 2px; background: var(--stone); }
.reviews__bar i { display: block; height: 100%; background: var(--gold-ink); }
.reviews__list .btn { margin-top: 28px; }
.stars { color: var(--gold-ink); letter-spacing: 2px; font-size: 14px; }
.stars__off { color: var(--stone); }
.review { display: grid; gap: 10px; padding: 28px 0; border-bottom: 1px solid var(--stone); }
.review:first-child { padding-top: 0; }
.review__head { display: flex; gap: 14px; align-items: center; font-size: 13px; }
.review__title { font: 500 21px/1.3 var(--serif); }
.review__text { color: var(--text); }
.review__photos { display: flex; gap: 8px; flex-wrap: wrap; }
.review__photos img { width: 72px; height: 72px; object-fit: cover; }
.review__by { display: flex; gap: 12px; align-items: center; font-size: 13px; }
.review__by strong { font-weight: 600; }
.review__verified { color: var(--ok); }
.review__reply { margin-top: 6px; padding: 16px 18px; background: var(--paper); border-left: 1px solid var(--gold-ink); font-size: 14px; }
.review__reply p { margin-top: 6px; color: var(--muted); }

/* =========================================================
   Checkout
   ========================================================= */
.checkout { padding-bottom: 96px; }
.checkout__grid { display: grid; gap: 40px; }
@media (min-width: 960px) { .checkout__grid { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 72px; align-items: start; } .co-summary { position: sticky; top: calc(var(--hh) + 24px); } }
.co-form { display: grid; gap: 18px; }
.co-title { display: flex; align-items: center; gap: 14px; font: 400 28px/1.2 var(--serif); }
.co-form .co-title:not(:first-child) { margin-top: 20px; }
.co-step { display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid var(--gold-ink); border-radius: 50%; color: var(--gold-ink); font: 600 12px/1 var(--sans); }
.co-alert { padding: 14px 16px; border-left: 2px solid var(--error); background: #F6E9E5; color: var(--error); font-size: 14px; }
.co-pay { display: flex; align-items: center; gap: 16px; padding: 18px; background: var(--paper); border: 1px solid var(--ink); }
.co-pay div { display: grid; gap: 2px; }
.co-pay strong { font-weight: 600; }
.co-pay .muted { font-size: 13px; }
.co-pay__radio { flex: none; width: 18px; height: 18px; border-radius: 50%; border: 1px solid var(--ink); box-shadow: inset 0 0 0 4px var(--paper); background: var(--ink); }
.co-summary { display: grid; gap: 18px; padding: 28px var(--gutter); margin-inline: calc(-1 * var(--gutter)); background: var(--paper); }
@media (min-width: 720px) { .co-summary { margin-inline: 0; padding: 32px; } }
.co-issues { margin: 0; padding: 14px 16px 14px 32px; background: #F7F0E2; color: #6B5222; font-size: 14px; }
.co-items { display: grid; }
.co-line { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--stone); }
.co-line h4 { font: 500 17px/1.25 var(--serif); }
.co-line small { color: var(--muted); font-size: 13px; }
.co-line strong { font-weight: 500; font-size: 14px; }
.co-line > span { display: grid; gap: 8px; }
.sk { display: block; height: 12px; width: 80%; background: linear-gradient(100deg, #EFEBE4 30%, #F8F6F2 50%, #EFEBE4 70%) 0 0 / 250% 100%; animation: shimmer 1.6s linear infinite; }
.sk--img { width: 64px; height: 64px; }
.sk--short { width: 40%; }
.sk--price { width: 48px; }
.checkout.is-loading .co-totals dd { opacity: .4; }
.co-totals { display: grid; gap: 10px; font-size: 14px; }
.co-totals div { display: flex; justify-content: space-between; gap: 12px; }
.co-totals dt { color: var(--muted); }
.co-totals dd { transition: opacity var(--fast); text-align: right; }
.co-totals__total { padding-top: 14px; border-top: 1px solid var(--stone); }
.co-totals__total dt { color: var(--text); letter-spacing: .14em; text-transform: uppercase; font-size: 13px; align-self: center; }
.co-totals__total dd { font: 500 28px/1 var(--serif); }
.co-note { text-align: center; }
.co-done { display: grid; justify-items: center; gap: 14px; max-width: 560px; margin: 0 auto; padding: 48px 0 72px; text-align: center; }
.co-done__mark { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; border: 1px solid var(--gold-ink); color: var(--gold-ink); margin-bottom: 8px; }
.co-done__mark .i { width: 26px; height: 26px; }
.co-done__number { font: 400 22px/1.4 var(--serif); }

/* Forms (checkout & contact) */
.field { display: grid; gap: 8px; }
.field > span:first-child, .field > legend { font: 600 11px/1.4 var(--sans); letter-spacing: .16em; text-transform: uppercase; }
.field > legend { margin-bottom: 8px; }
.field em { font-style: normal; text-transform: none; letter-spacing: 0; font-weight: 400; }
.field textarea { min-height: 110px; padding: 12px 14px; resize: vertical; }
.field small { color: var(--error); font-size: 13px; min-height: 0; }
.field small:empty { display: none; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--error); }
.field-row { display: grid; gap: 18px; }
@media (min-width: 600px) { .field-row { grid-template-columns: 1fr 1fr; } }
.select--field select { min-height: 48px; }
.chips--radio { flex-wrap: wrap; overflow: visible; margin: 0; padding: 0; }
.chips--radio input { position: absolute; opacity: 0; pointer-events: none; }
.chips--radio .chip:has(input:checked) { background: var(--ink); border-color: var(--ink); color: var(--text-light); }
.chips--radio .chip:has(input:focus-visible) { outline: 2px solid var(--gold-ink); outline-offset: 3px; }

/* Contact */
.contact { display: grid; gap: 40px; padding-bottom: 96px; }
@media (min-width: 960px) { .contact { grid-template-columns: 1fr 1.5fr; gap: 72px; align-items: start; } }
.contact__cards { display: grid; gap: 12px; align-content: start; }
.info-card { display: flex; gap: 18px; align-items: flex-start; padding: 24px; background: var(--paper); transition: background var(--fast); }
a.info-card:hover { background: #FBFAF7; }
.info-card .i { color: var(--gold-ink); margin-top: 2px; }
.info-card p:last-child { margin-top: 4px; font: 400 21px/1.3 var(--serif); }
.contact__form { display: grid; gap: 22px; }
.alert { padding: 14px 16px; font-size: 14px; }
.alert--ok { border-left: 2px solid var(--ok); background: #E8F0EA; color: var(--ok); }

/* ---------- Reveal on scroll (slow and subtle) ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 1.1s var(--ease) var(--d, 0ms), transform 1.1s var(--ease) var(--d, 0ms); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Keyframes ---------- */
@keyframes shimmer { to { background-position: -250% 0; } }
@keyframes drift { from { transform: scale(1.08); } to { transform: scale(1); } }
@keyframes scrollcue { 0% { transform: scaleY(0); opacity: 1; } 60% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }
@keyframes bump { 50% { transform: scale(1.3); } }
@keyframes nudge { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
@keyframes fade { from { opacity: 0; } }
@keyframes sweep { to { transform: rotate(360deg); } }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-.6deg); } 50% { transform: translateY(-8px) rotate(.6deg); } }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
    .js .reveal { opacity: 1; transform: none; }
}
