/* ==========================================================================
   LUNULA — šperky s tisícročným pôvodom
   Design: nočná vitrína — espresso čierna, slonovina, šampanské zlato.
   Fonty: Marcellus (display) · Archivo (UI) · JetBrains Mono (ceny/kódy)
   ========================================================================== */

:root {
  --ink: #15120e;          /* espresso čierna — pozadie */
  --ink-2: #1c1813;        /* jemne zdvihnuté pozadie sekcií */
  --panel: #211c15;        /* karty, vitríny */
  --panel-2: #2a241b;      /* hover / vnorené plochy */
  --ivory: #f4eee3;        /* hlavný text */
  --muted: #a89d8b;        /* sekundárny text */
  --gold: #c8a24b;         /* šampanské zlato — akcent */
  --gold-soft: rgba(200, 162, 75, 0.32);
  --hairline: rgba(200, 162, 75, 0.22);
  --hairline-dim: rgba(244, 238, 227, 0.1);
  --danger: #c96f4a;       /* upozornenia, chyby formulárov */
  --ok: #8fae7e;           /* potvrdenia */
  --serif: 'Marcellus', 'Times New Roman', serif;
  --sans: 'Archivo', -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', 'SF Mono', monospace;
  --maxw: 1180px;
  --radius: 4px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--ivory);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}

::selection { background: var(--gold); color: var(--ink); }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(1.1rem, 4vw, 2rem); }

/* --- typografia ------------------------------------------------------- */
.eyebrow {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.14; margin: 0; }
.display { font-size: clamp(2.6rem, 6.5vw, 4.6rem); letter-spacing: 0.01em; }
.display em, .serif-i { font-style: normal; color: var(--gold); }
.section-title { font-size: clamp(1.9rem, 4vw, 2.8rem); }
.lead { color: var(--muted); font-size: 1.06rem; max-width: 54ch; }
.mono { font-family: var(--mono); }

.hairline-row {
  display: flex; align-items: center; gap: 1rem;
}
.hairline-row::after {
  content: ""; flex: 1; height: 1px; background: var(--hairline);
}

/* --- topbar ------------------------------------------------------------ */
.topbar {
  position: sticky; top: 0; z-index: 60;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem clamp(1.1rem, 4vw, 2rem);
  background: rgba(21, 18, 14, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--hairline-dim);
}
.brand {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--mono); font-size: 1.02rem; letter-spacing: 0.34em;
  text-decoration: none; color: var(--ivory);
}
.brand-mark { width: 22px; height: 22px; flex: none; }
.brand-mark path, .brand-mark circle { fill: var(--gold); }
.nav { display: flex; gap: clamp(1rem, 3vw, 2rem); }
.nav a {
  text-decoration: none; font-size: 0.92rem; color: var(--muted);
  padding: 0.3rem 0; border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--ivory); border-bottom-color: var(--gold); }

.cart-btn {
  position: relative;
  display: inline-flex; align-items: center; gap: 0.55rem;
  background: none; border: 1px solid var(--hairline);
  color: var(--ivory); border-radius: 999px;
  padding: 0.5rem 1.05rem; font-size: 0.88rem;
  transition: border-color 0.2s, background 0.2s;
}
.cart-btn:hover { border-color: var(--gold); background: rgba(200, 162, 75, 0.08); }
.cart-count {
  font-family: var(--mono); font-size: 0.78rem;
  background: var(--gold); color: var(--ink);
  border-radius: 999px; min-width: 1.35rem; height: 1.35rem;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0 0.3rem;
}
.cart-count[data-empty="true"] { background: var(--panel-2); color: var(--muted); }

