/* Comfortable reading and touch controls on phones and small tablets. */
@media (max-width: 820px) {
  html { scroll-padding-top: 112px; -webkit-text-size-adjust: 100%; }
  body { font-size: 16px; line-height: 1.5; }
  .page-width, .header-inner { width: calc(100% - 32px); }
  .top-strip { min-height: 36px; height: auto; padding: 8px 12px; font-size: 12px; letter-spacing: 0; gap: 8px; text-align: center; }
  .top-strip .icon { width: 14px; height: 14px; }
  .header-inner { height: 88px; gap: 12px; }
  .brand-logo { width: 142px; height: 80px; }
  .desktop-nav { display: none; }
  .header-actions { gap: 6px; }
  .icon-button { width: 48px; height: 48px; }
  .icon-button .icon { width: 24px; height: 24px; }
  .favorites-top { display: none; }
  .bag-button { position: relative; min-width: 48px; min-height: 48px; padding: 11px; border-radius: 14px; }
  .bag-button > span:not(.cart-count) { display: none; }
  .bag-button > .icon { width: 25px; height: 25px; }
  .cart-count { position: absolute; right: -6px; top: -6px; min-width: 24px; height: 24px; font-size: 12px; border: 2px solid var(--cream); }
  .search-panel-inner { width: calc(100% - 32px); padding: 0 12px; gap: 9px; }
  .search-panel input { min-width: 0; min-height: 52px; font-size: 16px; }
  .search-panel .text-button { min-height: 48px; font-size: 14px; }
  .button { min-height: 52px; padding: 15px 20px; font-size: 16px; }
  .button .icon { width: 22px; height: 22px; }
  .hero.hero-photo { border-radius: 24px; aspect-ratio: 1.3; }
  .hero-photo .hero-art { height: 100%; }
  .hero-photo .hero-art > img { object-fit: contain; object-position: center 12%; }
  .hero-photo .hero-copy { padding: 18px; align-items: flex-end; justify-content: center; }
  .hero-photo .button { font-size: 16px; min-height: 54px; padding: 15px 22px; gap: 14px; }
  .benefits { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: center; padding: 24px 0 32px; }
  .benefits > span { width: auto; max-width: none; flex: 0 0 auto; font-size: 14px; gap: 10px; color: #516e64; }
  .benefits > span:first-child { max-width: none; }
  .benefits .icon { width: 21px; height: 21px; }
  .section-heading { gap: 12px; align-items: flex-start; flex-wrap: wrap; margin-bottom: 22px; }
  .section-kicker { font-size: 11px; letter-spacing: 1.3px; }
  .section-heading > div { flex: 1 1 100%; }
  .section-heading h2 { max-width: none; font-size: 30px; line-height: 1.2; }
  .all-link { font-size: 15px; min-height: 44px; padding: 10px 0; }
  .all-link .icon { width: 21px; height: 21px; }
  .category-grid { flex-wrap: nowrap; overflow-x: auto; padding: 2px 2px 12px; gap: 12px; scrollbar-width: thin; }
  .category-button { flex: 0 0 auto; min-width: 245px; min-height: 92px; padding: 15px; font-size: 16px; gap: 12px; }
  .category-button small { display: block; font-size: 12px; white-space: normal; }
  .category-icon { width: 44px; height: 48px; border-radius: 12px; }
  .category-icon .icon { width: 26px; height: 26px; }
  .catalog-toolbar { flex-wrap: wrap; gap: 12px; padding: 22px 0 18px; font-size: 14px; }
  .catalog-toolbar label { font-size: 13px; gap: 8px; }
  .catalog-toolbar select { min-height: 44px; max-width: 160px; padding: 8px; font-size: 16px; border: 1px solid var(--line); border-radius: 10px; background: white; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
  .product-card { border-radius: 22px; }
  .product-media { aspect-ratio: 1.15; }
  .product-body { padding: 20px; }
  .product-category { font-size: 11px; letter-spacing: .8px; margin-bottom: 9px; color: #677b6e; }
  .product-body h3 { min-height: 0; margin: 0 0 10px; font-size: 18px; line-height: 1.4; letter-spacing: -.2px; }
  .product-description { min-height: 0; font-size: 15px; line-height: 1.6; margin-bottom: 16px; color: #687d6e; }
  .product-price { font-size: 21px; margin: 15px 0; }
  .product-price small { font-size: 13px; color: #687d6e; }
  .add-button { min-height: 50px; padding: 13px 10px; font-size: 15px; gap: 9px; border-radius: 12px; }
  .add-button svg.icon { width: 21px !important; height: 21px !important; }
  .product-badge { top: 14px; left: 14px; font-size: 11px; padding: 7px 10px; }
  .favorite-button { top: 12px; right: 12px; width: 46px; height: 46px; }
  .favorite-button svg.icon { width: 23px !important; height: 23px !important; }
  .empty-results p { font-size: 16px; }
  .empty-results .button { font-size: 16px; }
  .how-interactive { margin-top: 48px; }
  .how-interactive .section-heading h2 { max-width: none; font-size: 29px; line-height: 1.25; }
  .how-intro { font-size: 16px; line-height: 1.6; margin-top: 14px; }
  .how-step-grid { grid-template-columns: 1fr; gap: 14px; }
  .how-step { display: block; min-height: 138px; padding: 20px 48px 20px 80px; border-radius: 19px; }
  .how-step-top { display: contents; }
  .how-step-number { position: absolute; top: 22px; left: 18px; width: 45px; height: 45px; font-size: 16px; }
  .how-step-top > .icon { display: none; }
  .how-step-indicator { position: absolute; top: calc(50% - 16px); right: 13px; margin: 0; width: 32px; height: 32px; }
  .how-step h3 { font-size: 18px; line-height: 1.35; margin-bottom: 7px; }
  .how-step > p { font-size: 14px; line-height: 1.6; margin-bottom: 9px; }
  .how-step-status { font-size: 13px; line-height: 1.5; }
  .how-panel { grid-template-columns: 1fr; min-height: 0; padding: 24px 20px; gap: 24px; margin-top: 18px; border-radius: 21px; }
  .how-panel-copy h3 { font-size: 27px; }
  .how-panel-description { max-width: none; font-size: 16px; line-height: 1.7; }
  .how-panel-copy .button { width: 100%; min-height: 52px; padding: 15px; font-size: 16px; }
  .how-panel-hint { font-size: 13px; line-height: 1.6; }
  .how-panel-preview { padding: 14px; }
  .how-mini-product { min-height: 88px; padding: 11px; gap: 12px; }
  .how-mini-product img { width: 64px; height: 64px; }
  .how-mini-info strong { font-size: 15px; }
  .how-mini-info small { font-size: 13px; }
  .how-mini-product > .icon { margin-right: 0; }
  .how-preview-heading > strong { font-size: 15px; }
  .how-preview-count { font-size: 13px; min-width: 30px; min-height: 30px; }
  .how-preview-items { max-height: 290px; }
  .how-preview-item { font-size: 14px; gap: 12px; flex-wrap: wrap; }
  .how-preview-item > strong { font-size: 14px; }
  .how-preview-total { font-size: 14px; flex-wrap: wrap; }
  .how-preview-total strong { font-size: 18px; }
  .how-preview-empty > strong { font-size: 17px; }
  .how-preview-empty p { font-size: 15px; }
  .how-message-text { font-size: 14px; line-height: 1.7; max-height: 300px; padding: 14px; }
  .how-message-footer { font-size: 12px; }
  .contact-line { align-items: flex-start; flex-direction: column; gap: 15px; padding-top: 24px; font-size: 15px; line-height: 1.7; }
  .contact-line a { font-size: 17px; min-height: 48px; }
  .how-section { padding-bottom: 36px; }
  .footer-inner { flex-wrap: wrap; gap: 16px; padding: 24px 0; }
  .footer-brand .brand-logo { width: 122px; height: 70px; }
  .footer-inner p { font-size: 14px; }
  .footer-inner > a:last-child { flex: 1 0 100%; margin-left: 0; font-size: 14px; min-height: 44px; display: flex; align-items: center; }
  .site-footer { padding-bottom: calc(92px + env(safe-area-inset-bottom)); }
  .mobile-nav { position: fixed; inset: auto 0 0; display: flex; justify-content: space-around; align-items: center; height: calc(78px + env(safe-area-inset-bottom)); padding: 8px 8px calc(8px + env(safe-area-inset-bottom)); background: #fffffff5; backdrop-filter: blur(12px); border-top: 1px solid #dfe8dd; z-index: 25; }
  .mobile-nav > a, .mobile-nav > button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-width: 64px; min-height: 58px; padding: 5px; font-size: 12px; line-height: 1.2; font-weight: 800; color: #576f61; }
  .mobile-nav .icon { width: 25px; height: 25px; }
  .mobile-nav .is-active { color: #008a81; }
  .mobile-bag-icon { position: relative; display: flex; }
  #mobile-cart-count { position: absolute; top: -8px; right: -11px; display: flex; align-items: center; justify-content: center; min-width: 21px; height: 21px; padding: 1px 3px; border: 2px solid white; border-radius: 50%; background: var(--teal); color: white; font-size: 11px; }
  .cart-dialog { width: 100%; max-width: 540px; height: 100dvh; max-height: 100dvh; padding: 24px 20px calc(28px + env(safe-area-inset-bottom)); border-radius: 0; overscroll-behavior: contain; }
  .dialog-heading { align-items: flex-start; margin-bottom: 24px; }
  .dialog-heading .section-kicker { font-size: 10px; }
  .dialog-heading h2 { font-size: 29px; }
  .cart-empty { padding: 35px 0; }
  .cart-empty h3 { font-size: 26px; }
  .cart-empty p { font-size: 16px; }
  .cart-item { position: relative; gap: 14px; padding: 0 0 22px; }
  .cart-thumb { width: 88px; height: 96px; }
  .cart-item-info { padding-right: 0; }
  .cart-item-info h3 { font-size: 17px; line-height: 1.4; padding-right: 32px; }
  .cart-item-info p { font-size: 15px; }
  .cart-item > [data-action=remove] { position: absolute; right: -5px; top: -7px; width: 44px; height: 44px; padding: 10px; }
  .remove-item .icon { width: 21px; height: 21px; }
  .quantity-controls { gap: 0; margin-top: 12px; border-radius: 10px; }
  .quantity-controls button { min-width: 44px; height: 44px; font-size: 23px; }
  .quantity-controls span, .quantity-controls output { min-width: 32px; font-size: 16px; }
  .quantity-controls .icon { width: 17px; height: 17px; }
  .clear-cart { min-height: 44px; font-size: 14px; }
  .order-fields { gap: 10px; }
  .order-fields label { font-size: 16px; }
  .order-fields label span { font-size: 13px; }
  .order-fields input, .order-fields textarea { min-height: 52px; padding: 14px; font-size: 16px; line-height: 1.5; }
  .cart-summary > p:first-child { font-size: 15px; }
  .total-line { font-size: 17px; align-items: baseline; flex-wrap: wrap; }
  .total-line strong { font-size: 23px; }
  .cart-small { font-size: 14px; line-height: 1.6; }
  .button-whatsapp { min-height: 56px; padding: 16px 10px; font-size: 16px; gap: 8px; }
  .checkout-note { font-size: 13px; line-height: 1.6; }
  .product-dialog { width: 100%; max-width: calc(100% - 24px); max-height: calc(100dvh - 24px); overflow: auto; border-radius: 22px; }
  .product-detail-layout, .product-detail-content { grid-template-columns: 1fr; }
  .detail-image { border-radius: 22px 22px 0 0; }
  .product-detail-layout .product-detail-image { aspect-ratio: 1.25; height: auto; min-height: 0; max-height: 350px; border-radius: 22px 22px 0 0; }
  .detail-close { top: 10px; right: 10px; background: #fffffff5; }
  .product-detail-body { padding: 24px; }
  .product-detail-body .eyebrow { font-size: 12px; padding: 9px 12px; }
  .product-detail-body h2 { font-size: 28px; }
  .product-detail-body > p { font-size: 16px; line-height: 1.7; }
  .detail-copy .product-price { font-size: 23px; }
  .product-detail-body .add-button { font-size: 16px; min-height: 52px; }
  .product-detail-body .detail-note { font-size: 13px; }
  .toast { bottom: calc(94px + env(safe-area-inset-bottom)); font-size: 15px; padding: 15px 20px; width: max-content; }
}

@media (max-width: 480px) {
  .hero.hero-photo { aspect-ratio: 1.08; }
  .benefits { flex-direction: column; align-items: flex-start; gap: 12px; padding-left: 4px; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .product-card { display: flex; flex-direction: column; border-radius: 17px; }
  .product-media { aspect-ratio: 1; flex-shrink: 0; }
  .product-body { display: flex; flex-direction: column; flex: 1; padding: 12px; }
  .product-body h3 { font-size: 16px; overflow-wrap: anywhere; }
  .product-description { font-size: 13px; line-height: 1.5; margin-bottom: 12px; }
  .product-price { font-size: 17px; margin: 12px 0; }
  .product-footer { margin-top: auto; }
  .product-card .add-button { min-height: 48px; margin-top: auto; padding: 11px 5px; font-size: 14px; gap: 5px; }
  .product-card .add-button svg.icon { width: 18px !important; height: 18px !important; }
  .product-badge { top: auto; bottom: 8px; left: 8px; padding: 5px 7px; }
  .favorite-button { top: 8px; right: 8px; width: 44px; height: 44px; }
  .product-skeleton { height: 360px; }
}

@media (max-width: 360px) {
  .brand-logo { width: 127px; height: 74px; }
  .header-actions { gap: 3px; }
  .hero-photo .hero-copy { padding: 14px; }
  .hero-photo .button { width: 100%; padding: 15px 12px; }
  .how-step { padding-left: 72px; padding-right: 40px; }
  .how-step-number { left: 14px; width: 42px; height: 42px; }
  .how-step h3 { font-size: 17px; }
  .how-panel { padding: 22px 15px; }
  .how-panel-preview { padding: 10px; }
  .how-mini-product { gap: 10px; }
  .how-mini-product img { width: 50px; height: 55px; }
  .how-mini-product > .icon { display: none; }
  .cart-thumb { width: 70px; height: 80px; }
  .cart-item { gap: 10px; }
  .button-whatsapp { font-size: 15px; }
}

@media (hover: none) and (max-width: 820px) {
  .product-card:hover, .category-button:hover, .how-step:hover, .how-mini-product:hover, .button-dark:hover { transform: none; }
}
