/* ============================================================
   AMERICAN STORE - Folha de Estilos
   www.americanashop.com.br
   ------------------------------------------------------------
   Tema: Moda Country Premium (visual escuro + dourado)
   As cores foram extraídas da LOGO da marca:
     > Cinza escuro (fundo)  ......... #161618
     > Dourado (detalhes) ............ #c9a26a / #d4af73
     > Creme (realces claros) ........ #f6e8c6
   Organização:
     1. Variáveis de cor e tipografia (edite AQUI para trocar o visual)
     2. Reset / Base
     3. Utilitários (container, botões, títulos)
     4. Barra de avisos (marquee)
     5. Header + navegação
     6. Banner / Carrossel
     7. Categorias
     8. Produtos
     9. Sobre / Institucional
    10. Benefícios
    11. Contato
    12. Footer + Subfooter
    13. Toast (confirmação)
    14. Página do Carrinho
    15. Responsividade (Tablet e Mobile)
   ============================================================ */

/* ============ 1. VARIÁVEIS (PALETA DE CORES) ============ */
:root {
  /* CORES - altere estes valores para mudar o tema do site inteiro.
     A paleta segue as cores da logo: cinza escuro + dourado. */
  --fundo:        #161618;   /* cinza escuro dominante da logo (fundo do site) */
  --fundo-alt:    #1c1c20;   /* seções alternadas (um pouco mais claras) */
  --superficie:   #222227;   /* cards e superfícies elevadas */
  --superficie-2: #2a2a30;   /* botões internos / hover de superfícies */
  --rodape:       #101012;   /* footer principal */
  --rodape-fim:   #0a0a0c;   /* subfooter (mais escuro que o footer) */
  --borda:        #33333a;   /* bordas sutis */

  /* Dourado da logo (detalhes e destaques) */
  --ouro:         #c9a26a;
  --ouro-claro:   #d4af73;
  --creme:        #f6e8c6;   /* realce claro / creme dourado */

  /* Textos */
  --branco:       #ffffff;
  --texto:        #ece7dc;   /* texto claro padrão (sobre fundo escuro) */
  --texto-suave:  #a69d8b;   /* texto secundário / apagado */

  /* Texto escuro para usar SOBRE o dourado (bom contraste) */
  --sobre-ouro:   #1a1206;

  /* Tipografia */
  --font-head: Georgia, 'Times New Roman', 'Playfair Display', serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

  /* Medidas */
  --max: 1200px;
  --radius: 16px;
  --sombra: 0 10px 30px rgba(0, 0, 0, .45);
  --sombra-forte: 0 18px 40px rgba(0, 0, 0, .6);
}

/* ============ 2. RESET / BASE ============ */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px; /* compensa o header fixo ao navegar por âncoras */
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--texto);
  background: var(--fundo);
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
/* Garante que o atributo [hidden] realmente oculte elementos com display definido */
[hidden] { display: none !important; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; line-height: 1.2; color: var(--branco); }

/* ============ 3. UTILITÁRIOS ============ */
.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

.section { padding: 72px 0; }

.section-head { text-align: center; max-width: 620px; margin: 0 auto 44px; }
.section-head--left { text-align: left; margin-left: 0; }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: .78rem;
  font-weight: 700;
  color: var(--ouro);
  margin: 0 0 10px;
}
.section-title {
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  color: var(--creme);
  margin: 0 0 12px;
}
.section-sub { color: var(--texto-suave); margin: 0; font-size: 1.02rem; }

/* Botões */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .95rem;
  padding: 13px 26px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  line-height: 1;
  transition: transform .16s ease, box-shadow .22s ease, background .22s ease, color .22s ease, border-color .22s ease;
}
.btn-primary {
  background: linear-gradient(135deg, var(--ouro), var(--ouro-claro));
  color: var(--sobre-ouro);
  box-shadow: 0 8px 20px rgba(201, 162, 106, .3);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(201, 162, 106, .45); }
