/* ============================================================
   🏠 Vai de Peça — INDEX (Market + Multi-lojas)
   ✅ Tokens consistentes com Cart/Minha Conta
   ✅ Header premium (glass + gradiente) + trustbar
   ✅ Sidebar filtros + overlay (mobile-first)
   ✅ Busca + sugestões
   ✅ Hero + categorias + como funciona
   ✅ Carrosséis (lojas/promo/destaque/todos)
   ✅ Cards modernos (produto/loja)
   ✅ Modal produto (imagem + thumbs + nav)
   ✅ Cookie banner
   ✅ Mobile: ZERO overflow lateral
   ============================================================ */

/* ============================================================
   1) TOKENS
   ============================================================ */
:root{
  --bg: #f6f7fb;
  --card: #ffffff;

  --text: #0f172a;
  --muted: #64748b;

  --line: #e5e7eb;
  --line2: #eef2f7;

  --primary:  #59a3c5;
  --primary2: #125aa3;

  --warning: #ffca28;
  --danger: #ef4444;
  --ok: #22c55e;

  --maxw: 1180px;

  --shadow: 0 8px 30px rgba(15, 23, 42, 0.08);
  --shadow2: 0 2px 10px rgba(15, 23, 42, 0.06);

  --r12: 12px;
  --r16: 16px;
  --r20: 20px;

  --font-sans: "Outfit", system-ui, -apple-system, Segoe UI, Arial, sans-serif;
}

/* ============================================================
   2) BASE + ANTI OVERFLOW
   ============================================================ */
html, body{ height: 100%; }

body{
  min-height: 100vh;
  margin: 0;

  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);

  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden; /* ✅ evita “vazar” lateral */
}

*,
*::before,
*::after{ box-sizing: border-box; }

img, video, iframe{
  margin-top: auto;
  max-width: 100%;
  height: auto;
  display: block;
}

.container{
  max-width: var(--maxw);
  width: 100%;
  margin: 0 auto;
  padding: 0 16px;
}

a{ color: inherit; text-decoration: none; }
a:hover{ text-decoration: underline; text-underline-offset: 3px; }

.hidden{ display: none !important; }

.muted{ color: var(--muted); }
.tiny{ font-size: 12px; }

/* foco bonito */
:focus-visible{
  outline: none;
  box-shadow: 0 0 0 4px rgba(89,163,197,.22);
  border-radius: 12px;
}

/* ============================================================
   3) BOTÕES / BADGES (reutilizáveis)
   ============================================================ */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  height: 46px;
  padding: 0 14px;

  border-radius: 14px;
  font-weight: 950;
  cursor: pointer;
  border: 1px solid transparent;

  transition: transform .05s ease, filter .15s ease, background .15s ease, border .15s ease;
  user-select: none;
}

.btn:active{ transform: translateY(1px); }

.btn.primary{
  color: #fff;
  background: linear-gradient(180deg, var(--primary), var(--primary2));
  box-shadow: 0 10px 24px rgba(89,163,197,.18);
}

.btn.primary:hover{ filter: brightness(1.03); }

.btn.secondary{
  background: #fff;
  border-color: rgba(15,23,42,.12);
}

.btn.secondary:hover{ background: rgba(15,23,42,.03); }

.btn.small{
  height: 40px;
  border-radius: 12px;
  font-size: 14px;
  padding: 0 12px;
}

/* badges no hero */
.badge{
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0 10px;
  border-radius: 999px;

  background: rgba(255,255,255,.55);
  border: 1px solid rgba(15,23,42,.08);
  color: var(--text);
  font-weight: 900;
  font-size: 12px;
}

/* ============================================================
   4) HEADER (inclui seu header antigo + versão market)
   ============================================================ */
