/* =========================================================
   Inspiración de Flor — styles.css
   Old Standard TT everywhere. Caps body text, hairline rules,
   no drop shadows beyond one soft ambient shadow.
   ========================================================= */

:root {
  --cream:      #e8e3dd;
  --cream-soft: #f0ece6;
  --brown:      #503a1d;
  --coffee-lit: #6b4a35;
  --terracotta: #a96d56;
  --green:      #3b472e;
  --logo-green: #8ca86a;
  --line:       rgba(80, 58, 29, .18);
  --shadow-soft: 0 20px 60px rgba(80, 58, 29, .08);

  /* Independently admin-editable per-block colors (Admin → Дизайн) — each
     block's *-fg / *-logo-filter is computed by app.js from its *-bg for
     contrast, so these are just no-flash-before-JS-runs fallbacks that
     match what applyDesignTokens() would compute from the data.js defaults. */
  --header-bg: #8ca86a; --header-fg: #503a1d; --header-logo-filter: none;
  --footer-bg: #8ca86a; --footer-fg: #503a1d; --footer-logo-filter: none;
  --collection-bg: #8ca86a; --collection-fg: #503a1d;
  --weddings-bg: #f0ece6; --weddings-fg: #503a1d;
  --cookie-bg: #503a1d; --cookie-fg: #f0ece6;

  --font: 'Old Standard TT', 'CMU Serif', Georgia, serif;

  --header-h: 96px;
  --section-y: clamp(72px, 10vw, 160px);
  --container-w: 1240px;

  --ease-reveal: cubic-bezier(.16, 1, .3, 1);
}

* , *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--brown);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

button {
  font-family: inherit;
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
  padding: 0;
}

h1, h2, h3, h4, p { margin: 0; }

h1, h2, h3 {
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.15;
}

.section-title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 400;
}

/* Body copy: caps, wide tracking, generous line-height — the signature look.
   Long-form exceptions (FAQ answers, legal text) use .prose instead. */
body, p, li, .caps {
  text-transform: uppercase;
  letter-spacing: .08em;
  line-height: 1.8;
  /* --font-scale is set at runtime from Admin → Дизайн (compact/normal/
     large); defaults to 1 so an untouched page renders identically. */
  font-size: calc(13.5px * var(--font-scale, 1));
}

.prose {
  text-transform: none;
  letter-spacing: 0;
  line-height: 1.7;
  font-size: calc(15px * var(--font-scale, 1));
}
/* The base `body, p, li { text-transform: uppercase }` rule (above)
   targets any <p>/<li> directly, including ones nested inside .prose
   (e.g. the multi-paragraph legal pages) — inheriting .prose's own
   text-transform:none doesn't help a descendant that has its own directly
   matching rule. Re-asserting it here, scoped to .prose's own descendants,
   fixes that without touching every legal-page <p> individually. */
.prose p, .prose li { text-transform: none; }

/* Buttons / text links: caps, wide tracking, underline reveals on hover */
.btn, .micro-cta, .text-link {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  text-transform: uppercase;
  letter-spacing: .2em;
  font-size: 12px;
  background: none;
  border: none;
  position: relative;
  padding-bottom: 4px;
}
.btn::after, .micro-cta::after, .text-link::after {
  content: '';
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 1px;
  background: currentColor;
  transition: right .35s var(--ease-reveal);
}
.btn:hover::after, .micro-cta:hover::after, .text-link:hover::after,
.btn:focus-visible::after, .micro-cta:focus-visible::after { right: 0; }

.chevron { width: 14px; height: 14px; }
.micro-cta:hover .chevron, .micro-cta:focus-visible .chevron {
  animation: chevron-pulse 1s ease-in-out infinite;
}
@keyframes chevron-pulse {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(3px); }
}

:focus-visible {
  outline: 2px solid var(--terracotta);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--cream);
  color: var(--brown);
  padding: 12px 20px;
  z-index: 999;
}
.skip-link:focus { left: 12px; top: 12px; }

.container {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 24px;
}
@media (min-width: 768px) { .container { padding: 0 40px; } }
@media (min-width: 1280px) { .container { padding: 0 64px; } }

.section { padding: var(--section-y) 0; }

hr.hairline, .hairline {
  border: none;
  border-top: 1px solid var(--line);
}

/* =========================================================
   HEADER
   Hero is a light panel now (same tone as the rest of the site), so the
   header no longer needs a separate transparent/white-on-dark state for
   "over the hero" — it's the same cream bar throughout, just gaining a
   hairline border + shadow once scrolled past the hero.
   ========================================================= */
/* A colored bar (not the hero's own cream) so the header reads as a
   distinct strip the logo sits on, instead of blending into the hero
   background beneath it. --header-bg/-fg are independently editable in
   Admin → Дизайн (app.js auto-picks -fg for contrast against whatever
   -bg is chosen) — separate from --brown, the sitewide text-ink color,
   so changing the header's color can never affect body text elsewhere. */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  height: 96px;
  display: flex;
  align-items: center;
  background: var(--header-bg);
  color: var(--header-fg);
  border-bottom: 1px solid transparent;
  transition: height .3s var(--ease-reveal), border-color .4s var(--ease-reveal), box-shadow .4s var(--ease-reveal);
}
.site-header[data-state="solid"] {
  border-bottom-color: rgba(0,0,0,.15);
  box-shadow: var(--shadow-soft);
}

