:root {
  --bg: #f8f9fc;
  --surface: #ffffff;
  --surface-alt: #f1f5f9;
  --ink: #0f172a;
  --dark: #1a1a2e;
  --muted: #64748b;
  --line: #e2e8f0;
  --primary: #D97706;
  --primary-dark: #B45309;
  --badge-dark: #14171F;
  --gold: #F5D061;
  --gold-bright: #FFDF80;
  --price-green: #15803D;
  --accent: #059669;
  --accent-bg: #ecfdf5;
  --th-header: linear-gradient(rgba(10, 6, 0, .5), rgba(10, 6, 0, .5)),
               url('/assets/images/hero/metal-dark-1.jpg') left center / auto 260% repeat-x;
  --th-catbar: linear-gradient(rgba(10, 6, 0, .32), rgba(10, 6, 0, .32)),
               url('/assets/images/hero/metal-dark-1.jpg') left center / auto 200% repeat-x;
  --th-catbar-border: rgba(255, 153, 0, .25);
  --th-shadow: 0 2px 20px rgba(255, 140, 0, .25);
  --th-footer: #14171F;
  --th-footer-bottom: #0c0e13;
  --radius: 12px;
  --shadow: 0 2px 12px rgba(0, 0, 0, .08);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, .12);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.55;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }

/* ── Container 100% expansivo e fluido em qualquer tela ── */
.container {
  width: 100%;
  padding: 0 clamp(10px, 1.5%, 22px);
}

/* ══════════════════════════════════════════════════════════
   HEADER — 1º Tema Oficial: Metal Dark 1 (Expansivo + Mobile)
   ══════════════════════════════════════════════════════════ */
.pm-header {
  background: var(--th-header);
  background-color: #0f1117;
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--th-shadow);
}
.pm-topbar-inner {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: clamp(10px, 2vw, 20px);
  width: 100%;
  padding: 10px clamp(10px, 1.5%, 22px);
}
.pm-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: clamp(17px, 2.2vw, 22px);
  color: #fff;
  white-space: nowrap;
  flex-shrink: 0;
}
.pm-logo img {
  height: var(--logo-h, 56px);
  width: auto;
  max-width: min(260px, 38vw);
  object-fit: contain;
}

