/* Macháčkovy Dobroty - design system. Folk-art ornament on linen. */
:root {
  --berry: #853D50;
  --honey: #DFAD58;
  --cream: #F9F1E4;
  --orchard: #607A53;
  --wood: #49372F;
  --peach: #F1D4BE;
  --white: #FFFFFF;
  --sky: #5FA8C9;
  --sun: #E8B23B;

  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: Inter, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --radius-s: 6px;
  --radius-m: 14px;
  --radius-l: 28px;
  --shadow-card: 0 10px 30px -14px rgba(73, 55, 47, 0.35);
  --shadow-lift: 0 18px 38px -16px rgba(73, 55, 47, 0.45);
  --measure: 68ch;
  --container: 1200px;
}

html, body { overflow-x: clip; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--wood);
  line-height: 1.6;
  font-size: 16px;
}
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; color: var(--berry); line-height: 1.15; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 4px; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 clamp(1rem, 4vw, 2.5rem); }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--cream);
  border-bottom: 3px solid var(--honey);
}
.site-header__inner {
  max-width: var(--container); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: .75rem clamp(1rem, 4vw, 2.5rem);
  gap: 1rem;
}
.logo { display: flex; align-items: center; gap: .6rem; flex-shrink: 0; }
.logo__mark { flex-shrink: 0; }
.logo__word { display: flex; flex-direction: column; font-family: var(--font-display); line-height: 1.05; }
.logo__word strong { font-size: 1.05rem; color: var(--berry); font-weight: 700; }
.logo__word em { font-size: .85rem; color: var(--orchard); font-style: normal; letter-spacing: .04em; }
.logo__word--footer strong { color: var(--honey); }
.logo__word--footer em { color: var(--peach); }

.nav-toggle { background: none; border: none; color: var(--berry); display: none; padding: .4rem; }
.nav-close { display: none; background: none; border: none; color: var(--berry); position: absolute; top: 1rem; right: 1rem; }

.site-nav { display: flex; align-items: center; gap: 1.5rem; }
.nav-list { display: flex; gap: 1.3rem; flex-wrap: wrap; }
.nav-list a { font-weight: 600; font-size: .95rem; position: relative; padding: .3rem 0; }
.nav-list a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0;
  background: var(--berry); transition: width .25s ease;
}
.nav-list a:hover::after, .nav-list a.is-active::after { width: 100%; }
.nav-list a.is-active { color: var(--berry); }
.cart-link { position: relative; display: inline-flex; color: var(--berry); min-width: 44px; min-height: 44px; align-items: center; justify-content: center; }
.cart-count {
  position: absolute; top: -2px; right: -6px; background: var(--berry); color: var(--white);
  font-size: .7rem; font-weight: 700; min-width: 18px; height: 18px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center; padding: 0 4px;
}
.cart-count--bump { animation: bump .35s ease; }
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.4); } 100% { transform: scale(1); } }

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: fixed; top: 0; right: 0; height: 100vh; width: min(320px, 85vw);
    background: var(--cream); flex-direction: column; align-items: flex-start;
    padding: 4rem 1.5rem 2rem; gap: 1.5rem;
    transform: translateX(100%); visibility: hidden;
    transition: transform .3s ease, visibility .3s ease;
    border-left: 3px solid var(--honey);
  }
  .site-nav.is-open { transform: translateX(0); visibility: visible; }
  .nav-list { flex-direction: column; gap: 1.2rem; }
  .nav-close { display: inline-flex; }
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  position: relative; overflow: hidden; isolation: isolate;
  padding: .85rem 1.6rem; border-radius: var(--radius-s); font-weight: 700;
  font-size: .95rem; border: 2px solid transparent; min-height: 44px;
  transition: color .25s ease, transform .15s ease;
}
.btn::before {
  content: ""; position: absolute; inset: 0; left: -100%; width: 100%;
  background: var(--wood); transition: left .3s ease; z-index: -1;
}
.btn:hover::before { left: 0; }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--berry); color: var(--white); }
.btn--primary:hover { color: var(--white); }
.btn--secondary { background: var(--honey); color: var(--wood); }
.btn--secondary::before { background: var(--berry); }
.btn--secondary:hover { color: var(--white); }
.btn--ghost { background: transparent; border-color: var(--wood); color: var(--wood); }
.btn--ghost::before { background: var(--wood); }
.btn--ghost:hover { color: var(--cream); }
.btn--small { padding: .55rem 1.1rem; font-size: .85rem; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: not-allowed; }

