/* Nova Webshop — visual system
   Gallery white, near-black type, one deep green for the buy action.
   Photographs carry the page; type and lines stay quiet. Mobile first. */

:root {
  --bg: #faf9f6;
  --surface: #ffffff;
  --tile: #f2f1ed;
  --sunken: #f3f2ee;
  --ink: #161615;
  --ink-2: #3d3c39;
  --muted: #67665f;
  --line: #e3e1db;
  --line-mid: #cfccc4;
  --line-strong: #8d8a83;
  --accent: #1f4a3a;
  --accent-hover: #153628;
  --accent-soft: #e6eee9;
  --on-accent: #ffffff;
  --danger: #a3261a;
  --danger-soft: #fbeae7;
  --focus: #1f4a3a;
  --dark: #121211;
  --on-dark: #f3f2ee;

  --sans: "Hanken Grotesk", "Helvetica Neue", "Segoe UI", Arial, sans-serif;
  --arabic: "Noto Sans Arabic", "Segoe UI", Tahoma, Arial, sans-serif;
  --cyrillic: "Manrope", "Segoe UI", Arial, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", "Cascadia Mono", Consolas, monospace;

  --gutter: clamp(1rem, 4vw, 2.5rem);
  --wrap: 1320px;
  --header: 7rem;
  --radius: 4px;
  --radius-lg: 6px;
  --ease: cubic-bezier(.2, .6, .2, 1);
  --shadow-pop: 0 14px 36px -14px rgba(22, 22, 21, .22);

  --caret: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23161615' stroke-width='1.5'/%3E%3C/svg%3E");
  --icon-search: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5' fill='none' stroke='%2367665f' stroke-width='1.8'/%3E%3Cpath d='M15.5 15.5L21 21' stroke='%2367665f' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");
  --icon-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20'%3E%3Ccircle cx='10' cy='10' r='10' fill='%231f4a3a'/%3E%3Cpath d='M5.8 10.3l2.7 2.7 5.7-6' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  --icon-photo: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 48 48'%3E%3Cpath d='M8 14h32v22H8z M8 30l9-8 8 7 5-4 10 8' fill='none' stroke='%238d8a83' stroke-width='1.6' stroke-linejoin='round'/%3E%3Ccircle cx='31' cy='20' r='2.5' fill='none' stroke='%238d8a83' stroke-width='1.6'/%3E%3C/svg%3E");

  color-scheme: light;
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--accent-soft); color: var(--ink); }

h1, h2, h3 {
  font-family: var(--sans);
  font-weight: 600;
  letter-spacing: -.02em;
  line-height: 1.12;
  margin: 0 0 .5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2rem, 1.55rem + 1.9vw, 3rem); letter-spacing: -.028em; }
h2 { font-size: clamp(1.45rem, 1.25rem + .85vw, 2rem); }
h3 { font-size: 1.125rem; letter-spacing: -.01em; }
h1 em, h2 em { font-style: normal; }
p { margin: 0 0 .9rem; text-wrap: pretty; }
small { font-size: .8125rem; }
s { color: var(--muted); margin-inline-start: .4rem; font-weight: 400; text-decoration-thickness: 1px; }
b, strong { font-weight: 600; }

.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.narrow { width: min(44rem, 100% - 2 * var(--gutter)); margin: clamp(2.5rem, 6vw, 4.5rem) auto; }
.sr, .nav-toggle-word {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.skip {
  position: absolute; inset-inline-start: 1rem; top: -5rem; z-index: 50;
  background: var(--ink); color: var(--surface); padding: .75rem 1rem; border-radius: var(--radius); text-decoration: none;
}
.skip:focus { top: 1rem; }

/* ---------- Labels and running text ---------- */

.eyebrow, .kicker {
  font-family: var(--sans);
  font-size: .875rem;
  font-weight: 500;
  line-height: 1.4;
  color: var(--muted);
  margin: 0 0 .5rem;
}
.kicker a { color: inherit; text-decoration: none; }
.kicker a:hover { color: var(--ink); text-decoration: underline; }
.lead {
  font-size: clamp(1.0625rem, 1rem + .3vw, 1.1875rem);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 36em;
}
.muted, .step p { color: var(--muted); }
.more {
  display: inline-flex; align-items: center; gap: .45rem; min-height: 2.75rem;
  font-size: .9375rem; font-weight: 600; color: var(--accent);
  text-decoration: underline; text-decoration-color: transparent; text-underline-offset: .3em;
  transition: text-decoration-color .15s;
}
.more::after { content: "→"; content: "→" / ""; transition: transform .2s var(--ease); }
.more:hover { text-decoration-color: currentColor; }
.more:hover::after { transform: translateX(2px); }

/* ---------- Controls ---------- */

label { font-size: .875rem; font-weight: 600; color: var(--ink-2); }

input:where(:not([type="radio"], [type="checkbox"], [type="hidden"], [type="submit"])),
select,
textarea {
  width: 100%;
  min-height: 3rem;
  padding: .65rem .85rem;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.4;
  transition: border-color .15s, box-shadow .15s;
}
input::placeholder, textarea::placeholder { color: var(--muted); opacity: 1; }
input:where(:not([type="radio"], [type="checkbox"])):hover, select:hover, textarea:hover { border-color: var(--ink-2); }
input:where(:not([type="radio"], [type="checkbox"])):focus, select:focus, textarea:focus {
  border-color: var(--focus); box-shadow: 0 0 0 1px var(--focus); outline: none;
}
input:where(:not([type="radio"], [type="checkbox"])):focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--focus); outline-offset: 2px;
}
select {
  appearance: none;
  padding-inline-end: 2.5rem;
  background-image: var(--caret);
  background-repeat: no-repeat;
  background-position: right .9rem center;
  cursor: pointer;
}
textarea { resize: vertical; min-height: 7rem; }
input[type="number"] { font-variant-numeric: tabular-nums; }
input[type="radio"], input[type="checkbox"] { accent-color: var(--accent); width: 1.15rem; height: 1.15rem; margin: 0; flex: none; }

