/* A mesma casa, com espaço para ler e tocar em telas menores. */
@media (max-width: 1023px) {
  html { scroll-padding-top: calc(88px + env(safe-area-inset-top, 0px)); }
  .page { --mobile-gutter: max(clamp(16px, 5vw, 32px), env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px)); }
  .page .site-container, .page .home-container, .hero-layout { width: calc(100% - var(--mobile-gutter) * 2); }
  .page .desktop-s002 { min-height: 34px; height: auto; padding: calc(8px + env(safe-area-inset-top, 0px)) 16px 8px; font-size: 11px; line-height: 1.5; }
  .page .desktop-s002 > span:not(:first-child) { display: none; }
  .hero-layout { position: relative; gap: 24px; padding: 24px 0 0; }
  .hero-copy { padding: 0; }
  .page .hero-brand { gap: 12px; max-width: calc(100% - 64px); min-height: 64px; padding: 0; margin-bottom: 24px; }
  .page .hero-brand img { flex: 0 0 auto; width: 52px; height: 58px; }
  .hero-brand-name { font-size: clamp(19px, 5.9vw, 28px); }
  .hero-brand-place { font-size: 9px; letter-spacing: .1em; }
  .page .hero-copy h1 { max-width: 560px; font-size: clamp(32px, 9.7vw, 46px); line-height: 1.15; letter-spacing: -.045em; }
  .hero-description { max-width: 52ch; margin-top: 20px; font-size: 16px; line-height: 1.65; }
  .hero-actions { gap: 8px 20px; margin-top: 22px; }
  .page .hero-primary { min-height: 48px; padding: 12px 18px; }
  .page .hero-secondary { min-height: 44px; padding-block: 10px; }
  .hero-portrait { margin-inline: calc(-1 * var(--mobile-gutter)); }
  .page .hero-portrait img { width: 100%; height: auto; max-height: 540px; aspect-ratio: 1.1; object-position: 50% 43%; }
  .hero-portrait figcaption { padding: 12px var(--mobile-gutter); font-size: 12px; }

  /* A pena abre o índice; na rolagem, ocupa uma faixa própria no topo. */
  .menu-anchor { position: absolute; right: 0; top: 22px; width: 54px; min-height: 66px; margin: 0; }
  .herbarium-menu { width: 54px; }
  .herbarium-handle { display: flex; flex-direction: column; gap: 0; min-height: 66px; padding: 0; }
  .feather-stage { width: 42px; height: 42px; }
  .menu-feather { width: 42px; height: 58px; left: 0; top: -9px; animation-name: feather-drift-mobile; }
  .feather-shadow, .herbarium-invitation { display: none; }
  .herbarium-handle-copy { display: block; padding: 0; }
  .herbarium-handle-title { display: block; font-size: 0; }
  .herbarium-handle-title::before { content: 'Menu'; font-size: 11px; letter-spacing: .08em; }
  .herbarium-handle-title > span { display: none; }
  .herbarium-menu.is-docked { left: 0; right: 0; top: 0; width: 100%; padding: env(safe-area-inset-top, 0px) max(16px, env(safe-area-inset-left)) 0; height: calc(64px + env(safe-area-inset-top, 0px)); background: #f3ecdd; border-bottom: 1px solid #c6b89e; }
  .herbarium-menu.is-docked .herbarium-handle { flex-direction: row; gap: 8px; width: 100px; min-height: 64px; }
  .herbarium-menu.is-docked .feather-stage { width: 32px; height: 46px; }
  .herbarium-menu.is-docked .menu-feather { width: 36px; height: 50px; left: -2px; top: -3px; animation-name: feather-drift-mobile; }
  .herbarium-menu.is-docked .herbarium-handle-title::before { font-size: 12px; letter-spacing: .06em; }
  .herbarium-menu .herbarium-panel, .herbarium-menu.is-docked .herbarium-panel { position: fixed; left: max(12px, env(safe-area-inset-left)); right: max(12px, env(safe-area-inset-right)); top: calc(124px + env(safe-area-inset-top, 0px)); bottom: auto; width: auto; max-width: none; max-height: calc(100dvh - 140px - env(safe-area-inset-top, 0px)); padding: 18px 24px 20px; transform-origin: top right; }
  .herbarium-menu.is-docked .herbarium-panel { top: calc(76px + env(safe-area-inset-top, 0px)); max-height: calc(100dvh - 92px - env(safe-area-inset-top, 0px)); }
  body:not(.navigation-ready) .herbarium-menu .herbarium-panel { position: absolute; top: calc(100% + 12px); left: auto; right: 0; width: calc(100vw - var(--mobile-gutter) * 2); max-height: none; }
  .herbarium-close { position: sticky; float: right; top: 0; margin: -10px -16px 0 0; background: #f3ecdd; border-radius: 50%; }
  .herbarium-heading { display: block; min-height: 0; padding: 12px 0 16px; margin: 0; }
  .herbarium-kicker { font-size: 10px; max-width: 200px; padding-right: 6px; }
  .herbarium-title { font-size: 26px; }
  .herbarium-intro { margin-top: 8px; }
  .herbarium-branch { display: none; }
  .page .herbarium-index { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .page .herbarium-entry { min-height: 65px; padding: 11px 0; }
  .herbarium-entry-copy { gap: 4px; }
  .herbarium-entry-title { font-size: 20px; }
  .herbarium-entry-note { font-size: 12px; }
  .herbarium-footer { margin-top: 4px; }
  .herbarium-whisper { font-size: 25px; }
  .herbarium-footer-place { font-size: 9px; }
  body.mobile-menu-open { overflow: hidden; }
  .mobile-nav-docked .shop-bag { top: calc(10px + env(safe-area-inset-top, 0px)); right: max(16px, env(safe-area-inset-right)); bottom: auto; min-height: 44px; padding: 8px 12px; box-shadow: none; }
  .mobile-nav-docked .shop-toast { top: calc(76px + env(safe-area-inset-top, 0px)); bottom: auto; }
  .mobile-menu-open .shop-bag { visibility: hidden; }

  .page .desktop-s040, .page .desktop-s050, .page .home-section { padding-block: 48px; }
  .page .desktop-s034 { padding-block: 22px; gap: 12px; }
  .page .desktop-s035 { gap: 10px; }
  .page .desktop-s038 { font-size: 26px; line-height: 1.2; }
  .page .desktop-s037 { display: none; }
  .page .desktop-s042, .page .desktop-s051 { align-items: flex-start; gap: 20px; margin-bottom: 28px; }
  .page .desktop-s044, .page .desktop-s052, .page .desktop-s087, .home-section h2 { font-size: clamp(30px, 7.5vw, 38px); line-height: 1.18; }
  .page .desktop-s053, .home-section p { font-size: 16px; line-height: 1.65; }
  .page .desktop-s045 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; }
  .page .desktop-s046 { padding: 0; }
  .page .desktop-s047 { height: auto; aspect-ratio: 4 / 3; }
  .page .desktop-s048 { margin-top: 12px; font-size: 20px; line-height: 1.3; }
  .desktop-s049 { font-size: 14px; line-height: 1.5; }
  .page .blend-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .page .blend-grid > article { grid-column: auto; }
  .page .desktop-s057 { height: 184px; }
  .page .desktop-s057 > .shop-product-image { max-width: 90%; width: 132px; height: 162px; }
  .page .desktop-s058 { padding: 16px 14px 12px; gap: 8px; }
  .page .desktop-s059 { font-size: 10px; letter-spacing: .1em; }
  .page .desktop-s060 { font-size: 22px; line-height: 1.25; text-wrap: auto; }
  .page .desktop-s061 { font-size: 14px; line-height: 1.5; }
  .page .desktop-s062 { gap: 4px; flex-wrap: wrap; padding-top: 10px; margin-bottom: 4px; }
  .page .desktop-s063 { font-size: 21px; white-space: nowrap; }
  .page .desktop-s064 { font-size: 12px; }
  .page .shop-add { min-height: 48px; padding: 10px 6px; line-height: 1.35; }
  .page .shop-enabled .product-contact, .shop-enabled .product-contact { min-height: 44px; padding: 8px 0; font-size: 12px; text-align: center; }
  .shop-catalog-tools { width: 100%; flex-direction: row; align-items: center; justify-content: space-between; gap: 12px; }
  .blend-catalog-note { white-space: normal; font-size: 13px; }
  .shop-catalog-cart { flex-shrink: 0; }
  .page .home-split { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .home-copy { gap: 18px; }
  .home-section .home-eyebrow { font-size: 12px; }
  .home-section .home-note { font-size: 15px; }
  .page .home-photo, .home-kits .kit-photo { aspect-ratio: 4 / 3; max-height: 460px; }
  .home-section .home-callout { font-size: 24px; }
  .page .home-button { min-height: 48px; padding: 12px 16px; }
  .care-photos { gap: 12px; }
  .care-photos img + img { margin-top: 24px; }
  .care-grid { grid-template-columns: minmax(0, 1fr); }
  .care-card-featured { grid-column: auto; }
  .care-card { padding: 24px; }
  .care-card p { font-size: 16px; }
  .care-card .care-price { font-size: 21px; }
  .home-eventos .event-card { padding: 20px; gap: 24px; }
  .home-eventos .event-artwork { width: 100%; max-width: 420px; }
  .home-eventos .event-card h3 { font-size: 27px; }
  .home-eventos .event-subtitle { font-size: 20px; }
  .home-eventos .event-status { font-size: 11px; flex-wrap: wrap; }
  .event-facts { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .home-eventos .event-booking .home-actions { display: grid; gap: 10px; }
  .page .home-eventos .home-button { font-size: 12px; }
  .page .desktop-s112 { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .page .desktop-s115 { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; font-size: 16px; }
  .page .desktop-s115 .visit-hours { display: inline-block; padding-block: 0; }
  .page .desktop-s117 { width: 100%; height: auto; max-height: 460px; aspect-ratio: 4 / 3; }
  .page .desktop-s023 { gap: 12px; }
  .page .desktop-s024, .page .desktop-s025 { min-height: 48px; padding: 12px 16px; font-size: 12px; }
  .page .desktop-s118 { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .page .desktop-s118 > article { display: grid; grid-template-columns: minmax(100px, .7fr) minmax(0, 1fr); column-gap: 18px; align-items: start; }
  .page .desktop-s119 { grid-row: span 2; height: auto; aspect-ratio: 1; }
  .desktop-s120 { margin-top: 0; font-size: 11px; }
  .page .desktop-s121 { margin: 6px 0 0; font-size: 22px; }
  .page .desktop-s129 { width: 100%; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .page .desktop-s130 { height: auto; aspect-ratio: 1; }
  .desktop-s124 { gap: 24px; }
  .desktop-s127 { font-size: 27px; overflow-wrap: anywhere; }
  .desktop-s123 { padding-bottom: 48px; }
  .desktop-s131 { padding-block: 36px; }
  .page .desktop-s132 { flex-direction: column; align-items: flex-start; gap: 22px; }
  .page .desktop-s134 { font-size: 28px; }
  .desktop-s139 { padding: 40px 0 calc(32px + env(safe-area-inset-bottom, 0px)); }
  .page .desktop-s140 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; }
  .desktop-s140 > :first-child { grid-column: 1 / -1; }
  .page .desktop-s141 { width: min(240px, 100%); }
  .desktop-s144 { gap: 4px; }
  .page .desktop-s146 { display: flex; align-items: center; min-height: 44px; padding: 8px 0; line-height: 1.45; overflow-wrap: anywhere; }
  .page .desktop-s147 { margin-top: 28px; gap: 16px; }
  .skip-link { z-index: 45; }
}

@media (max-width: 600px) {
  .hero-actions { display: grid; }
  .page .hero-secondary { justify-self: center; }
  .page .hero-brand img { width: 46px; height: 54px; }
  .page .desktop-s055 { gap: 12px; }
  .page .desktop-s057 { height: 166px; }
  .page .desktop-s057 > .shop-product-image { width: 116px; height: 144px; }
  .page .desktop-s058 { padding: 14px 12px 10px; }
  .page .desktop-s060 { font-size: 20px; }
  .page .desktop-s063 { font-size: 20px; }
  .page .home-actions { align-items: stretch; gap: 10px; }
  .page .home-actions > .home-button { width: 100%; }
  .blend-steps li { padding-left: 48px; }
  .home-eventos .event-card { padding: 16px; }
  .page .desktop-s023 > a { width: 100%; }
  .page .desktop-s148 { text-align: left; }
}

@media (max-width: 359px) {
  .page .blend-grid { grid-template-columns: minmax(0, 1fr); }
  .page .desktop-s057 { height: 180px; }
  .page .desktop-s058 { padding: 18px; }
  .page .desktop-s060 { font-size: 24px; }
  .page .desktop-s062 { flex-wrap: nowrap; }
  .shop-catalog-tools { flex-wrap: wrap; }
}

/* Carrinho e acompanhamento: telas pequenas, teclado e áreas seguras. */
@media (max-width: 1023px) {
  .shop-cart { width: min(640px, calc(100% - 24px)); max-height: calc(100dvh - 24px); }
  .shop-cart-form { grid-template-columns: minmax(0, 1fr); }
  .shop-cart-form.is-paying .shop-selection { position: static; }
  .shop-cart-header { position: sticky; top: 0; z-index: 2; align-items: center; padding: 18px 24px; background: #f3ecdd; }
  .shop-cart-header p:last-child { display: none; }
  .shop-cart h2 { font-size: 28px; }
  .shop-selection, .shop-checkout { padding: 24px; }
  .shop-checkout { border-left: 0; border-top: 1px solid #cfc3ac; }
  .shop-line { gap: 12px; }
  .shop-line-name { font-size: 20px; }
  .shop-quantity button { width: 44px; height: 44px; }
  .shop-quantity output { min-width: 30px; font-size: 16px; }
  .shop-remove { min-height: 44px; font-size: 13px; }
  .shop-field input { min-height: 48px; font-size: 16px; scroll-margin-block: 110px 24px; }
  .shop-field-help, .shop-optional, .shop-payment-note { font-size: 12px; }
  .shop-mapbox-result { padding: 14px; }
  .shop-pix-panel textarea { font-size: 16px; }
  .shop-pix-panel { padding: 16px; }
  .shop-payment-options { grid-template-columns: minmax(0, 1fr); }
  .shop-payment-option { min-height: 64px; padding: 14px; }
  .shop-payment-option small { font-size: 12px; }
  .shop-bag { right: max(16px, env(safe-area-inset-right)); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); }
  .shop-toast { right: max(16px, env(safe-area-inset-right)); bottom: calc(86px + env(safe-area-inset-bottom, 0px)); }
}
@media (max-width: 600px) {
  .shop-cart { width: 100%; height: 100dvh; max-height: 100dvh; margin: 0; border: 0; border-radius: 0; padding-bottom: env(safe-area-inset-bottom, 0px); }
  .shop-cart-header { padding: calc(12px + env(safe-area-inset-top, 0px)) max(20px, env(safe-area-inset-right)) 12px max(20px, env(safe-area-inset-left)); }
  .shop-eyebrow { margin-bottom: 4px; }
  .shop-selection, .shop-checkout { padding: 24px max(20px, env(safe-area-inset-right)) 24px max(20px, env(safe-area-inset-left)); }
  .shop-line { grid-template-columns: 54px minmax(0, 1fr); }
  .shop-line-image { width: 54px; height: 76px; }
  .shop-line-meta { font-size: 13px; }
  .shop-line-footer { gap: 12px 8px; }
  .shop-line-price { font-size: 15px; }
  .shop-mapbox-metrics { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .shop-mapbox-metrics > div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
  .shop-mapbox-metrics dt { font-size: 13px; }
  .shop-mapbox-metrics dd { font-size: 20px; margin: 0; }
  .shop-order-header { padding: calc(20px + env(safe-area-inset-top, 0px)) 20px 20px; }
  .shop-order-brand { font-size: 22px; gap: 12px; }
  .shop-order-main { width: calc(100% - 40px); margin: 32px auto calc(48px + env(safe-area-inset-bottom, 0px)); }
  .shop-order-panel { padding: 20px 16px; }
  .shop-order-items li { flex-wrap: wrap; gap: 6px 16px; }
  .shop-order-actions { align-items: stretch; gap: 16px; }
  .shop-order-actions > * { width: 100%; text-align: center; }
}
@media (max-width: 359px) {
  .shop-address-grid { grid-template-columns: minmax(0, 1fr); }
}
@keyframes feather-drift-mobile {
  0%, 100% { transform: translate(0, -1px) rotate(-8deg); }
  50% { transform: translate(2px, 2px) rotate(5deg); }
}
@media (prefers-reduced-motion: reduce) {
  .herbarium-menu .menu-feather, .herbarium-menu.is-docked .menu-feather { animation: none; }
}

@media (min-width: 700px) and (max-width: 1023px) {
  .page .hero-portrait img { object-position: 50% 25%; }
  .page .desktop-s045, .page .blend-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .page .home-split { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .page .home-photo, .home-kits .kit-photo { aspect-ratio: 4 / 5; }
  .care-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .care-card-featured { grid-column: 1 / -1; }
  .page .desktop-s112 { grid-template-columns: minmax(0, 1fr) minmax(0, .85fr); }
  .page .desktop-s117 { aspect-ratio: 4 / 5; }
  .page .desktop-s118 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .page .desktop-s118 > article { display: block; }
  .page .desktop-s119 { aspect-ratio: 4 / 3; }
  .desktop-s120 { margin-top: 14px; }
  .page .desktop-s121 { font-size: 22px; }
}
@media (max-width: 1023px) and (max-height: 540px) and (orientation: landscape) {
  .herbarium-menu .herbarium-panel, .herbarium-menu.is-docked .herbarium-panel { top: 12px; max-height: calc(100dvh - 24px); }
  .page .herbarium-index { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; }
  .herbarium-heading { padding-top: 0; }
  .herbarium-kicker { margin-bottom: 6px; }
  .herbarium-intro { margin-top: 6px; }
}