.header{
  position: sticky;
  top: 0;
  z-index: 1200;

 background: linear-gradient(
  180deg,
  #eef3fa 0%,
  #dfe7f1 100%
);


  border-bottom: 1px solid var(--line2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

/* ✅ Compatível com seu HTML antigo (header .container dentro do header) */
.header .container{
  min-height: 76px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}

/* ✅ se você usar o index “referência”: .header--market .header-row */
.header--market .header-row{
  min-height: 86px;
  padding: 10px 0;
}

.logo{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.logo img{
  height: 150px;
  width: auto;
  vertical-align: middle;
}

.main-nav{
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

#admin-link-container,
#admin-link-container-parceiros{
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

/* links admin (bonitos em cima do header “market”) */
#admin-link-container a,
#admin-link-container-parceiros a{
  color: var(--primary2);
  font-weight: 950;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(15,23,42,.10);
  background: rgba(15,23,42,.02);
  transition: background .15s ease, transform .05s ease, border .15s ease;
  white-space: nowrap;
}

#admin-link-container a:hover,
#admin-link-container-parceiros a:hover{
  background: rgba(89,163,197,.10);
  border-color: rgba(89,163,197,.18);
  text-decoration: none;
}

#admin-link-container a:active,
#admin-link-container-parceiros a:active{
  transform: translateY(1px);
}

.header-actions{
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

/* login / botões topo (seu HTML usa .action-btn) */
.action-btn{
  background: rgba(15,23,42,.02);
  border: 1px solid rgba(15,23,42,.10);
  color: var(--text);

  cursor: pointer;
  font-size: 1rem;
  font-weight: 950;

  padding: 10px 12px;
  border-radius: 12px;

  transition: transform .05s ease, background .15s ease, border .15s ease, color .15s ease;
}

.action-btn:hover{
  background: rgba(89,163,197,.10);
  border-color: rgba(89,163,197,.18);
  color: var(--primary2);
  text-decoration: none;
}

.action-btn:active{ transform: translateY(1px); }

.cart-btn{ position: relative; }

.cart-count{
  position: absolute;
  top: -10px;
  right: -12px;

  background: var(--warning);
  color: #111827;

  border: 1px solid rgba(255,255,255,.35);
  border-radius: 999px;

  width: 22px;
  height: 22px;
  font-size: .75rem;

  display: grid;
  place-items: center;

  font-weight: 950;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.18);
}

/* Pílula de endereço (index “referência”) */
.action-pill{
  display: inline-flex;
  align-items: center;
  gap: 10px;

  height: 46px;
  padding: 0 12px;

  border-radius: 14px;
  border: 1px solid rgba(15,23,42,.10);
  background: rgba(15,23,42,.02);
  cursor: pointer;

  transition: transform .05s ease, background .15s ease, border .15s ease;
}

.action-pill:hover{
  background: rgba(89,163,197,.10);
  border-color: rgba(89,163,197,.18);
}

.action-pill:active{ transform: translateY(1px); }

.action-pill .pill-text{
  display: grid;
  line-height: 1.15;
  text-align: left;
  font-weight: 800;
}

.action-pill small{
  font-weight: 800;
  opacity: .95;
}

/* Trustbar (index “referência”) */
.trustbar{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding: 10px 0 12px;
}

.trust-item{
  display: inline-flex;
  align-items: center;
  gap: 8px;

  padding: 8px 10px;
  border-radius: 999px;

  background: rgba(255,255,255,.75);
  border: 1px solid rgba(15,23,42,.08);
  box-shadow: var(--shadow2);

  font-weight: 900;
  font-size: 12px;
  color: var(--text);
}

/* ============================================================
   5) SIDEBAR FILTROS (mobile-first)
   ============================================================ */
.filter-sidebar{
  position: fixed;
  top: 0;
  left: 0;

  height: 100dvh;
  width: 360px;
  max-width: 92vw;

  background: rgba(255,255,255,.98);
  border-right: 1px solid rgba(15,23,42,.10);
  box-shadow: 0 22px 60px rgba(2,6,23,.22);

  transform: translateX(-110%);
  transition: transform .22s ease;
  z-index: 2000;

  display: flex;
  flex-direction: column;
  padding: 14px;
  overflow: hidden;
}

.filter-sidebar[aria-hidden="false"]{ transform: translateX(0); }

.filter-header{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;

  padding-bottom: 10px;
  border-bottom: 1px solid rgba(15,23,42,.08);
}

.filter-header h3{
  margin: 0;
  font-size: 16px;
  font-weight: 950;
}

.filter-close{
  width: 40px;
  height: 40px;
  border-radius: 12px;

  border: 1px solid rgba(15,23,42,.10);
  background: rgba(15,23,42,.04);

  font-size: 22px;
  cursor: pointer;

  transition: transform .05s ease, background .15s ease, border .15s ease;
}

.filter-close:hover{
  background: rgba(15,23,42,.07);
  border-color: rgba(15,23,42,.16);
}
.filter-close:active{ transform: translateY(1px); }

.filter-breadcrumb{
  margin-top: 10px;
  padding: 10px;

  border-radius: var(--r16);
  background: rgba(15,23,42,.04);
  border: 1px solid rgba(15,23,42,.08);

  color: var(--muted);
  display: grid;
  gap: 6px;
  font-size: 12px;
}

.filter-breadcrumb em{
  font-style: normal;
  font-weight: 950;
  color: var(--text);
}

.filter-steps{
  margin-top: 12px;
  overflow: auto;
  padding-right: 4px;
  flex: 1;
}

.filter-step{
  border: 1px solid rgba(15,23,42,.08);
  border-radius: var(--r16);
  background: #fff;
  padding: 12px;
  box-shadow: var(--shadow2);
}

.filter-step + .filter-step{ margin-top: 10px; }

.filter-step h4{
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 950;
}

.filter-list{
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.filter-list button,
.filter-list a{
  width: 100%;
  text-align: left;

  padding: 10px 12px;
  border-radius: 12px;

  border: 1px solid rgba(15,23,42,.10);
  background: #fff;

  cursor: pointer;
  font-weight: 900;
  color: var(--text);

  transition: transform .05s ease, background .15s ease, border .15s ease;
}
/* ✅ Quando o JS renderiza <li class="filter-item">...</li> */
.filter-list .filter-item{
  display: flex;
  align-items: center;
  gap: 10px;

  width: 100%;
  text-align: left;

  padding: 10px 12px;
  border-radius: 12px;

  border: 1px solid rgba(15,23,42,.10);
  background: #fff;

  cursor: pointer;
  font-weight: 900;
  color: var(--text);

  transition: transform .05s ease, background .15s ease, border .15s ease;
  user-select: none;
}

.filter-list .filter-item:hover{
  background: rgba(89,163,197,.08);
  border-color: rgba(89,163,197,.18);
}

.filter-list .filter-item:active{
  transform: translateY(1px);
}

/* “ativo” (selecionado) */
.filter-list .filter-item.active{
  background: rgba(89,163,197,.14);
  border-color: rgba(89,163,197,.28);
}

/* ✅ check visual no ativo */
.filter-list .filter-item.active::after{
  content: "✓";
  margin-left: auto;

  width: 22px;
  height: 22px;
  border-radius: 999px;

  display: grid;
  place-items: center;

  color: #fff;
  font-weight: 1000;
  font-size: 13px;

  background: linear-gradient(180deg, var(--primary), var(--primary2));
  box-shadow: 0 10px 24px rgba(89,163,197,.18);
}

.filter-list .filter-item img{
  width: 28px;
  height: 28px;
  border-radius: 10px;
  object-fit: contain;
  background: rgba(15,23,42,.03);
  border: 1px solid rgba(15,23,42,.08);
}

/* garante cursor “mão” em tudo dentro do li */
.filter-list .filter-item *{ cursor: pointer; }


.filter-list button:hover,
.filter-list a:hover{
  background: rgba(89,163,197,.08);
  border-color: rgba(89,163,197,.18);
}

.filter-list button:active,
.filter-list a:active{ transform: translateY(1px); }

.filter-actions{
  margin-top: 12px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.btn-clear,
.btn-apply{
  height: 44px;
  border-radius: 14px;
  font-weight: 950;
  cursor: pointer;
  transition: transform .05s ease, filter .15s ease, background .15s ease, border .15s ease;
}

.btn-clear{
  border: 1px solid rgba(15,23,42,.12);
  background: #fff;
}
.btn-clear:hover{ background: rgba(15,23,42,.03); }
.btn-clear:active{ transform: translateY(1px); }

.btn-apply{
  border: none;
  color: #fff;
  background: linear-gradient(180deg, var(--primary), var(--primary2));
  box-shadow: 0 10px 24px rgba(89,163,197,.18);
}
.btn-apply:hover{ filter: brightness(1.03); }
.btn-apply:active{ transform: translateY(1px); }

.filter-overlay{
  position: fixed;
  inset: 0;
  background: rgba(2,6,23,.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 1900;
}

/* ============================================================
   6) HERO (index “referência”)
   ============================================================ */
.hero{
  margin-top: 16px;
}

.hero--market{
  padding: 14px 0 6px;
}

.hero-grid{
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 16px;
  align-items: start;
}

.hero-copy{
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(15,23,42,.08);
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: 18px;
  position: relative;
  overflow: hidden;
}

.hero-copy::before{
  content: "";
  position: absolute;
  inset: -40px -40px auto auto;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(89,163,197,.28), rgba(89,163,197,0) 60%);
  pointer-events: none;
}

.hero-copy h1{
  margin: 0 0 8px;
  font-size: 30px;
  font-weight: 950;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.hero-sub{
  margin: 0 0 14px;
  color: var(--muted);
  font-weight: 700;
  line-height: 1.5;
}

.hero-ctas{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.hero-badges{
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.hero-card{
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(15,23,42,.08);
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: 16px;
}

.hero-card-head{
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: baseline;
  margin-bottom: 12px;
}

.hero-card-body .label{
  display: block;
  font-weight: 950;
  font-size: 13px;
  margin-bottom: 8px;
}

.cep-row{
  display: grid;
  grid-template-columns: 1fr 96px;
  gap: 10px;
  align-items: center;
}

#hero-cep{
  width: 100%;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line);
  padding: 0 12px;
  outline: none;
}

#hero-cep:focus{
  border-color: rgba(89,163,197,.45);
  box-shadow: 0 0 0 4px rgba(89,163,197,.12);
}

/* ============================================================
   7) BUSCA + SUGESTÕES (compatível com seu HTML atual também)
   ============================================================ */
#search-container{
  background: var(--card);
  border: 1px solid rgba(15,23,42,.08);
  border-radius: var(--r16);
  box-shadow: var(--shadow2);
  padding: 12px;
  position: relative;
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 10px;
  align-items: center;

  margin: 14px 0 14px;
}

.hamburger-filter{
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(15,23,42,.10);
  background: rgba(15,23,42,.04);
  cursor: pointer;
  transition: transform .05s ease, background .15s ease, border .15s ease;
}

.hamburger-filter:hover{
  background: rgba(15,23,42,.07);
  border-color: rgba(15,23,42,.16);
}

.hamburger-filter:active{ transform: translateY(1px); }

.search-bar{
  display: grid;
  grid-template-columns: 1fr 44px;
  gap: 10px;
  align-items: center;
  min-width: 0;
}

#search-input{
  width: 100%;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line);
  padding: 0 12px;
  outline: none;
  min-width: 0;
}

