/* Macháčkovy Dobroty - pop-art comic design system */
:root {
  --ink: #1a1410;
  --paper: #f6efe2;
  --red: #e8482c;
  --yellow: #ffd23f;
  --green: #3f7d4f;
  --cream: #fff7e8;
  --shadow-hard: 5px 5px 0 var(--ink);
  --shadow-soft: 2px 3px 0 rgba(26,20,16,.35);
  --font-display: Georgia, "Iowan Old Style", "Times New Roman", serif;
  --font-body: "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  --radius: 14px;
  --max: 1180px;
}
html, body { overflow-x: clip; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  background-image: radial-gradient(circle, rgba(26,20,16,.07) 1px, transparent 1.4px);
  background-size: 14px 14px;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.icon { width: 22px; height: 22px; stroke: currentColor; }
.icon-sm { width: 16px; height: 16px; vertical-align: -3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.grain-overlay { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 2; mix-blend-mode: multiply; }
.grain-overlay svg { width: 100%; height: 100%; }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--cream);
  border-bottom: 3px solid var(--ink);
}
.header-inner {
  max-width: var(--max); margin: 0 auto; padding: .6rem 1.2rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.logo-mark { width: 180px; height: 40px; }
.main-nav { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.main-nav a {
  text-decoration: none; font-weight: 600; font-size: .95rem; position: relative; padding: 4px 0;
}
.main-nav a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 3px; width: 0; background: var(--red);
  transition: width .25s ease;
}
.main-nav a:hover::after, .main-nav a.is-active::after { width: 100%; }
.header-actions { display: flex; align-items: center; gap: .8rem; }
.cart-link { position: relative; display: inline-flex; padding: 6px; min-width: 44px; min-height: 44px; align-items: center; justify-content: center; }
.cart-count {
  position: absolute; top: 0; right: 0; background: var(--red); color: #fff; font-size: .7rem; font-weight: 700;
  border-radius: 50%; min-width: 18px; height: 18px; display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--ink);
}
.cart-count.bump { animation: bump .35s ease; }
@keyframes bump { 0%{transform:scale(1)} 40%{transform:scale(1.4)} 100%{transform:scale(1)} }
.menu-toggle { display: none; background: none; border: 2px solid var(--ink); border-radius: 8px; min-width: 44px; min-height: 44px; }

@media (max-width: 860px) {
  .menu-toggle { display: flex; align-items: center; justify-content: center; }
  .main-nav {
    position: fixed; top: 0; right: 0; height: 100vh; width: min(78vw, 320px);
    background: var(--cream); flex-direction: column; padding: 5rem 1.5rem 2rem;
    transform: translateX(100%); visibility: hidden; transition: transform .3s ease, visibility .3s;
    border-left: 3px solid var(--ink); z-index: 60;
  }
  .main-nav.open { transform: translateX(0); visibility: visible; }
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-weight: 700; font-family: var(--font-body); font-size: 1rem; cursor: pointer;
  padding: .75rem 1.5rem; border-radius: 999px; border: 3px solid var(--ink);
  min-height: 44px; text-decoration: none; position: relative; overflow: hidden; isolation: isolate;
  background: var(--yellow); color: var(--ink); box-shadow: var(--shadow-hard);
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translate(-2px,-2px); box-shadow: 7px 7px 0 var(--ink); }
.btn:active { transform: translate(1px,1px); box-shadow: 2px 2px 0 var(--ink); }
.btn-sweep::before {
  content: ""; position: absolute; inset: 0; left: -100%; width: 100%; background: var(--red); z-index: -1;
  transition: left .3s ease;
}
.btn-sweep:hover::before { left: 0; }
.btn-sweep:hover { color: #fff; }
.btn-primary { background: var(--red); color: #fff; }
.btn-outline { background: transparent; }
.btn-ghost { background: transparent; border-color: currentColor; box-shadow: none; color: var(--paper); }
.btn-ghost:hover { background: rgba(255,255,255,.12); transform: none; box-shadow: none; }
.btn-sm { padding: .45rem 1rem; font-size: .85rem; min-height: 36px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* ===== Layout helpers ===== */
.container { max-width: var(--max); margin: 0 auto; padding: 0 1.2rem; }
.section { padding: clamp(2.5rem, 6vw, 5rem) 0; position: relative; }
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 760px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }
.mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; } .mt-3 { margin-top: 3rem; }
.mb-1 { margin-bottom: 1rem; } .mb-2 { margin-bottom: 2rem; }
.flex { display: flex; } .flex-wrap { flex-wrap: wrap; } .gap-1 { gap: 1rem; } .items-center { align-items: center; } .justify-between { justify-content: space-between; }
.text-center { text-align: center; }

/* ===== Reveal / motion ===== */
.reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(24px); clip-path: inset(0 0 12% 0); transition: opacity .6s ease, transform .6s ease, clip-path .6s ease; }
  .reveal.in-view { opacity: 1; transform: translateY(0); clip-path: inset(0 0 0 0); }
  .reveal-stagger > * { transition-delay: calc(var(--i, 0) * 80ms); }
}

