/* ==========================================================================
   ACHADINHOS MERCADO LIVRE - VITRINE DE AFILIADOS
   Visual Amarelo (#FFE600) e Azul Escuro/Preto (#1A2238)
   ========================================================================== */

:root {
  --ml-yellow: #FFE600;
  --ml-yellow-hover: #f5dc00;
  --ml-navy: #1A2238;
  --ml-navy-hover: #25304d;
  --ml-blue: #1D4ED8;
  --ml-green: #00A650;
  --ml-orange: #EA580C;
  --bg-page: #F5F6F8;
  --bg-card: #FFFFFF;
  --text-main: #1A2238;
  --text-muted: #5A657D;
  --border-color: #E2E8F0;
  --shadow-sm: 0 2px 6px rgba(26, 34, 56, 0.06);
  --shadow-md: 0 6px 18px rgba(26, 34, 56, 0.1);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 9999px;
  --container-max: 1280px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--text-main);
  background-color: var(--bg-page);
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

/* ==========================================================================
   CABEÇALHO (HEADER)
   ========================================================================== */
.site-header {
  background-color: var(--ml-yellow);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 20px;
  max-width: var(--container-max);
  margin: 0 auto;
}

.menu-toggle-btn {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  align-items: center;
  justify-content: center;
  color: var(--ml-navy);
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand-icon {
  width: 44px;
  height: 44px;
  background: #FFF;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--ml-navy);
  box-shadow: 0 2px 5px rgba(0,0,0,0.08);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--ml-navy);
  letter-spacing: -0.5px;
}

.brand-subtitle {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ml-navy);
}

/* Barra de Busca */
.search-bar {
  flex: 1;
  max-width: 580px;
  position: relative;
  display: flex;
  align-items: center;
  background: #FFFFFF;
  border-radius: var(--radius-pill);
  border: 2px solid var(--ml-navy);
  padding: 4px 6px 4px 18px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.search-bar input {
  width: 100%;
  border: none;
  outline: none;
  font-size: 0.95rem;
  color: var(--text-main);
  background: transparent;
}

.search-bar input::placeholder {
  color: #8892A6;
}

.search-clear-btn {
  display: none;
  padding: 6px;
  color: var(--text-muted);
  font-size: 1.1rem;
}

.search-submit-btn {
  background: var(--ml-navy);
  color: #FFFFFF;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s;
}

.search-submit-btn:hover {
  background: var(--ml-navy-hover);
}

/* Ações do Cabeçalho */
.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-shrink: 0;
}

.header-action-link {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ml-navy);
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  transition: background 0.15s;
  position: relative;
}

.header-action-link:hover,
.header-action-link.active {
  background: rgba(26, 34, 56, 0.08);
}

.fav-badge {
  background: var(--ml-navy);
  color: var(--ml-yellow);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: var(--radius-pill);
  min-width: 20px;
  text-align: center;
}

/* Barra de Navegação Secundária */
.header-nav {
  background: #FFFFFF;
  border-bottom: 1px solid var(--border-color);
}

.nav-list {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: none;
}

.nav-list::-webkit-scrollbar {
  display: none;
}

.nav-item a,
.nav-item button {
  display: inline-block;
  padding: 12px 4px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}

.nav-item a:hover,
.nav-item button:hover,
.nav-item a.active,
.nav-item button.active {
  color: var(--ml-blue);
  border-bottom-color: var(--ml-blue);
}

/* ==========================================================================
   BANNER PRINCIPAL (HERO)
   ========================================================================== */
.hero-section {
  padding: 24px 0 12px;
}

