/* ===== Maminčina Voňavá Spíž — Moravian Constructivist spice poster ===== */
:root {
  --terracotta: #A64D37;
  --honey: #D6A54C;
  --cream: #F9F0E4;
  --herbal: #58704F;
  --brown: #342B28;
  --beige: #E9DDCA;
  --white: #FFFFFF;
  --slate: #4C5C68;
  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --radius: 4px;
  --measure: 68ch;
  --shadow-paper: 0 10px 30px -12px rgba(52,43,40,.35), 0 2px 6px rgba(52,43,40,.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { overflow-x: clip; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--brown);
  background: var(--cream);
  line-height: 1.55;
}
img { max-width: 100%; display: block; }
a { color: var(--terracotta); }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; margin: 0 0 .5em; color: var(--brown); }
p { margin: 0 0 1em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--brown); color: var(--white); padding: .6em 1em; z-index: 200; }
.skip-link:focus { left: 0; }
:focus-visible { outline: 3px solid var(--herbal); outline-offset: 2px; }
.ic { width: 22px; height: 22px; }
.ic-sm { width: 16px; height: 16px; vertical-align: -3px; }

/* ===== Layout helpers ===== */
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid-2, .grid-3, .grid-4 { 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}.mb-3{margin-bottom:3rem}
.section { padding: 72px 0; }
.section-tight { padding: 40px 0; }
.text-center { text-align: center; }
.eyebrow { font-family: var(--font-body); text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 700; color: var(--terracotta); }

/* ===== Reveal / motion ===== */
.reveal { opacity: 1; transform: none; clip-path: inset(0 0 0 0); transition: opacity .7s ease, transform .7s ease, clip-path .7s ease; }
@media (prefers-reduced-motion: no-preference) {
  .reveal:not(.in-view) { opacity: 0; transform: translateY(26px); clip-path: inset(0 0 40% 0); }
  .reveal.in-view { opacity: 1; transform: none; clip-path: inset(0 0 0 0); }
}
.cart-count.bump { animation: bump .4s ease; }
@keyframes bump { 0%{transform:scale(1)} 40%{transform:scale(1.4)} 100%{transform:scale(1)} }
@media (prefers-reduced-motion: reduce) { .cart-count.bump { animation: none; } }

/* ===== Header ===== */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--cream); border-bottom: 3px solid var(--brown); }
.header-inner { max-width: 1180px; margin: 0 auto; padding: 10px 20px; display: flex; align-items: center; gap: 24px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--brown); margin-right: auto; }
.logo-mark { width: 42px; height: 42px; color: var(--terracotta); flex-shrink: 0; }
.logo-text strong { font-family: var(--font-display); font-size: 1.05rem; line-height: 1.1; display: block; }
.logo-text em { font-style: normal; font-size: .72rem; color: var(--herbal); letter-spacing: .03em; }
.nav-toggle { display: none; background: none; border: 2px solid var(--brown); border-radius: var(--radius); width: 44px; height: 44px; align-items: center; justify-content: center; cursor: pointer; color: var(--brown); }
.nav-toggle .ic-shut { display: none; }
.nav-list { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.nav-list a { text-decoration: none; color: var(--brown); font-weight: 600; font-size: .92rem; padding: 6px 2px; border-bottom: 2px solid transparent; }
.nav-list a:hover, .nav-list a.is-active { border-color: var(--terracotta); color: var(--terracotta); }
.header-actions { display: flex; align-items: center; }
.cart-link { position: relative; display: flex; color: var(--brown); padding: 6px; }
.cart-count { position: absolute; top: -4px; right: -6px; background: var(--terracotta); color: var(--white); font-size: .68rem; font-weight: 700; width: 18px; height: 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .main-nav { position: fixed; top: 0; right: 0; height: 100vh; width: min(320px, 85vw);
    background: var(--brown); padding: 90px 28px 28px; transform: translateX(100%); visibility: hidden;
    transition: transform .35s ease, visibility .35s ease; z-index: 150; }
  .main-nav.is-open { transform: translateX(0); visibility: visible; }
  .nav-list { flex-direction: column; gap: 18px; }
  .nav-list a { color: var(--cream); }
  .nav-toggle[aria-expanded="true"] .ic-open { display: none; }
  .nav-toggle[aria-expanded="true"] .ic-shut { display: block; }
}

/* ===== Hero ===== */
.hero { position: relative; overflow: hidden; padding: 60px 0 80px; background: var(--brown); color: var(--cream); }
.hero-inner { max-width: 1180px; margin: 0 auto; padding: 0 20px; position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
@media (max-width: 860px) { .hero-inner { grid-template-columns: 1fr; } }
.hero h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); color: var(--cream); }
.hero .lede { font-size: 1.15rem; max-width: 46ch; color: var(--beige); }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 1.5rem; }
.hero-art { position: relative; aspect-ratio: 1/1; }
.hero-badge { position: absolute; inset: 0; animation: spin 36s linear infinite; }
@media (prefers-reduced-motion: reduce) { .hero-badge { animation: none; } }
@keyframes spin { to { transform: rotate(360deg); } }
.hero-diagonal { position: absolute; inset: -10% -10% auto auto; width: 70%; height: 140%; background: linear-gradient(135deg, var(--terracotta), var(--honey)); clip-path: polygon(30% 0, 100% 0, 70% 100%, 0 100%); z-index: 0; opacity: .9; }
.hero-photo { position: relative; z-index: 1; border-radius: var(--radius); box-shadow: var(--shadow-paper); aspect-ratio: 4/5; object-fit: cover; transform: rotate(-2deg); }

