/* ===== Domácí Zavaření — design system ===== */
:root {
  --ink: #101c2e;
  --ink-soft: #243352;
  --ice: #eef3f8;
  --silver: #c7d6e6;
  --berry: #8a2f3a;
  --berry-dark: #6a1f29;
  --paper: #f7f5f1;
  --line: rgba(16,28,46,.18);
  --font-display: Georgia, "Times New Roman", "Iowan Old Style", serif;
  --font-body: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: "SF Mono", Consolas, monospace;
  --radius: 4px;
  --shadow: 0 18px 40px -20px rgba(16,28,46,.35);
}

* { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.08; margin: 0; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--berry); outline-offset: 3px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 1.5rem; }
.u-grid { display: grid; gap: 1.5rem; }
.u-mt-1 { margin-top: 1rem; } .u-mt-2 { margin-top: 2rem; } .u-mt-3 { margin-top: 3.5rem; }
.u-center { text-align: center; }

/* Grain overlay */
.grain { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; opacity: .035; z-index: 999; mix-blend-mode: overlay; }

/* ===== Header ===== */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(247,245,241,.92); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.header-inner { max-width: 1180px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; padding: .9rem 1.5rem; gap: 1rem; }
.logo { display: flex; align-items: center; gap: .6rem; }
.logo-word { font-family: var(--font-display); font-size: 1.15rem; letter-spacing: .02em; white-space: nowrap; }
.logo-word em { font-style: normal; color: var(--berry); }
.main-nav { display: flex; gap: 1.6rem; }
.main-nav a { font-size: .95rem; position: relative; padding: .2rem 0; }
.main-nav a::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 2px; background: var(--berry); transition: width .25s ease; }
.main-nav a:hover::after, .main-nav a.active::after { width: 100%; }
.main-nav a.active { color: var(--berry); }
.header-actions { display: flex; align-items: center; gap: 1rem; }
.cart-link { position: relative; display: inline-flex; padding: .4rem; }
.cart-count { position: absolute; top: -2px; right: -4px; background: var(--berry); color: #fff; font-size: .65rem; min-width: 16px; height: 16px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.cart-count.bump { animation: bump .35s ease; }
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.4); } 100% { transform: scale(1); } }
.nav-toggle { display: none; background: none; border: none; color: var(--ink); align-items: center; min-width: 44px; min-height: 44px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

@media (max-width: 860px) {
  .main-nav { position: fixed; top: 0; right: 0; height: 100vh; width: min(80vw, 320px); background: var(--ink); flex-direction: column; padding: 6rem 2rem; gap: 1.4rem; transform: translateX(100%); visibility: hidden; transition: transform .3s ease, visibility .3s ease; }
  .main-nav.open { transform: translateX(0); visibility: visible; }
  .main-nav a { color: var(--ice); font-size: 1.1rem; }
  .nav-toggle { display: flex; }
}

/* ===== Buttons ===== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .75rem 1.5rem; border-radius: var(--radius); font-size: .9rem; letter-spacing: .02em; border: 1px solid var(--ink); min-height: 44px; position: relative; overflow: hidden; background: transparent; color: var(--ink); isolation: isolate; }
.btn span, .btn svg { position: relative; z-index: 1; }
.btn-fill { background: var(--ink); color: #fff; }
.btn-fill::before { content: ""; position: absolute; inset: 0; width: 100%; left: -100%; background: var(--berry); transition: left .3s ease; z-index: 0; }
.btn-fill:hover::before { left: 0; }
.btn-ghost { border-color: var(--silver); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-dark-ghost { border-color: var(--silver); color: var(--ice); background: transparent; }
.btn-dark-ghost:hover { background: rgba(255,255,255,.1); }
.btn-berry { background: var(--berry); color: #fff; border-color: var(--berry); }
.btn-berry:hover { background: var(--berry-dark); }
.btn-sm { padding: .5rem 1rem; font-size: .8rem; min-height: 38px; }

/* ===== Reveal / motion ===== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in-view { opacity: 1; transform: none; }
.reveal-stagger .reveal:nth-child(1) { transition-delay: 0s; }
.reveal-stagger .reveal:nth-child(2) { transition-delay: .08s; }
.reveal-stagger .reveal:nth-child(3) { transition-delay: .16s; }
.reveal-stagger .reveal:nth-child(4) { transition-delay: .24s; }
.reveal-stagger .reveal:nth-child(5) { transition-delay: .32s; }
.reveal-stagger .reveal:nth-child(6) { transition-delay: .4s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { transition: none; opacity: 1; transform: none; }
}
.underline-draw { position: relative; display: inline-block; }
.underline-draw svg { position: absolute; left: 0; bottom: -.1em; width: 100%; height: .35em; overflow: visible; }
.underline-draw path { stroke-dasharray: 300; stroke-dashoffset: 300; transition: stroke-dashoffset 1s ease .3s; }
.underline-draw.in-view path { stroke-dashoffset: 0; }

/* ===== Hero ===== */
.hero { position: relative; padding: 4.5rem 0 5rem; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 2rem; align-items: center; }
.hero h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); letter-spacing: -.01em; }
.hero-lede { max-width: 32ch; font-size: 1.1rem; color: var(--ink-soft); }
.hero-art { position: relative; aspect-ratio: 1/1; }
.hero-art svg { width: 100%; height: 100%; }
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1.8rem; }
.hero-badge { position: absolute; top: -1rem; right: -1rem; width: 96px; height: 96px; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } .hero-art { order: -1; max-width: 280px; margin: 0 auto; } }

