/* Francia Ízek — French Countryside Patisserie design system */
:root {
  --burgundy: #793849;
  --burgundy-dark: #5c2838;
  --honey: #E5B65C;
  --cream: #FAF3E7;
  --forest: #577157;
  --choc: #352F2B;
  --peach: #F3D3BC;
  --white: #FFFFFF;
  --font-display: "Playfair Display", "Iowan Old Style", "Georgia", serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --radius: 18px;
  --radius-sm: 10px;
  --shadow-card: 0 10px 30px -12px rgba(53,47,43,.25);
  --maxw: 1240px;
  --ease: cubic-bezier(.22,1,.36,1);
}

* { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--choc);
  background: var(--cream);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: var(--font-display); margin: 0 0 .5em; line-height: 1.15; font-weight: 700; }
p { margin: 0 0 1em; }
a { color: var(--burgundy); text-decoration: none; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 3px solid var(--honey); outline-offset: 2px; border-radius: 4px; }
.visually-hidden { position: absolute !important; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.section { padding: clamp(48px, 8vw, 96px) 0; }
.flow > * + * { margin-top: 1em; }
.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; }
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.text-center { text-align: center; }
.eyebrow { font-family: var(--font-body); text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; color: var(--burgundy); font-weight: 700; }

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .95rem;
  padding: 14px 26px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  min-height: 44px;
  transition: color .3s var(--ease), border-color .3s var(--ease), transform .2s var(--ease);
  text-decoration: none;
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  left: -100%;
  width: 100%;
  background: var(--burgundy-dark);
  z-index: -1;
  transition: left .35s var(--ease);
}
.btn:hover::before { left: 0; }
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--burgundy); color: var(--white); }
.btn-primary:hover { color: var(--white); }
.btn-secondary { background: transparent; color: var(--burgundy); border-color: var(--burgundy); }
.btn-secondary::before { background: var(--burgundy); }
.btn-secondary:hover { color: var(--white); }
.btn-ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,.55); }
.btn-ghost::before { background: rgba(255,255,255,.18); }
.btn-sm { padding: 9px 18px; font-size: .85rem; min-height: 38px; }
.btn[disabled] { opacity: .6; cursor: not-allowed; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250,243,231,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(53,47,43,.08);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; }
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 1.3rem; color: var(--choc); }
.logo svg { width: 42px; height: 42px; flex-shrink: 0; }
.logo .logo-sub { display: block; font-family: var(--font-body); font-size: .62rem; letter-spacing: .08em; text-transform: uppercase; color: var(--burgundy); font-weight: 600; }
.site-nav { display: flex; align-items: center; gap: 22px; }
.site-nav ul { display: flex; list-style: none; margin: 0; padding: 0; gap: 20px; flex-wrap: wrap; }
.site-nav a { color: var(--choc); font-weight: 600; font-size: .92rem; position: relative; padding: 6px 2px; }
.site-nav a::after { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--burgundy); transition: width .3s var(--ease); }
.site-nav a:hover::after, .site-nav a.is-active::after { width: 100%; }
.site-nav a.is-active { color: var(--burgundy); }
.header-actions { display: flex; align-items: center; gap: 14px; }
.icon-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; color: var(--choc); border: none; background: transparent; cursor: pointer; }
.icon-btn:hover { background: var(--peach); }
.icon-btn svg { width: 22px; height: 22px; }
.cart-count {
  position: absolute; top: 2px; right: 2px; min-width: 18px; height: 18px; padding: 0 4px;
  border-radius: 999px; background: var(--burgundy); color: var(--white); font-size: .68rem;
  display: flex; align-items: center; justify-content: center; font-weight: 700;
}
.cart-count.bump { animation: bump .4s var(--ease); }
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.4); } 100% { transform: scale(1); } }
.nav-toggle { display: none; background: none; border: none; width: 44px; height: 44px; cursor: pointer; }
.nav-toggle svg { width: 26px; height: 26px; }