/* ===== Page hero (inner pages) ===== */
.page-hero {
  background: var(--ink); color: var(--paper); padding: clamp(3rem,8vw,5rem) 1.2rem 3rem; text-align: center;
  border-bottom: 4px solid var(--red);
}
.page-hero h1 { font-family: var(--font-display); font-size: clamp(2rem, 5vw, 3.2rem); margin: 0 0 .6rem; }
.page-hero p { max-width: 640px; margin: 0 auto; opacity: .85; }

/* ===== Breadcrumbs ===== */
.breadcrumbs { font-size: .85rem; padding: .8rem 1.2rem; max-width: var(--max); margin: 0 auto; }
.breadcrumbs a { text-decoration: underline; }
.breadcrumbs span { opacity: .6; margin: 0 .4rem; }

/* ===== Notice ===== */
.notice { border: 3px solid var(--ink); border-radius: var(--radius); padding: 1rem 1.2rem; background: var(--cream); box-shadow: var(--shadow-soft); }
.notice-success { background: #e7f3e3; border-color: var(--green); }
.notice-error { background: #fdeaea; border-color: var(--red); }

/* ===== Prose (legal pages) ===== */
.prose { max-width: 720px; margin: 0 auto; line-height: 1.7; }
.prose h2 { font-family: var(--font-display); margin-top: 2.2rem; }
.prose h3 { margin-top: 1.6rem; }
.prose ul, .prose ol { padding-left: 1.4rem; }
.legal-toc { border: 3px solid var(--ink); border-radius: var(--radius); padding: 1.2rem 1.4rem; background: var(--cream); max-width: 720px; margin: 0 auto 2rem; }
.legal-toc li { margin-bottom: .3rem; }

/* ===== Forms ===== */
.form-grid { display: grid; gap: 1.1rem; grid-template-columns: repeat(2, 1fr); max-width: 680px; }
.form-grid .field-full { grid-column: 1 / -1; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: .35rem; }
.field label { font-weight: 600; font-size: .9rem; }
.field input, .field select, .field textarea {
  font: inherit; padding: .65rem .8rem; border: 2px solid var(--ink); border-radius: 8px; background: #fff;
  accent-color: var(--red);
}
.field input:focus, .field select:focus, .field textarea:focus, .btn:focus-visible {
  outline: 3px solid var(--red); outline-offset: 2px;
}
.field-error { color: var(--red); font-size: .8rem; min-height: 1em; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-msg { font-size: .9rem; min-height: 1.2em; }
.form-msg.is-ok { color: var(--green); font-weight: 700; }
.form-msg.is-error { color: var(--red); font-weight: 700; }
.newsletter-form { display: flex; flex-direction: column; gap: .5rem; max-width: 260px; }

/* ===== FAQ ===== */
.faq { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: .8rem; }
.faq-item { border: 3px solid var(--ink); border-radius: var(--radius); background: var(--cream); padding: .3rem 1.2rem; }
.faq-item summary { cursor: pointer; font-weight: 700; padding: .9rem 0; list-style: none; display: flex; justify-content: space-between; }
.faq-item summary::after { content: "+"; font-size: 1.4rem; }
.faq-item[open] summary::after { content: "–"; }
.faq-item p { padding-bottom: 1rem; margin: 0; }

/* ===== Product grid / cards ===== */
.product-strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px,1fr)); gap: 1.6rem; }
@media (max-width: 640px) {
  .product-strip { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 1.2rem; padding-bottom: .5rem; }
  .product-strip .product-card { flex: 0 0 80%; scroll-snap-align: start; }
}
.product-card {
  background: var(--cream); border: 3px solid var(--ink); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-soft); transition: transform .25s ease, box-shadow .25s ease; display: flex; flex-direction: column;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hard); }
