/* Tesorique storefront. Black, ivory and the logo's gold; Jost (light, geometric, like the wordmark) with
   Cormorant Garamond italic for editorial lines. Mobile first; breakpoints 640, 900, 1200. No framework. */

:root {
  --ink: #0C0A09;
  --ink-2: #1C1917;
  --text: #1C1917;
  --muted: #6B6560;
  --faint: #756E68;   /* 5.0 : 1 on white, 4.6 : 1 on the photo background: still readable as small text */
  --line: #E7E2DC;
  --line-2: #D6CFC7;
  --bg: #FFFFFF;
  --ivory: #FAF8F5;
  --sand: #F3EEE7;
  --stone: #F6F4F1;
  --gold: #B8862E;
  --gold-ink: #8A5A12;
  --gold-light: #E9CF8E;
  --gold-grad: linear-gradient(135deg, #F6E3A6 0%, #D9AC57 42%, #A8741A 78%, #8A5A12 100%);
  --sale: #B42318;
  --ok: #1E7B4F;
  --warn: #9A5B00;
  --focus: #8A5A12;

  --font: "Jost", "Futura", "Century Gothic", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --serif: "Cormorant Garamond", "Cormorant", Garamond, "Times New Roman", serif;

  --wrap: 1360px;
  --gutter: 16px;
  --r: 2px;
  --r-lg: 6px;
  --header-h: 64px;
  --shadow: 0 18px 50px rgba(12, 10, 9, .14);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --t-fast: 160ms;
  --t: 260ms;

  --z-header: 40;
  --z-drawer: 90;
  --z-toast: 100;
}
@media (min-width: 640px) { :root { --gutter: 24px; } }
@media (min-width: 1200px) { :root { --gutter: 40px; --header-h: 76px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 16px/1.6 var(--font); letter-spacing: .01em;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column;
}
main { flex: 1 0 auto; }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--gold-ink); }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { margin: 0 0 .5em; font-weight: 400; line-height: 1.15; letter-spacing: .02em; color: var(--ink); text-wrap: balance; }
h1 { font-size: clamp(1.9rem, 1.4rem + 2.2vw, 3.1rem); font-weight: 300; }
h2 { font-size: clamp(1.45rem, 1.2rem + 1.2vw, 2.15rem); font-weight: 300; }
h3 { font-size: 1.1rem; font-weight: 500; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
::selection { background: var(--gold-light); color: var(--ink); }
.ic { width: 20px; height: 20px; flex: none; }
.sr-only { 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: 12px; top: -60px; z-index: 200; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--r); }
.skip-link:focus { top: 12px; color: #fff; }

.container { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.container--narrow { max-width: 860px; }
.container--text { max-width: 760px; }
.section { padding: 56px 0; }
.section--tight { padding: 36px 0; }
.section--ivory { background: var(--ivory); }
.section--ink { background: var(--ink); color: #EDE8E1; }
.section--ink h2, .section--ink h3 { color: #fff; }
@media (min-width: 900px) { .section { padding: 88px 0; } .section--tight { padding: 52px 0; } }

.eyebrow { display: inline-block; margin: 0 0 12px; font-size: .72rem; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; color: var(--gold-ink); }
.section--ink .eyebrow { color: var(--gold-light); }
.serif { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: 0; }
.lead { font-size: 1.08rem; color: var(--muted); max-width: 60ch; }
.muted { color: var(--muted); }
.small { font-size: .86rem; }
.caps { text-transform: uppercase; letter-spacing: .16em; font-size: .74rem; font-weight: 500; }
.gold-rule { width: 56px; height: 1px; background: var(--gold-grad); border: 0; margin: 20px 0; }
.center { text-align: center; }
.center .gold-rule, .center .lead { margin-left: auto; margin-right: auto; }

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 28px; border: 1px solid var(--ink); border-radius: var(--r);
  background: var(--ink); color: #fff; text-decoration: none; cursor: pointer;
  font-size: .78rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; line-height: 1.2; text-align: center;
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
  touch-action: manipulation;
}
.btn:hover { background: var(--ink-2); color: var(--gold-light); }
.btn:active { transform: scale(.985); }
.btn .ic { width: 18px; height: 18px; }
.btn--block { width: 100%; }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.btn--light { background: #fff; color: var(--ink); border-color: #fff; }
.btn--light:hover { background: var(--ivory); color: var(--gold-ink); }
.btn--outline-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .55); }
.btn--outline-light:hover { background: #fff; color: var(--ink); }
.btn--gold { background: var(--gold-grad); border-color: transparent; color: var(--ink); }
.btn--gold:hover { color: var(--ink); filter: brightness(1.06); }
.btn--sm { min-height: 40px; padding: 0 18px; font-size: .72rem; }
.btn[disabled], .btn.is-disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn.is-busy { position: relative; color: transparent !important; }
.btn.is-busy::after { content: ""; position: absolute; width: 18px; height: 18px; border: 2px solid rgba(255, 255, 255, .35); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
.btn--ghost.is-busy::after { border-color: rgba(12, 10, 9, .2); border-top-color: var(--ink); }
@keyframes spin { to { transform: rotate(360deg); } }
.link { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; padding: 0; color: var(--ink); text-decoration: underline; text-underline-offset: 4px; font-size: .9rem; cursor: pointer; }
.link:hover { color: var(--gold-ink); }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-size: .76rem; letter-spacing: .2em; text-transform: uppercase; font-weight: 500; border-bottom: 1px solid currentColor; padding-bottom: 4px; }
.link-arrow .ic { width: 16px; height: 16px; transition: transform var(--t-fast) var(--ease); }
.link-arrow:hover .ic { transform: translateX(3px); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------------------------------------------------------------- announcement + header */
.announce { background: var(--ink); color: #EDE8E1; font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; text-align: center; }
.announce .container { min-height: 36px; display: flex; align-items: center; justify-content: center; padding-top: 8px; padding-bottom: 8px; }
.announce a { color: var(--gold-light); }

.site-header { position: sticky; top: 0; z-index: var(--z-header); background: rgba(255, 255, 255, .97); border-bottom: 1px solid var(--line); transition: box-shadow var(--t) var(--ease); }
@supports (backdrop-filter: blur(8px)) { .site-header { background: rgba(255, 255, 255, .9); backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px); } }
.site-header.is-stuck { box-shadow: 0 6px 24px rgba(12, 10, 9, .06); }
.header__bar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: var(--header-h); gap: 8px; }
.header__left, .header__right { display: flex; align-items: center; gap: 4px; }
.header__right { justify-content: flex-end; }
.brand { display: block; line-height: 0; text-decoration: none; }
.brand img { width: clamp(150px, 34vw, 230px); height: auto; }
.icon-btn {
  position: relative; display: inline-grid; place-items: center; width: 44px; height: 44px; border: 0; background: none; color: var(--ink);
  border-radius: 50%; text-decoration: none; transition: background var(--t-fast) var(--ease);
}
.icon-btn:hover { background: var(--stone); color: var(--ink); }
.icon-btn .ic { width: 22px; height: 22px; stroke-width: 1.5; }
.bag-count {
  position: absolute; top: 5px; right: 3px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: var(--ink); color: #fff; font-size: .64rem; font-weight: 600; line-height: 18px; text-align: center; letter-spacing: 0;
}
.bag-count[hidden] { display: none; }
.header__text-link { display: none; font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; text-decoration: none; padding: 10px 8px; }
.nav-main { display: none; }
.nav-main ul { list-style: none; margin: 0; padding: 0; display: flex; justify-content: center; flex-wrap: wrap; gap: 4px 30px; }
.nav-main a { display: inline-block; padding: 14px 0 15px; font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; text-decoration: none; color: var(--ink); border-bottom: 1px solid transparent; transition: border-color var(--t-fast), color var(--t-fast); }
.nav-main a:hover, .nav-main a[aria-current="page"] { border-bottom-color: var(--gold); color: var(--ink); }
.nav-main .nav-sale { color: var(--sale); }
@media (min-width: 1000px) {
  .nav-toggle { display: none; }
  .nav-main { display: block; border-top: 1px solid var(--line); }
  .header__text-link { display: inline-block; }
  .header__search-label { display: inline; }
}

/* search bar (drops under the header) */
.search-panel { border-top: 1px solid var(--line); background: #fff; }
.search-panel[hidden] { display: none; }
.search-form { display: flex; align-items: center; gap: 12px; padding: 14px 0; }
.search-form .ic { color: var(--muted); }
.search-form input { flex: 1; min-width: 0; border: 0; border-bottom: 1px solid var(--line-2); border-radius: 0; padding: 10px 2px; font-size: 1.05rem; background: transparent; outline: none; }
.search-form input:focus { border-bottom-color: var(--ink); }

/* mobile menu drawer */
.drawer { position: fixed; inset: 0; z-index: var(--z-drawer); visibility: hidden; pointer-events: none; }
.drawer.is-open { visibility: visible; pointer-events: auto; }
.drawer__scrim { position: absolute; inset: 0; background: rgba(12, 10, 9, .45); opacity: 0; transition: opacity var(--t) var(--ease); }
.drawer.is-open .drawer__scrim { opacity: 1; }
.drawer__panel {
  position: absolute; top: 0; bottom: 0; width: min(420px, 92vw); background: #fff; display: flex; flex-direction: column;
  transition: transform var(--t) var(--ease); box-shadow: var(--shadow);
}
.drawer--left .drawer__panel { left: 0; transform: translateX(-102%); }
.drawer--right .drawer__panel { right: 0; transform: translateX(102%); }
.drawer.is-open .drawer__panel { transform: none; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 12px 12px var(--gutter); border-bottom: 1px solid var(--line); min-height: 64px; }
.drawer__title { margin: 0; font-size: .78rem; letter-spacing: .22em; text-transform: uppercase; font-weight: 500; }
.drawer__body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 8px var(--gutter) 24px; }
.drawer__foot { border-top: 1px solid var(--line); padding: 16px var(--gutter) calc(16px + env(safe-area-inset-bottom)); background: #fff; }
.menu-list { list-style: none; margin: 0; padding: 0; }
.menu-list a, .menu-list summary { display: flex; align-items: center; justify-content: space-between; min-height: 52px; padding: 6px 0; border-bottom: 1px solid var(--line); text-decoration: none; font-size: .86rem; letter-spacing: .16em; text-transform: uppercase; cursor: pointer; list-style: none; }
.menu-list summary::-webkit-details-marker { display: none; }
.menu-list details[open] summary .ic { transform: rotate(180deg); }
.menu-list .ic { transition: transform var(--t-fast); }
.menu-list ul { list-style: none; margin: 0; padding: 4px 0 8px 14px; }
.menu-list ul a { min-height: 44px; border-bottom: 0; font-size: .82rem; letter-spacing: .08em; text-transform: none; color: var(--muted); }
.menu-extra { margin-top: 18px; display: grid; gap: 4px; }
.menu-extra a { display: flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; font-size: .9rem; color: var(--muted); }
body.drawer-open { overflow: hidden; }

/* ---------------------------------------------------------------- hero (home) */
.hero { position: relative; overflow: hidden; background: var(--ink); color: #EDE8E1; isolation: isolate; }
.hero__in { position: relative; display: grid; align-content: center; min-height: min(78vh, 720px); padding: 72px var(--gutter); max-width: var(--wrap); margin: 0 auto; }
.hero__copy { position: relative; z-index: 2; max-width: 640px; }
.hero h1 { color: #fff; font-size: clamp(2.4rem, 1.6rem + 4vw, 4.6rem); letter-spacing: .01em; margin-bottom: 18px; }
.hero h1 .serif { display: block; color: var(--gold-light); font-size: 1.04em; line-height: 1.05; }
.hero p { color: #CFC8BF; font-size: 1.08rem; max-width: 46ch; margin-bottom: 30px; }
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; opacity: .62; }
.hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(12, 10, 9, .92) 0%, rgba(12, 10, 9, .55) 55%, rgba(12, 10, 9, .25) 100%); }
.hero__lines { position: absolute; inset: 0; z-index: 0; background:
  radial-gradient(1200px 500px at 85% 50%, rgba(217, 172, 87, .16), transparent 60%),
  repeating-linear-gradient(115deg, rgba(233, 207, 142, .05) 0 1px, transparent 1px 22px); }

/* Our story hero: the name as a dictionary entry on a glass card, beside the copy (about.php) */
.hero__in--story { min-height: min(56vh, 520px); gap: 48px; }
@media (min-width: 900px) { .hero__in--story { grid-template-columns: minmax(0, 1fr) minmax(0, 460px); align-items: center; gap: 64px; } }
.word { position: relative; z-index: 2; padding: 38px 36px 40px; color: #EDE8E1;
  background: linear-gradient(160deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .02)); border: 1px solid rgba(233, 207, 142, .38);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); box-shadow: 0 30px 80px rgba(0, 0, 0, .45); }
.word::before { content: ""; position: absolute; inset: 8px; border: 1px solid rgba(233, 207, 142, .14); pointer-events: none; }
.word p { margin: 0; color: inherit; max-width: none; }
.word .word__term { font-family: var(--serif); font-style: italic; font-size: clamp(2.6rem, 2rem + 2vw, 3.4rem); line-height: 1; color: var(--gold-light); }
.word .word__say { margin-top: 10px; font-size: .82rem; letter-spacing: .14em; color: #BDB5AC; }
.word .word__pos { margin-top: 18px; padding-bottom: 16px; font-size: .66rem; letter-spacing: .26em; text-transform: uppercase; color: var(--gold-light);
  border-bottom: 1px solid; border-image: linear-gradient(90deg, rgba(233, 207, 142, .55), transparent) 1; }
.word__defs { margin: 18px 0 0; padding: 0; list-style: none; counter-reset: def; display: grid; gap: 12px; }
.word__defs li { counter-increment: def; display: grid; grid-template-columns: 26px 1fr; font-size: 1.02rem; line-height: 1.5; }
.word__defs li::before { content: counter(def) "."; font-family: var(--serif); font-style: italic; font-size: 1.1rem; color: var(--gold-light); }
.word__seal { position: absolute; right: 24px; bottom: -28px; width: 62px; height: 62px; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 35% 30%, #2a2420, var(--ink) 70%); border: 2px solid var(--gold); box-shadow: 0 10px 24px rgba(0, 0, 0, .5), inset 0 0 0 3px rgba(233, 207, 142, .18); }
.word__seal img { width: 34px; height: 34px; }
@media (max-width: 899px) { .hero__in--story { padding-bottom: 76px; } .word { padding: 30px 24px 36px; } }

/* the latest finds carousel in the home hero (index.php, data-finds in site.js) */
.hero--finds .hero__in { min-height: 0; gap: 36px; padding-top: 48px; padding-bottom: 44px; }
.finds { --find-w: 64%; position: relative; z-index: 2; min-width: 0; }
.finds__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.finds__label { font-size: .72rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-light); }
.finds__count { font-family: var(--serif); font-size: 1.1rem; letter-spacing: .04em; color: #A39A90; font-variant-numeric: tabular-nums; }
.finds__count b { font-weight: 500; color: #fff; }
.finds__track { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; overscroll-behavior-x: contain; }
.finds__track::-webkit-scrollbar { display: none; }
.find { flex: 0 0 var(--find-w); scroll-snap-align: start; display: block; color: inherit; text-decoration: none; }
/* room after the last piece, so it lines up at the start like the others instead of showing a sliver of the one before */
.finds__track::after { content: ""; flex: 0 0 calc(100% - var(--find-w) - 14px); }
.find:hover { color: inherit; }
.find:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 3px; }
.find__media { display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var(--sand); }
.find__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease); }
.find:hover .find__media img { transform: scale(1.04); }
.find__cap { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding-top: 12px; }
.find__text { min-width: 0; }
.find__brand { display: block; margin-bottom: 3px; font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-light); }
.find__title { display: block; font-size: .95rem; line-height: 1.35; color: #fff; }
.find .price { flex: none; flex-direction: column; align-items: flex-end; gap: 0; color: #EDE8E1; }
.find .price s { color: #A39A90; }
.find .price .price__now--sale { color: #F2B8AE; }
.finds__nav { display: flex; align-items: center; gap: 8px; margin-top: 14px; }
.finds__dots { display: flex; flex: 1; min-width: 0; }
.finds__dots button { position: relative; width: 30px; height: 44px; padding: 0; border: 0; background: none; cursor: pointer; }
.finds__dots button::before { content: ""; position: absolute; left: 4px; right: 4px; top: 50%; height: 2px; background: rgba(237, 232, 225, .28); transition: background 300ms; }
.finds__dots button:hover::before { background: rgba(237, 232, 225, .6); }
.finds__dots button[aria-current="true"]::before { background: var(--gold-light); }
.finds__dots button:focus-visible { outline: 2px solid var(--gold-light); outline-offset: -6px; }
.finds__btn { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border: 1px solid rgba(237, 232, 225, .3); border-radius: 50%; background: transparent; color: #EDE8E1; cursor: pointer; transition: border-color 200ms, color 200ms; }
.finds__btn:hover { border-color: var(--gold-light); color: var(--gold-light); }
.finds__btn:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 2px; }
.finds__btn .ic { width: 18px; height: 18px; }
.finds__play .ic + .ic, .finds__play.is-paused .ic:first-child { display: none; }
.finds__play.is-paused .ic + .ic { display: block; }
@media (min-width: 640px) { .finds { --find-w: 46%; } }
@media (min-width: 900px) {
  /* the copy and the carousel sit together as one centered group, not pushed to opposite edges */
  .hero--finds .hero__in { min-height: min(78vh, 720px); grid-template-columns: auto minmax(320px, 420px); justify-content: center; align-items: center; gap: 56px; padding-top: 64px; padding-bottom: 64px; }
  .finds { --find-w: 86%; }
}
@media (min-width: 1200px) { .hero--finds .hero__in { grid-template-columns: auto 480px; column-gap: clamp(72px, 7vw, 120px); } }
@media (prefers-reduced-motion: reduce) { .finds__track { scroll-behavior: auto; } .find__media img { transition: none; } .find:hover .find__media img { transform: none; } }

/* trust strip */
.perks { border-bottom: 1px solid var(--line); background: #fff; }
.perks ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; }
.perks li { display: flex; align-items: center; gap: 12px; padding: 18px 8px; font-size: .78rem; letter-spacing: .08em; color: var(--ink-2); }
.perks li .ic { color: var(--gold); width: 22px; height: 22px; stroke-width: 1.4; }
.perks li span small { display: block; color: var(--muted); letter-spacing: 0; font-size: .78rem; }
@media (min-width: 900px) { .perks ul { grid-template-columns: repeat(4, 1fr); } .perks li { justify-content: center; padding: 22px 12px; } }

/* section heading row */
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.sec-head h2 { margin: 0; }
.sec-head .eyebrow { display: block; }

/* category tiles */
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (min-width: 900px) { .tiles { grid-template-columns: repeat(4, 1fr); gap: 18px; } }
.tile { position: relative; display: block; aspect-ratio: 3 / 4; overflow: hidden; background: var(--stone); text-decoration: none; color: var(--ink); isolation: isolate; }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 8% 8% 22%; mix-blend-mode: multiply; transition: transform 900ms var(--ease); }
.tile:hover { color: var(--ink); }
.tile--plain { color: #fff; }
.tile--plain:hover { color: #fff; }
.tile--plain::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(12, 10, 9, .5)); z-index: 1; }
.tile:hover img { transform: scale(1.04); }
.tile__label { position: absolute; z-index: 2; left: 16px; right: 16px; bottom: 16px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.tile__label span { font-size: .82rem; letter-spacing: .22em; text-transform: uppercase; }
.tile__label .ic { width: 18px; height: 18px; transition: transform var(--t-fast); }
.tile:hover .tile__label .ic { transform: translateX(4px); }
.tile--plain { background: linear-gradient(160deg, #1f1b18, #0C0A09); }
.tile--plain .tile__gem { position: absolute; z-index: 0; inset: auto; width: 46%; height: auto; padding: 0; left: 50%; top: 42%; transform: translate(-50%, -50%); opacity: .9; mix-blend-mode: normal; transition: transform 900ms var(--ease); }
.tile--plain:hover .tile__gem { transform: translate(-50%, -50%) scale(1.06) rotate(8deg); }
.tile--plain.tile--ivory { background: linear-gradient(160deg, #F3EEE7, #E7DED2); color: var(--ink); }
.tile--plain.tile--ivory::after { background: none; }

/* editorial split */
.split { display: grid; gap: 28px; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1.05fr 1fr; gap: 64px; } .split--flip > :first-child { order: 2; } }
.split__media { position: relative; aspect-ratio: 4 / 5; background: var(--sand); overflow: hidden; }
.split__media img { width: 100%; height: 100%; object-fit: cover; }

/* check_list() in _site.php: a gold tick beside each line */
.checks { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 14px; }
.checks li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; align-items: start; line-height: 1.55; color: var(--muted); }
.checks li .ic { width: 18px; height: 18px; margin-top: 3px; color: var(--gold-ink); }
.checks strong { font-weight: 500; color: var(--ink); }

/* "Every piece, checked by hand" on the home page: a real piece sealed in a collector's case (index.php) */
.case-wrap { position: relative; display: grid; place-items: center; aspect-ratio: 4 / 5; overflow: hidden; text-decoration: none; isolation: isolate;
  background: radial-gradient(circle at 50% 40%, #2a2420, var(--ink) 72%); }
.case-wrap::after { content: ""; position: absolute; inset: 0; z-index: -1; background: repeating-linear-gradient(115deg, rgba(233, 207, 142, .05) 0 1px, transparent 1px 22px); }
.case { display: block; width: min(66%, 400px); padding: 12px; border-radius: 14px; transform: rotate(-2deg); transition: transform 600ms var(--ease);
  background: linear-gradient(150deg, rgba(255, 255, 255, .28), rgba(255, 255, 255, .06) 40%, rgba(255, 255, 255, .14));
  border: 1px solid rgba(255, 255, 255, .35); box-shadow: 0 40px 70px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .5); }
.case-wrap:hover .case, .case-wrap:focus-visible .case { transform: rotate(0deg) translateY(-6px); }
.case__label { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; align-items: center; padding: 10px 12px; border-radius: 6px; color: var(--ink);
  background: linear-gradient(135deg, #F6E3A6, #D9AC57 45%, #A8741A); }
.case__label b { font-size: .66rem; letter-spacing: .24em; text-transform: uppercase; font-weight: 600; }
.case__label > span { font-size: .78rem; overflow-wrap: anywhere; }
.case__label em { grid-row: 1 / span 2; grid-column: 2; display: grid; justify-items: center; font-style: normal; }
.case__label em .ic { width: 24px; height: 24px; stroke-width: 2.4; }
.case__label em small { font-size: .5rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 600; }
.case__win { display: grid; place-items: center; margin-top: 10px; aspect-ratio: 1; border-radius: 6px; background: var(--ivory); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .06); }
.case__win img { width: 84%; height: 84%; object-fit: contain; mix-blend-mode: multiply; }
.case--empty .case__win img { width: 34%; height: auto; mix-blend-mode: normal; }
.case__foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 10px; padding: 0 4px; color: rgba(255, 255, 255, .85);
  font-size: .62rem; letter-spacing: .2em; text-transform: uppercase; }
.case__holo { width: 26px; height: 26px; flex: none; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(#F6E3A6, #9ed8d0, #c9a7f0, #F6E3A6, #e8b96a, #F6E3A6); }
.case__holo img { width: 16px; height: 16px; }
.case__foot > span:not(.case__holo) { white-space: nowrap; }
@media (max-width: 560px) { .case { width: 82%; } .case__foot { font-size: .56rem; letter-spacing: .14em; } }
@media (prefers-reduced-motion: reduce) { .case, .case-wrap:hover .case { transition: none; transform: rotate(-2deg); } }

/* brand row */
.brands-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 34px; list-style: none; margin: 0; padding: 0; }
.brands-row a { font-size: .9rem; letter-spacing: .24em; text-transform: uppercase; text-decoration: none; color: var(--muted); padding: 8px 0; }
.brands-row a:hover { color: var(--ink); }

/* newsletter */
.signup { max-width: 560px; margin: 0 auto; text-align: center; }
.signup form { display: flex; gap: 0; margin-top: 22px; border: 1px solid var(--ink); }
.signup input { flex: 1; min-width: 0; border: 0; padding: 0 16px; min-height: 52px; background: #fff; font-size: 16px; outline: none; }
.signup .btn { border: 0; }
.signup .cf-turnstile { display: flex; justify-content: center; }   /* takes no room until Cloudflare needs a click */
.section--ink .signup form { border-color: rgba(255, 255, 255, .5); }
.section--ink .signup input { background: transparent; color: #fff; }
.section--ink .signup input::placeholder { color: #A8A099; }
.signup__msg { margin-top: 12px; font-size: .9rem; min-height: 1.4em; }

/* ---------------------------------------------------------------- product grid + card */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 12px; }
@media (min-width: 900px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 44px 22px; } }
@media (min-width: 1200px) { .grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.card { position: relative; display: flex; flex-direction: column; min-width: 0; }
.card__media { position: relative; display: block; aspect-ratio: 4 / 5; background: var(--stone); overflow: hidden; }
.card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 6%; mix-blend-mode: multiply; transition: opacity var(--t) var(--ease), transform 700ms var(--ease); }
.card__media img.is-cover { object-fit: cover; padding: 0; mix-blend-mode: normal; }
.card__media .card__alt { opacity: 0; }
@media (hover: hover) {
  .card:hover .card__media .card__alt { opacity: 1; }
  .card:hover .card__media .card__alt + .card__main, .card__media:has(.card__alt):hover .card__main { opacity: 0; }
  .card:hover .card__media img { transform: scale(1.03); }
}
.card__badges { position: absolute; z-index: 2; top: 10px; left: 10px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.badge { display: inline-block; padding: 5px 9px 4px; background: #fff; color: var(--ink); font-size: .62rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; line-height: 1.2; }
.badge--sale { background: var(--sale); color: #fff; }
.badge--new { background: var(--ink); color: #fff; }
.badge--out { background: rgba(255, 255, 255, .92); color: var(--muted); }
.badge--sample { background: var(--gold-grad); color: var(--ink); }
.card__body { padding-top: 14px; display: flex; flex-direction: column; gap: 4px; }
.card__brand { font-size: .66rem; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.card__title { margin: 0; font-size: .95rem; font-weight: 400; line-height: 1.35; letter-spacing: .01em; }
.card__title a { text-decoration: none; }
.card__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card__color { font-size: .82rem; color: var(--muted); }
.price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; font-variant-numeric: tabular-nums; font-size: .95rem; font-weight: 500; color: var(--ink); }
.price s { color: var(--faint); font-weight: 400; font-size: .88em; }
.price .price__now--sale { color: var(--sale); }
.card__sizes { font-size: .74rem; color: var(--faint); letter-spacing: .04em; }

/* horizontal rail of cards */
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(62%, 1fr); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; scrollbar-width: none; overscroll-behavior-x: contain; }
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; }
@media (min-width: 640px) { .rail { grid-auto-columns: minmax(36%, 1fr); } }
@media (min-width: 900px) { .rail { grid-auto-columns: calc((100% - 66px) / 4); gap: 22px; } }
.rail-wrap { position: relative; }
.rail-nav { display: none; gap: 8px; }
@media (min-width: 900px) { .rail-nav { display: flex; } }
.rail-nav button { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--line-2); background: #fff; border-radius: 50%; color: var(--ink); }
.rail-nav button:hover { border-color: var(--ink); }

/* ---------------------------------------------------------------- shop listing */
.page-top { padding: 28px 0 8px; }
@media (min-width: 900px) { .page-top { padding: 44px 0 12px; } }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.page-top h1 { margin-bottom: 6px; }
.page-top .lead { margin-bottom: 0; }
.shop { display: grid; gap: 24px; padding-bottom: 72px; }
@media (min-width: 1000px) { .shop { grid-template-columns: 250px minmax(0, 1fr); gap: 44px; } }
.toolbar { position: sticky; top: var(--header-h); z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; background: rgba(255, 255, 255, .96); border-bottom: 1px solid var(--line); margin-bottom: 22px; }
@media (min-width: 1000px) { .toolbar { position: static; } }
.toolbar__count { font-size: .82rem; color: var(--muted); }
.toolbar__right { display: flex; align-items: center; gap: 10px; }
.select-wrap { position: relative; }
.select-wrap select { appearance: none; -webkit-appearance: none; min-height: 44px; padding: 0 36px 0 12px; border: 1px solid var(--line-2); border-radius: var(--r); background: #fff; font-size: .82rem; letter-spacing: .04em; cursor: pointer; }
.select-wrap .ic { position: absolute; right: 10px; top: 50%; width: 16px; height: 16px; transform: translateY(-50%); pointer-events: none; }
.filter-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 1px solid var(--ink); background: #fff; border-radius: var(--r); font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; }
.filter-btn .n { display: inline-grid; place-items: center; min-width: 20px; height: 20px; border-radius: 10px; background: var(--ink); color: #fff; font-size: .66rem; letter-spacing: 0; }
@media (min-width: 1000px) { .filter-btn { display: none; } }
.filters { display: none; }
@media (min-width: 1000px) { .filters { display: block; position: sticky; top: calc(var(--header-h) + 60px); align-self: start; max-height: calc(100vh - var(--header-h) - 80px); overflow-y: auto; padding-right: 6px; scrollbar-width: thin; } }
.fgroup { border-bottom: 1px solid var(--line); }
.fgroup > summary { display: flex; align-items: center; justify-content: space-between; min-height: 52px; cursor: pointer; list-style: none; font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; font-weight: 500; }
.fgroup > summary::-webkit-details-marker { display: none; }
.fgroup > summary .ic { width: 16px; height: 16px; transition: transform var(--t-fast); }
.fgroup[open] > summary .ic { transform: rotate(180deg); }
.fgroup__body { padding: 2px 0 18px; }
.fcheck { display: flex; align-items: center; gap: 10px; min-height: 36px; font-size: .9rem; cursor: pointer; }
.fcheck input { width: 18px; height: 18px; margin: 0; accent-color: var(--ink); cursor: pointer; flex: none; }
.fcheck .n { margin-left: auto; color: var(--faint); font-size: .78rem; font-variant-numeric: tabular-nums; }
.fsizes { display: grid; grid-template-columns: repeat(auto-fill, minmax(52px, 1fr)); gap: 6px; }
.fsize { position: relative; }
.fsize input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.fsize span { display: grid; place-items: center; min-height: 40px; border: 1px solid var(--line-2); font-size: .82rem; transition: all var(--t-fast); }
.fsize input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.fsize input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }
.fprice { display: flex; align-items: center; gap: 8px; }
.fprice input { width: 100%; min-width: 0; min-height: 42px; border: 1px solid var(--line-2); padding: 0 10px; border-radius: var(--r); font-size: 16px; }
.factions { display: flex; gap: 10px; padding-top: 18px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: -6px 0 18px; }
.chip-x { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 17px; font-size: .8rem; text-decoration: none; background: #fff; }
.chip-x .ic { width: 14px; height: 14px; }
.chip-x:hover { border-color: var(--ink); color: var(--ink); }
.empty { text-align: center; padding: 64px 16px; border: 1px dashed var(--line-2); background: var(--ivory); }
.empty .ic { width: 42px; height: 42px; margin: 0 auto 14px; color: var(--gold); stroke-width: 1.2; }
.pager { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 6px; margin-top: 52px; }
.pager a, .pager span { display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 10px; border: 1px solid var(--line); text-decoration: none; font-size: .86rem; font-variant-numeric: tabular-nums; }
.pager a:hover { border-color: var(--ink); }
.pager [aria-current="page"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.pager .gap { border: 0; }

/* ---------------------------------------------------------------- product page */
.pdp { display: grid; gap: 28px; padding: 18px 0 64px; }
@media (min-width: 900px) { .pdp { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 56px; padding-top: 28px; } }
@media (min-width: 1200px) { .pdp { gap: 80px; } }
.gallery { position: relative; min-width: 0; }
.gallery__main { display: grid; grid-auto-flow: column; grid-auto-columns: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; background: var(--stone); }
.gallery__main::-webkit-scrollbar { display: none; }
.gallery__slide { position: relative; aspect-ratio: 4 / 5; scroll-snap-align: start; display: grid; place-items: center; overflow: hidden; cursor: zoom-in; border: 0; padding: 0; background: var(--stone); }
.gallery__slide img { width: 100%; height: 100%; object-fit: contain; padding: 5%; mix-blend-mode: multiply; }
.gallery__thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; scrollbar-width: none; }
.gallery__thumbs button { flex: none; width: 68px; aspect-ratio: 4 / 5; padding: 0; border: 1px solid transparent; background: var(--stone); cursor: pointer; }
.gallery__thumbs button[aria-current="true"] { border-color: var(--ink); }
.gallery__thumbs img { width: 100%; height: 100%; object-fit: contain; padding: 6%; mix-blend-mode: multiply; }
.gallery__dots { position: absolute; left: 0; right: 0; bottom: 14px; display: flex; justify-content: center; gap: 6px; pointer-events: none; }
.gallery__dots span { width: 6px; height: 6px; border-radius: 50%; background: rgba(12, 10, 9, .22); }
.gallery__dots span.on { background: var(--ink); }
@media (min-width: 900px) {
  .gallery { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 14px; align-items: start; position: sticky; top: calc(var(--header-h) + 60px); }
  .gallery__thumbs { flex-direction: column; margin: 0; order: -1; max-height: 640px; overflow-y: auto; }
  .gallery__thumbs button { width: 76px; }
  .gallery__dots { display: none; }
}
.pdp__info { min-width: 0; }
@media (min-width: 900px) { .pdp__info { padding-top: 8px; } }
.pdp__brand { display: inline-block; font-size: .72rem; letter-spacing: .26em; text-transform: uppercase; color: var(--gold-ink); text-decoration: none; margin-bottom: 10px; }
.pdp h1 { font-size: clamp(1.6rem, 1.3rem + 1.3vw, 2.35rem); margin-bottom: 10px; }
.pdp__color { color: var(--muted); margin-bottom: 16px; }
.pdp .price { font-size: 1.25rem; font-weight: 400; margin-bottom: 6px; }
.pdp__save { font-size: .82rem; color: var(--sale); margin-bottom: 0; }
.pdp__cond { display: flex; align-items: flex-start; gap: 8px; margin: 12px 0 0; font-size: .85rem; line-height: 1.5; color: var(--ink-2); }
.pdp__cond .ic { flex: none; width: 18px; height: 18px; margin-top: 2px; color: var(--gold); }
.pdp__divider { height: 1px; background: var(--line); margin: 24px 0; }
.opt-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.opt-head span { font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; font-weight: 500; }
.opt-head b { font-weight: 500; letter-spacing: .04em; text-transform: none; }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.swatch { min-height: 40px; padding: 0 14px; border: 1px solid var(--line-2); background: #fff; font-size: .84rem; border-radius: 20px; }
.swatch[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: #fff; }
.sizes { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 8px; margin-bottom: 8px; }
.size {
  position: relative; min-height: 50px; padding: 4px; border: 1px solid var(--line-2); background: #fff; color: var(--ink);
  font-size: .9rem; font-variant-numeric: tabular-nums; border-radius: var(--r); transition: border-color var(--t-fast), background var(--t-fast), color var(--t-fast);
}
.size:hover { border-color: var(--ink); }
.size[aria-checked="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.size.is-out { color: var(--faint); background: repeating-linear-gradient(135deg, transparent 0 7px, rgba(12, 10, 9, .05) 7px 8px); }
.size.is-out::after { content: ""; position: absolute; left: 10%; right: 10%; top: 50%; height: 1px; background: var(--line-2); transform: rotate(-16deg); }
.size.is-out[aria-checked="true"] { background: var(--stone); color: var(--ink); border-color: var(--ink); }
.size small { display: block; font-size: .62rem; letter-spacing: .06em; color: var(--warn); }
.size[aria-checked="true"] small { color: var(--gold-light); }
.stock-note { min-height: 1.5em; font-size: .84rem; color: var(--muted); margin: 8px 0 18px; }
.stock-note.is-low { color: var(--warn); }
.stock-note.is-out { color: var(--sale); }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: var(--r); height: 50px; }
.qty button { width: 44px; height: 100%; border: 0; background: none; display: grid; place-items: center; }
.qty button .ic { width: 16px; height: 16px; }
.qty input { width: 44px; height: 100%; border: 0; text-align: center; font-variant-numeric: tabular-nums; -moz-appearance: textfield; font-size: 16px; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.buy { display: grid; grid-template-columns: auto 1fr; gap: 10px; margin-bottom: 14px; }
.notify-form { display: grid; gap: 10px; margin: 0 0 14px; padding: 16px; background: var(--ivory); border: 1px solid var(--line); }
.notify-form[hidden] { display: none; }
.notify-form p { margin: 0; font-size: .9rem; }
.notify-form .row { display: flex; gap: 8px; }
.notify-form input { flex: 1; min-width: 0; min-height: 46px; border: 1px solid var(--line-2); padding: 0 12px; font-size: 16px; border-radius: var(--r); background: #fff; }
.pdp__perks { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; }
.pdp__perks li { display: flex; gap: 12px; align-items: flex-start; font-size: .88rem; color: var(--ink-2); }
.pdp__perks .ic { width: 20px; height: 20px; color: var(--gold); stroke-width: 1.4; margin-top: 1px; }
.acc { border-top: 1px solid var(--line); margin-top: 28px; }
.acc details { border-bottom: 1px solid var(--line); }
.acc summary { display: flex; align-items: center; justify-content: space-between; min-height: 56px; cursor: pointer; list-style: none; font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; font-weight: 500; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary .ic { width: 16px; height: 16px; transition: transform var(--t-fast); }
.acc details[open] summary .ic { transform: rotate(45deg); }
.acc__body { padding: 0 0 20px; font-size: .94rem; color: var(--ink-2); }
.acc__body ul { padding-left: 1.1em; }
.acc__body li { margin-bottom: 4px; }
.sticky-buy { position: fixed; z-index: 30; left: 0; right: 0; bottom: 0; padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .97); border-top: 1px solid var(--line); display: flex; align-items: center; gap: 12px; transform: translateY(110%); transition: transform var(--t) var(--ease); }
.sticky-buy.is-on { transform: none; }
.sticky-buy__info { flex: 1; min-width: 0; font-size: .82rem; line-height: 1.3; }
.sticky-buy__info b { display: block; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (min-width: 900px) { .sticky-buy { display: none; } }

/* zoom viewer */
.zoom { position: fixed; inset: 0; z-index: var(--z-drawer); background: #fff; display: none; }
.zoom.is-open { display: block; }
.zoom__close { position: absolute; top: 12px; right: 12px; z-index: 2; background: #fff; }
.zoom__img { width: 100%; height: 100%; overflow: auto; display: grid; place-items: center; }
.zoom__img img { max-width: none; width: min(1600px, 180vw); height: auto; mix-blend-mode: multiply; }
@media (min-width: 900px) { .zoom__img img { width: min(1600px, 120vw); } }

/* ---------------------------------------------------------------- bag (drawer + page) */
.bag-lines { list-style: none; margin: 0; padding: 0; }
.bag-line { display: grid; grid-template-columns: 84px minmax(0, 1fr) auto; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.bag-line__img { display: block; aspect-ratio: 4 / 5; background: var(--stone); }
.bag-line__img img { width: 100%; height: 100%; object-fit: contain; padding: 6%; mix-blend-mode: multiply; }
.bag-line__title { margin: 0 0 2px; font-size: .92rem; font-weight: 400; line-height: 1.35; }
.bag-line__title a { text-decoration: none; }
.bag-line__meta { font-size: .8rem; color: var(--muted); line-height: 1.5; }
.bag-line__warn { font-size: .78rem; color: var(--sale); margin-top: 4px; }
.bag-line__side { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; gap: 8px; text-align: right; }
.bag-line__price { font-variant-numeric: tabular-nums; font-size: .92rem; }
.bag-line .qty { height: 38px; }
.bag-line .qty button { width: 34px; }
.bag-line .qty input { width: 30px; font-size: .9rem; }
.bag-line__remove { font-size: .74rem; color: var(--muted); }
.ship-meter { padding: 14px 0 6px; font-size: .84rem; }
.ship-meter__bar { height: 3px; background: var(--line); margin-top: 8px; overflow: hidden; }
.ship-meter__bar span { display: block; height: 100%; background: var(--gold-grad); transition: width 500ms var(--ease); }
.totals { display: grid; gap: 8px; margin: 0 0 16px; font-size: .92rem; }
.totals > div { display: flex; justify-content: space-between; gap: 16px; font-variant-numeric: tabular-nums; }
.totals .grand { font-size: 1.05rem; font-weight: 500; padding-top: 10px; border-top: 1px solid var(--line); }
.totals dt { margin: 0; } .totals dd { margin: 0; }
.cart-page { display: grid; gap: 32px; padding: 8px 0 72px; }
@media (min-width: 1000px) { .cart-page { grid-template-columns: minmax(0, 1fr) 380px; gap: 56px; align-items: start; } }
.summary { background: var(--ivory); border: 1px solid var(--line); padding: 24px; }
@media (min-width: 1000px) { .summary { position: sticky; top: calc(var(--header-h) + 60px); } }
.summary h2 { font-size: .78rem; letter-spacing: .22em; text-transform: uppercase; font-weight: 500; margin-bottom: 16px; }
.pay-marks { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 14px; color: var(--muted); font-size: .74rem; letter-spacing: .06em; }
.pay-marks .ic { width: 16px; height: 16px; }
.notice { padding: 14px 16px; border: 1px solid var(--line-2); background: var(--ivory); font-size: .9rem; margin-bottom: 18px; }
.notice--warn { border-color: #E9C46A; background: #FFF8E6; }
.notice--bad { border-color: #F2B8B5; background: #FFF4F3; color: #7A1A12; }
.notice--ok { border-color: #A7D7BE; background: #F1FAF5; color: #134E32; }
.notice strong { font-weight: 500; }

/* ---------------------------------------------------------------- order status */
.order-steps { list-style: none; margin: 0 0 28px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; counter-reset: s; }
.order-steps li { position: relative; padding-top: 18px; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--faint); }
.order-steps li::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--line); }
.order-steps li.on { color: var(--ink); }
.order-steps li.on::before { background: var(--gold-grad); }
.order-box { border: 1px solid var(--line); padding: 22px; margin-bottom: 18px; }
.order-box h2 { font-size: .76rem; letter-spacing: .22em; text-transform: uppercase; font-weight: 500; margin-bottom: 12px; }
.order-grid { display: grid; gap: 18px; }
@media (min-width: 800px) { .order-grid { grid-template-columns: 1fr 1fr; } }

/* ---------------------------------------------------------------- forms */
.form { display: grid; gap: 16px; }
.form__grid { display: grid; gap: 16px; }
@media (min-width: 700px) { .form__grid { grid-template-columns: 1fr 1fr; } .field--full { grid-column: 1 / -1; } }
.field { display: grid; gap: 6px; min-width: 0; }
.field label, .field legend { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 500; color: var(--ink-2); }
.field .req { color: var(--sale); }
.field .hint { font-size: .82rem; color: var(--muted); letter-spacing: 0; text-transform: none; font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; border: 1px solid var(--line-2); border-radius: var(--r); background: #fff; padding: 12px 14px; font-size: 16px;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.field textarea { min-height: 150px; resize: vertical; line-height: 1.55; }
.field select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(184, 134, 46, .18); }
.field [aria-invalid="true"] { border-color: var(--sale); }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.form__note { display: flex; align-items: center; gap: 8px; margin: 0; font-size: .82rem; color: var(--muted); }
.form__note .ic { width: 16px; height: 16px; }
.form__msg { margin: 0; color: var(--sale); font-size: .9rem; }
.form__success { text-align: center; padding: 32px 18px; border: 1px solid var(--line); background: var(--ivory); }
.form__success-ic { display: inline-grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: var(--ink); color: var(--gold-light); margin-bottom: 14px; }
.form.is-done > :not([data-success]) { display: none; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.topic-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.topic-chips label { position: relative; }
.topic-chips input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.topic-chips span { display: inline-flex; align-items: center; min-height: 42px; padding: 0 16px; border: 1px solid var(--line-2); border-radius: 21px; font-size: .86rem; cursor: pointer; transition: all var(--t-fast); }
.topic-chips input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.topic-chips input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }

/* ---------------------------------------------------------------- content pages */
.prose { font-size: 1.02rem; color: var(--ink-2); }
.prose h2 { font-size: 1.35rem; margin-top: 1.8em; }
.prose h3 { margin-top: 1.4em; }
.prose a { color: var(--gold-ink); }
.prose li { margin-bottom: .4em; }
.prose table { width: 100%; border-collapse: collapse; font-size: .92rem; margin: 0 0 1.4em; display: block; overflow-x: auto; }
.prose th, .prose td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; font-variant-numeric: tabular-nums; }
.prose th { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 500; background: var(--ivory); }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; padding: 12px 0; cursor: pointer; list-style: none; font-size: 1.02rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ic { width: 18px; height: 18px; transition: transform var(--t-fast); flex: none; }
.faq details[open] summary .ic { transform: rotate(45deg); }
.faq__a { padding: 0 0 22px; color: var(--ink-2); max-width: 70ch; }
.cards3 { display: grid; gap: 14px; }
@media (min-width: 800px) { .cards3 { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.info-card { padding: 26px; border: 1px solid var(--line); background: #fff; }
.info-card .ic { width: 26px; height: 26px; color: var(--gold); stroke-width: 1.3; margin-bottom: 14px; }
.info-card h3 { margin-bottom: 6px; }
.info-card p { margin: 0; color: var(--muted); font-size: .94rem; }
.contact-grid { display: grid; gap: 36px; padding-bottom: 72px; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 72px; } }
.contact-aside { display: grid; gap: 18px; align-content: start; }

/* ---------------------------------------------------------------- footer */
.site-footer { background: var(--ink); color: #BDB5AC; font-size: .9rem; margin-top: auto; }
.footer__top { display: grid; gap: 36px; padding-top: 56px; padding-bottom: 40px; }
@media (min-width: 900px) { .footer__top { grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 48px; padding-top: 72px; padding-bottom: 52px; } }
.footer__brand img { width: 200px; height: auto; margin-bottom: 18px; }
.footer__brand p { max-width: 34ch; color: #A8A099; }
.footer__h { margin: 0 0 14px; font-size: .7rem; letter-spacing: .24em; text-transform: uppercase; color: #fff; font-weight: 500; }
.footer__links { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.footer__links a { display: inline-flex; align-items: center; gap: 10px; min-height: 36px; text-decoration: none; color: #BDB5AC; }
.footer__links a:hover { color: var(--gold-light); }
.footer__links .ic { width: 16px; height: 16px; }
.social { display: flex; gap: 6px; margin-top: 8px; }
.social a { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid rgba(255, 255, 255, .18); border-radius: 50%; color: #EDE8E1; }
.social a:hover { border-color: var(--gold-light); color: var(--gold-light); }
.social .ic { width: 18px; height: 18px; }
.footer__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding-top: 22px; padding-bottom: 10px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .78rem; color: #8C857E; }
.footer__legal a { color: #BDB5AC; text-decoration: none; }
.footer__legal a:hover { color: var(--gold-light); }
/* The agency's credit (site_credit() in _site.php): its own centered line, the last thing in both footers */
.footer__credit { padding: 0 var(--gutter) calc(8px + env(safe-area-inset-bottom)); }

/* ---------------------------------------------------------------- portal (customer account) */
body.portal .site-header { position: static; }
.portal-wrap { padding: 36px 0 72px; }
.portal-card { max-width: 460px; margin: 0 auto; border: 1px solid var(--line); padding: 32px 24px; background: #fff; }
.portal-nav { display: flex; gap: 18px; justify-content: flex-end; font-size: .76rem; letter-spacing: .16em; text-transform: uppercase; }
.portal-nav a { text-decoration: none; }
.portal-footer { border-top: 1px solid var(--line); padding: 26px 0 0; font-size: .86rem; color: var(--muted); text-align: center; }
.portal-footer__small { font-size: .78rem; }
.flash { padding: 12px 14px; border: 1px solid #A7D7BE; background: #F1FAF5; color: #134E32; margin-bottom: 16px; font-size: .92rem; }
.flash--bad { border-color: #F2B8B5; background: #FFF4F3; color: #7A1A12; }

/* ---------------------------------------------------------------- toast */
.toast { position: fixed; z-index: var(--z-toast); left: 50%; bottom: calc(18px + env(safe-area-inset-bottom)); transform: translate(-50%, calc(100% + 60px)); visibility: hidden; background: var(--ink); color: #fff; padding: 12px 18px; font-size: .88rem; box-shadow: var(--shadow); transition: transform var(--t) var(--ease), visibility 0s linear var(--t); max-width: calc(100vw - 32px); }
.toast.is-on { transform: translate(-50%, 0); visibility: visible; transition: transform var(--t) var(--ease), visibility 0s; }

/* ---------------------------------------------------------------- reveal */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity 600ms var(--ease), transform 600ms var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

@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; }
}
@media print {
  .site-header, .site-footer, .announce, .drawer, .sticky-buy, .toast { display: none !important; }
}
.link .ic { width: 16px; height: 16px; }

/* ---------------------------------------------------------------- customer account pages */
.auth-wrap { display: grid; place-items: center; padding: 48px var(--gutter) 80px; }
.auth-card { width: 100%; max-width: 460px; border: 1px solid var(--line); padding: 32px 24px; background: #fff; }
@media (min-width: 640px) { .auth-card { padding: 40px 36px; } }
.auth-card h1 { font-size: 2rem; }
.auth-card .form { margin-top: 18px; }
.auth-help { margin: 22px 0 0; font-size: .9rem; color: var(--muted); line-height: 1.9; }
.auth-help a { color: var(--ink); }
.btn--primary { background: var(--ink); color: #fff; }
.btn--lg { min-height: 54px; }
.panel { border: 1px solid var(--line); padding: 24px; margin-bottom: 18px; background: #fff; }
.panel h2 { font-size: .78rem; letter-spacing: .22em; text-transform: uppercase; font-weight: 500; margin-bottom: 14px; }
.data-list { list-style: none; margin: 0; padding: 0; }
.data-list li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: .94rem; }
.data-list li:last-child { border-bottom: 0; }
.data-list .k { color: var(--muted); }
.hint-text { color: var(--muted); font-size: .92rem; }
.flash--err { border-color: #F2B8B5; background: #FFF4F3; color: #7A1A12; }
.flash--ok { border-color: #A7D7BE; background: #F1FAF5; color: #134E32; }
.orders-list { list-style: none; margin: 0; padding: 0; }
.orders-list li { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.orders-list li:last-child { border-bottom: 0; }
.orders-list a { font-weight: 500; text-decoration: none; }
.orders-list .meta { color: var(--muted); font-size: .86rem; }
.drawer .factions { position: sticky; bottom: 0; z-index: 2; background: #fff; padding: 14px 0 calc(14px + env(safe-area-inset-bottom)); margin-top: 8px; border-top: 1px solid var(--line); }
.filters .factions { display: none; }
@media (max-width: 899px) { .gallery__thumbs { display: none; } }
.suggest { padding: 0 0 14px; }
.suggest ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.suggest li a { display: grid; grid-template-columns: 48px 1fr auto; gap: 14px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); text-decoration: none; font-size: .92rem; }
.suggest img { width: 48px; height: 60px; object-fit: contain; background: var(--stone); mix-blend-mode: multiply; }
.suggest small { display: block; font-size: .64rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.suggest b { font-weight: 500; font-variant-numeric: tabular-nums; }
.suggest__all { display: inline-block; margin-top: 12px; font-size: .76rem; letter-spacing: .18em; text-transform: uppercase; }
.suggest__none { margin: 4px 0 0; color: var(--muted); font-size: .9rem; }
/* Settings > Shop > Photos fill the frame */
.photos-fill .card__media img, .photos-fill .gallery__slide img, .photos-fill .tile img, .photos-fill .gallery__thumbs img, .photos-fill .bag-line__img img { object-fit: cover; padding: 0; mix-blend-mode: normal; }

/* ---------------------------------------------------------------- the checkout page (checkout.php) */
.checkout-page .portal-nav a { white-space: nowrap; }
.co-top { padding-top: 26px; padding-bottom: 6px; }
.co-top h1 { margin: 0; }
.co-steps { display: flex; gap: 10px; flex-wrap: wrap; margin: 10px 0 0; padding: 0; list-style: none; font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--faint); }
.co-steps li { display: flex; align-items: center; gap: 10px; }
.co-steps li + li::before { content: ""; width: 22px; height: 1px; background: var(--line-2); }
.co-steps .on { color: var(--ink); font-weight: 500; }
.co { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 430px); gap: 56px; padding-top: 22px; padding-bottom: 40px; align-items: start; }
.co-form { display: grid; gap: 34px; min-width: 0; }
.co-sec h2 { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 12px; font-size: .78rem; letter-spacing: .22em; text-transform: uppercase; font-weight: 500; margin: 0 0 16px; }
.co-sec h2 .n { font-family: var(--serif); font-style: italic; font-size: 1.35rem; letter-spacing: 0; text-transform: none; color: var(--gold-ink); font-weight: 400; }
.co-sec h2 .aside { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: .82rem; letter-spacing: 0; text-transform: none; font-weight: 400; color: var(--muted); }
.co-sec h2 .aside .ic { width: 15px; height: 15px; }
.co-mount { min-height: 60px; }
.co-phone { margin-top: 16px; }
.co-help { font-size: .84rem; color: var(--muted); margin: 8px 0 0; }
.co-err { font-size: .84rem; color: var(--sale); margin: 8px 0 0; }
.co-optin { display: flex; gap: 12px; align-items: flex-start; margin-top: 14px; padding: 14px 16px; border: 1px solid var(--line); background: var(--ivory); cursor: pointer; }
.co-optin input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--ink); flex: none; }
.co-optin b { display: block; font-weight: 500; font-size: .95rem; }
.co-optin small { color: var(--muted); font-size: .84rem; }
.co-express-sec.is-waiting { visibility: hidden; height: 0; overflow: hidden; margin: 0; }
.co-or { display: flex; align-items: center; gap: 14px; margin: 18px 0 0; color: var(--faint); font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; }
.co-or::before, .co-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.co-rates { display: grid; gap: 10px; }
.co-rate { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 16px 18px; border: 1px solid var(--line-2); background: #fff; cursor: pointer; transition: border-color var(--t-fast) var(--ease); }
.co-rate:hover { border-color: var(--ink); }
.co-rate.on, .co-rate:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.co-rate input { width: 18px; height: 18px; margin: 0; accent-color: var(--ink); }
.co-rate b { display: block; font-weight: 500; }
.co-rate small { color: var(--muted); font-size: .84rem; }
.co-rate .p { font-variant-numeric: tabular-nums; font-weight: 500; }
.co-final { display: grid; gap: 12px; }
.co-final .notice { margin: 0; }
.co-pay { min-height: 56px; font-size: .86rem; }
.co-final .note { display: flex; gap: 10px; font-size: .86rem; color: var(--muted); padding: 12px 14px; border-left: 2px solid var(--gold); background: var(--ivory); margin: 0; }
.co-final .note .ic { width: 18px; height: 18px; flex: none; color: var(--gold-ink); margin-top: 1px; }
.co-sum { position: sticky; top: 20px; }
.co-line { display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 0 0 16px; margin: 0 0 16px; border-bottom: 1px solid var(--line); }
.co-line .ph { position: relative; width: 76px; height: 76px; background: #fff; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; }
.co-line .ph img { width: auto; height: auto; max-width: 92%; max-height: 92%; object-fit: contain; mix-blend-mode: multiply; }
.co-line .ph .ic { width: 28px; height: 28px; color: var(--gold); }
.co-line .ph b { position: absolute; top: -8px; right: -8px; width: 22px; height: 22px; border-radius: 50%; background: var(--ink); color: #fff; font-size: .7rem; display: flex; align-items: center; justify-content: center; font-weight: 500; }
.co-line small { display: block; font-size: .66rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-ink); font-weight: 500; }
.co-line .t { display: block; font-size: .95rem; line-height: 1.35; }
.co-line .m { display: block; font-size: .82rem; color: var(--muted); }
.co-line .one { display: inline-block; margin-top: 4px; font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; padding: 3px 8px; border: 1px solid var(--gold-light); color: var(--gold-ink); }
.co-line .pr { font-variant-numeric: tabular-nums; }
.co-promo { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; margin: 0 0 18px; }
.co-promo .btn { min-height: 48px; padding: 0 18px; }
.co-promo[hidden], .co-promo-on[hidden], .co-sum .totals > div[hidden] { display: none; }
.co-promo-on { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 0 0 18px; padding: 10px 12px; border: 1px dashed var(--gold); font-size: .9rem; }
.co-promo-on span { display: inline-flex; align-items: center; gap: 8px; }
.co-promo-on .ic { width: 16px; height: 16px; color: var(--gold-ink); }
.co-promo-on b { font-weight: 500; letter-spacing: .08em; }
.co-sum .co-err { margin: -10px 0 16px; }
.co-fallback { padding-bottom: 64px; text-align: center; font-size: .86rem; }
.co-fallback .link { font-size: .84rem; color: var(--muted); }
.co-fallback.is-needed .link { color: var(--ink); font-size: .95rem; }
.co-mobile-sum { display: none; }
@media (max-width: 980px) {
  .co { grid-template-columns: 1fr; gap: 28px; padding-top: 12px; }
  .co-sum { position: static; order: -1; display: none; }
  .co-sum.is-open { display: block; }
  .co-mobile-sum { display: flex; width: 100%; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px; margin-top: 16px; border: 1px solid var(--line); background: var(--ivory); font: inherit; font-size: .9rem; color: var(--ink); cursor: pointer; text-align: left; }
  .co-mobile-sum span, .co-mobile-sum b { display: inline-flex; align-items: center; gap: 8px; }
  .co-mobile-sum b { font-weight: 500; font-size: 1.05rem; }
  .co-mobile-sum .ic { width: 18px; height: 18px; transition: transform var(--t-fast) var(--ease); }
  .co-mobile-sum[aria-expanded="true"] b .ic { transform: rotate(180deg); }
}
@media (max-width: 560px) {
  .co-steps { display: none; }
  .checkout-page .portal-nav a { font-size: .66rem; letter-spacing: .14em; }
}
