/* ===== Med Zora - design system ===== */
:root{
  --cream:#f6ead2;
  --cream-deep:#efddb5;
  --paper:#fbf4e6;
  --rust:#c9742f;
  --rust-deep:#a85a1f;
  --slate:#3c4a5e;
  --slate-deep:#28333f;
  --ink:#2a2420;
  --line:#d8c6a0;
  --radius:14px;
  --maxw:1180px;
  --font-display: "Iowan Old Style","Georgia","Times New Roman",serif;
  --font-body: "Avenir Next","Segoe UI","Helvetica Neue",Arial,sans-serif;
  --font-mono: "Courier New",monospace;
}
*{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);
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px);
  background-size:100% 36px;
  line-height:1.55;
}
img{max-width:100%;display:block}
a{color:var(--rust-deep)}
h1,h2,h3{font-family:var(--font-display);line-height:1.1;margin:0 0 .5em}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
.skip-link{position:absolute;left:-999px;top:0}
.skip-link:focus{left:8px;top:8px;background:var(--rust);color:#fff;padding:.5em 1em;border-radius:8px;z-index:200}
:focus-visible{outline:3px solid var(--slate);outline-offset:2px}

/* ===== header ===== */
.site-header{position:sticky;top:0;z-index:100;background:rgba(246,234,210,.92);backdrop-filter:blur(6px);border-bottom:2px solid var(--ink);}
.header-inner{max-width:var(--maxw);margin:0 auto;display:flex;align-items:center;gap:1.2rem;padding:.7rem 1.2rem}
.logo{display:flex;align-items:center;gap:.5rem;text-decoration:none;color:var(--ink)}
.logo-mark{flex:none}
.logo-word{font-family:var(--font-display);font-size:1.45rem;font-weight:700;color:var(--ink)}
.logo-word em{color:var(--rust-deep);font-style:normal}
.site-nav{display:flex;align-items:center;gap:1.3rem;margin-left:auto;flex-wrap:wrap}
.site-nav a{text-decoration:none;color:var(--ink);font-weight:600;position:relative;padding:.3rem 0}
.site-nav a::after{content:"";position:absolute;left:0;bottom:-2px;width:0;height:2px;background:var(--rust);transition:width .25s}
.site-nav a:hover::after,.site-nav a.is-active::after{width:100%}
.site-nav a.is-active{color:var(--rust-deep)}
.nav-cart{display:flex;align-items:center;gap:.4rem;background:var(--ink);color:var(--cream)!important;padding:.5rem .9rem;border-radius:999px}
.nav-cart::after{display:none}
.cart-count{background:var(--rust);color:#fff;border-radius:999px;min-width:1.4em;text-align:center;padding:.05em .4em;font-size:.8rem}
.cart-count.bump{animation:bump .35s 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;background:none;border:0;cursor:pointer;padding:.4rem;min-width:44px;min-height:44px;align-items:center;justify-content:center}
.nav-toggle span{width:24px;height:2px;background:var(--ink)}

@media (max-width:860px){
  .nav-toggle{display:flex}
  .site-nav{
    position:fixed;inset:0 0 0 auto;width:min(78vw,320px);
    background:var(--cream);flex-direction:column;align-items:flex-start;
    padding:5.5rem 1.6rem 2rem;gap:1.1rem;
    transform:translateX(100%);visibility:hidden;transition:transform .3s ease;
    border-left:2px solid var(--ink);
  }
  .site-nav.is-open{transform:translateX(0);visibility:visible}
  .nav-cart{margin-top:.6rem}
}

/* ===== layout helpers ===== */
.wrap{max-width:var(--maxw);margin:0 auto;padding:0 1.2rem}
.section{padding:clamp(2.5rem,6vw,5rem) 1.2rem}
.grid{display:grid;gap:1.4rem}
.grid-2{grid-template-columns:1fr;gap:1.4rem}
.grid-3{grid-template-columns:1fr;gap:1.4rem}
@media(min-width:680px){.grid-2{grid-template-columns:1fr 1fr}.grid-3{grid-template-columns:repeat(3,1fr)}}
.mt-0{margin-top:0}.mt-1{margin-top:1rem}.mt-2{margin-top:2rem}.mb-0{margin-bottom:0}

/* ===== reveal ===== */
.reveal{opacity:1;transform:none;transition:opacity .6s ease, transform .6s ease}
.reveal.js-armed{opacity:0;transform:translateY(24px)}
.reveal.js-armed.in-view{opacity:1;transform:none}
@media (prefers-reduced-motion:reduce){.reveal{transition:none!important}}

/* ===== buttons ===== */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:.5rem;font-weight:700;border-radius:999px;padding:.75rem 1.5rem;border:2px solid var(--ink);cursor:pointer;text-decoration:none;min-height:44px;font-family:var(--font-body);font-size:1rem;position:relative;overflow:hidden;background:transparent;color:var(--ink)}
.btn-solid{background:var(--rust);color:#fff;border-color:var(--rust-deep)}
.btn-solid:hover{background:var(--rust-deep)}
.btn-ghost{background:transparent;color:var(--ink)}
.btn-dark .btn-ghost,.cookie-actions .btn-ghost{color:var(--cream);border-color:var(--cream)}
.btn-sweep{z-index:0}
.btn-sweep::before{content:"";position:absolute;inset:0;left:-100%;width:100%;background:var(--ink);z-index:-1;transition:left .3s ease}
.btn-sweep:hover::before{left:0}
.btn-sweep{color:var(--ink);border-color:var(--ink)}
.btn-sweep:hover{color:var(--cream)}
.btn-solid.btn-sweep::before{background:var(--rust-deep)}
.btn-solid.btn-sweep{color:#fff}
.btn-solid.btn-sweep:hover{color:#fff}
.btn-sm{padding:.45rem 1rem;font-size:.9rem;min-height:36px}
.btn[disabled]{opacity:.5;cursor:not-allowed}

/* ===== hero (home) ===== */
.hero{position:relative;padding:clamp(2.5rem,7vw,5rem) 1.2rem clamp(3rem,8vw,6rem);overflow:hidden}
.hero-inner{max-width:var(--maxw);margin:0 auto;display:grid;gap:2rem;grid-template-columns:1fr;align-items:center}
@media(min-width:900px){.hero-inner{grid-template-columns:1.1fr 1fr}}
.hero-kicker{font-family:var(--font-mono);letter-spacing:.12em;text-transform:uppercase;color:var(--rust-deep);font-weight:700;font-size:.85rem}
.hero-title{font-size:clamp(2.6rem,6.5vw,4.6rem);margin:.3rem 0 1rem}
.hero-title .underline{position:relative;white-space:nowrap}
.hero-title .underline svg{position:absolute;left:0;bottom:-.12em;width:100%;height:.3em}
.hero-lede{max-width:34ch;font-size:1.1rem}
.hero-cta{display:flex;gap:1rem;flex-wrap:wrap;margin-top:1.6rem}
.hero-parallax{position:relative;min-height:340px}
.hero-parallax img{border-radius:var(--radius);border:3px solid var(--ink);object-fit:cover;aspect-ratio:4/5;width:100%;height:100%}
.hero-parallax [data-depth]{position:absolute;pointer-events:none;transition:transform .15s ease-out}

.hero-tabs{display:flex;gap:.6rem;margin-top:1.4rem;flex-wrap:wrap}
.hero-tab{font-family:var(--font-body);font-weight:700;border:2px solid var(--ink);background:var(--cream);border-radius:999px;padding:.4rem 1rem;cursor:pointer;min-height:40px}
.hero-tab.is-active{background:var(--slate);color:var(--cream);border-color:var(--slate-deep)}
.hero-mood{display:none}
.hero-mood.is-active{display:block}

/* ===== divider ===== */
.divider-sketch{display:block;color:var(--rust)}

/* ===== page hero (inner pages) ===== */
.page-hero{background:var(--cream-deep);border-bottom:2px solid var(--ink);padding:clamp(2.2rem,5vw,3.5rem) 1.2rem}
.page-hero .wrap{max-width:var(--maxw)}
.page-hero h1{font-size:clamp(2rem,4.5vw,3rem)}
.page-hero p{max-width:60ch;font-size:1.05rem}

/* ===== breadcrumbs ===== */
.breadcrumbs{font-family:var(--font-mono);font-size:.85rem;color:var(--slate);margin-bottom:1rem}
.breadcrumbs a{color:var(--slate);text-decoration:none;border-bottom:1px dotted var(--slate)}
.breadcrumbs .sep{margin:0 .4rem;opacity:.6}

/* ===== prose (legal pages) ===== */
.prose{max-width:72ch;margin:0 auto;padding:2.5rem 1.2rem 4rem}
.prose h2{margin-top:2.2rem;font-size:1.5rem}
.prose h3{margin-top:1.6rem;font-size:1.15rem}
.prose p,.prose li{font-size:1.02rem}
.prose ul,.prose ol{padding-left:1.4rem}
.legal-toc{background:var(--cream);border:2px solid var(--ink);border-radius:var(--radius);padding:1.2rem 1.4rem;max-width:72ch;margin:2rem auto 0}
.legal-toc h2{margin-top:0;font-size:1.1rem}
.legal-toc ol{margin:0;padding-left:1.3rem}

/* ===== notice ===== */
.notice{border:2px solid var(--ink);border-radius:var(--radius);padding:1rem 1.2rem;background:var(--cream);display:flex;gap:.7rem;align-items:flex-start}
.notice-warn{background:#f7e3d4;border-color:var(--rust-deep)}
.notice-ok{background:#e4ead9;border-color:#5a7a4a}

/* ===== forms ===== */
.form-grid{display:grid;gap:1rem;grid-template-columns:1fr;max-width:640px}
@media(min-width:600px){.form-grid.cols-2{grid-template-columns:1fr 1fr}}
.field{display:flex;flex-direction:column;gap:.35rem}
.field label{font-weight:700;font-size:.92rem}
.field input,.field select,.field textarea{
  font:inherit;padding:.65rem .8rem;border:2px solid var(--ink);border-radius:8px;background:var(--paper);accent-color:var(--rust);min-height:44px;
}
.field textarea{min-height:110px}
.field input:focus,.field textarea:focus,.field select:focus{border-color:var(--rust)}
.field-error{color:#a3271e;font-size:.85rem;min-height:1.1em}
.hp-field{position:absolute!important;width:1px;height:1px;opacity:0;overflow:hidden;pointer-events:none}
.form-msg{min-height:1.4em;font-weight:700}
.form-msg-ok{color:#3a6b2e}
.form-msg-error{color:#a3271e}

/* ===== faq ===== */
.faq{max-width:72ch;margin:0 auto;padding:1rem 1.2rem 3rem;display:flex;flex-direction:column;gap:.8rem}
.faq-item{border:2px solid var(--ink);border-radius:var(--radius);padding:.2rem 1.1rem;background:var(--cream)}
.faq-item summary{cursor:pointer;font-weight:700;padding:.9rem 0;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(--rust-deep)}
.faq-item[open] summary::after{content:"\2212"}
.faq-item p{margin:.2rem 0 1rem}

/* ===== product grid / cards ===== */
.product-strip{display:grid;gap:1.3rem;grid-template-columns:repeat(auto-fill,minmax(230px,1fr))}
@media(max-width:640px){
  .product-strip{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;gap:1rem;padding-bottom:.6rem}
  .product-strip .product-card{scroll-snap-align:start;min-width:240px}
}
.product-card{background:var(--cream);border:2px solid var(--ink);border-radius:var(--radius);overflow:hidden;display:flex;flex-direction:column;transition:transform .25s ease, box-shadow .25s ease}
.product-card:hover{transform:translateY(-6px);box-shadow:6px 10px 0 rgba(42,36,32,.15)}
.product-card .thumb{aspect-ratio:4/3;overflow:hidden;position:relative}
.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 .badge{position:absolute;top:.6rem;left:.6rem;background:var(--rust);color:#fff;font-size:.72rem;font-weight:700;padding:.2rem .6rem;border-radius:999px}
.product-card .body{padding:1rem;display:flex;flex-direction:column;gap:.4rem;flex:1}
.product-card h3{font-size:1.1rem;margin:0}
.product-card .price{font-weight:700;color:var(--rust-deep);font-size:1.1rem;margin-top:auto}
.product-card .unit{font-size:.85rem;color:var(--slate)}

/* ===== product detail ===== */
.product-detail{display:grid;gap:2rem;grid-template-columns:1fr;max-width:var(--maxw);margin:0 auto;padding:2.5rem 1.2rem}
@media(min-width:800px){.product-detail{grid-template-columns:1fr 1fr}}
.product-detail .photo{border:3px solid var(--ink);border-radius:var(--radius);overflow:hidden;aspect-ratio:4/3}
.product-detail .photo img{width:100%;height:100%;object-fit:cover}
.product-detail .price{font-size:1.8rem;color:var(--rust-deep);font-weight:700}
.qty-stepper{display:inline-flex;align-items:center;border:2px solid var(--ink);border-radius:999px;overflow:hidden}
.qty-stepper button{background:var(--cream);border:0;width:40px;height:40px;font-size:1.1rem;cursor:pointer}
.qty-stepper input{width:3rem;text-align:center;border:0;font:inherit;background:transparent}

/* ===== cart / checkout ===== */
.cart-table{width:100%;border-collapse:collapse;margin-bottom:1.5rem}
.cart-table th,.cart-table td{text-align:left;padding:.8rem .5rem;border-bottom:1px solid var(--line)}
.cart-table th{font-family:var(--font-mono);text-transform:uppercase;font-size:.8rem;letter-spacing:.06em}
.cart-summary{max-width:360px;margin-left:auto;background:var(--cream);border:2px solid var(--ink);border-radius:var(--radius);padding:1.3rem}
.cart-summary .row{display:flex;justify-content:space-between;padding:.35rem 0}
.cart-summary .total{font-weight:700;font-size:1.2rem;border-top:2px solid var(--ink);margin-top:.5rem;padding-top:.6rem}
.cart-empty{text-align:center;padding:3rem 1rem}

/* ===== contact layout ===== */
.contact-layout{display:grid;gap:2rem;grid-template-columns:1fr;max-width:var(--maxw);margin:0 auto;padding:2.5rem 1.2rem}
@media(min-width:860px){.contact-layout{grid-template-columns:1fr 1fr}}
.contact-info{display:flex;flex-direction:column;gap:1rem}
.contact-info .item{display:flex;gap:.8rem;align-items:flex-start}
.contact-info svg{flex:none;color:var(--rust-deep)}

/* ===== signature feature: Dnevnik meda / honey notebook ===== */
.notebook{background:var(--cream);border:3px solid var(--ink);border-radius:var(--radius);padding:clamp(1.4rem,3vw,2.4rem);position:relative}
.notebook::before{content:"";position:absolute;left:14px;top:0;bottom:0;width:2px;background:repeating-linear-gradient(to bottom, var(--rust) 0 6px, transparent 6px 12px)}
.notebook-body{padding-left:2rem}
.flavor-dial{display:flex;flex-wrap:wrap;gap:.6rem;margin:1.2rem 0}
.flavor-dial button{font-family:var(--font-mono);border:2px solid var(--ink);background:var(--paper);border-radius:999px;padding:.45rem 1rem;cursor:pointer;min-height:40px}
.flavor-dial button.is-active{background:var(--slate);color:var(--cream);border-color:var(--slate-deep)}
.flavor-result{display:grid;gap:1.4rem;grid-template-columns:1fr;margin-top:1rem}
@media(min-width:720px){.flavor-result{grid-template-columns:1fr 1.4fr}}
.flavor-result .scale{display:flex;flex-direction:column;gap:.5rem;font-family:var(--font-mono);font-size:.85rem}
.flavor-result .bar{height:10px;background:var(--line);border-radius:999px;overflow:hidden}
.flavor-result .bar span{display:block;height:100%;background:var(--rust);transition:width .5s ease}

/* ===== badges / seals ===== */
.seal{color:var(--slate)}
.pattern-row{display:flex;gap:.4rem;overflow:hidden}

/* ===== cookie banner ===== */
.cookie-banner{position:fixed;left:1rem;right:1rem;bottom:1rem;max-width:560px;margin:0 auto;background:var(--slate-deep);color:var(--cream);border:2px solid var(--ink);border-radius:var(--radius);padding:1.1rem 1.3rem;display:flex;flex-wrap:wrap;gap:1rem;align-items:center;justify-content:space-between;z-index:300;box-shadow:0 8px 24px rgba(0,0,0,.25)}
.cookie-banner a{color:var(--cream);text-decoration:underline}
.cookie-actions{display:flex;gap:.6rem}

/* ===== footer ===== */
.site-footer{background:var(--slate-deep);color:var(--cream);margin-top:2rem}
.footer-inner{max-width:var(--maxw);margin:0 auto;padding:3rem 1.2rem;display:grid;gap:2rem;grid-template-columns:1fr;}
@media(min-width:760px){.footer-inner{grid-template-columns:1.3fr 1fr 1fr 1.3fr}}
.site-footer a{color:var(--cream);text-decoration:none;opacity:.88}
.site-footer a:hover{opacity:1;text-decoration:underline}
.footer-col{display:flex;flex-direction:column;gap:.5rem}
.footer-col h3{font-family:var(--font-mono);text-transform:uppercase;font-size:.78rem;letter-spacing:.08em;color:var(--cream);opacity:.7;margin-bottom:.3rem}
.footer-brand p{opacity:.8;max-width:32ch}
.newsletter-form{display:flex;gap:.5rem;flex-wrap:wrap}
.newsletter-form input[type=email]{flex:1;min-width:140px;padding:.6rem .8rem;border-radius:8px;border:2px solid var(--cream);background:transparent;color:var(--cream);min-height:44px}
.newsletter-form input::placeholder{color:rgba(246,234,210,.6)}
.footer-mail{display:flex;align-items:center;gap:.5rem;opacity:.9}
.footer-bottom{border-top:1px solid rgba(246,234,210,.2);text-align:center;padding:1rem;font-size:.85rem;opacity:.75}

/* ===== 404 ===== */
.page-404{text-align:center;padding:clamp(3rem,8vw,6rem) 1.2rem;max-width:640px;margin:0 auto}
.page-404 .big{font-family:var(--font-display);font-size:clamp(4rem,14vw,8rem);color:var(--rust);margin:0}

/* ===== grain overlay ===== */
.grain-overlay{position:fixed;inset:0;width:100vw;height:100vh;pointer-events:none;opacity:.05;z-index:1;mix-blend-mode:multiply}

/* ===== catalog filters ===== */
.catalog-controls{margin-bottom:2rem}
.filter-buttons{display:flex;gap:.6rem;flex-wrap:wrap}
.filter-btn{font-size:.9rem;padding:.5rem 1rem}
.filter-btn.is-active{background:var(--rust);color:#fff;border-color:var(--rust-deep)}
.product-catalog{display:flex;flex-direction:column}

/* ===== badge ===== */
.badge{display:inline-block;background:var(--rust);color:#fff;font-size:.72rem;font-weight:700;padding:.2rem .6rem;border-radius:999px}

/* COMPONENTS:
.site-header - sticky top header with logo/nav
.logo / .logo-mark / .logo-word - brand logo
.site-nav - main nav, becomes off-canvas on mobile (.is-open)
.nav-toggle - mobile hamburger button
.nav-cart / .cart-count - cart link with live count badge
.wrap - centered max-width content container
.section - vertical page section padding
.grid / .grid-2 / .grid-3 - responsive grid helpers
.reveal / .js-armed / .in-view - scroll reveal animation states
.btn / .btn-solid / .btn-ghost / .btn-sweep / .btn-sm - button variants
.hero / .hero-inner / .hero-title / .hero-lede / .hero-cta - home hero
.hero-parallax / [data-depth] - floating parallax hero shapes
.hero-tabs / .hero-tab / .hero-mood - tabbed hero mood switcher
.divider-sketch - hand-drawn section divider SVG
.page-hero - hero banner for inner pages
.breadcrumbs - small breadcrumb trail
.prose - long-form legal/readable text block
.legal-toc - table of contents box for legal pages
.notice / .notice-warn / .notice-ok - callout box variants
.form-grid / .field / .field-error / .hp-field - form layout and fields
.form-msg / .form-msg-ok / .form-msg-error - form status feedback
.faq / .faq-item - FAQ accordion (details/summary)
.product-strip / .product-card - catalog grid / snap-scroll strip
.product-detail / .qty-stepper - single product page layout
.cart-table / .cart-summary / .cart-empty - cart & checkout page
.contact-layout / .contact-info - contact page split layout
.notebook / .notebook-body - signature feature "Dnevnik meda" container
.flavor-dial / .flavor-result / .bar - signature feature controls/output
.seal / .pattern-row - decorative badge/pattern helpers
.cookie-banner / .cookie-actions - cookie consent banner
.site-footer / .footer-inner / .footer-col / .newsletter-form - site footer
.page-404 - not-found page layout
.grain-overlay - full-viewport SVG grain texture overlay
*/

/* wg-contrast-autofix */
footer.site-footer div.footer-inner div.footer-brand span.logo-word { color: #ffffff !important; }
div.footer-inner div.footer-col.footer-newsletter form.newsletter-form button.btn.btn-sweep { color: #ffffff !important; }