#search-input:focus{
  border-color: rgba(89,163,197,.45);
  box-shadow: 0 0 0 4px rgba(89,163,197,.12);
}

#search-btn{
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: none;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(180deg, var(--primary), var(--primary2));
  box-shadow: 0 10px 24px rgba(89,163,197,.18);
  transition: transform .05s ease, filter .15s ease;
}

#search-btn:hover{ filter: brightness(1.03); }
#search-btn:active{ transform: translateY(1px); }

/* sugestões */
#suggestions-box{
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;

  background: rgba(255, 255, 255, 0.85); /* ✅ transparência suave */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: var(--r16);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.18);

  padding: 10px;
  max-height: 320px;
  overflow-y: auto;

  z-index: 1500;
}


.suggestion-item{
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid rgba(15,23,42,.08);
  background: #fff;
  cursor: pointer;
  font-weight: 950;
  color: var(--text);
  transition: background .15s ease, border .15s ease, transform .05s ease;
}

.suggestion-item + .suggestion-item{ margin-top: 8px; }

.suggestion-item:hover{
  background: rgba(89,163,197,.08);
  border-color: rgba(89,163,197,.18);
}

.suggestion-item:active{ transform: translateY(1px); }

/* ============================================================
   8) SEÇÕES / TÍTULOS
   ============================================================ */
.section-head{
  display: grid;
  gap: 4px;
  margin: 14px 0 10px;
}

.lojas-section h2,
.produtos-section h2,
.section-head h2{
  margin: 0;
  font-size: 18px;
  font-weight: 950;
  letter-spacing: -0.02em;
}

.subhead{
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin: 10px 0 8px;
}

.subhead h3{
  margin: 0;
  font-size: 16px;
  font-weight: 950;
  letter-spacing: -0.02em;
}

.link{
  color: var(--primary2);
  font-weight: 950;
  text-decoration: none;
}
.link:hover{ text-decoration: underline; text-underline-offset: 3px; }

/* ============================================================
   9) CATEGORIAS (index “referência”)
   ============================================================ */
.categories{
  padding: 10px 0 6px;
}

.cat-grid{
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
}

.cat-card{
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(15,23,42,.08);
  border-radius: 18px;
  box-shadow: var(--shadow2);
  padding: 14px;

  display: grid;
  gap: 6px;
  align-content: start;

  transition: transform .08s ease, box-shadow .15s ease, border .15s ease;
}

