/* ============================================================
   VERSOS DE PRATA — style.css
   Design system + componentes + carrinho + responsividade
   ============================================================ */

/* ------------------------------------------------------------
   1. VARIÁVEIS & RESET
------------------------------------------------------------ */
:root {
  --white:      #ffffff;
  --black:      #1a1a1a;
  --gray-light: #f7f7f7;
  --gray-mid:   #e0e0e0;
  --gray-text:  #666666;
  --green-wa:   #25D366;

  --font-serif:  'Cormorant Garamond', Georgia, serif;
  --font-sans:   'Raleway', 'Helvetica Neue', Arial, sans-serif;

  --radius:     0px;          /* visual quadrado, fiel ao original */
  --transition: 0.22s ease;
  --shadow-sm:  0 2px 12px rgba(0,0,0,0.08);
  --shadow-md:  0 6px 32px rgba(0,0,0,0.13);

  --max-w: 1240px;
  --header-h: 140px;        /* header-top + nav */
}

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

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--white);
  color: var(--black);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a  { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { display: block; max-width: 100%; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea { font-family: inherit; }

/* ------------------------------------------------------------
   2. UTILITÁRIOS
------------------------------------------------------------ */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 40px;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
}

/* Skeleton loading */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.4s infinite;
  border-radius: 2px;
}
@keyframes skeleton-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Fade-in para cards carregados */
.fade-in {
  animation: fadeIn 0.35s ease forwards;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Estado vazio */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--gray-text);
  grid-column: 1 / -1;
}
.empty-state svg { margin: 0 auto 16px; opacity: .35; }
.empty-state p { font-size: 15px; }

/* ------------------------------------------------------------
   3. HEADER
------------------------------------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  background: var(--white);
  z-index: 200;
  border-bottom: 1px solid var(--gray-mid);
}

/* Topo do header */
.header-top {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 16px 40px;
  max-width: var(--max-w);
  margin: 0 auto;
}

.header-left  { display: flex; align-items: center; gap: 8px; }
.header-right { display: flex; align-items: center; gap: 20px; justify-content: flex-end; }

/* Botões de ícone */
.icon-btn {
  display: flex; align-items: center; justify-content: center;
  padding: 6px;
  color: var(--black);
  transition: opacity var(--transition);
  background: none; border: none; cursor: pointer;
}
.icon-btn:hover { opacity: .5; }
.icon-btn svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.6; }

/* Logo */
.site-logo { display: flex; align-items: center; justify-content: center; }
.logo-svg  { width: 88px; height: 88px; }

/* Carrinho — badge */
.cart-wrapper { position: relative; }
.cart-badge {
  position: absolute;
  top: -3px; right: -7px;
  background: var(--black);
  color: var(--white);
  font-size: 10px; font-weight: 700;
  width: 17px; height: 17px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  pointer-events: none;
  transition: transform 0.2s ease;
}
.cart-badge.bump { transform: scale(1.4); }

/* Hamburger mobile */
.btn-menu {
  display: none;
  flex-direction: column; gap: 5px;
  padding: 4px;
}
.btn-menu span {
  display: block; width: 22px; height: 1.5px;
  background: var(--black);
  transition: all .3s ease;
}
.btn-menu.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.btn-menu.open span:nth-child(2) { opacity: 0; }
.btn-menu.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Navegação */
.site-nav { border-top: 1px solid var(--gray-mid); }
.site-nav ul {
  display: flex; justify-content: center; gap: 52px;
  padding: 13px 0;
  max-width: var(--max-w); margin: 0 auto;
}
.site-nav a {
  font-size: 13px; font-weight: 400;
  letter-spacing: .07em;
  color: var(--black);
  transition: opacity var(--transition);
  position: relative; padding-bottom: 2px;
}
.site-nav a::after {
  content: '';
  position: absolute; bottom: -2px; left: 0; right: 100%;
  height: 1px; background: var(--black);
  transition: right var(--transition);
}
.site-nav a:hover::after,
.site-nav a.active::after { right: 0; }
.site-nav a:hover,
.site-nav a.active { opacity: .6; }

