/* Meli-Shop design system (child theme).
   Colour tokens are CSS variables; light is the default, [data-theme="dark"] overrides them. */

/* Self-hosted fonts (no Google Fonts requests; GDPR-friendly). Greek + Latin subsets, variable weight. */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("../fonts/inter-greek-wght-normal.woff2") format("woff2"); unicode-range: U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Source Serif 4"; font-style: normal; font-weight: 200 900; font-display: swap; src: url("../fonts/source-serif-4-greek-wght-normal.woff2") format("woff2"); unicode-range: U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF; }
@font-face { font-family: "Source Serif 4"; font-style: normal; font-weight: 200 900; font-display: swap; src: url("../fonts/source-serif-4-latin-wght-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Source Serif 4"; font-style: italic; font-weight: 200 900; font-display: swap; src: url("../fonts/source-serif-4-greek-wght-italic.woff2") format("woff2"); unicode-range: U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF; }
@font-face { font-family: "Source Serif 4"; font-style: italic; font-weight: 200 900; font-display: swap; src: url("../fonts/source-serif-4-latin-wght-italic.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }

:root {
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-head: "Source Serif 4", "Noto Serif", Georgia, "Times New Roman", serif;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-pill: 999px;
  --container: 1240px;
  --gutter: 20px;
  --header-h: 64px;
  --ease: cubic-bezier(.2, .7, .2, 1);

  color-scheme: light;
  --bg: #fffcf5;
  --surface: #ffffff;
  --surface-2: #f8f0dc;
  --text: #1a1511;
  --muted: #5c5246;
  --border: #eadfc8;
  --border-strong: #cdbd9a;
  --accent: #f2b12e;
  --accent-hover: #e49f12;
  --on-accent: #1a1511;
  --accent-text: #8a5a00;
  --ok: #1d7a4b;
  --danger: #b3261e;
  --img-bg: #f3f1ee;
  --overlay: rgba(20, 14, 6, .55);
  --shadow: 0 1px 2px rgba(60, 40, 0, .06), 0 10px 28px rgba(60, 40, 0, .09);
  --hex: %23f2b12e;
  --hex-opacity: .2;
}

[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0e0c09;
  --surface: #181510;
  --surface-2: #221e16;
  --text: #f6efe2;
  --muted: #b7ab98;
  --border: #2e2820;
  --border-strong: #5a4f3d;
  --accent: #f2b12e;
  --accent-hover: #ffc450;
  --on-accent: #1a1511;
  --accent-text: #f2b12e;
  --ok: #4fc58a;
  --danger: #ff8a80;
  --img-bg: #eeebe6;
  --overlay: rgba(0, 0, 0, .7);
  --shadow: 0 1px 2px rgba(0, 0, 0, .5), 0 12px 32px rgba(0, 0, 0, .45);
  --hex-opacity: .12;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 16px/1.6 var(--font-body); -webkit-font-smoothing: antialiased;
  transition: background .25s var(--ease), color .25s var(--ease);
}
body.no-scroll { overflow: hidden; }
img, svg { max-width: 100%; display: block; }
img { height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 .5em; font-weight: 600; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 7vw, 3.8rem); }
h2 { font-size: clamp(1.65rem, 4.5vw, 2.5rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 200; background: var(--accent); color: var(--on-accent); padding: .6rem 1rem; border-radius: 8px; font-weight: 600; }
.skip:focus { left: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(44px, 8vw, 96px); }
.section-alt { background: var(--surface-2); }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 24px; margin-bottom: 28px; }
.section-head p { color: var(--muted); max-width: 52ch; margin: 0; }
.eyebrow { display: inline-flex; align-items: center; gap: .5rem; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-text); margin-bottom: 14px; }
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--accent); border-radius: 2px; }
.lead { font-size: clamp(1.02rem, 2.4vw, 1.2rem); color: var(--muted); max-width: 54ch; }
.link-arrow { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; color: var(--accent-text); text-decoration: none; }
.link-arrow:hover { text-decoration: underline; }
.ico { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ico.fill { fill: currentColor; stroke: none; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: 0 1.4rem; border-radius: var(--radius-pill);
  font: 600 .95rem/1 var(--font-body); border: 2px solid transparent; cursor: pointer; text-decoration: none; white-space: nowrap;
  background: var(--surface-2); color: var(--text); transition: transform .15s var(--ease), background .2s, box-shadow .2s, border-color .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-hover); box-shadow: 0 6px 18px rgba(242, 177, 46, .35); }
.btn-ghost { background: transparent; border-color: var(--border-strong); }
.btn-ghost:hover { border-color: var(--text); }
.btn-dark { background: var(--text); color: var(--bg); }
.btn-block { width: 100%; }
.btn-sm { min-height: 40px; padding: 0 1rem; font-size: .85rem; }
.btn-lg { min-height: 56px; padding: 0 2rem; font-size: 1rem; }
.btn[disabled], .btn.is-disabled { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }
.icon-btn {
  position: relative; display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: transparent; border: 0; cursor: pointer; color: var(--text); text-decoration: none; transition: background .2s;
}
.icon-btn:hover { background: var(--surface-2); }
.count-badge {
  position: absolute; top: 2px; right: 0; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px;
  background: var(--accent); color: var(--on-accent); font-size: .72rem; font-weight: 700; display: grid; place-items: center; line-height: 1;
}
.count-badge:empty, .count-badge[data-n="0"] { display: none; }

