/* Vivre Pearl - storefront.
   Measured from the WordPress/Neve site of 2 October 2026 in a headless
   browser at 1440px and 390px, so the move to Node changes nothing a visitor
   can see. The numbers in comments are those measurements. Colours are the
   Neve palette; contrast was checked, not judged (STYLE.md). */

@font-face { font-family: 'Jost'; src: url('/static/fonts/jost-latin-300-normal.woff2') format('woff2'); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: 'Jost'; src: url('/static/fonts/jost-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Jost'; src: url('/static/fonts/jost-latin-500-normal.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
/* Russian: the same release's Cyrillic subset (@fontsource/jost 5.3.0, as the
   Latin files), fetched only for the letters it covers. Declared after the
   Latin faces so it wins for that range. */
@font-face { font-family: 'Jost'; src: url('/static/fonts/jost-cyrillic-300-normal.woff2') format('woff2'); font-weight: 300; font-style: normal; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Jost'; src: url('/static/fonts/jost-cyrillic-400-normal.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Jost'; src: url('/static/fonts/jost-cyrillic-500-normal.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
/* Ryo is a Japanese face: its Cyrillic letters are full-width (each one em
   wide, measured), so it is kept off Cyrillic and Russian headings fall
   through to Jost (--heading), the site's own face, rather than to Arial. */
@font-face { font-family: 'Ryo Text PlusN'; src: url('/static/fonts/subset-RyoTextPlusN-Light.woff2') format('woff2'); font-weight: 200; font-style: normal; font-display: swap; unicode-range: U+0000-03FF, U+0500-2115, U+2117-10FFFF; }
@font-face { font-family: 'Ryo Text PlusN'; src: url('/static/fonts/subset-RyoTextPlusN-Regular.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; unicode-range: U+0000-03FF, U+0500-2115, U+2117-10FFFF; }

:root {
  --nv-text-color: #272626;      /* 15.1:1 on white */
  --accent: #a35959;             /* 5.08:1 on white - text and lines; 4.41:1 on --light-bg, so never text there */
  --accent-secondary: #bdaca1;   /* 8.6:1 on the dark footer; NOT for text on white (2.2:1) */
  --light-bg: #f2eeec;
  --dark-bg: #121212;
  --muted: #5f5b5b;              /* 6.7:1 on white, 5.8:1 on --light-bg, for helper text */
  --line: #e6e1de;
  --error: #a3262c;              /* 7.3:1 on white */
  --ok: #2f6b3a;                 /* 6.4:1 on white */
  --placeholder: rgb(189 172 161 / 20%);
  /* Since 1.7.0 every colour below can be changed from Settings > Appearance
     or by Claude (store_update_theme): src/lib/theme.js works out the ones
     marked "worked out" from the owner's few and checks every pair text
     sits on, then writes only what differs in a <style> after this file.
     These values ARE the original design - keep them in step with
     theme.js DEFAULTS (itest compares the two). */
  --bg: #ffffff;                 /* the page, and boxes, menus and dialogs on it */
  --accent-text: #a35959;        /* worked out: the accent where it carries text */
  --on-accent: #ffffff;          /* worked out: text on the accent (Sale mark) */
  --focus: #a35959;              /* worked out: focus rings, a switch that is on (3:1) */
  --control-line: #c9c4c1;       /* worked out: the outline of chips, choices, quantity */
  --track: #ebebeb;              /* worked out: a carousel's progress track */
  --header-bg: #ffffff;
  --header-text: #272626;        /* worked out */
  --header-muted: #5f5b5b;       /* worked out: the other language in the switch */
  --header-line: #e6e1de;        /* worked out */
  --footer-text: #ffffff;        /* worked out (--dark-bg is the footer) */
  --footer-soft: #bdaca1;        /* worked out: the copyright line */
  --footer-line: #2c2a29;        /* worked out */
  --btn-bg: #2f3133;             /* the filled buttons: cart, checkout, cookie banner */
  --btn-text: #ffffff;           /* worked out */
  --btn-hover: #121212;          /* worked out; also the cart badge */
  --announce-bg: #f2eeec;        /* the bar above the header (home.announcement) */
  --announce-text: #272626;      /* worked out */
  --hs: 1;                       /* heading size, 0.8 to 1.25 */
  --bs: 1;                       /* text size, 0.9 to 1.15 */
  --radius: 0px;                 /* buttons, fields and boxes */
  --photo-radius: 0px;
  --photo-ratio: 4 / 5;
  --container: 970px;
  /* Product rows and the shop: 1080px of content holds 3 cards of 330px
     with 45px between - close to the old 420px card without stretching the
     970px reading column the text sections keep. */
  --container-wide: 1130px;
  --gutter: 25px;
  --header-h: 83px;              /* the sticky header: 82px row + 1px rule */
  --body: 'Jost', Arial, Helvetica, sans-serif;
  --heading: 'Ryo Text PlusN', 'Jost', Arial, Helvetica, sans-serif;
  --fs-body: calc(16px * var(--bs));
  --fs-h2: calc(42px * var(--hs));
  --fs-medium: calc(20px * var(--bs));
  --fs-card-title: 34px;
  --fs-price: 22px;
}
@media (max-width: 959px) { :root { --header-h: 62px; } }
@media (max-width: 768px) {
  :root { --fs-body: calc(15px * var(--bs)); --fs-h2: calc(28px * var(--hs)); --fs-medium: calc(18px * var(--bs)); --fs-card-title: 24px; --fs-price: 18px; }
}

*, *::before, *::after { box-sizing: border-box; }
/* scroll-padding: an anchor, a focused field or a card scrolled into view
   stops below the sticky header, not under it. */
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); background: var(--bg); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--nv-text-color);
  font-family: var(--body); font-size: var(--fs-body); font-weight: 300; line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
/* Jost is loaded at 300/400/500 only; 500 is the bold, never a synthesised 700. */
strong, b { font-weight: 500; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--heading); font-weight: 400; margin: 0; }
h2 { font-size: var(--fs-h2); line-height: 1.2; }
@media (max-width: 768px) { h2 { line-height: 1.3; } }
p { margin: 0 0 12px; }
button, input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
/* `hidden` must win over any display rule: .choice is flex and .co-row is
   grid, and either one silently un-hid elements the checkout script had
   hidden (found by screenshot, 2 Oct 2026 - the attribute was set, the
   element still showed). */
[hidden] { display: none !important; }
.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 { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--bg); padding: 8px 12px; }
.skip:focus { left: 8px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.container-wide, .collection > .container { max-width: var(--container-wide); }
.kicker { letter-spacing: .1em; text-transform: uppercase; color: var(--accent-text); margin-bottom: 12px; }
/* A block-level flex link, as on the old site: an inline one makes the 22px
   icon stretch the line box by 6px. */
.kicker a { text-decoration: none; display: flex; width: fit-content; align-items: center; gap: 4px; }
.kicker svg { width: 22px; height: 22px; flex: none; }
.lead { font-size: var(--fs-medium); line-height: 1.4; text-wrap: balance; }
.link-accent { color: var(--accent-text); text-decoration: underline; text-underline-offset: 5px; text-transform: uppercase; }
.link-accent:hover { text-decoration-thickness: 2px; }
/* The call to action (hero, empty shop): the old underlined accent link, set
   a little wider with a fine arrow that leans forward under the cursor.
   Accent on white, 5.08:1. */
.cta { display: inline-flex; align-items: center; gap: 14px; color: var(--accent-text); text-decoration: none; text-transform: uppercase; letter-spacing: .12em; font-size: 15px; line-height: 1.6; padding: 4px 0 6px; border-bottom: 1px solid currentColor; }
.cta .icon-arrow, .see-all .icon-arrow { width: 22px; height: 10px; flex: none; transition: transform .35s ease; }
.cta:hover .icon-arrow, .see-all a:hover .icon-arrow { transform: translateX(5px); }
/* A pearl on a thread under a centred section heading: decoration only. */
.collection > .container > h2::after, .shop-head h1::after, .contact h2::after {
  content: ''; display: block; width: 66px; height: 7px; margin: 20px auto 0;
  background:
    radial-gradient(circle, var(--accent) 0 2.6px, transparent 3.1px) center / 7px 7px no-repeat,
    linear-gradient(var(--accent), var(--accent)) left center / 24px 1px no-repeat,
    linear-gradient(var(--accent), var(--accent)) right center / 24px 1px no-repeat;
}

/* ── header ─────────────────────────────────────────────────────────────── */
/* 82px row + 1px rule; nav uppercase 16/300 with 28px between items.
   Sticky: at the top of the page it sits on the white like the old one, with
   its rule; once the page moves (site.js, .is-scrolled) a soft shadow lifts
   it off what scrolls beneath. */
.site-header { position: sticky; top: 0; z-index: 20; background: var(--header-bg); color: var(--header-text); border-bottom: 1px solid var(--header-line); transition: box-shadow .3s ease; }
.site-header.is-scrolled { box-shadow: 0 10px 30px -18px rgb(18 18 18 / .28); }
.site-header .container { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 82px; }
.nav { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; text-transform: uppercase; }
.nav a { text-decoration: none; line-height: 1.6; padding: 1px 0 0; }
.nav a:hover, .nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 5px; text-decoration-color: var(--accent-secondary); }
.nav-left { justify-self: start; padding-left: 4px; }
.nav-right { justify-self: end; align-items: center; }
.brand { display: block; justify-self: center; }
.brand img { width: 140px; height: 46px; }
.cart-link { position: relative; display: block; text-decoration: none; color: var(--header-text); margin-right: 4px; }
.cart-link svg { display: block; width: 24px; height: 24px; }
.cart-count {
  position: absolute; top: -8px; right: -8px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--btn-hover); color: var(--btn-text); display: flex; align-items: center; justify-content: center;
  font-family: var(--heading); font-size: 12px; line-height: 1;
}
/* site.js: a small bump when the count changes, so the eye finds it. */
.cart-count.bump { animation: bump .45s ease; }
@keyframes bump { 40% { transform: scale(1.3); } }
/* The language switch, EN / RU: the current one in 500 with an accent
   underline (5.08:1), the other in --muted (6.7:1 on white). */
.lang-switch [role="group"] { display: flex; align-items: center; gap: 6px; }
.lang-switch a { color: var(--header-muted); text-decoration: none; }
.lang-switch a:hover { color: var(--header-text); }
.lang-switch a[aria-current="true"] { color: var(--header-text); font-weight: 500; text-decoration: underline; text-underline-offset: 5px; text-decoration-color: var(--accent); }
.lang-switch [aria-hidden="true"] { color: var(--header-muted); }
.menu-toggle { display: none; background: none; border: 0; padding: 10px 0; cursor: pointer; }
.menu-item { display: none; }
.menu-toggle svg { width: 24px; height: 24px; display: block; }
.mobile-menu { display: none; }

@media (max-width: 959px) {
  .site-header .container { grid-template-columns: 1fr auto; height: 61px; }
  .nav-left, .nav-right .nav-text { display: none; }
  .brand { justify-self: start; }
  .brand img { width: 100px; height: 33px; }
  .nav-right { gap: 24px; }
  .menu-toggle, .menu-item { display: block; }
  .mobile-menu[data-open="true"] { display: block; position: absolute; left: 0; right: 0; top: 100%; background: var(--header-bg); border-bottom: 1px solid var(--header-line); padding: 12px var(--gutter) 20px; }
  .mobile-menu ul { list-style: none; margin: 0; padding: 0; text-transform: uppercase; }
  .mobile-menu a { display: block; padding: 10px 0; text-decoration: none; }
  .mobile-menu a[aria-current="page"] { text-decoration: underline; text-underline-offset: 5px; text-decoration-color: var(--accent-secondary); }
  .mobile-menu[data-open="true"] { box-shadow: 0 18px 30px -22px rgb(18 18 18 / .3); }
  .mobile-menu .lang-switch [role="group"] { gap: 10px; }
}

/* ── notice banners (cart changes, shop closed, form results) ───────────── */
.notice { border-left: 3px solid var(--accent); background: var(--light-bg); padding: 12px 16px; margin: 0 0 24px; border-radius: var(--radius); }
.notice.error { border-left-color: var(--error); }
.notice.ok { border-left-color: var(--ok); }
.notice p:last-child { margin: 0; }
.site-notice { background: var(--light-bg); text-align: center; padding: 10px var(--gutter); font-size: 15px; }

/* ── hero (#intro) ──────────────────────────────────────────────────────── */
/* text column 388px at x=260; photo 500x720 at x=680; headline at y~338. */
.intro { padding-top: 88px; margin-bottom: 32px; }
.intro .container { display: flex; gap: 32px; align-items: flex-start; }
.intro-text { flex: 1 1 auto; padding: 128px 0 48px; min-width: 0; }
.intro-text h2 { margin-bottom: 16px; }
.intro-text .lead { margin-bottom: 28px; }
.intro-photo { flex: 0 0 500px; height: 720px; position: relative; background: var(--placeholder); overflow: hidden; border-radius: var(--photo-radius); }
.intro-photo img, .split-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 768px) {
  .intro { padding-top: 0; margin-top: 8px; margin-bottom: 0; }
  .intro .container { flex-direction: column; align-items: stretch; }
  .intro-text { padding: 64px 0 0; }
  .intro-photo { display: none; }
}

