/* Storefront base styles — mobile first (most visitors come from a phone ad), right-to-left ready (logical
   properties only), colors and fonts from /theme.css (content/store.json → theme, fonts).
   A store changes its look in public/css/store.css, loaded after this file. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 12px; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); }
h1, h2, h3 { font-family: var(--font-heading); line-height: 1.3; margin: 0 0 0.5em; color: inherit; text-wrap: balance; }
p { margin: 0 0 0.9em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
bdi { unicode-bidi: isolate; }
[hidden] { display: none !important; }
.wrap { max-width: 1080px; margin: 0 auto; padding-inline: 18px; }
.icon { width: 1.3em; height: 1.3em; flex-shrink: 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* Top of the page */
.announcement { background: var(--deep); color: var(--on-deep); font-size: 0.88rem; font-weight: 700; }
.announcement .wrap { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.25rem 1.25rem; padding-block: 0.45rem; }
.announcement p { margin: 0; display: inline-flex; align-items: center; gap: 0.4rem; }
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: center; position: relative; min-height: 58px; }
.brand { font-family: var(--font-heading); font-size: 1.45rem; font-weight: 700; color: var(--primary); text-decoration: none; }
.header-contact { position: absolute; inset-inline-end: 18px; color: var(--good); display: inline-flex; padding: 0.5rem; }
.alert { max-width: 1080px; margin: 1rem auto 0; padding: 0.8rem 1rem; border-radius: var(--radius); background: #fdecec; color: #8a1c1c; font-weight: 700; }
.alert a { color: inherit; }

/* Hero */
.hero { padding-block: 1rem 2rem; }
.hero-grid { display: grid; gap: 1.25rem; }
.hero-media img, .gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); background: var(--tint); }
.gallery { display: grid; grid-auto-flow: column; grid-auto-columns: 100%; gap: 0.5rem; overflow-x: auto; scroll-snap-type: x mandatory; border-radius: var(--radius); }
.gallery img { scroll-snap-align: center; }
.badge { display: inline-block; margin: 0 0 0.6rem; padding: 0.2rem 0.75rem; border-radius: 999px; background: var(--tint); color: var(--primary); font-size: 0.85rem; font-weight: 800; }
.badge-out { background: #fdecec; color: #8a1c1c; }
.hero-title { font-size: clamp(1.65rem, 6.4vw, 2.6rem); font-weight: 700; margin-bottom: 0.4rem; }
.hero-lede { font-size: 1.06rem; color: var(--muted); }
.hero-lede, .section-intro, .thanks-lede, .cta-note { text-wrap: pretty; }
.price-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.75rem; margin-block: 0.25rem 1rem; }
.price { font-size: 2rem; font-weight: 800; color: var(--primary); line-height: 1.1; }
.price .currency { font-size: 0.6em; }
.saving { padding: 0.2rem 0.65rem; border-radius: 999px; background: var(--good); color: #fff; font-size: 0.9rem; font-weight: 800; }
.chip { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.2rem 0.65rem; border: 1px solid var(--line); border-radius: 999px; font-size: 0.88rem; font-weight: 700; }
.hero-points { display: grid; gap: 0.45rem; margin-bottom: 1rem; }
.hero-points li { display: flex; gap: 0.55rem; align-items: flex-start; font-weight: 600; }
.hero-points .icon { color: var(--good); margin-top: 0.25em; }
.gift, .low-stock { display: flex; align-items: center; gap: 0.5rem; font-weight: 700; margin-bottom: 0.8rem; }
.gift .icon { color: var(--accent); }
.low-stock { color: #a8461a; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; min-height: 56px; padding: 0.6rem 1.3rem;
  border: 0; border-radius: var(--radius); font: inherit; font-size: 1.12rem; font-weight: 800; line-height: 1.3;
  text-align: center; text-decoration: none; cursor: pointer;
}
.btn-cta { background: var(--cta); color: var(--on-cta); box-shadow: 0 10px 24px -14px var(--cta); }
.btn-cta:active { transform: translateY(1px); }
.btn-hero, .btn-block { width: 100%; }
.btn-ghost { background: transparent; color: var(--text); border: 2px solid var(--line); }
.btn:disabled { opacity: 0.65; cursor: progress; }
.buy-notes { display: grid; gap: 0.35rem; margin-top: 0.8rem; font-size: 0.92rem; color: var(--muted); }
.buy-notes li { display: flex; align-items: center; gap: 0.45rem; }
.trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; margin-top: 1.1rem; text-align: center; font-size: 0.82rem; font-weight: 700; color: var(--muted); }
.trust li { display: grid; justify-items: center; gap: 0.3rem; }
.trust .icon { width: 1.7em; height: 1.7em; color: var(--primary); }