/* ===== Numbered sections / editorial ===== */
.section { padding: 4.5rem 0; }
.section-head { display: flex; align-items: baseline; gap: 1rem; margin-bottom: 2.5rem; }
.section-num { font-family: var(--mono); color: var(--berry); font-size: .9rem; }
.section-head h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.rule { border: none; border-top: 1px solid var(--line); margin: 0; }

/* ===== Card stack (home composition) ===== */
.stack-section { position: relative; }
.card-stack { display: grid; gap: 1.5rem; }
@media (min-width: 760px) {
  .card-stack { grid-template-columns: repeat(3, 1fr); }
}
.stack-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow); transition: transform .35s ease; }
.stack-card:hover { transform: translateY(-6px) rotate(-.3deg); }
.stack-card .icon-box { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--silver); border-radius: 50%; margin-bottom: 1rem; }

/* ===== Product strip / cards ===== */
.product-strip { display: grid; grid-auto-flow: column; grid-auto-columns: 78%; gap: 1.2rem; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: .5rem; }
.product-strip .product-card { scroll-snap-align: start; }
@media (min-width: 760px) {
  .product-strip { grid-auto-flow: row; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); overflow-x: visible; }
}
.product-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.product-card .thumb { position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--silver); }
.product-card .thumb img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.15) sepia(.08); transition: transform .5s ease; }
.product-card:hover .thumb img { transform: scale(1.06); }
.product-card .body { padding: 1rem 1.1rem 1.3rem; display: flex; flex-direction: column; gap: .4rem; flex: 1; }
.product-card .cat { font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--berry); }
.product-card h3 { font-size: 1.1rem; }
.product-card .price { margin-top: auto; font-family: var(--mono); font-size: 1.05rem; }
.product-card .card-foot { display: flex; align-items: center; justify-content: space-between; gap: .6rem; margin-top: .6rem; }

/* ===== Pantry calculator (signature feature) ===== */
.pantry-calc { background: var(--ink); color: var(--ice); border-radius: 8px; padding: 2.5rem; display: grid; gap: 2rem; }
@media (min-width: 760px) { .pantry-calc { grid-template-columns: 1fr 1fr; align-items: center; } }
.pantry-calc h2 { color: #fff; }
.pc-field { display: flex; flex-direction: column; gap: .4rem; margin-bottom: 1.2rem; }
.pc-field label { font-size: .85rem; color: var(--silver); }
.pc-field input[type="range"] { accent-color: var(--berry); }
.pc-result { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.15); border-radius: var(--radius); padding: 1.3rem; font-size: 1.05rem; }
.pc-breakdown { list-style: none; margin-top: .6rem; display: flex; gap: .8rem; flex-wrap: wrap; font-size: .85rem; color: var(--silver); }
.pc-breakdown li { background: rgba(255,255,255,.08); padding: .3rem .7rem; border-radius: 999px; }