/* --- hero --------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: min(88vh, 860px);
  display: grid; align-items: end;
  isolation: isolate;
  overflow: hidden;
}
.hero .ph { position: absolute; inset: 0; z-index: -1; }
.hero .ph img { width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(21,18,14,0.25) 0%, rgba(21,18,14,0.45) 55%, rgba(21,18,14,0.94) 100%);
}
.hero-inner { padding-top: clamp(3rem, 8vw, 5.5rem); padding-bottom: clamp(3rem, 8vw, 5.5rem); width: 100%; }
.hero-inner .lead { margin: 1.2rem 0 2rem; }
.hero-ctas { display: flex; gap: 0.9rem; flex-wrap: wrap; }

/* --- tlačidlá ------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.85rem 1.7rem;
  font-size: 0.92rem; font-weight: 500; letter-spacing: 0.04em;
  text-decoration: none; border-radius: var(--radius);
  border: 1px solid transparent;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.15s;
}
.btn:active { transform: translateY(1px); }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: #d9b45e; }
.btn-line { border-color: var(--hairline); color: var(--ivory); background: transparent; }
.btn-line:hover { border-color: var(--gold); color: var(--gold); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; }

/* --- placeholder pre fotky ------------------------------------------------ */
.ph {
  position: relative; overflow: hidden;
  background:
    radial-gradient(120% 90% at 50% 10%, var(--panel-2) 0%, var(--panel) 55%, var(--ink-2) 100%);
}
.ph::before {
  content: "";
  position: absolute; inset: 0; margin: auto;
  width: 34%; aspect-ratio: 1;
  background: var(--gold);
  opacity: 0.14;
  -webkit-mask: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><path d="M7.5 21 A10.2 10.2 0 1 1 24.5 21 A11.5 11.5 0 0 0 7.5 21 Z"/></svg>') center / contain no-repeat;
  mask: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><path d="M7.5 21 A10.2 10.2 0 1 1 24.5 21 A11.5 11.5 0 0 0 7.5 21 Z"/></svg>') center / contain no-repeat;
}
.ph > img { position: relative; z-index: 1; }
.ph-45 { aspect-ratio: 4 / 5; }
.ph-45 img, .ph-32 img { width: 100%; height: 100%; object-fit: cover; }
.ph-32 { aspect-ratio: 3 / 2; }

/* --- produktové karty ----------------------------------------------------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.1rem, 2.5vw, 1.8rem);
}
.product-card {
  text-decoration: none; color: inherit;
  display: flex; flex-direction: column; gap: 0.85rem;
}
.product-card .ph { border: 1px solid var(--hairline-dim); transition: border-color 0.25s; }
.product-card:hover .ph { border-color: var(--gold-soft); }
.product-card .ph img { transition: transform 0.5s ease; }
.product-card:hover .ph img { transform: scale(1.035); }
.pc-meta { display: flex; align-items: baseline; justify-content: space-between; gap: 0.8rem; }
.pc-name { font-family: var(--serif); font-size: 1.06rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ivory); }
.pc-cat { font-size: 0.78rem; color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; }
.pc-price { font-family: var(--mono); font-size: 0.95rem; color: var(--gold); white-space: nowrap; }
.badge {
  position: absolute; top: 0.8rem; left: 0.8rem; z-index: 2;
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase;
  background: rgba(21, 18, 14, 0.85); color: var(--gold);
  border: 1px solid var(--hairline);
  padding: 0.3rem 0.6rem; border-radius: 2px;
}

/* --- sekcie --------------------------------------------------------------- */
.section { padding: clamp(3.2rem, 8vw, 5.5rem) 0; }
.section-head { margin-bottom: clamp(1.8rem, 4vw, 2.8rem); display: grid; gap: 0.7rem; }
.section-alt { background: var(--ink-2); border-top: 1px solid var(--hairline-dim); border-bottom: 1px solid var(--hairline-dim); }

/* hodnoty / benefity */
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.value h3 { font-size: 1.35rem; margin-bottom: 0.4rem; }
.value p { color: var(--muted); font-size: 0.95rem; margin: 0; }
.value .eyebrow { display: block; margin-bottom: 0.9rem; }

/* príbeh teaser */
.story-split { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(1.5rem, 5vw, 4rem); align-items: center; }
.story-split .ph { border: 1px solid var(--hairline-dim); }
.story-split .lead { margin: 1.1rem 0 1.8rem; }