/* ── split sections (#discover, #about) ─────────────────────────────────── */
/* photo bleeds to the left edge, 700px tall; 525px box overlaps it by 80px. */
/* The box's right edge lines up with the container's OUTER edge (1205 at
   1440px), not its padded content edge - measured on the old site. */
.split { padding-top: 80px; display: flex; align-items: center; padding-right: max(var(--gutter), calc((100vw - var(--container)) / 2)); }
#about { margin-bottom: 32px; }
.split-photo { flex: 1 1 auto; min-height: 700px; align-self: stretch; position: relative; background: var(--placeholder); overflow: hidden; }
.split-box {
  flex: 0 0 525px; margin-left: -80px; padding: 64px; background: var(--bg); position: relative; z-index: 1; border-radius: var(--radius);
  box-shadow: 0 25px 50px -12px rgb(0 0 0 / .07);
}
.split-box h2 { margin-bottom: 16px; }
.split-box .lead { margin-bottom: 12px; }
@media (max-width: 768px) {
  .split { flex-direction: column; align-items: stretch; padding-right: 0; }
  .split-photo { min-height: 420px; }
  .split-box { flex-basis: auto; margin: -80px var(--gutter) 0; }
}
@media (max-width: 575px) {
  .split-box { padding: 48px; }
  .split-box .lead { font-size: 16px; }
}

