/* ==========================================================================
   LIVRARIA OFICIAL THIAGO SCHWANZ — AMAZON STYLE REAL (FUNDO BRANCO/CINZA)
   Design System: Amazon Light Theme (#eaeded / #ffffff) + Amazon Amber / Navy
   ========================================================================== */

:root {
  --amz-bg-page: #eaeded;
  --amz-bg-card: #ffffff;
  --amz-header-top: #131921;
  --amz-header-sub: #232f3e;
  --amz-header-mobile: #1a222d;
  
  --amz-yellow: #ffd814;
  --amz-yellow-hover: #f7ca00;
  --amz-yellow-border: #fcd200;
  
  --amz-orange: #ffa41c;
  --amz-orange-hover: #fa8900;
  --amz-orange-border: #ff8f00;
  
  --amz-gold: #febd69;
  --amz-gold-hover: #f3a847;
  
  --amz-red-deal: #cc0c39;
  --amz-badge-seller: #e67a00;
  
  --amz-link: #007185;
  --amz-link-hover: #c7511f;
  
  --amz-text-dark: #0f1111;
  --amz-text-muted: #565959;
  --amz-text-light: #ffffff;
  
  --amz-border-subtle: #d5d9d9;
  --amz-border-input: #888c8c;
  --amz-star: #de7921;
  
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-pill: 9999px;
  
  --shadow-card: 0 2px 5px 0 rgba(213, 217, 217, 0.5);
  --shadow-hover: 0 4px 12px 0 rgba(0, 0, 0, 0.12);
  --shadow-buybox: 0 4px 16px rgba(0, 0, 0, 0.08);
}

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

body.amazon-theme {
  font-family: "Amazon Ember", "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--amz-bg-page);
  color: var(--amz-text-dark);
  line-height: 1.45;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   HEADER OFICIAL AMAZON (NAVY / DARK HEADER COM BUSCA LARANJA)
   ========================================================================== */

.amz-header {
  background: var(--amz-header-top);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.amz-header-top {
  max-width: 1360px;
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.amz-brand .amz-logo {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  transition: border-color 0.2s;
}

.amz-brand .amz-logo:hover {
  border-color: #fff;
}

.logo-name {
  font-family: "Sora", sans-serif;
  font-weight: 800;
  font-size: 1.25rem;
  color: #fff;
  letter-spacing: -0.5px;
  line-height: 1.1;
}

.logo-name span {
  color: var(--amz-gold);
  margin-left: 2px;
}

.logo-tag {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--amz-gold);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

/* Barra de Pesquisa Estilo Amazon */
.amz-search-box {
  flex: 1;
  max-width: 600px;
  display: flex;
  position: relative;
}

.amz-search-box input {
  width: 100%;
  padding: 10px 48px 10px 16px;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  background: #fff;
  color: #111;
  font-size: 0.95rem;
  outline: none;
  transition: all 0.2s;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.1);
}

.amz-search-box input:focus {
  border-color: var(--amz-orange);
  box-shadow: 0 0 0 3px rgba(255, 164, 28, 0.4);
}

.amz-search-box button {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 46px;
  background: var(--amz-gold);
  border: none;
  border-top-right-radius: var(--radius-sm);
  border-bottom-right-radius: var(--radius-sm);
  color: #111;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.amz-search-box button:hover {
  background: var(--amz-gold-hover);
}

.amz-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-btn-home, .nav-btn-wa {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  transition: all 0.2s;
}

.nav-btn-home {
  color: #fff;
}

.nav-btn-home:hover {
  border-color: #fff;
}

.nav-btn-wa {
  background: #25d366;
  color: #fff;
}

.nav-btn-wa:hover {
  background: #20ba5a;
}

/* Sub-nav de Categorias */
.amz-subnav {
  background: var(--amz-header-sub);
  padding: 6px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: thin;
  max-width: 1360px;
  margin: 0 auto;
}

.filter-chip {
  background: transparent;
  border: 1px solid transparent;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}

.filter-chip:hover {
  border-color: #fff;
}

.filter-chip.active {
  background: #fff;
  color: var(--amz-text-dark);
  font-weight: 700;
}

/* ==========================================================================
   CONTAINER PRINCIPAL (FUNDO BRANCO / CINZA AMAZON)
   ========================================================================== */

.amz-main-container {
  max-width: 1360px;
  margin: 16px auto 40px;
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* ==========================================================================
   1. SUPER SPOTLIGHT: LIVRO PRINCIPAL (AMAZON PRODUCT PAGE WHITE THEME)
   ========================================================================== */

.amz-spotlight-section {
  background: var(--amz-bg-card);
  border: 1px solid var(--amz-border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-card);
}

.spotlight-grid {
  display: grid;
  grid-template-columns: 320px 1fr 340px;
  gap: 28px;
  align-items: start;
}

/* Coluna 1: Capa do Livro */
.spotlight-cover-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #f8f9fa;
  padding: 20px;
  border-radius: var(--radius-md);
  border: 1px solid #e7e7e7;
}

.badge-best-seller {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--amz-badge-seller);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: 2px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.15);
  z-index: 2;
}