/* --- katalóg -------------------------------------------------------------- */
.filters { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 2rem; }
.filter-btn {
  background: none; border: 1px solid var(--hairline-dim); color: var(--muted);
  border-radius: 999px; padding: 0.45rem 1.1rem; font-size: 0.86rem;
  transition: color 0.2s, border-color 0.2s;
}
.filter-btn:hover { color: var(--ivory); border-color: var(--hairline); }
.filter-btn[aria-pressed="true"] { color: var(--ink); background: var(--gold); border-color: var(--gold); }

/* --- breadcrumb ------------------------------------------------------------ */
.crumbs { font-size: 0.84rem; color: var(--muted); margin: 1.4rem 0; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--gold); }
.crumbs .sep { margin: 0 0.5rem; color: var(--hairline); }

/* --- produktový detail ------------------------------------------------------ */
.pdp { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(1.6rem, 5vw, 4rem); align-items: start; }
.pdp-gallery { position: sticky; top: 84px; }
.pdp-gallery .ph { border: 1px solid var(--hairline-dim); }
.pdp-info h1 { font-size: clamp(1.9rem, 4vw, 2.7rem); letter-spacing: 0.16em; text-transform: uppercase; }
.pdp-cat { margin-bottom: 0.5rem; }
.pdp-price { font-family: var(--mono); font-size: 1.5rem; color: var(--gold); margin: 1rem 0 0.2rem; }
.pdp-vat { font-size: 0.8rem; color: var(--muted); }
.pdp-desc { color: var(--muted); margin: 1.4rem 0; }
.pdp-actions { display: grid; gap: 0.8rem; margin: 1.8rem 0; }
.pdp-stock { display: flex; align-items: center; gap: 0.5rem; font-size: 0.86rem; color: var(--ok); }
.pdp-stock::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }

.size-row { display: flex; gap: 0.5rem; flex-wrap: wrap; margin: 0.5rem 0 0.3rem; }
.size-btn {
  min-width: 3rem; padding: 0.5rem 0.6rem;
  background: none; border: 1px solid var(--hairline-dim); color: var(--ivory);
  border-radius: var(--radius); font-family: var(--mono); font-size: 0.88rem;
}
.size-btn:hover { border-color: var(--hairline); }
.size-btn[aria-pressed="true"] { border-color: var(--gold); color: var(--gold); background: rgba(200,162,75,0.08); }
.size-label { font-size: 0.85rem; color: var(--muted); }
.size-error { color: var(--danger); font-size: 0.85rem; display: none; }
.size-error.show { display: block; }

.pdp-details { border-top: 1px solid var(--hairline-dim); margin-top: 2rem; }
.pdp-details details { border-bottom: 1px solid var(--hairline-dim); }
.pdp-details summary {
  cursor: pointer; list-style: none;
  padding: 1.05rem 0; font-family: var(--serif); font-size: 1.2rem;
  display: flex; justify-content: space-between; align-items: center;
}
.pdp-details summary::after { content: "+"; font-family: var(--mono); color: var(--gold); }
.pdp-details details[open] summary::after { content: "–"; }
.pdp-details .dd-body { padding: 0 0 1.2rem; color: var(--muted); font-size: 0.94rem; }
.pdp-details .dd-body ul { margin: 0; padding-left: 1.1rem; }
.pdp-details .dd-body li { margin: 0.25rem 0; }

.related { margin-top: clamp(3rem, 7vw, 5rem); }

/* --- drawer košíka ----------------------------------------------------------- */
.drawer-backdrop {
  position: fixed; inset: 0; z-index: 80;
  background: rgba(10, 8, 5, 0.6);
  opacity: 0; pointer-events: none;
  transition: opacity 0.25s;
}
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 81;
  width: min(430px, 100vw);
  background: var(--ink-2);
  border-left: 1px solid var(--hairline-dim);
  transform: translateX(102%);
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.35, 1);
  display: flex; flex-direction: column;
}
body.drawer-open .drawer { transform: none; }
body.drawer-open .drawer-backdrop { opacity: 1; pointer-events: auto; }
body.drawer-open { overflow: hidden; }
.drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem 1.4rem; border-bottom: 1px solid var(--hairline-dim);
}
.drawer-head h2 { font-size: 1.5rem; }
.drawer-close { background: none; border: none; color: var(--muted); font-size: 1.5rem; line-height: 1; padding: 0.3rem; }
.drawer-close:hover { color: var(--ivory); }
.drawer-body { flex: 1; overflow-y: auto; padding: 1.1rem 1.4rem; }
.drawer-empty { color: var(--muted); text-align: center; padding: 3rem 1rem; }
.drawer-empty .eyebrow { display: block; margin-bottom: 0.8rem; }
.drawer-foot { border-top: 1px solid var(--hairline-dim); padding: 1.1rem 1.4rem; display: grid; gap: 0.8rem; }

