/* =====================================================================
   Fashion Store Starter - stylesheet
   One file for the storefront (.shop) and the back office (.admin).
   Colours are CSS variables: change the tokens below to re-brand the store.
   Light / dark theme: <html data-theme="light|dark">.
   ===================================================================== */

:root {
  --bg: #faf8f5;
  --surface: #ffffff;
  --surface-2: #f3f0eb;
  --surface-3: #ebe6df;
  --text: #1f1c19;
  --muted: #6f6962;
  --line: #e5e0d9;
  --line-strong: #d3ccc2;
  --accent: #b0512b;
  --accent-hover: #963f1c;
  --accent-ink: #ffffff;
  --accent-soft: #f7e8e0;
  --green: #2e7d4f;
  --green-soft: #e3f2e8;
  --red: #c0392b;
  --red-soft: #fbe6e3;
  --amber: #a86a12;
  --amber-soft: #fbf0db;
  --blue: #2c65a8;
  --blue-soft: #e3edf9;
  --violet: #6b4bb3;
  --violet-soft: #eee8fa;
  --shadow-sm: 0 1px 2px rgba(31, 28, 25, .06);
  --shadow: 0 6px 24px -8px rgba(31, 28, 25, .16);
  --shadow-lg: 0 24px 60px -20px rgba(31, 28, 25, .35);
  --radius: 12px;
  --radius-sm: 8px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, Tahoma, sans-serif;
  --font-display: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --mono: ui-monospace, "Cascadia Mono", Consolas, "Liberation Mono", monospace;
  color-scheme: light;
}

[data-theme="dark"] {
  --bg: #141311;
  --surface: #1c1a18;
  --surface-2: #24221f;
  --surface-3: #2e2b27;
  --text: #f2eee8;
  --muted: #a69f95;
  --line: #34302b;
  --line-strong: #463f38;
  --accent: #e27e52;
  --accent-hover: #f0956c;
  --accent-ink: #1a1310;
  --accent-soft: #3a2519;
  --green: #5cc387;
  --green-soft: #173323;
  --red: #f07a6c;
  --red-soft: #3a1b17;
  --amber: #e7b45a;
  --amber-soft: #37290f;
  --blue: #7db0ec;
  --blue-soft: #16273d;
  --violet: #b39cf0;
  --violet-soft: #2a2140;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow: 0 8px 28px -10px rgba(0, 0, 0, .6);
  --shadow-lg: 0 24px 60px -18px rgba(0, 0, 0, .75);
  color-scheme: dark;
}

