:root {
  --ink: #26311f;
  --green-950: #263512;
  --green-900: #3d571d;
  --green-800: #3f591e;
  --green-700: #4c6b24;
  --green-500: #7f9f4f;
  --sage: #d4e2bd;
  --sage-soft: #eef3e7;
  --cream: #f7f5ef;
  --paper: #fffefb;
  --sand: #e6e1d7;
  --copper: #4c6b24;
  --gold: #a7bd7b;
  --danger: #b13b31;
  --muted: #6d756f;
  --white: #fff;
  --shadow-sm: 0 10px 30px rgba(21, 41, 24, .08);
  --shadow-lg: 0 25px 70px rgba(21, 41, 24, .18);
  --radius-sm: 14px;
  --radius: 24px;
  --radius-lg: 34px;
  --max: 1180px;
  --header-h: 76px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 20px); }
body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
body.modal-open { overflow: hidden; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }

.skip-link {
  position: fixed; left: 12px; top: -60px; z-index: 9999;
  padding: 12px 18px; border-radius: 999px; background: var(--ink); color: white;
}
.skip-link:focus { top: 12px; }

.container { width: min(calc(100% - 32px), var(--max)); margin-inline: auto; }
.section { padding: 84px 0; }
.section--paper { background: var(--paper); }
.section--green { background: var(--green-950); color: white; }
.section-heading { max-width: 760px; margin-bottom: 34px; }
.eyebrow {
  margin: 0 0 12px; color: var(--green-700); font-size: .78rem; font-weight: 800;
  letter-spacing: .16em; text-transform: uppercase;
}
.section--green .eyebrow { color: var(--sage); }
h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; font-weight: 500; letter-spacing: -.035em; }
h1 { margin: 0; font-size: clamp(2.65rem, 8.6vw, 5.6rem); line-height: .96; }
h2 { margin: 0; font-size: clamp(2.15rem, 6vw, 4rem); line-height: 1.02; }
h3 { margin: 0; font-size: clamp(1.45rem, 3vw, 2rem); line-height: 1.1; }
p { line-height: 1.65; }
.lead { color: var(--muted); font-size: clamp(1rem, 2vw, 1.16rem); max-width: 680px; }
.section--green .lead { color: rgba(255,255,255,.76); }

