/* Čokolada Breza - design system. Ocean waves mood reinterpreted as chocolate rivers. */
:root {
  --ochre: #c98a3a;
  --ochre-dark: #a66a24;
  --indigo: #2c3a66;
  --indigo-deep: #1b2440;
  --linen: #f6efe3;
  --linen-dark: #ecdfc8;
  --cocoa: #3a2317;
  --cocoa-light: #5a3a26;
  --ink: #241a12;
  --white: #fffaf2;
  --radius: 18px;
  --shadow: 0 18px 40px -20px rgba(36, 26, 18, .35);
  --font-display: "Iowan Old Style", "Palatino Linotype", Georgia, "Times New Roman", serif;
  --font-body: "Avenir Next", "Segoe UI", system-ui, -apple-system, sans-serif;
  --measure: 68ch;
}
* { 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(--linen);
  line-height: 1.55;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-display); margin: 0 0 .5em; line-height: 1.1; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--ochre); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* ===== Layout helpers ===== */
.container { max-width: 1180px; margin-inline: auto; padding-inline: clamp(1rem, 4vw, 2.5rem); }
.section { padding-block: clamp(3rem, 8vw, 6rem); position: relative; }
.grid { display: grid; gap: clamp(1rem, 3vw, 2rem); }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
@media (min-width: 720px) { .grid-2 { grid-template-columns: 1fr 1fr; } .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.flow > * + * { margin-top: 1em; }

/* ===== Reveal ===== */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in-view { opacity: 1; transform: none; }
.reveal.reveal--clip { clip-path: inset(0 0 100% 0); transition: clip-path .8s ease; transform: none; opacity: 1; }
.reveal.reveal--clip.in-view { clip-path: inset(0 0 0% 0); }
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal--clip { transition: none !important; transform: none !important; clip-path: none !important; opacity: 1 !important; }
  .blob, .wave-anim { animation: none !important; }
}
.reveal-delay-1 { transition-delay: .08s; } .reveal-delay-2 { transition-delay: .16s; }
.reveal-delay-3 { transition-delay: .24s; } .reveal-delay-4 { transition-delay: .32s; }

/* ===== Header ===== */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(246,239,227,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--linen-dark); }
.site-header__inner { max-width: 1180px; margin-inline: auto; padding: .8rem clamp(1rem, 4vw, 2.5rem); display: flex; align-items: center; gap: 1.2rem; }
.brand { display: flex; align-items: center; gap: .6rem; margin-right: auto; }
.brand__mark { flex: none; }
.brand__word { font-family: var(--font-display); font-size: 1.3rem; color: var(--cocoa); }
.brand__word em { font-style: normal; color: var(--ochre-dark); }
.brand__word--light { color: var(--white); font-size: 1.3rem; }
.site-nav { display: flex; gap: 1.4rem; }
.site-nav a { font-size: .95rem; padding: .3rem 0; position: relative; }
.site-nav a::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 2px; background: var(--ochre); transition: width .25s ease; }
.site-nav a:hover::after, .site-nav a.is-active::after { width: 100%; }
.site-nav a.is-active { color: var(--ochre-dark); }
.header-actions { display: flex; align-items: center; gap: .9rem; }
.cart-link { position: relative; display: inline-flex; color: var(--cocoa); }
.cart-count { position: absolute; top: -8px; right: -10px; background: var(--ochre); color: var(--white); font-size: .68rem; min-width: 18px; height: 18px; border-radius: 999px; display: grid; place-items: center; padding: 0 3px; }
.cart-link.bump .cart-count { animation: bump .4s ease; }
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.5); } 100% { transform: scale(1); } }
.nav-toggle { display: none; background: none; border: none; color: var(--cocoa); cursor: pointer; padding: .3rem; }
@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: fixed; inset: 0 0 0 auto; width: min(78vw, 320px); height: 100vh;
    background: var(--indigo-deep); flex-direction: column; padding: 5.5rem 1.6rem 2rem; gap: 1.4rem;
    transform: translateX(100%); visibility: hidden; transition: transform .35s ease, visibility .35s ease;
  }
  .site-nav.is-open { transform: translateX(0); visibility: visible; }
  .site-nav a { color: var(--white); }
}