.btn, button.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 3rem; padding: .7rem 1.5rem;
  border: 1px solid var(--accent); border-radius: var(--radius);
  background: var(--accent); color: var(--on-accent);
  font-family: var(--sans); font-size: 1rem; font-weight: 600; line-height: 1.2;
  text-decoration: none; text-align: center;
  cursor: pointer;
  transition: background-color .15s var(--ease), border-color .15s var(--ease), color .15s var(--ease);
}
.btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--on-accent); }
.btn:active { transform: translateY(1px); }
.btn.ghost, button.ghost { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.btn.ghost:hover, button.ghost:hover { background: var(--tile); border-color: var(--ink); color: var(--ink); }
.btn-lg { min-height: 3.25rem; padding-inline: 2rem; font-size: 1.0625rem; }
.btn-buy { width: 100%; min-height: 3.5rem; font-size: 1.0625rem; }

.text-btn {
  display: inline-flex; align-items: center; gap: .5rem; min-height: 2.75rem; padding: 0;
  background: none; border: 0; color: var(--ink-2); cursor: pointer;
  font-size: .9375rem; font-weight: 500;
  text-decoration: underline; text-decoration-color: var(--line-mid); text-underline-offset: .3em;
}
.text-btn:hover { color: var(--ink); text-decoration-color: currentColor; }

.sheet button, .plain button, .admin-top button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 2.5rem; min-width: 2.75rem; padding: 0 .85rem;
  background: var(--surface); border: 1px solid var(--line-mid); border-radius: var(--radius);
  color: var(--ink); cursor: pointer;
  font-size: .875rem; font-weight: 600;
  transition: background-color .15s, border-color .15s;
}
.sheet button:hover, .plain button:hover, .admin-top button:hover { background: var(--tile); border-color: var(--ink); }

/* ---------- Messages ---------- */

.flash, .note, .error { padding: .9rem 1.1rem; border-radius: var(--radius); border-inline-start: 3px solid; }
.flash {
  margin-top: 1rem; margin-bottom: 0;
  background: var(--accent-soft); border-color: var(--accent);
  color: var(--ink); font-size: .9375rem; font-weight: 500;
}
.note { background: var(--tile); border-color: var(--ink-2); color: var(--ink-2); }
.error { background: var(--danger-soft); border-color: var(--danger); color: var(--danger); font-weight: 500; }
.empty {
  grid-column: 1 / -1;
  margin: 0; padding: clamp(2.5rem, 6vw, 4rem) 1.5rem;
  border: 1px dashed var(--line-mid); border-radius: var(--radius-lg);
  background: var(--surface);
  text-align: center; font-size: 1.0625rem; line-height: 1.5; color: var(--ink-2);
}
code {
  font-family: var(--mono); font-size: .86em;
  background: var(--tile); color: var(--ink);
  padding: .12em .4em; border-radius: var(--radius);
  overflow-wrap: anywhere;
}

/* ---------- Header ---------- */

.top-note { background: var(--dark); color: var(--on-dark); }
.top-note p {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .15rem 2rem;
  min-height: 2.25rem; margin-block: 0; padding-block: .4rem;
  font-size: .8125rem; font-weight: 500; text-align: center;
}
.top-note span:nth-child(n + 2) { display: none; }

.top {
  position: sticky; top: 0; z-index: 20;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.top-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas: "toggle logo tools" "search search search" "menu menu menu";
  align-items: center;
  column-gap: .25rem;
  padding-block: .35rem .6rem;
}

.logo {
  display: inline-flex; align-items: baseline; gap: .3rem;
  color: var(--ink); text-decoration: none; line-height: 1; white-space: nowrap;
}
.logo::before {
  content: ""; align-self: center; flex: none;
  width: .7rem; height: .7rem; margin-inline-end: .2rem; border-radius: 2px;
  background: var(--accent);
}
.logo-word { font-weight: 700; letter-spacing: -.03em; }
.logo-sub { font-weight: 400; letter-spacing: -.02em; color: var(--ink-2); }
.top .logo { grid-area: logo; justify-self: start; min-height: 2.75rem; align-items: center; }
.top .logo-word, .top .logo-sub { font-size: 1.3rem; }

.nav-toggle {
  grid-area: toggle; display: inline-grid; place-items: center;
  width: 2.75rem; height: 2.75rem; margin-inline-start: -.6rem; padding: 0;
  background: none; border: 0; border-radius: var(--radius); color: var(--ink); cursor: pointer;
}
.nav-toggle::before {
  content: ""; width: 1.2rem; height: 1.5px; background: currentColor;
  box-shadow: 0 -6px 0 currentColor, 0 6px 0 currentColor;
  transition: box-shadow .15s;
}
.nav-toggle[aria-expanded="true"]::before { box-shadow: none; }
.nav-toggle:hover { background: var(--tile); }

.menu { grid-area: menu; display: none; }
.menu.open { display: grid; margin-top: .6rem; border-top: 1px solid var(--line); }
.menu a {
  display: flex; align-items: center; min-height: 3.25rem;
  border-bottom: 1px solid var(--line);
  font-size: 1.0625rem; font-weight: 500; color: var(--ink); text-decoration: none;
}
.menu a[aria-current="page"] { font-weight: 700; }

.search { grid-area: search; display: flex; margin: .25rem 0 0; }
.search input {
  min-height: 2.75rem; padding-block: .5rem; padding-inline: 2.5rem .85rem;
  background: var(--tile) var(--icon-search) no-repeat left .85rem center;
  border-color: transparent;
  font-size: .9375rem;
}
.search input:hover { border-color: var(--line-mid); }
.search input:focus { background-color: var(--surface); }

.top-tools { grid-area: tools; justify-self: end; display: flex; align-items: center; gap: 0; }
.icon-link, .cart-link {
  position: relative;
  display: inline-flex; align-items: center; gap: .45rem;
  min-width: 2.75rem; min-height: 2.75rem; padding: 0 .5rem; justify-content: center;
  border-radius: var(--radius);
  font-size: .9375rem; font-weight: 500; color: var(--ink); text-decoration: none;
  transition: background-color .15s;
}
.icon-link:hover, .cart-link:hover { background: var(--tile); }
.icon { flex: none; display: block; }
.tool-word {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.cart-link b {
  display: inline-grid; place-items: center; min-width: 1.375rem; height: 1.375rem; padding: 0 .35rem;
  border-radius: 999px; background: var(--ink); color: var(--surface);
  font-size: .75rem; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums;
}

.lang { position: relative; }
.lang summary {
  list-style: none; cursor: pointer;
  display: inline-flex; align-items: center; gap: .35rem;
  min-height: 2.75rem; padding: 0 .55rem; border-radius: var(--radius);
  font-size: .875rem; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; color: var(--ink);
  transition: background-color .15s;
}
.lang summary::-webkit-details-marker { display: none; }
.lang summary::after { content: ""; width: .6rem; height: .4rem; background: var(--caret) no-repeat center / contain; }
.lang summary:hover, .lang[open] summary { background: var(--tile); }
.lang-menu {
  position: absolute; top: calc(100% + .35rem); inset-inline-end: 0; z-index: 30;
  min-width: 13rem; padding: .35rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-pop);
}
.lang-menu a {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  min-height: 2.5rem; padding: .5rem .7rem; border-radius: var(--radius);
  text-decoration: none; color: var(--ink); font-size: .9375rem;
}
.lang-menu a:hover { background: var(--tile); }
.lang-menu a small { color: var(--muted); text-transform: uppercase; font-size: .75rem; letter-spacing: .04em; }
.lang-menu a[aria-current="true"] { background: var(--accent-soft); color: var(--accent); font-weight: 600; }