/* ---------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 15px/1.55 var(--font); -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.2; font-weight: 650; letter-spacing: -.01em; }
h1 { font-size: 1.75rem; }
h2 { font-size: 1.35rem; }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 1.25rem 0; }
code, .mono { font-family: var(--mono); font-size: .9em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--accent-soft); }

.i { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8;
     stroke-linecap: round; stroke-linejoin: round; flex: none; }
.i-sm { width: 16px; height: 16px; }
.i-lg { width: 28px; height: 28px; }

/* ---------------------------------------------------------------- utilities */
.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.small { font-size: .86rem; }
.tiny { font-size: .78rem; }
.right { text-align: right; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.grow { flex: 1; min-width: 0; }
.row { display: flex; align-items: center; gap: 12px; }
.row-wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.between { justify-content: space-between; }
.stack > * + * { margin-top: 12px; }
.mt { margin-top: 16px; } .mt-lg { margin-top: 32px; } .mb { margin-bottom: 16px; } .mb-0 { margin-bottom: 0; }
.hidden, [hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.text-green { color: var(--green); } .text-red { color: var(--red); } .text-amber { color: var(--amber); }
.strike { text-decoration: line-through; color: var(--muted); font-weight: 400; }
.only-dark { display: none; }
[data-theme="dark"] .only-dark { display: inline; }
[data-theme="dark"] .only-light { display: none; }

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 42px; padding: 0 18px; border-radius: 999px; border: 1px solid transparent;
  font: 600 .92rem/1 var(--font); cursor: pointer; white-space: nowrap;
  transition: background .15s, border-color .15s, color .15s, transform .05s;
  background: var(--surface-2); color: var(--text);
}
.btn:hover { background: var(--surface-3); color: var(--text); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--text); color: var(--bg); }
.btn-primary:hover { background: var(--accent); color: var(--accent-ink); }
.btn-accent { background: var(--accent); color: var(--accent-ink); }
.btn-accent:hover { background: var(--accent-hover); color: var(--accent-ink); }
.btn-outline { background: transparent; border-color: var(--line-strong); }
.btn-outline:hover { border-color: var(--text); background: transparent; }
.btn-ghost { background: transparent; }
.btn-ghost:hover { background: var(--surface-2); }
.btn-danger { background: var(--red); color: #fff; }
.btn-danger:hover { background: var(--red); filter: brightness(1.08); color: #fff; }
.btn-sm { height: 34px; padding: 0 13px; font-size: .84rem; }
.btn-xs { height: 28px; padding: 0 10px; font-size: .78rem; gap: 5px; }
.btn-lg { height: 52px; padding: 0 26px; font-size: 1rem; }
.btn-block { width: 100%; }
.btn[disabled], .btn.disabled { opacity: .45; pointer-events: none; }
.icon-btn {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 999px;
  border: 0; background: transparent; color: var(--text); cursor: pointer; position: relative;
}
.icon-btn:hover { background: var(--surface-2); color: var(--text); }
.link-btn { background: none; border: 0; padding: 0; color: var(--accent); font: inherit; cursor: pointer; }
.link-btn:hover { text-decoration: underline; }

/* ---------------------------------------------------------------- forms */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; min-width: 0; }
.field > label, .label { font-size: .84rem; font-weight: 600; }
.field .hint { font-size: .8rem; color: var(--muted); }
.field .error, .error-text { font-size: .8rem; color: var(--red); }
.input, .select, .textarea {
  width: 100%; height: 44px; padding: 0 14px; border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--text);
  font: inherit; transition: border-color .15s, box-shadow .15s;
}
.textarea { height: auto; min-height: 110px; padding: 10px 14px; resize: vertical; }
.select { appearance: none; padding-right: 36px; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 18px) 19px, calc(100% - 13px) 19px; background-size: 5px 5px; background-repeat: no-repeat; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.input.is-invalid, .select.is-invalid, .textarea.is-invalid { border-color: var(--red); }
.input-sm, .select-sm { height: 36px; font-size: .88rem; }
.select-sm { background-position: calc(100% - 17px) 15px, calc(100% - 12px) 15px; }
.check { display: inline-flex; align-items: center; gap: 9px; cursor: pointer; font-size: .92rem; }
.check input { width: 18px; height: 18px; accent-color: var(--accent); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 16px; }
.input-group { display: flex; }
.input-group .input { border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
.input-group .btn { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; height: 44px; }

/* option cards (radio) for delivery and payment */
.options { display: grid; gap: 10px; }
.option {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: var(--radius);
  border: 1px solid var(--line-strong); background: var(--surface); cursor: pointer; transition: border-color .15s, box-shadow .15s;
}
.option:hover { border-color: var(--text); }
.option input { accent-color: var(--accent); width: 18px; height: 18px; }
.option:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.option.disabled { opacity: .5; pointer-events: none; }
.option .price { margin-left: auto; font-weight: 650; }

/* ---------------------------------------------------------------- cards, alerts, badges */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm); }
.card-tight { padding: 0; overflow: hidden; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.card-head h2, .card-head h3 { margin: 0; }
.alert { display: flex; gap: 12px; align-items: flex-start; padding: 13px 16px; border-radius: var(--radius-sm);
  background: var(--surface-2); border: 1px solid var(--line); margin-bottom: 16px; font-size: .93rem; }
.alert-error { background: var(--red-soft); border-color: transparent; color: var(--red); }
.alert-success { background: var(--green-soft); border-color: transparent; color: var(--green); }
.alert-warn { background: var(--amber-soft); border-color: transparent; color: var(--amber); }
.alert-info { background: var(--blue-soft); border-color: transparent; color: var(--blue); }
.badge {
  display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px; border-radius: 999px;
  font-size: .75rem; font-weight: 650; background: var(--surface-2); color: var(--muted); white-space: nowrap;
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .8; }
.badge.plain::before { display: none; }
.b-green { background: var(--green-soft); color: var(--green); }
.b-red { background: var(--red-soft); color: var(--red); }
.b-amber { background: var(--amber-soft); color: var(--amber); }
.b-blue { background: var(--blue-soft); color: var(--blue); }
.b-violet { background: var(--violet-soft); color: var(--violet); }
.b-accent { background: var(--accent-soft); color: var(--accent); }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }

/* ---------------------------------------------------------------- tables */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table th, .table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table th { font-size: .74rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 650; background: var(--surface-2); white-space: nowrap; }
.table th a { display: inline-flex; gap: 4px; align-items: center; }
.table th .arrow { font-size: .65rem; }
.table tbody tr:hover { background: var(--surface-2); }
.table tbody tr:last-child td { border-bottom: 0; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.table .actions { text-align: right; white-space: nowrap; }
.table .thumb { width: 44px; height: 52px; border-radius: 6px; object-fit: cover; background: var(--surface-2); }
.table-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 12px 16px; border-top: 1px solid var(--line); font-size: .86rem; color: var(--muted); }
.table-foot .page-size { display: flex; align-items: center; gap: 10px; }
.table-foot .select { width: auto; height: 34px; font-size: .84rem; background-position: calc(100% - 17px) 14px, calc(100% - 12px) 14px; }
.empty { padding: 48px 20px; text-align: center; color: var(--muted); }
.empty .i { width: 40px; height: 40px; margin: 0 auto 10px; opacity: .6; }
.pager { display: flex; gap: 4px; align-items: center; }
.pager a, .pager span { min-width: 34px; height: 34px; padding: 0 8px; display: inline-grid; place-items: center; border-radius: 8px; font-weight: 600; font-size: .86rem; }
.pager a:hover { background: var(--surface-2); color: var(--text); }
.pager .current { background: var(--text); color: var(--bg); }
.pager .disabled { opacity: .35; }

