/* Brasil Sized · mobile polish
   A compact, touch-first layer shared by home, catálogo, produto e checkout. */
.related-grid { display:flex; gap:10px; overflow-x:auto; scroll-snap-type:x mandatory; scrollbar-width:none; }
.related-grid::-webkit-scrollbar { display:none; }
.related-card { flex:0 0 clamp(270px,25vw,380px); scroll-snap-align:start; }
@media (max-width: 760px) {
  :root { --pad: 16px; }
  html { overflow-x: hidden; }
  body { min-width: 0; -webkit-tap-highlight-color: transparent; }
  img { max-width: 100%; }
  button, a { touch-action: manipulation; }

  /* Home */
  .site-header { top: 8px; width: calc(100% - 16px); padding: 8px 9px 8px 13px; box-shadow: 0 8px 28px rgba(0,0,0,.24); }
  .site-header .brand { width: 94px; }
  .header-actions { gap: 4px; }
  .bag-button { height: 38px; padding: 0 10px; font-size: 9px; }
  .bag-button span { min-width: 19px; height: 19px; }
  .menu-button { width: 38px; height: 38px; }
  .mobile-menu { padding: 94px 18px 30px; }
  .mobile-menu a { font-size: clamp(46px, 15vw, 72px); padding: 13px 0; }
  .hero { min-height: 100svh; }
  .hero-copy { min-height: 100svh; padding: 112px 18px 116px; }
  .hero h1 { max-width: 7ch; font-size: clamp(68px, 24vw, 104px); line-height: .78; }
  .hero-text { max-width: 31ch; margin: 18px 0 16px; font-size: 11px; line-height: 1.55; }
  .hero-copy .pill { min-width: 152px; min-height: 44px; padding: 11px 13px; }
  .hero-ticker { height: 92px; }
  .hero-ticker-track, .hero-ticker-group { height: 82px; }
  .hero-ticker-card { width: 82px; height: 82px; }
  .marquee span { font-size: 26px; }
  .manifesto { height: 132svh; }
  .manifesto-sticky { min-height: 100svh; padding: 86px 18px 32px; }
  .manifesto h2 { max-width: 9ch; font-size: clamp(58px, 18vw, 82px); }
  .manifesto-content>p:not(.eyebrow) { max-width: 31ch; font-size: 12px; line-height: 1.55; }
  .text-link { font-size: 10px; }
  .coffee-journey { height: 360svh; min-height: 360svh; }
  .coffee-sticky { position: sticky; top: 0; height: 100svh; min-height: 100svh; }
  .coffee-lab, .coffee-photo-stack { height: 100svh; min-height: 100svh; }
  .coffee-copy { padding: 82px 16px 0; }
  .coffee-copy h2 { font-size: clamp(62px, 18vw, 86px); }
  .coffee-steps { top: calc(100svh - 98px); left: 12px; right: 12px; }
  .coffee-steps button { min-height: 56px; }
  .coffee-steps button b { font-size: 15px; }
  .coffee-steps button span { font-size: 12px; }
  .coffee-photo { object-position: center; }
  .drop-editorial { padding: 68px 12px; }
  .drop-editorial-head h2 { font-size: clamp(52px, 15vw, 74px); }
  .drop-editorial-head>a { font-size: 18px; max-width: 115px; }
  .drop-scene { min-height: 232px; }
  .drop-scene-wide { height: 88vw; }
  .shop { padding: 68px 12px; }
  .shop h2 { font-size: clamp(56px, 18vw, 86px); }
  .shop .filters { gap: 6px; margin: 20px 0 16px; padding-bottom: 7px; }
  .shop .filter { min-height: 38px; padding: 9px 11px; font-size: 8px; }
  .shop .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; }
  .shop .product-media { min-height: 0; aspect-ratio: 1 / 1.15; }
  .shop .product-tag { left: 8px; top: 8px; padding: 5px 6px; font-size: 6px; }
  .shop .heart { right: 8px; top: 8px; width: 34px; height: 34px; font-size: 18px; }
  .shop .product-info { min-height: 142px; padding: 10px 9px; }
  .shop .product-info h3 { font-size: clamp(18px, 5.5vw, 25px); line-height: .9; }
  .shop .product-meta { margin-top: 8px; font-size: 7px; line-height: 1.45; }
  .shop .quick-view { min-height: 40px; padding: 9px 8px; font-size: 8px; }
  .origin-art { min-height: 380px; }
  .origin-copy { padding: 58px 18px 68px; }
  .origin h2 { font-size: clamp(74px, 25vw, 116px); }
  .origin-copy>p:not(.eyebrow) { margin: 24px 0; font-size: 12px; }
  .codes article { min-height: 208px; padding: 28px 18px; }
  .codes span { font-size: 42px; }
  .codes h3 { font-size: 31px; }
  .codes p { font-size: 11px; }
  .newsletter { padding: 76px 18px; }
  .newsletter h2 { font-size: clamp(56px, 18vw, 84px); }
  footer { padding: 48px 18px 22px !important; }
  footer>img { width: 210px !important; margin-bottom: 20px; }
  footer .footer-links { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 20px 0; }
  .footer-extra { gap: 20px; padding: 24px 0 18px; }

  /* Modais e carrinho */
  .product-modal { width: 100vw; max-width: 100vw; }
  .product-page-bar { grid-template-columns: 86px 1fr 40px; padding: 8px 12px; }
  .product-page-bar>span { font-size: 8px; letter-spacing: .1em; }
  .product-page-bar img { max-width: 82px; }
  .product-modal .modal-close { width: 38px; height: 38px; }
  .bag { width: 100%; padding: 18px 16px; }
  .bag-head h2 { font-size: 42px; }
  .bag-item { grid-template-columns: 62px minmax(0,1fr) auto; gap: 10px; }
  .bag-item img { width: 62px; height: 76px; }
  .bag-item h3 { font-size: 21px; }

  /* Catalog */
  .catalog-header { width: calc(100% - 14px); }
  .catalog-header nav { gap: 8px; }
  .catalog-filter { border-radius: 0; min-height: 40px; padding: 10px 12px; }
  .catalog-section { padding-inline: 14px; }
  .catalog-products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .catalog-card-info h3 { font-size: clamp(18px, 5.3vw, 25px); }

  /* Produto */
  .product-header { height: 64px; padding: 0 12px; }
  .product-header .brand img { height: 42px; max-width: 92px; }
  .cart-link { font-size: 15px; }
  .purchase-panel>div, .product-cutout { padding-inline: 16px; }
  .product-heading { padding-top: 52px !important; padding-bottom: 40px !important; }
  .product-heading h1 { font-size: clamp(58px, 18vw, 78px); }
  .product-description { margin: 22px 0; font-size: 12px; }
  .product-cutout { height: 88vw; min-height: 300px; }
  .product-cutout img { height: 82vw; }
  .purchase-options { padding-top: 38px !important; padding-bottom: 46px !important; }
  .add-button { font-size: 18px; }
  /* No mobile a galeria vira uma sequência contínua, sem cartões sticky que criam áreas pretas vazias. */
  .vertical-gallery { width: 100%; padding: 18px 10px 80px; }
  .gallery-shot { position: relative !important; top: auto !important; width: 100%; height: 100vw; min-height: 0; aspect-ratio: auto; margin: 0 0 12px; transform: none !important; box-shadow: 0 14px 30px rgba(0,0,0,.24); }
  .model-shot { background-size: 300% 100%; }
  .technical-image, .cutout-shot img { width: 94%; height: 94%; }
  .faq-section { padding: 64px 16px; }
  .section-title p { font-size: 78px; }
  .faq-list summary { font-size: 21px; padding: 18px 12px; }
  .faq-list details p { padding: 0 12px 20px; font-size: 12px; }
  .related-section { padding: 62px 16px; }
  .related-grid { display: flex; gap: 10px; overflow-x: auto; padding: 1px 2px 18px; border: 0; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .related-grid::-webkit-scrollbar { display: none; }
  .related-card { flex: 0 0 78vw; scroll-snap-align: start; border: 1px solid rgba(248,241,223,.24); padding-bottom: 16px; }
  .related-card>div { height: 78vw; }
  .related-card h3 { margin: 14px 12px 22px; font-size: 28px; }
  .related-card p { margin: 0 12px; font-size: 9px; }
  .product-footer { padding: 42px 16px 22px; }
  .footer-nav { gap: 6px; }
  .footer-nav a { padding: 11px 6px; font-size: 16px; }

  /* Checkout / consent */
  .consent-banner { left: 10px; right: 10px; bottom: 10px; padding: 15px; gap: 14px; }
  .consent-banner strong { font-size: 21px; }
  .consent-actions { gap: 6px; }
}

