/* Hodnoty a jejich role popisuje DESIGN.md */
:root {
  --paper: #fbfaf8;
  --paper-2: #f2efea;
  --white: #ffffff;
  --ink: #1d1b19;
  --ink-2: #625c56;
  --line: #dcd7d0;
  --red: #9c2a1f;
  --green: #3d6b35;

  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --fs-xs: 0.8125rem;
  --fs-sm: 0.875rem;
  --fs-md: 1rem;
  --fs-lg: 1.125rem;
  --fs-xl: 1.25rem;
  --fs-2xl: clamp(1.5rem, 1.15rem + 1.3vw, 2.125rem);
  --fs-3xl: clamp(2.25rem, 1.5rem + 2.8vw, 3.5rem);

  --s1: 8px; --s2: 16px; --s3: 24px; --s4: 32px;
  --s5: 48px; --s6: 64px; --s7: 96px; --s8: 128px;

  --r-pill: 999px;
  --r-img: 12px;
  --r-box: 20px;
  --r-field: 10px;

  --max: 1240px;
  --gutter: 16px;
  --edge: max(var(--gutter), calc((100vw - var(--max)) / 2));
  --measure: 62ch;
  --ease: cubic-bezier(0.2, 0.6, 0.2, 1);
}
@media (min-width: 768px) { :root { --gutter: 32px; } }