.cat-card i{
  font-size: 18px;
  color: var(--primary2);
}

.cat-card strong{
  font-weight: 950;
  letter-spacing: -0.02em;
}

.cat-card span{
  color: var(--muted);
  font-weight: 700;
  font-size: 13px;
}

.cat-card:hover{
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(15,23,42,.10);
  border-color: rgba(89,163,197,.18);
  text-decoration: none;
}

/* ============================================================
   10) CARROSSEIS
   ============================================================ */
.carousel-wrapper{
  position: relative;
  border-radius: var(--r16);
}

/* rolagem horizontal só aqui */
.carousel{
  display: flex;
  gap: 12px;
  overflow-x: auto;
  overflow-y: hidden;

  padding: 12px 48px; /* espaço p/ botões */
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;

  overscroll-behavior-x: contain;
}

.carousel > *{ scroll-snap-align: start; }

.carousel::-webkit-scrollbar{ height: 10px; }
.carousel::-webkit-scrollbar-thumb{
  background: rgba(15,23,42,.16);
  border-radius: 999px;
}
.carousel::-webkit-scrollbar-thumb:hover{ background: rgba(15,23,42,.24); }

.carousel-btn{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);

  width: 40px;
  height: 40px;
  border-radius: 14px;

  border: 1px solid rgba(15,23,42,.12);
  background: rgba(255,255,255,.95);
  box-shadow: 0 10px 24px rgba(15,23,42,.10);

  cursor: pointer;
  z-index: 3;

  transition: transform .05s ease, filter .15s ease, background .15s ease;
}

.carousel-btn:hover{ filter: brightness(1.02); }
.carousel-btn:active{ transform: translateY(-50%) translateY(1px); }

.carousel-btn.left{ left: 8px; }
.carousel-btn.right{ right: 8px; }

/* ============================================================
   11) CARDS (produtos + lojas) — compatível com seu script.js
   ============================================================ */
.product-card,
.produto-card,
.loja-card{
  background: #fff;
  border: 1px solid rgba(15,23,42,.08);
  border-radius: 18px;
  box-shadow: var(--shadow2);
  overflow: hidden;
  transition: transform .08s ease, box-shadow .15s ease, border .15s ease;
}

.product-card:hover,
.produto-card:hover,
.loja-card:hover{
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(15,23,42,.10);
  border-color: rgba(15,23,42,.14);
}

/* Produto */
.product-card,
.produto-card{
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;

  width: 260px;
  flex: 0 0 auto;
  min-width: 260px;
}

.nome-loja{
  margin: 0;
  font-size: 12px;
  font-weight: 950;
  color: var(--muted);
  letter-spacing: .01em;
}


.product-card h3,
.produto-card h3{
  margin: 0;
  font-size: 14px;
  font-weight: 950;
  line-height: 1.2;
}

.product-card p,
.produto-card p{
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.product-card .price,
.produto-card .price{
  color: var(--text);
  font-weight: 950;
  font-size: 15px;
}

/* slideshow / imagem do card */
.card-img-carousel{
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  max-height: 240px;
  background: #f3f4f6;
  border-radius: 16px;
  overflow: hidden;

  display: flex;
  align-items: center;
  justify-content: center;
}

.card-img-carousel img{
  position: absolute;
  inset: 0;

  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: center;

  opacity: 0;
  transition: opacity .3s ease;
}

.card-img-carousel img.active{
  opacity: 1;
}

/* imagens pequenas */
.card-img-carousel img.is-small{
  object-fit: contain;
  padding: 12px;
  background: #fff;
}


/* botão adicionar (seu script usa .add-to-cart-btn) */
.add-to-cart-btn{
  margin-top: auto;
  height: 46px;
  border-radius: 14px;
  border: none;
  cursor: pointer;
  font-weight: 950;
  color: #fff;
  background: linear-gradient(180deg, var(--primary), var(--primary2));
  box-shadow: 0 10px 24px rgba(89,163,197,.18);
  transition: transform .05s ease, filter .15s ease;
}

.add-to-cart-btn:hover{ filter: brightness(1.03); }
.add-to-cart-btn:active{ transform: translateY(1px); }

/* tags promo/destaque */
.product-card.destaque,
.produto-card.destaque{
  border-color: rgba(255,202,40,.55);
  box-shadow: 0 14px 30px rgba(255,202,40,.10);
}
.product-card.promocao,
.produto-card.promocao{
  border-color: rgba(239,68,68,.35);
  box-shadow: 0 14px 30px rgba(239,68,68,.08);
}

/* Loja */
.loja-card{
  width: 240px;
  flex: 0 0 auto;
  min-width: 240px;

  padding: 12px;
  display: grid;
  gap: 10px;
  align-content: start;
}

.loja-card h3{
  margin: 0;
  font-size: 14px;
  font-weight: 950;
}

.loja-card img{
  width: 100%;
  height: 110px;
  object-fit: contain;
  border-radius: 14px;
  background: rgba(15,23,42,.03);
  border: 1px solid rgba(15,23,42,.08);
}

.loja-card.active{
  border-color: rgba(89,163,197,.45);
  box-shadow: 0 14px 30px rgba(89,163,197,.12);
}

.loja-card.todas-lojas{
  background: linear-gradient(180deg, rgba(89,163,197,.10), rgba(18,90,163,.06));
}

/* ============================================================
   12) ENTREGA RÁPIDA STRIP (index referência)
   ============================================================ */
.quick-delivery-strip{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 10px;
}

.qd-card{
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(15,23,42,.08);
  border-radius: 18px;
  box-shadow: var(--shadow2);
  padding: 14px;
  display: grid;
  gap: 6px;
}

.qd-card strong{ font-weight: 950; letter-spacing: -0.02em; }
.qd-card p{ margin: 0; color: var(--muted); font-weight: 700; }

/* ============================================================
   13) GRID “Todos os Produtos” (caso use .product-grid)
   ============================================================ */
.product-grid{
  margin-top: 16px;
  background: var(--card);
  border: 1px solid rgba(15,23,42,.08);
  border-radius: var(--r16);
  box-shadow: var(--shadow2);
  padding: 12px;

  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

#loading-message{
  grid-column: 1 / -1;
  margin: 8px 0;
  color: var(--muted);
  font-weight: 800;
}

/* ============================================================
   14) COMO FUNCIONA (index referência)
   ============================================================ */
.how-it-works{
  padding: 10px 0 24px;
}

.how-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.how-card{
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(15,23,42,.08);
  border-radius: 18px;
  box-shadow: var(--shadow2);
  padding: 14px;

  display: grid;
  gap: 8px;
  align-content: start;
}

.how-card i{
  font-size: 18px;
  color: var(--primary2);
}

.how-card h3{
  margin: 0;
  font-weight: 950;
  font-size: 15px;
  letter-spacing: -0.02em;
}

.how-card p{
  margin: 0;
  color: var(--muted);
  font-weight: 700;
  line-height: 1.45;
}

/* ============================================================
   15) MODAL PRODUTO
   ============================================================ */
.modal{
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;

  background: rgba(2,6,23,.58);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  z-index: 3000;

  /* compat com script.js (classe show) */
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}

.modal.show{
  opacity: 1;
  pointer-events: auto;
}

.modal.hidden{ display: none !important; }

.modal-content{
  width: min(920px, 92vw);
  max-height: 86vh;
  overflow: auto;

  background: rgba(255,255,255,.98);
  border: 1px solid rgba(15,23,42,.10);
  border-radius: 20px;
  padding: 18px;

  box-shadow:
    0 22px 60px rgba(2,6,23,.28),
    0 6px 18px rgba(2,6,23,.14);

  position: relative;
}

.modal .close{
  position: absolute;
  top: 12px;
  right: 12px;

  width: 38px;
  height: 38px;
  border-radius: 999px;

  display: grid;
  place-items: center;

  background: rgba(15,23,42,.04);
  border: 1px solid rgba(15,23,42,.10);
  font-size: 22px;
  cursor: pointer;

  transition: transform .05s ease, background .15s ease, border .15s ease;
}

.modal .close:hover{
  background: rgba(15,23,42,.07);
  border-color: rgba(15,23,42,.16);
}
.modal .close:active{ transform: translateY(1px); }

.modal-body{
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 16px;
  align-items: start;
}

.modal-left,
.modal-right{ min-width: 0; }

/* imagem + setas */
.modal-left{
  background: rgba(15,23,42,.03);
  border: 1px solid rgba(15,23,42,.08);
  border-radius: 18px;
  padding: 12px;

  display: grid;
  grid-template-columns: 44px 1fr 44px;
  gap: 10px;
  align-items: center;
}

#modal-produto-img{
  grid-column: 2;
  width: 100%;
  height: 340px;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid rgba(15,23,42,.10);
  background: #fff
};

