/* JTTS catalog — white, black and the logo's red */
/* Barlow / Barlow Condensed (SIL Open Font License), served from assets/fonts */
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 400; font-display: swap; src: url("../assets/fonts/barlow-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 500; font-display: swap; src: url("../assets/fonts/barlow-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 600; font-display: swap; src: url("../assets/fonts/barlow-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 700; font-display: swap; src: url("../assets/fonts/barlow-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 600; font-display: swap; src: url("../assets/fonts/barlow-condensed-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: italic; font-weight: 600; font-display: swap; src: url("../assets/fonts/barlow-condensed-latin-600-italic.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 700; font-display: swap; src: url("../assets/fonts/barlow-condensed-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: italic; font-weight: 700; font-display: swap; src: url("../assets/fonts/barlow-condensed-latin-700-italic.woff2") format("woff2"); }

:root {
  --ink: #111;
  --ink-2: #333;
  --muted: #6b6b6b;
  --line: #e6e6e6;
  --soft: #f5f5f5;
  --bg: #fff;
  --red: #e1251b;
  --red-dark: #b81a12;
  --red-soft: #fdeceb;
  --messenger: #0a7cff;
  --radius: 12px;
  --topbar-h: 56px;
  --bar-h: 60px;
  --font: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-head: "Barlow Condensed", "Barlow", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--topbar-h) + 64px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.5 var(--font);
  padding-bottom: calc(var(--bar-h) + 24px + env(safe-area-inset-bottom));
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
[hidden] { display: none !important; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
svg .fill { fill: currentColor; stroke: none; }

/* ---------- Top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 30;
  height: var(--topbar-h);
  display: flex; align-items: center; gap: 12px;
  padding: 0 16px;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(1.4) blur(8px);
}
.topbar-logo img { height: 40px; width: auto; }
.topbar-title {
  font: italic 700 18px/1 var(--font-head);
  letter-spacing: .02em; text-transform: uppercase;
  border-left: 2px solid var(--ink); padding-left: 12px;
}
.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--line); background: #fff;
  display: grid; place-items: center; cursor: pointer;
}
.mode-toggle { display: flex; border: 1px solid var(--ink); border-radius: 999px; overflow: hidden; }
.mode-toggle button {
  display: flex; align-items: center; gap: 6px;
  border: 0; background: #fff; padding: 7px 12px; cursor: pointer;
  font-size: 14px; font-weight: 600;
}
.mode-toggle button svg { width: 16px; height: 16px; }
.mode-toggle button[aria-pressed="true"] { background: var(--ink); color: #fff; }
@media (max-width: 420px) {
  .topbar { gap: 8px; padding: 0 12px; }
  .topbar-title { display: none; }
  .mode-toggle button span { display: none; }
  .mode-toggle button { padding: 8px 11px; }
}

.notice {
  margin: 12px 16px 0; padding: 10px 14px;
  background: #fff8db; border: 1px solid #f0d77a; border-radius: 8px;
  font-size: 14px;
}
.notice code { font-size: 13px; background: rgba(0,0,0,.06); padding: 1px 4px; border-radius: 4px; }

/* ---------- Layout ---------- */
.grid-view, .site-footer { max-width: 1180px; margin: 0 auto; padding: 0 16px; }

.section-title {
  margin: 0;
  font: italic 700 30px/1.1 var(--font-head);
  letter-spacing: .01em; text-transform: uppercase;
}

/* (cover, contents and banners: see the Design section at the end) */

/* ---------- Filters ---------- */
.filters {
  position: sticky; top: var(--topbar-h); z-index: 20;
  background: rgba(255, 255, 255, .97);
  padding: 12px 0 10px;
  border-bottom: 1px solid var(--line);
  margin-top: 20px;
}
.search {
  display: flex; align-items: center; gap: 8px;
  height: 44px; padding: 0 14px;
  border: 1.5px solid var(--ink); border-radius: 999px; background: #fff;
}
.search svg { color: var(--muted); flex: none; }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 16px; }
.search:focus-within { box-shadow: 0 0 0 3px var(--red-soft); border-color: var(--red); }
.filter-row { display: flex; gap: 8px; align-items: center; margin-top: 10px; }
.chips { display: flex; gap: 6px; overflow-x: auto; flex: 1; scrollbar-width: none; -webkit-overflow-scrolling: touch; padding-right: 16px; -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 24px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 24px), transparent); }
.chips::-webkit-scrollbar { display: none; }
.chip-btn {
  flex: none; padding: 6px 14px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line); background: var(--soft);
  font-size: 14px; font-weight: 600; white-space: nowrap;
}
.chip-btn[aria-pressed="true"] { background: var(--red); border-color: var(--red); color: #fff; }
#brand {
  flex: none; max-width: 42%;
  height: 34px; padding: 0 30px 0 12px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--soft);
  font-size: 14px; font-weight: 600;
  appearance: none; -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 16px) 15px, calc(100% - 11px) 15px;
  background-size: 5px 5px; background-repeat: no-repeat;
}
@media (min-width: 900px) {
  .filters { display: flex; gap: 12px; align-items: center; }
  .search { flex: 0 0 340px; }
  .filter-row { margin-top: 0; flex: 1; }
}

/* ---------- Product cards ---------- */
.catalog { padding-bottom: 8px; }
.loading { color: var(--muted); padding: 40px 0; text-align: center; }
.cat-section { padding-top: 28px; }

.cards { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; } }