/* Mobile section cleanup: no dead black panels, full-bleed visual storytelling. */
@media (max-width: 760px) {
  /* The manifesto is a single viewport composition on touch devices. Keeping the
     desktop sticky travel here created an empty black second screen. */
  .manifesto {
    height: 100svh !important;
    min-height: 100svh;
  }
  .manifesto-sticky {
    position: relative !important;
    height: 100svh;
    min-height: 100svh;
    padding: 86px 18px 30px;
  }
  .manifesto-media img { transform: scale(1.04); }

  /* Torra em movimento: the section itself provides the scroll travel while the
     sticky viewport crossfades each photographic stage. Brown stays underneath
     every frame, so no black gap is exposed between images. */
  .coffee-journey {
    height: 400svh !important;
    min-height: 400svh;
    background: #3a2417 !important;
    border-color: rgba(210,176,120,.3);
  }
  .coffee-sticky {
    position: absolute !important;
    top: 0;
    left: 0;
    right: 0;
    display: block;
    height: 100svh;
    min-height: 100svh;
    width: 100%;
    background: #3a2417 !important;
  }
  .coffee-journey.coffee-is-pinned .coffee-sticky {
    position: fixed !important;
    inset: 0;
    width: 100%;
    height: 100svh;
    z-index: 20;
  }
  .coffee-lab {
    position: absolute;
    inset: 0;
    height: 100% !important;
    min-height: 0 !important;
    background: #3a2417 !important;
    background-image: var(--coffee-mobile-photo, url('assets/images/coffee/coffee-harvest.webp')) !important;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    z-index: 1;
  }
  .coffee-photo-stack {
    position: absolute;
    inset: 0;
    height: 100% !important;
    min-height: 0 !important;
    background: #3a2417 !important;
    z-index: 2 !important;
    display: block !important;
    visibility: visible !important;
    pointer-events: none;
  }
  .coffee-photo-stack:after {
    background: linear-gradient(0deg, rgba(40,22,13,.84), rgba(40,22,13,.12) 55%, rgba(40,22,13,.32)) !important;
  }
  .coffee-photo {
    display: block !important;
    visibility: visible !important;
    height: 100% !important;
    object-fit: cover;
    object-position: center;
  }
  /* Explicit mobile states prevent an empty brown frame if the first scroll
     event arrives before the journey script has painted data-stage. */
  .coffee-photo { opacity: 0 !important; }
  .coffee-photo--harvest,
  .coffee-journey[data-stage="0"] .coffee-photo--harvest { opacity: 1 !important; }
  .coffee-journey[data-stage="1"] .coffee-photo--harvest,
  .coffee-journey[data-stage="2"] .coffee-photo--harvest,
  .coffee-journey[data-stage="3"] .coffee-photo--harvest { opacity: 0 !important; }
  .coffee-journey[data-stage="1"] .coffee-photo--drying,
  .coffee-journey[data-stage="2"] .coffee-photo--roasting,
  .coffee-journey[data-stage="3"] .coffee-photo--brew { opacity: 1 !important; }
  .coffee-copy { z-index: 8; }

  /* Poster is sized to its artwork; editorial padding no longer becomes a
     second black card underneath Terreiro Social Clube. */
  .drop-editorial {
    padding-top: 58px;
    padding-bottom: 18px !important;
    background: #111 !important;
  }
  .drop-scene-poster {
    height: 88vw !important;
    min-height: 0 !important;
    background: var(--cream);
  }
  .drop-scene-poster img {
    height: 100% !important;
    object-fit: cover;
    object-position: center;
  }
}

@media (max-width: 380px) {
  .hero h1 { font-size: 23vw; }
  .shop .product-grid, .catalog-products { grid-template-columns: 1fr; }
  .shop .product-info { min-height: 126px; }
  .coffee-steps button b { font-size: 13px; }
  .coffee-steps button small { display: none; }
}