/* ---------- Základ ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 var(--fs-md)/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { font-family: var(--font); font-weight: 600; margin: 0 0 var(--s2); }
h1 { font-size: var(--fs-3xl); line-height: 1.05; letter-spacing: -0.035em; }
h2 { font-size: var(--fs-2xl); line-height: 1.15; letter-spacing: -0.025em; }
h3 { font-size: var(--fs-xl); line-height: 1.3; letter-spacing: -0.015em; }
p { margin: 0 0 var(--s2); max-width: var(--measure); }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.muted { color: var(--ink-2); }
.lead { font-size: var(--fs-lg); color: var(--ink-2); }
.wrap { width: min(var(--max), 100% - 2 * var(--gutter)); margin-inline: auto; }
.section { padding-block: clamp(var(--s6), 8vw, var(--s7)); }
[hidden] { display: none !important; }

.skip {
  position: absolute; left: var(--s2); top: -100px; z-index: 30;
  background: var(--ink); color: var(--paper); padding: var(--s1) var(--s2); border-radius: var(--r-pill);
}
.skip:focus { top: var(--s1); }

/* ---------- Tlačítka a odkazy (bez podtržení při najetí) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s1);
  min-height: 48px; padding: 0 26px;
  border: 1px solid var(--ink); border-radius: var(--r-pill);
  background: var(--ink); color: var(--paper);
  font: 500 0.9375rem/1 var(--font); text-decoration: none; cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.15s;
}
.btn:hover { background: #000; }
.btn:active { transform: scale(0.98); }
.btn:disabled { background: var(--line); border-color: var(--line); color: var(--ink-2); cursor: not-allowed; }
.btn-secondary { background: transparent; color: var(--ink); }
.btn-secondary:hover { background: var(--ink); color: var(--paper); }
.btn-block { width: 100%; }
.btn.done { background: var(--green); border-color: var(--green); }

.more-link {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px;
  text-decoration: none; font-weight: 500;
}
.more-link::after { content: "→"; transition: transform 0.2s var(--ease); }
.more-link:hover::after { transform: translateX(4px); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2) var(--s3); margin-top: var(--s4); }

/* ---------- Záhlaví ---------- */
/* lepí se nahoru: při posunu dolů se schová, při posunu nahoru se vrátí; po odjetí z vršku dostane linku a stín */
html { scroll-padding-top: calc(var(--hdr-h, 72px) + var(--s2)); }
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgb(251 250 248 / 0.86); -webkit-backdrop-filter: saturate(1.5) blur(16px); backdrop-filter: saturate(1.5) blur(16px);
  border-bottom: 1px solid transparent;
  --hide: cubic-bezier(0.65, 0, 0.35, 1);
  transition: transform 0.6s var(--ease), opacity 0.5s var(--ease), border-color 0.4s, box-shadow 0.4s, background 0.4s;
}
.site-header.scrolled { border-bottom-color: rgb(29 27 25 / 0.08); box-shadow: 0 8px 28px rgb(29 27 25 / 0.06); background: rgb(251 250 248 / 0.78); }
/* schovává se pomalu: plynule vyjede nahoru a přitom se rozplyne; vrací se o něco svižněji */
.site-header.away {
  transform: translateY(-100%); opacity: 0; box-shadow: none;
  transition: transform 1.2s var(--hide), opacity 1s var(--hide) 0.1s, border-color 0.4s, box-shadow 0.6s, background 0.4s;
}
.site-header .header-inner > * { transition: opacity 0.5s var(--ease), translate 0.6s var(--ease), font-size 0.5s var(--ease); }
.site-header.away .header-inner > * { opacity: 0; translate: 0 -6px; transition: opacity 0.7s var(--hide), translate 1.1s var(--hide); }
.site-header.away ~ main .toolbar { transition: border-color 0.2s, top 1.2s var(--hide); }
.site-header.away ~ main .info { transition: top 1.2s var(--hide); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--s2); padding-block: var(--s2); transition: padding 0.5s var(--ease); }
.site-header.scrolled .header-inner { padding-block: 10px; }
.brand { font: 600 1.25rem/1 var(--font); letter-spacing: -0.03em; text-decoration: none; transition: font-size 0.3s var(--ease); }
.site-header.scrolled .brand { font-size: 1.125rem; }
.nav { display: flex; gap: 4px; font-size: var(--fs-sm); position: relative; isolation: isolate; }
/* podklad, který plave pod odkazem, na který ukazuje myš (jinak pod aktuální stránkou) */
.nav-pill {
  position: absolute; left: 0; top: 0; z-index: -1; border-radius: var(--r-pill); background: var(--paper-2);
  pointer-events: none; opacity: 0;
  transition: transform 0.35s var(--ease), width 0.35s var(--ease), height 0.35s var(--ease), opacity 0.2s, background 0.2s;
}
.nav-pill.on { opacity: 1; }
.nav-pill.hover { background: #ebe6df; }
.nav.has-pill a[aria-current="page"], .nav.has-pill a:hover { background: transparent; }
.nav a {
  text-decoration: none; padding: 10px 14px; border-radius: var(--r-pill); color: var(--ink-2); white-space: nowrap;
  transition: background 0.2s, color 0.2s;
}
.nav a:hover { color: var(--ink); background: var(--paper-2); }
.nav a[aria-current="page"] { color: var(--ink); background: var(--paper-2); font-weight: 500; }
.count { display: inline-block; min-width: 20px; padding: 0 6px; margin-left: 4px; border-radius: var(--r-pill); background: var(--ink); color: var(--paper); font-size: 0.75rem; line-height: 20px; text-align: center; }
.count.bump { animation: bump 0.45s var(--ease); }
@keyframes bump { 40% { transform: scale(1.35); } }
@media (max-width: 599px) {
  .header-inner { flex-wrap: wrap; padding-bottom: var(--s1); }
  .nav { width: 100%; margin-left: -10px; gap: 0; }
  .nav a { padding: 10px; }
}

/* ---------- Úvod: fotka s tečkami ---------- */
.hero { display: grid; gap: var(--s4); padding-block: var(--s3) var(--s6); }
.hero-text h1 { max-width: 11ch; }
.hint { font-size: var(--fs-sm); color: var(--ink-2); margin-top: var(--s4); display: flex; gap: var(--s1); align-items: center; }
.hint::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--white); box-shadow: 0 0 0 1px var(--ink); flex: none; }
.hint .touch { display: none; }
@media (hover: none) { .hint .mouse { display: none; } .hint .touch { display: inline; } }

.tree { position: relative; }
.tree img { width: 100%; border-radius: var(--r-box); background: var(--paper-2); }
.spots { list-style: none; margin: 0; padding: 0; position: absolute; inset: 0; container-type: size; }
.spot { position: absolute; width: 0; height: 0; z-index: 1; --off: max(30px, 8.5cqw); --hw: max(34px, 8cqw); --hh: max(46px, 10cqh); }
.spot:hover, .spot:focus-within, .spot.open { z-index: 3; }