@media (max-width: 880px) {
  .site-nav {
    position: fixed; inset: 0 0 0 auto; width: min(320px, 85vw); height: 100vh;
    background: var(--cream); flex-direction: column; align-items: flex-start; padding: 100px 28px 28px;
    transform: translateX(100%); visibility: hidden; transition: transform .35s var(--ease), visibility .35s;
    box-shadow: -10px 0 30px rgba(0,0,0,.15);
  }
  .site-nav.is-open { transform: translateX(0); visibility: visible; }
  .site-nav ul { flex-direction: column; gap: 18px; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
}

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(48px, 9vw, 110px) 0 clamp(60px,9vw,120px); overflow: hidden; }
.hero .container { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(2.4rem, 5.6vw, 4.4rem); color: var(--choc); }
.hero .lede { font-size: 1.15rem; max-width: 46ch; color: var(--choc); opacity: .85; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 28px; }
.hero-visual { position: relative; aspect-ratio: 1/1; }
.hero-visual img { border-radius: var(--radius); object-fit: cover; width: 100%; height: 100%; box-shadow: var(--shadow-card); }
.hero-route { position: absolute; inset: -10% -10% auto auto; width: 60%; pointer-events: none; }
.hero-route path { fill: none; stroke: var(--honey); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 6 10; stroke-dashoffset: 400; animation: dash 3.5s var(--ease) forwards; }
@keyframes dash { to { stroke-dashoffset: 0; } }
.hero-route circle { fill: var(--burgundy); opacity: 0; animation: pindrop .5s var(--ease) forwards; }
.hero-route circle:nth-of-type(1) { animation-delay: .4s; }
.hero-route circle:nth-of-type(2) { animation-delay: 1.6s; }
.hero-route circle:nth-of-type(3) { animation-delay: 2.8s; }
@keyframes pindrop { from { opacity: 0; transform: translateY(-14px) scale(.4); } to { opacity: 1; transform: translateY(0) scale(1); } }
@media (max-width: 880px) { .hero .container { grid-template-columns: 1fr; } .hero-visual { order: -1; } }

/* ---------- Reveal / motion ---------- */
.reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
  .reveal.in-view { opacity: 1; transform: none; }
  .reveal-stagger > * { transition-delay: calc(var(--i, 0) * 90ms); }
}

/* ---------- Section dividers / texture ---------- */
.divider { display: block; width: 100%; height: 48px; }
.grain-overlay { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; opacity: .05; mix-blend-mode: multiply; z-index: 1; }

/* ---------- Cards ---------- */
.card {
  background: var(--white); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-card);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px -14px rgba(53,47,43,.3); }

/* ---------- Product cards ---------- */
.product-card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-card); display: flex; flex-direction: column; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.product-card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px -14px rgba(53,47,43,.3); }
.product-card .thumb { aspect-ratio: 4/3; overflow: hidden; }
.product-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.product-card:hover .thumb img { transform: scale(1.08); }
.product-card .body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.product-card .tag { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--forest); font-weight: 700; }
.product-card .name { font-family: var(--font-display); font-size: 1.1rem; margin: 0; }
.product-card .price { font-weight: 700; color: var(--burgundy); margin-top: auto; font-size: 1.05rem; }
.product-strip { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
.product-strip .product-card { min-width: 240px; scroll-snap-align: start; }

/* ---------- Horizontal scroll story (desktop) ---------- */
.scroll-story { overflow: hidden; }
.scroll-story-track { display: flex; gap: 32px; }
@media (min-width: 1000px) {
  .scroll-story-track { width: max-content; }
  .scroll-story-panel { width: 420px; flex-shrink: 0; }
}
@media (max-width: 999px) {
  .scroll-story-track { flex-direction: column; }
}
.scroll-story-panel { background: var(--white); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-card); }

/* ---------- Badges / seals ---------- */
.seal { width: 86px; height: 86px; }

