/* ═══════════════════════════════════════════════════
   LOJA GAMEPLAY DO BOY — Design System
   Estética: E-commerce gamer claro, limpo, focado em produto
   Fonte: Inter / Open Sans
═══════════════════════════════════════════════════ */

:root {
  /* Paleta clara */
  --bg:         #ffffff;
  --bg-alt:     #f5f5f5;
  --bg-soft:    #fafafa;
  --bg-dark:    #1a1a1a;
  --bg-darker:  #0d0d0d;

  /* Texto */
  --ink:        #1a1a1a;
  --ink-2:      #2c2c2c;
  --muted:      #7a7a7a;
  --muted-2:    #a0a0a0;

  /* Acentos */
  --primary:    #1e88e5;   /* azul interativo (links/CTAs) */
  --primary-dk: #1565c0;
  --primary-lt: #e3f2fd;

  --price:      #e53935;   /* vermelho preço/promo */
  --price-dk:   #c62828;

  --pix:        #2e7d32;   /* verde Pix/economia */
  --pix-dk:     #1b5e20;

  --warn:       #f57c00;   /* laranja destaque */

  /* Bordas / superfícies */
  --border:     #e5e5e5;
  --border-2:   #d6d6d6;
  --white:      #ffffff;

  /* Tipografia */
  --sans:       'Inter', 'Open Sans', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  --serif:      var(--sans);

  /* Tokens */
  --radius:     6px;
  --radius-lg:  10px;
  --shadow:     0 2px 8px rgba(0,0,0,.06);
  --shadow-md:  0 4px 16px rgba(0,0,0,.08);
  --shadow-lg:  0 8px 28px rgba(0,0,0,.12);

  --transition: .2s ease;

  /* Compat com código legado que ainda referencia variáveis antigas */
  --cream:    #ffffff;
  --cream-2:  #f5f5f5;
  --cream-3:  #e5e5e5;
  --gold:     var(--primary);
  --gold-2:   var(--primary-lt);
  --gold-dk:  var(--primary-dk);
}

/* ── RESET ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
body {
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
}
img { max-width: 100%; height: auto; display: block; }
a   { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

main { min-height: 60vh; }

/* ══════════════════════════════════════════════════
   TOP BAR (acima do header)
══════════════════════════════════════════════════ */
.top-bar {
  background: var(--bg-dark);
  color: #d6d6d6;
  font-size: 12px;
  border-bottom: 1px solid #2a2a2a;
}
.top-bar-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.top-bar-left,
.top-bar-right {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.top-bar a {
  color: #d6d6d6;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color var(--transition);
}
.top-bar a:hover { color: #fff; }
.top-bar svg { width: 14px; height: 14px; flex-shrink: 0; }

.top-bar-social {
  display: inline-flex;
  gap: 10px;
  align-items: center;
}
.top-bar-social a {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ══════════════════════════════════════════════════
   HEADER
══════════════════════════════════════════════════ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  width: 100%;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}
.site-header.scrolled { box-shadow: 0 2px 10px rgba(0,0,0,.06); }

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  height: 86px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.logo-link { flex-shrink: 0; }
.logo-img  { height: 64px; width: auto; object-fit: contain; }
.logo-text {
  font-family: var(--sans);
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: .2px;
}

/* Busca dominante no header (entre logo e ações) */
.header-search {
  flex: 1;
  min-width: 0;
  max-width: 560px;
  margin: 0 auto;
}
.header-search .search-form { width: 100%; }
.search-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 9px 16px;
  transition: border-color var(--transition), background var(--transition);
}
.search-inner:focus-within {
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(30,136,229,.12);
}
.search-inner svg:first-child { color: var(--muted); flex-shrink: 0; }
.search-inner input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  font-family: var(--sans);
  font-size: 13px;
  color: var(--ink);
}
.search-inner input::placeholder { color: var(--muted); }
.search-inner button {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: background var(--transition);
}
.search-inner button:hover { background: var(--primary-dk); }
.search-toggle { display: none; }