/* linka od šperku k tečce: na šperku malý kroužek, tenká linka, při najetí ztmavne */
.spot::before {
  content: ""; position: absolute; left: -3.5px; top: -3.5px; width: 7px; height: 7px; border-radius: 50%;
  border: 1.5px solid var(--white); background: rgb(29 27 25 / 0.55); box-shadow: 0 0 0 0.5px rgb(29 27 25 / 0.35);
  transition: background 0.2s, transform 0.2s var(--ease);
}
.spot .leader {
  position: absolute; top: -1px; height: 2px; width: calc(var(--off) - 11px); border-radius: 2px;
  background: linear-gradient(var(--white), var(--white)) center / 100% 1px no-repeat;
  filter: drop-shadow(0 0 0.6px rgb(29 27 25 / 0.55));
  transition: background-size 0.2s, filter 0.2s;
}
.spot.to-right .leader { left: 4px; }
.spot.to-left .leader { right: 4px; }
.spot:hover .leader, .spot:focus-within .leader, .spot.open .leader {
  background-image: linear-gradient(var(--ink), var(--ink)); background-size: 100% 1.5px; filter: none;
}
.spot:hover::before, .spot:focus-within::before, .spot.open::before { background: var(--ink); transform: scale(1.15); }

.spot a { position: absolute; top: 0; left: var(--off); transform: translate(-50%, -50%); display: grid; place-items: center; width: 44px; height: 44px; text-decoration: none; color: var(--ink); }
.spot.to-left a { left: calc(-1 * var(--off)); }
/* neviditelná plocha přes celý šperk až k tečce: kartička se ukáže už při najetí na šperk */
.spot .hit { position: absolute; top: 50%; height: var(--hh); width: calc(var(--off) + 22px + var(--hw) / 2); transform: translateY(-50%); }
.spot.to-right .hit { left: calc(22px - var(--off) - var(--hw) / 2); }
.spot.to-left .hit { left: 0; }
.spot .dot {
  width: 14px; height: 14px; border-radius: 50%;
  background: rgb(255 255 255 / 0.92); box-shadow: 0 0 0 1px rgb(29 27 25 / 0.5), 0 2px 8px rgb(0 0 0 / 0.15);
  transition: transform 0.2s var(--ease), background 0.2s;
}
.spot .dot::after {
  content: ""; display: block; width: 100%; height: 100%; border-radius: 50%;
  box-shadow: 0 0 0 0 rgb(255 255 255 / 0.8); animation: pulse 2.6s infinite;
  animation-delay: var(--d, 0s);
}
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgb(255 255 255 / 0.8); } 70%, 100% { box-shadow: 0 0 0 14px rgb(255 255 255 / 0); } }
.spot a:hover .dot, .spot a:focus-visible .dot, .spot.open .dot { transform: scale(1.25); background: var(--ink); box-shadow: 0 0 0 2px var(--white), 0 2px 8px rgb(0 0 0 / 0.2); }

/* kartička s fotkou, je součástí odkazu, takže se na ni dá rovnou kliknout */
.spot .tip {
  position: absolute; bottom: calc(100% - 8px); left: 50%; transform: translate(-50%, 6px);
  display: flex; align-items: center; gap: 14px; width: max-content; max-width: 300px;
  padding: 8px 22px 8px 8px; background: var(--white); border-radius: 16px;
  box-shadow: 0 12px 36px rgb(0 0 0 / 0.18), 0 0 0 1px rgb(29 27 25 / 0.06);
  opacity: 0; visibility: hidden; transition: opacity 0.18s, transform 0.18s var(--ease), visibility 0s 0.18s;
}
.spot .tip img { width: 92px; height: 138px; object-fit: cover; border-radius: 10px; background: var(--paper-2); flex: none; }
.tip-text { display: grid; gap: 2px; font-size: var(--fs-sm); line-height: 1.4; white-space: nowrap; }
.tip-text b { font-weight: 600; font-size: var(--fs-md); }
.tip-go { margin-top: 10px; font-weight: 500; color: var(--ink-2); transition: color 0.15s; }
@media (min-width: 900px) {
  .spot .tip { gap: 18px; max-width: 360px; padding: 10px 28px 10px 10px; border-radius: 18px; }
  .spot .tip img { width: 124px; height: 186px; border-radius: 12px; }
  .tip-text { font-size: var(--fs-md); }
  .tip-text b { font-size: var(--fs-xl); }
}
.tip-go::after { content: "→"; display: inline-block; margin-left: 5px; transition: transform 0.2s var(--ease); }
.spot .tip:hover .tip-go { color: var(--ink); }
.spot .tip:hover .tip-go::after { transform: translateX(3px); }
.spot a:hover .tip, .spot a:focus-visible .tip, .spot.open .tip {
  opacity: 1; visibility: visible; transform: translate(-50%, 0); transition: opacity 0.18s, transform 0.18s var(--ease);
}
.spot.b .tip { bottom: auto; top: calc(100% - 8px); transform: translate(-50%, -6px); }
.spot.b a:hover .tip, .spot.b a:focus-visible .tip, .spot.b.open .tip { transform: translate(-50%, 0); }
.spot a:focus-visible { outline: none; }
.spot a:focus-visible .dot { outline: 2px solid var(--ink); outline-offset: 3px; }
@media (min-width: 900px) {
  .hero { grid-template-columns: 5fr 6fr; gap: var(--s6); align-items: center; padding-block: var(--s3) var(--s7); }
  .tree { width: fit-content; margin-left: auto; }
  .tree img { width: auto; max-height: calc(100vh - 110px); }
}

