/* Hracky Kvapka — retro-diner design system */
:root {
  --cream: #f4e9d4;
  --cream-2: #ece0c6;
  --rust: #c9502c;
  --rust-dark: #a23a1f;
  --slate: #2b3747;
  --slate-2: #3a4a60;
  --teal: #2f7a78;
  --teal-dark: #215957;
  --chrome: #d9dee3;
  --ink: #1f2630;
  --cream-text: #f4e9d4;
  --radius: 14px;
  --shadow-1: 0 6px 0 rgba(43, 55, 71, 0.18), 0 14px 26px rgba(31, 38, 48, 0.18);
  --font-display: "Georgia", "Iowan Old Style", "Palatino Linotype", serif;
  --font-body: "Avenir Next", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: "SF Mono", "Consolas", monospace;
  --maxw: 1180px;
}

html, body { overflow-x: clip; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.55;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); margin: 0 0 0.5em; line-height: 1.1; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ===== header ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--slate);
  color: var(--cream-text);
  border-bottom: 4px solid var(--rust);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 12px 24px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--cream-text); }
.brand-mark { width: 44px; height: 44px; flex-shrink: 0; }
.brand-word { width: 150px; height: 28px; }
.site-nav {
  display: flex; align-items: center; gap: 22px; flex-wrap: wrap;
}
.nav-link {
  text-decoration: none; color: var(--cream-text); font-weight: 600; font-size: 0.95rem;
  position: relative; padding: 6px 2px;
}
.nav-link::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--rust);
  transition: width 0.25s ease;
}
.nav-link:hover::after, .nav-link.is-active::after { width: 100%; }
.nav-link.is-active { color: #fff; }
.header-actions { display: flex; align-items: center; gap: 14px; }
.cart-pill {
  display: inline-flex; align-items: center; gap: 6px; text-decoration: none; color: var(--cream-text);
  border: 2px solid var(--chrome); border-radius: 999px; padding: 6px 14px; font-weight: 600;
}
.cart-pill .icon { width: 18px; height: 18px; }
[data-cart-count] { display: inline-block; min-width: 1.2em; }
[data-cart-count].bump { animation: bump 0.4s ease; }
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.4); } 100% { transform: scale(1); } }
.nav-toggle {
  display: none; background: none; border: 2px solid var(--chrome); border-radius: 8px;
  width: 44px; height: 44px; color: var(--cream-text); cursor: pointer;
}
.nav-toggle .icon { width: 22px; height: 22px; }

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .site-nav {
    position: fixed; inset: 0 0 0 auto; top: 68px; width: min(78vw, 320px); height: calc(100vh - 68px);
    background: var(--slate); flex-direction: column; align-items: flex-start; padding: 24px;
    transform: translateX(100%); visibility: hidden; transition: transform 0.3s ease;
    overflow-y: auto; border-left: 4px solid var(--rust);
  }
  .site-nav.is-open { transform: translateX(0); visibility: visible; }
  body.nav-open { overflow: hidden; }
}