.spotlight-book-3d {
  width: 100%;
  max-width: 260px;
  margin: 16px auto 0;
  display: flex;
  justify-content: center;
  transition: transform 0.3s ease;
}

.spotlight-book-3d:hover {
  transform: translateY(-4px);
}

.spotlight-book-3d img {
  width: 100%;
  height: auto;
  max-height: 380px;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* Coluna 2: Informações do Livro */
.spotlight-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.spotlight-info h1 {
  font-family: "Sora", sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--amz-text-dark);
  line-height: 1.25;
  letter-spacing: -0.5px;
}

.spotlight-sub {
  font-size: 1.05rem;
  color: var(--amz-text-muted);
  font-weight: 500;
  line-height: 1.4;
}

.amz-rating-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--amz-border-subtle);
}

.stars {
  color: var(--amz-star);
  font-size: 1.1rem;
  letter-spacing: 1px;
}

.rating-score {
  font-weight: 700;
  color: var(--amz-text-dark);
}

.rating-count {
  color: var(--amz-link);
  font-size: 0.88rem;
}

.spotlight-synopsis {
  font-size: 0.95rem;
  color: #333;
  line-height: 1.6;
}

.spotlight-highlights {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
  padding: 12px;
  background: #f8fafc;
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--amz-orange);
}

.spotlight-highlights li {
  font-size: 0.88rem;
  color: #1e293b;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.spotlight-highlights li::before {
  content: "✓";
  color: #16a34a;
  font-weight: 800;
}

/* Coluna 3: Buy Box Oficial Amazon (Branco + Borda Cinza) */
.amz-buy-box {
  background: var(--amz-bg-card);
  border: 1px solid var(--amz-border-subtle);
  border-radius: var(--radius-md);
  padding: 18px;
  box-shadow: var(--shadow-buybox);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.format-tabs-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.format-label-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--amz-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.format-selector {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.format-opt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background: #fff;
  border: 1px solid var(--amz-border-subtle);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
}

.format-opt:hover {
  background: #fafafa;
  border-color: #888;
}

.format-opt.active {
  border-color: #e77600;
  background: #fef8f2;
  box-shadow: 0 0 0 1px #e77600;
}

.format-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--amz-text-dark);
  display: block;
}

.format-tag-badge {
  font-size: 0.7rem;
  font-weight: 600;
  color: #15803d;
}

.format-price {
  font-size: 0.95rem;
  font-weight: 800;
  color: #b12704;
}

/* Preço e Desconto */
.price-display-block {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 0;
  border-top: 1px solid #f0f0f0;
  border-bottom: 1px solid #f0f0f0;
}

.price-main-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.price-discount-pill {
  background: var(--amz-red-deal);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 2px;
}

.price-current {
  font-size: 1.6rem;
  font-weight: 800;
  color: #0f1111;
  letter-spacing: -0.5px;
}

