/* ===== Zmrzlina Vltava — design system ===== */
:root {
  --pine: #1b3a2f;
  --pine-light: #2f5947;
  --snow: #f7f5ee;
  --snow-dim: #ece7d9;
  --berry: #b5283f;
  --berry-dark: #8c1c30;
  --ink: #1c211d;
  --paper: #fffdf8;
  --max: 1180px;
  --radius: 14px;
  --serif: Georgia, "Iowan Old Style", "Times New Roman", serif;
  --sans: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: "SFMono-Regular", Consolas, monospace;
  --ease: cubic-bezier(.22,.9,.3,1);
}
html, body { overflow-x: clip; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--snow);
  line-height: 1.55;
}
img { max-width: 100%; display: block; }
a { color: var(--berry-dark); text-decoration: none; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }
.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: .5rem; top: .5rem; background: var(--pine); color: var(--snow); padding: .5rem 1rem; border-radius: 8px; z-index: 200; }

:focus-visible { outline: 3px solid var(--berry); outline-offset: 2px; border-radius: 4px; }

h1, h2, h3 { font-family: var(--serif); line-height: 1.05; margin: 0 0 .5em; font-weight: 400; }
h1 { font-size: clamp(2.6rem, 7vw, 5.4rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.6rem); }
p { margin: 0 0 1em; }
.muted { color: #5a5f58; }
.eyebrow { font-family: var(--mono); text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; color: var(--berry-dark); }

/* ===== Buttons ===== */
.btn {
  position: relative; overflow: hidden; display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--sans); font-size: .95rem; font-weight: 600; letter-spacing: .01em;
  padding: .85rem 1.5rem; border-radius: 999px; border: 1.5px solid currentColor;
  cursor: pointer; min-height: 44px; background: transparent; color: var(--pine);
  z-index: 0;
}
.btn::before {
  content: ""; position: absolute; inset: 0; width: 100%; left: -100%;
  background: currentColor; transition: left .35s var(--ease); z-index: -1;
}
.btn:hover::before, .btn:focus-visible::before { left: 0; }
.btn span, .btn svg { position: relative; z-index: 1; }
.btn--berry { background: var(--berry); border-color: var(--berry); color: var(--snow); }
.btn--berry::before { background: var(--berry-dark); }
.btn--berry:hover { color: var(--snow); }
.btn--pine { background: var(--pine); border-color: var(--pine); color: var(--snow); }
.btn--pine::before { background: var(--pine-light); }
.btn--ghost { background: transparent; border-color: rgba(247,245,238,.6); color: var(--snow); }
.btn--ghost::before { background: rgba(247,245,238,.18); }
.btn--ghost:hover { color: var(--snow); }
.btn--outline { color: var(--pine); border-color: var(--pine); }
.btn--outline::before { background: var(--pine); }
.btn--outline:hover { color: var(--snow); }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* ===== Header ===== */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--snow); border-bottom: 1px solid rgba(27,58,47,.12); }
.site-header__inner { display: flex; align-items: center; gap: 1.5rem; padding: .85rem 1.25rem; }
.brand { display: flex; align-items: center; gap: .6rem; color: var(--pine); margin-right: auto; }
.brand__mark { flex-shrink: 0; }
.brand__word { display: none; }
.brand__text { font-family: var(--serif); font-size: 1.3rem; }
.nav-toggle { display: none; background: none; border: none; color: var(--pine); cursor: pointer; min-width: 44px; min-height: 44px; }
.primary-nav ul { display: flex; gap: 1.4rem; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.primary-nav__legal { display: none; }
.primary-nav a { color: var(--pine); font-weight: 600; font-size: .95rem; position: relative; padding: .3rem 0; }
.primary-nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -2px; height: 2px; background: var(--berry); transition: right .3s var(--ease); }
.primary-nav a:hover::after, .primary-nav a.is-active::after { right: 0; }
.primary-nav a.is-active { color: var(--berry-dark); }
.cart-link { position: relative; color: var(--pine); display: inline-flex; min-width: 44px; min-height: 44px; align-items: center; justify-content: center; }
.cart-link__count { position: absolute; top: 0; right: 0; background: var(--berry); color: var(--snow); font-size: .68rem; font-weight: 700; min-width: 16px; height: 16px; border-radius: 999px; display: flex; align-items: center; justify-content: center; padding: 0 3px; transition: transform .25s var(--ease); }
.cart-link__count.bump { animation: bump .35s var(--ease); }
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.5); } 100% { transform: scale(1); } }

