/* ─── BLOOM THEME — plants, garden, wellness, eco ─── */
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700&family=Fraunces:ital,wght@0,400;0,600;1,400&display=swap');

body.theme-bloom {
  /* ── Typography ──────────────────────────────────────────────────────── */
  --font-family: 'Nunito', system-ui, sans-serif;
  --font-heading: 'Fraunces', Georgia, serif;
  --font-sans: var(--font-family);

  /* ── Brand — sage green ──────────────────────────────────────────────── */
  --color-primary: #4a7c59;
  --color-primary-hover: #3a6246;
  --color-accent: #80b992;
  --color-on-primary: #ffffff;

  /* ── Surfaces — soft moss/sage background ────────────────────────────── */
  --color-bg: #f4f7f0;
  --color-surface: #ffffff;
  --color-surface-elevated: #f8faf6;

  /* ── Text ────────────────────────────────────────────────────────────── */
  --color-text: #1a2e1e;
  --color-muted: #5a7062;
  --color-border: #cdd9c9;

  /* ── Geometry — very rounded, friendly ───────────────────────────────── */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-full: 9999px;
  --radius-pill: 999px;
  --border-radius: var(--radius-md);

  /* ── Shadows — soft natural ──────────────────────────────────────────── */
  --shadow-header: 0 2px 8px rgba(74, 124, 89, 0.08);
  --shadow-pcard: 0 2px 8px rgba(26, 46, 30, 0.06);
  --shadow-pcard-hover: 0 8px 28px rgba(74, 124, 89, 0.15);
  --shadow-xs: 0 1px 4px rgba(26, 46, 30, 0.05);
  --shadow-sm: 0 2px 10px rgba(26, 46, 30, 0.07);
  --shadow-md: 0 4px 20px rgba(26, 46, 30, 0.09);
  --shadow-toast: 0 4px 12px rgba(26, 46, 30, 0.15);
  --shadow-drawer: -8px 0 32px rgba(26, 46, 30, 0.12);
  --shadow-offcanvas: -8px 0 32px rgba(26, 46, 30, 0.10);
  --shadow-bottom-bar: 0 -2px 10px rgba(26, 46, 30, 0.06);

  /* ── Header — soft sage-green light header ───────────────────────────── */
  --color-header-bg: #e4ede0;
  --color-header-text: #1a2e1e;
  --color-header-icon: #4a7c59;
  --color-header-icon-hover-bg: rgba(74, 124, 89, 0.08);
  --color-header-logo: #1a2e1e;
  --color-header-nav: #3a5640;
  --color-header-nav-hover: #4a7c59;
  --color-header-nav-active: #4a7c59;
  --color-header-border: #cdd9c9;
  --color-header-search-bg: rgba(255, 255, 255, 0.70);
  --color-header-search-text: #1a2e1e;
  --color-header-search-border: #cdd9c9;
  --color-header-search-placeholder: #5a7062;

  /* ── Navigation — lowercase, friendly ───────────────────────────────── */
  --nav-text-transform: none;
  --nav-letter-spacing: 0.01em;
  --nav-font-weight: 600;
  --nav-font-size: 0.9rem;

  /* ── Footer ──────────────────────────────────────────────────────────── */
  --color-footer-bg: #1a2e1e;
  --color-footer-text: rgba(244, 247, 240, 0.70);
  --color-footer-heading: #b8d4be;
  --color-footer-border: rgba(255, 255, 255, 0.08);
  --color-footer-link: rgba(244, 247, 240, 0.55);
  --color-footer-link-hover: #80b992;
  --color-footer-logo: #b8d4be;

  /* ── Section headings — centered, serif, natural ─────────────────────── */
  --section-head-direction: column;
  --section-head-align: center;
  --section-head-justify: center;
  --section-title-font: var(--font-heading);
  --section-title-size: 2.2rem;
  --section-title-weight: 600;
  --section-title-transform: none;
  --section-title-spacing: 0.01em;
  --section-title-color: #2d5236;
  --section-subtitle-color: var(--color-muted);

  /* ── Product cards — very round, lush ───────────────────────────────── */
  --pcard-radius: 16px;
  --pcard-bg: var(--color-surface);
  --pcard-border-color: #cdd9c9;
  --pcard-shadow: 0 2px 10px rgba(26, 46, 30, 0.06);
  --pcard-shadow-hover: 0 8px 28px rgba(74, 124, 89, 0.15);
  --pcard-hover-shadow: var(--pcard-shadow-hover);
  --pcard-aspect-ratio: 4 / 5;
  --pcard-gallery-bg: #f8faf6;
  --pcard-title-font: var(--font-heading);
  --pcard-title-weight: 400;
  --pcard-title-size: 1rem;
  --pcard-price-color: #4a7c59;
  --pcard-btn-radius: 50px;
  --pcard-btn-transform: none;
  --pcard-btn-spacing: 0.02em;
  --pcard-btn-size: 0.86rem;

  /* ── Buttons — pill, sage green ──────────────────────────────────────── */
  --btn-radius: 50px;
  --btn-font-weight: 700;
  --btn-text-transform: none;
  --btn-letter-spacing: 0.01em;
  --btn-font-size: 0.9rem;
  --btn-padding-x: 1.8rem;
  --btn-padding-y: 0.75rem;

  /* ── Inputs ──────────────────────────────────────────────────────────── */
  --input-radius: 12px;

  /* ── Badges ──────────────────────────────────────────────────────────── */
  --badge-radius: 50px;

  /* ── Hero — soft botanical cross-fade ────────────────────────────────── */
  --hero-mode: stacked-fade;
  --hero-autoplay-ms: 5000;
  --hero-text-align: center;
  --hero-overlay: rgba(26, 46, 30, 0.15);
  --hero-title-font: var(--font-heading);
  --hero-title-size: clamp(2.2rem, 5.5vw, 4.5rem);
  --hero-title-weight: 600;
  --hero-title-transform: none;
  --hero-shell-radius: var(--radius-xl);
  --hero-max-height: min(70vh, 520px);
  --hero-dot-color: rgba(74, 124, 89, 0.3);
  --hero-dot-active-color: #4a7c59;
}

/* Bloom — botanical: long soft dissolve */
body.theme-bloom .sf-hero .sf-hero__shell .sf-hero__track {
  display: block;
  position: relative;
  overflow: hidden;
  scroll-snap-type: none;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: var(--hero-max-height, min(70vh, 520px));
}

body.theme-bloom .sf-hero .sf-hero__slide {
  position: absolute;
  inset: 0;
  flex: none;
  width: 100%;
  scroll-snap-align: unset;
  opacity: 0;
  z-index: 0;
  transition: opacity 1.05s ease-in-out;
  pointer-events: none;
}

body.theme-bloom .sf-hero .sf-hero__slide.is-active {
  opacity: 1;
  z-index: 1;
  pointer-events: auto;
}

body.theme-bloom .sf-hero .sf-hero__slide img {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
  display: block;
}

@media (prefers-reduced-motion: reduce) {
  body.theme-bloom .sf-hero .sf-hero__slide {
    transition: none;
  }
}
