/* ============ TOKENS ============ */
:root {
  --color-linen: #f6ead9;
  --color-cream: #fffaf2;
  --color-ochre: #c8812f;
  --color-ochre-dark: #a9631a;
  --color-indigo: #2d3461;
  --color-indigo-deep: #1d2142;
  --color-ink: #2a2118;
  --color-line: #e3d2b6;
  --font-display: Georgia, "Iowan Old Style", "Palatino Linotype", serif;
  --font-body: "Avenir Next", Futura, "Segoe UI", system-ui, sans-serif;
  --radius-m: 1.1rem;
  --radius-l: 2rem;
  --shadow-paper: 0 1.2rem 2.5rem -1.2rem rgba(42,33,24,.35);
  --maxw: 72rem;
}
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
html, body { overflow-x: clip; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-ink);
  background: var(--color-cream);
  line-height: 1.55;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.1; margin: 0; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--color-indigo); outline-offset: 3px; border-radius: .3rem; }
.icon { display: inline-block; vertical-align: middle; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 1.5rem; }
@media (min-width: 52rem) { .wrap { padding: 0 2.5rem; } }

/* ============ HEADER / NAV ============ */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--color-cream) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-line);
}
.site-header__row {
  max-width: var(--maxw); margin: 0 auto; padding: .8rem 1.5rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.logo { display: flex; align-items: center; gap: .6rem; color: var(--color-indigo); }
.logo__word { height: 1.4rem; width: auto; }
.nav-toggle { background: none; border: none; color: var(--color-ink); cursor: pointer; padding: .5rem; display: none; min-width: 44px; min-height: 44px; }
.nav-close { display: none; background: none; border: none; color: var(--color-cream); cursor: pointer; min-width: 44px; min-height: 44px; }
.site-nav { display: flex; align-items: center; gap: 1.6rem; }
.nav-list { display: flex; gap: 1.4rem; margin: 0; padding: 0; list-style: none; }
.nav-list a { font-size: .95rem; position: relative; padding: .3rem 0; }
.nav-list a::after {
  content: ""; position: absolute; left: 0; bottom: -.1rem; height: 2px; width: 0;
  background: var(--color-ochre); transition: width .25s ease;
}
.nav-list a:hover::after, .nav-list a.is-active::after { width: 100%; }
.nav-list a.is-active { color: var(--color-ochre-dark); }
.cart-link { position: relative; display: inline-flex; color: var(--color-indigo); min-width: 44px; min-height: 44px; align-items: center; }
.cart-count {
  position: absolute; top: -.3rem; right: -.5rem; background: var(--color-ochre); color: #fff;
  font-size: .68rem; font-weight: 700; border-radius: 50%; min-width: 1.2rem; height: 1.2rem;
  display: flex; align-items: center; justify-content: center; padding: 0 .2rem;
}
.cart-count--bump { animation: bump .4s ease; }
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.5); } 100% { transform: scale(1); } }

@media (max-width: 55rem) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav-close { display: inline-flex; align-items: center; justify-content: center; align-self: flex-end; }
  .site-nav {
    position: fixed; inset: 0 0 0 auto; width: min(20rem, 85vw); height: 100vh;
    background: var(--color-indigo-deep); color: var(--color-cream);
    flex-direction: column; align-items: flex-start; padding: 1.5rem;
    transform: translateX(100%); visibility: hidden; transition: transform .35s ease, visibility .35s ease;
    z-index: 50;
  }
  .site-nav.is-open { transform: translateX(0); visibility: visible; }
  .nav-list { flex-direction: column; gap: 1.1rem; margin-top: 1.5rem; }
  .nav-list a { color: var(--color-cream); font-size: 1.1rem; }
  .cart-link { color: var(--color-cream); margin-top: 1rem; }
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--font-body); font-weight: 600; font-size: .95rem;
  padding: .8rem 1.6rem; border-radius: 999px; border: 1.5px solid transparent;
  cursor: pointer; min-height: 44px; position: relative; overflow: hidden; isolation: isolate;
  transition: color .3s ease, border-color .3s ease, transform .2s ease;
}
.btn:active { transform: translateY(1px); }
.btn--fill { background: var(--color-indigo); color: var(--color-cream); }
.btn--fill::before {
  content: ""; position: absolute; inset: 0; left: -100%; width: 100%;
  background: var(--color-ochre); z-index: -1; transition: left .35s ease;
}
.btn--fill:hover::before { left: 0; }
.btn--ghost { background: transparent; border-color: var(--color-indigo); color: var(--color-indigo); }
.btn--ghost:hover { background: var(--color-indigo); color: var(--color-cream); }
.btn--on-dark { border-color: var(--color-linen); color: var(--color-linen); }
.btn--on-dark:hover { background: var(--color-linen); color: var(--color-indigo-deep); }
.btn--sm { padding: .5rem 1.1rem; font-size: .85rem; min-height: 38px; }