/* ===== footer ===== */
.site-footer { background: var(--ink); color: var(--cream-text); padding: 56px 0 28px; margin-top: 64px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.2fr; gap: 32px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-col h3 { font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--chrome); margin-bottom: 14px; font-family: var(--font-body); }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-col a { text-decoration: none; opacity: 0.85; }
.footer-col a:hover { opacity: 1; text-decoration: underline; }
.newsletter-form { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.newsletter-form input[type="email"] {
  flex: 1; min-width: 160px; padding: 10px 12px; border-radius: 8px; border: 2px solid var(--slate-2);
  background: #263142; color: var(--cream-text);
}
.footer-bottom { max-width: var(--maxw); margin: 40px auto 0; padding: 20px 24px 0; border-top: 1px solid rgba(244,233,212,0.15); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 0.85rem; opacity: 0.8; }

/* ===== buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 700; font-size: 0.95rem; border-radius: 999px; padding: 13px 26px;
  text-decoration: none; cursor: pointer; border: 2px solid transparent; position: relative;
  overflow: hidden; isolation: isolate; min-height: 44px;
}
.btn span { position: relative; z-index: 2; }
.btn::before {
  content: ""; position: absolute; inset: 0; left: -100%; width: 100%; z-index: 1;
  transition: left 0.35s ease;
}
.btn:hover::before { left: 0; }
.btn-primary { background: var(--rust); color: #fff; }
.btn-primary::before { background: var(--rust-dark); }
.btn-teal { background: var(--teal); color: #fff; }
.btn-teal::before { background: var(--teal-dark); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline::before { background: var(--ink); }
.btn-outline:hover { color: #fff; }
.btn-ghost-dark { background: transparent; color: #fff; border-color: rgba(255,255,255,0.6); }
.btn-ghost-dark::before { background: rgba(255,255,255,0.18); }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }

/* ===== hero / decorative ===== */
.checker-band {
  height: 18px;
  background: repeating-linear-gradient(90deg, var(--rust) 0 18px, var(--cream) 18px 36px);
}
.hero {
  position: relative; background: var(--slate); color: var(--cream-text); overflow: hidden;
  padding: 64px 0 0;
}
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; max-width: var(--maxw); margin: 0 auto; padding: 0 24px 64px; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }
.hero-shape { position: absolute; pointer-events: none; opacity: 0.9; }
.hero-figure { position: relative; z-index: 1; }
.display-heading { font-size: clamp(2.4rem, 6vw, 4.2rem); letter-spacing: -0.01em; }
.neon-text { color: var(--teal); text-shadow: 0 0 6px rgba(47,122,120,0.6), 0 0 18px rgba(47,122,120,0.35); }
.hero-lede { font-size: 1.1rem; max-width: 36ch; opacity: 0.92; }

/* ===== layout: sticky left / scroll right ===== */
.split-layout { display: grid; grid-template-columns: 0.9fr 1.3fr; gap: 48px; max-width: var(--maxw); margin: 0 auto; padding: 72px 24px; }
@media (max-width: 900px) { .split-layout { grid-template-columns: 1fr; } }
.split-sticky { align-self: start; position: sticky; top: 100px; }
@media (max-width: 900px) { .split-sticky { position: static; } }
.split-scroll { display: grid; gap: 56px; }

/* ===== reveal ===== */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s ease, clip-path 0.7s ease; clip-path: inset(0 0 12% 0); }
.reveal.in-view { opacity: 1; transform: translateY(0); clip-path: inset(0 0 0 0); }
.reveal-1 { transition-delay: 0.05s; } .reveal-2 { transition-delay: 0.15s; } .reveal-3 { transition-delay: 0.25s; } .reveal-4 { transition-delay: 0.35s; }
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal.in-view { opacity: 1; transform: none; clip-path: none; transition: none; }
  * { animation: none !important; }
}

/* ===== grain overlay ===== */
.grain-overlay { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 999; pointer-events: none; opacity: 0.05; mix-blend-mode: overlay; }

/* ===== sections / section-divider ===== */
.section { padding: 72px 0; }
.section-tight { padding: 40px 0; }
.section-dark { background: var(--slate); color: var(--cream-text); }
.section-teal { background: var(--teal); color: #fff; }
.section-head { max-width: 640px; margin: 0 0 32px; }
.eyebrow { font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.8rem; color: var(--rust); display: inline-block; margin-bottom: 8px; }
.section-dark .eyebrow, .section-teal .eyebrow { color: var(--cream); }
.divider { width: 100%; height: 48px; display: block; }

/* ===== cards / grid ===== */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 760px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-1); overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease; border: 3px solid var(--ink);
}
.card:hover { transform: translateY(-6px); }

