/* Lyon Gourmet Spice Atelier — design system */
:root{
  --terracotta:#A85239;
  --saffron:#D5A342;
  --cream:#F9F1E4;
  --olive:#557052;
  --dark:#332D29;
  --beige:#E9DCC8;
  --white:#FFFFFF;
  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: Inter, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  --radius:18px;
  --shadow-soft: 0 10px 30px -10px rgba(51,45,41,.25);
  --maxw: 1240px;
}
*{box-sizing:border-box}
html,body{overflow-x:clip}
html{scroll-behavior:smooth}
body{margin:0;background:var(--cream);color:var(--dark);font-family:var(--font-body);line-height:1.6;font-size:16px}
h1,h2,h3,h4{font-family:var(--font-display);margin:0 0 .5em;line-height:1.15;color:var(--dark)}
p{margin:0 0 1em}
a{color:var(--terracotta);text-decoration:none}
img{max-width:100%;display:block}
.visually-hidden{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.skip-link{position:absolute;left:-999px;top:0;background:var(--dark);color:var(--white);padding:.6em 1em;z-index:200}
.skip-link:focus{left:0}
:focus-visible{outline:3px solid var(--saffron);outline-offset:2px}
.wrap{max-width:var(--maxw);margin:0 auto;padding:0 1.5rem}
@media (max-width:640px){.wrap{padding:0 1.1rem}}

/* ===== Header ===== */
.site-header{position:sticky;top:0;z-index:100;background:rgba(249,241,228,.92);backdrop-filter:blur(8px);border-bottom:1px solid var(--beige)}
.header-inner{max-width:var(--maxw);margin:0 auto;display:flex;align-items:center;justify-content:space-between;padding:.7rem 1.5rem;gap:1rem}
.logo{display:flex;align-items:center;gap:.6rem}
.logo-word{font-family:var(--font-display);font-size:1.25rem;font-weight:700;color:var(--dark)}
.main-nav ul{display:flex;gap:1.4rem;list-style:none;margin:0;padding:0}
.main-nav a{color:var(--dark);font-weight:600;font-size:.95rem;position:relative;padding:.2rem 0}
.main-nav a::after{content:"";position:absolute;left:0;bottom:-4px;width:0;height:2px;background:var(--terracotta);transition:width .3s}
.main-nav a:hover::after,.main-nav a[aria-current="page"]::after{width:100%}
.header-actions{display:flex;align-items:center;gap:1rem}
.cart-link{position:relative;display:flex;color:var(--dark)}
.cart-count{position:absolute;top:-8px;right:-10px;background:var(--terracotta);color:var(--white);font-size:.68rem;font-weight:700;border-radius:50%;min-width:18px;height:18px;display:flex;align-items:center;justify-content:center;padding:0 3px}
.cart-count.bump{animation:bump .35s ease}
@keyframes bump{0%{transform:scale(1)}40%{transform:scale(1.4)}100%{transform:scale(1)}}
.menu-toggle{display:none;background:none;border:0;color:var(--dark);cursor:pointer;min-width:44px;min-height:44px}
@media (max-width:860px){
  .menu-toggle{display:flex;align-items:center;justify-content:center}
  .main-nav{position:fixed;top:0;right:0;height:100%;width:min(320px,85vw);background:var(--cream);transform:translateX(100%);visibility:hidden;transition:transform .35s ease,visibility .35s;padding:5rem 1.5rem;box-shadow:var(--shadow-soft);z-index:150}
  .main-nav.is-open{transform:translateX(0);visibility:visible}
  .main-nav ul{flex-direction:column;gap:1.3rem}
}

/* ===== Buttons ===== */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:.5em;min-height:44px;padding:.75em 1.6em;border-radius:999px;font-weight:700;font-size:.95rem;border:2px solid transparent;cursor:pointer;position:relative;overflow:hidden;isolation:isolate;transition:color .3s,border-color .3s}
.btn::before{content:"";position:absolute;inset:0;left:-100%;width:100%;background:var(--dark);transition:left .35s ease;z-index:-1}
.btn-primary{background:var(--terracotta);color:var(--white)}
.btn-primary:hover::before{left:0}
.btn-secondary{background:transparent;border-color:var(--dark);color:var(--dark)}
.btn-secondary:hover{color:var(--white)}
.btn-secondary:hover::before{left:0}
.btn-ghost{background:transparent;border-color:var(--white);color:var(--white)}
.btn-ghost:hover{color:var(--dark)}
.btn-ghost:hover::before{left:0;background:var(--white);z-index:-1}
.btn-small{padding:.5em 1.1em;font-size:.85rem;min-height:36px}