.site-header {
  position: fixed; inset: 0 0 auto; z-index: 1000; height: var(--header-h);
  background: rgba(251,247,239,.88); border-bottom: 1px solid rgba(36,67,38,.08);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
}
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; }
.brand img { width: 52px; height: 52px; object-fit: contain; }
.brand-copy { display: flex; flex-direction: column; line-height: 1.05; }
.brand-copy strong { font-size: .92rem; letter-spacing: .09em; }
.brand-copy span { color: var(--muted); font-size: .72rem; margin-top: 4px; }
.main-nav { display: none; align-items: center; gap: 26px; }
.main-nav a { text-decoration: none; color: #334037; font-size: .92rem; font-weight: 700; }
.main-nav a:hover { color: var(--green-700); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.lang-toggle { display: flex; padding: 3px; background: #e8eee2; border-radius: 999px; }
.lang-toggle button {
  width: 36px; height: 34px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font-size: .76rem; font-weight: 800;
}
.lang-toggle button.is-active { background: white; color: var(--green-900); box-shadow: 0 3px 12px rgba(0,0,0,.08); }
.cart-trigger {
  position: relative; border: 0; background: var(--green-900); color: white; border-radius: 999px;
  min-width: 44px; height: 44px; padding: 0 14px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 800;
}
.cart-trigger svg { width: 20px; }
.cart-trigger-text { display: none; }
.cart-badge {
  position: absolute; right: -3px; top: -4px; min-width: 20px; height: 20px; padding: 0 5px;
  display: grid; place-items: center; border-radius: 999px; background: var(--copper); color: white; font-size: .68rem; border: 2px solid var(--cream);
}

.hero { min-height: 92svh; padding-top: var(--header-h); position: relative; display: grid; align-items: end; overflow: hidden; background: #26311f; }
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 72%; }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11,22,13,.18) 0%, rgba(11,22,13,.42) 42%, rgba(11,22,13,.92) 100%);
}
.hero-content { position: relative; z-index: 1; padding: 92px 0 44px; color: white; }
.hero-copy { max-width: 840px; }
.hero .eyebrow { color: #dceacc; }
.hero p { max-width: 680px; font-size: clamp(1.05rem, 2.5vw, 1.3rem); color: rgba(255,255,255,.84); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.button {
  border: 0; border-radius: 999px; min-height: 52px; padding: 0 22px; display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  text-decoration: none; font-weight: 800; transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.button:hover { transform: translateY(-2px); }
.button--primary { background: var(--sage); color: var(--green-950); box-shadow: 0 12px 32px rgba(0,0,0,.2); }
.button--dark { background: var(--green-900); color: white; }
.button--light { background: white; color: var(--green-950); }
.button--ghost { background: rgba(255,255,255,.1); color: white; border: 1px solid rgba(255,255,255,.25); }
.button--outline { background: transparent; color: var(--green-900); border: 1px solid rgba(36,67,38,.24); }
.button--full { width: 100%; }
.button:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.hero-trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 36px; max-width: 660px; }
.trust-item { display: flex; align-items: center; gap: 8px; color: rgba(255,255,255,.88); font-size: .76rem; font-weight: 700; }
.trust-dot { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: rgba(199,216,185,.18); color: var(--sage); flex: 0 0 auto; }

.how-strip { background: var(--paper); border-bottom: 1px solid var(--sand); }
.how-grid { display: grid; gap: 0; }
.how-item { padding: 26px 0; display: flex; gap: 16px; align-items: flex-start; border-bottom: 1px solid var(--sand); }
.how-item:last-child { border: 0; }
.how-number { width: 34px; height: 34px; border-radius: 50%; flex: 0 0 auto; display: grid; place-items: center; background: var(--green-900); color: white; font-weight: 800; }
.how-item strong { display: block; margin-bottom: 4px; }
.how-item span { color: var(--muted); font-size: .9rem; line-height: 1.5; }

.choice-grid { display: grid; gap: 18px; }
.choice-grid--2 { max-width: 920px; margin-inline: auto; }
.edit-notice {
  margin-bottom: 18px; padding: 12px 14px; border-radius: 14px; background: #eaf5e5;
  color: var(--green-900); display: flex; align-items: center; justify-content: space-between; gap: 14px;
  font-size: .84rem; font-weight: 800;
}
.edit-notice .text-button { flex: 0 0 auto; }
.choice-card {
  position: relative; min-height: 310px; overflow: hidden; border-radius: var(--radius-lg); color: white; text-decoration: none; box-shadow: var(--shadow-sm);
}
.choice-card img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; transition: transform .5s ease; }
.choice-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 20%, rgba(10,22,13,.9) 100%); }
.choice-card:hover img { transform: scale(1.035); }
.choice-copy { position: absolute; inset: auto 22px 22px; z-index: 1; }
.choice-copy h3 { font-size: 2rem; }
.choice-copy p { margin: 8px 0 0; color: rgba(255,255,255,.8); line-height: 1.45; }
.choice-arrow { position: absolute; z-index: 2; right: 18px; top: 18px; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.9); color: var(--green-900); font-size: 1.35rem; }

.product-grid { display: grid; gap: 20px; }
.product-card {
  background: var(--paper); border: 1px solid rgba(36,67,38,.09); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm);
}
.product-image { aspect-ratio: 16/11; position: relative; overflow: hidden; background: var(--sand); }
.product-image img { width: 100%; height: 100%; object-fit: cover; }
.product-badge { position: absolute; left: 14px; top: 14px; background: rgba(255,253,248,.92); color: var(--green-900); padding: 8px 12px; border-radius: 999px; font-size: .74rem; font-weight: 800; backdrop-filter: blur(10px); }
.product-body { padding: 22px; }
.product-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.product-price { text-align: right; flex: 0 0 auto; }
.product-price strong { display: block; font-family: Georgia, serif; color: var(--green-900); font-size: 1.7rem; }
.product-price span { color: var(--muted); font-size: .75rem; }
.product-tagline { color: var(--muted); margin: 12px 0 16px; }
.product-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.pill { padding: 7px 10px; border-radius: 999px; background: var(--sage-soft); color: var(--green-800); font-size: .76rem; font-weight: 800; }
.detail-toggle { padding: 0; border: 0; background: transparent; color: var(--green-700); font-weight: 800; text-decoration: underline; text-underline-offset: 4px; }
.product-details { margin: 16px 0 0; padding: 16px 0 0 20px; border-top: 1px solid var(--sand); color: #455048; }
.product-details li { margin: 8px 0; }
.quantity-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--sand); }
.quantity-control { display: inline-flex; align-items: center; gap: 4px; padding: 4px; border-radius: 999px; background: var(--sage-soft); }
.quantity-control button { width: 40px; height: 40px; border: 0; border-radius: 50%; background: white; color: var(--green-900); font-weight: 900; font-size: 1.25rem; box-shadow: 0 3px 10px rgba(0,0,0,.06); }
.quantity-value { min-width: 38px; text-align: center; font-weight: 900; }