.cart-line { display: grid; grid-template-columns: 72px 1fr auto; gap: 0.9rem; padding: 0.9rem 0; border-bottom: 1px solid var(--hairline-dim); }
.cart-line .ph { border: 1px solid var(--hairline-dim); }
.cl-name { font-family: var(--serif); font-size: 0.95rem; letter-spacing: 0.14em; text-transform: uppercase; text-decoration: none; color: var(--ivory); }
.cl-name:hover { color: var(--gold); }
.cl-variant { font-size: 0.78rem; color: var(--muted); }
.cl-price { font-family: var(--mono); font-size: 0.88rem; color: var(--gold); }
.cl-right { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; }
.cl-remove { background: none; border: none; color: var(--muted); font-size: 0.78rem; padding: 0; text-decoration: underline; }
.cl-remove:hover { color: var(--danger); }

.qty { display: inline-flex; align-items: center; border: 1px solid var(--hairline-dim); border-radius: var(--radius); }
.qty button { background: none; border: none; color: var(--ivory); width: 2rem; height: 2rem; font-size: 1rem; }
.qty button:hover { color: var(--gold); }
.qty span { font-family: var(--mono); font-size: 0.88rem; min-width: 1.6rem; text-align: center; }

.sum-row { display: flex; justify-content: space-between; font-size: 0.94rem; color: var(--muted); }
.sum-row strong { color: var(--ivory); }
.sum-row .mono { color: var(--ivory); }
.sum-total { font-size: 1.06rem; }
.sum-total .mono { color: var(--gold); font-size: 1.15rem; }

/* progress dopravy zadarmo */
.ship-progress { display: grid; gap: 0.45rem; }
.ship-progress .sp-label { font-size: 0.8rem; color: var(--muted); }
.ship-progress .sp-label strong { color: var(--gold); }
.sp-bar { height: 3px; background: var(--panel-2); border-radius: 2px; overflow: hidden; }
.sp-fill { height: 100%; background: var(--gold); border-radius: 2px; transition: width 0.4s ease; }