.header-inner {
  width: 100%;
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
/* Tight on mobile so the full-size logo never has to compete for room with
   the cart/menu controls and get squeezed narrower than its box — the
   generous desktop spacing is restored once there's room to spare. */
@media (min-width: 768px) { .header-inner { padding: 0 40px; gap: 24px; } }
/* Wider than --container-w (the page-content width used elsewhere) — the
   full nav (8 links) plus a doubled-height logo don't both fit inside
   1240px, and shrinking either wasn't asked for. A header bar spanning
   more of the screen than the body copy is normal; this doesn't change
   any section's own content width. */
@media (min-width: 1024px) { .header-inner { max-width: 1600px; } }

/* The logo is the site's one graphic mark (no separate text lockup in
   the hero anymore) — sized generously so the botanical linework in it
   actually reads, not just the wordmark. */
.header-logo { display: flex; align-items: center; height: 80px; min-width: 0; }
/* Desktop-only: same logo asset read as too small/hard to make out at
   this scale on a wide screen (unlike phones, where the narrower viewport
   makes the same physical height feel proportionally larger) — doubled
   here, with the header bar itself (and --header-h, which the hero's
   top padding and debug panel key off of) grown to match so it doesn't
   get clipped. */
@media (min-width: 768px) {
  :root { --header-h: 120px; }
  .site-header { height: 120px; }
  .header-logo { height: 120px; flex-shrink: 0; }
}
/* object-fit: contain is the safety net here: the sitewide `img { max-width:
   100% }` reset (line 43) can cap this image's rendered width below what
   height:100% implies on narrow viewports (seen distorting on iPhone 12's
   390px width specifically) — without object-fit a plain <img> stretches
   to fill a width/height box that don't match its intrinsic ratio; with it,
   the image always keeps its proportions no matter how the box is capped. */
/* --header-logo-filter is computed alongside --header-fg above (dark
   line-art inverted to white when the header's chosen color is dark,
   left natural when it's light) so the logo always reads regardless of
   what color is picked in Admin → Дизайн. */
.logo-img { height: 100%; width: auto; object-fit: contain; filter: var(--header-logo-filter, none); }
.logo-fallback-text { display: none; font-size: 16px; letter-spacing: .12em; text-transform: uppercase; }
.header-logo.logo-fallback .logo-img { display: none; }
.header-logo.logo-fallback .logo-fallback-text { display: inline; }

.header-nav {
  display: none;
  gap: 28px;
  font-size: 11.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  white-space: nowrap;
}
@media (min-width: 1024px) { .header-nav { display: flex; } }
.header-nav a { position: relative; padding-bottom: 3px; white-space: nowrap; }
.header-nav a::after {
  content: '';
  position: absolute; left: 0; right: 100%; bottom: 0;
  height: 1px; background: currentColor;
  transition: right .3s var(--ease-reveal);
}
.header-nav a:hover::after, .header-nav a:focus-visible::after { right: 0; }

.header-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
@media (min-width: 768px) { .header-actions { gap: 20px; } }

.lang-switch { display: flex; align-items: center; gap: 6px; font-size: 12px; letter-spacing: .12em; }
.lang-btn { opacity: .6; transition: opacity .25s, color .25s; }
.lang-btn[aria-pressed="true"] { opacity: 1; color: var(--terracotta); }
.lang-sep { opacity: .4; }

.cart-btn { position: relative; width: 44px; height: 44px; display: grid; place-items: center; }
.cart-icon { width: 22px; height: 22px; }
.cart-count {
  position: absolute; top: -6px; right: -8px;
  background: var(--terracotta); color: var(--cream-soft);
  font-size: 10px; line-height: 1;
  min-width: 16px; height: 16px; border-radius: 50%;
  display: grid; place-items: center;
  transition: transform .3s cubic-bezier(.34,1.56,.64,1);
}
.cart-count.pulse { animation: cart-pulse .4s cubic-bezier(.34,1.56,.64,1); }
@keyframes cart-pulse { 0% { transform: scale(1); } 50% { transform: scale(1.4); } 100% { transform: scale(1); } }

.burger {
  display: grid; gap: 5px; width: 44px; height: 44px; place-items: center;
}
@media (min-width: 1024px) { .burger { display: none; } }
.burger span { width: 22px; height: 1px; background: currentColor; transition: transform .3s, opacity .3s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* =========================================================
   MOBILE MENU
   ========================================================= */
.mobile-menu {
  position: fixed; inset: 0; z-index: 190;
  background: var(--green);
  color: var(--cream-soft);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 28px;
  opacity: 0; pointer-events: none;
  transition: opacity .35s var(--ease-reveal);
}
.mobile-menu.open { opacity: 1; pointer-events: auto; }
.mobile-menu-logo { height: 96px; width: auto; object-fit: contain; filter: brightness(0) invert(1); margin-bottom: 12px; }
.mobile-menu nav { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.mobile-menu a {
  font-size: 20px; letter-spacing: .1em; text-transform: uppercase;
  opacity: 0; transform: translateY(12px);
  transition: opacity .4s var(--ease-reveal), transform .4s var(--ease-reveal);
  transition-delay: calc(var(--i) * 60ms);
}
.mobile-menu.open a { opacity: 1; transform: translateY(0); }

/* =========================================================
   HERO
   Headline, the photo/video carousel (three cards, the middle one
   larger — see renderHeroShow in app.js), then the order button.
   ========================================================= */
.hero {
  position: relative;
  background: #F8F7F2;
  color: #2e2110;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: calc(var(--header-h) + 24px) 16px 48px;
}
@media (min-width: 768px) {
  .hero { padding: calc(var(--header-h) + 32px) 5vw 56px; }
}

.hero-content {
  position: relative;
  z-index: 4;
  max-width: 640px;
}

.hero-headline {
  font-size: clamp(30px, 3.6vw, 52px);
  line-height: 1.12;
  letter-spacing: 0;
  text-transform: none;
  margin-bottom: 20px;
}
.hero-sub {
  font-size: 15px;
  line-height: 1.6;
  letter-spacing: .02em;
  text-transform: none;
  opacity: .8;
  margin-bottom: 28px;
}
.hero-headline:empty, .hero-sub:empty { display: none; }

/* ---- Carousel ---- */
.hero-show { position: relative; z-index: 3; width: 100%; max-width: 1040px; }
/* Reserve the carousel's height before app.js fills it (items come from
   Firestore a moment after first paint) — otherwise the button and the
   film below jump down when it appears (layout shift, bad for Google). */
.hero-show { min-height: calc(40vw * 1.25 + 28px); }
@media (min-width: 768px) { .hero-show { min-height: calc(clamp(230px, 26vw, 320px) * 1.25 + 28px); } }
.hero-show[hidden] { display: none; }
.hs-stage {
  --hs-w: 40vw;
  position: relative;
  height: calc(var(--hs-w) * 1.25);
  margin: 0 -16px;             /* phones: side cards may touch the screen edge */
  touch-action: pan-y;
  user-select: none; -webkit-user-select: none;
}
@media (min-width: 768px) {
  .hs-stage { --hs-w: clamp(230px, 26vw, 320px); margin: 0; }
}
.hs-card {
  position: absolute; left: 50%; top: 0;
  width: var(--hs-w); aspect-ratio: 4 / 5;
  border-radius: 20px; overflow: hidden;
  background: var(--cream-soft);
  box-shadow: 0 10px 26px rgba(80, 58, 29, .12);
  transform-origin: center center;
  will-change: transform, opacity;
}
.hs-card.is-center { box-shadow: 0 18px 44px rgba(80, 58, 29, .22); }
.hs-card.is-side { cursor: pointer; }
.hs-stage.is-ready .hs-card {
  transition: transform .7s cubic-bezier(.22, .61, .36, 1), opacity .5s ease, box-shadow .7s ease;
}
.hs-card img, .hs-card video {
  display: block; width: 100%; height: 100%; object-fit: cover;
  pointer-events: none; -webkit-user-drag: none;
}
.hs-arrow {
  position: absolute; top: 50%; z-index: 5;
  width: 36px; height: 36px; margin-top: -18px;
  display: grid; place-items: center;
  border-radius: 50%; border: 0;
  background: rgba(255, 255, 255, .92); color: #2e2110;
  box-shadow: 0 4px 14px rgba(80, 58, 29, .18);
  cursor: pointer;
  transition: transform .2s, background .2s;
}
.hs-arrow svg { width: 18px; height: 18px; }
.hs-arrow:hover, .hs-arrow:focus-visible { background: #fff; transform: scale(1.06); }
.hs-prev { left: 6px; }
.hs-next { right: 6px; }
@media (min-width: 768px) {
  .hs-arrow { width: 44px; height: 44px; margin-top: -22px; }
  .hs-prev { left: 0; }
  .hs-next { right: 0; }
}
.hs-dots { display: flex; justify-content: center; gap: 10px; margin-top: 18px; }
.hs-dot {
  width: 10px; height: 10px; padding: 0; border-radius: 50%;
  border: 1px solid rgba(80, 58, 29, .45); background: transparent; cursor: pointer;
  transition: background .25s, transform .25s;
}
.hs-dot.is-active { background: var(--brown); border-color: var(--brown); transform: scale(1.15); }
/* Bigger tap target than the visible dot. */
.hs-dot { position: relative; }
.hs-dot::before { content: ""; position: absolute; inset: -8px; }

/* Order button (hero + under the film): the chocolate .mood-cta box. */
.hero-order-cta { margin-top: 28px; position: relative; z-index: 3; } /* above the film's outward glow */
.film-block .hero-order-cta { margin-top: 8px; }

/* =========================================================
   FILM BLOCK — caption, the pencil-sketch story film, the order button.
   The film has no frame: its edges are masked into the page and the
   block takes the film's own paper tone (hero.js samples it).
   ========================================================= */
.film-block {
  position: relative;
  background: #F8F7F2;
  transition: background-color 1.2s linear;
  color: #2e2110;
  overflow: hidden;
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
  padding: 48px 16px 56px;
}
@media (min-width: 768px) { .film-block { padding: 72px 5vw 80px; } }
.film-caption {
  font-size: clamp(26px, 3vw, 42px);
  line-height: 1.15;
  letter-spacing: 0;
  text-transform: none;
  margin-bottom: 8px;
  position: relative; z-index: 3;
}

.hero-film {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 980px;
  aspect-ratio: 16 / 9;
}
/* Outward blur: a tiny, blurred, enlarged copy of the current frame
   (hero.js redraws it a few times a second) sits behind the film and
   carries its colors past the frame edge, fading into the page. */
.hero-film-glow {
  position: absolute;
  left: -9%; top: -14%;
  width: 118%; height: 128%;
  z-index: 0;
  filter: blur(26px);
  -webkit-mask-image: radial-gradient(ellipse 50% 50% at center, #000 60%, transparent 100%);
  mask-image: radial-gradient(ellipse 50% 50% at center, #000 60%, transparent 100%);
  pointer-events: none;
}
.hero-film-video {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translateZ(0);
}

/* Rim mask: the feather sits only on the outer edge of the frame (blank
   paper in every shot) with an uneven watercolor line, so the drawing is
   never faded; the glow behind carries the edge outward. */
.hero-film-video {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 160 90' preserveAspectRatio='none'%3E%3Cfilter id='f' x='-10%25' y='-10%25' width='120%25' height='120%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.06' numOctaves='3' seed='7'/%3E%3CfeDisplacementMap in='SourceGraphic' scale='7'/%3E%3CfeGaussianBlur stdDeviation='3'/%3E%3C/filter%3E%3Crect x='8' y='6' width='144' height='78' rx='8' fill='%23fff' filter='url(%23f)'/%3E%3C/svg%3E");
  -webkit-mask-size: 100% 100%;
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 160 90' preserveAspectRatio='none'%3E%3Cfilter id='f' x='-10%25' y='-10%25' width='120%25' height='120%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.06' numOctaves='3' seed='7'/%3E%3CfeDisplacementMap in='SourceGraphic' scale='7'/%3E%3CfeGaussianBlur stdDeviation='3'/%3E%3C/filter%3E%3Crect x='8' y='6' width='144' height='78' rx='8' fill='%23fff' filter='url(%23f)'/%3E%3C/svg%3E");
  mask-size: 100% 100%;
}

/* Transparent sheet over the film: browsers like Opera pop a "video
   pop-out" button over any hovered <video>; the pointer never reaches the
   video itself, so that button doesn't appear. */
.hero-film-cover { position: absolute; inset: 0; z-index: 1; }
.hero-sound-btn {
  position: absolute;
  z-index: 2;
  right: 16%; bottom: 16%;
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(46, 33, 16, .3);
  background: rgba(248, 247, 242, .75);
  color: #2e2110;
  transition: background .2s, border-color .2s;
}
.hero-sound-btn:hover, .hero-sound-btn:focus-visible { background: #F8F7F2; border-color: rgba(46, 33, 16, .6); }
.hero-sound-btn svg { width: 20px; height: 20px; }
.hero-sound-btn .sound-waves { display: none; }
.hero-sound-btn.is-on .sound-waves { display: inline; }
.hero-sound-btn.is-on .sound-mute { display: none; }

/* One-shot intro (first visit per session): film first, then the text. */
.hero.is-playing .hero-show { animation: hero-fade-in 1.2s ease-out .2s both; }
.hero.is-playing .hero-headline { animation: hero-text-in .8s cubic-bezier(.16, 1, .3, 1) .5s both; }
.hero.is-playing .hero-sub { animation: hero-text-in .8s cubic-bezier(.16, 1, .3, 1) .8s both; }
.hero.is-playing #hero-cta-el { animation: hero-text-in .8s cubic-bezier(.16, 1, .3, 1) 1.1s both, hero-cta-breathe 3.6s ease-in-out 2.2s infinite; }
/* "Breathing" CTA — a slow, slight swell so the eye finds it; stops while
   hovered/focused so it doesn't move under the pointer. */
.hero-order-cta { animation: hero-cta-breathe 3.6s ease-in-out infinite; transform-origin: center; }
.hero-order-cta:hover, .hero-order-cta:focus-visible { animation-play-state: paused; }
@keyframes hero-cta-breathe {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.045); }
}@keyframes hero-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes hero-text-in {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .hero.is-playing .hero-show,
  .hero.is-playing .hero-headline,
  .hero.is-playing .hero-sub,
  .hero.is-playing #hero-cta-el,
  .hero-order-cta { animation: none; }
  .hs-stage.is-ready .hs-card { transition: none; }
}

/* =========================================================
   ATMOSPHERIC PETALS (petals.js)
   A handful of drifting petal shapes confined to the hero and footer —
   never elsewhere. Positioning/behavior only; each instance's shape
   variant, color and exact motion path are set inline by petals.js.
   ========================================================= */
.atmo-petal-layer {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}
.atmo-petal {
  position: absolute;
  top: 0; left: 0;
  pointer-events: none;
  will-change: transform, opacity;
}

/* =========================================================
   LANGUAGE CROSSFADE
   ========================================================= */
body.lang-fade-out .section, body.lang-fade-out .hero-content, body.lang-fade-out .site-footer {
  opacity: .3;
  transition: opacity .18s ease;
}
body.lang-fade-in .section, body.lang-fade-in .hero-content, body.lang-fade-in .site-footer {
  animation: lang-fade-in .26s ease;
}
@keyframes lang-fade-in { from { opacity: .3; } to { opacity: 1; } }

/* =========================================================
   REVEAL ON SCROLL
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s var(--ease-reveal), transform .8s var(--ease-reveal);
  transition-delay: calc(var(--i, 0) * 90ms);
}
.reveal.in-view { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* =========================================================
   CUSTOM CURSOR (desktop, hover:hover + pointer:fine only)
   ========================================================= */
.cursor-dot, .cursor-ring {
  position: fixed; z-index: 999; top: 0; left: 0;
  pointer-events: none;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  will-change: transform;
}
.cursor-dot { width: 6px; height: 6px; background: var(--terracotta); }
.cursor-ring {
  width: 32px; height: 32px;
  border: 1px solid var(--terracotta);
  transition: width .25s, height .25s, opacity .25s;
  opacity: .6;
}
.cursor-ring.cursor-grow { width: 52px; height: 52px; opacity: .9; }

/* =========================================================
   Generic surfaces used across later sections
   ========================================================= */
.bg-cream-soft { background: var(--cream-soft); }
.bg-green { background: var(--green); color: var(--cream-soft); }

.hidden { display: none !important; }
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* =========================================================
   PLACEHOLDER (image slot with no photo yet)
   ========================================================= */
.ph {
  position: relative;
  width: 100%;
  background: var(--cream-soft);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.ph-label {
  font-size: 10.5px;
  letter-spacing: .1em;
  text-align: center;
  padding: 12px;
  opacity: .5;
}
.ph-photo { background: var(--cream-soft); }
.ph-photo img { width: 100%; height: 100%; object-fit: cover; }

/* =========================================================
   SOBRE NUESTRA FLORISTERÍA
   ========================================================= */
.about-grid {
  display: grid;
  gap: 40px;
}
@media (min-width: 768px) {
  .about-grid { grid-template-columns: 40% 1fr; gap: 64px; align-items: start; }
  .about-copy { margin-top: 64px; }
}
.about-copy h2 { margin-bottom: 28px; }
.about-copy p + p { margin-top: 18px; }
/* Transparent sheet over a video so the pointer never reaches it — keeps
   Opera's "video pop-out" button from appearing on hover. */
.video-cover { position: absolute; inset: 0; }
/* =========================================================
   LA COLECCIÓN
   ========================================================= */
/* --collection-bg/-fg, independently editable in Admin → Дизайн (see the
   header comment for how -fg is derived). Setting color here cascades to
   .section-title/.coll-title/.coll-desc etc. below via inheritance — none
   of them set their own color, so no further overrides are needed. */
#coleccion.section { background: var(--collection-bg); color: var(--collection-fg); }
.section-subtitle { margin-top: 12px; margin-bottom: 48px; max-width: 480px; }

/* Horizontal scroll-snap carousel (mobile included, per spec) instead of
   a stacked grid — swipe/drag on touch and trackpad everywhere; the arrow
   buttons are an added affordance for mouse users and hide below 768px,
   where swipe is already the natural gesture. */
.coll-carousel { position: relative; }
.coll-grid {
  display: flex;
  gap: 32px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-left: 24px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 4px; /* clears the focus outline on the last card */
}
.coll-grid::-webkit-scrollbar { display: none; }
@media (min-width: 768px) { .coll-grid { scroll-padding-left: 40px; } }
@media (min-width: 1280px) { .coll-grid { scroll-padding-left: 64px; } }

.coll-arrow {
  display: none;
  position: absolute;
  top: 35%;
  transform: translateY(-50%);
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--cream-soft);
  box-shadow: var(--shadow-soft);
  align-items: center; justify-content: center;
  z-index: 3;
  transition: opacity .2s;
}
.coll-arrow[disabled] { opacity: 0; pointer-events: none; }
.coll-arrow-prev { left: -8px; }
.coll-arrow-next { right: -8px; }
.coll-arrow svg { width: 18px; height: 18px; }
@media (min-width: 768px) { .coll-arrow { display: flex; } }

.coll-card {
  flex: 0 0 78%;
  scroll-snap-align: start;
  cursor: pointer;
  transition: transform .35s var(--ease-reveal);
}
.coll-card:hover, .coll-card:focus-visible { transform: translateY(-4px); }
.coll-card:hover .ph, .coll-card:focus-visible .ph { border-color: var(--terracotta); }
.coll-title { font-size: 17px; margin-top: 18px; text-transform: none; letter-spacing: 0; }
.coll-link { color: inherit; text-decoration: none; }
.coll-desc { margin-top: 8px; font-size: 12.5px; opacity: .85; }
.coll-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 16px; }
.coll-price { font-size: 13px; letter-spacing: .1em; transition: color .25s; }
.coll-card:hover .coll-price, .coll-card:focus-visible .coll-price { color: var(--terracotta); }
.coll-order { font-size: 11px; }
@media (min-width: 640px) { .coll-card { flex-basis: 46%; } }
@media (min-width: 1024px) { .coll-card { flex-basis: 29%; } }

/* «En el taller» — photo/video strip. Sits inside .coll-grid/.coll-carousel
   (see the header comment on those, in the LA COLECCIÓN block above) so it
   shares the exact same scroll-snap/arrow mechanics; .gallery-card is just
   the media-only item, without the title/desc/price a .coll-card carries. */
.gallery-card { flex: 0 0 78%; scroll-snap-align: start; }
@media (min-width: 640px) { .gallery-card { flex-basis: 46%; } }
@media (min-width: 1024px) { .gallery-card { flex-basis: 29%; } }
.gallery-card video { width: 100%; aspect-ratio: 4/5; object-fit: cover; display: block; background: var(--cream-soft); }

/* =========================================================
   MODAL (product, generic dialog surface)
   ========================================================= */
.modal-overlay {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(80, 58, 29, .45);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  opacity: 0;
  transition: opacity .3s var(--ease-reveal);
}
.modal-overlay.open { opacity: 1; }
.modal-overlay[hidden] { display: none; }

.modal {
  background: var(--cream);
  max-width: 880px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: var(--shadow-soft);
  transform: translateY(16px);
  transition: transform .3s var(--ease-reveal);
}
.modal-overlay.open .modal { transform: translateY(0); }

.modal-close {
  position: absolute; top: 12px; right: 16px; z-index: 2;
  font-size: 28px; line-height: 1; width: 44px; height: 44px;
}

.modal-grid { display: grid; grid-template-columns: 1fr; }
@media (min-width: 768px) { .modal-grid { grid-template-columns: 1fr 1fr; } }

.modal-gallery-main { position: relative; aspect-ratio: 4/5; }
.gallery-slide {
  position: absolute; inset: 0; opacity: 0;
  transition: opacity .35s var(--ease-reveal);
  border: none;
}
.gallery-slide.active { opacity: 1; }
.modal-gallery-dots { display: flex; justify-content: center; gap: 8px; padding: 14px; }
.dot {
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
}
.dot::before {
  content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--line);
}
.dot.active::before { background: var(--terracotta); }

.modal-info { padding: 32px 28px 36px; }
.modal-title { font-size: 22px; text-transform: none; letter-spacing: 0; margin-bottom: 16px; }
.modal-comp-label, .modal-size-label, .modal-comment-label {
  font-size: 11px; letter-spacing: .16em; opacity: .6; margin-top: 20px; display: block;
}
.modal-comp { margin-top: 6px; }

.size-options { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.size-opt {
  border: 1px solid var(--line);
  padding: 8px 14px;
  font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
  transition: border-color .2s, color .2s;
}
.size-opt.active { border-color: var(--terracotta); color: var(--terracotta); }

.modal-comment {
  width: 100%; margin-top: 8px; padding: 10px;
  font-family: var(--font); font-size: 13px;
  border: 1px solid var(--line); background: var(--cream-soft);
  resize: vertical;
}

.modal-add { margin-top: 26px; }

@media (max-width: 767px) {
  .modal-overlay { padding: 0; align-items: flex-end; }
  .modal { max-width: none; max-height: 100svh; height: 100svh; }
}

/* =========================================================
   LEAD FORM (bodas consultation / suscripción request)
   ========================================================= */
.lead-form-wrap { padding: 40px 28px 44px; max-width: 480px; }
.lead-form { display: flex; flex-direction: column; gap: 18px; margin-top: 24px; }
.lead-form label {
  display: flex; flex-direction: column; gap: 6px;
  font-size: 11px; letter-spacing: .12em;
}
.lead-form input, .lead-form textarea {
  font-family: var(--font); font-size: 14px; text-transform: none; letter-spacing: 0;
  padding: 10px; border: 1px solid var(--line); background: var(--cream-soft);
}
.lead-form button { margin-top: 8px; align-self: flex-start; }
.lead-thanks { padding: 40px 0; text-align: center; }
.lead-thanks.hidden, .lead-form.hidden { display: none; }

/* =========================================================
   BODAS
   ========================================================= */
/* --weddings-bg/-fg, independently editable in Admin → Дизайн (see the
   header comment for how -fg is derived) — replaces the old hardcoded
   .bg-green + cream-soft pairing so this block can go light or dark. */
.wed-section { padding: var(--section-y) 0; background: var(--weddings-bg); color: var(--weddings-fg); }
.wed-section .section-subtitle { color: var(--weddings-fg); opacity: .85; }

.wed-carousel-wrap { position: relative; margin: 40px 0; }
.wed-carousel {
  display: flex; gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0 24px;
  scrollbar-width: none;
}
.wed-carousel::-webkit-scrollbar { display: none; }
@media (min-width: 768px) { .wed-carousel { padding: 0 40px; } }

.wed-slide {
  flex: 0 0 auto;
  width: min(78vw, 320px);
  scroll-snap-align: start;
}
.wed-title { margin-top: 16px; font-size: 16px; text-transform: none; letter-spacing: 0; }
.wed-desc { margin-top: 6px; font-size: 12.5px; opacity: .85; }

.wed-arrow {
  display: none;
  position: absolute; top: 40%; z-index: 2;
  width: 40px; height: 40px;
  align-items: center; justify-content: center;
  font-size: 22px;
  color: var(--weddings-fg);
  border: 1px solid color-mix(in srgb, var(--weddings-fg) 30%, transparent);
  border-radius: 50%;
  transition: border-color .25s;
}
.wed-arrow:hover, .wed-arrow:focus-visible { border-color: var(--weddings-fg); }
.wed-arrow-prev { left: 8px; }
.wed-arrow-next { right: 8px; }
@media (min-width: 1024px) { .wed-arrow { display: flex; } }

.wed-cta { margin-top: 16px; color: var(--weddings-fg); }

/* Decor packages — a subsection under the bouquet carousel above, styled
   like the subscription tier cards (reuses .sub-card/.sub-grid). */
.wpkg-block {
  margin-top: 64px; padding-top: 48px;
  border-top: 1px solid color-mix(in srgb, var(--weddings-fg) 15%, transparent);
}
.wpkg-title { font-size: clamp(22px, 3vw, 32px); }

/* =========================================================
   CÓMO FUNCIONA Y ENTREGA
   ========================================================= */
.how-timeline {
  display: grid; gap: 40px;
  margin: 56px 0 72px;
  position: relative;
}
@media (min-width: 768px) {
  .how-timeline { grid-template-columns: repeat(4, 1fr); gap: 32px; }
  .how-timeline::before {
    content: '';
    position: absolute; top: 14px; left: 6%; right: 6%;
    height: 1px; background: var(--line);
  }
}
.how-num {
  display: block; font-size: 15px; letter-spacing: .1em;
  color: var(--terracotta); margin-bottom: 14px; position: relative; z-index: 1;
  background: var(--cream); padding-right: 8px;
}
.how-step-title { font-size: 16px; text-transform: none; letter-spacing: 0; margin-bottom: 8px; }
.how-step-desc { font-size: 12.5px; opacity: .85; }

.delivery-title { font-size: 20px; margin-bottom: 24px; }
.zone-grid { display: grid; gap: 16px; }
@media (min-width: 768px) { .zone-grid { grid-template-columns: repeat(2, 1fr); } }
.zone-card {
  background: var(--green); color: var(--cream-soft);
  padding: 24px; display: flex; flex-direction: column; gap: 10px;
}
.zone-label { font-size: 12px; }
.zone-badge { font-size: 14px; letter-spacing: .1em; color: var(--logo-green); }
.zone-only { margin-top: 20px; opacity: .7; font-size: 12px; }

/* =========================================================
   SUSCRIPCIÓN
   ========================================================= */
.sub-grid { display: grid; gap: 32px; margin-top: 48px; }
@media (min-width: 768px) { .sub-grid { grid-template-columns: repeat(3, 1fr); } }
.sub-card {
  border: 1px solid var(--line);
  padding: 36px 28px;
  display: flex; flex-direction: column;
}
.sub-highlight { border: 1px solid var(--terracotta); box-shadow: var(--shadow-soft); }
.sub-name { font-size: 18px; text-transform: none; letter-spacing: 0; }
.sub-price { font-size: 26px; margin: 14px 0 2px; color: var(--terracotta); text-transform: none; letter-spacing: 0; }
.sub-price-period { font-size: 13px; opacity: .7; }
.sub-freq { font-size: 11.5px; opacity: .65; margin: 0 0 20px; }
.sub-features { list-style: none; padding: 0; margin: 0 0 28px; display: flex; flex-direction: column; gap: 10px; font-size: 12px; }
.sub-features li { padding-left: 16px; position: relative; }
.sub-features li::before { content: '—'; position: absolute; left: 0; opacity: .5; }
.sub-cta { margin-top: auto; align-self: flex-start; }

/* =========================================================
   RESEÑAS
   ========================================================= */
.review-viewport {
  margin-top: 40px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.review-track {
  display: flex;
  gap: 32px;
  width: max-content;
  animation: review-scroll 40s linear infinite;
}
.review-viewport:hover .review-track,
.review-viewport:focus-within .review-track { animation-play-state: paused; }
@keyframes review-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .review-track { animation: none; }
  .review-viewport { overflow-x: auto; }
}
.review-card {
  flex: 0 0 auto;
  width: min(80vw, 340px);
  border: 1px solid var(--line);
  padding: 24px;
  background: var(--cream-soft);
}
.review-text { font-size: 12.5px; }
.review-meta { margin-top: 16px; font-size: 10.5px; opacity: .6; letter-spacing: .1em; }
.review-more { margin-top: 32px; display: inline-block; }

/* =========================================================
   FAQ
   ========================================================= */
.faq-list { margin-top: 40px; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  text-align: left;
  font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase;
}
.faq-icon {
  position: relative;
  width: 14px; height: 14px; flex: 0 0 auto;
}
.faq-icon::before, .faq-icon::after {
  content: '';
  position: absolute; background: currentColor;
  transition: transform .3s var(--ease-reveal);
}
.faq-icon::before { top: 50%; left: 0; width: 100%; height: 1px; transform: translateY(-50%); }
.faq-icon::after { left: 50%; top: 0; height: 100%; width: 1px; transform: translateX(-50%); }
.faq-item.open .faq-icon::after { transform: translateX(-50%) rotate(90deg); opacity: 0; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .4s var(--ease-reveal); }
.faq-a p { padding-bottom: 22px; max-width: 640px; }

/* =========================================================
   CONTACTO
   ========================================================= */
.contact-grid { display: grid; gap: 40px; }
@media (min-width: 768px) { .contact-grid { grid-template-columns: 1fr 1fr; align-items: start; gap: 64px; } }
/* Real Google Maps embed (no API key needed for this basic form) built
   from the address already set in Admin → Контакты — .ph's placeholder
   only shows if that field is empty. */
.contact-map { aspect-ratio: 4/3; border: 1px solid var(--line); overflow: hidden; }
.contact-map iframe { width: 100%; height: 100%; border: 0; display: block; }
.contact-whatsapp {
  display: block; margin: 28px 0 16px;
  border: 1px solid var(--brown);
  padding: 16px 24px;
  text-align: center;
}
.contact-instagram { display: inline-block; margin-bottom: 32px; }
.contact-block { margin-top: 20px; }
.contact-label { font-size: 11px; letter-spacing: .16em; opacity: .6; margin-bottom: 6px; }

/* =========================================================
   FOOTER
   ========================================================= */
/* --footer-bg/-fg (independently editable in Admin → Дизайн, see the
   header comment above for how -fg/-logo-filter are derived) lives on the
   wrapper (not #site-footer itself) so the petal layer can sit between it
   and the footer's text content — visible against the background, never
   covering anything readable. #site-footer's own markup is fully replaced
   by app.js on every render, so the petal layer must not be nested inside
   it or it would be wiped each time. */
.footer-wrap { position: relative; overflow: hidden; background: var(--footer-bg); }
.site-footer { position: relative; z-index: 2; color: var(--footer-fg); padding: 72px 0 32px; }
.footer-grid { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 28px; }
.footer-logo { height: 110px; filter: var(--footer-logo-filter, none); }
.footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; font-size: 11px; letter-spacing: .14em; }
.footer-social a { font-size: 11px; letter-spacing: .14em; }
.footer-legal { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; font-size: 10px; opacity: .75; }
.footer-rights { font-size: 10px; opacity: .5; margin-top: 8px; }
.legal-body { padding: 36px 28px 40px; max-width: 520px; }

/* =========================================================
   COOKIE BANNER
   ========================================================= */
/* --cookie-bg/-fg, independently editable in Admin → Дизайн (see the
   header comment for how -fg is derived) — defaults to the same brown as
   before, but no longer tied to --brown itself. */
.cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 250;
  background: var(--cookie-bg); color: var(--cookie-fg);
  padding: 20px 24px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
}
.cookie-banner[hidden] { display: none; }
.cookie-text { max-width: 520px; font-size: 11.5px; }
.cookie-actions { display: flex; gap: 20px; }
.cookie-actions .btn { color: var(--cookie-fg); }

/* =========================================================
   WHATSAPP FLOAT — fixed to the corner through the whole page (not just
   the contact section), z-index above the header/cookie banner but below
   modals so an open modal's backdrop correctly covers it.
   ========================================================= */
.whatsapp-float {
  position: fixed;
  right: 20px; bottom: 20px;
  z-index: 260;
  width: 56px; height: 56px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: #25D366;
  color: #fff;
  box-shadow: var(--shadow-soft);
  transition: transform .25s var(--ease-reveal);
}
.whatsapp-float:hover, .whatsapp-float:focus-visible { transform: scale(1.08); }
.whatsapp-float[hidden] { display: none; }
.whatsapp-float svg { width: 30px; height: 30px; }

/* =========================================================
   TU PEDIDO — slide-out panel
   ========================================================= */
.cart-panel {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: min(420px, 100vw);
  background: var(--cream);
  z-index: 320;
  transform: translateX(100%);
  transition: transform .4s var(--ease-reveal);
  box-shadow: var(--shadow-soft);
}
.cart-panel.open { transform: translateX(0); }

/* The whole panel scrolls as one unit (items + the delivery/date/comment
   form together) — trying to give .cart-items its own flex:1 scroll
   region left it squeezed to almost nothing whenever the form below it
   (zona de entrega + fecha deseada + comentario + totales) was tall
   enough to fill the panel on its own, which is exactly the case on
   phone-height screens once the date field was added: the form's
   content height alone left the items list ~30px tall, hiding every
   product row. */
.cart-panel-inner { display: flex; flex-direction: column; height: 100%; overflow-y: auto; }
.cart-drag-handle { display: none; }

.cart-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 24px; border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 2; background: var(--cream);
}
.cart-head h3 { font-size: 16px; text-transform: uppercase; letter-spacing: .12em; }

.cart-items { flex: 0 0 auto; padding: 16px 24px; }
.cart-empty { padding: 24px 0; opacity: .7; }

.cart-item { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.cart-item-img { width: 64px; height: 64px; flex: 0 0 auto; }
.cart-item-img .ph-label { display: none; }
.cart-item-info { flex: 1; }
.cart-item-title { font-size: 12px; text-transform: none; letter-spacing: 0; }
.cart-item-price { font-size: 12px; color: var(--terracotta); margin-top: 4px; }
.cart-item-qty { display: flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 13px; }
.qty-btn {
  width: 36px; height: 36px; min-width: 36px; border: 1px solid var(--line);
  display: grid; place-items: center;
}
.cart-item-remove {
  margin-left: auto; padding: 10px; min-width: 44px; min-height: 44px;
  display: grid; place-items: center;
  color: var(--brown);
  opacity: .6;
  transition: opacity .15s;
}
.cart-item-remove:hover, .cart-item-remove:focus-visible { opacity: 1; }
.cart-item-remove::after { display: none; }
.cart-remove-icon { width: 19px; height: 19px; }

.cart-summary { padding: 20px 24px 28px; border-top: 1px solid var(--line); }
.cart-field {
  display: flex; flex-direction: column; gap: 6px;
  font-size: 11px; letter-spacing: .1em;
  margin-bottom: 16px;
}
.cart-field select, .cart-field input, .cart-field textarea {
  font-family: var(--font); font-size: 13px; text-transform: none; letter-spacing: 0;
  padding: 9px; border: 1px solid var(--line); background: var(--cream-soft);
}
.cart-field-label { display: block; }
.cart-fulfillment-toggle { display: flex; gap: 8px; }
.fulfillment-opt {
  flex: 1;
  padding: 10px 8px;
  border: 1px solid var(--line);
  background: var(--cream-soft);
  font-size: 10.5px; letter-spacing: .08em; text-align: center;
  transition: border-color .2s, background .2s, color .2s;
}
.fulfillment-opt.active { border-color: var(--brown); background: var(--brown); color: var(--cream-soft); }
.cart-pickup-note { font-size: 12.5px; margin: 4px 0 16px; opacity: .85; }
.cart-totals { margin: 18px 0; display: flex; flex-direction: column; gap: 8px; font-size: 12.5px; }
.cart-total-row { display: flex; justify-content: space-between; }
.cart-total-main { font-size: 15px; margin-top: 6px; padding-top: 10px; border-top: 1px solid var(--line); }
.cart-confirm { width: 100%; justify-content: center; border: 1px solid var(--brown); padding: 14px; }
.cart-confirm[disabled] { opacity: .4; pointer-events: none; }

.cart-payment { padding: 60px 28px; text-align: center; }
.cart-payment .modal-title { margin-bottom: 16px; }
.cart-payment .btn { margin-top: 28px; }

@media (max-width: 640px) {
  .cart-panel {
    width: 100%; top: auto; height: 88vh; height: 88svh;
    transform: translateY(100%);
  }
  .cart-panel.open { transform: translateY(0); }
  .cart-drag-handle {
    display: block; width: 40px; height: 4px; border-radius: 2px;
    background: var(--line); margin: 10px auto 0;
  }
}

/* Static text snapshot inside each <section> (see tools/prerender_seo.py) —
   only there so crawlers/no-JS clients get real content in the first HTML
   response; app.js replaces it with the real UI as soon as data loads. */
.seo-static { padding-left: 24px; padding-right: 24px; }
.seo-static ul, .seo-static ol { list-style: none; margin: 0; padding: 0; }
.seo-static h2, .seo-static h3, .seo-static h4 { margin: 24px 0 8px; font-weight: 400; }
.seo-static li { margin-bottom: 16px; }

/* =========================================================
   ADD-ONS in the product modal / cart (card with message, gift bag)
   ========================================================= */
.modal-addons { margin: 18px 0 4px; }
.modal-addons-label { font-size: 11px; letter-spacing: .14em; opacity: .7; margin-bottom: 8px; }
.addon-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; cursor: pointer; }
.addon-check { display: flex; align-items: center; gap: 10px; }
.addon-check input { width: 18px; height: 18px; flex: 0 0 auto; accent-color: var(--brown); }
.addon-name { font-size: 12px; }
.addon-price { font-size: 12px; white-space: nowrap; color: var(--terracotta); }
.addon-card-msg { width: 100%; margin: 4px 0 8px; padding: 9px; border: 1px solid var(--line); background: var(--cream-soft); font-size: 13px; text-transform: none; letter-spacing: 0; }
.addon-card-msg[hidden], .addon-qty[hidden] { display: none; }
.addon-qty { display: flex; align-items: center; gap: 10px; padding: 0 0 8px 28px; font-size: 12px; }
.addon-qty-n { min-width: 24px; text-align: center; }
.cart-item-addon { font-size: 11.5px; margin-top: 4px; opacity: .85; text-transform: none; letter-spacing: .02em; }
.cart-item-addon-msg { display: block; font-style: italic; opacity: .8; }

/* =========================================================
   PROMO WINDOW (promo.js) — small, bottom-right, above the WhatsApp button
   ========================================================= */
.promo-pop {
  position: fixed; right: 20px; bottom: 92px; z-index: 240;
  width: min(230px, 56vw);
  background: var(--cream-soft); border: 1px solid var(--line); box-shadow: var(--shadow-soft);
  opacity: 0; transform: translateY(16px);
  transition: opacity .4s ease, transform .4s var(--ease-reveal);
}
.promo-pop:not(.open) { pointer-events: none; }
.promo-pop.open { opacity: 1; transform: none; }
.promo-media { position: relative; }
.promo-video { display: block; width: 100%; aspect-ratio: 9 / 16; max-height: 54vh; object-fit: cover; background: var(--cream); }
.promo-close {
  position: absolute; top: 6px; right: 6px; z-index: 2;
  width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; font-size: 20px; line-height: 1;
  background: rgba(240, 236, 230, .92); color: var(--brown);
}
.promo-body { padding: 12px 14px 14px; }
.promo-title { font-size: 12px; line-height: 1.5; margin-bottom: 10px; text-transform: none; letter-spacing: .02em; }
.promo-title[hidden] { display: none; }
@media (prefers-reduced-motion: reduce) { .promo-pop { transition: none; transform: none; } }

/* =========================================================
   MOOD PICKER in the Collection section ("Elige el ramo según su carácter")
   ========================================================= */
.mood-block { margin: 0 0 40px; }
.mood-title { font-size: clamp(18px, 2.4vw, 24px); font-weight: 400; text-transform: none; letter-spacing: 0; margin-bottom: 16px; }
.mood-tabs { display: flex; flex-wrap: wrap; gap: 10px; }
.mood-tab {
  padding: 10px 18px; border: 1px solid var(--collection-fg);
  font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase;
  transition: background .2s, color .2s;
}
.mood-tab[aria-pressed="true"] { background: var(--collection-fg); color: var(--collection-bg); }
.mood-results { display: flex; gap: 16px; margin-top: 22px; overflow-x: auto; padding-bottom: 8px; }
.mood-results[hidden] { display: none; }
.mood-card { flex: 0 0 150px; cursor: pointer; }
.mood-card-title { display: block; margin-top: 8px; font-size: 12.5px; text-transform: none; letter-spacing: 0; }
.mood-card-price { display: block; font-size: 12px; opacity: .8; }

/* =========================================================
   BIG "choose a bouquet by her personality" button (hero + after the
   studio section) — both link to the mood picker in the collection.
   ========================================================= */
.mood-cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  max-width: 100%; padding: 20px 40px;
  background: var(--brown); color: var(--cream-soft); border: 1px solid var(--brown);
  font-size: 13px; letter-spacing: .18em; text-transform: uppercase; text-align: center; line-height: 1.5;
  box-shadow: 0 10px 28px rgba(80, 58, 29, .22);
  transition: background .25s, color .25s, box-shadow .25s, transform .25s var(--ease-reveal);
}
.mood-cta::after { display: none; }
.mood-cta:hover, .mood-cta:focus-visible { background: transparent; color: var(--brown); transform: translateY(-2px); }
.mood-cta .chevron { flex: 0 0 auto; }
.mood-cta-wrap { text-align: center; margin-top: 56px; }
@media (max-width: 640px) {
  .mood-cta { padding: 18px 24px; font-size: 12px; letter-spacing: .14em; }
}