.price-old-strike {
  font-size: 0.88rem;
  color: var(--amz-text-muted);
  text-decoration: line-through;
}

.delivery-note {
  font-size: 0.82rem;
  color: #007600;
  font-weight: 600;
  line-height: 1.35;
}

/* Botões Buy Box */
.btn-amz-buy {
  display: block;
  width: 100%;
  padding: 13px 18px;
  background: var(--amz-yellow);
  border: 1px solid var(--amz-yellow-border);
  border-radius: var(--radius-pill);
  color: #0f1111;
  font-size: 0.95rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(213,217,217,.5);
  transition: all 0.2s;
}

.btn-amz-buy:hover {
  background: var(--amz-yellow-hover);
  transform: translateY(-1px);
}

.btn-amz-resell {
  display: block;
  width: 100%;
  padding: 10px 14px;
  background: var(--amz-orange);
  border: 1px solid var(--amz-orange-border);
  border-radius: var(--radius-pill);
  color: #0f1111;
  font-size: 0.88rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-amz-resell:hover {
  background: var(--amz-orange-hover);
}

.trust-badges {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 4px;
}

.trust-badges li {
  font-size: 0.78rem;
  color: var(--amz-text-muted);
  line-height: 1.3;
}

/* ==========================================================================
   2. SEÇÕES GERAIS E TÍTULOS AMAZON STYLE
   ========================================================================== */

.amz-section {
  background: var(--amz-bg-card);
  border: 1px solid var(--amz-border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-card);
}

.amz-section-title {
  margin-bottom: 16px;
  border-bottom: 1px solid #f0f0f0;
  padding-bottom: 10px;
}

.amz-section-title-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.amz-section-title h2 {
  font-family: "Sora", sans-serif;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--amz-text-dark);
  line-height: 1.25;
}

.amz-section-title p {
  font-size: 0.85rem;
  color: var(--amz-text-muted);
  margin-top: 2px;
}

.amz-swipe-hint {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--amz-link);
  background: #f0f7f8;
  padding: 4px 8px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.catalog-counter-badge {
  font-size: 0.8rem;
  font-weight: 800;
  color: #111;
  background: var(--amz-gold);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

/* ==========================================================================
   2. BANNER IMERSIVO ESTILO KINDLE / APP AMAZON (BLOCO TECH AZUL MARINHO)
   ========================================================================== */

.amz-immersive-banner {
  background: linear-gradient(135deg, #0b1e36 0%, #173258 50%, #0c2340 100%);
  border-radius: var(--radius-md);
  padding: 26px 22px;
  color: #fff;
  box-shadow: 0 4px 15px rgba(11, 30, 54, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.amz-immersive-banner::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(254, 189, 105, 0.15) 0%, rgba(255,255,255,0) 70%);
  border-radius: 50%;
  pointer-events: none;
}

.immersive-banner-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.immersive-badge {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--amz-gold);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.immersive-banner-content h2 {
  font-family: "Sora", sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.25;
}

.immersive-banner-content p {
  font-size: 0.9rem;
  color: #cbd5e1;
  line-height: 1.45;
  max-width: 680px;
}

.immersive-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 6px;
}

.btn-amz-pill-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--amz-yellow);
  color: #0f1111;
  font-weight: 800;
  font-size: 0.9rem;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
  transition: all 0.2s;
}

.btn-amz-pill-gold:hover {
  background: var(--amz-yellow-hover);
  transform: translateY(-1px);
}

.btn-amz-pill-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: #fff;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255,255,255,0.4);
  text-decoration: none;
  transition: all 0.2s;
}

.btn-amz-pill-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: #fff;
}

/* ==========================================================================
   3. CARROSSEL HORIZONTAL COM PEEK LATERAL (SCROLL-SNAP MOBILE)
   ========================================================================== */

.amz-section-peek {
  padding: 18px 16px;
  overflow: hidden;
}

.amz-peek-carousel {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 12px;
  padding-top: 4px;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
}

