/* AppConfig site — base: tokens, reset, type, layout primitives, buttons, forms.
   Colours come from the store design (--sf-*); themes (themes.css) tune shape, rhythm and character. */
:root {
  --bg: var(--sf-bg, #f7f7f5);
  --surface: var(--sf-surface, #fff);
  --surface-2: var(--sf-surface-2, #f0f0ed);
  --ink: var(--sf-ink, #17181a);
  --muted: var(--sf-muted, #62656b);
  --line: var(--sf-line, #e3e3df);
  --line-strong: color-mix(in srgb, var(--line) 60%, var(--ink) 18%);
  --primary: var(--sf-primary, #2d5b5f);
  --primary-soft: var(--sf-primary-soft, #e4eeee);
  --primary-ink: var(--sf-primary-ink, #fff);
  --primary-hover: color-mix(in srgb, var(--primary) 86%, #000);
  --accent: var(--sf-accent, #e7c9a9);
  --accent-soft: var(--sf-accent-soft, #f6ebdf);
  --accent-ink: var(--sf-accent-ink, #111);
  --ok: #1f8a4c;
  --ok-soft: color-mix(in srgb, #1f8a4c 12%, var(--surface));
  --warn: #b26a00;
  --bad: #c2341d;
  --bad-soft: color-mix(in srgb, #c2341d 10%, var(--surface));
  --sale: #d6331c;
  --font: var(--sf-font, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif);
  --display: var(--sf-display, var(--font));
  --r: var(--radius, 10px);
  --r-s: calc(var(--r) * 0.6);
  --r-l: calc(var(--r) * 1.6);
  --shadow-s: 0 1px 2px rgb(0 0 0 / 0.05), 0 1px 1px rgb(0 0 0 / 0.03);
  --shadow: 0 2px 4px rgb(0 0 0 / 0.04), 0 8px 24px -6px rgb(0 0 0 / 0.1);
  --shadow-l: 0 24px 60px -12px rgb(0 0 0 / 0.25);
  --space-s: 24px;
  --space-m: 48px;
  --space-l: 80px;
  --space-xl: 120px;
  --wrap: 1240px;
  --header-h: 72px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --h1: clamp(2rem, 1.2rem + 3.2vw, 3.6rem);
  --h2: clamp(1.5rem, 1.1rem + 1.4vw, 2.2rem);
  --h3: 1.15rem;
  --track-display: -0.02em;
  --btn-weight: 600;
  --btn-case: none;
  --btn-track: 0;
  color-scheme: light;
}
.mode-dark { color-scheme: dark; --shadow: 0 2px 4px rgb(0 0 0 / 0.3), 0 12px 32px -8px rgb(0 0 0 / 0.6); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 64px); }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.6; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--primary); }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 600; line-height: 1.12; letter-spacing: var(--track-display); margin: 0 0 0.5em; text-wrap: balance; }
h1 { font-size: var(--h1); }
h2 { font-size: var(--h2); }
h3 { font-size: var(--h3); letter-spacing: -0.01em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 0; }
small, .small { font-size: 0.875rem; }
.muted { color: var(--muted); }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 62ch; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.75rem; font-weight: 700; color: var(--primary); margin-bottom: 0.9em; }
[hidden] { display: none !important; }
::selection { background: var(--primary); color: var(--primary-ink); }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; padding: 10px 14px; background: var(--primary); color: var(--primary-ink); border-radius: var(--r-s); }
.skip:focus { left: 8px; }
.ic { width: 1.2em; height: 1.2em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ic-sm { width: 1em; height: 1em; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 20px; }
.main { padding-block: 28px 72px; min-height: 50vh; }
.main-wide { min-height: 50vh; }
.center { text-align: center; }
.page-title { margin-bottom: 0.35em; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.section-head h2 { margin: 0; }
.more { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; color: var(--primary); white-space: nowrap; }
.more .ic { transition: transform 0.2s var(--ease); }
.more:hover .ic { transform: translateX(3px); }

/* buttons */
.btn { --b-bg: var(--surface); --b-fg: var(--ink); --b-bd: var(--line-strong); display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 20px; border: 1px solid var(--b-bd); border-radius: var(--r); background: var(--b-bg); color: var(--b-fg); font: inherit; font-weight: var(--btn-weight); text-transform: var(--btn-case); letter-spacing: var(--btn-track); line-height: 1.2; text-decoration: none; cursor: pointer; transition: background 0.18s, border-color 0.18s, color 0.18s, transform 0.12s, box-shadow 0.18s; white-space: nowrap; }
.btn:hover { color: var(--b-fg); border-color: var(--ink); }
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.45; cursor: not-allowed; transform: none; }
.btn-primary { --b-bg: var(--primary); --b-fg: var(--primary-ink); --b-bd: var(--primary); }
.btn-primary:hover { --b-bg: var(--primary-hover); border-color: var(--primary-hover); }
.btn-accent { --b-bg: var(--accent); --b-fg: var(--accent-ink); --b-bd: var(--accent); }
.btn-ghost { --b-bg: transparent; }
.btn-link { --b-bg: transparent; --b-bd: transparent; padding-inline: 0; color: var(--primary); text-decoration: underline; }
.btn-on-color { --b-bg: var(--primary-ink); --b-fg: var(--primary); --b-bd: var(--primary-ink); }
.btn-buy { --b-bg: var(--primary); --b-fg: var(--primary-ink); --b-bd: var(--primary); }
.btn-buy:hover { --b-bg: var(--primary-hover); }
.btn-lg { min-height: 52px; padding: 14px 28px; font-size: 1.05rem; }
.btn-sm { min-height: 34px; padding: 6px 12px; font-size: 0.875rem; }
.btn.is-busy { position: relative; color: transparent !important; pointer-events: none; }
.btn.is-busy::after { content: ""; position: absolute; width: 18px; height: 18px; border: 2px solid var(--b-fg); border-right-color: transparent; border-radius: 50%; animation: spin 0.7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); color: var(--ink); cursor: pointer; transition: border-color 0.15s, background 0.15s; }
.icon-btn:hover { border-color: var(--ink); }
.icon-btn[aria-pressed="true"] { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.link-btn { display: inline-flex; align-items: center; gap: 6px; padding: 0; border: 0; background: none; color: var(--muted); font: inherit; font-size: 0.92rem; cursor: pointer; text-decoration: none; }
.link-btn:hover, .link-btn.is-on { color: var(--primary); }
.link-btn.is-on .ic { fill: currentColor; }

/* forms */
input, select, textarea { width: 100%; min-height: 46px; padding: 10px 14px; border: 1px solid var(--line-strong); border-radius: var(--r-s); background: var(--surface); color: var(--ink); font: inherit; transition: border-color 0.15s, box-shadow 0.15s; }
textarea { min-height: 120px; resize: vertical; }
input:hover, select:hover, textarea:hover { border-color: var(--muted); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 18%, transparent); }
input[type="checkbox"], input[type="radio"] { width: 18px; height: 18px; min-height: 0; padding: 0; accent-color: var(--primary); flex: none; margin: 2px 0 0; }
select { appearance: none; padding-right: 38px; background-image: 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 1l5 5 5-5' fill='none' stroke='%23888' stroke-width='1.6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
label { display: block; font-size: 0.9rem; font-weight: 600; margin-bottom: 6px; }
.check { display: flex; align-items: flex-start; gap: 10px; font-weight: 400; cursor: pointer; margin: 0; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px; }
.field { grid-column: 1 / -1; min-width: 0; }
.field.half { grid-column: span 1; }
.field-help { display: block; color: var(--muted); margin-top: 6px; }
.field-error { display: block; min-height: 0; color: var(--bad); font-size: 0.85rem; margin-top: 6px; }
.field-error:empty { display: none; }
.field.has-error input, .field.has-error textarea, .field.has-error select, input.invalid, textarea.invalid, select.invalid { border-color: var(--bad); background: var(--bad-soft); }
.field.is-ok input { border-color: var(--ok); }
.req { color: var(--bad); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-actions { margin-top: 20px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.form-msg { margin-top: 14px; font-size: 0.95rem; }
.form-msg:empty { display: none; }
.form-msg.tone-success, .msg-success { color: var(--ok); background: var(--ok-soft); padding: 12px 14px; border-radius: var(--r-s); }
.form-msg.tone-error, .msg-error { color: var(--bad); background: var(--bad-soft); padding: 12px 14px; border-radius: var(--r-s); }
.form-msg.tone-info { color: var(--ink); background: var(--surface-2); padding: 12px 14px; border-radius: var(--r-s); }
.inline-form { display: flex; gap: 8px; align-items: flex-start; flex-wrap: wrap; }
.inline-form .field { flex: 1 1 220px; }
.inline-form input { flex: 1 1 200px; }

.prose { max-width: 70ch; }
.prose.center { margin-inline: auto; }
.prose h2, .prose h3 { margin-top: 1.6em; }
.prose ul { padding-left: 1.2em; }
.prose li + li { margin-top: 0.35em; }
.prose a { color: var(--primary); }
.prose > :last-child { margin-bottom: 0; }

table { border-collapse: collapse; width: 100%; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); padding: 24px; }
.skeleton { display: grid; gap: 12px; }
.skeleton span { display: block; height: 18px; border-radius: 6px; background: linear-gradient(90deg, var(--surface-2), var(--line), var(--surface-2)); background-size: 200% 100%; animation: shimmer 1.2s infinite; }
.skeleton span:nth-child(2) { width: 80%; }
.skeleton span:nth-child(3) { width: 60%; }
@keyframes shimmer { to { background-position: -200% 0; } }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } .field.half { grid-column: 1 / -1; } .wrap { padding-inline: 16px; } }

/* AppConfig site — components: header, navigation, footer, product cards, badges, blocks, overlays. */

/* announcement + header */
.announce { background: var(--ink); color: var(--bg); font-size: 0.82rem; }
.announce-row { display: flex; justify-content: center; align-items: center; gap: 24px; min-height: 36px; }
.announce-contact { display: inline-flex; gap: 6px; align-items: center; text-decoration: none; opacity: 0.85; }
.announce-contact:hover { color: inherit; opacity: 1; }
.site-header { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--bg) 94%, transparent); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); transition: box-shadow 0.2s; }
.site-header.is-scrolled { box-shadow: 0 6px 24px -14px rgb(0 0 0 / 0.35); }
.header-main { display: flex; align-items: center; gap: 24px; min-height: var(--header-h); }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-size: 1.35rem; font-weight: 700; letter-spacing: -0.02em; color: var(--ink); flex: none; }
.logo:hover { color: var(--ink); }
.logo-mark { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: var(--r-s); background: var(--primary); color: var(--primary-ink); font-size: 1rem; }
.header-spacer { flex: 1; }
.search { position: relative; flex: 1; display: flex; align-items: center; max-width: 620px; margin-inline: auto; }
.search > .ic { position: absolute; left: 14px; color: var(--muted); pointer-events: none; }
.search input { padding-left: 44px; padding-right: 108px; border-radius: 999px; background: var(--surface); }
.btn-search { position: absolute; right: 4px; min-height: 38px; padding: 6px 18px; border-radius: 999px; }
.suggest { position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 50; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); box-shadow: var(--shadow-l); padding: 8px; max-height: 70vh; overflow: auto; }
.suggest a { display: grid; grid-template-columns: 48px 1fr auto; gap: 12px; align-items: center; padding: 8px; border-radius: var(--r-s); text-decoration: none; }
.suggest a:hover, .suggest a[aria-selected="true"] { background: var(--surface-2); color: var(--ink); }
.suggest img { width: 48px; height: 48px; object-fit: cover; border-radius: var(--r-s); }
.suggest .s-title { font-weight: 600; font-size: 0.92rem; line-height: 1.3; }
.suggest .s-sub { display: block; color: var(--muted); font-size: 0.8rem; font-weight: 400; }
.suggest .s-price { font-weight: 700; }
.suggest .s-all { display: block; text-align: center; padding: 10px; font-weight: 600; color: var(--primary); }
.suggest .s-empty { padding: 14px; color: var(--muted); }
.header-tools { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.tool-link { position: relative; display: inline-flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: var(--r); text-decoration: none; font-weight: 600; font-size: 0.92rem; }
.tool-link:hover { background: var(--surface-2); color: var(--ink); }
.tool-link .ic { width: 24px; height: 24px; }
.tool-label { display: flex; flex-direction: column; line-height: 1.15; }
.tool-sub { font-size: 0.72rem; font-weight: 500; color: var(--muted); }
.count { position: absolute; top: 2px; left: 26px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-size: 0.7rem; font-weight: 800; display: inline-grid; place-items: center; box-shadow: 0 0 0 2px var(--bg); }
.count.bump { animation: bump 0.4s var(--ease); }
@keyframes bump { 40% { transform: scale(1.35); } }
.menu-btn { display: none; }
.site-nav { border-top: 1px solid var(--line); }
.nav-row { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.nav-row::-webkit-scrollbar { display: none; }
.nav-row a { padding: 12px 14px; font-size: 0.92rem; font-weight: 600; color: var(--muted); text-decoration: none; white-space: nowrap; border-bottom: 2px solid transparent; }
.nav-row a:hover, .nav-row a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--primary); }

/* breadcrumbs, chips */
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0 0 18px; padding: 0; font-size: 0.85rem; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 6px; opacity: 0.5; }
.crumbs a { text-decoration: none; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-size: 0.88rem; font-weight: 600; text-decoration: none; cursor: pointer; }
.chip span { color: var(--muted); font-weight: 500; }
.chip:hover, .chip.is-active { border-color: var(--ink); color: var(--ink); }
.chip.is-active { background: var(--ink); color: var(--surface); }
.chip.is-active span { color: inherit; opacity: 0.7; }
.chip .ic { width: 14px; height: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips .chip { padding: 4px 10px; font-size: 0.8rem; }

/* prices, availability, stars, badges */
.price-box { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; }
.price { font-weight: 800; font-size: 1.12rem; color: var(--ink); letter-spacing: -0.01em; }
.price-was { color: var(--muted); font-size: 0.9rem; }
.price-off { font-size: 0.78rem; font-weight: 800; color: #fff; background: var(--sale); padding: 2px 7px; border-radius: 999px; }
.price-box-lg .price { font-size: 2rem; }
.avail { display: inline-flex; align-items: center; gap: 7px; font-size: 0.86rem; font-weight: 700; margin: 0; }
.avail::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.avail-in { color: var(--ok); }
.avail-low { color: var(--warn); }
.avail-out { color: var(--muted); }
.stars { display: inline-flex; font-size: 0.95em; letter-spacing: 1px; line-height: 1; }
.stars-on { color: #f2a91c; }
.stars-off { color: var(--line-strong); }
.badges { position: absolute; top: 10px; left: 10px; z-index: 2; display: flex; flex-direction: column; align-items: flex-start; gap: 5px; }
.badge-tag { padding: 4px 9px; border-radius: 999px; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.02em; background: var(--ink); color: var(--surface); }
.badge-sale { background: var(--sale); color: #fff; }
.badge-new { background: var(--primary); color: var(--primary-ink); }
.badge-last-pieces { background: var(--accent); color: var(--accent-ink); }
.badge-out { background: var(--surface); color: var(--muted); border: 1px solid var(--line); }

/* product card */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 28px 22px; }
.density-compact .grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.pcard { position: relative; display: flex; flex-direction: column; min-width: 0; }
.pcard-media { position: relative; display: block; overflow: hidden; border-radius: var(--r-l); background: var(--surface-2); aspect-ratio: 1; }
.pcard-media.media-portrait { aspect-ratio: 3 / 4; }
.pcard-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity 0.45s var(--ease), transform 0.6s var(--ease); }
.pcard-alt { opacity: 0; }
.pcard:hover .pcard-alt { opacity: 1; }
.pcard:hover .pcard-media img { transform: scale(1.035); }
.pcard-body { padding: 14px 2px 8px; display: grid; gap: 4px; }
.pcard-brand { margin: 0; font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); font-weight: 700; }
.pcard-title { margin: 0; font-family: var(--font); font-size: 0.98rem; font-weight: 600; line-height: 1.35; letter-spacing: 0; }
.pcard-title a { text-decoration: none; }
.pcard-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.pcard-rating { margin: 0; display: flex; gap: 6px; align-items: center; font-size: 0.82rem; }
.pcard-highlights { margin: 6px 0 0; padding-left: 1.1em; color: var(--muted); font-size: 0.88rem; }
.pcard-buy { margin-top: auto; padding-top: 6px; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.pcard-buy .btn { position: relative; z-index: 2; min-height: 40px; padding: 8px 14px; }
.pcard-buy .btn span { font-size: 0.88rem; }
.pcard-tools { position: absolute; top: 10px; right: 10px; z-index: 3; display: flex; flex-direction: column; gap: 6px; opacity: 0; transform: translateX(6px); transition: 0.2s var(--ease); }
.pcard:hover .pcard-tools, .pcard:focus-within .pcard-tools { opacity: 1; transform: none; }
.tool { display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--surface); color: var(--ink); box-shadow: var(--shadow-s); cursor: pointer; }
.tool:hover, .tool.is-on { color: var(--primary); }
.tool.is-on .ic { fill: currentColor; }
.results.view-list .grid { grid-template-columns: 1fr; gap: 0; }
.pcard-row { display: grid; grid-template-columns: 180px minmax(0, 1fr) 220px; gap: 24px; align-items: center; padding: 20px 0; border-bottom: 1px solid var(--line); }
.pcard-row .pcard-body { padding: 0; }
.pcard-row .pcard-buy { flex-direction: column; align-items: flex-end; margin: 0; }
.pcard-row .pcard-tools { top: 26px; left: 140px; right: auto; }
.group-h { margin: 32px 0 16px; font-size: 1.25rem; display: flex; gap: 10px; align-items: baseline; }
.group-h:first-child { margin-top: 0; }
.group-h .muted { font-size: 0.85rem; font-weight: 500; font-family: var(--font); }

/* carousel */
.carousel { position: relative; }
.carousel-track { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(232px, calc((100% - 66px) / 4)); gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 6px; }
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track > * { scroll-snap-align: start; }
.carousel-prev, .carousel-next { position: absolute; top: 34%; z-index: 4; border-radius: 50%; box-shadow: var(--shadow); }
.carousel-prev { left: -18px; transform: rotate(180deg); }
.carousel-next { right: -18px; }
.carousel-prev:disabled, .carousel-next:disabled { opacity: 0; pointer-events: none; }

/* blocks */
.blk { position: relative; padding-block: var(--space-m); }
.blk-inner { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 20px; }
.w-narrow > .blk-inner { max-width: 780px; }
.w-wide > .blk-inner { max-width: 1480px; }
.w-full > .blk-inner { max-width: none; padding-inline: 0; }
.pad-none { padding-block: 0; }
.pad-s { padding-block: var(--space-s); }
.pad-l { padding-block: var(--space-l); }
.pad-xl { padding-block: var(--space-xl); }
.bg-surface { background: var(--surface); }
.bg-soft { background: var(--primary-soft); }
.bg-primary { background: var(--primary); color: var(--primary-ink); }
.bg-primary .muted, .bg-primary .eyebrow, .bg-primary a { color: inherit; }
.bg-accent { background: var(--accent-soft); }
.bg-dark { background: var(--ink); color: var(--bg); }
.bg-dark .muted { color: color-mix(in srgb, var(--bg) 70%, transparent); }
.bg-image { background: linear-gradient(rgb(0 0 0 / 0.45), rgb(0 0 0 / 0.45)), var(--blk-img) center / cover; color: #fff; }
.blk.center { text-align: center; }
.blk.center .section-head { justify-content: center; }
.blk.center .prose { margin-inline: auto; }
.blk-h { margin-bottom: 0.7em; }
.small-h { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted); font-family: var(--font); text-align: center; }
.blk-spacer { padding-block: var(--spacer, var(--space-m)) 0; }
.blk-button .btn { margin: 0; }
.anim-fade, .anim-rise { opacity: 0; transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.anim-rise { transform: translateY(24px); }
.anim-fade.is-in, .anim-rise.is-in { opacity: 1; transform: none; }
@media (max-width: 760px) { .hide-mobile { display: none; } }
@media (min-width: 761px) { .hide-desktop { display: none; } }

.hero { display: grid; gap: 40px; align-items: center; }
.hero-title { font-size: clamp(2.3rem, 1.3rem + 4vw, 4.6rem); line-height: 1.02; margin-bottom: 0.3em; }
.hero-text { font-size: 1.18rem; color: var(--muted); max-width: 52ch; }
.bg-primary .hero-text, .bg-dark .hero-text, .hero-cover .hero-text { color: inherit; opacity: 0.85; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-center { text-align: center; justify-items: center; }
.hero-center .hero-text { margin-inline: auto; }
.hero-center .hero-actions { justify-content: center; }
.hero-split { grid-template-columns: 1.05fr 1fr; }
.hero-media { overflow: hidden; border-radius: var(--r-l); aspect-ratio: 4 / 3.2; box-shadow: var(--shadow); }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-cover { min-height: min(78vh, 640px); align-content: end; padding: 56px; border-radius: var(--r-l); color: #fff; background: linear-gradient(180deg, transparent 30%, rgb(0 0 0 / 0.65)), var(--hero-img, var(--ink)) center / cover; }
.hero-cover .eyebrow { color: #fff; }
.hero-cover .btn-ghost { --b-fg: #fff; --b-bd: rgb(255 255 255 / 0.6); }
.cols { display: grid; gap: 28px; }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }
.col img { width: 100%; aspect-ratio: 16 / 10.5; object-fit: cover; border-radius: var(--r-l); margin-bottom: 18px; }
.col h3 { font-size: 1.25rem; }
.features { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.features li { display: flex; gap: 14px; align-items: flex-start; padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); }
.features p { margin: 4px 0 0; font-size: 0.92rem; }
.feature-ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--r); background: var(--primary-soft); color: var(--primary); flex: none; }
.feature-ic .ic { width: 22px; height: 22px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 24px; margin: 0; }
.stats div { display: flex; flex-direction: column-reverse; gap: 6px; }
.stats dd { margin: 0; font-family: var(--display); font-size: clamp(2.2rem, 1.6rem + 2vw, 3.4rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
.stats dt { color: var(--muted); font-weight: 600; }
.figure { margin: 0; }
.figure img { width: 100%; border-radius: var(--r-l); object-fit: cover; }
.ratio-wide { aspect-ratio: 16 / 9; }
.ratio-square { aspect-ratio: 1; }
.ratio-tall { aspect-ratio: 3 / 4; }
.figure figcaption, .caption { margin-top: 10px; color: var(--muted); font-size: 0.9rem; }
.gallery { display: grid; gap: 10px; }
.gallery.cols-2 { grid-template-columns: repeat(2, 1fr); }
.gallery.cols-3 { grid-template-columns: repeat(3, 1fr); }
.gallery.cols-4 { grid-template-columns: repeat(4, 1fr); }
.gallery-item { position: relative; display: block; overflow: hidden; border-radius: var(--r); aspect-ratio: 1; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item span { position: absolute; left: 10px; bottom: 10px; padding: 4px 10px; border-radius: 999px; background: rgb(0 0 0 / 0.6); color: #fff; font-size: 0.8rem; }
.video { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--r-l); background: #000; }
.video iframe, .video video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-play { position: absolute; inset: 0; width: 100%; padding: 0; border: 0; background: #111; cursor: pointer; }
.video-play img { width: 100%; height: 100%; object-fit: cover; opacity: 0.85; transition: opacity 0.2s; }
.video-play:hover img { opacity: 1; }
.video-btn { position: absolute; left: 50%; top: 50%; display: grid; place-items: center; width: 76px; height: 76px; margin: -38px 0 0 -38px; border-radius: 50%; background: rgb(255 255 255 / 0.92); color: #111; box-shadow: var(--shadow-l); transition: transform 0.2s var(--ease); }
.video-btn .ic { width: 30px; height: 30px; fill: currentColor; margin-left: 4px; }
.video-play:hover .video-btn { transform: scale(1.08); }
.cat-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.cat-tile { position: relative; display: block; overflow: hidden; aspect-ratio: 4 / 3; border-radius: var(--r-l); background: var(--surface-2); text-decoration: none; }
.cat-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.cat-tile:hover img { transform: scale(1.06); }
.cat-tile-label { position: absolute; left: 12px; right: 12px; bottom: 12px; display: flex; flex-direction: column; padding: 12px 16px; border-radius: var(--r); background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(6px); font-weight: 700; color: var(--ink); }
.cat-tile-label small { color: var(--muted); font-weight: 500; }
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.quote { margin: 0; padding: 26px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); display: grid; gap: 12px; align-content: start; }
.quote blockquote { margin: 0; font-family: var(--display); font-size: 1.18rem; line-height: 1.45; }
.quote figcaption { color: var(--muted); font-size: 0.9rem; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; margin-top: 24px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 30px 26px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); text-align: left; }
.plan-hl { border: 2px solid var(--primary); box-shadow: var(--shadow); }
.plan-tag { position: absolute; top: -12px; left: 24px; padding: 3px 10px; border-radius: 999px; background: var(--primary); color: var(--primary-ink); font-size: 0.75rem; font-weight: 800; }
.plan-price { font-family: var(--display); font-size: 2.2rem; font-weight: 700; margin: 0; }
.plan-price small { font-family: var(--font); font-size: 0.9rem; color: var(--muted); margin-left: 4px; }
.plan ul { list-style: none; padding: 0; margin: 4px 0 18px; display: grid; gap: 8px; flex: 1; }
.plan li { display: flex; gap: 8px; align-items: flex-start; }
.plan li .ic { color: var(--ok); margin-top: 3px; }
.faq { display: grid; gap: 10px; max-width: 860px; }
.blk.center .faq { margin-inline: auto; text-align: left; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 0 20px; }
.faq summary { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 18px 0; font-weight: 700; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ic { transition: transform 0.2s; }
.faq details[open] summary .ic { transform: rotate(180deg); }
.faq details > div { padding-bottom: 18px; }
.tabs { margin-top: 8px; }
.tab-list { display: flex; gap: 4px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.tab-list button { padding: 12px 18px; border: 0; border-bottom: 2px solid transparent; background: none; font: inherit; font-weight: 700; color: var(--muted); cursor: pointer; }
.tab-list button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--primary); }
.tab-panel { padding: 22px 0; }
.cta { display: grid; justify-items: center; gap: 14px; padding-block: 12px; }
.cta h2 { margin: 0; }
.countdown h2 { margin-bottom: 18px; }
.countdown-units { display: inline-grid; grid-template-columns: repeat(4, minmax(72px, 1fr)); gap: 10px; margin-bottom: 12px; }
.countdown-units div { padding: 14px 10px; border-radius: var(--r); background: var(--surface); box-shadow: var(--shadow-s); display: grid; }
.countdown-units span { font-family: var(--display); font-size: 2.2rem; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.countdown-units small { color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.7rem; margin-top: 6px; }
.logos { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 28px 48px; }
.logos img { height: 40px; width: auto; filter: grayscale(1); opacity: 0.7; transition: 0.2s; }
.logos a:hover img, .logos img:hover { filter: none; opacity: 1; }
.form-wrap { max-width: 760px; }
.blk.center .form-wrap { margin-inline: auto; text-align: left; }
.form-wrap.narrow { max-width: 560px; }
.ac-form { position: relative; }
.newsletter-blk { max-width: 620px; margin-inline: auto; }
.newsletter-blk .inline-form { justify-content: center; margin-top: 18px; }
.newsletter-blk .inline-form .field { max-width: 360px; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 40px; align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 16px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; font-size: 1.05rem; }
.contact-list .ic { width: 22px; height: 22px; color: var(--primary); margin-top: 3px; }
.map, .embed { overflow: hidden; border-radius: var(--r-l); border: 1px solid var(--line); }
.map iframe { width: 100%; height: 300px; border: 0; }
.embed iframe { width: 100%; height: 100%; border: 0; }
.posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 26px; }
.post-card { display: flex; flex-direction: column; gap: 14px; }
.post-card-media { display: block; overflow: hidden; border-radius: var(--r-l); aspect-ratio: 16 / 10; background: var(--primary-soft); }
.post-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.post-card:hover img { transform: scale(1.04); }
.post-card-ph { display: grid; place-items: center; height: 100%; font-family: var(--display); font-size: 4rem; color: var(--primary); }
.post-card h3 { font-size: 1.25rem; margin: 0 0 6px; }
.post-card h3 a { text-decoration: none; }
.post-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; color: var(--muted); font-size: 0.85rem; margin-bottom: 8px; }
.thread-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.downloads { display: grid; gap: 10px; }

/* footer */
.trust-bar { border-top: 1px solid var(--line); background: var(--surface); }
.trust-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding-block: 26px; }
.trust-row > div { display: flex; gap: 14px; align-items: center; }
.trust-row .ic { width: 30px; height: 30px; color: var(--primary); stroke-width: 1.4; }
.trust-row strong { display: block; font-size: 0.95rem; }
.trust-row small { color: var(--muted); }
.site-footer { background: var(--ink); color: color-mix(in srgb, var(--bg) 82%, transparent); padding-top: 56px; font-size: 0.93rem; }
.site-footer a { color: inherit; text-decoration: none; }
.site-footer a:hover { color: var(--bg); text-decoration: underline; }
.site-footer .logo { color: var(--bg); margin-bottom: 14px; }
.site-footer .muted { color: color-mix(in srgb, var(--bg) 60%, transparent); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 40px; }
.footer-h { color: var(--bg); font-weight: 700; margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer-contact li { display: flex; gap: 10px; align-items: center; }
.footer-news { margin-top: 20px; max-width: 380px; }
.footer-news label { color: var(--bg); }
.footer-news input { background: color-mix(in srgb, var(--bg) 8%, transparent); border-color: color-mix(in srgb, var(--bg) 22%, transparent); color: var(--bg); }
.footer-news .form-msg { margin-top: 8px; }
.pay-list { display: flex; flex-wrap: wrap; gap: 6px; }
.pay-list span { padding: 3px 10px; border: 1px solid color-mix(in srgb, var(--bg) 22%, transparent); border-radius: 6px; font-size: 0.8rem; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; padding-block: 22px; border-top: 1px solid color-mix(in srgb, var(--bg) 14%, transparent); font-size: 0.85rem; }

/* overlays */
.drawer { position: fixed; inset: 0; z-index: 90; }
.drawer-scrim { position: absolute; inset: 0; background: rgb(10 10 12 / 0.45); animation: fade 0.2s; }
.drawer-panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(440px, 100%); display: flex; flex-direction: column; background: var(--bg); box-shadow: var(--shadow-l); animation: slide 0.28s var(--ease); }
@keyframes fade { from { opacity: 0; } }
@keyframes slide { from { transform: translateX(100%); } }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { margin: 0; font-size: 1.35rem; }
.drawer-body { flex: 1; overflow: auto; padding: 8px 22px; }
.drawer-foot { padding: 18px 22px 24px; border-top: 1px solid var(--line); background: var(--surface); display: grid; gap: 10px; }
.drawer-foot .row { display: flex; justify-content: space-between; }
.drawer-foot .btn { width: 100%; }
.free-meter { font-size: 0.85rem; color: var(--muted); }
.free-meter .bar { height: 6px; margin-top: 6px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.free-meter .bar span { display: block; height: 100%; background: var(--ok); border-radius: inherit; transition: width 0.4s var(--ease); }
.lightbox { position: fixed; inset: 0; z-index: 100; display: grid; grid-template-columns: 64px 1fr 64px; align-items: center; background: rgb(8 8 10 / 0.92); }
.lightbox img { max-height: 88vh; margin: auto; object-fit: contain; border-radius: var(--r); }
.lightbox .icon-btn { background: rgb(255 255 255 / 0.1); border-color: transparent; color: #fff; margin: auto; }
.lb-close { position: absolute; top: 16px; right: 16px; }
.lb-prev { transform: rotate(180deg); }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 110; display: flex; gap: 12px; align-items: center; max-width: calc(100% - 32px); padding: 14px 18px; border-radius: var(--r); background: var(--ink); color: var(--bg); box-shadow: var(--shadow-l); font-size: 0.95rem; transform: translate(-50%, calc(100% + 48px)); visibility: hidden; transition: transform 0.3s var(--ease), visibility 0.3s; }
.toast.show { transform: translate(-50%, 0); visibility: visible; }
.toast.tone-error { background: var(--bad); color: #fff; }
.toast.tone-success { background: var(--ok); color: #fff; }
.toast a { color: inherit; font-weight: 700; }

@media (max-width: 1080px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .trust-row { grid-template-columns: repeat(2, 1fr); }
  .cols-4 { grid-template-columns: repeat(2, 1fr); }
  .carousel-track { grid-auto-columns: minmax(220px, calc((100% - 44px) / 3)); }
}
@media (max-width: 860px) {
  :root { --header-h: 62px; --space-m: 40px; --space-l: 56px; --space-xl: 80px; }
  .menu-btn { display: inline-grid; }
  .header-main { flex-wrap: wrap; gap: 10px; padding-block: 8px; }
  .logo { flex: 1; font-size: 1.15rem; }
  .search { order: 5; flex-basis: 100%; max-width: none; }
  .tool-label { display: none; }
  .tool-link { padding: 8px; }
  .count { left: 22px; }
  .site-nav { display: none; }
  .nav-open .site-nav { display: block; }
  .nav-open .nav-row { flex-direction: column; padding-block: 8px; }
  .nav-open .nav-row a { border: 0; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .hero-split, .contact-grid { grid-template-columns: 1fr; }
  .hero-cover { padding: 28px; }
  .cols-3 { grid-template-columns: 1fr; }
  .gallery.cols-3, .gallery.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .pcard-row { grid-template-columns: 110px minmax(0, 1fr); }
  .pcard-row .pcard-buy { grid-column: 2; align-items: flex-start; flex-direction: row; }
  .pcard-row .pcard-tools { display: none; }
  .carousel-track { grid-auto-columns: 62%; }
  .carousel-prev, .carousel-next { display: none; }
}
@media (max-width: 560px) {
  .grid, .density-compact .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 12px; }
  .pcard-buy .btn span { display: none; }
  .pcard-buy .btn { padding: 8px 10px; }
  .cols-2, .cols-4 { grid-template-columns: 1fr; }
  .footer-grid, .trust-row { grid-template-columns: 1fr; }
  .cat-tiles { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .cat-tile-label { left: 6px; right: 6px; bottom: 6px; padding: 8px 10px; font-size: 0.9rem; }
  .countdown-units { grid-template-columns: repeat(4, 1fr); }
  .countdown-units span { font-size: 1.6rem; }
  .announce-contact { display: none; }
}
.site-footer .small-h { text-align: left; margin: 22px 0 10px; color: inherit; opacity: 0.8; }

/* AppConfig site — page layouts: catalogue, product detail, cart, checkout, account, blog, forum, downloads. */

/* catalogue */
.cat-head { display: grid; gap: 24px; margin-bottom: 22px; }
.cat-head.has-image { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: center; }
.cat-head img { order: 2; width: 100%; aspect-ratio: 10 / 3.4; object-fit: cover; border-radius: var(--r-l); }
.cat-intro { color: var(--muted); }
.listing { display: grid; gap: 28px; align-items: start; }
.listing.has-facets { grid-template-columns: 260px minmax(0, 1fr); }
.listing-search { grid-column: 1 / -1; position: relative; display: flex; align-items: center; gap: 10px; }
.listing-search > .ic { position: absolute; left: 16px; color: var(--muted); }
.listing-search input { padding-left: 46px; min-height: 54px; font-size: 1.05rem; border-radius: var(--r); }
.listing-search .btn { min-height: 54px; }
.facets { position: sticky; top: calc(var(--header-h) + 60px); display: grid; gap: 4px; max-height: calc(100vh - var(--header-h) - 80px); overflow: auto; padding-right: 6px; }
.facets-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.facets-head strong { display: inline-flex; gap: 8px; align-items: center; }
.facets-close { display: none; }
.facet { border: 0; border-bottom: 1px solid var(--line); margin: 0; padding: 16px 0; display: grid; gap: 10px; }
.facet legend { float: left; width: 100%; padding: 0; margin-bottom: 10px; font-weight: 700; font-size: 0.95rem; }
.facet .check { font-size: 0.92rem; align-items: center; }
.facet-n { margin-left: auto; color: var(--muted); font-size: 0.8rem; }
.facet-list { display: grid; gap: 9px; max-height: 260px; overflow: auto; }
.facet-range { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; }
.facet-range input { min-height: 40px; padding: 8px 10px; }
.facet-range label { margin: 0; }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 12px 0 16px; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.toolbar-count { font-weight: 700; }
.toolbar .chips { flex: 1 1 200px; }
.toolbar-field { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-weight: 600; font-size: 0.88rem; color: var(--muted); }
.toolbar-field select { min-height: 38px; width: auto; padding-block: 6px; font-weight: 600; color: var(--ink); }
.view-toggle { display: inline-flex; gap: 4px; }
.view-toggle .icon-btn { width: 38px; height: 38px; }
.facets-open { display: none; }
.empty { padding: 48px 0; text-align: center; color: var(--muted); }
.pager { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin-top: 36px; }
.pager button { min-width: 42px; height: 42px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); font: inherit; font-weight: 700; cursor: pointer; }
.pager button[aria-current="page"] { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.pager .pager-more { padding-inline: 22px; }

/* product detail */
.pd { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.pd-gallery { position: sticky; top: calc(var(--header-h) + 54px); display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 14px; }
.pd-stage { position: relative; grid-column: 2; grid-row: 1; }
.pd-main { display: block; overflow: hidden; border-radius: var(--r-l); background: var(--surface-2); aspect-ratio: 1; cursor: zoom-in; }
.pd-main img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s var(--ease); }
.pd-main:hover img { transform: scale(1.04); }
.pd-thumbs { grid-column: 1; grid-row: 1; display: flex; flex-direction: column; gap: 10px; }
.pd-thumb { position: relative; display: grid; place-items: center; width: 76px; height: 76px; padding: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); cursor: pointer; color: var(--muted); font: inherit; font-size: 0.72rem; font-weight: 700; }
.pd-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pd-thumb.is-active { border: 2px solid var(--primary); }
.pd-thumb-video { gap: 2px; align-content: center; }
.pd-thumb-video .ic { width: 22px; height: 22px; fill: currentColor; }
.pd-brand { margin: 0 0 6px; font-size: 0.8rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.pd-brand a { color: var(--primary); text-decoration: none; }
.pd-title { font-size: clamp(1.7rem, 1.2rem + 1.6vw, 2.5rem); margin-bottom: 12px; }
.pd-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; font-size: 0.88rem; margin-bottom: 18px; }
.pd-rating { display: inline-flex; gap: 6px; align-items: center; text-decoration: none; }
[data-copy] { cursor: copy; border-bottom: 1px dashed var(--line-strong); }
.pd-highlights { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 8px; }
.pd-highlights li { display: flex; gap: 10px; align-items: flex-start; }
.pd-highlights .ic { color: var(--ok); margin-top: 3px; }
.buybox { margin-top: 22px; padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); box-shadow: var(--shadow-s); display: grid; gap: 10px; }
.vat { margin: -4px 0 0; }
.delivery-est { display: flex; gap: 10px; align-items: flex-start; margin: 0; font-size: 0.92rem; }
.delivery-est .ic { color: var(--primary); margin-top: 2px; }
.buy { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 6px; }
.buy .btn-buy { flex: 1; min-width: 200px; }
.qty { display: inline-grid; grid-template-columns: 44px 60px 44px; align-items: center; border: 1px solid var(--line-strong); border-radius: var(--r); background: var(--surface); }
.qty .icon-btn { border: 0; width: 44px; height: 50px; background: transparent; font-size: 1.2rem; }
.qty input { border: 0; min-height: 50px; padding: 0; text-align: center; font-weight: 700; background: transparent; -moz-appearance: textfield; }
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.qty input:focus { box-shadow: none; }
.qty-sm { grid-template-columns: 34px 44px 34px; }
.qty-sm .icon-btn, .qty-sm input { height: 38px; min-height: 38px; width: auto; }
.pd-actions { display: flex; flex-wrap: wrap; gap: 18px; padding-top: 10px; border-top: 1px solid var(--line); margin-top: 6px; }
.pd-trust { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--muted); font-size: 0.88rem; }
.pd-trust li { display: inline-flex; align-items: center; gap: 7px; }
.pd-tabs { position: sticky; top: var(--header-h); z-index: 30; margin: 48px 0 0; background: color-mix(in srgb, var(--bg) 94%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.pd-tabs-row { display: flex; gap: 4px; overflow-x: auto; }
.pd-tabs a { padding: 16px 16px 14px; font-weight: 700; text-decoration: none; color: var(--muted); border-bottom: 2px solid transparent; white-space: nowrap; }
.pd-tabs a.is-active, .pd-tabs a:hover { color: var(--ink); border-bottom-color: var(--primary); }
.pd-sections { display: grid; gap: 0; }
.pd-section { padding: 44px 0; border-bottom: 1px solid var(--line); }
.pd-section > h2 { margin-bottom: 20px; }
.pd-desc { max-width: 76ch; font-size: 1.04rem; }
.pd-desc-video { max-width: 900px; margin-top: 28px; }
.pd-desc-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 28px; }
.pd-desc-gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--r); }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.spec-groups { columns: 2 380px; column-gap: 40px; }
.specs { break-inside: avoid; margin-bottom: 28px; font-size: 0.94rem; }
.specs caption { text-align: left; font-weight: 800; padding-bottom: 10px; }
.specs th, .specs td { padding: 11px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.specs th { width: 46%; font-weight: 500; color: var(--muted); padding-right: 16px; }
.reviews-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 32px; align-items: center; padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); margin-bottom: 24px; }
.score { display: grid; justify-items: center; gap: 4px; }
.score strong { font-family: var(--display); font-size: 3rem; line-height: 1; }
.histogram { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; max-width: 420px; font-size: 0.85rem; }
.histogram li { display: grid; grid-template-columns: 34px 1fr 24px; align-items: center; gap: 10px; }
.histogram .bar { height: 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.histogram .bar span { display: block; height: 100%; background: #f2a91c; border-radius: inherit; }
.review-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.review { padding: 20px 0; border-bottom: 1px solid var(--line); }
.review-top { display: flex; gap: 10px; align-items: center; margin-bottom: 8px; }
.review p { margin: 0 0 6px; }
.review .ic { color: var(--ok); vertical-align: -2px; }
.review-form { margin-top: 24px; padding: 26px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); max-width: 720px; }
.rating-input { display: inline-flex; flex-direction: row-reverse; gap: 2px; margin-bottom: 16px; }
.rating-input input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rating-input label { margin: 0; font-size: 2rem; line-height: 1; color: var(--line-strong); cursor: pointer; transition: color 0.1s; }
.rating-input input:checked ~ label, .rating-input label:hover, .rating-input label:hover ~ label { color: #f2a91c; }
.rating-input input:focus-visible + label { outline: 2px solid var(--primary); border-radius: 4px; }
.doc-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.doc-list a { display: inline-flex; gap: 10px; align-items: center; font-weight: 600; }
.pd-more { padding-top: 48px; }
.sticky-buy { position: fixed; left: 0; right: 0; bottom: 0; z-index: 35; background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -10px 30px -20px rgb(0 0 0 / 0.4); animation: up 0.25s var(--ease); }
@keyframes up { from { transform: translateY(100%); } }
.sticky-row { display: flex; align-items: center; gap: 16px; min-height: 70px; }
.sticky-row img { width: 48px; height: 48px; object-fit: cover; border-radius: var(--r-s); }
.sticky-title { flex: 1; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pd-cta { margin-top: 24px; }

/* cart & checkout */
.cart-layout, .checkout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 32px; align-items: start; }
.cart-lines { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); }
.cart-line { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto auto; gap: 18px; align-items: center; padding: 18px 20px; }
.cart-line + .cart-line { border-top: 1px solid var(--line); }
.cart-line img { width: 96px; height: 96px; object-fit: cover; border-radius: var(--r); }
.cart-line-title { font-weight: 700; text-decoration: none; }
.cart-line-total { font-weight: 800; min-width: 100px; text-align: right; }
.cart-line .link-btn { font-size: 0.82rem; margin-top: 6px; }
.summary { position: sticky; top: calc(var(--header-h) + 60px); display: grid; gap: 12px; padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); box-shadow: var(--shadow-s); }
.summary h2 { font-size: 1.3rem; margin: 0 0 4px; }
.sum-row { display: flex; justify-content: space-between; gap: 12px; margin: 0; }
.sum-total { padding-top: 12px; border-top: 1px solid var(--line); font-size: 1.2rem; font-weight: 800; }
.sum-lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 0.92rem; }
.sum-lines li { display: grid; grid-template-columns: 48px 1fr auto; gap: 10px; align-items: center; }
.sum-lines img { width: 48px; height: 48px; object-fit: cover; border-radius: var(--r-s); }
.coupon { display: flex; gap: 8px; }
.checkout-main { display: grid; gap: 18px; }
.co-section { margin: 0; padding: 24px; border: 1px solid var(--line); border-radius: var(--r-l); background: var(--surface); }
.co-section legend { display: flex; align-items: center; gap: 12px; padding: 0 8px; margin-left: -8px; font-family: var(--display); font-size: 1.25rem; font-weight: 600; }
.co-num { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--primary); color: var(--primary-ink); font-family: var(--font); font-size: 0.9rem; font-weight: 800; }
.options { display: grid; gap: 10px; }
.option { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; margin: 0; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r); font-weight: 400; cursor: pointer; transition: border-color 0.15s, background 0.15s; }
.option:hover { border-color: var(--line-strong); }
.option:has(input:checked) { border-color: var(--primary); background: var(--primary-soft); box-shadow: inset 0 0 0 1px var(--primary); }
.option strong { display: block; }
.option small { color: var(--muted); }
.option-price { font-weight: 800; }
.secure-note { display: flex; gap: 8px; align-items: center; color: var(--muted); font-size: 0.85rem; }
.empty-state { padding: 64px 24px; text-align: center; background: var(--surface); border: 1px dashed var(--line-strong); border-radius: var(--r-l); }
.empty-state .ic { width: 48px; height: 48px; color: var(--muted); margin: 0 auto 12px; stroke-width: 1.2; }

/* order + account */
.timeline { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); margin: 24px 0 32px; padding: 0; counter-reset: st; }
.timeline li { position: relative; padding-top: 38px; text-align: center; font-size: 0.85rem; font-weight: 600; color: var(--muted); }
.timeline li::before { counter-increment: st; content: counter(st); position: absolute; top: 0; left: 50%; z-index: 1; display: grid; place-items: center; width: 28px; height: 28px; margin-left: -14px; border-radius: 50%; background: var(--surface-2); border: 2px solid var(--line); font-size: 0.78rem; }
.timeline li + li::after { content: ""; position: absolute; top: 13px; right: 50%; width: 100%; height: 2px; background: var(--line); }
.timeline li.done { color: var(--ink); }
.timeline li.done::before { content: "✓"; background: var(--ok); border-color: var(--ok); color: #fff; }
.timeline li.done::after { background: var(--ok); }
.order-grid, .account-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; align-items: start; }
.pay-box { padding: 18px; border-radius: var(--r); background: var(--accent-soft); display: grid; gap: 6px; }
.pay-box code { font-size: 1.1rem; font-weight: 800; }
.status-pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; font-size: 0.82rem; font-weight: 800; background: var(--surface-2); }
.status-paid, .status-delivered, .status-shipped, .status-fulfilled { background: var(--ok-soft); color: var(--ok); }
.status-pending { background: var(--accent-soft); color: var(--warn); }
.status-cancelled, .status-refunded { background: var(--bad-soft); color: var(--bad); }
.account-nav { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 24px; overflow-x: auto; }
.account-nav button { padding: 12px 16px; border: 0; border-bottom: 2px solid transparent; background: none; font: inherit; font-weight: 700; color: var(--muted); cursor: pointer; white-space: nowrap; }
.account-nav button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--primary); }
.auth-card { max-width: 460px; margin: 12px auto 0; padding: 32px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); box-shadow: var(--shadow); }
.auth-card h2 { font-size: 1.5rem; }
.code-input { font-size: 1.6rem; letter-spacing: 0.5em; text-align: center; font-weight: 800; font-variant-numeric: tabular-nums; }
.data-table { width: 100%; font-size: 0.94rem; }
.data-table th { text-align: left; font-weight: 700; color: var(--muted); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.data-table td { padding: 14px 12px; border-bottom: 1px solid var(--line); }
.data-table .num { text-align: right; font-weight: 700; }
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); }

