/* =========================================================
   Borsa — storefront design system
   Palette: espresso · cognac · cream · off-white.
   Brand colours and fonts are overridden at runtime from
   «Admin → Appearance» (partials/theme_head.html).
   ========================================================= */
:root {
  --primary: #2a1d17;      /* espresso */
  --espresso: #2a1d17;
  --espresso-2: #35291f;
  --accent: #9a5a31;       /* cognac */
  --accent-dark: #784626;
  --accent-soft: #f2e9df;
  --tan: #b88c6f;
  --paper: #fbf7f1;        /* off-white */
  --bg: #f6f0e9;           /* cream */
  --sand: #efe5da;
  --sand-2: #e5d8cb;
  --line: #e9ddd1;
  --line-2: #ddcdbe;
  --ink: #1f1712;
  --ink-2: #4c433d;
  --muted: #6e6762;
  --on-dark: #f3e9de;
  --on-dark-muted: #b0a59e;
  --ok: #3d6b45;
  --ok-soft: #e3eee2;
  --warn: #a8661a;
  --danger: #a8372b;
  --danger-soft: #f7e2dd;
  --star: #b07a2a;
  --radius: 3px;
  --radius-lg: 10px;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: Manrope, "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --header-h: 84px;
  --shadow: 0 24px 48px -24px rgba(42, 29, 23, .35);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html, body { overflow-x: clip; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 15.5px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent); }
p { margin: 0 0 1em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 20px 0; }
code { background: var(--sand); padding: 2px 6px; border-radius: 3px; font-size: 13px; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
main:focus { outline: none; }
[hidden] { display: none !important; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--primary); color: var(--on-dark); padding: 10px 16px; border-radius: var(--radius); font-weight: 600; font-size: 14px; transition: top .2s; }
.skip-link:focus { top: 12px; color: var(--on-dark); }

h1, h2, h3, .serif { font-family: var(--serif); font-weight: 500; line-height: 1.08; letter-spacing: -.01em; margin: 0 0 .45em; text-wrap: balance; }
h1 { font-size: clamp(36px, 4.8vw, 60px); }
h2 { font-size: clamp(30px, 3.4vw, 44px); }
h3 { font-size: 25px; }
h1 em, h2 em { font-style: italic; color: var(--accent); }
h4 { font: 600 11px/1.4 var(--sans); text-transform: uppercase; letter-spacing: .18em; color: var(--muted); margin: 0 0 16px; }

.container { width: 100%; max-width: 1320px; margin: 0 auto; padding: 0 32px; }
.narrow { max-width: 820px; }
.section { padding: 88px 0; }
.section-flush { padding-top: 0; }
.section-sm { padding: 40px 0; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.nowrap { white-space: nowrap; }
.lead { font-size: 17.5px; line-height: 1.6; color: var(--ink-2); max-width: 540px; }
.eyebrow { display: inline-flex; align-items: center; gap: 12px; font: 600 11px/1 var(--sans); text-transform: uppercase; letter-spacing: .22em; color: var(--accent); margin-bottom: 18px; }
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; opacity: .7; }
.row-gap { display: flex; gap: 14px 28px; flex-wrap: wrap; align-items: center; }
.error-text { color: var(--danger); }
.ok-text { color: var(--ok); }
.warn-text { color: var(--warn); font-weight: 600; }
.mono { font-family: ui-monospace, Consolas, monospace; font-size: 13px; }
.center { text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 28px; border-radius: var(--radius); border: 1px solid var(--primary);
  background: var(--primary); color: var(--paper);
  font: 600 12px/1.2 var(--sans); text-transform: uppercase; letter-spacing: .16em;
  cursor: pointer; transition: background .25s var(--ease), color .25s, border-color .25s, transform .25s var(--ease); text-align: center; white-space: nowrap;
}
.btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.btn-light { background: var(--paper); border-color: var(--paper); color: var(--ink); }
.btn-light:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-ghost { background: transparent; border-color: var(--line-2); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); background: transparent; color: var(--ink); }
.btn-danger { background: transparent; color: var(--danger); border-color: var(--danger); }
.btn-danger:hover { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn-lg { padding: 18px 36px; }
.btn-sm { padding: 10px 18px; font-size: 11px; }
.btn-xs { padding: 6px 12px; font-size: 10.5px; letter-spacing: .1em; }
.btn-block { width: 100%; }
.link-btn { background: none; border: 0; padding: 0; color: inherit; font: inherit; cursor: pointer; }
.link-arrow { font: 600 11.5px/1 var(--sans); text-transform: uppercase; letter-spacing: .16em; display: inline-flex; gap: 10px; align-items: center; border-bottom: 1px solid currentColor; padding-bottom: 7px; }
.link-arrow::after { content: "→"; transition: transform .25s var(--ease); }
.link-arrow:hover::after { transform: translateX(4px); }
.icon-btn { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 0; background: none; color: var(--ink); cursor: pointer; position: relative; transition: background .2s, color .2s; }
.icon-btn:hover { background: var(--sand); color: var(--ink); }
.icon-btn svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.5; }