/* ============================================================
   14) MARKETPLACE UI (Hero + Trustbar + Categorias + Como funciona)
   - Não quebra IDs do JS
   - Estilo moderno e consistente com tokens
   ============================================================ */

/* pequenos helpers */
.muted{ color: var(--muted); }
.tiny{ font-size: 12px; }
.link{ color: var(--primary2); font-weight: 900; }
.link:hover{ text-decoration: underline; text-underline-offset: 3px; }

/* =========================
   HEADER “market”
   ========================= */
.header--market{
  border-bottom: 1px solid rgba(15,23,42,.08);
}

/* no layout “referência” o header tem row + trustbar
   se você estiver usando o seu HTML antigo, isso não atrapalha */
.header-row{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 16px;
}

/* pílula de endereço/CEP no topo (opcional) */
.action-pill{
  display: inline-flex;
  align-items: center;
  gap: 10px;

  height: 46px;
  padding: 8px 12px;
  border-radius: 14px;

  border: 1px solid rgba(255,255,255,.28);
  background: rgba(255,255,255,.14);
  color: #fff;
  cursor: pointer;

  box-shadow: 0 10px 24px rgba(2,6,23,.12);
  transition: transform .05s ease, filter .15s ease, background .15s ease, border .15s ease;
}

.action-pill:hover{
  filter: brightness(1.03);
  background: rgba(255,255,255,.18);
  border-color: rgba(255,255,255,.34);
}

.action-pill:active{ transform: translateY(1px); }

.action-pill i{
  font-size: 16px;
  opacity: .95;
}

.action-pill .pill-text{
  display: grid;
  line-height: 1.05;
  gap: 2px;
  text-align: left;
}

.action-pill strong{ font-weight: 950; }
.action-pill small{
  font-size: 12px;
  opacity: .9;
}

/* Trust bar */
.trustbar{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;

  padding: 10px 16px 14px;
  color: rgba(255,255,255,.92);
}

.trust-item{
  display: inline-flex;
  align-items: center;
  gap: 8px;

  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.10);
  font-weight: 900;
  font-size: 12px;
  white-space: nowrap;
}

.trust-item i{ opacity: .95; }

/* =========================
   HERO
   ========================= */
.hero--market{
  padding: 18px 0 8px;
}

.hero-grid{
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 16px;
  align-items: start;
}

.hero-copy{
  background: linear-gradient(180deg, rgba(89,163,197,.16), rgba(18,90,163,.08));
  border: 1px solid rgba(15,23,42,.08);
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: 18px;
  overflow: hidden;
}

.hero-copy h1{
  margin: 0 0 10px;
  font-size: 26px;
  line-height: 1.12;
  letter-spacing: -0.03em;
  font-weight: 1000;
}

.hero-sub{
  margin: 0 0 14px;
  color: var(--muted);
  font-weight: 700;
  line-height: 1.5;
  max-width: 62ch;
}