/* ===== Hero / page-hero ===== */
.page-hero {
  padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(2rem, 5vw, 3.5rem);
  background: linear-gradient(180deg, var(--peach), var(--cream));
  position: relative; overflow: hidden;
}
.page-hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); max-width: 18ch; }
.page-hero p { max-width: 60ch; font-size: 1.1rem; }
.breadcrumbs { display: flex; gap: .4rem; flex-wrap: wrap; font-size: .85rem; margin-bottom: 1rem; color: var(--orchard); }
.breadcrumbs a { text-decoration: underline; }
.breadcrumbs span[aria-current] { color: var(--berry); font-weight: 600; }

/* ===== Reveal / motion ===== */
.reveal { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(26px); clip-path: inset(0 0 12% 0); transition: opacity .7s ease, transform .7s ease, clip-path .7s 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; }
}

/* ===== Cards / card stack ===== */
.card {
  background: var(--white); border-radius: var(--radius-m); box-shadow: var(--shadow-card);
  padding: 1.5rem; transition: transform .3s ease, box-shadow .3s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); }
.card-img-wrap { overflow: hidden; border-radius: var(--radius-s); aspect-ratio: 4/3; margin-bottom: 1rem; }
.card-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .card-img-wrap img { transform: scale(1.07); }

.card-stack { display: grid; gap: 1.5rem; }
@media (min-width: 720px) {
  .card-stack { grid-template-columns: repeat(3, 1fr); }
  .card-stack--fan .card { transform: rotate(var(--r, 0deg)) translateY(10px); }
  .card-stack--fan .card.in-view { transform: rotate(0deg) translateY(0); transition: transform .8s cubic-bezier(.2,.8,.2,1); }
}

.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

.scroll-strip {
  display: flex; gap: 1.2rem; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: .5rem;
}
.scroll-strip > * { scroll-snap-align: start; flex: 0 0 240px; }

/* ===== Home hero ===== */
.hero { padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(1.5rem, 4vw, 3rem); background: linear-gradient(180deg, var(--peach), var(--cream)); overflow: hidden; }
.hero__inner { display: grid; gap: 2rem; align-items: center; grid-template-columns: 1fr; }
@media (min-width: 860px) { .hero__inner { grid-template-columns: 1.1fr 1fr; } }
.hero__title { font-size: clamp(2.3rem, 6vw, 4.2rem); max-width: 14ch; }
.hero__title span { display: inline-block; opacity: 0; transform: translateY(.6em); animation: riseWord .6s ease forwards; }
@media (prefers-reduced-motion: reduce) { .hero__title span { opacity: 1; transform: none; animation: none; } }
.hero__title span:nth-child(1) { animation-delay: .05s; } .hero__title span:nth-child(2) { animation-delay: .15s; }
.hero__title span:nth-child(3) { animation-delay: .25s; } .hero__title span:nth-child(4) { animation-delay: .35s; }
.hero__title span:nth-child(5) { animation-delay: .45s; } .hero__title span:nth-child(6) { animation-delay: .55s; }
@keyframes riseWord { to { opacity: 1; transform: translateY(0); } }
.hero__art { max-width: 420px; margin: 0 auto; }
.hero__svg circle:first-child { animation: breathe 7s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .hero__svg circle:first-child { animation: none; } }
@keyframes breathe { 0%, 100% { r: 150; } 50% { r: 142; } }