/* grain overlay */
.grain { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; opacity: .05; z-index: 999; mix-blend-mode: overlay; }

/* ===== Buttons ===== */
.btn { display: inline-flex; align-items: center; gap: 8px; justify-content: center; font-weight: 700; font-size: .95rem; padding: 13px 26px; border-radius: var(--radius); border: 2px solid var(--brown); cursor: pointer; text-decoration: none; min-height: 44px; position: relative; overflow: hidden; background: var(--cream); color: var(--brown); transition: color .3s ease, border-color .3s; }
.btn-sweep { background: var(--terracotta); color: var(--white); border-color: var(--terracotta); }
.btn-sweep::before { content: ""; position: absolute; inset: 0; left: -100%; width: 100%; background: var(--brown); transition: left .35s ease; z-index: 0; }
.btn-sweep span, .btn-sweep > * { position: relative; z-index: 1; }
.btn-sweep:hover::before, .btn-sweep:focus-visible::before { left: 0; }
.btn-outline { background: transparent; border-color: var(--cream); color: var(--cream); }
.btn-outline:hover { background: var(--cream); color: var(--brown); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--cream); text-decoration: underline; }
.btn-dark { background: var(--brown); color: var(--cream); border-color: var(--brown); }
.btn-dark:hover { background: var(--terracotta); border-color: var(--terracotta); }
.btn-sm { padding: 8px 16px; font-size: .85rem; min-height: 36px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* ===== Cards / masonry gallery ===== */
.masonry { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; grid-auto-rows: 10px; }
.masonry-item { position: relative; overflow: hidden; border-radius: var(--radius); grid-row-end: span 24; box-shadow: var(--shadow-paper); }
.masonry-item.tall { grid-row-end: span 32; }
.masonry-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.masonry-item:hover img { transform: scale(1.08); }
.masonry-caption { position: absolute; inset: auto 0 0 0; padding: 14px; background: linear-gradient(0deg, rgba(52,43,40,.88), transparent); color: var(--cream); transform: translateY(100%); transition: transform .35s ease; font-weight: 700; }
.masonry-item:hover .masonry-caption, .masonry-item:focus-within .masonry-caption { transform: translateY(0); }
@media (max-width: 860px) { .masonry { grid-template-columns: repeat(2, 1fr); } }

.card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-paper); overflow: hidden; transition: transform .3s ease, box-shadow .3s ease; }
.card:hover { transform: translateY(-6px); box-shadow: 0 20px 40px -14px rgba(52,43,40,.4); }
.card-media { aspect-ratio: 4/3; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .card-media img { transform: scale(1.06); }
.card-body { padding: 18px 20px 22px; }
.card-title { font-size: 1.05rem; margin-bottom: .3em; }
.card-price { font-weight: 800; color: var(--terracotta); font-size: 1.1rem; }
.card-meta { font-size: .82rem; color: var(--slate); margin-bottom: .6em; }

/* product strip (mobile horizontal scroll) */
.strip { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 10px; }
.strip .card { flex: 0 0 240px; scroll-snap-align: start; }

/* ===== Dividers / ornaments ===== */
.divider-svg { width: 100%; height: auto; color: var(--terracotta); display: block; }
.ornament-row { display: flex; justify-content: center; gap: 10px; margin: 8px 0 28px; color: var(--herbal); }

/* ===== Signature feature ===== */
.pairing { background: var(--beige); border-radius: var(--radius); padding: 40px; }
.pairing-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
@media (max-width: 760px) { .pairing-grid { grid-template-columns: 1fr; } }
.pairing-select { width: 100%; padding: 12px 14px; border: 2px solid var(--brown); border-radius: var(--radius); font-size: 1rem; background: var(--white); min-height: 44px; }
.pairing-result { background: var(--white); border: 2px dashed var(--terracotta); border-radius: var(--radius); padding: 20px; min-height: 140px; }
.pairing-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.pairing-tag { background: var(--herbal); color: var(--white); font-size: .78rem; font-weight: 700; padding: 5px 12px; border-radius: 999px; }

/* ===== Forms ===== */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 700; font-size: .88rem; }
.field input, .field select, .field textarea {
  padding: 12px 14px; border: 2px solid var(--brown); border-radius: var(--radius); font: inherit; min-height: 44px; background: var(--white); color: var(--brown); accent-color: var(--terracotta);
}
.field textarea { min-height: 120px; resize: vertical; }
.field-error { color: var(--terracotta); font-size: .82rem; min-height: 1.2em; }
.form-msg { min-height: 1.4em; font-weight: 700; font-size: .9rem; }
.form-msg-ok { color: var(--herbal); }
.form-msg-err { color: var(--terracotta); }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.newsletter-form { display: flex; gap: 10px; flex-wrap: wrap; }
.newsletter-form input[type="email"] { flex: 1; min-width: 160px; padding: 10px 12px; border-radius: var(--radius); border: 2px solid var(--beige); min-height: 44px; }

