/* ==========================================================================
   Čokolada Bura — design system
   Soft K-pastel: olive / mustard / brick on warm cream paper.
   ========================================================================== */

:root {
  --cream: #faf4e7;
  --cream-dark: #f0e3c8;
  --paper: #fffbf2;
  --ink: #2c2117;
  --ink-soft: #5a4d3b;
  --olive: #6f7a4e;
  --olive-dark: #495333;
  --olive-light: #a9b182;
  --mustard: #d9a23b;
  --mustard-light: #f0cc84;
  --mustard-dark: #ab7a1f;
  --brick: #b4573a;
  --brick-dark: #8a3f28;
  --brick-light: #e4a083;

  --font-display: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 32px;
  --radius-full: 999px;

  --shadow-soft: 0 12px 30px -14px rgba(44, 33, 23, .35);
  --shadow-lift: 0 22px 44px -18px rgba(44, 33, 23, .45);

  --container: 1180px;
  --ease: cubic-bezier(.22, .9, .32, 1);
}

* { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--brick-dark); text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink); line-height: 1.12; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; }

:focus-visible {
  outline: 3px solid var(--brick);
  outline-offset: 3px;
  border-radius: 6px;
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--ink); color: var(--cream); padding: .6em 1em; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- layout utilities ---------- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: 72px 0; }
.section-tight { padding: 40px 0; }
.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.flow > * + * { margin-top: 1em; }
.stack-sm { display: flex; flex-direction: column; gap: 8px; }
.stack-md { display: flex; flex-direction: column; gap: 20px; }
.cluster { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.mt-0 { margin-top: 0 !important; }
.mt-lg { margin-top: 48px; }
.center-text { text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .78rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--brick-dark); font-weight: 600;
}

@media (max-width: 900px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .section { padding: 52px 0; }
}

