/* ============ Kava Zvoneček — design system ============ */
:root{
  --terracotta:#c4683f;
  --terracotta-dark:#a34e2c;
  --cream:#f6ecdf;
  --cream-deep:#efe0c8;
  --olive:#4b5a3a;
  --olive-dark:#333f28;
  --ink:#2c2521;
  --paper:#fffaf2;
  --line:#e2d2b8;
  --radius:1.4rem;
  --radius-sm:.8rem;
  --shadow:0 18px 40px -20px rgba(44,37,33,.35);
  --ff-display:"Iowan Old Style","Palatino Linotype",Palatino,Georgia,serif;
  --ff-body:"Avenir Next","Segoe UI",system-ui,-apple-system,sans-serif;
  --ff-mono:"Menlo",ui-monospace,Consolas,monospace;
}
html,body{overflow-x:clip}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:var(--ff-body);
  color:var(--ink);
  background:var(--paper);
  line-height:1.55;
}
img{max-width:100%;display:block}
a{color:inherit;text-decoration:none}
h1,h2,h3,h4{font-family:var(--ff-display);margin:0 0 .5em;line-height:1.1}
p{margin:0 0 1em}
.wrap{max-width:1180px;margin:0 auto;padding:0 1.25rem}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
:focus-visible{outline:3px solid var(--terracotta);outline-offset:3px;border-radius:.3rem}