/* Announcement + header */
.announce { background: var(--text); color: var(--bg); font-size: .82rem; text-align: center; padding: .55rem 1rem; }
.announce b { color: var(--accent); }
[data-theme="dark"] .announce { background: var(--accent); color: var(--on-accent); }
[data-theme="dark"] .announce b { color: inherit; font-weight: 800; }
.site-header {
  position: sticky; top: 0; z-index: 60; background: var(--bg);
  background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--border);
}
.hdr { display: flex; align-items: center; gap: 4px; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; min-width: 0; }
.brand img { width: 44px; height: 44px; flex: none; }
@media (min-width: 720px) { .brand img { width: 48px; height: 48px; } }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text b { font-family: var(--font-head); font-size: 1.2rem; letter-spacing: -.01em; }
.brand-text small { display: none; font-size: .68rem; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }
.brand-text b { white-space: nowrap; }
@media (min-width: 720px) { .brand-text small { display: block; } }
.main-nav { display: none; }
.hdr-actions { display: flex; align-items: center; gap: 2px; }
.lang-switch { display: inline-flex; border: 1px solid var(--border-strong); border-radius: var(--radius-pill); padding: 2px; margin-inline: 4px; }
.lang-switch button { border: 0; background: transparent; cursor: pointer; font-size: .74rem; font-weight: 700; letter-spacing: .04em; min-width: 34px; height: 30px; border-radius: var(--radius-pill); color: var(--muted); }
.lang-switch button[aria-pressed="true"] { background: var(--text); color: var(--bg); }
.lang-mini { width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--border-strong); background: transparent; cursor: pointer; font-size: .74rem; font-weight: 700; margin-inline: 2px; }
.lang-mini:hover { background: var(--surface-2); }
.hdr-actions .lang-switch { display: none; }
.drawer .lang-switch { display: inline-flex; }
.drawer .lang-mini { display: none; }
@media (min-width: 720px) { .hdr-actions .lang-switch { display: inline-flex; } .hdr-actions .lang-mini { display: none; } }
.hide-mobile { display: none; }
.menu-btn { margin-left: -10px; }
.hdr > .menu-btn, .hdr-actions > * { flex: none; }
/* Narrow phones: the light/dark switch stays in the menu drawer so the brand name never runs into the icons. */
@media (max-width: 419px) { .site-header .hdr-actions .theme-toggle { display: none; } }
@media (max-width: 380px) {
  .brand { gap: 8px; }
  .brand img { width: 40px; height: 40px; }
  .brand-text b { font-size: 1.08rem; }
}
@media (max-width: 359px) { .site-header .brand-text { display: none; } }
@media (min-width: 1024px) {
  :root { --header-h: 76px; }
  .menu-btn { display: none; }
  .brand { margin-right: 28px; }
  .main-nav { display: flex; align-items: center; gap: 4px; margin-right: auto; }
  .main-nav > a, .main-nav .nav-link { padding: 10px 14px; border-radius: var(--radius-pill); text-decoration: none; font-weight: 600; font-size: .93rem; white-space: nowrap; }
  .main-nav > a:hover, .main-nav > a[aria-current] { background: var(--surface-2); }
  .hide-mobile { display: inline-grid; }
}