/* ── category carousels ─────────────────────────────────────────────────── */
/* Each row sits INSIDE the product column (--container-wide): whole cards
   only, 3 across from 960px, 2 from 576px, 1 on a phone, nothing cut at
   either side. site.js gives Swiper the same numbers (slidesPerView and
   spaceBetween at the same breakpoints) - change them together, or the row
   jumps when the script starts. Before it starts, and with no script, the
   same widths make a row that scrolls sideways under a finger. */
.collection { padding-top: 64px; margin-bottom: 64px; }
.collection.first { padding-top: 112px; }
.collection.last { margin-bottom: 48px; }
.collection > .container > h2 { text-align: center; margin-bottom: 44px; }
.carousel, .shop-grid { --per-view: 1; --gap: 24px; }
@media (min-width: 576px) { .carousel, .shop-grid { --per-view: 2; --gap: 30px; } }
@media (min-width: 960px) { .carousel, .shop-grid { --per-view: 3; --gap: 45px; } }
/* The clip box is 8px larger than the column on every side, so a focus ring
   on an edge card shows whole; at rest only the gap (24px or more) lies in
   that margin, so no neighbour peeks in. */
.carousel .swiper { overflow: hidden; padding: 8px; margin: -8px; }
.carousel .swiper-wrapper { display: flex; }
.carousel .swiper-slide { flex-shrink: 0; height: auto; width: calc((100% - (var(--per-view) - 1) * var(--gap)) / var(--per-view)); }
.carousel .swiper:not(.swiper-initialized) .swiper-wrapper { gap: var(--gap); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.carousel .swiper:not(.swiper-initialized) .swiper-wrapper::-webkit-scrollbar { display: none; }
.carousel .swiper:not(.swiper-initialized) .swiper-slide { scroll-snap-align: start; }
.carousel-controls { display: flex; align-items: center; gap: 16px; margin-top: 48px; }
/* Space kept, nothing shown, until Swiper runs: the arrows do nothing before. */
.carousel:not(.is-ready) .carousel-controls { visibility: hidden; }
/* Every card fits: no arrows, no progress line - decided here before any
   script runs (no jump), and by Swiper's watchOverflow after (site.js). */
.carousel[data-count="1"] .carousel-controls { display: none; }
@media (min-width: 576px) { .carousel[data-count="2"] .carousel-controls { display: none; } }
@media (min-width: 960px) { .carousel[data-count="3"] .carousel-controls { display: none; } }
.carousel-controls .swiper-pagination { flex: 1; height: 2px; background: var(--track); }
.carousel-controls .swiper-pagination-progressbar-fill { background: var(--nv-text-color); position: absolute; left: 0; top: 0; width: 100%; height: 100%; transform-origin: left top; }
.carousel-controls button { background: none; border: 0; padding: 0; }
/* "See the full ... collection": quiet - ink, small capitals, a hairline. */
.see-all { margin: 32px 0 0; text-align: center; }
.see-all a { display: inline-flex; align-items: center; gap: 12px; color: var(--nv-text-color); text-decoration: none; text-transform: uppercase; letter-spacing: .1em; font-size: 14px; line-height: 1.6; padding-bottom: 3px; border-bottom: 1px solid var(--accent-secondary); transition: border-color .3s ease; }
.see-all a:hover { border-bottom-color: var(--accent); }

/* ── product card ───────────────────────────────────────────────────────── */
/* One card everywhere (home rows, the shop grid, "New in store"). The photo
   keeps a 4:5 shape at any width - 330x412 three across, 340x425 on a
   phone - and the title, price and links scale with the card (container
   query units), so a narrow card is not a tall sliver with a headline. */
.card { user-select: none; container-type: inline-size; }
.card-media { position: relative; }
.card-photo { display: block; position: relative; width: 100%; aspect-ratio: var(--photo-ratio); background: var(--placeholder); overflow: hidden; border: 0; padding: 0; cursor: zoom-in; border-radius: var(--photo-radius); }
.card-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .9s cubic-bezier(.2, .6, .2, 1), opacity .5s ease; }
/* The second photo: not even loaded on a touch screen (display: none keeps
   a lazy image from loading); under a mouse it crossfades in. A card with
   one photo zooms gently instead. */
.card-photo-alt { display: none; opacity: 0; }
@media (hover: hover) and (pointer: fine) {
  .card-photo-alt { display: block; }
  .card-photo:hover img { transform: scale(1.03); }
  .has-alt .card-photo:hover img { transform: none; }
  .has-alt .card-photo:hover .card-photo-alt { opacity: 1; }
}
/* The ring is drawn inside the photo (accent with a white inner line), so a
   row's clip box can never cut it. */
.card-photo:focus-visible { outline: none; }
.card-photo:focus-visible::after { content: ''; position: absolute; inset: 0; z-index: 2; border-radius: inherit; box-shadow: inset 0 0 0 2px var(--focus), inset 0 0 0 4px var(--bg); }
.card-photo .more { position: absolute; right: 10px; bottom: 10px; z-index: 1; background: var(--bg); color: var(--nv-text-color); border-radius: var(--radius); font-size: 13px; line-height: 1.6; padding: 1px 8px; }
/* Sold out / Sale, top left on the photo: ink on white 15.1:1, white on the
   accent 5.08:1. aria-hidden - the words are said in the card itself. */
.card-mark { position: absolute; top: 12px; left: 12px; z-index: 1; pointer-events: none; background: var(--bg); color: var(--nv-text-color); border-radius: var(--radius); font-size: 12px; line-height: 1; letter-spacing: .12em; text-transform: uppercase; padding: 7px 10px 6px; }
.card-mark-sale { background: var(--accent); color: var(--on-accent); }
.card :is(h2, h3) { font-size: var(--fs-card-title); font-size: clamp(calc(21px * var(--hs)), calc(7.6cqi * var(--hs)), calc(30px * var(--hs))); line-height: 1.3; margin: 18px 0 6px; overflow-wrap: anywhere; }
.card-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.price { font-size: var(--fs-price); line-height: 1.3; margin-bottom: 8px; white-space: nowrap; }
.card .price { font-size: clamp(16px, 5.5cqi, 21px); margin-bottom: 6px; }
.price del { color: var(--muted); font-size: .8em; margin-right: 6px; }
.price ins { text-decoration: none; }
.card-attrs div { min-height: 1.7em; }
.card .card-attrs { font-size: clamp(13px, 4.5cqi, 15px); }
.card-actions { flex: none; }
.add-to-cart { display: inline-block; background: none; border: 0; padding: 0; cursor: pointer; color: var(--accent-text); text-transform: uppercase; text-decoration: underline; text-underline-offset: 5px; line-height: 1; position: relative; }
.card .add-to-cart { font-size: clamp(13px, 4.5cqi, 15px); letter-spacing: .04em; }
.add-to-cart:hover { text-decoration-thickness: 2px; }
.add-to-cart[aria-busy="true"] { opacity: .7; pointer-events: none; }
.add-to-cart[aria-busy="true"]::after {
  content: ''; position: absolute; top: 50%; left: -28px; width: 18px; height: 18px; margin-top: -9px;
  border: 2px solid var(--light-bg); border-top-color: var(--accent); border-radius: 50%; animation: spin .6s linear infinite;
}
.added { display: block; margin-top: 8px; font-size: 14px; color: var(--ok); text-align: right; }
.added a { color: var(--accent-text); }
.sold-out { color: var(--muted); text-transform: uppercase; }
@keyframes spin { to { transform: rotate(360deg); } }
/* Photos fade in as they arrive, in a box already the right size (no
   jump). Only once site.js has run (html.js), so with no script nothing is
   ever hidden. */