/* ---------- buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 26px; border-radius: var(--radius-full); border: 2px solid transparent;
  font-weight: 600; font-size: .96rem; cursor: pointer; overflow: hidden;
  min-height: 44px; transition: transform .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
  isolation: isolate;
}
.btn::before {
  content: ""; position: absolute; inset: 0; left: -100%; width: 100%;
  z-index: -1; transition: left .35s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:hover::before { left: 0; }

.btn-primary { background: var(--brick); color: #fff; }
.btn-primary::before { background: var(--brick-dark); }

.btn-secondary { background: var(--mustard); color: var(--ink); }
.btn-secondary::before { background: var(--mustard-dark); }
.btn-secondary:hover { color: #fff; }

.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline::before { background: var(--ink); }
.btn-outline:hover { color: var(--cream); }

.btn-ghost { background: transparent; color: var(--cream); border-color: rgba(250, 244, 231, .5); }
.btn-ghost::before { background: rgba(250, 244, 231, .18); }
.btn-ghost:hover { color: #fff; border-color: #fff; }

.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }
.btn-sm { padding: 9px 18px; font-size: .85rem; min-height: 38px; }
.btn > span, .btn > svg { position: relative; z-index: 1; }

/* ---------- header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250, 244, 231, .92); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--cream-dark);
}
.header-inner {
  max-width: var(--container); margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; gap: 24px;
}
.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo-mark { width: 40px; height: 40px; aspect-ratio: 1; }
.logo-word { font-family: var(--font-display); font-size: 1.05rem; line-height: 1.1; color: var(--ink); }
.logo-word strong { display: block; color: var(--brick-dark); font-size: 1.15rem; }

.nav-toggle {
  display: none; margin-left: auto; background: none; border: none; color: var(--ink);
  width: 44px; height: 44px; align-items: center; justify-content: center; cursor: pointer; border-radius: 10px;
}

.site-nav { margin-left: auto; }
.nav-primary { display: flex; align-items: center; gap: 26px; }
.nav-primary > li > a {
  color: var(--ink-soft); font-weight: 600; font-size: .95rem; position: relative; padding: 6px 2px;
}
.nav-primary > li > a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--brick);
  transition: width .3s var(--ease);
}
.nav-primary > li > a:hover::after, .nav-primary > li > a.is-active::after { width: 100%; }
.nav-primary > li > a.is-active { color: var(--brick-dark); }

.nav-more { position: relative; }
.nav-more summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 4px;
  color: var(--ink-soft); font-weight: 600; font-size: .95rem;
}
.nav-more summary::-webkit-details-marker { display: none; }
.nav-more-list {
  position: absolute; top: 130%; right: 0; background: var(--paper); border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft); padding: 10px; min-width: 220px; display: flex; flex-direction: column; gap: 2px;
}
.nav-more-list a { display: block; padding: 10px 12px; border-radius: 10px; color: var(--ink-soft); font-size: .92rem; }
.nav-more-list a:hover { background: var(--cream); color: var(--brick-dark); }

.cart-link { position: relative; display: flex; align-items: center; color: var(--ink); margin-left: 6px; }
.cart-badge {
  position: absolute; top: -8px; right: -10px; background: var(--brick); color: #fff;
  font-size: .68rem; font-weight: 700; min-width: 18px; height: 18px; border-radius: 999px;
  display: flex; align-items: center; justify-content: center; padding: 0 4px;
}
.cart-badge.is-empty { background: var(--olive); }
.cart-badge.bump { animation: bump .4s var(--ease); }
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.5); } 100% { transform: scale(1); } }

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: fixed; inset: 0 0 0 auto; width: min(320px, 86vw); height: 100vh;
    background: var(--paper); box-shadow: var(--shadow-lift); padding: 90px 28px 28px;
    transform: translateX(100%); visibility: hidden; transition: transform .35s var(--ease), visibility .35s;
    overflow-y: auto;
  }
  .site-nav.is-open { transform: translateX(0); visibility: visible; }
  .nav-primary { flex-direction: column; align-items: flex-start; gap: 18px; width: 100%; }
  .nav-more-list { position: static; box-shadow: none; padding: 6px 0 0 12px; }
  body.nav-open { overflow: hidden; }
}

/* ---------- footer ---------- */
.divider-wind { width: 100%; height: 48px; display: block; margin-top: 40px; }
.site-footer { background: var(--ink); color: var(--cream); }
.footer-inner {
  max-width: var(--container); margin: 0 auto; padding: 56px 24px 32px;
  display: grid; gap: 36px; grid-template-columns: 1.4fr 1fr 1fr 1fr 1.2fr;
}
.footer-brand p { color: rgba(250, 244, 231, .75); font-size: .92rem; }
.logo--footer .logo-word { color: var(--cream); }
.logo--footer .logo-word strong { color: var(--mustard); }
.footer-contact { display: flex; flex-direction: column; gap: 6px; }
.footer-contact a { display: flex; align-items: center; gap: 8px; color: var(--cream); font-size: .9rem; }
.social-link { display: inline-flex; align-items: center; gap: 8px; color: var(--mustard-light); margin-top: 8px; font-weight: 600; }
.footer-col h3 { color: var(--mustard-light); font-size: .95rem; margin-bottom: 14px; font-family: var(--font-body); letter-spacing: .03em; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: rgba(250, 244, 231, .82); font-size: .92rem; }
.footer-col a:hover { color: var(--mustard-light); }
.footer-newsletter .field-inline { display: flex; gap: 8px; }
.footer-newsletter input[type="email"] {
  flex: 1; min-width: 0; border-radius: var(--radius-full); border: 1px solid rgba(250, 244, 231, .3);
  background: rgba(250, 244, 231, .08); color: var(--cream); padding: 10px 16px;
}
.footer-newsletter input::placeholder { color: rgba(250, 244, 231, .5); }
.footer-bottom { border-top: 1px solid rgba(250, 244, 231, .14); padding: 18px 24px; text-align: center; font-size: .82rem; color: rgba(250, 244, 231, .65); }

@media (max-width: 980px) { .footer-inner { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .footer-inner { grid-template-columns: 1fr; } }

/* ---------- cookie banner & toast ---------- */
.cookie-banner {
  position: fixed; left: 20px; right: 20px; bottom: -200px; z-index: 300;
  max-width: 640px; margin: 0 auto; background: var(--ink); color: var(--cream);
  border-radius: var(--radius-md); padding: 20px 24px; box-shadow: var(--shadow-lift);
  display: flex; flex-wrap: wrap; align-items: center; gap: 16px; transition: bottom .45s var(--ease);
}
.cookie-banner.is-visible { bottom: 20px; }
.cookie-banner p { margin: 0; flex: 1 1 260px; font-size: .9rem; }
.cookie-banner a { color: var(--mustard-light); text-decoration: underline; }
.cookie-actions { display: flex; gap: 10px; }

.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translate(-50%, 20px);
  background: var(--olive-dark); color: #fff; padding: 12px 22px; border-radius: var(--radius-full);
  font-size: .9rem; font-weight: 600; box-shadow: var(--shadow-soft); opacity: 0; z-index: 400;
  transition: opacity .3s var(--ease), transform .3s var(--ease); pointer-events: none;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ---------- reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(26px); clip-path: inset(12% 0 0 0); transition: opacity .7s var(--ease), transform .7s var(--ease), clip-path .7s var(--ease); }