/* ------------------------------------------------------------
   4. SEARCH OVERLAY
------------------------------------------------------------ */
.search-overlay {
  position: fixed; inset: 0;
  background: rgba(255,255,255,.97);
  z-index: 500;
  display: flex; align-items: flex-start; justify-content: center;
  padding-top: 120px;
  opacity: 0; pointer-events: none;
  transition: opacity var(--transition);
}
.search-overlay.open { opacity: 1; pointer-events: all; }

.search-box {
  width: 100%; max-width: 580px;
  padding: 0 24px;
}
.search-input-row {
  position: relative;
}
.search-box input {
  width: 100%; border: none;
  border-bottom: 2px solid var(--black);
  font-size: 22px; font-family: var(--font-serif);
  padding: 10px 44px 10px 0;
  outline: none; background: transparent;
  letter-spacing: .03em;
}
.search-box input::placeholder { color: #bbb; font-style: italic; }
.search-close {
  position: absolute; right: 0; top: 50%;
  transform: translateY(-50%);
  font-size: 20px; color: var(--black); line-height: 1;
  background: none; border: none; cursor: pointer;
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
}
.search-close:hover {
  opacity: .6;
}

/* Resultados inline na overlay */
.search-results-overlay {
  margin-top: 28px;
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 16px; max-width: 580px; width: 100%;
}
.search-result-item {
  display: flex; gap: 12px; align-items: center;
  padding: 10px; border: 1px solid var(--gray-mid);
  transition: border-color var(--transition); cursor: pointer;
}
.search-result-item:hover { border-color: var(--black); }
.search-result-item img { width: 54px; height: 54px; object-fit: cover; flex-shrink: 0; }
.search-result-info p   { font-size: 12px; line-height: 1.4; }
.search-result-info span { font-size: 12px; color: var(--gray-text); }

/* ------------------------------------------------------------
   5. BADGE "FRETE GRÁTIS"
------------------------------------------------------------ */
.badge-frete {
  position: absolute; top: 0; left: 0;
  background: var(--black); color: var(--white);
  font-size: 10.5px; font-weight: 500;
  letter-spacing: .04em;
  padding: 5px 11px;
  z-index: 2; pointer-events: none;
}

/* ------------------------------------------------------------
   6. CARD DE PRODUTO
------------------------------------------------------------ */
.product-card {
  display: flex; flex-direction: column;
  cursor: pointer;
}
.product-card:hover .product-img { transform: scale(1.04); }

.product-img-wrap {
  overflow: hidden;
  background: var(--gray-light);
  position: relative;
  aspect-ratio: 3/4;
}
.product-img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .45s ease;
}
.product-img.lazy { opacity: 0; transition: opacity .3s ease, transform .45s ease; }
.product-img.loaded { opacity: 1; }

.product-info {
  padding: 11px 0 6px;
  text-align: center;
}
.product-name {
  font-size: 12.5px; font-weight: 400;
  color: var(--black); line-height: 1.45;
  margin-bottom: 5px;
}
.product-price {
  font-size: 13px; font-weight: 400;
  color: var(--black);
}

/* Botão rápido "Adicionar ao carrinho" (aparece no hover) */
.product-card-actions {
  padding: 0 0 4px;
  text-align: center;
  max-height: 0; overflow: hidden;
  transition: max-height .25s ease, padding .25s ease;
}
.product-card:hover .product-card-actions {
  max-height: 52px;
  padding-bottom: 8px;
}
.btn-add-card {
  font-size: 11px; font-weight: 600;
  letter-spacing: .09em; text-transform: uppercase;
  color: var(--white); background: var(--black);
  padding: 8px 20px;
  transition: opacity var(--transition);
  border: none; cursor: pointer;
  white-space: nowrap;
}
.btn-add-card:hover { opacity: .75; }