/* ---------- Newsletter ---------- */
.newsletter { background: var(--forest); color: var(--white); border-radius: var(--radius); padding: clamp(28px,5vw,48px); }
.newsletter h2 { color: var(--white); }
.newsletter-form { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; }
.newsletter-form input[type="email"] { flex: 1; min-width: 220px; padding: 14px 18px; border-radius: 999px; border: none; font-size: 1rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--choc); color: var(--peach); padding: 64px 0 28px; }
.site-footer a { color: var(--peach); }
.site-footer a:hover { color: var(--honey); }
.footer-grid { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.footer-grid h4 { color: var(--white); font-size: .95rem; text-transform: uppercase; letter-spacing: .06em; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.12); font-size: .82rem; opacity: .75; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; }

/* ---------- Cookie banner ---------- */
.cookie-banner { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 90; background: var(--choc); color: var(--white); border-radius: var(--radius); padding: 22px 24px; box-shadow: 0 20px 50px rgba(0,0,0,.4); display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; max-width: 900px; margin: 0 auto; }
.cookie-banner p { margin: 0; color: var(--peach); font-size: .92rem; max-width: 60ch; }
.cookie-banner a { color: var(--honey); }
.cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-actions .btn-ghost { color: var(--white); border-color: rgba(255,255,255,.55); }

/* ---------- Toast ---------- */
.fi-toast { position: fixed; bottom: 24px; left: 50%; transform: translate(-50%, 20px); background: var(--choc); color: var(--white); padding: 14px 24px; border-radius: 999px; font-weight: 600; font-size: .9rem; z-index: 200; opacity: 0; transition: opacity .3s var(--ease), transform .3s var(--ease); }
.fi-toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ============================================================
   INNER-PAGE COMPONENT LIBRARY (for the 11 inner pages)
   ============================================================ */
.page-hero { background: linear-gradient(135deg, var(--peach), var(--cream)); padding: clamp(48px,8vw,90px) 0 56px; text-align: center; }
.page-hero h1 { font-size: clamp(2rem, 4.4vw, 3.2rem); }
.page-hero p { max-width: 60ch; margin: 0 auto; opacity: .85; }

.breadcrumbs { display: flex; gap: 8px; flex-wrap: wrap; font-size: .85rem; color: var(--choc); opacity: .75; padding: 18px 0; }
.breadcrumbs a { color: var(--burgundy); }
.breadcrumbs span[aria-hidden] { opacity: .5; }

.prose { max-width: 70ch; margin: 0 auto; }
.prose h2 { margin-top: 2em; font-size: 1.5rem; }
.prose h3 { margin-top: 1.5em; font-size: 1.15rem; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .5em; }

.notice { border-radius: var(--radius-sm); padding: 16px 20px; border-left: 4px solid var(--forest); background: rgba(87,113,87,.08); margin: 20px 0; }
.notice.notice-warn { border-color: var(--honey); background: rgba(229,182,92,.12); }
.notice.notice-danger { border-color: var(--burgundy); background: rgba(121,56,73,.08); }

.form-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.field-full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: .88rem; }
.field input, .field select, .field textarea {
  font: inherit; padding: 12px 14px; border-radius: var(--radius-sm); border: 1.5px solid rgba(53,47,43,.2);
  background: var(--white); accent-color: var(--burgundy); min-height: 44px;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--burgundy); }
.field-error { color: var(--burgundy); font-size: .82rem; min-height: 1.2em; }
.field.has-error input, .field.has-error textarea, .field.has-error select { border-color: var(--burgundy); }
.field-hint { font-size: .8rem; opacity: .7; }

.faq-item { background: var(--white); border-radius: var(--radius-sm); margin-bottom: 12px; overflow: hidden; box-shadow: var(--shadow-card); }
.faq-item summary { padding: 18px 22px; cursor: pointer; font-weight: 600; 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(--burgundy); transition: transform .3s var(--ease); }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-answer { padding: 0 22px 20px; opacity: .85; }