/* ── Busca Dark Pill Dourada com Brilho + Microfone ── */
.pm-search-wrap {
  position: relative;
  flex: 1;
  min-width: 0;
}
.pm-search {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  background: rgba(15, 15, 15, 0.72);
  border: 2px solid var(--gold);
  box-shadow: 0 0 6px rgba(245, 208, 97, .55), 0 0 18px rgba(245, 208, 97, .22);
  border-radius: 50px;
  overflow: hidden;
  min-width: 0;
  transition: box-shadow .25s, background .25s, border-color .25s;
}
.pm-search:focus-within {
  border-color: var(--gold-bright);
  box-shadow: 0 0 10px rgba(255, 223, 128, .8), 0 0 24px rgba(255, 223, 128, .38);
  background: rgba(20, 20, 20, 0.9);
}
.pm-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  padding: 11px 8px 11px 22px;
  font-size: 15px;
  color: #ffffff;
  background: transparent;
  font-family: inherit;
}
.pm-search input::placeholder { color: #9ca3af; }

.pm-voice-btn {
  flex-shrink: 0;
  background: transparent;
  border: 0;
  color: var(--gold);
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform .2s, color .2s, filter .2s;
}
.pm-voice-btn:hover {
  transform: scale(1.15);
  color: var(--gold-bright);
  filter: drop-shadow(0 0 6px rgba(255, 223, 128, .8));
}
.pm-voice-btn.listening {
  color: #ef4444 !important;
  animation: pmVoicePulse 1.1s infinite alternate;
  filter: drop-shadow(0 0 8px rgba(239, 68, 68, .9));
}
@keyframes pmVoicePulse {
  0% { transform: scale(1); filter: drop-shadow(0 0 4px rgba(239, 68, 68, .6)); }
  100% { transform: scale(1.22); filter: drop-shadow(0 0 14px rgba(239, 68, 68, 1)); }
}

.pm-search-submit {
  flex-shrink: 0;
  background: transparent;
  color: var(--gold);
  border: 0;
  padding: 0 20px 0 8px;
  font-size: 15px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform .2s, color .2s;
}
.pm-search-submit:hover {
  transform: scale(1.1);
  color: var(--gold-bright);
  filter: drop-shadow(0 0 5px rgba(255, 223, 128, .8));
}
.pm-search-submit span { display: none; }

/* ── Autocomplete Dropdown ── */
.pm-auto-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: #ffffff;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 16px 38px rgba(0, 0, 0, .24);
  z-index: 9999;
  max-height: 440px;
  overflow-y: auto;
  padding: 4px 0;
}
.pm-auto-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border-bottom: 1px solid #f1f5f9;
  color: #0f172a;
}
.pm-auto-item:last-of-type { border-bottom: 0; }
.pm-auto-item:hover, .pm-auto-item.active { background: #fffbeb; }
.pm-auto-item img { width: 44px; height: 44px; object-fit: contain; border-radius: 6px; background: #fff; flex-shrink: 0; }
.pm-auto-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pm-auto-title {
  font-size: 13.5px;
  font-weight: 600;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pm-auto-meta { font-size: 12.5px; color: var(--price-green); font-weight: 700; }
.pm-auto-footer {
  display: block;
  padding: 10px 16px;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--primary-dark);
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
}
.pm-auto-footer:hover { background: #f1f5f9; text-decoration: underline; }

/* ── Ações do Topo (Hamburger só no mobile <= 768px) ── */
.pm-header-right {
  display: none;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.pm-menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 42px;
  padding: 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .16);
  color: #fff;
}

/* ── Barra de Categorias + Scroll Touch ── */
.pm-catbar {
  background: var(--th-catbar);
  background-color: #1a1d27;
  border-top: 1px solid var(--th-catbar-border);
}
.pm-catbar-inner {
  display: flex;
  flex-direction: row;
  align-items: center;
  width: 100%;
  padding: 0 clamp(10px, 1.5%, 22px);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  gap: 4px;
}
.pm-catbar-inner::-webkit-scrollbar { display: none; }
.pm-cat-link {
  display: inline-flex;
  align-items: center;
  padding: 0 13px;
  min-height: 40px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  flex-shrink: 0;
  border-bottom: 2px solid transparent;
  transition: all .18s;
}
.pm-cat-link:hover {
  color: var(--gold);
  background: rgba(255, 255, 255, .06);
  border-bottom-color: var(--primary);
}
.pm-cat-hot { color: #FDE68A; font-weight: 700; }
.pm-cat-divider {
  width: 1px;
  height: 20px;
  background: rgba(255, 255, 255, .16);
  margin: 0 6px;
  flex-shrink: 0;
}

/* ── Menu Mobile Drawer ── */
.pm-mobile-nav {
  display: none;
  background: #14171F;
  border-top: 1px solid var(--th-catbar-border);
  padding: 12px clamp(12px, 3%, 20px);
  flex-wrap: wrap;
  gap: 6px;
}
.pm-mobile-nav.open { display: flex; }
.pm-mobile-nav a {
  color: #e2e8f0;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 600;
  background: rgba(255, 255, 255, .05);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.pm-mobile-nav a:hover { background: rgba(245, 208, 97, .15); color: var(--gold); }

/* ══════════════════════════════════════════════════════════
   CARROSSEL DE BANNERS — Expansivo e 2 lado a lado até no celular
   ══════════════════════════════════════════════════════════ */
.banners-wrap {
  width: 100%;
  padding: 2px 0 0;
  margin: 0;
}
.banner-carousel {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: transparent;
  user-select: none;
  height: clamp(120px, 22vw, 380px);
}
.carousel-track {
  display: flex;
  flex-direction: row;
  height: 100%;
  transition: transform .5s cubic-bezier(.4, 0, .2, 1);
  will-change: transform;
}
.carousel-slide {
  min-width: 100%;
  width: 100%;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
}
.banner-par {
  display: flex;
  flex-direction: row;
  flex: 1;
  gap: 10px;
  min-height: 0;
}
.banner-par-item {
  flex: 0 0 calc(50% - 5px);
  min-height: 0;
  overflow: hidden;
  border-radius: 8px;
  display: flex;
}
.banner-par-item:only-child { flex: 0 0 100%; }
.banner-par-item a { display: flex; flex: 1; min-height: 0; }
.banner-par-item img { width: 100%; height: 100%; object-fit: cover; object-position: center; transition: opacity .25s; }
.banner-par-item img:hover { opacity: .92; }

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 54px;
  border-radius: 6px;
  border: 0;
  background: rgba(0, 0, 0, .42);
  color: #fff;
  font-size: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}
.carousel-btn:hover { background: rgba(0, 0, 0, .7); }
.carousel-prev { left: 6px; }
.carousel-next { right: 6px; }
.carousel-dots {
  position: absolute;
  bottom: clamp(22px, 2.8vw, 42px);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 7px;
  padding: 0;
  background: transparent;
  z-index: 12;
}
.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 0;
  padding: 0;
  background: rgba(255, 255, 255, .5);
}
.carousel-dot.active { background: var(--gold); width: 20px; border-radius: 999px; }

/* ── Vitrines Flutuantes (Sobrepõem levemente o banner, sem título) ── */
.vitrines-row {
  display: flex;
  flex-wrap: nowrap;
  gap: 12px;
  padding: 0 0 16px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  position: relative;
  z-index: 10;
  margin-top: clamp(-38px, -2.2vw, -12px);
}
.vitrines-row::-webkit-scrollbar { display: none; }
.vc {
  flex: 0 0 clamp(175px, 17.5vw, 230px);
  background: #fff;
  border: 1px solid var(--line);
  border-top: 4px solid var(--vit-cor, #F5C400);
  border-radius: 12px;
  box-shadow: 0 6px 22px rgba(0, 0, 0, .15), 0 2px 6px rgba(0, 0, 0, .08);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: box-shadow .2s, transform .2s;
}
.vc:hover { box-shadow: 0 12px 32px rgba(0, 0, 0, .2); transform: translateY(-3px); }
.vc-head {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 9px 10px;
  border-bottom: 1px solid #f1f5f9;
  background: #fff;
}
.vc-tit {
  font-size: 12.5px;
  font-weight: 800;
  color: #0F172A;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.vc-foto-wrap {
  display: block;
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 100%;
  background: #fff;
  overflow: hidden;
}
.vc-foto {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 14px;
  transition: transform .28s ease;
}
.vc:hover .vc-foto { transform: scale(1.05); }

/* ── Botões & Chips ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 0;
  border-radius: 10px;
  padding: 10px 16px;
  min-height: 42px;
  font-weight: 700;
  font-size: 14px;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-accent { background: var(--price-green); color: #fff; }
.btn-accent:hover { background: #166534; }
.btn-outline { background: var(--surface); border: 1px solid var(--line); color: var(--ink); }
.btn-outline:hover { background: var(--surface-alt); }

.chips-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: clamp(10px, 2vw, 16px) 0 clamp(14px, 2.5vw, 20px);
}
.chip {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 13px;
  font-size: clamp(12px, 1.5vw, 13px);
  font-weight: 600;
  color: #334155;
  white-space: nowrap;
}
.chip:hover, .chip.active {
  background: var(--badge-dark);
  border-color: var(--badge-dark);
  color: var(--gold);
}

.section-head {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: clamp(18px, 3vw, 28px) 0 clamp(10px, 2vw, 14px);
}
.section-head h2 {
  margin: 0;
  font-size: clamp(15px, 2vw, 20px);
  font-weight: 800;
  color: #1E293B;
}
.link-more {
  color: var(--primary-dark);
  font-weight: 700;
  font-size: clamp(12.5px, 1.5vw, 14px);
  white-space: nowrap;
}

/* ══════════════════════════════════════════════════════════
   GRADE DE PRODUTOS — Fluida no Desktop, 2 Colunas Fixas no Celular
   ══════════════════════════════════════════════════════════ */
.grid-products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(clamp(150px, 22vw, 230px), 1fr));
  gap: clamp(12px, 2vw, 20px);
}
.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 2px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
  transition: transform .18s ease, box-shadow .18s ease;
}
.card.store-mercadolivre { border-top-color: #F5C400; }
.card.store-amazon { border-top-color: #0099D6; }
.card.store-shopee { border-top-color: #EE4D2D; }
.card.store-terabyte { border-top-color: #0F172A; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }

.card-media {
  position: relative;
  aspect-ratio: 1;
  width: 100%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(10px, 2vw, 16px);
  border-bottom: 1px solid #f1f5f9;
  overflow: hidden;
}
.card-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform .25s ease;
}
.card:hover .card-media img { transform: scale(1.04); }

.badge-compare {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  background: var(--badge-dark);
  color: var(--gold);
  border: 1px solid rgba(245, 208, 97, .45);
  font-size: 10.5px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 999px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .2);
}
.badge-single {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  background: #f1f5f9;
  color: #334155;
  font-size: 10.5px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
}

.card-body {
  padding: clamp(10px, 2vw, 15px);
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}
.card-meta {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  font-size: 10.5px;
  color: var(--muted);
  text-transform: uppercase;
  font-weight: 700;
}
.card-meta span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-title {
  font-size: clamp(12.8px, 1.5vw, 14px);
  font-weight: 700;
  color: #0F172A;
  line-height: 1.36;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.72em;
}
.card-price-row { margin-top: auto; padding-top: 4px; }
.price-from {
  font-size: 11px;
  color: var(--muted);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  font-weight: 600;
  margin-bottom: 3px;
}
.price-main {
  font-size: clamp(16px, 2.2vw, 21px);
  font-weight: 800;
  color: var(--price-green);
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.price-savings { display: inline-block; white-space: nowrap; font-size: 11px; font-weight: 700; color: var(--primary-dark); margin-left: 4px; }
.btn-compare-card {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 8px;
  padding: 8px;
  min-height: 38px;
  border-radius: 9px;
  background: #F1F5F9;
  color: #0F172A;
  border: 1px solid #CBD5E1;
  font-size: clamp(12px, 1.4vw, 13px);
  font-weight: 700;
}
.card:hover .btn-compare-card {
  background: var(--badge-dark);
  color: var(--gold);
  border-color: var(--badge-dark);
}

.store-pill { display: inline-block; padding: 2px 7px; border-radius: 6px; font-size: 10.5px; font-weight: 800; }

/* Aviso de preço no Pix e com cupom da Shopee */
.pm-pix-cupom-pill,
.offer-perk {
  display: block;
  width: fit-content;
  max-width: 100%;
  margin-top: 4px;
  padding: 5px 8px;
  color: #FFFFFF;
  background: #115E59;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  white-space: normal;
}

/* ── Guias Comparativos & Lojas Parceiras ── */
.guides-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(clamp(165px, 24vw, 250px), 1fr));
  gap: clamp(10px, 1.8vw, 14px);
}
.stores-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(clamp(130px, 18vw, 200px), 1fr));
  gap: clamp(10px, 2vw, 16px);
  margin-top: 12px;
}
.store-card {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 2.8vw, 24px) 14px;
  border-radius: var(--radius);
  font-weight: 800;
  font-size: clamp(13.5px, 1.8vw, 16px);
  background: var(--store-bg, #14171F);
  color: var(--store-fg, #fff);
  box-shadow: var(--shadow);
  transition: transform .18s, box-shadow .18s;
}
.store-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }

/* ── Busca & Barra Enxuta Mobile-First ── */
.chips-compact {
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  margin: 6px 0 8px;
  padding-bottom: 2px;
}
.chips-compact::-webkit-scrollbar { display: none; }
.chips-compact .chip { flex-shrink: 0; padding: 5px 11px; font-size: 12px; }

.busca-head-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin: 14px 0 8px;
}
.busca-heading {
  margin: 0;
  font-size: clamp(17px, 2.2vw, 22px);
  font-weight: 800;
  color: #1E293B;
  line-height: 1.25;
}
.busca-count-badge {
  font-size: 12.5px;
  font-weight: 700;
  color: #64748B;
  white-space: nowrap;
  flex-shrink: 0;
}

.busca-toolbar {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.busca-lojas-list {
  display: flex;
  gap: 6px;
  align-items: center;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  min-width: 0;
}
.busca-lojas-list::-webkit-scrollbar { display: none; }
.busca-loja-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  border: 1.5px solid var(--pill-color, #475569);
  background: #fff;
  color: #1e293b;
  white-space: nowrap;
  flex-shrink: 0;
}
.busca-loja-pill.is-active { background: var(--pill-color, #475569); color: var(--pill-fg, #fff); }
.busca-actions-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.busca-sort-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 34px;
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  border: 1.5px solid #cbd5e1;
  background: #fff;
  color: #1e293b;
  white-space: nowrap;
}
.busca-sort-pill.is-active {
  background: #14171F;
  border-color: #14171F;
  color: #F5D061;
}
.select {
  border: 1px solid #cbd5e1;
  border-radius: 9px;
  padding: 8px 12px;
  min-height: 40px;
  background: var(--bg);
  font-size: 13.5px;
  font-weight: 600;
}
.pagination { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin: 24px 0; }
.tree-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 14px 0 8px;
  font-size: clamp(12px, 1.5vw, 13px);
  color: var(--muted);
}
.tree-breadcrumb a { color: var(--primary-dark); font-weight: 600; }
.tree-breadcrumb a:hover { text-decoration: underline; }
.tree-breadcrumb .sep { color: #94a3b8; }

/* ── Página de Produto Limpa & Comparador por Loja ── */
.product-layout {
  display: grid;
  grid-template-columns: minmax(280px, 44%) minmax(0, 1fr);
  gap: clamp(16px, 3vw, 28px);
  margin: 10px 0 22px;
  align-items: stretch;
  max-width: 100%;
}
.product-layout > * {
  min-width: 0;
  max-width: 100%;
}
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: clamp(14px, 2.4vw, 22px);
  box-shadow: var(--shadow);
  min-width: 0;
  max-width: 100%;
}
.product-gallery {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 320px;
  background: #fff;
}
.product-gallery img { max-height: 420px; max-width: 100%; width: auto; height: auto; object-fit: contain; }
.product-compare-panel { display: flex; flex-direction: column; min-width: 0; max-width: 100%; }
.product-title-h1 {
  margin: 0 0 12px;
  font-size: clamp(17px, 2.2vw, 22px);
  font-weight: 800;
  line-height: 1.3;
  color: #0F172A;
  overflow-wrap: anywhere;
}
.product-price-hero {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.product-hero-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--muted);
}
.product-hero-values {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
}
.product-hero-price {
  font-size: clamp(24px, 4vw, 30px);
  font-weight: 800;
  color: #0F172A;
  letter-spacing: -0.02em;
}
.product-saving-pill {
  background: #ECFDF5;
  color: #15803D;
  border: 1px solid #BBF7D0;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 12px;
}
.compare-subhead {
  margin: 14px 0 8px;
  font-size: 14px;
  font-weight: 800;
  color: #1E293B;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.pm-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px;
  border: 1px solid #CBD5E1;
  border-radius: 999px;
  background: #F8FAFC;
  color: #334155;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all .15s;
}
.pm-share-btn:hover { background: #F1F5F9; border-color: #94A3B8; color: #0F172A; }
.pm-share-btn.is-copied { background: #ECFDF5; border-color: #86EFAC; color: #15803D; }
.offer-installment {
  font-size: 11.5px;
  font-weight: 600;
  color: #475569;
  line-height: 1.25;
}

.offers-list { display: flex; flex-direction: column; gap: 10px; }
.offer-row {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  background: #FFFFFF;
}
.offer-row.best {
  border: 1.5px solid #16A34A;
}
.offer-preview-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent;
  text-align: left;
  color: inherit;
}
.offer-thumb-mini {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  object-fit: contain;
  background: #fff;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  padding: 2px;
}
.offer-price-col {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}
.offer-spec-hint {
  font-size: 11px;
  font-weight: 600;
  color: #64748B;
  margin-top: 1px;
}
.offer-preview-btn:hover .offer-spec-hint {
  color: var(--primary-dark);
  text-decoration: underline;
}
.offer-hover-pop {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 40;
  width: max-content;
  max-width: min(460px, 100%);
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  border-radius: 10px;
  padding: 10px 12px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, .16);
  pointer-events: none;
}
.offer-hover-pop-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 5px;
  font-size: 11px;
  color: #64748B;
  font-weight: 600;
}
.offer-hover-pop-store {
  padding: 2px 7px;
  border-radius: 5px;
  font-size: 10.5px;
  font-weight: 800;
}
.offer-hover-pop-title {
  font-size: 12.5px;
  font-weight: 700;
  color: #0F172A;
  line-height: 1.38;
}
@media (hover: hover) and (pointer: fine) {
  .offer-preview-btn:hover .offer-hover-pop,
  .offer-preview-btn:focus-visible .offer-hover-pop {
    display: block;
  }
}