.card {
  display: flex; flex-direction: column;
  border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; background: #fff;
}
.card-img { position: relative; aspect-ratio: 1 / 1; background: #fff; border-bottom: 1px solid var(--line); overflow: hidden; }
.card-img .product-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 6%; }
.ph { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; background: var(--soft); }
.ph img { width: 46%; max-height: 62%; object-fit: contain; opacity: .28; filter: grayscale(1); }
.ph span { font-size: 12px; color: var(--muted); }
.card-body { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px 12px; flex: 1; }
.card-brand { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--red); }
.card-name { margin: 0; font: 700 19px/1.15 var(--font-head); }
.card-specs { margin: 2px 0 0; display: grid; gap: 4px; font-size: 13px; }
.card-specs div { display: flex; gap: 6px; align-items: baseline; }
.card-specs dt { color: var(--muted); flex: none; }
.card-specs dt::after { content: ":"; }
.card-specs dd { margin: 0; font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.chips-inline { display: inline-flex; flex-wrap: wrap; gap: 2px 8px; }
.chip { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.chip i { width: 10px; height: 10px; border-radius: 50%; border: 1px solid rgba(0,0,0,.25); display: inline-block; }
.card-features { margin: 0; color: var(--ink-2); font-size: 13px; line-height: 1.4; }
.card-foot { margin-top: auto; padding-top: 8px; display: flex; flex-direction: column; gap: 8px; }
.card-price { font: 700 24px/1 var(--font-head); }
.card-price.ask { font-size: 18px; color: var(--muted); }
.ask-btn {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 38px; padding: 6px 10px;
  border: 1.5px solid var(--messenger); border-radius: 999px;
  color: var(--messenger); background: #fff;
  font-size: 14px; font-weight: 700; text-decoration: none; text-align: center; line-height: 1.15;
}
.ask-btn:hover, .ask-btn:active { background: var(--messenger); color: #fff; }
@media (max-width: 639px) {
  .card-body { padding: 10px 10px 10px; }
  .card-specs { font-size: 12.5px; }
  .card-specs div:has(.chips-inline) dt { display: none; }
  .ask-btn { font-size: 13px; padding: 6px 4px; white-space: nowrap; letter-spacing: -.01em; }
}

.empty { text-align: center; padding: 48px 8px; color: var(--muted); }
.empty a { color: var(--messenger); font-weight: 700; }

/* ---------- How to Order ---------- */
.how-to-order { padding: 40px 0 8px; }
.how-to-order > .section-title { padding-bottom: 12px; border-bottom: 3px solid var(--ink); margin-bottom: 8px; }
.hto { max-width: 760px; }
.hto p { margin: 0 0 10px; }
.hto ul { margin: 0 0 10px; padding-left: 20px; }
.hto li { margin: 2px 0; }
.hto a { color: var(--messenger); font-weight: 600; word-break: break-all; }
.hto-money { font-weight: 700; white-space: nowrap; }
.hto-step { display: flex; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.hto-num {
  flex: none; width: 36px; height: 36px; border-radius: 50%;
  background: var(--red); color: #fff;
  display: grid; place-items: center;
  font: italic 700 20px/1 var(--font-head);
}
.hto-step-body { flex: 1; min-width: 0; }
.hto h3 { margin: 4px 0 10px; font: 700 21px/1.2 var(--font-head); }
.hto-section { padding: 18px 0; }
.hto-section h3 { text-transform: uppercase; font-style: italic; }
.hto-cards { display: grid; gap: 12px; grid-template-columns: 1fr; margin-bottom: 10px; }
@media (min-width: 600px) { .hto-cards { grid-template-columns: 1fr 1fr; } }
.hto-card { border: 1.5px solid var(--ink); border-radius: var(--radius); padding: 14px 16px; }
.hto-card h4 { margin: 0; font: italic 700 20px/1.1 var(--font-head); text-transform: uppercase; }
.hto-card-sub { color: var(--red); font-weight: 700; font-size: 14px; margin: 2px 0 8px; }
.hto-card ul { margin-bottom: 0; }
.hto-example {
  margin: 4px 0 12px; padding: 14px 16px;
  border: 2px solid var(--red); border-radius: var(--radius);
  background: var(--red-soft);
}
.hto-example-label {
  display: inline-block; padding: 2px 10px; border-radius: 999px;
  background: var(--red); color: #fff;
  font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
}
.hto-example-title { margin: 8px 0 8px; font-weight: 700; font-size: 17px; }
.hto-example-rows { margin: 0; display: grid; gap: 6px; }
.hto-example-rows div {
  display: flex; justify-content: space-between; align-items: baseline; gap: 4px 12px; flex-wrap: wrap;
  padding: 8px 12px; background: #fff; border-radius: 8px;
}
.hto-example-rows dt { font-weight: 600; }
.hto-example-rows dt::before { content: "→ "; color: var(--red); }
.hto-example-rows dd { margin: 0; font-weight: 700; }

/* ---------- Footer & Messenger bar ---------- */
.site-footer {
  margin-top: 40px; padding-top: 28px; padding-bottom: 12px;
  border-top: 1px solid var(--line);
  text-align: center; color: var(--muted); font-size: 14px;
}
.site-footer img { margin: 0 auto 8px; width: 110px; height: auto; }
.site-footer a { color: var(--ink); font-weight: 700; }
.mode-book .site-footer { display: none; }

.messenger-bar {
  position: fixed; z-index: 40;
  left: 50%; transform: translateX(-50%);
  bottom: calc(12px + env(safe-area-inset-bottom));
  width: min(calc(100% - 24px), 480px); min-height: 52px;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--messenger); color: #fff;
  font-weight: 700; font-size: 16px; text-decoration: none;
  box-shadow: 0 6px 20px rgba(10, 124, 255, .35), 0 2px 6px rgba(0,0,0,.15);
}
.messenger-bar svg { width: 24px; height: 24px; flex: none; }

.toast {
  position: fixed; z-index: 50; left: 50%;
  bottom: calc(80px + env(safe-area-inset-bottom));
  transform: translate(-50%, 20px);
  width: max-content; max-width: calc(100% - 32px);
  padding: 10px 16px; border-radius: 10px;
  background: var(--ink); color: #fff; font-size: 14px; text-align: center;
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Book view ---------- */
.book-view { padding: 0 16px; }
.book-view .filters { position: static; max-width: 1180px; margin: 12px auto 0; border-bottom: 0; padding: 0; }
.book-stage { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 12px; }
.book-wrap { position: relative; }
.book-nav {
  flex: none; width: 44px; height: 44px; border-radius: 50%;
  border: 1.5px solid var(--ink); background: #fff; cursor: pointer;
  display: grid; place-items: center;
}
.book-nav:disabled { opacity: .25; cursor: default; }
.book-status { text-align: center; color: var(--muted); font-size: 14px; margin: 10px 0 0; }
@media (max-width: 700px) {
  .book-stage { gap: 0; position: relative; }
  .book-nav { position: absolute; z-index: 5; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; background: rgba(255,255,255,.9); }
  .book-nav.prev { left: -8px; }
  .book-nav.next { right: -8px; }
}

/* Pages: every size inside a page is in em, and the font size follows the
   page width, so a page looks the same at any size. */
.bp, .bp-probe .bp { background: #fff; overflow: hidden; container-type: size; }
.bp-probe { position: absolute; left: -10000px; top: 0; visibility: hidden; }
.bp-probe .bp { width: 100%; height: 100%; }
.bp-in {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  padding: 5.5% 6% 4%;
  font-size: 3.1cqw; line-height: 1.4;
}
.bp-products .bp-in, .bp-toc .bp-in, .bp-order .bp-in { box-shadow: inset 0 0 0 1px var(--line); }
.bp a *, .bp button * { pointer-events: none; }
.bp-head {
  flex: none; display: flex; align-items: center; justify-content: space-between;
  padding-bottom: .6em; margin-bottom: .9em; border-bottom: .18em solid var(--ink);
}
.bp-head img { height: 2.1em; width: auto; }
.bp-foot {
  flex: none; display: flex; justify-content: space-between; align-items: center;
  margin-top: .8em; padding-top: .5em; border-top: 1px solid var(--line);
  font-size: .75em; color: var(--muted);
}
.bp-num { font-weight: 700; color: var(--ink); }
.bp-body { flex: 1; min-height: 0; overflow: hidden; }
.bp-title { margin: 0 0 .5em; font: italic 700 2.1em/1 var(--font-head); text-transform: uppercase; }

.bp-cards {
  flex: 1; min-height: 0; overflow: hidden;
  display: grid; gap: .8em; grid-template-columns: 1fr 1fr; grid-auto-rows: minmax(min-content, auto);
}
.bp-cards .card { border-radius: .6em; }
.bp-cards .card-img { aspect-ratio: auto; height: auto; min-height: 6em; flex: 1 1 6em; }
.bp-cards .card-body { flex: none; }
.bp-cards .card-img .product-img { padding: 4%; }
.bp-cards .card-body { padding: .45em .65em .55em; gap: .22em; }
.bp-cards .card-brand { font-size: .66em; }
.bp-cards .card-name { font-size: 1.05em; }
.bp-cards .card-specs { font-size: .68em; gap: .1em; }
.bp-cards .card-features { font-size: .68em; line-height: 1.35; }
.bp-cards .card-foot { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .3em; padding-top: .25em; }
.bp-cards .card-price { font-size: 1.25em; }
.bp-cards .card-price.ask { font-size: .8em; white-space: nowrap; }
.bp-cards .ask-btn { min-height: 0; padding: .4em .65em; font-size: .6em; border-width: .12em; white-space: nowrap; }
.bp-cards .ph span { font-size: .7em; }

.bp-blank img { width: 30%; opacity: .12; filter: grayscale(1); }

.bp-toc-list { list-style: none; margin: .4em 0 1.4em; padding: 0; }
.bp-toc-list li { border-bottom: 1px solid var(--line); }
.bp-toc-list button {
  width: 100%; display: flex; align-items: baseline; gap: .6em;
  padding: .75em .1em; border: 0; background: none; cursor: pointer; text-align: left;
  font-size: 1em;
}
.bp-toc-list .t-label { font: italic 700 1.5em/1 var(--font-head); text-transform: uppercase; }
.bp-toc-list .t-count { color: var(--muted); font-size: .85em; }
.bp-toc-list .t-dots { flex: 1; border-bottom: .12em dotted #bbb; transform: translateY(-.3em); }
.bp-toc-list .t-page { font-weight: 700; color: var(--red); font-size: 1.15em; }
.bp-toc-list button:hover .t-label { color: var(--red); }
.bp-note { color: var(--muted); font-size: .85em; }
.bp-empty { text-align: center; padding-top: 30%; color: var(--muted); }

/* How to Order inside the book (font scales with the page) */
.bp-order .hto { font-size: .86em; max-width: none; }
.bp-order .hto-step { gap: .8em; padding: .7em 0; }
.bp-order .hto-num { width: 1.9em; height: 1.9em; font-size: 1.05em; }
.bp-order .hto h3 { font-size: 1.3em; margin: .15em 0 .4em; }
.bp-order .hto p, .bp-order .hto ul { margin-bottom: .45em; }
.bp-order .hto ul { padding-left: 1.2em; }
.bp-order .hto-section { padding: .7em 0; }
.bp-order .hto-cards { grid-template-columns: 1fr 1fr; gap: .6em; margin-bottom: .45em; }
.bp-order .hto-card { padding: .6em .75em; border-radius: .6em; border-width: .1em; }
.bp-order .hto-card h4 { font-size: 1.1em; }
.bp-order .hto-card-sub { font-size: .85em; margin-bottom: .3em; }
.bp-order .hto-example { padding: .7em .85em; border-radius: .6em; border-width: .14em; margin-bottom: .5em; }
.bp-order .hto-example-label { font-size: .7em; }
.bp-order .hto-example-title { font-size: 1em; margin: .4em 0; }
.bp-order .hto-example-rows { gap: .3em; }
.bp-order .hto-example-rows div { padding: .35em .6em; border-radius: .4em; }
.bp-order .hto a { word-break: break-all; }

/* =====================================================================
   Design: cover, banners, colored pages
   ===================================================================== */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.card-brand { color: var(--c, var(--red)); }
.card-img { background: color-mix(in srgb, var(--c, #888) 7%, #fff); }
.card-img .product-img { mix-blend-mode: multiply; }

/* ----- Cover art (grid hero and book cover) ----- */
.cover-wrap { margin: 0 -16px; }
.cover { position: relative; aspect-ratio: 4 / 5; max-height: 88vh; width: 100%; container-type: size; overflow: hidden; }
@media (min-width: 700px) {
  .cover-wrap { margin: 16px 0 0; }
  .cover { aspect-ratio: 16 / 9; max-height: 620px; border-radius: 18px; }
}
.cv {
  position: absolute; inset: 0; overflow: hidden; color: #fff;
  background:
    radial-gradient(circle at 70% 40%, rgba(225, 37, 27, .8) 0, rgba(225, 37, 27, 0) 45%),
    radial-gradient(circle at 5% 100%, rgba(138, 92, 240, .6) 0, rgba(138, 92, 240, 0) 45%),
    radial-gradient(circle at 100% 0%, rgba(47, 123, 245, .5) 0, rgba(47, 123, 245, 0) 40%),
    linear-gradient(165deg, #2a0f17 0%, #0e0b12 55%, #040405 100%);
}
.cv-stripes {
  position: absolute; left: -15%; right: -15%; top: 60%;
  display: flex; flex-direction: column; gap: 1.2cqmin;
  transform: rotate(-14deg); opacity: .9;
}
.cv-stripes i { display: block; height: 1.4cqmin; background: linear-gradient(90deg, transparent 0, var(--c) 25%, var(--c) 75%, transparent 100%); }
.cv-ball {
  position: absolute; top: 15%; right: 12%; width: 8cqmin; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff 0, #f2efe8 45%, #bdb6a8 100%);
  box-shadow: 0 0 5cqmin rgba(255, 255, 255, .35);
}
.cv-ball::after {
  content: ""; position: absolute; top: 25%; right: 85%; width: 26cqmin; height: 50%;
  border-radius: 99px; background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .45));
  transform: rotate(16deg); transform-origin: right center;
}
.cv-logo {
  position: absolute; top: 5%; left: 6%; width: 32cqmin;
  padding: 1.6cqmin 2.2cqmin; border-radius: 2cqmin; background: #fff;
  box-shadow: 0 1.5cqmin 4cqmin rgba(0, 0, 0, .35);
}
.cv-logo img { display: block; width: 100%; height: auto; }
.cv-edition { position: absolute; top: 6%; right: 6%; text-align: right; font: italic 700 8cqmin/1 var(--font-head); }
.cv-edition span { display: block; margin-top: .35em; font: 600 .3em/1 var(--font); letter-spacing: .35em; text-transform: uppercase; opacity: .8; }
.cv-fan { position: absolute; left: 50%; top: 24%; width: 86cqmin; height: 44cqmin; transform: translateX(-50%); }
.cv-fan img {
  position: absolute; top: 12%; width: 30cqmin; aspect-ratio: 1; object-fit: contain;
  background: #fff; border-radius: 2.2cqmin; padding: 1.6cqmin;
  box-shadow: 0 2.5cqmin 6cqmin rgba(0, 0, 0, .55);
}
.cv-fan .f0 { left: 50%; top: 0; width: 38cqmin; transform: translateX(-50%); z-index: 3; }
.cv-fan .f1 { left: 20%; transform: translateX(-50%) rotate(-12deg); z-index: 2; }
.cv-fan .f2 { left: 80%; transform: translateX(-50%) rotate(12deg); z-index: 2; }
.cv-fan .f3 { left: 2%; top: 28%; transform: translateX(-50%) rotate(-22deg); z-index: 1; width: 24cqmin; }
.cv-fan .f4 { left: 98%; top: 28%; transform: translateX(-50%) rotate(22deg); z-index: 1; width: 24cqmin; }
.cv-bottom { position: absolute; left: 0; right: 0; bottom: 6%; text-align: center; }
.cv-big {
  font: italic 700 22cqmin/.82 var(--font-head); text-transform: uppercase; letter-spacing: -.005em;
  text-shadow: .7cqmin .7cqmin 0 var(--red);
}
.cv-sub { margin-top: 2.2cqmin; font: 600 3.1cqmin/1.2 var(--font); letter-spacing: .3em; text-transform: uppercase; }
.cv-cats { margin-top: 1.4cqmin; font-size: 2.8cqmin; letter-spacing: .08em; opacity: .7; }
@container (orientation: landscape) {
  .cv-logo { width: 28cqmin; }
  .cv-ball { top: 30%; right: 30%; }
  .cv-fan { left: 70%; top: 14%; width: 100cqmin; height: 70cqmin; }
  .cv-fan img { width: 36cqmin; }
  .cv-fan .f0 { width: 46cqmin; }
  .cv-fan .f3, .cv-fan .f4 { width: 30cqmin; top: 34%; }
  .cv-bottom { left: 6%; right: auto; bottom: 9%; text-align: left; }
  .cv-big { font-size: 28cqmin; }
  .cv-stripes { top: 64%; }
}

/* ----- Contents tiles (grid view) ----- */
.toc { padding: 28px 0 8px; }
.toc-grid { margin-top: 14px; display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
.toc-item {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 2px;
  min-height: 118px; padding: 14px 16px;
  border-radius: var(--radius); text-decoration: none; color: #fff;
  background: linear-gradient(135deg, var(--c) 0%, var(--cd) 100%);
}
.toc-item::after {
  content: ""; position: absolute; left: 18px; top: 20px;
  width: 8px; height: 8px; border-top: 2px solid currentColor; border-right: 2px solid currentColor; transform: rotate(45deg);
}
.toc-img {
  position: absolute; right: -18px; top: -4px; width: 44%; aspect-ratio: 1; object-fit: contain;
  background: #fff; border-radius: 10px; padding: 6px; transform: rotate(10deg);
  box-shadow: 0 6px 16px rgba(0, 0, 0, .35);
}
.toc-no { position: relative; font: italic 700 14px/1 var(--font-head); opacity: .8; }
.toc-label { position: relative; font: italic 700 clamp(19px, 5.6vw, 24px)/1 var(--font-head); text-transform: uppercase; text-shadow: 0 1px 8px rgba(0, 0, 0, .35); }
.toc-count { position: relative; font-size: 13px; opacity: .85; }
.toc-order { background: linear-gradient(135deg, #2a2a2a, #000); }

/* ----- Category banner (grid sections and book opener pages) ----- */
.bn {
  position: relative; overflow: hidden; color: #fff;
  border-radius: 16px; padding: 22px 20px; min-height: 170px; margin-bottom: 14px;
  background:
    radial-gradient(circle at 85% 40%, color-mix(in srgb, var(--c) 75%, transparent) 0, transparent 55%),
    linear-gradient(120deg, var(--cd) 0%, #0b0b0d 100%);
}
.bn::before {
  content: ""; position: absolute; top: -10%; bottom: -10%; left: 52%; width: 16%;
  background: var(--c); opacity: .35; transform: skewX(-18deg);
}
.bn::after {
  content: ""; position: absolute; top: -10%; bottom: -10%; left: 71%; width: 3%;
  background: var(--c); opacity: .6; transform: skewX(-18deg);
}
.bn-wm {
  position: absolute; left: -1%; bottom: -14%; white-space: nowrap;
  font: italic 700 120px/1 var(--font-head); text-transform: uppercase;
  color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .16);
}
.bn-art { position: absolute; right: 3%; top: 50%; width: 40%; height: 86%; transform: translateY(-50%); z-index: 1; }
.bn-art img {
  position: absolute; width: 64%; aspect-ratio: 1; object-fit: contain;
  background: #fff; border-radius: 10px; padding: 4%;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .45);
}
.bn-art .a0 { right: 0; top: 0; transform: rotate(8deg); z-index: 2; }
.bn-art .a1 { right: 40%; top: 22%; transform: rotate(-9deg); }
.bn-text { position: relative; z-index: 2; max-width: 58%; }
.bn-no {
  display: inline-block; padding: 2px 10px; border-radius: 4px;
  background: var(--c); font: italic 700 15px/1.3 var(--font-head); letter-spacing: .06em;
}
.bn-title { margin: 8px 0 6px; font: italic 700 46px/.92 var(--font-head); text-transform: uppercase; }
.bn-tag { margin: 0; font-size: 14px; line-height: 1.35; opacity: .9; }
.bn-count { margin: 10px 0 0; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; opacity: .75; }
.cat-section { padding-top: 32px; }

/* ----- Featured card (first product of each section / feature pages) ----- */
.cards .card-feature { grid-column: 1 / -1; flex-direction: row; }
.cards .card-feature .card-img { aspect-ratio: auto; width: 46%; flex: none; border-bottom: 0; border-right: 1px solid var(--line); min-height: 200px; }
.cards .card-feature .card-body { flex: 1 1 0; min-width: 0; padding: 16px 16px 14px; }
.cards .card-feature .card-name { font-size: 26px; }
.cards .card-feature .card-features { font-size: 14px; }
@media (max-width: 639px) {
  .cards .card-feature .card-specs div:has(.chips-inline) dt { display: inline; }
}
@media (min-width: 900px) {
  .cards .card-feature { grid-column: span 2; }
}

/* ----- Book pages ----- */
.bp-in { padding: 6% 7.5% 4%; }
.bp-products .bp-in, .bp-toc .bp-in, .bp-order .bp-in { box-shadow: none; }
.bp-products .bp-in::before, .bp-order .bp-in::before, .bp-toc .bp-in::before, .bp-request .bp-in::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: .5em;
  background: linear-gradient(90deg, var(--c), var(--cd));
}
.bp-feature .bp-in { background: color-mix(in srgb, var(--c) 6%, #fff); }
.bp-feature .bp-in::after {
  content: ""; position: absolute; right: -10%; top: 0; bottom: 0; width: 40%;
  background: color-mix(in srgb, var(--c) 9%, transparent); transform: skewX(-14deg); pointer-events: none;
}
.bp-feature .bp-in > * { position: relative; z-index: 1; }
.bp-feature .bp-in > .bp-tab { position: absolute; }
.bp-tab {
  position: absolute; z-index: 2; top: calc(14% + var(--tab) * 13%); width: 4.6%; height: 12%;
  display: flex; align-items: center; justify-content: center;
  background: var(--c); color: #fff;
}
.bp.left .bp-tab { left: 0; border-radius: 0 .45em .45em 0; }
.bp.right .bp-tab { right: 0; border-radius: .45em 0 0 .45em; }
.bp-tab span { writing-mode: vertical-rl; font: italic 700 .62em/1 var(--font-head); letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; }
.bp.left .bp-tab span { transform: rotate(180deg); }
.bp-toc .bp-tab, .bp-empty-page .bp-tab { display: none; }
.bp-head { border-bottom: .16em solid var(--ink); }
.bp-head-label { font: italic 700 1.35em/1 var(--font-head); text-transform: uppercase; letter-spacing: .02em; white-space: nowrap; }
.bp-head-label small { margin-left: .45em; font-size: .7em; color: var(--c); }
.bp-num { min-width: 2.2em; text-align: center; padding: .2em .5em; border-radius: .3em; background: var(--c); color: #fff; font-weight: 700; }

.bp .bn { flex: none; height: 12.5em; min-height: 0; margin-bottom: .9em; padding: 1.1em 1.2em; border-radius: .8em; }
.bp .bn-wm { font-size: 6.5em; -webkit-text-stroke: .02em rgba(255, 255, 255, .16); }
.bp .bn-no { font-size: .72em; padding: .15em .6em; border-radius: .3em; }
.bp .bn-title { margin: .25em 0 .2em; font-size: 2.3em; }
.bp .bn-tag { font-size: .74em; }
.bp .bn-count { margin-top: .6em; font-size: .62em; }
.bp .bn-art img { border-radius: .6em; }
.bn-order { --c: var(--red); --cd: #3d0805; height: auto !important; }
.bn-order .bn-text { max-width: 90%; }
.bp .bn-text { max-width: 54%; }
.bn-order .bn-no { text-transform: uppercase; }

.bp-cards .card-feature { grid-column: 1 / -1; flex-direction: row; }
.bp-cards.partial { align-content: start; }
.bp-cards.partial .card-img { min-height: 9em; }
.bp-cards .card-feature .card-img { flex: 0 0 46%; width: 46%; height: auto; min-height: 11em; border-bottom: 0; border-right: 1px solid var(--line); }
.bp-cards .card-feature .card-body { flex: 1 1 0; min-width: 0; padding: .9em 1em; gap: .35em; }
.bp-cards .card-feature .card-brand { font-size: .78em; }
.bp-cards .card-feature .card-name { font-size: 1.6em; }
.bp-cards .card-feature .card-specs { font-size: .78em; }
.bp-cards .card-feature .card-features { font-size: .8em; }
.bp-cards .card-feature .card-price { font-size: 1.7em; }
.bp-cards .card-feature .ask-btn { font-size: .72em; }

.bp-cover .bp-in { padding: 0; }
.bp-hint { position: absolute; bottom: 1.6%; left: 0; right: 0; margin: 0; text-align: center; font-size: .62em; color: rgba(255, 255, 255, .45); }
.bp-back .bp-in {
  align-items: center; justify-content: center; text-align: center; gap: 1.1em; padding: 8%; overflow: hidden; color: #fff;
  background:
    radial-gradient(circle at 30% 30%, rgba(225, 37, 27, .55) 0, rgba(225, 37, 27, 0) 50%),
    linear-gradient(200deg, #2a0f17 0%, #0e0b12 55%, #040405 100%);
}
.bp-back .cv-stripes { top: 78%; gap: .5em; }
.bp-back .cv-stripes i { height: .6em; }
.bp-back > .bp-in > *:not(.cv-stripes) { position: relative; z-index: 1; }
.bp-back-logo { width: 50%; padding: .7em .9em; border-radius: .6em; background: #fff; }
.bp-back-logo img { display: block; width: 100%; }
.bp-back p { margin: 0; font-size: 1.1em; }
.bp-back .ask-btn.big { background: var(--messenger); color: #fff; border-color: var(--messenger); font-size: 1.05em; padding: .6em 2em; }
.bp-back .bp-small { font-size: .8em; opacity: .8; }
.bp-back .bp-small a { color: #fff; }
.bp-blank .bp-in { align-items: center; justify-content: center; background: repeating-linear-gradient(-45deg, #fff 0 1.2em, #f6f6f6 1.2em 2.4em); }

.bp-title::after { content: ""; display: block; width: 2.4em; height: .14em; margin-top: .25em; background: var(--red); }
.bp-toc-list li { border-bottom: 1px solid var(--line); }
.bp-toc-list button { align-items: center; padding: .7em .1em; }
.bp-toc-list .t-no {
  flex: none; min-width: 2.2em; padding: .35em .4em; border-radius: .35em; text-align: center;
  background: linear-gradient(135deg, var(--c), var(--cd)); color: #fff; font: italic 700 .95em/1 var(--font-head);
}
.bp-toc-list .t-page { color: var(--c); }
.bp-toc-list button:hover .t-label { color: var(--c); }

/* ----- Brand / series groups ----- */
.series-head {
  display: flex; align-items: baseline; gap: 10px;
  margin: 22px 0 10px; padding-left: 10px; border-left: 4px solid var(--c, var(--red));
}
.series-head b { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--c, var(--red)); }
.series-head span { font: italic 700 22px/1 var(--font-head); text-transform: uppercase; }
.bn + .series-head { margin-top: 6px; }
.bp .series-head { flex: none; margin: 0 0 .55em; padding-left: .5em; border-left-width: .22em; gap: .5em; }
.bp .series-head b { font-size: .68em; }
.bp .series-head span { font-size: 1.1em; }

/* Page with space left: cards keep their height, a decoration fills the rest */
.bp-cards.partial { flex: none; overflow: visible; }
.bp-filler {
  flex: 1; min-height: 0; margin-top: .8em; border-radius: .8em; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .3em;
  background:
    repeating-linear-gradient(-45deg, transparent 0 1.1em, color-mix(in srgb, var(--c) 5%, transparent) 1.1em 2.2em),
    color-mix(in srgb, var(--c) 6%, #fff);
}
.bp-filler svg { width: 82%; flex: 1; min-height: 0; }
.bp-filler p {
  flex: none; margin: 0 0 .6em; font: italic 700 1.1em/1 var(--font-head);
  letter-spacing: .12em; text-transform: uppercase; color: var(--c);
}
.bp-filler-logo img { width: 40%; max-height: 70%; object-fit: contain; opacity: .2; filter: grayscale(1); }

/* Category banner with its own photo (bannerImage in config.js) */
.bn-art-photo .banner-photo {
  position: absolute; right: 0; top: 50%; width: 100%; height: auto; max-height: 100%; aspect-ratio: auto;
  object-fit: contain; transform: translateY(-50%) rotate(-3deg); padding: 3%;
}
.bn-art-photo .banner-photo { right: 6%; width: 86%; }
.bn-art .banner-over {
  position: absolute; z-index: 3; left: -12%; bottom: -6%; width: 54%; aspect-ratio: 1; object-fit: contain;
  background: #fff; border-radius: 10px; padding: 3%;
  border: 3px solid var(--c); transform: rotate(-9deg);
  box-shadow: 0 14px 30px rgba(0, 0, 0, .55);
}
.bn-art .banner-over.o1 { left: auto; right: -4%; bottom: auto; top: -6%; width: 38%; transform: rotate(10deg); }
.bp .bn-art .banner-over { border-radius: .6em; border-width: .15em; }

/* ----- Photo button on cards ----- */
button.card-img { display: block; width: 100%; padding: 0; border: 0; border-bottom: 1px solid var(--line); font: inherit; cursor: zoom-in; }
.card-feature button.card-img { border-bottom: 0; }
.grid-view .card { cursor: pointer; }
.zoom-hint {
  position: absolute; right: 8px; bottom: 8px; width: 28px; height: 28px; border-radius: 50%;
  background: rgba(255, 255, 255, .92); box-shadow: 0 1px 4px rgba(0, 0, 0, .2);
}
.zoom-hint::before, .zoom-hint::after { content: ""; position: absolute; left: 50%; top: 50%; background: var(--ink); transform: translate(-50%, -50%); }
.zoom-hint::before { width: 12px; height: 2px; }
.zoom-hint::after { width: 2px; height: 12px; }
.bp .zoom-hint { right: .4em; bottom: .4em; width: 1.5em; height: 1.5em; }
.bp .zoom-hint::before { width: .65em; height: .12em; }
.bp .zoom-hint::after { width: .12em; height: .65em; }

/* ----- Product details ----- */
body.detail-on { overflow: hidden; }
.detail {
  width: min(920px, calc(100% - 32px)); max-height: calc(100% - 48px);
  padding: 0; border: 0; border-radius: 18px; overflow: hidden;
  background: #fff; color: var(--ink);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .45);
}
.detail::backdrop { background: rgba(10, 10, 14, .72); backdrop-filter: blur(3px); }
.detail[open] { display: flex; }
.detail-content { position: relative; flex: 1; display: grid; grid-template-columns: 1fr 1fr; overflow: auto; max-height: calc(100vh - 48px); }
.dt-img {
  position: relative; min-height: 420px;
  background: radial-gradient(circle at 50% 45%, #fff 0, color-mix(in srgb, var(--c) 10%, #fff) 100%);
  border-top: 6px solid var(--c);
}
.dt-img .product-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 8%; mix-blend-mode: multiply; }
.dt-body { padding: 34px 32px 28px; display: flex; flex-direction: column; gap: 10px; border-top: 6px solid var(--c); }
.dt-cat { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.dt-body .card-brand { font-size: 14px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.dt-name { margin: 0; font: italic 700 38px/1 var(--font-head); text-transform: uppercase; }
.dt-specs { margin: 6px 0 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.dt-specs div { display: grid; grid-template-columns: 100px 1fr; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.dt-specs dt { color: var(--muted); }
.dt-specs dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.dt-features { margin: 6px 0 0; font-size: 16px; line-height: 1.55; color: var(--ink-2); }
.dt-price { margin-top: auto; padding-top: 12px; font: 700 40px/1 var(--font-head); }
.dt-price.ask { font-size: 26px; color: var(--muted); }
.dt-ask { min-height: 50px; font-size: 17px; background: var(--messenger); color: #fff; }
.dt-share {
  border: 0; background: none; color: var(--muted); font-size: 14px; text-decoration: underline;
  cursor: pointer; align-self: center; padding: 4px;
}
.dt-note { margin: 0; text-align: center; font-size: 13px; color: var(--muted); }
.dt-count {
  position: absolute; left: 16px; top: 18px; padding: 3px 10px; border-radius: 999px;
  background: rgba(0, 0, 0, .6); color: #fff; font-size: 13px; font-weight: 600;
}
.detail-close, .detail-nav {
  position: absolute; z-index: 2; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer;
  border: 1px solid var(--line); background: rgba(255, 255, 255, .95); box-shadow: 0 2px 8px rgba(0, 0, 0, .15);
}
.detail-close { right: 14px; top: 14px; }
.detail-nav { top: 50%; transform: translateY(-50%); }
.detail-nav.prev { left: 12px; }
.detail-nav.next { left: calc(50% - 56px); }
@media (max-width: 720px) {
  .detail { width: 100%; max-width: 100%; height: 100%; max-height: 100%; border-radius: 0; margin: 0; }
  .detail-content { grid-template-columns: 1fr; max-height: 100vh; max-height: 100dvh; }
  .dt-img { min-height: 0; aspect-ratio: 1 / 1; }
  .dt-body { border-top: 0; padding: 18px 20px calc(28px + env(safe-area-inset-bottom)); }
  .dt-name { font-size: 32px; }
  .dt-price { margin-top: 6px; }
  .detail-nav { top: calc(50vw); }
  .detail-nav.next { left: auto; right: 12px; }
}

/* ----- SALE ----- */
.sale-badge {
  position: absolute; z-index: 2; left: 8px; top: 8px;
  display: inline-flex; align-items: baseline; gap: 5px;
  padding: 4px 9px; border-radius: 6px;
  background: var(--red); color: #fff;
  font: italic 700 15px/1 var(--font-head); letter-spacing: .06em;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .25);
}
.sale-badge b { font-size: .92em; letter-spacing: 0; color: #ffe3e0; }
.bp .sale-badge { left: .4em; top: .4em; padding: .22em .45em; border-radius: .3em; font-size: .8em; }
.dt-img .sale-badge { left: 16px; top: 52px; font-size: 20px; padding: 6px 12px; }
.on-sale { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; }
.price-old { font-size: .62em; font-weight: 600; color: var(--muted); text-decoration-thickness: 2px; text-decoration-color: rgba(0, 0, 0, .55); }
.price-sale { color: var(--red); }
.chip-btn.chip-sale { color: var(--red); border-color: var(--red); background: #fff; font-style: italic; font-weight: 700; }
.chip-btn.chip-sale[aria-pressed="true"] { background: var(--red); color: #fff; }

/* ----- Out of stock ----- */
.stock-badge {
  position: absolute; z-index: 2; left: 0; right: 0; top: 50%; transform: translateY(-50%);
  padding: 7px 0; text-align: center;
  background: rgba(17, 17, 17, .82); color: #fff;
  font: italic 700 17px/1 var(--font-head); letter-spacing: .14em; text-transform: uppercase;
}
.bp .stock-badge { padding: .35em 0; font-size: .85em; }
.dt-img .stock-badge { font-size: 24px; padding: 12px 0; }
.restock-note {
  display: flex; align-items: center; justify-content: center; min-height: 38px; padding: 6px 10px;
  border-radius: 999px; background: var(--soft); color: var(--muted);
  font-size: 14px; font-weight: 700; text-align: center; white-space: nowrap;
}
.bp-cards .restock-note { min-height: 0; padding: .4em .65em; font-size: .6em; }
.restock-note.dt-ask { min-height: 50px; font-size: 17px; }

/* ----- Request an item ----- */
.request-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 10px 22px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--ink); color: #fff; font-size: 16px; font-weight: 700;
}
.request-btn:hover { background: var(--red); }
.request-btn:disabled { opacity: .6; cursor: default; }
.empty .request-btn { margin-top: 6px; }
.request-cta {
  margin-top: 40px; padding: 26px 22px; border-radius: 16px; color: #fff;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
  background: radial-gradient(circle at 90% 20%, rgba(225, 37, 27, .65) 0, transparent 55%), linear-gradient(120deg, #2a0f17, #0b0b0d);
}
.request-cta[hidden] { display: none; }
.request-cta .section-title { font-size: 28px; }
.request-cta p { margin: 6px 0 0; max-width: 520px; opacity: .85; }
.request-cta .request-btn { background: #fff; color: var(--ink); }
.request-cta .request-btn:hover { background: var(--red); color: #fff; }
.toc-request { background: linear-gradient(135deg, #e1251b, #2a0f17); }

.bp-request-body { display: flex; flex-direction: column; gap: 1em; }
.bp-request-steps { margin: 0; padding-left: 1.3em; display: grid; gap: .55em; font-size: .95em; }
.bp-request-steps b { color: var(--red); }
.bp .request-btn.big { align-self: center; min-height: 0; padding: .7em 2em; font-size: 1em; }
.bp-empty .request-btn { min-height: 0; padding: .6em 1.4em; font-size: .9em; }

.request-dialog {
  width: min(520px, calc(100% - 32px)); padding: 0; border: 0; border-radius: 18px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .45);
}
.request-dialog::backdrop { background: rgba(10, 10, 14, .72); backdrop-filter: blur(3px); }
.request-form { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 28px 24px 24px; border-top: 6px solid var(--red); }
.request-form h2 { margin: 0; padding-right: 40px; font: italic 700 30px/1 var(--font-head); text-transform: uppercase; }
.request-lead { margin: 0; color: var(--ink-2); font-size: 15px; }
.rf-field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 700; }
.rf-field b { color: var(--red); }
.rf-field i { font-weight: 400; color: var(--muted); }
.rf-field input, .rf-field select, .rf-field textarea {
  width: 100%; padding: 11px 12px; border: 1.5px solid var(--line); border-radius: 10px;
  font: 400 16px/1.4 var(--font); background: #fff; color: var(--ink);
}
.rf-field input:focus, .rf-field select:focus, .rf-field textarea:focus { outline: 0; border-color: var(--red); box-shadow: 0 0 0 3px var(--red-soft); }
.rf-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.rf-error { margin: 0; padding: 10px 12px; border-radius: 8px; background: var(--red-soft); color: var(--red-dark); font-size: 14px; }
.rf-submit { width: 100%; background: var(--red); }
.rf-submit:hover { background: var(--red-dark); }
.request-form.sent > :not(.rf-done):not(.detail-close):not(h2) { display: none; }
.rf-done { text-align: center; display: flex; flex-direction: column; gap: 10px; align-items: center; }
.rf-done p { margin: 0; color: var(--ink-2); }
.rf-done-title { font: italic 700 26px/1 var(--font-head); color: var(--red) !important; text-transform: uppercase; }
@media (max-width: 520px) {
  .request-dialog { width: 100%; max-width: 100%; margin: auto 0 0; border-radius: 18px 18px 0 0; }
  .request-form { padding-bottom: calc(24px + env(safe-area-inset-bottom)); }
}