/* ===== Sections / dividers ===== */
.section { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.section--alt { background: var(--white); }
.section-head { max-width: 46ch; margin-bottom: 2rem; }
.section-head p { color: var(--wood); opacity: .85; }
.divider { width: 100%; height: 40px; display: block; color: var(--honey); }

/* ===== Product strip / price ===== */
.price { font-weight: 800; color: var(--berry); font-size: 1.15rem; }
.price--compare { text-decoration: line-through; opacity: .5; font-weight: 500; margin-right: .4rem; font-size: 1rem; }
.badge { display: inline-flex; align-items: center; gap: .3rem; background: var(--orchard); color: var(--white); font-size: .72rem; font-weight: 700; padding: .25rem .6rem; border-radius: 20px; text-transform: uppercase; letter-spacing: .04em; }
.badge--gift { background: var(--honey); color: var(--wood); }
.badge--sold-out { background: var(--wood); color: var(--peach); }

/* ===== Forms ===== */
.form-grid { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.field { display: flex; flex-direction: column; gap: .35rem; }
.field--full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: .9rem; }
.field input, .field select, .field textarea {
  font: inherit; padding: .75rem .9rem; border: 2px solid var(--peach); border-radius: var(--radius-s);
  background: var(--white); color: var(--wood); accent-color: var(--berry); min-height: 44px;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--berry); }
.field textarea { min-height: 120px; resize: vertical; }
.field-error { color: var(--berry); font-size: .82rem; min-height: 1.1em; }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.form-msg { min-height: 1.4em; font-size: .9rem; font-weight: 600; }
.form-msg--ok { color: var(--orchard); }
.form-msg--error { color: var(--berry); }

.newsletter-form__row { display: flex; gap: .5rem; flex-wrap: wrap; }
.newsletter-form label { color: inherit; font-weight: 700; display: block; margin-bottom: .4rem; }
.newsletter-form input[type="email"] { flex: 1; min-width: 160px; border: 2px solid var(--honey); border-radius: var(--radius-s); padding: .65rem .8rem; }

/* ===== Notice / FAQ ===== */
.notice { background: var(--peach); border-left: 5px solid var(--berry); padding: 1rem 1.3rem; border-radius: var(--radius-s); margin: 1.5rem 0; }
.notice--info { border-color: var(--sky); background: #e9f3f8; }

.faq { max-width: var(--measure); margin: 0 auto; display: grid; gap: .8rem; }
.faq-item { background: var(--white); border-radius: var(--radius-s); padding: .3rem 1.2rem; box-shadow: var(--shadow-card); }
.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.3rem; color: var(--berry); flex-shrink: 0; }
.faq-item[open] summary::after { content: "−"; }
.faq-item p { padding-bottom: 1rem; opacity: .9; }

/* ===== Prose / legal ===== */
.prose { max-width: var(--measure); margin: 0 auto; }
.prose h2 { margin-top: 2em; font-size: 1.5rem; }
.prose h3 { font-size: 1.15rem; color: var(--wood); }
.prose ul { list-style: disc; padding-left: 1.4em; margin-bottom: 1em; }
.prose li { margin-bottom: .4em; }
.legal-toc { background: var(--white); border-radius: var(--radius-m); padding: 1.5rem; margin-bottom: 2rem; box-shadow: var(--shadow-card); }
.legal-toc h2 { font-size: 1.1rem; margin-top: 0; }
.legal-toc ol { list-style: decimal; padding-left: 1.4em; }
.legal-toc li { margin-bottom: .3em; }
.legal-toc a { text-decoration: underline; }

/* ===== Product detail ===== */
.product-detail { display: grid; gap: 2.5rem; grid-template-columns: 1fr; }
@media (min-width: 860px) { .product-detail { grid-template-columns: 1fr 1fr; } }
.product-detail__gallery img { border-radius: var(--radius-m); aspect-ratio: 4/3; object-fit: cover; box-shadow: var(--shadow-card); }
.product-detail__meta { display: flex; flex-direction: column; gap: 1rem; }
.product-detail__specs { display: grid; gap: .5rem; background: var(--white); border-radius: var(--radius-s); padding: 1.2rem; }
.product-detail__specs dt { font-weight: 700; color: var(--orchard); font-size: .85rem; text-transform: uppercase; letter-spacing: .03em; }
.product-detail__specs dd { margin: 0 0 .7rem; }
.qty-stepper { display: inline-flex; align-items: center; border: 2px solid var(--peach); border-radius: var(--radius-s); }
.qty-stepper button { background: none; border: none; width: 44px; height: 44px; font-size: 1.1rem; color: var(--berry); }
.qty-stepper input { width: 50px; border: none; text-align: center; font: inherit; }