.hero-ctas{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  height: 46px;
  padding: 0 14px;
  border-radius: 14px;

  font-weight: 950;
  border: 1px solid rgba(15,23,42,.10);
  cursor: pointer;
  transition: transform .05s ease, filter .15s ease, background .15s ease, border .15s ease;
  text-decoration: none !important;
}

.btn.primary{
  border: none;
  color: #fff;
  background: linear-gradient(180deg, var(--primary), var(--primary2));
  box-shadow: 0 10px 24px rgba(89,163,197,.18);
}

.btn.primary:hover{ filter: brightness(1.03); }
.btn.primary:active{ transform: translateY(1px); }

.btn.secondary{
  background: rgba(255,255,255,.76);
}

.btn.secondary:hover{
  background: rgba(255,255,255,.92);
  border-color: rgba(15,23,42,.14);
}

.btn.secondary:active{ transform: translateY(1px); }

.btn.small{
  height: 40px;
  border-radius: 12px;
  padding: 0 12px;
  font-weight: 950;
}

.hero-badges{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.badge{
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(15,23,42,.10);
  background: rgba(255,255,255,.70);
  font-weight: 950;
  font-size: 12px;
  color: var(--text);
}

/* card do CEP no hero (opcional) */
.hero-card{
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(15,23,42,.08);
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: 16px;
}

.hero-card-head{
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 10px;
}

.hero-card-head strong{
  font-weight: 1000;
  letter-spacing: -0.02em;
}

.label{
  display: block;
  font-size: 12px;
  font-weight: 950;
  color: var(--muted);
  margin-bottom: 6px;
}

.cep-row{
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

#hero-cep{
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(15,23,42,.12);
  padding: 0 12px;
  outline: none;
}

#hero-cep:focus{
  border-color: rgba(89,163,197,.45);
  box-shadow: 0 0 0 4px rgba(89,163,197,.12);
}

/* =========================
   SEÇÕES / HEAD
   ========================= */
.section-head{
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin: 18px 0 10px;
}

.section-head h2{
  margin: 0;
  font-size: 18px;
  font-weight: 1000;
  letter-spacing: -0.02em;
}