.fade-in { transition: opacity .6s ease; }
.js .fade-in { opacity: 0; }
.js .fade-in.is-loaded { opacity: 1; }

/* product photos dialog */
.photo-dialog { border: 0; padding: 0; max-width: min(960px, 100vw - 32px); width: 100%; max-height: calc(100vh - 32px); background: var(--bg); color: var(--nv-text-color); border-radius: var(--radius); }
.photo-dialog::backdrop { background: rgb(18 18 18 / .6); }
.photo-dialog .inner { display: grid; grid-template-columns: 3fr 2fr; gap: 0; }
.photo-dialog .gallery { position: relative; background: var(--placeholder); }
.photo-dialog .gallery img { width: 100%; height: min(70vh, 640px); object-fit: contain; background: var(--bg); }
.photo-dialog .thumbs { display: flex; gap: 6px; padding: 8px; flex-wrap: wrap; }
.photo-dialog .thumbs button { width: 56px; height: 56px; padding: 0; border: 1px solid var(--line); background: none; cursor: pointer; }
.photo-dialog .thumbs button[aria-current="true"] { border-color: var(--nv-text-color); }
.photo-dialog .thumbs img { width: 100%; height: 100%; object-fit: cover; }
.photo-dialog .details { padding: 40px 32px; overflow-y: auto; }
.photo-dialog h3 { font-size: calc(30px * var(--hs)); line-height: 1.3; margin-bottom: 8px; }
.photo-dialog .close { position: absolute; top: 8px; right: 8px; z-index: 2; background: var(--bg); color: var(--nv-text-color); border: 0; border-radius: var(--radius); width: 36px; height: 36px; cursor: pointer; font-size: 26px; line-height: 1; }
@media (max-width: 768px) {
  .photo-dialog .inner { grid-template-columns: 1fr; }
  .photo-dialog .gallery img { height: 55vh; }
  .photo-dialog .details { padding: 24px var(--gutter); }
}

/* ── the shop: every product (/shop/) ───────────────────────────────────── */
/* The same column, cards and 3 / 2 / 1 rhythm as the home rows. */
.shop { padding: 72px 0 96px; }
.shop-head { text-align: center; max-width: 720px; margin: 0 auto 36px; }
.shop-head h1 { font-size: var(--fs-h2); line-height: 1.2; }
.shop-head .lead { margin: 20px 0 0; }
/* Category chips: an outline when idle, filled ink when current (white on
   ink 15.1:1); the count in --muted (6.7:1) or, on ink, the light ground. */
.chips ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.chip { display: inline-flex; align-items: baseline; gap: 8px; padding: 7px 16px 6px; border: 1px solid var(--control-line); border-radius: 999px; text-decoration: none; text-transform: uppercase; letter-spacing: .08em; font-size: 14px; line-height: 1.5; color: var(--nv-text-color); transition: border-color .25s ease, background-color .25s ease; }
.chip:hover { border-color: var(--nv-text-color); }
.chip[aria-current="page"] { background: var(--nv-text-color); border-color: var(--nv-text-color); color: var(--bg); }
.chip-count { font-size: 12px; letter-spacing: .04em; color: var(--muted); }
.chip[aria-current="page"] .chip-count { color: var(--light-bg); }
.shop-tools { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; margin: 36px 0 32px; padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.shop-count { margin: 0; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.shop-menus { display: flex; flex-wrap: wrap; gap: 8px 28px; }
/* Filter and sort menus: <details> lists of links, so they open, close and
   lead somewhere with no script. */
.menu { position: relative; }
.menu summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 6px; font-size: 14px; line-height: 1.6; text-transform: uppercase; letter-spacing: .06em; padding: 4px 0; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary::after { content: ''; width: 6px; height: 6px; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: rotate(45deg); margin: -4px 0 0 6px; transition: transform .2s ease; }
.menu[open] summary::after { transform: rotate(225deg); margin-top: 3px; }
.menu-name { color: var(--muted); }
.menu-list { position: absolute; z-index: 15; top: calc(100% + 8px); right: 0; min-width: 230px; list-style: none; margin: 0; padding: 8px 0; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 18px 40px -18px rgb(18 18 18 / .25); }
.menu-list a { display: flex; justify-content: space-between; gap: 16px; padding: 7px 18px; text-decoration: none; font-size: 15px; line-height: 1.5; }
.menu-list a:hover { background: var(--light-bg); }
.menu-list a[aria-current="true"] { font-weight: 400; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--accent); }
.menu-count { color: var(--muted); font-size: 13px; }
.shop-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(var(--per-view), minmax(0, 1fr)); gap: 56px var(--gap); }
.shop-empty { text-align: center; padding: 48px 0 24px; }
.shop-empty .lead { margin-bottom: 24px; }
/* Pages: numbers in a row, the current one underlined in the accent. */
.pagination { display: flex; justify-content: center; align-items: center; gap: 20px; margin-top: 72px; }
.pagination ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; }
.pagination a, .page-gap { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 6px; text-decoration: none; font-size: 16px; }
.pagination a:hover { text-decoration: underline; text-underline-offset: 6px; text-decoration-color: var(--accent-secondary); }
.pagination a[aria-current="page"] { font-weight: 500; text-decoration: underline; text-underline-offset: 6px; text-decoration-color: var(--accent); text-decoration-thickness: 2px; }
.page-step { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; color: var(--nv-text-color); }
span.page-step { color: var(--control-line); }
.page-step svg { width: 10px; height: 16px; }
@media (max-width: 768px) {
  .shop { padding: 40px 0 72px; }
  .shop-grid { row-gap: 44px; }
}
/* On a phone the menus share the row, and a list opens across the column
   (positioned on the toolbar, not its summary), never off the screen. */
@media (max-width: 575px) {
  .shop-tools { position: relative; flex-direction: column; align-items: stretch; }
  .shop-menus { gap: 6px 24px; }
  .menu { position: static; }
  .menu-list { left: 0; right: 0; top: calc(100% - 4px); min-width: 0; }
}