.product-detail { display: grid; gap: 40px; grid-template-columns: 1fr 1fr; }
.product-detail .gallery img { border-radius: var(--radius); aspect-ratio: 1/1; object-fit: cover; }
.product-detail .meta-table { width: 100%; border-collapse: collapse; margin: 16px 0; }
.product-detail .meta-table th, .product-detail .meta-table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid rgba(53,47,43,.1); font-size: .92rem; }
@media (max-width: 800px) { .product-detail { grid-template-columns: 1fr; } }

.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th, .cart-table td { text-align: left; padding: 14px 10px; border-bottom: 1px solid rgba(53,47,43,.1); vertical-align: middle; }
.cart-table img { width: 64px; height: 64px; border-radius: var(--radius-sm); object-fit: cover; }
.qty-input { width: 64px; padding: 8px; border-radius: var(--radius-sm); border: 1.5px solid rgba(53,47,43,.2); min-height: 40px; }
.cart-summary { background: var(--white); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-card); position: sticky; top: 100px; }
.cart-summary dl { display: flex; justify-content: space-between; margin: 10px 0; font-size: .95rem; }
.cart-summary dl.total { font-weight: 700; font-size: 1.1rem; border-top: 1px solid rgba(53,47,43,.15); padding-top: 12px; }

.contact-layout { display: grid; gap: 40px; grid-template-columns: 1.1fr .9fr; }
@media (max-width: 880px) { .contact-layout { grid-template-columns: 1fr; } }
.contact-info-card { background: var(--forest); color: var(--white); border-radius: var(--radius); padding: 28px; }
.contact-info-card a { color: var(--white); }
.contact-info-card ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 14px; }

.legal-toc { background: var(--white); border-radius: var(--radius); padding: 22px 26px; box-shadow: var(--shadow-card); margin-bottom: 32px; }
.legal-toc ol { padding-left: 1.2em; columns: 2; }
@media (max-width: 640px) { .legal-toc ol { columns: 1; } }

.icon-set-sprite { display: none; }
.icon { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 1.8; }

/* COMPONENTS: .class - what it is
.container - centered max-width wrapper
.section - vertical page section spacing
.flow - adds vertical rhythm between direct children
.grid / .grid-2 / .grid-3 / .grid-4 - responsive auto-fit grids
.eyebrow - small uppercase label above headings
.btn / .btn-primary / .btn-secondary / .btn-ghost / .btn-sm - button variants with fill-sweep hover
.site-header / .site-nav / .header-actions / .icon-btn / .cart-count / .nav-toggle - header & nav
.hero / .hero-visual / .hero-route - home hero with pin-drop route animation
.reveal / .reveal-stagger - scroll-reveal animation hooks (IntersectionObserver)
.grain-overlay - fixed SVG grain texture overlay
.card - generic elevated content card
.product-card / .product-strip - catalog product card + horizontal scroll-snap strip
.scroll-story / .scroll-story-track / .scroll-story-panel - desktop horizontal scroll story section
.seal - decorative circular badge/seal SVG sizing
.newsletter / .newsletter-form - newsletter signup block
.site-footer / .footer-grid / .footer-bottom - footer layout
.cookie-banner / .cookie-actions - cookie consent banner
.fi-toast - transient confirmation toast
.page-hero - inner page hero banner
.breadcrumbs - breadcrumb trail
.prose - readable long-form legal/article text measure
.notice / .notice-warn / .notice-danger - callout boxes
.form-grid / .field / .field-error / .field-hint - form layout and fields
.faq / .faq-item - FAQ accordion (details/summary)
.product-detail / .gallery / .meta-table - product page layout
.cart-table / .cart-summary / .qty-input - cart & checkout summary
.contact-layout / .contact-info-card - contact page split layout
.legal-toc - legal page table of contents
.icon - stroke icon sized for the sprite
*/