/* ===== Seasonal wheel decoration ===== */
.ornament { color: var(--silver); }

/* ===== Divider / pattern SVGs ===== */
.divider { width: 100%; height: auto; color: var(--line); margin: 3rem 0; }
.pattern-strip { height: 36px; width: 100%; color: var(--silver); opacity: .5; }

/* ===== Reusable inner-page components ===== */
.page-hero { background: var(--ink); color: var(--ice); padding: 4rem 0 3rem; }
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); color: #fff; }
.page-hero p { color: var(--silver); max-width: 48ch; }

.breadcrumbs { display: flex; gap: .5rem; font-size: .85rem; color: var(--ink-soft); margin: 1.5rem 0; flex-wrap: wrap; }
.breadcrumbs a { text-decoration: underline; text-underline-offset: 3px; }
.breadcrumbs span[aria-hidden] { color: var(--silver); }

.prose { max-width: 68ch; margin: 0 auto; }
.prose h2 { margin-top: 2.2rem; font-size: 1.5rem; }
.prose h3 { margin-top: 1.6rem; font-size: 1.15rem; }
.prose p, .prose li { color: var(--ink-soft); }
.prose ul, .prose ol { padding-left: 1.3rem; margin-bottom: 1rem; }

.legal-toc { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem 1.5rem; max-width: 68ch; margin: 0 auto 2.5rem; }
.legal-toc h2 { font-size: 1rem; margin-bottom: .6rem; }
.legal-toc ol { list-style: decimal; padding-left: 1.2rem; }
.legal-toc a { text-decoration: underline; text-underline-offset: 3px; }