.amz-peek-carousel::-webkit-scrollbar {
  height: 6px;
}

.amz-peek-carousel::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

.amz-card-peek {
  flex: 0 0 176px;
  scroll-snap-align: start;
  background: #ffffff;
  border: 1px solid #e7e7e7;
  border-radius: var(--radius-sm);
  padding: 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  transition: transform 0.2s, box-shadow 0.2s;
}

.amz-card-peek:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
  border-color: #ccc;
}

.peek-cover-wrap {
  background: #f8f9fa;
  padding: 8px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  height: 180px;
  position: relative;
}

.peek-cover-wrap img {
  max-width: 100%;
  max-height: 165px;
  object-fit: contain;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  border-radius: 2px;
}

.peek-badge {
  position: absolute;
  top: 6px;
  left: 6px;
  background: var(--amz-badge-seller);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 2px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.peek-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.peek-info h3 {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--amz-text-dark);
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.2em;
}

.peek-author {
  font-size: 0.72rem;
  color: var(--amz-text-muted);
}

.peek-price-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 2px 0;
}

.peek-price-current {
  font-size: 1.1rem;
  font-weight: 800;
  color: #0f1111;
}

.peek-price-old {
  font-size: 0.75rem;
  color: var(--amz-text-muted);
  text-decoration: line-through;
}

/* ==========================================================================
   4. GRID MODULAR 2x2 DE DESCOBERTA RÁPIDA (CATEGORIAS AMAZON)
   ========================================================================== */

.amz-grid-2x2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.grid-2x2-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-sm);
  padding: 12px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.grid-2x2-card:hover {
  background: #ffffff;
  border-color: var(--amz-orange);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}

.grid-2x2-thumb {
  width: 100%;
  height: 110px;
  background: #ffffff;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  border: 1px solid #edf2f7;
}

.grid-2x2-thumb img {
  max-width: 100%;
  max-height: 98px;
  object-fit: contain;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.grid-2x2-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--amz-text-dark);
  line-height: 1.25;
}

.grid-2x2-link {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--amz-link);
  margin-top: auto;
}

/* ==========================================================================
   5. FREQUENTEMENTE COMPRADOS JUNTOS (BUNDLE / COMBO AMAZON)
   ========================================================================== */

.amz-bundle-section {
  background: #ffffff;
  border: 1px solid var(--amz-border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
}

.badge-bundle-deal {
  display: inline-block;
  background: #eef7ee;
  color: #15803d;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
  margin-bottom: 6px;
  border: 1px solid #bbf7d0;
  text-transform: uppercase;
}

.amz-bundle-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 10px;
}

.bundle-row-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 16px;
  background: #f8fafc;
  border-radius: var(--radius-sm);
  border: 1px solid #e2e8f0;
}

.bundle-item-cover {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 85px;
}

.bundle-item-cover img {
  width: 100%;
  height: 115px;
  object-fit: contain;
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
  border-radius: 3px;
}

.bundle-item-cover span {
  font-size: 0.72rem;
  font-weight: 700;
  color: #0f1111;
  text-align: center;
  line-height: 1.2;
}

.bundle-item-price {
  font-size: 0.78rem !important;
  font-weight: 800 !important;
  color: #b12704 !important;
}

.bundle-operator {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--amz-text-muted);
}

.bundle-checkout-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  padding: 16px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-sm);
}

.bundle-total-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.bundle-total-label {
  font-size: 0.85rem;
  color: var(--amz-text-muted);
  font-weight: 600;
}

.bundle-total-price {
  font-size: 1.5rem;
  font-weight: 800;
  color: #b12704;
}

.bundle-total-economy {
  font-size: 0.78rem;
  color: #15803d;
  font-weight: 700;
}

.btn-amz-bundle {
  background: var(--amz-yellow);
  color: #0f1111;
  font-weight: 800;
  font-size: 0.95rem;
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--amz-yellow-border);
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(213,217,217,.5);
  transition: all 0.2s;
}