.cart-leadtime-note { font-size: 12px; line-height: 1.55; text-transform: none; letter-spacing: .02em; margin: 4px 0 14px; }

/* Доставка галочкой + обязательная дата — в окне букета и в корзине */
.order-fields { margin-top: 18px; }
.order-fields .addon-row { justify-content: flex-start; }
.order-fields .cart-pickup-note { margin: 0 0 14px; }
.order-fields [hidden] { display: none; }
.modal-add[disabled] { opacity: .4; pointer-events: none; }
.order-date-hint { font-size: 12px; margin-top: 8px; color: var(--terracotta); }
.order-date-hint[hidden] { display: none; }
.cart-order { display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; margin-bottom: 14px; }
.cart-order-missing { color: var(--terracotta); }
.cart-order-change { align-self: flex-start; font-size: 11px; letter-spacing: .1em; }

/* iOS Safari/Chrome: пустое поле type=date схлопывается до тонкой полоски и
   слишком маленький шрифт включает зум при фокусе — задаём явный размер. */
.cart-field input[type="date"], .wedding-form input[type="date"] {
  -webkit-appearance: none; appearance: none;
  display: block; width: 100%; min-width: 0; box-sizing: border-box;
  min-height: 44px; font-size: 16px; line-height: 1.3; text-align: left;
  border-radius: 0; color: inherit;
}
.cart-field input[type="date"]::-webkit-date-and-time-value { text-align: left; min-height: 1.3em; }