.notice { border: 1px solid var(--line); border-left: 3px solid var(--berry); background: #fff; padding: 1rem 1.3rem; border-radius: var(--radius); max-width: 68ch; margin: 1.5rem auto; font-size: .92rem; }
.notice.notice-info { border-left-color: var(--ink); }

.form-grid { display: grid; gap: 1.1rem; max-width: 560px; }
.field { display: flex; flex-direction: column; gap: .35rem; }
.field label { font-size: .85rem; color: var(--ink-soft); }
.field input, .field textarea, .field select { font: inherit; padding: .7rem .9rem; border: 1px solid var(--silver); border-radius: var(--radius); background: #fff; accent-color: var(--berry); }
.field input:focus, .field textarea:focus { border-color: var(--ink); }
.field-error { font-size: .78rem; color: var(--berry); min-height: 1em; }
.hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; }
.form-msg { font-size: .9rem; min-height: 1.2em; }
.form-msg.ok { color: #2e6b3e; }
.form-msg.err { color: var(--berry); }

.faq { max-width: 68ch; margin: 0 auto; display: flex; flex-direction: column; gap: .8rem; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; padding: .2rem 1.2rem; }
.faq-item summary { cursor: pointer; padding: 1rem 0; font-family: var(--font-display); font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq-item summary::after { content: "+"; font-size: 1.3rem; color: var(--berry); }
.faq-item[open] summary::after { content: "−"; }
.faq-item p { padding-bottom: 1rem; color: var(--ink-soft); }

.product-detail { display: grid; gap: 2.5rem; grid-template-columns: 1fr; }
@media (min-width: 820px) { .product-detail { grid-template-columns: 1fr 1fr; } }
.product-detail .gallery img { border-radius: var(--radius); aspect-ratio: 4/3; object-fit: cover; }
.product-detail .price { font-family: var(--mono); font-size: 1.6rem; }

.cart-table { width: 100%; border-collapse: collapse; margin-bottom: 2rem; }
.cart-table th, .cart-table td { text-align: left; padding: .8rem; border-bottom: 1px solid var(--line); }
.cart-summary { max-width: 360px; margin-left: auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem; }
.cart-summary .row { display: flex; justify-content: space-between; margin-bottom: .5rem; }
.cart-summary .total { font-size: 1.2rem; font-family: var(--mono); border-top: 1px solid var(--line); padding-top: .6rem; }

.contact-layout { display: grid; gap: 2.5rem; grid-template-columns: 1fr; }
@media (min-width: 820px) { .contact-layout { grid-template-columns: 1fr 1fr; } }
.contact-info { display: flex; flex-direction: column; gap: 1rem; }
.contact-info a { text-decoration: underline; text-underline-offset: 3px; }

/* ===== Cookie banner ===== */
.cookie-banner { position: fixed; bottom: 1rem; left: 1rem; right: 1rem; max-width: 560px; margin: 0 auto; background: var(--ink); color: var(--ice); border-radius: 8px; padding: 1.3rem 1.5rem; display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; z-index: 200; box-shadow: var(--shadow); }
.cookie-banner a { color: var(--ice); text-decoration: underline; }
.cookie-actions { display: flex; gap: .7rem; }

/* ===== Footer ===== */
.site-footer { background: var(--ink); color: var(--ice); padding: 3.5rem 0 1.5rem; margin-top: 4rem; }
.footer-divider { width: 100%; height: 40px; color: var(--silver); }
.footer-inner { max-width: 1180px; margin: 0 auto; padding: 0 1.5rem; display: grid; gap: 2.2rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 760px) { .footer-inner { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.footer-brand p { color: var(--silver); font-size: .9rem; max-width: 32ch; }
.footer-mail { display: inline-flex; gap: .5rem; align-items: center; color: var(--ice); text-decoration: underline; }
.footer-col h3 { font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; color: var(--silver); margin-bottom: .8rem; }
.footer-col { display: flex; flex-direction: column; gap: .55rem; font-size: .9rem; }
.footer-newsletter h3 { font-size: .95rem; margin-bottom: .4rem; }
.footer-newsletter p { color: var(--silver); font-size: .85rem; }
.newsletter-form { display: flex; gap: .5rem; flex-wrap: wrap; }
.newsletter-form input[type="email"] { flex: 1; min-width: 140px; padding: .6rem .8rem; border-radius: var(--radius); border: 1px solid var(--silver); background: rgba(255,255,255,.05); color: #fff; }
.footer-bottom { text-align: center; font-size: .78rem; color: var(--silver); margin-top: 2.5rem; }

/* ===== Product cards & details ===== */
.product-image { overflow: hidden; border-radius: var(--radius); aspect-ratio: 1; margin-bottom: 1rem; }
.product-image img { width: 100%; height: 100%; object-fit: cover; }
.product-card { display: block; text-decoration: none; color: inherit; transition: transform .2s ease; }
.product-card:hover { transform: translateY(-4px); }
.product-card h3 { margin-bottom: .5rem; font-size: 1rem; }
.product-meta { color: var(--ink-soft); font-size: .85rem; margin-bottom: .5rem; display: block; }
.product-price { color: var(--berry); font-weight: 600; font-size: .95rem; }
.product-layout { display: grid; gap: 2rem; grid-template-columns: 1fr 1fr; margin: 2rem 0; }
@media (max-width: 720px) { .product-layout { grid-template-columns: 1fr; } }
.product-image-main { border-radius: var(--radius); overflow: hidden; }
.product-image-main img { width: 100%; display: block; }
.product-info h1 { margin-bottom: 1rem; font-size: 1.8rem; }
.product-category { color: var(--ink-soft); font-size: .85rem; margin-bottom: .3rem; display: block; }
.product-price-large { font-size: 1.5rem; font-weight: 600; color: var(--berry); margin: 1rem 0; }
.product-actions { margin: 2rem 0; padding: 1.5rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.qty-selector { display: flex; gap: 1rem; align-items: center; margin-bottom: 1.5rem; }
.qty-selector label { font-weight: 600; }
.qty-selector input { border: 1px solid var(--line); border-radius: var(--radius); padding: .5rem .8rem; }

/* ===== Cart & checkout ===== */
.cart-table { width: 100%; border-collapse: collapse; margin-bottom: 2rem; }
.cart-table th { text-align: left; padding: 1rem; border-bottom: 2px solid var(--line); font-weight: 600; }
.cart-table td { padding: 1rem; border-bottom: 1px solid var(--line); }
.cart-table a { color: var(--berry); text-decoration: underline; }
.cart-summary { padding: 1.5rem; background: var(--ice); border-radius: var(--radius); }

/* ===== Form & FAQ ===== */
.form-grid { display: flex; flex-direction: column; gap: 1.5rem; }
.field { display: flex; flex-direction: column; gap: .3rem; }
.field label { font-weight: 600; font-size: .95rem; }
.field input, .field textarea { border: 1px solid var(--line); border-radius: var(--radius); padding: .8rem 1rem; font-family: inherit; font-size: 1rem; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--berry); box-shadow: 0 0 0 3px rgba(138,47,58,.1); }
.hp { visibility: hidden; position: absolute; height: 0; }
.form-msg { margin: 0; color: var(--berry); font-size: .9rem; }
.form-msg:empty { display: none; }
.faq { display: flex; flex-direction: column; gap: 1rem; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius); }
.faq-item summary { padding: 1.2rem; cursor: pointer; font-weight: 600; user-select: none; }
.faq-item summary:hover { background: var(--ice); }
.faq-item[open] summary { color: var(--berry); }
.faq-item p { padding: 0 1.2rem 1rem; margin: 0; }

/* ===== Prose & legal ===== */
.prose { font-size: 1rem; }
.prose h2 { margin: 2rem 0 1rem; font-size: 1.5rem; }
.prose h3 { margin: 1.5rem 0 .8rem; font-size: 1.15rem; }
.prose ul, .prose ol { margin-left: 1.5rem; margin-bottom: 1rem; }
.prose li { margin-bottom: .5rem; }
.prose a { color: var(--berry); text-decoration: underline; }
.prose hr { border: none; border-top: 1px solid var(--line); margin: 2rem 0; }

/* COMPONENTS:
.wrap - centered max-width content container
.u-grid / .u-mt-1 / .u-mt-2 / .u-mt-3 / .u-center - layout/spacing utilities
.grain - fixed full-viewport noise overlay
.site-header / .header-inner / .logo / .logo-word / .main-nav / .header-actions / .cart-link / .cart-count / .nav-toggle - site header & nav
.btn / .btn-fill / .btn-ghost / .btn-dark-ghost / .btn-berry / .btn-sm - button variants (fill has sweep animation)
.reveal / .in-view / .reveal-stagger - scroll reveal animation hooks
.underline-draw - hand-drawn underline sweep wrapper for headline words
.hero / .hero-grid / .hero-lede / .hero-art / .hero-cta / .hero-badge - home hero section
.section / .section-head / .section-num / .rule - numbered editorial section wrapper
.stack-section / .card-stack / .stack-card - home card-stack composition
.product-strip / .product-card - product grid/strip (scroll-snap on mobile)
.pantry-calc / .pc-field / .pc-result / .pc-breakdown - signature pantry calculator feature
.divider / .pattern-strip / .ornament - decorative SVG dividers/patterns
.page-hero - inner page hero banner (dark)
.breadcrumbs - breadcrumb trail nav
.prose - long-form legal/readable text column
.legal-toc - table of contents box for legal pages
.notice / .notice-info - callout box
.form-grid / .field / .field-error / .hp / .form-msg - form layout & validation
.faq / .faq-item - details/summary FAQ accordion
.product-detail - product page two-column layout
.cart-table / .cart-summary - cart/checkout table and summary box
.contact-layout / .contact-info - contact page two-column layout
.cookie-banner / .cookie-actions - GDPR cookie consent banner
.site-footer / .footer-inner / .footer-brand / .footer-col / .footer-newsletter / .footer-bottom - site footer
*/

/* wg-contrast-autofix */
#cookie-decline { color: #ffffff !important; }