/* ===== Buttons ===== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .85rem 1.6rem; border-radius: 999px; border: 2px solid transparent; font-weight: 600; font-size: .95rem; cursor: pointer; position: relative; overflow: hidden; isolation: isolate; min-height: 44px; }
.btn--sweep::before { content: ""; position: absolute; inset: 0; width: 100%; left: -100%; background: var(--indigo-deep); transition: left .35s ease; z-index: -1; }
.btn--sweep:hover::before { left: 0; }
.btn--ochre { background: var(--ochre); color: var(--white); }
.btn--ochre:hover { color: var(--white); }
.btn--indigo { background: var(--indigo); color: var(--white); }
.btn--outline { background: transparent; border-color: var(--cocoa); color: var(--cocoa); }
.btn--outline:hover { background: var(--cocoa); color: var(--white); }
.btn--ghost-dark { background: transparent; border-color: rgba(255,255,255,.6); color: var(--white); }
.btn--ghost-dark:hover { background: rgba(255,255,255,.15); }
.btn--sm { padding: .5rem 1rem; font-size: .85rem; min-height: 36px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* ===== Hero (home) ===== */
.hero { position: relative; padding-top: clamp(2.5rem, 6vw, 4rem); overflow: hidden; }
.hero__inner { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 900px) { .hero__inner { grid-template-columns: 1.1fr 1fr; } }
.hero__eyebrow { color: var(--ochre-dark); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: .8rem; }
.hero h1 { font-size: clamp(2.6rem, 6.5vw, 4.4rem); color: var(--cocoa); }
.hero__lede { font-size: 1.15rem; max-width: 42ch; }
.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero__art { position: relative; aspect-ratio: 1/1; }
.blob { position: absolute; inset: 0; width: 100%; height: 100%; animation: blobmove 14s ease-in-out infinite; transform-origin: 50% 50%; }
@keyframes blobmove { 0%,100% { transform: scale(1) rotate(0deg); } 50% { transform: scale(1.06) rotate(6deg); } }
.hero__photo { position: absolute; inset: 10% 14%; border-radius: 40% 60% 55% 45% / 50% 45% 55% 50%; overflow: hidden; box-shadow: var(--shadow); }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; }

/* ===== Diagonal sections ===== */
.section--angled { clip-path: polygon(0 4%, 100% 0, 100% 96%, 0 100%); background: var(--cocoa); color: var(--linen); }
.section--angled h2, .section--angled h3 { color: var(--white); }
.section--angled-rev { clip-path: polygon(0 0, 100% 4%, 100% 100%, 0 96%); background: var(--indigo); color: var(--white); }
.section--linen { background: var(--linen); }
.section--white { background: var(--white); }

/* ===== Wave divider ===== */
.wave-divider { display: block; width: 100%; height: clamp(40px, 8vw, 90px); }
.wave-anim path { animation: wavedrift 10s ease-in-out infinite alternate; }
@keyframes wavedrift { from { transform: translateX(0); } to { transform: translateX(-2%); } }

/* ===== Cards / products ===== */
.card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; transition: transform .3s ease, box-shadow .3s ease; }
.card:hover { transform: translateY(-6px); }
.product-card { display: flex; flex-direction: column; }
.product-card__media { position: relative; aspect-ratio: 4/3; overflow: hidden; }
.product-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.product-card:hover .product-card__media img { transform: scale(1.08); }
.product-card__badge { position: absolute; top: .7rem; left: .7rem; background: var(--ochre); color: var(--white); font-size: .72rem; padding: .25rem .6rem; border-radius: 999px; }
.product-card__body { padding: 1.1rem 1.2rem 1.3rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.product-card__price { font-weight: 700; color: var(--ochre-dark); font-size: 1.1rem; }
.product-strip { display: flex; gap: 1.2rem; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: .5rem; }
.product-strip .product-card { min-width: 260px; scroll-snap-align: start; }
@media (min-width: 720px) { .product-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px,1fr)); overflow: visible; } }