.product-card .thumb { aspect-ratio: 4/3; overflow: hidden; border-bottom: 3px solid var(--ink); }
.product-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.product-card:hover .thumb img { transform: scale(1.08); }
.product-card .body { padding: 1rem 1.1rem 1.3rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.product-card h3 { margin: 0; font-family: var(--font-display); font-size: 1.1rem; }
.product-card .price { font-weight: 700; color: var(--red); font-size: 1.1rem; }
.product-card .desc { font-size: .88rem; opacity: .85; flex: 1; }

/* ===== Product detail ===== */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: start; }
@media (max-width: 760px) { .product-detail { grid-template-columns: 1fr; } }
.product-detail .photo { border: 3px solid var(--ink); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-hard); aspect-ratio: 1/1; }
.product-detail .photo img { width: 100%; height: 100%; object-fit: cover; }
.product-detail .price { font-size: 1.8rem; font-weight: 700; color: var(--red); }
.qty-control { display: inline-flex; align-items: center; border: 2px solid var(--ink); border-radius: 999px; overflow: hidden; }
.qty-control button { width: 40px; height: 40px; border: none; background: var(--yellow); font-size: 1.2rem; cursor: pointer; }
.qty-control input { width: 46px; text-align: center; border: none; font: inherit; }

/* ===== Cart / checkout ===== */
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th, .cart-table td { border-bottom: 2px solid var(--ink); padding: .8rem .5rem; text-align: left; vertical-align: middle; }
.cart-table img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; border: 2px solid var(--ink); }
.cart-summary { border: 3px solid var(--ink); border-radius: var(--radius); background: var(--cream); padding: 1.4rem; box-shadow: var(--shadow-soft); max-width: 360px; margin-left: auto; }
.cart-summary .total-row { display: flex; justify-content: space-between; font-weight: 700; font-size: 1.2rem; margin: 1rem 0; }

/* ===== Contact layout ===== */
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; }
@media (max-width: 760px) { .contact-layout { grid-template-columns: 1fr; } }
.contact-info { display: flex; flex-direction: column; gap: 1rem; }
.contact-info .row { display: flex; gap: .7rem; align-items: flex-start; }