.btn-ghost { background: transparent; border-color: var(--ouro); color: var(--creme); }
.btn-ghost:hover { background: var(--ouro); color: var(--sobre-ouro); border-color: var(--ouro); }
.btn-text { background: none; border: none; color: var(--texto-suave); text-decoration: underline; padding: 10px; font-weight: 600; }
.btn-text:hover { color: var(--ouro-claro); }
.btn-block { width: 100%; }

.check { color: var(--ouro-claro); font-weight: 700; }

/* ============ 4. BARRA DE AVISOS (ANIMAÇÃO CONTÍNUA) ============ */
.announcement-bar {
  background: #0f0f11;
  color: var(--creme);
  overflow: hidden;
  white-space: nowrap;
  border-bottom: 1px solid rgba(201, 162, 106, .22);
}
.announcement-track {
  display: flex;
  width: max-content;
  /* Animação suave da direita para a esquerda (loop infinito) */
  animation: marquee 34s linear infinite;
}
.announcement-bar:hover .announcement-track { animation-play-state: paused; }
.announcement-group {
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
}
.announcement-group li {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  padding: 9px 30px;
  font-size: .82rem;
  letter-spacing: .3px;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); } /* desloca exatamente 1 dos 2 grupos = loop perfeito */
}

/* ============ 5. HEADER + NAVEGAÇÃO ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(22, 22, 24, .9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--borda);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 0;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
/* LOGO OFICIAL no cabeçalho: a imagem representa a marca (é redimensionada
   pela altura, mantendo a proporção original para não distorcer). */
.brand-logo { height: 48px; width: auto; border-radius: 8px; }

.main-nav ul { display: flex; gap: 30px; list-style: none; margin: 0; padding: 0; }
.main-nav a {
  text-decoration: none;
  color: var(--texto);
  font-weight: 600;
  font-size: .95rem;
  padding: 6px 2px;
  position: relative;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  height: 2px; width: 0;
  background: var(--ouro);
  transition: width .25s ease;
}
.main-nav a:hover::after,
.main-nav a:focus-visible::after { width: 100%; }

.cart-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px; height: 46px;
  border-radius: 50%;
  color: var(--creme);
  text-decoration: none;
  transition: background .2s ease, color .2s ease;
}
.cart-button:hover, .cart-button.is-current { background: rgba(201, 162, 106, .14); color: var(--ouro); }
.cart-count {
  position: absolute;
  top: 2px; right: 0;
  background: var(--ouro);
  color: var(--sobre-ouro);
  border-radius: 999px;
  min-width: 20px; height: 20px;
  padding: 0 5px;
  font-size: .72rem;
  font-weight: 700;
  display: grid;
  place-items: center;
  border: 2px solid var(--fundo);
}

/* Botão hambúrguer (aparece no mobile) */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  background: none;
  border: 1px solid var(--borda);
  border-radius: 10px;
  cursor: pointer;
  padding: 0 10px;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--creme);
  border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============ 6. BANNER / CARROSSEL ============ */
/* O banner NÃO ocupa 100% da largura: fica centralizado deixando cerca de
   10% de margem de cada lado (até o limite de 1200px). As imagens já trazem
   o nome da marca, então são exibidas INTEIRAS (sem cortes) e sem texto por cima. */
.hero {
  width: min(var(--max), 80%);
  margin: 28px auto 0;
}
.hero-slides {
  position: relative;
  /* proporção real das fotos (2752x1536) => imagem inteira, sem cortes */
  aspect-ratio: 2752 / 1536;
  border-radius: 22px;   /* cantos arredondados */
  overflow: hidden;
  box-shadow: var(--sombra);
  background: #000;
}
.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity .8s ease;
}
.slide.is-active { opacity: 1; visibility: visible; }
.slide img { width: 100%; height: 100%; object-fit: cover; display: block; }

.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px; height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(18, 18, 20, .45);
  color: #fff;
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: background .2s ease, color .2s ease;
  z-index: 3;
}
.hero-arrow:hover { background: rgba(201, 162, 106, .85); color: var(--sobre-ouro); }
.hero-arrow.prev { left: 14px; }
.hero-arrow.next { right: 14px; }