/* COD order form */
.order-section { padding-block: 1.75rem; background: var(--tint); }
.order-card {
  max-width: 560px; margin: 0 auto; display: grid; gap: 0.9rem; padding: 1.25rem; background: var(--surface);
  border-radius: calc(var(--radius) + 4px); border-top: 6px solid var(--primary); box-shadow: 0 22px 44px -30px rgba(0, 0, 0, 0.45);
}
.order-title { font-size: 1.3rem; margin: 0; }
.order-summary { display: flex; align-items: center; gap: 0.75rem; padding: 0.6rem; border-radius: var(--radius); background: var(--tint); }
.order-summary img { width: 64px; height: 64px; object-fit: cover; border-radius: calc(var(--radius) - 4px); }
.order-summary p { margin: 0; display: grid; font-weight: 800; line-height: 1.4; }
.order-product { font-weight: 700; }
.field { display: grid; gap: 0.3rem; font-weight: 700; font-size: 0.97rem; }
input, select, textarea {
  width: 100%; padding: 0.8rem 0.9rem; border: 1.5px solid var(--line); border-radius: calc(var(--radius) - 4px);
  font: inherit; font-size: 1.05rem; font-weight: 500; background: #fff; color: #1b1b1b;
}
textarea { resize: vertical; min-height: 4.4em; }
input:focus, select:focus, textarea:focus { outline: 3px solid var(--accent); outline-offset: 0; border-color: transparent; }
input[type="tel"] { text-align: start; letter-spacing: 0.02em; }
[aria-invalid="true"] { border-color: #c62828; background: #fff6f6; }
.order-total { margin: 0; font-size: 1.15rem; font-weight: 800; }
.form-reassurance { display: flex; align-items: center; gap: 0.45rem; margin: 0; font-size: 0.9rem; color: var(--muted); }
.form-reassurance .icon { color: var(--good); }
.form-status { margin: 0; min-height: 1.5em; font-weight: 700; color: #b42318; }
.form-status[data-kind="info"] { color: var(--primary); }
.hp { position: absolute; inset-inline-start: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Sections */
.section { padding-block: 2.4rem; }
.tone-tint { background: var(--tint); }
.tone-deep { background: var(--deep); color: var(--on-deep); }
.tone-deep a:not(.btn) { color: inherit; }
.section-title { font-size: clamp(1.35rem, 5vw, 1.95rem); }
.section-intro { color: var(--muted); }
.tone-deep .section-intro { color: inherit; opacity: 0.85; }
.section-image { border-radius: var(--radius); margin-bottom: 1rem; }
.moments { display: grid; gap: 0.6rem; margin-block: 0.5rem 1rem; }
.moments li { display: flex; gap: 0.6rem; align-items: flex-start; }
.moments .icon { color: var(--primary); margin-top: 0.25em; }
.closing { font-weight: 700; }
.benefits, .ingredients { display: grid; gap: 1.1rem; }
.benefits li, .ingredients li { display: flex; gap: 0.85rem; align-items: flex-start; }
.benefits .icon, .ingredients .icon { width: 2.6rem; height: 2.6rem; padding: 0.55rem; border-radius: 50%; background: var(--tint); color: var(--primary); }
.ingredients .icon { color: var(--good); }
.tone-tint .benefits .icon, .tone-tint .ingredients .icon { background: var(--surface); }
.benefits h3, .ingredients h3, .steps h3, .contents h3 { font-size: 1.08rem; margin-bottom: 0.15rem; }
.benefits p, .ingredients p, .steps p, .contents p { margin: 0; color: var(--muted); }
.tone-deep .benefits p, .tone-deep .steps p, .tone-deep .contents p { color: inherit; opacity: 0.85; }
.steps, .contents { display: grid; gap: 1.1rem; counter-reset: step; }
.steps li, .contents li { position: relative; padding-inline-start: 3.1rem; counter-increment: step; min-height: 2.3rem; }
.steps li::before, .contents li::before {
  content: counter(step); position: absolute; inset-inline-start: 0; top: 0; width: 2.3rem; height: 2.3rem; border-radius: 50%;
  display: grid; place-items: center; background: var(--primary); color: var(--on-primary); font-weight: 800;
}
.audience { display: grid; gap: 1.25rem; }
.audience ul { display: grid; gap: 0.55rem; }
.audience li { display: flex; gap: 0.55rem; align-items: flex-start; }
.audience .for .icon { color: var(--good); margin-top: 0.25em; }
.audience .not-for .icon { color: #b42318; margin-top: 0.25em; }
.audience h3 { font-size: 1.1rem; }
.testimonials { display: grid; gap: 1rem; }
.testimonials li { padding: 1rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.testimonials blockquote { margin: 0; }
.testimonials .who { margin: 0; font-weight: 800; color: var(--primary); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { padding-block: 0.95rem; font-weight: 800; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.3rem; line-height: 1; color: var(--primary); }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--muted); }
.guarantee { display: flex; gap: 1rem; align-items: flex-start; padding: 1.1rem; border: 2px dashed var(--primary); border-radius: var(--radius); background: var(--surface); }
.guarantee .icon { width: 2.6rem; height: 2.6rem; color: var(--primary); }
.guarantee p:last-child { margin: 0; }
.section-cta { text-align: center; }
.section-cta .btn { min-width: min(100%, 320px); }
.cta-note { margin: 0.8rem 0 0; font-size: 0.9rem; opacity: 0.85; }
.section-image figure, figure { margin: 0; }
figure img { border-radius: var(--radius); }
figcaption { font-size: 0.9rem; color: var(--muted); margin-top: 0.4rem; }

/* Other products */
.product-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 0.9rem; }
.product-cards a { display: grid; gap: 0.3rem; padding: 0.6rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); color: inherit; text-decoration: none; height: 100%; }
.product-cards img { aspect-ratio: 1; object-fit: cover; border-radius: calc(var(--radius) - 4px); background: var(--tint); }
.card-title { font-weight: 800; line-height: 1.4; }
.card-sub { font-size: 0.88rem; color: var(--muted); line-height: 1.5; }
.card-link { color: var(--primary); font-weight: 800; font-size: 0.92rem; }

/* Floating order button (phones) */
.sticky-cta {
  position: fixed; inset-inline: 0; bottom: 0; z-index: 50; background: var(--surface);
  padding: 0.6rem 0 calc(0.6rem + env(safe-area-inset-bottom)); box-shadow: 0 -10px 26px -16px rgba(0, 0, 0, 0.45);
}
.sticky-cta .wrap { display: flex; align-items: center; gap: 0.75rem; }
.sticky-price { font-weight: 800; color: var(--primary); white-space: nowrap; font-size: 1.15rem; }
.sticky-cta .btn { flex: 1; min-height: 50px; }
body:has(.sticky-cta) .site-footer { padding-bottom: 6.5rem; }

/* Thank-you */
.thanks { padding-block: 2.5rem 3rem; text-align: center; }
.thanks .wrap { display: grid; justify-items: center; gap: 0.6rem; max-width: 640px; }
.thanks-icon { width: 4rem; height: 4rem; color: var(--good); }
.thanks h1 { font-size: clamp(1.5rem, 6vw, 2.1rem); margin: 0; }
.thanks-lede { font-size: 1.08rem; }
.thanks-order { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 0.75rem; width: 100%; margin: 0.5rem 0; }
.thanks-order div { padding: 0.75rem; border-radius: var(--radius); background: var(--tint); }
.thanks-order dt { font-size: 0.85rem; color: var(--muted); }
.thanks-order dd { margin: 0; font-weight: 800; font-size: 1.1rem; white-space: nowrap; }
.thanks-steps-title { font-size: 1.15rem; margin-top: 0.75rem; }
.thanks-steps { display: grid; gap: 0.6rem; width: 100%; text-align: start; counter-reset: step; }
.thanks-steps li { display: flex; align-items: center; gap: 0.7rem; padding: 0.75rem; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
.thanks-steps .icon { color: var(--primary); }
.thanks-note { display: flex; align-items: center; gap: 0.5rem; color: var(--muted); font-size: 0.95rem; }
.thanks-contact { margin: 0; }
.thanks .btn { width: 100%; max-width: 360px; }

/* Legal pages */
.legal { padding-block: 2rem 3rem; }
.legal .wrap { max-width: 760px; }
.legal h1 { font-size: clamp(1.5rem, 6vw, 2rem); }
.legal h2 { font-size: 1.15rem; margin-top: 1.6rem; }
.legal ul { list-style: disc; padding-inline-start: 1.25rem; display: grid; gap: 0.35rem; margin-bottom: 0.9em; }
.updated { color: var(--muted); font-size: 0.9rem; }

/* Footer */
.site-footer { background: var(--deep); color: var(--on-deep); padding-block: 2rem; text-align: center; font-size: 0.92rem; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14); }
.site-footer a { color: inherit; }
.footer-brand { font-family: var(--font-heading); font-size: 1.3rem; font-weight: 700; margin-bottom: 0.25rem; }
.footer-tagline { opacity: 0.85; }
.footer-contact { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem 1.25rem; }
.footer-contact a { display: inline-flex; align-items: center; gap: 0.4rem; text-decoration: none; }
.legal-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.35rem 1.1rem; margin-block: 0.75rem; }
.copyright { opacity: 0.7; margin: 0; }

@media (min-width: 900px) {
  body { font-size: 18px; }
  .hero { padding-block: 2.5rem 3rem; }
  .hero-grid { grid-template-columns: 1.05fr 1fr; align-items: center; gap: 2.5rem; }
  .btn-hero { width: auto; min-width: 320px; }
  .benefits, .ingredients { grid-template-columns: 1fr 1fr; }
  .audience { grid-template-columns: 1fr 1fr; }
  .testimonials { grid-template-columns: repeat(3, 1fr); }
  .sticky-cta { display: none; }
  body:has(.sticky-cta) .site-footer { padding-bottom: 2rem; }
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