/* e-shop dropdown in the header: the label links to the shop, the chevron opens the category list (hover, tap or keyboard). */
.nav-item { position: relative; display: flex; align-items: center; border-radius: var(--radius-pill); transition: background .15s; }
.nav-item:hover, .nav-item.open, .nav-item.is-current { background: var(--surface-2); }
.main-nav .nav-item .nav-link { padding-right: 4px; background: none; }
.sub-toggle { appearance: none; border: 0; background: transparent; color: inherit; cursor: pointer; width: 30px; height: 40px; margin-right: 6px; padding: 0; border-radius: var(--radius-pill); display: grid; place-items: center; }
.sub-toggle .ico { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.sub-toggle[aria-expanded="true"] .ico { transform: rotate(180deg); }
.subnav {
  position: absolute; top: calc(100% + 8px); left: 0; z-index: 70; min-width: 270px; padding: 8px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .18s var(--ease), transform .18s var(--ease), visibility 0s .18s;
}
.subnav::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
.nav-item.open > .subnav { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.subnav a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; border-radius: var(--radius-sm); text-decoration: none; font-weight: 600; font-size: .93rem; }
.subnav a:hover { background: var(--surface-2); }
.subnav a[aria-current] { background: var(--surface-2); box-shadow: inset 3px 0 0 var(--accent); }
.subnav .ico { width: 18px; height: 18px; flex: none; }
.subnav .sub-all { color: var(--accent-text); font-weight: 700; }
.subnav ul { list-style: none; margin: 6px 0 0; padding: 6px 0 0; border-top: 1px solid var(--border); display: grid; gap: 2px; }
@media (min-width: 1024px) and (max-width: 1179px) {
  .brand { margin-right: 16px; }
  .main-nav > a, .main-nav .nav-link { padding-inline: 10px; }
}

/* Drawers, overlay, search */
.overlay { position: fixed; inset: 0; background: var(--overlay); z-index: 90; opacity: 0; pointer-events: none; transition: opacity .25s; }
.overlay.open { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; bottom: 0; z-index: 100; width: min(92vw, 420px); background: var(--bg);
  display: flex; flex-direction: column; box-shadow: var(--shadow); transition: transform .3s var(--ease);
}
.drawer.left { left: 0; transform: translateX(-102%); }
.drawer.right { right: 0; transform: translateX(102%); }
.drawer.open { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--border); }
.drawer-head h2 { margin: 0; font-size: 1.3rem; }
.drawer-body { flex: 1; overflow: auto; padding: 8px 18px 18px; }
.drawer-foot { padding: 16px 18px calc(16px + env(safe-area-inset-bottom)); border-top: 1px solid var(--border); background: var(--surface); display: grid; gap: 12px; }
.m-nav { display: grid; }
.m-nav a { padding: 15px 4px; border-bottom: 1px solid var(--border); text-decoration: none; font-family: var(--font-head); font-size: 1.25rem; display: flex; justify-content: space-between; align-items: center; }
.m-nav a[aria-current] { color: var(--accent-text); }
.m-acc { appearance: none; width: 100%; background: none; border: 0; border-bottom: 1px solid var(--border); padding: 15px 4px; color: inherit; font: inherit; font-family: var(--font-head); font-size: 1.25rem; text-align: left; cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
.m-acc .ico { transition: transform .25s var(--ease); }
.m-acc[aria-expanded="true"] .ico { transform: rotate(180deg); }
.m-sub { display: grid; grid-template-rows: 0fr; visibility: hidden; transition: grid-template-rows .28s var(--ease), visibility 0s .28s; }
.m-sub.open { grid-template-rows: 1fr; visibility: inherit; transition-delay: 0s; }
.m-sub > div { min-height: 0; overflow: hidden; display: grid; }
.m-nav .m-sub a { font-family: var(--font-body); font-size: 1.02rem; font-weight: 600; padding: 12px 4px 12px 18px; }
.m-nav .m-sub a[aria-current] { box-shadow: inset 3px 0 0 var(--accent); }
.m-tools { display: flex; align-items: center; gap: 12px; padding: 18px 0; flex-wrap: wrap; }
.m-contact { display: grid; gap: 10px; color: var(--muted); font-size: .92rem; padding-top: 8px; }
.m-contact a { display: inline-flex; gap: 8px; align-items: center; text-decoration: none; }
.search-panel { position: fixed; left: 0; right: 0; top: 0; z-index: 100; background: var(--bg); padding: 14px var(--gutter) 22px; transform: translateY(-105%); transition: transform .3s var(--ease); box-shadow: var(--shadow); }
.search-panel.open { transform: none; }
/* Closed layers leave the tab order and the accessibility tree once they have slid out. */
.drawer, .search-panel { visibility: hidden; transition: transform .3s var(--ease), visibility 0s .3s; }
.drawer.open, .search-panel.open { visibility: visible; transition: transform .3s var(--ease), visibility 0s; }
.search-panel .inner { max-width: 760px; margin-inline: auto; }
.search-row { display: flex; gap: 8px; align-items: center; }
.search-row input { flex: 1; min-height: 52px; border-radius: var(--radius-pill); border: 2px solid var(--border-strong); background: var(--surface); padding: 0 20px; font-size: 1rem; }
.search-row input:focus { border-color: var(--accent); outline: none; }
.search-results { display: grid; gap: 4px; margin-top: 12px; max-height: 55vh; overflow: auto; }
.search-results a { display: flex; align-items: center; gap: 14px; padding: 8px; border-radius: 12px; text-decoration: none; }
.search-results a:hover { background: var(--surface-2); }
.search-results img { width: 52px; height: 52px; object-fit: cover; border-radius: 10px; background: var(--img-bg); }
.search-results small { color: var(--muted); display: block; }
.search-hint { color: var(--muted); font-size: .85rem; margin: 12px 4px 0; }

/* Cart drawer items */
.ship-progress { background: var(--surface-2); border-radius: 14px; padding: 12px 14px; margin: 12px 0 4px; font-size: .88rem; }
.ship-progress .bar { height: 8px; border-radius: 6px; background: var(--border); margin-top: 8px; overflow: hidden; }
.ship-progress .bar i { display: block; height: 100%; background: var(--accent); border-radius: 6px; transition: width .4s var(--ease); }
.ship-progress.done { color: var(--ok); font-weight: 600; }
.cart-line { display: grid; grid-template-columns: 76px 1fr auto; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--border); align-items: start; }
.cart-line img { width: 76px; height: 76px; border-radius: 12px; object-fit: cover; background: var(--img-bg); }
.cart-line h4 { font: 600 .98rem/1.3 var(--font-body); margin: 0 0 2px; }
.cart-line small { color: var(--muted); }
.cart-line .price { font-weight: 700; text-align: right; }
.cart-line .rm { background: none; border: 0; padding: 4px 0; color: var(--muted); font-size: .8rem; cursor: pointer; text-decoration: underline; }
div.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--border-strong); border-radius: var(--radius-pill); height: 44px; margin-top: 8px; background: var(--surface); }
div.qty button { width: 40px; height: 100%; border: 0; background: transparent; cursor: pointer; border-radius: var(--radius-pill); display: grid; place-items: center; }
div.qty button:hover { background: var(--surface-2); }
div.qty output { min-width: 28px; text-align: center; font-weight: 600; }
.row-total { display: flex; justify-content: space-between; font-size: 1.05rem; font-weight: 700; }
.empty-state { text-align: center; padding: 48px 12px; color: var(--muted); }
.mini-upsell { margin-top: 20px; }
.mini-upsell h3 { font-size: 1rem; font-family: var(--font-body); }
.mini-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; }
.mini-row img { width: 52px; height: 52px; border-radius: 10px; object-fit: cover; background: var(--img-bg); }
.mini-row div { flex: 1; font-size: .9rem; line-height: 1.3; }