.reveal.in-view { opacity: 1; transform: translateY(0); clip-path: inset(0 0 0 0); }
.reveal-1 { transition-delay: .05s; } .reveal-2 { transition-delay: .15s; } .reveal-3 { transition-delay: .25s; } .reveal-4 { transition-delay: .35s; }
@media (prefers-reduced-motion: reduce) {
  .reveal, .btn, .nav-primary > li > a::after, .site-nav { transition: none !important; }
  .hero-grain, .hero-orbit { animation: none !important; }
}

/* ---------- hero (home) ---------- */
.hero {
  position: relative; padding: 64px 0 100px; overflow: hidden;
  background: radial-gradient(circle at 18% 20%, var(--mustard-light), transparent 55%),
              radial-gradient(circle at 85% 75%, var(--olive-light), transparent 50%),
              var(--cream);
}
.hero-grain {
  position: absolute; inset: 0; width: 100%; height: 100%; opacity: .5; mix-blend-mode: overlay; pointer-events: none;
  animation: grainShift 9s steps(6) infinite;
}
@keyframes grainShift {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(-2%, 2%); }
  40% { transform: translate(2%, -1%); }
  60% { transform: translate(-1%, -2%); }
  80% { transform: translate(1%, 1%); }
}
.hero-inner {
  position: relative; z-index: 1; max-width: var(--container); margin: 0 auto; padding: 0 24px;
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center;
}
.hero-eyebrow { margin-bottom: 18px; }
.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.6rem); letter-spacing: -.01em; margin-bottom: 20px;
}
.hero h1 em { font-style: normal; color: var(--brick-dark); }
.hero-lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 46ch; }
.hero-actions { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }

.hero-visual { position: relative; aspect-ratio: 1; max-width: 480px; margin: 0 auto; }
.hero-circle {
  position: absolute; inset: 6%; border-radius: 50%; overflow: hidden;
  box-shadow: var(--shadow-lift); border: 6px solid var(--paper);
}
.hero-circle img { width: 100%; height: 100%; object-fit: cover; }
.hero-orbit { position: absolute; inset: 0; animation: orbit 60s linear infinite; }
@keyframes orbit { to { transform: rotate(360deg); } }
.hero-orbit svg { position: absolute; aspect-ratio: 1; height: auto; color: var(--brick-dark); }
.hero-orbit .orb-a { top: 0; left: 48%; width: 46px; }
.hero-orbit .orb-b { bottom: 6%; left: 2%; width: 36px; }
.hero-orbit .orb-c { top: 18%; right: 0; width: 30px; }
.hero-badge-seal { position: absolute; bottom: -4%; right: -6%; width: 110px; filter: drop-shadow(0 10px 18px rgba(44,33,23,.25)); }
@media (prefers-reduced-motion: reduce) { .hero-orbit { animation: none; } }