/* ── contact ────────────────────────────────────────────────────────────── */
.contact { padding: 128px 0; text-align: center; }
.contact .inner { max-width: 576px; margin: 0 auto; }
.contact h2 { margin-bottom: 16px; }
.contact-links { margin: 32px 0 0; display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: var(--fs-medium); line-height: 1.4; letter-spacing: .1em; text-transform: uppercase; }
.contact-links a { text-decoration: none; display: inline-flex; align-items: center; gap: 4px; }
.contact-links svg { width: 22px; height: 22px; }
.contact form { margin-top: 59px; text-align: left; }
.fields { display: flex; flex-wrap: wrap; gap: 44px 24px; }
.field { position: relative; flex: 1 1 100%; }
.field.half { flex: 1 1 calc(50% - 12px); }
@media (max-width: 575px) { .field.half { flex-basis: 100%; } }
.field label { position: absolute; left: 0; top: 15px; font-size: var(--fs-medium); line-height: 1.36; pointer-events: none; transition: top .15s ease, font-size .15s ease; color: var(--nv-text-color); }
.field.active label, .field:focus-within label { top: -10px; font-size: 14px; }
.field input, .field textarea {
  width: 100%; border: 0; border-bottom: 2px solid var(--nv-text-color); border-radius: 0; background: transparent;
  padding: 15px 0; font-size: var(--fs-medium); line-height: 1.36; outline: none;
}
.field textarea { height: 200px; resize: vertical; line-height: 1.4; }
@media (max-width: 768px) { .field textarea { height: 185px; } }
.field input:focus-visible, .field textarea:focus-visible { border-bottom-color: var(--accent); }
.field .err { display: block; color: var(--error); font-size: 14px; margin-top: 4px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.consent { display: flex; justify-content: center; gap: 10px; align-items: flex-start; margin: 32px auto 0; max-width: 290px; font-size: 16px; line-height: 1.6; text-align: left; }
.consent input { appearance: none; -webkit-appearance: none; flex: none; width: 24px; height: 24px; border: 2px solid var(--nv-text-color); border-radius: 50%; margin: 0; cursor: pointer; position: relative; }
.consent input:checked::after { content: ''; position: absolute; inset: 4px; border-radius: 50%; background: var(--nv-text-color); }
.turnstile { display: flex; justify-content: center; margin-top: 32px; }
.btn-outline {
  display: block; margin: 24px auto 0; min-width: 267px; padding: 12px 24px; border: 1px solid var(--accent); background: var(--bg);
  color: var(--accent-text); text-transform: uppercase; cursor: pointer; font-size: 16px; line-height: 1.6; border-radius: var(--radius);
}
.btn-outline:hover { background: var(--accent); color: var(--on-accent); }
.btn-outline, .btn-outline-sm, .btn { transition: background-color .25s ease, color .25s ease, border-color .25s ease; }
.form-result { text-align: center; margin-top: 16px; }

/* ── buttons (cart / checkout) ──────────────────────────────────────────── */
.btn {
  display: inline-block; width: 100%; border: 1px solid var(--btn-hover); background: var(--btn-bg); color: var(--btn-text); text-align: center;
  text-transform: uppercase; padding: 11px 16px; line-height: 1.6; cursor: pointer; text-decoration: none; font-weight: 300; border-radius: var(--radius);
}
.btn:hover { background: var(--btn-hover); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* ── cart ───────────────────────────────────────────────────────────────── */
.shop-page { padding: 48px 0 96px; }
.cart-grid { display: grid; grid-template-columns: minmax(0, 1fr) 301px; gap: 63px; align-items: start; }
@media (max-width: 860px) { .cart-grid { grid-template-columns: 1fr; gap: 40px; } }
.table-head { display: flex; justify-content: space-between; text-transform: uppercase; font-size: 14px; font-weight: 500; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.line { display: grid; grid-template-columns: 141px 1fr auto; gap: 16px; padding: 20px 0 24px; border-bottom: 1px solid var(--line); }
.line-photo { width: 141px; height: 141px; background: var(--placeholder); position: relative; overflow: hidden; border-radius: var(--photo-radius); }
.line-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.line h3 { font-size: calc(26px * var(--hs)); line-height: 1.3; margin-bottom: 4px; }
.line .unit { font-size: 14px; margin-bottom: 8px; }
.line .total { font-size: 14px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--control-line); height: 30px; border-radius: var(--radius); }
.qty button { width: 30px; height: 28px; border: 0; background: none; cursor: pointer; font-size: 14px; }
.qty input { width: 44px; height: 28px; text-align: center; border: 0; background: transparent; -moz-appearance: textfield; font-size: 15px; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.line-actions { display: flex; gap: 16px; align-items: center; }
.remove { background: none; border: 0; padding: 4px; cursor: pointer; }
.remove svg { width: 18px; height: 18px; display: block; }
@media (max-width: 575px) {
  .line { grid-template-columns: 96px 1fr; }
  .line-photo { width: 96px; height: 96px; }
  .line .total { grid-column: 2; }
  .line h3 { font-size: calc(22px * var(--hs)); }
}
.summary h2, .summary .title { font-family: var(--body); font-size: 14px; font-weight: 500; text-transform: uppercase; padding-bottom: 10px; border-bottom: 1px solid var(--line); line-height: 1.6; }
.sum-row { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; padding: 12px 0; }
.sum-row small { display: block; font-size: 11px; text-transform: uppercase; color: var(--muted); }
.sum-total { display: flex; justify-content: space-between; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 18px 0; margin: 4px 0 32px; font-size: 20px; font-weight: 500; }
.free-hint { font-size: 13px; color: var(--muted); margin: -4px 0 12px; }
/* coupon: a quiet disclosure, as WooCommerce's "Add coupons" was */
.coupon { border-bottom: 1px solid var(--line); padding: 10px 0; font-size: 14px; }
.coupon summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.coupon summary::-webkit-details-marker { display: none; }
.coupon summary::after { content: ''; width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); margin: -4px 4px 0 0; }
.coupon details[open] summary::after { transform: rotate(225deg); margin-top: 4px; }
.coupon-form { display: flex; gap: 8px; margin-top: 10px; }
.coupon-form input { flex: 1; min-width: 0; border: 1px solid var(--nv-text-color); background: var(--bg); padding: 8px 10px; font-size: 15px; text-transform: uppercase; border-radius: var(--radius); }
.btn-outline-sm { border: 1px solid var(--accent); background: var(--bg); color: var(--accent-text); text-transform: uppercase; padding: 8px 14px; cursor: pointer; font-size: 13px; border-radius: var(--radius); }
.btn-outline-sm:hover { background: var(--accent); color: var(--on-accent); }
.coupon-applied { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.coupon-applied strong { font-weight: 500; letter-spacing: .04em; }
.sum-row.discount span:last-child { color: var(--ok); }
.empty-cart { text-align: center; padding: 32px 0; }
.empty-cart .link-accent { display: inline-block; margin-top: 12px; }
.recommend { padding: 64px 0 0; }
.recommend h2 { text-align: center; margin-bottom: 44px; }

/* ── checkout ───────────────────────────────────────────────────────────── */
.checkout-grid { display: grid; grid-template-columns: minmax(0, 556px) 301px; gap: 63px; align-items: start; justify-content: space-between; }
@media (max-width: 860px) { .checkout-grid { grid-template-columns: 1fr; gap: 40px; } .checkout-grid .order-summary { order: -1; } }
.checkout h2 { font-size: calc(24px * var(--hs)); line-height: 1.4; margin: 32px 0 16px; }
.checkout h2:first-child { margin-top: 0; }
.co-field { margin-bottom: 12px; }
.co-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 480px) { .co-row { grid-template-columns: 1fr; } }
.co-field label { display: block; font-size: 13px; margin-bottom: 2px; }
.co-field input, .co-field textarea, .co-field select { width: 100%; border: 1px solid var(--nv-text-color); border-radius: var(--radius); padding: 12px 10px; background: var(--bg); font-size: 16px; line-height: 1.4; }
.co-field input[aria-invalid="true"] { border-color: var(--error); border-width: 2px; }
.co-field .err { color: var(--error); font-size: 13px; display: block; margin-top: 2px; }
.co-hint { font-size: 13px; color: var(--muted); margin-top: 4px; }
.choice { display: flex; gap: 12px; align-items: flex-start; border: 1px solid var(--control-line); padding: 14px 16px; margin-bottom: 8px; cursor: pointer; border-radius: var(--radius); }
.choice:has(input:checked) { border: 2px solid var(--nv-text-color); padding: 13px 15px; }
.choice input { margin: 5px 0 0; accent-color: var(--nv-text-color); width: 18px; height: 18px; flex: none; }
.choice .grow { flex: 1; }
.choice .name { display: block; font-weight: 400; }
.choice .desc { display: block; font-size: 14px; color: var(--muted); margin-top: 2px; }
.choice .cost { white-space: nowrap; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; background: var(--light-bg); padding: 4px; gap: 4px; margin-bottom: 8px; border-radius: var(--radius); }
.tabs label { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 10px; cursor: pointer; border: 2px solid transparent; border-radius: var(--radius); }
.tabs label:has(input:checked) { background: var(--bg); border-color: var(--nv-text-color); }
.tabs input { position: absolute; opacity: 0; pointer-events: none; }
.tabs label:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; }
.check { display: flex; gap: 10px; align-items: center; margin: 16px 0; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--nv-text-color); }
.terms { font-size: 14px; border-top: 1px solid var(--line); padding-top: 24px; margin-top: 24px; }
.terms a { color: var(--accent-text); }
.order-summary { border: 1px solid var(--line); padding: 16px; border-radius: var(--radius); }
.order-summary h2 { font-size: calc(20px * var(--hs)); margin: 0 0 16px; }
.os-item { display: grid; grid-template-columns: 48px 1fr auto; gap: 16px; align-items: start; margin-bottom: 12px; font-size: 14px; }
.os-photo { position: relative; width: 48px; height: 48px; background: var(--placeholder); border-radius: var(--photo-radius); }
.os-photo img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.os-photo .n { position: absolute; top: -8px; right: -8px; width: 20px; height: 20px; border-radius: 50%; background: var(--btn-hover); color: var(--btn-text); font-size: 11px; display: flex; align-items: center; justify-content: center; }
.os-item .nm { font-weight: 500; }
.pickup-box { background: var(--light-bg); padding: 12px 16px; margin-bottom: 8px; font-size: 15px; border-radius: var(--radius); }