.btn-amz-bundle:hover {
  background: var(--amz-yellow-hover);
}

/* ==========================================================================
   6. CATÁLOGO COMPLETO (GRID AMAZON SQUARE BOXES)
   ========================================================================== */

.amz-catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 16px;
}

.amz-card-catalog {
  background: #ffffff;
  border: 1px solid #e7e7e7;
  border-radius: var(--radius-sm);
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.2s ease;
}

.amz-card-catalog:hover {
  box-shadow: var(--shadow-hover);
  border-color: #b5b5b5;
  transform: translateY(-2px);
}

.cat-cover-wrap {
  background: #f8f9fa;
  padding: 10px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  height: 200px;
  margin-bottom: 10px;
}

.cat-cover-wrap img {
  max-width: 100%;
  max-height: 180px;
  object-fit: contain;
  box-shadow: 0 4px 10px rgba(0,0,0,0.12);
  border-radius: 2px;
}

.cat-info h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--amz-text-dark);
  line-height: 1.3;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.5em;
}

.cat-author {
  font-size: 0.78rem;
  color: var(--amz-text-muted);
  margin-bottom: 6px;
}

.cat-price {
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f1111;
  margin: 6px 0 10px;
}

.btn-amz-sm {
  padding: 8px 12px;
  font-size: 0.85rem;
}

/* ==========================================================================
   7. PROGRAMA DE AFILIADOS / REVENDA
   ========================================================================== */

.amz-affiliate-banner {
  background: linear-gradient(135deg, #232f3e 0%, #131921 100%);
  border-radius: var(--radius-md);
  padding: 28px 32px;
  color: #fff;
  box-shadow: var(--shadow-card);
}

.affiliate-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.badge-gold {
  display: inline-block;
  background: var(--amz-gold);
  color: #111;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 8px;
}

.affiliate-text h2 {
  font-family: "Sora", sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 6px;
  color: #fff;
}

.affiliate-text p {
  font-size: 0.92rem;
  color: #cbd5e1;
  max-width: 650px;
  line-height: 1.5;
}

.btn-amz-secondary {
  display: inline-block;
  background: var(--amz-yellow);
  color: #0f1111;
  font-weight: 800;
  font-size: 0.95rem;
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  transition: all 0.2s;
}

.btn-amz-secondary:hover {
  background: var(--amz-yellow-hover);
}

/* ==========================================================================
   8. MOBILE BOTTOM NAVIGATION BAR (FIXA NO RODAPÉ NO MOBILE)
   ========================================================================== */

.amz-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: #ffffff;
  border-top: 1px solid #d5d9d9;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
  z-index: 9999;
  padding: 0 8px;
  align-items: center;
  justify-content: space-around;
}

.amz-bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: #565959;
  text-decoration: none;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  transition: color 0.15s;
  flex: 1;
}

.amz-bottom-nav-item svg {
  stroke-width: 2.2;
}

.amz-bottom-nav-item.active,
.amz-bottom-nav-item:hover {
  color: #e77600;
}

.amz-bottom-nav-item.amz-bottom-wa {
  color: #16a34a;
}

/* ==========================================================================
   BANNERS PUBLICITÁRIOS SEGUROS
   ========================================================================== */

.ad-banner-top-container, .ad-banner-bottom-container {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 16px;
}