.pm-offer-modal {
  position: fixed;
  inset: 0;
  z-index: 900;
  background: rgba(15, 23, 42, .55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.pm-offer-dialog {
  position: relative;
  width: 100%;
  max-width: 520px;
  background: #FFFFFF;
  border-radius: 16px;
  padding: 18px 20px 20px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, .25);
}
.pm-offer-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid #E2E8F0;
  background: #F8FAFC;
  color: #334155;
  font-weight: 700;
}
.pm-offer-modal-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  padding-right: 36px;
}
.pm-offer-modal-body {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.pm-offer-modal-img-wrap {
  flex: 0 0 120px;
  height: 120px;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
}
.pm-offer-modal-img-wrap img { max-width: 100%; max-height: 100%; object-fit: contain; }
.pm-offer-modal-info { flex: 1; min-width: 0; }
.pm-offer-modal-sub { font-size: 11px; color: #64748B; font-weight: 600; margin-bottom: 4px; }
.pm-offer-modal-title { margin: 0 0 8px; font-size: 14.5px; line-height: 1.38; color: #0F172A; font-weight: 700; }
.pm-offer-modal-price { font-size: 22px; font-weight: 800; color: #0F172A; margin-bottom: 6px; }
.pm-offer-modal-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.offer-best-tag {
  display: inline-block;
  width: fit-content;
  background: #16A34A;
  color: #FFFFFF;
  font-size: 10.5px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 5px;
  letter-spacing: .01em;
}
.offer-price {
  font-size: clamp(18px, 2.2vw, 22px);
  font-weight: 800;
  color: #0F172A;
  white-space: nowrap;
  letter-spacing: -0.02em;
}
.offer-row.best .offer-price { color: #15803D; }
.offer-credit-label {
  display: inline-block;
  color: #475569;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: normal;
}
.offer-price:has(.offer-credit-label) { white-space: normal; }
.offer-perk {
  padding: 3px 6px;
}
.offer-cta-col { flex-shrink: 0; }
.offer-store-btn {
  min-height: 40px;
  padding: 8px 16px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .12);
}
.offer-store-btn:hover { filter: brightness(.95); transform: translateY(-1px); }
.offer-store-btn-sm { min-height: 36px; padding: 6px 12px; font-size: 12.5px; }
.offer-extra-title {
  font-size: 12px;
  color: #475569;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.offers-note {
  margin: 12px 0 0;
  font-size: 11.5px;
  color: var(--muted);
  line-height: 1.4;
}
.offers-extras-details { margin-top: 12px; }
.offers-extras-details summary {
  cursor: pointer;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--primary-dark);
}
.product-specs-panel { margin: 14px 0; }
.product-section-title { margin: 0 0 10px; font-size: 15px; font-weight: 800; color: #0F172A; }

.pm-mini-tabs-wrap {
  margin: 14px 0 6px;
}
.pm-mini-tabs-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.pm-mini-tab {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid #CBD5E1;
  background: #FFFFFF;
  color: #475569;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color .15s, color .15s, background .15s;
}
.pm-mini-tab:hover {
  border-color: var(--primary-dark);
  color: #0F172A;
}
.pm-mini-tab.is-active {
  background: #FFFBEB;
  border-color: var(--primary-dark);
  color: var(--primary-dark);
}
.pm-mini-tab-panel {
  display: none;
  margin-top: 10px;
  padding: 14px 16px;
  border-radius: 12px;
}
.pm-mini-tab-panel.is-open {
  display: block;
}
.pm-mini-faq-item {
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}
.pm-mini-faq-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.pm-mini-faq-item summary {
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  color: #0F172A;
}
.pm-mini-faq-item p {
  margin: 5px 0 0;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.45;
}

.specs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(clamp(125px, 18vw, 175px), 1fr));
  gap: 10px;
}
.spec-box { background: var(--surface-alt); border-radius: 10px; padding: 9px 12px; }
.spec-k { font-size: 10.5px; color: var(--muted); display: block; text-transform: uppercase; font-weight: 700; }
.spec-v { font-size: 13px; font-weight: 700; word-break: break-word; }

.recent-viewed-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(clamp(135px, 18vw, 175px), 1fr));
  gap: 12px;
}
.recent-viewed-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.recent-viewed-item img { height: 92px; margin: 0 auto 8px; object-fit: contain; }
.rv-name { font-size: 12.5px; font-weight: 600; color: #0f172a; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rv-price { font-size: 14px; font-weight: 800; color: var(--price-green); margin-top: 4px; }

/* ── Páginas Legais (.pm-legal-wrap) ── */
.pm-legal-wrap {
  max-width: 920px;
  margin: 24px auto 44px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: clamp(18px, 4vw, 32px);
  box-shadow: var(--shadow);
}
.pm-legal-head { border-bottom: 1px solid var(--line); padding-bottom: 14px; margin-bottom: 20px; }
.pm-legal-head h1 { margin: 0 0 6px; font-size: clamp(22px, 3.5vw, 28px); }
.pm-legal-meta { color: var(--muted); font-size: 13px; margin: 0; }
.pm-legal-section { margin-bottom: 22px; }
.pm-legal-section h2 { font-size: 18px; color: var(--primary-dark); margin: 0 0 8px; }
.pm-legal-callout { background: #fffbeb; border: 1px solid #fde68a; border-left: 4px solid var(--primary); border-radius: 12px; padding: 16px; margin: 14px 0; }
.pm-legal-contact-card { background: var(--surface-alt); border-radius: 12px; padding: 18px; margin-top: 18px; }

/* ── Footer Expansivo ── */
.pm-footer { background: var(--th-footer); color: #fff; margin-top: clamp(32px, 5vw, 60px); }
.pm-footer-inner {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr 1fr;
  gap: clamp(20px, 3.5vw, 40px);
  padding: clamp(26px, 4vw, 42px) clamp(10px, 1.5%, 22px);
}
.pm-footer-links { display: flex; flex-direction: column; gap: 7px; font-size: 13px; color: rgba(255, 255, 255, .78); }
.pm-footer-links h4 { margin: 0 0 6px; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--gold); }
.pm-footer-links a:hover { color: #fff; text-decoration: underline; }
.pm-footer-bottom { background: var(--th-footer-bottom); text-align: center; padding: 14px 16px; font-size: 12px; color: rgba(255, 255, 255, .6); }

/* ══════════════════════════════════════════════════════════
   BREAKPOINTS RESPONSIVOS — Tablet & Mobile Touch
   ══════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .pm-footer-inner { grid-template-columns: 1fr 1fr; }
  .tree-breadcrumb {
    flex-wrap: nowrap;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
    margin: 8px 0 6px;
    font-size: 11.5px;
  }
  .tree-breadcrumb::-webkit-scrollbar { display: none; }
  .product-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    margin: 4px 0 18px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 12px;
    box-shadow: var(--shadow);
  }
  .product-compare-panel { display: contents; }
  .product-compare-panel > * { min-width: 0; max-width: 100%; }
  .product-title-h1 { order: 1; font-size: 17px; line-height: 1.28; margin: 0; }
  .product-price-hero { order: 2; padding-bottom: 8px; }
  .product-gallery {
    order: 3;
    height: auto;
    min-height: 135px;
    max-height: 168px;
    padding: 6px;
    border-radius: 12px;
    border: 1px solid #f1f5f9;
    box-shadow: none;
  }
  .product-gallery img { max-height: 148px; }
  .compare-subhead { order: 4; margin: 4px 0 2px; }
  .offers-list { order: 5; }
  .offers-note { order: 6; margin-top: 4px; }
  .offers-extras-details { order: 7; }
}

@media (max-width: 768px) {
  .pm-header-right { display: flex; }
  .pm-menu-toggle { display: inline-flex; }
  .chips-row {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 4px;
    margin: 10px 0 12px;
  }
  .chips-row::-webkit-scrollbar { display: none; }
  .chip { flex-shrink: 0; }
  .grid-products { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
  .offer-row { padding: 9px 10px; gap: 8px; }
  .offer-preview-btn { gap: 8px; }
  .offer-thumb-mini { width: 34px; height: 34px; }
  .offer-price { font-size: 17px; }
  .offer-store-btn { padding: 8px 12px; font-size: 12.5px; min-height: 40px; }
  .offer-row.best .offer-store-btn { min-height: 44px; font-size: 13px; }
  .offer-extra-title { max-width: 155px; }
  .pm-offer-modal-body { flex-direction: column; align-items: stretch; }
  .pm-offer-modal-img-wrap { flex: none; width: 100%; height: 180px; }
  .pm-offer-modal-actions .btn { flex: 1; }
}

/* Mobile Header 2 Linhas (<= 640px) */
@media (max-width: 640px) {
  .pm-topbar-inner {
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 8px 12px 10px;
    gap: 8px 0;
  }
  .pm-logo { order: 1; max-width: 60%; }
  .pm-logo img { height: 34px; max-width: 145px; }
  .pm-header-right { order: 2; margin-left: auto; gap: 6px; }
  .pm-search-wrap { order: 3; width: 100%; flex: 1 1 100%; margin-top: 4px; }
  .pm-search { width: 100%; height: 42px; border-radius: 25px; }
  .pm-search input { font-size: 16px; padding: 0 4px 0 14px; }
  .pm-search-submit { padding: 0 13px 0 6px; }

  .pm-auto-dropdown { top: calc(100% + 6px); max-height: 62vh; }
  .pm-auto-title { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }

  .pm-catbar-inner { padding: 0 10px; }
  .pm-cat-link { padding: 0 10px; min-height: 38px; font-size: 12.5px; }

  .vitrines-row { margin-top: -10px; padding: 0 0 10px; gap: 8px; }
  .vc { flex: 0 0 132px; border-radius: 10px; }
  .vc-head { padding: 6px 8px; }
  .vc-tit { font-size: 11.5px; line-height: 1.25; }
  .vc-foto { padding: 10px; }
  .carousel-dots { bottom: 14px; }

  .busca-toolbar { padding: 8px 10px; gap: 8px; margin-bottom: 12px; }
  .busca-lojas-list { width: 100%; padding-bottom: 2px; }
  .busca-actions-right { width: 100%; justify-content: space-between; }
}

/* Mobile Compacto — 2 Produtos por Linha Garantidos (<= 480px) */
@media (max-width: 480px) {
  .container { padding: 0 10px; }
  .pm-logo img { height: 32px; max-width: 130px; }
  .pm-logo > span > span { display: none; }

  .banner-par { gap: 6px; }
  .banner-par-item { flex: 0 0 calc(50% - 3px); border-radius: 6px; }
  .carousel-btn { width: 30px; height: 42px; font-size: 18px; }

  .grid-products { grid-template-columns: 1fr 1fr; gap: 10px; }
  .card-body { padding: 10px; gap: 5px; }
  .badge-compare, .badge-single { font-size: 9.5px; padding: 2px 6px; }
  .btn-compare-card { font-size: 11.5px; padding: 6px; min-height: 36px; }

  .stores-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .guides-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .pm-footer-inner { grid-template-columns: 1fr; gap: 20px; }

  .offer-row { flex-wrap: wrap; align-items: stretch; gap: 10px; }
  .offer-preview-btn { flex: 1 1 100%; min-width: 0; }
  .offer-cta-col { width: 100%; flex-direction: row; }
  .offer-store-btn { width: 100%; justify-content: center; white-space: normal; text-align: center; }
  .offer-price { font-size: 16px; }
}

@media (max-width: 360px) {
  .grid-products { grid-template-columns: 1fr 1fr; gap: 8px; }
}

/* ══ Página de produto no celular: cabeçalho compacto (logo + busca com microfone + menu em 1 linha) ══ */
@media (max-width: 768px) {
  body.pm-page-produto .pm-header { position: static; }
  body.pm-page-produto .pm-catbar { display: none; }
  body.pm-page-produto .pm-topbar-inner {
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
  }
  body.pm-page-produto .pm-logo { order: 1; max-width: none; flex-shrink: 0; }
  body.pm-page-produto .pm-logo img { height: 26px; max-width: 78px; }
  body.pm-page-produto .pm-logo > span > span { display: none; }
  body.pm-page-produto .pm-search-wrap { order: 2; flex: 1 1 auto; width: auto; margin-top: 0; min-width: 0; }
  body.pm-page-produto .pm-search { height: 38px; width: 100%; }
  body.pm-page-produto .pm-search input { font-size: 15px; padding: 0 4px 0 12px; }
  body.pm-page-produto .pm-voice-btn { padding: 0 6px; }
  body.pm-page-produto .pm-search-submit { padding: 0 10px 0 4px; }
  body.pm-page-produto .pm-header-right { order: 3; margin-left: 0; }
  body.pm-page-produto .pm-menu-toggle { min-width: 38px; height: 38px; padding: 0; }
  body.pm-page-produto .tree-breadcrumb { margin: 4px 0 4px; }
  body.pm-page-produto .product-layout { margin-top: 2px; }
}