/* ---------- Home ---------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2rem;
  padding-block: clamp(1.75rem, 5vw, 4rem) clamp(1rem, 3vw, 2rem);
}
.hero-copy { min-width: 0; }
.hero .eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  padding-block: .35rem; padding-inline: .45rem .7rem; margin-bottom: 1.25rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  font-size: .8125rem; color: var(--ink-2);
}
.hero .eyebrow::before { content: ""; flex: none; width: 1.1rem; height: 1.1rem; background: var(--icon-check) no-repeat center / contain; }
.hero h1 { font-size: clamp(2.25rem, 1.55rem + 3vw, 4rem); line-height: 1.04; letter-spacing: -.035em; margin-bottom: .4em; }
.hero .lead { margin-bottom: 0; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.75rem; margin-top: 1.75rem; }

.hero-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(.6rem, 1.5vw, 1.25rem); min-width: 0; }
.hero-pair-one { grid-template-columns: minmax(0, 1fr); max-width: 32rem; }
.hero-shot { display: flex; flex-direction: column; min-width: 0; color: var(--ink); text-decoration: none; }
.hero-shot-media { display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var(--tile); border-radius: var(--radius); }
.hero-shot-media img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; transition: transform .45s var(--ease); }
.hero-shot:hover .hero-shot-media img { transform: scale(1.03); }
.hero-shot-name { margin-top: .7rem; font-size: .9375rem; font-weight: 500; line-height: 1.35; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.hero-shot:hover .hero-shot-name { text-decoration: underline; text-underline-offset: .2em; }
.hero-shot .price { margin-top: .2rem; font-weight: 600; }
.hero-plain { grid-template-columns: minmax(0, 1fr); }
.hero-plain .hero-copy { max-width: 46rem; }

.band-wrap { margin-top: clamp(3rem, 7vw, 5.5rem); background: var(--sunken); border-block: 1px solid var(--line); }
.band {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.75rem;
  padding-block: clamp(2.5rem, 6vw, 4.5rem);
}
.band-title { grid-column: 1 / -1; margin: 0; }
.step b {
  display: inline-grid; place-items: center; width: 2rem; height: 2rem;
  border: 1px solid var(--ink); border-radius: 50%;
  font-size: .875rem; font-weight: 700; font-variant-numeric: tabular-nums;
}
.step span { display: block; margin: .85rem 0 .3rem; font-size: 1.125rem; font-weight: 600; line-height: 1.3; }
.step p { margin: 0; font-size: .9375rem; max-width: 30ch; }

.hero-panel { grid-column: 1 / -1; margin-top: .5rem; padding-top: 1.75rem; border-top: 1px solid var(--line-mid); }
.hero-panel .kicker { margin-bottom: 1rem; font-weight: 600; color: var(--ink); }
.hero-panel ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem 1.5rem; }
.hero-panel li { display: flex; flex-direction: column; gap: .15rem; min-width: 0; }
.hero-panel b { font-size: .8125rem; font-weight: 500; color: var(--muted); }
.hero-panel span { font-size: 1rem; font-weight: 600; line-height: 1.35; color: var(--ink); overflow-wrap: anywhere; }

.section { padding-top: clamp(2.5rem, 6vw, 4.5rem); }
.section-first { padding-top: clamp(2rem, 4vw, 3rem); }
.section-head {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: .75rem 2rem;
  margin-bottom: clamp(1.25rem, 2.5vw, 2rem);
}
.section-head h1, .section-head h2 { margin: 0; }
.section-head .eyebrow { margin-bottom: .3rem; }

.cats { display: grid; grid-template-columns: minmax(0, 1fr); gap: .75rem; }
.cat {
  display: flex; flex-direction: column; gap: .35rem;
  padding: 1.25rem 1.25rem 1.1rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  color: var(--ink); text-decoration: none;
  transition: border-color .15s;
}
.cat span { font-size: 1.1875rem; font-weight: 600; letter-spacing: -.01em; line-height: 1.25; }
.cat small, .card small, td small { display: block; color: var(--muted); }
.cat small { font-size: .9rem; line-height: 1.5; }
.cat::after { content: "→"; content: "→" / ""; margin-top: auto; padding-top: .5rem; color: var(--accent); font-weight: 600; transition: transform .2s var(--ease); }
.cat:hover { border-color: var(--ink); }
.cat:hover::after { transform: translateX(3px); }

/* ---------- Product tiles ---------- */

