/* ==========================================================================
   ARENA CHUTEIRAS — Paleta "Arena Volt" & Experiência Mobile-First
   ========================================================================== */

:root {
  /* Superfícies & Bordas — Preto Grafite Fosco Neutro */
  --bg-body: #131417;
  --bg-surface: #181A1F;
  --bg-card: #1B1D22;
  --bg-elevated: #22242A;
  --bg-glass: rgba(19, 20, 23, 0.92);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --border-hover: rgba(255, 255, 255, 0.20);

  /* Tipografia */
  --text-primary: #FAFAFA;
  --text-secondary: #A1A1AA;
  --text-muted: #71717A;

  /* Destaque Esportivo "Arena Volt" (apenas elementos ativos pontuais) */
  --accent: #A3E635;
  --accent-hover: #BEF264;
  --accent-text: #09090B;
  --accent-soft: rgba(255, 255, 255, 0.06);
  --accent-glow: rgba(163, 230, 53, 0.20);

  /* Conversão Exclusiva WhatsApp */
  --whatsapp: #25D366;
  --whatsapp-hover: #1EBE5D;
  --whatsapp-text: #05160B;
  --whatsapp-glow: rgba(37, 211, 102, 0.32);

  /* Favoritos */
  --heart-active: #F43F5E;

  /* Raios, Sombras e Transições */
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 999px;
  --shadow-card: 0 8px 24px rgba(0, 0, 0, 0.36);
  --shadow-modal: 0 24px 64px rgba(0, 0, 0, 0.75);
  --transition: 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background-color: var(--bg-body);
  color: var(--text-primary);
  line-height: 1.5;
  min-height: 100vh;
  overflow-x: clip;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

body.modal-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

button,
input {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 14px;
}

/* ==========================================================================
   Cabeçalho Inteligente (Auto-Hide no Mobile) + Carrossel de Estilos
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.site-header.header-hidden {
  transform: translateY(-100%);
}

.header-inner {
  padding-top: 10px;
  padding-bottom: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.brand-info {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand-logo {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--border-subtle);
}

.brand-text {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1;
}

.brand-name {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-width: 0;
}

/* Campo de Busca Rápida */
.search-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0;
}

.search-icon {
  position: absolute;
  left: 11px;
  width: 16px;
  height: 16px;
  color: var(--text-muted);
  pointer-events: none;
}

.search-input {
  width: 100%;
  height: 39px;
  padding: 0 32px 0 34px;
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-size: 0.85rem;
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}

.search-input::placeholder {
  color: var(--text-muted);
}

.search-input:focus {
  outline: none;
  background: var(--bg-elevated);
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.search-input::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
}

.search-clear {
  position: absolute;
  right: 6px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.15rem;
  line-height: 1;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.06);
}

.search-clear:hover {
  background: rgba(255, 255, 255, 0.14);
  color: var(--text-primary);
}

/* Botão Favoritos no Cabeçalho */
.btn-favorites-header {
  height: 39px;
  padding: 0 11px;
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-size: 0.82rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: border-color var(--transition), background var(--transition), color var(--transition);
}

.btn-favorites-header:hover {
  border-color: var(--border-hover);
  background: var(--bg-elevated);
}

.btn-favorites-header.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-text);
}

.fav-heart-icon {
  font-size: 1rem;
  line-height: 1;
}

.btn-favorites-header.has-favs:not(.is-active) .fav-heart-icon {
  color: var(--heart-active);
}

.fav-header-label {
  display: none;
}

.fav-header-count {
  font-size: 0.78rem;
  font-weight: 700;
}

/* Barra Única de Atalhos + Botão Categorias */
.styles-nav {
  border-top: 1px solid var(--border-subtle);
  padding: 8px 0;
  background: var(--bg-surface);
}

.styles-bar-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.styles-carousel {
  display: none;
  align-items: center;
  gap: 7px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 1px 4px 1px 0;
  flex: 1;
  min-width: 0;
}

.styles-carousel::-webkit-scrollbar {
  display: none;
}

.style-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 13px;
  border-radius: var(--radius-pill);
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all var(--transition);
}

.style-pill:hover {
  border-color: var(--border-hover);
  color: var(--text-primary);
}

.style-pill.active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-text);
  font-weight: 700;
  box-shadow: 0 3px 12px var(--accent-glow);
}

.style-pill.pill-fav:not(.active) {
  border-color: rgba(244, 63, 94, 0.35);
  color: #FDA4AF;
}

