/* Bez — redesign cistebez.cz, koncept „Velké B“ (mime digital, 12/2026)
   Infrastruktura (akcent, stíny, rádiusy, skeletony) z gfx.css; povrch konceptu jen tady v :root. */
:root {
  /* barvy značky Bez — z jejich CSS a pozadí produktových fotek */
  --ink: #24242e;          /* nadpisy cistebez.cz */
  --muted: #5a5a63;        /* 6,8 : 1 na bílé */
  --accent: var(--gfx-accent);        /* malinová tlačítka #be3455 */
  --accent-fg: var(--gfx-accent-fg);
  --accent-dark: #9e2843;
  --sage: var(--gfx-base); /* šalvějová pozadí fotek #bbccc2 */
  --sage-soft: #e6eee9;
  --pink: #f2adc0;         /* fotka Odmašťovač */
  --teal: #14808d;         /* fotka Myčka bez výčitek */
  --lilac: #acacb6;        /* fotka Bezedný ocet */
  --yellow: #fbebb0;       /* fotka Bezstarostný relax */
  --taupe: #b0aaa7;        /* jejich lišta a patička */
  --taupe-soft: #efedec;
  --paper: #ffffff;
  --card: #f0f3f1;         /* podklad produktových fotek (multiply) */
  --line: #e1dfdd;
  --ok: #2f7d4f;
  /* povrch konceptu */
  --r-xs: var(--gfx-r-xs); --r-sm: var(--gfx-r-sm); --r-md: var(--gfx-r-md); --r-lg: var(--gfx-r-lg);
  --sh: var(--gfx-sh-soft); --sh-lift: var(--gfx-sh-lift); --sh-tight: var(--gfx-sh-tight);
  --f-d: 'Familjen Grotesk', system-ui, sans-serif;
  --f-t: 'Host Grotesk', system-ui, sans-serif;
  --pad: clamp(20px, 4vw, 64px);
  --max: 1360px;
  --head: 76px;
  --z-head: 40; --z-drawer: 60; --z-toast: 80;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 16px/1.55 var(--f-t); color: var(--ink); background: var(--paper); }
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--f-d); font-weight: 600; letter-spacing: -0.02em; margin: 0; text-wrap: balance; line-height: 1.04; }
p { margin: 0; text-wrap: pretty; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
.num { font-variant-numeric: tabular-nums; }
svg.lucide { flex: none; }

/* ---------- tlačítka ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; cursor: pointer;
  background: var(--accent); color: var(--accent-fg); font: 600 15px/1 var(--f-t); padding: 15px 22px;
  border-radius: var(--r-sm); text-decoration: none; white-space: nowrap; transition: background-color .18s ease, transform .18s ease; }
.btn:hover { background: var(--accent-dark); }
.btn:active { transform: translateY(1px); }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn.ghost:hover { background: var(--ink); color: #fff; }
.btn.dark { background: var(--ink); color: #fff; }
.btn.dark:hover { background: #000; }
.btn.sm { padding: 11px 15px; font-size: 14px; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.link { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.link:hover { color: var(--accent); }
.chip { display: inline-flex; align-items: center; gap: 6px; border-radius: var(--gfx-r-pill); padding: 9px 14px; font: 500 14px/1 var(--f-t);
  background: rgba(255,255,255,.72); border: 1px solid transparent; text-decoration: none; cursor: pointer; white-space: nowrap; }
.chip:hover { background: #fff; border-color: var(--ink); }
.chip[aria-pressed="true"], .chip.on { background: var(--ink); color: #fff; }
.tag { display: inline-flex; align-items: center; gap: 5px; font: 600 12px/1 var(--f-t); padding: 6px 8px; border-radius: var(--r-xs); background: var(--paper); }
.tag.sub { background: var(--sage-soft); color: var(--ink); }
.tag.new { background: var(--accent); color: var(--accent-fg); }

/* ---------- hlavička ---------- */
.topbar { background: var(--ink); color: #fff; font-size: 13.5px; }
.topbar .wrap { display: flex; gap: 28px; justify-content: center; align-items: center; min-height: 38px; }
.topbar span { display: inline-flex; gap: 7px; align-items: center; opacity: .92; }
.topbar svg { width: 16px; height: 16px; }
.head { position: sticky; top: 0; z-index: var(--z-head); background: rgba(255,255,255,.96); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.head .wrap { display: flex; align-items: center; gap: 26px; height: var(--head); }
.logo img { height: 40px; width: auto; }
.mainnav { display: flex; gap: 4px; }
.mainnav a { text-decoration: none; font-weight: 500; font-size: 15px; padding: 9px 11px; border-radius: var(--r-xs); }
.mainnav a:hover, .mainnav a[aria-current="page"] { background: var(--sage-soft); }
.head .sp { flex: 1; }
.head .util { display: flex; align-items: center; gap: 4px; }
.iconbtn { position: relative; display: inline-flex; align-items: center; gap: 8px; border: 0; background: transparent; padding: 10px; border-radius: var(--r-sm); cursor: pointer; text-decoration: none; font-weight: 500; font-size: 14.5px; }
.iconbtn:hover { background: var(--sage-soft); }
.iconbtn .badge { position: absolute; top: 2px; right: 0; min-width: 19px; height: 19px; border-radius: 10px; background: var(--accent); color: #fff; font: 700 11px/19px var(--f-t); text-align: center; padding: 0 5px; }
.iconbtn .badge:empty, .iconbtn .badge[data-n="0"] { display: none; }
.cartbtn .sum { font-variant-numeric: tabular-nums; }
.navtoggle { display: none; }
.b2blink { font-weight: 600; }
@media (max-width: 1180px) { .mainnav a { padding: 9px 7px; font-size: 14px; } .head .wrap { gap: 14px; } .hide-l { display: none !important; } }
@media (max-width: 980px) {
  .mainnav, .head .util .hide-m { display: none !important; }
  .navtoggle { display: inline-flex; }
  .topbar .wrap span:nth-child(n+2) { display: none; }
  :root { --head: 64px; }
  .logo img { height: 32px; }
}

/* zásuvka (menu, košík) */
.drawer { position: fixed; inset: 0; z-index: var(--z-drawer); display: none; }
.drawer.open { display: block; }
.drawer .veil { position: absolute; inset: 0; background: rgba(36,36,46,.42); }
.drawer .panel { position: absolute; top: 0; bottom: 0; width: min(440px, 92vw); background: #fff; display: flex; flex-direction: column; box-shadow: var(--sh-lift); }
.drawer.right .panel { right: 0; } .drawer.left .panel { left: 0; }
.drawer .ph { display: flex; justify-content: space-between; align-items: center; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.drawer .ph h2 { font-size: 22px; }
.drawer .pb { flex: 1; overflow: auto; padding: 18px 22px; }
.drawer .pf { padding: 18px 22px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.drawer nav a { display: flex; justify-content: space-between; padding: 14px 4px; border-bottom: 1px solid var(--line); text-decoration: none; font: 600 20px var(--f-d); }
@media (prefers-reduced-motion: no-preference) {
  .drawer.open .panel { animation: slidein .32s cubic-bezier(.2,.8,.2,1); }
  .drawer.left.open .panel { animation-name: slideinl; }
  .drawer.open .veil { animation: fade .25s ease; }
}
@keyframes slidein { from { transform: translateX(100%); } }
@keyframes slideinl { from { transform: translateX(-100%); } }
@keyframes fade { from { opacity: 0; } }

/* hledání */
.search { position: fixed; inset: 0; z-index: var(--z-drawer); display: none; background: rgba(36,36,46,.42); }
.search.open { display: block; }
.search .box { background: #fff; padding: 22px var(--pad) 28px; box-shadow: var(--sh-lift); }
.search form { max-width: 860px; margin: 0 auto; display: flex; gap: 10px; align-items: center; border-bottom: 2px solid var(--ink); }
.search input { flex: 1; border: 0; font: 500 26px var(--f-d); padding: 12px 0; outline: none; }
.search .res { max-width: 860px; margin: 14px auto 0; display: grid; gap: 4px; }
.search .res a { display: grid; grid-template-columns: 56px 1fr auto; gap: 14px; align-items: center; padding: 8px; border-radius: var(--r-sm); text-decoration: none; }
.search .res a:hover, .search .res a:focus-visible { background: var(--sage-soft); }
.search .res img { width: 56px; height: 42px; object-fit: contain; background: #fff; border: 1px solid var(--line); border-radius: var(--r-xs); }
.search .hint { max-width: 860px; margin: 12px auto 0; color: var(--muted); font-size: 14px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* ---------- produktová karta ---------- */
.pgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 20px; }
@media (max-width: 1100px) { .pgrid { grid-template-columns: repeat(3, minmax(0,1fr)); } }
@media (max-width: 760px) { .pgrid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 22px 12px; } }
.card { position: relative; display: flex; flex-direction: column; gap: 10px; }
.card .ph { position: relative; display: block; aspect-ratio: 4 / 3.3; background: var(--card); border-radius: var(--r-md); overflow: hidden; }
.card .ph img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; padding: 6%; transition: transform .5s cubic-bezier(.2,.8,.2,1); }
.card .ph:hover img { transform: scale(1.04); }
.card .tags { position: absolute; left: 10px; top: 10px; display: flex; gap: 6px; flex-wrap: wrap; }
.card h3 { font-size: 19px; line-height: 1.15; }
.card h3 a { text-decoration: none; }
.card h3 a:hover { text-decoration: underline; text-underline-offset: 3px; }
.card .sub { color: var(--muted); font-size: 14px; line-height: 1.4; min-height: 2.8em; }
.card .vars { display: flex; gap: 6px; flex-wrap: wrap; }
.var { border: 1.5px solid var(--line); background: #fff; border-radius: var(--r-xs); padding: 6px 9px; font: 500 13px/1.1 var(--f-t); cursor: pointer; }
.var[aria-pressed="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 .5px var(--ink); }
.var.out { color: #9a9aa0; text-decoration: line-through; }
.card .buy { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; }
.price { font: 700 20px/1 var(--f-t); font-variant-numeric: tabular-nums; }
.price small { display: block; font: 400 12.5px/1.3 var(--f-t); color: var(--muted); margin-top: 4px; }
.price s { font-weight: 400; color: var(--muted); font-size: 14px; margin-left: 6px; }
.addbtn { width: 46px; height: 46px; padding: 0; border-radius: var(--r-sm); }
@media (max-width: 760px) { .card h3 { font-size: 16px; } .card .sub { display: none; } .price { font-size: 17px; } .addbtn { width: 42px; height: 42px; } }

/* skeleton karta */
.card.skel .ph { background: var(--gfx-skel-bg); }

/* ---------- sekce a rytmus ---------- */
.sec { padding: clamp(64px, 9vw, 128px) 0; }
.sec.tight { padding: clamp(44px, 6vw, 80px) 0; }
.sechead { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 34px; }
.sechead h2 { font-size: clamp(34px, 4.4vw, 60px); }
.sechead p { color: var(--muted); max-width: 46ch; margin-top: 10px; }
.crumbs { display: flex; gap: 8px; align-items: center; font-size: 14px; color: var(--muted); padding: 18px 0; flex-wrap: wrap; }
.crumbs a { text-decoration: none; } .crumbs a:hover { text-decoration: underline; }
.crumbs svg { width: 14px; height: 14px; }

/* ---------- patička ---------- */
.news { background: var(--accent); color: #fff; }
.news .wrap { display: grid; grid-template-columns: minmax(200px, 290px) 1.1fr 1fr; gap: 48px; align-items: center; padding-top: 56px; padding-bottom: 56px; }
.news .env { position: relative; z-index: 2; align-self: center; width: 100%; height: auto; margin: -16px 0; filter: drop-shadow(0 18px 24px rgba(60, 14, 30, .28)); }
.news h2 { font-size: clamp(28px, 3.2vw, 44px); }
.news p { opacity: .92; margin-top: 8px; }
.news form { display: flex; gap: 8px; background: #fff; padding: 6px; border-radius: var(--r-sm); }
.news input { flex: 1; border: 0; padding: 12px 14px; outline: none; min-width: 0; color: var(--ink); }
.news .btn { background: var(--ink); }
.news small { display: block; margin-top: 10px; opacity: .9; font-size: 13px; }
.foot { background: var(--taupe); color: var(--ink); }
.foot .wrap { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 36px; padding-top: 56px; padding-bottom: 36px; }
.foot h3 { font-size: 17px; margin-bottom: 14px; }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: 15px; }
.foot a { text-decoration: none; } .foot a:hover { text-decoration: underline; }
.foot .bottom { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid rgba(36,36,46,.22); padding-top: 20px; font-size: 13.5px; flex-wrap: wrap; }
.foot .big { font: 600 clamp(64px, 12vw, 190px)/.8 var(--f-d); letter-spacing: -.05em; color: rgba(36,36,46,.9); grid-column: 1 / -1; margin-top: 10px; }
@media (max-width: 1100px) { .news .wrap { grid-template-columns: minmax(200px, 280px) 1fr; } .news .wrap > :last-child { grid-column: 2; } .news .env { grid-row: span 2; } }
@media (max-width: 860px) { .news .wrap, .foot .wrap { grid-template-columns: 1fr 1fr; } .news .wrap > * { grid-column: 1 / -1 !important; } .news .env { width: 230px; margin: 0 auto; } }

/* ---------- toast ---------- */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: var(--z-toast); background: var(--ink); color: #fff; padding: 13px 16px; border-radius: var(--r-sm); display: flex; gap: 14px; align-items: center; box-shadow: var(--sh-lift); font-size: 14.5px; max-width: calc(100vw - 32px); }
.toast a { color: #fff; font-weight: 600; }
.toast[hidden] { display: none; }

/* ---------- formuláře ---------- */
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: 14px; }
.field input, .field select, .field textarea { border: 1.5px solid #cfcdcb; border-radius: var(--r-sm); padding: 13px 14px; background: #fff; width: 100%; }
.field input:focus, .field select:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px var(--sage); }
.field .help { font-size: 13px; color: var(--muted); }
.field input[aria-invalid="true"] { border-color: var(--accent); }
.radio { display: grid; grid-template-columns: 22px 1fr auto; gap: 12px; align-items: center; border: 1.5px solid var(--line); border-radius: var(--r-sm); padding: 14px 16px; cursor: pointer; background: #fff; }
.radio:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 .5px var(--ink); }
.radio input { width: 18px; height: 18px; accent-color: var(--accent); margin: 0; }
.radio small { display: block; color: var(--muted); font-size: 13px; }
.radio .r { font-weight: 600; font-variant-numeric: tabular-nums; }

/* akordeon */
details.acc { border-top: 1px solid var(--line); }
details.acc:last-of-type { border-bottom: 1px solid var(--line); }
details.acc summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; padding: 18px 2px; font: 600 19px var(--f-d); }
details.acc summary::-webkit-details-marker { display: none; }
details.acc summary svg { transition: transform .2s ease; }
details.acc[open] summary svg { transform: rotate(180deg); }
details.acc .in { padding: 0 2px 22px; color: var(--ink); display: grid; gap: 12px; }

/* progres dopravy zdarma */
.freeship { display: grid; gap: 8px; font-size: 14px; }
.freeship .bar { height: 6px; border-radius: 3px; background: var(--sage-soft); overflow: hidden; }
.freeship .bar i { display: block; height: 100%; background: var(--ok); width: 0; transition: width .4s ease; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