/* Ações do header (conta, carrinho) */
.header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.icon-btn {
  position: relative;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  color: var(--ink);
  border-radius: 999px;
  transition: background var(--transition), color var(--transition);
}
.icon-btn:hover { background: var(--bg-alt); color: var(--primary); }

.cart-badge {
  position: absolute;
  top: 4px; right: 4px;
  min-width: 18px; height: 18px;
  padding: 0 5px;
  background: var(--price);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
}

.account-link {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  height: 42px;
  border-radius: 999px;
  font-size: 13px;
  color: var(--ink);
  transition: background var(--transition);
}
.account-link:hover { background: var(--bg-alt); color: var(--primary); }
.account-link strong { font-weight: 600; }
@media (min-width: 992px) { .account-link { display: inline-flex; } }

.menu-toggle {
  display: none;
  width: 42px; height: 42px;
  border: none;
  background: transparent;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
}
.menu-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: var(--transition);
}

/* ══════════════════════════════════════════════════
   NAV — barra de categorias
══════════════════════════════════════════════════ */
.nav-bar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
}
.nav-bar-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
}
.main-nav { flex: 1; min-width: 0; overflow: visible; }
.nav-menu {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 2px;
  flex-wrap: wrap;
}
.nav-item { position: relative; }
.nav-item > a {
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .2px;
  text-transform: uppercase;
  color: var(--ink);
  padding: 14px 14px;
  white-space: nowrap;
  transition: color var(--transition), background var(--transition);
  border-bottom: 2px solid transparent;
}
.nav-item:hover > a,
.nav-item.open > a {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.arrow-down  { margin-left: 2px; transition: transform .2s; flex-shrink: 0; }
.arrow-right { margin-left: auto; flex-shrink: 0; }
.nav-item:hover > a .arrow-down,
.nav-item.open  > a .arrow-down { transform: rotate(180deg); }

/* Dropdown */
.dropdown {
  display: none;
  position: absolute;
  list-style: none;
  margin: 0;
  padding: 6px 0;
  min-width: 220px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  z-index: 9999;
}
.nav-item:hover > .dropdown,
.nav-item.open  > .dropdown { display: block; }

.dropdown-down  { top: 100%; left: 0; }
.dropdown-right { top: 0; left: 100%; }
.dropdown-down::before  { content: ''; position: absolute; top: -6px; left: 0; right: 0; height: 6px; }
.dropdown-right::before { content: ''; position: absolute; top: 0; left: -6px; width: 6px; bottom: 0; }

.dropdown .nav-item > a {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink-2);
  padding: 10px 16px;
  border-bottom: none;
  width: 100%;
  justify-content: space-between;
}
.dropdown .nav-item > a:hover,
.dropdown .nav-item:hover > a,
.dropdown .nav-item.open  > a {
  background: var(--bg-alt);
  color: var(--primary);
  border-bottom: none;
}

/* ══════════════════════════════════════════════════
   CONTAINERS / WRAPPER
══════════════════════════════════════════════════ */
.wrap, .container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ══════════════════════════════════════════════════
   HERO / BANNERS
══════════════════════════════════════════════════ */
.hero {
  max-width: 1280px;
  margin: 18px auto;
  padding: 0 24px;
  position: relative;
}
.hero-banner-img {
  background-size: cover;
  background-position: center;
  min-height: 360px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  position: relative;
}

.banners-grid {
  max-width: 1280px;
  margin: 18px auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.banner-card {
  display: block;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-alt);
  aspect-ratio: 16/9;
  transition: transform var(--transition), box-shadow var(--transition);
}
.banner-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.banner-card img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 900px) { .banners-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .banners-grid { grid-template-columns: 1fr; } }