/* ------------------------------------------------------------
   7. HOMEPAGE — DESTAQUES
------------------------------------------------------------ */
.section-destaques {
  padding: 52px 0 80px;
}
.section-destaques .container { /* herda */ }

.section-title {
  font-family: var(--font-sans);
  font-size: 17px; font-weight: 400;
  letter-spacing: .08em; text-align: center;
  margin-bottom: 36px;
}

.destaques-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* CTA Ver todos */
.section-cta {
  text-align: center;
  margin-top: 44px;
}
.btn-outline {
  display: inline-block;
  padding: 13px 40px;
  border: 1px solid var(--black);
  font-size: 12px; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--black);
  transition: all var(--transition);
}
.btn-outline:hover { background: var(--black); color: var(--white); }

/* ------------------------------------------------------------
   8. PÁGINA PRODUTOS
------------------------------------------------------------ */
.page-produtos { padding: 44px 0 80px; }

.page-title {
  font-family: var(--font-sans);
  font-size: 17px; font-weight: 400;
  letter-spacing: .08em; text-align: center;
  margin-bottom: 22px;
}

/* Barra de controles (busca + filtro) */
.produtos-controls {
  display: flex; align-items: center;
  justify-content: space-between; gap: 16px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

/* Search inline (página produtos) */
.search-inline {
  display: flex; align-items: center;
  border: 1px solid var(--gray-mid);
  padding: 0 14px; gap: 8px;
  flex: 1; max-width: 340px;
  transition: border-color var(--transition);
}
.search-inline:focus-within { border-color: var(--black); }
.search-inline svg { width: 16px; height: 16px; stroke: var(--gray-text); flex-shrink: 0; }
.search-inline input {
  border: none; outline: none;
  font-size: 13px; padding: 10px 0;
  width: 100%; background: transparent;
  color: var(--black);
}
.search-inline input::placeholder { color: #bbb; }
.search-inline input::-webkit-search-decoration,
.search-inline input::-webkit-search-cancel-button,
.search-inline input::-webkit-search-results-button,
.search-inline input::-webkit-search-results-decoration,
.search-box input::-webkit-search-decoration,
.search-box input::-webkit-search-cancel-button,
.search-box input::-webkit-search-results-button,
.search-box input::-webkit-search-results-decoration {
  -webkit-appearance: none;
  appearance: none;
}

/* Filtros por categoria */
.filter-bar {
  display: flex; gap: 8px;
  flex-wrap: wrap;
}
.btn-cat {
  padding: 8px 18px;
  border: 1px solid var(--gray-mid);
  font-size: 12px; font-weight: 500;
  letter-spacing: .05em;
  color: var(--black);
  transition: all var(--transition);
  background: var(--white);
}
.btn-cat:hover { border-color: var(--black); }
.btn-cat.active { background: var(--black); color: var(--white); border-color: var(--black); }

/* Contagem de resultados */
.produtos-count {
  font-size: 12px; color: var(--gray-text);
  margin-bottom: 20px; letter-spacing: .02em;
}

/* Grid */
.produtos-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px 22px;
}

/* ------------------------------------------------------------
   9. PÁGINA PRODUTO DETALHE
------------------------------------------------------------ */
.page-produto { padding: 32px 0 80px; }

.breadcrumb {
  font-size: 12px; color: var(--gray-text);
  margin-bottom: 32px;
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
}
.breadcrumb a { color: var(--gray-text); transition: color var(--transition); }
.breadcrumb a:hover { color: var(--black); }
.breadcrumb .sep { color: #bbb; }
.breadcrumb .current { color: var(--black); }

/* Layout 2 colunas */
.produto-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 52px;
  align-items: start;
}

/* Galeria */
.gallery { display: flex; gap: 12px; }

.thumb-col {
  display: flex; flex-direction: column;
  gap: 8px; align-items: center;
}
.thumb-scroll {
  display: flex; flex-direction: column;
  gap: 8px; overflow: hidden;
  max-height: 282px; position: relative;
}
.thumb {
  width: 70px; height: 70px; flex-shrink: 0;
  overflow: hidden; cursor: pointer;
  border: 2px solid transparent;
  transition: border-color var(--transition);
}
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.active { border-color: var(--black); }
.thumb:hover   { border-color: var(--gray-text); }

.thumb-nav {
  display: flex; flex-direction: column; gap: 4px; margin-top: 4px;
}
.btn-thumb-nav {
  width: 28px; height: 26px;
  border: 1px solid var(--gray-mid);
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition);
}
.btn-thumb-nav:hover { background: var(--black); }
.btn-thumb-nav:hover svg { stroke: var(--white); }
.btn-thumb-nav svg { width: 13px; height: 13px; stroke: var(--black); fill: none; stroke-width: 2.2; }