/* ---------- Slider ---------- */
.slider-head { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--s2); margin-bottom: var(--s4); }
.slider-head h2 { margin: 0; }
.slider-head p { margin: 6px 0 0; }
.slider-nav { display: flex; gap: var(--s1); }
.round {
  width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); background: var(--white); color: var(--ink);
  display: grid; place-items: center; cursor: pointer; transition: background 0.2s, border-color 0.2s, opacity 0.2s;
}
.round:hover:not(:disabled) { border-color: var(--ink); }
.round:disabled { opacity: 0.35; cursor: default; }
.round svg { width: 18px; height: 18px; }
.slider {
  list-style: none; margin: 0; padding: 0 var(--edge) var(--s1);
  display: grid; grid-auto-flow: column; grid-auto-columns: min(72vw, 280px); gap: var(--s3);
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--edge);
  scrollbar-width: none; overscroll-behavior-x: contain;
}
.slider::-webkit-scrollbar { display: none; }
.slider > li { scroll-snap-align: start; }
.slider.is-dragging { scroll-snap-type: none; cursor: grabbing; }
.slider.is-dragging a { pointer-events: none; }
@media (hover: hover) and (pointer: fine) { .slider { cursor: grab; } }
@media (min-width: 768px) { .slider { grid-auto-columns: clamp(240px, 24vw, 300px); } }
.progress { height: 2px; background: var(--line); border-radius: 2px; margin-top: var(--s4); overflow: hidden; }
.progress span { display: block; height: 100%; background: var(--ink); border-radius: 2px; transition: margin-left 0.1s linear; }
.slider-foot { display: flex; justify-content: space-between; align-items: center; gap: var(--s2); }
.slider-foot .progress { flex: 1; margin: 0; }

/* ---------- Karta šperku ---------- */
.card { position: relative; }
.card-media { position: relative; display: block; aspect-ratio: 2 / 3; border-radius: var(--r-img); overflow: hidden; background: var(--paper-2); }
.card-media > a { position: absolute; inset: 0; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease); }
.card:hover .card-media img { transform: scale(1.05); }
.quick-add {
  position: absolute; left: 12px; right: 12px; bottom: 12px; min-height: 44px;
  border: 0; border-radius: var(--r-pill); background: rgb(255 255 255 / 0.94); color: var(--ink);
  font: 500 var(--fs-sm)/1 var(--font); cursor: pointer;
  opacity: 0; transform: translateY(8px); transition: opacity 0.2s, transform 0.25s var(--ease), background 0.2s, color 0.2s;
}
.card:hover .quick-add, .quick-add:focus-visible { opacity: 1; transform: none; }
.quick-add:hover { background: var(--ink); color: var(--paper); }
.quick-add.done { background: var(--green); color: var(--white); opacity: 1; transform: none; }
@media (hover: none) {
  .quick-add { opacity: 1; transform: none; left: auto; right: 8px; bottom: 8px; padding: 0 16px; }
}
.sold-tag {
  position: absolute; left: 12px; top: 12px; padding: 4px 10px; border-radius: var(--r-pill);
  background: var(--white); color: var(--red); font-size: var(--fs-xs); font-weight: 500;
}
.card.is-sold .card-media img { opacity: 0.8; }
.card-text { display: block; text-decoration: none; padding-top: 12px; }
.card-row { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s1); }
.card-name { font-weight: 500; font-size: var(--fs-md); letter-spacing: -0.01em; }
.card-price { font-size: var(--fs-sm); color: var(--ink-2); white-space: nowrap; }
.card-sub { display: block; font-size: var(--fs-sm); color: var(--ink-2); margin-top: 2px; }

