/* Only the garden stays behind the products; phone content scrolls in normal flow. */
.bloom-mobile-visual { display: none; }

@media (max-width: 700px) {
  :root { --header-height: calc(64px + env(safe-area-inset-top,0px)); }
  html { scroll-padding-top: calc(var(--header-height) + 16px); }
  body { padding-top: var(--header-height); }
  /* Cover the area exposed when mobile browser controls collapse on scroll. */
  body::before {
    inset: 0 0 auto;
    height: 100vh;
    height: 100lvh;
    background-size: auto, auto 100svh;
    background-repeat: no-repeat, repeat-y;
  }
  .site-header {
    height: var(--header-height);
    padding: env(safe-area-inset-top,0px) max(12px,env(safe-area-inset-right,0px)) 0 max(12px,env(safe-area-inset-left,0px));
    gap: 8px;
    background: #5b283df2;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .site-header nav { display: none; }
  .site-header .brand { min-height: 44px; }
  .site-header .brand img { width: 70px; height: 36px; }
  .site-header .header-actions { gap: 2px; }
  .site-header .store-jump { min-height: 44px; padding: 10px 11px; font-size: 12px; }
  .site-header .privacy-toggle,.site-header .search-trigger,.site-header .bag-button { display: grid; place-items: center; flex: none; width: 44px; height: 44px; padding: 0; }
  .site-header .privacy-label { display: none; }
  .site-header .privacy-toggle svg,.site-header .search-trigger svg { width: 21px; height: 21px; }
  .site-header .bag-button { position: relative; display: flex; justify-content: center; font-size: 0; gap: 0; }
  .site-header .bag-symbol { display: block; width: 21px; height: 21px; margin: 0; }
  .site-header .bag-button #cart-count { position: absolute; top: 1px; right: 0; width: 18px; height: 18px; font-size: 10px; background: #663348; }

  body .bloom-story,body.story-static .bloom-story { height: auto; min-height: 0; }
  body .bloom-stage,body.story-static .bloom-stage,body:not(.story-ready) .bloom-stage {
    position: relative; top: 0; height: auto; min-height: 0; overflow: visible;
    background: #53243b60;
  }
  .bloom-scene,.bloom-scene-fallback,.bloom-atmosphere,.bloom-interlude,.bloom-bottom { display: none; }
  body .bloom-intro,body:not(.story-ready) .bloom-intro {
    position: relative; inset: auto; width: auto; max-width: 540px;
    margin: 0 auto; padding: 40px 20px 32px; opacity: 1; transform: none;
  }
  .bloom-intro .eyebrow { font-size: 10px; letter-spacing: 1.7px; }
  .bloom-intro h1 { max-width: none; font-size: clamp(42px,11.5vw,64px); line-height: 1.02; letter-spacing: -.045em; margin: 18px 0; }
  .bloom-intro > p { font-size: 15px; line-height: 1.65; margin-bottom: 20px; }
  .bloom-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: stretch; }
  .bloom-actions .button-primary,.bloom-actions .text-link { min-height: 48px; padding: 12px 8px; font-size: 13px; text-align: center; justify-content: center; line-height: 1.3; }
  .bloom-actions .text-link { border: 1px solid #f4d6e280; border-radius: 4px; }
  .bloom-intro-note { display: block; font-size: 11px; margin-top: 16px; }
  .bloom-mobile-visual { display: block; position: absolute; inset: 0; z-index: 0; pointer-events: none; }
  .bloom-mobile-scene { position: sticky; top: var(--header-height); width: 100%; height: calc(100svh - var(--header-height)); overflow: hidden; background: #b77995; }
  .bloom-mobile-scene::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg,#351a30b8 0%,#44203799 38%,#4d243c61 70%,#53243b94 100%); }
  .bloom-mobile-visual video { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 39% center; }
  .bloom-mobile-visual video::-webkit-media-controls { display: none !important; }
  .discreet .bloom-mobile-visual { display: none; }

  body .bloom-reveal,body:not(.story-ready) .bloom-reveal {
    position: relative; inset: auto; display: flex; flex-direction: column;
    max-width: 560px; margin: 0 auto; padding: 34px 16px 36px;
    opacity: 1; pointer-events: auto; scroll-margin-top: 0;
  }
  body .bloom-reveal-heading,body:not(.story-ready) .bloom-reveal-heading { display: block; position: static; width: auto; }
  .bloom-reveal .eyebrow { font-size: 10px; letter-spacing: 1.7px; }
  .bloom-reveal-heading h2 { font-size: clamp(35px,10vw,48px); line-height: 1.05; letter-spacing: -.035em; margin: 12px 0; }
  .bloom-placeholder-note { position: static; font-size: 12px; line-height: 1.5; margin-bottom: 18px; }
  body .bloom-products--star,body:not(.story-ready) .bloom-products--star {
    position: relative; inset: auto; display: grid; grid-template-columns: repeat(2,minmax(0,1fr));
    width: 100%; height: auto; margin: 0; gap: 22px 12px; align-items: start;
  }
  .bloom-products--star > .bloom-product {
    position: relative; inset: auto; display: flex; flex-direction: column; gap: 3px;
    width: 100%; height: auto; min-width: 0; aspect-ratio: auto; margin: 0; padding: 0;
    opacity: 1; transform: none; pointer-events: auto; z-index: auto;
  }
  .bloom-products--star > .bloom-product::after { display: none; }
  .bloom-products--star > .bloom-product:last-child { grid-column: 1 / -1; width: calc(50% - 6px); justify-self: center; }
  .bloom-products--star .bloom-product-index { display: none; }
  .bloom-products--star .bloom-star-thumbnail { position: relative; inset: auto; width: 100%; height: auto; aspect-ratio: 1; }
  .bloom-products--star .bloom-product-caption {
    position: relative; inset: auto; transform: none; width: 100%; height: 66px;
    padding: 10px 10%; gap: 3px; z-index: 3;
  }
  .bloom-products--star .bloom-product-caption::before { inset: 0; }
  .bloom-products--star .bloom-product-name { font-size: clamp(15px,4.2vw,21px); white-space: normal; line-height: 1.08; min-height: 0; letter-spacing: -.3px; }
  .bloom-products--star .bloom-product-bottom { font-size: 13px; }
  .bloom-products--star .bloom-product:active .bloom-star-thumbnail { filter: drop-shadow(0 3px 10px #ffe3f2bb); }
}

@media (min-width: 400px) and (max-width: 700px) {
  .site-header .brand img { width: 88px; }
  .site-header .header-actions { gap: 5px; }
}

@media (max-width: 359px) {
  .site-header { gap: 4px; padding-left: 8px; padding-right: 8px; }
  .site-header .brand img { width: 60px; }
  .site-header .header-actions { gap: 0; }
  .site-header .store-jump { padding-inline: 8px; font-size: 11px; }
}