/* ===== Page hero (inner pages) ===== */
.page-hero { background: var(--brown); color: var(--cream); padding: 54px 0 46px; position: relative; overflow: hidden; }
.page-hero h1 { color: var(--cream); font-size: clamp(2rem, 4.5vw, 3rem); }
.page-hero .lede { color: var(--beige); max-width: 60ch; }

/* breadcrumbs */
.breadcrumbs { list-style: none; display: flex; gap: 8px; flex-wrap: wrap; padding: 0; margin: 0 0 14px; font-size: .85rem; color: var(--beige); }
.breadcrumbs a { color: var(--honey); text-decoration: none; }
.breadcrumbs li:not(:last-child)::after { content: "/"; margin-left: 8px; color: var(--beige); }

/* prose for legal/long text */
.prose { max-width: var(--measure); }
.prose h2 { margin-top: 1.6em; font-size: 1.5rem; }
.prose h3 { margin-top: 1.2em; font-size: 1.15rem; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .4em; }

/* legal layout with table of contents */
.legal-layout { display: grid; grid-template-columns: 240px 1fr; gap: 40px; align-items: start; }
@media (max-width: 800px) { .legal-layout { grid-template-columns: 1fr; } }
.legal-toc { position: sticky; top: 100px; background: var(--white); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow-paper); }
.legal-toc h2 { font-size: .95rem; text-transform: uppercase; letter-spacing: .06em; }
.legal-toc ul { list-style: none; padding: 0; margin: 0; }
.legal-toc li { margin-bottom: .5em; }
.legal-toc a { text-decoration: none; font-size: .9rem; }

/* notice boxes */
.notice { border-left: 4px solid var(--terracotta); background: var(--beige); padding: 14px 18px; border-radius: var(--radius); margin: 1em 0; }
.notice-info { border-color: var(--slate); }
.notice-success { border-color: var(--herbal); }

/* faq */
.faq { display: flex; flex-direction: column; gap: 12px; max-width: var(--measure); }
.faq-item { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-paper); padding: 4px 18px; }
.faq-item summary { cursor: pointer; font-weight: 700; padding: 14px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.3rem; color: var(--terracotta); }
.faq-item[open] summary::after { content: "–"; }
.faq-item p { padding-bottom: 14px; margin: 0; }

/* product detail */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
@media (max-width: 800px) { .product-detail { grid-template-columns: 1fr; } }
.product-gallery img { border-radius: var(--radius); aspect-ratio: 4/3; object-fit: cover; box-shadow: var(--shadow-paper); }
.product-info .card-price { font-size: 1.6rem; }
.product-tabs { display: flex; flex-direction: column; gap: 18px; margin-top: 1.5em; }
.product-tabs h3 { font-size: 1rem; margin-bottom: .3em; }
.badge-row { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0; }
.badge { font-size: .75rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--beige); color: var(--brown); }
.badge-warn { background: var(--terracotta); color: var(--white); }