.product-card { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); }
.product-card .thumb { aspect-ratio: 4/3; overflow: hidden; position: relative; }
.product-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.product-card:hover .thumb img { transform: scale(1.08); }
.product-card .badge {
  position: absolute; top: 10px; left: 10px; background: var(--rust); color: #fff; font-size: 0.72rem;
  font-weight: 700; padding: 4px 10px; border-radius: 999px; letter-spacing: 0.03em;
}
.product-card .body { padding: 16px; display: grid; gap: 6px; flex: 1; }
.product-card .name { font-weight: 700; font-size: 1.05rem; }
.product-card .meta { font-size: 0.82rem; color: var(--slate-2); font-family: var(--font-mono); }
.price-row { display: flex; align-items: baseline; gap: 8px; margin-top: auto; }
.price { font-weight: 800; font-size: 1.15rem; color: var(--rust-dark); }
.price-old { text-decoration: line-through; opacity: 0.55; font-size: 0.9rem; }

.product-strip {
  display: flex; gap: 20px; overflow-x: auto; padding-bottom: 12px; scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.product-strip .product-card { min-width: 260px; scroll-snap-align: start; }
@media (min-width: 761px) { .product-strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px,1fr)); overflow: visible; } }

/* ===== Kvapka Kompas (signature feature) ===== */
.compass {
  background: var(--cream-2); border: 3px solid var(--ink); border-radius: var(--radius);
  padding: 32px; box-shadow: var(--shadow-1);
}
.compass-controls { display: grid; gap: 20px; grid-template-columns: 1fr 1fr; margin-bottom: 24px; }
@media (max-width: 640px) { .compass-controls { grid-template-columns: 1fr; } }
.compass-field label { display: block; font-weight: 700; margin-bottom: 8px; font-family: var(--font-mono); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; }
.compass-field input[type="range"] { width: 100%; accent-color: var(--rust); }
.compass-chip-row { display: flex; gap: 8px; flex-wrap: wrap; }
.compass-chip {
  border: 2px solid var(--ink); background: #fff; border-radius: 999px; padding: 8px 14px; font-weight: 600;
  cursor: pointer; font-size: 0.85rem; min-height: 44px;
}
.compass-chip[aria-pressed="true"] { background: var(--teal); color: #fff; border-color: var(--teal-dark); }
.compass-result-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(220px,1fr)); }
.compass-empty { font-style: italic; opacity: 0.7; }