.section-head p{
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

/* Subhead dentro das subseções */
.subhead{
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin: 14px 0 8px;
}

.subhead h3{
  margin: 0;
  font-size: 16px;
  font-weight: 1000;
  letter-spacing: -0.02em;
}

/* =========================
   CATEGORIAS (grid)
   ========================= */
.categories{
  padding: 10px 0 6px;
}

.cat-grid{
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}

.cat-card{
  display: grid;
  gap: 6px;

  padding: 14px;
  border-radius: 18px;

  background: rgba(255,255,255,.92);
  border: 1px solid rgba(15,23,42,.08);
  box-shadow: var(--shadow2);

  transition: transform .08s ease, box-shadow .15s ease, border .15s ease;
}

.cat-card:hover{
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(15,23,42,.10);
  border-color: rgba(15,23,42,.14);
  text-decoration: none;
}

.cat-card i{
  font-size: 18px;
  width: 38px;
  height: 38px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(89,163,197,.12);
  border: 1px solid rgba(89,163,197,.16);
}

.cat-card strong{
  font-weight: 1000;
  letter-spacing: -0.02em;
}

.cat-card span{
  color: var(--muted);
  font-weight: 700;
  font-size: 12px;
  line-height: 1.3;
}

/* =========================
   “Entrega rápida” strip (opcional)
   ========================= */
.quick-delivery-strip{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 10px;
}

.qd-card{
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(15,23,42,.08);
  border-radius: 18px;
  box-shadow: var(--shadow2);
  padding: 14px;
  display: grid;
  gap: 6px;
}

.qd-card strong{
  font-weight: 1000;
  letter-spacing: -0.02em;
}

/* =========================
   COMO FUNCIONA
   ========================= */
.how-it-works{
  padding: 12px 0 10px;
}

.how-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.how-card{
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(15,23,42,.08);
  border-radius: 18px;
  box-shadow: var(--shadow2);
  padding: 14px;
  display: grid;
  gap: 8px;
  align-content: start;
}

.how-card i{
  font-size: 18px;
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(89,163,197,.12);
  border: 1px solid rgba(89,163,197,.16);
}

.how-card h3{
  margin: 0;
  font-size: 14px;
  font-weight: 1000;
  letter-spacing: -0.02em;
}

.how-card p{
  margin: 0;
  color: var(--muted);
  font-weight: 700;
  line-height: 1.45;
}

/* =========================
   COOKIE BANNER (consent-popup.js)
   ========================= */
.cookie-banner{
  position: fixed;
  left: 14px;
  right: 14px;
  bottom: 14px;
  z-index: 5000;

  background: rgba(255,255,255,.95);
  border: 1px solid rgba(15,23,42,.10);
  border-radius: 18px;
  box-shadow: 0 22px 60px rgba(2,6,23,.22);

  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.cookie-banner p{
  margin: 0;
  color: var(--text);
  font-weight: 800;
  line-height: 1.35;
}

#accept-consent-btn{
  height: 42px;
  padding: 0 14px;
  border-radius: 14px;
  border: none;
  cursor: pointer;
  font-weight: 950;
  color: #fff;
  background: linear-gradient(180deg, var(--primary), var(--primary2));
  box-shadow: 0 10px 24px rgba(89,163,197,.18);
  transition: transform .05s ease, filter .15s ease;
}

#accept-consent-btn:hover{ filter: brightness(1.03); }
#accept-consent-btn:active{ transform: translateY(1px); }

/* =========================
   FOOTER “market” (se usar classes footer--market)
   ========================= */
.footer--market{
  background: linear-gradient(
  180deg,
  #eef3fa 0%,
  #dfe7f1 100%
);
  border-top: 1px solid rgba(255,255,255,.10);
}

.footer-grid{
  display: grid !important;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 16px;
  align-items: start;
}

.footer-col h4{
  margin: 0 0 10px;
  font-weight: 1000;
  letter-spacing: -0.02em;
}

.footer-col a{
  display: block;
  margin: 8px 0 0;
  opacity: .92;
}

.footer-col a:hover{ opacity: 1; }

.footer-brand img{
  height: 44px;
  width: auto;
}

/* ============================================================
   15) RESPONSIVO extra do layout marketplace
   ============================================================ */
@media (max-width: 1100px){
  .cat-grid{ grid-template-columns: repeat(3, 1fr); }
  .how-grid{ grid-template-columns: repeat(2, 1fr); }
  
}

@media (max-width: 900px){
  .hero-grid{ grid-template-columns: 1fr; }
  .trustbar{
    flex-wrap: wrap;
    justify-content: flex-start;
  }
}

@media (max-width: 768px){
  .header-row{
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .action-pill{
    width: 100%;
    justify-content: flex-start;
  }

  .cat-grid{ grid-template-columns: repeat(2, 1fr); }
  .quick-delivery-strip{ grid-template-columns: 1fr; }
  .how-grid{ grid-template-columns: 1fr; }

  .cookie-banner{
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  #accept-consent-btn{ width: 100%; }
  .footer-grid{ grid-template-columns: 1fr; text-align: center; }
}

/* ============================================================
   16) MOBILE — experiência marketplace (telefone)
   ✅ header compacto
   ✅ busca 100% largura
   ✅ sidebar filtros full-screen
   ✅ cards grandes no dedo (snap)
   ✅ modal em tela cheia
   ✅ zero overflow horizontal
   ============================================================ */

@media (max-width: 768px){

  /* 1) blindagem anti “scroll lateral” */
  html, body{
    width: 100%;
    overflow-x: hidden !important;
  }

  /* 2) container mais confortável */
  .container{
    padding: 0 14px;
  }

  /* ========================================================
     HEADER (logo + auth + carrinho) sem quebrar
     - funciona tanto no seu HTML antigo quanto no “referência”
     ======================================================== */
  .header .container{
    height: auto !important;
    border-radius: 0 0 14px 14px;
    padding: 10px 0;
  }

  /* se existir .header-row (layout referência), usa grid */
  .header-row{
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "logo actions"
      "search search";
    gap: 10px;
    align-items: center;
  }

  .logo{
    grid-area: logo;
  }

  .logo img{
    height: 42px;
  }

  /* ações ficam compactas */
  .header-actions{
    grid-area: actions;
    gap: 8px;
    justify-content: flex-end;
    flex-wrap: nowrap;
  }

  .action-btn{
    padding: 8px 10px;
    border-radius: 12px;
    font-size: .95rem;
  }

  /* ========================================================
     BUSCA (search-container) no topo e full width
     ======================================================== */
  #search-container{
    grid-area: search;
    width: 100%;
    margin: 0 0 12px;
    padding: 10px;
    border-radius: 16px;
  }

  .search-bar{
    grid-template-columns: 1fr 44px;
    gap: 8px;
  }

  #search-input{
    height: 46px;
    font-size: 16px; /* evita zoom do iOS */
  }

  #search-btn{
    height: 46px;
    width: 46px;
    border-radius: 14px;
  }

  #suggestions-box{
    max-height: 52vh;
  }

  /* ========================================================
     SIDEBAR FILTROS: vira “tela cheia”
     ======================================================== */
  .filter-sidebar{
    width: 100%;
    max-width: 100%;
    border-right: none;
    border-radius: 0;
    padding: 12px;
  }

  .filter-header{
    position: sticky;
    top: 0;
    background: rgba(255,255,255,.98);
    padding: 8px 0 10px;
    z-index: 1;
  }

  .filter-actions{
    position: sticky;
    bottom: 0;
    background: rgba(255,255,255,.98);
    padding: 10px 0 6px;
    margin-top: 10px;
  }

  .btn-clear,
  .btn-apply{
    height: 48px;
    border-radius: 16px;
    font-size: 1rem;
  }

  /* ========================================================
     TRUSTBAR / HERO / CATEGORIAS (se você usar o index referência)
     ======================================================== */
  .trustbar{
    gap: 8px;
    padding: 10px 14px 14px;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
  }

  .trustbar::-webkit-scrollbar{ height: 8px; }

  .hero-copy h1{
    font-size: 22px;
  }

  .hero-card{
    border-radius: 18px;
  }

  .cat-grid{
    grid-template-columns: repeat(2, 1fr);
  }

  /* ========================================================
     CARROSSEIS: cards grandes, snap bonito, sem empurrar body
     ======================================================== */
  .carousel{
    padding: 12px 44px; /* espaço pros botões */
    gap: 12px;
  }

  .product-card,
  .produto-card{
    width: 82vw;
    min-width: 82vw;
    border-radius: 18px;
  }

  .loja-card{
    width: 76vw;
    min-width: 76vw;
    border-radius: 18px;
  }

  .card-img-carousel{
    height: 210px;
    border-radius: 16px;
  }

  .add-to-cart-btn{
    height: 50px;
    border-radius: 16px;
    font-size: 1rem;
  }

  /* botões do carrossel mais fáceis de tocar */
  .carousel-btn{
    width: 42px;
    height: 42px;
    border-radius: 16px;
  }

  /* ========================================================
     GRID “Todos os produtos” (se usar)
     ======================================================== */
  .product-grid{
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 10px;
  }

  /* ========================================================
     MODAL: em celular vira “quase tela cheia”
     ======================================================== */
  .modal{
    padding: 10px;
  }

  .modal-content{
    width: 100%;
    max-height: 92vh;
    border-radius: 18px;
    padding: 14px;
  }

  .modal-body{
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .modal-left{
    grid-template-columns: 42px 1fr 42px;
    border-radius: 18px;
  }

  #modal-produto-img{
    height: 300px;
  }

  .thumbs-container img{
    width: 64px;
    height: 64px;
    border-radius: 14px;
  }

  .cta-button{
    height: 52px;
    border-radius: 16px;
    font-size: 1rem;
  }

  /* ========================================================
     FOOTER empilhado
     ======================================================== */
  .footer .container{
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
  }

  /* Cookie banner: full width e botões grandes */
  .cookie-banner{
    left: 10px;
    right: 10px;
    bottom: 10px;
    border-radius: 18px;
    padding: 12px;
  }

  #accept-consent-btn{
    width: 100%;
    height: 48px;
    border-radius: 16px;
  }
}