/* compare */
.compare-table { min-width: 640px; background: var(--surface); }
.compare-table th, .compare-table td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; font-size: 0.92rem; }
.compare-table thead td { vertical-align: bottom; }
.compare-table thead img { width: 120px; height: 120px; object-fit: cover; border-radius: var(--r); margin-bottom: 8px; }
.compare-table th { width: 200px; color: var(--muted); font-weight: 600; }
.compare-table tr.diff td { background: color-mix(in srgb, var(--accent-soft) 60%, transparent); }

/* blog */
.post-feature { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 32px; align-items: center; margin-bottom: 40px; text-decoration: none; }
.post-feature img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r-l); }
.post-feature strong { display: block; font-family: var(--display); font-size: var(--h2); line-height: 1.15; margin: 6px 0 12px; }
.post { max-width: 820px; }
.post-head { padding-top: 12px; }
.post-cover { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; border-radius: var(--r-l); margin: 12px 0 32px; }
.post-body { font-size: 1.1rem; max-width: 72ch; }
.post-foot { margin: 40px 0; padding-top: 20px; border-top: 1px solid var(--line); }

/* forum */
.forum-bar { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.forum-bar input { max-width: 320px; }
.thread-row { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 16px 4px; border-bottom: 1px solid var(--line); }
.thread-row a { font-weight: 700; text-decoration: none; }
.thread-row .avatar, .post-item .avatar { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--primary-soft); color: var(--primary); font-weight: 800; }
.thread-meta { color: var(--muted); font-size: 0.85rem; }
.thread-count { display: grid; justify-items: center; min-width: 64px; font-weight: 800; }
.thread-count small { font-weight: 500; color: var(--muted); font-size: 0.75rem; }
.pin { color: var(--primary); font-size: 0.78rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; margin-right: 6px; }
.post-item { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.post-item .post-text { white-space: pre-wrap; overflow-wrap: anywhere; }
.post-item.is-op { padding: 26px; border: 1px solid var(--line); border-radius: var(--r-l); background: var(--surface); }
.composer { margin-top: 26px; padding: 24px; border: 1px solid var(--line); border-radius: var(--r-l); background: var(--surface); }

/* downloads */
.file-row { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.file-ic { display: grid; place-items: center; width: 48px; height: 48px; border-radius: var(--r); background: var(--primary-soft); color: var(--primary); font-size: 0.7rem; font-weight: 800; text-transform: uppercase; }
.file-row p { margin: 2px 0 0; font-size: 0.88rem; }
.file-lock { display: inline-flex; gap: 4px; align-items: center; color: var(--warn); font-size: 0.8rem; font-weight: 700; }
.file-group { margin: 26px 0 12px; font-size: 1.1rem; }

/* 404 */
.notfound { max-width: 640px; margin: 40px auto; text-align: center; }
.nf-code { font-family: var(--display); font-size: clamp(5rem, 3rem + 10vw, 10rem); font-weight: 700; line-height: 1; margin: 0; color: var(--primary); opacity: 0.25; }
.nf-search { margin: 26px 0; }

@media (max-width: 1080px) {
  .listing.has-facets { grid-template-columns: 1fr; }
  .facets { position: fixed; inset: 0 auto 0 0; z-index: 95; width: min(360px, 90%); max-height: none; padding: 20px; background: var(--bg); box-shadow: var(--shadow-l); transform: translateX(-105%); transition: transform 0.3s var(--ease); }
  .facets.is-open { transform: none; }
  .facets-close, .facets-open { display: inline-flex; }
  .pd { grid-template-columns: 1fr; gap: 28px; }
  .pd-gallery { position: static; max-width: 720px; width: 100%; margin-inline: auto; }
  .cart-layout, .checkout, .order-grid, .account-grid { grid-template-columns: 1fr; }
  .summary { position: static; }
}
@media (max-width: 760px) {
  .cat-head.has-image { grid-template-columns: 1fr; }
  .pd-gallery { grid-template-columns: 1fr; }
  .pd-stage, .pd-thumbs { grid-column: 1; grid-row: auto; }
  .pd-thumbs { flex-direction: row; overflow-x: auto; }
  .pd-thumb { flex: none; width: 64px; height: 64px; }
  .reviews-head { grid-template-columns: 1fr; justify-items: start; }
  .cart-line { grid-template-columns: 72px minmax(0, 1fr); }
  .cart-line img { width: 72px; height: 72px; }
  .cart-line .qty, .cart-line-total { grid-column: 2; text-align: left; }
  .timeline { grid-template-columns: repeat(5, minmax(64px, 1fr)); overflow-x: auto; }
  .post-feature { grid-template-columns: 1fr; }
  .pd-desc-gallery { grid-template-columns: 1fr 1fr; }
  .sticky-title, .sticky-row .price-box s, .sticky-row .price-off { display: none; }
  .sticky-row { justify-content: space-between; }
}

/* AppConfig site — themes. Each one is a complete character on top of the same markup:
   atelier (editorial luxury) · market (dense retail) · nordic (soft and airy) · noir (dark premium) · studio (bold graphic). */

/* ---------- Atelier: editorial, quiet luxury ---------- */
.theme-atelier { --r: 2px; --r-l: 2px; --r-s: 2px; --btn-case: uppercase; --btn-track: 0.12em; --btn-weight: 600; --h1: clamp(2.4rem, 1.2rem + 4.4vw, 4.8rem); --track-display: -0.01em; }
.theme-atelier h1, .theme-atelier h2 { font-weight: 400; }
.theme-atelier .btn { font-size: 0.8rem; min-height: 48px; padding-inline: 28px; }
.theme-atelier .announce { background: var(--bg); color: var(--muted); border-bottom: 1px solid var(--line); letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.72rem; }
.theme-atelier .site-header { background: var(--bg); }
.theme-atelier .header-main { min-height: 84px; }
.theme-atelier .logo { font-weight: 400; font-size: 1.7rem; letter-spacing: 0.02em; }
.theme-atelier .logo-mark { display: none; }
.theme-atelier .search input { border-radius: 0; border-width: 0 0 1px; background: transparent; padding-right: 16px; }
.theme-atelier .btn-search { display: none; }
.theme-atelier .nav-row { justify-content: center; gap: 18px; }
.theme-atelier .nav-row a { font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 600; }
.theme-atelier .pcard-media { border-radius: 0; }
.theme-atelier .pcard-body { text-align: center; padding-top: 18px; }
.theme-atelier .pcard-rating { justify-content: center; }
.theme-atelier .pcard-title { font-family: var(--display); font-size: 1.15rem; font-weight: 400; }
.theme-atelier .pcard-buy { justify-content: center; flex-direction: column; gap: 8px; }
.theme-atelier .pcard-buy .btn { opacity: 0; transform: translateY(6px); transition: 0.25s var(--ease); }
.theme-atelier .pcard:hover .pcard-buy .btn, .theme-atelier .pcard:focus-within .pcard-buy .btn { opacity: 1; transform: none; }
.theme-atelier .price { font-weight: 500; }
.theme-atelier .badge-tag { border-radius: 0; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.65rem; }
.theme-atelier .hero-title { font-weight: 400; font-style: italic; }
.theme-atelier .hero-media, .theme-atelier .cat-tile, .theme-atelier .post-card-media, .theme-atelier .col img { border-radius: 0; box-shadow: none; }
.theme-atelier .features li, .theme-atelier .quote, .theme-atelier .plan, .theme-atelier .buybox, .theme-atelier .summary, .theme-atelier .co-section, .theme-atelier .panel { box-shadow: none; }
.theme-atelier .features li { background: transparent; border: 0; border-top: 1px solid var(--ink); padding: 22px 0 0; }
.theme-atelier .feature-ic { background: transparent; color: var(--ink); width: auto; }
.theme-atelier .quote blockquote { font-style: italic; font-size: 1.35rem; }
.theme-atelier .site-footer { background: var(--surface); color: var(--muted); border-top: 1px solid var(--line); }
.theme-atelier .site-footer .logo, .theme-atelier .footer-h, .theme-atelier .footer-news label { color: var(--ink); }
.theme-atelier .site-footer a:hover { color: var(--ink); }
.theme-atelier .footer-news input { background: var(--bg); border-color: var(--line-strong); color: var(--ink); }
.theme-atelier .pay-list span { border-color: var(--line); }
.theme-atelier .footer-bottom { border-color: var(--line); }
.theme-atelier .trust-bar { background: var(--bg); }
.theme-atelier .trust-row .ic { color: var(--ink); }
@media (min-width: 861px) {
  .theme-atelier .header-main { display: grid; grid-template-columns: 1fr auto 1fr; }
  .theme-atelier .logo { grid-column: 2; grid-row: 1; justify-self: center; }
  .theme-atelier .search { grid-column: 1; grid-row: 1; max-width: 280px; margin: 0; }
  .theme-atelier .header-tools { grid-column: 3; grid-row: 1; justify-self: end; }
  .theme-atelier .header-spacer { grid-column: 1; }
}

/* ---------- Market: dense, information-rich retail ---------- */
.theme-market { --r: 8px; --r-l: 10px; --r-s: 6px; --wrap: 1360px; --h1: clamp(1.7rem, 1.2rem + 1.8vw, 2.5rem); --h2: clamp(1.3rem, 1.1rem + 0.8vw, 1.7rem); --track-display: -0.015em; --bg: color-mix(in srgb, var(--sf-bg) 55%, #eef0f3); }
.theme-market .site-header { background: var(--primary); color: var(--primary-ink); border: 0; backdrop-filter: none; }
.theme-market .header-main { min-height: 76px; }
.theme-market .logo, .theme-market .logo:hover { color: var(--primary-ink); }
.theme-market .logo-mark { background: var(--accent); color: var(--accent-ink); }
.theme-market .search { max-width: 760px; }
.theme-market .search input { border: 0; border-radius: var(--r); min-height: 50px; padding-right: 120px; box-shadow: 0 2px 0 rgb(0 0 0 / 0.08); }
.theme-market .btn-search { border-radius: var(--r-s); --b-bg: var(--accent); --b-fg: var(--accent-ink); --b-bd: var(--accent); min-height: 42px; }
.theme-market .tool-link { color: var(--primary-ink); }
.theme-market .tool-link:hover { background: color-mix(in srgb, var(--primary-ink) 12%, transparent); color: var(--primary-ink); }
.theme-market .tool-sub { color: color-mix(in srgb, var(--primary-ink) 70%, transparent); }
.theme-market .count { box-shadow: 0 0 0 2px var(--primary); }
.theme-market .site-nav { background: var(--surface); border-top: 0; border-bottom: 1px solid var(--line); }
.theme-market .nav-row a { color: var(--ink); font-size: 0.9rem; }
.theme-market .menu-btn { background: transparent; color: var(--primary-ink); border-color: color-mix(in srgb, var(--primary-ink) 30%, transparent); }
.theme-market .pcard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); padding: 12px; transition: box-shadow 0.2s, border-color 0.2s; }
.theme-market .pcard:hover { box-shadow: var(--shadow); border-color: transparent; }
.theme-market .pcard-media { border-radius: var(--r); background: #fff; }
.theme-market .pcard-media img { object-fit: contain; padding: 6px; }
.theme-market .pcard:hover .pcard-media img { transform: none; }
.theme-market .pcard-row { background: var(--surface); padding: 16px; margin-bottom: 10px; border-radius: var(--r-l); }
.theme-market .grid { gap: 12px; grid-template-columns: repeat(auto-fill, minmax(214px, 1fr)); }
.theme-market .price { font-size: 1.28rem; color: var(--sale); }
.theme-market .price-box-lg .price { font-size: 2.3rem; }
.theme-market .btn-buy { --b-bg: var(--ok); --b-bd: var(--ok); --b-fg: #fff; }
.theme-market .btn-buy:hover { --b-bg: color-mix(in srgb, var(--ok) 85%, #000); }
.theme-market .announce { background: var(--accent); color: var(--accent-ink); font-weight: 600; }
.theme-market .listing.has-facets { grid-template-columns: 250px minmax(0, 1fr); }
.theme-market .facets { background: var(--surface); padding: 16px; border-radius: var(--r-l); border: 1px solid var(--line); }
.theme-market .toolbar { background: var(--surface); padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--r-l); }
.theme-market .pd-section, .theme-market .pd-more { background: var(--surface); padding: 28px; border: 1px solid var(--line); border-radius: var(--r-l); margin-top: 16px; }
.theme-market .pd-sections { gap: 0; }
.theme-market .pd-tabs { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); }
.theme-market .pd { background: var(--surface); padding: 28px; border-radius: var(--r-l); border: 1px solid var(--line); }
.theme-market .buybox { background: var(--surface-2); box-shadow: none; }
.theme-market .hero-split, .theme-market .hero-center { background: var(--surface); padding: 40px; border-radius: var(--r-l); }
.theme-market .blk { padding-block: 28px; }
.theme-market .cat-tiles { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.theme-market .cat-tile { aspect-ratio: auto; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); }
.theme-market .cat-tile img { aspect-ratio: 1; height: auto; object-fit: contain; padding: 10px; background: #fff; }
.theme-market .cat-tile-label { position: static; background: none; backdrop-filter: none; padding: 10px 12px; text-align: center; }
.theme-market .trust-bar { background: var(--primary); color: var(--primary-ink); border: 0; }
.theme-market .trust-row .ic { color: var(--accent); }
.theme-market .trust-row small { color: color-mix(in srgb, var(--primary-ink) 70%, transparent); }

/* ---------- Nordic: soft, rounded, calm ---------- */
.theme-nordic { --r: 14px; --r-l: 24px; --r-s: 10px; --h1: clamp(2.2rem, 1.3rem + 3.4vw, 4rem); }
.theme-nordic .btn { border-radius: 999px; padding-inline: 24px; }
.theme-nordic .icon-btn { border-radius: 50%; }
.theme-nordic .site-header { border-bottom-color: transparent; }
.theme-nordic .site-header.is-scrolled { border-bottom-color: var(--line); }
.theme-nordic .site-nav { border-top: 0; }
.theme-nordic .nav-row a { border: 0; border-radius: 999px; padding: 8px 16px; margin-bottom: 10px; }
.theme-nordic .nav-row a:hover { background: var(--primary-soft); color: var(--primary); }
.theme-nordic .pcard { background: var(--surface); border-radius: var(--r-l); padding: 10px 10px 16px; transition: transform 0.25s var(--ease), box-shadow 0.25s; }
.theme-nordic .pcard:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.theme-nordic .pcard-media { border-radius: calc(var(--r-l) - 6px); }
.theme-nordic .pcard-body, .theme-nordic .pcard-buy { padding-inline: 8px; }
.theme-nordic .hero-split, .theme-nordic .hero-center { padding: clamp(28px, 4vw, 64px); border-radius: 32px; background: var(--surface); }
.theme-nordic .bg-soft .hero { background: transparent; padding: 0; }
.theme-nordic .hero-media { border-radius: 28px; }
.theme-nordic .features li { border: 0; background: var(--primary-soft); }
.theme-nordic .feature-ic { background: var(--surface); border-radius: 50%; }
.theme-nordic .quote { border: 0; background: var(--accent-soft); }
.theme-nordic .site-footer { background: var(--primary-soft); color: var(--muted); }
.theme-nordic .site-footer .logo, .theme-nordic .footer-h, .theme-nordic .footer-news label { color: var(--ink); }
.theme-nordic .site-footer a:hover { color: var(--primary); }
.theme-nordic .footer-news input { background: var(--surface); border-color: var(--line); color: var(--ink); }
.theme-nordic .pay-list span, .theme-nordic .footer-bottom { border-color: var(--line); }
.theme-nordic .trust-bar { background: var(--bg); border: 0; }
.theme-nordic .trust-row > div { background: var(--surface); padding: 16px; border-radius: var(--r-l); }
.theme-nordic input, .theme-nordic select, .theme-nordic textarea { border-radius: var(--r); }

/* ---------- Noir: dark premium ---------- */
.theme-noir { --bg: #0c0c0e; --surface: #141417; --surface-2: #1b1b1f; --ink: #f2efe9; --muted: #9a968e; --line: #26262b; --primary-soft: color-mix(in srgb, var(--sf-primary) 22%, #0c0c0e); --accent-soft: color-mix(in srgb, var(--sf-accent) 18%, #0c0c0e); --r: 4px; --r-l: 6px; --r-s: 3px; --btn-case: uppercase; --btn-track: 0.14em; --track-display: 0; color-scheme: dark; }
.theme-noir .btn { font-size: 0.78rem; }
.theme-noir .btn-primary, .theme-noir .btn-buy { --b-bg: var(--accent); --b-fg: var(--accent-ink); --b-bd: var(--accent); }
.theme-noir .btn-primary:hover, .theme-noir .btn-buy:hover { --b-bg: color-mix(in srgb, var(--accent) 85%, #fff); }
.theme-noir a:hover, .theme-noir .more, .theme-noir .eyebrow, .theme-noir .pd-brand a { color: var(--accent); }
.theme-noir h1, .theme-noir h2 { font-weight: 400; text-transform: uppercase; letter-spacing: 0.04em; }
.theme-noir .hero-title { font-size: clamp(2.2rem, 1rem + 4vw, 4.2rem); }
.theme-noir .site-header { background: color-mix(in srgb, #0c0c0e 80%, transparent); }
.theme-noir .logo { text-transform: uppercase; letter-spacing: 0.2em; font-weight: 400; font-size: 1.1rem; }
.theme-noir .logo-mark { background: transparent; border: 1px solid var(--accent); color: var(--accent); border-radius: 50%; }
.theme-noir .nav-row a { text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.74rem; }
.theme-noir .nav-row a:hover { border-bottom-color: var(--accent); }
.theme-noir .announce { background: var(--accent); color: var(--accent-ink); }
.theme-noir .pcard-media { border: 1px solid var(--line); }
.theme-noir .pcard-title { font-weight: 400; letter-spacing: 0.02em; }
.theme-noir .price { color: var(--accent); font-weight: 500; }
.theme-noir .badge-tag { background: var(--accent); color: var(--accent-ink); border-radius: 0; }
.theme-noir .count { box-shadow: 0 0 0 2px #0c0c0e; }
.theme-noir .site-footer { background: #070708; border-top: 1px solid var(--line); }
.theme-noir .trust-bar { background: var(--surface); border-color: var(--line); }
.theme-noir .trust-row .ic { color: var(--accent); }
.theme-noir .stars-on, .theme-noir .histogram .bar span { color: var(--accent); background-color: currentColor; }
.theme-noir .stars-on { background: none; }
.theme-noir select { background-image: 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 1l5 5 5-5' fill='none' stroke='%23aaa' stroke-width='1.6'/%3E%3C/svg%3E"); }
.theme-noir .bg-soft { background: var(--surface); }

/* ---------- Studio: bold, graphic, high contrast ---------- */
.theme-studio { --r: 0px; --r-l: 0px; --r-s: 0px; --line: color-mix(in srgb, var(--sf-ink) 85%, transparent); --line-strong: var(--sf-ink); --shadow: 6px 6px 0 var(--sf-ink); --shadow-s: 3px 3px 0 var(--sf-ink); --btn-weight: 800; --track-display: -0.04em; --h1: clamp(2.6rem, 1.2rem + 5vw, 5.6rem); }
.theme-studio h1, .theme-studio h2, .theme-studio .logo { font-weight: 800; }
.theme-studio .hero-title { text-transform: uppercase; line-height: 0.95; }
.theme-studio .btn { border-width: 2px; box-shadow: 3px 3px 0 var(--ink); }
.theme-studio .btn:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); }
.theme-studio .btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.theme-studio .btn-link { box-shadow: none; border: 0; }
.theme-studio .site-header { border-bottom: 2px solid var(--ink); background: var(--bg); }
.theme-studio .site-nav { border-top: 2px solid var(--ink); }
.theme-studio .nav-row a { text-transform: uppercase; font-weight: 800; font-size: 0.82rem; color: var(--ink); }
.theme-studio .nav-row a:hover { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.theme-studio .search input { border: 2px solid var(--ink); border-radius: 0; }
.theme-studio .btn-search { border-radius: 0; box-shadow: none; }
.theme-studio .logo-mark { border-radius: 0; background: var(--accent); color: var(--accent-ink); border: 2px solid var(--ink); }
.theme-studio .pcard { border: 2px solid var(--ink); background: var(--surface); padding: 0; }
.theme-studio .pcard-media { border-bottom: 2px solid var(--ink); }
.theme-studio .pcard-body, .theme-studio .pcard-buy { padding-inline: 14px; }
.theme-studio .pcard-buy { padding-bottom: 14px; }
.theme-studio .pcard:hover { box-shadow: 6px 6px 0 var(--primary); transform: translate(-2px, -2px); transition: 0.15s; }
.theme-studio .badge-tag { border-radius: 0; border: 2px solid var(--ink); }
.theme-studio .announce { background: var(--accent); color: var(--accent-ink); font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; border-bottom: 2px solid var(--ink); }
.theme-studio .features li, .theme-studio .quote, .theme-studio .plan, .theme-studio .buybox, .theme-studio .summary, .theme-studio .co-section, .theme-studio .cart-lines, .theme-studio .faq details { border-width: 2px; border-color: var(--ink); box-shadow: var(--shadow-s); }
.theme-studio .hero-media, .theme-studio .cat-tile, .theme-studio .post-card-media, .theme-studio .col img, .theme-studio .pd-main { border: 2px solid var(--ink); box-shadow: var(--shadow); }
.theme-studio .cat-tile-label { border: 2px solid var(--ink); text-transform: uppercase; }
.theme-studio .site-footer { background: var(--ink); border-top: 2px solid var(--ink); }
.theme-studio .trust-bar { border-top: 2px solid var(--ink); background: var(--accent-soft); }
.theme-studio .trust-row .ic { color: var(--ink); }
.theme-studio .price-off { border-radius: 0; }
