/* Ziyad Shop landing page. Mobile first, works in LTR (/fr) and RTL (/ar). */

:root {
  --green-950: #072b18;
  --green-900: #0c3f25;
  --green-800: #115232;
  --green-700: #17683f;
  --green-600: #1f8a4c;
  --lime: #9bd36a;
  --lime-200: #d9efc4;
  --lime-100: #ecf7e0;
  --mint-50: #f4f9ef;
  --cream: #fbfaf4;
  --paper: #ffffff;
  --gold: #b8860b;
  --gold-100: #fbf0d2;
  --red: #d2402a;
  --red-100: #fde8e3;
  --ink: #13261a;
  --muted: #5a6b5f;
  --line: #e1e9db;
  --wa: #1fa855;

  --radius: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 1px 2px rgba(12, 63, 37, .06), 0 2px 8px rgba(12, 63, 37, .05);
  --shadow: 0 1px 2px rgba(12, 63, 37, .06), 0 10px 30px rgba(12, 63, 37, .09);
  --font: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-hand: "Caveat", "Poppins", cursive;
  --gutter: 16px;
  --sticky-h: 0px;
}
html[lang="ar"] {
  --font: "Cairo", "Segoe UI", Tahoma, sans-serif;
  --font-hand: "Cairo", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--cream);
  padding-bottom: var(--sticky-h);
  overflow-x: hidden;
}
html[lang="ar"] body { line-height: 1.7; }
img { max-width: 100%; display: block; }
a { color: var(--green-700); }
h1, h2, h3 { line-height: 1.2; margin: 0; letter-spacing: -.01em; }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3 { letter-spacing: 0; line-height: 1.35; }
p { margin: 0; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.container { width: 100%; max-width: 1140px; margin: 0 auto; padding-inline: var(--gutter); }
.container.narrow { max-width: 760px; }
.ic { width: 1.15em; height: 1.15em; flex: none; vertical-align: -0.2em; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: .7em 1.4em;
  border: 0; border-radius: 999px;
  font-weight: 600; font-size: 1rem; text-decoration: none; text-align: center;
  transition: transform .15s ease, background-color .2s ease, box-shadow .2s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(.97); }
.btn-lg { min-height: 56px; font-size: 1.06rem; padding-inline: 1.6em; }
.btn-block { width: 100%; }
.btn-primary { background: var(--green-800); color: #fff; box-shadow: 0 6px 18px rgba(17, 82, 50, .28); }
.btn-primary:hover { background: var(--green-700); }
.btn-soft { background: var(--lime-100); color: var(--green-900); }
.btn-soft:hover { background: var(--lime-200); }
.btn-ghost { background: transparent; color: var(--green-800); }
.btn-wa { background: var(--wa); color: #fff; box-shadow: 0 6px 18px rgba(31, 168, 85, .3); }
.btn-wa:hover { background: #17904a; }
.btn[disabled] { opacity: .6; pointer-events: none; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .45em;
  font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
  color: var(--green-700);
}
html[lang="ar"] .eyebrow { text-transform: none; letter-spacing: 0; font-size: .92rem; }

/* ---------- Top bar & header ---------- */
.topbar { background: var(--green-900); color: #e8f5dc; font-size: .78rem; }
.topbar-inner { display: flex; align-items: center; justify-content: center; gap: .6rem; padding-block: .55rem; text-align: center; white-space: nowrap; }
@media (max-width: 559px) { .hide-sm { display: none; } }
.topbar-inner > span { display: inline-flex; align-items: center; gap: .4em; }
.topbar-inner b { margin-inline: .25em; }
.topbar b { color: var(--lime); }
.topbar-sep { opacity: .5; }

.site-header { background: rgba(251, 250, 244, .92); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 64px; }
.logo { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; color: var(--green-900); }
.logo-mark { width: 36px; height: 36px; border-radius: 11px; background: var(--green-900); display: grid; place-items: center; color: var(--lime); }
.logo-mark svg { width: 22px; height: 22px; }
.logo-word { font-family: "Poppins", var(--font); font-weight: 800; font-size: 1.3rem; letter-spacing: -.02em; display: inline-flex; gap: .25em; direction: ltr; }
.logo-word span { font-weight: 500; color: var(--green-600); }
.header-actions { display: flex; align-items: center; gap: .5rem; }
.lang-switch {
  text-decoration: none; font-weight: 600; font-size: .9rem; color: var(--green-900);
  padding: .45em .95em; border: 1.5px solid var(--line); border-radius: 999px; background: #fff;
}
.lang-switch[lang="ar"] { font-family: "Cairo", sans-serif; }
.lang-switch[lang="fr"] { font-family: "Poppins", sans-serif; }
.wa-mini { width: 42px; height: 42px; border-radius: 50%; background: var(--wa); color: #fff; display: grid; place-items: center; }
.wa-mini svg { width: 22px; height: 22px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(60% 50% at 100% 0%, rgba(155, 211, 106, .28), transparent 70%),
    radial-gradient(50% 40% at 0% 100%, rgba(155, 211, 106, .18), transparent 70%),
    linear-gradient(180deg, var(--mint-50), var(--cream));
  padding-block: 28px 40px;
  overflow: hidden;
}
.hero-grid { display: grid; gap: 22px; grid-template-areas: "top" "media" "bottom"; }
.hero-top { grid-area: top; display: grid; gap: 12px; }
.hero-media { grid-area: media; }
.hero-bottom { grid-area: bottom; display: grid; gap: 18px; }
.hero h1 { font-size: clamp(1.7rem, 6.6vw, 3.1rem); font-weight: 800; color: var(--green-950); }
.hero h1 em { font-style: normal; color: var(--green-600); background: linear-gradient(transparent 62%, var(--lime-200) 62%); padding-inline: .08em; }
.lead { color: var(--muted); font-size: 1.02rem; max-width: 34em; }

.hero-media { position: relative; margin: 0; }
.hero-media img {
  width: 100%; height: min(96vw, 420px); object-fit: cover; object-position: 50% 40%;
  border-radius: 26px; box-shadow: var(--shadow);
}
.hero-sticker {
  position: absolute; inset-block-start: 14px; inset-inline-start: 14px;
  width: 92px; height: 92px; border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  background: var(--green-900); color: #fff; font-size: .78rem; line-height: 1.15;
  box-shadow: 0 8px 20px rgba(7, 43, 24, .35); transform: rotate(-8deg);
}
html[dir="rtl"] .hero-sticker { transform: rotate(8deg); }
.hero-sticker b { display: block; color: var(--lime); font-size: 1.05rem; line-height: 1.1; }
.hero-off {
  position: absolute; inset-block-end: 14px; inset-inline-end: 14px;
  background: var(--red); color: #fff; font-weight: 800; font-size: 1.15rem;
  padding: .35em .8em; border-radius: 999px; box-shadow: 0 6px 16px rgba(210, 64, 42, .35);
}
.hero-off:empty { display: none; }

.hero-pack { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.hero-pack li {
  display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line);
  border-radius: 14px; padding: 6px 10px 6px 6px; font-size: .8rem; font-weight: 500; line-height: 1.25;
}
html[dir="rtl"] .hero-pack li { padding: 6px 6px 6px 10px; }
.hero-pack img { width: 40px; height: 40px; object-fit: contain; flex: none; }

.price-block { display: grid; gap: 2px; }
.price-label { font-size: .85rem; color: var(--muted); font-weight: 500; }
.price-row { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.price-now { font-size: 2.6rem; font-weight: 800; color: var(--green-900); line-height: 1; }
.price-old { font-size: 1.25rem; color: var(--muted); text-decoration-color: var(--red); text-decoration-thickness: 2px; }

.hero-ctas { display: grid; gap: 10px; }
.trust-row { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: .86rem; font-weight: 500; color: var(--green-900); }
.trust-row li { display: inline-flex; align-items: center; gap: .4em; }
.trust-row .ic { color: var(--green-600); }

/* ---------- Sections ---------- */
.section { padding-block: 48px; }
.section-head { display: grid; gap: 8px; margin-bottom: 26px; text-align: center; justify-items: center; }
.section-head h2 { font-size: clamp(1.55rem, 5.4vw, 2.3rem); font-weight: 800; color: var(--green-950); }
.section-head p { color: var(--muted); max-width: 36em; }

/* Why / routine */
.why { background: var(--paper); }
.why-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.why-card {
  position: relative; display: grid; grid-template-columns: 92px 1fr; gap: 14px; align-items: center;
  background: var(--mint-50); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px;
}
.why-num {
  position: absolute; inset-block-start: -10px; inset-inline-start: -6px;
  width: 30px; height: 30px; border-radius: 50%; background: var(--green-800); color: #fff;
  display: grid; place-items: center; font-weight: 700; font-size: .9rem; box-shadow: var(--shadow-sm);
}
.why-img { width: 92px; height: 92px; display: grid; place-items: center; background: #fff; border-radius: 14px; }
.why-img img { width: 84px; height: 84px; object-fit: contain; }
.why-step { display: inline-block; font-size: .74rem; font-weight: 700; color: var(--green-700); background: var(--lime-100); padding: .2em .7em; border-radius: 999px; margin-bottom: 6px; }
html[lang="ar"] .why-step { font-size: .8rem; }
.why-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 4px; color: var(--green-950); }
.why-card p { font-size: .88rem; color: var(--muted); }

/* ---------- Pack builder ---------- */
.builder { background: linear-gradient(180deg, var(--cream), var(--mint-50)); }
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; max-width: 560px; margin: 0 auto 22px; }
.tier {
  text-align: center; border: 1.5px solid var(--line); background: #fff; border-radius: 14px; padding: 8px 4px;
  transition: all .25s ease;
}
.tier b { display: block; font-size: 1.15rem; color: var(--green-800); }
.tier span { font-size: .76rem; color: var(--muted); }
.tier.is-active { border-color: var(--green-700); background: var(--green-800); box-shadow: 0 6px 16px rgba(17, 82, 50, .25); }
.tier.is-active b { color: var(--lime); }
.tier.is-active span { color: #e2f1d6; }

.slots { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.slot {
  position: relative; display: flex; flex-direction: column; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden;
}
.slot.pop { animation: pop .45s ease; }
@keyframes pop { 0% { transform: scale(.94); box-shadow: 0 0 0 4px var(--lime); } 100% { transform: none; } }
.slot-num {
  position: absolute; inset-block-start: 8px; inset-inline-start: 8px; z-index: 1;
  width: 24px; height: 24px; border-radius: 50%; background: var(--green-900); color: #fff;
  display: grid; place-items: center; font-size: .75rem; font-weight: 700;
}
.slot-img { position: relative; aspect-ratio: 1 / 1; background: var(--mint-50); }
.slot-img img { position: absolute; inset: 8%; width: 84%; height: 84%; object-fit: contain; }
.slot-body { padding: 10px 12px 4px; display: grid; gap: 2px; flex: 1; }
.brand { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--green-600); }
.p-name { font-size: .86rem; font-weight: 600; line-height: 1.3; color: var(--ink); }
.p-meta { display: flex; align-items: baseline; justify-content: space-between; gap: 6px; margin-top: 2px; }
.size { font-size: .76rem; color: var(--muted); }
.p-price { font-weight: 700; font-size: .92rem; color: var(--green-900); white-space: nowrap; }
.slot-actions { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); margin-top: 8px; }
.slot-actions button {
  display: inline-flex; align-items: center; justify-content: center; gap: .35em;
  min-height: 44px; border: 0; background: none; font-size: .8rem; font-weight: 600; color: var(--green-800);
}
.slot-actions button + button { border-inline-start: 1px solid var(--line); color: var(--red); }
.slot-actions button:hover { background: var(--mint-50); }
.slot-actions button[disabled] { color: #b9c3bb; cursor: not-allowed; background: none; }
.slot-actions .ic { width: 16px; height: 16px; }

.slot-empty {
  border: 2px dashed #b9d7a3; background: rgba(255, 255, 255, .6); box-shadow: none;
  align-items: center; justify-content: center; text-align: center; gap: 8px; padding: 18px 10px; min-height: 240px;
  color: var(--green-800); font-weight: 600; font-size: .9rem; cursor: pointer;
  transition: background .2s ease, border-color .2s ease;
}
.slot-empty:hover { background: #fff; border-color: var(--green-600); }
.slot-empty .plus { width: 52px; height: 52px; border-radius: 50%; background: var(--lime-100); display: grid; place-items: center; }
.slot-empty .plus svg { width: 26px; height: 26px; }
.slot-empty small { font-weight: 500; color: var(--muted); font-size: .78rem; }

/* Keep "−25%" and "140 ml" in reading order on the Arabic page */
.tier b, .hero-off, .size { direction: ltr; unicode-bidi: isolate; }

.min-note { text-align: center; font-size: .8rem; color: var(--muted); margin-top: 10px; }

.pack-bar {
  margin-top: 18px; background: var(--green-900); color: #fff; border-radius: var(--radius);
  padding: 18px; display: grid; gap: 14px; box-shadow: var(--shadow);
}
.pack-bar-prices { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; }
.pack-bar-prices .lbl { display: block; font-size: .78rem; color: #b8d8a8; }
.pack-bar .now { font-size: 2rem; font-weight: 800; color: #fff; line-height: 1.1; }
.pack-bar .old { color: #b8d8a8; font-size: 1.05rem; }
.save-pill { display: inline-flex; align-items: center; gap: .35em; background: var(--lime); color: var(--green-950); font-weight: 700; font-size: .86rem; padding: .35em .9em; border-radius: 999px; }
.nudge { font-size: .86rem; color: #d9efc4; display: flex; gap: .5em; align-items: center; }
.nudge .ic { color: var(--lime); }
.pack-bar .btn-primary { background: var(--lime); color: var(--green-950); box-shadow: none; }
.pack-bar .btn-primary:hover { background: #b2df8a; }

/* ---------- Chips ---------- */
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 10px; margin-bottom: 14px; scrollbar-width: none; scroll-snap-type: x proximity; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; scroll-snap-align: start; border: 1.5px solid var(--line); background: #fff; color: var(--green-900);
  border-radius: 999px; padding: .45em 1em; font-size: .86rem; font-weight: 600; min-height: 40px;
}
.chip[aria-selected="true"] { background: var(--green-800); border-color: var(--green-800); color: #fff; }
.chips-tight { margin-bottom: 4px; padding-inline: 16px; scroll-padding-inline: 16px; }

/* ---------- Product cards (extras) ---------- */
.extras { background: var(--paper); }
.product-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.pcard { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: box-shadow .2s ease, border-color .2s ease; }
.pcard:hover { box-shadow: var(--shadow-sm); }
.pcard.is-added { border-color: var(--green-600); box-shadow: 0 0 0 2px var(--lime-200); }
.pcard .slot-body { padding-bottom: 10px; }
.pcard-foot { padding: 0 10px 10px; }
.add-btn {
  width: 100%; min-height: 42px; border: 1.5px solid var(--green-800); background: #fff; color: var(--green-800);
  border-radius: 999px; font-weight: 600; font-size: .86rem; display: inline-flex; align-items: center; justify-content: center; gap: .35em;
}
.add-btn:hover { background: var(--green-800); color: #fff; }
.add-btn .ic { width: 16px; height: 16px; }
.qty { display: grid; grid-template-columns: 42px 1fr 42px; align-items: center; background: var(--green-800); color: #fff; border-radius: 999px; min-height: 42px; overflow: hidden; }
.qty button { border: 0; background: none; color: #fff; height: 42px; display: grid; place-items: center; }
.qty button:hover { background: var(--green-700); }
.qty .ic { width: 16px; height: 16px; }
.qty output { text-align: center; font-weight: 700; }
.more-wrap { text-align: center; margin-top: 18px; }

/* ---------- Order ---------- */
.order { background: linear-gradient(180deg, var(--mint-50), var(--cream)); scroll-margin-top: 8px; }
.order-grid { display: grid; gap: 16px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow-sm); padding: 20px; }
.summary h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 12px; color: var(--green-950); }
.sum-group { padding-block: 10px; border-top: 1px dashed var(--line); }
.sum-group:first-of-type { border-top: 0; padding-top: 0; }
.sum-head { display: flex; justify-content: space-between; gap: 10px; font-weight: 700; font-size: .9rem; color: var(--green-900); margin-bottom: 6px; }
.sum-head s { color: var(--muted); font-weight: 500; margin-inline-end: 6px; }
.sum-items { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.sum-items li { display: flex; align-items: center; gap: 10px; font-size: .84rem; }
.sum-items img { width: 36px; height: 36px; object-fit: contain; background: var(--mint-50); border-radius: 8px; flex: none; }
.sum-items .nm { flex: 1; line-height: 1.3; }
.sum-items .pr { font-weight: 600; white-space: nowrap; color: var(--muted); }
.sum-row { display: flex; justify-content: space-between; gap: 10px; font-size: .9rem; padding-block: 4px; }
.sum-row .free { color: var(--green-600); font-weight: 700; }
.sum-total { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; border-top: 2px solid var(--green-900); margin-top: 8px; padding-top: 12px; }
.sum-total span { font-weight: 700; }
.sum-total b { font-size: 1.6rem; color: var(--green-900); }
.sum-cod { margin-top: 10px; font-size: .82rem; color: var(--muted); display: flex; gap: .4em; align-items: center; }

.order-form h2 { font-size: 1.4rem; font-weight: 800; color: var(--green-950); }
.form-lead { color: var(--muted); font-size: .92rem; margin: 6px 0 16px; }
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label { font-weight: 600; font-size: .9rem; }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink);
  padding: .8em 1em; border: 1.5px solid var(--line); border-radius: 14px; background: var(--cream);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field textarea { resize: vertical; min-height: 64px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--green-600); box-shadow: 0 0 0 4px rgba(155, 211, 106, .35); background: #fff; }
html[dir="rtl"] .field input[dir="ltr"] { text-align: right; }
.field.has-error input, .field.has-error textarea { border-color: var(--red); background: var(--red-100); }
.err { color: var(--red); font-size: .8rem; min-height: 0; }
.err:empty { display: none; }
.btn-total { background: rgba(255, 255, 255, .16); padding: .15em .7em; border-radius: 999px; white-space: nowrap; }
.order-form .btn-lg { font-size: 1rem; padding-inline: 1.1em; }
.form-foot { margin-top: 10px; font-size: .82rem; color: var(--muted); display: flex; gap: .4em; align-items: center; justify-content: center; text-align: center; }

/* ---------- FAQ ---------- */
.faq { background: var(--paper); }
.faq details { border: 1px solid var(--line); border-radius: 16px; background: var(--cream); margin-bottom: 10px; overflow: hidden; }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 18px; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ic { transition: transform .2s ease; color: var(--green-700); }
.faq details[open] summary .ic { transform: rotate(180deg); }
.faq details p { padding: 0 18px 16px; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { background: var(--green-950); color: #cfe3c4; padding-block: 36px 20px; }
.footer-inner { display: grid; gap: 20px; }
.logo-light { color: #fff; }
.logo-light .logo-mark { background: var(--green-800); }
.logo-light .logo-word span { color: var(--lime); }
.site-footer p { margin-top: 10px; font-size: .9rem; max-width: 30em; }
.footer-links { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.footer-links a { color: #fff; text-decoration: none; display: inline-flex; align-items: center; gap: .4em; font-weight: 500; }
.copyright { font-size: .78rem; color: #8fae84; margin-top: 26px; }

/* ---------- Sticky CTA & WhatsApp ---------- */
.sticky-cta {
  position: fixed; inset-inline: 0; inset-block-end: 0; z-index: 40;
  background: rgba(255, 255, 255, .97); border-top: 1px solid var(--line);
  box-shadow: 0 -8px 24px rgba(12, 63, 37, .1);
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  transform: translateY(110%); transition: transform .3s ease;
}
.sticky-cta.is-visible { transform: none; }
.sticky-inner { max-width: 640px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sticky-price { display: grid; line-height: 1.15; }
.sticky-price span { font-size: 1.35rem; font-weight: 800; color: var(--green-900); }
.sticky-price s { font-size: .85rem; color: var(--muted); }
.sticky-cta .btn { flex: 1; max-width: 260px; }

.wa-float {
  position: fixed; z-index: 41; inset-inline-end: 16px; inset-block-end: calc(16px + var(--sticky-h));
  width: 56px; height: 56px; border-radius: 50%; background: var(--wa); color: #fff;
  display: grid; place-items: center; box-shadow: 0 8px 22px rgba(31, 168, 85, .4);
  transition: inset-block-end .3s ease, transform .2s ease;
}
.wa-float:hover { transform: scale(1.06); }
.wa-float svg { width: 30px; height: 30px; }

/* ---------- Dialogs ---------- */
dialog.sheet {
  width: 100%; max-width: 100%; max-height: 88vh; margin: auto auto 0; padding: 0;
  border: 0; border-radius: 24px 24px 0 0; background: var(--cream); color: var(--ink);
  display: flex; flex-direction: column; overflow: hidden;
}
dialog.sheet:not([open]) { display: none; }
dialog.sheet[open] { animation: sheetUp .28s ease; }
dialog::backdrop { background: rgba(7, 43, 24, .5); backdrop-filter: blur(2px); }
@keyframes sheetUp { from { transform: translateY(40px); } to { transform: none; } }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 16px 10px; }
.sheet-head h3 { font-size: 1.1rem; font-weight: 700; color: var(--green-950); }
.icon-btn { width: 40px; height: 40px; border: 0; border-radius: 50%; background: #fff; display: grid; place-items: center; box-shadow: var(--shadow-sm); flex: none; }
.icon-btn svg { width: 20px; height: 20px; }
.search { display: flex; align-items: center; gap: 8px; margin: 0 16px 10px; padding: 0 14px; background: #fff; border: 1.5px solid var(--line); border-radius: 14px; }
.search input { flex: 1; border: 0; background: none; font: inherit; font-size: 16px; padding: .75em 0; outline: none; }
.search .ic { color: var(--muted); }
.sheet-body { overflow-y: auto; padding: 4px 16px 20px; flex: 1; overscroll-behavior: contain; }
.pick-list { display: grid; gap: 8px; }
.pick {
  display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center;
  background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 8px; text-align: start; width: 100%;
}
.pick img { width: 64px; height: 64px; object-fit: contain; background: var(--mint-50); border-radius: 12px; }
.pick .p-name { font-size: .86rem; }
.pick .tag { font-size: .78rem; font-weight: 700; color: #fff; background: var(--green-800); padding: .5em 1em; border-radius: 999px; white-space: nowrap; }
.pick:hover .tag { background: var(--green-600); }
.pick[disabled] { opacity: .55; cursor: not-allowed; }
.pick[disabled] .tag { background: var(--line); color: var(--muted); }
.pick .delta { display: block; font-size: .74rem; font-weight: 600; margin-top: 2px; }
.delta.up { color: var(--red); }
.delta.down { color: var(--green-600); }
.empty-note { text-align: center; color: var(--muted); padding: 24px 0; }

dialog.thanks { text-align: center; padding: 28px 20px calc(20px + env(safe-area-inset-bottom)); gap: 12px; align-items: stretch; }
.thanks-icon { width: 72px; height: 72px; margin: 0 auto 4px; border-radius: 50%; background: var(--lime-100); color: var(--green-700); display: grid; place-items: center; }
.thanks-icon svg { width: 38px; height: 38px; }
.thanks h3 { font-size: 1.5rem; font-weight: 800; color: var(--green-950); }
.thanks p { color: var(--muted); }
.thanks-hint { font-size: .82rem; margin-top: -4px; }
.thanks-hint.is-urgent { color: var(--red); font-weight: 600; font-size: .9rem; }

/* ---------- Larger screens ---------- */
@media (min-width: 560px) {
  .hero-ctas { grid-template-columns: 1fr 1fr; }
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .why-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 860px) {
  :root { --gutter: 24px; }
  .hero { padding-block: 48px 64px; }
  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); column-gap: 48px; row-gap: 22px;
    grid-template-areas: "media top" "media bottom"; align-items: start;
  }
  .hero-top { align-self: end; }
  .hero-media img { height: 600px; }
  .hero-ctas { grid-template-columns: auto auto; justify-content: start; }
  .hero-pack { grid-template-columns: 1fr 1fr; }
  .section { padding-block: 72px; }
  .slots { grid-template-columns: repeat(4, 1fr); gap: 16px; }
  .pack-bar { grid-template-columns: 1fr auto; align-items: center; padding: 20px 26px; }
  .pack-bar .nudge { grid-column: 1 / -1; order: 3; }
  .product-grid { grid-template-columns: repeat(4, 1fr); gap: 16px; }
  .order-grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: start; gap: 24px; }
  .summary { position: sticky; top: 20px; }
  .card { padding: 28px; }
  .footer-inner { grid-template-columns: 1fr auto; align-items: end; }
  .wa-float { inset-block-end: 24px; inset-inline-end: 24px; }

  dialog.sheet { max-width: 640px; max-height: 84vh; margin: auto; border-radius: 24px; }
  dialog.thanks { max-width: 440px; }
}

@media (min-width: 1100px) {
  .why-grid { grid-template-columns: repeat(4, 1fr); }
  .why-card { grid-template-columns: 1fr; text-align: center; justify-items: center; padding: 20px 16px; }
  .why-img { width: 120px; height: 120px; }
  .why-img img { width: 110px; height: 110px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