/* ---------- Header ---------- */
.site-header{position:sticky;top:0;z-index:40;background:rgba(246,236,223,.9);backdrop-filter:blur(8px);border-bottom:1px solid var(--line)}
.header-inner{display:flex;align-items:center;gap:1.5rem;height:4.5rem}
.logo{display:flex;align-items:center;gap:.6rem;font-family:var(--ff-display);font-size:1.15rem;color:var(--olive-dark);margin-right:auto}
.logo-mark{flex:none}
.logo-word em{font-style:normal;color:var(--terracotta-dark)}
.site-nav{display:flex;gap:1.6rem;font-size:.95rem}
.site-nav a{position:relative;padding:.3rem 0;color:var(--ink)}
.site-nav a::after{content:"";position:absolute;left:0;bottom:-2px;width:0;height:2px;background:var(--terracotta);transition:width .25s ease}
.site-nav a:hover::after,.site-nav a.is-active::after{width:100%}
.site-nav a.is-active{color:var(--terracotta-dark)}
.cart-link{position:relative;display:flex;align-items:center;color:var(--olive-dark)}
.cart-count{position:absolute;top:-8px;right:-10px;background:var(--terracotta);color:#fff;font-size:.68rem;font-weight:700;min-width:1.2rem;height:1.2rem;border-radius:50%;display:flex;align-items:center;justify-content:center;padding:0 .25rem}
.cart-count.bump{animation:bump .4s ease}
@keyframes bump{0%{transform:scale(1)}40%{transform:scale(1.4)}100%{transform:scale(1)}}
.nav-toggle{display:none;flex-direction:column;gap:5px;width:44px;height:44px;align-items:center;justify-content:center;background:none;border:0;cursor:pointer}
.nav-toggle span{width:22px;height:2px;background:var(--olive-dark);transition:transform .25s,opacity .25s}
.nav-toggle.is-open span:nth-child(1){transform:translateY(7px) rotate(45deg)}
.nav-toggle.is-open span:nth-child(2){opacity:0}
.nav-toggle.is-open span:nth-child(3){transform:translateY(-7px) rotate(-45deg)}

@media (max-width:860px){
  .nav-toggle{display:flex}
  .site-nav{
    position:fixed;inset:4.5rem 0 0 auto;width:min(78vw,320px);
    background:var(--cream);flex-direction:column;padding:2rem 1.5rem;gap:1.1rem;
    box-shadow:var(--shadow);
    transform:translateX(100%);visibility:hidden;transition:transform .3s ease,visibility .3s ease;
  }
  .site-nav.is-open{transform:translateX(0);visibility:visible}
}

/* ---------- Buttons ---------- */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:.5rem;padding:.8rem 1.6rem;border-radius:3rem;font-weight:600;font-size:.95rem;border:1.5px solid transparent;cursor:pointer;min-height:44px;position:relative;overflow:hidden;transition:transform .2s ease,color .25s ease}
.btn-primary{background:var(--terracotta);color:#fff}
.btn-primary:hover{transform:translateY(-2px)}
.btn-outline{background:transparent;border-color:var(--olive-dark);color:var(--olive-dark)}
.btn-ghost{background:transparent;border-color:rgba(255,255,255,.5);color:#fff}
.btn-sm{padding:.5rem 1.1rem;font-size:.85rem;min-height:36px}
.btn-block{width:100%}
.btn-sweep{z-index:0}
.btn-sweep::before{content:"";position:absolute;inset:0;left:-100%;width:100%;background:var(--olive-dark);transition:left .3s ease;z-index:-1}
.btn-sweep:hover::before{left:0}

/* ---------- Hero / page-hero ---------- */
.page-hero{padding:5rem 0 3.5rem;background:linear-gradient(160deg,var(--cream) 0%,var(--cream-deep) 100%);position:relative;overflow:hidden}
.page-hero h1{font-size:clamp(2.1rem,5vw,3.4rem)}
.page-hero .lede{max-width:46ch;font-size:1.1rem;color:var(--olive-dark)}
.breadcrumbs{display:flex;gap:.4rem;font-size:.85rem;color:var(--olive-dark);margin-bottom:1rem}
.breadcrumbs a{text-decoration:underline}

/* ---------- Sections / layout helpers ---------- */
.section{padding:4.5rem 0}
.section-tight{padding:2.5rem 0}
.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:860px){.grid-2,.grid-3,.grid-4{grid-template-columns:1fr}}
.mt-0{margin-top:0}.mt-1{margin-top:1rem}.mt-2{margin-top:2rem}.mb-0{margin-bottom:0}
.flex{display:flex}.items-center{align-items:center}.justify-between{justify-content:space-between}.gap-1{gap:1rem}.gap-2{gap:2rem}

/* ---------- Reveal ---------- */
.reveal{opacity:1;transform:none}
.reveal.js-armed{opacity:0;transform:translateY(24px)}
.reveal.js-armed.in-view{opacity:1;transform:none;transition:opacity .7s ease,transform .7s ease}
.reveal.js-armed:nth-child(2){transition-delay:.08s}
.reveal.js-armed:nth-child(3){transition-delay:.16s}
.reveal.js-armed:nth-child(4){transition-delay:.24s}
@media (prefers-reduced-motion:reduce){.reveal.js-armed{opacity:1;transform:none;transition:none}}

/* ---------- Cards ---------- */
.card{background:var(--cream);border-radius:var(--radius);padding:1.6rem;box-shadow:var(--shadow);transition:transform .3s ease}
.card:hover{transform:translateY(-6px)}

/* ---------- Product cards / strip ---------- */
.product-strip{display:flex;gap:1.3rem;overflow-x:auto;scroll-snap-type:x mandatory;padding-bottom:.5rem}
.product-strip .product-card{scroll-snap-align:start;flex:0 0 260px}
.product-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:1.6rem}
.product-card{background:var(--paper);border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;display:flex;flex-direction:column;transition:transform .3s ease,box-shadow .3s ease}
.product-card:hover{transform:translateY(-5px);box-shadow:var(--shadow)}
.product-card .thumb{aspect-ratio:4/3;overflow:hidden}
.product-card .thumb img{width:100%;height:100%;object-fit:cover;transition:transform .5s ease}
.product-card:hover .thumb img{transform:scale(1.06)}
.product-card .body{padding:1.1rem 1.2rem 1.4rem;display:flex;flex-direction:column;gap:.4rem;flex:1}
.product-card .tag{font-size:.75rem;text-transform:uppercase;letter-spacing:.06em;color:var(--terracotta-dark)}
.product-card .price{font-weight:700;font-family:var(--ff-mono);margin-top:auto}

/* ---------- Product detail ---------- */
.product-detail{display:grid;grid-template-columns:1fr 1fr;gap:3rem;align-items:start}
@media (max-width:860px){.product-detail{grid-template-columns:1fr}}
.product-detail .gallery{border-radius:var(--radius);overflow:hidden;aspect-ratio:1/1}
.product-detail .gallery img{width:100%;height:100%;object-fit:cover}
.product-detail .notes-list{display:flex;gap:.5rem;flex-wrap:wrap;margin:1rem 0}
.product-detail .notes-list span{background:var(--cream);border-radius:2rem;padding:.3rem .9rem;font-size:.82rem}
.product-detail .price{font-family:var(--ff-mono);font-size:1.8rem;color:var(--terracotta-dark)}

/* ---------- Cart ---------- */
.cart-table{width:100%;border-collapse:collapse}
.cart-table th{text-align:left;font-size:.8rem;text-transform:uppercase;color:var(--olive-dark);border-bottom:1px solid var(--line);padding:.6rem}
.cart-table td{padding:.9rem .6rem;border-bottom:1px solid var(--line);vertical-align:middle}
.cart-table .row-thumb{width:56px;height:56px;border-radius:var(--radius-sm);object-fit:cover}
.qty-input{width:3.5rem;padding:.4rem;border:1px solid var(--line);border-radius:.5rem;font-family:var(--ff-mono)}
.cart-summary{background:var(--cream);border-radius:var(--radius);padding:1.6rem;display:flex;flex-direction:column;gap:.7rem;max-width:380px}
.cart-summary .total-line{display:flex;justify-content:space-between;font-weight:700;font-size:1.15rem}
.cart-empty{padding:3rem 1rem;text-align:center;color:var(--olive-dark)}