.hero-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 3;
}
.hero-dots button {
  width: 11px; height: 11px;
  border-radius: 999px;
  border: none;
  background: rgba(255, 255, 255, .75);
  box-shadow: 0 1px 4px rgba(0, 0, 0, .5);
  cursor: pointer;
  padding: 0;
  transition: width .25s ease, background .25s ease;
}
.hero-dots button.is-active { width: 28px; background: var(--ouro); }

/* ============ 7. CATEGORIAS ============ */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 22px;
}
.category-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--texto);
}
.category-icon {
  width: clamp(84px, 9vw, 108px);
  height: clamp(84px, 9vw, 108px);
  border-radius: 50%;
  background: radial-gradient(circle at 32% 26%, #2b2b31, #1a1a1e);
  border: 1px solid var(--borda);
  display: grid;
  place-items: center;
  color: var(--ouro);
  box-shadow: var(--sombra);
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease;
}
.category-icon svg { width: 46%; height: 46%; }
.category-item:hover .category-icon {
  transform: translateY(-6px);
  background: linear-gradient(135deg, var(--ouro), var(--ouro-claro));
  color: var(--sobre-ouro);
  box-shadow: 0 14px 30px rgba(201, 162, 106, .35);
}
.category-label { font-weight: 600; font-size: .94rem; }

/* ============ 8. PRODUTOS ============ */
.products { background: var(--fundo-alt); }
/* Container geral: empilha os grupos de categoria um sob o outro */
.product-grid {
  display: flex;
  flex-direction: column;
  gap: 48px; /* espaço entre um grupo de categoria e outro */
}
/* Cada categoria (título + grade de produtos) */
.product-category { scroll-margin-top: 90px; }
.product-category-title {
  font-family: var(--font-head);
  font-size: 1.55rem;
  color: var(--creme);
  margin: 0 0 22px;
  padding-bottom: 12px;
  border-bottom: 2px solid rgba(201, 162, 106, .35);
}
/* Grade responsiva DENTRO de cada categoria (Desktop: 4 por linha) */
.product-grid-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}
.product-card {
  background: var(--superficie);
  border: 1px solid var(--borda);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--sombra);
  transition: transform .22s ease, box-shadow .28s ease, border-color .28s ease;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--sombra-forte); border-color: rgba(201, 162, 106, .5); }
.product-media {
  position: relative;
  aspect-ratio: 1 / 1;
  background: #efe6d6;
  overflow: hidden;
}
.product-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.product-card:hover .product-media img { transform: scale(1.06); }
.product-tag {
  position: absolute;
  top: 12px; left: 12px;
  background: var(--ouro);
  color: var(--sobre-ouro);
  font-size: .68rem;
  letter-spacing: .6px;
  text-transform: uppercase;
  font-weight: 700;
  padding: 5px 11px;
  border-radius: 999px;
}
.product-body {
  padding: 18px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.product-name { font-size: 1.08rem; color: var(--creme); margin: 0; }
.product-desc { font-size: .86rem; color: var(--texto-suave); margin: 0; flex: 1; }
.product-price {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--ouro-claro);
  margin: 4px 0 0;
  font-family: var(--font-body);
}
.product-card .btn { margin-top: 8px; }
.js-warning { grid-column: 1 / -1; text-align: center; color: var(--texto-suave); }

/* ============ 9. SOBRE / INSTITUCIONAL ============ */
.about { background: var(--fundo); }
.about-inner {
  display: grid;
  grid-template-columns: 1.4fr .9fr;
  gap: 50px;
  align-items: center;
}
.about-text p { color: var(--texto-suave); font-size: 1.04rem; margin: 0 0 16px; }
.about-highlights { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 12px; }
.about-highlights li { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--texto); }
.about-badge { display: grid; place-items: center; }
.about-badge img {
  width: min(300px, 80%);
  height: auto;
  border-radius: 16px;
  border: 1px solid var(--borda);
  filter: drop-shadow(0 14px 30px rgba(0, 0, 0, .5));
}