/* Botão Categorias ▾ (Full-width no mobile < 640px, compacto no desktop >= 640px) */
.btn-categories-menu {
  width: 100%;
  min-height: 44px;
  padding: 0 14px;
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  color: var(--text-primary);
  font-size: 0.86rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: border-color var(--transition), background var(--transition), color var(--transition), box-shadow var(--transition);
}

.cat-btn-left {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.cat-btn-label-desktop {
  display: none;
}

.cat-btn-label-mobile {
  display: inline;
  overflow: hidden;
  text-overflow: ellipsis;
}

.btn-categories-menu:hover,
.btn-categories-menu.is-open {
  border-color: var(--accent);
  background: #272A31;
}

.btn-categories-menu.has-selection {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-text);
  box-shadow: 0 4px 14px var(--accent-glow);
}

.btn-categories-menu.has-selection .cat-grid-icon,
.btn-categories-menu.has-selection .cat-arrow {
  color: var(--accent-text);
}

.cat-grid-icon {
  width: 15px;
  height: 15px;
  color: var(--accent);
  flex-shrink: 0;
}

.cat-arrow {
  font-size: 0.82rem;
  color: var(--text-secondary);
  transition: transform 0.22s ease, color var(--transition);
}

.btn-categories-menu.is-open .cat-arrow {
  transform: rotate(180deg);
  color: var(--accent);
}

.btn-categories-menu.has-selection.is-open .cat-arrow {
  color: var(--accent-text);
}

/* Menu / Gaveta Dedicada de Categorias */
.cat-overlay {
  position: fixed;
  inset: 0;
  z-index: 65;
  background: rgba(10, 11, 13, 0.76);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  animation: fadeIn 0.16s ease-out;
}

.cat-overlay[hidden] {
  display: none;
}

.cat-panel {
  width: 100%;
  max-width: 520px;
  max-height: 85dvh;
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-bottom: none;
  border-radius: 22px 22px 0 0;
  box-shadow: var(--shadow-modal);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: slideUp 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}

.cat-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 18px 12px;
  border-bottom: 1px solid var(--border-subtle);
}

.cat-panel-title {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-primary);
}

.cat-panel-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 1.3rem;
  line-height: 1;
  display: grid;
  place-items: center;
  transition: color var(--transition), background var(--transition);
}

.cat-panel-close:hover {
  color: var(--text-primary);
  background: #2C2F37;
}

.cat-panel-body {
  padding: 16px 18px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.cat-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cat-group-title {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-muted);
}

.cat-group-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.cat-option-btn {
  min-height: 42px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-size: 0.82rem;
  font-weight: 600;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  transition: all var(--transition);
}

.cat-option-btn:hover {
  border-color: var(--border-hover);
  background: #282B33;
}

.cat-option-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-text);
  font-weight: 700;
}

.cat-option-todos {
  width: 100%;
  min-height: 44px;
  justify-content: center;
  font-weight: 700;
}

.cat-panel-footer {
  padding: 12px 18px calc(14px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-surface);
}

.btn-cat-all {
  width: 100%;
  min-height: 42px;
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  color: var(--text-primary);
  font-size: 0.84rem;
  font-weight: 700;
  transition: all var(--transition);
}

.btn-cat-all:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ==========================================================================
   Conteúdo Principal & Grid de Produtos
   ========================================================================== */

.main-content {
  flex: 1;
  padding: 16px 0 48px;
  scroll-margin-top: 148px;
}

.results-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-bottom: 12px;
}

.results-meta[hidden] {
  display: none;
}

.reset-link {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
  padding: 4px 8px;
  border-radius: 6px;
  transition: background var(--transition);
}

.reset-link:hover {
  background: var(--accent-soft);
}

/* Grid: 2 colunas mobile, 3 tablet, 4 desktop */
.products-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
}

/* Card de Produto Limpo */
.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.55);
}

.card-media {
  position: relative;
  aspect-ratio: 1 / 1;
  background: #0D0D11;
  overflow: hidden;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}

.product-card:hover .card-media img {
  transform: scale(1.06);
}

.card-grade-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 3px 8px;
  border-radius: 7px;
  background: rgba(9, 9, 11, 0.82);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--text-primary);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.card-fav-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 3;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(9, 9, 11, 0.74);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--text-primary);
  font-size: 1.05rem;
  line-height: 1;
  display: grid;
  place-items: center;
  transition: transform var(--transition), background var(--transition), color var(--transition), border-color var(--transition);
}