/* ---------- Top bar & header ---------- */
.topbar { background: var(--primary); color: var(--on-dark); font-size: 12.5px; }
.topbar-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 40px; }
.topbar a { color: var(--on-dark); }
.topbar a:hover { color: #fff; }
.topbar :focus-visible { outline-color: var(--on-dark); }
.topbar-msg { letter-spacing: .04em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar-side { display: flex; align-items: center; gap: 22px; white-space: nowrap; }
.topbar-phone { font-weight: 600; letter-spacing: .03em; }
.currency { display: inline-flex; border: 1px solid rgba(243, 233, 222, .22); border-radius: 999px; padding: 2px; }
.currency a { padding: 3px 10px; border-radius: 999px; font-size: 11px; font-weight: 600; letter-spacing: .08em; color: var(--on-dark-muted); }
.currency a:hover { color: #fff; }
.currency a.active { background: var(--on-dark); color: var(--primary); }

.site-header { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--paper) 94%, transparent); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.header-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: var(--header-h); gap: 20px; }
.main-nav { display: flex; gap: 28px; align-items: center; }
.main-nav a { font: 500 12.5px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; padding: 10px 0; position: relative; color: var(--ink-2); white-space: nowrap; }
.main-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.main-nav a:hover, .main-nav a.active { color: var(--ink); }
.main-nav a:hover::after, .main-nav a.active::after { transform: scaleX(1); }
.brand { display: flex; flex-direction: column; align-items: center; line-height: 1; color: var(--ink); gap: 8px; }
.brand:hover { color: var(--ink); }
.brand-logo { height: 28px; width: auto; max-width: 220px; object-fit: contain; }
.brand-name { font-family: var(--serif); font-weight: 600; font-size: 34px; letter-spacing: .32em; margin-right: -.32em; text-transform: uppercase; }
.brand-sub { font: 600 8.5px/1 var(--sans); letter-spacing: .42em; text-transform: uppercase; color: var(--muted); margin-right: -.42em; }
.header-actions { display: flex; justify-content: flex-end; align-items: center; gap: 2px; }
.count-badge { position: absolute; top: 3px; right: 1px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--accent); color: #fff; font: 700 10px/17px var(--sans); text-align: center; }
.avatar { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--primary); color: var(--paper); font: 600 13px/1 var(--sans); }
.staff-link { font: 600 10.5px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; border: 1px solid var(--line-2); border-radius: 999px; padding: 8px 12px; margin-right: 8px; }
.staff-link:hover { border-color: var(--accent); }
.menu-toggle { display: none; }

.search-panel { border-top: 1px solid var(--line); background: var(--paper); box-shadow: var(--shadow); }
.search-form { display: flex; align-items: center; gap: 14px; padding: 20px 0; }
.search-form svg { width: 22px; height: 22px; fill: none; stroke: var(--muted); stroke-width: 1.5; flex-shrink: 0; }
.search-form input { flex: 1; border: 0; background: none; font: 400 26px/1.2 var(--serif); padding: 6px 0; color: var(--ink); box-shadow: none !important; }
.search-form input:focus { outline: none; }

.mobile-nav { display: none; }

/* ---------- Flash ---------- */
.flash { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 14px 18px; border-radius: var(--radius); margin: 18px 0; font-size: 14px; border: 1px solid transparent; }
.flash ul { margin: 0; padding-left: 18px; }
.flash-ok { background: var(--ok-soft); color: #234a2a; border-color: #cfe0cd; }
.flash-error { background: var(--danger-soft); color: #7a2219; border-color: #efcbc4; }
.flash-close { background: none; border: 0; font-size: 20px; line-height: 1; cursor: pointer; color: inherit; opacity: .55; }

/* ---------- Hero ---------- */
.hero { background: var(--bg); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1fr 1.05fr; min-height: min(80vh, 780px); }
.hero-text { display: flex; flex-direction: column; justify-content: center; padding: 80px 72px 80px max(32px, calc((100vw - 1320px) / 2 + 32px)); }
.hero h1 { font-size: clamp(46px, 6vw, 88px); line-height: .98; letter-spacing: -.02em; margin-bottom: 28px; }
.hero .lead { margin-bottom: 40px; }
.hero-stats { display: flex; gap: 44px; margin-top: 60px; padding-top: 28px; border-top: 1px solid var(--line-2); }
.hero-stats strong { display: block; font: 500 36px/1 var(--serif); color: var(--ink); margin-bottom: 6px; }
.hero-stats span { font-size: 12.5px; color: var(--muted); letter-spacing: .02em; }
.hero-media { position: relative; background: var(--primary); }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 60%, rgba(20, 13, 9, .28)); pointer-events: none; }
.hero-main { position: absolute; inset: 0; display: block; overflow: hidden; }
.hero-main img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.6s var(--ease); }
.hero-main:hover img { transform: scale(1.025); }
.hero-chip { position: absolute; left: 32px; bottom: 32px; z-index: 2; display: flex; align-items: center; gap: 16px; background: var(--paper); padding: 12px 22px 12px 12px; border-radius: var(--radius); box-shadow: 0 18px 40px rgba(0, 0, 0, .25); color: var(--ink); max-width: calc(100% - 64px); transition: transform .3s var(--ease); }
.hero-chip:hover { color: var(--ink); transform: translateY(-3px); }
.hero-chip img { width: 64px; height: 64px; object-fit: cover; border-radius: 2px; }
.hero-chip small { display: block; color: var(--accent); font-size: 10.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.hero-chip strong { font: 500 20px/1.2 var(--serif); }

/* ---------- USP bar ---------- */
.usp { border-bottom: 1px solid var(--line); background: var(--paper); }
.usp-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.usp-item { display: flex; gap: 16px; align-items: center; padding: 30px 24px; border-right: 1px solid var(--line); }
.usp-item:first-child { padding-left: 0; }
.usp-item:last-child { border-right: 0; }
.usp-item svg { width: 44px; height: 44px; padding: 9px; border-radius: 50%; background: var(--accent-soft); fill: none; stroke: var(--accent); stroke-width: 1.3; flex-shrink: 0; }
.usp-item strong { display: block; font-size: 14px; font-weight: 600; }
.usp-item span { font-size: 13px; color: var(--muted); }

/* ---------- Section headings ---------- */
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 40px; }
.section-head h2 { margin: 0; }
.section-head p { margin: 8px 0 0; color: var(--muted); }