/* ===== Hero / split screen ===== */
.hero-split{position:relative;display:grid;grid-template-columns:1fr 1fr;min-height:88vh;overflow:hidden}
.hero-panel{position:relative;display:flex;flex-direction:column;justify-content:center;padding:3rem}
.hero-panel.left{background:var(--dark);color:var(--cream)}
.hero-panel.right{background-size:cover;background-position:center}
.hero-divider{position:absolute;top:0;bottom:0;left:50%;width:6px;background:var(--saffron);transform:translateX(-3px);z-index:5;cursor:grab}
.hero-divider::after{content:"";position:absolute;top:50%;left:50%;width:46px;height:46px;background:var(--saffron);border-radius:50%;transform:translate(-50%,-50%)}
.hero-eyebrow{font-weight:700;letter-spacing:.14em;text-transform:uppercase;font-size:.8rem;color:var(--saffron);margin-bottom:.8rem}
.hero-title{font-size:clamp(2.2rem,6vw,4.1rem);max-width:14ch}
.hero-title .sweep{position:relative;display:inline}
.hero-title .sweep::after{content:"";position:absolute;left:0;bottom:-.06em;width:100%;height:.12em;background:var(--terracotta);transform-origin:left;animation:sweep 1.1s .3s ease forwards;transform:scaleX(0)}
@keyframes sweep{to{transform:scaleX(1)}}
.hero-sub{max-width:34ch;font-size:1.05rem;opacity:.9}
.hero-actions{display:flex;gap:1rem;margin-top:1.5rem;flex-wrap:wrap}
.hero-illustration{position:absolute;right:1.5rem;bottom:1.5rem;width:140px;opacity:.9}
@media (max-width:860px){
  .hero-split{grid-template-columns:1fr;min-height:auto}
  .hero-divider{display:none}
  .hero-panel{padding:2.4rem 1.3rem}
  .hero-panel.right{min-height:280px}
}

/* ===== Section layout ===== */
section{padding:5rem 0}
.section-head{max-width:640px;margin:0 auto 2.4rem;text-align:center}
.section-head h2{font-size:clamp(1.7rem,3.6vw,2.6rem)}
.grid{display:grid;gap:1.6rem}
.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-3,.grid-4{grid-template-columns:1fr}}
.mt-0{margin-top:0}.mt-1{margin-top:1rem}.mt-2{margin-top:2rem}.mb-0{margin-bottom:0}

/* ===== Reveal / scroll motion ===== */
.reveal{opacity:1;transform:none}
.js .reveal{opacity:0;transform:translateY(26px);transition:opacity .7s ease,transform .7s ease}
.js .reveal.in-view{opacity:1;transform:none}
.reveal:nth-child(2){transition-delay:.08s}
.reveal:nth-child(3){transition-delay:.16s}
.reveal:nth-child(4){transition-delay:.24s}
@media (prefers-reduced-motion: reduce){.js .reveal{opacity:1;transform:none;transition:none}}

/* ===== Category / product cards ===== */
.category-card,.product-card{background:var(--white);border-radius:var(--radius);overflow:hidden;box-shadow:var(--shadow-soft);display:flex;flex-direction:column;transition:transform .35s ease}
.category-card:hover,.product-card:hover{transform:translateY(-6px)}
.card-media{aspect-ratio:4/3;overflow:hidden}
.card-media img{width:100%;height:100%;object-fit:cover;transition:transform .5s ease}
.category-card:hover .card-media img,.product-card:hover .card-media img{transform:scale(1.08)}
.card-body{padding:1.1rem 1.3rem 1.4rem;display:flex;flex-direction:column;gap:.4rem;flex:1}
.card-body h3{font-size:1.15rem}
.card-price{font-weight:700;color:var(--terracotta)}
.card-tag{font-size:.72rem;text-transform:uppercase;letter-spacing:.08em;color:var(--olive);font-weight:700}