.card-fav-btn:hover {
  transform: scale(1.08);
  background: rgba(9, 9, 11, 0.92);
}

.card-fav-btn.is-fav {
  color: var(--heart-active);
  border-color: rgba(244, 63, 94, 0.5);
  background: rgba(9, 9, 11, 0.88);
}

.card-body {
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.card-titulo {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-ref {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.1;
  color: #A1A1AA;
  margin-bottom: 6px;
}

.btn-choose-size {
  margin-top: auto;
  width: 100%;
  min-height: 42px;
  padding: 9px 10px;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: var(--accent-text);
  font-size: 0.82rem;
  font-weight: 700;
  text-align: center;
  transition: background var(--transition), transform var(--transition);
}

.btn-choose-size:hover {
  background: var(--accent-hover);
}

/* ==========================================================================
   Paginação Numerada Inteligente & Estado Vazio
   ========================================================================== */

.pagination-wrap {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.pagination-wrap[hidden] {
  display: none;
}

.pagination-info {
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.pagination-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  max-width: 100%;
}

.page-btn {
  min-width: 38px;
  height: 38px;
  padding: 0 10px;
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.page-btn:hover:not(:disabled):not(.active) {
  border-color: var(--border-hover);
  color: var(--text-primary);
  background: var(--bg-elevated);
}

.page-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-text);
  box-shadow: 0 4px 14px var(--accent-glow);
  cursor: default;
}

.page-btn.page-nav {
  padding: 0 13px;
  color: var(--text-primary);
  border-color: var(--border-strong);
}

.page-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.page-ellipsis {
  min-width: 24px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-weight: 700;
  user-select: none;
}

.empty-state {
  text-align: center;
  padding: 52px 20px;
  background: var(--bg-surface);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-lg);
  max-width: 460px;
  margin: 24px auto;
}

.empty-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  display: grid;
  place-items: center;
}

.empty-icon svg {
  width: 24px;
  height: 24px;
}

.empty-state h2 {
  font-size: 1.12rem;
  margin-bottom: 6px;
}

.empty-state p {
  font-size: 0.86rem;
  color: var(--text-secondary);
  margin-bottom: 18px;
}

.btn-secondary {
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: var(--accent-text);
  font-weight: 700;
  font-size: 0.86rem;
}

/* ==========================================================================
   Modal Estilo App (Bottom Sheet no Celular com Rodapé Fixo)
   ========================================================================== */

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(10, 11, 13, 0.84);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
  animation: fadeIn 0.18s ease-out;
}

