/* Ajustes de compatibilidade mobile v17.1 — não altera regras de negócio. */
@media (max-width: 760px) {
  html,
  body {
    max-width: 100%;
    width: 100%;
    overflow-x: clip;
    overscroll-behavior-x: none;
  }

  #app,
  .store-main,
  .store-home,
  .site-footer,
  .interior-page,
  .about-page,
  .shell,
  section,
  article,
  .box,
  .order-box,
  .card,
  .pan,
  .ov {
    min-width: 0;
    max-width: 100%;
  }

  .shell { width: calc(100% - 28px); }
  .announcement-inner { width: calc(100% - 20px); min-width: 0; text-align: center; }
  .announcement-inner > span { min-width: 0; }

  /* Cabeçalho em três zonas: menu, marca e ações. Evita que o logo esmague os ícones. */
  .header-row {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr) auto;
    align-items: center;
    gap: 7px;
    width: calc(100% - 20px);
    min-height: 68px;
    max-width: 100%;
  }
  .mobile-menu { width: 36px; height: 36px; flex: 0 0 36px; }
  .brand { min-width: 0; max-width: 100%; overflow: hidden; gap: 6px; }
  .brand-logo { width: 34px; height: 34px; flex: 0 0 34px; border-radius: 10px; }
  .brand-wordmark { min-width: 0; overflow: hidden; }
  .brand-wordmark b,
  .brand-wordmark strong,
  .brand-wordmark small { white-space: nowrap; }
  .brand-wordmark b { font-size: 8px; }
  .brand-wordmark strong { font-size: clamp(13px, 4vw, 16px); }
  .brand-wordmark small { max-width: 100%; font-size: 5.5px; letter-spacing: .08em; overflow: hidden; text-overflow: clip; }
  .head-actions { min-width: 0; gap: 5px; margin-left: 0; }
  .account-action { flex: 0 0 auto; min-width: 0; }
  .account-avatar-wrap,
  .account-icon { width: 32px; height: 32px; }
  .head-cart { width: 36px; height: 36px; flex: 0 0 36px; }
  .head-cart .ic { width: 17px; height: 17px; }

  /* Evita zoom automático do Safari ao focar entradas em celulares. */
  .search input,
  .fld input,
  .fld textarea,
  .fld select,
  .sortsel,
  input[type="search"],
  input[type="email"],
  input[type="password"],
  input[type="tel"],
  input[type="text"],
  input[type="number"],
  input[type="file"],
  textarea,
  select { font-size: 16px; }

  /* Não deixar os filtros escondidos numa faixa que exige deslizar para o lado. */
  .catalog-toolbar { min-width: 0; width: 100%; }
  .catalog-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: center;
    gap: 6px;
    min-width: 0;
    width: 100%;
    overflow: visible;
    padding: 0;
  }
  .catalog-filters .chip {
    flex: 0 1 auto;
    min-width: 0;
    max-width: 100%;
    min-height: 34px;
    padding: 6px 10px;
    line-height: 1.25;
    white-space: normal;
    overflow-wrap: anywhere;
    text-align: center;
  }
  .sort-wrap { min-width: 0; width: 100%; gap: 9px; white-space: normal; }
  .sortsel { min-width: 0; width: 100%; max-width: none; }
  .catalog-summary,
  .catalog-summary > span,
  .catalog-summary-note { min-width: 0; max-width: 100%; overflow-wrap: anywhere; }

  /* Títulos, textos e grade nunca podem empurrar o viewport. */
  .hero-copy-new,
  .hero-copy-new > *,
  .hero-visual,
  .section-head,
  .section-head > div,
  .catalog-heading > div,
  .editorial-band > *,
  .how-section > *,
  .faq-section > *,
  .about-preview > *,
  .about-hero > *,
  .about-grid > *,
  .footer-main > *,
  .footer-bottom > *,
  .product-detail-info,
  .review-head > div { min-width: 0; max-width: 100%; }
  .hero-copy-new h1 { max-width: 100%; overflow-wrap: normal; }
  .hero-copy-new p,
  .section-head p,
  .editorial-content p,
  .how-intro p,
  .faq-intro p,
  .about-preview p,
  .about-story-copy p { overflow-wrap: anywhere; }
  .hero-actions { max-width: 100%; }
  .hero-actions .btn { min-width: 0; max-width: 100%; white-space: normal; line-height: 1.25; }
  .hero-visual { padding-left: 4px; padding-right: 5px; }
  .hero-floating-card { left: 0; max-width: calc(100% - 8px); min-width: 0; }
  .hero-orbit-two { left: 0; }
  .hero-edition { max-width: calc(100% - 8px); overflow-wrap: anywhere; text-align: right; }
  .cat-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cat-card,
  .cat-card-image,
  .cat-card-copy { min-width: 0; max-width: 100%; }
  .cat-card-copy { padding-right: 33px; }
  .cat-card-copy b,
  .cat-card-copy small { overflow-wrap: anywhere; }
  .editorial-band { min-width: 0; padding-inline: clamp(14px, 5vw, 23px); }
  .editorial-visual { width: 100%; max-width: 100%; min-width: 0; height: clamp(170px, 55vw, 220px); margin: 0; }
  .editorial-stamp { right: 7px; bottom: 7px; max-width: 48%; min-width: 0; padding: 9px; overflow-wrap: anywhere; }
  .products-section { min-width: 0; }
  .catalog-heading h2,
  .catalog-heading p { max-width: 100%; overflow-wrap: anywhere; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; min-width: 0; gap: clamp(8px, 2.8vw, 11px); }
  .card { min-width: 0; width: 100%; max-width: 100%; }
  .card .im,
  .card .product-photo-btn,
  .card .b { min-width: 0; max-width: 100%; }
  .card .b { padding: 10px clamp(7px, 2.5vw, 11px) 12px; }
  .card h3 { min-width: 0; overflow-wrap: anywhere; }
  .card .price { min-width: 0; display: flex; flex-wrap: wrap; gap: 2px 4px; font-size: clamp(15px, 4.8vw, 19px); line-height: 1.15; overflow-wrap: anywhere; }
  .card .price small { font-size: 8px; white-space: nowrap; }
  .card .btn { min-width: 0; white-space: normal; overflow-wrap: anywhere; line-height: 1.25; }
  .card .btn .ic { flex: 0 0 auto; }
  .swatches { min-width: 0; flex-wrap: wrap; }
  .catalog-bottom-note { min-width: 0; }
  .catalog-bottom-note p { min-width: 0; overflow-wrap: anywhere; }

  .how-steps li { grid-template-columns: 34px minmax(0, 1fr) 34px; gap: 8px; }
  .how-steps li > div { min-width: 0; }
  .how-steps h3,
  .how-steps p { overflow-wrap: anywhere; }
  .faq-list summary { overflow-wrap: anywhere; }
  .about-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .about-stats > div { min-width: 0; overflow-wrap: anywhere; }
  .about-stats b { overflow-wrap: anywhere; }
  .footer-main { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 14px; }
  .footer-main > * { min-width: 0; overflow-wrap: anywhere; }
  .footer-links button { max-width: 100%; overflow-wrap: anywhere; }
  .footer-bottom { min-width: 0; }
  .footer-bottom > * { max-width: 100%; overflow-wrap: anywhere; }

  /* Barra inferior, carrinho flutuante e acessibilidade de áreas seguras. */
  .tabbar {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    padding-left: max(5px, env(safe-area-inset-left));
    padding-right: max(5px, env(safe-area-inset-right));
    padding-bottom: calc(6px + env(safe-area-inset-bottom));
    width: 100%;
    max-width: 100%;
  }
  .tabbar button { min-width: 0; max-width: 100%; padding-inline: 1px; font-size: clamp(7px, 2.1vw, 8px); line-height: 1.2; white-space: normal; text-align: center; }
  .tabbar button span { max-width: 100%; overflow-wrap: anywhere; }
  .tabbar button .ic { flex: 0 0 auto; }
  .tabbar .badge { right: calc(50% - 18px); }
  .cartbar { left: max(8px, env(safe-area-inset-left)); right: max(8px, env(safe-area-inset-right)); min-width: 0; max-width: none; gap: 8px; padding-inline: 9px; }
  .cartbar .cb-ic { width: 34px; height: 34px; flex: 0 0 34px; }
  .cb-txt { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
  .cb-txt b,
  .cb-txt small { overflow-wrap: anywhere; }
  .cb-go { flex: 0 0 auto; min-width: 0; max-width: 42%; white-space: normal; justify-content: flex-end; gap: 4px; text-align: right; line-height: 1.2; }
  .cb-go .ic { flex: 0 0 13px; }
  .wa { right: max(10px, env(safe-area-inset-right)); }

  /* Todos os painéis usam a largura útil e rolam por dentro, nunca a página. */
  #modal { width: 100%; max-width: 100%; }
  .ov {
    width: 100%; max-width: 100%; min-width: 0;
    padding-top: max(8px, env(safe-area-inset-top));
    padding-right: max(8px, env(safe-area-inset-right));
    padding-bottom: max(8px, env(safe-area-inset-bottom));
    padding-left: max(8px, env(safe-area-inset-left));
    overflow-x: clip;
  }
  .pan {
    width: 100%; min-width: 0; max-width: 100%;
    max-height: calc(100dvh - 16px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    padding: clamp(14px, 4vw, 21px);
    overflow-x: hidden; overflow-y: auto;
    overflow-wrap: anywhere;
  }
  .pan h2 { font-size: clamp(20px, 6vw, 23px); overflow-wrap: anywhere; }
  .cart-head { min-width: 0; gap: 10px; }
  .cart-head h2 { min-width: 0; }
  .cart-close { flex: 0 0 36px; }
  .cart-pan > .row { gap: 8px; align-items: center; }
  .cart-pan > .row > div:first-child { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
  .cart-pan > .row > .q { flex: 0 0 auto; gap: 5px; }
  .q button { flex: 0 0 27px; }
  .cart-choice-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cart-choice-grid .btn { min-width: 0; white-space: normal; line-height: 1.25; overflow-wrap: anywhere; }
  .cart-total { gap: 12px; }
  .cart-total b { font-size: clamp(23px, 7vw, 28px); }
  .cart-secure { align-items: flex-start; text-align: center; overflow-wrap: anywhere; }
  .co-steps { min-width: 0; gap: 5px; }
  .co-steps span { min-width: 0; padding: 8px 3px; font-size: clamp(7px, 2.3vw, 9px); line-height: 1.25; overflow-wrap: anywhere; }
  .product-tabs { flex-wrap: wrap; gap: 8px 16px; }
  .product-tab { min-width: 0; max-width: 100%; font-size: 11px; }
  .review-head { min-width: 0; gap: 10px; }
  .review-head > div { flex: 1 1 auto; }
  .review-user { min-width: 0; flex-wrap: wrap; }
  .review-user time { margin-left: auto; }
  .code { overflow-wrap: anywhere; word-break: break-word; }
  .qr { max-width: 100%; }
  .product-detail-image { min-width: 0; width: 100%; }
  .product-detail-info h2 { font-size: clamp(20px, 6vw, 23px); }
  .color-variant-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .color-variant { min-width: 0; gap: 6px; overflow-wrap: anywhere; }
  .color-variant img { flex: 0 0 34px; width: 34px; height: 34px; }
  .profile-email,
  .success-msg,
  .success-order { overflow-wrap: anywhere; }
  .orders-page-head { min-width: 0; }
  .orders-page-head h2 { font-size: clamp(24px, 7.5vw, 31px) !important; overflow-wrap: anywhere; }
  .orders-page-head p { overflow-wrap: anywhere; }
  .order-item,
  .refund-item { min-width: 0; flex-wrap: wrap; overflow-wrap: anywhere; }
  .order-box .row { min-width: 0; }
  .status,
  .st,
  .refund-pill { max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
  .tabs { min-width: 0; flex-wrap: wrap; }
  .tabs .chip { max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats > div { min-width: 0; overflow-wrap: anywhere; }
  .adm-tools,
  .refund-card-head,
  .admin-review-top { min-width: 0; flex-wrap: wrap; }
  .adm-search { min-width: 0; width: 100%; }
  .prod-row,
  .prod-actions { min-width: 0; max-width: 100%; flex-wrap: wrap; }
  .admin-new > *,
  .admin-form,
  .refund-card,
  .admin-review-card { min-width: 0; max-width: 100%; overflow-wrap: anywhere; }
  .orders-inline-search,
  .catalog-mobile-search { min-width: 0; max-width: 100%; }
}

@media (max-width: 380px) {
  .shell { width: calc(100% - 24px); }
  .header-row { grid-template-columns: 32px minmax(0, 1fr) auto; width: calc(100% - 16px); gap: 4px; }
  .mobile-menu { width: 32px; height: 32px; flex-basis: 32px; }
  .brand { gap: 4px; }
  .brand-logo { width: 30px; height: 30px; flex-basis: 30px; }
  .brand-wordmark b { font-size: 7px; }
  .brand-wordmark strong { font-size: 13px; }
  .brand-wordmark small { font-size: 5px; letter-spacing: .045em; }
  .head-actions { gap: 3px; }
  .account-avatar-wrap,
  .account-icon { width: 29px; height: 29px; }
  .head-cart { width: 32px; height: 32px; flex-basis: 32px; }
  .hero-copy-new h1 { font-size: clamp(34px, 11vw, 41px); letter-spacing: -.065em; }
  .hero-actions .btn { flex: 1 1 125px; padding-inline: 8px; }
  .trust-strip { padding: 7px; }
  .trust-strip > div { gap: 6px; padding: 10px 5px; }
  .trust-strip b { font-size: 8px; }
  .trust-strip span:not(.trust-icon) { font-size: 7px; overflow-wrap: anywhere; }
  .trust-icon { width: 27px; height: 27px; flex: 0 0 27px; }
  .cat-card-copy { padding: 11px 29px 11px 10px; }
  .cat-card-copy b { font-size: 11px; }
  .cat-card-copy small { font-size: 8px; }
  .cat-card-copy i { right: 6px; width: 22px; height: 22px; }
  .catalog-filters .chip { padding: 6px 8px; font-size: 9px; }
  .grid { gap: 8px; }
  .card .b { padding-inline: 8px; }
  .card h3 { font-size: 10px; }
  .card .price { font-size: clamp(15px, 5vw, 17px); }
  .cartbar { gap: 6px; padding-inline: 7px; }
  .cartbar .cb-ic { width: 30px; height: 30px; flex-basis: 30px; }
  .cb-txt b { font-size: 9px; }
  .cb-txt small { font-size: 10px; }
  .cb-go { font-size: 8px; max-width: 39%; }
  .cart-choice-grid { grid-template-columns: 1fr; }
  .cart-choice-grid .btn { min-height: 39px; }
  .about-hero-copy h1 { font-size: clamp(32px, 10.5vw, 40px); }
  .about-stats { gap: 4px; }
  .about-stats > div { padding-left: 5px; }
  .about-stats b { font-size: 17px; }
  .about-stats span { font-size: 7px; }
  .footer-main { gap: 22px 10px; }
  .tabbar button { font-size: 7px; }
  .cart-pan .row { gap: 6px; font-size: 9px; }
  .cart-pan .th { width: 36px; height: 36px; margin-right: 2px; }
  .q { gap: 4px; font-size: 10px; }
  .q button { width: 24px; height: 24px; flex-basis: 24px; }
}

@media (max-width: 319px) {
  body { min-width: 0; }
  .shell { width: calc(100% - 20px); }
  .announcement-inner { gap: 5px; font-size: 7px; }
  .header-row { width: calc(100% - 12px); }
  .brand-wordmark small { display: none; }
  .grid { grid-template-columns: minmax(0, 1fr); }
  .card .im { aspect-ratio: 1.25 / 1; }
  .trust-strip { grid-template-columns: minmax(0, 1fr); }
  .trust-strip > div { border-right: 0 !important; border-bottom: 1px solid #ecece5; }
  .trust-strip > div:last-child { border-bottom: 0; }
  .cat-cards { grid-template-columns: minmax(0, 1fr); }
  .cart-choice-grid { grid-template-columns: minmax(0, 1fr); }
  .about-stats { grid-template-columns: minmax(0, 1fr); }
  .footer-main { grid-template-columns: minmax(0, 1fr); }
}

/* Telefones em paisagem têm largura maior, mas continuam precisando da navegação mobile. */
@media (max-width: 900px) and (max-height: 500px) and (orientation: landscape) {
  .header-row { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; width: calc(100% - 24px); gap: 8px; min-height: 60px; }
  .mobile-menu { display: inline-grid; width: 36px; height: 36px; }
  .desktop-primary,
  .header-search { display: none; }
  .brand { min-width: 0; gap: 6px; }
  .brand-logo { width: 33px; height: 33px; flex-basis: 33px; }
  .brand-wordmark b { font-size: 8px; }
  .brand-wordmark strong { font-size: 15px; }
  .brand-wordmark small { font-size: 5px; }
  .head-actions { gap: 5px; margin-left: 0; }
  .account-label { display: none; }
  .account-avatar-wrap,
  .account-icon { width: 30px; height: 30px; }
  .head-cart { width: 34px; height: 34px; flex-basis: 34px; }
  .site-header { z-index: 50; }
  .nav-main { position: fixed; z-index: 1102; top: 0; right: 0; bottom: 0; width: min(390px, 91vw); max-width: 100vw; overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; padding: 14px 18px calc(12px + env(safe-area-inset-bottom)); background: #141611; color: #f5f7ef; box-shadow: -25px 0 70px rgba(0,0,0,.24); transform: translateX(105%); visibility: hidden; transition: transform .26s var(--motion), visibility .26s; }
  body.menu-open .nav-main { visibility: visible; transform: translateX(0); }
  .menu-bd { display: block; position: fixed; z-index: 1101; inset: 0; background: rgba(8,9,7,.57); opacity: 0; visibility: hidden; }
  body.menu-open .menu-bd { opacity: 1; visibility: visible; }
  .mobile-nav-title strong { font-size: 21px; }
  .mobile-menu-search { margin: 10px 0 12px; padding: 12px; }
  .mobile-menu-bottom { padding-top: 14px; }
  .tabbar { position: fixed; z-index: 70; inset: auto 0 0; padding: 4px 8px calc(4px + env(safe-area-inset-bottom)); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); min-height: 48px; border-top: 1px solid #e3e4dc; background: rgba(255,255,255,.96); backdrop-filter: blur(14px); }
  .tabbar button { min-width: 0; gap: 2px; font-size: 7px; }
  .tabbar button .ic { width: 15px; height: 15px; }
  .wa { width: 36px; height: 36px; right: 10px; bottom: calc(55px + env(safe-area-inset-bottom)); }
  .cartbar { bottom: calc(55px + env(safe-area-inset-bottom)); min-height: 48px; }
  .cartbar .cb-ic { width: 30px; height: 30px; }
  .hero-new { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 0; gap: 22px; padding-top: 20px; padding-bottom: 28px; }
  .hero-copy-new { padding: 10px 0; }
  .hero-copy-new h1 { font-size: clamp(31px, 5.5vw, 44px); margin: 12px 0; }
  .hero-copy-new p { font-size: 11px; }
  .hero-image-frame { height: 230px; }
  .hero-floating-card { left: 0; min-width: 0; max-width: calc(100% - 8px); padding: 8px; }
  .trust-strip { margin-bottom: 46px; }
  .quick-cats { margin-bottom: 48px; }
  .editorial-band { margin-bottom: 50px; }
  .products-section { margin-bottom: 48px; }
  .how-section { margin-bottom: 48px; }
  .faq-section { margin-bottom: 48px; }
}

@media (max-width: 900px) and (max-height: 500px) and (orientation: landscape) {
  .mobile-nav-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding-bottom: 13px; border-bottom: 1px solid #35382f; }
  .mobile-nav-title { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
  .mobile-nav-title span { color: var(--lime); font-size: 8px; letter-spacing: .14em; font-weight: 900; }
  .mobile-nav-close { flex: 0 0 36px; color: white; background: #24271f; border-color: #3b3f34; }
  .mobile-menu-search p { color: #a9ae9e; font-size: 10px; margin: 0 0 8px; }
  .menu-browse-btn { display: flex; justify-content: space-between; align-items: center; width: 100%; min-height: 38px; padding: 0 11px; border: 0; border-radius: 9px; background: var(--lime); color: var(--ink); font-size: 10px; font-weight: 900; }
  .menu-browse-btn .ic { width: 14px; height: 14px; }
  .mobile-nav-label { color: #7f8574; margin: 0 0 5px; font-size: 8px; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
  .main-nav { display: flex; flex-direction: column; gap: 3px; }
  .nav-item { display: flex; align-items: center; gap: 10px; min-height: 39px; padding: 0 9px; background: transparent; color: #d6d9ce; border: 1px solid transparent; border-radius: 9px; text-align: left; cursor: pointer; }
  .nav-item:hover, .nav-item.active { color: white; background: #25291f; border-color: #383d2e; }
  .nav-item.active .nav-item-icon { color: var(--lime); }
  .nav-item-icon { width: 26px; height: 26px; flex: 0 0 26px; display: grid; place-items: center; color: #939987; }
  .nav-item-icon .ic { width: 16px; height: 16px; }
  .nav-item-text { flex: 1 1 auto; min-width: 0; font-size: 11px; font-weight: 700; }
  .nav-item-arrow { color: #6f7762; flex: 0 0 auto; }
  .nav-item-arrow .ic { width: 14px; height: 14px; }
  .mobile-menu-bottom { margin-top: auto; padding-top: 12px; }
  .menu-help-copy { display: flex; flex-direction: column; gap: 4px; margin-bottom: 8px; }
  .menu-help-copy b { font-size: 11px; }
  .menu-help-copy span { color: #959b89; font-size: 9px; }
  .menu-whatsapp { display: flex; justify-content: center; align-items: center; gap: 8px; min-height: 37px; background: #1e9c62; color: white; text-decoration: none; border-radius: 9px; font-size: 11px; font-weight: 800; }
  .menu-whatsapp .ic { width: 15px; height: 15px; }
  .mobile-menu-social { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; align-items: center; margin-top: 10px; color: #777d6d; font-size: 8px; }
  .mobile-menu-social a { color: #c7ccb9; text-decoration: none; }
  .tabbar button { display: flex; flex-direction: column; justify-content: center; align-items: center; }
  .cartbar { display: flex; position: fixed; z-index: 65; left: 13px; right: 13px; bottom: calc(55px + env(safe-area-inset-bottom)); min-height: 48px; align-items: center; gap: 9px; padding: 6px 10px; border: 1px solid rgba(255,255,255,.2); border-radius: 14px; background: var(--ink); color: white; box-shadow: 0 12px 34px rgba(0,0,0,.25); opacity: 0; visibility: hidden; transform: translateY(14px); transition: opacity .22s ease, transform .22s var(--motion), visibility .22s; cursor: pointer; text-align: left; }
  .cartbar.on { opacity: 1; visibility: visible; transform: translateY(0); }
  .cartbar .cb-ic { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 10px; background: var(--lime); color: var(--ink); flex: 0 0 auto; }
  .cartbar .cb-ic .ic { width: 16px; height: 16px; }
  .cb-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1 1 auto; }
  .cb-txt b { font-size: 9px; }
  .cb-txt small { font-size: 10px; font-weight: 800; color: #d7dec7; }
  .cb-go { display: inline-flex; align-items: center; gap: 4px; margin-left: auto; color: var(--lime); font-size: 9px; font-weight: 900; white-space: normal; }
  .cb-go .ic { width: 13px; height: 13px; }
  .cartbar.dismissed { opacity: 0 !important; visibility: hidden !important; pointer-events: none; }
  .cartbar.swiped-left { transform: translateX(-125%) rotate(-3deg) !important; }
  .cartbar.swiped-right { transform: translateX(125%) rotate(3deg) !important; }
  .search input, .fld input, .fld textarea, .fld select, .sortsel, input[type="search"], input[type="email"], input[type="password"], input[type="tel"], input[type="text"], input[type="number"] { font-size: 16px; }
}

@media (max-width: 900px) and (max-height: 500px) and (orientation: landscape) {
  html,
  body { width: 100%; max-width: 100%; overflow-x: clip; overscroll-behavior-x: none; }
  #app,
  .store-main,
  .site-footer { min-width: 0; max-width: 100%; }
}

/* Camada final de acabamento mobile v17.2: leitura, espaço e controles. */
.prod-row-info { display: grid; grid-template-columns: 46px minmax(0,1fr); align-items: center; gap: 4px 11px; flex: 1 1 auto; min-width: 0; }
.prod-row-info > .th { grid-column: 1; grid-row: 1 / span 2; margin: 0; }
.prod-row-copy { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.prod-row-copy b, .prod-row-copy .mut { min-width: 0; overflow-wrap: anywhere; }
.prod-row-copy b { line-height: 1.35; }
.prod-row-copy .mut { font-size: 10px; line-height: 1.45; }
.prod-actions .btn { min-height: 36px; }

@media (max-width: 760px) {
  html, body { overflow-x: clip; }
  body { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
  .shell { width: calc(100% - 28px); }
  .announcement-inner { font-size: 9px; gap: 6px; }
  .hero-copy-new p { font-size: 14px; line-height: 1.65; }
  .hero-actions .btn { min-height: 44px; font-size: 12px; }
  .hero-notes { font-size: 10px; line-height: 1.4; }
  .trust-strip b { font-size: 11px; line-height: 1.35; }
  .trust-strip span:not(.trust-icon) { font-size: 10px; line-height: 1.45; }
  .section-head p, .editorial-content p, .how-intro p, .faq-intro p, .about-preview p { font-size: 13px; line-height: 1.65; }
  .cat-card-copy b { font-size: 12px; line-height: 1.35; }
  .cat-card-copy small { font-size: 10px; line-height: 1.45; }
  .catalog-summary { font-size: 11px; line-height: 1.5; }
  .catalog-summary-note { font-size: 10px; }
  .catalog-filters .chip { min-height: 36px; padding-inline: 10px; font-size: 10px; white-space: nowrap; overflow-wrap: normal; }
  .sort-wrap { font-size: 11px; }
  .sortsel { min-height: 40px; font-size: 16px; }
  .grid { gap: clamp(8px, 2.6vw, 12px); }
  .card .b { padding: 12px clamp(8px, 2.8vw, 12px) 13px; }
  .card .mut { font-size: 10px; line-height: 1.4; }
  .card h3 { min-height: 3.55em; font-size: 12px; line-height: 1.4; margin: 6px 0 8px; letter-spacing: -.025em; }
  .card .price { font-size: clamp(17px, 5vw, 20px); line-height: 1.2; gap: 4px; }
  .card .price small { font-size: 9px; }
  .card .b > .mut { font-size: 10px; margin-bottom: 7px; }
  .card .btn { min-height: 40px; font-size: 11px; padding: 7px 6px; gap: 5px; margin-top: 8px; }
  .card .btn .ic { width: 14px; height: 14px; }
  .swatches em { font-size: 9px; }
  .catalog-bottom-note p { font-size: 10px; line-height: 1.5; }
  .how-steps h3 { font-size: 14px; }
  .how-steps p, .faq-list details p { font-size: 12px; line-height: 1.6; }
  .faq-list summary { font-size: 12px; line-height: 1.5; }
  .about-hero-copy > p:not(.about-overline), .about-story-copy p, .about-points p, .about-values p { font-size: 13px; line-height: 1.65; }
  .about-stats span { font-size: 10px; }
  .footer-brand-col p { font-size: 12px; line-height: 1.65; }
  .footer-main h4 { font-size: 11px; }
  .footer-links button, .footer-assurance p { font-size: 11px; line-height: 1.5; }
  .footer-bottom { font-size: 10px; line-height: 1.5; }
  .tabbar { min-height: 66px; padding-top: 7px; padding-bottom: calc(7px + env(safe-area-inset-bottom)); }
  .tabbar button { font-size: 10px; line-height: 1.25; gap: 4px; min-height: 48px; }
  .tabbar button .ic { width: 19px; height: 19px; }
  .tabbar .badge { font-size: 9px; }
  .cartbar { bottom: calc(73px + env(safe-area-inset-bottom)); min-height: 57px; }
  .cb-txt b { font-size: 11px; }
  .cb-txt small { font-size: 11px; }
  .cb-go { font-size: 10px; max-width: 40%; }
  .wa { bottom: calc(82px + env(safe-area-inset-bottom)); }
  body.cartbar-visible .wa { bottom: calc(142px + env(safe-area-inset-bottom)); }
  .site-footer { padding-bottom: calc(88px + env(safe-area-inset-bottom)); }
  body.cartbar-visible .site-footer { padding-bottom: calc(158px + env(safe-area-inset-bottom)); }
  .toast { bottom: calc(145px + env(safe-area-inset-bottom)); max-width: min(calc(100vw - 24px), 440px); width: max-content; font-size: 12px; }
  body.cartbar-visible #toast .toast:not(.toast-inline) { bottom: calc(202px + env(safe-area-inset-bottom)); }
  .pan { width: 100%; min-width: 0; max-width: 100%; padding: clamp(16px, 4.5vw, 22px); }
  .pan h2 { font-size: clamp(21px, 6vw, 24px); }
  .fld label { font-size: 12px; }
  .fld input, .fld textarea, .fld select { min-height: 42px; }
  .btn { min-height: 42px; }
  .product-detail-info .btn { min-height: 46px; }
  .product-tab { min-height: 38px; padding: 8px 10px; font-size: 12px; }
  .cart-pan .row { display: flex; align-items: flex-start; }
  .cart-pan .row > div:first-child { line-height: 1.5; overflow-wrap: anywhere; }
  .cart-choice-grid .btn { min-height: 42px; font-size: 11px; }
  .co-steps span { font-size: 9px; }
  .orders-page-head p, .order-box p, .order-box .mut { font-size: 12px; line-height: 1.55; }
  .tabs { gap: 7px; padding: 8px; }
  .tabs .chip { min-height: 36px; font-size: 11px; padding-inline: 11px; }
  .adm-title, .orders-page-head h2 { overflow-wrap: anywhere; }
  .prod-row { align-items: stretch; gap: 12px; }
  .prod-row-info { width: 100%; grid-template-columns: 46px minmax(0,1fr); }
  .prod-row-copy b { font-size: 12px; }
  .prod-row-copy .mut { font-size: 11px; }
  .prod-actions { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); width: 100%; gap: 6px; }
  .prod-actions .btn { width: 100%; min-width: 0; padding-inline: 4px; font-size: 10px; overflow-wrap: anywhere; }
  .stats > div { font-size: 11px; line-height: 1.4; }
  .stats > div b { font-size: 20px; }
  .refund-card, .admin-review-card { padding: 13px; }
}

@media (max-width: 380px) {
  .shell { width: calc(100% - 24px); }
  .brand-wordmark small { display: none; }
  .brand-wordmark strong { font-size: 14px; }
  .brand-wordmark b { font-size: 8px; }
  .header-row { grid-template-columns: 32px minmax(0,1fr) auto; gap: 4px; }
  .mobile-menu { width: 32px; height: 32px; flex-basis: 32px; }
  .head-actions { gap: 3px; }
  .card h3 { font-size: 12px; }
  .card .price { font-size: 17px; }
  .card .btn { font-size: 10px; }
  .tabbar button { font-size: 9px; }
  .cartbar { left: 8px; right: 8px; gap: 7px; padding-inline: 8px; }
  .cb-go { font-size: 9px; }
  .about-stats span { font-size: 9px; }
}

@media (max-width: 319px) {
  .announcement-inner { font-size: 8px; }
  .header-row { width: calc(100% - 12px); }
  .grid { grid-template-columns: minmax(0,1fr); }
  .card .im { aspect-ratio: 1.25 / 1; }
  .card h3 { min-height: auto; }
  .card .b { padding: 14px; }
  .card .btn { font-size: 12px; }
  .cart-choice-grid { grid-template-columns: minmax(0,1fr); }
  .footer-main { grid-template-columns: minmax(0,1fr); }
}

@media (max-width: 900px) and (max-height: 500px) and (orientation: landscape) {
  .site-header { position: relative; }
  .hero-new { grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 20px; padding-top: 18px; padding-bottom: 28px; }
  .hero-copy-new h1 { font-size: clamp(31px, 5.5vw, 44px); }
  .hero-image-frame { height: clamp(175px, 46vh, 250px); }
  .trust-strip { margin-bottom: 48px; }
  .tabbar button { font-size: 9px; }
  .cartbar { bottom: calc(55px + env(safe-area-inset-bottom)); }
  .wa { bottom: calc(57px + env(safe-area-inset-bottom)); }
  body.cartbar-visible .wa { bottom: calc(112px + env(safe-area-inset-bottom)); }
  body.cartbar-visible #toast .toast:not(.toast-inline) { bottom: calc(170px + env(safe-area-inset-bottom)); }
}

/* Inline feedback stays inside open panels on desktop and mobile. */
.toast.toast-inline {
  position: relative;
  z-index: auto;
  inset: auto;
  left: auto;
  bottom: auto;
  width: 100%;
  max-width: 100%;
  margin: 0 0 14px;
  padding: 11px 13px;
  transform: none;
  animation: toast-inline-in .18s ease-out;
}
@keyframes toast-inline-in {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Clear keyboard focus is also visible on touch-first layouts with keyboards. */
:where(button, a, input, select, textarea, [tabindex]):focus-visible {
  outline: 3px solid #8db500;
  outline-offset: 3px;
}


/* My orders: center the WhatsApp contact action consistently on every viewport. */
.order-box .order-contact-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.35;
  white-space: normal;
  overflow-wrap: anywhere;
  max-width: 100%;
}

/* Final QA polish: empty orders state and narrow modal panels. */
.orders-empty-state { margin-top: 20px; }
.orders-empty-state .btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; }
.orders-empty-state .btn .ic { width: 16px; height: 16px; }
.pan { overflow-x: hidden; }
@media (max-width: 760px) {
  .orders-empty-state { width: 100%; margin: 18px auto 34px; padding: 25px 19px; border-radius: 17px; }
  .orders-empty-state h3 { font-size: 19px; line-height: 1.3; }
  .orders-empty-state p { font-size: 13px; }
}

.th-fallback { display: inline-grid; place-items: center; flex: 0 0 52px; width: 52px; height: 52px; border-radius: 10px; background: #f3f4ee; color: #73786b; font-size: 20px; line-height: 1; }
.prod-row-info > .th-fallback { margin: 0; }
@media (max-width: 760px) { .cart-pan .th-fallback { flex-basis: 43px; width: 43px; height: 43px; } }
@media (max-width: 380px) { .cart-pan .th-fallback { flex-basis: 36px; width: 36px; height: 36px; } }

/* Order item rows: compact thumbnails must never expand to their intrinsic image width. */
.order-item-row {
  display: grid !important;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.order-product-photo {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  min-width: 0;
  flex: 0 0 48px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  overflow: hidden;
  background: #f3f4ee;
  cursor: pointer;
}
.order-product-photo-static { cursor: default; }
.order-product-photo .th,
.order-product-photo .th-fallback {
  display: block;
  width: 100%;
  height: 100%;
  min-width: 0;
  flex-basis: auto;
  margin: 0;
  padding: 0;
  border-radius: 10px;
  object-fit: contain;
  background: #f3f4ee;
}
.order-item-row > div { min-width: 0; overflow-wrap: anywhere; font-size: 12px; line-height: 1.5; }
.order-item-row > span:last-child { align-self: center; white-space: nowrap; font-size: 12px; font-weight: 700; }
.order-item-row .review-order-btn { display: inline-flex; margin-top: 3px; font-size: 11px; }
@media (max-width: 380px) {
  .order-item-row { grid-template-columns: 40px minmax(0, 1fr); gap: 8px; }
  .order-product-photo { width: 40px; height: 40px; flex-basis: 40px; }
  .order-item-row > span:last-child { grid-column: 2; justify-self: start; }
}

.order-header-row { display: flex !important; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.order-header-row > b { min-width: 0; }
.order-header-row > .st { margin-left: auto; }
.order-total-row { display: flex !important; align-items: center; justify-content: space-between; gap: 14px; }
.order-total-row > .lime { white-space: nowrap; font-size: 15px; }

/* Final polish: landscape mobile navigation must keep the same branded treatment as portrait. */
@media (max-width: 900px) and (max-height: 500px) and (orientation: landscape) {
  .tabbar {
    position: fixed;
    z-index: 70;
    inset: auto 0 0;
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: stretch;
    min-height: 48px;
    padding: 4px 8px calc(4px + env(safe-area-inset-bottom));
    border: 0;
    border-top: 1px solid #e3e4dc;
    border-radius: 0;
    background: rgba(255,255,255,.97);
    box-shadow: 0 -8px 26px rgba(17,18,15,.08);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
  }
  .tabbar button {
    appearance: none;
    -webkit-appearance: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 38px;
    padding: 2px 1px;
    border: 0 !important;
    border-radius: 0;
    outline-offset: -2px;
    box-shadow: none;
    background: transparent !important;
    color: #85897e;
    font-size: 8px;
    font-weight: 800;
    line-height: 1.15;
    gap: 2px;
  }
  .tabbar button.on { color: var(--ink); }
  .tabbar button .ic { width: 15px; height: 15px; }
  .tabbar button.on .ic { color: #6b8800; }
  .tabbar .badge { right: calc(50% - 18px); top: 0; }
  .hero-new { gap: 14px; padding-top: 12px; padding-bottom: 18px; }
  .hero-copy-new h1 { font-size: clamp(27px, 5vw, 38px); line-height: 1.02; margin: 8px 0; }
  .hero-copy-new p { font-size: 10px; line-height: 1.45; margin-bottom: 8px; }
  .hero-pill { font-size: 8px; padding: 7px 10px; }
  .hero-image-frame { height: clamp(145px, 42vh, 172px); }
  .hero-actions { gap: 8px; }
  .hero-actions .btn { min-height: 34px; padding: 0 11px; font-size: 10px; }
  .trust-strip { margin-bottom: 24px; }
}

/* Landscape mobile polish: retain branded bottom navigation and keep the hero CTA clear. */
@media (max-width: 900px) and (max-height: 500px) and (orientation: landscape) {
  .tabbar {
    position: fixed;
    z-index: 70;
    inset: auto 0 0;
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: stretch;
    min-height: 48px;
    padding: 4px 8px calc(4px + env(safe-area-inset-bottom));
    border: 0;
    border-top: 1px solid #e3e4dc;
    border-radius: 0;
    background: rgba(255,255,255,.97);
    box-shadow: 0 -8px 26px rgba(17,18,15,.08);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
  }
  .tabbar button {
    appearance: none;
    -webkit-appearance: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 38px;
    padding: 2px 1px;
    border: 0 !important;
    border-radius: 0;
    box-shadow: none;
    background: transparent !important;
    color: #85897e;
    font-size: 8px;
    font-weight: 800;
    line-height: 1.15;
    gap: 2px;
  }
  .tabbar button.on { color: var(--ink); }
  .tabbar button .ic { width: 15px; height: 15px; }
  .tabbar button.on .ic { color: #6b8800; }
  .tabbar .badge { right: calc(50% - 18px); top: 0; }
  .hero-new { gap: 14px; padding-top: 12px; padding-bottom: 18px; }
  .hero-copy-new h1 { font-size: clamp(27px, 5vw, 38px); line-height: 1.02; margin: 8px 0; }
  .hero-copy-new p { font-size: 10px; line-height: 1.45; margin-bottom: 8px; }
  .hero-pill { font-size: 8px; padding: 7px 10px; }
  .hero-image-frame { height: clamp(145px, 42vh, 172px); }
  .hero-actions { gap: 8px; }
  .hero-actions .btn { min-height: 34px; padding: 0 11px; font-size: 10px; }
  .trust-strip { margin-bottom: 24px; }
}

/* Saudação da conta no cabeçalho mobile: visível sem apertar marca ou ícones. */
.account-label-mobile { display: none; }
@media (max-width: 760px) {
  .account-action.is-signed-in { gap: 5px; }
  .account-action.is-signed-in .account-label {
    display: flex;
    flex: 0 1 auto;
    min-width: 0;
    max-width: 68px;
    gap: 2px;
  }
  .account-action.is-signed-in .account-label small {
    font-size: 7px;
    line-height: 1.1;
    letter-spacing: .08em;
    white-space: nowrap;
  }
  .account-action.is-signed-in .account-label-desktop { display: none; }
  .account-action.is-signed-in .account-label-mobile { display: inline; }
  .account-action.is-signed-in .account-label b {
    display: block;
    max-width: 62px;
    font-size: 10px;
    line-height: 1.15;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}
@media (max-width: 380px) {
  .account-action.is-signed-in .account-label { max-width: 55px; }
  .account-action.is-signed-in .account-label b { max-width: 50px; font-size: 9px; }
  .account-action.is-signed-in .account-label small { font-size: 6.5px; }
}


/* v17.5: the mobile drawer always sits above the fixed bottom navigation.
   Its header and support area stay visible; only the list of links scrolls. */
@media (max-width: 900px) {
  body.menu-open .site-header {
    position: relative;
    z-index: 1200 !important;
  }

  body.menu-open .nav-main {
    z-index: 1202;
    top: 0;
    right: 0;
    bottom: 0;
    max-width: 100vw;
    overflow: hidden;
    overscroll-behavior: contain;
    padding-bottom: calc(12px + env(safe-area-inset-bottom));
  }

  body.menu-open .menu-bd {
    z-index: 1201;
  }

  /* The drawer covers the bottom bar; disable underlying fixed controls too. */
  body.menu-open .tabbar,
  body.menu-open .cartbar,
  body.menu-open .wa {
    visibility: hidden !important;
    pointer-events: none !important;
  }

  .nav-main > * {
    flex-shrink: 0;
  }

  /* Keep category links in their own scroll region; never let the help text be covered. */
  .nav-main .main-nav {
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior-y: contain;
    -webkit-overflow-scrolling: touch;
    padding: 2px 2px 12px 0;
    scrollbar-width: thin;
    scrollbar-color: #424736 transparent;
  }

  .nav-main .nav-item {
    flex-shrink: 0;
  }

  .nav-main .mobile-menu-bottom {
    flex: 0 0 auto;
    margin-top: 0;
    padding-top: 11px;
    padding-bottom: 6px;
    border-top: 1px solid #30352b;
    background: #141611;
  }
}

/* On very short landscape screens, compact fixed portions so both the header
   and support action remain visible while category links remain scrollable. */
@media (max-width: 900px) and (max-height: 430px) {
  body.menu-open .nav-main {
    padding: 8px 16px calc(8px + env(safe-area-inset-bottom));
  }
  .nav-main .mobile-nav-head {
    padding-bottom: 8px;
  }
  .nav-main .mobile-nav-title {
    gap: 3px;
  }
  .nav-main .mobile-nav-title span {
    font-size: 7px;
  }
  .nav-main .mobile-nav-title strong {
    font-size: 18px;
  }
  .nav-main .mobile-nav-close {
    width: 31px;
    height: 31px;
    flex-basis: 31px;
  }
  .nav-main .mobile-menu-search {
    margin: 7px 0 8px;
    padding: 8px 10px;
  }
  .nav-main .mobile-menu-search p {
    margin-bottom: 5px;
    font-size: 9px;
  }
  .nav-main .menu-browse-btn {
    min-height: 31px;
  }
  .nav-main .mobile-nav-label {
    margin-bottom: 3px;
    font-size: 7px;
  }
  .nav-main .nav-item {
    min-height: 34px;
    gap: 8px;
    padding-inline: 8px;
  }
  .nav-main .nav-item-icon {
    width: 23px;
    height: 23px;
    flex-basis: 23px;
  }
  .nav-main .nav-item-text {
    font-size: 10px;
  }
  .nav-main .mobile-menu-bottom {
    padding-top: 7px;
    padding-bottom: 3px;
  }
  .nav-main .menu-help-copy {
    gap: 2px;
    margin-bottom: 5px;
  }
  .nav-main .menu-help-copy b {
    font-size: 10px;
  }
  .nav-main .menu-help-copy span {
    font-size: 8px;
  }
  .nav-main .menu-whatsapp {
    min-height: 31px;
    font-size: 10px;
  }
  .nav-main .mobile-menu-social {
    margin-top: 5px;
    font-size: 8px;
  }
}


@media (max-width: 480px) {
  .cancel-modal-pan { padding: clamp(15px, 4.5vw, 21px); }
  .cancel-order-summary { align-items: flex-start; flex-direction: column; gap: 5px; }
  .cancel-modal-actions { grid-template-columns: minmax(0, 1fr); }
}


@media (max-width: 760px) {
  .refund-modal-ov { align-items: flex-end; padding: max(10px, env(safe-area-inset-top)) 10px max(10px, env(safe-area-inset-bottom)); }
  .refund-modal-pan { width: 100%; max-width: 560px; max-height: 92dvh; padding: 18px; border-radius: 20px; }
  .refund-modal-head h2 { font-size: 21px; }
  .refund-order-summary { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .refund-order-summary > div:last-child { grid-column: 1 / -1; }
  .refund-modal-actions { grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
  .refund-modal-actions .btn { padding-inline: 10px; }
}
@media (max-width: 360px) {
  .refund-modal-pan { padding: 14px; }
  .refund-modal-actions { grid-template-columns: 1fr; }
}
