/* ============================================================
   Pivovarna Lučka - design system
   Style: collage cut-out (torn paper, tape, layered scraps)
   ============================================================ */

:root {
  --cream: #f5efe1;
  --cream-2: #ecdfc5;
  --paper: #fffbf2;
  --rust: #b5502e;
  --rust-dark: #8a3a1f;
  --slate: #3c5068;
  --slate-dark: #27333f;
  --ink: #241d16;
  --ink-soft: #4a4136;
  --gold: #d8a24a;
  --shadow: 0 18px 38px -18px rgba(36, 29, 22, .45);
  --shadow-sm: 0 8px 18px -10px rgba(36, 29, 22, .4);
  --radius: 6px;
  --font-display: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --font-body: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-label: "Courier New", ui-monospace, monospace;
  --measure: 68ch;
  --container: 1240px;
}

* { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  background-image:
    radial-gradient(circle at 10% 15%, rgba(181, 80, 46, .05), transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(60, 80, 104, .06), transparent 45%);
}

img { max-width: 100%; display: block; }
a { color: var(--rust-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; }

.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--cream);
  padding: .6em 1em; z-index: 200;
}
.skip-link:focus { left: .5em; top: .5em; }

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

.icon { width: 1.3em; height: 1.3em; stroke: currentColor; vertical-align: -.25em; }
.icon--sm { width: 1em; height: 1em; }
.icon--lg { width: 2.4em; height: 2.4em; color: var(--rust); }

/* ---------- layout helpers ---------- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 1.4rem; }
.section { padding: clamp(2.6rem, 6vw, 5.4rem) 0; }
.section--tight { padding: clamp(1.6rem, 4vw, 3rem) 0; }
.grid { display: grid; gap: 1.6rem; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.stack { display: flex; flex-direction: column; gap: 1rem; }
.cluster { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; }
.mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; } .mt-3 { margin-top: 3rem; }
.mb-0 { margin-bottom: 0; }
.center { text-align: center; }
.eyebrow {
  font-family: var(--font-label); text-transform: uppercase; letter-spacing: .14em; font-size: .78rem;
  color: var(--rust-dark); display: inline-flex; align-items: center; gap: .5em; margin-bottom: .6em;
}
.eyebrow::before { content: ""; width: 1.4em; height: 2px; background: var(--rust); display: inline-block; }

/* ---------- collage textures ---------- */
.torn { position: relative; }
.torn::before {
  content: ""; position: absolute; inset: 0; background: inherit;
  clip-path: polygon(0% 2%, 4% 0%, 9% 1.5%, 15% 0%, 22% 1.8%, 29% .3%, 37% 1.6%, 45% 0%, 53% 1.4%, 61% 0%, 69% 1.8%, 77% .4%, 85% 1.6%, 92% 0%, 100% 1.5%, 100% 100%, 0% 100%);
  z-index: -1;
}
.tape {
  position: absolute; background: linear-gradient(90deg, rgba(216, 162, 74, .85), rgba(216, 162, 74, .6));
  box-shadow: var(--shadow-sm); opacity: .9;
}
.scrap {
  background: var(--paper); box-shadow: var(--shadow-sm); border-radius: 2px;
}

