﻿/* â”€â”€ Reset & Base â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', system-ui, sans-serif; color: #1a1a2e; background: #f8f9fc; line-height: 1.6; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* â”€â”€ Variables â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
:root {
  --primary: #6C63FF;
  --primary-dark: #5A52E0;
  --secondary: #FF6B6B;
  --dark: #1a1a2e;
  --text: #374151;
  --text-muted: #9CA3AF;
  --border: #E5E7EB;
  --bg: #f8f9fc;
  --white: #ffffff;
  --radius: 12px;
  --shadow: 0 2px 12px rgba(0,0,0,.08);
  --shadow-lg: 0 8px 32px rgba(0,0,0,.12);

  /* ── Tema visual (header + footer) ─────────────────────── */
  --th-header:        #0f1117;
  --th-catbar:        #1a1d27;
  --th-catbar-border: rgba(255,255,255,.08);
  --th-footer:        #1a1a2e;
  --th-footer-bottom: #111318;
  --th-shadow:        0 2px 16px rgba(0,0,0,.5);
  --th-cat-link:      rgba(255,255,255,.65);
  --th-cat-hover:     rgba(255,255,255,.12);
}

/* â”€â”€ Container â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.container { width: 100%; padding: 0 clamp(12px, 2.5%, 40px); }

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   HEADER â€” estilo KaBuM
   Classe raiz: ps-header (prefixo ps = PlayMart)
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */

/* â”€â”€ Linha 1: fundo escuro â€” logo | busca | admin â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.ps-header { position: sticky; top: 0; z-index: 100; background: var(--th-header); box-shadow: var(--th-shadow); }

.ps-topbar { background: transparent; }

.ps-topbar-inner {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: clamp(10px, 2vw, 20px);
  width: 100%;
  padding: 12px clamp(12px, 2.5%, 40px);
}

/* Logo */
.ps-logo {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  font-size: 22px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}
.ps-logo img { height: var(--logo-h, 56px); width: auto; max-width: min(260px, 38vw); object-fit: contain; }
.ps-logo svg { flex-shrink: 0; }