@media (max-width: 920px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-lead { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .hero-visual { margin-top: 20px; }
}

/* ---------- section ornaments ---------- */
.ornament-row { display: flex; justify-content: center; margin: 8px 0 36px; opacity: .8; }
.pattern-strip { height: 26px; width: 100%; opacity: .35; }

/* ---------- box builder (signature feature) ---------- */
.box-builder-section { background: var(--olive-dark); color: var(--cream); border-radius: var(--radius-lg); padding: 56px; position: relative; overflow: hidden; }
.box-builder-section::before {
  content: ""; position: absolute; inset: 0; opacity: .12;
  background-image: radial-gradient(circle, var(--mustard) 1.5px, transparent 1.6px);
  background-size: 22px 22px;
}
.box-builder { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.box-builder h2 { color: var(--cream); }
.box-builder-copy p { color: rgba(250, 244, 231, .8); }
.box-flavors { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0; }
.box-chip {
  --chip-color: var(--mustard);
  border: 2px solid var(--chip-color); color: var(--cream); background: rgba(255,255,255,.04);
  padding: 9px 16px; border-radius: var(--radius-full); font-size: .85rem; font-weight: 600; cursor: pointer;
  transition: background .25s var(--ease), transform .2s var(--ease);
}
.box-chip:hover { background: var(--chip-color); color: var(--ink); transform: translateY(-2px); }

.box-slots { display: grid; grid-template-columns: repeat(3, 72px); gap: 14px; justify-content: center; margin: 0 auto 20px; }
.box-slot {
  --slot-color: var(--cream-dark);
  width: 72px; height: 64px; clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%);
  background: rgba(255,255,255,.06); border: 2px dashed rgba(250,244,231,.35); color: var(--cream);
  display: flex; align-items: center; justify-content: center; cursor: pointer; font-weight: 700; font-size: 1.1rem;
  transition: background .25s var(--ease), transform .2s var(--ease);
}
.box-slot.is-filled { background: var(--slot-color); border-style: solid; border-color: transparent; color: #fff; }
.box-slot:hover { transform: scale(1.05); }
.box-builder-total { display: flex; align-items: baseline; justify-content: center; gap: 10px; margin-bottom: 18px; }
.box-builder-total strong { font-size: 2rem; font-family: var(--font-display); color: var(--mustard-light); }
.box-builder-visual { text-align: center; }

@media (max-width: 860px) {
  .box-builder { grid-template-columns: 1fr; }
  .box-builder-section { padding: 36px 22px; }
}

/* ---------- product cards / catalog ---------- */
.catalog-toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 28px; }
.filter-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.filter-chip {
  border: 1px solid var(--cream-dark); background: var(--paper); border-radius: var(--radius-full);
  padding: 8px 16px; font-size: .85rem; font-weight: 600; cursor: pointer; color: var(--ink-soft);
}
.filter-chip.is-active { background: var(--brick); color: #fff; border-color: var(--brick); }

.product-strip {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px;
}
@media (max-width: 1040px) { .product-strip { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) {
  .product-strip { grid-auto-flow: column; grid-auto-columns: 78%; grid-template-columns: unset; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
  .product-strip .product-card { scroll-snap-align: start; }
}

.product-card {
  background: var(--paper); border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-soft);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease); display: flex; flex-direction: column;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); }
.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 var(--ease); }
.product-card:hover .product-card-media img { transform: scale(1.08); }
.product-card-badge {
  position: absolute; top: 12px; left: 12px; background: var(--brick); color: #fff; font-size: .72rem; font-weight: 700;
  padding: 5px 12px; border-radius: var(--radius-full);
}
.product-card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.product-card-body h3 { font-size: 1.1rem; margin: 0; }
.product-card-body p { color: var(--ink-soft); font-size: .9rem; margin: 0; }
.product-card-footer { display: flex; align-items: center; justify-content: space-between; margin-top: auto; }
.price { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; color: var(--brick-dark); }

/* ---------- component library for inner pages ---------- */
.page-hero {
  padding: 56px 0 44px; text-align: center;
  background: linear-gradient(180deg, var(--cream-dark), var(--cream));
}
.page-hero h1 { font-size: clamp(2.1rem, 4.4vw, 3.2rem); }
.page-hero p { color: var(--ink-soft); max-width: 60ch; margin: 0 auto; }

.breadcrumbs { display: flex; gap: 8px; align-items: center; font-size: .85rem; color: var(--ink-soft); margin: 18px 0; }
.breadcrumbs a { color: var(--ink-soft); }
.breadcrumbs a:hover { color: var(--brick-dark); }
.breadcrumbs .sep { opacity: .5; }

.prose { max-width: 70ch; margin: 0 auto; }
.prose h2 { margin-top: 1.8em; font-size: 1.5rem; }
.prose h3 { margin-top: 1.4em; font-size: 1.2rem; }
.prose p, .prose li { color: var(--ink-soft); }
.prose ul, .prose ol { padding-left: 1.4em; list-style: disc; margin-bottom: 1em; }
.prose ol { list-style: decimal; }

.legal-toc { background: var(--paper); border-radius: var(--radius-md); padding: 24px; box-shadow: var(--shadow-soft); margin-bottom: 36px; }
.legal-toc h2 { font-size: 1.05rem; margin-bottom: 10px; }
.legal-toc ol { margin: 0; padding-left: 1.3em; }
.legal-toc a { color: var(--ink-soft); }
.legal-toc a:hover { color: var(--brick-dark); }

.notice {
  display: flex; gap: 12px; align-items: flex-start; padding: 16px 20px; border-radius: var(--radius-md);
  background: var(--mustard-light); color: var(--ink); margin: 24px 0;
}
.notice svg { flex-shrink: 0; margin-top: 2px; }
.notice.notice-info { background: var(--olive-light); }
.notice.notice-warn { background: var(--brick-light); }