.breakfast-config {
  margin-top: 26px; background: var(--green-950); color: white; border-radius: var(--radius-lg); padding: 26px 18px; box-shadow: var(--shadow-lg);
}
.config-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin-bottom: 24px; }
.config-header p { margin: 8px 0 0; color: rgba(255,255,255,.68); }
.config-total { background: rgba(255,255,255,.1); border-radius: 16px; padding: 12px 15px; text-align: right; white-space: nowrap; }
.config-total strong { display: block; font-family: Georgia, serif; font-size: 1.45rem; }
.config-grid { display: grid; gap: 14px; }
.config-block { background: rgba(255,255,255,.075); border: 1px solid rgba(255,255,255,.09); border-radius: 20px; padding: 18px; }
.config-block h3 { font-family: inherit; font-size: 1rem; font-weight: 850; letter-spacing: 0; }
.config-block > p { margin: 5px 0 16px; color: rgba(255,255,255,.64); font-size: .85rem; }
.config-row { display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: center; padding: 10px 0; }
.config-row + .config-row { border-top: 1px solid rgba(255,255,255,.08); }
.config-row .quantity-control { background: rgba(255,255,255,.1); }
.config-row .quantity-control button { background: rgba(255,255,255,.92); }
.progress-note { display: inline-flex; margin-top: 12px; padding: 7px 10px; border-radius: 999px; background: rgba(199,216,185,.12); color: var(--sage); font-size: .78rem; font-weight: 800; }
.progress-note.is-error { background: rgba(177,59,49,.17); color: #ffd3cf; }
.juice-grid { display: grid; gap: 10px; }
.field-label { display: block; margin-bottom: 7px; font-size: .82rem; font-weight: 800; }
select, input, textarea {
  width: 100%; border: 1px solid #d7ddd3; background: white; color: var(--ink); border-radius: 13px; padding: 13px 14px; outline: none; transition: border-color .2s, box-shadow .2s;
}
select:focus, input:focus, textarea:focus { border-color: var(--green-500); box-shadow: 0 0 0 4px rgba(125,163,111,.16); }
.config-block select, .config-block input { border: 0; }
.date-add { display: grid; gap: 9px; }
.date-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 13px; }
.date-chip { border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.08); color: white; border-radius: 999px; padding: 8px 11px; display: inline-flex; gap: 8px; align-items: center; font-size: .82rem; }
.date-chip button { border: 0; background: transparent; color: white; padding: 0; font-size: 1rem; }
.config-footer { margin-top: 18px; display: grid; gap: 12px; }
.config-reassurance { display: inline-flex; align-items: center; gap: 7px; color: var(--sage); font-size: .84rem; font-weight: 850; }