.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem .75rem; }
.grid > .muted { grid-column: 1 / -1; }
.grid.grid-tight { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.card {
  position: relative; display: flex; flex-direction: column; min-width: 0;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color .2s var(--ease);
}
.card:hover { border-color: var(--line-mid); }
.card-media { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var(--tile); }
.card-media > img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; transition: transform .45s var(--ease); }
.card-media > .art { height: 100%; aspect-ratio: auto; }
.card:hover .card-media > img { transform: scale(1.04); }
.card-body { display: flex; flex-direction: column; flex: 1; gap: .2rem; padding: .75rem .8rem .9rem; }
.card-body .kicker { margin: 0; font-size: .8125rem; }
.card h3 { margin: 0; font-size: .9375rem; font-weight: 500; letter-spacing: 0; line-height: 1.35; }
.card h3 a { text-decoration: none; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.card h3 a:hover { text-decoration: underline; text-underline-offset: .2em; }
.card-body .muted { display: none; margin: 0; font-size: .875rem; line-height: 1.45; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card .price-row { margin: auto 0 0; padding-top: .35rem; }
.price, .price-lg, .price-row { font-variant-numeric: tabular-nums lining-nums; white-space: nowrap; }
.price-row { font-size: 1rem; font-weight: 600; }
.flag {
  position: absolute; inset-inline: .5rem; bottom: .5rem; z-index: 1;
  padding: .35rem .55rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  font-size: .75rem; font-weight: 500; line-height: 1.35; color: var(--ink-2);
  overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}

/* Products without a photo get a plain tile, never a fake material. */
.art {
  position: relative; width: 100%; aspect-ratio: 4 / 5;
  background: var(--tile) var(--icon-photo) no-repeat center / 3rem;
}

/* ---------- Catalogue ---------- */

.section.catalog { padding-top: clamp(1rem, 2vw, 1.5rem); }
.catalog .crumbs { margin: 0 0 1rem; }
.catalog-head { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.25rem; align-items: end; }
.catalog-head .lead { margin: .25rem 0 0; }
.count { margin: .4rem 0 0; color: var(--muted); font-size: .9375rem; font-variant-numeric: tabular-nums; }
.sort {
  display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .75rem; margin: 0;
  padding: .75rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
}
.sort label { font-size: .8125rem; font-weight: 500; color: var(--muted); }
.sort select { width: auto; min-width: 0; flex: 1 1 9rem; min-height: 2.5rem; padding-block: .4rem; }
.sort input { width: 5.5rem; flex: 0 1 5.5rem; min-height: 2.5rem; padding-block: .4rem; }
.sort .btn { min-height: 2.5rem; padding-inline: 1.1rem; font-size: .9375rem; }
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.25rem 0 1.75rem; }
.filters a {
  display: inline-flex; align-items: center; min-height: 2.5rem; padding: 0 1rem;
  background: var(--surface); border: 1px solid var(--line-mid); border-radius: var(--radius);
  font-size: .9375rem; font-weight: 500; color: var(--ink-2); text-decoration: none;
  transition: border-color .15s, background-color .15s, color .15s;
}
.filters a:hover { border-color: var(--ink); color: var(--ink); }
.filters a[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: var(--surface); }

.crumbs {
  display: flex; align-items: center; gap: .55rem; min-width: 0; overflow: hidden;
  margin-top: 1.25rem; font-size: .875rem; line-height: 1.4; color: var(--muted);
}
.crumbs a, .crumbs .here { min-width: 0; color: inherit; text-decoration: none; white-space: nowrap; }
.crumbs a:last-child, .crumbs .here { overflow: hidden; text-overflow: ellipsis; }
.crumbs .here { color: var(--ink); }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.crumbs [aria-hidden] { flex: none; width: .3rem; height: .3rem; border-block-start: 1px solid var(--line-strong); border-inline-end: 1px solid var(--line-strong); transform: rotate(45deg); }
html[dir="rtl"] .crumbs [aria-hidden] { transform: rotate(-45deg); }
.pager { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 2rem; }
.pager a {
  min-width: 2.75rem; min-height: 2.75rem; display: inline-flex; align-items: center; justify-content: center;
  background: var(--surface); border: 1px solid var(--line-mid); border-radius: var(--radius);
  font-weight: 500; text-decoration: none;
}
.pager a:hover { border-color: var(--ink); }
.pager a[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: var(--surface); }

/* ---------- Product ---------- */

.product {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.75rem;
  align-items: start;
  padding-top: 1rem;
}
.gallery { min-width: 0; }
.stage {
  position: relative; aspect-ratio: 1 / 1; max-height: min(82vh, 48rem);
  background: var(--tile); border-radius: var(--radius-lg); overflow: hidden;
}
.gal-frame { position: absolute; inset: 0; display: block; width: 100%; height: 100%; padding: 0; border: 0; background: transparent; cursor: zoom-in; }
.gal-frame img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; transition: opacity .2s var(--ease); }
.gal-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  display: grid; place-items: center; width: 2.75rem; height: 2.75rem; padding: 0;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  color: var(--ink); cursor: pointer;
  transition: border-color .15s;
}
.gal-prev { inset-inline-start: .75rem; }
.gal-next { inset-inline-end: .75rem; }
.gal-nav:hover { border-color: var(--ink); }
.stage .gal-count {
  position: absolute; z-index: 2; inset-inline-end: .75rem; bottom: .75rem; margin: 0;
  padding: .2rem .55rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  font-size: .8125rem; font-weight: 500; font-variant-numeric: tabular-nums; color: var(--ink-2);
}
.gal-thumbs { display: flex; gap: .5rem; margin-top: .65rem; padding-bottom: .15rem; overflow-x: auto; scroll-snap-type: inline mandatory; }
.gal-thumb {
  flex: 0 0 4.5rem; width: 4.5rem; height: 4.5rem; padding: 0;
  background: var(--tile); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; cursor: pointer; scroll-snap-align: start;
  transition: border-color .15s;
}
.gal-thumb img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.gal-thumb:hover { border-color: var(--line-strong); }
.gal-thumb[aria-current="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.lightbox { margin: 0; padding: 0; border: 0; width: 100vw; height: 100dvh; max-width: none; max-height: none; background: var(--dark); color: var(--on-dark); }
.lightbox[open] { position: fixed; inset: 0; display: grid; place-items: center; }
.lightbox::backdrop { background: rgba(18, 18, 17, .8); }
.lightbox img { width: auto; max-width: min(92vw, 1180px); max-height: calc(100dvh - 7rem); object-fit: contain; }
.lightbox .gal-nav { background: transparent; border-color: rgba(243, 242, 238, .35); color: var(--on-dark); }
.lightbox .gal-nav:hover { border-color: var(--on-dark); }
.lightbox .gal-count { position: absolute; bottom: 1.25rem; margin: 0; font-size: .875rem; font-variant-numeric: tabular-nums; color: rgba(243, 242, 238, .75); }
.lightbox :focus-visible { outline-color: var(--on-dark); }
.lb-close {
  position: absolute; top: 1rem; inset-inline-end: 1rem; z-index: 2;
  width: 2.75rem; height: 2.75rem; border-radius: var(--radius); border: 1px solid rgba(243, 242, 238, .35);
  background: transparent; color: var(--on-dark); cursor: pointer; font-size: 1.4rem; line-height: 1;
}
.lb-close:hover { border-color: var(--on-dark); }
html[dir="rtl"] .gal-nav svg { transform: scaleX(-1); }
.solo { display: block; width: 100%; aspect-ratio: 1 / 1; overflow: hidden; background: var(--tile); border-radius: var(--radius-lg); }
.solo > img, .solo > .art { width: 100%; height: 100%; aspect-ratio: auto; object-fit: contain; mix-blend-mode: multiply; }
.photo-keep-grid { display: flex; flex-wrap: wrap; gap: .6rem; }
.photo-keep { display: grid; gap: .35rem; width: 5.5rem; font-size: .75rem; color: var(--muted); }
.photo-keep img { width: 5.5rem; height: 5.5rem; object-fit: contain; background: var(--tile); border: 1px solid var(--line); border-radius: var(--radius); }

.buy-col { min-width: 0; }
.product .kicker { margin-bottom: 0; }
.product .kicker a { display: inline-flex; align-items: center; min-height: 2.75rem; }
.product h1 { font-size: clamp(1.75rem, 1.4rem + 1.4vw, 2.5rem); line-height: 1.15; letter-spacing: -.025em; margin: .15rem 0 .5rem; }
.product .lead { font-size: 1.0625rem; margin-bottom: 1.25rem; }
.price-block {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem 1rem;
  padding-top: 1.1rem; border-top: 1px solid var(--line);
}
.price-lg { margin: 0; font-size: clamp(1.75rem, 1.5rem + 1vw, 2.25rem); font-weight: 700; letter-spacing: -.02em; line-height: 1.1; }
.price-note { margin: 0; font-size: .875rem; color: var(--muted); }
.buy { display: grid; gap: 1rem; margin: 1.25rem 0 0; }
.field { display: grid; gap: .4rem; align-content: start; }
.qty-field input { max-width: 7.5rem; }
.buy-col > .note { margin: 1.5rem 0 .5rem; }

.assure {
  list-style: none; margin: 1rem 0 0; padding: .2rem 1rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
}
.assure li {
  display: grid; grid-template-columns: 1.25rem minmax(0, 1fr); gap: .7rem; align-items: start;
  padding: .75rem 0; font-size: .9375rem; font-weight: 500; line-height: 1.4; color: var(--ink);
}
.assure li + li { border-top: 1px solid var(--line); }
.assure li::before { content: ""; width: 1.25rem; height: 1.25rem; margin-top: .05rem; background: var(--icon-check) no-repeat center / contain; }

.wish { margin: .5rem 0 0; }
.col-label { margin: 2.25rem 0 .5rem; font-size: 1.0625rem; font-weight: 600; letter-spacing: -.01em; color: var(--ink); }
.facts { list-style: none; padding: 0; margin: 0; }
.facts li { padding: .7rem 0; border-bottom: 1px solid var(--line); font-size: .9375rem; color: var(--ink-2); }
.facts li:last-child { border-bottom: 0; }
.buy-col .prose { margin-top: .5rem; }
.buy-col .prose p { font-size: 1rem; }
.fold { margin-top: 2rem; border-block: 1px solid var(--line); }
.fold summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  min-height: 3.25rem; font-size: 1.0625rem; font-weight: 600; color: var(--ink);
}
.fold summary::-webkit-details-marker { display: none; }
.fold summary::after { content: "+"; font-size: 1.35rem; font-weight: 400; line-height: 1; color: var(--ink-2); }
.fold[open] summary::after { content: "–"; }
.fold-body { padding: 0 0 1rem; }
.spec { margin: 0; }
.spec div { display: grid; grid-template-columns: minmax(7rem, 38%) minmax(0, 1fr); gap: .75rem 1rem; padding: .7rem 0; border-bottom: 1px solid var(--line); }
.spec dt { margin: 0; color: var(--muted); font-size: .9375rem; }
.spec dd { margin: 0; color: var(--ink); }

