@font-face { font-family: 'Baloo 2'; font-weight: 600 800; font-display: swap; src: url(fonts/baloo2-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Baloo 2'; font-weight: 600 800; font-display: swap; src: url(fonts/baloo2-latin.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: 'Nunito'; font-weight: 400 800; font-display: swap; src: url(fonts/nunito-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Nunito'; font-weight: 400 800; font-display: swap; src: url(fonts/nunito-latin.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 {
  --ink: #1f3317;
  --green-dark: #2e5b1f;
  --green: #5fae37;
  --green-soft: #e6f3da;
  --red: #dd4334;
  --cream: #fbf6ea;
  --paper: #ffffff;
  --muted: #5d6b55;
  --radius: 18px;
  --shadow: 4px 4px 0 var(--ink);
  --display: 'Baloo 2', 'Nunito', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 400 1rem/1.6 'Nunito', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-dark); }
h1, h2, h3 { font-family: var(--display); line-height: 1.1; margin: 0 0 .5em; }
h2 { font-size: clamp(1.75rem, 3vw, 2.25rem); }
.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; z-index: 10; background: var(--paper); padding: 8px 12px; border-radius: 8px; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
.muted { color: var(--muted); font-size: .875rem; }

/* Header */
.site-header { background: var(--paper); border-bottom: 3px solid var(--ink); position: sticky; top: 0; z-index: 5; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 10px; }
.brand img { height: 52px; width: auto; }
.site-header nav { display: flex; align-items: center; gap: clamp(10px, 3vw, 28px); font-weight: 800; }
.site-header nav a { color: var(--ink); text-decoration: none; }
.site-header nav a:hover { color: var(--green-dark); text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 6px; }
.nav-cta { background: var(--green-soft); border: 2px solid var(--ink); border-radius: 999px; padding: 4px 14px; }
@media (max-width: 560px) {
  .brand img { height: 40px; }
  .site-header nav a:not(.nav-cta) { display: none; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 800 1.0625rem/1 var(--display); text-decoration: none;
  padding: 14px 24px; border: 3px solid var(--ink); border-radius: 14px;
  box-shadow: var(--shadow); transition: transform .12s, box-shadow .12s;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.btn-primary { background: var(--red); color: #fff; }
.btn-big { width: 100%; font-size: 1.25rem; padding: 18px 24px; }

/* Hero — puntíky jako na kostce */
.hero {
  background:
    radial-gradient(circle, rgb(255 255 255 / .09) 3px, transparent 4px) 0 0 / 34px 34px,
    var(--green-dark);
  color: #fff;
  border-bottom: 3px solid var(--ink);
}
.hero-inner { display: grid; grid-template-columns: 1.2fr 1fr; align-items: center; gap: 32px; padding-block: clamp(40px, 7vw, 88px); }
.eyebrow { display: inline-block; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; font-size: .8125rem; background: var(--green); color: var(--ink); padding: 4px 12px; border-radius: 999px; margin: 0 0 16px; }
.hero h1 { font-size: clamp(2.25rem, 5.5vw, 4rem); font-weight: 800; }
.hero h1 span { color: #b6e88f; }
.lead { font-size: 1.1875rem; max-width: 34em; opacity: .92; margin: 0 0 24px; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 8px 24px; list-style: none; padding: 0; margin: 0 0 28px; }
.hero-stats strong { font-family: var(--display); font-size: 1.5rem; color: #fff; }
/* Koláž je dekorace: na mobilu skrytá, proto lazy obrázky (display:none se pak vůbec nestahuje). */
.hero-collage { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; justify-self: center; width: min(100%, 440px); padding-bottom: 44px; }
.hero-collage a { position: relative; aspect-ratio: 1; background: #fff; border: 3px solid var(--ink); border-radius: 20px; box-shadow: 6px 6px 0 var(--ink); padding: 10px; transform: rotate(-3deg); transition: transform .2s; }
.hero-collage a:nth-child(even) { margin: 44px 0 -44px; transform: rotate(2.5deg); }
.hero-collage a:hover { transform: rotate(0) scale(1.03); }
.hero-collage img { width: 100%; height: 100%; object-fit: contain; }
.hero-collage .name { position: absolute; inset: 8px 8px auto; background: var(--ink); color: #fff; font-weight: 800; font-size: .875rem; line-height: 1.3; padding: 0 10px; border-block: 6px solid var(--ink); border-radius: 12px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; opacity: 0; transform: translateY(-4px); transition: opacity .2s, transform .2s; }
.hero-collage a:hover .name { opacity: 1; transform: none; }
.hero-collage .tag { position: absolute; right: -10px; bottom: -14px; background: var(--red); color: #fff; font-family: var(--display); font-weight: 800; border: 3px solid var(--ink); border-radius: 999px; padding: 2px 12px; transform: rotate(-6deg); }
@media (max-width: 760px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-collage { display: none; }
}

/* Katalog */
.catalog { padding-block: 48px 24px; scroll-margin-top: 80px; }
.catalog-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.count { color: var(--muted); font-weight: 700; margin: 0; }
.toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 8px 0 28px; }
.search { flex: 1 1 260px; }
.search input, .sort select {
  width: 100%; font: inherit; font-weight: 600; color: var(--ink);
  background: var(--paper); border: 2px solid var(--ink); border-radius: 12px; padding: 10px 14px;
}
.chips { display: flex; gap: 6px; border: 0; padding: 0; margin: 0; }
.chips input { position: absolute; opacity: 0; }
.chips span { display: block; cursor: pointer; font-weight: 800; padding: 9px 16px; border: 2px solid var(--ink); border-radius: 999px; background: var(--paper); }
.chips input:checked + span { background: var(--ink); color: #fff; }
.chips input:focus-visible + span { outline: 3px solid var(--red); outline-offset: 2px; }

.grid { list-style: none; padding: 0; margin: 0; display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr)); }
.card a {
  position: relative; display: flex; flex-direction: column; height: 100%;
  background: var(--paper); color: var(--ink); text-decoration: none;
  border: 3px solid var(--ink); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s;
}
.card a:hover { transform: translate(-3px, -3px) rotate(-.6deg); box-shadow: 7px 7px 0 var(--ink); }
.card-img { aspect-ratio: 1; background: #fff; border-bottom: 3px solid var(--ink); padding: 12px; }
.card-img img { width: 100%; height: 100%; object-fit: contain; }
.card-title { font-weight: 800; line-height: 1.3; margin: 14px 16px 6px; flex: 1; align-self: flex-start; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-price { font: 800 1.375rem/1 var(--display); color: var(--red); padding: 4px 16px 16px; }
.card .badge { position: absolute; top: 10px; left: 10px; }
.badge { display: inline-block; font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; padding: 3px 10px; border: 2px solid var(--ink); border-radius: 999px; }
.badge-new { background: var(--green); }
.badge-used { background: #ffd66b; }
.empty { text-align: center; font-weight: 700; font-size: 1.125rem; padding: 48px 0; }

/* Jak to funguje */
.how { padding-block: 56px 72px; scroll-margin-top: 80px; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); }
.steps li { background: var(--green-soft); border: 3px solid var(--ink); border-radius: var(--radius); padding: 24px; }
.steps p { margin: 0; color: var(--muted); }
.pip { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 14px; font: 800 1.375rem/1 var(--display); background: var(--paper); border: 3px solid var(--ink); border-radius: 12px; color: var(--red); }

/* Detail */
.detail { padding-block: 24px 64px; }
.crumbs { font-size: .9375rem; color: var(--muted); margin-bottom: 20px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.crumbs a { color: var(--muted); }
.product { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
@media (max-width: 820px) { .product { grid-template-columns: 1fr; } }
.gallery-main { aspect-ratio: 1; background: #fff; border: 3px solid var(--ink); border-radius: 24px; box-shadow: 6px 6px 0 var(--ink); padding: 20px; }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; }
@media (max-width: 820px) { .gallery-main { aspect-ratio: 4 / 3; padding: 12px; } }
.thumbs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.thumb { width: 76px; height: 76px; background: #fff; border: 2px solid var(--ink); border-radius: 12px; padding: 4px; opacity: .65; }
.thumb[aria-current='true'], .thumb:hover { opacity: 1; border-width: 3px; }
.thumb img { width: 100%; height: 100%; object-fit: contain; }
.buybox { position: sticky; top: 96px; background: var(--paper); border: 3px solid var(--ink); border-radius: 24px; padding: clamp(20px, 3vw, 32px); }
.buybox h1 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); margin-top: 14px; }
.price { font: 800 clamp(2.25rem, 4vw, 3rem)/1 var(--display); color: var(--red); margin: 8px 0 6px; }
.price-note { color: var(--muted); font-size: .875rem; margin: 0 0 22px; }
.trust { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 8px; font-weight: 700; }
.trust li::before { content: '✓'; display: inline-grid; place-items: center; width: 22px; height: 22px; margin-right: 10px; background: var(--green); border: 2px solid var(--ink); border-radius: 6px; font-size: .75rem; }
@media (max-width: 820px) { .buybox { position: static; } }
.description { max-width: 72ch; margin-top: 56px; font-size: 1.0625rem; }
.description ul { padding-left: 1.2em; }
.description li { margin-bottom: .4em; }
.description li::marker { color: var(--red); }
.related { margin-top: 64px; }
.grid-small { grid-template-columns: repeat(auto-fill, minmax(min(200px, 100%), 1fr)); }

/* 404 */
.notfound { text-align: center; padding-block: 72px; }
.notfound img { margin: 0 auto 24px; width: 260px; }
.notfound h1 { font-size: clamp(2rem, 5vw, 3rem); }

/* Footer */
.site-footer { background: var(--ink); color: #dfe9d6; padding-block: 40px; }
.site-footer a { color: #b6e88f; }
.footer-inner { display: grid; gap: 4px; justify-items: start; }
.footer-inner img { background: var(--cream); border-radius: 14px; padding: 8px; margin-bottom: 12px; }
.footer-inner p { margin: 0; max-width: 60ch; }
.site-footer .muted { color: #a5b49b; margin-top: 8px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