/* ---------------------------------------------------------------- toasts & modal */
.toasts { position: fixed; right: 20px; bottom: 20px; display: grid; gap: 10px; z-index: 90; max-width: min(420px, calc(100vw - 40px)); }
.toast { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg); font-size: .92rem;
  animation: toast-in .25s ease-out; transition: opacity .3s, transform .3s; }
.toast button { background: none; border: 0; color: var(--muted); cursor: pointer; padding: 0; }
.toast.hide { opacity: 0; transform: translateY(8px); }
@keyframes toast-in { from { opacity: 0; transform: translateY(12px); } }
.modal-backdrop { position: fixed; inset: 0; background: rgba(15, 12, 10, .5); display: none; place-items: center; z-index: 100; padding: 20px; }
.modal-backdrop.open { display: grid; animation: fade .15s; }
@keyframes fade { from { opacity: 0; } }
.modal { background: var(--surface); border-radius: 16px; padding: 26px; width: min(440px, 100%); box-shadow: var(--shadow-lg); }
.modal-lg { width: min(720px, 100%); max-height: calc(100vh - 40px); overflow: auto; }
.modal h3 { margin-bottom: 6px; }
.modal .actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }
.modal-icon { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--red-soft); color: var(--red); margin-bottom: 14px; }

/* =====================================================================
   STOREFRONT
   ===================================================================== */
.announce { background: var(--text); color: var(--bg); font-size: .8rem; text-align: center; padding: 8px 12px; letter-spacing: .02em; }
.announce b { color: var(--accent-soft); font-weight: 650; }
[data-theme="dark"] .announce b { color: var(--accent); }
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.site-header .bar { display: flex; align-items: center; gap: 22px; height: 70px; }
.wordmark { font-family: var(--font-display); font-size: 1.55rem; font-weight: 600; letter-spacing: .01em; display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; }
.wordmark .mark { width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; }
.wordmark .mark .i { width: 17px; height: 17px; }
.mainnav { display: flex; gap: 4px; }
.mainnav > .item { position: relative; }
.mainnav > .item > a { display: inline-flex; align-items: center; height: 70px; padding: 0 12px; font-weight: 550; font-size: .95rem; }
.mainnav > .item > a.active { color: var(--accent); }
.mainnav .drop { position: absolute; top: 62px; left: 0; min-width: 220px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow); padding: 8px; display: none; }
.mainnav .item:hover .drop, .mainnav .item:focus-within .drop { display: block; }
.mainnav .drop a { display: block; padding: 9px 12px; border-radius: 8px; font-size: .92rem; }
.mainnav .drop a:hover { background: var(--surface-2); color: var(--text); }
.header-search { flex: 1; max-width: 360px; margin-left: auto; position: relative; }
.header-search .input { height: 40px; border-radius: 999px; padding-left: 40px; background: var(--surface-2); border-color: transparent; }
.header-search .input:focus { background: var(--surface); }
.header-search .i { position: absolute; left: 13px; top: 10px; color: var(--muted); }
.header-tools { display: flex; align-items: center; gap: 2px; }
.cart-badge { position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px;
  background: var(--accent); color: var(--accent-ink); font-size: .68rem; font-weight: 700; display: grid; place-items: center; }
.lang { display: inline-flex; border: 1px solid var(--line-strong); border-radius: 999px; overflow: hidden; margin: 0 6px; }
.lang a { padding: 5px 9px; font-size: .74rem; font-weight: 700; color: var(--muted); }
.lang a.on { background: var(--text); color: var(--bg); }
.menu-toggle { display: none; }