/* ── order received ─────────────────────────────────────────────────────── */
.received { max-width: 720px; margin: 0 auto; }
.received h1 { font-size: var(--fs-h2); line-height: 1.2; margin-bottom: 16px; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; border: 1px solid var(--line); padding: 16px; margin: 24px 0; font-size: 14px; border-radius: var(--radius); }
.facts strong { display: block; font-weight: 500; font-size: 16px; }

/* ── legal / standalone pages ───────────────────────────────────────────── */
.page-body { max-width: 748px; margin: 0 auto; padding: 64px var(--gutter) 96px; }
.page-body h1 { font-size: var(--fs-h2); line-height: 1.2; margin-bottom: 32px; }
.page-body h2 { font-size: calc(28px * var(--hs)); margin: 1.5em 0 .5em; }
.page-body h3 { font-size: calc(25px * var(--hs)); margin: 1em 0 .4em; }
.page-body a { color: var(--accent-text); }
.page-body ul, .page-body ol { padding-left: 1.25em; }

/* ── a product's own page (/product/<slug>/, since 1.5.0) ─────────────────── */
/* A card's name leads here (its photo still opens the viewer): ink, as the
   name always was, underlined under the cursor in the warm grey the nav
   uses for that (STYLE.md). */
.card :is(h2, h3) a { color: inherit; text-decoration: none; }
.card :is(h2, h3) a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; text-decoration-color: var(--accent-secondary); }
/* Home / Shop / Bracelet / Sea Grace: ink links, the page itself in the
   muted grey (6.7:1 on white). */
.crumbs { padding-top: 28px; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; row-gap: 2px; font-size: 14px; line-height: 1.6; color: var(--muted); }
.crumbs li { min-width: 0; overflow-wrap: anywhere; }
.crumbs li + li::before { content: '/'; margin: 0 10px; }
.crumbs a { color: var(--nv-text-color); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; text-underline-offset: 4px; }
/* The photo and the facts side by side from 960px, the photo the size of
   about one and a half cards; one column below, the photo first. */
