/* PLAY STORE V21.1 — ajustes exclusivamente para mobile.
   Cabeçalho: menu | marca | carrinho; pesquisa em segunda linha.
   Banner: arte completa, sem crop; preserva links e interação da V18.
*/
@media (max-width: 640px) {
  html body.ps21-mobile-ready .ps11-announcement { display:none !important; }
  html body.ps21-mobile-ready .top,
  html body.ps21-mobile-ready header.top { background:#10243b !important; }
  html body.ps21-mobile-ready .top .topin,
  html body.ps21-mobile-ready header.top .topin {
    display:grid !important;
    grid-template-columns:40px minmax(0,1fr) auto !important;
    grid-template-rows:44px 44px !important;
    gap:8px 9px !important;
    align-items:center !important;
    justify-content:stretch !important;
    padding:9px 12px 10px !important;
    min-height:0 !important;
    max-width:100% !important;
  }
  html body.ps21-mobile-ready .topin > .ps-mobile-menu {
    display:flex !important; grid-column:1 !important; grid-row:1 !important;
    width:40px !important; height:40px !important; min-width:0 !important;
    justify-content:center !important;align-items:center !important;
    background:transparent !important; color:#fff !important; margin:0 !important;
    padding:5px !important; border:0 !important; border-radius:9px !important;
  }
  html body.ps21-mobile-ready .topin > .ps-mobile-menu svg {width:23px!important;height:23px!important;stroke:#fff!important;}
  html body.ps21-mobile-ready .topin > .ps-brand {
    display:flex !important;flex-direction:column !important;justify-content:center !important;
    grid-column:2 !important;grid-row:1 !important;min-width:0 !important;
    width:100% !important;margin:0 !important;padding:0 !important;
    align-items:flex-start !important; text-align:left !important;
  }
  html body.ps21-mobile-ready .topin > .ps-brand .logo {
    font-size:clamp(19px,5.8vw,27px) !important;
    line-height:1.12!important; white-space:nowrap!important;
    letter-spacing:-.8px!important;
  }
  html body.ps21-mobile-ready .topin > .ps-brand .tag { display:none!important; }
  html body.ps21-mobile-ready .topin > .nav {
    grid-column:3 !important;grid-row:1 !important;
    align-items:center!important;justify-content:flex-end!important;
    display:flex!important;flex-wrap:nowrap!important;width:auto!important;
    min-width:0!important;margin:0!important;gap:0!important;
  }
  /* Navegação secundária fica acessível pelo menu/categorias; admin permanece oculto. */
  html body.ps21-mobile-ready .topin > .nav > :not(.ps-cart-btn):not([onclick*="openCart"]) {display:none!important;}
  html body.ps21-mobile-ready .topin > .nav .ps-cart-btn,
  html body.ps21-mobile-ready .topin > .nav [onclick*="openCart"] {
    height:40px!important;min-width:58px!important;max-width:85px!important;
    padding:6px 9px!important;display:flex!important;
    align-items:center!important;justify-content:center!important;gap:6px!important;
    border-radius:11px!important;background:#ffcb49!important;color:#10243b!important;
    box-shadow:none!important;
  }
  html body.ps21-mobile-ready .topin > .nav [onclick*="openCart"] svg {width:22px!important;height:22px!important;}
  html body.ps21-mobile-ready .topin > .nav [onclick*="openCart"] b,
  html body.ps21-mobile-ready .topin > .nav [onclick*="openCart"] #cartCount {
    min-width:19px!important;height:19px!important;line-height:19px!important;
    padding:0 3px!important;font-size:11px!important;
  }
  html body.ps21-mobile-ready .topin > .ps-main-search,
  html body.ps21-mobile-ready .topin > .ps11-header-search {
    grid-column:1 / -1!important;grid-row:2!important;
    display:flex!important;align-items:center!important;
    flex:none!important;order:initial!important;
    width:100%!important;max-width:100%!important;min-width:0!important;
    height:44px!important;min-height:44px!important;
    margin:0!important;padding:0!important;
    border-radius:12px!important;background:#fff!important;overflow:hidden!important;
    border:1px solid #dfe6ed!important;
  }
  html body.ps21-mobile-ready .topin > .ps-main-search input,
  html body.ps21-mobile-ready .topin > .ps11-header-search input {
    display:block!important;min-width:0!important;width:100%!important;flex:1!important;
    height:42px!important;font-size:14px!important;padding:0 12px!important;
    background:#fff!important;border:0!important;outline-offset:-2px!important;
    text-overflow:ellipsis!important;
  }
  html body.ps21-mobile-ready .topin > .ps-main-search button {
    width:48px!important;height:44px!important;flex:0 0 48px!important;
    padding:0!important;border-radius:0!important;background:#ffca47!important;
  }
  html body.ps21-mobile-ready #psCategoryStrip.ps-category-strip {
    display:block!important;overflow:hidden!important;
    background:#1b314d!important;
  }
  html body.ps21-mobile-ready #psCategoryStrip.ps-category-strip > div {
    display:flex!important;flex-wrap:nowrap!important;gap:16px!important;
    padding:9px 13px!important;max-height:43px!important;
    align-items:center!important;overflow-x:auto!important;scrollbar-width:none!important;
    scroll-snap-type:x proximity;
  }
  html body.ps21-mobile-ready #psCategoryStrip.ps-category-strip > div::-webkit-scrollbar {display:none;}
  html body.ps21-mobile-ready #psCategoryStrip.ps-category-strip a {
    display:inline-flex!important;align-items:center!important;flex:none!important;
    min-height:23px!important;font-size:12px!important;font-weight:700!important;
    scroll-snap-align:start;white-space:nowrap!important;
  }
  html body.ps21-mobile-ready #backendStatus {
    min-height:0!important;padding:6px!important;font-size:11px!important;
  }
  html body.ps21-mobile-ready .wrap {padding:10px 12px 40px!important;}
  /* Remover limites de altura e o crop definidos por V17/V18. */
  html body.ps21-mobile-ready #storeView .hero.ps18-banner {
    display:block!important;position:relative!important;
    height:auto!important;max-height:none!important;min-height:0!important;
    aspect-ratio:auto!important;
    width:100%!important;max-width:100%!important;
    padding:0!important;margin:0 0 12px!important;
    border-radius:12px!important;overflow:hidden!important;background:#111b2c!important;
  }
  html body.ps21-mobile-ready #storeView .hero.ps18-banner::before,
  html body.ps21-mobile-ready #storeView .hero.ps18-banner::after {display:none!important;content:none!important;}
  html body.ps21-mobile-ready #storeView .hero.ps18-banner .ps18-banner-link {
    position:relative!important;inset:auto!important;
    display:block!important;width:100%!important;height:auto!important;
    min-height:0!important;max-height:none!important;
    padding:0!important;margin:0!important;overflow:hidden!important;
    border-radius:inherit!important;
  }
  html body.ps21-mobile-ready #storeView .hero.ps18-banner .ps18-banner-link picture,
  html body.ps21-mobile-ready #storeView .hero.ps18-banner .ps18-banner-link img {
    display:block!important;width:100%!important;height:auto!important;
    max-height:none!important;min-height:0!important;
    padding:0!important;margin:0!important;
    aspect-ratio:auto!important;object-fit:contain!important;object-position:center!important;
    transform:none!important;filter:none!important;
  }
  /* Evita blocos repetidos de categorias/benefícios antes do catálogo. */
  html body.ps21-mobile-ready #storeView .ps11-trustline,
  html body.ps21-mobile-ready #storeView .ps-benefits { display:none!important; }
  html body.ps21-mobile-ready #ps11-categories-section {display:none!important;}
  html body.ps21-mobile-ready #storeView .ps11-catalog-head {
    margin:11px 0 6px!important;gap:7px!important;
  }
  html body.ps21-mobile-ready #storeView .ps11-catalog-head h2,
  html body.ps21-mobile-ready #storeView > .section-head h2 {
    font-size:21px!important;line-height:1.2!important;margin:0!important;
  }
  html body.ps21-mobile-ready #storeView .toolbar {margin:8px 0!important;gap:8px!important;}
  html body.ps21-mobile-ready #storeView #categories {gap:6px!important;padding-bottom:5px!important;}
  html body.ps21-mobile-ready #storeView #categories .chip {min-height:33px!important;padding:7px 11px!important;font-size:11px!important;}
  html body.ps21-mobile-ready #storeView .ps11-filterbar {margin:0 0 10px!important;}
  html body.ps21-mobile-ready #catalog {scroll-margin-top:14px;}
}
@media (max-width: 360px) {
  html body.ps21-mobile-ready .top .topin {padding-inline:9px!important;gap:7px!important;}
  html body.ps21-mobile-ready .topin > .ps-brand .logo {font-size:19px!important;}
  html body.ps21-mobile-ready .wrap {padding-inline:9px!important;}
}
@media(max-width:640px) {
  html body.ps21-mobile-ready .topin .ps-main-search > label.sr-only,
  html body.ps21-mobile-ready .topin .ps-main-search > label[for="psTopSearch"] {
    position:absolute!important;width:1px!important;height:1px!important;
    overflow:hidden!important;clip:rect(0,0,0,0)!important;
    clip-path:inset(50%)!important;white-space:nowrap!important;
    padding:0!important;margin:-1px!important;border:0!important;
  }
  html body.ps21-mobile-ready #psCategoryStrip.ps-category-strip a {text-decoration:none!important;}
}