/* Hero */
.hero { position: relative; overflow: hidden; padding-block: clamp(28px, 6vw, 72px) clamp(40px, 6vw, 84px); background: radial-gradient(900px 480px at 85% 0%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%); }
.hero::after { content: ""; position: absolute; inset: 0; opacity: var(--hex-opacity); pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg width='56' height='100' viewBox='0 0 56 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M28 66L0 50V16L28 0l28 16v34zM28 66v34' fill='none' stroke='%23f2b12e' stroke-width='1.6'/%3E%3C/svg%3E");
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 85%); mask-image: linear-gradient(180deg, #000, transparent 85%); }
.hero > .container { position: relative; }
.hero-grid { display: grid; gap: 28px; align-items: center; }
.hero h1 { margin-bottom: 16px; }
.hero h1 em { font-style: italic; color: var(--accent-text); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0; }
@media (max-width: 520px) { .hero-cta .btn { flex: 1 1 100%; } }
.trust-row { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; font-size: .85rem; font-weight: 600; }
.trust-row li { display: flex; align-items: center; gap: 10px; }
.trust-row .ico { color: var(--accent-text); width: 20px; height: 20px; }
.hero-media { position: relative; }
.hero-img { width: 100%; height: auto; aspect-ratio: 4/3; object-fit: cover; border-radius: 28px; box-shadow: var(--shadow); }
.hero-card {
  position: absolute; left: 14px; right: 14px; bottom: -22px; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 10px;
  display: flex; align-items: center; gap: 12px; box-shadow: var(--shadow);
}
.hero-card img { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; background: var(--img-bg); }
.hero-card .t { flex: 1; min-width: 0; line-height: 1.25; }
.hero-card .t small { color: var(--muted); display: block; }
.hero-card .t b { display: block; font-size: .95rem; }
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.05fr 1fr; gap: 56px; }
  .hero-img { aspect-ratio: 5/5; border-radius: 36px; }
  .hero-card { left: -28px; right: auto; bottom: 36px; width: 380px; }
  .trust-row { grid-template-columns: 1fr 1fr; max-width: 520px; }
}