/* ============ REVEAL / MOTION ============ */
.reveal { opacity: 1; }
.js .reveal { opacity: 0; transform: translateY(1.4rem); transition: opacity .7s ease, transform .7s ease, clip-path .7s ease; }
.reveal.in-view { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
.reveal[data-delay="4"] { transition-delay: .32s; }

/* ============ HOME: HERO ============ */
.hero {
  position: relative; padding: 3.5rem 0 6rem; background: var(--color-linen);
  clip-path: polygon(0 0, 100% 0, 100% 92%, 0 100%);
  overflow: hidden;
}
.hero__grid {
  max-width: var(--maxw); margin: 0 auto; padding: 0 1.5rem;
  display: grid; gap: 2.5rem; align-items: center;
}
@media (min-width: 60rem) { .hero__grid { grid-template-columns: 1.1fr 1fr; padding: 0 2.5rem; } }
.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.2rem); color: var(--color-indigo-deep); letter-spacing: -.01em;
}
.hero__lede { font-size: 1.15rem; max-width: 32rem; margin: 1.2rem 0 1.8rem; }
.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero__art { position: relative; aspect-ratio: 1/1; }
.hero__art img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-l); box-shadow: var(--shadow-paper); }
.hero__blob { position: absolute; width: 60%; aspect-ratio: 1/1; top: -10%; right: -8%; z-index: -1; }