.apero-card .product-image { aspect-ratio: 4/3; }
.apero-card .product-details { min-height: 190px; }
.terroir-grid { display: grid; gap: 18px; }
.terroir-card { position: relative; min-height: 380px; border-radius: var(--radius); overflow: hidden; color: white; box-shadow: var(--shadow-sm); }
.terroir-card > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.terroir-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(13,27,15,.08), rgba(13,27,15,.88)); }
.terroir-content { position: absolute; inset: auto 20px 20px; z-index: 1; }
.terroir-prices { display: flex; flex-wrap: wrap; gap: 7px; margin: 13px 0 18px; }
.terroir-prices span { background: rgba(255,255,255,.13); backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,.16); border-radius: 999px; padding: 8px 10px; font-size: .78rem; font-weight: 800; }
.deadline-note { display: inline-flex; align-items: center; gap: 7px; color: var(--copper); font-size: .82rem; font-weight: 900; margin-top: 10px; }
.section--green .deadline-note { color: #f3c38f; }


.story-layout { display: grid; gap: 28px; align-items: center; }
.story-image { min-height: 480px; border-radius: var(--radius-lg); overflow: hidden; background: var(--sand); }
.story-image img { width: 100%; height: 100%; object-fit: cover; }
.story-points { display: grid; gap: 12px; margin-top: 24px; }
.story-point { display: flex; gap: 12px; align-items: flex-start; }
.story-check { width: 28px; height: 28px; flex: 0 0 auto; border-radius: 50%; background: var(--sage-soft); color: var(--green-800); display: grid; place-items: center; font-weight: 900; }

.site-footer { padding: 44px 0 110px; background: #242424; color: white; }
.footer-grid { display: flex; flex-direction: column; gap: 24px; }
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand img { width: 70px; }
.footer-copy { color: rgba(255,255,255,.6); font-size: .86rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 16px; font-size: .86rem; }

.mobile-cart-bar {
  position: fixed; z-index: 800; left: 12px; right: 12px; bottom: 12px; min-height: 62px; padding: 8px 8px 8px 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 14px; border-radius: 999px; background: var(--green-950); color: white; box-shadow: 0 16px 45px rgba(0,0,0,.28);
  transform: translateY(140%); transition: transform .3s ease;
}
.mobile-cart-bar.is-visible { transform: translateY(0); }
.mobile-cart-info strong { display: block; }
.mobile-cart-info span { font-size: .75rem; color: rgba(255,255,255,.65); }
.mobile-cart-bar button { border: 0; border-radius: 999px; background: var(--sage); color: var(--green-950); min-height: 46px; padding: 0 18px; font-weight: 900; }

.overlay { position: fixed; inset: 0; z-index: 1200; background: rgba(8,17,10,.56); backdrop-filter: blur(4px); opacity: 0; pointer-events: none; transition: opacity .25s; }
.overlay.is-open { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; z-index: 1300; top: 0; right: 0; width: min(100%, 480px); height: 100%; background: var(--paper);
  transform: translateX(105%); transition: transform .3s ease; display: flex; flex-direction: column; box-shadow: -20px 0 70px rgba(0,0,0,.18);
}
.drawer.is-open { transform: translateX(0); }
.drawer-header { padding: 20px; border-bottom: 1px solid var(--sand); display: flex; align-items: center; justify-content: space-between; }
.icon-button { width: 42px; height: 42px; border: 0; border-radius: 50%; display: grid; place-items: center; background: var(--sage-soft); color: var(--green-900); font-size: 1.3rem; }
.drawer-body { padding: 20px; overflow-y: auto; flex: 1; }
.drawer-footer { border-top: 1px solid var(--sand); padding: 18px 20px; background: white; }
.cart-empty { text-align: center; padding: 60px 20px; }
.cart-empty-icon { width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center; background: var(--sage-soft); font-size: 1.7rem; }
.cart-item { border: 1px solid var(--sand); border-radius: 18px; padding: 15px; margin-bottom: 12px; background: white; }
.cart-item-head { display: flex; justify-content: space-between; gap: 12px; }
.cart-item-title { font-weight: 900; }
.cart-item-price { font-weight: 900; color: var(--green-800); }
.cart-item-meta { color: var(--muted); font-size: .82rem; margin-top: 8px; line-height: 1.5; }
.cart-item-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 12px; }
.text-button { border: 0; background: transparent; color: var(--green-700); padding: 0; font-weight: 800; font-size: .8rem; }
.text-button--danger { color: var(--danger); }
.cart-total { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; }
.cart-total strong { font-family: Georgia, serif; font-size: 1.8rem; }

.modal {
  position: fixed; z-index: 1400; inset: 0; display: none; place-items: end center;
  pointer-events: none; opacity: 0; visibility: hidden;
}
.modal[aria-hidden="true"] { display: none !important; }
.modal.is-open[aria-hidden="false"] {
  display: grid; pointer-events: auto; opacity: 1; visibility: visible;
}
.modal-panel {
  width: min(100%, 700px); max-height: min(92vh, 920px); overflow-y: auto; background: var(--paper); border-radius: 28px 28px 0 0;
  box-shadow: var(--shadow-lg); transform: translateY(104%); transition: transform .3s ease;
}
.modal:not(.is-open) .modal-panel { visibility: hidden; }
.modal.is-open .modal-panel { transform: translateY(0); visibility: visible; }
.modal-header { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 18px 20px; background: rgba(255,253,248,.94); backdrop-filter: blur(14px); border-bottom: 1px solid var(--sand); }
.modal-body { padding: 22px 20px 30px; }
.modal-product { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.modal-product img { width: 88px; height: 88px; border-radius: 16px; object-fit: cover; }
.modal-product-price { color: var(--green-800); font-weight: 900; margin-top: 5px; }
.form-grid { display: grid; gap: 15px; }
.form-field label { display: block; margin-bottom: 7px; font-weight: 800; font-size: .84rem; }
.field-hint { color: var(--muted); font-size: .77rem; margin: 6px 0 0; }
.option-grid { display: grid; gap: 10px; }
.option-card { position: relative; }
.option-card input { position: absolute; opacity: 0; pointer-events: none; }
.option-card label { display: flex; justify-content: space-between; gap: 14px; padding: 14px; border: 1px solid var(--sand); border-radius: 15px; background: white; cursor: pointer; }
.option-card input:checked + label { border-color: var(--green-700); box-shadow: 0 0 0 3px rgba(125,163,111,.15); background: var(--sage-soft); }
.option-card strong { display: block; }
.option-card span { color: var(--muted); font-size: .8rem; }
.checkbox-row { display: flex; align-items: flex-start; gap: 10px; padding: 12px 0; }
.checkbox-row input { width: 20px; height: 20px; flex: 0 0 auto; margin-top: 1px; }
.checkbox-row label { color: #455048; font-size: .86rem; line-height: 1.45; }
.modal-summary { margin: 18px 0; padding: 14px; border-radius: 16px; background: var(--sage-soft); display: flex; justify-content: space-between; gap: 16px; }
.modal-summary strong:last-child { color: var(--green-800); font-size: 1.15rem; }

.checkout-progress { display: flex; gap: 6px; margin-bottom: 20px; }
.checkout-progress span { height: 5px; flex: 1; border-radius: 999px; background: var(--sand); }
.checkout-progress span.is-active { background: var(--green-700); }
.demo-note { padding: 12px 14px; border-radius: 14px; background: #fff3d9; color: #72511b; font-size: .82rem; margin-bottom: 18px; }

.toast-region { position: fixed; z-index: 2000; right: 14px; bottom: 88px; display: grid; gap: 10px; width: min(calc(100% - 28px), 380px); }
.toast { background: var(--ink); color: white; border-radius: 16px; padding: 14px 16px; box-shadow: var(--shadow-lg); animation: toast-in .25s ease; }
.toast.is-error { background: var(--danger); }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px); } }

.success-shell { min-height: 100vh; padding: 40px 0; display: grid; place-items: center; background: radial-gradient(circle at top, #eef5e8, var(--cream) 48%); }
.success-card { width: min(calc(100% - 30px), 720px); background: white; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 30px 22px; text-align: center; }
.success-icon { width: 76px; height: 76px; margin: 0 auto 20px; border-radius: 50%; background: var(--sage-soft); color: var(--green-800); display: grid; place-items: center; font-size: 2rem; }
.success-card h1 { font-size: clamp(2rem, 8vw, 3.8rem); color: var(--green-950); }
.success-card .lead { margin-inline: auto; }
.success-details { margin: 24px 0; text-align: left; border: 1px solid var(--sand); border-radius: 18px; padding: 18px; background: var(--paper); }
.success-details pre { white-space: pre-wrap; font: inherit; font-size: .86rem; line-height: 1.55; color: #465047; }
.loader { width: 44px; height: 44px; margin: 20px auto; border: 4px solid var(--sand); border-top-color: var(--green-700); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (min-width: 640px) {
  .container { width: min(calc(100% - 48px), var(--max)); }
  .hero-content { padding-bottom: 64px; }
  .choice-grid, .product-grid, .terroir-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .config-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .date-add { grid-template-columns: 1fr auto; }
  .config-footer { grid-template-columns: 1fr auto; align-items: center; }
  .form-grid--2 { grid-template-columns: repeat(2, 1fr); }
  .option-grid { grid-template-columns: repeat(2, 1fr); }
  .modal { place-items: center; padding: 20px; }
  .modal-panel { border-radius: 28px; }
  .cart-trigger-text { display: inline; }
}

@media (min-width: 900px) {
  :root { --header-h: 84px; }
  .main-nav { display: flex; }
  .hero { min-height: 88vh; }
  .hero-media img { object-position: center 72%; }
  .how-grid { grid-template-columns: repeat(3, 1fr); }
  .how-item { padding: 28px; border-bottom: 0; border-right: 1px solid var(--sand); }
  .how-item:first-child { padding-left: 0; }
  .how-item:last-child { border: 0; }
  .choice-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .choice-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .choice-card { min-height: 390px; }
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .product-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .breakfast-config { padding: 34px; }
  .terroir-grid { grid-template-columns: repeat(3, 1fr); }
  .story-layout { grid-template-columns: 1.05fr .95fr; gap: 64px; }
  .footer-grid { flex-direction: row; align-items: center; justify-content: space-between; }
  .mobile-cart-bar { left: 50%; right: auto; width: 500px; transform: translate(-50%, 140%); }
  .mobile-cart-bar.is-visible { transform: translate(-50%, 0); }
}

@media (min-width: 1120px) {
  .section { padding: 112px 0; }
  .choice-copy { inset: auto 28px 28px; }
  .product-body { padding: 26px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

/* Sécurité : aucune fenêtre de configuration produit n'existe ou ne s'affiche avant une action utilisateur. */
#product-modal:not(.is-open),
#product-modal[hidden],
#product-modal[aria-hidden="true"] {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}



/* v1.6 — catalogue d’extras et identité TSARA */
.addon-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
.addon-card { position: relative; overflow: hidden; border-radius: 20px; background: var(--paper); border: 1px solid rgba(76,107,36,.12); box-shadow: var(--shadow-sm); display: flex; flex-direction: column; }
.addon-card.is-featured { grid-column: 1 / -1; border-color: rgba(76,107,36,.34); background: linear-gradient(135deg,#f6f8f1,#e8f0dc); }
.addon-card-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--sand); }
.addon-card.is-featured .addon-card-media { aspect-ratio: 16 / 8; }
.addon-card-media img { width:100%; height:100%; object-fit:cover; }
.addon-card-content { padding: 16px; display:flex; flex-direction:column; gap:8px; flex:1; }
.addon-card-content h3 { font-family: inherit; font-size: 1rem; font-weight: 850; letter-spacing: 0; }
.addon-card-content p { margin:0; color:var(--muted); font-size:.84rem; line-height:1.45; }
.addon-card-bottom { margin-top:auto; padding-top:8px; display:flex; align-items:center; justify-content:space-between; gap:10px; }
.addon-price { color:var(--green-800); font-weight:900; }
.addon-card .button { min-height:42px; padding:0 15px; }
.featured-badge { position:absolute; left:12px; top:12px; z-index:2; border-radius:999px; padding:7px 10px; color:white; background:var(--green-800); font-size:.72rem; font-weight:900; }
.addon-card.is-disabled { opacity:.82; }
.addon-card.is-disabled .button { pointer-events:none; }
.checkout-upsell { margin: 6px 0 24px; padding: 18px; border-radius:20px; background:var(--sage-soft); border:1px solid rgba(76,107,36,.14); }
.checkout-upsell-head { display:grid; gap:14px; margin-bottom:14px; }
.checkout-upsell-head h3 { font-family:inherit; font-size:1.05rem; font-weight:900; letter-spacing:0; }
.checkout-upsell-head .eyebrow { margin-bottom:5px; }
.checkout-date-select { display:block; font-size:.78rem; font-weight:800; }
.checkout-date-select select { margin-top:6px; background:white; }
.checkout-addon-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
.checkout-addon-item { background:white; border-radius:14px; padding:10px; border:1px solid rgba(76,107,36,.12); }
.checkout-addon-item img { width:100%; height:76px; object-fit:cover; border-radius:10px; margin-bottom:8px; }
.checkout-addon-item strong { display:block; font-size:.78rem; line-height:1.25; }
.checkout-addon-item small { color:var(--green-800); font-weight:900; }
.checkout-addon-item .quantity-control { margin-top:8px; transform:scale(.82); transform-origin:left center; }
.footer-links { display:flex; flex-direction:column; align-items:flex-start; gap:8px; }
.footer-links a { color:inherit; text-underline-offset:4px; }

@media (min-width: 760px) {
  .addon-grid { grid-template-columns: repeat(3, minmax(0,1fr)); gap:20px; }
  .addon-card.is-featured { grid-column: span 2; }
  .checkout-upsell-head { grid-template-columns:1fr 220px; align-items:end; }
  .checkout-addon-grid { grid-template-columns:repeat(4,minmax(0,1fr)); }
}


/* v1.9 — déploiement anti-cache et produits complémentaires visibles */
#extras { background: #f1f5eb; }
#addon-products { min-height: 220px; }
.addon-loading { grid-column: 1 / -1; padding: 28px; text-align: center; color: var(--muted); }
.addon-card.is-featured { order: -1; box-shadow: 0 18px 42px rgba(76,107,36,.18); }
.addon-card.is-featured .addon-card-content h3 { font-size: 1.18rem; }
.checkout-upsell { display: block !important; background: #eef4e7; border: 2px solid rgba(76,107,36,.24); }
.checkout-addon-grid:empty::before { content: 'Chargement des produits complémentaires…'; grid-column: 1 / -1; color: var(--muted); padding: 18px; }
.checkout-addon-item:first-child { border: 2px solid #4c6b24; background: #f7faF2; }
.build-marker { opacity: .58; font-size: .68rem; }
@media (max-width: 639px) {
  .hero-media img { object-position: center 76%; }
  .addon-card.is-featured { grid-column: 1 / -1; }
  .checkout-addon-grid { grid-template-columns: repeat(2,minmax(0,1fr)); max-height: 430px; overflow-y: auto; padding-right: 4px; }
}


/* v2.0 — identité TSARA renforcée et extras sans visuels inventés */
.site-header {
  background: rgba(76,107,36,.96);
  border-bottom-color: rgba(255,255,255,.14);
}
.brand-copy strong,
.main-nav a { color: #fff; }
.brand-copy span { color: rgba(255,255,255,.72); }
.main-nav a:hover { color: #e7f0d8; }
.lang-toggle { background: rgba(255,255,255,.16); }
.lang-toggle button { color: rgba(255,255,255,.78); }
.lang-toggle button.is-active { background: #fff; color: #4c6b24; }
.cart-trigger { background: #263512; }

.button--primary { background: #4c6b24; color: #fff; }
.button--primary:hover { background: #3f591e; }
.button--outline { color: #4c6b24; border-color: rgba(76,107,36,.5); }
.button--outline:hover { background: #4c6b24; color: #fff; }
.pill { background: #e7eedc; color: #4c6b24; }
.product-badge { background: #4c6b24; color: #fff; }
.product-price strong, .addon-price { color: #4c6b24; }

.how-strip { background: #4c6b24; border-bottom: 0; color: #fff; }
.how-item { border-color: rgba(255,255,255,.18); }
.how-item span { color: rgba(255,255,255,.8); }
.how-number { background: #fff; color: #4c6b24; }

#extras { background: #eaf0df; }
.addon-card { border-color: rgba(76,107,36,.25); }
.addon-card.is-featured {
  border: 2px solid #4c6b24;
  background: linear-gradient(135deg,#f7faF2,#dfe9d1);
}
.addon-card.no-media { border-top: 5px solid #4c6b24; }
.addon-card.no-media .addon-card-content { padding-top: 20px; }
.featured-badge--inline {
  position: static;
  align-self: flex-start;
  display: inline-flex;
  margin: 14px 14px 0;
}
.checkout-addon-item.no-media {
  border-top: 4px solid #4c6b24;
  padding-top: 14px;
}
.checkout-addon-item:first-child {
  border: 2px solid #4c6b24;
  background: #eef4e7;
}

@media (min-width: 900px) {
  .how-item { border-right-color: rgba(255,255,255,.18); }
}


/* v2.1 — lisibilité des étapes et coordonnées */
.how-item .how-number { background:#fff; color:#4c6b24; font-weight:900; }
.footer-grid { align-items:center; text-align:center; }
.footer-brand { justify-content:center; }
.footer-links { align-items:center; text-align:center; width:100%; }
.footer-contact { display:grid; gap:8px; justify-items:center; }
.footer-contact a { display:inline-flex; align-items:center; justify-content:center; gap:9px; color:inherit; text-decoration:none; }
.footer-contact a:hover { text-decoration:underline; text-underline-offset:4px; }
.footer-contact svg { width:19px; height:19px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; flex:0 0 auto; }
@media (min-width:900px) { .footer-grid { flex-direction:column; justify-content:center; } }