/* ---------- Úvod: další sekce ---------- */
.split { display: grid; gap: var(--s4); align-items: center; }
.split-photo { border-radius: var(--r-box); }
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; gap: var(--s7); }
  .split-photo { max-width: 520px; }
}
.split-top { align-items: start; }
.band { background: var(--paper-2); border-radius: var(--r-box); padding: clamp(var(--s4), 6vw, var(--s7)); }
.band-inner { display: grid; gap: var(--s3); }
@media (min-width: 900px) { .band-inner { grid-template-columns: 1fr 1.4fr; gap: var(--s7); } }
.band p:not(.lead) { color: var(--ink-2); }

/* ---------- Stránka Šperky ---------- */
.shop-head { display: grid; gap: var(--s2); padding-block: var(--s4) var(--s3); }
@media (min-width: 900px) { .shop-head { grid-template-columns: 1fr 1fr; align-items: end; } .shop-head p { justify-self: end; text-align: right; } }
.shop-head h1 { margin: 0; }
.shop-head p { margin: 0; color: var(--ink-2); min-height: 3.2em; }
.toolbar {
  position: sticky; top: var(--hdr, 0px); z-index: 5; background: var(--paper);
  transition: border-color 0.2s, top 0.6s var(--ease);
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--s2);
  padding-block: 12px; margin-bottom: var(--s4); border-bottom: 1px solid transparent; transition: border-color 0.2s;
}
.toolbar.stuck { border-bottom-color: var(--line); }
.chips { display: flex; gap: var(--s1); overflow-x: auto; scrollbar-width: none; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); }
.chips::-webkit-scrollbar { display: none; }
@media (min-width: 768px) { .chips { margin: 0; padding: 0; } }
.chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; white-space: nowrap;
  border: 1px solid var(--line); border-radius: var(--r-pill); background: var(--white); color: var(--ink);
  font: 500 var(--fs-sm)/1 var(--font); cursor: pointer; transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.chip:hover { border-color: var(--ink); }
.chip .n { color: var(--ink-2); font-weight: 400; }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.chip[aria-pressed="true"] .n { color: rgb(255 255 255 / 0.65); }
.sort { display: inline-flex; align-items: center; gap: var(--s1); font-size: var(--fs-sm); color: var(--ink-2); }
.sort select {
  font: 500 var(--fs-sm) var(--font); color: var(--ink); min-height: 44px; padding: 0 36px 0 16px;
  border: 1px solid var(--line); border-radius: var(--r-pill); background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' fill='none' stroke='%231d1b19' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 14px center;
  appearance: none; cursor: pointer;
}
.shop-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s5) var(--s2); grid-auto-flow: dense;
}
.shop-grid > li { animation: rise 0.5s var(--ease) both; animation-delay: calc(var(--i, 0) * 45ms); }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
@media (min-width: 900px) {
  .shop-grid { grid-template-columns: repeat(3, 1fr); gap: var(--s6) var(--s3); }
  .shop-grid .feature { grid-column: span 2; grid-row: span 2; display: flex; flex-direction: column; }
  .shop-grid .feature.right { grid-column: 2 / span 2; }
  .shop-grid .feature .card-media { aspect-ratio: auto; flex: 1 1 0; min-height: 0; }
  .shop-grid .feature .card-name { font-size: var(--fs-xl); }
}
.empty { color: var(--ink-2); }

/* Mřížka „Mohlo by se vám líbit“ */
.grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s5) var(--s2); }
@media (min-width: 768px) { .grid { grid-template-columns: repeat(4, 1fr); gap: var(--s5) var(--s3); } }
.head-row { display: flex; justify-content: space-between; align-items: center; gap: var(--s2); flex-wrap: wrap; margin-bottom: var(--s4); }
.head-row h1, .head-row h2 { margin: 0; }

