/* Pekárna Zvoneček — design system */
html, body { overflow-x: clip; }

:root {
  --ink: #2b1f1a;
  --plum: #5b2a3a;
  --plum-dark: #3f1c28;
  --blush: #e8c4c0;
  --gold: #c9a24b;
  --linen: #f4ede2;
  --linen-deep: #ece2d2;
  --paper: #fffaf3;
  --line: rgba(43, 31, 26, 0.18);
  --radius: 4px;
  --shadow-paper: 0 1px 0 var(--paper), 0 10px 24px -14px rgba(43,31,26,0.45);
  --ff-display: "Iowan Old Style", "Palatino Linotype", Georgia, "Times New Roman", serif;
  --ff-body: "Avenir Next", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --ff-mono: "Courier New", ui-monospace, monospace;
  accent-color: var(--plum);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--ff-body);
  color: var(--ink);
  background: var(--linen);
  background-image:
    repeating-linear-gradient(90deg, rgba(43,31,26,0.025) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(0deg, rgba(43,31,26,0.02) 0 1px, transparent 1px 3px);
  line-height: 1.55;
}
body.nav-locked { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--ff-display); margin: 0 0 .5em; line-height: 1.15; font-weight: 600; }
p { margin: 0 0 1em; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 2px; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 1.25rem; }
@media (min-width: 640px) { .container { padding: 0 2rem; } }

/* ===== Grain overlay ===== */
.grain-overlay {
  position: fixed; inset: 0; width: 100vw; height: 100vh;
  pointer-events: none; z-index: 2; opacity: .5; mix-blend-mode: multiply;
}

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--linen); border-bottom: 1px solid var(--line);
}
.site-header__bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .85rem 0; }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; }
.brand__mark { width: 40px; height: 40px; flex: none; }
.brand__word { width: 150px; height: 30px; }
.site-nav { display: flex; align-items: center; gap: 1.5rem; }
.site-nav__list { display: flex; gap: 1.3rem; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.site-nav__list a { text-decoration: none; font-size: .95rem; letter-spacing: .02em; position: relative; padding: .2rem 0; }
.site-nav__list a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -2px; height: 2px; background: var(--gold);
  transition: right .25s ease;
}
.site-nav__list a:hover::after, .site-nav__list a.is-active::after { right: 0; }
.site-nav__list a.is-active { font-weight: 700; }
.header-actions { display: flex; align-items: center; gap: .9rem; }
.cart-link { display: inline-flex; align-items: center; gap: .4rem; text-decoration: none; font-weight: 600; }
.cart-link .icon { width: 22px; height: 22px; }
.cart-count {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 20px; height: 20px; padding: 0 5px; border-radius: 50%;
  background: var(--plum); color: #fff; font-size: .72rem; font-weight: 700;
}
.cart-count.bump { animation: bump .35s ease; }
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.35); } 100% { transform: scale(1); } }
.nav-toggle {
  display: none; width: 44px; height: 44px; border: 1px solid var(--line); background: var(--paper);
  border-radius: var(--radius); cursor: pointer; align-items: center; justify-content: center;
}
.nav-toggle .icon { width: 22px; height: 22px; }

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: fixed; inset: 0 0 0 auto; width: min(82vw, 320px); height: 100vh;
    background: var(--plum-dark); color: #fff; flex-direction: column; align-items: flex-start;
    padding: 5.5rem 1.5rem 2rem; transform: translateX(100%); visibility: hidden;
    transition: transform .3s ease, visibility .3s ease; z-index: 60;
  }
  .site-nav.is-open { transform: translateX(0); visibility: visible; }
  .site-nav__list { flex-direction: column; gap: 1.1rem; }
  .site-nav__list a { color: #fff; }
}

/* ===== Buttons ===== */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 44px; padding: .7rem 1.4rem; border-radius: var(--radius); border: 1px solid var(--ink);
  font-family: var(--ff-body); font-weight: 700; font-size: .92rem; letter-spacing: .02em;
  text-decoration: none; cursor: pointer; overflow: hidden; background: transparent; color: var(--ink);
  isolation: isolate; transition: color .25s ease, border-color .25s ease;
}
.btn::before {
  content: ""; position: absolute; inset: 0; width: 100%; left: -100%; background: var(--ink); z-index: -1;
  transition: left .3s ease;
}
.btn:hover::before, .btn:focus-visible::before { left: 0; }
.btn:hover, .btn:focus-visible { color: var(--paper); }
.btn-primary { background: var(--plum); border-color: var(--plum); color: #fff; }
.btn-primary::before { background: var(--gold); }
.btn-primary:hover, .btn-primary:focus-visible { color: var(--ink); }
.btn-ghost { border-color: rgba(255,255,255,.6); color: #fff; }
.btn-ghost::before { background: #fff; }
.btn-ghost:hover, .btn-ghost:focus-visible { color: var(--ink); }
.btn-sm { min-height: 38px; padding: .45rem 1rem; font-size: .85rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* ===== Reveal / motion ===== */
.reveal { opacity: 1; transform: none; }
@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); }
}

/* ===== Marquee ===== */
.marquee { overflow: hidden; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); background: var(--plum); color: var(--blush); }
.marquee__track { display: flex; width: max-content; gap: 3rem; padding: .7rem 0; animation: marquee 28s linear infinite; }
.marquee__track span { font-family: var(--ff-display); font-size: 1.1rem; letter-spacing: .05em; white-space: nowrap; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee__track { animation: none; } }