.product { display: grid; grid-template-columns: minmax(0, 540px) minmax(0, 1fr); gap: 56px; align-items: start; padding-top: 24px; padding-bottom: 56px; }
.product-photo-empty { aspect-ratio: var(--photo-ratio); background: var(--placeholder); border-radius: var(--photo-radius); }
.product-thumbs { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 10px; }
.product-info { padding-top: 4px; }
.product-info .kicker { font-size: 14px; }
.product-info h1 { font-size: var(--fs-h2); line-height: 1.2; margin-bottom: 14px; overflow-wrap: anywhere; }
.product-info .price { font-size: 26px; white-space: normal; margin-bottom: 4px; }
.product-stock { color: var(--ok); font-size: 15px; margin-bottom: 18px; }
.product-stock.is-out { color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.product-info .lead { margin-bottom: 24px; }
.product-buy { max-width: 360px; margin-bottom: 32px; }
.product-buy .added { text-align: left; }
.product-sub { font-family: var(--body); font-weight: 400; font-size: 14px; line-height: 1.6; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 10px; }
.product-attrs { margin: 0 0 28px; border-top: 1px solid var(--line); }
.product-attrs div { display: grid; grid-template-columns: minmax(0, 150px) minmax(0, 1fr); gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.product-attrs dt { color: var(--muted); }
.product-attrs dd { margin: 0; overflow-wrap: anywhere; }
/* ink on the light ground, 13.1:1 - never the accent there (4.41:1) */
.product-delivery { list-style: none; margin: 0; padding: 14px 18px; background: var(--light-bg); font-size: 15px; line-height: 1.6; border-radius: var(--radius); }
.product-delivery li + li { margin-top: 4px; }
.product-text { padding-bottom: 24px; }
.product-text .page-text { max-width: 748px; }
.product-text .page-text a { color: var(--accent-text); }
.product-text .page-text ul, .product-text .page-text ol { padding-left: 1.25em; }
@media (max-width: 959px) {
  .product { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .product-media { width: 100%; max-width: 540px; }
}
@media (max-width: 575px) {
  .crumbs { padding-top: 20px; }
  .product-info .price { font-size: 22px; }
  .product-attrs div { grid-template-columns: minmax(0, 120px) minmax(0, 1fr); gap: 12px; }
  .product-buy { max-width: none; }
}

/* ── 404 ────────────────────────────────────────────────────────────────── */
.not-found { text-align: center; padding: 128px var(--gutter); }
.not-found h1 { font-size: var(--fs-h2); margin-bottom: 16px; }

/* ── footer ─────────────────────────────────────────────────────────────── */
.site-footer { background: var(--dark-bg); color: var(--footer-text); padding: 56px 0 28px; text-align: center; }
.footer-brand { display: inline-block; margin-bottom: 28px; }
.footer-brand img { width: 122px; height: 40px; }
.site-footer ul { list-style: none; margin: 0 0 18px; padding: 0; display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 32px; text-transform: uppercase; letter-spacing: .1em; font-size: 13px; }
.site-footer a { text-decoration: none; line-height: 1.6; }
.site-footer a:hover { text-decoration: underline; text-underline-offset: 5px; text-decoration-color: var(--accent-secondary); }
.site-footer :focus-visible { outline-color: var(--footer-text); }
.footer-contact a { display: inline-flex; align-items: center; gap: 8px; }
.footer-contact svg { width: 18px; height: 18px; flex: none; }
.footer-contact span { text-transform: none; letter-spacing: .06em; }
/* The copyright below a hairline: --footer-soft (the warm grey, 8.6:1 on the footer). */
.site-footer .copy { color: var(--footer-soft); margin: 36px 0 0; padding-top: 24px; border-top: 1px solid var(--footer-line); font-size: 13px; letter-spacing: .08em; line-height: 1.6; text-transform: uppercase; }
@media (max-width: 768px) { .site-footer { padding: 44px 0 24px; } .site-footer ul { gap: 6px 24px; } .site-footer .copy { margin-top: 28px; } }

/* ── OAuth sign-in (the one non-shop page) ──────────────────────────────── */
.signin { max-width: 440px; margin: 0 auto; padding: 64px var(--gutter) 96px; }
.signin h1 { font-size: calc(32px * var(--hs)); line-height: 1.25; margin-bottom: 12px; }
.signin .who { background: var(--light-bg); padding: 12px 16px; margin: 16px 0 24px; font-size: 15px; border-radius: var(--radius); }
.signin .actions { display: grid; gap: 12px; margin-top: 24px; }
.btn-plain { background: none; border: 0; color: var(--nv-text-color); text-decoration: underline; text-underline-offset: 4px; cursor: pointer; padding: 8px; text-transform: uppercase; font-size: 14px; }

/* ── cookie consent (src/public/consent.js, partials/consent*.ejs) ─────── */
/* The banner never blocks the page (no cookie wall); "Reject all" and
   "Accept all" are the same button, side by side. Ink on white (15.1:1),
   the white-on-#2f3133 buttons of the cart (13:1), the accent only on white
   (5.08:1). The switches' tracks are 3:1 or more against white either way. */
.cc-banner {
  position: fixed; z-index: 40; left: 12px; right: 12px; bottom: 12px; display: grid; gap: 16px;
  padding: 20px 20px 18px; background: var(--bg); color: var(--nv-text-color); border: 1px solid var(--line); border-top: 2px solid var(--accent); border-radius: var(--radius);
  box-shadow: 0 18px 50px -12px rgb(18 18 18 / .35); max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); overflow-y: auto;
}
.cc-title { font-family: var(--heading); font-size: 22px; line-height: 1.3; margin: 0 0 6px; }
.cc-text { font-size: 15px; line-height: 1.6; margin: 0; }
.cc-banner a, .cc-modal a { color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; }
.cc-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cc-actions [data-cc="customize"], .cc-actions [data-cc="save"] { grid-column: 1 / -1; order: 3; }
.cc-actions .cc-btn:only-child { grid-column: 1 / -1; }
.cc-btn {
  min-height: 44px; padding: 10px 16px; border: 1px solid var(--btn-bg); background: var(--btn-bg); color: var(--btn-text); cursor: pointer; border-radius: var(--radius);
  text-transform: uppercase; letter-spacing: .05em; font-size: 14px; line-height: 1.4; font-weight: 400;
  transition: background-color .25s ease, color .25s ease;
}
.cc-btn:hover { background: var(--btn-hover); }
.cc-btn--quiet { background: var(--bg); color: var(--accent-text); border-color: var(--accent); }
.cc-btn--quiet:hover { background: var(--accent); color: var(--on-accent); }
@media (max-width: 599px) { .cc-text { font-size: 14px; } .cc-title { font-size: 20px; } .cc-banner { padding: 16px 16px 14px; gap: 12px; } }
/* "Отклонить все" on one line beside "Принять все" at 365px */
@media (max-width: 419px) { .cc-btn { font-size: 13px; letter-spacing: .02em; padding: 10px 8px; } }
@media (min-width: 760px) {
  .cc-banner--bottom {
    left: 50%; right: auto; bottom: 16px; transform: translateX(-50%); width: min(1080px, calc(100vw - 48px));
    grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 32px; padding: 24px 28px;
  }
  .cc-banner--bottom .cc-actions { display: flex; }
  .cc-banner--bottom .cc-actions [data-cc="customize"] { order: 0; }
  .cc-banner--bottom-left { left: 16px; right: auto; bottom: 16px; width: 440px; }
  .cc-banner--center { left: 50%; right: auto; bottom: 50%; transform: translate(-50%, 50%); width: 560px; }
}

.cc-modal {
  border: 0; padding: 32px 32px 24px; width: min(680px, calc(100vw - 24px)); max-width: none;
  max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); overflow-y: auto; background: var(--bg); color: var(--nv-text-color); border-radius: var(--radius);
}
.cc-modal::backdrop { background: rgb(18 18 18 / .6); }
.cc-modal__title { font-size: 28px; line-height: 1.25; margin: 0 44px 12px 0; }
.cc-close { position: absolute; top: 10px; right: 10px; width: 44px; height: 44px; display: grid; place-items: center; padding: 0; border: 0; background: var(--bg); color: var(--nv-text-color); cursor: pointer; }
.cc-form { margin-top: 20px; }
.cc-cat { border-top: 1px solid var(--line); padding: 16px 0 14px; }
.cc-cat__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 30px; }
.cc-cat__name { font-weight: 500; text-transform: uppercase; letter-spacing: .06em; font-size: 14px; line-height: 1.4; }
.cc-desc { font-size: 14.5px; line-height: 1.6; margin: 6px 0 0; }
.cc-always { flex: none; font-size: 12.5px; font-weight: 500; color: var(--ok); text-transform: uppercase; letter-spacing: .06em; }
.cc-switch { position: relative; display: flex; align-items: center; justify-content: space-between; width: 100%; gap: 14px; cursor: pointer; }
.cc-switch input { position: absolute; left: 0; top: 0; width: 1px; height: 1px; margin: 0; opacity: 0; }
.cc-switch__ui { flex: none; position: relative; width: 46px; height: 26px; border-radius: 13px; background: var(--muted); transition: background-color .2s ease; }
.cc-switch__ui::after { content: ''; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .2s ease; }
.cc-switch input:checked + .cc-switch__ui { background: var(--focus); }
.cc-switch input:checked + .cc-switch__ui::after { transform: translateX(20px); }
.cc-switch input:focus-visible + .cc-switch__ui { outline: 2px solid var(--focus); outline-offset: 3px; }
.cc-details { margin-top: 8px; font-size: 14px; }
.cc-details summary { width: fit-content; cursor: pointer; color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; }
.cc-none { font-size: 14px; color: var(--muted); margin: 6px 0 0; }
.cc-meta { font-size: 13px; color: var(--muted); margin: 14px 0 0; overflow-wrap: anywhere; }
.cc-actions--modal { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
@media (min-width: 600px) {
  .cc-actions--modal { display: flex; flex-wrap: wrap; justify-content: flex-end; }
  .cc-actions--modal [data-cc="save"] { order: 0; }
}
@media (max-width: 599px) { .cc-modal { padding: 24px 18px 18px; } .cc-modal__title { font-size: 24px; } }

.cc-table { width: 100%; border-collapse: collapse; margin-top: 8px; font-size: 13.5px; line-height: 1.5; }
.cc-table th, .cc-table td { text-align: left; vertical-align: top; padding: 8px 12px 8px 0; border-bottom: 1px solid var(--line); overflow-wrap: break-word; }
.cc-table th { font-weight: 500; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; }
/* one name per line: "vp_admin_access, vp_admin_refresh" is two cookies */
.cc-table code { display: block; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .92em; }
@media (min-width: 600px) { .cc-table td:first-child code { white-space: nowrap; } }
/* A phone: each cookie is a small card of label: value lines. */
@media (max-width: 599px) {
  .cc-table thead { display: none; }
  .cc-table tr { display: block; padding: 8px 0; border-bottom: 1px solid var(--line); }
  .cc-table td { display: block; border: 0; padding: 2px 0; }
  .cc-table td::before { content: attr(data-label) ': '; font-weight: 500; }
  .cc-table td:first-child code { display: inline; }
  .cc-table td:first-child code + code::before { content: ', '; }
}

/* The floating button: after a choice, in a corner nothing else uses. */
.cc-fab {
  position: fixed; left: 16px; bottom: 16px; z-index: 30; width: 44px; height: 44px; padding: 0; border-radius: 50%;
  display: grid; place-items: center; border: 1px solid var(--line); background: var(--bg); color: var(--accent-text); cursor: pointer;
  box-shadow: 0 6px 20px -6px rgb(18 18 18 / .35); transition: background-color .25s ease, color .25s ease;
}
.cc-fab:hover { background: var(--accent); color: var(--on-accent); }
.cc-fab-on .site-footer { padding-bottom: 88px; }
.footer-button { padding: 0; border: 0; background: none; color: inherit; font: inherit; letter-spacing: inherit; text-transform: inherit; line-height: 1.6; cursor: pointer; }
.footer-button:hover { text-decoration: underline; text-underline-offset: 5px; text-decoration-color: var(--accent-secondary); }

/* The Cookie Policy page */
.cookie-policy .cc-policy-btn { display: inline-block; margin: 8px 0 0; min-width: 0; }
.cookie-policy .cc-note { background: var(--light-bg); padding: 14px 18px; }
.cookie-policy code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .92em; overflow-wrap: anywhere; }
.cc-table--page { margin: 8px 0 12px; font-size: 14.5px; }
.cookie-policy .cc-version { color: var(--muted); font-size: 14px; margin-top: 24px; }
@media print { .cc-banner, .cc-fab, .cc-modal, .footer-button { display: none !important; } }