/* ══════════════════════════════════════════════════
   SEÇÕES DA HOME
══════════════════════════════════════════════════ */
.section {
  max-width: 1280px;
  margin: 36px auto;
  padding: 0 24px;
}
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  gap: 16px;
}
.section-title {
  font-family: var(--sans);
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -.2px;
  position: relative;
  padding-bottom: 8px;
}
.section-title::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 48px; height: 3px;
  background: var(--primary);
  border-radius: 3px;
}
.section-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.section-link:hover { color: var(--primary-dk); }

/* ══════════════════════════════════════════════════
   PRODUCT GRID + CARD
══════════════════════════════════════════════════ */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  align-items: stretch;
}
.products-grid > * { height: 100%; }
@media (max-width: 1024px) { .products-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px)  { .products-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; } }
@media (max-width: 420px)  { .products-grid { grid-template-columns: 1fr; } }

.product-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;            /* cards na mesma linha têm a mesma altura */
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
  position: relative;
}
.product-card:hover {
  border-color: var(--border-2);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.product-card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 1/1;
  background: var(--bg-soft);
  overflow: hidden;
}
.product-card-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 12px;
  transition: transform .35s ease;
}
.product-card:hover .product-card-media img { transform: scale(1.05); }

.product-card-badge {
  position: absolute;
  top: 8px; left: 8px;
  background: var(--price);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: .3px;
}
.product-card-badge.pix { background: var(--pix); }
.product-card-badge.novo { background: var(--primary); }

.product-card-body {
  padding: 14px 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}
.product-card-name {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 38px;
}
.product-card-name:hover { color: var(--primary); }
.product-card-sku {
  font-size: 11px;
  color: var(--muted-2);
  letter-spacing: .3px;
}