.product-reviews {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; align-items: start;
  margin-top: clamp(3rem, 6vw, 5rem); border-top: 1px solid var(--line);
}
.reviews { display: grid; margin-top: 1.25rem; }
blockquote { margin: 0; }
.reviews blockquote { padding: 1.25rem 0 1.4rem; border-top: 1px solid var(--line); }
.reviews blockquote b { display: block; color: var(--ink); font-size: .875rem; letter-spacing: .12em; font-weight: 400; }
.reviews blockquote p { margin: .55rem 0 .45rem; font-size: 1rem; line-height: 1.6; color: var(--ink-2); }
cite { font-style: normal; font-size: .875rem; font-weight: 600; color: var(--ink); }
.review-form { margin: 0; padding: clamp(1.25rem, 3vw, 2rem); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.review-form h3 { font-size: 1.25rem; }

/* ---------- Forms in flow ---------- */

.stack { display: grid; gap: .45rem; margin: 1.5rem 0; }
.stack > label:not(.choice), .stack > .two { margin-top: .6rem; }
.stack > h2, .stack > h3 { margin: 1.75rem 0 .25rem; }
.stack > h2:first-of-type, .stack > h3:first-of-type { margin-top: 0; }
.stack > .btn { justify-self: start; margin-top: 1rem; }
.stack > .muted { margin: 0; font-size: .875rem; }
.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.two > div { display: grid; gap: .4rem; align-content: start; min-width: 0; }

.choice {
  display: flex; align-items: center; gap: .85rem;
  min-height: 3.5rem; padding: .8rem 1rem;
  background: var(--surface); border: 1px solid var(--line-mid); border-radius: var(--radius);
  font-weight: 400; color: var(--ink); cursor: pointer;
  transition: border-color .15s, box-shadow .15s, background-color .15s;
}
.choice:hover { border-color: var(--ink-2); }
.choice:has(input:checked) { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); background: #f7faf8; }
.choice:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; }
.choice input:focus-visible { outline: none; }
.choice-text { display: grid; gap: .1rem; flex: 1; min-width: 0; }
.choice-text b { font-weight: 600; font-size: .9375rem; }
.choice-text small { color: var(--muted); font-size: .8125rem; }
.choice-price { font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }

/* ---------- Pages, cart, checkout ---------- */

.page-head { margin-bottom: clamp(1.25rem, 3vw, 2rem); }
.page-head h1 { margin: 0; }
.progress {
  display: flex; flex-wrap: wrap; align-items: center; gap: .25rem .6rem;
  list-style: none; padding: 0; margin: 0 0 1rem; counter-reset: step;
  font-size: .875rem; font-weight: 500; color: var(--muted);
}
.progress li { counter-increment: step; display: flex; align-items: center; gap: .5rem; min-height: 2.75rem; }
.progress li::before {
  content: counter(step); display: inline-grid; place-items: center; flex: none;
  width: 1.5rem; height: 1.5rem; border: 1px solid var(--line-strong); border-radius: 50%;
  font-size: .75rem; font-weight: 700; color: var(--ink-2); font-variant-numeric: tabular-nums;
}
.progress li:not(:last-child)::after { content: ""; width: 1.25rem; height: 1px; margin-inline-start: .1rem; background: var(--line-strong); }
.progress li[aria-current] { color: var(--ink); font-weight: 600; }
.progress li[aria-current]::before { background: var(--ink); border-color: var(--ink); color: var(--surface); }
.progress a { display: inline-flex; align-items: center; min-height: 2.75rem; color: inherit; }

.split { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.75rem; align-items: start; }
.split > .stack { margin-top: 0; }