.shop main { min-height: 60vh; }
.section { padding: 56px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.section-head h2 { font-family: var(--font-display); font-size: 1.9rem; font-weight: 600; margin: 0; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .72rem; font-weight: 700; color: var(--accent); margin-bottom: 8px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: .84rem; color: var(--muted); padding: 18px 0 6px; }
.crumbs a:hover { color: var(--text); }
.crumbs span.sep { opacity: .5; }

/* hero */
.hero { position: relative; overflow: hidden; background: linear-gradient(120deg, #efe3d6 0%, #f6efe7 45%, #e9ddcf 100%); }
[data-theme="dark"] .hero { background: linear-gradient(120deg, #2a211b 0%, #1f1a16 50%, #2b221c 100%); }
.hero .container { display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 40px; min-height: 520px; }
.hero h1 { font-family: var(--font-display); font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 600; line-height: 1.02; letter-spacing: -.02em; margin-bottom: 18px; }
.hero p { font-size: 1.1rem; color: var(--muted); max-width: 470px; margin-bottom: 28px; }
.hero-art { position: relative; height: 480px; }
.hero-art img { position: absolute; width: 58%; border-radius: 24px; box-shadow: var(--shadow-lg); }
.hero-art img:nth-child(1) { left: 0; top: 40px; transform: rotate(-5deg); }
.hero-art img:nth-child(2) { right: 0; top: 0; transform: rotate(4deg); width: 52%; }
.hero-stats { display: flex; gap: 30px; margin-top: 34px; }
.hero-stats b { display: block; font-size: 1.4rem; font-family: var(--font-display); }
.hero-stats span { font-size: .82rem; color: var(--muted); }

.cat-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.cat-tile { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/5; background: var(--surface-2); display: flex; align-items: flex-end; }
.cat-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.cat-tile:hover img { transform: scale(1.04); }
.cat-tile .label { position: relative; margin: 14px; padding: 10px 16px; border-radius: 999px; background: var(--surface); color: var(--text); font-weight: 650; box-shadow: var(--shadow); display: inline-flex; gap: 8px; align-items: center; }

.perks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.perk { display: flex; gap: 14px; align-items: flex-start; padding: 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.perk .i { color: var(--accent); width: 26px; height: 26px; }
.perk b { display: block; margin-bottom: 2px; }
.perk span { font-size: .86rem; color: var(--muted); }

/* product grid & card */
.pgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 20px; }
.pgrid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pcard { position: relative; display: flex; flex-direction: column; }
.pcard .media { position: relative; aspect-ratio: 5/6; border-radius: var(--radius); overflow: hidden; background: var(--surface-2); margin-bottom: 12px; }
.pcard .media img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s; }
.pcard:hover .media img { transform: scale(1.035); }
.pcard .tags { position: absolute; top: 10px; left: 10px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.tag { font-size: .7rem; font-weight: 750; letter-spacing: .04em; text-transform: uppercase; padding: 5px 9px; border-radius: 999px; background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }
.tag-sale { background: var(--accent); color: var(--accent-ink); }
.tag-out { background: var(--text); color: var(--bg); }
.pcard .brand { font-size: .76rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 3px; }
.pcard .name { font-weight: 600; margin-bottom: 4px; line-height: 1.35; }
.pcard .price { font-weight: 650; display: flex; gap: 8px; align-items: baseline; }
.pcard .swatches { display: flex; gap: 5px; margin-top: 9px; }
.swatch-dot { width: 14px; height: 14px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .15); box-shadow: inset 0 0 0 1.5px var(--surface); }
.pcard.soldout .media img { opacity: .55; filter: grayscale(.4); }

/* catalogue page */
.catalog { display: grid; grid-template-columns: 250px 1fr; gap: 36px; padding-bottom: 60px; }
.catalog-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.catalog-top h1 { font-family: var(--font-display); font-size: 2.1rem; font-weight: 600; margin: 0; }
.filters { position: sticky; top: 90px; align-self: start; max-height: calc(100vh - 110px); overflow: auto; padding-right: 4px; }
.fgroup { border-bottom: 1px solid var(--line); padding: 16px 0; }
.fgroup:first-child { padding-top: 0; }
.fgroup h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 12px; }
.fgroup .cat-link { display: block; padding: 5px 0; font-size: .92rem; color: var(--muted); }
.fgroup .cat-link.on { color: var(--text); font-weight: 650; }
.fgroup .cat-link.sub { padding-left: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip-check { position: relative; }
.chip-check input { position: absolute; opacity: 0; pointer-events: none; }
.chip-check > span { display: inline-flex; align-items: center; gap: 6px; min-width: 40px; justify-content: center; height: 34px; padding: 0 11px;
  border-radius: 8px; border: 1px solid var(--line-strong); font-size: .84rem; font-weight: 600; cursor: pointer; background: var(--surface); }
.chip-check input:checked + span { background: var(--text); color: var(--bg); border-color: var(--text); }
.chip-check input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.price-range { display: flex; gap: 8px; align-items: center; }
.price-range .input { height: 38px; }
.active-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.af { display: inline-flex; align-items: center; gap: 6px; padding: 6px 8px 6px 12px; border-radius: 999px; background: var(--surface-2); font-size: .82rem; font-weight: 600; }
.af:hover { background: var(--accent-soft); color: var(--accent); }
.filter-toggle { display: none; }

/* product page */
.product { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; padding: 10px 0 60px; }
.gallery { display: grid; grid-template-columns: 80px 1fr; gap: 14px; align-self: start; position: sticky; top: 90px; }
.gallery .thumbs { display: flex; flex-direction: column; gap: 10px; }
.gallery .thumbs button { padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; background: var(--surface-2); cursor: pointer; aspect-ratio: 5/6; }
.gallery .thumbs button.on { border-color: var(--text); }
.gallery .main { border-radius: 16px; overflow: hidden; background: var(--surface-2); aspect-ratio: 5/6; }
.gallery .main img { width: 100%; height: 100%; object-fit: cover; }
.pinfo .brand { text-transform: uppercase; letter-spacing: .1em; font-size: .78rem; color: var(--muted); font-weight: 650; }
.pinfo h1 { font-family: var(--font-display); font-size: 2.3rem; font-weight: 600; margin: 6px 0 12px; }
.pinfo .price-big { font-size: 1.5rem; font-weight: 650; display: flex; align-items: baseline; gap: 12px; margin-bottom: 6px; }
.pinfo .vat-note { font-size: .8rem; color: var(--muted); margin-bottom: 22px; }
.opt-label { display: flex; justify-content: space-between; font-size: .88rem; font-weight: 650; margin-bottom: 10px; }
.opt-label span { font-weight: 500; color: var(--muted); }
.color-picks { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 22px; }
.color-pick { width: 38px; height: 38px; border-radius: 50%; border: 2px solid transparent; padding: 3px; cursor: pointer; background: none; }
.color-pick i { display: block; width: 100%; height: 100%; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .15); }
.color-pick.on { border-color: var(--text); }
.size-picks { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.size-pick { min-width: 54px; height: 46px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--surface);
  font: 650 .92rem var(--font); color: var(--text); cursor: pointer; position: relative; }
.size-pick:hover { border-color: var(--text); }
.size-pick.on { background: var(--text); color: var(--bg); border-color: var(--text); }
.size-pick.out { color: var(--muted); background: repeating-linear-gradient(135deg, transparent 0 6px, var(--surface-2) 6px 7px); cursor: not-allowed; }
.size-pick.out::after { content: ""; position: absolute; left: 8px; right: 8px; top: 50%; border-top: 1px solid var(--muted); transform: rotate(-18deg); }
.size-picks.attention { animation: nudge .45s ease-in-out; }
.size-picks.attention .size-pick:not(.out) { border-color: var(--red); }
@keyframes nudge { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
.added-box { margin: 18px 0 6px; padding: 16px; border-radius: var(--radius); background: var(--green-soft); border: 1px solid color-mix(in srgb, var(--green) 30%, transparent); }
.added-box b { color: var(--green); }
.added-check { width: 30px; height: 30px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; flex: none; }
.stock-line {font-size: .88rem; margin: 10px 0 20px; min-height: 22px; display: flex; gap: 8px; align-items: center; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line-strong); border-radius: 999px; height: 52px; }
.qty button { width: 44px; height: 100%; border: 0; background: none; color: var(--text); font-size: 1.2rem; cursor: pointer; border-radius: 999px; }
.qty input { width: 44px; text-align: center; border: 0; background: none; color: var(--text); font: 650 1rem var(--font); -moz-appearance: textfield; }
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.qty.sm { height: 38px; }
.qty.sm button { width: 34px; font-size: 1rem; }
.qty.sm input { width: 34px; font-size: .9rem; }
.buy-row { display: flex; gap: 10px; margin-bottom: 24px; }
.buy-row .btn { flex: 1; height: 52px; }
.accordion details { border-top: 1px solid var(--line); padding: 16px 0; }
.accordion details:last-child { border-bottom: 1px solid var(--line); }
.accordion summary { cursor: pointer; font-weight: 650; list-style: none; display: flex; justify-content: space-between; }
.accordion summary::after { content: "+"; font-weight: 400; font-size: 1.3rem; line-height: 1; }
.accordion details[open] summary::after { content: "\2212"; }
.accordion .body { padding-top: 12px; color: var(--muted); font-size: .94rem; }
.size-table { border-collapse: collapse; width: 100%; font-size: .88rem; }
.size-table th, .size-table td { border: 1px solid var(--line); padding: 8px 10px; text-align: center; }
.size-table th { background: var(--surface-2); }

/* cart & checkout */
.page-title { font-family: var(--font-display); font-size: 2.2rem; font-weight: 600; margin: 24px 0 24px; }
.cart-layout, .checkout-layout { display: grid; grid-template-columns: 1fr 380px; gap: 32px; align-items: start; padding-bottom: 60px; }
.cart-line { display: grid; grid-template-columns: 96px 1fr auto; gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.cart-line:first-child { padding-top: 0; }
.cart-line img { width: 96px; height: 116px; object-fit: cover; border-radius: 10px; background: var(--surface-2); }
.cart-line .name { font-weight: 650; }
.cart-line .meta { font-size: .86rem; color: var(--muted); margin: 3px 0 10px; }
.cart-line .side { text-align: right; display: flex; flex-direction: column; justify-content: space-between; align-items: flex-end; }
.cart-line .problem { font-size: .82rem; color: var(--red); margin-top: 6px; }
.summary { position: sticky; top: 90px; }
.summary .line { display: flex; justify-content: space-between; padding: 7px 0; font-size: .94rem; }
.summary .total { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 14px; font-size: 1.15rem; font-weight: 700; }
.summary .mini { display: flex; gap: 12px; align-items: center; padding: 8px 0; }
.summary .mini img { width: 52px; height: 62px; object-fit: cover; border-radius: 8px; background: var(--surface-2); }
.summary .mini .q { position: relative; }
.summary .mini .q b { position: absolute; top: -6px; right: -6px; background: var(--text); color: var(--bg); border-radius: 999px; font-size: .7rem; min-width: 20px; height: 20px; display: grid; place-items: center; }
.progress { height: 6px; background: var(--surface-2); border-radius: 999px; overflow: hidden; margin: 8px 0 4px; }
.progress i { display: block; height: 100%; background: var(--accent); border-radius: 999px; }
.step-title { display: flex; align-items: center; gap: 12px; margin: 0 0 16px; font-size: 1.12rem; }
.step-title .n { width: 28px; height: 28px; border-radius: 50%; background: var(--text); color: var(--bg); font-size: .85rem; display: grid; place-items: center; font-weight: 700; }
.checkout-block { margin-bottom: 26px; }
.addr-pick { display: grid; gap: 10px; }
.addr-pick .option { align-items: flex-start; }
.addr-pick .option small { display: block; color: var(--muted); }

/* order page */
.order-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin: 24px 0; }
.order-head h1 { font-family: var(--font-display); font-weight: 600; margin: 4px 0; }
.status-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin: 10px 0 28px; }
.status-steps .st { text-align: center; position: relative; font-size: .82rem; color: var(--muted); }
.status-steps .st::before { content: ""; position: absolute; top: 15px; left: -50%; right: 50%; height: 2px; background: var(--line); z-index: 0; }
.status-steps .st:first-child::before { display: none; }
.status-steps .st .c { position: relative; z-index: 1; width: 32px; height: 32px; margin: 0 auto 8px; border-radius: 50%; background: var(--surface-2); display: grid; place-items: center; border: 2px solid var(--line); }
.status-steps .st.done { color: var(--text); font-weight: 600; }
.status-steps .st.done .c { background: var(--green); border-color: var(--green); color: #fff; }
.status-steps .st.done::before { background: var(--green); }
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { position: relative; padding: 0 0 18px 26px; }
.timeline li::before { content: ""; position: absolute; left: 5px; top: 7px; width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); }
.timeline li::after { content: ""; position: absolute; left: 9px; top: 20px; bottom: 0; width: 2px; background: var(--line); }
.timeline li:last-child::after { display: none; }
.timeline li:first-child::before { background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.timeline b { display: block; font-size: .92rem; }
.timeline span { font-size: .82rem; color: var(--muted); }
.kv { display: grid; grid-template-columns: 130px 1fr; gap: 8px 12px; font-size: .92rem; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }

/* account */
.account { display: grid; grid-template-columns: 230px 1fr; gap: 36px; padding: 10px 0 60px; }
.side-nav { display: flex; flex-direction: column; gap: 2px; }
.side-nav a { padding: 10px 14px; border-radius: 10px; font-weight: 550; display: flex; gap: 10px; align-items: center; }
.side-nav a.on { background: var(--surface-2); color: var(--text); }
.auth-wrap { min-height: calc(100vh - 220px); display: grid; place-items: center; padding: 40px 20px; }
.auth-card { width: min(440px, 100%); }
.auth-card h1 { font-family: var(--font-display); font-weight: 600; font-size: 2rem; }
.demo-box { font-size: .82rem; background: var(--surface-2); border-radius: 10px; padding: 12px 14px; margin-top: 16px; color: var(--muted); }
.demo-box code { color: var(--text); }

/* mock gateway */
.gateway { min-height: 100vh; display: grid; place-items: center; background: #eef1f6; padding: 24px; }
[data-theme="dark"] .gateway { background: #0f1319; }
.gateway .box { width: min(460px, 100%); background: var(--surface); border-radius: 18px; box-shadow: var(--shadow-lg); overflow: hidden; }
.gateway .gw-head { background: #2d3a8c; color: #fff; padding: 18px 24px; display: flex; justify-content: space-between; align-items: center; }
.gateway .gw-head b { font-size: 1.15rem; letter-spacing: .02em; }
.gateway .gw-body { padding: 24px; }
.gateway .amount { font-size: 2rem; font-weight: 700; margin: 4px 0 18px; }
.gateway .test-banner { background: #fff4d6; color: #7a5600; font-size: .8rem; padding: 8px 24px; }
[data-theme="dark"] .gateway .test-banner { background: #3a2f10; color: #f2cf73; }

/* footer */
.site-footer { background: var(--surface); border-top: 1px solid var(--line); margin-top: 40px; padding: 48px 0 28px; font-size: .9rem; }
.site-footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; }
.site-footer h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 14px; }
.site-footer a { display: block; padding: 4px 0; color: var(--muted); }
.site-footer a:hover { color: var(--text); }
.site-footer a.wordmark { display: inline-flex; color: var(--text); padding: 0; }
.site-footer .legal { border-top: 1px solid var(--line); margin-top: 32px; padding-top: 20px; display: flex; justify-content: space-between; color: var(--muted); font-size: .82rem; flex-wrap: wrap; gap: 10px; }
.pay-marks { display: flex; gap: 8px; }
.pay-marks span { border: 1px solid var(--line-strong); border-radius: 6px; padding: 3px 8px; font-size: .72rem; font-weight: 700; color: var(--muted); }

/* =====================================================================
   BACK OFFICE
   ===================================================================== */
.admin { background: var(--bg); }
.admin .layout { display: grid; grid-template-columns: 250px 1fr; min-height: 100vh; }
.sidebar { background: var(--surface); border-right: 1px solid var(--line); padding: 18px 14px; position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; }
.sidebar .brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 18px; font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; }
.sidebar .brand small { display: block; font-family: var(--font); font-size: .7rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.nav-label { font-size: .68rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); font-weight: 700; padding: 16px 10px 6px; }
.nav a { display: flex; align-items: center; gap: 11px; padding: 9px 10px; border-radius: 9px; font-weight: 550; font-size: .92rem; color: var(--muted); }
.nav a:hover { background: var(--surface-2); color: var(--text); }
.nav a.active { background: var(--accent-soft); color: var(--accent); }
.nav a .count { margin-left: auto; font-size: .72rem; background: var(--red); color: #fff; border-radius: 999px; padding: 1px 7px; font-weight: 700; }
.sidebar-foot { margin-top: auto; padding: 16px 10px 0; font-size: .76rem; color: var(--muted); }
.topbar { height: 64px; display: flex; align-items: center; gap: 10px; padding: 0 28px; border-bottom: 1px solid var(--line); background: var(--surface); position: sticky; top: 0; z-index: 30; }
.topbar .spacer { flex: 1; }
.user-menu { position: relative; }
.user-chip { display: flex; align-items: center; gap: 10px; background: none; border: 0; color: var(--text); cursor: pointer; padding: 4px 8px; border-radius: 10px; font: inherit; }
.user-chip:hover { background: var(--surface-2); }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-weight: 700; font-size: .8rem; }
.user-chip .who { text-align: left; line-height: 1.2; }
.user-chip .who small { color: var(--muted); font-size: .74rem; }
.dropdown { position: absolute; right: 0; top: 48px; min-width: 200px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: 6px; display: none; }
.dropdown.open { display: block; }
.dropdown a, .dropdown button { display: flex; width: 100%; gap: 10px; align-items: center; padding: 9px 10px; border-radius: 8px; background: none; border: 0; color: var(--text); font: inherit; font-size: .9rem; cursor: pointer; }
.dropdown a:hover, .dropdown button:hover { background: var(--surface-2); color: var(--text); }
.content { padding: 28px; max-width: 1400px; width: 100%; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.page-head h1 { margin: 0; font-size: 1.6rem; }
.page-head p { margin: 4px 0 0; color: var(--muted); }
.page-head .back { display: inline-flex; gap: 6px; align-items: center; font-size: .86rem; color: var(--muted); margin-bottom: 6px; }
.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.toolbar .search { position: relative; flex: 1; min-width: 200px; max-width: 360px; }
.toolbar .search .i { position: absolute; left: 11px; top: 9px; color: var(--muted); width: 18px; height: 18px; }
.toolbar .search .input { height: 36px; padding-left: 36px; }
.toolbar .select, .toolbar .input { width: auto; height: 36px; font-size: .88rem; }
.toolbar .select { background-position: calc(100% - 17px) 15px, calc(100% - 12px) 15px; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 22px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; display: flex; gap: 14px; align-items: flex-start; }
.kpi .ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; flex: none; }
.kpi .v { font-size: 1.55rem; font-weight: 700; line-height: 1.15; font-variant-numeric: tabular-nums; }
.kpi .l { font-size: .82rem; color: var(--muted); }
.kpi .s { font-size: .78rem; margin-top: 4px; color: var(--muted); }
.dash { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; margin-bottom: 16px; }
.bars { display: flex; align-items: flex-end; gap: 6px; height: 200px; padding: 10px 0 0; }
.bars .bar { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; gap: 6px; min-width: 0; }
.bars .bar i { display: block; width: 100%; max-width: 34px; background: linear-gradient(180deg, var(--accent), color-mix(in srgb, var(--accent) 65%, var(--bg))); border-radius: 6px 6px 2px 2px; min-height: 2px; position: relative; }
.bars .bar i:hover::after { content: attr(data-tip); position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); background: var(--text); color: var(--bg); padding: 4px 8px; border-radius: 6px; font-size: .74rem; white-space: nowrap; font-style: normal; z-index: 5; }
.bars .bar span { font-size: .66rem; color: var(--muted); white-space: nowrap; }
.hbar { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: center; margin-bottom: 12px; font-size: .88rem; }
.hbar .track { grid-column: 1 / -1; height: 7px; background: var(--surface-2); border-radius: 999px; overflow: hidden; }
.hbar .track i { display: block; height: 100%; background: var(--accent); border-radius: 999px; }
.status-list { display: grid; gap: 8px; }
.status-list .row { justify-content: space-between; font-size: .9rem; }
.form-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; align-items: start; }
/* Grid children may shrink below their content width, so wide tables scroll inside their card. */
.form-grid > *, .detail-grid > *, .dash > *, .layout > *, .catalog > *, .cart-layout > *, .checkout-layout > *, .account > * { min-width: 0; }
.variant-table .input, .variant-table .select { height: 36px; font-size: .86rem; padding: 0 10px; }
.variant-table td { padding: 6px 6px; }
.variant-table th { padding: 8px 6px; }
.variant-table input[type=color] { width: 36px; height: 36px; padding: 2px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--surface); cursor: pointer; }
.variant-table .check input { width: 16px; height: 16px; }
.gen-box { background: var(--surface-2); border-radius: var(--radius-sm); padding: 14px; margin-bottom: 14px; }
.photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 12px; }
.photo { position: relative; border-radius: 10px; overflow: hidden; background: var(--surface-2); border: 2px solid transparent; }
.photo.primary { border-color: var(--accent); }
.photo img { aspect-ratio: 5/6; object-fit: cover; width: 100%; }
.photo .ops { display: flex; gap: 4px; padding: 6px; justify-content: space-between; align-items: center; font-size: .72rem; }
.photo .ops form { margin: 0; }
.login-page { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.login-art { background: linear-gradient(150deg, #2b211b, #5a3522 60%, #b0512b); color: #fff; padding: 48px; display: flex; flex-direction: column; justify-content: space-between; }
.login-art h2 { font-family: var(--font-display); font-size: 2.4rem; font-weight: 600; max-width: 420px; }
.login-art p { opacity: .8; max-width: 420px; }
.login-form { display: grid; place-items: center; padding: 40px; }
.login-form .box { width: min(380px, 100%); }
.detail-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; align-items: start; }
.action-box form { margin-bottom: 12px; }
.inline-form { display: inline; }
.sku { font-family: var(--mono); font-size: .82rem; white-space: nowrap; }
.table td a.mono { white-space: nowrap; }
.stock-pill { display: inline-block; min-width: 34px; text-align: center; padding: 2px 8px; border-radius: 6px; font-weight: 700; font-variant-numeric: tabular-nums; }
.stock-pill.ok { background: var(--green-soft); color: var(--green); }
.stock-pill.low { background: var(--amber-soft); color: var(--amber); }
.stock-pill.out { background: var(--red-soft); color: var(--red); }
.qty-plus { color: var(--green); font-weight: 700; }
.qty-minus { color: var(--red); font-weight: 700; }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1100px) {
  .pgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .dash, .detail-grid, .form-grid { grid-template-columns: 1fr; }
  .header-search { max-width: 240px; }
}
@media (max-width: 900px) {
  .mainnav { display: none; position: fixed; inset: 70px 0 0 0; background: var(--bg); flex-direction: column; padding: 16px 20px; overflow: auto; z-index: 60; }
  .nav-open .mainnav { display: flex; }
  .mainnav > .item > a { height: auto; padding: 14px 4px; font-size: 1.1rem; border-bottom: 1px solid var(--line); width: 100%; }
  .mainnav .drop { position: static; display: block; box-shadow: none; border: 0; padding: 0 0 8px 12px; background: transparent; }
  .menu-toggle { display: inline-grid; }
  .header-search { display: none; }
  .hero .container { grid-template-columns: 1fr; min-height: 0; padding-top: 40px; padding-bottom: 40px; }
  .hero-art { height: 320px; }
  .cat-tiles, .perks { grid-template-columns: repeat(2, 1fr); }
  .catalog { grid-template-columns: 1fr; }
  .filters { display: none; position: static; max-height: none; }
  .filters.open { display: block; }
  .filter-toggle { display: inline-flex; }
  .product { grid-template-columns: 1fr; gap: 24px; }
  .gallery { position: static; grid-template-columns: 1fr; }
  .gallery .thumbs { flex-direction: row; order: 2; overflow-x: auto; }
  .gallery .thumbs button { width: 70px; flex: none; }
  .cart-layout, .checkout-layout, .account { grid-template-columns: 1fr; }
  .summary { position: static; }
  .site-footer .cols { grid-template-columns: 1fr 1fr; }
  .admin .layout { grid-template-columns: 1fr; }
  .sidebar { position: fixed; left: 0; top: 0; z-index: 70; width: 260px; transform: translateX(-100%); transition: transform .2s; box-shadow: var(--shadow-lg); }
  .nav-open .sidebar { transform: none; }
  .content { padding: 18px; }
  .topbar { padding: 0 14px; }
  .login-page { grid-template-columns: 1fr; }
  .login-art { display: none; }
}
@media (max-width: 600px) {
  body { font-size: 14.5px; }
  .pgrid, .pgrid.cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 12px; }
  .section { padding: 36px 0; }
  .section-head h2 { font-size: 1.5rem; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: 1fr 1fr; gap: 10px; }
  .kpi { padding: 14px; flex-direction: column; gap: 8px; }
  .kpi .v { font-size: 1.25rem; }
  .user-chip .who, .lang { display: none; }
  .cart-line { grid-template-columns: 76px 1fr; }
  .cart-line img { width: 76px; height: 92px; }
  .cart-line .side { grid-column: 2; flex-direction: row; align-items: center; }
  .status-steps .st { font-size: .7rem; }
  .perks { grid-template-columns: 1fr; }
  .wordmark { font-size: 1.25rem; }
  .site-footer .cols { grid-template-columns: 1fr; }
  .hide-sm { display: none; }
  .table th, .table td { padding: 10px; }
  .kv { grid-template-columns: 1fr; gap: 2px; }
  .kv dd { margin-bottom: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