/* ---------- buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  font-family: var(--font-label); text-transform: uppercase; letter-spacing: .06em; font-size: .85rem;
  padding: .85em 1.5em; border-radius: var(--radius); border: 2px solid transparent; cursor: pointer;
  min-height: 44px; overflow: hidden; isolation: isolate; transition: color .25s, border-color .25s, transform .15s;
}
.btn::before {
  content: ""; position: absolute; inset: 0; width: 100%; left: -100%; z-index: -1;
  transition: left .35s ease;
}
.btn:active { transform: translateY(1px); }
.btn--rust { background: var(--rust); color: var(--cream); border-color: var(--rust); }
.btn--rust::before { background: var(--rust-dark); }
.btn--rust:hover::before, .btn--rust:focus-visible::before { left: 0; }
.btn--slate { background: var(--slate); color: var(--cream); border-color: var(--slate); }
.btn--slate::before { background: var(--slate-dark); }
.btn--slate:hover::before, .btn--slate:focus-visible::before { left: 0; }
.btn--outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--outline::before { background: var(--ink); }
.btn--outline:hover, .btn--outline:focus-visible { color: var(--cream); }
.btn--outline:hover::before, .btn--outline:focus-visible::before { left: 0; }
.btn--ghost { background: transparent; color: var(--cream); border-color: rgba(245, 239, 225, .55); }
.btn--ghost::before { background: rgba(245, 239, 225, .18); }
.btn--ghost:hover::before, .btn--ghost:focus-visible::before { left: 0; }
.btn--sm { padding: .5em 1em; font-size: .76rem; min-height: 36px; }
.btn--full { width: 100%; }
.btn[disabled] { opacity: .6; cursor: not-allowed; }
.btn-icon {
  display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px;
  border-radius: 50%; border: 2px solid var(--ink); background: var(--paper); cursor: pointer;
}

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100; background: var(--cream);
  border-bottom: 3px solid var(--ink); box-shadow: var(--shadow-sm);
}
.site-header__bar {
  max-width: var(--container); margin: 0 auto; padding: .7rem 1.4rem;
  display: flex; align-items: center; gap: 1.2rem;
}
.logo { display: flex; align-items: center; gap: .6rem; margin-right: auto; }
.logo__mark { width: 46px; height: 46px; flex: none; }
.logo__word { display: flex; flex-direction: column; font-family: var(--font-display); line-height: 1.05; color: var(--ink); }
.logo__word strong { font-size: 1.05rem; font-weight: 700; }
.logo__word em { font-style: normal; font-size: 1.35rem; color: var(--rust-dark); }

.nav-toggle {
  display: none; background: none; border: 2px solid var(--ink); border-radius: 50%; width: 44px; height: 44px;
  align-items: center; justify-content: center; cursor: pointer; position: relative; z-index: 10;
}
.nav-toggle__close { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__close { display: block; }

.site-nav { display: flex; align-items: center; gap: 1.4rem; }
.site-nav ul { display: flex; gap: 1.3rem; }
.site-nav a {
  color: var(--ink); font-family: var(--font-label); font-size: .86rem; text-transform: uppercase;
  letter-spacing: .04em; position: relative; padding: .3em 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-dark); }

.nav-more { position: relative; }
.nav-more summary {
  cursor: pointer; list-style: none; font-family: var(--font-label); font-size: .86rem; text-transform: uppercase;
  letter-spacing: .04em; display: flex; align-items: center; gap: .3em;
}
.nav-more summary::-webkit-details-marker { display: none; }
.nav-more summary .icon { width: .8em; height: .8em; transform: rotate(90deg); transition: transform .2s; }
.nav-more[open] summary .icon { transform: rotate(-90deg); }
.nav-more ul {
  position: absolute; top: 100%; left: 0; background: var(--paper); box-shadow: var(--shadow); padding: .6rem;
  border-radius: var(--radius); flex-direction: column; gap: .4rem; min-width: 170px; margin-top: .6rem;
}
.nav-more ul a { display: block; padding: .35em .3em; }

.cart-link { position: relative; color: var(--ink); display: inline-flex; }
.cart-badge {
  position: absolute; top: -8px; right: -12px; background: var(--rust); color: var(--cream);
  font-family: var(--font-label); font-size: .68rem; min-width: 18px; height: 18px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; padding: 0 3px;
}
.cart-badge.is-empty { background: var(--slate); opacity: .7; }
.cart-badge.bump { animation: cartBump .4s ease; }
@keyframes cartBump { 0% { transform: scale(1); } 40% { transform: scale(1.5); } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .cart-badge.bump { animation: none; } }

@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: fixed; inset: 0 0 0 auto; width: min(320px, 85vw); height: 100vh; background: var(--paper);
    flex-direction: column; align-items: flex-start; padding: 5.5rem 1.6rem 2rem; gap: 1.6rem;
    transform: translateX(100%); visibility: hidden; transition: transform .3s ease, visibility .3s;
    box-shadow: var(--shadow); overflow-y: auto;
  }
  .site-nav.is-open { transform: translateX(0); visibility: visible; }
  .site-nav ul { flex-direction: column; gap: 1rem; }
  .nav-more ul { position: static; box-shadow: none; padding: .6rem 0 0 .4rem; margin-top: .4rem; }
}

/* ---------- footer ---------- */
.site-footer { background: var(--slate-dark); color: var(--cream); margin-top: 4rem; }
.site-footer__top {
  max-width: var(--container); margin: 0 auto; padding: 3.4rem 1.4rem 2.4rem;
  display: grid; gap: 2.2rem; grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
}
.footer-brand p { color: rgba(245, 239, 225, .78); max-width: 32ch; }
.footer-nav h2, .footer-brand h2, .footer-contact h2 {
  font-family: var(--font-label); font-size: .82rem; text-transform: uppercase; letter-spacing: .1em;
  color: var(--gold); margin-bottom: .9em;
}
.footer-nav a, .footer-contact a { color: rgba(245, 239, 225, .85); display: inline-block; }
.footer-nav li, .footer-contact p { margin-bottom: .55em; }
.footer-nav a:hover, .footer-contact a:hover { color: var(--cream); text-decoration: underline; }
.footer-contact .icon { color: var(--gold); margin-right: .3em; }