@media (max-width: 860px) {
  .brand__text { display: none; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .primary-nav { position: fixed; inset: 0 0 0 auto; width: min(320px, 85vw); background: var(--pine); color: var(--snow); padding: 5.5rem 1.5rem 2rem; transform: translateX(100%); visibility: hidden; transition: transform .35s var(--ease); overflow-y: auto; }
  .primary-nav.is-open { transform: translateX(0); visibility: visible; }
  .primary-nav ul { flex-direction: column; gap: 1rem; }
  .primary-nav a { color: var(--snow); }
  .primary-nav__legal { display: flex; flex-direction: column; gap: .7rem; margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid rgba(247,245,238,.2); list-style: none; padding-left: 0; }
  .primary-nav__legal a { color: rgba(247,245,238,.75); font-size: .85rem; font-weight: 400; }
}

/* ===== Reveal / motion ===== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease), clip-path .7s var(--ease); }
.reveal.in-view { opacity: 1; transform: none; }
.reveal-stagger > * { transition-delay: calc(var(--i, 0) * 90ms); }
@media (prefers-reduced-motion: reduce) {
  .reveal, html { transition: none !important; scroll-behavior: auto !important; }
}

/* ===== Hero ===== */
.hero { position: relative; overflow: hidden; padding: 3rem 0 4rem; background: var(--pine); color: var(--snow); }
.hero__grain { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .25; pointer-events: none; mix-blend-mode: overlay; }
.hero__inner { position: relative; max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; display: grid; grid-template-columns: 1.1fr .9fr; gap: 2rem; align-items: center; }
.hero__layer { position: relative; }
.hero__layer--text { z-index: 2; }
.hero h1 { color: var(--snow); }
.hero__photo { position: relative; aspect-ratio: 4/5; border-radius: var(--radius); overflow: hidden; filter: grayscale(.15) sepia(.08); transform: translateX(0); }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; }
.hero__badge { position: absolute; bottom: -18px; left: -18px; width: 92px; height: 92px; z-index: 3; }
.hero .reveal { transition-duration: 1s; }
@media (min-width: 640px) {
  .hero__layer--text { animation: slideIn .9s var(--ease) both; }
  .hero__layer--photo { animation: slideInPhoto .9s var(--ease) both; }
}
@keyframes slideIn { from { transform: translateX(-40px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes slideInPhoto { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .hero__layer--text, .hero__layer--photo { animation: none; } }
@media (max-width: 760px) { .hero__inner { grid-template-columns: 1fr; } }

/* ===== Section scaffolding ===== */
.section { padding: 4.5rem 0; }
.section--pine { background: var(--pine); color: var(--snow); }
.section--pine h2 { color: var(--snow); }
.section-head { max-width: 640px; margin: 0 0 2.5rem; }
.numbered-section { counter-increment: section; }
.section-number { font-family: var(--mono); font-size: .85rem; color: var(--berry-dark); }
.section--pine .section-number { color: #e7b8c0; }

/* ===== Divider ===== */
.divider { display: block; width: 100%; height: 36px; color: var(--pine); opacity: .4; }

/* ===== Horizontal scroll story (desktop) ===== */
.story { overflow-x: auto; scroll-snap-type: x mandatory; display: flex; gap: 1.5rem; padding: .5rem 1.25rem 1.5rem; -webkit-overflow-scrolling: touch; }
.story::-webkit-scrollbar { height: 8px; }
.story::-webkit-scrollbar-thumb { background: var(--pine-light); border-radius: 8px; }
.story__item { scroll-snap-align: start; flex: 0 0 min(320px, 80vw); background: var(--paper); border-radius: var(--radius); padding: 1.5rem; border: 1px solid rgba(27,58,47,.1); }
.story__item img { border-radius: calc(var(--radius) - 4px); aspect-ratio: 4/3; object-fit: cover; margin-bottom: 1rem; }
@media (min-width: 900px) {
  .story { overflow: visible; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .story__item { flex: initial; min-width: 0; }
}

/* ===== Product grid / cards ===== */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1.5rem; }
.product-strip { display: flex; gap: 1.25rem; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: .5rem; }
@media (min-width: 760px) { .product-strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px,1fr)); overflow: visible; } }
.product-card { scroll-snap-align: start; flex: 0 0 230px; background: var(--paper); border-radius: var(--radius); overflow: hidden; border: 1px solid rgba(27,58,47,.1); transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.product-card:hover { transform: translateY(-6px); box-shadow: 0 18px 30px -18px rgba(27,58,47,.35); }
.product-card__media { 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__body { padding: 1rem 1.1rem 1.3rem; }
.product-card__cat { font-family: var(--mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--berry-dark); }
.product-card__price { font-weight: 700; color: var(--pine); }
.product-card__row { display: flex; justify-content: space-between; align-items: center; margin-top: .6rem; }

/* ===== Flavor compass ===== */
.compass { display: grid; grid-template-columns: auto 1fr; gap: 2.5rem; align-items: center; }
.compass__dial { touch-action: none; cursor: pointer; }
.compass__results { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: .5rem; }
.compass__results a { font-weight: 700; color: var(--snow); border-bottom: 1px solid rgba(247,245,238,.4); }
.compass__label { font-family: var(--serif); font-size: 1.3rem; }
@media (max-width: 700px) { .compass { grid-template-columns: 1fr; justify-items: center; text-align: center; } }

/* ===== Footer ===== */
.site-footer { background: var(--pine); color: var(--snow); padding: 3rem 0 1.5rem; position: relative; }
.site-footer__divider { color: rgba(247,245,238,.3); }
.site-footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.3fr; gap: 2rem; padding-top: 1rem; }
.site-footer h3 { font-family: var(--sans); font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; color: #e7b8c0; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.site-footer a { color: rgba(247,245,238,.85); }
.site-footer a:hover { color: var(--snow); text-decoration: underline; }
.footer-email { display: inline-block; margin-top: .75rem; font-weight: 700; color: var(--snow); }
.newsletter-form__row { display: flex; gap: .5rem; }
.newsletter-form__row input { flex: 1; min-width: 0; border-radius: 999px; border: 1.5px solid rgba(247,245,238,.4); background: transparent; color: var(--snow); padding: .6rem 1rem; min-height: 44px; }
.newsletter-form__row input::placeholder { color: rgba(247,245,238,.6); }
.newsletter-form__row .btn { padding: .6rem; min-width: 44px; justify-content: center; }
.site-footer__bottom { display: flex; justify-content: space-between; margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid rgba(247,245,238,.2); font-size: .85rem; flex-wrap: wrap; gap: .5rem; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-feedback { min-height: 1.2em; font-size: .85rem; margin: .4rem 0 0; }
.form-feedback--ok { color: #9fdcb4; }
.form-feedback--err { color: #f4a3af; }
@media (max-width: 860px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .site-footer__grid { grid-template-columns: 1fr; } }

/* ===== Cookie banner ===== */
.cookie-banner { position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 200; background: var(--pine); color: var(--snow); border-radius: var(--radius); box-shadow: 0 20px 40px -20px rgba(0,0,0,.5); }
.cookie-banner__inner { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; padding: 1.25rem 1.5rem; }
.cookie-banner a { color: var(--snow); text-decoration: underline; }
.cookie-banner__actions { display: flex; gap: .75rem; flex-wrap: wrap; }

/* ===== Inner-page component library (used by the 11 inner pages) ===== */
.page-hero { background: var(--pine); color: var(--snow); padding: 3.5rem 0 3rem; position: relative; overflow: hidden; }
.page-hero h1 { color: var(--snow); }
.page-hero__eyebrow { color: #e7b8c0; }

.breadcrumbs { list-style: none; display: flex; gap: .4rem; padding: 0; margin: 0 0 1rem; font-size: .85rem; color: rgba(247,245,238,.75); flex-wrap: wrap; }
.breadcrumbs li:not(:last-child)::after { content: "/"; margin-left: .4rem; }
.breadcrumbs a { color: rgba(247,245,238,.9); }

.prose { max-width: 680px; margin: 0 auto; font-size: 1.02rem; }
.prose h2 { margin-top: 2em; font-size: 1.5rem; }
.prose h3 { font-size: 1.15rem; margin-top: 1.5em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose a { text-decoration: underline; }

.legal-toc { background: var(--paper); border: 1px solid rgba(27,58,47,.12); border-radius: var(--radius); padding: 1.25rem 1.5rem; max-width: 680px; margin: 0 auto 2rem; }
.legal-toc h2 { font-size: 1rem; margin-bottom: .6em; }
.legal-toc ol { margin: 0; padding-left: 1.2em; }

.notice { border-radius: var(--radius); padding: 1rem 1.25rem; background: var(--snow-dim); border: 1px solid rgba(27,58,47,.15); margin: 1.5rem 0; }
.notice--berry { background: #fbe4e8; border-color: rgba(181,40,63,.3); }
.notice--pine { background: #e4ede8; border-color: rgba(27,58,47,.25); }

.form-grid { display: grid; gap: 1.1rem; max-width: 560px; }
.form-grid--wide { max-width: 100%; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); }
.field { display: flex; flex-direction: column; gap: .35rem; }
.field label { font-weight: 600; font-size: .9rem; }
.field input, .field select, .field textarea {
  min-height: 44px; border-radius: 10px; border: 1.5px solid rgba(27,58,47,.3); padding: .6rem .8rem;
  font-family: var(--sans); font-size: 1rem; background: var(--paper); accent-color: var(--berry);
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--berry); }
.field-error { color: var(--berry-dark); font-size: .82rem; min-height: 1.2em; }
.field:has(input:invalid:not(:placeholder-shown)) input { border-color: var(--berry-dark); }

.faq { max-width: 720px; margin: 0 auto; display: grid; gap: .75rem; }
.faq-item { border: 1px solid rgba(27,58,47,.15); border-radius: var(--radius); background: var(--paper); padding: .25rem 1.25rem; }
.faq-item summary { cursor: pointer; font-weight: 700; padding: 1rem 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.4rem; color: var(--berry); flex-shrink: 0; }
.faq-item[open] summary::after { content: "–"; }
.faq-item p { padding-bottom: 1rem; margin: 0; color: #444940; }

.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: start; }
.product-detail__media { aspect-ratio: 4/3; border-radius: var(--radius); overflow: hidden; }
.product-detail__media img { width: 100%; height: 100%; object-fit: cover; }
.product-detail__price { font-size: 1.6rem; font-family: var(--serif); color: var(--berry-dark); }
.qty-row { display: flex; align-items: center; gap: .75rem; margin: 1.25rem 0; }
.qty-row button { width: 40px; height: 40px; border-radius: 999px; border: 1.5px solid var(--pine); background: none; font-size: 1.1rem; cursor: pointer; }
.qty-row input { width: 3.5rem; text-align: center; min-height: 40px; border-radius: 8px; border: 1.5px solid rgba(27,58,47,.3); }
@media (max-width: 760px) { .product-detail { grid-template-columns: 1fr; } }

.cart-table { width: 100%; border-collapse: collapse; margin-bottom: 2rem; }
.cart-table th, .cart-table td { padding: .9rem .5rem; border-bottom: 1px solid rgba(27,58,47,.12); text-align: left; vertical-align: middle; }
.cart-table img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; }
.cart-table .cart-row__name { display: flex; align-items: center; gap: .75rem; font-weight: 600; }
.cart-summary { max-width: 360px; margin-left: auto; background: var(--paper); border: 1px solid rgba(27,58,47,.12); border-radius: var(--radius); padding: 1.5rem; }
.cart-summary__row { display: flex; justify-content: space-between; padding: .4rem 0; }
.cart-summary__row--total { font-weight: 700; font-size: 1.1rem; border-top: 1px solid rgba(27,58,47,.15); margin-top: .5rem; padding-top: .75rem; }
.cart-empty { text-align: center; padding: 3rem 0; }

.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.contact-info { display: grid; gap: 1.25rem; }
.contact-info li { display: flex; gap: .75rem; align-items: flex-start; list-style: none; }
.contact-info svg { color: var(--berry); flex-shrink: 0; margin-top: 2px; }
@media (max-width: 760px) { .contact-layout { grid-template-columns: 1fr; } }

/* ===== Utilities ===== */
.grid { display: grid; gap: 1.5rem; }
.grid, .grid > * { min-width: 0; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 760px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; } .mt-3 { margin-top: 3rem; }
.mb-0 { margin-bottom: 0; } .mb-1 { margin-bottom: 1rem; } .mb-2 { margin-bottom: 2rem; }
.text-center { text-align: center; }
.flex { display: flex; } .items-center { align-items: center; } .gap-1 { gap: 1rem; } .gap-2 { gap: 2rem; }
.sr-only-focusable:focus { position: static; width: auto; height: auto; }

/* COMPONENTS: .class - what it is
.wrap - centered max-width content container
.btn / .btn--berry / .btn--pine / .btn--ghost / .btn--outline - button variants with fill-sweep hover
.site-header / .primary-nav / .nav-toggle / .cart-link - site header & navigation
.hero / .hero__inner / .hero__layer / .hero__photo / .hero__badge - home hero with sliding paper layers
.reveal / .reveal-stagger / .in-view - scroll-reveal animation hooks (JS adds .in-view)
.section / .section--pine / .section-head / .numbered-section / .section-number - page section scaffolding
.divider - decorative SVG rule between sections
.story / .story__item - horizontal scroll-snap story section (desktop)
.product-grid / .product-strip / .product-card - product listing grid and scroll-snap strip
.compass / .compass__dial / .compass__results / .compass__label - the Chuťový kompas flavor-finder widget
.site-footer / .newsletter-form / .hp-field / .form-feedback - footer, newsletter signup, honeypot, form status text
.cookie-banner - cookie consent banner
.page-hero / .page-hero__eyebrow - inner-page hero band
.breadcrumbs - breadcrumb trail
.prose - long-form legal/article text with readable measure
.legal-toc - table of contents box for legal pages
.notice / .notice--berry / .notice--pine - callout/alert box
.form-grid / .form-grid--wide / .field / .field-error - form layout and field wrapper
.faq / .faq-item - FAQ accordion (details/summary)
.product-detail / .product-detail__media / .product-detail__price / .qty-row - product detail page layout
.cart-table / .cart-summary / .cart-empty - cart/checkout table and summary box
.contact-layout / .contact-info - contact page two-column layout
.grid / .grid-2 / .grid-3 - utility grid layouts
.mt-*, .mb-*, .gap-*, .text-center, .flex, .items-center - spacing/layout utilities
*/

/* ===== Site footer brand ===== */
.site-footer__brand { display: flex; flex-direction: column; gap: .75rem; }
.site-footer__brand p { margin: 0; }

/* ===== Site footer columns ===== */
.site-footer__col { display: flex; flex-direction: column; gap: .75rem; }

/* ===== Product detail compass ===== */
.product-detail__compass { display: flex; justify-content: center; align-items: center; }

/* wg-contrast-autofix */
div ul.compass__results li span.muted { color: #ffffff !important; }
footer.site-footer div.wrap.site-footer__grid div.site-footer__brand p.muted { color: #ffffff !important; }
footer.site-footer div.wrap.site-footer__grid div.site-footer__col p.muted { color: #ffffff !important; }
footer.site-footer div.wrap.site-footer__bottom p.muted { color: #ffffff !important; }