/* ---------- Detail šperku ---------- */
.crumbs { font-size: var(--fs-sm); color: var(--ink-2); padding-block: var(--s3); }
.crumbs a { color: inherit; text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.product { display: grid; gap: var(--s4); }
.gallery { display: grid; gap: var(--s2); min-width: 0; }
.gallery-main { position: relative; }
.photos {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  border-radius: var(--r-img); scrollbar-width: none; background: var(--paper-2);
}
.photos::-webkit-scrollbar { display: none; }
.photos img { flex: 0 0 100%; width: 100%; scroll-snap-align: start; scroll-snap-stop: always; aspect-ratio: 2 / 3; object-fit: cover; }
.photos:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.photo-count {
  position: absolute; left: 12px; bottom: 12px; margin: 0; padding: 3px 10px; border-radius: var(--r-pill);
  background: rgb(255 255 255 / 0.92); font-size: var(--fs-xs); font-variant-numeric: tabular-nums; pointer-events: none;
}
.g-prev, .g-next { position: absolute; top: 50%; translate: 0 -50%; display: none; }
.g-prev { left: 12px; }
.g-next { right: 12px; }
.g-prev:disabled, .g-next:disabled { opacity: 0; pointer-events: none; }
@media (hover: hover) and (pointer: fine) { .g-prev, .g-next { display: grid; } }
.thumbs { display: flex; gap: var(--s1); overflow-x: auto; scrollbar-width: none; padding: 3px; margin: -3px; }
.thumbs button {
  flex: none; width: 56px; padding: 0; border: 0; border-radius: 8px; background: var(--paper-2); cursor: pointer;
  opacity: 0.55; transition: opacity 0.2s, box-shadow 0.2s;
}
.thumbs button:hover { opacity: 0.85; }
.thumbs button[aria-current="true"] { opacity: 1; box-shadow: 0 0 0 1.5px var(--paper), 0 0 0 3px var(--ink); }
.thumbs img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 8px; }
.gallery.single .thumbs, .gallery.single .photo-count, .gallery.single .g-prev, .gallery.single .g-next { display: none; }
.info h1 { font-size: clamp(2rem, 1.6rem + 1.6vw, 2.75rem); margin-bottom: var(--s1); }
.price { font-size: var(--fs-lg); margin-bottom: var(--s2); }
.status { font-size: var(--fs-sm); margin-bottom: var(--s3); display: inline-flex; align-items: center; gap: 8px; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.status.ok { color: var(--green); }
.status.wait { color: var(--ink-2); }
.status.sold { color: var(--red); }
.specs { display: grid; grid-template-columns: max-content 1fr; gap: 6px var(--s3); margin: var(--s3) 0 var(--s4); padding-top: var(--s3); border-top: 1px solid var(--line); font-size: var(--fs-sm); }
.specs dt { color: var(--ink-2); }
.specs dd { margin: 0; }
.added { font-size: var(--fs-sm); margin-top: var(--s2); }
.added a { font-weight: 500; }
@media (min-width: 900px) {
  .product { grid-template-columns: auto minmax(0, 1fr); gap: var(--s6); align-items: start; }
  /* fotka se vejde na výšku okna, náhledy jsou ve sloupci vlevo */
  .gallery { grid-template-columns: 64px auto; align-items: start; }
  .gallery.single { grid-template-columns: auto; }
  .gallery-main { width: max(340px, min(calc((100vh - 150px) * 2 / 3), 46vw)); }
  .thumbs { order: -1; flex-direction: column; overflow: visible; }
  .thumbs button { width: 64px; }
  .info { position: sticky; top: calc(var(--hdr, 0px) + var(--s4)); padding-top: var(--s2); transition: top 0.6s var(--ease); }
}

/* ---------- O nás ---------- */
.prose p { font-size: var(--fs-lg); }
.placeholder { border: 1px dashed var(--ink-2); border-radius: var(--r-field); padding: var(--s2) var(--s3); color: var(--ink-2); }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s2); }
.pair img { border-radius: var(--r-img); }
@media (min-width: 900px) { .pair { gap: var(--s3); } .pair img:last-child { margin-top: var(--s7); } }