.sheet { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.sheet th, .sheet td { text-align: start; vertical-align: middle; padding-block: 1rem; padding-inline: 0 1rem; border-bottom: 1px solid var(--line); }
.sheet th:last-child, .sheet td:last-child { padding-inline-end: 0; }
.sheet thead th { padding-block: .7rem; border-bottom: 1px solid var(--line-strong); font-size: .8125rem; font-weight: 600; color: var(--muted); }
.sheet td a { display: inline-flex; align-items: center; min-height: 2.75rem; }
.sheet form { display: flex; align-items: center; gap: .4rem; margin: 0; }
.sheet input[type="number"] { width: 4.75rem; min-height: 2.5rem; padding: .45rem .6rem; }
.sheet select { width: auto; min-height: 2.5rem; padding-block: .4rem; }
.qty-line { display: flex; align-items: center; gap: .35rem; }
.sheet .cart-remove button { width: 2.5rem; min-width: 2.5rem; padding: 0; border-color: transparent; background: none; color: var(--muted); }
.sheet .cart-remove button:hover, .sheet .cart-remove button:focus-visible { background: var(--tile); border-color: transparent; color: var(--ink); }
.cart-sheet td:first-child a { min-height: 0; font-size: 1rem; font-weight: 600; line-height: 1.35; text-decoration: none; }
.cart-sheet td:first-child a:hover { text-decoration: underline; }
.cart-sheet td:first-child small { margin-top: .2rem; }
.cart-sheet .line-total { font-weight: 600; }
.cart-sheet th:last-child, .cart-sheet td:last-child { text-align: end; }
.cart-thumb {
  float: inline-start; width: 4.5rem; aspect-ratio: 1; margin-inline-end: 1rem;
  object-fit: contain; background: var(--tile); border-radius: var(--radius); mix-blend-mode: multiply;
}
.page-head + .error { margin: -.25rem 0 1.75rem; }
.account .sheet td:first-child a, .order .sheet td:first-child { font-weight: 600; }

.summary {
  padding: clamp(1.25rem, 3vw, 1.75rem);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
}
.summary-title { margin: 0 0 1rem; font-size: 1.25rem; }
.summary .line { display: flex; justify-content: space-between; gap: 1rem; margin: 0; padding: .45rem 0; font-size: .9375rem; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.summary .line b { font-weight: 600; color: var(--ink); }
.summary > .muted { margin: .85rem 0 0; font-size: .8125rem; line-height: 1.5; }
.summary > .btn { width: 100%; min-height: 3.5rem; margin-top: 1.25rem; font-size: 1.0625rem; }
.summary > .more { margin-top: .5rem; }
.coupon { margin: 0 0 1rem; padding-bottom: 1.25rem; border-bottom: 1px solid var(--line); }
.inline { display: flex; gap: .5rem; }
.inline input { flex: 1; min-width: 0; }
.inline .btn { flex: none; padding-inline: 1.1rem; }
.summary-items { list-style: none; padding: 0; margin: 0 0 .75rem; border-bottom: 1px solid var(--line); }
.summary-items li { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: .7rem 0; border-top: 1px solid var(--line); }
.summary-items span { font-size: .9375rem; font-weight: 500; line-height: 1.35; min-width: 0; }
.summary-items small { display: block; margin-top: .15rem; font-size: .8125rem; font-weight: 400; color: var(--muted); }
.summary-items b { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.total {
  display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: .5rem 1rem;
  margin: .75rem 0 0; padding-top: 1rem; border-top: 1px solid var(--ink);
  font-size: 1.375rem; font-weight: 700; line-height: 1.2; letter-spacing: -.01em; font-variant-numeric: tabular-nums lining-nums;
}
.total b { font-weight: 700; }
.total small { font-size: .8125rem; font-weight: 400; letter-spacing: 0; color: var(--muted); }
.checkout .split > .stack {
  margin: 0; padding: clamp(1.25rem, 3vw, 2rem);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
}
.checkout .stack > h2 { font-size: 1.25rem; }
.checkout .stack > h2:not(:first-of-type) { margin-top: 2rem; padding-top: 1.75rem; border-top: 1px solid var(--line); }
.checkout .choice + .choice { margin-top: .4rem; }
.checkout .terms { margin-top: 1.5rem; }

.quiet { text-align: center; }
.quiet .lead { margin-inline: auto; }
.quiet .btn { margin-top: 1.25rem; }

.auth { max-width: 30rem; }
.login-card { padding: clamp(1.25rem, 4vw, 2rem); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.login-card > label:first-of-type { margin-top: 0; }
.login-card > .btn { width: 100%; }

.plain { list-style: none; padding: 0; margin: 0 0 1rem; }
.plain li { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 3.5rem; padding: .5rem 0; border-bottom: 1px solid var(--line); }
.plain form { margin: 0; flex: none; }
.account .split h2 { font-size: 1.375rem; margin-top: 2.5rem; }
.account .split > div > h2:first-child { margin-top: 0; }
.account-edit { margin: 0 0 2.5rem; max-width: 36rem; }

.order .address { font-size: 1.0625rem; line-height: 1.55; margin-bottom: 2rem; }
.order-sums { margin: 1.25rem 0 0; color: var(--muted); font-size: .9375rem; font-variant-numeric: tabular-nums; }
.order h2 { font-size: 1.375rem; margin-top: 2.5rem; }

.prose { max-width: 68ch; }
.prose p { font-size: 1.0625rem; line-height: 1.7; color: var(--ink-2); }
.prose h2 { margin-top: 2rem; }
.narrow.prose h1 { margin-bottom: .6em; }
.narrow.prose > p:first-of-type { font-size: 1.1875rem; line-height: 1.55; color: var(--ink); }

.choice.terms { display: block; line-height: 1.5; }
.terms input { display: inline-block; vertical-align: -.2em; margin-inline-end: .65rem; }
.terms a { color: var(--accent); text-decoration: underline; }

/* ---------- Invoice: a plain white document ---------- */

.invoice {
  max-width: 54rem; margin-top: clamp(2rem, 5vw, 3.5rem);
  padding: clamp(1.5rem, 5vw, 3.5rem);
  background: #fff; color: #161615;
  border: 1px solid var(--line); border-radius: var(--radius);
}
.invoice a { color: inherit; }
.invoice header {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.5rem 3rem;
  padding-bottom: 1.5rem; margin-bottom: 1.75rem; border-bottom: 1px solid #161615;
  font-size: .9375rem; line-height: 1.6;
}
.invoice header > div:last-child { text-align: end; }
.invoice h1 { margin: 0 0 .15em; font-size: clamp(2rem, 1.6rem + 1.6vw, 3rem); }
.invoice .sheet { margin: 1.75rem 0 1rem; }
.invoice .sheet thead th { color: #55544e; border-bottom-color: #161615; }
.invoice .muted { color: #55544e; font-size: .875rem; margin-top: 1.5rem; }

/* ---------- Footer ---------- */

.foot {
  margin-top: clamp(4rem, 8vw, 6.5rem);
  padding-block: clamp(2.75rem, 6vw, 4.5rem) 5rem;
  background: var(--sunken); border-top: 1px solid var(--line);
  color: var(--ink);
}
.foot-mast {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 1rem 3rem;
  padding-bottom: clamp(1.75rem, 4vw, 2.5rem); margin-bottom: clamp(1.75rem, 4vw, 2.5rem);
  border-bottom: 1px solid var(--line-mid);
}
.foot-logo { margin: 0; }
.foot-logo .logo-word, .foot-logo .logo-sub { font-size: 1.5rem; }
.foot-intro { margin: 0; max-width: 34rem; font-size: 1rem; line-height: 1.5; color: var(--ink-2); }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; }
.foot .kicker { margin-bottom: .4rem; font-size: .9375rem; font-weight: 600; color: var(--ink); }
.foot-links { list-style: none; padding: 0; margin: 0; font-size: .9375rem; }
.foot-links li { min-height: 2.5rem; display: flex; align-items: center; color: var(--ink-2); }
.foot a { color: var(--ink-2); text-decoration: none; }
.foot a:hover { color: var(--ink); text-decoration: underline; }
.foot-links a { display: inline-flex; align-items: center; min-height: 2.5rem; overflow-wrap: anywhere; }
.news { margin: 0; }
.news label { display: block; margin-bottom: .75rem; font-size: 1rem; font-weight: 400; color: var(--ink-2); }
.news div { display: flex; flex-direction: column; gap: .5rem; }
.news .btn { flex: none; }
.fine {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem;
  margin-top: clamp(2.25rem, 5vw, 3.5rem); padding-top: 1.25rem;
  border-top: 1px solid var(--line-mid);
  font-size: .8125rem; color: var(--muted);
}
.fine p { margin: 0; max-width: 70ch; }
.fine a { color: inherit; text-decoration: underline; }

/* ---------- Chat ---------- */

.talk {
  position: fixed; z-index: 28; inset-inline-end: var(--gutter); inset-block-end: 1rem;
  display: flex; flex-direction: column; align-items: flex-end; gap: .6rem;
  width: min(22.5rem, calc(100vw - 2 * var(--gutter)));
  pointer-events: none;
}
.talk > * { pointer-events: auto; }
.talk.is-live { width: min(26rem, calc(100vw - 2 * var(--gutter))); }
.talk-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .5rem; }
.talk-open {
  display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0 1.1rem;
  border: 1px solid var(--ink); border-radius: var(--radius); background: var(--ink); color: var(--surface);
  font: inherit; font-size: .9375rem; font-weight: 600; cursor: pointer;
  box-shadow: 0 6px 18px -8px rgba(22, 22, 21, .45);
  transition: background-color .15s;
}
.talk-open:hover { background: #2c2b29; }
.talk-live-open { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.talk-live-open:hover { background: var(--accent-hover); }
.talk-live iframe { display: block; width: 100%; height: min(32rem, calc(100dvh - 12rem)); border: 0; background: var(--surface); }
.talk-open.talk-unread::after {
  content: ""; display: inline-block; width: .5rem; height: .5rem; margin-inline-start: .55rem;
  border-radius: 50%; background: var(--surface); box-shadow: 0 0 0 2px var(--ink), 0 0 0 3px var(--surface);
}
.talk-panel {
  display: none; width: 100%; flex-direction: column; max-height: min(32rem, calc(100dvh - 7rem));
  background: var(--surface); border: 1px solid var(--line-mid); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-pop); overflow: hidden;
}
.talk-panel.is-open { display: flex; }
.talk-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-block: .6rem; padding-inline: 1rem .6rem; border-bottom: 1px solid var(--line); }
.talk-head p { margin: 0; font-size: 1.0625rem; font-weight: 600; }
.talk-head button { border: 0; border-radius: var(--radius); background: none; color: inherit; font-size: 1.4rem; line-height: 1; cursor: pointer; min-width: 2.5rem; min-height: 2.5rem; }
.talk-head button:hover { background: var(--tile); }
.talk-lead { margin: 0; padding: .75rem 1rem 0; color: var(--muted); font-size: .875rem; }
.talk-log { overflow: auto; display: flex; flex-direction: column; gap: .5rem; min-height: 10rem; padding: 1rem; }
.talk-empty { margin: 0; color: var(--muted); font-size: .9375rem; }
.talk-line { margin: 0; max-width: 88%; padding: .55rem .75rem; border-radius: var(--radius-lg); font-size: .9375rem; line-height: 1.45; white-space: pre-wrap; }
.talk-line.customer { align-self: flex-end; background: var(--accent); color: var(--on-accent); }
.talk-line.shop { align-self: flex-start; background: var(--tile); color: var(--ink); }
.talk-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .5rem; align-items: end; padding: .75rem; border-top: 1px solid var(--line); }
.talk-form textarea { min-height: 2.75rem; max-height: 7rem; resize: vertical; }
.admin-log { min-height: 0; max-height: 22rem; margin: 1rem 0; border: 1px solid var(--line); border-radius: var(--radius-lg); }
.admin-log .talk-line b { display: block; font-size: .75rem; font-weight: 600; }

/* ---------- Back office ---------- */

.admin-body { font-size: .9375rem; }
.admin-top { background: var(--surface); border-bottom: 1px solid var(--line); }
.admin-top-row {
  width: min(1400px, 100% - 2rem); margin-inline: auto;
  display: flex; flex-wrap: wrap; align-items: center; gap: .25rem 1rem; min-height: 4rem;
}
.admin-top .logo { padding-block: .55rem; }
.admin-top .logo-word, .admin-top .logo-sub { font-size: 1.25rem; }
.admin-top .logo-sub { color: var(--muted); }
.admin-who { flex-basis: 100%; order: 5; margin: 0 0 .5rem; font-size: .875rem; color: var(--muted); }
.admin-shop { display: inline-flex; align-items: center; min-height: 2.75rem; margin-inline-start: auto; font-size: .9375rem; font-weight: 600; color: var(--accent); }
.admin-top form { margin: 0; }
.admin-shell {
  width: min(1400px, 100% - 2rem); margin: 1rem auto 4rem;
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.25rem; align-items: start;
}
.side {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .15rem; padding: .35rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
}
.side a {
  display: flex; align-items: center; min-height: 2.5rem; padding: 0 .75rem; border-radius: var(--radius);
  font-size: .9375rem; color: var(--ink-2); text-decoration: none;
  transition: background-color .15s, color .15s;
}
.side a:hover { background: var(--tile); color: var(--ink); }
.side a[aria-current="page"] { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.admin-main {
  min-width: 0;
  padding: clamp(1.25rem, 3vw, 2.25rem);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
}
.admin-main > .flash { margin: 0 0 1.5rem; }
.admin-main h1 { font-size: clamp(1.6rem, 1.3rem + 1vw, 2.2rem); }
.admin-main h2 { font-size: 1.25rem; margin-top: 2.5rem; }
.admin-main .section-head { margin-bottom: 1.25rem; }
.admin-main .narrow { width: auto; max-width: 46rem; margin: 0; }
.admin-main .prose { margin-top: 2.5rem; }
.admin-main .prose p { font-size: .9375rem; }
.admin-main .login-card { max-width: 30rem; }
.admin-main .eyebrow { margin-bottom: .6rem; }
.page-links a { display: inline-flex; align-items: center; min-height: 2.75rem; }

.stats {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 1.5rem 0 2.5rem;
  border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); overflow: hidden;
}
.stats article { padding: 1rem 1.25rem 1.15rem; border-inline-start: 1px solid var(--line); }
.stats article:nth-child(odd) { border-inline-start: 0; }
.stats article:nth-child(n + 3) { border-top: 1px solid var(--line); }
.stats b { display: block; font-size: clamp(1.5rem, 1.25rem + .8vw, 2rem); font-weight: 700; letter-spacing: -.02em; line-height: 1.15; font-variant-numeric: tabular-nums lining-nums; }
.stats span { display: block; margin-top: .3rem; font-size: .8125rem; font-weight: 500; color: var(--muted); }

.table-scroll { overflow-x: auto; margin: 1rem 0 2rem; -webkit-overflow-scrolling: touch; }
.table-scroll .sheet { min-width: 34rem; }
.admin-body .sheet { font-size: .9rem; }
.admin-body .sheet th, .admin-body .sheet td { padding-block: .55rem; padding-inline: 0 .9rem; }
.admin-body .sheet td a { font-weight: 600; color: var(--accent); text-decoration-color: var(--line-mid); }
.admin-body .sheet td small { font-size: .8125rem; }
.admin-body .sheet tbody tr:hover { background: var(--tile); }

/* ---------- Focus ---------- */

:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

/* ---------- Wider screens ---------- */

@media (min-width: 560px) {
  .tool-word { position: static; width: auto; height: auto; margin: 0; overflow: visible; clip: auto; clip-path: none; white-space: nowrap; }
  .icon-link, .cart-link { padding-inline: .6rem; }
  .news div { flex-direction: row; }
  .news input { flex: 1; min-width: 0; }
}

@media (min-width: 640px) {
  .top-note span:nth-child(n + 2) { display: inline; }
  .grid { gap: 1.5rem 1rem; }
  .card-body { padding: .9rem 1rem 1.1rem; gap: .25rem; }
  .card h3 { font-size: 1rem; }
  .card-body .muted { display: block; }
  .cats { grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1rem; }
  .band { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; }
  .hero-panel ul { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem 2rem; }
  .side { grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr)); }
  .admin-who { flex-basis: auto; order: 0; margin: 0; margin-inline-start: auto; }
  .admin-shop { margin-inline-start: 0; }
  .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .stats article:nth-child(odd) { border-inline-start: 1px solid var(--line); }
  .stats article:first-child { border-inline-start: 0; }
  .stats article:nth-child(n + 3) { border-top: 0; }
}

@media (min-width: 820px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem 1.25rem; }
  .band { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .split { grid-template-columns: minmax(0, 1fr) minmax(19rem, 24rem); gap: clamp(1.75rem, 4vw, 3rem); }
  .summary { position: sticky; top: calc(var(--header) + 1.25rem); }
  .product-reviews { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2rem, 5vw, 4.5rem); }
}