/* ============ 10. BENEFÍCIOS ============ */
.benefits { background: var(--fundo-alt); }
.benefit-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* Desktop: lado a lado */
  gap: 22px;
}
.benefit-card {
  background: var(--superficie);
  border: 1px solid var(--borda);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--sombra);
  transition: transform .2s ease, box-shadow .25s ease, border-color .25s ease;
}
.benefit-card:hover { transform: translateY(-6px); box-shadow: var(--sombra-forte); border-color: rgba(201, 162, 106, .5); }
.benefit-icon {
  width: 66px; height: 66px;
  border-radius: 50%;
  margin: 0 auto 16px;
  display: grid;
  place-items: center;
  background: #2a2a30;
  color: var(--ouro);
}
.benefit-icon svg { width: 32px; height: 32px; }
.benefit-card h3 { font-size: 1.05rem; color: var(--creme); margin: 0 0 8px; }
.benefit-card p { font-size: .86rem; color: var(--texto-suave); margin: 0; }

/* ============ 11. CONTATO ============ */
.contact { background: var(--fundo); }
.contact-inner {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 40px;
  align-items: center;
  background: var(--superficie);
  border: 1px solid var(--borda);
  border-radius: 22px;
  padding: 44px;
  box-shadow: var(--sombra);
}
.contact-logo {
  text-align: center;
  border-right: 1px solid var(--borda);
  padding-right: 34px;
}
.contact-logo img { width: min(240px, 82%); height: auto; margin: 0 auto; border-radius: 12px; }
.contact-slogan { font-family: var(--font-head); color: var(--ouro-claro); margin: 14px 0 0; letter-spacing: 1px; }
.contact-list { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 16px; }
.contact-list li { display: flex; flex-direction: column; }
.contact-label {
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: .72rem;
  font-weight: 700;
  color: var(--ouro);
  margin-bottom: 2px;
}
.contact-list a { color: var(--creme); text-decoration: none; font-weight: 600; font-size: 1.05rem; }
.contact-list a:hover { color: var(--ouro-claro); }
.contact-list li > span:last-child { color: var(--texto); }