.gallery-main {
  flex: 1; position: relative; overflow: hidden;
}
.gallery-main-img {
  width: 100%; aspect-ratio: 3/4;
  object-fit: cover; display: block;
  transition: opacity .25s ease;
}

/* Info panel */
.produto-info-panel { padding-top: 4px; }
.produto-nome  { font-size: 22px; font-weight: 400; line-height: 1.3; margin-bottom: 20px; }
.produto-preco { font-size: 22px; font-weight: 400; margin-bottom: 6px; }
.produto-frete { font-size: 12px; color: var(--gray-text); margin-bottom: 18px; letter-spacing: .03em; }
.produto-estoque-aviso {
  font-size: 13px; font-weight: 600; color: var(--black);
  margin-bottom: 24px; letter-spacing: .02em;
}
.produto-estoque-aviso.urgente { color: #c0392b; }

/* Qty + Comprar */
.comprar-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

.produto-size-block {
  margin-bottom: 24px;
}
.produto-size-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.produto-size-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gray-text);
}
.produto-size-selected {
  font-size: 13px;
  color: var(--black);
}
.produto-size-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.size-btn {
  min-width: 54px;
  padding: 12px 16px;
  border: 1px solid var(--gray-mid);
  background: linear-gradient(180deg, #fff 0%, #f8f8f8 100%);
  color: var(--black);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .04em;
  transition: all var(--transition);
}
.size-btn:hover {
  border-color: var(--black);
  transform: translateY(-1px);
}
.size-btn.active {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
  box-shadow: var(--shadow-sm);
}

.qty-ctrl {
  display: flex; align-items: center;
  border: 1px solid var(--gray-mid); height: 48px;
}
.qty-btn {
  width: 44px; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 300; color: var(--black);
  transition: background var(--transition);
}
.qty-btn:hover { background: var(--gray-light); }
.qty-num {
  width: 44px; height: 100%;
  text-align: center;
  border-left: 1px solid var(--gray-mid);
  border-right: 1px solid var(--gray-mid);
  font-size: 14px; color: var(--black);
  outline: none; background: transparent;
  -moz-appearance: textfield;
}
.qty-num::-webkit-outer-spin-button,
.qty-num::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.btn-comprar {
  flex: 1; height: 48px; min-width: 200px;
  background: var(--black); color: var(--white);
  font-size: 12px; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  transition: opacity var(--transition);
}
.btn-comprar:hover { opacity: .8; }
.btn-comprar:active { opacity: .6; }

/* Descrição */
.produto-desc {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--gray-mid);
}
.produto-desc h3 {
  font-size: 11px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--gray-text); margin-bottom: 14px;
}
.produto-desc p { font-size: 14px; color: var(--gray-text); line-height: 1.85; }

/* ------------------------------------------------------------
   10. CARRINHO — PAINEL LATERAL
------------------------------------------------------------ */
/* Overlay de fundo */
.cart-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 300;
  opacity: 0; pointer-events: none;
  transition: opacity .3s ease;
}
.cart-overlay.open { opacity: 1; pointer-events: all; }