@media (min-width: 900px) {
  .hero { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: center; gap: clamp(2.5rem, 5vw, 5rem); }
  .hero-plain { grid-template-columns: minmax(0, 1fr); }
  .product { grid-template-columns: minmax(0, 7fr) minmax(20rem, 5fr); gap: clamp(2rem, 4vw, 4rem); padding-top: 1.25rem; }
  .gal-thumb { flex-basis: 5rem; width: 5rem; height: 5rem; }
  .foot-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 1.4fr); gap: 2rem clamp(1.5rem, 3vw, 3rem); }
}

@media (min-width: 1024px) {
  .admin-shell { grid-template-columns: 13rem minmax(0, 1fr); gap: 1.5rem; margin-top: 1.5rem; }
  .side { position: sticky; top: 1.5rem; grid-template-columns: minmax(0, 1fr); }
}

@media (min-width: 1200px) {
  :root { --header: 4.5rem; }
  .top-row {
    grid-template-columns: auto auto minmax(0, 1fr) auto;
    grid-template-areas: "logo menu search tools";
    column-gap: clamp(1.25rem, 2.5vw, 2.25rem);
    min-height: var(--header);
    padding-block: 0;
  }
  .nav-toggle { display: none; }
  .top .logo-word, .top .logo-sub { font-size: 1.4rem; }
  .menu { display: flex; gap: .25rem; }
  .menu.open { display: flex; margin: 0; border: 0; }
  .menu a {
    min-height: 2.75rem; padding: 0 .5rem; border: 0; border-radius: var(--radius);
    font-size: .9375rem; color: var(--ink-2);
    transition: background-color .15s, color .15s;
  }
  .menu a:hover { background: var(--tile); color: var(--ink); }
  .menu a[aria-current="page"] { color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .55em; }
  .search { justify-self: end; width: 100%; max-width: 24rem; margin: 0; }
  .top-tools { gap: .15rem; }
  .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2.25rem 1.25rem; }
}

