/* Kosare Dom - Pop-art comic design system */
:root {
  --coral: #ff6b4a;
  --coral-soft: #ff8a5c;
  --peach: #ffd9b8;
  --teal: #1f5955;
  --teal-dark: #123734;
  --cream: #fff5e8;
  --ink: #1a1a1a;
  --paper: #fffaf2;
  --line: 3px;
  --radius: 18px;
  --shadow-hard: 6px 6px 0 var(--ink);
  --shadow-soft: 0 18px 40px rgba(18, 55, 52, 0.18);
  --font-display: Georgia, "Iowan Old Style", "Palatino Linotype", serif;
  --font-body: "Segoe UI", system-ui, -apple-system, Helvetica, Arial, sans-serif;
  --font-mono: "Consolas", "SFMono-Regular", Menlo, monospace;
  --maxw: 1200px;
}

* { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
}
img { max-width: 100%; display: block; }
a { color: var(--teal); text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.1; margin: 0 0 0.5em; }
p { margin: 0 0 1em; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 2px; border-radius: 4px; }

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

/* ===== layout utilities ===== */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.section { padding: clamp(40px, 8vw, 90px) 0; position: relative; }
.grid { display: grid; gap: 24px; }
.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: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.mt-lg { margin-top: clamp(32px, 6vw, 64px); }
.mb-lg { margin-bottom: clamp(32px, 6vw, 64px); }
.flex { display: flex; gap: 16px; align-items: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; gap: 16px; }

/* ===== halftone / texture ===== */
.halftone-bg {
  background-image: radial-gradient(circle, rgba(26,26,26,0.14) 1.4px, transparent 1.6px);
  background-size: 14px 14px;
}
.grain-overlay { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; opacity: 0.05; z-index: 999; mix-blend-mode: multiply; }

/* ===== header ===== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--cream);
  border-bottom: var(--line) solid var(--ink);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; color: var(--ink); }
.logo svg { width: 44px; height: 44px; flex-shrink: 0; }
.site-nav { display: flex; gap: 4px; }
.site-nav a {
  color: var(--ink); font-weight: 600; padding: 10px 14px; border-radius: 10px; position: relative;
  min-height: 44px; display: flex; align-items: center;
}
.site-nav a::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 6px; height: 3px; background: var(--coral);
  transform: scaleX(0); transform-origin: left; transition: transform 0.25s ease;
}
.site-nav a:hover::after, .site-nav a.is-active::after { transform: scaleX(1); }
.header-actions { display: flex; align-items: center; gap: 14px; }
.cart-link { position: relative; display: flex; align-items: center; gap: 8px; font-weight: 700; min-height: 44px; }
.cart-link svg { width: 26px; height: 26px; }
.cart-count {
  background: var(--coral); color: #fff; font-size: 0.75rem; font-weight: 800; border-radius: 999px;
  min-width: 20px; height: 20px; display: flex; align-items: center; justify-content: center; padding: 0 5px;
}
.cart-count.bump { animation: bump 0.4s ease; }
@keyframes bump { 0%,100% { transform: scale(1); } 40% { transform: scale(1.5); } }
.nav-toggle { display: none; width: 44px; height: 44px; border: var(--line) solid var(--ink); background: var(--paper); border-radius: 10px; }
.nav-toggle span, .nav-toggle::before, .nav-toggle::after { display: none; }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: fixed; top: 76px; left: 0; right: 0; bottom: 0; background: var(--cream);
    flex-direction: column; padding: 20px; gap: 6px; transform: translateY(-12px); visibility: hidden; opacity: 0;
    transition: transform 0.25s ease, opacity 0.25s ease, visibility 0.25s;
  }
  .site-nav.is-open { transform: translateY(0); visibility: visible; opacity: 1; }
  .site-nav a { width: 100%; padding: 14px; }
}

/* ===== buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 800; font-family: var(--font-body); border: var(--line) solid var(--ink); border-radius: 12px;
  padding: 13px 26px; min-height: 44px; cursor: pointer; position: relative; overflow: hidden; isolation: isolate;
  background: var(--paper); color: var(--ink); box-shadow: var(--shadow-hard); transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn::before {
  content: ""; position: absolute; inset: 0; width: 100%; left: -100%; background: var(--ink); z-index: -1;
  transition: left 0.25s ease;
}
.btn:hover { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }
.btn-primary { background: var(--coral); color: #fff; }
.btn-primary:hover::before { left: 0; }
.btn-primary:hover { color: #fff; background: var(--ink); }
.btn-outline { background: transparent; }
.btn-ghost { border-color: #fff; color: #fff; background: transparent; }
.btn-ghost:hover { background: rgba(255,255,255,0.15); color: #fff; }
.btn-sm { padding: 8px 16px; font-size: 0.9rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }

/* ===== hero ===== */
.hero { padding: clamp(50px, 9vw, 110px) 0 clamp(60px, 10vw, 120px); position: relative; overflow: hidden; background: var(--cream); }
.hero .wrap { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; } }
.hero-title { font-size: clamp(2.4rem, 6vw, 4.2rem); font-weight: 700; }
.hero-title mark { background: none; color: var(--coral); }
.hero-lede { font-size: 1.15rem; max-width: 46ch; }
.hero-art { position: relative; aspect-ratio: 1/1; }
.hero-art svg { width: 100%; height: 100%; }
.speech-bubble {
  position: absolute; background: #fff; border: var(--line) solid var(--ink); border-radius: 16px; padding: 10px 16px;
  font-weight: 800; font-family: var(--font-display); box-shadow: var(--shadow-hard); transform: rotate(-3deg);
}