/* ===== forms ===== */
.form-grid { display: grid; gap: 18px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 700; font-size: 0.9rem; }
.field input, .field textarea, .field select {
  padding: 12px 14px; border-radius: 10px; border: 2px solid var(--slate-2); background: #fff;
  font: inherit; color: var(--ink); min-height: 44px;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: 3px solid var(--teal); outline-offset: 1px; border-color: var(--teal);
}
.field-error { color: var(--rust-dark); font-size: 0.85rem; min-height: 1.1em; }
.field-row { display: grid; gap: 18px; grid-template-columns: 1fr 1fr; }
@media (max-width: 600px) { .field-row { grid-template-columns: 1fr; } }
.honeypot { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* ===== notices ===== */
.notice { border-radius: 10px; padding: 16px 18px; border: 2px solid; margin: 16px 0; }
.notice-success { background: #e7f3ec; border-color: var(--teal-dark); color: var(--teal-dark); }
.notice-error { background: #fbe9e7; border-color: var(--rust-dark); color: var(--rust-dark); }
.notice-info { background: #eef1f6; border-color: var(--slate-2); color: var(--slate); }

/* ===== page hero (inner pages) ===== */
.page-hero { background: var(--slate); color: var(--cream-text); padding: 56px 0 44px; }
.page-hero h1 { font-size: clamp(2rem, 4.4vw, 3rem); }
.breadcrumbs { font-family: var(--font-mono); font-size: 0.82rem; margin-bottom: 14px; opacity: 0.85; }
.breadcrumbs a { text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }

/* ===== prose (legal pages) ===== */
.prose { max-width: 70ch; margin: 0 auto; padding: 56px 24px; }
.prose h2 { margin-top: 2em; font-size: 1.5rem; }
.prose h3 { margin-top: 1.4em; font-size: 1.15rem; }
.prose p, .prose li { color: var(--slate); }
.prose ul, .prose ol { padding-left: 1.3em; }
.legal-toc { background: var(--cream-2); border-radius: var(--radius); padding: 20px 24px; margin: 0 auto 0; max-width: 70ch; }
.legal-toc ol { margin: 0; padding-left: 1.2em; }
.legal-toc a { text-decoration: none; }
.legal-toc a:hover { text-decoration: underline; }

/* ===== faq ===== */
.faq { max-width: 760px; margin: 0 auto; display: grid; gap: 14px; padding: 0 24px; }
.faq-item { border: 2px solid var(--ink); border-radius: 10px; background: #fff; overflow: hidden; }
.faq-item summary { padding: 16px 20px; font-weight: 700; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.3rem; color: var(--rust); }
.faq-item[open] summary::after { content: "\2212"; }
.faq-item .faq-answer { padding: 0 20px 18px; color: var(--slate); }

/* ===== product detail ===== */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; max-width: var(--maxw); margin: 0 auto; padding: 56px 24px; }
@media (max-width: 860px) { .product-detail { grid-template-columns: 1fr; } }
.product-gallery img { border-radius: var(--radius); border: 3px solid var(--ink); aspect-ratio: 4/3; object-fit: cover; }
.product-info .price { font-size: 1.8rem; }
.qty-stepper { display: inline-flex; align-items: center; border: 2px solid var(--ink); border-radius: 999px; overflow: hidden; }
.qty-stepper button { background: var(--cream-2); border: none; width: 44px; height: 44px; font-size: 1.1rem; cursor: pointer; }
.qty-stepper input { width: 48px; text-align: center; border: none; font: inherit; height: 44px; }

/* ===== cart / checkout ===== */
.cart-table { width: 100%; border-collapse: collapse; margin-bottom: 24px; }
.cart-table th, .cart-table td { padding: 12px 10px; border-bottom: 1px solid var(--chrome); text-align: left; }
.cart-table img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; }
.cart-summary { background: var(--cream-2); border-radius: var(--radius); padding: 24px; max-width: 360px; margin-left: auto; display: grid; gap: 10px; }
.cart-summary .row { display: flex; justify-content: space-between; }
.cart-summary .row.total { font-weight: 800; font-size: 1.2rem; border-top: 2px solid var(--ink); padding-top: 10px; }

/* ===== contact layout ===== */
.contact-layout { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; max-width: var(--maxw); margin: 0 auto; padding: 56px 24px; }
@media (max-width: 860px) { .contact-layout { grid-template-columns: 1fr; } }
.contact-info ul { list-style: none; padding: 0; display: grid; gap: 14px; }
.contact-info .icon { width: 22px; height: 22px; margin-right: 10px; vertical-align: -5px; color: var(--rust); }

/* ===== cookie banner ===== */
.cookie-banner {
  position: fixed; left: 16px; right: 16px; bottom: -200px; z-index: 200; max-width: 640px; margin: 0 auto;
  background: var(--slate); color: #fff; border-radius: var(--radius); padding: 20px 24px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.3); transition: bottom 0.4s ease; border: 2px solid var(--rust);
  display: flex; gap: 16px; flex-wrap: wrap; align-items: center; justify-content: space-between;
}
.cookie-banner.is-visible { bottom: 20px; }
.cookie-banner p { margin: 0; flex: 1 1 260px; font-size: 0.9rem; }
.cookie-banner a { text-decoration: underline; color: #fff; }
.cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ===== toast ===== */
.hk-toast {
  position: fixed; bottom: 24px; right: 24px; background: var(--ink); color: #fff; padding: 14px 20px;
  border-radius: 10px; transform: translateY(20px); opacity: 0; transition: all 0.3s ease; z-index: 300;
  font-weight: 600;
}
.hk-toast.is-visible { transform: translateY(0); opacity: 1; }

/* ===== icon sprite usage ===== */
.icon { width: 24px; height: 24px; stroke: currentColor; fill: none; }

/* ===== utilities ===== */
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 32px; } .mt-4 { margin-top: 56px; }
.mb-0 { margin-bottom: 0; } .mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 32px; }
.flex { display: flex; } .flex-center { display: flex; align-items: center; justify-content: center; } .gap-1 { gap: 8px; } .gap-2 { gap: 16px; }
.text-center { text-align: center; }

/*
  COMPONENTS: .class - what it is
  COMPONENTS: .wrap - centered max-width content wrapper
  COMPONENTS: .site-header - sticky top header bar
  COMPONENTS: .brand - logo + wordmark link
  COMPONENTS: .site-nav - main navigation (desktop row / mobile drawer)
  COMPONENTS: .nav-link - single nav item with underline-draw hover
  COMPONENTS: .cart-pill - header cart icon + count link
  COMPONENTS: .nav-toggle - mobile hamburger button
  COMPONENTS: .site-footer / .footer-grid / .footer-col - footer layout
  COMPONENTS: .newsletter-form - footer email signup form
  COMPONENTS: .footer-bottom - copyright bar
  COMPONENTS: .btn / .btn-primary / .btn-teal / .btn-outline / .btn-ghost-dark - buttons with fill-sweep hover
  COMPONENTS: .checker-band - diner checkerboard decorative strip
  COMPONENTS: .hero / .hero-grid / .hero-shape / .hero-figure - home hero with parallax SVGs
  COMPONENTS: .display-heading / .neon-text - oversized fluid headline + neon accent
  COMPONENTS: .split-layout / .split-sticky / .split-scroll - sticky-left/scrolling-right composition
  COMPONENTS: .reveal / .reveal-1..4 / .in-view - scroll reveal animation states
  COMPONENTS: .grain-overlay - fixed SVG noise texture layer
  COMPONENTS: .section / .section-tight / .section-dark / .section-teal - page section wrappers
  COMPONENTS: .section-head / .eyebrow - section intro label + heading block
  COMPONENTS: .divider - full-width decorative SVG divider
  COMPONENTS: .grid / .grid-2 / .grid-3 - responsive grid helpers
  COMPONENTS: .card - generic bordered card with hover lift
  COMPONENTS: .product-card / .thumb / .badge / .body / .name / .meta - catalog product card
  COMPONENTS: .price-row / .price / .price-old - price display
  COMPONENTS: .product-strip - horizontal scroll-snap product row (mobile)
  COMPONENTS: .compass / .compass-controls / .compass-field / .compass-chip-row / .compass-chip / .compass-result-grid / .compass-empty - Kvapka Kompas toy finder widget
  COMPONENTS: .form-grid / .field / .field-row / .field-error / .honeypot - form building blocks
  COMPONENTS: .notice / .notice-success / .notice-error / .notice-info - inline status banners
  COMPONENTS: .page-hero - inner page hero band
  COMPONENTS: .breadcrumbs - breadcrumb trail
  COMPONENTS: .prose - long-form legal/text content column
  COMPONENTS: .legal-toc - table of contents box for legal pages
  COMPONENTS: .faq / .faq-item - details/summary accordion
  COMPONENTS: .product-detail / .product-gallery / .product-info / .qty-stepper - product page layout
  COMPONENTS: .cart-table / .cart-summary - cart and checkout tables
  COMPONENTS: .contact-layout / .contact-info - contact page layout
  COMPONENTS: .cookie-banner / .cookie-actions - cookie consent banner
  COMPONENTS: .hk-toast - transient confirmation toast
  COMPONENTS: .icon - sprite icon sizing
  COMPONENTS: .mt-* / .mb-* / .gap-* / .flex / .flex-center / .text-center - spacing & layout utilities
*/

/* wg-contrast-autofix */
div.hero-grid div.hero-figure.reveal h1.display-heading span.neon-text { color: #ffffff !important; }