/* cart / checkout */
.cart-table { width: 100%; border-collapse: collapse; margin-bottom: 20px; }
.cart-table th, .cart-table td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--beige); }
.cart-table img { width: 60px; height: 60px; object-fit: cover; border-radius: var(--radius); }
.cart-summary { background: var(--white); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-paper); max-width: 380px; margin-left: auto; }
.cart-summary dl { display: flex; justify-content: space-between; margin: 0 0 .6em; }
.cart-summary dt, .cart-summary dd { margin: 0; }
.qty-input { width: 64px; padding: 8px; border: 2px solid var(--brown); border-radius: var(--radius); min-height: 40px; }

/* contact layout */
.contact-layout { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; }
@media (max-width: 800px) { .contact-layout { grid-template-columns: 1fr; } }
.contact-card { background: var(--white); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-paper); margin-bottom: 16px; }

/* footer */
.site-footer { background: var(--brown); color: var(--beige); padding: 20px 0 0; position: relative; }
.footer-divider { color: var(--honey); display: block; width: 100%; height: 40px; }
.footer-inner { max-width: 1180px; margin: 0 auto; padding: 20px 20px 40px; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.4fr; gap: 30px; }
@media (max-width: 860px) { .footer-inner { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-inner { grid-template-columns: 1fr; } }
.footer-col h3 { color: var(--cream); font-size: .95rem; text-transform: uppercase; letter-spacing: .06em; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.footer-col a { color: var(--beige); text-decoration: none; font-size: .92rem; }
.footer-col a:hover { color: var(--honey); }
.footer-legal { font-size: .8rem; opacity: .8; }
.footer-contact { margin-top: 10px; font-size: .85rem; }
.footer-bottom { text-align: center; padding: 16px 0; border-top: 1px solid rgba(249,240,228,.15); font-size: .8rem; margin: 0; }

/* cookie banner */
.cookie-banner { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 300; background: var(--brown); color: var(--cream); padding: 18px 22px; border-radius: var(--radius); box-shadow: var(--shadow-paper); display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; max-width: 920px; margin: 0 auto; }
.cookie-banner a { color: var(--honey); }
.cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ===== COMPONENTS: .class - what it is =====
.wrap - centered max-width content wrapper
.grid / .grid-2 / .grid-3 / .grid-4 - responsive CSS grid layouts
.section / .section-tight - vertical page section padding
.eyebrow - small uppercase label above headings
.reveal / .in-view - scroll-reveal animation hook (visible by default, JS enhances)
.hero / .hero-inner / .hero-art / .hero-badge / .hero-diagonal / .hero-photo - home hero composition
.grain - full-viewport noise texture overlay
.btn / .btn-sweep / .btn-outline / .btn-ghost / .btn-dark / .btn-sm - button variants
.masonry / .masonry-item / .masonry-caption - home masonry gallery with hover reveal
.card / .card-media / .card-body / .card-title / .card-price / .card-meta - product/content card
.strip - horizontal scroll-snap product strip (mobile)
.divider-svg / .ornament-row - decorative section dividers and ornaments
.pairing / .pairing-grid / .pairing-select / .pairing-result / .pairing-tags / .pairing-tag - signature feature widget
.form-grid / .field / .field-error / .form-msg - form layout and validation
.hp - visually hidden honeypot field
.newsletter-form - footer newsletter signup
.page-hero - inner page header band
.breadcrumbs - breadcrumb navigation list
.prose - readable long-form legal/article text
.legal-layout / .legal-toc - legal page with sticky table of contents
.notice / .notice-info / .notice-success - callout box
.faq / .faq-item - FAQ accordion (details/summary)
.product-detail / .product-gallery / .product-info / .product-tabs / .badge / .badge-warn - product page layout
.cart-table / .cart-summary / .qty-input - cart and checkout tables
.contact-layout / .contact-card - contact page layout
.site-header / .main-nav / .nav-list / .nav-toggle / .logo / .cart-link / .cart-count - site header
.site-footer / .footer-inner / .footer-col - site footer
.cookie-banner / .cookie-actions - cookie consent banner
*/

.footer-brand,
.footer-newsletter {
  font-size: .92rem;
}

.notice-warn {
  border-color: var(--honey);
}

/* wg-contrast-autofix */
section.hero div.hero-inner div.reveal.in-view p.eyebrow { color: #ffffff !important; }
section.section[style*="--brown"] div.wrap.grid div.reveal.in-view p.eyebrow { color: #ffffff !important; }
section[style*="--beige"] div.wrap.grid div.reveal p.eyebrow { color: #ffffff !important; }
section.section div.wrap.grid div.reveal.in-view p.eyebrow { color: #111111 !important; }