/* Свой календарь корзины (вместо нативного type=date, ломавшегося на iPhone) */
.cart-date-btn { padding: 12px 10px; min-height: 44px; border: 1px solid var(--line); background: var(--cream-soft);
  font-family: var(--font); font-size: 14px; letter-spacing: 0; text-align: left; text-transform: none; }
.cal { border: 1px solid var(--line); background: var(--cream-soft); padding: 10px; margin-top: 4px; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px;
  font-size: 13px; letter-spacing: 0; text-transform: capitalize; }
.cal-nav { width: 40px; height: 40px; font-size: 22px; line-height: 1; }
.cal-nav[disabled] { opacity: .25; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; text-align: center; }
.cal-wd { font-size: 11px; opacity: .6; padding: 4px 0; letter-spacing: 0; }
.cal-day { height: 40px; font-size: 14px; letter-spacing: 0; border: 1px solid transparent; background: transparent; }
.cal-day[disabled] { opacity: .25; }
.cal-day.sel { background: var(--brown); color: var(--cream-soft); }

/* Switched off from index.html with the hidden attribute (22.11: the
   "En el taller" section + its menu links, the order button under the film). */
.section[hidden], .header-nav a[hidden], .mobile-menu a[hidden], .hero-order-cta[hidden] { display: none !important; }