/* horizontal scroll-snap strip (mobile) */
.product-strip{display:flex;gap:1.2rem;overflow-x:auto;padding:.4rem .2rem 1.2rem;scroll-snap-type:x mandatory;-webkit-overflow-scrolling:touch}
.product-strip .product-card{min-width:240px;scroll-snap-align:start}
@media (min-width:860px){.product-strip{display:grid;grid-template-columns:repeat(4,1fr);overflow:visible}}

/* ===== Decorative dividers / ornaments ===== */
.divider-wave{width:100%;height:46px;display:block}
.ornament-sprig{width:60px;height:60px;color:var(--olive)}
.seal-badge{width:84px;height:84px}
.grain-overlay{position:fixed;inset:0;width:100vw;height:100vh;pointer-events:none;opacity:.045;z-index:1}

/* ===== Signature feature ===== */
.pairing-tool{background:var(--dark);color:var(--cream);border-radius:var(--radius);padding:2.4rem;display:grid;gap:2rem;grid-template-columns:1fr 1fr;align-items:center}
.pairing-tool h2{color:var(--cream)}
.pairing-select{display:flex;flex-wrap:wrap;gap:.6rem;margin-top:1rem}
.chip{border:2px solid var(--beige);color:var(--cream);background:transparent;border-radius:999px;padding:.5em 1.1em;cursor:pointer;font-weight:600;font-size:.85rem;min-height:40px}
.chip.is-active{background:var(--saffron);color:var(--dark);border-color:var(--saffron)}
.pairing-result{background:rgba(249,241,228,.08);border-radius:14px;padding:1.4rem;min-height:160px}
.pairing-result h3{color:var(--saffron);font-size:1.1rem}
@media (max-width:760px){.pairing-tool{grid-template-columns:1fr}}

/* ===== Newsletter / footer ===== */
.site-footer{background:var(--dark);color:var(--beige);position:relative;margin-top:4rem}
.footer-wave{width:100%;height:40px;display:block;transform:translateY(-100%)}
.footer-inner{max-width:var(--maxw);margin:0 auto;padding:1rem 1.5rem 2.4rem;display:grid;grid-template-columns:1.3fr 2fr 1.3fr;gap:2.4rem}
.footer-logo{color:var(--cream)}
.footer-brand p{font-size:.9rem;opacity:.85}
.footer-cols{display:grid;grid-template-columns:repeat(3,1fr);gap:1.4rem}
.footer-cols h3{color:var(--saffron);font-size:.95rem;text-transform:uppercase;letter-spacing:.06em}
.footer-cols ul{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:.5rem}
.footer-cols a{color:var(--beige);font-size:.9rem}
.footer-cols a:hover{color:var(--saffron)}
.newsletter-form{display:flex;gap:.5rem;flex-wrap:wrap;margin-top:.8rem}
.newsletter-form input[type=email]{flex:1;min-width:160px;padding:.7em 1em;border-radius:999px;border:1px solid var(--beige);background:transparent;color:var(--cream)}
.newsletter-form .website{display:none}
.footer-mail{display:flex;align-items:center;gap:.5rem;margin-top:1rem;font-size:.9rem}
.footer-bottom{text-align:center;padding:1rem;border-top:1px solid rgba(249,241,228,.15);font-size:.82rem;opacity:.8}
@media (max-width:860px){.footer-inner{grid-template-columns:1fr}.footer-cols{grid-template-columns:repeat(3,1fr)}}
@media (max-width:560px){.footer-cols{grid-template-columns:1fr 1fr}}

/* ===== Forms ===== */
.form-grid{display:grid;gap:1.1rem;grid-template-columns:repeat(2,1fr)}
.form-grid .field-full{grid-column:1/-1}
@media (max-width:640px){.form-grid{grid-template-columns:1fr}}
.field{display:flex;flex-direction:column;gap:.35rem}
.field label{font-weight:600;font-size:.88rem}
.field input,.field select,.field textarea{accent-color:var(--terracotta);padding:.7em .9em;border-radius:10px;border:1.5px solid var(--beige);background:var(--white);font:inherit;min-height:44px}
.field textarea{min-height:120px}
.field input:focus,.field select:focus,.field textarea:focus{border-color:var(--terracotta)}
.field-error{color:var(--terracotta);font-size:.82rem;min-height:1.2em}
.form-msg{margin-top:1rem;font-weight:600}
.form-msg-ok{color:var(--olive)}
.form-msg-error{color:var(--terracotta)}