/* Painel */
.cart-panel {
  position: fixed; top: 0; right: 0;
  width: 420px; max-width: 100vw; height: 100vh;
  background: var(--white);
  z-index: 301;
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform .32s cubic-bezier(.4,0,.2,1);
  box-shadow: var(--shadow-md);
}
.cart-panel.open { transform: translateX(0); }

/* Header do painel */
.cart-header {
  display: flex; align-items: center;
  justify-content: space-between;
  padding: 22px 24px 20px;
  border-bottom: 1px solid var(--gray-mid);
  flex-shrink: 0;
}
.cart-title {
  font-size: 14px; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase;
}
.btn-cart-close {
  font-size: 20px; color: var(--black);
  line-height: 1; padding: 4px;
  transition: opacity var(--transition);
}
.btn-cart-close:hover { opacity: .5; }

/* Lista de itens */
.cart-body {
  flex: 1; overflow-y: auto;
  padding: 16px 24px;
}

/* Estado vazio do carrinho */
.cart-empty {
  text-align: center; padding: 60px 20px;
  color: var(--gray-text);
}
.cart-empty svg { margin: 0 auto 18px; opacity: .25; }
.cart-empty p { font-size: 14px; }

/* Item do carrinho */
.cart-item {
  display: flex; gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--gray-mid);
  animation: fadeIn .25s ease;
}
.cart-item:last-child { border-bottom: none; }

.cart-item-img {
  width: 76px; height: 76px;
  object-fit: cover; flex-shrink: 0;
}
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name {
  font-size: 13px; font-weight: 400;
  line-height: 1.4; margin-bottom: 6px;
  /* quebra longa */
  overflow: hidden; display: -webkit-box;
  -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.cart-item-price { font-size: 13px; color: var(--gray-text); margin-bottom: 10px; }

.cart-item-size {
  font-size: 12px;
  color: var(--gray-text);
  margin-bottom: 4px;
}

/* Qty inline no carrinho */
.cart-item-qty {
  display: flex; align-items: center; gap: 0;
  border: 1px solid var(--gray-mid); width: fit-content;
}
.cart-qty-btn {
  width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 300; color: var(--black);
  transition: background var(--transition);
}
.cart-qty-btn:hover { background: var(--gray-light); }
.cart-qty-val {
  width: 32px; height: 30px;
  text-align: center; font-size: 13px;
  border-left: 1px solid var(--gray-mid);
  border-right: 1px solid var(--gray-mid);
  display: flex; align-items: center; justify-content: center;
  user-select: none;
}

/* Footer do painel */
.cart-footer {
  padding: 20px 24px 28px;
  border-top: 1px solid var(--gray-mid);
  flex-shrink: 0;
}
.cart-subtotal {
  display: flex; justify-content: space-between;
  align-items: center; margin-bottom: 6px;
  font-size: 14px;
}
.cart-subtotal strong { font-weight: 600; }
.cart-subtotal-val   { font-size: 16px; font-weight: 600; }
.cart-frete-info {
  font-size: 12px; color: var(--gray-text);
  margin-bottom: 20px; text-align: right;
}

.btn-whatsapp {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; padding: 15px;
  background: var(--green-wa); color: var(--white);
  font-size: 13px; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase;
  text-decoration: none;
  transition: opacity var(--transition);
  border: none; cursor: pointer;
}
.btn-whatsapp:hover { opacity: .87; }
.btn-whatsapp svg   { width: 20px; height: 20px; fill: var(--white); }

.btn-continue-shopping {
  display: block; width: 100%;
  text-align: center; padding: 12px;
  font-size: 12px; color: var(--gray-text);
  letter-spacing: .05em;
  border: 1px solid var(--gray-mid);
  margin-top: 10px;
  transition: all var(--transition);
  background: none; cursor: pointer;
  font-family: var(--font-sans);
}
.btn-continue-shopping:hover { border-color: var(--black); color: var(--black); }

/* Toast de feedback */
.toast {
  position: fixed; bottom: 28px; left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--black); color: var(--white);
  padding: 12px 28px; font-size: 13px;
  letter-spacing: .04em; z-index: 999;
  opacity: 0; pointer-events: none;
  transition: all .3s ease;
  white-space: nowrap;
}
.toast.show {
  opacity: 1; transform: translateX(-50%) translateY(0);
}