/* ---------- Collections ---------- */
.collections { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 380px; gap: 18px; }
.collection { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--sand); color: #fff; isolation: isolate; }
.collection img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); z-index: -2; }
.collection::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 52%, rgba(20, 13, 9, .72)); z-index: -1; transition: opacity .4s; }
.collection:hover img { transform: scale(1.06); }
.collection:hover { color: #fff; }
.collection:focus-visible { outline-offset: 4px; }
.collection-info { position: absolute; left: 28px; right: 28px; bottom: 26px; display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; }
.collection-info strong { display: block; font: 500 32px/1.05 var(--serif); margin-bottom: 4px; }
.collection-info span { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; opacity: .85; }
.collection-arrow { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .55); display: grid; place-items: center; transition: background .3s, color .3s, transform .3s var(--ease); flex-shrink: 0; }
.collection:hover .collection-arrow { background: #fff; color: var(--ink); transform: translateX(3px); }

/* ---------- Product cards ---------- */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 44px 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.card { position: relative; display: flex; flex-direction: column; }
.card-visual { position: relative; }
.card-media { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var(--sand); border-radius: var(--radius); }
.card-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .6s var(--ease), transform 1.2s var(--ease); }
.card-media .img-hover { opacity: 0; }
.card:hover .card-media .img-hover { opacity: 1; }
.card:hover .card-media img { transform: scale(1.04); }
.card-tags { position: absolute; top: 14px; left: 14px; display: flex; gap: 6px; flex-wrap: wrap; z-index: 2; }
.tag { display: inline-block; padding: 6px 9px; border-radius: 2px; font: 700 9.5px/1 var(--sans); text-transform: uppercase; letter-spacing: .14em; background: var(--paper); color: var(--ink); }
.tag-sale { background: var(--accent); color: #fff; }
.tag-dark { background: var(--primary); color: var(--paper); }
.tag-muted { background: rgba(31, 23, 18, .62); color: #fff; }
.card-fav { position: absolute; top: 10px; right: 10px; z-index: 2; margin: 0; }
.fav-btn { width: 38px; height: 38px; border-radius: 50%; border: 0; background: color-mix(in srgb, var(--paper) 92%, transparent); color: var(--ink); cursor: pointer; display: grid; place-items: center; transition: transform .2s, color .2s; }
.fav-btn:hover { transform: scale(1.08); color: var(--accent); }
.fav-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.fav-btn.is-active { color: var(--accent); }
.fav-btn.is-active svg { fill: currentColor; }
.card-quick { position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 2; margin: 0; transform: translateY(12px); opacity: 0; transition: opacity .35s var(--ease), transform .35s var(--ease); }
.card:hover .card-quick, .card:focus-within .card-quick { opacity: 1; transform: none; }
.card-quick .btn { width: 100%; background: color-mix(in srgb, var(--paper) 96%, transparent); border-color: transparent; color: var(--ink); }
.card-quick .btn:hover { background: var(--primary); color: var(--paper); }
.card-body { padding-top: 18px; display: flex; flex-direction: column; gap: 4px; }
.card-meta { font: 600 10px/1.4 var(--sans); text-transform: uppercase; letter-spacing: .18em; color: var(--muted); }
.card-title { font: 500 21px/1.2 var(--serif); color: var(--ink); }
.card-title:hover { color: var(--accent); }
.card-row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-top: 6px; }
.price { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.price-now { font-weight: 600; font-size: 15px; letter-spacing: .02em; }
.price-old { color: var(--muted); text-decoration: line-through; font-size: 13.5px; }
.rating-sm { font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.star, .stars { color: var(--star); letter-spacing: 2px; }

/* ---------- Craft story ---------- */
.story { background: var(--primary); color: var(--on-dark); }
.story-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; }
.story-media { overflow: hidden; }
.story-media img { width: 100%; height: 100%; object-fit: cover; min-height: 560px; }
.story-text { padding: 96px max(32px, calc((100vw - 1320px) / 2 + 32px)) 96px 88px; display: flex; flex-direction: column; justify-content: center; }
.story .eyebrow { color: var(--tan); }
.story h2 { color: #fff; }
.story .lead { color: var(--on-dark-muted); }
.story :focus-visible { outline-color: var(--on-dark); }
.steps { list-style: none; padding: 0; margin: 32px 0 42px; display: grid; gap: 24px; counter-reset: s; }
.steps li { display: grid; grid-template-columns: 52px 1fr; gap: 16px; counter-increment: s; padding-top: 20px; border-top: 1px solid rgba(243, 233, 222, .12); }
.steps li::before { content: "0" counter(s); font: italic 500 30px/1 var(--serif); color: var(--tan); }
.steps strong { display: block; color: #fff; font-weight: 600; margin-bottom: 2px; }
.steps span { color: var(--on-dark-muted); font-size: 14px; }

/* ---------- Reviews ---------- */
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.review-card { margin: 0; background: var(--bg); padding: 40px 34px 34px; border-radius: var(--radius); display: flex; flex-direction: column; gap: 18px; position: relative; }
.review-card::before { content: "\201C"; position: absolute; top: 6px; right: 26px; font: 500 96px/1 var(--serif); color: var(--accent); opacity: .18; }
.review-card p { font: 400 22px/1.4 var(--serif); margin: 0; flex: 1; }
.review-card footer { font-size: 13px; color: var(--muted); padding-top: 16px; border-top: 1px solid var(--line-2); }
.review-card footer strong { color: var(--ink); }

/* ---------- Promo banner ---------- */
.banner { background: var(--sand); background-image: radial-gradient(circle at 85% 50%, var(--accent-soft), transparent 55%); }
.banner-row { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 64px 0; }
.banner h2 { margin: 0 0 8px; }
.banner p { margin: 0; color: var(--ink-2); max-width: 620px; }

/* ---------- Page header (catalog, pages) ---------- */
.page-hero { background: var(--bg); border-bottom: 1px solid var(--line); padding: 48px 0 38px; }
.page-hero h1 { margin-bottom: 10px; }
.page-hero p { margin: 0; color: var(--ink-2); max-width: 640px; }
.crumbs { font-size: 12px; letter-spacing: .06em; color: var(--muted); margin-bottom: 18px; display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs a:hover { color: var(--ink); }
.crumbs span[aria-hidden] { opacity: .5; }
.page-head { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; }

/* ---------- Catalog ---------- */
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 24px 0 2px; }
.chip { padding: 9px 16px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 13px; white-space: nowrap; color: var(--ink-2); transition: border-color .2s, background .2s, color .2s; }
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.active { background: var(--primary); border-color: var(--primary); color: var(--paper); }
.chip span { opacity: .6; margin-left: 4px; }
.catalog-layout { display: grid; grid-template-columns: 240px 1fr; gap: 52px; align-items: start; padding: 44px 0 88px; }
.filters { position: sticky; top: calc(var(--header-h) + 24px); }
.filter-block { padding: 0 0 22px; margin-bottom: 22px; border-bottom: 1px solid var(--line); }
.filter-block:last-of-type { border-bottom: 0; }
.range { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.filters .btn-block + .btn-block { margin-top: 8px; }
.catalog-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 30px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.catalog-toolbar select { width: auto; border: 0; background-color: transparent; font-weight: 600; padding: 4px 26px 4px 4px; cursor: pointer; box-shadow: none !important; }
.filters-toggle { display: none; }
.empty { text-align: center; padding: 80px 16px; }
.empty h3 { font-size: 32px; }
.pager { display: flex; justify-content: center; gap: 6px; margin-top: 60px; }
.pager a, .pager span { min-width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; color: var(--ink); padding: 0 10px; font-weight: 500; }
.pager a:hover { background: var(--sand); }
.pager .current { background: var(--primary); color: var(--paper); }

/* ---------- Forms ---------- */
.form { display: flex; flex-direction: column; gap: 16px; }
.form label, .box label, .field { display: flex; flex-direction: column; gap: 7px; font: 600 11px/1.3 var(--sans); text-transform: uppercase; letter-spacing: .12em; color: var(--ink-2); }
input, select, textarea {
  width: 100%; padding: 13px 14px; border: 1px solid var(--line-2); border-radius: var(--radius);
  background: var(--paper); font: 400 15px/1.4 var(--sans); color: var(--ink); text-transform: none; letter-spacing: normal;
  transition: border-color .2s, box-shadow .2s;
}
input:hover, select:hover, textarea:hover { border-color: var(--muted); }
select { appearance: none; 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='%231f1712' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
input[type=checkbox], input[type=radio] { width: 18px; height: 18px; accent-color: var(--primary); flex-shrink: 0; padding: 0; }
input[type=checkbox]:focus-visible, input[type=radio]:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
textarea { resize: vertical; }
label.check { flex-direction: row !important; align-items: center; gap: 12px !important; font: 400 14px/1.4 var(--sans) !important; text-transform: none !important; letter-spacing: normal !important; color: var(--ink) !important; cursor: pointer; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.span-2 { grid-column: span 2; }
.hint-text { font: 400 12.5px/1.45 var(--sans); text-transform: none; letter-spacing: normal; color: var(--muted); }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }

.panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px; margin-bottom: 22px; }
.panel h3 { font-size: 27px; }

/* ---------- Product page ---------- */
.product-layout { display: grid; grid-template-columns: 1.15fr 1fr; gap: 72px; align-items: start; padding: 32px 0 80px; }
.gallery { display: grid; grid-template-columns: 84px 1fr; gap: 14px; position: sticky; top: calc(var(--header-h) + 20px); }
.gallery.single { grid-template-columns: 1fr; }
.gallery-thumbs { display: flex; flex-direction: column; gap: 10px; }
.gallery-main { position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; background: var(--sand); }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-tag { position: absolute; top: 18px; left: 18px; }
.thumb { aspect-ratio: 4 / 5; border-radius: 2px; overflow: hidden; border: 1px solid transparent; padding: 0; cursor: pointer; background: var(--sand); opacity: .55; transition: opacity .2s, border-color .2s; }
.thumb.active, .thumb:hover { opacity: 1; border-color: var(--ink); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-info { padding-top: 8px; }
.product-info .eyebrow { margin-bottom: 16px; }
.product-info h1 { font-size: clamp(36px, 3.8vw, 54px); margin-bottom: 14px; }
.rating { display: inline-flex; gap: 10px; font-size: 13.5px; color: var(--ink-2); align-items: center; }
.price-lg { margin: 24px 0 6px; }
.price-lg .price-now { font: 500 38px/1 var(--serif); letter-spacing: 0; }
.price-lg .price-old { font-size: 18px; }
.price-note { font-size: 12.5px; color: var(--muted); margin: 0 0 18px; }
.stock { display: inline-flex; align-items: center; gap: 10px; font-size: 13.5px; margin: 16px 0 26px; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; box-shadow: 0 0 0 4px rgba(61, 107, 69, .14); }
.dot-on { background: var(--ok); }
.dot-warn { background: var(--warn); box-shadow: 0 0 0 4px rgba(168, 102, 26, .14); }
.dot-off { background: var(--muted); box-shadow: none; }
.attrs { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 28px; }
.attr { border: 1px solid var(--line-2); border-radius: 999px; padding: 7px 15px; font-size: 13px; color: var(--ink-2); }
.attr b { font-weight: 600; color: var(--ink); }
.buy-row { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; margin-bottom: 14px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--paper); height: 56px; }
.qty button { width: 40px; height: 100%; border: 0; background: none; font-size: 18px; cursor: pointer; color: var(--ink); transition: color .2s; }
.qty button:hover { color: var(--accent); }
.qty input { width: 40px; border: 0; text-align: center; padding: 0; background: none; box-shadow: none !important; -moz-appearance: textfield; appearance: textfield; font-weight: 600; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.buy-row .btn { height: 56px; }
.buy-row .fav-square { width: 56px; height: 56px; border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--paper); display: grid; place-items: center; cursor: pointer; color: var(--ink); transition: border-color .2s, color .2s; }
.buy-row .fav-square:hover { border-color: var(--accent); color: var(--accent); }
.fav-square svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.fav-square.is-active { color: var(--accent); }
.fav-square.is-active svg { fill: currentColor; }
.in-cart-note { font-size: 13px; color: var(--muted); }
.perks { list-style: none; padding: 20px 22px; margin: 26px 0 8px; background: var(--bg); border-radius: var(--radius-lg); display: grid; gap: 14px; }
.perks li { display: flex; gap: 14px; align-items: center; font-size: 14px; }
.perks svg { width: 22px; height: 22px; fill: none; stroke: var(--accent); stroke-width: 1.4; flex-shrink: 0; }
.accordion { border-bottom: 1px solid var(--line); }
.accordion summary { list-style: none; cursor: pointer; padding: 21px 0; display: flex; justify-content: space-between; align-items: center; font: 600 11.5px/1 var(--sans); text-transform: uppercase; letter-spacing: .16em; transition: color .2s; }
.accordion summary:hover { color: var(--accent); }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: "+"; font: 300 22px/1 var(--sans); transition: transform .3s; }
.accordion[open] summary::after { transform: rotate(45deg); }
.accordion-body { padding: 0 0 22px; color: var(--ink-2); font-size: 14.5px; }
.specs { display: grid; grid-template-columns: max-content 1fr; gap: 10px 28px; margin: 0; font-size: 14px; }
.specs dt { color: var(--muted); }
.specs dd { margin: 0; }

.reviews-section { border-top: 1px solid var(--line); }
.reviews-layout { display: grid; grid-template-columns: 320px 1fr; gap: 72px; align-items: start; }
.rating-summary { position: sticky; top: calc(var(--header-h) + 24px); }
.rating-big { font: 500 76px/1 var(--serif); }
.review { border-bottom: 1px solid var(--line); padding: 24px 0; }
.review:first-child { padding-top: 0; }
.review-head { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-bottom: 8px; }
.review-head strong { font-weight: 600; }
.star-input { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 2px; }
.star-input input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.star-input label { font-size: 30px; color: var(--line-2); cursor: pointer; text-transform: none; letter-spacing: 0; }
.star-input input:checked ~ label, .star-input label:hover, .star-input label:hover ~ label { color: var(--star); }
.star-input input:focus-visible + label { outline: 2px solid var(--accent); }

/* ---------- Cart & checkout ---------- */
.cart-layout { display: grid; grid-template-columns: 1fr 400px; gap: 64px; align-items: start; padding: 28px 0 88px; }
.cart-head { display: grid; grid-template-columns: 1fr 130px 120px 40px; gap: 16px; padding: 0 0 14px; border-bottom: 1px solid var(--ink); font: 600 10.5px/1 var(--sans); text-transform: uppercase; letter-spacing: .16em; color: var(--muted); }
.cart-line { display: grid; grid-template-columns: 1fr 130px 120px 40px; gap: 16px; align-items: center; padding: 24px 0; border-bottom: 1px solid var(--line); }
.cart-line.is-problem { background: linear-gradient(90deg, var(--danger-soft), transparent); }
.cart-product { display: grid; grid-template-columns: 96px 1fr; gap: 20px; align-items: center; }
.cart-img { aspect-ratio: 4 / 5; overflow: hidden; border-radius: 2px; background: var(--sand); }
.cart-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.cart-img:hover img { transform: scale(1.05); }
.cart-product .card-title { font-size: 21px; }
.cart-line .qty { height: 44px; }
.cart-line .qty button { width: 34px; }
.cart-total { font-weight: 600; text-align: right; }
.summary { position: sticky; top: calc(var(--header-h) + 24px); background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 32px; }
.summary h3 { font-size: 29px; margin-bottom: 18px; }
.sum-row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; font-size: 14.5px; }
.sum-total { border-top: 1px solid var(--line-2); margin-top: 10px; padding-top: 18px; font-size: 15px; font-weight: 600; align-items: baseline; }
.sum-total span:last-child { font: 500 32px/1 var(--serif); }
.summary .btn-block { margin: 22px 0 12px; }
.summary-trust { list-style: none; margin: 18px 0 0; padding: 16px 0 0; border-top: 1px solid var(--line-2); display: grid; gap: 10px; }
.summary-trust li { display: flex; gap: 12px; align-items: center; font-size: 13px; color: var(--ink-2); }
.summary-trust svg { width: 18px; height: 18px; fill: none; stroke: var(--accent); stroke-width: 1.5; flex-shrink: 0; }
.free-bar { margin: 6px 0 16px; }
.free-bar-track { height: 3px; background: var(--line-2); border-radius: 2px; overflow: hidden; margin-top: 8px; }
.free-bar-fill { height: 100%; background: var(--accent); }
.pay-badges { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; margin-top: 14px; }
.pay-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 46px; height: 28px; font: 700 10.5px/1 var(--sans); letter-spacing: .04em; border: 1px solid var(--line-2); border-radius: 4px; padding: 0 9px; color: var(--ink-2); background: var(--paper); white-space: nowrap; }
.pay-badge svg { width: 30px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.pay-visa { font: italic 800 13px/1 var(--sans); letter-spacing: .02em; }
.checkout-form { gap: 0; }
.checkout-step { padding: 0 0 38px; margin-bottom: 38px; border-bottom: 1px solid var(--line); }
.step-title { display: flex; align-items: baseline; gap: 14px; margin-bottom: 24px; }
.step-title span { font: italic 500 22px/1 var(--serif); color: var(--accent); }
.step-title h3 { margin: 0; font-size: 29px; }
.choices { display: grid; gap: 10px; margin-bottom: 20px; }
.choice { display: flex !important; flex-direction: row !important; align-items: center; gap: 16px !important; border: 1px solid var(--line-2); border-radius: var(--radius); padding: 17px 18px; cursor: pointer; text-transform: none !important; letter-spacing: normal !important; font: 400 14px/1.4 var(--sans) !important; color: var(--ink) !important; transition: border-color .2s, background .2s, box-shadow .2s; }
.choice:hover { border-color: var(--ink); }
.choice:has(input:checked) { border-color: var(--ink); background: var(--bg); box-shadow: inset 3px 0 0 var(--accent); }
.choice-text { display: flex; flex-direction: column; flex: 1; gap: 2px; }
.choice-text strong { font-weight: 600; }
.choice-text small { color: var(--muted); font-size: 12.5px; }
.choice-cost { font-weight: 600; white-space: nowrap; }
.mini-lines { margin-bottom: 18px; }
.mini-line { display: grid; grid-template-columns: 56px 1fr auto; gap: 14px; align-items: center; padding: 10px 0; font-size: 14px; }
.mini-line img { width: 56px; height: 70px; border-radius: 2px; object-fit: cover; background: var(--sand); }
.mini-line .qty-badge { color: var(--muted); }
.promo-form { display: flex; gap: 8px; margin: 6px 0 8px; }
.promo-form input { padding: 11px 12px; }
.pay-note { font-size: 12.5px; color: var(--muted); background: var(--paper); border-radius: var(--radius); padding: 10px 12px; }

/* ---------- Auth ---------- */
.auth { display: grid; grid-template-columns: 1fr 1fr; min-height: calc(100vh - var(--header-h) - 40px); }
.auth-media { position: relative; background: var(--primary); color: var(--on-dark); display: flex; align-items: flex-end; overflow: hidden; }
.auth-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .72; }
.auth-quote { position: relative; padding: 56px; max-width: 560px; }
.auth-quote p { font: 400 31px/1.25 var(--serif); color: #fff; }
.auth-form { display: flex; align-items: center; justify-content: center; padding: 56px 24px; }
.auth-box { width: 100%; max-width: 420px; }
.auth-box h1 { font-size: 48px; }
.auth-alt { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.auth-alt a { color: var(--ink); font-weight: 600; border-bottom: 1px solid currentColor; }

/* ---------- Account ---------- */
.account-layout { display: grid; grid-template-columns: 260px 1fr; gap: 60px; align-items: start; padding: 52px 0 88px; }
.account-nav { display: flex; flex-direction: column; position: sticky; top: calc(var(--header-h) + 24px); }
.account-nav a, .account-nav .link-btn { padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; color: var(--ink-2); text-align: left; display: flex; justify-content: space-between; }
.account-nav a:hover, .account-nav a.active { color: var(--ink); }
.account-nav a.active { font-weight: 600; }
.account-nav a.active::after { content: "→"; color: var(--accent); }
.account-user { display: flex; gap: 14px; align-items: center; padding-bottom: 22px; margin-bottom: 8px; }
.account-user .avatar { width: 52px; height: 52px; font-size: 20px; }
.account-user > div { min-width: 0; overflow-wrap: anywhere; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 8px 0 28px; }
.stat { background: var(--bg); border-radius: var(--radius-lg); padding: 22px 24px; display: flex; flex-direction: column; color: var(--ink); transition: background .2s; }
.stat:hover { color: var(--ink); background: var(--sand); }
.stat-value { font: 500 36px/1.1 var(--serif); }
.stat .muted { font-size: 13px; }
.progress { display: flex; list-style: none; padding: 0; margin: 28px 0 36px; counter-reset: step; }
.progress li { flex: 1; text-align: center; font-size: 12px; color: var(--muted); position: relative; padding-top: 34px; }
.progress li::before { counter-increment: step; content: counter(step); position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 26px; height: 26px; border-radius: 50%; background: var(--paper); border: 1px solid var(--line-2); color: var(--muted); display: grid; place-items: center; font-size: 12px; z-index: 1; }
.progress li::after { content: ""; position: absolute; top: 13px; left: -50%; width: 100%; height: 1px; background: var(--line-2); }
.progress li:first-child::after { display: none; }
.progress li.done { color: var(--ink); font-weight: 600; }
.progress li.done::before { background: var(--primary); border-color: var(--primary); color: var(--paper); }
.progress li.done::after { background: var(--primary); }
.order-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 22px; align-items: start; }
.timeline { list-style: none; padding: 0 0 0 20px; border-left: 1px solid var(--line-2); margin: 0 0 22px; }
.timeline li { padding: 2px 0 14px; position: relative; font-size: 14px; }
.timeline li::before { content: ""; position: absolute; left: -25px; top: 8px; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }

/* ---------- Tables & statuses ---------- */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font: 600 10.5px/1.2 var(--sans); color: var(--muted); text-transform: uppercase; letter-spacing: .12em; padding: 12px; border-bottom: 1px solid var(--line-2); }
.table td { padding: 14px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.status, .pay { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font: 600 11.5px/1.3 var(--sans); white-space: nowrap; background: var(--sand); color: var(--ink-2); }
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status-new { background: #fbefd6; color: #7d5100; }
.status-confirmed { background: #e2eaf6; color: #2b4f86; }
.status-processing { background: #ece4f5; color: #5b3e8a; }
.status-shipped { background: #dcedf0; color: #1f5f68; }
.status-delivered { background: var(--ok-soft); color: #2c5a33; }
.status-cancelled { background: #ece7e2; color: #6f655d; }
.pay-paid { background: var(--ok-soft); color: #2c5a33; }
.pay-refunded { background: var(--danger-soft); color: #7a2219; }

/* ---------- Footer ---------- */
.site-footer { background: var(--primary); color: var(--on-dark-muted); }
.site-footer :focus-visible { outline-color: var(--on-dark); }
.footer-trust { background: var(--bg); color: var(--ink); border-top: 1px solid var(--line); }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding-top: 30px; padding-bottom: 30px; }
.trust-item { display: flex; gap: 14px; align-items: center; }
.trust-item svg { width: 40px; height: 40px; padding: 8px; border-radius: 50%; background: var(--paper); fill: none; stroke: var(--accent); stroke-width: 1.3; flex-shrink: 0; }
.trust-item strong { display: block; font-size: 13.5px; font-weight: 600; }
.trust-item span { font-size: 12.5px; color: var(--muted); }
.footer-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1.2fr; gap: 56px; padding-top: 80px; }
.footer-grid > div { display: flex; flex-direction: column; gap: 11px; font-size: 14px; }
.footer-grid h4 { color: var(--on-dark); letter-spacing: .2em; }
.footer-grid a { color: var(--on-dark-muted); width: fit-content; }
.footer-grid a:hover { color: #fff; }
.footer-brand .brand { align-items: flex-start; color: #fff; gap: 10px; }
.footer-brand .brand:hover { color: #fff; }
.footer-brand .brand-name { font-size: 30px; }
.footer-brand .brand-logo { height: 30px; }
.footer-brand .brand-sub { color: var(--on-dark-muted); }
.footer-brand p { max-width: 340px; margin: 16px 0 6px; line-height: 1.7; }
.footer-phone { font: 500 22px/1.2 var(--serif); color: var(--on-dark) !important; letter-spacing: .01em; }
.socials { display: flex; gap: 10px; flex-wrap: wrap; }
.socials a { width: 42px; height: 42px; border: 1px solid rgba(243, 233, 222, .2); border-radius: 50%; display: grid; place-items: center; transition: border-color .2s, background .2s, color .2s; }
.socials a:hover { border-color: var(--accent); background: var(--accent); color: #fff; }
.socials svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.footer-bottom { border-top: 1px solid rgba(243, 233, 222, .12); margin-top: 64px; padding-top: 24px; padding-bottom: 24px; font-size: 12.5px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer-bottom .pay-badges { margin-top: 0; }
.footer-bottom .pay-badge { background: transparent; color: var(--on-dark-muted); border-color: rgba(243, 233, 222, .2); }

.prose { font-size: 16.5px; line-height: 1.75; color: var(--ink-2); }
.prose h2 { font-size: 34px; margin-top: 1.2em; color: var(--ink); }
.prose ul { padding-left: 20px; }
.prose li { margin-bottom: 8px; }
.prose strong { color: var(--ink); }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

.error-page { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 24px; background: var(--bg); }
.error-code { font: 500 140px/1 var(--serif); color: var(--accent); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .main-nav { gap: 20px; }
  .main-nav a:nth-child(n+5) { display: none; }
  .grid { grid-template-columns: repeat(3, 1fr); }
  .hero-text { padding-right: 44px; }
  .story-text { padding-left: 52px; }
  .footer-grid { gap: 40px; }
}
@media (max-width: 960px) {
  :root { --header-h: 66px; }
  .container { padding: 0 24px; }
  .section { padding: 64px 0; }
  .section-flush { padding-top: 0; }
  .header-row { grid-template-columns: auto 1fr auto; gap: 12px; }
  .main-nav { display: none; }
  .menu-toggle { display: inline-grid; }
  .brand { align-items: flex-start; }
  .brand-name { font-size: 26px; }
  .brand-logo { height: 22px; }
  .site-header .brand-sub { display: none; }
  .staff-link { display: none; }
  .mobile-nav.open { display: flex; flex-direction: column; border-top: 1px solid var(--line); padding: 8px 24px 24px; background: var(--paper); max-height: calc(100vh - var(--header-h)); overflow-y: auto; box-shadow: var(--shadow); }
  .mobile-nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font: 500 23px/1.2 var(--serif); }
  .mobile-nav a.mobile-nav-sm { font: 500 12px/1.2 var(--sans); text-transform: uppercase; letter-spacing: .14em; color: var(--ink-2); padding: 15px 0; }
  .mobile-nav a.mobile-nav-phone { border-bottom: 0; margin-top: 12px; font: 600 15px/1.2 var(--sans); color: var(--accent); }
  .hero-grid, .story-grid, .product-layout, .cart-layout, .catalog-layout, .account-layout, .order-grid, .reviews-layout, .auth { grid-template-columns: 1fr; }
  .product-layout { gap: 36px; }
  .hero-text { padding: 56px 24px 48px; }
  .hero-media { min-height: 440px; }
  .hero-stats { gap: 28px; margin-top: 40px; }
  .usp-grid { grid-template-columns: 1fr 1fr; }
  .usp-item, .usp-item:first-child { padding: 24px 20px; }
  .usp-item:nth-child(2) { border-right: 0; }
  .usp-item:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .collections { grid-template-columns: 1fr 1fr; grid-auto-rows: 280px; }
  .story-text { padding: 64px 24px; }
  .story-media img { min-height: 380px; }
  .reviews-grid { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; padding-top: 60px; }
  .footer-brand { grid-column: span 2; }
  .grid, .grid-3 { grid-template-columns: repeat(2, 1fr); gap: 32px 16px; }
  .filters { position: static; display: none; }
  .filters.open { display: block; }
  .filters-toggle { display: inline-flex; }
  .gallery { position: static; grid-template-columns: 1fr; }
  .gallery-thumbs { flex-direction: row; order: 2; overflow-x: auto; }
  .thumb { width: 72px; flex-shrink: 0; }
  .summary, .rating-summary, .account-nav { position: static; }
  .banner-row { flex-direction: column; align-items: flex-start; padding: 52px 0; }
  .auth-media { min-height: 220px; }
  .auth-quote { padding: 32px 24px; }
  .auth-quote p { font-size: 22px; }
  .card-quick { opacity: 1; transform: none; }
  .stats { grid-template-columns: 1fr 1fr 1fr; }
}
@media (max-width: 640px) {
  .container { padding: 0 16px; }
  body { font-size: 15px; }
  h1 { font-size: 36px; }
  .section { padding: 52px 0; }
  .section-flush { padding-top: 0; }
  .topbar-msg { display: none; }
  .topbar-row { justify-content: center; }
  .topbar-side { gap: 10px; }
  .topbar-phone { display: none; }
  .hero-text { padding: 44px 16px 40px; }
  .hero-media { min-height: 360px; }
  .header-row { gap: 4px; }
  .header-actions { gap: 0; }
  .brand-logo { height: 19px; max-width: 120px; }
  .brand-name { font-size: 22px; letter-spacing: .24em; }
  .hero h1 { font-size: 44px; }
  .hero .lead { font-size: 16px; }
  .hero-stats { flex-wrap: wrap; gap: 20px 28px; }
  .hero-stats strong { font-size: 30px; }
  .hero-chip { left: 16px; bottom: 16px; max-width: calc(100% - 32px); }
  .usp-grid { grid-template-columns: 1fr; }
  .usp-item, .usp-item:first-child { border-right: 0 !important; border-bottom: 1px solid var(--line); padding: 18px 0; }
  .usp-item:last-child { border-bottom: 0; }
  .collections { grid-template-columns: 1fr; grid-auto-rows: 240px; gap: 12px; }
  .collection-info strong { font-size: 28px; }
  .section-head { flex-direction: column; align-items: flex-start; margin-bottom: 28px; }
  .trust-grid { grid-template-columns: 1fr; gap: 16px; padding-top: 24px; padding-bottom: 24px; }
  .footer-grid, .form-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }
  .footer-grid { gap: 36px; padding-top: 48px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; margin-top: 44px; }
  .footer-bottom .pay-badges { justify-content: flex-start; }
  .span-2 { grid-column: auto; }
  .grid, .grid-3 { gap: 28px 12px; }
  .card-title { font-size: 18px; }
  .card-row { flex-direction: column; gap: 2px; }
  .card-quick { left: 8px; right: 8px; bottom: 8px; }
  .card-quick .btn { padding: 11px 6px; font-size: 9.5px; letter-spacing: .08em; }
  .card-tags { top: 10px; left: 10px; }
  .cart-head { display: none; }
  .cart-line { grid-template-columns: 1fr auto; }
  .cart-line .cart-product { grid-column: span 2; }
  .cart-product { grid-template-columns: 76px 1fr; }
  .summary { padding: 24px 20px; }
  .buy-row { grid-template-columns: auto 1fr; }
  .buy-row .fav-square { display: none; }
  .stats { grid-template-columns: 1fr; }
  .progress li { font-size: 10px; }
  .header-actions .icon-btn { width: 38px; }
  .account-hide-sm { display: none !important; }
  .panel { padding: 22px 18px; }
  .review-card { padding: 32px 24px 26px; }
}

/* ===== blog ===== */
.blog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px 24px; }
.blog-card { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.blog-card-media { display: block; aspect-ratio: 16 / 10; overflow: hidden; border-radius: var(--radius); background: var(--sand); }
.blog-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.blog-card:hover .blog-card-media img { transform: scale(1.04); }
.blog-card-body { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.blog-card h3 { font-size: 26px; margin: 0; }
.blog-card h3 a:hover { color: var(--accent); }
.blog-card p { margin: 0; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.blog-card .link-arrow { margin-top: 4px; }
.blog-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.blog-meta a { color: var(--accent); }
.blog-meta a:hover { color: var(--accent-dark); }
.blog-article .page-hero h1 { margin-bottom: 14px; }
.blog-article .flash { margin-bottom: 16px; }
.blog-body { display: flex; flex-direction: column; gap: 32px; }
.blog-cover { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius-lg); background: var(--sand); }
.blog-related { background: var(--bg); border-top: 1px solid var(--line); }
.blog-admin-cover { width: 100%; max-height: 180px; object-fit: cover; border-radius: 8px; background: var(--sand); }
.seo-fieldset { border: 1px solid var(--line); border-radius: 8px; padding: 12px 16px; display: flex; flex-direction: column; gap: 14px; }
.seo-fieldset > summary { cursor: pointer; font: 700 12px/1.4 var(--sans); text-transform: uppercase; letter-spacing: .1em; color: var(--ink-2); }
.seo-fieldset[open] > summary { margin-bottom: 4px; }
.seo-fieldset .input-lang + .input-lang { margin-top: 6px; }
@media (max-width: 960px) {
  .blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .blog-grid { grid-template-columns: 1fr; }
  .blog-card h3 { font-size: 23px; }
}
/* ===== /blog ===== */

/* ===== product media & info ===== */
/* Catalogue cards: hover video over the photo (desktop), ▶ badge on touch / reduced motion */
.card-media .card-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .45s var(--ease); pointer-events: none; z-index: 1; background: transparent; }
.card.is-playing .card-video { opacity: 1; }
.card-play { position: absolute; right: 12px; top: 56px; z-index: 2; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--espresso) 70%, transparent); color: var(--paper); pointer-events: none; transition: opacity .3s; }
.card-play svg { width: 14px; height: 14px; fill: currentColor; margin-left: 2px; }
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) { .card-play { opacity: 0; } }
.tag-new { background: var(--espresso); color: var(--on-dark); }
.tag-size { background: var(--accent-soft); color: var(--accent-dark); letter-spacing: .08em; }
.card-volume { letter-spacing: .1em; }

/* Product gallery: video file and click-to-load embeds */
.gallery-tags { position: absolute; top: 18px; left: 18px; display: flex; gap: 6px; flex-wrap: wrap; z-index: 3; pointer-events: none; }
.gallery-media { position: absolute; inset: 0; display: none; background: var(--espresso); z-index: 2; }
.gallery-media:target, .gallery-media.is-active { display: block; }
.gallery-media video, .gallery-media iframe { width: 100%; height: 100%; border: 0; display: block; object-fit: contain; background: var(--espresso); }
.gallery-media:target ~ .gallery-tags, .gallery-media.is-active ~ .gallery-tags { display: none; }
.embed-facade { position: relative; display: block; width: 100%; height: 100%; color: var(--paper); }
.embed-facade img { width: 100%; height: 100%; object-fit: cover; opacity: .82; transition: opacity .3s; }
.embed-facade:hover img, .embed-facade:focus-visible img { opacity: .65; }
.embed-play { position: absolute; left: 50%; top: 50%; width: 76px; height: 76px; margin: -38px 0 0 -38px; border-radius: 50%; display: grid; place-items: center; font-size: 26px; padding-left: 5px; background: color-mix(in srgb, var(--espresso) 72%, transparent); border: 1px solid color-mix(in srgb, var(--paper) 40%, transparent); transition: transform .3s var(--ease), background .3s; }
.embed-facade:hover .embed-play { transform: scale(1.06); background: var(--accent); }
.embed-note { position: absolute; left: 16px; right: 16px; bottom: 16px; text-align: center; font-size: 12px; letter-spacing: .04em; color: var(--on-dark); text-shadow: 0 1px 3px rgba(0, 0, 0, .5); }
.thumb-video { position: relative; display: block; }
.thumb-play { position: absolute; inset: 0; display: grid; place-items: center; color: var(--paper); font-size: 15px; background: color-mix(in srgb, var(--espresso) 35%, transparent); }

/* Specs table and info sections */
.spec-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.spec-table th, .spec-table td { text-align: left; vertical-align: top; padding: 9px 0; border-bottom: 1px solid var(--line); }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: 0; }
.spec-table th { font-weight: 400; color: var(--muted); width: 42%; padding-right: 18px; }
.accordion-body p + .specs { margin-top: 14px; }

/* Admin product form */
.admin-video, .admin-poster { width: 100%; max-height: 260px; border-radius: 8px; background: var(--espresso); object-fit: contain; display: block; }
.admin-poster { max-height: 160px; object-fit: cover; background: var(--sand); }
.spec-inputs { grid-template-columns: repeat(3, minmax(0, 1fr)); }

@media (prefers-reduced-motion: reduce) {
  .card-media img, .card-media .card-video { transition: none; }
  .card:hover .card-media img { transform: none; }
}
@media (max-width: 640px) {
  .spec-table th { width: 46%; }
  .spec-inputs { grid-template-columns: 1fr 1fr; }
  .card-play { width: 30px; height: 30px; right: 14px; top: 54px; }
  .card-play svg { width: 12px; height: 12px; }
  .embed-play { width: 60px; height: 60px; margin: -30px 0 0 -30px; font-size: 21px; }
}
/* ===== /product media & info ===== */