.newsletter__row { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: .8rem; }
.newsletter input[type="email"] {
  flex: 1; min-width: 180px; padding: .7em .9em; border-radius: var(--radius); border: 2px solid rgba(245, 239, 225, .35);
  background: rgba(255, 255, 255, .06); color: var(--cream);
}
.newsletter input[type="email"]::placeholder { color: rgba(245, 239, 225, .55); }

.site-footer__bottom {
  border-top: 1px solid rgba(245, 239, 225, .18); padding: 1.2rem 1.4rem; max-width: var(--container); margin: 0 auto;
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .85rem;
  color: rgba(245, 239, 225, .65);
}

@media (max-width: 880px) { .site-footer__top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .site-footer__top { grid-template-columns: 1fr; } }

/* ---------- cookie banner ---------- */
.cookie-banner {
  position: fixed; left: 1rem; right: 1rem; bottom: -200px; z-index: 300; max-width: 640px; margin: 0 auto;
  background: var(--slate-dark); color: var(--cream); padding: 1.3rem 1.5rem; border-radius: var(--radius);
  box-shadow: var(--shadow); display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between;
  transition: bottom .4s ease;
}
.cookie-banner.is-visible { bottom: 1.2rem; }
.cookie-banner p { margin: 0; flex: 1 1 260px; font-size: .92rem; }
.cookie-banner a { color: var(--gold); text-decoration: underline; }
.cookie-banner__actions { display: flex; gap: .6rem; flex: none; }

/* ---------- reveal / motion ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease, clip-path .7s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }
.reveal--clip { clip-path: inset(0 100% 0 0); }
.reveal--clip.in-view { clip-path: inset(0 0 0 0); }
@media (prefers-reduced-motion: reduce) { .reveal { transition: none; opacity: 1; transform: none; clip-path: none; } }
.stagger > * { transition-delay: calc(var(--i, 0) * 90ms); }

/* ---------- page hero (inner pages) ---------- */
.page-hero {
  position: relative; padding: clamp(3rem, 8vw, 5.5rem) 0 clamp(2.4rem, 6vw, 3.6rem); overflow: hidden;
  background: var(--cream-2); border-bottom: 3px solid var(--ink);
}
.page-hero__inner { max-width: var(--container); margin: 0 auto; padding: 0 1.4rem; position: relative; z-index: 2; }
.page-hero h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); max-width: 22ch; }
.page-hero p { max-width: 50ch; font-size: 1.08rem; color: var(--ink-soft); }
.page-hero__tape { position: absolute; top: -10px; right: 8%; width: 140px; height: 36px; transform: rotate(6deg); }

/* ---------- breadcrumbs ---------- */
.breadcrumbs { font-family: var(--font-label); font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 1rem; color: var(--ink-soft); }
.breadcrumbs a { color: var(--ink-soft); }
.breadcrumbs a:hover { color: var(--rust-dark); }
.breadcrumbs .sep { margin: 0 .4em; opacity: .5; }