.product-card-price {
  margin-top: 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.price-old {
  font-size: 12px;
  color: var(--muted);
  text-decoration: line-through;
}
.price-installments {
  font-size: 12px;
  color: var(--ink-2);
}
.price-installments strong {
  color: var(--ink);
  font-weight: 700;
}
.price-now {
  font-size: 18px;
  font-weight: 700;
  color: var(--price);
  line-height: 1.1;
}
.price-pix {
  font-size: 11px;
  color: var(--pix);
  font-weight: 600;
}
.price-pix strong { font-weight: 700; }

.product-card-cta {
  margin-top: auto;        /* empurra o botão para o rodapé do card */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 38px;
  padding: 0 14px;
  background: var(--primary);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .4px;
  text-transform: uppercase;
  border: none;
  border-radius: var(--radius);
  transition: background var(--transition), transform var(--transition);
  flex-shrink: 0;
}
.product-card-cta:hover { background: var(--primary-dk); }
.product-card-cta.outline {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--primary);
}
.product-card-cta.outline:hover { background: var(--primary); color: #fff; }

/* ══════════════════════════════════════════════════
   BOTÕES GENÉRICOS
══════════════════════════════════════════════════ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .4px;
  text-transform: uppercase;
  transition: background var(--transition), transform var(--transition);
}
.btn-primary:hover { background: var(--primary-dk); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 18px;
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--primary);
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 600;
  transition: background var(--transition), color var(--transition);
}
.btn-ghost:hover { background: var(--primary); color: #fff; }

.btn-buy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px 22px;
  background: var(--pix);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .4px;
  text-transform: uppercase;
  transition: background var(--transition);
}
.btn-buy:hover { background: var(--pix-dk); }

/* ══════════════════════════════════════════════════
   BREADCRUMB
══════════════════════════════════════════════════ */
.breadcrumb {
  max-width: 1280px;
  margin: 14px auto 0;
  padding: 0 24px;
  font-size: 12px;
  color: var(--muted);
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb .sep { color: var(--muted-2); }

/* ══════════════════════════════════════════════════
   PÁGINA DE PRODUTO
══════════════════════════════════════════════════ */
.product-detail {
  max-width: 1280px;
  margin: 24px auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 36px;
}
@media (max-width: 900px) { .product-detail { grid-template-columns: 1fr; gap: 24px; } }

.product-gallery {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 14px;
}
@media (max-width: 600px) { .product-gallery { grid-template-columns: 1fr; } }
.product-gallery .thumbs {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 540px;
  overflow-y: auto;
}
@media (max-width: 600px) {
  .product-gallery .thumbs { flex-direction: row; max-height: none; overflow-x: auto; }
}
.product-gallery .thumb {
  width: 84px; height: 84px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  background: #fff;
  flex-shrink: 0;
  transition: border-color var(--transition);
}
.product-gallery .thumb.active,
.product-gallery .thumb:hover { border-color: var(--primary); }
.product-gallery .thumb img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.product-gallery .main {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  aspect-ratio: 1/1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-gallery .main img { width: 100%; height: 100%; object-fit: contain; padding: 20px; }

.product-info h1 {
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
  margin-bottom: 8px;
}
.product-info .sku {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 14px;
}
.product-info .reviews {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 18px;
}
.product-info .reviews .stars { color: #ffb300; }

.product-price-box {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  margin-bottom: 18px;
}
.product-price-box .from { font-size: 12px; color: var(--muted); text-decoration: line-through; display: block; margin-bottom: 4px; }
.product-price-box .now  { font-size: 30px; font-weight: 800; color: var(--ink); line-height: 1.1; }
.product-price-box .now small { font-size: 14px; font-weight: 600; color: var(--muted); }
.product-price-box .installments { font-size: 13px; color: var(--ink-2); margin-top: 6px; }
.product-price-box .installments strong { font-weight: 700; }
.product-price-box .pix-line {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--border-2);
  font-size: 13px;
  color: var(--pix);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}
.product-price-box .pix-line strong { font-weight: 800; }

.product-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}
.qty-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.qty-control {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.qty-control button {
  width: 36px; height: 40px;
  border: none;
  background: #fff;
  font-size: 16px;
  color: var(--ink-2);
  transition: background var(--transition);
}
.qty-control button:hover { background: var(--bg-alt); }
.qty-control input {
  width: 44px;
  height: 40px;
  border: none;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  outline: none;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.product-shipping {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 18px;
}
.product-shipping h4 { font-size: 13px; font-weight: 700; margin-bottom: 8px; }
.product-shipping .cep-form { display: flex; gap: 8px; }
.product-shipping .cep-form input {
  flex: 1;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 13px;
}
.product-shipping .cep-form button {
  height: 40px;
  padding: 0 16px;
  background: var(--ink);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.product-description {
  max-width: 1280px;
  margin: 28px auto;
  padding: 0 24px;
}
.product-description h2 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--border);
}
.product-description-body {
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-2);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}

/* ══════════════════════════════════════════════════
   LISTAGEM (categoria / produtos.php)
══════════════════════════════════════════════════ */
.listing {
  max-width: 1280px;
  margin: 24px auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 24px;
}
@media (max-width: 900px) { .listing { grid-template-columns: 1fr; } }

.filters {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  font-size: 13px;
  height: fit-content;
}
.filters h3 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .4px;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.filters ul { list-style: none; display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.filters a { color: var(--ink-2); display: block; padding: 4px 0; }
.filters a:hover, .filters a.active { color: var(--primary); font-weight: 600; }

.listing-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 14px;
}
.listing-header h1 { font-size: 22px; font-weight: 700; color: var(--ink); }
.listing-header .count { font-size: 12px; color: var(--muted); }
.sort-select {
  height: 36px;
  padding: 0 32px 0 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 13px;
  background: #fff;
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin: 28px 0;
}
.pagination a, .pagination span {
  min-width: 36px; height: 36px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 13px;
  color: var(--ink-2);
  background: #fff;
  transition: var(--transition);
}
.pagination a:hover { border-color: var(--primary); color: var(--primary); }
.pagination .active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* ══════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════ */
.site-footer {
  margin-top: 60px;
  background: var(--bg-dark);
  color: #c9c9c9;
  font-size: 13px;
}
.footer-top {
  background: var(--bg-darker);
  padding: 14px 0;
  border-bottom: 1px solid #2a2a2a;
}
.footer-top-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-top-inner .badges {
  display: flex;
  gap: 16px;
  align-items: center;
  color: #aaa;
  font-size: 12px;
  flex-wrap: wrap;
}
.footer-top-inner .badges svg { width: 18px; height: 18px; }

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 36px 24px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 30px;
}
@media (max-width: 900px) { .footer-inner { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-inner { grid-template-columns: 1fr; } }

.footer-brand .footer-logo {
  display: block;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}
.footer-brand p { color: #a8a8a8; line-height: 1.6; margin-bottom: 14px; }

.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 34px; height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #2a2a2a;
  color: #fff;
  transition: background var(--transition);
}
.footer-social a:hover { background: var(--primary); }
.footer-social svg { width: 16px; height: 16px; }

.footer-col h4 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .6px;
  color: #fff;
  margin-bottom: 14px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-col a { color: #c9c9c9; transition: color var(--transition); }
.footer-col a:hover { color: #fff; }

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
  color: #c9c9c9;
}
.footer-contact-item svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 2px; color: var(--primary); }

.footer-bottom {
  border-top: 1px solid #2a2a2a;
  padding: 18px 0;
  background: var(--bg-darker);
}
.footer-bottom-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12px;
  color: #888;
}
.footer-payments {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.footer-payments .pay-pill {
  background: #fff;
  color: #333;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: .3px;
}
.footer-payments .pay-pill.pix-pill { background: var(--pix); color: #fff; }
.footer-payments .pay-pill.mp-pill  { background: #009ee3; color: #fff; }

/* ══════════════════════════════════════════════════
   TOAST + MODAL CARRINHO
══════════════════════════════════════════════════ */
.toast {
  position: fixed;
  bottom: 24px; right: 24px;
  background: var(--ink);
  color: #fff;
  padding: 12px 18px;
  border-radius: var(--radius);
  font-size: 13px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .25s, transform .25s;
  z-index: 99999;
}
.toast.show { opacity: 1; transform: none; }
.toast-success { background: var(--pix); }
.toast-error { background: var(--price); }

/* ══════════════════════════════════════════════════
   MOBILE — header + nav
══════════════════════════════════════════════════ */
@media (max-width: 992px) {
  .top-bar-left .top-bar-greeting,
  .top-bar-right .top-bar-help { display: none; }
}
@media (max-width: 768px) {
  .top-bar { display: none; }
  .header-inner { height: 64px; gap: 12px; padding: 0 14px; }
  .logo-img { height: 44px; }

  .header-search {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    padding: 12px 14px;
    background: #fff;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    z-index: 8000;
  }
  .header-search.aberta { display: block; }
  .search-toggle { display: inline-flex; }

  .nav-bar { display: none; }
  .main-nav {
    display: none;
    position: fixed;
    top: 64px; left: 0; right: 0; bottom: 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    padding: 8px 0 24px;
    overflow-y: auto;
    z-index: 199;
  }
  .main-nav.open { display: flex; }
  .main-nav > .nav-menu {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .nav-item > a {
    padding: 14px 22px;
    font-size: 14px;
    border-bottom: 1px solid var(--border);
    text-transform: none;
    font-weight: 500;
  }
  .nav-item:hover > a,
  .nav-item.open  > a { border-bottom-color: var(--border); background: var(--bg-alt); }

  .dropdown {
    position: static;
    box-shadow: none;
    border: none;
    border-radius: 0;
    background: var(--bg-alt);
    padding: 0;
  }
  .dropdown .nav-item > a { padding-left: 36px; }

  .menu-toggle { display: inline-flex; }
  .account-link { display: none; }
}

/* ══════════════════════════════════════════════════
   UTIL
══════════════════════════════════════════════════ */
.text-muted { color: var(--muted); }
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.hidden { display: none !important; }