.modal-backdrop[hidden] {
  display: none;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-dialog {
  position: relative;
  width: 100%;
  max-width: 820px;
  max-height: 92dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-bottom: none;
  border-radius: 22px 22px 0 0;
  box-shadow: var(--shadow-modal);
  animation: slideUp 0.24s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes slideUp {
  from {
    transform: translateY(36px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.sheet-handle-bar {
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  padding: 10px 0 6px;
  background: #0D0D11;
}

.sheet-handle {
  width: 42px;
  height: 4px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.24);
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 8;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(9, 9, 11, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--text-primary);
  font-size: 1.45rem;
  line-height: 1;
  display: grid;
  place-items: center;
  transition: background var(--transition), transform var(--transition);
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: rotate(90deg);
}

.modal-scroll-area {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.modal-scroll-area::-webkit-scrollbar {
  display: none;
}

.modal-body {
  display: grid;
  grid-template-columns: 1fr;
}

.modal-gallery {
  display: flex;
  flex-direction: column;
  background: #0D0D11;
  min-width: 0;
}

.modal-media {
  position: relative;
  background: #0D0D11;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  user-select: none;
  touch-action: pan-y;
}

.modal-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-counter {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 3;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: rgba(9, 9, 11, 0.84);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--text-primary);
  font-size: 0.74rem;
  font-weight: 700;
}

.modal-counter[hidden] {
  display: none;
}

.modal-grade-badge {
  position: absolute;
  bottom: 10px;
  left: 10px;
  z-index: 3;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: rgba(9, 9, 11, 0.88);
  border: 1px solid rgba(163, 230, 53, 0.45);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(9, 9, 11, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--text-primary);
  font-size: 1.6rem;
  line-height: 1;
  display: grid;
  place-items: center;
  padding-bottom: 2px;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.carousel-btn[hidden] {
  display: none;
}

.carousel-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-text);
}

.carousel-prev { left: 10px; }
.carousel-next { right: 10px; }

.modal-thumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: #0B0B0E;
  border-top: 1px solid var(--border-subtle);
  overflow-x: auto;
  scrollbar-width: none;
}

.modal-thumbs[hidden] {
  display: none;
}

.modal-thumbs::-webkit-scrollbar {
  display: none;
}

.thumb-btn {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  border-radius: 9px;
  overflow: hidden;
  border: 2px solid transparent;
  background: var(--bg-elevated);
  opacity: 0.62;
  transition: border-color var(--transition), opacity var(--transition);
}

.thumb-btn:hover {
  opacity: 0.95;
}

.thumb-btn.active {
  border-color: var(--accent);
  opacity: 1;
  box-shadow: 0 0 0 2px var(--accent-glow);
}

.thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-details {
  padding: 16px 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.modal-top-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.modal-ref-badge {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--accent);
}

.modal-category-tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.72rem;
  font-weight: 600;
}

.modal-category-tag[hidden] {
  display: none;
}

.modal-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.modal-title {
  font-size: 1.38rem;
  font-weight: 700;
  line-height: 1.15;
  color: var(--text-primary);
}

.btn-modal-fav {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  color: var(--text-primary);
  font-size: 1.2rem;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: all var(--transition);
}

.btn-modal-fav.is-fav {
  color: var(--heart-active);
  border-color: rgba(244, 63, 94, 0.5);
  background: rgba(244, 63, 94, 0.12);
}

.modal-grade-text {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: -4px;
}

.sizes-section {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.sizes-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.sizes-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
}

.sizes-selected {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
}

.sizes-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 7px;
}

.sizes-grid.shake {
  animation: shake 0.35s ease-in-out;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

.size-btn {
  min-height: 44px;
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  color: var(--text-primary);
  font-size: 0.92rem;
  font-weight: 700;
  transition: all var(--transition);
}

.size-btn:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.size-btn.selected {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-text);
  box-shadow: 0 4px 14px var(--accent-glow);
}

.sizes-hint {
  font-size: 0.79rem;
  color: #FBBF24;
  font-weight: 600;
}

/* Rodapé Fixo do Bottom Sheet (WhatsApp sempre visível no celular) */
.modal-sticky-footer {
  flex-shrink: 0;
  padding: 12px 16px calc(14px + env(safe-area-inset-bottom, 0px));
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 50px;
  padding: 12px 18px;
  border-radius: var(--radius-md);
  background: var(--whatsapp);
  color: var(--whatsapp-text);
  font-size: 0.96rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  box-shadow: 0 8px 22px var(--whatsapp-glow);
  transition: background var(--transition), transform var(--transition);
}

.btn-whatsapp:hover {
  background: var(--whatsapp-hover);
  transform: translateY(-1px);
}

.wa-icon {
  width: 21px;
  height: 21px;
  flex-shrink: 0;
}

.merchant-supplier-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(163, 230, 53, 0.08);
  border: 1px solid rgba(163, 230, 53, 0.24);
  transition: color var(--transition), background var(--transition), border-color var(--transition);
}

.merchant-supplier-link[hidden] {
  display: none;
}

.merchant-supplier-link:hover {
  color: var(--accent-hover);
  background: rgba(163, 230, 53, 0.16);
  border-color: var(--border-hover);
}

/* ==========================================================================
   Rodapé Compacto (Respiro p/ Botões Flutuantes no Mobile)
   ========================================================================== */

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: #0D0E11;
  padding: 24px 16px 20px;
}

.footer-container {
  padding: 0;
}

.footer-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
}

.footer-identity {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.footer-brand-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
}

.footer-logo {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.32rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1;
  text-transform: uppercase;
  color: var(--text-primary);
}

.footer-tagline {
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.footer-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-wa-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  background: #25D366;
  color: #09090B;
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.26);
  transition: background var(--transition), transform var(--transition);
}

.footer-wa-btn:hover {
  background: var(--whatsapp-hover);
  transform: translateY(-1px);
}

.footer-wa-icon {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}