/* ===== page hero (inner pages) ===== */
.page-hero { background: var(--teal); color: #fff; padding: clamp(50px, 8vw, 90px) 0 clamp(36px,6vw,56px); }
.page-hero h1 { font-size: clamp(2rem, 5vw, 3rem); }
.page-hero p { max-width: 60ch; opacity: 0.9; }
.breadcrumbs { font-size: 0.85rem; margin-bottom: 14px; }
.breadcrumbs a { color: rgba(255,255,255,0.75); }
.breadcrumbs a:hover { color: #fff; }

/* ===== cards / masonry gallery ===== */
.card {
  background: #fff; border: var(--line) solid var(--ink); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-hard); transition: transform 0.2s ease, box-shadow 0.2s ease; display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-6px); box-shadow: 10px 10px 0 var(--ink); }
.card-media { aspect-ratio: 4/3; overflow: hidden; background: var(--peach); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.card:hover .card-media img { transform: scale(1.08); }
.card-body { padding: 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-price { font-weight: 800; color: var(--coral); font-size: 1.1rem; }

.masonry { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.masonry > :nth-child(odd) { grid-row: span 2; }
@media (max-width: 900px) { .masonry { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .masonry { grid-template-columns: 1fr; } .masonry > :nth-child(odd) { grid-row: auto; } }

/* ===== product strip (mobile scroll-snap) ===== */
.strip { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 10px; }
.strip .card { min-width: 240px; scroll-snap-align: start; }

/* ===== reveal ===== */
.reveal { opacity: 0; transform: translateY(24px); clip-path: inset(10% 0 0 0); transition: opacity 0.6s ease, transform 0.6s ease, clip-path 0.6s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); clip-path: inset(0 0 0 0); }
.reveal-delay-1 { transition-delay: 0.08s; } .reveal-delay-2 { transition-delay: 0.16s; } .reveal-delay-3 { transition-delay: 0.24s; } .reveal-delay-4 { transition-delay: 0.32s; }

/* ===== dividers / badges ===== */
.divider { width: 100%; height: 48px; display: block; }
.badge-seal { width: 110px; height: 110px; }

/* ===== feature: Iskalec prave košare ===== */
.finder { background: var(--teal); color: #fff; border-radius: var(--radius); padding: clamp(28px, 5vw, 48px); position: relative; overflow: hidden; }
.finder h2 { color: #fff; }
.finder-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
@media (max-width: 760px) { .finder-grid { grid-template-columns: 1fr; } }
.finder-options { display: flex; flex-wrap: wrap; gap: 10px; }
.finder-chip {
  border: 2px solid rgba(255,255,255,0.5); color: #fff; background: transparent; border-radius: 999px;
  padding: 10px 18px; font-weight: 700; cursor: pointer; min-height: 44px;
}
.finder-chip.is-active, .finder-chip:hover { background: var(--coral); border-color: var(--coral); }
.finder-result { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.3); border-radius: 14px; padding: 20px; }
.finder-gauge { height: 16px; border-radius: 999px; background: rgba(255,255,255,0.2); overflow: hidden; margin: 10px 0; }
.finder-gauge > span { display: block; height: 100%; background: var(--coral-soft); transition: width 0.4s ease; }
.finder-pick { display: flex; gap: 14px; align-items: center; margin-top: 14px; }
.finder-pick img { width: 72px; height: 72px; object-fit: cover; border-radius: 10px; border: 2px solid #fff; }

/* ===== forms ===== */
.form-grid { display: grid; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 700; font-size: 0.92rem; }
.field input, .field select, .field textarea {
  border: 2px solid var(--ink); border-radius: 10px; padding: 11px 14px; font: inherit; background: #fff; accent-color: var(--coral);
  min-height: 44px;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--coral); outline-offset: 1px; }
.field-error { color: #b4232a; font-size: 0.85rem; min-height: 1.1em; }
.field.has-error input, .field.has-error textarea { border-color: #b4232a; }
.form-note { font-weight: 700; margin-top: 10px; }
.form-note.is-error { color: #b4232a; }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.newsletter-form { display: flex; gap: 10px; flex-wrap: wrap; }
.newsletter-form input[type=email] { flex: 1; min-width: 180px; }

/* ===== notices ===== */
.notice { border: 2px solid var(--ink); border-radius: 12px; padding: 16px 20px; background: var(--peach); margin: 0 0 20px; }
.notice-success { background: #d8ead1; }
.notice-error { background: #f6d2d2; }

/* ===== prose (legal pages) ===== */
.prose { max-width: 72ch; }
.prose h2 { margin-top: 1.6em; font-size: 1.5rem; }
.prose h3 { font-size: 1.15rem; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: 0.4em; }
.legal-toc { background: var(--cream); border: 2px solid var(--ink); border-radius: 14px; padding: 18px 22px; margin-bottom: 30px; }
.legal-toc li { margin-bottom: 6px; }

/* ===== breadcrumbs / layout helpers for inner pages ===== */
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
@media (max-width: 800px) { .contact-layout { grid-template-columns: 1fr; } }
.info-block { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 18px; }
.info-block svg { width: 28px; height: 28px; flex-shrink: 0; color: var(--coral); }

/* ===== product detail ===== */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; }
@media (max-width: 800px) { .product-detail { grid-template-columns: 1fr; } }
.product-gallery { border: var(--line) solid var(--ink); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-hard); aspect-ratio: 1/1; }
.product-gallery img { width: 100%; height: 100%; object-fit: cover; }
.qty-input { display: flex; align-items: center; border: 2px solid var(--ink); border-radius: 10px; overflow: hidden; width: fit-content; }
.qty-input button { width: 40px; height: 44px; background: var(--peach); border: none; font-size: 1.2rem; cursor: pointer; }
.qty-input input { width: 50px; border: none; text-align: center; font: inherit; height: 44px; }

/* ===== cart / checkout ===== */
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th, .cart-table td { padding: 14px 10px; text-align: left; border-bottom: 2px solid var(--ink); }
.cart-table img { width: 60px; height: 60px; object-fit: cover; border-radius: 8px; }
.cart-summary { background: var(--cream); border: 2px solid var(--ink); border-radius: 14px; padding: 22px; }
.cart-summary dl { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; margin: 0 0 16px; }
.cart-empty { text-align: center; padding: 60px 0; }

/* ===== faq ===== */
.faq-item { border: 2px solid var(--ink); border-radius: 12px; margin-bottom: 12px; overflow: hidden; background: #fff; }
.faq-item summary { padding: 16px 20px; font-weight: 700; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 12px; min-height: 44px; align-items: center; }
.faq-item summary::after { content: "+"; font-size: 1.4rem; color: var(--coral); }
.faq-item[open] summary::after { content: "\2212"; }
.faq-item .faq-answer { padding: 0 20px 18px; }

/* ===== footer ===== */
.site-footer { background: var(--teal-dark); color: #f2e9dd; padding: 56px 0 28px; }
.site-footer a { color: #f2e9dd; }
.site-footer a:hover { color: var(--coral-soft); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 30px; margin-bottom: 36px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-grid h3 { color: #fff; font-size: 1rem; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.2); padding-top: 20px; font-size: 0.85rem; opacity: 0.8; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* ===== cookie banner ===== */
.cookie-banner {
  position: fixed; bottom: 16px; left: 16px; right: 16px; max-width: 640px; margin: 0 auto; z-index: 200;
  background: var(--teal-dark); color: #fff; border: var(--line) solid var(--ink); border-radius: var(--radius);
  padding: 20px 24px; box-shadow: var(--shadow-hard); display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between;
}
.cookie-banner p { margin: 0; flex: 1 1 260px; font-size: 0.92rem; }
.cookie-banner a { color: var(--coral-soft); font-weight: 700; }
.cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; }

@media (max-width: 480px) {
  .wrap { padding: 0 16px; }
}

/* COMPONENTS: .class - what it is
.wrap - centered max-width container
.section - vertical page section spacing
.grid / .grid-2 / .grid-3 / .grid-4 - responsive grid helpers
.flex / .flex-between - flex row helpers
.halftone-bg - dotted halftone background texture
.grain-overlay - fixed full-viewport SVG grain texture overlay
.site-header - sticky top header bar
.logo - logo mark + wordmark lockup
.site-nav - main nav list, off-canvas on mobile (.is-open)
.cart-link / .cart-count - header cart link and animated badge (.bump)
.nav-toggle - mobile menu button
.btn / .btn-primary / .btn-outline / .btn-ghost / .btn-sm / .btn-block - button variants with fill-sweep hover
.hero - home page hero section
.hero-title / .hero-lede / .hero-art - hero text and SVG composition
.speech-bubble - comic-style callout bubble
.page-hero - inner page header band
.breadcrumbs - breadcrumb trail on inner pages
.card / .card-media / .card-body / .card-price - product/content card
.masonry - masonry gallery grid with staggered row spans
.strip - horizontal scroll-snap product strip (mobile)
.reveal / .in-view / .reveal-delay-1..4 - scroll-reveal animation states
.divider - full-width decorative SVG section divider
.badge-seal - small decorative seal/badge SVG
.finder / .finder-grid / .finder-options / .finder-chip / .finder-result / .finder-gauge / .finder-pick - signature basket-finder feature
.form-grid / .field / .field-error - form layout and validation message
.honeypot - visually hidden spam-trap field
.form-note - inline form feedback message
.newsletter-form - footer newsletter signup layout
.notice / .notice-success / .notice-error - callout message boxes
.prose - readable long-form legal text column
.legal-toc - table of contents box for legal pages
.contact-layout - two-column contact page layout
.info-block - icon + text row (contact info, delivery steps)
.product-detail / .product-gallery - product page layout
.qty-input - quantity stepper control
.cart-table / .cart-summary / .cart-empty - cart and checkout layout
.faq / .faq-item - accordion FAQ entries (details/summary)
.site-footer / .footer-grid / .footer-bottom - site footer layout
.cookie-banner / .cookie-actions - cookie consent banner
*/

/* ===== missing component styles ===== */
.assemble-group {
  stroke-linecap: round;
  stroke-linejoin: round;
}

.product-info {
  padding: 20px;
  background: var(--peach);
  border-radius: 12px;
  margin: 20px 0;
}

.qty-change {
  /* Quantity change state managed via JavaScript */
}

.remove-item {
  color: var(--coral);
}

.remove-item:hover {
  background: rgba(255, 107, 74, 0.15);
}

.gap-lg {
  gap: clamp(32px, 6vw, 64px);
}
