/* ==========================================================================
   Frosted FTF — V113 · Vitrine da página inicial
   Carregado somente pelo index.html, depois de style.css e refresh.css.
   Mantém cores, raios, gradientes e componentes atuais; só reorganiza o topo
   e melhora a experiência em celular / tablet / PC.
   ========================================================================== */

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- HERO COMPACTO (vitrine) ---------- */
.hero-section--store {
  z-index: 2; /* sugestões da busca ficam acima da faixa "Mais Vendidos" */
  overflow: visible; /* o recorte agora fica só no fundo, para a lista de sugestões não ser cortada */
  min-height: auto;
  padding: calc(var(--nav-height) + 30px) 20px 34px;
  align-items: flex-start;
}

.hero-section--store .hero-background,
.hero-section--store .hero-floating { overflow: hidden; }

/* Funde o fundo do topo com o restante da página (sem "corte" seco) */
.hero-section--store::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 140px;
  z-index: 0;
  background: linear-gradient(180deg, transparent, var(--bg-dark));
  pointer-events: none;
}

.hero-section--store .hero-content {
  max-width: 820px;
  margin-top: 0;
}

.hero-section--store .hero-badge { margin-bottom: 1rem; }

.hero-section--store .hero-title {
  font-size: clamp(2.2rem, 4.4vw, 3.6rem);
  margin-bottom: .75rem;
}

.hero-section--store .hero-description {
  max-width: 600px;
  margin-bottom: 1.4rem;
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  line-height: 1.6;
}

.hero-section--store .hero-actions {
  gap: .75rem;
  margin-bottom: 1.4rem;
}

.hero-section--store .hero-btn {
  padding: .85rem 1.8rem;
  font-size: 1rem;
}

.hero-section--store .hero-stats {
  gap: 2rem;
  padding: .9rem 1.6rem;
}

.hero-section--store .stat-icon {
  width: 38px;
  height: 38px;
  font-size: 1.05rem;
}

.hero-section--store .stat-divider { height: 28px; }

/* Pausa efeitos decorativos fora da tela (classe já aplicada pelo script). */
.hero-section.effects-paused .hero-glow,
.hero-section.effects-paused .particle,
.hero-section.effects-paused .hero-float { animation-play-state: paused; }

/* ---------- BUSCA DO TOPO ---------- */
.hero-search {
  position: relative;
  z-index: 6;
  width: min(100%, 640px);
  margin: 0 auto 1rem;
}

.hero-search__field {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: 6px 6px 6px 1.25rem;
  background: rgba(26, 26, 26, .88);
  border: 2px solid rgba(92, 225, 253, .22);
  border-radius: var(--radius-full);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .35), 0 0 0 6px rgba(92, 225, 253, .04);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: border-color .2s ease, box-shadow .2s ease;
}

.hero-search__field:focus-within {
  border-color: var(--primary);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .35), 0 0 0 4px rgba(92, 225, 253, .15);
}

.hero-search__icon {
  flex-shrink: 0;
  color: var(--primary);
  font-size: 1.05rem;
}

.hero-search__input {
  flex: 1;
  min-width: 0;
  padding: .7rem .25rem;
  background: transparent;
  border: 0;
  outline: 0;
  color: var(--text);
  font: inherit;
  font-size: 1.05rem;
}

.hero-search__input::placeholder { color: var(--text-muted); }

.hero-search .hero-search__input:focus,
.hero-search .hero-search__input:focus-visible {
  border: 0;
  outline: 0;
  background: transparent;
  box-shadow: none;
}

.hero-search__input::-webkit-search-cancel-button,
.search-input::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
  display: none;
}

.hero-search__btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  min-height: 46px;
  padding: 0 1.4rem;
  border: 0;
  border-radius: var(--radius-full);
  background: var(--gradient-primary);
  color: #fff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  box-shadow: var(--shadow-glow);
  transition: transform .2s ease, box-shadow .2s ease;
}

.hero-search__btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(40, 176, 255, .4);
}

.hero-search__results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  max-height: min(360px, 60vh);
  padding: 6px;
  overflow-y: auto;
  overscroll-behavior: contain;
  text-align: left;
  background: var(--bg-lighter);
  border: 1.5px solid rgba(92, 225, 253, .18);
  border-radius: var(--radius-lg);
  box-shadow: 0 16px 44px rgba(0, 0, 0, .55);
  scrollbar-width: thin;
  scrollbar-color: rgba(92, 225, 253, .25) transparent;
}

