/* ==========================================================================
   Gunners Goodies — mobile optimisation pass
   Loaded after style.css. Phone rules live under 640px; small tablets under 900px.
   ========================================================================== */

@media (max-width: 900px) {
  /* product in the first screen: headline, pot, copy, CTAs */
  .hero { padding: 104px 0 56px; }
  .hero__grid { display: flex; flex-direction: column; gap: 0; }
  .hero__copy { display: contents; }
  .hero__copy .eyebrow { order: 1; }
  .hero__copy .display { order: 2; }
  .hero__note { order: 3; }
  .hero__visual { order: 4; width: 100%; margin: 6px 0 4px; }
  .hero__copy .lede { order: 5; }
  .hero__ctas { order: 6; }
  .proof { order: 7; }
  .stage { margin-top: 0; }
  .builder .preview { order: -1; }
}

@media (max-width: 640px) {
  :root { --sec: 64px; --r-xl: 1.5rem; }
  .sec { padding-block: var(--sec) calc(var(--sec) + 8px); }
  .sec--tight { padding-block: 48px; }
  .head { margin-bottom: 28px; gap: 16px; }
  .eyebrow { font-size: .66rem; letter-spacing: .16em; margin-bottom: 1rem; }
  .h2 { font-size: clamp(2rem, 9vw, 2.6rem); }
  .lede { font-size: 1rem; }
  .announce { padding: 7px 12px; }
  .hide-m { display: none; }

  /* hero */
  .hero .display { font-size: clamp(3rem, 15vw, 4.2rem); }
  .hero__note { margin: 10px 0 0; font-size: .9rem; }
  .stage { width: 84%; max-width: 330px; }
  .flavours { margin-top: -6px; }
  .hero__add { margin-top: 12px; }
  .hero .lede { margin-top: 1.4rem; }
  .hero__ctas { margin-top: 1.4rem; }
  .hero__ctas .btn { flex: 1 1 100%; justify-content: space-between; }
  .proof { margin-top: 1.6rem; gap: 10px 16px; font-size: .8rem; }

  /* bento */
  .bento { gap: 12px; }
  .tile { padding: 20px; gap: 12px; }
  .tile__img { min-height: 0; }
  .tile__img img, .tile--ice .tile__img img { max-height: 230px; }
  .tile__duo img { max-height: 200px; }
  .tile p { font-size: .9rem; }
  .tile__go { width: 44px; height: 44px; }

  /* variety bag builder: compact sticky preview so every tap shows its result */
  .preview { position: sticky; top: 72px; z-index: 6; margin-bottom: 18px; }
  .preview .core { padding: 12px; display: grid; grid-template-columns: 96px 1fr; gap: 4px 14px; align-items: center; }
  .preview__img { aspect-ratio: 1; grid-row: span 3; }
  .preview__meta { margin: 0; }
  .preview__meta h3 { font-size: 1.05rem; }
  .preview__meta p { font-size: .8rem; margin: 0; }
  .preview__meta b { font-size: 1.05rem; }
  .preview .fit { display: none; }
  .preview .btn { min-height: 44px; padding: .3rem .35rem .3rem 1rem; font-size: .88rem; }
  .preview .btn__ico { width: 32px; height: 32px; }
  .preview .core > p:last-child { display: none; }
  .step { padding: 18px 0; }
  .choice { padding: 14px 16px; }
  .chip { min-height: 40px; }

  /* nature */
  .nature__quote img { width: 60%; margin-top: 20px; }
  .ing--in li { padding: 11px 0; font-size: 1.05rem; }
  .ing--out { margin-top: 32px; padding: 20px; }

  /* size guide: segmented row instead of three tall buttons */
  .seg { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .seg button { flex-direction: column; text-align: center; gap: 4px; padding: 12px 6px; border-radius: 18px; }
  .seg small { display: none; }
  .seg .dog { width: auto; height: 34px; }

  /* story */
  .story__art { max-width: 300px; margin-inline: auto; }
  .facts { grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 24px; }
  .fact { padding: 12px; border-radius: 16px; }
  .fact b { font-size: 1.5rem; }
  .fact span { font-size: .72rem; }

  /* awards + promises: swipeable row */
  .awards { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 10px; margin-inline: -16px; padding: 4px 16px 12px; scrollbar-width: none; }
  .awards::-webkit-scrollbar { display: none; }
  .award { flex: 0 0 78%; scroll-snap-align: start; padding: 20px 18px; }

  /* markets */
  .collage { margin-bottom: 8px; }
  .markets .hero__ctas .btn { flex: 1 1 100%; justify-content: space-between; }

  /* tips: compact rows */
  .tips { gap: 10px; }
  .tip { display: grid; grid-template-columns: 40px 1fr; gap: 0 12px; padding: 18px; }
  .tip i { font-size: 1.6rem; grid-row: span 2; }
  .tip h3 { margin: 0 0 4px; font-size: 1.02rem; }
  .tip p { font-size: .88rem; }

  /* sign-up */
  .drop { padding: 28px 22px; border-radius: 24px; }
  .drop .btn { justify-content: space-between; }

  /* footer */
  .footer { margin-top: 48px; }
  .footer__top { grid-template-columns: 1fr 1fr; gap: 28px 16px; padding-top: 40px; }
  .footer__brand, .footer__top > div:last-child { grid-column: 1 / -1; }
  .footer__brand img { width: 64px; }
  .footer ul { gap: 8px; font-size: .92rem; }
  .footer__word { margin: 32px 0 20px; }
  .footer__base { flex-direction: column; align-items: flex-start; gap: 14px; }

  /* inner page heros */
  .phero { padding: 104px 0 16px; }
  .phero .display { font-size: clamp(2.7rem, 13vw, 3.6rem); }
  .crumbs { margin-bottom: 16px; font-size: .8rem; flex-wrap: nowrap; overflow: hidden; white-space: nowrap; }
  .crumbs li:last-child { overflow: hidden; text-overflow: ellipsis; }

  /* shop */
  .shop-feature { gap: 10px; }
  .banner { grid-template-columns: 1fr 104px; min-height: 0; padding: 18px; gap: 10px; border-radius: 22px; }
  .banner h3 { font-size: 1.25rem; margin-bottom: 4px; }
  .banner p { display: none; }
  .banner .eyebrow { margin-bottom: .4rem !important; }
  .banner img { max-height: 110px; }
  .banner .btn { min-height: 40px; font-size: .84rem; margin-top: 10px; }
  .shopbar { padding: 8px 0; top: 72px; }
  .cats .chip { flex: none; white-space: nowrap; }
  .shop-tools { width: 100%; display: grid; grid-template-columns: 1fr auto; gap: 8px; }
  .shop-tools .search { grid-column: 1 / -1; }
  .search input { width: 100%; }
  .toggle { justify-content: center; padding: 8px 12px; font-size: .82rem; }
  .select { font-size: .82rem; }

  /* product cards */
  .pcard__img { aspect-ratio: 1; }
  .pcard__img img { inset: 12px; width: calc(100% - 24px); height: calc(100% - 24px); }
  .pcard__badges { top: 8px; left: 8px; }
  .badge { font-size: .6rem; padding: 3px 7px; }
  .pcard__meta { font-size: .76rem; }

  /* product page */
  .pdp { padding-top: 0; gap: 22px; }
  .gallery__main { border-radius: 22px; }
  .thumbs { grid-auto-columns: 60px; }
  .buy h1 { font-size: 2.2rem; }
  .buy__row .btn { min-width: 0; }
  .assure { grid-template-columns: 1fr 1fr; gap: 8px; }
  .assure div { padding: 12px; font-size: .78rem; }
  .tabs__list button { padding: 8px 12px; font-size: .8rem; }
  .sticky-buy { bottom: max(12px, env(safe-area-inset-bottom)); }

  /* about */
  .expand__media { aspect-ratio: 4 / 5; }
  .expand__note { right: 12px; bottom: -14px; font-size: .78rem; }
  .prose .lede { font-size: 1.2rem; }

  /* markets page */
  .event { grid-template-columns: 60px 1fr auto; gap: 12px; padding: 10px; }
  .event time span { font-size: 1.4rem; }
  .event h3 { font-size: .95rem; }
  .tl { grid-template-columns: 84px 1fr; gap: 14px; padding: 14px; align-items: start; }
  .tl__img { max-width: none; border-radius: 14px; }
  .tl h3 { font-size: 1.05rem; margin-top: 8px; }
  .tl p { font-size: .86rem; }

  /* contact */
  .contact__card { padding: 20px; }
  .contact__img { aspect-ratio: 16 / 10; }

  /* cookie: slim card */
  .cookie { padding: 12px 14px; font-size: .78rem; border-radius: 18px; }
  .cookie b { font-size: .86rem; }
  .cookie div { margin-top: 8px; }
  .cookie .btn { flex: 1; justify-content: center; min-height: 40px; }

  /* bag drawer becomes a bottom sheet */
  .drawer { top: auto; left: 8px; right: 8px; bottom: 8px; width: auto; height: min(88dvh, 720px); transform: translateY(calc(100% + 20px)); }
}

@media (max-width: 380px) {
  .brand span { font-size: .9rem; }
  .flavours button { padding: 6px 10px 6px 6px; font-size: .78rem; gap: 6px; }
}

/* closed overlays stay out of the tab order and screen readers */
.drawer { visibility: hidden; transition: transform .7s var(--ease), visibility 0s .7s; }
.bag-open .drawer { visibility: visible; transition: transform .7s var(--ease); }
.cookie:not(.show) { visibility: hidden; transition: transform .7s var(--ease), visibility 0s .7s; }
@media (max-width: 900px) { .hero__grid { align-items: stretch; } .hero__note { align-self: flex-start; } .hero__visual { align-self: center; } }
@media (max-width: 640px) { .sec:has(#pdp) { padding-top: 20px !important; } .footer__word { font-size: 9.6vw; } }
/* the open menu sits under the nav so the X button stays tappable */
.menu { z-index: calc(var(--z-nav) - 1); }
@media (max-width: 640px) {
  .toast { top: 84px; bottom: auto; transform: translate(-50%, -260%); font-size: .82rem; width: max-content; max-width: calc(100% - 24px); padding: 6px 16px 6px 6px; }
  .toast.show { transform: translate(-50%, 0); }
  .toast img { width: 32px; height: 32px; }
}
.bag-open .toast { opacity: 0; }