/* ===== Cookie banner ===== */
.cookie-banner{position:fixed;left:1rem;right:1rem;bottom:1rem;max-width:640px;margin:0 auto;background:var(--dark);color:var(--cream);border-radius:var(--radius);padding:1.3rem 1.5rem;box-shadow:var(--shadow-soft);z-index:300;display:flex;flex-wrap:wrap;gap:1rem;align-items:center;justify-content:space-between}
.cookie-banner a{color:var(--saffron)}
.cookie-actions{display:flex;gap:.7rem;flex-wrap:wrap}

/* ===== Generic inner-page components (for the 11 remaining pages) ===== */
.page-hero{background:var(--dark);color:var(--cream);padding:4.5rem 0 3.5rem;text-align:center;position:relative;overflow:hidden}
.page-hero h1{color:var(--cream);font-size:clamp(2rem,5vw,3.2rem)}
.page-hero p{opacity:.85;max-width:52ch;margin:0 auto}
.breadcrumbs{display:flex;gap:.4rem;list-style:none;padding:1rem 0;margin:0;font-size:.85rem;color:var(--olive);flex-wrap:wrap}
.breadcrumbs li:not(:last-child)::after{content:"/";margin-left:.4rem;color:var(--beige)}
.breadcrumbs a{color:var(--dark);font-weight:600}
.prose{max-width:68ch;margin:0 auto;padding:2.5rem 0}
.prose h2{margin-top:2em;font-size:1.5rem}
.prose h3{margin-top:1.4em;font-size:1.2rem}
.prose ul,.prose ol{padding-left:1.4em}
.prose li{margin-bottom:.4em}
.legal-toc{background:var(--white);border-radius:var(--radius);padding:1.4rem 1.6rem;margin:0 auto 2rem;max-width:68ch;box-shadow:var(--shadow-soft)}
.legal-toc h2{font-size:1.1rem;margin-top:0}
.legal-toc ol{margin:0;padding-left:1.3em}
.notice{border-radius:14px;padding:1.1rem 1.4rem;margin:1.4rem 0;border:1.5px solid var(--beige);background:var(--white)}
.notice-info{border-color:var(--olive);background:rgba(85,112,82,.08)}
.notice-warn{border-color:var(--terracotta);background:rgba(168,82,57,.08)}
.faq{max-width:760px;margin:0 auto;display:flex;flex-direction:column;gap:.9rem}
.faq-item{background:var(--white);border-radius:14px;padding:.3rem 1.3rem;box-shadow:var(--shadow-soft)}
.faq-item summary{cursor:pointer;font-weight:700;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.4rem;color:var(--terracotta);transition:transform .3s}
.faq-item[open] summary::after{transform:rotate(45deg)}
.faq-item p{padding-bottom:1rem;opacity:.85}
.product-detail{display:grid;grid-template-columns:1fr 1fr;gap:2.6rem;align-items:start}
@media (max-width:760px){.product-detail{grid-template-columns:1fr}}
.product-detail .gallery img{border-radius:var(--radius);aspect-ratio:4/3;object-fit:cover}
.product-detail .price{font-size:1.8rem;font-weight:700;color:var(--terracotta);font-family:var(--font-display)}
.product-meta{display:flex;flex-direction:column;gap:.3rem;margin:1.2rem 0;font-size:.92rem}
.qty-control{display:flex;align-items:center;gap:.6rem;border:1.5px solid var(--beige);border-radius:999px;padding:.3rem .5rem;width:fit-content}
.qty-control button{min-width:36px;min-height:36px;border-radius:50%;border:0;background:var(--beige);cursor:pointer;font-size:1.1rem}
.cart-table{width:100%;border-collapse:collapse}
.cart-table th,.cart-table td{padding:.9rem .6rem;border-bottom:1px solid var(--beige);text-align:left;vertical-align:middle}
.cart-table img{width:60px;height:60px;object-fit:cover;border-radius:10px}
.cart-summary{background:var(--white);border-radius:var(--radius);padding:1.6rem;box-shadow:var(--shadow-soft);max-width:380px;margin-left:auto}
.cart-summary dl{display:grid;grid-template-columns:1fr auto;gap:.5rem 1rem;margin:0 0 1rem}
.cart-summary dt{color:var(--olive)}
.cart-summary dd{margin:0;text-align:right;font-weight:600}
.contact-layout{display:grid;grid-template-columns:1.2fr 1fr;gap:2.5rem}
@media (max-width:800px){.contact-layout{grid-template-columns:1fr}}
.contact-info{background:var(--white);border-radius:var(--radius);padding:1.6rem;box-shadow:var(--shadow-soft)}
.contact-info ul{list-style:none;padding:0;display:flex;flex-direction:column;gap:.8rem}
.contact-info li{display:flex;gap:.7rem;align-items:flex-start}