@media (min-width: 1200px) and (max-width: 1439px) {
  .icon-link .tool-word { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); }
}

@media (max-width: 559px) {
  .cart-sheet thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); }
  .cart-sheet, .cart-sheet tbody { display: block; }
  .cart-sheet tr {
    display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .5rem 1rem;
    padding: 1rem 0; border-bottom: 1px solid var(--line);
  }
  .cart-sheet tr:first-child { border-top: 1px solid var(--line-strong); }
  .cart-sheet td { display: block; padding: 0; border: 0; }
  .cart-sheet td:first-child { grid-column: 1 / -1; }
  .cart-sheet td[data-label]:not(:first-child)::before {
    content: attr(data-label); display: block; margin-bottom: .2rem;
    font-size: .75rem; font-weight: 500; color: var(--muted);
  }
  .cart-sheet td:nth-child(3) { grid-column: 1; grid-row: 3; }
  .cart-sheet .line-total { grid-column: 2; grid-row: 2; text-align: end; }
  .invoice { padding: 1.5rem 1.1rem; }
  .invoice header > div:last-child { text-align: start; }
  .invoice .sheet { font-size: .875rem; }
  .invoice .sheet th, .invoice .sheet td { padding-inline-end: .6rem; }
  .top .logo-word, .top .logo-sub { font-size: 1.2rem; }
}

@media (max-width: 379px) {
  .top .logo-sub { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
  .two { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .card:hover .card-media > img, .hero-shot:hover .hero-shot-media img { transform: none; }
  .more:hover::after, .cat:hover::after { transform: none; }
  .btn:active { transform: none; }
}

/* ---------- Languages and direction ---------- */

html[lang="ru"] { --sans: var(--cyrillic); }
html[lang="ar"] { --sans: var(--arabic); }
html[lang="ar"] body { line-height: 1.7; }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3,
html[lang="ar"] .logo-word, html[lang="ar"] .price-lg, html[lang="ar"] .total, html[lang="ar"] .stats b { letter-spacing: 0; }
html[lang="ar"] :where(.menu a, .icon-link, .cart-link, .lang summary, .lang-menu small, .fold summary, .spec dt, .kicker, .top-note p, .logo-sub, .btn, .eyebrow, .crumbs, .cart-remove button, .talk-open, .reviews blockquote b, .col-label) {
  letter-spacing: 0;
  text-transform: none;
}
html[dir="rtl"] select { background-position: left .9rem center; }
html[dir="rtl"] .search input { background-position: right .85rem center; }
html[dir="rtl"] .more::after { content: "←"; content: "←" / ""; }
html[dir="rtl"] .cat::after { content: "←"; content: "←" / ""; }
html[dir="rtl"] .more:hover::after, html[dir="rtl"] .cat:hover::after { transform: translateX(-2px); }

@media print {
  body { background: #fff; }
  .skip, .top-note, .top, .foot, .flash, .talk { display: none; }
  .invoice { border: 0; margin: 0; max-width: none; width: 100%; padding: 0; }
}
