/* doom-fit.css — legacy-compatible stylesheet for /ar/ and /en/ Doom Fit pages.
   Plain hex colors only. No oklch, no @property, no color-mix, no @layer.
   Works on Android WebView 60+, iOS Safari 10+, all modern desktop. */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; overflow-x: clip; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; background: #FFFFFF; }
body {
  font-family: var(--df-font, system-ui, -apple-system, Roboto, Arial, sans-serif);
  font-size: 16px; line-height: 1.6; color: #12291F; background: #FFFFFF;
  -webkit-font-smoothing: antialiased; min-height: 100dvh;
}
img { max-width: 100%; height: auto; display: block; }
a { color: #1E5B41; text-decoration: none; }
.df-page { min-height: 100dvh; background: linear-gradient(180deg, #EEF3E8 0%, #FFFFFF 100%); }

.df-hdr { position: sticky; top: 0; z-index: 40; background: #fff; border-bottom: 1px solid #F5F8F6; box-shadow: 0 1px 3px rgba(0,0,0,0.06); }
.df-hdr-inner { max-width: 1100px; margin: 0 auto; padding: 12px 20px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.df-logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; color: #12291F; }
.df-logo img { width: 36px; height: 36px; border-radius: 8px; object-fit: contain; }
.df-lang { font-size: 14px; font-weight: 700; color: #1E5B41; padding: 8px 14px; border: 1.5px solid #E8F2EC; border-radius: 999px; }
.df-lang:hover { background: #E8F2EC; }

.df-wrap { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

.df-hero { padding: 32px 0 24px; }
@media (min-width: 768px) { .df-hero { padding: 56px 0 40px; } }
.df-hero-grid { display: grid; gap: 24px; align-items: center; }
@media (min-width: 768px) { .df-hero-grid { grid-template-columns: 1.2fr 1fr; gap: 40px; } }
.df-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 999px; font-size: 13px; font-weight: 700; background: #E8F2EC; color: #1E5B41; border: 1px solid rgba(30,91,65,0.25); margin-bottom: 16px; }
.df-h1 { font-size: 32px; line-height: 1.15; font-weight: 800; color: #12291F; margin: 0 0 16px 0; letter-spacing: -0.01em; }
@media (min-width: 768px) { .df-h1 { font-size: 44px; } }
.df-lead { font-size: 17px; line-height: 1.55; color: #34443A; margin: 0 0 24px 0; }
.df-hero-img { background: #fff; border-radius: 24px; padding: 24px; box-shadow: 0 20px 60px rgba(18,41,31,0.08); display: flex; align-items: center; justify-content: center; aspect-ratio: 1 / 1; }
.df-hero-img img { max-width: 100%; max-height: 100%; object-fit: contain; }

.df-cta-big { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 56px; padding: 16px 28px; border-radius: 999px; font-size: 17px; font-weight: 800; background: #3F8F68; color: #fff; box-shadow: 0 14px 36px rgba(30,91,65,0.32); border: 0; cursor: pointer; text-decoration: none; }
.df-cta-big:hover { background: #1E5B41; }
.df-cta-big:active { transform: translateY(1px); }
.df-cta-big:disabled { opacity: 0.7; cursor: not-allowed; }

.df-section { padding: 40px 0; }
@media (min-width: 768px) { .df-section { padding: 60px 0; } }
.df-section-title { font-size: 26px; font-weight: 800; color: #12291F; margin: 0 0 24px 0; text-align: center; }
@media (min-width: 768px) { .df-section-title { font-size: 32px; margin-bottom: 32px; } }

/* FORM */
.df-form-card { background: #fff; border-radius: 24px; padding: 28px 24px; box-shadow: 0 16px 50px rgba(18,41,31,0.08); border: 1px solid #E3E9E5; }
@media (min-width: 768px) { .df-form-card { padding: 40px 36px; } }
.df-form { display: grid; gap: 18px; }
.df-form-row label { display: block; font-size: 15px; font-weight: 700; color: #12291F; margin-bottom: 8px; }
.df-field { width: 100%; min-height: 52px; padding: 14px 16px; border: 1.5px solid #E3E9E5; border-radius: 14px; font-size: 16px; background: #fff; color: #12291F; font-family: inherit; outline: 0; -webkit-appearance: none; appearance: none; }
.df-field:focus { border-color: #3F8F68; box-shadow: 0 0 0 4px rgba(30,91,65,0.12); }
.df-phone-wrap { display: flex; align-items: stretch; gap: 8px; }
.df-phone-prefix { display: inline-flex; align-items: center; padding: 0 14px; background: #F5F8F6; border: 1.5px solid #E3E9E5; border-radius: 14px; font-weight: 700; color: #12291F; min-width: 64px; }
.df-err { padding: 12px; border-radius: 10px; background: #FBEFE8; border: 1px solid #E8B79F; color: #8E3414; font-size: 14px; }
.df-err.df-hidden { display: none; }

/* BENEFITS */
.df-benefits { display: grid; gap: 16px; }
@media (min-width: 640px) { .df-benefits { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .df-benefits { grid-template-columns: repeat(3, 1fr); } }
.df-benefit { background: #fff; border: 1px solid #E3E9E5; border-radius: 18px; padding: 20px 22px; display: flex; gap: 14px; align-items: flex-start; }
.df-benefit-ic { width: 44px; height: 44px; flex-shrink: 0; border-radius: 12px; background: #E8F2EC; color: #1E5B41; display: inline-flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 800; }
.df-benefit h3 { margin: 0 0 6px 0; font-size: 16px; font-weight: 800; color: #12291F; }
.df-benefit p { margin: 0; font-size: 14px; color: #34443A; line-height: 1.5; }

/* REVIEWS */
.df-reviews { display: grid; gap: 16px; }
@media (min-width: 768px) { .df-reviews { grid-template-columns: repeat(3, 1fr); } }
.df-review { background: #fff; border: 1px solid #E3E9E5; border-radius: 18px; padding: 22px; }
.df-review-stars { color: #F0A91E; font-size: 16px; letter-spacing: 2px; margin-bottom: 10px; }
.df-review-text { font-size: 14px; line-height: 1.6; color: #34443A; margin: 0 0 14px 0; }
.df-review-author { display: flex; align-items: center; gap: 10px; font-size: 13px; color: #55645A; }
.df-review-author strong { color: #12291F; font-weight: 800; font-size: 14px; display: block; }

/* COUNTRIES */
.df-countries { display: grid; gap: 10px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 640px) { .df-countries { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .df-countries { grid-template-columns: repeat(5, 1fr); } }
.df-country { background: #fff; border: 1px solid #E3E9E5; border-radius: 14px; padding: 14px 12px; text-align: center; font-size: 14px; font-weight: 700; color: #12291F; }
.df-country .df-flag { font-size: 24px; display: block; margin-bottom: 6px; }

/* FAQ */
.df-faq { max-width: 760px; margin: 0 auto; }
.df-faq-item { background: #fff; border: 1px solid #E3E9E5; border-radius: 14px; margin-bottom: 10px; overflow: hidden; }
.df-faq-q { width: 100%; background: transparent; border: 0; padding: 16px 20px; font-size: 16px; font-weight: 700; color: #12291F; cursor: pointer; text-align: start; display: flex; justify-content: space-between; align-items: center; gap: 12px; font-family: inherit; }
.df-faq-q::after { content: "+"; font-size: 22px; font-weight: 400; color: #1E5B41; flex-shrink: 0; }
.df-faq-item.df-open .df-faq-q::after { content: "−"; }
.df-faq-a { padding: 0 20px; max-height: 0; overflow: hidden; transition: max-height 280ms ease; font-size: 14px; line-height: 1.6; color: #34443A; }
.df-faq-item.df-open .df-faq-a { padding: 0 20px 18px 20px; max-height: 600px; }

/* FOOTER */
.df-footer { background: #12291F; color: #C9C0A8; padding: 32px 0 24px; margin-top: 32px; font-size: 14px; }
.df-footer-inner { max-width: 1100px; margin: 0 auto; padding: 0 20px; text-align: center; line-height: 1.7; }
.df-footer a { color: #fff; }
.df-footer-small { font-size: 12px; color: #888; margin-top: 12px; }

/* STICKY MOBILE CTA */
.df-sticky-cta { display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 50; background: rgba(255,255,255,0.96); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-top: 1px solid #E3E9E5; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); box-shadow: 0 -10px 24px rgba(18,41,31,0.06); }
@media (max-width: 767px) { .df-sticky-cta { display: flex; gap: 10px; align-items: center; } }
.df-sticky-cta .df-cta-big { width: 100%; min-height: 48px; padding: 10px 16px; font-size: 15px; box-shadow: none; }
body.df-has-sticky { padding-bottom: 92px; }
@media (min-width: 768px) { body.df-has-sticky { padding-bottom: 0; } }

/* RTL helpers */
html[dir="rtl"] .df-hero-grid { grid-template-columns: 1fr 1.2fr; }
@media (max-width: 767px) { html[dir="rtl"] .df-hero-grid, html .df-hero-grid { grid-template-columns: 1fr; } }
/* ============ NEW SECTIONS (composition, lifestyle banners, rich footer) ============ */

/* TRUST STRIP (4 stats inline) */
.df-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 24px 0; }
@media (min-width: 640px) { .df-stats { grid-template-columns: repeat(4, 1fr); } }
.df-stat { background: #fff; border: 1px solid #E3E9E5; border-radius: 14px; padding: 16px 12px; text-align: center; }
.df-stat-num { font-size: 26px; font-weight: 800; color: #1E5B41; line-height: 1; }
.df-stat-lbl { font-size: 12px; color: #55645A; margin-top: 6px; font-weight: 600; }

/* SECTION BANNER (image as card, text below — per skill AR9) */
.df-banner-block { background: #EEF3E8; border-radius: 20px; overflow: hidden; box-shadow: 0 14px 36px rgba(18,41,31,0.08); margin-bottom: 24px; aspect-ratio: 16 / 9; }
.df-banner-block img { width: 100%; height: 100%; object-fit: cover; object-position: center center; display: block; }
@media (max-width: 768px) { .df-banner-block { border-radius: 16px; } }

/* ABOUT / DESCRIPTION TEXT */
.df-about-text p { font-size: 16px; line-height: 1.7; color: #34443A; margin: 0 0 14px 0; }
.df-about-text p:last-child { margin-bottom: 0; }

/* INGREDIENTS GRID */
.df-ingredients { display: grid; gap: 16px; }
@media (min-width: 640px) { .df-ingredients { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .df-ingredients { grid-template-columns: repeat(3, 1fr); } }
.df-ingredient { background: #fff; border: 1px solid #E3E9E5; border-radius: 16px; padding: 18px; display: flex; gap: 14px; align-items: flex-start; }
.df-ingredient-img { width: 64px; height: 64px; flex-shrink: 0; border-radius: 12px; overflow: hidden; background: #F5F8F6; }
.df-ingredient-img img { width: 100%; height: 100%; object-fit: cover; }
.df-ingredient h3 { margin: 0 0 4px 0; font-size: 15px; font-weight: 800; color: #12291F; }
.df-ingredient .df-ing-sci { font-size: 12px; color: #55645A; font-style: italic; margin: 0 0 6px 0; }
.df-ingredient p { margin: 0; font-size: 13px; color: #34443A; line-height: 1.5; }

/* HOW IT WORKS — 4 STEPS */
.df-steps { display: grid; gap: 14px; }
@media (min-width: 640px) { .df-steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .df-steps { grid-template-columns: repeat(4, 1fr); } }
.df-step { background: #fff; border: 1px solid #E3E9E5; border-radius: 16px; padding: 20px; text-align: center; }
.df-step-num { width: 40px; height: 40px; border-radius: 999px; background: linear-gradient(135deg,#3F8F68,#1E5B41); color: #fff; font-weight: 800; font-size: 18px; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 12px; }
.df-step h3 { margin: 0 0 6px 0; font-size: 15px; font-weight: 800; color: #12291F; }
.df-step p { margin: 0; font-size: 13px; color: #34443A; line-height: 1.5; }

/* TWO-COLUMN BANNER + TEXT BLOCK */
.df-banner-text-grid { display: grid; gap: 24px; align-items: center; }
@media (min-width: 768px) { .df-banner-text-grid { grid-template-columns: 1fr 1fr; gap: 36px; } }
.df-banner-text-grid h2 { font-size: 26px; font-weight: 800; color: #12291F; margin: 0 0 12px 0; text-align: start; }
@media (min-width: 768px) { .df-banner-text-grid h2 { font-size: 30px; } }

/* GUARANTEE STRIP */
.df-guarantee { background: linear-gradient(135deg, #3F8F68 0%, #1E5B41 100%); color: #fff; border-radius: 20px; padding: 28px 24px; text-align: center; }
@media (min-width: 768px) { .df-guarantee { padding: 40px; } }
.df-guarantee h2 { color: #fff; margin: 0 0 12px 0; font-size: 24px; font-weight: 800; }
.df-guarantee p { margin: 0 0 18px 0; opacity: 0.95; font-size: 15px; line-height: 1.6; }
.df-guarantee .df-cta-big { background: #fff; color: #1E5B41; box-shadow: 0 10px 24px rgba(0,0,0,0.2); }
.df-guarantee .df-cta-big:hover { background: #F5F8F6; color: #1E5B41; }

/* SEO LINKS LIST (intent-driven phrases, before footer) */
.df-seo-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; max-width: 720px; margin: 0 auto; }
.df-seo-links a { background: #fff; border: 1px solid #E3E9E5; border-radius: 999px; padding: 8px 14px; font-size: 13px; color: #1E5B41; font-weight: 600; }
.df-seo-links a:hover { background: #E8F2EC; }

/* RICH FOOTER (4-zone) */
.df-footer { background: #12291F; color: #C9C0A8; padding: 40px 0 24px; margin-top: 40px; }
.df-footer-inner { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.df-footer-cols { display: grid; gap: 32px; margin-bottom: 28px; }
@media (min-width: 640px) { .df-footer-cols { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .df-footer-cols { grid-template-columns: repeat(4, 1fr); gap: 28px; } }
.df-footer-col h4 { color: #fff; font-size: 14px; font-weight: 800; margin: 0 0 14px 0; text-transform: uppercase; letter-spacing: 0.5px; }
.df-footer-col ul { list-style: none; margin: 0; padding: 0; }
.df-footer-col li { margin-bottom: 8px; }
.df-footer-col a { color: #C9C0A8; font-size: 14px; line-height: 1.5; }
.df-footer-col a:hover { color: #fff; }
.df-footer-bar { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 18px; text-align: center; font-size: 13px; line-height: 1.7; }
.df-footer-bar p { margin: 0 0 6px 0; }
.df-footer-small { font-size: 11px; color: #888; margin-top: 10px !important; }
.df-coverage { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px; margin: 12px 0; font-size: 12px; color: #999; }
/* ============ STATS LAYOUT DEFENSIVE FIX (force 2x2 on mobile, 4x1 on desktop) ============ */
.df-stats {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 8px;
  margin: 24px 0;
  width: 100%;
}
@media (min-width: 640px) {
  .df-stats { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; gap: 12px; }
}
.df-stat {
  background: #fff;
  border: 1px solid #E3E9E5;
  border-radius: 12px;
  padding: 12px 8px;
  text-align: center;
  min-width: 0;
}
@media (min-width: 640px) { .df-stat { padding: 16px 12px; border-radius: 14px; } }
.df-stat-num { font-size: 20px; font-weight: 800; color: #1E5B41; line-height: 1.1; word-break: keep-all; }
@media (min-width: 640px) { .df-stat-num { font-size: 26px; } }
.df-stat-lbl { font-size: 11px; color: #55645A; margin-top: 4px; font-weight: 600; line-height: 1.3; }
@media (min-width: 640px) { .df-stat-lbl { font-size: 12px; margin-top: 6px; } }
/* ── Mobile overflow guards ────────────────────────────────────────────────
   A grid/flex child keeps min-width:auto by default, so a row that cannot wrap
   (product image + price card, price + struck-through price) sizes its track by
   min-content and pushes the whole column past the viewport. Because html/body
   use overflow-x: clip/hidden, that surplus is cut off instead of scrollable —
   the text simply disappears. Shows up on 320px screens and on any phone with
   the system font scale turned up. */
.grid > *,
.flex > * { min-width: 0; }

body { overflow-wrap: break-word; }

/* ── Mobile overflow guards (2) ───────────────────────────────────────────
   Narrow screens and system font scaling also break two other things:
   a CTA label held on one line runs off the right edge, and a comparison
   table with no scrolling wrapper widens the whole page. Desktop is
   untouched — both rules live behind a mobile media query. */
@media (max-width: 640px) {
  button,
  .btn,
  [class*="btn-"],
  .cta,
  [class*="cta-"] { white-space: normal; }

  table { display: block; max-width: 100%; overflow-x: auto; }
}

/* ── Mobile overflow guards (3) ───────────────────────────────────────────
   The same min-width:auto trap applies to hand-written layout classes
   (.pharm-grid, .order-grid, .benefit-list, .country-cards …), which the
   Tailwind-only selectors above do not reach. Sticky bars and header rows
   must wrap instead of running past the right edge. Mobile only. */
@media (max-width: 640px) {
  [class*="grid"] > *,
  [class*="list"] > *,
  [class*="cards"] > *,
  [class*="-row"] > *,
  .row > * { min-width: 0; }

  [class*="sticky"],
  [class*="header-inner"],
  [class*="topbar"] { flex-wrap: wrap; }
}

/* ── Mobile overflow guards (4) ───────────────────────────────────────────
   Catch-all for hand-written layouts: on phones nothing may claim a
   min-content width it cannot have. Wrapped in :where() so it carries zero
   specificity — any explicit min-width in this project still wins — and kept
   behind a mobile media query so desktop layout is untouched. */
@media (max-width: 640px) {
  :where(*) { min-width: 0; }
}

/* ── Mobile overflow guards (5) ───────────────────────────────────────────
   Tables carrying their own class beat a bare `table` selector, so restate
   the scroll rule at class specificity. */
@media (max-width: 640px) {
  table[class] { display: block; max-width: 100%; overflow-x: auto; }
}

/* ===== Botánica 02.10.2026: saffron order button, serif headings (Latin pages) ===== */
.df-cta-big, .df-guarantee .df-cta-big, .df-sticky-cta .df-cta-big {
  background: linear-gradient(180deg, #F8BF45, #F0A91E) !important; color: #1E1407 !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.55), inset 0 -3px 0 rgba(140,84,0,.22), 0 14px 26px -12px rgba(176,108,6,.75) !important;
}
.df-cta-big:hover { filter: brightness(1.04); }
html:not([dir="rtl"]) :is(h1, h2, h3) { font-family: 'Fraunces', 'Iowan Old Style', Georgia, serif !important; letter-spacing: -0.02em; }
html:not([dir="rtl"]) :is(h1, h2) { font-weight: 600 !important; }