/* ------------------------------------------------------------
   11. PÁGINA CONTATO
------------------------------------------------------------ */
.page-contato { padding: 52px 0 80px; }
.contato-inner {
  max-width: 560px; margin: 0 auto;
  text-align: center;
}
.contato-desc {
  font-size: 14px; color: var(--gray-text);
  line-height: 1.9; margin-bottom: 36px;
}
.contact-form {
  display: flex; flex-direction: column;
  gap: 16px; text-align: left;
}
.form-group label {
  display: block; font-size: 11px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--gray-text); margin-bottom: 6px;
}
.form-group input,
.form-group textarea {
  width: 100%;
  border: 1px solid var(--gray-mid);
  padding: 12px 14px;
  font-size: 14px; color: var(--black);
  outline: none; background: transparent;
  transition: border-color var(--transition);
}
.form-group input:focus,
.form-group textarea:focus { border-color: var(--black); }
.form-group textarea { min-height: 130px; resize: vertical; }
.btn-submit {
  width: 100%; padding: 15px;
  background: var(--black); color: var(--white);
  font-size: 12px; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  border: none; cursor: pointer;
  transition: opacity var(--transition);
  font-family: var(--font-sans); margin-top: 6px;
}
.btn-submit:hover { opacity: .8; }

.contato-separador {
  margin: 40px 0 32px;
  border: none; border-top: 1px solid var(--gray-mid);
}
.contato-wa-title {
  font-size: 14px; color: var(--gray-text);
  margin-bottom: 18px; letter-spacing: .02em;
}
.btn-whatsapp-contato {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--green-wa); color: var(--white);
  padding: 14px 32px;
  font-size: 13px; font-weight: 600;
  letter-spacing: .07em; text-transform: uppercase;
  border: none; cursor: pointer; font-family: var(--font-sans);
  text-decoration: none;
  transition: opacity var(--transition);
}
.btn-whatsapp-contato:hover { opacity: .87; }
.btn-whatsapp-contato svg { width: 20px; height: 20px; fill: var(--white); }

/* ------------------------------------------------------------
   12. FOOTER
------------------------------------------------------------ */
.site-footer {
  border-top: 1px solid var(--gray-mid);
  padding: 44px 40px 32px;
  margin-top: 20px;
}
.footer-inner {
  max-width: var(--max-w); margin: 0 auto;
  display: flex; flex-direction: column;
  align-items: center; gap: 20px;
}
.footer-logo { width: 58px; height: 58px; }
.footer-nav ul { display: flex; gap: 32px; flex-wrap: wrap; justify-content: center; }
.footer-nav a  {
  font-size: 11px; letter-spacing: .08em;
  color: var(--gray-text); text-transform: uppercase;
  transition: color var(--transition);
}
.footer-nav a:hover { color: var(--black); }
.footer-copy { font-size: 11px; color: #bbb; letter-spacing: .04em; }

/* ------------------------------------------------------------
   13. COOKIE BANNER
------------------------------------------------------------ */
.cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: #f9f9f9;
  border-top: 1px solid var(--gray-mid);
  padding: 14px 24px;
  display: flex; align-items: center; justify-content: center;
  gap: 16px; flex-wrap: wrap;
  font-size: 13px; color: var(--gray-text);
  z-index: 400;
}
.cookie-banner p { text-align: center; }
.cookie-banner strong { color: var(--black); }
.btn-cookie {
  font-size: 13px; font-weight: 700;
  color: var(--black); text-decoration: underline;
  letter-spacing: .04em;
  background: none; border: none; cursor: pointer;
  font-family: var(--font-sans);
}