.form-grid { display: grid; gap: 18px; 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: 6px; }
.field label { font-weight: 600; font-size: .9rem; }
.field input, .field select, .field textarea {
  border: 1px solid var(--cream-dark); background: var(--paper); border-radius: var(--radius-sm);
  padding: 12px 14px; font: inherit; color: var(--ink); min-height: 44px; accent-color: var(--brick);
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--brick); }
.field-error { color: var(--brick-dark); font-size: .82rem; }
.field.has-error input, .field.has-error textarea { border-color: var(--brick); }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-msg { font-size: .88rem; min-height: 1.2em; }
.form-msg.is-success { color: var(--olive-dark); font-weight: 600; }
.form-msg.is-error { color: var(--brick-dark); font-weight: 600; }

.faq-item {
  background: var(--paper); border-radius: var(--radius-md); padding: 4px 22px; margin-bottom: 12px; box-shadow: var(--shadow-soft);
}
.faq-item summary {
  list-style: none; cursor: pointer; padding: 18px 0; font-weight: 700; display: flex; justify-content: space-between; gap: 12px;
  font-family: var(--font-display); font-size: 1.05rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.4rem; color: var(--brick); transition: transform .3s var(--ease); }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { padding-bottom: 20px; color: var(--ink-soft); margin: 0; }

.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.product-detail-media { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-soft); aspect-ratio: 1; }
.product-detail-media img { width: 100%; height: 100%; object-fit: cover; }
.product-detail-info .price { font-size: 1.6rem; display: block; margin: 12px 0 20px; }
.qty-input { display: inline-flex; align-items: center; border: 1px solid var(--cream-dark); border-radius: var(--radius-full); overflow: hidden; }
.qty-input button { width: 40px; height: 40px; background: var(--cream); border: none; cursor: pointer; }
.qty-input input { width: 48px; text-align: center; border: none; background: transparent; font: inherit; }
@media (max-width: 760px) { .product-detail { grid-template-columns: 1fr; } }

.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th { text-align: left; font-size: .82rem; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-soft); padding: 10px 8px; border-bottom: 2px solid var(--cream-dark); }
.cart-table td { padding: 16px 8px; border-bottom: 1px solid var(--cream-dark); vertical-align: middle; }
.cart-line-product { display: flex; align-items: center; gap: 14px; }
.cart-line-product img { width: 64px; height: 64px; border-radius: var(--radius-sm); object-fit: cover; }
.cart-summary {
  background: var(--paper); border-radius: var(--radius-md); padding: 26px; box-shadow: var(--shadow-soft);
  display: flex; flex-direction: column; gap: 14px; position: sticky; top: 100px;
}
.cart-summary-row { display: flex; justify-content: space-between; font-size: .95rem; }
.cart-summary-row.total { font-size: 1.2rem; font-weight: 700; border-top: 1px solid var(--cream-dark); padding-top: 14px; }
.cart-layout { display: grid; grid-template-columns: 2fr 1fr; gap: 36px; align-items: flex-start; }
@media (max-width: 860px) { .cart-layout { grid-template-columns: 1fr; } }
.cart-empty { text-align: center; padding: 60px 20px; color: var(--ink-soft); }

.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.contact-info-list { display: flex; flex-direction: column; gap: 18px; }
.contact-info-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-info-list svg { color: var(--brick); flex-shrink: 0; margin-top: 2px; }
@media (max-width: 820px) { .contact-layout { grid-template-columns: 1fr; } }

.badge-ribbon {
  display: inline-flex; align-items: center; gap: 6px; background: var(--brick); color: #fff;
  font-size: .72rem; font-weight: 700; padding: 5px 12px; border-radius: var(--radius-full);
}

/* ---------- 404 ---------- */
.state-404 { text-align: center; padding: 90px 0; }
.state-404 .logo-mark { width: 120px; height: 120px; margin: 0 auto 20px; }