/* ---------- notices ---------- */
.notice {
  border: 2px solid var(--ink); border-radius: var(--radius); padding: 1rem 1.2rem; background: var(--paper);
  display: flex; gap: .7rem; align-items: flex-start; font-size: .95rem;
}
.notice--info { border-color: var(--slate); }
.notice--warn { border-color: var(--rust); }
.notice--ok { border-color: #4a7a4e; }
.notice .icon { flex: none; margin-top: .15em; }

/* ---------- prose (legal pages) ---------- */
.prose { max-width: var(--measure); }
.prose h2 { font-size: 1.5rem; margin-top: 2em; }
.prose h3 { font-size: 1.15rem; margin-top: 1.6em; }
.prose p, .prose li { color: var(--ink-soft); font-size: 1rem; }
.prose ul, .prose ol { padding-left: 1.3em; margin-bottom: 1.2em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose a { text-decoration: underline; }
.legal-layout { display: grid; grid-template-columns: 240px 1fr; gap: 2.4rem; align-items: start; }
@media (max-width: 760px) { .legal-layout { grid-template-columns: 1fr; } }
.legal-toc {
  position: sticky; top: 90px; background: var(--paper); border: 1px solid rgba(36, 29, 22, .15);
  border-radius: var(--radius); padding: 1.1rem 1.2rem;
}
.legal-toc h2 { font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; font-family: var(--font-label); }
.legal-toc ul { display: flex; flex-direction: column; gap: .5em; }
.legal-toc a { font-size: .88rem; color: var(--ink-soft); }
.legal-toc a:hover { color: var(--rust-dark); }

/* ---------- cards ---------- */
.card {
  background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden;
  display: flex; flex-direction: column; transition: transform .25s ease, box-shadow .25s ease;
  border: 1px solid rgba(36, 29, 22, .08);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card__media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--cream-2); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .card__media img { transform: scale(1.08); }
.card__body { padding: 1.1rem 1.2rem 1.3rem; display: flex; flex-direction: column; gap: .4rem; flex: 1; }
.card__cat { font-family: var(--font-label); font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--rust-dark); }
.card__title { font-size: 1.15rem; margin: 0; }
.card__desc { font-size: .9rem; color: var(--ink-soft); flex: 1; }
.card__foot { display: flex; align-items: center; justify-content: space-between; margin-top: .6rem; }
.card__price { font-family: var(--font-display); font-size: 1.2rem; color: var(--ink); }

/* ---------- product strip (scroll-snap) ---------- */
.product-strip {
  display: flex; gap: 1.2rem; overflow-x: auto; scroll-snap-type: x mandatory; padding: .4rem .2rem 1rem;
  -webkit-overflow-scrolling: touch;
}
.product-strip .card { scroll-snap-align: start; flex: 0 0 240px; }
@media (min-width: 760px) {
  .product-strip { overflow-x: visible; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
  .product-strip .card { flex: initial; }
}

/* ---------- forms ---------- */
.form-grid { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.field { display: flex; flex-direction: column; gap: .4em; }
.field--full { grid-column: 1 / -1; }
.field label { font-family: var(--font-label); font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  padding: .75em .9em; border: 2px solid rgba(36, 29, 22, .25); border-radius: var(--radius); background: var(--paper);
  font-family: inherit; font-size: 1rem; color: var(--ink); accent-color: var(--rust); min-height: 44px;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--rust); }
.field-error { color: var(--rust-dark); font-size: .82rem; min-height: 1.1em; }
.field.has-error input, .field.has-error textarea { border-color: var(--rust-dark); }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-message { font-size: .9rem; min-height: 1.4em; margin: .6em 0 0; }
.form-message--ok { color: #2f6b33; }
.form-message--error { color: var(--rust-dark); }
.checkbox-field { display: flex; align-items: flex-start; gap: .6em; font-size: .9rem; }
.checkbox-field input { width: 1.2em; height: 1.2em; margin-top: .15em; accent-color: var(--rust); }

/* ---------- faq ---------- */
.faq { display: flex; flex-direction: column; gap: .8rem; max-width: var(--measure); }
.faq-item { border: 2px solid var(--ink); border-radius: var(--radius); background: var(--paper); overflow: hidden; }
.faq-item summary {
  cursor: pointer; list-style: none; padding: 1.1rem 1.3rem; font-family: var(--font-display); font-size: 1.05rem;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .icon { flex: none; transition: transform .25s; }
.faq-item[open] summary .icon { transform: rotate(45deg); }
.faq-item .faq-answer { padding: 0 1.3rem 1.2rem; color: var(--ink-soft); }

/* ---------- product detail ---------- */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 2.6rem; align-items: start; }
@media (max-width: 760px) { .product-detail { grid-template-columns: 1fr; } }
.product-detail__media { position: relative; }
.product-detail__media img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.product-detail__price { font-family: var(--font-display); font-size: 2rem; margin: .4em 0; }
.product-detail__meta { display: flex; gap: 1.4rem; margin: 1rem 0; font-size: .9rem; color: var(--ink-soft); }
.qty-control { display: inline-flex; align-items: center; border: 2px solid var(--ink); border-radius: var(--radius); overflow: hidden; }
.qty-control button { border: none; background: var(--cream-2); width: 40px; height: 40px; cursor: pointer; font-size: 1.1rem; }
.qty-control input { width: 50px; text-align: center; border: none; border-left: 2px solid var(--ink); border-right: 2px solid var(--ink); height: 40px; font-size: 1rem; }

/* ---------- cart / checkout ---------- */
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th { text-align: left; font-family: var(--font-label); font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; padding: .6em; color: var(--ink-soft); border-bottom: 2px solid var(--ink); }
.cart-table td { padding: .9em .6em; border-bottom: 1px solid rgba(36, 29, 22, .15); vertical-align: middle; }
.cart-row__product { display: flex; gap: .8rem; align-items: center; }
.cart-row__product img { width: 64px; height: 64px; object-fit: cover; border-radius: var(--radius); flex: none; }
.cart-summary {
  background: var(--paper); border: 2px solid var(--ink); border-radius: var(--radius); padding: 1.4rem 1.5rem;
  display: flex; flex-direction: column; gap: .8rem; max-width: 380px;
}
.cart-summary__row { display: flex; justify-content: space-between; font-size: .95rem; }
.cart-summary__row--total { font-family: var(--font-display); font-size: 1.3rem; border-top: 1px solid rgba(36, 29, 22, .2); padding-top: .6rem; }
.cart-empty { text-align: center; padding: 3rem 1rem; color: var(--ink-soft); }

/* ---------- contact layout ---------- */
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 2.6rem; align-items: start; }
@media (max-width: 760px) { .contact-layout { grid-template-columns: 1fr; } }
.contact-card { background: var(--paper); border: 2px solid var(--ink); border-radius: var(--radius); padding: 1.4rem 1.6rem; }
.contact-card ul { display: flex; flex-direction: column; gap: .7rem; }
.contact-card li { display: flex; gap: .6em; align-items: flex-start; }
.contact-card .icon { color: var(--rust); flex: none; margin-top: .15em; }

/* ---------- hero (home) ---------- */
.hero { position: relative; padding: clamp(2.6rem, 7vw, 4rem) 0 clamp(3.4rem, 9vw, 6rem); overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 2.4rem; align-items: center; max-width: var(--container); margin: 0 auto; padding: 0 1.4rem; position: relative; z-index: 2; }
@media (max-width: 880px) { .hero__grid { grid-template-columns: 1fr; } }
.hero h1 { font-size: clamp(2.6rem, 6.4vw, 4.6rem); margin-bottom: .5em; }
.hero p.lede { font-size: 1.15rem; color: var(--ink-soft); max-width: 42ch; }
.hero__art { position: relative; aspect-ratio: 1/1; }
.hero__art svg { width: 100%; height: 100%; }
.hero__shape { transform-origin: center; }
.hero.motion-ready .hero__shape { animation: assemble .9s cubic-bezier(.2,.8,.2,1) both; }
.hero__shape:nth-child(1) { animation-delay: .05s; }
.hero__shape:nth-child(2) { animation-delay: .15s; }
.hero__shape:nth-child(3) { animation-delay: .25s; }
.hero__shape:nth-child(4) { animation-delay: .35s; }
.hero__shape:nth-child(5) { animation-delay: .45s; }
.hero__shape:nth-child(6) { animation-delay: .5s; }
@keyframes assemble { from { transform: translate(var(--fx, 0), var(--fy, -40px)) rotate(var(--fr, -25deg)) scale(.6); opacity: 0; } to { transform: translate(0, 0) rotate(0) scale(1); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .hero__shape { animation: none !important; opacity: 1; } }

.grain-overlay { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 1; opacity: .5; mix-blend-mode: multiply; }

/* ---------- story scroll (home) ---------- */
.story {
  padding: clamp(2.6rem, 6vw, 4.4rem) 0;
}
.story-scroll {
  display: flex; gap: 1.6rem; overflow-x: auto; padding: 1rem 1.4rem 1.6rem; scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}
.story-scroll::-webkit-scrollbar { height: 8px; }
.story-scroll::-webkit-scrollbar-thumb { background: var(--rust); border-radius: 4px; }
.story-step {
  flex: 0 0 min(78vw, 320px); scroll-snap-align: start; background: var(--paper); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); padding: 1.6rem 1.5rem; position: relative; border: 1px solid rgba(36,29,22,.08);
}
.story-step__num { font-family: var(--font-display); font-size: 2.6rem; color: var(--cream-2); -webkit-text-stroke: 1.5px var(--rust); position: absolute; top: .4rem; right: 1rem; }
.story-step h3 { font-size: 1.15rem; margin-top: 1.4rem; }
.story-step p { color: var(--ink-soft); font-size: .92rem; }
@media (min-width: 980px) {
  .story-scroll { overflow-x: auto; }
}

/* ---------- taste compass (signature feature) ---------- */
.compass {
  background: var(--slate-dark); color: var(--cream); border-radius: var(--radius); padding: clamp(1.8rem, 4vw, 2.8rem);
  display: grid; grid-template-columns: 1fr 1fr; gap: 2.2rem; position: relative; overflow: hidden;
}
@media (max-width: 820px) { .compass { grid-template-columns: 1fr; } }
.compass h2 { color: var(--cream); }
.compass p { color: rgba(245,239,225,.78); }
.compass__controls { display: flex; flex-direction: column; gap: 1.4rem; }
.compass__control label { display: flex; justify-content: space-between; font-family: var(--font-label); font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; margin-bottom: .5em; }
.compass__control input[type="range"] { width: 100%; accent-color: var(--gold); height: 6px; }
.compass__result {
  background: rgba(245, 239, 225, .06); border: 1px dashed rgba(245, 239, 225, .35); border-radius: var(--radius);
  padding: 1.4rem; display: flex; gap: 1rem; align-items: center;
}
.compass__result img { width: 72px; height: 72px; object-fit: cover; border-radius: 50%; flex: none; border: 3px solid var(--gold); }
.compass__result-name { font-family: var(--font-display); font-size: 1.3rem; margin: 0 0 .2em; color: var(--cream); }
.compass__result-desc { font-size: .88rem; color: rgba(245,239,225,.75); margin: 0; }

/* ---------- misc section dividers ---------- */
.divider { width: 100%; height: 40px; }
.divider path { fill: var(--cream); }

/* ---------- 404 ---------- */
.error-page { text-align: center; padding: clamp(3rem, 10vw, 6rem) 1rem; }
.error-page__code { font-family: var(--font-display); font-size: clamp(5rem, 16vw, 9rem); color: var(--rust); margin: 0; line-height: 1; }

/* ============================================================
   COMPONENTS:
   .container - max-width centered wrapper
   .section / .section--tight - vertical page rhythm padding
   .grid / .grid--2 / .grid--3 / .grid--4 - responsive auto-fit grids
   .stack - vertical flex gap container
   .cluster - horizontal wrap flex gap container
   .eyebrow - small uppercase label above headings
   .torn - element with a torn-paper top edge (clip-path)
   .tape - decorative diagonal tape strip
   .scrap - paper scrap card background
   .btn / .btn--rust / .btn--slate / .btn--outline / .btn--ghost / .btn--sm / .btn--full - buttons with fill-sweep hover
   .btn-icon - round icon-only button
   .site-header / .site-header__bar - sticky site header
   .logo / .logo__mark / .logo__word - header logo lockup
   .nav-toggle - mobile menu button
   .site-nav - header navigation (desktop row / mobile off-canvas panel)
   .nav-more - collapsible "legal" nav group (details/summary)
   .cart-link / .cart-badge - header cart icon + count badge
   .site-footer / .site-footer__top / .site-footer__bottom - footer layout
   .footer-brand / .footer-nav / .footer-contact - footer columns
   .newsletter / .newsletter__row - footer newsletter form
   .cookie-banner / .cookie-banner__actions - cookie consent banner
   .reveal / .reveal--clip / .in-view / .stagger - scroll reveal animation hooks
   .page-hero / .page-hero__inner / .page-hero__tape - inner page hero band
   .breadcrumbs - small breadcrumb trail
   .notice / .notice--info / .notice--warn / .notice--ok - callout boxes
   .prose - readable long-form legal/article text block
   .legal-layout / .legal-toc - legal page with sticky table of contents
   .card / .card__media / .card__body / .card__cat / .card__title / .card__desc / .card__foot / .card__price - product/content card
   .product-strip - horizontal scroll-snap card strip (catalog, home)
   .form-grid / .field / .field--full / .field-error / .hp-field / .form-message / .checkbox-field - form system
   .faq / .faq-item / .faq-answer - FAQ accordion (details/summary)
   .product-detail / .product-detail__media / .product-detail__price / .product-detail__meta - product page layout
   .qty-control - quantity stepper
   .cart-table / .cart-row__product / .cart-summary / .cart-empty - cart & checkout layout
   .contact-layout / .contact-card - contact page layout
   .hero / .hero__grid / .hero__art / .hero__shape / .motion-ready - home hero + assembling-logo motion
   .grain-overlay - fixed SVG noise texture overlay
   .story / .story-scroll / .story-step / .story-step__num - horizontal scroll story section
   .compass / .compass__controls / .compass__control / .compass__result - "Okusni kompas" signature feature
   .divider - decorative SVG section divider
   .error-page / .error-page__code - 404 page layout
   ============================================================ */

/* Additional styles for product and content pages */
.flavor-bar { display: flex; gap: .3em; margin: .5em 0; }
.flavor-dot { width: 1em; height: 1em; border-radius: 50%; background: var(--cream-2); }
.flavor-dot.active { background: var(--rust); }

.price { font-size: 1.3em; font-weight: bold; color: var(--rust); }

.ink-soft { color: var(--ink-soft); }

.error-page { min-height: 65vh; display: flex; align-items: center; text-align: center; }
.error-page__code { font-size: 7rem; font-family: var(--font-label); color: var(--cream-2); font-weight: bold; line-height: 1; margin-bottom: 1rem; }

.lede { font-size: 1.1em; line-height: 1.7; color: var(--ink-soft); margin-bottom: 1rem; }

.mt-0 { margin-top: 0; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }


/* ---------- footer note ---------- */
.site-footer__note {
  margin: 0;
  font-size: .92rem;
  color: rgba(245, 239, 225, .65);
}

/* ---------- logo svg paths ---------- */
.logo__paper {
  fill: none;
  stroke: var(--rust-dark);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.logo__hop {
  fill: none;
  stroke: var(--rust);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- quantity input ---------- */
.qty-input {
  width: 50px;
  text-align: center;
  padding: 0 .4em;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  height: 40px;
  font-size: 1rem;
  font-family: inherit;
  background: var(--paper);
  color: var(--ink);
  accent-color: var(--rust);
}

.qty-input:focus {
  border-color: var(--rust);
  outline: none;
}

/* ---------- remove button ---------- */
.remove-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .4em .7em;
  border: 1px solid var(--rust);
  background: transparent;
  color: var(--rust);
  border-radius: var(--radius);
  font-family: var(--font-label);
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  cursor: pointer;
  min-height: 36px;
  transition: background-color .25s, color .25s;
}

.remove-btn:hover {
  background: var(--rust);
  color: var(--cream);
}

.remove-btn:active {
  transform: translateY(1px);
}

/* wg-contrast-autofix */
div.container div.story-scroll article.story-step span.story-step__num { color: #111111 !important; }