/* ============================================================
   17) MOBILE MUITO PEQUENO (<= 420px)
   ============================================================ */
@media (max-width: 420px){


  .loja-card{
    width: 84vw;
    min-width: 84vw;
  }

  #modal-produto-img{
    height: 260px;
  }

  .product-grid{
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   18) MOBILE COMPACTO — Header/Footer menores (refino final)
   ============================================================ */
@media (max-width: 768px){

  /* ---------- HEADER: reduz altura e “peso” visual ---------- */

  /* tira um pouco do “bloco” do gradiente */
  .header .container{
    padding: 8px 0 !important;
    border-radius: 0 0 12px 12px !important;
  }

  /* se tiver header-row (layout referência), aperta tudo */
  .header-row{
    gap: 8px !important;
  }

  /* logo menor */
  .logo img{
    height: 36px !important;
  }

  /* botões mais enxutos */
  .action-btn{
    padding: 7px 9px !important;
    border-radius: 12px !important;
    font-size: .92rem !important;
    line-height: 1 !important;
  }

  /* cart badge menor */
  .cart-count{
    width: 20px !important;
    height: 20px !important;
    font-size: .72rem !important;
    top: -9px !important;
    right: -10px !important;
  }

  /* pílula de endereço (se existir) fica mais baixa */
  .action-pill{
    height: 40px !important;
    padding: 7px 10px !important;
    border-radius: 14px !important;
  }
  .action-pill small{ display: none; } /* remove “definir / cidade” pra não crescer */

  /* busca mais compacta */
  #search-container{
    padding: 8px !important;
    border-radius: 14px !important;
    margin-bottom: 10px !important;
  }
  #search-input{
    height: 44px !important;
  }
  #search-btn{
    height: 44px !important;
    width: 44px !important;
  }

  /* trustbar: vira micro-linha (ou pode esconder de vez) */
  .trustbar{
    padding: 8px 14px 10px !important;
    gap: 8px !important;
  }
  .trust-item{
    padding: 6px 8px !important;
    font-size: 11px !important;
    border-radius: 999px !important;
  }
 
  .trustbar{ display:none !important; }
  

  /* ---------- FOOTER: reduz padding e remove textos longos ---------- */
  .footer{
    padding: 16px 0 !important;
    font-size: 13px !important;
  }

  .footer .container{
    gap: 12px !important;
  }

  /* footer “market”: colunas bem compactas */
  .footer-grid{
    gap: 12px !important;
  }

  .footer-col h4{
    margin: 0 0 6px !important;
    font-size: 14px !important;
  }

  .footer-col a{
    margin: 6px 0 0 !important;
    font-size: 13px !important;
  }

  /* reduz textos longos no footer */
  .footer-col p{
    margin: 6px 0 0 !important;
    line-height: 1.35 !important;
  }

  /* Esconde “horário detalhado” no mobile (fica enorme) */
  .footer-col p.muted:nth-of-type(n + 2){
    display: none;
  }

  /* Se seu footer antigo (não market) tiver 2 blocos grandes,
     dá pra esconder o bloco “horário” no mobile com fallback:
     (vai funcionar se o 2º <div> do footer for o horário)
  */
  .footer > .container > div:nth-child(2){
    display: none;
  }
}

/* ============================================================
   19) MUITO PEQUENO (<= 420px): ainda mais compacto
   ============================================================ */
@media (max-width: 420px){

  .logo img{
    height: 80px !important;
  }

  .action-btn{
    padding: 6px 8px !important;
    font-size: .9rem !important;
  }

  /* diminui os espaçamentos do header */
  .header-row{ gap: 6px !important; }

  /* footer minimalista */
  .footer{
    padding: 14px 0 !important;
  }
}

/* ============================================================
   20) REMOVER ENDEREÇO/CEP DO TOPO
   ============================================================ */

/* Esconde a pílula de endereço em qualquer tela */
.action-pill,
#btn-endereco-topo{
  display: none !important;
}

/* ============================================================
   CARDS V2 — estrutura (card-body + badges)
   ============================================================ */

/* corpo do card */
.card-body{
  display: grid;
  gap: 8px;
  padding-top: 10px;
}

/* título: 2 linhas no máximo */
.product-title{
  margin: 0;
  font-size: 14px;
  font-weight: 950;
  line-height: 1.2;

  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* meta: 1 linha */
.product-meta{
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;

  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.price-row{
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

/* badges */
.card-img-carousel{
  position: relative; /* necessário pro overlay */
}

.card-badges{
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  gap: 8px;
  z-index: 2;
}

.badge{
  font-size: 11px;
  font-weight: 950;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 10px 24px rgba(2,6,23,.18);
}

/* cores sem “fixar cor forte” demais */
.badge-promo{
  background: rgba(239,68,68,.92);
  color: #fff;
}
.badge-destaque{
  background: rgba(255,202,40,.92);
  color: #111827;
}

/* botão: sempre no final e grande no dedo */
.add-to-cart-btn{
  margin-top: 2px;
}

/* mobile: botão e tipografia mais confortáveis */
@media (max-width: 768px){
  .product-title{ font-size: 15px; }
  .add-to-cart-btn{ height: 52px; }
  .badge{ padding: 7px 11px; }
}

@media (max-width: 768px){
  #suggestions-box{
    max-height: 50vh;
  }
}