/* ---------- Objednávka ---------- */
.order { display: grid; gap: var(--s6); }
@media (min-width: 900px) { .order { grid-template-columns: 5fr 6fr; gap: var(--s7); align-items: start; } }
.picked { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.picked li { display: grid; grid-template-columns: 64px 1fr auto; gap: var(--s2); align-items: center; padding-block: var(--s2); border-bottom: 1px solid var(--line); }
.picked img { width: 64px; height: 96px; object-fit: cover; background: var(--paper-2); border-radius: 8px; }
.picked .name { font-weight: 500; }
.picked .name a { text-decoration: none; }
.picked .sub { font-size: var(--fs-sm); color: var(--ink-2); }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: var(--r-pill); background: var(--white); }
.qty button { width: 44px; height: 44px; border: 0; border-radius: 50%; background: none; font: inherit; font-size: 1.125rem; cursor: pointer; color: var(--ink); }
.qty button:hover { background: var(--paper-2); }
.qty output { min-width: 20px; text-align: center; font-size: var(--fs-sm); }
.totals { margin: var(--s3) 0 0; display: grid; gap: 4px; font-size: var(--fs-sm); }
.totals div { display: flex; justify-content: space-between; max-width: 360px; }
.totals dt { color: var(--ink-2); }
.totals dd { margin: 0; }
.totals .total { font-size: var(--fs-lg); font-weight: 600; margin-top: var(--s1); }
.totals .total dt { color: var(--ink); }

.form { display: grid; gap: var(--s3); }
.field { display: grid; gap: 6px; font-size: var(--fs-sm); font-weight: 500; }
.field small { font-weight: 400; color: var(--ink-2); }
.two { display: grid; gap: var(--s3); }
@media (min-width: 600px) { .two { grid-template-columns: 1fr 1fr; } }
input, textarea {
  width: 100%; font: 400 var(--fs-md) var(--font); color: var(--ink);
  padding: 12px 14px; min-height: 48px; border: 1px solid var(--line); border-radius: var(--r-field); background: var(--white);
}
input:focus-visible, textarea:focus-visible { outline: 2px solid var(--ink); outline-offset: 0; border-color: var(--ink); }
.invalid { border-color: var(--red); }
textarea { resize: vertical; }
fieldset { border: 0; margin: 0; padding: 0; }
legend { font-size: var(--fs-sm); font-weight: 500; padding: 0; margin-bottom: var(--s1); }
.ship { display: grid; gap: var(--s1); }
.radio { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 16px; border: 1px solid var(--line); border-radius: var(--r-field); background: var(--white); cursor: pointer; }
.radio:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.radio input, .check input { width: 18px; height: 18px; min-height: 0; margin: 0; accent-color: var(--ink); flex: none; }
.radio .p { margin-left: auto; color: var(--ink-2); font-size: var(--fs-sm); }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: var(--fs-sm); color: var(--ink-2); cursor: pointer; }
.check input { margin-top: 2px; }
.form-error { color: var(--red); font-size: var(--fs-sm); margin: 0; }
.form-error a { color: inherit; }
.fine { font-size: var(--fs-xs); color: var(--ink-2); margin: 0; }
.thanks { background: var(--paper-2); border-radius: var(--r-box); padding: var(--s4); }
.thanks:focus { outline: none; }

.steps { margin: 0; padding-left: 1.25em; max-width: var(--measure); }
.steps li { margin-bottom: var(--s1); padding-left: 4px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding-block: var(--s2); font-weight: 500; list-style: none; display: flex; justify-content: space-between; gap: var(--s2); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 400; color: var(--ink-2); transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--ink-2); padding-bottom: var(--s2); margin: 0; }