/* ---------- Forms ---------- */
.form-grid{display:grid;gap:1.1rem;grid-template-columns:repeat(2,1fr)}
.form-grid .field-full{grid-column:1/-1}
@media (max-width:640px){.form-grid{grid-template-columns:1fr}}
.field{display:flex;flex-direction:column;gap:.35rem}
.field label{font-size:.85rem;font-weight:600;color:var(--olive-dark)}
.field input,.field textarea,.field select{
  padding:.75rem .9rem;border:1.5px solid var(--line);border-radius:.7rem;background:var(--paper);
  font-family:var(--ff-body);font-size:1rem;accent-color:var(--terracotta);
}
.field input:focus,.field textarea:focus,.field select:focus{border-color:var(--terracotta)}
.field-error{color:#a33;font-size:.82rem;margin:.2rem 0 0}
.field-inline{display:flex;gap:.6rem}
.field-inline input{flex:1}
.hp-field{position:absolute;left:-9999px;width:1px;height:1px;opacity:0}
.form-msg{min-height:1.2em;font-size:.9rem}
.form-msg.is-success{color:var(--olive-dark)}
.form-msg.is-error{color:#a33}

/* ---------- Notices / FAQ / legal ---------- */
.notice{border-radius:var(--radius-sm);padding:1.1rem 1.3rem;background:var(--cream);border-left:4px solid var(--terracotta)}
.notice-warn{border-left-color:#a33;background:#fbeae6}
.prose{max-width:68ch;font-size:1.02rem}
.prose h2{margin-top:2.2rem;font-size:1.4rem}
.prose ul{padding-left:1.2rem}
.legal-toc{background:var(--cream);border-radius:var(--radius);padding:1.4rem 1.6rem;margin-bottom:2rem}
.legal-toc li{margin-bottom:.4rem}
.faq-item{border-bottom:1px solid var(--line);padding:1rem 0}
.faq-item summary{cursor:pointer;font-weight:600;list-style:none;display:flex;justify-content:space-between;gap:1rem}
.faq-item summary::-webkit-details-marker{display:none}
.faq-item summary::after{content:"+";font-size:1.3rem;color:var(--terracotta)}
.faq-item[open] summary::after{content:"–"}
.faq-item p{margin-top:.7rem;color:var(--olive-dark)}

/* ---------- Contact ---------- */
.contact-layout{display:grid;grid-template-columns:1fr 1fr;gap:3rem}
@media (max-width:860px){.contact-layout{grid-template-columns:1fr}}
.contact-info{display:flex;flex-direction:column;gap:1.2rem}
.contact-info .item{display:flex;gap:.8rem;align-items:flex-start}
.contact-info svg{flex:none;color:var(--terracotta-dark)}

/* ---------- Footer ---------- */
.site-footer{background:var(--olive-dark);color:var(--cream);padding:3.5rem 0 1.5rem;margin-top:4rem}
.footer-grid{display:grid;grid-template-columns:1.2fr 1.5fr 1.3fr;gap:2.5rem}
@media (max-width:860px){.footer-grid{grid-template-columns:1fr}}
.footer-brand p{opacity:.85;font-size:.9rem}
.footer-nav{display:flex;flex-wrap:wrap;gap:.9rem 1.3rem;font-size:.9rem;align-content:flex-start}
.footer-nav a:hover{text-decoration:underline}
.footer-newsletter h3{font-size:1.05rem;margin-bottom:.3rem;color:var(--cream)}
.footer-newsletter .field-inline input{border:1.5px solid rgba(246,236,223,.3);background:rgba(246,236,223,.08);color:var(--cream)}
.footer-mail{display:inline-flex;gap:.5rem;align-items:center;margin-top:.7rem;font-size:.9rem;opacity:.9}
.footer-bottom{border-top:1px solid rgba(246,236,223,.2);margin-top:2.5rem;padding-top:1.2rem;font-size:.82rem;opacity:.75}

/* ---------- Cookie banner ---------- */
.cookie-banner{position:fixed;left:0;right:0;bottom:0;z-index:60;background:var(--olive-dark);color:var(--cream);box-shadow:0 -10px 30px rgba(0,0,0,.25)}
.cookie-inner{display:flex;align-items:center;justify-content:space-between;gap:1.5rem;padding:1.2rem 1.25rem;flex-wrap:wrap}
.cookie-inner a{text-decoration:underline}
.cookie-actions{display:flex;gap:.7rem;flex:none}

/* ---------- Home hero + section index ---------- */
.hero-home{position:relative}
.hero-grid{display:grid;grid-template-columns:1.1fr 1fr;gap:2.5rem;align-items:center;position:relative;z-index:1}
@media (max-width:860px){.hero-grid{grid-template-columns:1fr}}
.eyebrow{text-transform:uppercase;letter-spacing:.1em;font-size:.8rem;color:var(--terracotta-dark);font-weight:700}
.hero-home h1{font-size:clamp(2.4rem,6vw,4rem)}
.layer{transition:transform .3s ease}
.layer-1{position:relative;z-index:2}
.layer-2{position:relative;z-index:1}
@media (min-width:860px){
  .hero-home:hover .layer-1{transform:translateX(-8px)}
  .hero-home:hover .layer-2{transform:translateX(8px)}
}
.hero-grain{position:absolute;inset:0}
.divider{display:block}
.section-index{display:flex;gap:2rem;flex-wrap:wrap;padding:2rem 1.25rem;font-size:.9rem}
.section-index a{display:flex;align-items:center;gap:.5rem;color:var(--olive-dark);font-weight:600}
.section-index span{font-family:var(--ff-mono);color:var(--terracotta-dark)}
.section-index a:hover{text-decoration:underline}

/* ---------- Decorative / signature feature ---------- */
.paper-layer{position:absolute;inset:0;pointer-events:none}
.taste-bell{max-width:420px;margin:0 auto}
.taste-bell [data-note]{cursor:pointer;transition:transform .2s ease,fill .2s ease}
.taste-bell [data-note]:hover,.taste-bell [data-note].is-selected{filter:brightness(1.08)}
.taste-bell [data-note].is-selected{transform-origin:center}
.taste-result{min-height:3rem}
.badge-seal{width:72px;height:72px}
.grain-overlay{position:fixed;inset:0;width:100vw;height:100vh;pointer-events:none;opacity:.05;z-index:1;mix-blend-mode:multiply}

@media (max-width:390px){.wrap{padding:0 1rem}}

/* COMPONENTS: .wrap - centered max-width container
   COMPONENTS: .site-header - sticky header bar
   COMPONENTS: .logo / .logo-mark / .logo-word - brand lockup
   COMPONENTS: .site-nav - main navigation (mobile off-canvas via .is-open)
   COMPONENTS: .nav-toggle - mobile hamburger button
   COMPONENTS: .cart-link / .cart-count - header cart icon + animated badge
   COMPONENTS: .btn / .btn-primary / .btn-outline / .btn-ghost / .btn-sm / .btn-block / .btn-sweep - button variants
   COMPONENTS: .page-hero - inner-page hero band with heading + lede
   COMPONENTS: .breadcrumbs - small breadcrumb trail
   COMPONENTS: .section / .section-tight - vertical rhythm wrappers
   COMPONENTS: .grid / .grid-2 / .grid-3 / .grid-4 - responsive grid helpers
   COMPONENTS: .reveal / .js-armed / .in-view - scroll-reveal animation hooks
   COMPONENTS: .card - generic soft card
   COMPONENTS: .product-strip - horizontal scroll-snap product row (mobile)
   COMPONENTS: .product-grid / .product-card - catalog grid and card
   COMPONENTS: .product-detail / .notes-list - single product page layout
   COMPONENTS: .cart-table / .cart-summary / .cart-empty / .qty-input - cart page
   COMPONENTS: .form-grid / .field / .field-error / .field-inline / .hp-field - form layout
   COMPONENTS: .form-msg - inline form status text
   COMPONENTS: .notice / .notice-warn - callout boxes
   COMPONENTS: .prose - long-form legal/content text column
   COMPONENTS: .legal-toc - table of contents box for legal pages
   COMPONENTS: .faq-item - details/summary FAQ row
   COMPONENTS: .contact-layout / .contact-info - contact page split layout
   COMPONENTS: .site-footer / .footer-grid / .footer-nav / .footer-newsletter / .footer-mail / .footer-bottom - footer
   COMPONENTS: .cookie-banner / .cookie-inner / .cookie-actions - cookie consent banner
   COMPONENTS: .taste-bell / .taste-result - signature "Chuťový zvonek" feature
   COMPONENTS: .badge-seal - small decorative seal svg sizing
   COMPONENTS: .grain-overlay - fixed full-viewport texture overlay
*/