/* ===== Hero ===== */
.hero { position: relative; padding: 3.5rem 0 4rem; overflow: hidden; }
.hero__grid { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 900px) { .hero__grid { grid-template-columns: 1.1fr .9fr; } }
.hero__title { font-size: clamp(2.6rem, 7vw, 5rem); margin-bottom: .6rem; }
.hero__title em { color: var(--plum); font-style: normal; }
.hero__lede { font-size: 1.1rem; max-width: 36ch; }
.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1.6rem; }
.hero__art { position: relative; aspect-ratio: 4/5; }
.hero__art img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); filter: sepia(.12) saturate(1.05); box-shadow: var(--shadow-paper); }
.hero__art svg.hero__shape { position: absolute; width: 58%; height: auto; z-index: -1; }
.hero__shape--tl { top: -8%; left: -12%; }
.hero__shape--br { bottom: -10%; right: -14%; }

/* ===== Section dividers / ornaments ===== */
.divider { width: 100%; height: 28px; display: block; color: var(--plum); }
.ornament { width: 60px; height: 60px; color: var(--gold); }

/* ===== Section layout ===== */
.section { padding: 4rem 0; position: relative; }
.section--tight { padding: 2.5rem 0; }
.section-head { max-width: 44ch; margin-bottom: 2rem; }
.section-head .eyebrow { display: inline-block; font-family: var(--ff-mono); letter-spacing: .14em; text-transform: uppercase; font-size: .72rem; color: var(--plum); margin-bottom: .5rem; }
.bg-paper { background: var(--paper); }
.bg-plum { background: var(--plum); color: var(--blush); }
.bg-plum h2, .bg-plum h3 { color: #fff; }

/* ===== Card stack (home composition) ===== */
.stack {
  position: relative; display: grid; gap: 1.2rem; padding: 1rem 0 2rem;
}
@media (min-width: 760px) {
  .stack { min-height: 420px; }
  .stack__card {
    position: absolute; inset: 0; width: 100%; max-width: 420px;
    transition: transform .6s cubic-bezier(.2,.8,.2,1), box-shadow .4s ease;
  }
  .stack__card:nth-child(1) { transform: translate(0,0) rotate(-3deg); z-index: 3; }
  .stack__card:nth-child(2) { transform: translate(40px, 24px) rotate(2deg); z-index: 2; }
  .stack__card:nth-child(3) { transform: translate(80px, 48px) rotate(-1.5deg); z-index: 1; }
  .stack.is-fanned .stack__card:nth-child(1) { transform: translate(-220px, 0) rotate(-6deg); }
  .stack.is-fanned .stack__card:nth-child(2) { transform: translate(0, 10px) rotate(1deg); }
  .stack.is-fanned .stack__card:nth-child(3) { transform: translate(220px, 0) rotate(5deg); }
}
.stack__card {
  background: var(--paper); border: 1px solid var(--ink); border-radius: var(--radius);
  padding: 1.6rem; box-shadow: var(--shadow-paper);
}
.stack__card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 2px; margin-bottom: .8rem; }

/* ===== Product / card grid ===== */
.grid { display: grid; gap: 1.5rem; }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-paper); transition: transform .3s ease, box-shadow .3s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 18px 30px -16px rgba(43,31,26,.5); }
.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.07); }
.card__body { padding: 1.1rem 1.2rem 1.3rem; }
.card__tag { display: inline-block; font-family: var(--ff-mono); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--plum); border: 1px solid var(--plum); padding: .15rem .5rem; border-radius: 2px; margin-bottom: .5rem; }
.card__title { font-size: 1.15rem; margin-bottom: .3rem; }
.card__price { font-weight: 700; color: var(--plum); }

/* ===== Product strip (mobile horizontal scroll) ===== */
.strip { display: grid; grid-auto-flow: column; grid-auto-columns: 78%; gap: 1.1rem; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: .5rem; }
.strip .card { scroll-snap-align: start; }
@media (min-width: 760px) { .strip { grid-auto-columns: unset; grid-auto-flow: row; grid-template-columns: repeat(auto-fit, minmax(240px,1fr)); overflow: visible; } }