.hero-search__item {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: .75rem;
  width: 100%;
  padding: .45rem .65rem;
  background: transparent;
  border: 0;
  border-radius: 12px;
  color: var(--text-light);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background .15s ease;
}

.hero-search__item:hover,
.hero-search__item.active {
  background: rgba(92, 225, 253, .09);
}

.hero-search__item img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .35));
}

.hero-search__info {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.hero-search__name {
  overflow: hidden;
  color: var(--text);
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hero-search__tier {
  font-size: .72rem;
  font-weight: 800;
  box-shadow: none !important;
}

.hero-search__price {
  color: var(--primary-light);
  font-weight: 800;
  white-space: nowrap;
}

.hero-search__empty {
  padding: 1rem;
  color: var(--text-muted);
  text-align: center;
  font-size: .92rem;
}

/* ---------- ATALHOS DE RARIDADE ---------- */
.hero-shortcuts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  margin-bottom: 1.3rem;
}

.hero-shortcuts__label {
  margin-right: .15rem;
  color: var(--text-muted);
  font-size: .9rem;
}

.hero-chip {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 1rem;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 999px;
  background: rgba(8, 12, 20, .62);
  font: inherit;
  font-size: .85rem;
  font-weight: 800;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}

.hero-chip:hover { transform: translateY(-2px); background: rgba(255, 255, 255, .06); }

.hero-chip--lendarios { color: #ffff00; box-shadow: inset 0 0 0 1px rgba(255, 255, 0, .18); }
.hero-chip--epicos { color: #ff00fe; box-shadow: inset 0 0 0 1px rgba(255, 0, 254, .18); }
.hero-chip--raros { color: #01fff7; box-shadow: inset 0 0 0 1px rgba(1, 255, 247, .18); }
.hero-chip--comuns { color: #01fe00; box-shadow: inset 0 0 0 1px rgba(1, 254, 0, .14); }

/* ---------- ITENS FLUTUANTES (só telas largas) ---------- */
.hero-floating { display: none; }

@media (min-width: 1200px) {
  .hero-floating {
    position: absolute;
    inset: 0;
    z-index: 0;
    display: block;
    pointer-events: none;
  }

  .hero-float {
    position: absolute;
    width: clamp(96px, 8vw, 140px);
    height: auto;
    display: block;
    padding: 0;
    border: 0;
    border-radius: 16px;
    background: transparent;
    color: inherit;
    cursor: pointer;
    pointer-events: auto;
    touch-action: manipulation;
    filter: drop-shadow(0 18px 26px rgba(0, 0, 0, .5)) drop-shadow(0 0 24px rgba(92, 225, 253, .14));
    animation: heroFloat 7s ease-in-out infinite;
  }

  .hero-float img {
    display: block;
    width: 100%;
    height: auto;
    pointer-events: none;
  }

  .hero-float:hover,
  .hero-float:focus-visible { animation-play-state: paused; }

  .hero-float:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 4px;
  }

  /* coluna interna (perto do conteúdo) */
  .hero-float--1 { top: 20%; right: calc(50% + 445px); --r: -12deg; }
  .hero-float--3 { top: 58%; right: calc(50% + 455px); --r: 10deg; animation-delay: -2s; }
  .hero-float--5 { top: 20%; left: calc(50% + 445px); --r: 12deg; animation-delay: -1s; }
  .hero-float--7 { top: 58%; left: calc(50% + 455px); --r: -10deg; animation-delay: -3s; }

  /* coluna externa (só em monitores maiores) */
  .hero-float--2,
  .hero-float--4,
  .hero-float--6,
  .hero-float--8 { display: none; }
}

@media (min-width: 1500px) {
  .hero-float--2,
  .hero-float--4,
  .hero-float--6,
  .hero-float--8 { display: block; }

  .hero-float--2 { top: 36%; right: calc(50% + 600px); --r: 8deg; animation-delay: -4s; }
  .hero-float--4 { top: 72%; right: calc(50% + 610px); --r: -8deg; animation-delay: -5s; }
  .hero-float--6 { top: 36%; left: calc(50% + 600px); --r: -8deg; animation-delay: -2.5s; }
  .hero-float--8 { top: 72%; left: calc(50% + 610px); --r: 8deg; animation-delay: -4.5s; }
}

@keyframes heroFloat {
  0%, 100% { transform: translateY(0) rotate(var(--r, 0deg)); }
  50% { transform: translateY(-14px) rotate(var(--r, 0deg)); }
}

/* ---------- MAIS VENDIDOS ---------- */
.bestsellers {
  position: relative;
  z-index: 1;
  padding: 0 2rem;
}

.bestsellers__inner {
  max-width: 1400px;
  margin: 0 auto;
}

.bestsellers__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: .75rem;
}

.bestsellers__title {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin: 0;
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  font-weight: var(--font-weight-black);
  letter-spacing: -.02em;
}

.bestsellers__title i { color: var(--accent); }

/* As duas palavras ficam no mesmo texto, sem um gap de flex entre elas. */
.bestsellers__label { white-space: nowrap; }

.bestsellers__title .bestsellers__highlight {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.bestsellers__nav {
  display: flex;
  gap: .5rem;
}

.bestsellers__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 12px;
  background: var(--bg-light);
  color: var(--text);
  cursor: pointer;
  transition: border-color .2s ease, color .2s ease, opacity .2s ease;
}

.bestsellers__arrow:hover:not(:disabled) {
  border-color: rgba(92, 225, 253, .35);
  color: var(--primary-light);
}

.bestsellers__arrow:disabled { opacity: .3; cursor: default; }

.bestsellers__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 224px;
  justify-content: start;
  align-content: start;
  gap: 1rem;
  padding: .5rem .25rem 1.25rem;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-left: .25rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(92, 225, 253, .25) transparent;
}

.bestsellers__track::-webkit-scrollbar { height: 6px; }
.bestsellers__track::-webkit-scrollbar-thumb { border-radius: 10px; background: rgba(92, 225, 253, .25); }
.bestsellers__track > * { scroll-snap-align: start; }
.bestsellers__track:focus-visible { outline: 2px solid var(--primary); outline-offset: 4px; border-radius: 16px; }

.bestsellers__skeleton {
  height: 318px;
  border-radius: 20px;
  background: linear-gradient(90deg, rgba(255, 255, 255, .03), rgba(255, 255, 255, .065), rgba(255, 255, 255, .03));
  background-size: 200% 100%;
  animation: bestsellerShimmer 1.4s linear infinite;
}

@keyframes bestsellerShimmer {
  from { background-position: 200% 0; }
  to { background-position: -200% 0; }
}

/* ---------- PREÇO ORIGINAL + DESCONTO (somente a vitrine) ---------- */
.product-price {
  min-width: 0;
  max-width: 100%;
}

.product-price__offer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .35rem .5rem;
  max-width: 100%;
  margin-bottom: .25rem;
  line-height: 1.25;
}

.product-price__original {
  color: var(--text-muted);
  font-size: .95rem;
  font-weight: 600;
  text-decoration: line-through;
  text-decoration-thickness: 1.5px;
  white-space: nowrap;
}

.product-price__discount {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .25rem .5rem;
  border: 1px solid rgba(57, 211, 136, .26);
  border-radius: 6px;
  background: rgba(57, 211, 136, .12);
  color: #79efb5;
  font-size: .7rem;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

/* ---------- CARD COMPACTO (Mais Vendidos + grade no celular) ---------- */
.product-card--compact { border-radius: 20px; }
.product-card--compact:hover { transform: translateY(-4px); }

.product-card--compact .product-image,
.products-grid--compact .product-image {
  height: 150px;
  padding: 1rem .9rem .75rem;
}

.product-card--compact .product-rarity {
  left: .65rem;
  bottom: .65rem;
  min-height: 24px;
  padding: 0 .6rem;
  font-size: .68rem;
}

.product-card--compact .event-icon {
  top: .65rem;
  left: .65rem;
  width: 30px;
  height: 30px;
}

.product-card--compact .product-info {
  gap: .45rem;
  padding: .8rem .9rem .6rem;
}

.product-card--compact .product-title {
  display: block;
  overflow: hidden;
  font-size: .98rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-card--compact .price-label { display: none; }
.product-card--compact .current-price { font-size: 1.35rem; }
.product-card--compact .product-price__original { font-size: .8rem; }
.product-card--compact .product-price__discount { font-size: .62rem; padding: .2rem .4rem; }

.product-card--compact .product-actions {
  gap: .5rem;
  padding: 0 .9rem .9rem;
}

.product-card--compact .buy-btn {
  min-height: 40px;
  padding: 0 .75rem;
  border-radius: 12px;
  font-size: .88rem;
}

.product-card--compact .buy-btn-cart {
  width: 2.6rem;
  border-radius: 12px;
}

/* Não estica uma única linha até os antigos 600px de altura da grade.
   As colunas continuam reservadas e os cards da mesma linha ficam alinhados. */
#productsGrid {
  min-height: 0;
  align-content: start;
}

.products-grid > .product-card,
.bestsellers__track > .product-card {
  min-width: 0;
  min-height: 0;
}

.products-grid .product-image,
.bestsellers__track .product-image { flex-shrink: 0; }

/* ---------- SEÇÃO DE SETS MAIS PRÓXIMA DO TOPO ---------- */
.main-container { padding-top: 2.25rem; }

.section-sets .section-header { margin-bottom: 2rem; }
.section-sets .section-title-wrapper--featured { margin-bottom: 1.25rem; }
.section-sets .section-subtitle { margin-bottom: .75rem; }

.section-sets .section-title-panel {
  gap: .75rem;
  padding: 1.15rem 1.4rem;
}

.section-sets .section-title {
  margin-bottom: 0;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
}

.section-sets .title-icon {
  width: 48px;
  height: 48px;
  font-size: 1.4rem;
}

/* A busca virou <button> para ser acessível pelo teclado; visual igual. */
button.search-clear {
  padding: 0;
  border: 0;
  color: var(--text-muted);
  font: inherit;
}

button.search-clear:hover { color: var(--error); }

/* Estado vazio com sugestões de outras raridades */
.products-status__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .5rem;
}

.products-status .products-status__chip {
  padding: 0 1rem;
  border-radius: 999px;
  background: rgba(8, 12, 20, .62);
  font-weight: 800;
}

.products-status .products-status__chip.hero-chip--lendarios { color: #ffff00; }
.products-status .products-status__chip.hero-chip--epicos { color: #ff00fe; }
.products-status .products-status__chip.hero-chip--raros { color: #01fff7; }
.products-status .products-status__chip.hero-chip--comuns { color: #01fe00; }

.products-status .products-status__clear {
  min-height: 38px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 999px;
  background: var(--bg-light);
  color: var(--text-light);
  cursor: pointer;
}

/* Foco visível para quem navega pelo teclado */
.hero-chip:focus-visible,
.hero-search__btn:focus-visible,
.bestsellers__arrow:focus-visible,
.custom-select__trigger:focus-visible,
.custom-select__option:focus-visible,
.page-number:focus-visible,
.pagination-btn:focus-visible,
.buy-btn:focus-visible,
.buy-btn-cart:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.custom-select__option:focus-visible { outline-offset: -2px; }

/* Ao abrir, a lista fica visível na hora (permite foco pelo teclado); o fade continua igual. */
.custom-select.open .custom-select__dropdown {
  transition: opacity .2s ease, transform .2s ease, visibility 0s;
}

/* ---------- TABLET ---------- */
@media (max-width: 992px) {
  .hero-section--store .hero-stats { gap: 1.25rem; }

  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
  }

  .product-image { height: 200px; }
}

/* ---------- CELULAR ---------- */
@media (max-width: 768px) {
  .hero-section--store {
    padding: calc(var(--nav-height) + 18px) 16px 22px;
  }

  .hero-section--store .hero-badge { margin-bottom: .9rem; }

  .hero-section--store .hero-title {
    margin-bottom: .6rem;
    font-size: clamp(1.9rem, 8.4vw, 2.4rem);
  }

  .hero-section--store .hero-description {
    margin-bottom: 1.1rem;
    font-size: .95rem;
  }

  /* 16px evita o zoom automático do iPhone ao tocar no campo */
  .hero-search__input,
  .search-input { font-size: 16px; }

  .hero-search__field { padding-left: 1rem; }
  .hero-search__btn { min-height: 44px; padding: 0 1.1rem; }

  .hero-shortcuts { gap: .4rem; margin-bottom: 1.1rem; }
  .hero-shortcuts__label { width: 100%; margin: 0 0 .1rem; font-size: .82rem; }
  .hero-chip { min-height: 36px; padding: 0 .85rem; font-size: .8rem; }

  .hero-section--store .hero-actions {
    flex-wrap: nowrap;
    width: 100%;
    margin-bottom: 1.1rem;
  }

  .hero-section--store .hero-btn {
    flex: 1 1 0;
    justify-content: center;
    min-width: 0;
    padding: .75rem 1rem;
    font-size: .95rem;
  }

  /* Estatísticas em uma linha só, em vez de três blocos empilhados */
  .hero-section--store .hero-stats {
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-around;
    gap: .5rem;
    width: 100%;
    padding: .75rem .5rem;
  }

  .hero-section--store .stat-item {
    flex: 1 1 0;
    flex-direction: column;
    justify-content: flex-start;
    gap: .35rem;
    width: auto;
    min-width: 0;
    text-align: center;
  }

  .hero-section--store .stat-info { align-items: center; text-align: center; }
  .hero-section--store .stat-label { font-size: .74rem; line-height: 1.25; }
  .hero-section--store .stat-icon { width: 32px; height: 32px; font-size: .9rem; }

  .bestsellers { padding: 0 1rem; }
  .bestsellers__track {
    grid-auto-columns: minmax(158px, 44vw);
    gap: .75rem;
    margin: 0 -1rem;
    padding: .4rem 1rem 1rem;
    scroll-padding-left: 1rem;
  }
  .bestsellers__skeleton { height: 270px; }

  .main-container { padding: 1.5rem 1rem 3rem; }
  .section-sets .section-header { margin-bottom: 1.25rem; }
  .section-sets .section-title-wrapper--featured { margin-bottom: 1rem; }
  .section-sets .section-subtitle { margin-bottom: .5rem; font-size: .78rem; }

  .section-sets .section-title-panel {
    gap: .75rem;
    padding: .85rem;
    border-radius: 22px;
  }

  .section-sets .section-title { gap: .65rem; font-size: 1.55rem; }
  .section-sets .title-icon { width: 38px; height: 38px; font-size: 1.05rem; border-radius: 10px; }

  /* Filtros: busca em largura total e os dois selects lado a lado */
  .section-actions--inside-panel {
    display: grid;
    /* raridade (texto curto) mais estreita; eventos mais largo para caber "Todos os Eventos" */
    grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
    gap: .6rem;
    padding-top: 0;
  }

  .section-actions--inside-panel .search-wrapper { grid-column: 1 / -1; }

  .section-actions--inside-panel .custom-select-wrapper,
  .section-actions--inside-panel .custom-select { min-width: 0; }

  .section-actions--inside-panel .custom-select__trigger {
    min-width: 0;
    gap: .45rem;
    padding: .7rem .8rem;
    font-size: .88rem;
  }

  .section-actions--inside-panel .custom-select__label {
    overflow: hidden;
    min-width: 0;
    text-overflow: ellipsis;
  }

  /* O select de eventos fica à direita: a lista abre para a esquerda e mais larga */
  #eventSelectWrapper .custom-select__dropdown {
    left: auto;
    right: 0;
    min-width: 220px;
    max-height: min(320px, 55vh);
  }

  .custom-select__option { min-height: 44px; }

  .pagination-btn,
  .page-number { width: 42px; height: 42px; }
  .pagination-page-select .custom-select__trigger { height: 42px; }

  .back-to-top {
    right: 1rem;
    bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
    width: 44px;
    height: 44px;
    font-size: 1.05rem;
  }
}

/* Grade em 2 colunas no celular (antes era 1 card gigante por linha) */
@media (max-width: 600px) {
  .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .75rem;
    margin-bottom: 2rem;
  }

  .products-grid .product-card { border-radius: 18px; }

  .products-grid .product-image {
    height: 140px;
    padding: .9rem .75rem .65rem;
  }

  .products-grid .product-rarity {
    left: .55rem;
    bottom: .55rem;
    min-height: 22px;
    padding: 0 .5rem;
    font-size: .64rem;
  }

  .products-grid .event-icon {
    top: .55rem;
    left: .55rem;
    width: 28px;
    height: 28px;
    border-radius: 8px;
  }

  /* "Mais Vendido" vira só o ícone de fogo para não cobrir o set */
  .products-grid .product-badge {
    top: .55rem;
    right: .55rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    font-size: 0;
    border-radius: 50%;
  }

  .products-grid .product-badge i { font-size: .8rem; }

  .products-grid .product-info { gap: .35rem; padding: .7rem .75rem .5rem; }

  .products-grid .product-title {
    display: block;
    overflow: hidden;
    font-size: .92rem;
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .products-grid .price-label { display: none; }
  .products-grid .current-price { font-size: 1.2rem; }
  .products-grid .product-price__offer { gap: .3rem .35rem; }
  .products-grid .product-price__original { font-size: .75rem; }
  .products-grid .product-price__discount { font-size: .6rem; padding: .2rem .3rem; }

  .products-grid .product-actions { gap: .4rem; padding: 0 .75rem .75rem; }

  .products-grid .buy-btn {
    min-height: 40px;
    gap: .35rem;
    padding: 0 .5rem;
    border-radius: 12px;
    font-size: .84rem;
  }

  .products-grid .buy-btn-cart {
    flex: 0 0 40px;
    width: 40px;
    border-radius: 12px;
  }

  .products-status { min-height: 220px; padding: 0 .5rem; }
}

@media (max-width: 420px) {
  .hero-search__btn span { display: none; }
  .hero-search__btn { width: 44px; justify-content: center; padding: 0; }
  .products-grid .buy-btn i { display: none; }
}

/* Telas estreitas (ex.: 320px): selects empilhados e paginação menor para caber em uma linha */
@media (max-width: 359px) {
  .pagination-wrapper { gap: .3rem; }
  .pagination-numbers { gap: .3rem; }
  .pagination-btn,
  .page-number { width: 36px; height: 36px; }
  .pagination-page-wrapper,
  .pagination-page-select { min-width: 0; }
  .pagination-page-select .custom-select__trigger { height: 36px; padding: 0 .6rem; }
}

/* Abaixo de 300px a grade volta para 1 coluna */
@media (max-width: 299px) {
  .products-grid { grid-template-columns: 1fr; }
}

@media (max-width: 339px) {
  .section-actions--inside-panel { grid-template-columns: 1fr; }
  #eventSelectWrapper .custom-select__dropdown { left: 0; min-width: 0; }
  .hero-section--store .hero-actions { flex-wrap: wrap; }
}

/* Celulares deitados / telas baixas: hero ainda menor */
@media (max-height: 500px) and (orientation: landscape) {
  .hero-section--store .hero-stats { display: none; }
  .hero-section--store .hero-description { display: none; }
}

/* Em telas de toque o "hover" fica preso após o toque: desliga os saltos */
@media (hover: none) {
  .product-card:hover,
  .product-card--compact:hover { transform: none; }
  .product-card:hover .product-image img { transform: none; }
  .hero-chip:hover,
  .buy-btn:hover { transform: none; }
  .bestsellers__nav { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-float,
  .bestsellers__skeleton { animation: none; }
}


/* V124 — pop-up compacto; sem alterar os cards da vitrine. */
body.product-purchase-open { overflow:hidden; }
.product-purchase-dialog { width:min(800px,calc(100% - 32px)); max-width:none; max-height:92vh; max-height:92dvh; margin:auto; padding:22px; border:1px solid rgba(124,158,177,.2); border-radius:24px; color:#edf2f7; background:#10151e; box-shadow:0 28px 100px rgba(0,0,0,.65); overflow-y:auto; scrollbar-width:thin; scrollbar-color:#316472 transparent; }
.product-purchase-dialog:not([open]) { display:none; }
.product-purchase-dialog::backdrop { background:rgba(2,5,9,.82); }
.product-purchase-layout { display:grid; grid-template-columns:minmax(0,.95fr) minmax(0,1.05fr); align-items:center; gap:22px; }
.product-purchase-close { position:absolute; top:14px; right:14px; width:38px; height:38px; display:grid; place-items:center; color:#c4d2dd; background:#1d2630; border:1px solid rgba(255,255,255,.1); border-radius:12px; padding:0; cursor:pointer; z-index:2; font-size:1rem; }
.product-purchase-close:hover { background:#293540; }
.product-purchase-visual { min-width:0; position:relative; display:grid; place-items:center; aspect-ratio:1/1; padding:46px 16px 48px; border:1px solid rgba(122,185,200,.14); border-radius:20px; background:radial-gradient(ellipse at center,rgba(48,139,169,.12),transparent 70%),#141c25; }
.product-purchase-image { display:block; width:100%; height:100%; min-height:0; max-height:270px; object-fit:contain; }
.product-purchase-bestseller { position:absolute; top:17px; left:17px; display:inline-flex; align-items:center; gap:6px; padding:8px 11px; background:linear-gradient(110deg,#ff8c34,#ff3939); border-radius:100px; color:white; font-size:.69rem; font-weight:800; }
.product-purchase-rarity { position:absolute; bottom:16px; left:50%; transform:translateX(-50%); display:inline-flex; border:1px solid currentColor; padding:6px 12px; border-radius:100px; font-size:.72rem; line-height:1; font-weight:800; background:#101720; }
.product-purchase-rarity.product-rarity--lendarios { color:#fff566; }
.product-purchase-rarity.product-rarity--epicos { color:#ca96ff; }
.product-purchase-rarity.product-rarity--raros { color:#81c4ff; }
.product-purchase-rarity.product-rarity--comuns { color:#c8d0da; }
.product-purchase-info { min-width:0; padding:12px 0 0; }
.product-purchase-info h2 { margin:0 32px 11px 0; font-size:clamp(1.4rem,2.2vw,1.85rem); line-height:1.12; font-weight:850; letter-spacing:-.025em; overflow-wrap:anywhere; }
.product-purchase-price { display:flex; flex-direction:column; align-items:flex-start; gap:5px; margin-bottom:11px; }
.product-purchase-price .current-price { font-size:1.65rem; line-height:1.12; color:#5fdcf8; font-weight:850; }
.product-purchase-price .price-label { font-size:.65rem; text-transform:uppercase; color:#98a7b7; }
.product-purchase-price .product-price__original { font-size:.85rem; }
.product-purchase-price .product-price__discount { font-size:.65rem; }
.product-purchase-event { display:inline-flex; align-items:center; flex-wrap:wrap; gap:8px; padding:8px 11px; border:1px solid rgba(128,189,205,.18); border-radius:11px; background:#19242d; color:#d3e7ee; font-size:.77rem; line-height:1.25; font-weight:650; }
.product-purchase-event > i { font-size:.64rem; color:#78d5e9; margin-left:3px; }
.product-purchase-event:hover { border-color:#479bb2; color:#78d5e9; }
#buyEventIcon { display:grid; place-items:center; width:20px; height:20px; }
#buyEventIcon img { width:20px; height:20px; object-fit:contain; }
.product-purchase-category-hint { margin:6px 0 12px; color:#8495a5; font-size:.64rem; line-height:1.5; }
.product-purchase-selection { display:flex; align-items:flex-end; justify-content:space-between; gap:16px; padding-top:12px; border-top:1px solid rgba(255,255,255,.07); }
.product-purchase-quantity-block label { display:block; margin:0 0 7px; color:#aab8c6; font-size:.72rem; font-weight:650; }
.product-purchase-quantity { display:grid; grid-template-columns:40px 42px 40px; border:1px solid rgba(255,255,255,.12); border-radius:12px; background:#0d1219; overflow:hidden; height:42px; }
.product-purchase-quantity button,.product-purchase-quantity input { width:100%; min-width:0; height:40px; padding:0; margin:0; border:0; border-radius:0; color:#b9f0fc; background:transparent; font:750 1rem/1 Inter,sans-serif; text-align:center; }
.product-purchase-quantity button { display:grid; place-items:center; cursor:pointer; }
.product-purchase-quantity button:hover:not(:disabled) { background:rgba(92,225,253,.12); }
.product-purchase-quantity input { color:#edf2f7; appearance:textfield; -moz-appearance:textfield; }
.product-purchase-quantity input::-webkit-inner-spin-button,.product-purchase-quantity input::-webkit-outer-spin-button { -webkit-appearance:none; margin:0; }
.product-purchase-quantity:focus-within { border-color:#5cddf8; box-shadow:inset 0 0 0 1px rgba(92,225,253,.2); }
.product-purchase-total { display:grid; gap:7px; text-align:right; padding-bottom:2px; }
.product-purchase-total span { color:#98abba; font-size:.66rem; }
.product-purchase-total strong { font-size:1.32rem; font-weight:800; color:#e5f8ff; white-space:nowrap; }
.product-purchase-quantity-hint { margin:8px 0 12px; color:#8d9eaf; font-size:.65rem; line-height:1.5; }
.product-purchase-actions { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:9px; }
.product-purchase-button { display:flex; align-items:center; justify-content:center; gap:8px; min-width:0; min-height:44px; padding:10px; border-radius:12px; border:1px solid transparent; font:750 .76rem/1.3 Inter,sans-serif; cursor:pointer; text-align:center; text-decoration:none; }
.product-purchase-button--primary { grid-column:1/-1; color:#071a21; background:linear-gradient(115deg,#53ddf3,#32a3e8); font-weight:850; }
.product-purchase-button--cart { grid-column:1/-1; color:#ade8f5; border-color:rgba(97,210,237,.26); background:rgba(97,210,237,.06); min-height:40px; }
.product-purchase-button--discord { background:#5865f2; color:#fff; }
.product-purchase-button--whatsapp { background:#25d366; color:#082610; }
.product-purchase-button:hover:not(:disabled) { filter:brightness(1.1); }
.product-purchase-dialog button:disabled { cursor:not-allowed; opacity:.5; }
.product-purchase-hint { display:flex; align-items:flex-start; gap:8px; margin:11px 0 0; color:#96a5b6; font-size:.65rem; line-height:1.65; }
.product-purchase-hint > i { margin-top:3px; color:#67d6ed; }
.product-purchase-status { margin:12px 0 0; padding:9px 11px; font-size:.73rem; line-height:1.5; border:1px solid rgba(96,218,243,.2); border-radius:10px; background:rgba(96,218,243,.07); color:#b5eefa; }
.product-purchase-status.is-error { background:rgba(255,145,155,.06); border-color:rgba(255,145,155,.25); color:#ffbac7; }
.product-purchase-dialog [hidden] { display:none!important; }
.product-purchase-dialog :focus-visible { outline:2px solid #68dcf4; outline-offset:3px; }
.product-purchase-dialog .product-purchase-quantity :focus { outline:none; box-shadow:none; }
.product-purchase-dialog .product-purchase-quantity button:focus-visible { background:rgba(92,225,253,.17); }
@media(max-width:640px) {
  .product-purchase-dialog { width:calc(100% - 22px); max-height:94vh; max-height:94dvh; padding:16px; border-radius:19px; }
  .product-purchase-layout { grid-template-columns:minmax(0,1fr); gap:12px; }
  .product-purchase-visual { aspect-ratio:auto; height:170px; padding:25px 24px 40px; }
  .product-purchase-image { max-height:112px; }
  .product-purchase-bestseller { top:12px; left:12px; padding:6px 9px; font-size:.61rem; }
  .product-purchase-rarity { bottom:12px; padding:5px 11px; font-size:.63rem; }
  .product-purchase-close { position:sticky; top:0; float:right; margin:0 0 -38px auto; z-index:3; }
  .product-purchase-info { padding:0; }
  .product-purchase-info h2 { font-size:1.38rem; margin:0 0 9px; }
  .product-purchase-price { margin-bottom:11px; }
  .product-purchase-price .current-price { font-size:1.6rem; }
  .product-purchase-category-hint { margin-bottom:12px; }
  .product-purchase-selection { padding-top:12px; }
  .product-purchase-button { min-height:44px; }
}
@media(prefers-reduced-motion:reduce) { .product-purchase-dialog * { transition:none!important; animation:none!important; } }

/* Feedback de adição na vitrine fora do fluxo da página (sem deslocar o layout). */
body:not(.cart-body) .cart-toast { position:fixed; z-index:5000; left:50%; bottom:24px; transform:translateX(-50%); display:flex; align-items:center; gap:12px; width:max-content; max-width:calc(100vw - 28px); padding:12px 16px; background:#17242e; color:#e4f1f6; border:1px solid rgba(110,209,236,.25); border-radius:12px; box-shadow:0 12px 35px rgba(0,0,0,.4); font:500 .8rem/1.5 Inter,sans-serif; }
body:not(.cart-body) .cart-toast[hidden],body.product-purchase-open .cart-toast { display:none; }