/* ===== Signature feature: Okusni kompas ===== */
.compass { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(1.4rem, 4vw, 2.4rem); }
.compass__controls { display: grid; gap: 1.2rem; }
@media (min-width: 640px) { .compass__controls { grid-template-columns: 1fr 1fr; } }
.compass__group h4 { margin-bottom: .6rem; font-size: .95rem; }
.compass__options { display: flex; flex-wrap: wrap; gap: .5rem; }
.compass__options button { border: 2px solid var(--linen-dark); background: var(--linen); border-radius: 999px; padding: .5rem 1rem; font-size: .85rem; cursor: pointer; min-height: 40px; transition: border-color .2s, background .2s; }
.compass__options button.is-active { border-color: var(--ochre); background: var(--ochre); color: var(--white); }
.compass__result { margin-top: 1.6rem; padding-top: 1.4rem; border-top: 1px dashed var(--linen-dark); display: flex; gap: 1.2rem; align-items: center; flex-wrap: wrap; }
.compass__result img { width: 96px; height: 96px; border-radius: 16px; object-fit: cover; }

/* ===== Section hero for inner pages ===== */
.page-hero { background: var(--indigo); color: var(--white); padding: clamp(3rem,8vw,5rem) 0 clamp(2rem,5vw,3rem); clip-path: polygon(0 0, 100% 0, 100% 92%, 0 100%); }
.page-hero h1 { color: var(--white); font-size: clamp(2.2rem, 5vw, 3.2rem); }
.page-hero .breadcrumbs a, .page-hero .breadcrumbs span { color: rgba(255,255,255,.8); }

/* ===== Breadcrumbs ===== */
.breadcrumbs { display: flex; gap: .4rem; font-size: .85rem; flex-wrap: wrap; }
.breadcrumbs a { text-decoration: underline; text-decoration-color: transparent; transition: text-decoration-color .2s; }
.breadcrumbs a:hover { text-decoration-color: currentColor; }

/* ===== Prose (legal pages) ===== */
.prose { max-width: var(--measure); }
.prose h2 { margin-top: 2em; font-size: 1.5rem; }
.prose h3 { margin-top: 1.4em; font-size: 1.15rem; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .5em; }

/* ===== Legal TOC ===== */
.legal-toc { background: var(--white); border-radius: var(--radius); padding: 1.3rem 1.5rem; box-shadow: var(--shadow); }
.legal-toc h2 { font-size: 1rem; text-transform: uppercase; letter-spacing: .05em; }
.legal-toc ol { margin: 0; padding-left: 1.2em; }
.legal-toc a { text-decoration: underline; text-decoration-color: transparent; }
.legal-toc a:hover { text-decoration-color: currentColor; }