/* ===== Cart / checkout ===== */
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th { text-align: left; font-size: .85rem; text-transform: uppercase; color: var(--orchard); padding-bottom: .6rem; border-bottom: 2px solid var(--peach); }
.cart-table td { padding: 1rem 0; border-bottom: 1px solid var(--peach); vertical-align: middle; }
.cart-table__product { display: flex; align-items: center; gap: .8rem; }
.cart-table__product img { width: 64px; height: 64px; border-radius: var(--radius-s); object-fit: cover; }
.cart-summary { background: var(--white); border-radius: var(--radius-m); padding: 1.5rem; box-shadow: var(--shadow-card); display: grid; gap: .6rem; }
.cart-summary__row { display: flex; justify-content: space-between; }
.cart-summary__row--total { font-weight: 800; font-size: 1.2rem; color: var(--berry); border-top: 2px solid var(--peach); padding-top: .6rem; }
.cart-empty { text-align: center; padding: 3rem 0; }

/* ===== Contact layout ===== */
.contact-layout { display: grid; gap: 2.5rem; grid-template-columns: 1fr; }
@media (min-width: 860px) { .contact-layout { grid-template-columns: 1.3fr 1fr; } }
.contact-info { background: var(--white); border-radius: var(--radius-m); padding: 1.8rem; box-shadow: var(--shadow-card); display: flex; flex-direction: column; gap: 1rem; }
.contact-info a { display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; }