.hero-banner {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(110deg, #FFE600 0%, #FFE600 48%, #0F3460 48.1%, #1A2238 100%);
  min-height: 270px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  box-shadow: var(--shadow-md);
}

.hero-content {
  padding: 36px 42px;
  z-index: 2;
}

.hero-title {
  font-size: 2.05rem;
  font-weight: 900;
  color: var(--ml-navy);
  line-height: 1.12;
  letter-spacing: -0.6px;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.hero-subtitle {
  font-size: 1.02rem;
  color: #2B3448;
  font-weight: 500;
  line-height: 1.45;
  margin-bottom: 22px;
  max-width: 440px;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--ml-navy);
  color: #FFFFFF;
  font-weight: 700;
  font-size: 0.98rem;
  padding: 13px 28px;
  border-radius: var(--radius-pill);
  transition: transform 0.15s, background 0.2s;
  box-shadow: 0 4px 12px rgba(26, 34, 56, 0.22);
}

.hero-btn:hover {
  background: var(--ml-navy-hover);
  transform: translateY(-2px);
}

/* Área da imagem do banner (em aberto / editável pelo dono do site) */
.hero-media {
  position: relative;
  height: 100%;
  min-height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 32px;
}

.hero-banner-img {
  max-width: 100%;
  max-height: 240px;
  object-fit: contain;
  border-radius: var(--radius-md);
  display: block;
}

.hero-banner-placeholder {
  width: 100%;
  height: 215px;
  border: 2px dashed rgba(255, 230, 0, 0.65);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(4px);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 18px;
  color: #FFFFFF;
}

.hero-banner-placeholder strong {
  font-size: 0.98rem;
  color: var(--ml-yellow);
  margin-top: 8px;
}

.hero-banner-placeholder span {
  font-size: 0.8rem;
  color: #CBD5E1;
  margin-top: 4px;
}

/* Banner desktop: arte de fundo à direita, texto à esquerda (celular mantém o layout padrão) */
@media (min-width: 861px) {
  .hero-banner {
    background: #1C2E60 url("hero-bg.jpg") right center / auto 100% no-repeat;
    min-height: 380px;
    grid-template-columns: 1fr;
  }

  .hero-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #1C2E60 38%, rgba(28, 46, 96, 0) 68%);
    z-index: 1;
    pointer-events: none;
  }

  .hero-content {
    position: relative;
    z-index: 2;
    max-width: 52%;
    padding: 48px 56px;
  }

  .hero-title {
    color: #FFFFFF;
    font-size: 2.6rem;
    line-height: 1.08;
  }

  .hero-subtitle {
    color: #E2E8F5;
    font-size: 1.1rem;
  }

  .hero-btn {
    background: var(--ml-yellow);
    color: var(--ml-navy);
  }

  .hero-btn:hover {
    background: #FFD600;
  }

  .hero-media {
    display: none;
  }
}

/* Caso o usuário queira subir um banner inteiro cobrindo tudo */
.hero-full-art {
  width: 100%;
  display: block;
  border-radius: var(--radius-lg);
}

/* ==========================================================================
   BOTÕES DE CATEGORIA COM ÍCONES
   ========================================================================== */
.categories-strip-section {
  padding: 16px 0 22px;
}

.categories-strip {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 28px;
  overflow-x: auto;
  padding: 8px 6px 12px;
  scrollbar-width: none;
}

.categories-strip::-webkit-scrollbar {
  display: none;
}

.cat-pill-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  min-width: 86px;
  flex-shrink: 0;
  group: true;
  transition: transform 0.15s;
}

.cat-pill-btn:hover {
  transform: translateY(-3px);
}

.cat-icon-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #EDF1F7;
  border: 2px solid transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ml-navy);
  transition: all 0.2s;
  box-shadow: var(--shadow-sm);
}

.cat-pill-btn:hover .cat-icon-circle,
.cat-pill-btn.active .cat-icon-circle {
  background: #FFF9C4;
  border-color: var(--ml-navy);
  box-shadow: 0 4px 12px rgba(255, 230, 0, 0.35);
}

.cat-pill-label {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-main);
  text-align: center;
  max-width: 110px;
  line-height: 1.2;
}

.cat-pill-btn.active .cat-pill-label {
  font-weight: 800;
  color: var(--ml-navy);
}

/* ==========================================================================
   ESTRUTURA PRINCIPAL: SIDEBAR DE FILTROS + PRODUTOS
   ========================================================================== */
.main-layout {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 30px;
  padding-top: 8px;
  padding-bottom: 56px;
  align-items: start;
}

/* Barra de ferramentas mobile (botão Filtrar + contagem) */
.mobile-filter-bar {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.mobile-filter-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--ml-navy);
  color: #FFFFFF;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
}

/* Sidebar de Filtros */
.filters-sidebar {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  position: sticky;
  top: 90px;
}

.filters-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
}

.filters-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--ml-navy);
}

.filters-clear-btn {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ml-blue);
}

.filters-clear-btn:hover {
  text-decoration: underline;
}

.filter-close-mobile {
  display: none;
  font-size: 1.4rem;
  color: var(--text-main);
}

.filter-group {
  border-bottom: 1px solid var(--border-color);
  padding: 14px 0;
}

.filter-group:last-of-type {
  border-bottom: none;
}

.filter-group-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 10px;
}

.filter-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.filter-radio-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.86rem;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 6px;
  transition: background 0.15s, color 0.15s;
}

.filter-radio-label:hover {
  background: #F1F5F9;
  color: var(--text-main);
}

.filter-radio-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.filter-radio-label input[type="radio"],
.filter-radio-label input[type="checkbox"] {
  accent-color: var(--ml-navy);
  width: 15px;
  height: 15px;
  cursor: pointer;
}