/* Busca â€” ocupa TODO o espaÃ§o entre logo e admin */
.ps-search {
  flex: 1;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  background: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  min-width: 0;
}
.ps-search input {
  flex: 1;
  border: none;
  outline: none;
  padding: 14px 20px;
  font-size: 16px;
  color: #111111;
  background: #ffffff;
  min-width: 0;
  font-family: inherit;
}
.ps-search input::placeholder { color: #999999; }
.ps-search button {
  flex-shrink: 0;
  background: #FF6600;
  color: #ffffff;
  border: none;
  padding: 0 28px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  font-family: inherit;
  transition: background .2s;
}
.ps-search button:hover { background: #e05500; }

/* Admin + toggle */
.ps-header-right {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.ps-admin-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  color: #cccccc;
  font-size: 11px;
  font-weight: 600;
  text-decoration: none;
  transition: color .2s;
}
.ps-admin-btn:hover { color: #ffffff; }
.ps-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #ffffff;
  cursor: pointer;
  padding: 4px;
}

/* â”€â”€ Linha 2: barra de categorias â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.ps-catbar {
  background: var(--th-catbar);
  border-top: 1px solid var(--th-catbar-border);
}
.ps-catbar-inner {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  width: 100%;
  padding: 0 clamp(12px, 2.5%, 40px);
  overflow-x: auto;
  scrollbar-width: none;
}
.ps-catbar-inner::-webkit-scrollbar { display: none; }

.ps-cat-link {
  display: flex !important;
  align-items: center;
  padding: 0 16px;
  min-height: 42px;
  color: #ffffff !important;
  font-size: 13px !important;
  font-weight: 500;
  white-space: nowrap;
  text-decoration: none !important;
  border-bottom: 2px solid transparent;
  transition: all .2s;
}
.ps-cat-link:hover {
  color: #FF6600 !important;
  background: rgba(255,255,255,.05);
  border-bottom-color: #FF6600;
}

/* â”€â”€ Menu mobile â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.ps-mobile-nav {
  display: none;
  background: var(--th-catbar);
  border-top: 1px solid var(--th-catbar-border);
  padding: 12px 20px;
  flex-wrap: wrap;
  gap: 6px;
}
.ps-mobile-nav.open { display: flex; }
.ps-mobile-nav a {
  color: #cccccc !important;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 14px;
  text-decoration: none !important;
  display: flex;
  align-items: center;
  gap: 6px;
}
.ps-mobile-nav a:hover { background: rgba(255,255,255,.1); color: #fff !important; }

/* legado â€” mantido para outras pÃ¡ginas */
.logo { display: flex; align-items: center; gap: 10px; color: #fff; font-size: 20px; font-weight: 800; flex-shrink: 0; text-decoration: none; }
.logo-img { max-height: 48px; width: auto; object-fit: contain; }

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   CARROSSEL DE BANNERS â€” 2 imagens por slide, igual KaBuM
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.banners-wrap {
  width: 100%;
  padding: 4px clamp(8px, 1.5%, 20px) 0;
  margin-bottom: 0;
  position: relative;
  z-index: 1;
}

/* Container â€” altura levemente reduzida */
.banner-carousel {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  margin-bottom: 0;          /* sem gap — vitrines sobem direto sobre a imagem */
  background: transparent;
  user-select: none;
  height: 180px;                      /* fallback */
  height: clamp(120px, 22vw, 380px);  /* responsivo */
}

/* Track: flex row */
.carousel-track {
  display: flex;
  flex-direction: row;
  height: 100%;
  transition: transform .5s cubic-bezier(.4,0,.2,1);
  will-change: transform;
}

/* Slide: sempre 100% largura e altura do carousel */
.carousel-slide {
  min-width: 100%;
  width: 100%;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
}

/* Par: sempre 2 lado a lado, gap fixo de 10px */
.banner-par {
  display: flex;
  flex-direction: row;
  flex: 1;
  gap: 10px;                          /* gap fixo e simples */
  min-height: 0;
}

/* Cada item ocupa EXATAMENTE metade menos metade do gap
   Assim nunca se sobrepÃµem nem somem em nenhuma tela */
.banner-par-item {
  flex: 0 0 calc(50% - 5px);         /* largura fixa: 50% - metade do gap */
  min-height: 0;
  overflow: hidden;
  border-radius: 8px;
  display: flex;
}
.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;
  display: block;
  transition: opacity .25s;
}
.banner-par-item img:hover { opacity: .92; }

/* â”€â”€ Setas â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.carousel-btn {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  background: rgba(0,0,0,.4);
  color: #fff;
  border: none;
  width: 36px; height: 60px;
  font-size: 28px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  z-index: 10;
  border-radius: 6px;
  transition: background .2s;
}
.carousel-btn:hover { background: rgba(0,0,0,.65); }
.carousel-prev { left: 6px; }
.carousel-next { right: 6px; }

/* â”€â”€ Dots â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.carousel-dots {
  position: absolute; bottom: 10px; left: 50%;
  transform: translateX(-50%);
  display: flex; gap: 8px; z-index: 10;
}
.carousel-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,.5);
  border: none; cursor: pointer; padding: 0;
  transition: background .2s, transform .2s;
}
.carousel-dot.active { background: #fff; transform: scale(1.3); }
.carousel-dot:hover  { background: rgba(255,255,255,.8); }
.slide-pair-item a { display: block; width: 100%; }
.slide-pair-item img {
  width: 100%;
  height: clamp(80px, 14vw, 200px);
  object-fit: contain;
  display: block;
  transition: opacity .3s;
}
.slide-pair-item img:hover { opacity: .88; }

/* Hero removido â€” substituÃ­do por banners gerenciÃ¡veis */

/* â”€â”€ Buttons â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 24px; border-radius: 8px; font-size: 15px; font-weight: 600; transition: all .2s; cursor: pointer; border: 2px solid transparent; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(108,99,255,.4); }
.btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.btn-outline:hover { background: rgba(255,255,255,.1); border-color: #fff; }
.btn-lg { padding: 14px 32px; font-size: 16px; border-radius: 10px; }
.btn-store { display: inline-flex; align-items: center; justify-content: center; padding: 8px 16px; border-radius: 8px; font-weight: 700; font-size: 13px; transition: transform .2s, box-shadow .2s; }
.btn-store:hover { transform: translateY(-2px); box-shadow: 0 4px 16px rgba(0,0,0,.2); }

/* â”€â”€ Sections â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.section { padding: 2px 0 8px; }
.section-alt { background: var(--white); }
.section-title { font-size: 11px; font-weight: 600; margin-bottom: 0; letter-spacing: .3px; text-transform: uppercase; color: var(--text-muted); }
.section-sub { color: var(--text-muted); margin-bottom: 8px; font-size: 11px; }
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; flex-wrap: wrap; gap: 4px; }
.link-more { color: var(--primary); font-weight: 600; font-size: 14px; }
.link-more:hover { text-decoration: underline; }

/* â”€â”€ Category Grid â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(clamp(100px, 14vw, 140px), 1fr)); gap: clamp(10px, 2vw, 16px); }
.cat-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: clamp(14px, 2.5vw, 24px) 12px; text-align: center; transition: all .2s; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.cat-card:hover { border-color: var(--primary); transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.cat-icon { font-size: clamp(28px, 4vw, 36px); }
.cat-name { font-weight: 700; font-size: clamp(12px, 1.5vw, 14px); color: var(--dark); }
.cat-count { font-size: 12px; color: var(--text-muted); }

/* â”€â”€ Product Grid â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(clamp(150px, 22vw, 230px), 1fr)); gap: clamp(12px, 2vw, 20px); }

/* Destaques: máximo 2 fileiras, sombra de hover não fica cortada */
.destaques-grid { grid-template-rows: repeat(2, auto); overflow: hidden; padding-bottom: 28px; margin-bottom: -28px; }

.product-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: all .2s; display: flex; flex-direction: column; position: relative; border-top: 2px solid var(--border); }
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
/* Borda colorida sutil por loja */
.product-card.loja-mercadolivre { border-top-color: rgba(255, 230,   0, 0.55); }
.product-card.loja-shopee       { border-top-color: rgba(238,  77,  45, 0.45); }
.product-card.loja-amazon       { border-top-color: rgba(255, 153,   0, 0.50); }
.product-card.loja-kabum        { border-top-color: rgba(255,  68,   0, 0.45); }
.product-card.loja-terabyte     { border-top-color: rgba(  0, 165,  80, 0.45); }
.product-card.loja-pichau       { border-top-color: rgba(  0,  91, 187, 0.45); }
.product-card.loja-aliexpress   { border-top-color: rgba(230,  46,   4, 0.45); }
.badge-destaque { position: absolute; top: 12px; left: 12px; background: var(--primary); color: #fff; font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 100px; z-index: 1; }
.product-img { aspect-ratio: 1; overflow: hidden; background: #fff; }
.card-img { width: 100%; height: 100%; object-fit: contain; padding: 16px; transition: transform .3s; }
.product-card:hover .card-img { transform: scale(1.05); }
.product-info { padding: 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.product-name { font-size: 14px; font-weight: 600; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-desc { font-size: 12px; color: var(--text-muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-price { margin-top: auto; }
.price-from { display: block; font-size: 11px; color: var(--text-muted); }
.price-value { font-size: 20px; font-weight: 800; color: var(--primary); }
.price-na { font-size: 14px; color: var(--text-muted); font-style: italic; }
.btn-compare { display: block; margin-top: 12px; text-align: center; background: var(--bg); color: var(--primary); font-size: 13px; font-weight: 600; padding: 10px; border-radius: 8px; transition: background .2s; }
.product-card:hover .btn-compare { background: var(--primary); color: #fff; }

/* â”€â”€ Store Cards (homepage) â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.section-stores { background: var(--dark); }
.section-stores .section-title { color: #fff; }
.section-stores .section-sub { color: rgba(255,255,255,.6); }
.stores-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(clamp(120px, 18vw, 170px), 1fr)); gap: clamp(10px, 2vw, 16px); }
.store-card { background: var(--store-bg); color: var(--store-fg); border-radius: var(--radius); padding: clamp(16px, 3vw, 28px) 16px; text-align: center; font-size: clamp(13px, 2vw, 16px); font-weight: 800; transition: transform .2s, box-shadow .2s; }
.store-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,.3); }

/* â”€â”€ Store Badge â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.store-badge { display: inline-block; padding: 4px 10px; border-radius: 6px; font-size: 12px; font-weight: 700; }

/* â”€â”€ Catalog Layout â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.catalog-layout { display: grid; grid-template-columns: 220px 1fr; gap: clamp(16px, 3vw, 32px); padding: clamp(20px, 4vw, 40px) clamp(12px, 3vw, 20px); }

.filter-sidebar { position: sticky; top: 80px; max-height: calc(100vh - 100px); overflow-y: auto; }
.filter-block { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; margin-bottom: 16px; }
.filter-block h3 { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--text-muted); margin-bottom: 12px; }
.filter-link { display: block; padding: 8px 10px; border-radius: 6px; font-size: 14px; color: var(--text); transition: all .2s; }
.filter-link:hover { background: var(--bg); color: var(--primary); }
.filter-link.active { background: #EEF2FF; color: var(--primary); font-weight: 600; }
.filter-link span { float: right; color: var(--text-muted); font-size: 12px; }
.filter-store { padding-left: 12px; border-left: 3px solid var(--store-bg, #ccc); }
.filter-store.active { border-left-color: var(--store-bg, var(--primary)); }

.catalog-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.catalog-count { color: var(--text-muted); font-size: 14px; }

/* â”€â”€ Product Detail â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 4vw, 48px); padding: clamp(6px, 1vw, 12px) 0; }
.product-gallery .main-img { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.detail-img { width: 100%; aspect-ratio: 1; object-fit: contain; padding: 20px; }

.product-meta { padding: 8px 0; min-width: 0; }
.cat-tag { display: inline-block; background: #EEF2FF; color: var(--primary); font-size: 12px; font-weight: 600; padding: 4px 12px; border-radius: 100px; margin-bottom: 12px; }
.product-meta h1 { font-size: clamp(17px, 2.2vw, 24px); font-weight: 800; margin-bottom: 12px; overflow-wrap: break-word; word-break: break-word; }
.product-short-desc { color: var(--text-muted); font-size: 15px; margin-bottom: 24px; }
.detail-price { background: #F0FDF4; border: 1px solid #BBF7D0; border-radius: var(--radius); padding: 12px 16px; margin-bottom: 16px; }
.price-label { display: block; font-size: 11px; color: #16A34A; font-weight: 600; margin-bottom: 2px; }
.price-big { font-size: 28px; font-weight: 800; color: #15803D; }

.price-table { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; margin-bottom: 16px; }
.price-table h3 { padding: 10px 16px; font-size: 14px; font-weight: 700; border-bottom: 1px solid var(--border); }
.price-row { display: flex; align-items: center; gap: 10px; padding: 9px 16px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.price-row:last-child { border-bottom: none; }
/* Oculta a thumb do produto principal nas linhas de comparação — já aparece na galeria à esquerda */
.price-row > .price-thumb { display: none; }
.price-thumb { width: 40px; height: 40px; object-fit: contain; border-radius: 6px; flex-shrink: 0; background: var(--bg); }
.price-store { flex-shrink: 0; padding: 4px 10px; border-radius: 6px; font-size: 12px; font-weight: 700; min-width: 86px; text-align: center; }
.price-amount { flex: 1; font-size: 15px; font-weight: 700; color: var(--dark); }
.affiliate-notice { font-size: 12px; color: var(--text-muted); margin-top: 12px; }

/* ── Price table: similar products subsection ──────────────────────────── */
.price-table-similares { border-top: 2px dashed var(--border); margin-top: 4px; }
.price-table-similares-title { padding: 10px 20px 6px; font-size: 13px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: .04em; }
.price-row-similar { background: var(--bg); opacity: .95; flex-wrap: nowrap; }
.price-row-similar:hover { background: #f0f4ff; opacity: 1; }
.price-row-similar-link { display: contents; }
.price-store-similar { background: none !important; padding: 0 !important; min-width: 0 !important; flex: 1 1 80px; overflow: hidden; font-weight: 400; font-size: 13px; color: var(--dark); }
.price-similar-nome { color: var(--dark); font-weight: 600; font-size: 13px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.price-similar-nome:hover { color: var(--primary); text-decoration: underline; }
.btn-store-similar { font-size: 12px; padding: 8px 12px; }

.product-description { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; margin-bottom: 48px; }
.product-description h2 { font-size: 20px; margin-bottom: 20px; }
.desc-content { line-height: 1.8; color: var(--text); }

/* â”€â”€ Breadcrumb â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.breadcrumb { padding: 16px 0; font-size: 13px; color: var(--text-muted); overflow-wrap: break-word; word-break: break-word; }
.breadcrumb a { color: var(--primary); }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { color: var(--dark); font-weight: 600; }

/* â”€â”€ Search â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.search-header { padding: 40px 0 24px; }
.search-header h1 { font-size: 28px; font-weight: 800; margin-bottom: 20px; }
.search-form-big { display: flex; gap: 12px; max-width: 600px; }
.search-form-big input { flex: 1; padding: 14px 20px; border: 2px solid var(--border); border-radius: 10px; font-size: 16px; outline: none; transition: border-color .2s; }
.search-form-big input:focus { border-color: var(--primary); }
.search-meta { margin-bottom: 24px; color: var(--text-muted); font-size: 15px; }

/* â”€â”€ Pagination â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.pagination { display: flex; justify-content: center; gap: 8px; padding: 32px 0; flex-wrap: wrap; }
.page-btn { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 8px; font-size: 14px; font-weight: 600; background: var(--white); border: 1px solid var(--border); color: var(--text); transition: all .2s; }
.page-btn:hover { border-color: var(--primary); color: var(--primary); }
.page-btn.active { background: var(--primary); border-color: var(--primary); color: #fff; }

/* â”€â”€ Empty State â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.empty-state { text-align: center; padding: 80px 20px; color: var(--text-muted); }
.empty-state p { margin: 16px 0 24px; font-size: 16px; }

/* â”€â”€ Footer â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.site-footer { background: var(--th-footer); color: rgba(255,255,255,.8); margin-top: clamp(40px, 6vw, 80px); }
.site-footer.footer-no-gap { margin-top: 0; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: clamp(24px, 4vw, 48px); padding: clamp(32px, 5vw, 60px) clamp(16px, 4vw, 20px) clamp(24px, 4vw, 40px); }
.footer-brand .logo { color: #fff; margin-bottom: 12px; }
.footer-brand p, .footer-brand .disclaimer { font-size: 13px; color: rgba(255,255,255,.5); line-height: 1.7; margin-bottom: 8px; }
.footer-col h4 { color: #fff; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 16px; }
.footer-col a { display: block; color: rgba(255,255,255,.5); font-size: 14px; margin-bottom: 8px; transition: color .2s; }
.footer-col a:hover { color: #fff; }
.footer-bottom { background: var(--th-footer-bottom); border-top: 1px solid rgba(255,255,255,.08); text-align: center; padding: 20px clamp(12px, 3vw, 20px); font-size: 13px; color: rgba(255,255,255,.3); }

/* â”€â”€ Responsive â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */

/* Tablet largo â€” 1024px */
@media (max-width: 1024px) {
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
  .product-detail { grid-template-columns: 1fr; gap: 24px; }
  .banners-sec-grid { grid-template-columns: repeat(2, 1fr); }
  .catalog-layout { grid-template-columns: 200px 1fr; gap: 20px; }
  /* Imagem menor quando cai para 1 coluna — limita a altura, mantém aspect-ratio original */
  .detail-img { max-height: 320px; padding: 16px; }
}

/* Tablet â€” 900px: colapsa sidebar do catÃ¡logo */
@media (max-width: 900px) {
  .catalog-layout { grid-template-columns: 1fr; padding: 16px 12px; }
  .filter-sidebar { position: static; max-height: none; display: flex; flex-wrap: wrap; gap: 12px; }
  .filter-block { margin-bottom: 0; flex: 1 1 200px; }
}

/* Tablet pequeno â€” 768px */
@media (max-width: 768px) {
  /* Header */
  .ps-menu-toggle { display: flex; }
  .ps-catbar { display: none; }
  .ps-admin-btn span { display: none; }
  .ps-topbar-inner { gap: 10px; padding: 10px 14px; }

  /* Banners */
  .banners-wrap { padding: 8px 8px 0; }
  .slide-pair { gap: 6px; }

  /* Layout geral */
  .product-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
  .cat-grid { grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 10px; }
  .cat-card { padding: 14px 8px; }

  /* Footer */
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 24px; }

  /* Busca */
  .search-header { padding: 24px 0 16px; }
  .search-header h1 { font-size: clamp(18px, 5vw, 24px); }
  .search-form-big { flex-direction: column; gap: 8px; }
  .search-form-big input { width: 100%; }

  /* Header mobile: oculta texto "Buscar", deixa só o ícone — input fica maior */
  .ps-search button span { display: none; }
  .ps-search button { padding: 0 14px; gap: 0; }
  /* Logo: controla pela ALTURA (não largura) — logos panorâmicas não ficam cortadas */
  .ps-logo img { height: 38px; width: auto; max-width: 160px; }

  /* Breadcrumb mobile: reduz padding e trunca o nome do produto a 1 linha */
  .breadcrumb { padding: 8px 0; font-size: 12px; }
  .breadcrumb span {
    display: inline-block; max-width: 58vw;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    vertical-align: middle;
  }

  /* Produto detalhe */
  .product-detail { grid-template-columns: 1fr; }
  .product-meta h1 { font-size: clamp(14px, 3.8vw, 17px); }
  .price-big { font-size: clamp(22px, 5vw, 28px); }
  .detail-img { max-height: 240px; padding: 12px; }

  /* Similares mobile: 2 linhas — [imagem + nome] / [loja + preço + botão] */
  .price-row-similar { flex-wrap: wrap; gap: 6px 8px; padding: 8px 12px; }
  .price-store-similar { flex: 1 1 calc(100% - 52px); overflow: hidden; }
  .price-row-similar .price-store { flex-shrink: 0; font-size: 11px; min-width: 72px; }
  .price-row-similar .price-amount { flex: 1; font-size: 13px; }
  .btn-store-similar { flex-shrink: 0; font-size: 11px; padding: 6px 10px; }
}

/* Mobile â€” 480px */
@media (max-width: 480px) {
  /* Header 480px: ainda mais compacto */
  .ps-search button { padding: 0 12px; }
  .ps-logo img { height: 32px; max-width: 130px; }
  .ps-logo span { display: none; }
  .ps-topbar-inner { padding: 8px 10px; gap: 6px; }
  .breadcrumb span { max-width: 50vw; }

  /* Banners â€” no mobile mantÃ©m 2 lado a lado, sÃ³ reduz altura */
  .banners-wrap { padding: 6px 4px 0; }
  .carousel-btn { width: 24px; height: 40px; font-size: 18px; }
  .banner-par { gap: 6px; }
  .banner-par-item { flex: 0 0 calc(50% - 3px); border-radius: 6px; }

  /* Grid produtos: 2 colunas fixas */
  .product-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .product-info { padding: 10px; }
  .product-name { font-size: 13px; }
  .price-value { font-size: 17px; }
  .btn-compare { font-size: 12px; padding: 8px; }

  /* Categorias */
  .cat-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .cat-card { padding: 12px 6px; }
  .cat-icon { font-size: 24px; }

  /* Footer: coluna Ãºnica */
  .footer-inner { grid-template-columns: 1fr; gap: 20px; }

  /* SeÃ§Ã£o header row */
  .section-header { flex-direction: column; align-items: flex-start; gap: 4px; }

  /* PaginaÃ§Ã£o compacta */
  .page-btn { width: 36px; height: 36px; font-size: 13px; }
}

/* Mobile muito pequeno â€” 360px */
@media (max-width: 360px) {
  .product-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .cat-grid { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .cat-name { font-size: 11px; }
  .ps-search input { font-size: 14px; }
}

/* ══════════════════════════════════════════════════════════
   VITRINE — cards compactos lado a lado, estilo KaBuM / ML
   ══════════════════════════════════════════════════════════ */

/* ── Linha horizontal de cards ───────────────────────────── */
.vitrines-row {
  display: flex;
  flex-wrap: nowrap;
  gap: 12px;
  padding: 0 clamp(8px, 2%, 28px) 20px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  background: transparent;

  /* ── Sobe ~20% da altura do carousel (clamp(120px,22vw,380px)) ── */
  position: relative;
  z-index: 10;
  margin-top: clamp(-38px, -2.2vw, -12px);
}
.vitrines-row::-webkit-scrollbar { display: none; }

/* ── Card — 1 produto em destaque, foto grande ───────────── */
.vc {
  flex: 0 0 clamp(190px, 20vw, 250px);
  background: #fff;
  border-radius: 12px;
  /* sombra mais forte para parecer flutuando sobre o banner */
  box-shadow: 0 6px 24px rgba(0,0,0,.18), 0 2px 6px rgba(0,0,0,.10);
  border-top: 3px solid var(--vit-cor, #6C63FF);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: box-shadow .2s, transform .2s;
}
.vc:hover { box-shadow: 0 12px 36px rgba(0,0,0,.22); transform: translateY(-3px); }

/* ── Cabeçalho do card ───────────────────────────────────── */
.vc-head {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 12px;
  border-bottom: 1px solid #efefef;
  background: #fff;
}

.vc-icon { font-size: 1.15rem; line-height: 1; flex-shrink: 0; }

.vc-tit {
  flex: 1;
  font-size: 12px;
  font-weight: 700;
  color: #1a1a2e;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vc-arrow {
  flex-shrink: 0;
  color: var(--vit-cor, #6C63FF);
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  transition: transform .15s;
}
.vc-arrow:hover { transform: translateX(2px); color: var(--vit-cor, #6C63FF); }

/* ── Foto grande com preço sobreposto ────────────────────── */
.vc-foto-wrap {
  display: block;
  position: relative;
  overflow: hidden;
  background: #fff;
  width: 100%;
  /* Padding-bottom trick: cria 1:1 em 100% dos browsers */
  height: 0;
  padding-bottom: 100%;
}

/* Zoom suave ao hover */
.vc-foto {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 14px;
  transition: transform .3s ease;
  box-sizing: border-box;
}
.vc-foto-wrap:hover .vc-foto { transform: scale(1.06); }


/* ── Responsivo ──────────────────────────────────────────── */
@media (max-width: 600px) {
  .vitrines-row { padding: 10px 6px 0; gap: 8px; }
  .vc { flex: 0 0 170px; border-radius: 10px; }
  .vc-preco-valor { font-size: 14px; }
  .vc-preco-badge { bottom: 7px; left: 7px; right: 7px; padding: 5px 8px; }
}

/* ══════════════════════════════════════════════════════════
   TEMAS VISUAIS — header + footer
   Aplicados via data-theme="..." no <body>
   O conteúdo central (produtos, banners) não é afetado.
   ══════════════════════════════════════════════════════════ */

/* ── Alternativas para Comparar (produto.php) ─────────────── */
.similares-section { margin: 40px 0 0; }
.similares-section .section-title { font-size: 20px; font-weight: 800; margin-bottom: 6px; }
.similares-sub { font-size: 13px; color: var(--text-muted); margin-bottom: 18px; }

.similares-lista { display: flex; flex-direction: column; gap: 7px; }

.similar-row {
  display: grid;
  grid-template-columns: 48px 1fr auto auto 100px;
  align-items: center;
  gap: 12px;
  padding: 9px 14px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text);
  transition: box-shadow .18s, border-color .18s, transform .15s;
}
.similar-row:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
  transform: translateY(-1px);
}
.similar-img {
  width: 48px; height: 48px;
  object-fit: contain;
  border-radius: 6px;
  background: #f3f4f6;
  flex-shrink: 0;
}
.similar-nome {
  font-size: 13px; font-weight: 500; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}
.similar-loja {
  font-size: 11px; font-weight: 700;
  padding: 4px 10px; border-radius: 6px;
  white-space: nowrap; text-align: center;
}
.similar-preco {
  font-size: 14px; font-weight: 800;
  color: #15803D; white-space: nowrap; text-align: right;
}
.similar-cta {
  display: block; text-align: center;
  background: var(--primary); color: #fff;
  font-size: 12px; font-weight: 700;
  padding: 8px 14px; border-radius: 8px;
  white-space: nowrap;
}
.similar-row:hover .similar-cta { background: var(--primary-dark); }

@media (max-width: 680px) {
  .similar-row {
    grid-template-columns: 44px 1fr auto;
    grid-template-rows: auto auto;
    gap: 6px 8px;
  }
  .similar-img { width: 44px; height: 44px; grid-row: 1 / 3; }
  .similar-nome { grid-column: 2 / 4; }
  .similar-loja { font-size: 10px; padding: 3px 7px; }
  .similar-preco { font-size: 14px; }
  .similar-cta { grid-column: 2 / 4; padding: 7px 10px; }
}

/* ── 1. Cosmic Black (padrão) ────────────────────────────── */
/* já definido em :root — nenhuma regra extra necessária */

/* ── 2. Deep Violet ──────────────────────────────────────── */
[data-theme="deep-violet"] {
  --th-header:        linear-gradient(135deg, #12003a 0%, #2d1b69 45%, #1a0040 100%);
  --th-catbar:        #140030;
  --th-catbar-border: rgba(155,89,255,.25);
  --th-footer:        linear-gradient(180deg, #0d0020 0%, #1a0040 60%, #0a0018 100%);
  --th-footer-bottom: #08000f;
  --th-shadow:        0 2px 24px rgba(80,30,180,.55);
}

/* ── 3. Midnight Steel ───────────────────────────────────── */
[data-theme="midnight-steel"] {
  --th-header:        linear-gradient(135deg, #030d1a 0%, #0a2850 45%, #061830 100%);
  --th-catbar:        #051422;
  --th-catbar-border: rgba(52,152,219,.22);
  --th-footer:        linear-gradient(180deg, #020a12 0%, #0a1e3a 60%, #030d1a 100%);
  --th-footer-bottom: #02080f;
  --th-shadow:        0 2px 24px rgba(10,40,80,.7);
}

/* ── 4. Dark Emerald ─────────────────────────────────────── */
[data-theme="dark-emerald"] {
  --th-header:        linear-gradient(135deg, #030f07 0%, #0d3b1e 45%, #041a0a 100%);
  --th-catbar:        #041608;
  --th-catbar-border: rgba(0,165,80,.22);
  --th-footer:        linear-gradient(180deg, #020a04 0%, #083018 60%, #030f07 100%);
  --th-footer-bottom: #020703;
  --th-shadow:        0 2px 24px rgba(10,60,25,.7);
}

/* ── 5. Crimson Night ────────────────────────────────────── */
[data-theme="crimson-night"] {
  --th-header:        linear-gradient(135deg, #150303 0%, #3d0a0a 45%, #220505 100%);
  --th-catbar:        #150202;
  --th-catbar-border: rgba(231,76,60,.22);
  --th-footer:        linear-gradient(180deg, #0a0202 0%, #2d0505 60%, #150303 100%);
  --th-footer-bottom: #080101;
  --th-shadow:        0 2px 24px rgba(80,10,10,.7);
}

/* ── 6. Volcano ──────────────────────────────────────────── */
[data-theme="volcano"] {
  --th-header:        linear-gradient(135deg, #150800 0%, #3d1500 40%, #1a0900 100%);
  --th-catbar:        #140700;
  --th-catbar-border: rgba(255,102,0,.22);
  --th-footer:        linear-gradient(180deg, #0a0400 0%, #2d0f00 60%, #150800 100%);
  --th-footer-bottom: #080300;
  --th-shadow:        0 2px 24px rgba(80,30,0,.7);
}

/* ── 7. Ocean Deep ───────────────────────────────────────── */
[data-theme="ocean-deep"] {
  --th-header:        linear-gradient(135deg, #001a2c 0%, #003560 45%, #001c30 100%);
  --th-catbar:        #001622;
  --th-catbar-border: rgba(0,120,220,.25);
  --th-footer:        linear-gradient(180deg, #000e18 0%, #002244 60%, #001a2c 100%);
  --th-footer-bottom: #000810;
  --th-shadow:        0 2px 24px rgba(0,50,100,.7);
}

/* ── 8. Cyberpunk ────────────────────────────────────────── */
[data-theme="cyberpunk"] {
  --th-header:        linear-gradient(135deg, #0d0014 0%, #22003a 35%, #001428 70%, #0a0014 100%);
  --th-catbar:        #0a0018;
  --th-catbar-border: rgba(255,0,128,.2);
  --th-footer:        linear-gradient(180deg, #070009 0%, #180025 50%, #001020 100%);
  --th-footer-bottom: #04000a;
  --th-shadow:        0 2px 24px rgba(120,0,160,.5);
}

/* ── 9. Dark Gold ────────────────────────────────────────── */
[data-theme="dark-gold"] {
  --th-header:        linear-gradient(135deg, #0a0800 0%, #201800 40%, #120e00 100%);
  --th-catbar:        #0e0b00;
  --th-catbar-border: rgba(215,175,0,.2);
  --th-footer:        linear-gradient(180deg, #060500 0%, #1a1400 60%, #0a0800 100%);
  --th-footer-bottom: #040300;
  --th-shadow:        0 2px 24px rgba(60,45,0,.7);
}

/* ── 10. Aurora ──────────────────────────────────────────── */
[data-theme="aurora"] {
  --th-header:        linear-gradient(135deg, #0f1117 0%, #0d2a1a 28%, #1a0d2e 58%, #0a1a28 100%);
  --th-catbar:        #0a1418;
  --th-catbar-border: rgba(0,206,160,.15);
  --th-footer:        linear-gradient(180deg, #08090d 0%, #0d1a14 40%, #0d0f1a 100%);
  --th-footer-bottom: #060709;
  --th-shadow:        0 2px 24px rgba(0,80,80,.5);
}

/* ── 11. Matrix ──────────────────────────────────────────── */
[data-theme="matrix"] {
  --th-header:        linear-gradient(135deg, #000a00 0%, #003300 45%, #001800 100%);
  --th-catbar:        #001500;
  --th-catbar-border: rgba(0,255,65,.18);
  --th-footer:        linear-gradient(180deg, #000500 0%, #002800 60%, #000a00 100%);
  --th-footer-bottom: #000300;
  --th-shadow:        0 2px 24px rgba(0,120,0,.6);
}

/* ── 12. Sakura Noir ─────────────────────────────────────── */
[data-theme="sakura-noir"] {
  --th-header:        linear-gradient(135deg, #180008 0%, #380018 45%, #200010 100%);
  --th-catbar:        #140008;
  --th-catbar-border: rgba(255,100,150,.2);
  --th-footer:        linear-gradient(180deg, #0e0005 0%, #280012 60%, #180008 100%);
  --th-footer-bottom: #090003;
  --th-shadow:        0 2px 24px rgba(120,0,60,.6);
}

/* ── 13. Nebula ──────────────────────────────────────────── */
[data-theme="nebula"] {
  --th-header:        linear-gradient(135deg, #08001a 0%, #1a0040 25%, #00153a 55%, #200040 80%, #08001a 100%);
  --th-catbar:        #0a0020;
  --th-catbar-border: rgba(130,80,255,.22);
  --th-footer:        linear-gradient(180deg, #05000f 0%, #12002c 45%, #001528 100%);
  --th-footer-bottom: #030008;
  --th-shadow:        0 2px 28px rgba(80,20,160,.6);
}

/* ── 14. Storm Gray ──────────────────────────────────────── */
[data-theme="storm-gray"] {
  --th-header:        linear-gradient(135deg, #080a0f 0%, #161d2e 45%, #0c1018 100%);
  --th-catbar:        #0a0d14;
  --th-catbar-border: rgba(148,163,184,.14);
  --th-footer:        linear-gradient(180deg, #060709 0%, #111520 60%, #080a0f 100%);
  --th-footer-bottom: #040507;
  --th-shadow:        0 2px 24px rgba(20,25,40,.8);
}

/* ── 15. Toxic Lime ──────────────────────────────────────── */
[data-theme="toxic-lime"] {
  --th-header:        linear-gradient(135deg, #080f00 0%, #1c3000 45%, #0f1c00 100%);
  --th-catbar:        #0a1400;
  --th-catbar-border: rgba(160,255,0,.18);
  --th-footer:        linear-gradient(180deg, #050900 0%, #162500 60%, #080f00 100%);
  --th-footer-bottom: #030500;
  --th-shadow:        0 2px 24px rgba(50,100,0,.65);
}

/* ── 16. Sapphire ────────────────────────────────────────── */
[data-theme="sapphire"] {
  --th-header:        linear-gradient(135deg, #000814 0%, #001f50 45%, #000c2e 100%);
  --th-catbar:        #000a1e;
  --th-catbar-border: rgba(30,100,255,.25);
  --th-footer:        linear-gradient(180deg, #00040c 0%, #001438 60%, #000814 100%);
  --th-footer-bottom: #000208;
  --th-shadow:        0 2px 24px rgba(0,30,120,.7);
}

/* ── 17. Infrared ────────────────────────────────────────── */
[data-theme="infrared"] {
  --th-header:        linear-gradient(135deg, #0f0000 0%, #2e0808 30%, #1a0400 60%, #300600 100%);
  --th-catbar:        #120000;
  --th-catbar-border: rgba(255,50,0,.2);
  --th-footer:        linear-gradient(180deg, #080000 0%, #220404 55%, #0f0000 100%);
  --th-footer-bottom: #050000;
  --th-shadow:        0 2px 24px rgba(100,10,0,.7);
}

/* ── 18. Copper Dark ─────────────────────────────────────── */
[data-theme="copper-dark"] {
  --th-header:        linear-gradient(135deg, #0f0600 0%, #2a1200 40%, #180c00 100%);
  --th-catbar:        #110700;
  --th-catbar-border: rgba(180,90,20,.22);
  --th-footer:        linear-gradient(180deg, #080400 0%, #1e0d00 60%, #0f0600 100%);
  --th-footer-bottom: #050200;
  --th-shadow:        0 2px 24px rgba(70,25,0,.7);
}

/* ── 19. Glacier ─────────────────────────────────────────── */
[data-theme="glacier"] {
  --th-header:        linear-gradient(135deg, #00080f 0%, #003048 40%, #001c30 100%);
  --th-catbar:        #001828;
  --th-catbar-border: rgba(100,220,255,.18);
  --th-footer:        linear-gradient(180deg, #000508 0%, #002035 60%, #00080f 100%);
  --th-footer-bottom: #000305;
  --th-shadow:        0 2px 24px rgba(0,70,120,.65);
}

/* ── 20. Grape ───────────────────────────────────────────── */
[data-theme="grape"] {
  --th-header:        linear-gradient(135deg, #0e0015 0%, #260040 40%, #180030 100%);
  --th-catbar:        #0c0012;
  --th-catbar-border: rgba(170,80,255,.22);
  --th-footer:        linear-gradient(180deg, #08000e 0%, #1c002e 60%, #0e0015 100%);
  --th-footer-bottom: #050009;
  --th-shadow:        0 2px 24px rgba(70,0,150,.6);
}


/* ════════════════════════════════════════════════════════════════════
   v9 — Histórico de Preço + Alertas + Favoritos + Visto Recentemente
   ════════════════════════════════════════════════════════════════════ */

/* ── Badge de preço ────────────────────────────────────────────────── */
.price-badge {
  display:inline-block;margin-top:8px;padding:6px 14px;border-radius:100px;
  font-size:13px;font-weight:700;letter-spacing:.02em;
}
.price-badge-menor { background:#dff7e3;color:#0a6b1f;border:1.5px solid #6dd187 }
.price-badge-bom   { background:#e9f3ff;color:#0a4d8f;border:1.5px solid #6daedb }
.price-badge-alto  { background:#fff3cd;color:#7a5b00;border:1.5px solid #d6b85a }
.price-updated     { display:block;margin-top:6px;font-size:12px;color:#888 }

/* ── Botões de ação no produto ─────────────────────────────────────── */
.product-actions {
  display:flex;gap:10px;flex-wrap:wrap;margin:14px 0 18px;
}
.btn-favorite,
.btn-alert {
  flex:1;min-width:140px;padding:11px 18px;border:2px solid #e0e0e0;
  background:#fff;border-radius:10px;font-size:14px;font-weight:700;
  cursor:pointer;transition:all .15s;color:#333;
  display:inline-flex;align-items:center;justify-content:center;gap:6px;
}
.btn-favorite:hover { border-color:#ff4d6d;color:#ff4d6d;background:#fff5f7 }
.btn-favorite.is-favorited { background:#fff0f3;border-color:#ff4d6d;color:#d63756 }
.btn-favorite.is-favorited .heart::before { content:"❤️" }
.btn-favorite.is-favorited .heart { font-size:0 }
.btn-favorite.is-favorited .heart::before { font-size:18px }
.btn-alert:hover { border-color:#FF6600;color:#FF6600;background:#fff8f3 }

/* ── Histórico de preço ────────────────────────────────────────────── */
.price-history {
  background:#fff;border:1px solid #e8e8e8;border-radius:14px;
  padding:22px 24px;margin:24px 0;
  box-shadow:0 1px 0 rgba(0,0,0,.03);
}
.price-history h2 { margin:0 0 4px;font-size:20px;font-weight:800 }
.price-history-sub { margin:0 0 16px;font-size:13px;color:#888 }
.price-history-stats { display:flex;gap:12px;flex-wrap:wrap;margin-bottom:18px }
.stat-box {
  flex:1;min-width:130px;background:#fafafa;border:1px solid #eee;
  border-radius:10px;padding:10px 14px;
}
.stat-label { display:block;font-size:11px;color:#888;text-transform:uppercase;
              letter-spacing:.06em;font-weight:700 }
.stat-value { display:block;font-size:18px;font-weight:800;color:#222;margin-top:2px }
.stat-box-now { background:#fff7f0;border-color:#ffd9b8 }
.stat-box-now .stat-value { color:#FF6600 }
.price-history-chart-wrap { position:relative;height:280px }

/* ── Modal de alerta ───────────────────────────────────────────────── */
.alert-modal {
  position:fixed;inset:0;z-index:9999;
  display:flex;align-items:center;justify-content:center;padding:20px;
}
.alert-modal-overlay {
  position:absolute;inset:0;background:rgba(0,0,0,.55);backdrop-filter:blur(2px);
}
.alert-modal-box {
  position:relative;background:#fff;border-radius:16px;padding:28px;
  max-width:420px;width:100%;
  box-shadow:0 20px 60px rgba(0,0,0,.3);
  animation:alertSlide .22s ease-out;
}
@keyframes alertSlide { from { transform:translateY(20px);opacity:0 } }
.alert-modal-box h3 { margin:0 0 8px;font-size:22px;font-weight:800 }
.alert-modal-box > p { margin:0 0 18px;font-size:14px;color:#666;line-height:1.5 }
.alert-modal-close {
  position:absolute;top:12px;right:14px;width:32px;height:32px;
  border:none;background:#f3f3f3;border-radius:50%;cursor:pointer;
  font-size:20px;color:#666;line-height:1;
}
.alert-modal-close:hover { background:#e8e8e8 }
.alert-modal-box label {
  display:block;margin-bottom:14px;font-size:13px;font-weight:700;color:#444;
}
.alert-modal-box label span { display:block;margin-bottom:6px }
.alert-modal-box input {
  width:100%;padding:11px 14px;border:2px solid #e0e0e0;
  border-radius:10px;font-size:15px;outline:none;font-family:inherit;
}
.alert-modal-box input:focus { border-color:#FF6600 }
.alert-modal-box small { display:block;margin-top:4px;font-size:12px;color:#888;font-weight:500 }
.btn-alert-submit {
  width:100%;padding:13px;background:#FF6600;color:#fff;border:none;
  border-radius:10px;font-size:15px;font-weight:800;cursor:pointer;margin-top:6px;
}
.btn-alert-submit:hover { background:#e55b00 }
.btn-alert-submit:disabled { opacity:.6;cursor:wait }
.alert-msg { margin-top:12px;font-size:14px;text-align:center;font-weight:600 }
.alert-msg.ok   { color:#0a6b1f }
.alert-msg.err  { color:#c53030 }

/* ── Sidebar "Visto Recentemente" ──────────────────────────────────── */
.recent-viewed {
  background:#fff;border:1px solid #e8e8e8;border-radius:14px;
  padding:18px 20px;margin:24px 0;
}
.recent-viewed h3 {
  margin:0 0 14px;font-size:15px;font-weight:800;
  text-transform:uppercase;letter-spacing:.04em;color:#555;
}
.recent-viewed-grid {
  display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:12px;
}
.recent-viewed-item {
  display:block;text-decoration:none;color:inherit;
  border:1px solid #eee;border-radius:10px;padding:10px;
  transition:transform .15s,border-color .15s;
}
.recent-viewed-item:hover { transform:translateY(-2px);border-color:#FF6600 }
.recent-viewed-item img { width:100%;aspect-ratio:1;object-fit:contain;border-radius:6px }
.recent-viewed-item .rv-name {
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;
  overflow:hidden;font-size:12px;font-weight:600;margin:6px 0 4px;line-height:1.3;
}
.recent-viewed-item .rv-price { font-size:13px;font-weight:800;color:#FF6600 }

/* ── Coração nos cards do catálogo (canto superior direito) ──────── */
.product-card { position:relative }
.card-fav {
  position:absolute;top:8px;right:8px;z-index:5;
  width:36px;height:36px;border-radius:50%;border:none;
  background:rgba(255,255,255,.92);cursor:pointer;font-size:18px;
  display:flex;align-items:center;justify-content:center;
  box-shadow:0 2px 8px rgba(0,0,0,.12);transition:transform .15s;
}
.card-fav:hover { transform:scale(1.12) }
.card-fav.is-favorited { background:#fff0f3 }

/* ── Página de favoritos ───────────────────────────────────────────── */
.favoritos-empty {
  text-align:center;padding:80px 20px;color:#888;
}
.favoritos-empty h2 { font-size:24px;margin:0 0 10px;color:#444 }
.favoritos-empty p { font-size:15px;margin:0 0 20px }

/* ── Link de favoritos no header ───────────────────────────────────── */
.ps-fav-link {
  display:inline-flex;align-items:center;gap:6px;padding:8px 14px;
  border-radius:100px;font-size:14px;font-weight:700;text-decoration:none;
  color:inherit;border:2px solid transparent;transition:all .15s;
}
.ps-fav-link:hover { border-color:#ff4d6d;color:#ff4d6d }
.ps-fav-count {
  display:inline-flex;align-items:center;justify-content:center;
  min-width:20px;height:20px;padding:0 6px;border-radius:100px;
  background:#ff4d6d;color:#fff;font-size:11px;font-weight:800;
}
.ps-fav-count:empty { display:none }

/* ════════════════════════════════════════════════════════════════════
   v9.1 — Redesign das ofertas estilo Buscapé (cards limpos)
   ════════════════════════════════════════════════════════════════════ */
.offers-section {
  margin-bottom:18px;
}
.offers-title {
  font-size:18px;font-weight:800;margin:0 0 14px;color:#222;
}

/* ── Card de oferta ───────────────────────────────────────────────── */
.offer-card {
  position:relative;
  display:flex;align-items:center;gap:18px;flex-wrap:wrap;
  background:#fff;border:1.5px solid #e8e8e8;border-radius:12px;
  padding:16px 18px;margin-bottom:10px;
  transition:border-color .15s, box-shadow .15s;
}
.offer-card:hover {
  border-color:#d0d0d0;
  box-shadow:0 4px 14px rgba(0,0,0,.06);
}

/* Card mais barato — borda verde + sombra suave verde */
.offer-card.is-cheapest {
  border-color:#22c55e;
  background:#fbfffc;
  box-shadow:0 0 0 1px #22c55e22, 0 4px 12px rgba(34,197,94,.08);
}
.offer-card.is-cheapest:hover {
  box-shadow:0 0 0 1px #22c55e, 0 6px 18px rgba(34,197,94,.16);
}

/* Badge "Menor preço" ────────────────────────────────────────────── */
.offer-badge {
  position:absolute;top:-10px;left:14px;
  background:#22c55e;color:#fff;
  padding:3px 10px;border-radius:100px;
  font-size:11px;font-weight:800;letter-spacing:.04em;
  text-transform:uppercase;
  box-shadow:0 2px 6px rgba(34,197,94,.3);
}

/* Thumb ─────────────────────────────────────────────────────────── */
.offer-thumb {
  width:64px;height:64px;object-fit:contain;
  border-radius:8px;background:#fafafa;
  flex-shrink:0;
  border:1px solid #f0f0f0;
}
.offer-thumb-link { flex-shrink:0;line-height:0 }

/* Preço ─────────────────────────────────────────────────────────── */
.offer-price-block {
  display:flex;flex-direction:column;gap:2px;flex:1;min-width:140px;
}
.offer-price {
  font-size:22px;font-weight:800;color:#222;line-height:1.1;
}
.offer-card.is-cheapest .offer-price { color:#16a34a }
.offer-parcela {
  font-size:12px;color:#888;font-weight:500;
}

/* Nome do similar (acima do preço) ──────────────────────────────── */
.offer-similar-nome {
  display:block;
  font-size:13px;font-weight:600;color:#444;
  text-decoration:none;line-height:1.3;margin-bottom:2px;
  max-width:280px;overflow:hidden;
}
.offer-similar-nome:hover { color:#FF6600 }

/* Tag da loja ────────────────────────────────────────────────────── */
.offer-store-tag {
  flex-shrink:0;
  padding:5px 12px;border-radius:6px;
  font-size:12px;font-weight:700;letter-spacing:.02em;
  white-space:nowrap;
  min-width:80px;text-align:center;
}

/* Botão "Ir à loja" — neutro escuro ─────────────────────────────── */
.offer-btn {
  flex-shrink:0;
  display:inline-flex;align-items:center;justify-content:center;gap:6px;
  background:#1a1a1a;color:#fff !important;
  padding:10px 22px;border-radius:8px;
  font-size:13px;font-weight:700;text-decoration:none;
  transition:background .15s, transform .15s;
  min-width:130px;
}
.offer-btn:hover {
  background:#000;transform:translateY(-1px);
  box-shadow:0 6px 14px rgba(0,0,0,.18);
}
.offer-card.is-cheapest .offer-btn {
  background:#16a34a;
}
.offer-card.is-cheapest .offer-btn:hover {
  background:#15803d;box-shadow:0 6px 14px rgba(22,163,74,.3);
}
.offer-btn-ghost {
  background:#fff;color:#666 !important;border:1.5px solid #ddd;
}
.offer-btn-ghost:hover { background:#fafafa;border-color:#bbb;transform:none }

/* Seção dos similares ──────────────────────────────────────────── */
.similar-section {
  margin-top:24px;padding-top:20px;border-top:1px solid #ececec;
}
.similar-title {
  font-size:13px;font-weight:800;color:#666;
  text-transform:uppercase;letter-spacing:.05em;
  margin:0 0 14px;
}
.similar-title .similar-sub {
  font-weight:500;text-transform:none;letter-spacing:0;color:#999;
}
.offer-card-similar {
  background:#fafafa;border-color:#eee;
}
.offer-card-similar:hover { background:#fff }
.offer-card-similar .offer-price { font-size:18px }
.offer-card-similar .offer-thumb { width:56px;height:56px }

/* Detail price box (melhor preço) — mais discreto ────────────── */
.detail-price {
  background:linear-gradient(135deg,#f0fdf4 0%, #f0fff7 100%);
  border:1.5px solid #bbf7d0;border-radius:12px;
  padding:16px 20px;margin-bottom:14px;
}
.detail-price .price-label {
  font-size:12px;color:#16a34a;font-weight:700;
  text-transform:uppercase;letter-spacing:.04em;
}
.detail-price .price-big {
  display:block;font-size:32px;font-weight:800;color:#15803d;
  line-height:1.1;margin-top:4px;
}

/* ── Mobile ──────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .offer-card {
    padding:14px;gap:12px;
  }
  .offer-thumb { width:54px;height:54px }
  .offer-price { font-size:18px }
  .offer-store-tag { font-size:11px;padding:4px 8px;min-width:0 }
  .offer-btn {
    width:100%;order:99;min-width:0;padding:11px 16px;font-size:14px;
  }
  .offer-price-block { min-width:0;flex:1 1 calc(100% - 80px) }
  .offer-similar-nome { font-size:12px;max-width:none }
}

/* ── Botões de ação no produto (Favoritar + Alerta) — mais clean ── */
.product-actions {
  display:flex;gap:8px;flex-wrap:wrap;margin:0 0 18px;
}
.btn-favorite,
.btn-alert {
  flex:1;min-width:130px;padding:10px 14px;
  border:1.5px solid #e8e8e8;background:#fff;border-radius:10px;
  font-size:13px;font-weight:600;color:#444;
  cursor:pointer;transition:all .15s;
  display:inline-flex;align-items:center;justify-content:center;gap:6px;
}
.btn-favorite:hover { border-color:#ff4d6d;background:#fff8f9;color:#d63756 }
.btn-favorite.is-favorited {
  background:#fff0f3;border-color:#ff4d6d;color:#d63756;
}
.btn-alert:hover { border-color:#FF6600;background:#fff8f3;color:#FF6600 }

/* ── Pequenos refinamentos ─────────────────────────────────────── */
.product-meta h1 {
  font-size:clamp(18px, 2.6vw, 24px);
  line-height:1.3;margin:8px 0 12px;font-weight:700;
  text-transform:capitalize;letter-spacing:-.01em;
}
.product-short-desc {
  color:#666;font-size:14px;line-height:1.5;margin:0 0 14px;
}
.cat-tag {
  display:inline-block;padding:4px 12px;background:#f5f5f5;
  color:#666;border-radius:100px;font-size:12px;font-weight:700;
  text-decoration:none;letter-spacing:.02em;
}
.cat-tag:hover { background:#FF6600;color:#fff }

/* ── Título full-width (acima do grid — estilo Buscapé) ──────────── */
.product-title-row {
  padding:10px 0 14px;border-bottom:1px solid var(--border);margin-bottom:20px;
}
.product-h1 {
  font-size:clamp(15px, 1.8vw, 20px);
  font-weight:600;line-height:1.4;margin:6px 0 4px;
  text-transform:capitalize;letter-spacing:-.01em;color:#1a1a1a;
}
.product-short-desc-top {
  color:#888;font-size:13px;line-height:1.5;margin:3px 0 0;
}

/* ── Melhor preço — mais compacto ────────────────────────────────── */
.detail-price {
  padding:10px 14px !important;margin-bottom:10px !important;
}
.price-label { font-size:10px !important }
.price-big   { font-size:22px !important;font-weight:700 !important }

/* ── Botões de ação menores + ícones P&B ─────────────────────────── */
.product-actions { gap:6px;margin-bottom:10px;flex-wrap:nowrap }
.btn-favorite,.btn-alert {
  flex:1;min-width:0;
  padding:5px 8px !important;
  font-size:11px !important;font-weight:600 !important;
  height:30px !important;line-height:1 !important;
  gap:4px !important;white-space:nowrap;
  border-color:#d0d0d0 !important;color:#444 !important;
  border-radius:7px !important;border-width:1.5px !important;
}
.btn-favorite .heart { font-style:normal;font-size:13px;color:#666 }
.btn-favorite:hover { border-color:#333 !important;background:#f5f5f5 !important;color:#111 !important }
.btn-favorite.is-favorited { background:#f0f0f0 !important;border-color:#333 !important;color:#111 !important }
.btn-favorite.is-favorited .heart::before { content:"♥";font-size:13px }
.btn-favorite.is-favorited .heart { font-size:0 }
.btn-alert:hover { border-color:#333 !important;background:#f5f5f5 !important;color:#111 !important }
/* Título full-width — espaçamento corrigido */
.product-title-row { padding:8px 0 10px !important;margin-bottom:10px !important }
.product-meta { padding-top:0 !important }

/* ── Offers section — header com contador ────────────────────────── */
.offers-title-row {
  display:flex;align-items:center;gap:10px;margin-bottom:10px;
}
.offers-title { margin:0;font-size:13px;font-weight:700;color:#333 }
.offers-count {
  font-size:11px;color:#999;background:#f5f5f5;
  padding:2px 8px;border-radius:20px;font-weight:500;
}

/* ── Offer card slim (lateral — com thumbnail pequena) ───────────── */
.offer-card-slim {
  gap:10px;padding:11px 14px;
}
.offer-thumb-sm {
  width:44px;height:44px;object-fit:contain;
  border-radius:6px;background:#f5f5f5;flex-shrink:0;
}
.offer-card-slim .offer-price { font-size:18px }
.offer-card-slim .offer-price-block { min-width:90px }
.offer-card-slim .offer-btn {
  font-size:13px;padding:8px 12px;min-width:100px;
}

/* ── Separador + cartões similares no sidebar ────────────────────── */
.offers-sep-label {
  font-size:11px;font-weight:700;color:#aaa;
  text-transform:uppercase;letter-spacing:.06em;
  padding:8px 0 4px;border-top:1px solid #f0f0f0;margin-top:4px;
}
.offer-alt-nome {
  font-size:12px;font-weight:600;color:#333;text-decoration:none;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;
  overflow:hidden;line-height:1.35;margin-bottom:4px;
}
.offer-alt-nome:hover { color:var(--primary) }
.offer-card-alt { background:#fafafa;border-color:#eee; }
.offer-card-alt:hover { background:#fff; }

/* ── Botão Ver todas as X ofertas ────────────────────────────────── */
.btn-ver-todas {
  display:block;width:100%;margin-top:10px;padding:12px 16px;
  background:#111;color:#fff !important;border:none;border-radius:9px;
  font-size:13px;font-weight:600;cursor:pointer;letter-spacing:.01em;
  text-align:center;text-decoration:none;
  transition:background .15s,transform .1s;
}
.btn-ver-todas:hover { background:#333;transform:translateY(-1px) }
.btn-ver-todas:active { transform:translateY(0) }

/* ── Seção full-width: TODAS as ofertas ──────────────────────────── */
.todas-ofertas-full {
  margin:32px 0 8px;padding-top:24px;
  border-top:1px solid var(--border);
}
.todas-ofertas-header {
  display:flex;align-items:center;gap:10px;margin-bottom:14px;
}
.todas-ofertas-title {
  font-size:13px;font-weight:800;color:#444;
  text-transform:uppercase;letter-spacing:.07em;
}
.offer-card-todas { gap:16px;padding:14px 18px }
.offer-card-todas .offer-thumb { width:56px;height:56px }
.offer-card-todas .offer-price { font-size:20px }

/* Mobile */
@media (max-width:640px) {
  .product-h1 { font-size:clamp(14px,4vw,17px) }
  .product-title-row { padding:8px 0 12px;margin-bottom:14px }
  .price-big { font-size:20px !important }
  .offer-card-slim { padding:10px 12px }
  .offer-card-slim .offer-price { font-size:16px }
  .offer-card-todas .offer-price { font-size:17px }
}

/* ════════════════════════════════════════════════════════════════════
   v9.2 — Galeria estilo Mercado Livre + Vídeo + Descrição com imagens
   ════════════════════════════════════════════════════════════════════ */

/* Layout: thumbnails à esquerda, imagem grande à direita */
.gallery-v2 {
  display:flex;gap:14px;align-items:flex-start;
}
.gallery-thumbs {
  display:flex;flex-direction:column;gap:8px;
  max-height:480px;overflow-y:auto;
  flex-shrink:0;
  scrollbar-width:thin;
}
.gallery-thumb {
  position:relative;
  width:64px;height:64px;
  background:#fff;border:2px solid #e0e0e0;border-radius:8px;
  padding:4px;cursor:pointer;
  transition:border-color .15s;
  flex-shrink:0;
}
.gallery-thumb img {
  width:100%;height:100%;object-fit:contain;
}
.gallery-thumb:hover { border-color:#FF6600 }
.gallery-thumb.is-active {
  border-color:#FF6600;box-shadow:0 0 0 1px #FF6600;
}
.gallery-thumb .thumb-play {
  position:absolute;inset:0;
  display:flex;align-items:center;justify-content:center;
  background:rgba(0,0,0,.4);color:#fff;
  font-size:18px;border-radius:6px;
  pointer-events:none;
}
.gallery-main {
  flex:1;background:#fafafa;border:1px solid #eee;border-radius:14px;
  padding:18px;
  display:flex;align-items:center;justify-content:center;
  min-height:380px;max-height:520px;
  overflow:hidden;
}
.gallery-main img,
.gallery-main .detail-img {
  max-width:100%;max-height:480px;object-fit:contain;
}
.gallery-main iframe {
  width:100%;aspect-ratio:16/9;border:none;border-radius:8px;
}

/* Mobile: thumbnails embaixo em linha horizontal */
@media (max-width: 640px) {
  .gallery-v2 { flex-direction:column-reverse }
  .gallery-thumbs {
    flex-direction:row;max-height:none;width:100%;
    overflow-x:auto;padding-bottom:4px;
  }
  .gallery-thumb { width:56px;height:56px }
  .gallery-main { min-height:280px;max-height:380px;padding:12px }
  .gallery-main img { max-height:340px }
}

/* ════════════════════════════════════════════════════════════════════
   Similar Products — grade full-width abaixo do produto
   ════════════════════════════════════════════════════════════════════ */
.similar-full {
  margin:36px 0 12px;
  padding-top:28px;
  border-top:1px solid var(--border);
}
.similar-full-header {
  display:flex;align-items:baseline;gap:8px;margin-bottom:20px;
}
.similar-full-label {
  font-size:12px;font-weight:800;color:#555;
  text-transform:uppercase;letter-spacing:.08em;
}
.similar-full-sub {
  font-size:13px;color:#aaa;font-weight:400;
}
.similar-full-grid {
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:16px;
}

/* ── Card individual ─────────────────────────────────────────────── */
.sim-card {
  display:flex;flex-direction:column;
  background:var(--white);
  border:1px solid var(--border);
  border-top:2px solid var(--border);
  border-radius:12px;
  overflow:hidden;
  transition:box-shadow .18s,transform .18s;
}
/* Borda colorida por loja (igual aos product-cards do catálogo) */
.sim-card.loja-mercadolivre { border-top-color: rgba(255,230,  0, 0.55); }
.sim-card.loja-shopee       { border-top-color: rgba(238, 77, 45, 0.45); }
.sim-card.loja-amazon       { border-top-color: rgba(255,153,  0, 0.50); }
.sim-card.loja-kabum        { border-top-color: rgba(255, 68,  0, 0.45); }
.sim-card.loja-aliexpress   { border-top-color: rgba(230, 46,  4, 0.45); }
.sim-card:hover {
  box-shadow:0 8px 24px rgba(0,0,0,.09);
  transform:translateY(-3px);
}

/* Imagem */
.sim-card-img {
  display:block;aspect-ratio:1;overflow:hidden;
  background:#f7f7f7;border-bottom:1px solid #f0f0f0;
}
.sim-card-img img {
  width:100%;height:100%;object-fit:contain;padding:12px;
  transition:transform .22s;
}
.sim-card:hover .sim-card-img img { transform:scale(1.04) }

/* Corpo */
.sim-card-body {
  flex:1;padding:12px 14px 8px;
  display:flex;flex-direction:column;gap:3px;
}
.sim-card-nome {
  font-size:13px;font-weight:600;color:var(--text);
  text-decoration:none;line-height:1.4;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;
  overflow:hidden;text-transform:capitalize;
}
.sim-card-nome:hover { color:var(--primary) }
.sim-card-price {
  font-size:17px;font-weight:800;color:#111;margin-top:6px;line-height:1;
}
.sim-card-parc {
  font-size:11px;color:#aaa;
}

/* Rodapé */
.sim-card-footer {
  padding:10px 14px;border-top:1px solid #f0f0f0;
  display:flex;align-items:center;gap:8px;
}
.sim-card-btn {
  flex:1;display:inline-flex;align-items:center;justify-content:center;
  background:#111;color:#fff;font-size:12px;font-weight:600;
  padding:7px 10px;border-radius:7px;text-decoration:none;
  transition:background .15s;white-space:nowrap;
}
.sim-card-btn:hover { background:#333 }
.sim-card-btn-ghost {
  background:#fff;color:#666 !important;border:1.5px solid #ddd;
}
.sim-card-btn-ghost:hover { background:#f5f5f5;border-color:#bbb }

/* Responsivo */
@media (max-width:1100px) {
  .similar-full-grid { grid-template-columns:repeat(3,1fr) }
}
@media (max-width:720px) {
  .similar-full-grid { grid-template-columns:repeat(2,1fr);gap:12px }
  .sim-card-nome { font-size:12px }
  .sim-card-price { font-size:15px }
}
@media (max-width:400px) {
  .similar-full-grid { grid-template-columns:repeat(2,1fr);gap:8px }
}

/* Imagens dentro da descrição (via [IMG:url]) */
.desc-content .desc-img {
  display:block;max-width:100%;height:auto;
  border-radius:10px;margin:18px 0;border:1px solid #eee;
  box-shadow:0 1px 4px rgba(0,0,0,.06);
}
.desc-content p { margin:0 0 12px;line-height:1.6 }
.desc-content p:empty { display:none }