/* Tiles */
.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.tile { position: relative; display: block; border-radius: var(--radius); overflow: hidden; background: var(--img-bg); aspect-ratio: 4/5; text-decoration: none; color: #1a1511; isolation: isolate; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.tile:hover img { transform: scale(1.05); }
.tile span { position: absolute; left: 10px; right: 10px; bottom: 10px; background: color-mix(in srgb, #fff 92%, transparent); border-radius: 12px; padding: 10px 14px; display: flex; justify-content: space-between; align-items: center; font-weight: 700; font-size: .95rem; backdrop-filter: blur(6px); }
@media (min-width: 720px) { .tiles { grid-template-columns: repeat(5, 1fr); gap: 16px; } }

/* Product cards + grid */
.grid-products { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 720px) { .grid-products { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; } }
@media (min-width: 1100px) { .grid-products.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.pcard { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: box-shadow .25s, transform .25s var(--ease), border-color .25s; }
.pcard:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: var(--border-strong); }
.pcard-media { position: relative; aspect-ratio: 1/1; background: var(--img-bg); display: block; overflow: hidden; }
.pcard-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.pcard:hover .pcard-media img { transform: scale(1.04); }
.pcard.soldout .pcard-media img { opacity: .55; filter: grayscale(.4); }
.pcard-body { padding: 12px 12px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
@media (min-width: 720px) { .pcard-body { padding: 16px 16px 18px; gap: 8px; } }
.pcard-title { font: 600 .98rem/1.3 var(--font-body); margin: 0; text-wrap: balance; }
.pcard-title a { text-decoration: none; }
.pcard-title a:hover { text-decoration: underline; }
.pcard-sub { color: var(--muted); font-size: .82rem; line-height: 1.35; margin: 0; }
@media (min-width: 720px) { .pcard-sub { min-height: 2.7em; } }
.stars { display: inline-flex; align-items: center; gap: 2px; color: var(--accent); font-size: .8rem; }
.stars .ico { width: 15px; height: 15px; }
.stars small { color: var(--muted); margin-left: 6px; }
.pcard-price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; font-weight: 700; font-size: 1.08rem; margin-top: 2px; }
.pcard-price .unit, .unit { color: var(--muted); font-size: .76rem; font-weight: 400; }
.pcard-foot { margin-top: auto; display: grid; gap: 10px; padding-top: 6px; }
.badge { position: absolute; top: 10px; left: 10px; z-index: 2; background: var(--text); color: var(--bg); font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 5px 10px; border-radius: var(--radius-pill); }
.badge.best { background: var(--accent); color: var(--on-accent); }
.badge.out { background: #6d6558; color: #fff; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { min-height: 40px; padding: 0 14px; border-radius: var(--radius-pill); border: 1.5px solid var(--border-strong); background: transparent; cursor: pointer; font-weight: 600; font-size: .85rem; transition: all .15s; display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
.chip:hover { border-color: var(--text); }
.chip[aria-pressed="true"], .chip.active { background: var(--text); color: var(--bg); border-color: var(--text); }
.chip[disabled] { opacity: .45; text-decoration: line-through; cursor: not-allowed; }
.chips.scroll { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
.chips.scroll::-webkit-scrollbar { display: none; }
.chips.scroll .chip { flex: none; }
.pcard .chip { min-height: 38px; padding: 0 12px; font-size: .82rem; }
@media (min-width: 720px) { .pcard .chip { min-height: 40px; padding: 0 14px; font-size: .85rem; } }

/* Flavor guide */
.guide { display: grid; gap: 20px; }
.guide-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.guide-panel { display: grid; gap: 20px; background: var(--surface); border: 1px solid var(--border); border-radius: 24px; padding: 18px; align-items: center; }
.guide-panel img { width: 100%; aspect-ratio: 1/1; object-fit: cover; border-radius: 18px; background: var(--img-bg); max-height: 360px; }
.meters { display: grid; gap: 10px; margin: 18px 0 22px; }
.meter { display: grid; grid-template-columns: 120px 1fr; align-items: center; gap: 12px; font-size: .88rem; }
.meter .dots { display: flex; gap: 6px; }
.meter > span:last-child { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.meter .dots i { width: 22px; height: 8px; border-radius: 4px; background: var(--border); }
.meter .dots i.on { background: var(--accent); }
.meter small { color: var(--muted); }
@media (min-width: 800px) { .guide-panel { grid-template-columns: 340px 1fr; padding: 28px; gap: 40px; } }

/* Regions / story */
.story-banner { position: relative; border-radius: 28px; overflow: hidden; min-height: 320px; display: grid; align-items: end; color: #fff; isolation: isolate; }
.story-banner > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.story-banner::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10, 6, 0, .1), rgba(10, 6, 0, .78)); }
.story-banner .inner { padding: clamp(20px, 5vw, 48px); max-width: 720px; }
.story-banner h2 { color: #fff; }
.story-banner p { color: rgba(255, 255, 255, .88); margin: 0; }
.regions { display: grid; gap: 12px; margin-top: 16px; }
.region { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; display: grid; gap: 4px; }
.region .ico { color: var(--accent-text); margin-bottom: 6px; }
.region h3 { margin: 0; font-size: 1.15rem; }
.region p { margin: 0; color: var(--muted); font-size: .92rem; }
.region small { font-weight: 700; color: var(--accent-text); letter-spacing: .06em; text-transform: uppercase; font-size: .72rem; }
@media (min-width: 720px) { .regions { grid-template-columns: repeat(4, 1fr); } }

/* USPs */
.usps { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 14px; }
.usp { display: grid; gap: 8px; }
.usp .ico { width: 34px; height: 34px; color: var(--accent-text); padding: 6px; background: var(--surface-2); border-radius: 12px; box-sizing: content-box; }
.usp h3 { font-family: var(--font-body); font-size: 1rem; margin: 4px 0 0; }
.usp p { margin: 0; color: var(--muted); font-size: .9rem; }
@media (min-width: 900px) { .usps { grid-template-columns: repeat(4, 1fr); gap: 28px; } }

/* Promo + newsletter */
.sample-tag { display: inline-block; font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); border: 1px dashed var(--border-strong); border-radius: var(--radius-pill); padding: 3px 10px; }
.promo { display: grid; gap: 22px; border-radius: 28px; padding: clamp(24px, 5vw, 56px); background: var(--text); color: var(--bg); overflow: hidden; position: relative; }
.promo h2 { color: inherit; }
.promo p { opacity: .85; max-width: 48ch; }
.promo .btn-primary { justify-self: start; }
.promo .stack { display: flex; }
.promo .stack img { width: 92px; height: 92px; border-radius: 50%; object-fit: cover; border: 4px solid var(--text); margin-left: -22px; background: var(--img-bg); }
.promo .stack img:first-child { margin-left: 0; }
@media (min-width: 800px) { .promo { grid-template-columns: 1.3fr 1fr; align-items: center; } .promo .stack { justify-content: end; } .promo .stack img { width: 128px; height: 128px; } }
.newsletter { display: grid; gap: 18px; }
.news-form { display: grid; gap: 12px; max-width: 520px; }
.news-form .row { display: flex; gap: 8px; flex-wrap: wrap; }
.news-form input[type="email"] { flex: 1 1 220px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .85rem; color: var(--muted); }
.check input { margin-top: 3px; width: 20px; height: 20px; accent-color: var(--accent); flex: none; }
@media (min-width: 900px) { .newsletter { grid-template-columns: 1fr 1fr; align-items: center; gap: 56px; } }

/* Footer */
.site-footer { background: var(--surface-2); border-top: 1px solid var(--border); padding-top: 56px; }
.foot-grid { display: grid; gap: 32px; }
.foot-grid h3 { font-family: var(--font-body); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.foot-grid a { text-decoration: none; display: inline-block; padding: 5px 0; }
.foot-grid a:hover { text-decoration: underline; }
.foot-grid .brand { display: inline-flex; padding: 0; margin-bottom: 14px; }
.foot-grid .brand:hover { text-decoration: none; }
.foot-grid .contact li { display: flex; gap: 10px; align-items: flex-start; padding: 4px 0; color: var(--text); }
.foot-grid .contact .ico { color: var(--accent-text); margin-top: 2px; width: 20px; height: 20px; }
.pay-block { margin-top: 18px; display: grid; gap: 8px; }
.pay-label { margin: 6px 0 0; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.pay-block .pay-row { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pay-row li { display: flex; align-items: center; height: 40px; border: 1px solid var(--border-strong); border-radius: 7px; background: #fff; overflow: hidden; }
.pay-row img { display: block; height: 100%; width: auto; }
.pay-row .pad img { padding: 2px 6px; }
.foot-legal { margin: 36px 0 0; font-size: .8rem; color: var(--muted); }
.foot-bottom { margin-top: 12px; border-top: 1px solid var(--border); padding-block: 20px calc(20px + 70px); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: .82rem; color: var(--muted); }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; }
.link-btn { appearance: none; background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; cursor: pointer; }
.link-btn:hover { color: var(--text); }
.co-legal .link-btn { color: var(--muted); font-size: inherit; }
@media (min-width: 900px) { .foot-grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 48px; } .foot-bottom { padding-bottom: 24px; } }

/* FAB + toast */
/* Floating actions: back-to-top (all screens) + WhatsApp / Viber (desktop only, they covered buttons on mobile) */
.float-stack { position: fixed; right: 14px; bottom: 14px; z-index: 40; display: flex; flex-direction: column; align-items: center; gap: 10px; }
body.has-sticky .float-stack { bottom: 88px; }
@media (min-width: 900px) { body.has-sticky .float-stack { bottom: 14px; } }
.fab { width: 48px; height: 48px; border-radius: 50%; border: 0; display: grid; place-items: center; box-shadow: var(--shadow); text-decoration: none; cursor: pointer; color: #fff; transition: transform .15s var(--ease), opacity .25s, visibility .25s; }
.fab:hover { transform: translateY(-2px); }
.fab-chat { display: grid; }
.fab-chat.wa { background: #1da851; }
.fab-chat.vb { background: #7360f2; }
.fab-top { background: var(--text); color: var(--bg); opacity: 0; visibility: hidden; transform: translateY(8px); }
.fab-top.show { opacity: 1; visibility: visible; transform: none; }
.fab-top.show:hover { transform: translateY(-2px); }
@media (max-width: 899px) { .fab { width: 46px; height: 46px; } .float-stack { gap: 8px; right: 12px; } }
.chat-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.foot-grid .chat-pill { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: var(--radius-pill); border: 1.5px solid var(--border-strong); background: var(--surface); text-decoration: none; font-weight: 600; font-size: .88rem; }
.foot-grid .chat-pill:hover { border-color: var(--text); text-decoration: none; }
.chat-pill.wa .ico { color: #1da851; }
.chat-pill.vb .ico { color: #7360f2; }
[data-theme="dark"] .chat-pill.vb .ico { color: #a597ff; }
[data-theme="dark"] .chat-pill.wa .ico { color: #4fd98a; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 220%); opacity: 0; visibility: hidden; z-index: 150; background: var(--text); color: var(--bg); padding: 14px 20px; border-radius: 14px; box-shadow: var(--shadow); font-weight: 600; display: flex; gap: 10px; align-items: center; max-width: calc(100vw - 32px); transition: transform .35s var(--ease), opacity .25s, visibility .25s; }
.toast.show { transform: translate(-50%, 0); opacity: 1; visibility: visible; }
.toast .ico { color: var(--accent); }

/* Breadcrumb + page head */
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: .84rem; color: var(--muted); padding-block: 18px 6px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs span[aria-hidden] { opacity: .5; }
.page-head { padding-block: 8px 24px; }
.page-head p { color: var(--muted); max-width: 60ch; margin: 0; }

/* Shop layout */
.shop-layout { display: grid; gap: 24px; padding-bottom: 72px; }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-bottom: 18px; }
.toolbar .count { color: var(--muted); font-size: .9rem; }
.toolbar-r { display: flex; gap: 10px; align-items: center; }
.select { min-height: 44px; border-radius: var(--radius-pill); border: 1.5px solid var(--border-strong); background: var(--surface); padding: 0 16px; font-weight: 600; font-size: .9rem; cursor: pointer; }
.filters { display: grid; gap: 24px; align-content: start; }
.filter-group h3 { font-family: var(--font-body); font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.filter-list { display: grid; gap: 2px; }
.filter-list button { display: flex; justify-content: space-between; align-items: center; min-height: 44px; padding: 0 12px; border: 0; background: transparent; border-radius: 12px; cursor: pointer; text-align: left; font-weight: 500; }
.filter-list button:hover { background: var(--surface-2); }
.filter-list button[aria-pressed="true"] { background: var(--surface-2); font-weight: 700; box-shadow: inset 3px 0 0 var(--accent); }
.filter-list small { color: var(--muted); }
.switch { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; padding: 0 12px; cursor: pointer; font-weight: 500; }
/* The selector is "label.switch input[type=checkbox]" on purpose: WooCommerce pages also match ".woocommerce input[type=checkbox]" (wp.css, 20x20), which would otherwise shrink the track. */
label.switch input[type="checkbox"] { appearance: none; -webkit-appearance: none; width: 46px; height: 28px; margin: 0; border-radius: 14px; background: var(--border-strong); position: relative; cursor: pointer; transition: background .2s; flex: none; }
label.switch input[type="checkbox"]::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform .2s var(--ease); box-shadow: 0 1px 3px rgba(0, 0, 0, .3); }
label.switch input[type="checkbox"]:checked { background: var(--accent); }
label.switch input[type="checkbox"]:checked::after { transform: translateX(18px); }
@media (prefers-reduced-motion: reduce) { label.switch input[type="checkbox"], label.switch input[type="checkbox"]::after { transition: none; } }
.filters-sheet-head { display: none; }
@media (max-width: 899px) {
  .filters { position: fixed; left: 0; right: 0; bottom: 0; z-index: 100; max-height: 82vh; overflow: auto; background: var(--bg); border-radius: 24px 24px 0 0; padding: 0 20px 20px; transform: translateY(105%); transition: transform .3s var(--ease); box-shadow: var(--shadow); }
  .filters.open { transform: none; }
  .filters-sheet-head { display: flex; justify-content: space-between; align-items: center; position: sticky; top: 0; background: var(--bg); padding: 16px 0 8px; z-index: 1; }
  .filters-sheet-head h2 { margin: 0; font-size: 1.3rem; }
}
@media (min-width: 900px) {
  .shop-layout { grid-template-columns: 250px 1fr; gap: 40px; }
  .filters { position: sticky; top: calc(var(--header-h) + 20px); align-self: start; }
  #open-filters, #apply-filters, #chips-cat { display: none; }
}
.cat-note { background: var(--surface-2); border-radius: var(--radius); padding: 14px 18px; display: flex; gap: 12px; align-items: center; margin-bottom: 18px; font-size: .92rem; }
.cat-note .ico { color: var(--accent-text); }

/* Product page */
.pdp { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; padding-bottom: 40px; }
.pdp > * { min-width: 0; }
.gallery { display: grid; gap: 12px; align-content: start; }
.gallery-main { position: relative; border-radius: 24px; overflow: hidden; background: var(--img-bg); aspect-ratio: 1/1; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.thumbs { display: flex; gap: 10px; }
.thumbs button { width: 76px; height: 76px; border-radius: 14px; overflow: hidden; border: 2px solid transparent; padding: 0; cursor: pointer; background: var(--img-bg); }
.thumbs button[aria-current="true"] { border-color: var(--accent); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pdp-info h1 { font-size: clamp(1.9rem, 5vw, 2.8rem); margin-bottom: 10px; }
.pdp-meta { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; color: var(--muted); font-size: .9rem; margin-bottom: 14px; }
.pdp-meta .ok { color: var(--ok); font-weight: 600; display: inline-flex; gap: 6px; align-items: center; }
.pdp-price { display: flex; align-items: baseline; gap: 12px; margin: 14px 0 6px; }
.pdp-price strong { font-size: 2rem; font-family: var(--font-head); }
.pdp-short { color: var(--muted); }
.opt-label { font-weight: 700; font-size: .85rem; margin: 20px 0 8px; display: block; }
.size-opts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.size-opt { border: 1.5px solid var(--border-strong); border-radius: 14px; padding: 12px 14px; cursor: pointer; background: var(--surface); text-align: left; display: grid; gap: 2px; transition: border-color .15s, box-shadow .15s; }
.size-opt b { font-size: 1rem; }
.size-opt span { font-size: .84rem; color: var(--muted); }
.size-opt[aria-pressed="true"] { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 30%, transparent); }
.size-opt[disabled] { opacity: .5; cursor: not-allowed; }
.buy-row { display: flex; gap: 12px; margin-top: 22px; align-items: center; }
.buy-row .quantity { height: 56px; }
.buy-row .btn { flex: 1; }
.trust-list { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 0; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.trust-list li { display: flex; gap: 14px; align-items: center; padding: 14px 16px; font-size: .92rem; border-bottom: 1px solid var(--border); }
.trust-list li:last-child { border-bottom: 0; }
.trust-list .ico { color: var(--accent-text); }
.trust-list small { display: block; color: var(--muted); }
.facts { width: 100%; border-collapse: collapse; font-size: .92rem; }
.facts th, .facts td { text-align: left; padding: 11px 0; border-bottom: 1px solid var(--border); vertical-align: top; }
.facts th { color: var(--muted); font-weight: 500; width: 42%; padding-right: 12px; }
.acc { border-bottom: 1px solid var(--border); }
.acc summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 2px; font-family: var(--font-head); font-size: 1.15rem; font-weight: 600; min-height: 56px; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary .ico { transition: transform .25s; }
.acc[open] summary .ico { transform: rotate(180deg); }
.acc .acc-body { padding: 0 2px 20px; color: var(--muted); }
.acc .acc-body ul { padding-left: 1.2rem; margin: 0 0 1em; }
.acc .acc-body li { margin-bottom: .3em; }
.note { font-size: .82rem; background: var(--surface-2); border-radius: 12px; padding: 12px 14px; color: var(--muted); }
.sticky-atc { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; background: var(--surface); border-top: 1px solid var(--border); padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 12px; transform: translateY(110%); transition: transform .3s var(--ease); box-shadow: 0 -8px 24px rgba(0, 0, 0, .1); }
.sticky-atc.show { transform: none; }
.sticky-atc .t { flex: 1; min-width: 0; line-height: 1.25; }
.sticky-atc .t b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: .92rem; }
.sticky-atc .t span { font-weight: 700; }
@media (min-width: 900px) {
  .pdp { grid-template-columns: 1.05fr 1fr; gap: 56px; }
  .gallery { position: sticky; top: calc(var(--header-h) + 20px); align-self: start; }
  .sticky-atc { display: none; }
}

/* Checkout */
.co-header { border-bottom: 1px solid var(--border); background: var(--bg); }
.co-header .hdr { justify-content: space-between; }
.secure { display: inline-flex; gap: 8px; align-items: center; font-size: .85rem; font-weight: 600; color: var(--muted); }
@media (max-width: 560px) { .secure span { display: none; } .co-header .hdr { gap: 8px; } }
.co-layout { display: grid; gap: 28px; padding-block: 24px 80px; }
.co-steps { display: flex; gap: 8px; align-items: center; font-size: .82rem; color: var(--muted); flex-wrap: wrap; margin-bottom: 8px; }
.co-steps b { color: var(--text); }
.co-section { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; display: grid; gap: 14px; }
.co-section h2 { font-size: 1.3rem; margin: 0; display: flex; align-items: center; gap: 12px; }
.co-section h2 i { font-style: normal; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; font-family: var(--font-body); font-size: .9rem; font-weight: 700; flex: none; }
.express { display: grid; gap: 10px; }
.pay-btn { min-height: 52px; border-radius: 12px; border: 0; background: #000; color: #fff; font-weight: 600; font-size: 1.05rem; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 6px; }
[data-theme="dark"] .pay-btn { background: #fff; color: #000; }
.divider { display: flex; align-items: center; gap: 14px; color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.form-grid { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }
.field { display: grid; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: .86rem; }
.field label small { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  min-height: 50px; border-radius: 12px; border: 1.5px solid var(--border-strong); background: var(--bg); padding: 0 14px; font-size: 1rem; width: 100%;
}
.field textarea { padding: 12px 14px; min-height: 90px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); outline: 3px solid color-mix(in srgb, var(--accent) 30%, transparent); outline-offset: 0; }
.field .err { display: none; color: var(--danger); font-size: .8rem; }
.field.invalid input { border-color: var(--danger); }
.field.invalid .err { display: block; }
.opts { display: grid; gap: 10px; }
.opt { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; border: 1.5px solid var(--border-strong); border-radius: 14px; padding: 14px 16px; cursor: pointer; background: var(--bg); transition: border-color .15s, box-shadow .15s; }
.opt:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 28%, transparent); background: var(--surface); }
.opt input { width: 20px; height: 20px; accent-color: var(--accent); margin: 0; }
.opt b { display: block; font-size: .98rem; }
.opt small { color: var(--muted); display: block; line-height: 1.35; }
.opt .p { font-weight: 700; white-space: nowrap; }
.opt .sub { grid-column: 2 / -1; display: none; }
.opt:has(input:checked) .sub { display: block; }
.locker-pick { margin-top: 10px; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.summary { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; display: grid; gap: 14px; align-content: start; }
.summary h2 { font-size: 1.3rem; margin: 0; }
.sum-line { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center; }
.sum-line .im { position: relative; }
.sum-line .im img { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; background: var(--img-bg); }
.sum-line .im em { position: absolute; top: -6px; right: -6px; min-width: 22px; height: 22px; border-radius: 11px; background: var(--text); color: var(--bg); font-size: .75rem; font-style: normal; font-weight: 700; display: grid; place-items: center; padding: 0 5px; }
.sum-line b { display: block; font-size: .92rem; line-height: 1.3; }
.sum-line small { color: var(--muted); }
.totals { display: grid; gap: 8px; border-top: 1px solid var(--border); padding-top: 14px; font-size: .95rem; }
.totals div { display: flex; justify-content: space-between; }
.totals .grand { font-size: 1.3rem; font-weight: 700; border-top: 1px solid var(--border); padding-top: 12px; margin-top: 4px; font-family: var(--font-head); }
.totals .free { color: var(--ok); font-weight: 600; }
.coupon summary { cursor: pointer; font-weight: 600; font-size: .9rem; color: var(--accent-text); list-style: none; }
.coupon summary::-webkit-details-marker { display: none; }
.coupon .row { display: flex; gap: 8px; margin-top: 10px; }
.coupon input { flex: 1; min-height: 46px; border-radius: 12px; border: 1.5px solid var(--border-strong); background: var(--bg); padding: 0 14px; }
.summary-toggle { width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface-2); font-weight: 600; cursor: pointer; }
.sum-wrap { display: none; }
.sum-wrap.open { display: block; }
.co-side { order: -1; display: grid; gap: 10px; align-content: start; }
.check.invalid { color: var(--danger); }
.opt .p svg { display: inline-block; }
@media (min-width: 960px) {
  .co-layout { grid-template-columns: 1.25fr 1fr; gap: 56px; }
  .co-side { order: 0; }
  .summary-toggle { display: none; }
  .sum-wrap { display: block; position: sticky; top: 24px; align-self: start; }
}

/* Design-system page helpers */
.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.swatch { border: 1px solid var(--border); border-radius: 14px; overflow: hidden; background: var(--surface); font-size: .8rem; }
.swatch i { display: block; height: 64px; border-bottom: 1px solid var(--border); }
.swatch div { padding: 10px 12px; }
.swatch code, code.k { font-family: ui-monospace, Consolas, monospace; font-size: .78rem; color: var(--muted); }
.map-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.map-table th, .map-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
.map-table th { color: var(--muted); font-weight: 600; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; }
.demo-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-block: 14px; }
.type-sample { display: grid; gap: 6px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