/* COMPONENTS: .class - what it is
.site-header - sticky header bar
.main-nav - primary nav, becomes off-canvas on mobile
.cart-link / .cart-count - cart icon and animated badge
.menu-toggle - mobile hamburger button
.btn / .btn-primary / .btn-secondary / .btn-ghost / .btn-small - button variants with fill-sweep hover
.hero-split / .hero-panel / .hero-divider / .hero-eyebrow / .hero-title / .sweep / .hero-sub / .hero-actions / .hero-illustration - split-screen hero system
.section-head - centered section intro
.grid / .grid-3 / .grid-4 - responsive grids
.reveal / .in-view - scroll-reveal animation hook
.category-card / .product-card / .card-media / .card-body / .card-price / .card-tag - card components
.product-strip - horizontal scroll-snap product row (mobile)
.divider-wave / .ornament-sprig / .seal-badge / .grain-overlay - decorative SVG elements
.pairing-tool / .pairing-select / .chip / .pairing-result - signature feature widget
.site-footer / .footer-inner / .footer-cols / .newsletter-form / .footer-mail / .footer-bottom - footer system
.form-grid / .field / .field-error / .form-msg - form layout and validation
.cookie-banner / .cookie-actions - cookie consent banner
.page-hero - inner-page hero band
.breadcrumbs - breadcrumb trail
.prose - long-form legal/article text measure
.legal-toc - table of contents box for legal pages
.notice / .notice-info / .notice-warn - callout boxes
.faq / .faq-item - accordion FAQ (details/summary)
.product-detail / .gallery / .price / .product-meta / .qty-control - product page layout
.cart-table / .cart-summary - cart and checkout tables
.contact-layout / .contact-info - contact page layout
*/

/* ===== Missing Component Styles ===== */
.footer-newsletter {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  box-shadow: var(--shadow-soft);
}

@media (max-width: 640px) {
  .footer-newsletter {
    padding: 1.5rem 1rem;
  }
}

.logo-mark {
  width: 2rem;
  height: 2rem;
  display: block;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

@media (max-width: 640px) {
  .contact-form {
    gap: 1rem;
  }
}

.qty-update {
  width: 4rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--beige);
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 1rem;
  text-align: center;
  color: var(--dark);
}

.qty-update:focus {
  outline: none;
  border-color: var(--saffron);
  box-shadow: 0 0 0 3px rgba(213, 163, 66, 0.1);
}

.product-detail-row {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1rem 0;
  border-bottom: 1px solid var(--beige);
}

@media (max-width: 640px) {
  .product-detail-row {
    gap: 0.5rem;
    padding: 0.75rem 0;
  }
}

/* wg-contrast-autofix */
#main section.hero-split div.hero-panel.left h1.hero-title { color: #ffffff !important; }
section.hero-split div.hero-panel.left h1.hero-title span.sweep { color: #ffffff !important; }
section.hero-split div.hero-panel.left div.hero-actions.reveal a.btn.btn-secondary { color: #ffffff !important; }
footer.site-footer div.footer-inner div.footer-newsletter p { color: #111111 !important; }
div.footer-inner div.footer-newsletter form.newsletter-form label.visually-hidden { color: #111111 !important; }
footer.site-footer div.footer-inner div.footer-newsletter p.footer-mail { color: #111111 !important; }