/* ===== Comic / pop-art decorations ===== */
.panel { border: 3px solid var(--ink); border-radius: var(--radius); background: var(--cream); box-shadow: var(--shadow-hard); padding: 1.6rem; }
.speech-bubble { position: relative; background: #fff; border: 3px solid var(--ink); border-radius: 18px; padding: 1rem 1.3rem; font-weight: 600; }
.speech-bubble::after {
  content: ""; position: absolute; left: 36px; bottom: -16px; width: 0; height: 0; border: 10px solid transparent;
  border-top-color: var(--ink); border-bottom: 0;
}
.halftone-bg {
  position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image: radial-gradient(var(--ink) 1.5px, transparent 1.6px);
  background-size: 10px 10px;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 40%, #000 60%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 40%, #000 60%, transparent);
}

/* ===== Home hero ===== */
.hero { position: relative; overflow: hidden; padding: clamp(2.5rem,7vw,5rem) 0 3rem; }
.hero-inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: 2rem; align-items: center; }
@media (max-width: 820px) { .hero-inner { grid-template-columns: 1fr; text-align: center; } }
.hero-text h1 { font-family: var(--font-display); font-size: clamp(2.6rem, 6.5vw, 4.2rem); line-height: 1.05; margin: 0 0 1rem; }
.hero-text h1 span { color: var(--red); display: block; }
.hero-visual { display: flex; justify-content: center; }
.hero-svg { width: min(100%, 380px); height: auto; }
.spin-slow { transform-origin: 210px 210px; animation: spin 40s linear infinite; }
.float-slow { animation: floaty 6s ease-in-out infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@media (prefers-reduced-motion: reduce) { .spin-slow, .float-slow { animation: none; } }

/* ===== Marquee ===== */
.marquee { overflow: hidden; border-top: 3px solid var(--ink); border-bottom: 3px solid var(--ink); background: var(--red); padding: .8rem 0; }
.marquee-track { display: flex; width: max-content; gap: 2.5rem; animation: marquee 22s linear infinite; }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }
.marquee-track span { color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 1.4rem; white-space: nowrap; letter-spacing: .02em; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ===== Footer ===== */
.site-footer { background: var(--ink); color: var(--paper); padding-top: 2.5rem; }
.footer-divider { width: 100%; height: 30px; display: block; }
.footer-inner { max-width: var(--max); margin: 0 auto; padding: 1rem 1.2rem 2rem; display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 2rem; }
@media (max-width: 860px) { .footer-inner { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .footer-inner { grid-template-columns: 1fr; } }
.footer-links { display: flex; flex-direction: column; gap: .55rem; }
.footer-links a { opacity: .85; text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.footer-links strong { font-family: var(--font-display); margin-bottom: .3rem; }
.footer-contact { margin-top: .8rem; opacity: .85; }
.footer-bottom { border-top: 2px solid rgba(246,239,226,.25); text-align: center; padding: 1rem; font-size: .85rem; opacity: .75; }

/* ===== Cookie banner ===== */
.cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 80; background: var(--ink); color: var(--paper);
  display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between;
  padding: 1rem 1.4rem; border-top: 3px solid var(--red);
}
.cookie-banner[hidden] { display: none; }
.cookie-actions { display: flex; gap: .7rem; }

/* COMPONENTS: .class - what it is
.container - centered max-width content wrapper
.section - vertical page section spacing
.grid / .grid-2 / .grid-3 / .grid-4 - responsive grid helpers
.reveal / .reveal-stagger - scroll-reveal animation hooks (JS adds .in-view)
.page-hero - dark hero band for inner pages
.breadcrumbs - small breadcrumb trail
.notice / .notice-success / .notice-error - callout boxes
.prose - readable long-form legal/text content
.legal-toc - table of contents box for legal pages
.form-grid / .field / .field-error / .hp-field / .form-msg - form layout and feedback
.newsletter-form - compact footer newsletter form
.faq / .faq-item - details/summary accordion
.product-strip / .product-card - catalog grid / card, scroll-snap on mobile
.product-detail / .qty-control - single product page layout and quantity stepper
.cart-table / .cart-summary - cart/checkout page
.contact-layout / .contact-info - contact page split layout
.panel - bordered comic panel box
.speech-bubble - comic speech-bubble callout
.halftone-bg - decorative halftone dot background layer
.marquee / .marquee-track - scrolling brand-word strip
.btn / .btn-primary / .btn-outline / .btn-ghost / .btn-sweep / .btn-sm - button variants
.site-header / .main-nav / .cart-link / .cart-count / .menu-toggle - header and nav
.site-footer / .footer-inner / .footer-links / .footer-contact / .footer-bottom - footer
.cookie-banner / .cookie-actions - cookie consent banner
*/
/* ===== Missing styles ===== */
.footer-col { display: flex; flex-direction: column; gap: .8rem; }

.logo { display: inline-flex; align-items: center; text-decoration: none; color: inherit; }

.qty-input { width: 46px; text-align: center; border: none; font: inherit; }
.qty-input:focus { outline: 3px solid var(--red); outline-offset: 2px; }

.btn-remove { background: transparent; border: none; cursor: pointer; color: var(--red); font-size: 1.2rem; font-weight: 700; padding: .3rem .5rem; display: inline-flex; align-items: center; justify-content: center; transition: transform .15s ease; }
.btn-remove:hover { transform: scale(1.15); }