.filter-count {
  font-size: 0.76rem;
  background: #EEF2F6;
  color: var(--text-muted);
  padding: 1px 7px;
  border-radius: var(--radius-pill);
  font-weight: 600;
}

.source-transparency-box {
  margin-top: 14px;
  padding: 12px;
  background: #F8FAFC;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.source-transparency-box a {
  color: var(--ml-blue);
  font-weight: 600;
  text-decoration: underline;
}

/* ==========================================================================
   SEÇÕES DE PRODUTOS E CARDS
   ========================================================================== */
.products-column {
  display: flex;
  flex-direction: column;
  gap: 38px;
  min-width: 0;
}

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.section-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.section-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--ml-navy);
  text-transform: uppercase;
  letter-spacing: -0.3px;
}

.section-meta-badge {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  background: #E2E8F0;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}

.section-source-link {
  font-size: 0.82rem;
  color: var(--ml-blue);
  font-weight: 600;
}

.section-source-link:hover {
  text-decoration: underline;
}

/* Grid de Cards */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

/* Card de Produto */
.product-card {
  min-width: 0;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

/* Badges de Topo do Card (Mais Vendidos / Ranking #1, #2, #3...) */
.card-top-badges {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 8px;
  z-index: 2;
}

.badge-bestseller {
  background: var(--ml-orange);
  color: #FFFFFF;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 6px;
  letter-spacing: 0.2px;
}

.badge-rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  padding: 0 7px;
  font-size: 0.84rem;
  font-weight: 800;
  border-radius: 6px;
  color: var(--ml-navy);
  background: var(--ml-yellow);
  box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}

.badge-rank.rank-2 {
  background: #CBD5E1;
  color: #1E293B;
}

.badge-rank.rank-3 {
  background: #D97706;
  color: #FFFFFF;
}

.badge-rank.rank-other {
  background: var(--ml-navy);
  color: #FFFFFF;
}

/* Ações Flutuantes no Card: Favoritar + WhatsApp */
.card-quick-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.icon-action-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #F1F5F9;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}

.icon-action-btn:hover {
  background: #E2E8F0;
  color: var(--ml-navy);
}

.icon-action-btn.fav-btn.active {
  background: #FEE2E2;
  color: #EF4444;
}

.icon-action-btn.whatsapp-btn:hover {
  background: #DCFCE7;
  color: #15803D;
}

/* Imagem do Produto */
.card-image-link {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 165px;
  margin: 4px 0 12px;
  overflow: hidden;
  background: #FFFFFF;
  border-radius: var(--radius-sm);
}

.card-image-link img {
  max-width: 100%;
  max-height: 155px;
  object-fit: contain;
  transition: transform 0.25s ease;
}

.product-card:hover .card-image-link img {
  transform: scale(1.04);
}

/* Corpo do Card */
.card-category-tag {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-bottom: 4px;
}

.card-title-link {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.35;
  min-height: 2.7em;
  max-height: 2.7em;
  margin-bottom: 10px;
}

.card-title-link:hover {
  color: var(--ml-blue);
}

/* Bloco de Preço Honesto */
.card-price-block {
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid #F1F5F9;
}

.card-price-value {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--ml-green);
  line-height: 1.15;
}

.card-price-date {
  font-size: 0.73rem;
  color: var(--text-muted);
  margin-top: 3px;
  display: block;
}

.card-check-current-price {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ml-blue);
  margin-top: 4px;
  margin-bottom: 10px;
}

.card-check-current-price:hover {
  text-decoration: underline;
}

/* Botão Principal do Card: Ver no Mercado Livre */
.card-cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 11px 14px;
  border-radius: var(--radius-pill);
  background: var(--ml-navy);
  color: #FFFFFF;
  font-size: 0.86rem;
  font-weight: 700;
  text-align: center;
  transition: background 0.2s, transform 0.15s;
}

.card-cta-btn:hover {
  background: var(--ml-yellow);
  color: var(--ml-navy);
}

/* Estado vazio de busca/filtro */
.empty-state {
  background: #FFFFFF;
  border-radius: var(--radius-md);
  padding: 48px 24px;
  text-align: center;
  border: 1px solid var(--border-color);
}

.empty-state h3 {
  font-size: 1.2rem;
  color: var(--ml-navy);
  margin-bottom: 8px;
}

.empty-state p {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 18px;
}

/* ==========================================================================
   SEÇÕES INSTITUCIONAIS: COMO FUNCIONA, SOBRE & POLÍTICA DE PRIVACIDADE
   ========================================================================== */