/* ===== Notice ===== */
.notice { border-radius: var(--radius); padding: 1rem 1.3rem; background: var(--linen-dark); border-left: 4px solid var(--ochre); }
.notice--info { background: #e4ecf7; border-left-color: var(--indigo); }
.notice--success { background: #e6f1e4; border-left-color: #4a7a3a; }
.notice--error { background: #f6e2e0; border-left-color: #a6392a; }

/* ===== Forms ===== */
.form-grid { display: grid; gap: 1.1rem; }
@media (min-width: 640px) { .form-grid.form-grid--2 { grid-template-columns: 1fr 1fr; } }
.field { display: flex; flex-direction: column; gap: .35rem; }
.field label { font-size: .85rem; font-weight: 600; }
.field input, .field select, .field textarea { font: inherit; padding: .7rem .9rem; border: 1.5px solid var(--linen-dark); border-radius: 10px; background: var(--white); accent-color: var(--ochre); min-height: 44px; }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--ochre); }
.field-error { color: #a6392a; font-size: .8rem; min-height: 1.1em; }
.field.has-error input, .field.has-error textarea { border-color: #a6392a; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.form-msg { font-size: .9rem; min-height: 1.3em; }
.form-msg--ok { color: #4a7a3a; }
.form-msg--error { color: #a6392a; }

/* ===== Cart / checkout ===== */
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th, .cart-table td { padding: .9rem .6rem; border-bottom: 1px solid var(--linen-dark); text-align: left; vertical-align: middle; }
.cart-table img { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; }
.cart-qty { display: inline-flex; align-items: center; gap: .4rem; }
.cart-qty button { width: 32px; height: 32px; border-radius: 8px; border: 1.5px solid var(--linen-dark); background: var(--white); cursor: pointer; }
.cart-summary { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.4rem; display: flex; flex-direction: column; gap: .8rem; }
.cart-summary__row { display: flex; justify-content: space-between; font-size: .95rem; }
.cart-summary__total { font-weight: 700; font-size: 1.2rem; border-top: 1px dashed var(--linen-dark); padding-top: .7rem; }
.cart-layout { display: grid; gap: 2rem; }
@media (min-width: 880px) { .cart-layout { grid-template-columns: 2fr 1fr; align-items: start; } }

/* ===== Contact ===== */
.contact-layout { display: grid; gap: 2rem; }
@media (min-width: 880px) { .contact-layout { grid-template-columns: 1fr 1fr; } }
.contact-info { display: flex; flex-direction: column; gap: 1rem; }
.contact-info__row { display: flex; gap: .7rem; align-items: flex-start; }
.contact-info__row svg { flex: none; color: var(--ochre-dark); margin-top: .1em; }

/* ===== FAQ ===== */
.faq { display: flex; flex-direction: column; gap: .8rem; }
.faq-item { background: var(--white); border-radius: 14px; box-shadow: var(--shadow); padding: .2rem 1.2rem; }
.faq-item summary { padding: 1rem 0; 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.4rem; color: var(--ochre-dark); transition: transform .2s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { padding-bottom: 1rem; margin: 0; }

/* ===== Product detail ===== */
.product-detail { display: grid; gap: 2.2rem; }
@media (min-width: 880px) { .product-detail { grid-template-columns: 1fr 1fr; } }
.product-detail__media { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 1/1; }
.product-detail__media img { width: 100%; height: 100%; object-fit: cover; }
.product-detail__price { font-size: 1.6rem; font-weight: 700; color: var(--ochre-dark); }

/* ===== Footer ===== */
.site-footer { background: var(--indigo); color: var(--white); position: relative; padding-top: 1px; }
.footer-wave { width: 100%; height: 50px; display: block; margin-top: -1px; }
.site-footer__inner { max-width: 1180px; margin-inline: auto; padding: 1rem clamp(1rem,4vw,2.5rem) 2rem; display: grid; gap: 2rem; grid-template-columns: 1fr; }
@media (min-width: 720px) { .site-footer__inner { grid-template-columns: 1.4fr .8fr .8fr .8fr 1.2fr; } }
.footer-col h3 { font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ochre); margin-bottom: .8rem; }
.footer-links { display: flex; flex-direction: column; gap: .5rem; }
.footer-links a:hover { color: var(--ochre); }
.footer-mail { display: inline-flex; gap: .5rem; align-items: center; margin-top: .6rem; }
.newsletter-form .field { gap: .3rem; }
.newsletter-form input { color: var(--ink); }
.site-footer__bottom { text-align: center; font-size: .82rem; padding: 1rem 0 1.6rem; opacity: .75; }

/* ===== Cookie banner ===== */
.cookie-banner { position: fixed; bottom: 1rem; left: 1rem; right: 1rem; max-width: 640px; margin-inline: auto; background: var(--indigo-deep); color: var(--white); border-radius: 16px; padding: 1.1rem 1.3rem; display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; box-shadow: var(--shadow); z-index: 90; }
.cookie-banner p { margin: 0; font-size: .9rem; flex: 1 1 260px; }
.cookie-banner a { text-decoration: underline; }
.cookie-banner__actions { display: flex; gap: .7rem; }

/* ===== Toast ===== */
.toast { position: fixed; bottom: 6.5rem; left: 50%; transform: translate(-50%, 12px); background: var(--cocoa); color: var(--white); padding: .8rem 1.3rem; border-radius: 999px; font-size: .9rem; opacity: 0; transition: opacity .3s, transform .3s; z-index: 95; }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ===== Grain overlay ===== */
.grain-overlay { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; opacity: .035; z-index: 1000; mix-blend-mode: multiply; }

/* ===== Utility ===== */
.text-center { text-align: center; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* COMPONENTS: .container - centered max-width content wrapper */
/* COMPONENTS: .section - vertical section padding */
/* COMPONENTS: .section--angled / .section--angled-rev - diagonal clip-path dark sections */
/* COMPONENTS: .section--linen / .section--white - flat background sections */
/* COMPONENTS: .grid / .grid-2 / .grid-3 - responsive grid helpers */
/* COMPONENTS: .reveal / .reveal--clip - scroll reveal animation hooks, .in-view toggled by JS */
/* COMPONENTS: .reveal-delay-1..4 - stagger reveal transitions */
/* COMPONENTS: .site-header / .site-nav / .brand / .cart-link / .nav-toggle - header & nav */
/* COMPONENTS: .btn, .btn--ochre/.btn--indigo/.btn--outline/.btn--ghost-dark/.btn--sm/.btn--sweep - buttons */
/* COMPONENTS: .hero / .hero__art / .blob / .hero__photo - home hero composition */
/* COMPONENTS: .wave-divider / .wave-anim - animated SVG section dividers */
/* COMPONENTS: .card / .product-card / .product-strip - product cards and scroll-snap strip */
/* COMPONENTS: .compass / .compass__controls / .compass__options / .compass__result - signature feature "Okusni kompas" */
/* COMPONENTS: .page-hero - inner page hero band */
/* COMPONENTS: .breadcrumbs - breadcrumb trail */
/* COMPONENTS: .prose - readable long-form legal/content text */
/* COMPONENTS: .legal-toc - table of contents box for legal pages */
/* COMPONENTS: .notice / .notice--info/.notice--success/.notice--error - callout boxes */
/* COMPONENTS: .form-grid / .field / .field-error / .hp / .form-msg - form building blocks */
/* COMPONENTS: .cart-table / .cart-qty / .cart-summary / .cart-layout - cart & checkout layout */
/* COMPONENTS: .contact-layout / .contact-info - contact page layout */
/* COMPONENTS: .faq / .faq-item - FAQ accordion (details/summary) */
/* COMPONENTS: .product-detail - single product page layout */
/* COMPONENTS: .site-footer / .footer-col / .newsletter-form / .footer-wave - footer */
/* COMPONENTS: .cookie-banner - cookie consent banner */
/* COMPONENTS: .toast - transient notice */
/* COMPONENTS: .grain-overlay - fixed SVG texture overlay */

/* ===== Footer Brand ===== */
.footer-brand {
  padding: clamp(1rem, 2vw, 1.5rem) 0;
}

/* ===== Cart Inputs and Buttons ===== */
.qty-input {
  width: 60px;
  padding: 0.5rem;
  border: 1px solid var(--linen-dark);
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 1rem;
  text-align: center;
  background: var(--white);
}

.qty-input:focus-visible {
  outline: 3px solid var(--ochre);
  outline-offset: 2px;
}

.remove-btn {
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--linen-dark);
  background: var(--white);
  border-radius: 6px;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.remove-btn:hover {
  background: var(--ochre);
  border-color: var(--ochre);
  color: var(--white);
}

/* ===== Product Filters ===== */
.product-filters {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(0.5rem, 1.5vw, 1rem);
}

.filter-btn {
  padding: clamp(0.5rem, 1vw, 0.75rem) clamp(0.75rem, 2vw, 1.25rem);
  border: 1px solid var(--indigo);
  background: var(--white);
  color: var(--indigo);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: clamp(0.85rem, 1vw, 0.95rem);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.filter-btn:hover {
  background: var(--linen-dark);
}

.filter-btn--active {
  background: var(--indigo);
  color: var(--white);
}