/* ============ 12. FOOTER + SUBFOOTER ============ */
.site-footer { background: var(--rodape); color: #cfc7b6; border-top: 1px solid var(--borda); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 36px;
  padding: 58px 0 42px;
}
.footer-logo { height: 54px; width: auto; border-radius: 8px; }
.footer-desc { font-size: .9rem; color: var(--texto-suave); margin: 16px 0 18px; max-width: 280px; }
.footer-site { font-size: .9rem; color: var(--ouro-claro); font-weight: 700; margin: 0 0 16px; letter-spacing: .3px; }
.footer-col h4 { color: #fff; font-size: 1.05rem; margin: 0 0 16px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 11px; }
.footer-col a { color: #cfc7b6; text-decoration: none; font-size: .92rem; transition: color .2s ease; overflow-wrap: break-word; }
.footer-col a:hover { color: var(--ouro-claro); }
/* overflow-wrap evita que o e-mail (texto longo sem espaços) estoure em telas estreitas */
.footer-col li { font-size: .92rem; color: var(--texto-suave); overflow-wrap: break-word; }
.social { display: flex; gap: 12px; }
.social-link {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(201, 162, 106, .3);
  display: grid;
  place-items: center;
  color: #cfc7b6;
  text-decoration: none;
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}
.social-link:hover { background: var(--ouro); color: var(--sobre-ouro); border-color: var(--ouro); transform: translateY(-3px); }

.subfooter { background: var(--rodape-fim); color: #8f8877; text-align: center; padding: 16px 0; }
.subfooter p { margin: 0; font-size: .82rem; letter-spacing: .3px; }

/* ============ 13. TOAST (CONFIRMAÇÃO) ============ */
.toast {
  position: fixed;
  left: 50%; bottom: 28px;
  transform: translateX(-50%) translateY(24px);
  background: #26262b;
  color: #fff;
  padding: 14px 22px;
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .5);
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: .92rem;
  /* nunca encostar nas bordas em telas pequenas */
  max-width: calc(100vw - 32px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease, transform .3s ease;
  z-index: 200;
  border: 1px solid rgba(201, 162, 106, .5);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ============ 14. PÁGINA DO CARRINHO ============ */
.breadcrumb { font-size: .88rem; color: var(--texto-suave); margin-bottom: 18px; }
.breadcrumb a { color: var(--ouro); text-decoration: none; }
.breadcrumb strong { color: var(--creme); }
.breadcrumb span { margin: 0 6px; }

.cart-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 30px;
  align-items: start;
}
.cart-items { display: flex; flex-direction: column; gap: 16px; }
.cart-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  background: var(--superficie);
  border: 1px solid var(--borda);
  border-radius: 14px;
  padding: 16px;
  box-shadow: var(--sombra);
}
.cart-item-img {
  width: 96px; height: 96px;
  border-radius: 10px;
  object-fit: cover;
  background: #efe6d6;
  flex: 0 0 auto;
}
.cart-item-info { flex: 1 1 220px; min-width: 0; }
.cart-item-info h3 { margin: 0 0 4px; font-size: 1.06rem; color: var(--creme); }
.cart-item-desc { margin: 0 0 6px; font-size: .82rem; color: var(--texto-suave); }
.cart-item-unit { margin: 0 0 10px; font-size: .84rem; color: var(--texto-suave); }
.cart-item-unit strong { color: var(--ouro-claro); }

.qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--borda);
  border-radius: 999px;
  overflow: hidden;
}
.qty button {
  width: 34px; height: 34px;
  border: none;
  background: var(--superficie-2);
  color: var(--creme);
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
  transition: background .2s ease;
}
.qty button:hover { background: #34343b; }
.qty span { min-width: 40px; text-align: center; font-weight: 700; color: var(--branco); }

.cart-item-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  margin-left: auto;
  text-align: right;
}
.cart-item-subtotal { font-weight: 800; color: var(--ouro-claro); font-size: 1.12rem; }
.remove-item {
  background: none;
  border: none;
  color: #e07a5f;
  cursor: pointer;
  font-size: .82rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px;
}
.remove-item:hover { text-decoration: underline; }

.cart-summary {
  background: var(--superficie);
  border: 1px solid var(--borda);
  border-radius: 18px;
  padding: 26px;
  box-shadow: var(--sombra);
  position: sticky;
  top: 104px;
}
.cart-summary h3 { margin: 0 0 18px; color: var(--creme); font-size: 1.2rem; }
.summary-row { display: flex; justify-content: space-between; align-items: center; padding: 9px 0; color: var(--texto); }
.summary-row.muted { color: var(--texto-suave); font-size: .92rem; }
.summary-total {
  border-top: 1px solid var(--borda);
  margin-top: 8px;
  padding-top: 16px;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--creme);
}
.summary-note { font-size: .76rem; color: var(--texto-suave); margin: 6px 0 18px; }
.cart-summary .btn { margin-bottom: 10px; }

.cart-empty { text-align: center; padding: 40px 20px 20px; max-width: 460px; margin: 0 auto; }
.cart-empty img { width: min(200px, 70%); height: auto; margin: 0 auto 18px; border-radius: 12px; opacity: .9; }
.cart-empty h2 { color: var(--creme); margin: 0 0 10px; }
.cart-empty p { color: var(--texto-suave); margin: 0 0 22px; }

/* ============ 15. RESPONSIVIDADE ============ */

/* Tablet: até 1024px */
@media (max-width: 1024px) {
  .product-grid-inner { grid-template-columns: repeat(2, 1fr); } /* Tablet: 2 por linha */
  .benefit-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .about-inner { gap: 34px; }
}