.ticker { overflow: hidden; border-top: 1px solid var(--color-line); border-bottom: 1px solid var(--color-line); background: var(--color-cream); padding: .8rem 0; }
.ticker__track {
  display: flex; gap: 3rem; white-space: nowrap; width: max-content;
  animation: ticker 28s linear infinite;
  font-family: var(--font-display); font-size: 1.1rem; color: var(--color-ochre-dark);
}
.ticker__track span { display: inline-flex; align-items: center; gap: .6rem; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ============ SECTIONS / DIAGONALS ============ */
.section { padding: 5rem 0; position: relative; }
.section--indigo {
  background: var(--color-indigo-deep); color: var(--color-linen);
  clip-path: polygon(0 4%, 100% 0, 100% 100%, 0 96%);
  margin-top: -2rem; padding-top: 7rem;
}
.section--indigo h2, .section--indigo .prose a { color: var(--color-linen); }
.section--linen { background: var(--color-linen); clip-path: polygon(0 0, 100% 3%, 100% 100%, 0 97%); }
.section-head { max-width: 38rem; margin: 0 auto 2.5rem; text-align: center; }
.section-head h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.section-head p { margin-top: .7rem; opacity: .85; }

.divider-ornament { display: block; width: 100%; height: 60px; }

/* ============ FRESHNESS CLOCK (signature feature) ============ */
.freshness {
  display: grid; gap: 2rem; align-items: center; background: var(--color-cream);
  border: 1px solid var(--color-line); border-radius: var(--radius-l); padding: 2.2rem;
  box-shadow: var(--shadow-paper);
}
@media (min-width: 48rem) { .freshness { grid-template-columns: auto 1fr; } }
.freshness__dial { position: relative; width: 7rem; height: 7rem; flex-shrink: 0; margin: 0 auto; }
.freshness__dial svg { width: 100%; height: 100%; }
.freshness__time { font-family: var(--font-display); font-size: 1.4rem; color: var(--color-indigo); }
.freshness__label { font-size: 1.3rem; font-family: var(--font-display); color: var(--color-ochre-dark); margin-bottom: .3rem; }
.freshness__note { opacity: .8; margin: 0; }

/* ============ PRODUCT STRIP / CARDS ============ */
.product-strip {
  display: flex; gap: 1.4rem; overflow-x: auto; scroll-snap-type: x mandatory; padding: .5rem .2rem 1.2rem;
}
.product-strip::-webkit-scrollbar { height: 6px; }
@media (min-width: 60rem) { .product-strip { display: grid; grid-template-columns: repeat(4, 1fr); overflow: visible; } }
.product-card {
  background: var(--color-cream); border: 1px solid var(--color-line); border-radius: var(--radius-m);
  overflow: hidden; scroll-snap-align: start; flex: 0 0 15rem; transition: transform .3s ease, box-shadow .3s ease;
  display: flex; flex-direction: column;
}
@media (min-width: 60rem) { .product-card { flex: initial; } }
.product-card:hover { transform: translateY(-.4rem); box-shadow: var(--shadow-paper); }
.product-card__media { aspect-ratio: 4/3; overflow: hidden; }
.product-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.product-card:hover .product-card__media img { transform: scale(1.08); }
.product-card__body { padding: 1rem 1.1rem 1.2rem; display: flex; flex-direction: column; gap: .4rem; flex: 1; }
.product-card__badge {
  align-self: flex-start; background: var(--color-ochre); color: #fff; font-size: .72rem; font-weight: 700;
  padding: .2rem .6rem; border-radius: 999px;
}
.product-card__name { font-family: var(--font-display); font-size: 1.1rem; }
.product-card__price { color: var(--color-ochre-dark); font-weight: 700; margin-top: auto; }

/* ============ FOOTER ============ */
.site-footer { background: var(--color-indigo-deep); color: var(--color-linen); padding: 4rem 0 1rem; }
.site-footer__grid {
  max-width: var(--maxw); margin: 0 auto; padding: 0 1.5rem; display: grid; gap: 2.5rem;
  grid-template-columns: 1fr; margin-bottom: 2.5rem;
}
@media (min-width: 55rem) { .site-footer__grid { grid-template-columns: 1.3fr 1fr 1fr 1.3fr; padding: 0 2.5rem; } }
.footer-brand p { opacity: .85; }
.footer-mail { display: inline-flex; align-items: center; gap: .5rem; color: var(--color-linen); opacity: .9; }
.footer-nav h3 { font-family: var(--font-body); font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; opacity: .7; margin-bottom: .9rem; }
.footer-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .55rem; }
.footer-nav a:hover { text-decoration: underline; }
.newsletter-form .field-row { display: flex; gap: .6rem; flex-wrap: wrap; }
.newsletter-form input[type="email"] {
  flex: 1; min-width: 10rem; padding: .7rem 1rem; border-radius: 999px; border: 1px solid rgba(246,234,217,.4);
  background: rgba(255,255,255,.06); color: var(--color-linen);
}
.newsletter-form input::placeholder { color: rgba(246,234,217,.6); }
.form-msg { font-size: .85rem; margin: .6rem 0 0; min-height: 1em; }
.form-msg--ok { color: #a9d6a0; }
.form-msg--error { color: #e8a6a6; }
.site-footer__bottom { text-align: center; opacity: .6; font-size: .85rem; padding-top: 1.5rem; border-top: 1px solid rgba(246,234,217,.15); }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* ============ COOKIE BANNER ============ */
.cookie-banner {
  position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 60; max-width: 32rem;
  margin: 0 auto; background: var(--color-indigo-deep); color: var(--color-linen);
  border-radius: var(--radius-m); padding: 1.2rem 1.4rem; box-shadow: var(--shadow-paper);
  display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between;
}
.cookie-banner a { text-decoration: underline; }
.cookie-banner__actions { display: flex; gap: .7rem; }

/* ============ REUSABLE PAGE COMPONENTS (for inner pages) ============ */
.page-hero {
  background: var(--color-linen); padding: 3.5rem 0 3rem;
  clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%);
}
.page-hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); color: var(--color-indigo-deep); }
.page-hero p { max-width: 36rem; margin-top: .8rem; opacity: .85; }