/* COMPONENTS: .class - what it is
   .container - centered max-width wrapper
   .section / .section-tight - vertical page rhythm padding
   .grid / .grid-2 / .grid-3 / .grid-4 - responsive CSS grid helpers
   .flow / .stack-sm / .stack-md / .cluster - spacing/layout primitives
   .eyebrow - small uppercase label above headings
   .btn / .btn-primary / .btn-secondary / .btn-outline / .btn-ghost / .btn-sm - button variants with fill-sweep hover
   .site-header / .header-inner / .logo / .site-nav / .nav-primary / .nav-more / .cart-link / .cart-badge - header & navigation
   .nav-toggle - mobile hamburger button
   .site-footer / .footer-inner / .footer-col / .footer-newsletter - footer layout
   .cookie-banner / .cookie-actions - cookie consent banner
   .toast - transient confirmation message
   .reveal / .reveal-1..4 - scroll-reveal animation hooks (JS adds .in-view)
   .hero / .hero-inner / .hero-visual / .hero-circle / .hero-orbit / .hero-grain - home hero composition
   .ornament-row / .pattern-strip - decorative SVG dividers/patterns
   .box-builder-section / .box-builder / .box-flavors / .box-chip / .box-slots / .box-slot / .box-builder-total - signature "Slagalica Bura" feature
   .catalog-toolbar / .filter-chips / .filter-chip - catalog filtering controls
   .product-strip - responsive product grid / mobile scroll-snap strip
   .product-card / .product-card-media / .product-card-badge / .product-card-body / .price - product card
   .page-hero - inner page intro banner
   .breadcrumbs - breadcrumb trail
   .prose - readable long-form legal/content text measure
   .legal-toc - table of contents box for legal pages
   .notice / .notice-info / .notice-warn - callout boxes
   .form-grid / .field / .field-error / .hp-field / .form-msg - form layout & states
   .faq-item - details/summary accordion row
   .product-detail / .product-detail-media / .product-detail-info / .qty-input - product page layout
   .cart-table / .cart-line-product / .cart-summary / .cart-layout / .cart-empty - cart/checkout layout
   .contact-layout / .contact-info-list - contact page layout
   .badge-ribbon - small colored label/seal
   .state-404 - 404 page layout
*/

/* Navigation dropdown item */
.nav-more-item {
  display: block;
  padding: 12px 18px;
  color: var(--ink);
  font-size: 0.95rem;
  border-radius: var(--radius-sm);
  transition: background-color 0.2s var(--ease);
}

.nav-more-item:hover {
  background-color: var(--cream-dark);
}

/* Hero section introductory text */
.hero-copy {
  font-size: clamp(1rem, 4vw, 1.25rem);
  line-height: 1.6;
  color: var(--ink-soft);
  margin-bottom: 2rem;
}

/* Scroll-reveal animation states — staggered entrance */
.reveal-1, .reveal-2, .reveal-3, .reveal-4 {
  opacity: 0;
  transform: translateY(24px);
}

.reveal-1.in-view {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s var(--ease) 0s, transform 0.6s var(--ease) 0s;
}

.reveal-2.in-view {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s var(--ease) 0.1s, transform 0.6s var(--ease) 0.1s;
}

.reveal-3.in-view {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s var(--ease) 0.2s, transform 0.6s var(--ease) 0.2s;
}

.reveal-4.in-view {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s var(--ease) 0.3s, transform 0.6s var(--ease) 0.3s;
}

/* Cart main container */
.cart-main {
  background: var(--paper);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-soft);
}

/* Quantity input field */
.qty-value {
  width: 60px;
  padding: 8px 12px;
  border: 1px solid var(--cream-dark);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  text-align: center;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
}

.qty-value:focus {
  outline: none;
  border-color: var(--brick);
}

/* Quantity adjustment buttons */
.qty-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--cream-dark);
  background: var(--paper);
  color: var(--ink);
  font-size: 1rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.qty-btn:hover {
  background-color: var(--cream-dark);
}

.qty-btn:active {
  background-color: var(--cream);
}

.qty-minus, .qty-plus {
  /* inherit from .qty-btn */
}

/* Remove item button */
.qty-remove {
  display: inline-block;
  padding: 8px 16px;
  background: transparent;
  color: var(--brick);
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.9rem;
  font-family: var(--font-body);
  transition: color 0.2s var(--ease), background-color 0.2s var(--ease);
}

.qty-remove:hover {
  color: var(--brick-dark);
  background-color: rgba(180, 87, 58, 0.08);
}

/* Responsive: mobile 390px */
@media (max-width: 640px) {
  .cart-main {
    padding: 18px;
  }

  .qty-btn {
    width: 32px;
    height: 32px;
    font-size: 0.9rem;
  }

  .qty-value {
    width: 50px;
    padding: 6px 8px;
    font-size: 0.9rem;
  }

  .qty-remove {
    padding: 6px 12px;
    font-size: 0.85rem;
  }
}