/* Header colapsável e ajustes: até 860px */
@media (max-width: 860px) {
  .nav-toggle { display: flex; }

  /* Header no mobile: logo à esquerda; carrinho + menu hambúrguer juntos à direita.
     (Sem isso, o "space-between" jogaria o hambúrguer para o centro.) */
  .header-inner { gap: 14px; }
  .brand { margin-right: auto; }   /* empurra os demais itens para a direita */
  .cart-button { order: 2; }       /* carrinho primeiro */
  .nav-toggle  { order: 3; }       /* hambúrguer por último (canto direito) */

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #161618;
    border-bottom: 1px solid var(--borda);
    box-shadow: var(--sombra);
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
  }
  .main-nav.open { max-height: 420px; }
  .main-nav ul { flex-direction: column; gap: 0; padding: 8px 20px 16px; }
  .main-nav li { border-bottom: 1px solid var(--borda); }
  .main-nav li:last-child { border-bottom: none; }
  .main-nav a { display: block; padding: 14px 2px; }
  .header-inner { position: relative; }

  .contact-inner { grid-template-columns: 1fr; gap: 28px; padding: 30px; }
  .contact-logo { border-right: none; border-bottom: 1px solid var(--borda); padding-right: 0; padding-bottom: 26px; }

  .about-inner { grid-template-columns: 1fr; }
  .about-badge { order: -1; }
  .about-badge img { width: min(240px, 70%); }

  .cart-layout { grid-template-columns: 1fr; }
  .cart-summary { position: static; }
}

/* Mobile: até 600px */
@media (max-width: 600px) {
  .section { padding: 52px 0; }

  /* CATEGORIAS no celular: uma única fileira que rola na horizontal
     (arrastar com o dedo pro lado) e com círculos menores. */
  .category-grid {
    display: flex;
    flex-wrap: nowrap;            /* tudo em uma linha só */
    gap: 16px;
    overflow-x: auto;             /* permite arrastar pro lado */
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    /* sangra até as bordas da tela p/ dar a sensação de "tem mais pro lado" */
    margin: 0 -20px;
    padding: 4px 20px 12px;
    scrollbar-width: none;        /* Firefox: esconde a barra de rolagem */
  }
  .category-grid::-webkit-scrollbar { display: none; } /* Chrome/Safari: esconde a barra */
  .category-item { flex: 0 0 auto; scroll-snap-align: center; }
  .category-icon { width: 60px; height: 60px; }        /* círculos menores */
  .category-label { font-size: .78rem; white-space: nowrap; }

  .product-grid-inner { grid-template-columns: 1fr; } /* Mobile: 1 por linha */
  .benefit-grid { grid-template-columns: 1fr; }

  /* Footer centralizado no celular (logo, textos, listas e redes sociais) */
  .footer-grid { grid-template-columns: 1fr; text-align: center; }
  .footer-brand { display: flex; flex-direction: column; align-items: center; }
  .footer-logo { margin-left: auto; margin-right: auto; }
  .footer-desc { margin-left: auto; margin-right: auto; }
  .footer-col ul { align-items: center; }   /* centraliza os itens das listas */
  .social { justify-content: center; }       /* centraliza os ícones sociais */

  /* Banner no mobile: um pouco menos de margem lateral e cantos menores */
  .hero { width: 92%; margin-top: 16px; }
  .hero-slides { border-radius: 16px; }
  .hero-arrow { display: none; } /* no mobile a navegação é por toque/pontos */

  .cart-item { gap: 14px; }
  .cart-item-img { width: 76px; height: 76px; }
  .cart-item-right { width: 100%; flex-direction: row; justify-content: space-between; align-items: center; margin-left: 0; margin-top: 4px; }
}

/* Acessibilidade: respeitar preferência por menos animação */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .announcement-track { animation: none; }
  .slide { transition: none; }
  * { transition-duration: .001ms !important; }
}

/* Animação de destaque do contador do carrinho ao adicionar item */
@keyframes cartBump {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.35); }
  100% { transform: scale(1); }
}
.cart-count.bump { animation: cartBump .35s ease; }