.info-sections {
  background: #FFFFFF;
  border-top: 1px solid var(--border-color);
  padding: 48px 0;
  margin-top: auto;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.info-card {
  background: #F8FAFC;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
}

.info-card h2 {
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--ml-navy);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.info-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 8px;
}

/* ==========================================================================
   RODAPÉ (FOOTER) COM SELOS DE CONFIANÇA E AVISO DE AFILIADO
   ========================================================================== */
.site-footer {
  background: var(--ml-navy);
  color: #E2E8F0;
  padding: 36px 0 28px;
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 22px;
  list-style: none;
}

.footer-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: #CBD5E1;
  transition: color 0.15s;
}

.footer-links a:hover {
  color: var(--ml-yellow);
}

.trust-badges {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.trust-seal {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 600;
  color: #FFFFFF;
}

.footer-disclaimer {
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.84rem;
  color: #94A3B8;
  line-height: 1.5;
}

.affiliate-notice {
  background: rgba(255, 230, 0, 0.1);
  border-left: 4px solid var(--ml-yellow);
  padding: 12px 16px;
  border-radius: 6px;
  color: #F8FAFC;
  font-weight: 500;
}

/* ==========================================================================
   BOTÃO FLUTUANTE VOLTAR AO TOPO
   ========================================================================== */
.back-to-top-btn {
  position: fixed;
  bottom: 22px;
  right: 20px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--ml-navy);
  color: var(--ml-yellow);
  border: 2px solid var(--ml-yellow);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 90;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all 0.2s ease;
}

.back-to-top-btn.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* ==========================================================================
   GAVETA MOBILE (MENU & FILTROS)
   ========================================================================== */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  z-index: 190;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s;
}

.drawer-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.mobile-menu-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 290px;
  max-width: 85vw;
  background: #FFFFFF;
  z-index: 200;
  transform: translateX(-100%);
  transition: transform 0.25s ease;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-md);
}

.mobile-menu-drawer.open {
  transform: translateX(0);
}

.drawer-header {
  background: var(--ml-yellow);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 800;
  color: var(--ml-navy);
}

.drawer-links {
  list-style: none;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow-y: auto;
}

.drawer-links a,
.drawer-links button {
  width: 100%;
  text-align: left;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.drawer-links a:hover,
.drawer-links button:hover {
  background: #F1F5F9;
}

/* ==========================================================================
   RESPONSIVIDADE (TABLET & CELULAR)
   ========================================================================== */
@media (max-width: 1100px) {
  .products-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .header-top {
    flex-wrap: wrap;
    gap: 12px;
    padding: 12px 16px;
  }

  .menu-toggle-btn {
    display: flex;
  }

  .search-bar {
    order: 3;
    max-width: 100%;
    flex-basis: 100%;
  }

  .header-nav {
    display: none;
  }

  .hero-banner {
    grid-template-columns: 1fr;
    background: linear-gradient(180deg, #FFE600 0%, #FFE600 54%, #1A2238 54.1%, #0F3460 100%);
  }

  .hero-content {
    padding: 26px 22px 20px;
    text-align: center;
  }

  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-title {
    font-size: 1.55rem;
  }

  .hero-media {
    padding: 18px 20px 24px;
    min-height: 200px;
  }

  .categories-strip {
    justify-content: flex-start;
    gap: 16px;
    padding: 6px 4px 10px;
  }

  .main-layout {
    grid-template-columns: 1fr;
  }

  .mobile-filter-bar {
    display: flex;
  }

  /* Painel de filtros vira gaveta no celular */
  .filters-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 310px;
    max-width: 88vw;
    z-index: 200;
    border-radius: 0;
    transform: translateX(100%);
    transition: transform 0.25s ease;
    overflow-y: auto;
  }

  .filters-sidebar.open {
    transform: translateX(0);
  }

  .filter-close-mobile {
    display: inline-block;
  }

  /* Cards em 2 colunas no celular conforme pedido */
  .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .info-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .brand-title {
    font-size: 1.2rem;
  }

  .brand-subtitle {
    font-size: 0.78rem;
  }

  .header-action-link span.action-text {
    display: none;
  }

  .product-card {
    padding: 10px;
  }

  .card-top-badges {
    flex-wrap: wrap;
  }

  .card-title-link {
    overflow-wrap: anywhere;
  }

  .card-image-link {
    height: 130px;
  }

  .card-image-link img {
    max-height: 120px;
  }

  .card-title-link {
    font-size: 0.82rem;
  }

  .card-price-value {
    font-size: 1.08rem;
  }

  .card-cta-btn {
    font-size: 0.76rem;
    padding: 9px 8px;
  }
}