/* ------------------------------------------------------------
   14. RESPONSIVIDADE
------------------------------------------------------------ */

/* Tablet */
@media (max-width: 1024px) {
  .produtos-grid  { grid-template-columns: repeat(3, 1fr); }
  .destaques-grid { grid-template-columns: repeat(3, 1fr); }
  .produto-layout { gap: 32px; }
}

/* Tablet pequeno */
@media (max-width: 768px) {
  :root { --header-h: 110px; }

  .container { padding: 0 20px; }

  .header-top { padding: 12px 20px; }
  .logo-svg   { width: 72px; height: 72px; }

  .site-nav ul { gap: 28px; }
  .site-nav a  { font-size: 12px; }

  .btn-menu { display: flex; }

  /* Nav mobile */
  .site-nav {
    overflow: hidden;
    max-height: 0;
    transition: max-height .35s ease;
  }
  .site-nav.open { max-height: 300px; }
  .site-nav ul   { flex-direction: column; gap: 0; }
  .site-nav li a {
    display: block;
    padding: 14px 20px;
    border-bottom: 1px solid var(--gray-mid);
    font-size: 13px;
  }
  .site-nav a::after { display: none; }

  .destaques-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .produtos-grid  { grid-template-columns: repeat(2, 1fr); gap: 16px 12px; }

  .produto-layout { grid-template-columns: 1fr; gap: 28px; }
  .produto-nome   { font-size: 18px; }

  .cart-panel { width: 100vw; }

  .produtos-controls { flex-direction: column; align-items: stretch; }
  .search-inline { max-width: 100%; }
  .filter-bar { justify-content: flex-start; }
  .search-results-overlay {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .search-result-item {
    align-items: flex-start;
  }

  .site-footer { padding: 36px 20px 28px; }
}

/* MOBILE */
@media (max-width: 480px) {

  /* ===== DESTAQUES (1 produto centralizado) ===== */
  .destaques-grid { 
    grid-template-columns: 1fr; 
    max-width: 300px; 
    margin: 0 auto; 
  }

  .destaques-grid .produto-card {
    padding: 10px;
  }

  .destaques-grid .produto-card img {
    height: 160px;
    object-fit: contain;
  }

  /* ===== PRODUTOS (2 por linha ajustado) ===== */
  .produtos-grid {
    display: grid;
    grid-template-columns: repeat(2, 48%);
    justify-content: space-between;
    gap: 10px 0;
    padding: 0 10px;
  }

  .produtos-grid .produto-card {
    width: 100%;
    box-sizing: border-box;
    padding: 6px;

    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }

  .produtos-grid .produto-card img {
    width: 100%;
    height: 100px;
    object-fit: contain;
    display: block;
  }

  /* nome com 2 linhas fixas */
  .produtos-grid .product-name {
    font-size: 10px;
    line-height: 1.2;

    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;

    min-height: 26px;
    margin: 4px 0;
  }

  .produtos-grid .product-price {
    font-size: 11px;
    margin-bottom: 4px;
  }

  .produtos-grid .btn-comprar {
    font-size: 10px;
    padding: 6px;
    height: 34px;
    border-radius: 6px;
    font-weight: 600;
    width: 100%;
    min-width: 0;
  }

  /* proteção contra overflow */
  .produtos-grid * {
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

}

/* evita scroll lateral */
body {
  overflow-x: hidden;
}

/* logo */
.logo-svg {
  width: 160px;
  height: 160px;
  object-fit: contain;
  display: block;
}

@media (max-width: 480px) {

  /* Remove botão adicionar ao carrinho no mobile */
  .product-card-actions {
    display: none !important;
  }

  .filter-bar {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .btn-cat {
    width: 100%;
    padding: 8px 10px;
    font-size: 11px;
    letter-spacing: .02em;
  }

  .search-box {
    padding: 0 18px;
  }

  .search-box input {
    font-size: 17px;
    padding-right: 34px;
  }
}