.ad-banner-placeholder {
  background: #fff;
  border: 1px dashed #ccc;
  border-radius: var(--radius-sm);
  padding: 8px;
  text-align: center;
  min-height: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.ad-label {
  font-size: 0.65rem;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 4px;
}

/* ==========================================================================
   FOOTER AMAZON STYLE
   ========================================================================== */

.amz-footer {
  background: var(--amz-header-top);
  color: #ddd;
  margin-top: 40px;
}

.amz-footer-back {
  background: var(--amz-header-sub);
  text-align: center;
  padding: 14px;
}

.amz-footer-back a {
  color: #fff;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 700;
  display: block;
}

.amz-footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 16px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.amz-footer-col h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.amz-footer-col p {
  font-size: 0.82rem;
  color: #999;
  line-height: 1.5;
}

.amz-footer-col a {
  color: var(--amz-gold);
  text-decoration: none;
}

.amz-footer-bottom {
  border-top: 1px solid #3a4553;
  padding: 16px;
  text-align: center;
  font-size: 0.78rem;
  color: #888;
}

.amz-footer-bottom a {
  color: #bbb;
  text-decoration: none;
}

/* Toast */
.toast-feedback {
  position: fixed;
  bottom: 74px;
  right: 16px;
  background: #10b981;
  color: #fff;
  font-weight: 700;
  padding: 10px 16px;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 14px rgba(0,0,0,0.3);
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
  transition: all 0.3s;
  z-index: 10000;
}

.toast-feedback.show {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   RESPONSIVIDADE (MOBILE-FIRST PRIORITÁRIO & TABLET/DESKTOP)
   ========================================================================== */

@media (max-width: 1024px) {
  .spotlight-grid {
    grid-template-columns: 280px 1fr;
  }
  .amz-buy-box {
    grid-column: 1 / -1;
  }
  .amz-footer-content {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  body.amazon-theme {
    padding-bottom: 70px; /* Evita que conteúdo fique sob a bottom-nav */
  }

  .amz-bottom-nav {
    display: flex; /* Exibe a barra de navegação no mobile */
  }

  .amz-header-top {
    flex-wrap: wrap;
    gap: 10px;
    padding: 8px 12px;
  }

  .amz-actions {
    display: none; /* Ações transferidas para a bottom nav no mobile */
  }

  .amz-search-box {
    order: 3;
    max-width: 100%;
    width: 100%;
  }

  .amz-subnav {
    padding: 6px 12px;
    gap: 8px;
    -webkit-overflow-scrolling: touch;
  }

  .filter-chip {
    font-size: 0.78rem;
    padding: 5px 10px;
  }

  .spotlight-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .spotlight-cover-wrap {
    max-width: 240px;
    margin: 0 auto;
    padding: 14px;
  }

  .spotlight-info h1 {
    font-size: 1.35rem;
  }

  .spotlight-sub {
    font-size: 0.92rem;
  }

  .amz-card-peek {
    flex: 0 0 calc(50vw - 18px); /* Garante o Peek lateral perfeito de 15% a 25% */
    min-width: 160px;
    max-width: 190px;
  }

  .amz-grid-2x2 {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .grid-2x2-thumb {
    height: 95px;
  }

  .grid-2x2-title {
    font-size: 0.78rem;
  }

  .bundle-row-visual {
    gap: 8px;
    padding: 12px;
  }

  .bundle-item-cover {
    width: 75px;
  }

  .bundle-item-cover img {
    height: 95px;
  }

  .bundle-checkout-box {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .btn-amz-bundle {
    width: 100%;
  }

  .amz-catalog-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .cat-cover-wrap {
    height: 160px;
    padding: 6px;
  }

  .cat-cover-wrap img {
    max-height: 145px;
  }

  .cat-info h3 {
    font-size: 0.82rem;
    min-height: 2.2em;
  }

  .affiliate-inner {
    flex-direction: column;
    text-align: center;
  }

  .amz-footer-content {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

@media (max-width: 480px) {
  .amz-card-peek {
    flex: 0 0 165px;
  }
}

/* ==========================================================================
   SLOTS PUBLICITÁRIOS LOJA (BANNERS SEGUROS, ISOLADOS EM IFRAMES E ROTULADOS)
   ========================================================================== */

.ad-placement-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 24px auto;
  padding: 10px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.ad-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: #94a3b8;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.ad-desktop-only {
  display: block;
}

.ad-mobile-only {
  display: none;
}

@media (max-width: 768px) {
  .ad-desktop-only {
    display: none !important;
  }
  .ad-mobile-only {
    display: block !important;
  }
}

.ad-mpu-box {
  max-width: 340px;
}


