/* Keep filtered cards in the same columns as the full catalog. */
@media (min-width: 601px) {
  #app .grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
}
@media (min-width: 1600px) and (max-width: 2199px) {
  #app .grid { grid-template-columns: repeat(auto-fill, minmax(285px, 1fr)); }
}
@media (min-width: 2200px) {
  #app .grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
@media (min-width: 901px) {
  #app .detail { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(20px, 2.5vw, 42px); }
  #app .wallet-page { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
@media (max-width: 900px) {
  #app .detail, #app .cart-layout { grid-template-columns: minmax(0, 1fr); }
  #app .detail-media .art { width: 100%; max-width: 560px; margin-inline: auto; }
}
@media (max-width: 480px) {
  #app .shell { padding-inline: clamp(12px, 4vw, 18px); }
  #app :is(.purchase-controls, .detail-content, .cart-item, .payment-qr-card, .wallet-page > *) { min-width: 0; }
  #app .purchase-controls { grid-template-columns: minmax(56px, 24%) minmax(0, 1fr); }
  #app .stock-watch-controls { grid-template-columns: minmax(0, 1fr); }
  #app .purchase-controls input { width: 100%; min-width: 0; }
  #app .detail h1 { overflow-wrap: anywhere; }
}

/* Share the readable tab icon with the storefront branding. */
.header .brand .avatar, .desktop-sidebar .sidebar-brand .avatar {
  background: #191b1e url('/assets/pepe-tab-v2.png') center / cover no-repeat !important;
}
@media (max-width: 480px) {
  .header .brand > span:last-child { max-width: none; font-size: clamp(10px, 3.25vw, 14px); }
  .header .brand .avatar { width: 30px; height: 30px; }
  .mobile-nav > :is(a,button) { flex: 1; min-width: 0; min-height: 44px; justify-content: center; }
}

@media (max-width: 600px) {
  #app .hero {
    background-position: right center;
    background-size: auto 100%;
    background-repeat: no-repeat;
  }
  #app .hero::after {
    background: linear-gradient(90deg, #101017f5 0%, #101017c7 36%, #10101700 84%);
  }
  #app .hero-copy { padding: 24px 16px; max-width: 72%; }
  #app .hero h1 { font-size: clamp(19px, 6.4vw, 31px); }
  #app .hero p { font-size: clamp(12px, 3.3vw, 15px); }
}