/* ===== Flavor compass (signature feature) ===== */
.compass {
  background: var(--wood); color: var(--cream); border-radius: var(--radius-l);
  padding: clamp(1.5rem, 4vw, 3rem); display: grid; gap: 1.5rem; position: relative; overflow: hidden;
}
.compass h2 { color: var(--honey); }
.compass__options { display: grid; gap: .8rem; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.compass__option {
  background: rgba(249,241,228,.08); border: 2px solid rgba(249,241,228,.25); border-radius: var(--radius-s);
  padding: .9rem; text-align: left; color: var(--cream); font-weight: 600; min-height: 44px;
  transition: background .2s ease, border-color .2s ease;
}
.compass__option:hover, .compass__option.is-active { background: var(--honey); color: var(--wood); border-color: var(--honey); }
.compass__result { background: var(--cream); color: var(--wood); border-radius: var(--radius-s); padding: 1.2rem; min-height: 90px; display: flex; align-items: center; gap: 1rem; }
.compass__result-icon { flex-shrink: 0; color: var(--berry); }

/* ===== Cookie banner ===== */
.cookie-banner {
  position: fixed; bottom: 1rem; left: 1rem; right: 1rem; max-width: 640px; margin: 0 auto;
  background: var(--wood); color: var(--cream); border-radius: var(--radius-m); padding: 1.2rem 1.5rem;
  display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between;
  box-shadow: var(--shadow-lift); z-index: 100;
}
.cookie-banner p { margin: 0; font-size: .9rem; flex: 1 1 260px; }
.cookie-banner a { text-decoration: underline; color: var(--honey); }
.cookie-banner__actions { display: flex; gap: .6rem; flex-wrap: wrap; }
.cookie-banner .btn--ghost { border-color: var(--cream); color: var(--cream); }

/* ===== Footer ===== */
.site-footer { background: var(--wood); color: var(--cream); padding-top: 0; }
.footer-divider { display: block; }
.site-footer__inner { max-width: var(--container); margin: 0 auto; padding: 2.5rem clamp(1rem, 4vw, 2.5rem); display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.footer-col h3 { color: var(--honey); font-size: 1rem; margin-bottom: .8rem; }
.footer-col ul { display: grid; gap: .5rem; }
.footer-col a:hover { text-decoration: underline; }
.footer-legal { opacity: .7; font-size: .82rem; }
.footer-bottom { text-align: center; padding: 1rem 0 1.5rem; font-size: .82rem; opacity: .7; }

/* ===== Utilities ===== */
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.text-center { text-align: center; }
.flex { display: flex; } .flex-wrap { flex-wrap: wrap; } .gap-1 { gap: 1rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* COMPONENTS: .class - what it is
.container - centered max-width content wrapper
.site-header / .site-header__inner - sticky site header bar
.logo / .logo__mark / .logo__word - brand logo lockup
.nav-toggle / .nav-close / .site-nav / .nav-list - navigation + mobile off-canvas menu
.cart-link / .cart-count - header cart icon + live count badge
.btn / .btn--primary / .btn--secondary / .btn--ghost / .btn--small / .btn--block - button variants with fill-sweep hover
.page-hero - top hero band used on every inner page
.breadcrumbs - breadcrumb trail
.reveal / .reveal--1..4 - scroll-reveal animation hooks with stagger
.card / .card-img-wrap - hover-lift content/product card
.card-stack / .card-stack--fan - responsive card grid that fans out on scroll
.grid / .grid-2 / .grid-3 / .grid-4 - generic responsive grids
.scroll-strip - horizontal scroll-snap strip for mobile
.section / .section--alt / .section-head - vertical page section rhythm
.divider - decorative SVG section divider
.price / .price--compare - product price display
.badge / .badge--gift / .badge--sold-out - status pill labels
.form-grid / .field / .field--full / .field-error - form layout system
.hp-field - visually hidden honeypot input
.form-msg / .form-msg--ok / .form-msg--error - inline form feedback message
.newsletter-form / .newsletter-form__row - footer newsletter subscription form
.notice / .notice--info - callout box for legal/info text
.faq / .faq-item - details/summary accordion list
.prose - readable-measure long-form legal/article text
.legal-toc - table of contents box for legal pages
.product-detail / .product-detail__gallery / .product-detail__meta / .product-detail__specs - product page layout
.qty-stepper - quantity +/- input control
.cart-table / .cart-table__product - cart line-item table
.cart-summary / .cart-summary__row / .cart-summary__row--total - order summary box
.cart-empty - empty cart state message
.contact-layout / .contact-info - contact page two-column layout
.compass / .compass__options / .compass__option / .compass__result - Chuťový kompas signature feature
.cookie-banner / .cookie-banner__actions - cookie consent banner
.site-footer / .site-footer__inner / .footer-col / .footer-bottom - site footer
*/

/* ===== Missing utility & component classes ===== */
.gap-2 { gap: 1.2rem; }
.gap-3 { gap: 1.5rem; }
.gap-4 { gap: 2rem; }

.text-sm { font-size: 0.9rem; }
.text-gray { color: var(--wood); opacity: 0.7; }

.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1.5rem; }

.hero__text { max-width: 60ch; font-size: 1.1rem; opacity: 0.95; }

.footer-col--brand { grid-column: 1 / -1; }
@media (min-width: 860px) { .footer-col--brand { grid-column: auto; } }

.contact-form { display: grid; gap: 2rem; }
.contact-form__form { display: grid; gap: 1.5rem; }

.cart-qty { width: 60px; padding: .5rem .6rem; border: 2px solid var(--peach); border-radius: var(--radius-s); background: var(--white); font: inherit; text-align: center; min-height: 40px; color: var(--wood); }

.cart-remove { background: none; border: none; color: var(--berry); font-weight: 600; font-size: 0.9rem; padding: .4rem 0; cursor: pointer; transition: color .2s ease; text-decoration: underline; }
.cart-remove:hover { color: var(--wood); }

/* wg-contrast-autofix */
section.section div.container div.compass.reveal h3.visually-hidden { color: #ffffff !important; }