/* ---------- Patička ---------- */
.site-footer { border-top: 1px solid var(--line); padding-block: var(--s6) var(--s4); font-size: var(--fs-sm); margin-top: var(--s7); }
.footer-grid { display: grid; gap: var(--s4); }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.site-footer h2 { font-size: var(--fs-sm); font-weight: 600; letter-spacing: 0; margin-bottom: var(--s1); }
.site-footer p { margin: 0; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.site-footer a { text-decoration: none; color: var(--ink-2); transition: color 0.2s; }
.site-footer a:hover { color: var(--ink); }
.footer-brand { font: 600 1.25rem/1 var(--font); letter-spacing: -0.03em; margin-bottom: var(--s1) !important; }
.copyright { margin-top: var(--s5) !important; color: var(--ink-2); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
.tree { margin: 0; }
.lead-ink { color: var(--ink); }
@media (min-width: 1200px) { .product { gap: var(--s7); } }
@media (min-width: 1100px) {
  .shop-grid { grid-template-columns: repeat(4, 1fr); }
  .shop-grid .feature.right { grid-column: 3 / span 2; }
}
.qa-short { display: none; }
@media (hover: none) { .qa-long { display: none; } .qa-short { display: inline; } }
/* kartičky teček u okrajů fotky se zarovnají dovnitř */
.spot.r .tip { left: auto; right: -6px; transform: translate(0, 6px); }
.spot.l .tip { left: -6px; transform: translate(0, 6px); }
.spot.b.r .tip, .spot.b.l .tip { transform: translate(0, -6px); }
.spot.r a:hover .tip, .spot.r a:focus-visible .tip, .spot.r.open .tip,
.spot.l a:hover .tip, .spot.l a:focus-visible .tip, .spot.l.open .tip { transform: translate(0, 0); }
/* slevový kód v objednávce */
.code-line { display: flex; gap: var(--s1); }
.code-line input { flex: 1; min-width: 0; text-transform: uppercase; letter-spacing: 0.04em; }
.code-line .btn { flex: none; }
.code-msg { margin: 0; font-size: var(--fs-sm); font-weight: 400; min-height: 0; }
.code-msg:empty { display: none; }
.code-msg.ok { color: var(--green); }
.code-msg.bad { color: var(--red); }
#disc-row dd { color: var(--green); }
@media (min-width: 600px) and (max-width: 899px) { .gallery { max-width: 480px; } }
/* ---------- Šperk na přání ---------- */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.h3 { font-size: var(--fs-xl); line-height: 1.3; letter-spacing: -0.015em; margin-top: var(--s5); }
.wish-intro .lead { max-width: 34em; }
.wish-photos { margin-top: var(--s5); max-width: 520px; }
@media (max-width: 899px) { .wish-photos { display: none; } }
.wish-faq { margin-top: var(--s5); }
.opts { display: flex; flex-wrap: wrap; gap: var(--s1); }
.opt {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px;
  border: 1px solid var(--line); border-radius: var(--r-pill); background: var(--white); font-size: var(--fs-sm); cursor: pointer;
}
.opt:hover { border-color: var(--ink-2); }
.opt:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.opt input { width: 16px; height: 16px; min-height: 0; margin: 0; accent-color: var(--ink); flex: none; }
.pick-row { display: flex; gap: var(--s2); align-items: end; }
.pick-row .field { flex: 1; min-width: 0; }
.pick-thumb { width: 48px; height: 72px; object-fit: cover; border-radius: 8px; background: var(--paper-2); flex: none; }
.select {
  width: 100%; font: 400 var(--fs-md) var(--font); color: var(--ink); min-height: 48px; padding: 0 40px 0 14px;
  border: 1px solid var(--line); border-radius: var(--r-field);
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' fill='none' stroke='%231d1b19' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 14px center;
  appearance: none; cursor: pointer;
}
.select:focus-visible { outline: 2px solid var(--ink); outline-offset: 0; border-color: var(--ink); }
.custom-note { font-size: var(--fs-sm); color: var(--ink-2); margin-top: var(--s2); }
.custom-note a { color: var(--ink); font-weight: 500; }
/* ---------- Úvod: stíny lipových větví v pozadí (kreslí a hýbe s nimi app.js) ---------- */
body[data-page="home"] main { position: relative; z-index: 1; }
.leafy {
  --shade: #33392b;
  position: absolute; left: 0; top: 0; width: 100%; height: max(150vh, 1100px); z-index: 0;
  overflow: hidden; pointer-events: none; mix-blend-mode: multiply;
  -webkit-mask-image: linear-gradient(#000 50%, transparent 95%); mask-image: linear-gradient(#000 50%, transparent 95%);
  animation: leafy-in 2.4s var(--ease) both;
}
/* teplé světlo, jako když svítí slunce přes okno */
.leafy::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(55% 45% at 16% 6%, rgb(255 236 200 / 0.55), transparent 70%),
    radial-gradient(40% 35% at 88% 2%, rgb(255 242 220 / 0.45), transparent 70%);
}
@keyframes leafy-in { from { opacity: 0; } }
.leafy-layer { position: absolute; inset: 0; will-change: transform; }
.leafy-layer.near { opacity: 0.085; }
.leafy-layer.far { opacity: 0.06; }
.leafy-branch { position: absolute; width: 1px; height: 1px; transform-origin: 0 0; will-change: transform; }
.near .leafy-branch { filter: blur(2.5px); }
.far .leafy-branch { filter: blur(7px); }
.leafy svg { display: block; overflow: visible; }
.leafy path { fill: none; stroke: var(--shade); stroke-linecap: round; }
.leafy path.lf { fill: var(--shade); stroke: none; }