/* --- stránka košíka ------------------------------------------------------------ */
.cart-page { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.cart-panel { border: 1px solid var(--hairline-dim); border-radius: var(--radius); padding: 1.3rem 1.5rem; background: var(--ink-2); }
.cart-panel h2 { font-size: 1.4rem; margin-bottom: 0.9rem; }
.cart-page .cart-line { grid-template-columns: 96px 1fr auto; }

.code-row { display: flex; gap: 0.6rem; }
.code-row input { flex: 1; }
.code-msg { font-size: 0.84rem; margin-top: 0.4rem; display: none; }
.code-msg.ok { display: block; color: var(--ok); }
.code-msg.err { display: block; color: var(--danger); }

/* --- formuláre ------------------------------------------------------------------- */
input[type="text"], input[type="email"], input[type="tel"], input[type="password"], select {
  width: 100%;
  background: var(--panel);
  border: 1px solid var(--hairline-dim);
  color: var(--ivory);
  border-radius: var(--radius);
  padding: 0.78rem 0.95rem;
  font: inherit; font-size: 0.95rem;
  transition: border-color 0.2s;
}
input:focus, select:focus { outline: none; border-color: var(--gold); }
input.invalid { border-color: var(--danger); }
label { font-size: 0.84rem; color: var(--muted); display: grid; gap: 0.35rem; }
.field-err { color: var(--danger); font-size: 0.78rem; min-height: 1rem; }
.form-grid { display: grid; gap: 1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-row-3 { display: grid; grid-template-columns: 2fr 1fr; gap: 1rem; }

.check {
  display: flex; align-items: flex-start; gap: 0.6rem;
  font-size: 0.88rem; color: var(--muted); cursor: pointer;
}
.check input { width: auto; margin-top: 0.2rem; accent-color: var(--gold); }

/* --- pokladňa ---------------------------------------------------------------------- */
.checkout { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.steps { display: flex; gap: 0.4rem; align-items: center; margin-bottom: 2rem; flex-wrap: wrap; }
.step {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.85rem; color: var(--muted);
}
.step .n {
  font-family: var(--mono); font-size: 0.75rem;
  width: 1.6rem; height: 1.6rem; border-radius: 50%;
  border: 1px solid var(--hairline-dim);
  display: inline-flex; align-items: center; justify-content: center;
}
.step[aria-current="step"] { color: var(--ivory); }
.step[aria-current="step"] .n { border-color: var(--gold); color: var(--gold); }
.step.done { color: var(--gold); }
.step.done .n { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.step-sep { width: 2rem; height: 1px; background: var(--hairline-dim); }

.co-panel { border: 1px solid var(--hairline-dim); border-radius: var(--radius); background: var(--ink-2); padding: 1.5rem 1.6rem; }
.co-panel + .co-panel { margin-top: 1.2rem; }
.co-panel h2 { font-size: 1.5rem; margin-bottom: 1.2rem; }
.co-nav { display: flex; justify-content: space-between; gap: 1rem; margin-top: 1.6rem; }
.co-back { background: none; border: none; color: var(--muted); font-size: 0.9rem; text-decoration: underline; padding: 0; }
.co-back:hover { color: var(--ivory); }

/* radio karty (doprava, platba) */
.opt-card {
  display: flex; align-items: center; gap: 0.9rem;
  border: 1px solid var(--hairline-dim); border-radius: var(--radius);
  padding: 1rem 1.1rem; cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.opt-card:hover { border-color: var(--hairline); }
.opt-card:has(input:checked) { border-color: var(--gold); background: rgba(200, 162, 75, 0.06); }
.opt-card input { width: auto; accent-color: var(--gold); flex: none; }
.opt-body { flex: 1; }
.opt-title { font-size: 0.95rem; color: var(--ivory); }
.opt-sub { font-size: 0.8rem; color: var(--muted); }
.opt-price { font-family: var(--mono); font-size: 0.9rem; color: var(--gold); white-space: nowrap; }
.opt-stack { display: grid; gap: 0.7rem; }

/* karta — platobný formulár */
.card-box { border: 1px solid var(--hairline-dim); border-radius: var(--radius); padding: 1.1rem; margin-top: 0.7rem; display: grid; gap: 1rem; background: var(--panel); }
.pay-alt { display: grid; grid-template-columns: 1fr 1fr; gap: 0.7rem; }
.pay-fake {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.45rem;
  border: 1px solid var(--hairline-dim); border-radius: var(--radius);
  background: var(--panel); color: var(--ivory);
  padding: 0.8rem; font-size: 0.92rem; font-weight: 500;
}
.pay-fake:hover { border-color: var(--hairline); }

/* súhrn objednávky */
.summary { position: sticky; top: 84px; border: 1px solid var(--hairline-dim); border-radius: var(--radius); background: var(--ink-2); padding: 1.4rem 1.5rem; display: grid; gap: 0.9rem; }
.summary h2 { font-size: 1.4rem; }
.summary .cart-line { grid-template-columns: 56px 1fr auto; padding: 0.7rem 0; }
.summary .cart-line:last-of-type { border-bottom: none; }
.summary-totals { border-top: 1px solid var(--hairline-dim); padding-top: 0.9rem; display: grid; gap: 0.45rem; }

/* --- dakujeme ------------------------------------------------------------------------ */
.thanks { max-width: 640px; margin: 0 auto; text-align: center; padding: clamp(3rem, 8vw, 5rem) 0; }
.thanks .brand-mark { width: 52px; height: 52px; margin: 0 auto 1.4rem; }
.order-code {
  font-family: var(--mono); font-size: 1.3rem; color: var(--gold);
  border: 1px dashed var(--hairline); border-radius: var(--radius);
  display: inline-block; padding: 0.7rem 1.6rem; margin: 1.4rem 0;
  letter-spacing: 0.12em;
}
.thanks-meta { text-align: left; border: 1px solid var(--hairline-dim); border-radius: var(--radius); background: var(--ink-2); padding: 1.2rem 1.4rem; margin: 1.6rem 0; display: grid; gap: 0.5rem; }

/* --- demo schránka (záchranná sekvencia) ---------------------------------------------- */
.inbox-fab {
  position: fixed; left: 1.1rem; bottom: 1.1rem; z-index: 70;
  display: none; align-items: center; gap: 0.6rem;
  background: var(--panel); color: var(--ivory);
  border: 1px solid var(--hairline); border-radius: 999px;
  padding: 0.65rem 1.15rem; font-size: 0.86rem;
  box-shadow: var(--shadow);
}
.inbox-fab.show { display: inline-flex; }
.inbox-fab:hover { border-color: var(--gold); }
.inbox-fab .dot {
  font-family: var(--mono); font-size: 0.72rem;
  background: var(--danger); color: var(--ivory);
  min-width: 1.25rem; height: 1.25rem; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center; padding: 0 0.25rem;
}
.demo-chip {
  font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.14em;
  color: var(--ink); background: var(--gold);
  border-radius: 2px; padding: 0.15rem 0.4rem;
}

.inbox-panel {
  position: fixed; left: 1.1rem; bottom: 4.4rem; z-index: 71;
  width: min(400px, calc(100vw - 2.2rem));
  max-height: min(560px, 78vh);
  background: var(--ink-2); border: 1px solid var(--hairline-dim);
  border-radius: 8px; box-shadow: var(--shadow);
  display: none; flex-direction: column; overflow: hidden;
}
.inbox-panel.open { display: flex; }
.inbox-head {
  display: flex; align-items: center; justify-content: space-between; gap: 0.8rem;
  padding: 0.9rem 1.1rem; border-bottom: 1px solid var(--hairline-dim);
  background: var(--panel);
}
.inbox-head strong { font-size: 0.92rem; }
.inbox-head p { margin: 0.15rem 0 0; font-size: 0.74rem; color: var(--muted); }
.inbox-list { overflow-y: auto; }
.mail-item {
  width: 100%; text-align: left; background: none; border: none;
  border-bottom: 1px solid var(--hairline-dim); color: var(--ivory);
  padding: 0.9rem 1.1rem; display: grid; gap: 0.2rem;
}
.mail-item:hover { background: var(--panel); }
.mail-item .m-from { font-size: 0.8rem; color: var(--gold); display: flex; justify-content: space-between; gap: 0.6rem; }
.mail-item .m-time { color: var(--muted); font-family: var(--mono); font-size: 0.7rem; }
.mail-item .m-subj { font-size: 0.9rem; font-weight: 500; }
.mail-item .m-prev { font-size: 0.8rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mail-item[data-unread="true"] .m-subj::before { content: "●"; color: var(--danger); font-size: 0.6rem; margin-right: 0.45rem; vertical-align: 2px; }

.mail-view { padding: 1.1rem; overflow-y: auto; }
.mail-view .mv-meta { font-size: 0.78rem; color: var(--muted); border-bottom: 1px solid var(--hairline-dim); padding-bottom: 0.8rem; margin-bottom: 1rem; display: grid; gap: 0.15rem; }
.mail-view .mv-meta strong { color: var(--gold); }
.mail-body { font-size: 0.9rem; color: var(--ivory); }
.mail-body h3 { font-size: 1.35rem; margin: 0.4rem 0 0.8rem; }
.mail-body p { margin: 0.6rem 0; color: var(--muted); }
.mail-body .mb-items { border: 1px solid var(--hairline-dim); border-radius: var(--radius); padding: 0.8rem 1rem; margin: 0.9rem 0; display: grid; gap: 0.4rem; }
.mail-body .mb-item { display: flex; justify-content: space-between; gap: 1rem; font-size: 0.86rem; }
.mail-body .mb-item .mono { color: var(--gold); }
.mail-body .mb-code {
  font-family: var(--mono); letter-spacing: 0.14em; color: var(--gold);
  border: 1px dashed var(--hairline); border-radius: var(--radius);
  text-align: center; padding: 0.6rem; margin: 0.9rem 0; font-size: 1.02rem;
}
.mail-back { background: none; border: none; color: var(--muted); font-size: 0.82rem; text-decoration: underline; padding: 0; margin-bottom: 0.7rem; }
.mail-back:hover { color: var(--ivory); }
.inbox-note {
  padding: 0.7rem 1.1rem; border-top: 1px solid var(--hairline-dim);
  font-size: 0.72rem; color: var(--muted); background: var(--panel);
}
.inbox-note a { color: var(--gold); }

/* --- toast ------------------------------------------------------------------------------ */
.toast {
  position: fixed; right: 1.1rem; bottom: 1.1rem; z-index: 90;
  background: var(--panel); color: var(--ivory);
  border: 1px solid var(--gold-soft); border-radius: var(--radius);
  padding: 0.85rem 1.2rem; font-size: 0.9rem;
  box-shadow: var(--shadow);
  transform: translateY(150%); opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.toast.show { transform: none; opacity: 1; }

/* --- footer ------------------------------------------------------------------------------ */
.footer {
  border-top: 1px solid var(--hairline-dim);
  background: var(--ink-2);
  padding: clamp(2.5rem, 6vw, 4rem) 0 2rem;
  margin-top: clamp(3rem, 8vw, 5rem);
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; margin-bottom: 2.5rem; }
.footer h4 { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); margin: 0 0 0.9rem; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.45rem; }
.footer a { color: var(--muted); text-decoration: none; font-size: 0.9rem; }
.footer a:hover { color: var(--gold); }
.footer .brand { margin-bottom: 0.8rem; }
.footer .tagline { color: var(--muted); font-size: 0.9rem; max-width: 30ch; margin: 0; }
.footer-note {
  border-top: 1px solid var(--hairline-dim); padding-top: 1.3rem;
  font-size: 0.8rem; color: var(--muted);
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
}
.footer-note a { color: var(--gold); }

/* --- demo návod (záchrana košíka) ------------------------------------------ */
.demo-guide {
  border: 1px solid var(--hairline);
  border-radius: 8px;
  background: var(--ink-2);
  padding: clamp(1.6rem, 4vw, 2.8rem);
}
.dg-head { display: flex; align-items: center; gap: 0.8rem; margin-bottom: 1rem; }
.demo-guide .section-title { margin-bottom: 0.8rem; }
.dg-steps { list-style: none; margin: 1.6rem 0; padding: 0; display: grid; gap: 0.9rem; max-width: 62ch; }
.dg-steps li {
  display: grid; grid-template-columns: auto 1fr; gap: 0.9rem; align-items: baseline;
  color: var(--muted); font-size: 0.97rem;
}
.dg-n { color: var(--gold); font-size: 0.8rem; }
.dg-note { color: var(--muted); font-size: 0.9rem; border-top: 1px solid var(--hairline-dim); padding-top: 1.1rem; margin: 0; max-width: 62ch; }
.dg-note a { color: var(--gold); }

/* --- reveal ------------------------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}

/* --- responzív ------------------------------------------------------------------------------ */
@media (max-width: 960px) {
  .pdp { grid-template-columns: 1fr; }
  .pdp-gallery { position: static; }
  .cart-page, .checkout { grid-template-columns: 1fr; }
  .summary { position: static; order: -1; }
  .story-split { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .nav { display: none; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .values { grid-template-columns: 1fr; gap: 1.8rem; }
  .pc-name { font-size: 0.92rem; letter-spacing: 0.18em; }
  .pc-price { font-size: 0.86rem; }
}
@media (max-width: 480px) {
  .product-grid { grid-template-columns: 1fr; }
  .form-row, .form-row-3, .pay-alt { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero { min-height: 76vh; }
  .cart-page .cart-line { grid-template-columns: 72px 1fr auto; }
  .steps { gap: 0.3rem; }
  .step-sep { width: 1rem; }
}