.breadcrumbs { display: flex; gap: .5rem; font-size: .85rem; opacity: .7; margin-bottom: 1rem; flex-wrap: wrap; }
.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs span[aria-hidden] { opacity: .5; }

.prose { max-width: 40rem; margin: 0 auto; padding: 3rem 0; }
.prose h2 { font-size: 1.5rem; margin: 2rem 0 .8rem; color: var(--color-indigo); }
.prose h3 { font-size: 1.15rem; margin: 1.5rem 0 .6rem; }
.prose p, .prose li { margin-bottom: .9rem; }
.prose ul, .prose ol { padding-left: 1.3rem; }

.legal-toc { background: var(--color-linen); border-radius: var(--radius-m); padding: 1.5rem; margin: 2rem auto; max-width: 40rem; }
.legal-toc h2 { font-size: 1rem; margin: 0 0 .7rem; }
.legal-toc ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .4rem; }
.legal-toc a { color: var(--color-indigo); }
.legal-toc a:hover { text-decoration: underline; }

.notice { border-radius: var(--radius-m); padding: 1.2rem 1.4rem; margin: 1.5rem 0; border: 1px solid var(--color-line); background: var(--color-cream); }
.notice--info { border-color: var(--color-indigo); background: color-mix(in srgb, var(--color-indigo) 6%, var(--color-cream)); }
.notice--success { border-color: #6a9c5e; background: color-mix(in srgb, #6a9c5e 10%, var(--color-cream)); }
.notice--error { border-color: #b5544c; background: color-mix(in srgb, #b5544c 10%, var(--color-cream)); }

.form-grid { display: grid; gap: 1.2rem; max-width: 34rem; }
@media (min-width: 40rem) { .form-grid--2col { grid-template-columns: 1fr 1fr; } }
.field { display: flex; flex-direction: column; gap: .4rem; }
.field label { font-size: .85rem; font-weight: 600; }
.field input, .field textarea, .field select {
  padding: .75rem 1rem; border: 1.5px solid var(--color-line); border-radius: .7rem;
  font-family: inherit; font-size: 1rem; background: var(--color-cream); accent-color: var(--color-ochre);
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--color-indigo); }
.field-error { color: #b5544c; font-size: .82rem; min-height: 1.1em; }
.field:has(.field-error:not(:empty)) input { border-color: #b5544c; }

.faq { max-width: 42rem; margin: 0 auto; display: flex; flex-direction: column; gap: .8rem; }
.faq-item { border: 1px solid var(--color-line); border-radius: var(--radius-m); padding: .3rem 1.3rem; background: var(--color-cream); }
.faq-item summary { cursor: pointer; font-weight: 600; 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(--color-ochre-dark); }
.faq-item[open] summary::after { content: "\2212"; }
.faq-item p { padding-bottom: 1rem; opacity: .85; }

.product-detail { display: grid; gap: 2.5rem; padding: 3rem 0; }
@media (min-width: 55rem) { .product-detail { grid-template-columns: 1fr 1fr; } }
.product-detail__media { border-radius: var(--radius-l); overflow: hidden; aspect-ratio: 4/3; }
.product-detail__media img { width: 100%; height: 100%; object-fit: cover; }
.product-detail__price { font-size: 1.6rem; font-family: var(--font-display); color: var(--color-ochre-dark); }
.product-detail__qty { display: flex; align-items: center; gap: .8rem; margin: 1.2rem 0; }
.product-detail__qty input { width: 4rem; text-align: center; padding: .6rem; border-radius: .6rem; border: 1.5px solid var(--color-line); }

.cart-table { width: 100%; border-collapse: collapse; margin-bottom: 2rem; }
.cart-table th, .cart-table td { text-align: left; padding: .9rem .6rem; border-bottom: 1px solid var(--color-line); }
.cart-table img { width: 3.5rem; height: 3.5rem; object-fit: cover; border-radius: .6rem; }
.cart-summary { max-width: 24rem; margin-left: auto; display: flex; flex-direction: column; 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(--color-line); padding-top: .6rem; }

.contact-layout { display: grid; gap: 2.5rem; padding: 3rem 0; }
@media (min-width: 55rem) { .contact-layout { grid-template-columns: 1fr 1fr; } }
.contact-info { display: flex; flex-direction: column; gap: 1.1rem; }
.contact-info__row { display: flex; gap: .8rem; align-items: flex-start; }
.contact-info__row .icon { color: var(--color-ochre-dark); margin-top: .15rem; flex-shrink: 0; }

/* ============ UTILITIES ============ */
.u-center { text-align: center; }
.u-mt-0 { margin-top: 0; }
.u-mb-0 { margin-bottom: 0; }
.u-grid-2 { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 48rem) { .u-grid-2 { grid-template-columns: 1fr 1fr; } }
.u-grid-3 { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 48rem) { .u-grid-3 { grid-template-columns: repeat(3, 1fr); } }
.u-flex-wrap { display: flex; flex-wrap: wrap; gap: 1rem; }

/* COMPONENTS:
.site-header - sticky site header bar
.logo / .logo__mark / .logo__word - brand logo lockup
.site-nav / .nav-list / .nav-toggle / .nav-close - main navigation incl. mobile drawer
.cart-link / .cart-count - header cart icon and item-count badge
.btn / .btn--fill / .btn--ghost / .btn--on-dark / .btn--sm - button variants
.reveal - scroll-reveal animation hook (JS adds .in-view)
.hero / .hero__grid / .hero__art / .hero__blob - home hero section
.ticker / .ticker__track - scrolling product-name ticker
.section / .section--indigo / .section--linen - diagonal full-width sections
.section-head - centered section intro (heading + lede)
.divider-ornament - decorative wavy SVG section divider
.freshness / .freshness__dial / .freshness__time / .freshness__label / .freshness__note - signature "Pekárenské hodiny" feature
.product-strip / .product-card - horizontal scroll-snap product cards
.site-footer / .site-footer__grid / .footer-nav / .newsletter-form - site footer
.cookie-banner - fixed consent banner
.page-hero - inner-page hero band
.breadcrumbs - breadcrumb trail
.prose - long-form legal/article text column
.legal-toc - table of contents box for legal pages
.notice / .notice--info / .notice--success / .notice--error - callout boxes
.form-grid / .form-grid--2col / .field / .field-error - form layout and fields
.faq / .faq-item - FAQ accordion (details/summary)
.product-detail / .product-detail__media / .product-detail__qty - single product page layout
.cart-table / .cart-summary - cart/checkout tables and totals
.contact-layout / .contact-info - contact page split layout
.u-center / .u-grid-2 / .u-grid-3 / .u-flex-wrap / .u-mt-0 / .u-mb-0 - small layout utilities
*/

/* ============ MISSING COMPONENT STYLES ============ */
.footer-newsletter {
  background: var(--color-linen);
  padding: 2rem 1.5rem;
  border-radius: var(--radius-m);
  margin: 2rem 0;
}
@media (min-width: 52rem) {
  .footer-newsletter {
    padding: 2.5rem 2.5rem;
    margin: 2.5rem 0;
  }
}

.qty-input {
  border: 1px solid var(--color-line);
  padding: 0.5rem 0.75rem;
  border-radius: 0.3rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  width: 60px;
  text-align: center;
  color: var(--color-ink);
  background: var(--color-cream);
}

.remove-btn {
  background: none;
  border: none;
  color: var(--color-ink);
  cursor: pointer;
  padding: 0.4rem;
  font-size: 1.1rem;
  line-height: 1;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.6;
  transition: opacity 0.2s;
}
.remove-btn:hover {
  opacity: 1;
}

.section--cream {
  background: var(--color-cream);
}

.product-detail__body {
  padding: 1.5rem;
}
@media (min-width: 52rem) {
  .product-detail__body {
    padding: 2rem;
  }
}

/* wg-contrast-autofix */
div.product-strip a.product-card.reveal div.product-card__body span.product-card__name { color: #111111 !important; }
div.cookie-banner div.cookie-banner__actions button.btn.btn--on-dark { color: #111111 !important; }