/* ── the design's switches (src/lib/theme.js htmlAttrs, since 1.7.0) ────── */
/* The bar above the header (settings home.announcement and _link): its own
   ground, text worked out to read on it. */
.announce { background: var(--announce-bg); color: var(--announce-text); text-align: center; padding: 9px var(--gutter); font-size: 14px; line-height: 1.5; letter-spacing: .06em; }
.announce p { margin: 0; }
.announce a { color: inherit; text-decoration: underline; text-underline-offset: 4px; }
/* Behind a preview link: says so on every page, in fixed colours (white on
   near-black, 18:1) so it reads whatever the draft does to the palette. */
.theme-preview { position: relative; z-index: 21; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 16px; padding: 8px var(--gutter); background: #111111; color: #ffffff; font-family: Arial, Helvetica, sans-serif; font-size: 13px; line-height: 1.5; letter-spacing: 0; text-transform: none; }
.theme-preview p { margin: 0; }
.theme-preview a { color: #ffffff; text-decoration: underline; text-underline-offset: 3px; font-weight: 700; }
.theme-preview a:focus-visible { outline: 2px solid #ffffff; }
/* The logo: the wordmark is drawn in ink and turned white on a dark ground;
   an uploaded logo keeps its own shape inside the same height, and without
   a light version becomes a white silhouette there. */
.logo-invert { filter: invert(1); }
.logo-white { filter: brightness(0) invert(1); }
.brand img.logo-custom { width: auto; max-width: 220px; object-fit: contain; }
.footer-brand img.logo-custom { width: auto; max-width: 200px; object-fit: contain; }
@media (max-width: 959px) { .brand img.logo-custom { max-width: 150px; } }
/* Logo on the left, every menu item on the right (on a phone it is already). */
@media (min-width: 960px) {
  html[data-header="left"] .site-header .container { grid-template-columns: auto 1fr auto; }
  html[data-header="left"] .brand { grid-column: 1; grid-row: 1; justify-self: start; }
  html[data-header="left"] .nav-left { grid-column: 2; grid-row: 1; justify-self: end; padding-left: 0; margin-right: 28px; }
  html[data-header="left"] .nav-right { grid-column: 3; grid-row: 1; }
}
/* A header that scrolls away with the page. */
html[data-sticky="off"] { scroll-padding-top: 12px; }
html[data-sticky="off"] .site-header { position: relative; }
/* The hero photo on the left (a phone hides it either way). */
@media (min-width: 769px) { html[data-hero="left"] .intro .container { flex-direction: row-reverse; } }
/* Headings in capitals, a little spaced; the cookie banner keeps its own. */
html[data-headings="uppercase"] :is(h1, h2, h3):not(.cc-title):not(.cc-modal__title) { text-transform: uppercase; letter-spacing: .05em; }
/* Four products across on a computer (site.js gives Swiper the same). */
@media (min-width: 960px) {
  html[data-cards="4"] :is(.carousel, .shop-grid) { --per-view: 4; --gap: 32px; }
  html[data-cards="4"] .carousel[data-count="4"] .carousel-controls { display: none; }
}

/* ── less motion when asked ─────────────────────────────────────────────── */
/* No zoom, no sliding arrow, no fades: things simply appear. */
@media (prefers-reduced-motion: reduce) {
  .card-photo img, .fade-in, .cta .icon-arrow, .see-all .icon-arrow, .site-header, .chip, .see-all a, .btn-outline, .btn-outline-sm, .btn, .cc-btn, .cc-fab, .cc-switch__ui, .cc-switch__ui::after { transition: none !important; }
  .card-photo:hover img, .cta:hover .icon-arrow, .see-all a:hover .icon-arrow { transform: none !important; }
  .cart-count.bump { animation: none; }
}