/* ===== Starter planner (signature feature) ===== */
.planner { border: 1px solid var(--ink); border-radius: var(--radius); background: var(--paper); box-shadow: var(--shadow-paper); padding: 2rem; }
.planner__form { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(160px,1fr)); align-items: end; }
.planner__result { margin-top: 1.6rem; display: grid; gap: .9rem; grid-template-columns: repeat(auto-fit, minmax(150px,1fr)); }
.planner__step { border-left: 2px solid var(--gold); padding-left: .8rem; }
.planner__step time { display: block; font-family: var(--ff-display); font-size: 1.3rem; color: var(--plum); }
.planner__step span { font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink); }

/* ===== 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.field--full { grid-column: 1 / -1; }
.field label { font-size: .85rem; font-weight: 700; }
.field input, .field select, .field textarea {
  min-height: 44px; padding: .6rem .7rem; border: 1px solid var(--ink); border-radius: var(--radius);
  background: var(--paper); font-family: var(--ff-body); font-size: 1rem; color: var(--ink);
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--gold); outline-offset: 1px; }
.field-error { color: #a1273c; font-size: .82rem; min-height: 1.1em; }
.form-error { color: #a1273c; font-size: .9rem; min-height: 1.2em; }
.form-success { font-weight: 700; color: var(--plum); }
.field--hidden, [name="website"] { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* ===== Newsletter ===== */
.newsletter { display: flex; flex-wrap: wrap; gap: .7rem; }
.newsletter input[type="email"] { flex: 1; min-width: 180px; min-height: 44px; padding: .6rem .8rem; border: 1px solid rgba(255,255,255,.5); border-radius: var(--radius); background: transparent; color: #fff; }
.newsletter input[type="email"]::placeholder { color: rgba(255,255,255,.7); }

/* ===== Footer ===== */
.site-footer { background: var(--plum-dark); color: var(--blush); padding: 3.5rem 0 1.5rem; }
.footer-grid { display: grid; gap: 2.2rem; grid-template-columns: repeat(auto-fit, minmax(180px,1fr)); margin-bottom: 2rem; }
.footer-grid h4 { color: #fff; font-size: .95rem; letter-spacing: .04em; text-transform: uppercase; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.footer-grid a { text-decoration: none; opacity: .85; }
.footer-grid a:hover { opacity: 1; text-decoration: underline; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.2); padding-top: 1.2rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .8rem; font-size: .82rem; opacity: .85; }

/* ===== Cookie banner ===== */
.cookie-banner {
  position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 90; max-width: 560px; margin: 0 auto;
  background: var(--plum-dark); color: #fff; border: 1px solid rgba(255,255,255,.2); border-radius: var(--radius);
  padding: 1.2rem 1.4rem; box-shadow: 0 16px 34px -14px rgba(0,0,0,.5); display: flex; flex-wrap: wrap; gap: 1rem; align-items: center;
}
.cookie-banner p { margin: 0; flex: 1 1 220px; font-size: .9rem; }
.cookie-banner a { text-decoration: underline; color: var(--blush); }
.cookie-banner__actions { display: flex; gap: .6rem; flex-wrap: wrap; }

/* ===== Inner-page components ===== */
.page-hero { background: var(--linen-deep); border-bottom: 1px solid var(--line); padding: 3rem 0 2.2rem; }
.page-hero h1 { font-size: clamp(2rem, 5vw, 3rem); }
.breadcrumbs { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; padding: 0; margin: 0 0 1rem; font-size: .85rem; }
.breadcrumbs li:not(:last-child)::after { content: "/"; margin-left: .4rem; opacity: .6; }
.breadcrumbs a { text-decoration: none; opacity: .8; }
.breadcrumbs a:hover { text-decoration: underline; }

.prose { max-width: 68ch; }
.prose h2 { margin-top: 2em; font-size: 1.5rem; }
.prose h3 { margin-top: 1.4em; font-size: 1.15rem; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .4em; }
.legal-toc { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem 1.4rem; margin-bottom: 2rem; max-width: 60ch; }
.legal-toc h2 { margin-top: 0; font-size: 1rem; text-transform: uppercase; letter-spacing: .05em; }
.legal-toc ol { margin: 0; padding-left: 1.2em; }

.notice { border: 1px solid var(--line); border-left: 4px solid var(--gold); background: var(--paper); border-radius: var(--radius); padding: 1rem 1.2rem; margin: 1.5rem 0; }
.notice--warn { border-left-color: #a1273c; }
.notice--success { border-left-color: var(--plum); }

.faq { max-width: 70ch; display: grid; gap: .8rem; }
.faq-item { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.faq-item summary { cursor: pointer; padding: 1rem 1.2rem; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.3rem; color: var(--plum); transition: transform .25s ease; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item__body { padding: 0 1.2rem 1.1rem; opacity: .9; }

.product-detail { display: grid; gap: 2.2rem; }
@media (min-width: 820px) { .product-detail { grid-template-columns: 1fr 1fr; } }
.product-detail__media img { width: 100%; aspect-ratio: 1/1; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--line); }
.product-detail__price { font-size: 1.6rem; font-weight: 700; color: var(--plum); font-family: var(--ff-display); }
.qty-input { display: inline-flex; align-items: center; border: 1px solid var(--ink); border-radius: var(--radius); }
.qty-input button { min-width: 44px; min-height: 44px; background: transparent; border: none; cursor: pointer; font-size: 1.1rem; }
.qty-input input { width: 50px; text-align: center; border: none; min-height: 44px; font-size: 1rem; background: transparent; }

.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th, .cart-table td { text-align: left; padding: .9rem .6rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
.cart-table img { width: 64px; height: 64px; object-fit: cover; border-radius: 3px; }
.cart-summary { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; max-width: 380px; margin-left: auto; display: grid; gap: .6rem; }
.cart-summary__row { display: flex; justify-content: space-between; }
.cart-summary__row--total { font-weight: 700; font-size: 1.2rem; border-top: 1px solid var(--line); padding-top: .6rem; }

.contact-layout { display: grid; gap: 2.5rem; }
@media (min-width: 820px) { .contact-layout { grid-template-columns: 1fr 1fr; } }
.contact-info { display: grid; gap: 1rem; }
.contact-info__item { display: flex; gap: .8rem; align-items: flex-start; }
.contact-info__item .icon { width: 22px; height: 22px; flex: none; margin-top: .2rem; color: var(--plum); }

/* ===== Utilities ===== */
.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: 1rem !important; }
.mt-2 { margin-top: 2rem !important; }
.mt-3 { margin-top: 3rem !important; }
.mb-0 { margin-bottom: 0 !important; }
.center { text-align: center; }
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.gap-1 { gap: 1rem; }
.gap-2 { gap: 2rem; }
.sr-icon { width: 20px; height: 20px; }

@media (max-width: 420px) {
  .hero__title { font-size: clamp(2.1rem, 9vw, 3rem); }
}

/* COMPONENTS: .class - what it is
.container - centered max-width content wrapper
.site-header / .site-header__bar - sticky top header bar
.brand / .brand__mark / .brand__word - logo link with svg mark + wordmark
.site-nav / .site-nav__list - main nav, becomes off-canvas drawer on mobile
.nav-toggle - mobile hamburger button
.cart-link / .cart-count - header cart icon + animated count badge
.btn / .btn-primary / .btn-ghost / .btn-sm / .btn-block - buttons with fill-sweep hover
.reveal / .in-view - scroll-reveal animation hook (IntersectionObserver)
.marquee / .marquee__track - looping hero word strip
.hero / .hero__grid / .hero__title / .hero__lede / .hero__actions / .hero__art / .hero__shape - home hero block
.divider - decorative full-width svg divider
.ornament - small decorative svg ornament
.section / .section--tight / .section-head / .eyebrow - generic page section + heading block
.bg-paper / .bg-plum - section background variants
.stack / .stack__card / .is-fanned - home card-stack-that-fans-out-on-scroll composition
.grid / .grid--3 / .grid--2 - responsive card grids
.card / .card__media / .card__body / .card__tag / .card__title / .card__price - generic content/product card
.strip - horizontal scroll-snap card strip (mobile)
.planner / .planner__form / .planner__result / .planner__step - signature Kváskový plánovač widget
.form-grid / .field / .field--full / .field-error / .form-error / .form-success - form layout + state
.newsletter - footer newsletter inline form
.site-footer / .footer-grid / .footer-bottom - site footer
.cookie-banner / .cookie-banner__actions - GDPR cookie consent banner
.page-hero - inner page top banner
.breadcrumbs - breadcrumb trail list
.prose - readable-measure long-form legal/article text
.legal-toc - table of contents box for legal pages
.notice / .notice--warn / .notice--success - callout box
.faq / .faq-item / .faq-item__body - details/summary accordion
.product-detail / .product-detail__media / .product-detail__price - product page layout
.qty-input - quantity stepper control
.cart-table / .cart-summary / .cart-summary__row - cart/checkout layout
.contact-layout / .contact-info / .contact-info__item - contact page layout
.grain-overlay - fixed full-viewport svg noise texture
*/