.footer-insta {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.footer-insta:hover {
  color: var(--accent);
}

.footer-bottom {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.74rem;
  color: var(--text-muted);
  text-align: center;
}

.back-to-top {
  position: fixed;
  right: 17px;
  bottom: 76px;
  z-index: 35;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--bg-elevated);
  border: 1px solid var(--border-hover);
  color: var(--accent);
  display: grid;
  place-items: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
  transition: all var(--transition);
}

.back-to-top[hidden] {
  display: none;
}

.back-to-top:hover {
  background: var(--accent);
  color: var(--accent-text);
}

.back-to-top svg {
  width: 19px;
  height: 19px;
}

.floating-wa {
  position: fixed;
  right: 14px;
  bottom: 16px;
  z-index: 45;
  width: 48px;
  height: 48px;
  padding: 0;
  border-radius: 50%;
  background: var(--whatsapp);
  color: var(--whatsapp-text);
  font-size: 0.88rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 8px 24px var(--whatsapp-glow);
  transition: background var(--transition), transform var(--transition);
}

.floating-wa:hover {
  background: var(--whatsapp-hover);
  transform: translateY(-2px) scale(1.04);
}

.floating-wa svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.floating-wa-label {
  display: none;
}

/* ==========================================================================
   Breakpoints Responsivos (Tablet >= 640px e Desktop >= 1024px)
   ========================================================================== */

@media (min-width: 640px) {
  .container {
    padding: 0 22px;
  }

  .brand-logo {
    width: 40px;
    height: 40px;
  }

  .styles-carousel {
    display: flex;
  }

  .btn-categories-menu {
    width: auto;
    min-height: 0;
    padding: 6px 12px;
    border-radius: var(--radius-pill);
    font-size: 0.8rem;
    justify-content: center;
    gap: 6px;
  }

  .btn-categories-menu.has-selection {
    background: var(--bg-elevated);
    border-color: var(--border-strong);
    color: var(--text-primary);
    box-shadow: none;
  }

  .btn-categories-menu.has-selection .cat-grid-icon {
    color: var(--accent);
  }

  .btn-categories-menu.has-selection .cat-arrow {
    color: var(--text-secondary);
  }

  .cat-btn-label-desktop {
    display: inline;
  }

  .cat-btn-label-mobile {
    display: none;
  }

  .fav-header-label {
    display: inline;
  }

  .products-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }

  .card-body {
    padding: 12px;
  }

  .modal-backdrop {
    align-items: center;
    padding: 20px;
  }

  .modal-dialog {
    border-radius: var(--radius-lg);
    border-bottom: 1px solid var(--border-strong);
    max-height: 90vh;
    overflow: hidden;
  }

  .sheet-handle-bar {
    display: none;
  }

  .cat-overlay {
    align-items: flex-start;
    padding: 112px 22px 22px;
    background: rgba(10, 11, 13, 0.45);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
  }

  .cat-panel {
    border-radius: var(--radius-lg);
    border-bottom: 1px solid var(--border-strong);
    max-width: 480px;
  }

  .cat-panel-header {
    padding-top: 14px;
  }

  .modal-body {
    grid-template-columns: 1.02fr 0.98fr;
    align-items: stretch;
  }

  .modal-gallery {
    overflow: hidden;
  }

  .modal-media {
    aspect-ratio: 1 / 1;
    max-height: min(410px, 56vh);
    min-height: 300px;
  }

  .modal-details {
    padding: 22px 24px 18px;
    justify-content: center;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .modal-details::-webkit-scrollbar {
    display: none;
  }
}

@media (min-width: 768px) {
  .site-footer {
    padding: 28px 24px 20px;
  }

  .footer-top {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    gap: 20px;
  }

  .footer-identity {
    align-items: flex-start;
  }

  .footer-brand-row {
    justify-content: flex-start;
  }
}

@media (min-width: 1024px) {
  .site-header.header-hidden {
    transform: none;
  }

  .header-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .brand-name {
    font-size: 1.65rem;
  }

  .header-controls {
    width: auto;
    flex: 1;
    max-width: 520px;
    justify-content: flex-end;
  }

  .styles-carousel {
    flex-wrap: wrap;
    overflow-x: visible;
    padding-right: 0;
  }

  .main-content {
    scroll-margin-top: 118px;
  }

  .products-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
  }

  .card-titulo {
    font-size: 15px;
  }

  .floating-wa {
    width: auto;
    height: 50px;
    padding: 0 18px;
    border-radius: var(--radius-pill);
    right: 20px;
    bottom: 20px;
  }

  .floating-wa-label {
    display: inline;
  }
}
