:root {
  --primary: #db6c0b;
  --primary-dark: #c25e09;
  --primary-light: #f5a623;
  --secondary: #3483fa;
  --secondary-dark: #2968c8;
  --secondary-light: rgba(65, 137, 230, 0.15);
  --success: #25d366;
  --success-dark: #1ebd54;
  --danger: #e74c3c;
  --warning: #f39c12;
  --bg: #ebebeb;
  --surface: #ffffff;
  --text: #333333;
  --text-secondary: #666666;
  --text-muted: #999999;
  --border: #e8e8e8;
  --border-light: #f0f0f0;
  --shadow-sm: 0 1px 2px 0 rgba(0,0,0,0.08);
  --shadow-md: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-lg: 0 4px 16px rgba(0,0,0,0.12);
  --shadow-xl: 0 8px 32px rgba(0,0,0,0.16);
  --radius: 6px;
  --radius-sm: 4px;
  --radius-lg: 12px;
  --radius-full: 50px;
  --font: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --max-width: 1200px;
  --transition: 0.2s ease;
  --transition-slow: 0.3s ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  font-family: var(--font);
  background-color: var(--bg);
  margin: 0;
  padding: 0;
  color: var(--text);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  width: 100%;
}

/* =========================================
   NOVA MELHORIA: LAYOUT PRINCIPAL (FOOTER GRUDADO)
   ========================================= */
main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

#vitrine-categorias-container {
  flex: 1;
  min-width: 0;
}

#vitrine-produtos {
  scroll-margin-top: 110px;
}

/* =========================================
   NOVA MELHORIA: CABEÇALHO SUPERIOR (HEADER TOP)
   ========================================= */
.cabecalho-loja {
  background-color: var(--primary);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.cabecalho-loja.header-hidden {
  transform: translateY(-100%);
}

.header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 8px 20px;
  gap: 20px;
  height: 60px;
}

.logo-link {
  display: block;
  flex-shrink: 0;
  line-height: 0;
  text-decoration: none;
}

.logo {
  max-width: 130px;
  height: auto;
  display: block;
  filter: brightness(1.05);
}

/* Barra de Pesquisa */
.container-pesquisa-wrapper {
  flex: 1;
  max-width: 580px;
  position: relative;
}

.container-pesquisa {
  display: flex;
  background: var(--surface);
  border-radius: var(--radius-sm);
  box-shadow: 0 1px 2px 0 rgba(0,0,0,.15);
  border: none;
  height: 42px;
  overflow: hidden;
  transition: box-shadow var(--transition);
}

.container-pesquisa:focus-within {
  box-shadow: 0 1px 4px 0 rgba(0,0,0,.25);
}

/* =========================================
   NOVA MELHORIA: SUGESTÕES DE PESQUISA
   ========================================= */
.sugestoes-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
  z-index: 1000;
  max-height: 320px;
  overflow-y: auto;
  display: none;
}

.sugestao-item {
  padding: 10px 16px;
  cursor: pointer;
  font-size: 14px;
  color: var(--text);
  border-bottom: 1px solid #f0f0f0;
  transition: background 0.15s ease;
}

.sugestao-item:last-child {
  border-bottom: none;
}

.sugestao-item:hover,
.sugestao-item.destaque {
  background: #f0f2f5;
}

.sugestao-item em {
  font-style: normal;
  font-weight: 700;
  color: var(--primary);
}

.sugestao-item.vazio {
  cursor: default;
  color: var(--text-secondary);
  font-size: 13px;
}

#input-pesquisa {
  flex: 1;
  border: none;
  padding: 0 16px;
  font-size: 15px;
  outline: none;
  color: var(--text);
  background: transparent;
  font-family: var(--font);
}

#input-pesquisa::placeholder {
  color: var(--text-muted);
}

.btn-pesquisa {
  background: var(--surface);
  border: none;
  padding: 0 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-left: 1px solid var(--border);
  color: var(--text-secondary);
  transition: color var(--transition), background-color var(--transition);
  font-size: 16px;
}

.btn-pesquisa:hover {
  background-color: #f5f5f5;
  color: var(--primary);
}

/* Ações do Header (Carrinho) */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.header-cart-btn {
  background: rgba(255,255,255,0.2);
  border: none;
  color: white;
  width: 46px;
  height: 46px;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  position: relative;
  transition: background var(--transition), box-shadow var(--transition);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.15);
}

.header-cart-btn:hover {
  background: rgba(255,255,255,0.35);
  box-shadow: 0 0 0 2px rgba(255,255,255,0.3);
}

.contador-carrinho-header {
  position: absolute;
  top: -4px;
  right: -4px;
  background-color: var(--danger);
  color: white;
  font-size: 11px;
  font-weight: 700;
  border-radius: var(--radius-full);
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--primary);
}

/* =========================================
   NOVA MELHORIA: BARRA DE NAVEGAÇÃO (HEADER BOTTOM)
   ========================================= */
.header-bottom {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 60px;
  z-index: 999;
  box-shadow: var(--shadow-sm);
  overflow: visible;
}

.menu-categorias {
  display: flex;
  align-items: center;
  gap: 4px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
  overflow: visible;
  white-space: nowrap;
  min-height: 44px;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}

.menu-categorias:active {
  cursor: grabbing;
}

.menu-categorias button.btn-menu-cat {
  background: transparent;
  border: none;
  padding: 10px 16px;
  cursor: pointer;
  font-size: 13px;
  color: var(--text-secondary);
  transition: color var(--transition), background var(--transition);
  font-weight: 500;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  flex-shrink: 0;
  font-family: var(--font);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  min-width: 90px;
}

.menu-categorias button.btn-menu-cat:hover {
  color: var(--primary);
  background: rgba(219,108,11,0.06);
}

.menu-categorias button.btn-menu-cat.ativo {
  color: var(--primary);
  font-weight: 600;
}

/* Botão sanduíche mobile */
@media (min-width: 769px) {
  .btn-menu-mobile,
  .menu-mobile-dropdown {
    display: none !important;
  }
}

.btn-menu-mobile {
  background: var(--primary) !important;
  color: #fff !important;
  border-radius: var(--radius-sm) !important;
  font-weight: 700 !important;
  font-size: 13px !important;
  padding: 8px 14px !important;
  min-width: auto !important;
  gap: 4px;
  transition: opacity var(--transition);
}

.btn-menu-mobile:hover {
  opacity: 0.85;
}

/* Dropdown do sanduíche mobile */
.menu-mobile-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--surface);
  z-index: 2000;
  max-height: 60vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 8px 0;
}

.menu-mobile-dropdown.aberto {
  display: block;
  animation: dropdownIn 0.15s ease;
}

.menu-mobile-dropdown .dropdown-cat {
  display: block;
}

.menu-mobile-dropdown .dropdown-cat .dropbtn {
  padding: 12px 20px;
  font-size: 14px;
  width: 100%;
  justify-content: space-between;
  border-radius: 0;
  min-height: auto;
  min-width: auto;
}

.menu-mobile-dropdown .dropdown-cat .dropbtn:hover {
  background: rgba(219,108,11,0.06);
}

.menu-mobile-dropdown .dropdown-content {
  position: static;
  box-shadow: none;
  border: none;
  border-radius: 0;
  margin: 0;
  animation: none;
  background: #f9f9f9;
}

.menu-mobile-dropdown .dropdown-content button {
  padding: 10px 28px;
  font-size: 13px;
}

.menu-mobile-dropdown .dropdown-content-sub {
  position: static;
  box-shadow: none;
  border: none;
  border-radius: 0;
  margin: 0;
  animation: none;
  background: #f4f4f4;
  margin-left: 16px;
}

.menu-mobile-dropdown .dropdown-content-sub button {
  padding: 10px 36px;
  font-size: 13px;
}

.menu-mobile-empty {
  padding: 20px;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
}

@media (max-width: 768px) {
  .menu-mobile-dropdown .dropdown-content {
    display: none;
    position: static !important;
    margin-top: 0 !important;
    min-width: auto !important;
    max-width: none !important;
    max-height: none !important;
    z-index: auto !important;
    box-shadow: none !important;
    border: none !important;
    overflow: visible !important;
  }

  .menu-mobile-dropdown .dropdown-cat.ativo .dropdown-content {
    display: block;
  }

  .menu-mobile-dropdown .dropdown-content-sub {
    display: none;
    position: static !important;
    margin-left: 16px !important;
    min-width: auto !important;
    max-width: none !important;
    max-height: none !important;
    z-index: auto !important;
    box-shadow: none !important;
    border: none !important;
    overflow: visible !important;
  }

  .menu-mobile-dropdown .dropdown-sub.ativo-sub .dropdown-content-sub {
    display: block;
  }

  .menu-mobile-dropdown .dropdown-content::before,
  .menu-mobile-dropdown .dropdown-content-sub::before {
    display: none;
  }
}

/* Dropdown de Categorias */
.dropdown-cat {
  position: relative;
  display: inline-block;
  flex-shrink: 0;
}

.dropdown-cat .dropbtn {
  display: flex;
  align-items: center;
  gap: 4px;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: var(--surface);
  min-width: 200px;
  box-shadow: var(--shadow-lg);
  z-index: 100;
  border-radius: var(--radius);
  overflow: visible;
  top: calc(100% + 4px);
  left: 0;
  border: 1px solid var(--border);
  animation: dropdownIn 0.15s ease;
}

.dropdown-content::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 0;
  right: 0;
  height: 8px;
  background: transparent;
}

@keyframes dropdownIn {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dropdown-content button {
  color: var(--text);
  padding: 11px 16px;
  text-decoration: none;
  display: block;
  width: 100%;
  text-align: left;
  border: none;
  background: var(--surface);
  border-bottom: 1px solid var(--border-light);
  cursor: pointer;
  font-size: 13px;
  font-family: var(--font);
  transition: background var(--transition);
}

.dropdown-content button:last-child {
  border-bottom: none;
}

.dropdown-content button:hover {
  background-color: var(--secondary-light);
  color: var(--secondary);
}

.dropdown-cat:hover .dropdown-content,
.dropdown-cat.ativo .dropdown-content {
  display: block;
}

/* =========================================
   NOVA MELHORIA: SUB-DROPDOWN ANINHADO
   ========================================= */
.dropdown-sub {
  position: relative;
}

.dropdown-sub .dropbtn-sub {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding-right: 8px;
}

.dropdown-content-sub {
  display: none;
  position: absolute;
  left: calc(100% + 4px);
  top: 0;
  background: var(--surface);
  min-width: 200px;
  box-shadow: var(--shadow-lg);
  z-index: 101;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.dropdown-content-sub::before {
  content: '';
  position: absolute;
  top: 0;
  left: -8px;
  width: 8px;
  height: 100%;
  background: transparent;
}

.dropdown-content-sub button {
  color: var(--text);
  padding: 11px 16px;
  text-decoration: none;
  display: block;
  width: 100%;
  text-align: left;
  border: none;
  background: var(--surface);
  border-bottom: 1px solid var(--border-light);
  cursor: pointer;
  font-size: 13px;
  font-family: var(--font);
  transition: background var(--transition);
}

.dropdown-content-sub button:last-child {
  border-bottom: none;
}

.dropdown-content-sub button:hover {
  background-color: var(--secondary-light);
  color: var(--secondary);
}

.dropdown-sub:hover .dropdown-content-sub {
  display: block;
}

/* =========================================
   NOVA MELHORIA: CARROSSEL DE BANNERS
   ========================================= */
.banners-section {
  max-width: var(--max-width);
  margin: 16px auto 0;
  padding: 0 20px;
  width: 100%;
  min-width: 0;
}

.carrossel-wrapper {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.carrossel-track {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 1;
  min-height: 180px;
  max-height: 380px;
  overflow: hidden;
  background: #f9f9f9;
}

.carrossel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

.carrossel-slide.ativo {
  opacity: 1;
  pointer-events: auto;
}

.carrossel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.btn-carrossel {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.9);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--text);
  box-shadow: var(--shadow-md);
  z-index: 10;
  transition: all var(--transition);
  opacity: 0;
}

.carrossel-wrapper:hover .btn-carrossel {
  opacity: 1;
}

.btn-carrossel:hover {
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  transform: translateY(-50%) scale(1.05);
}

.btn-carrossel.prev {
  left: 12px;
}

.btn-carrossel.next {
  right: 12px;
}

.carrossel-indicadores {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 12px;
  background: var(--surface);
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: var(--radius-full);
  background: #ccc;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
  border: none;
  padding: 0;
  display: inline-block;
}

.dot.ativo {
  background: var(--primary);
  transform: scale(1.2);
}

.dot:hover {
  background: var(--primary-light);
}

/* =========================================
   NOVA MELHORIA: VITRINE DE PRODUTOS
   ========================================= */
.vitrine-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 16px;
  padding: 20px;
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
  flex: 1;
  align-items: stretch;
}

.produto-card {
  background: var(--surface);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
  height: 100%;
  position: relative;
  cursor: default;
}

.produto-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.produto-imagem-wrapper {
  position: relative;
  width: 100%;
  padding-top: 100%;
  overflow: hidden;
  background: var(--surface);
  border-bottom: 1px solid var(--border-light);
}

.produto-imagem {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 16px;
  transition: transform 0.3s ease;
}

.produto-card:hover .produto-imagem {
  transform: scale(1.03);
}

/* Badge Frete Grátis */
.produto-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--success);
  color: white;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  z-index: 2;
  letter-spacing: 0.3px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
  line-height: 1.2;
}

.produto-badge-desconto {
  background: var(--danger);
  top: 8px;
  left: auto;
  right: 8px;
}

.produto-badge.consulta {
  background: var(--warning);
}

.produto-info {
  padding: 12px 14px 14px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  gap: 4px;
}

.produto-nome {
  font-size: 14px;
  margin: 0;
  color: var(--text);
  font-weight: 400;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.produto-preco {
  font-size: 22px;
  font-weight: 600;
  margin: 4px 0 2px;
  color: var(--text);
  letter-spacing: -0.3px;
}

.produto-preco-consulta {
  font-size: 14px;
  font-weight: 600;
  color: var(--success);
  margin: 4px 0 2px;
}

/* NOVA MELHORIA: Avaliação na vitrine */
.produto-avaliacao {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 4px 0 6px;
  font-size: 14px;
}
.produto-avaliacao .estrelas {
  color: #f59e0b;
  letter-spacing: 2px;
}
.produto-avaliacao .total-avaliacoes {
  color: #999;
  font-size: 12px;
}

/* Parcelamento */
.produto-parcelamento {
  font-size: 12px;
  color: var(--text-secondary);
  margin: 0 0 8px;
  font-weight: 400;
}

.produto-parcelamento strong {
  color: var(--text);
  font-weight: 600;
}

/* Botões do Card */
.produto-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: auto;
  padding-top: 8px;
}

.btn-compra {
  padding: 10px;
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  display: block;
  width: 100%;
  box-sizing: border-box;
  font-size: 13px;
  font-family: var(--font);
  transition: background var(--transition), transform var(--transition);
  line-height: 1.3;
}

.btn-compra:active {
  transform: scale(0.97);
}

.btn-whatsapp {
  background-color: var(--success);
  color: white;
}

.btn-whatsapp:hover {
  background-color: var(--success-dark);
}

.btn-afiliado {
  background-color: var(--secondary);
  color: white;
}

.btn-afiliado:hover {
  background-color: var(--secondary-dark);
}

.btn-detalhes {
  background-color: var(--secondary-light);
  color: var(--secondary);
  border: none;
  padding: 10px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  box-sizing: border-box;
  transition: background var(--transition), transform var(--transition);
  font-size: 13px;
  font-family: var(--font);
  line-height: 1.3;
}

.btn-detalhes:hover {
  background-color: rgba(65, 137, 230, 0.25);
}

.btn-detalhes:active {
  transform: scale(0.97);
}

/* =========================================
   NOVA MELHORIA: SKELETON LOADING
   ========================================= */
@keyframes shimmer {
  0% { background-position: -200px 0; }
  100% { background-position: calc(200px + 100%) 0; }
}

.skeleton-card {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.skeleton-img {
  width: 100%;
  padding-top: 100%;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200px 100%;
}

@media (prefers-reduced-motion: no-preference) {
  .skeleton-img {
    animation: shimmer 1.5s infinite;
  }
}

.skeleton-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.skeleton-line {
  height: 14px;
  border-radius: 8px;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200px 100%;
}

@media (prefers-reduced-motion: no-preference) {
  .skeleton-line {
    animation: shimmer 1.5s infinite;
  }
}

.skeleton-line:first-child {
  width: 85%;
  height: 16px;
}

.skeleton-line:nth-child(2) {
  width: 55%;
  height: 24px;
}

.skeleton-line:nth-child(3) {
  width: 90%;
  height: 36px;
  border-radius: var(--radius-sm);
}

.skeleton-line:nth-child(4) {
  width: 90%;
  height: 36px;
  border-radius: var(--radius-sm);
}

/* =========================================
   NOVA MELHORIA: MODAIS
   ========================================= */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.55);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 16px;
  box-sizing: border-box;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.modal-overlay.aberto {
  display: flex;
  animation: modalFadeIn 0.2s ease;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.modal-content {
  background: var(--surface);
  padding: 28px;
  border-radius: var(--radius-lg);
  max-width: 650px;
  width: 100%;
  position: relative;
  box-shadow: var(--shadow-xl);
  max-height: 90vh;
  overflow-y: auto;
  box-sizing: border-box;
  animation: modalContentIn 0.25s ease;
}

@keyframes modalContentIn {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(8px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.btn-fechar-modal {
  position: absolute;
  top: 12px;
  right: 16px;
  background: rgba(0,0,0,0.04);
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: var(--text-muted);
  transition: all var(--transition);
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.btn-fechar-modal:hover {
  color: var(--text);
  background: rgba(0,0,0,0.08);
}

/* Galeria do Modal */
.galeria-detalhes {
  margin-bottom: 20px;
  text-align: center;
}

.foto-principal-wrapper {
  position: relative;
  display: inline-block;
  width: 100%;
  max-width: 500px;
}

.foto-principal-modal {
  width: 100%;
  height: 320px;
  object-fit: contain;
  border-radius: var(--radius);
  background: #fafafa;
}

.btn-seta-galeria {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.9);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--text);
  box-shadow: var(--shadow-md);
  transition: all var(--transition);
  z-index: 5;
}

.btn-seta-galeria:hover {
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}

.btn-seta-galeria.prev {
  left: 8px;
}

.btn-seta-galeria.next {
  right: 8px;
}

.miniaturas-container {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 12px;
  overflow-x: auto;
  padding: 4px 0;
}

.miniaturas-container img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  background: #fafafa;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: 2px solid var(--border);
  transition: border-color var(--transition), transform var(--transition);
  flex-shrink: 0;
}

.miniaturas-container img:hover,
.miniaturas-container img.ativa {
  border-color: var(--secondary);
  transform: translateY(-1px);
}

/* Detalhes do Modal */
#modal-nome {
  font-size: 20px;
  margin: 0 0 6px;
  color: var(--text);
  font-weight: 500;
}

#modal-preco {
  font-size: 26px;
  font-weight: 600;
  margin: 0 0 12px;
  color: var(--text);
}

#modal-descricao {
  margin-bottom: 20px;
  line-height: 1.6;
  color: var(--text-secondary);
  font-size: 14px;
}

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

.btn-opcao-cart {
  background-color: var(--secondary);
  color: white;
  border: none;
  padding: 13px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: background var(--transition), transform var(--transition);
  font-family: var(--font);
  line-height: 1.3;
}

.btn-opcao-cart:hover {
  background-color: var(--secondary-dark);
}

.btn-opcao-cart:active {
  transform: scale(0.98);
}

.btn-opcao-direto {
  background-color: var(--success);
  color: white;
  border: none;
  padding: 13px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: background var(--transition), transform var(--transition);
  font-family: var(--font);
  line-height: 1.3;
}

.btn-opcao-direto:hover {
  background-color: var(--success-dark);
}

.btn-opcao-direto:active {
  transform: scale(0.98);
}

/* =========================================
   NOVA MELHORIA: PRODUTOS RELACIONADOS
   ========================================= */
.relacionados-container {
    margin-top: 24px;
    border-top: 1px solid var(--border-light);
    padding-top: 16px;
}

.relacionados-titulo {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 12px;
}

.relacionados-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.relacionados-card {
    background: var(--surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    cursor: pointer;
    overflow: hidden;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    display: flex;
    flex-direction: column;
}

.relacionados-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.relacionados-card-img-wrapper {
    width: 100%;
    padding-top: 75%;
    position: relative;
    overflow: hidden;
    background: var(--surface);
    border-bottom: 1px solid var(--border-light);
}

.relacionados-card-img-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 8px;
    box-sizing: border-box;
}

.relacionados-card-info {
    padding: 8px 10px 10px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.relacionados-card-nome {
    font-size: 12px;
    font-weight: 500;
    color: var(--text);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.relacionados-card-preco {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary);
}

@media (max-width: 480px) {
    .relacionados-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* =========================================
   NOVA MELHORIA: CARRINHO MODAL
   ========================================= */
.modal-content h2 {
  margin-top: 0;
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
}

.item-carrinho {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-light);
}

.item-carrinho:last-child {
  border-bottom: none;
}

.item-carrinho img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: var(--radius-sm);
  background: #fafafa;
  flex-shrink: 0;
}

.item-carrinho-info {
  flex: 1;
  min-width: 0;
}

.item-carrinho-info h4 {
  margin: 0 0 4px;
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.item-carrinho-info p {
  margin: 2px 0;
  font-size: 13px;
  font-weight: 600;
}

.item-carrinho-qtd {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  flex-wrap: wrap;
}

.btn-qtd {
  background-color: #eaeded;
  border: none;
  width: 28px;
  height: 28px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
  color: var(--text);
  font-family: var(--font);
  line-height: 1;
}

.btn-qtd:hover {
  background-color: #d5dbdb;
}

.btn-qtd:active {
  transform: scale(0.93);
}

.btn-remover-item {
  color: var(--danger);
  background: none;
  border: none;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
  font-family: var(--font);
}

.btn-remover-item:hover {
  background: rgba(231, 76, 60, 0.08);
  text-decoration: none;
}

/* Total do Carrinho */
#total-carrinho {
  font-weight: 700;
  color: var(--text);
}

#btn-enviar-orcamento {
  width: 100%;
  margin-top: 16px;
  padding: 14px;
  font-size: 15px;
}

/* =========================================
   NOVA MELHORIA: RODAPÉ
   ========================================= */
.rodape-loja {
  background: #1a1a1a;
  color: rgba(255,255,255,0.85);
  padding: 40px 20px 32px;
  margin-top: 40px;
}

.footer-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.footer-col h3 {
  color: white;
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-col p {
  font-size: 13px;
  line-height: 1.6;
  color: rgba(255,255,255,0.7);
  margin: 0 0 6px;
}

.footer-col a {
  font-size: 13px;
  line-height: 1.6;
  color: rgba(255,255,255,0.85);
  margin: 0 0 6px;
  text-decoration: none;
  transition: color var(--transition);
}

.footer-col a:hover {
  color: white;
}

.link-maps-rodape {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  transition: color var(--transition);
}

.link-maps-rodape:hover {
  color: white;
}

.link-config-notif {
  color: #db6c0b !important;
  font-weight: 500;
  transition: opacity var(--transition);
}

.link-config-notif:hover {
  opacity: 0.8;
}

.footer-social {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.btn-social {
  padding: 10px 18px;
  color: white;
  text-decoration: none;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  transition: all var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-social:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-social.wpp { background-color: var(--success); }
.btn-social.wpp:hover { background-color: var(--success-dark); }
.btn-social.insta { background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.btn-social.insta:hover { filter: brightness(1.1); }
.btn-social.fb { background-color: #3b5998; }
.btn-social.fb:hover { background-color: #2d4373; }

.footer-bottom {
  max-width: var(--max-width);
  margin: 24px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
  font-size: 12px;
  color: rgba(255,255,255,0.5);
}

/* Botão Carregar Mais */
.btn-carregar-mais {
  display: block;
  margin: 24px auto;
  padding: 10px 28px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity var(--transition);
}

.btn-carregar-mais:hover {
  opacity: 0.85;
}

.btn-carregar-mais:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Mensagens de Estado da Vitrine */
.vitrine-mensagem {
  text-align: center;
  width: 100%;
  grid-column: 1 / -1;
  padding: 60px 20px;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.6;
}

/* =========================================
   NOVA MELHORIA: AVISOS BAR
   ========================================= */
.avisos-bar {
  display: none;
  background: #2c3e50;
  color: #fff;
  text-align: center;
  padding: 8px 20px;
  font-size: 13px;
  font-weight: 500;
  position: relative;
  overflow: hidden;
  min-height: 36px;
  align-items: center;
  justify-content: center;
}

.avisos-bar .aviso-item {
  display: none;
  width: 100%;
  text-align: center;
  animation: fadeIn 0.4s ease;
}

.avisos-bar .aviso-item.ativo {
  display: block;
}

.avisos-bar .aviso-item a {
  color: #fff;
  text-decoration: underline;
  font-weight: 600;
}

.avisos-bar .aviso-item a:hover {
  text-decoration: none;
}

/* =========================================
   NOVA MELHORIA: SEÇÕES DE DESTAQUE E CATEGORIA
   ========================================= */
.secao-destaque,
.secao-categoria {
  max-width: var(--max-width);
  width: 100%;
  margin: 24px auto;
  padding: 0 20px;
  min-width: 0;
}

.secao-titulo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.secao-titulo h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}

.secao-titulo h2 i {
  color: var(--accent);
  margin-right: 6px;
}

.secao-ver-todas {
  background: none;
  border: none;
  color: var(--accent);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  transition: background 0.2s;
}

.secao-ver-todas:hover {
  background: rgba(219, 108, 11, 0.08);
}

/* =========================================
   NOVA MELHORIA: CARROSSEL HORIZONTAL DE PRODUTOS
   ========================================= */
.carrossel-horizontal {
  position: relative;
  display: flex;
  align-items: stretch;
  gap: 0;
  width: 100%;
  max-width: 100%;
}

.carrossel-track-produtos {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding: 4px 0 8px;
  flex: 1;
  min-width: 0;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

.carrossel-track-produtos::-webkit-scrollbar {
  height: 4px;
}

.carrossel-track-produtos::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 10px;
}

.carrossel-track-produtos .produto-card {
  flex: 0 0 200px;
  scroll-snap-align: start;
}

.seta-carrossel {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: var(--surface);
  color: var(--text);
  font-size: 20px;
  font-weight: bold;
  line-height: 1;
  text-align: center;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
}

.carrossel-horizontal:hover .seta-carrossel,
.carrossel-horizontal:focus-within .seta-carrossel {
  opacity: 1;
}

.seta-carrossel:focus-visible {
  opacity: 1;
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.seta-carrossel.prev {
  left: -18px;
}

.seta-carrossel.next {
  right: -18px;
}

.seta-carrossel:hover {
  background: var(--primary);
  color: white;
  box-shadow: 0 4px 12px rgba(219, 108, 11, 0.3);
}

.seta-carrossel:active {
  transform: translateY(-50%) scale(0.92);
}

/* =========================================
   NOVA MELHORIA: WHATSAPP FLUTUANTE
   ========================================= */
.btn-whatsapp-flutuante {
  position: fixed;
  bottom: 24px;
  right: 16px;
  z-index: 998;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #25d366;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.4);
  transition: all 0.3s ease;
  text-decoration: none;
  animation: pulseWhatsApp 2s infinite;
}

@keyframes pulseWhatsApp {
  0%, 100% { box-shadow: 0 4px 14px rgba(37, 211, 102, 0.4); }
  50% { box-shadow: 0 4px 24px rgba(37, 211, 102, 0.7); }
}

.btn-whatsapp-flutuante:hover {
  transform: scale(1.1);
  color: white;
}

/* =========================================
   NOVA MELHORIA: BOTÃO VOLTAR AO TOPO
   ========================================= */
.btn-topo {
  position: fixed;
  bottom: 84px;
  right: 16px;
  z-index: 998;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
}

.btn-topo.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.btn-topo:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

/* =========================================
   NOVA MELHORIA: TOAST NOTIFICATION
   ========================================= */
.toast-notification {
  position: fixed;
  bottom: 90px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  z-index: 9999;
  background: #333;
  color: #fff;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
  max-width: 85vw;
  text-align: center;
  pointer-events: none;
}

.toast-notification.show {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.toast-notification.sucesso {
  background: #27ae60;
}

.toast-notification.erro {
  background: #e74c3c;
}

/* =========================================
   NOVA MELHORIA: PAGAMENTOS NO FOOTER
   ========================================= */
.footer-pagamentos h3 {
  margin-bottom: 12px;
}

.pagamentos-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 28px;
  color: rgba(255,255,255,0.6);
  align-items: center;
}

.pagamentos-icons i {
  transition: color 0.2s;
}

.pagamentos-icons i:hover {
  color: #fff;
}

/* =========================================
   NOVA MELHORIA: POPUP DE PERMISSÃO DE NOTIFICAÇÃO
   ========================================= */
.notif-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.55);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 16px;
    backdrop-filter: blur(2px);
}

.notif-popup-overlay.visivel {
    display: flex;
    animation: modalFadeIn 0.2s ease;
}

.notif-popup {
    background: var(--surface);
    border-radius: 16px;
    padding: 32px 28px 24px;
    max-width: 420px;
    width: 100%;
    text-align: center;
    box-shadow: 0 16px 48px rgba(0,0,0,0.2);
    animation: modalContentIn 0.25s ease;
}

.notif-popup-icon {
    font-size: 56px;
    line-height: 1;
    margin-bottom: 12px;
}

.notif-popup h2 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 8px;
}

.notif-popup p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0 0 16px;
}

.notif-popup-benefits {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
    text-align: left;
    display: inline-block;
}

.notif-popup-benefits li {
    font-size: 13px;
    color: var(--text);
    padding: 4px 0;
    line-height: 1.4;
}

.notif-popup-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.notif-btn-permitir {
    background: var(--primary);
    color: white;
    border: none;
    padding: 14px 20px;
    border-radius: var(--radius);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.notif-btn-permitir:hover {
    background: var(--primary-dark);
}

.notif-btn-adiar {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border);
    padding: 10px 20px;
    border-radius: var(--radius);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.notif-btn-adiar:hover {
    background: rgba(0,0,0,0.05);
    color: var(--text);
}

/* =========================================
   NOVA MELHORIA: RESPONSIVIDADE
   ========================================= */
@media (max-width: 768px) {
  .header-main {
    padding: 6px 10px;
    gap: 8px;
    height: 52px;
    flex-wrap: nowrap;
  }

  .logo {
    max-width: 130px;
    max-height: 48px;
    width: auto;
    height: auto;
  }

  .container-pesquisa-wrapper {
    flex: 1;
    flex-basis: 0;
    min-width: 60px;
    max-width: none;
  }

  .container-pesquisa {
    height: 38px;
  }

  #input-pesquisa {
    font-size: 15px;
    padding: 0 12px;
  }

  .btn-pesquisa {
    padding: 0 12px;
    font-size: 15px;
  }

  .header-actions {
    margin-left: 0;
  }

  .header-cart-btn {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }

  .header-bottom {
    top: auto;
    position: relative;
  }

  .menu-categorias {
    padding: 0 8px;
    min-height: 44px;
    gap: 6px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .menu-categorias::-webkit-scrollbar {
    display: none;
  }

  .menu-categorias button.btn-menu-cat {
    font-size: 13px;
    padding: 10px 12px;
    min-height: 44px;
    min-width: auto;
    flex-shrink: 0;
  }

  .banners-section {
    padding: 0 8px;
    margin-top: 8px;
  }

  .carrossel-track {
    aspect-ratio: 2 / 1;
    min-height: 120px;
    max-height: 240px;
  }

  .btn-carrossel {
    width: 32px;
    height: 32px;
    font-size: 13px;
    opacity: 1;
  }

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

  .produto-imagem {
    padding: 10px;
  }

  .produto-imagem-wrapper {
    padding-top: 100%;
  }

  .produto-card {
    border-radius: 4px;
  }

  .produto-info {
    padding: 8px 10px 12px;
    gap: 2px;
  }

  .produto-nome {
    font-size: 13px;
    -webkit-line-clamp: 2;
    line-height: 1.3;
  }

  .produto-preco {
    font-size: 19px;
    font-weight: 700;
    margin: 2px 0;
  }

  .produto-parcelamento {
    font-size: 12px;
    margin: 0 0 4px;
    color: #00a650;
  }

  .produto-actions {
    gap: 6px;
    padding-top: 6px;
  }

  .btn-compra {
    padding: 10px 8px;
    font-size: 13px;
    border-radius: 4px;
  }

  .btn-detalhes {
    padding: 10px 8px;
    font-size: 13px;
    border-radius: 4px;
  }

  .produto-badge {
    font-size: 10px;
    padding: 3px 6px;
    top: 4px;
    left: 4px;
  }

  .produto-badge-desconto {
    top: 4px;
    right: 4px;
    left: auto;
  }

  .modal-content {
    padding: 20px 16px;
    max-height: 95vh;
    border-radius: var(--radius);
  }

  .foto-principal-modal {
    height: 180px;
  }

  .miniaturas-container img {
    width: 44px;
    height: 44px;
  }

  #modal-nome {
    font-size: 17px;
  }

  #modal-preco {
    font-size: 22px;
  }

  .btn-whatsapp-flutuante {
    width: 54px;
    height: 54px;
    font-size: 26px;
    bottom: 80px;
    right: 12px;
  }

  .btn-topo {
    width: 44px;
    height: 44px;
    font-size: 16px;
    bottom: 142px;
    right: 12px;
  }

  .rodape-loja {
    padding: 28px 16px 24px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .btn-social {
    padding: 8px 14px;
    font-size: 12px;
  }

  .item-carrinho img {
    width: 40px;
    height: 40px;
  }

  .item-carrinho-info h4 {
    font-size: 13px;
  }

  .secao-destaque,
  .secao-categoria {
    margin: 16px auto;
    padding: 0 12px;
  }

  .secao-titulo h2 {
    font-size: 17px;
  }

  .carrossel-track-produtos .produto-card {
    flex: 0 0 170px;
  }

  .seta-carrossel {
    opacity: 0.9;
    width: 44px;
    height: 44px;
    font-size: 24px;
    background: rgba(255,255,255,0.95);
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  }

  .seta-carrossel.prev {
    left: 4px;
  }

  .seta-carrossel.next {
    right: 4px;
  }

  .carrossel-track-produtos {
    padding-left: 20px;
    padding-right: 20px;
  }

  .pagamentos-icons {
    font-size: 24px;
    gap: 8px;
  }
}

@media (max-width: 480px) {
  .header-main {
    padding: 4px 8px;
    gap: 6px;
    height: 48px;
  }

  .logo {
    max-width: 110px;
    max-height: 42px;
  }

  .container-pesquisa {
    height: 36px;
    min-width: 40px;
  }

  #input-pesquisa {
    font-size: 14px;
    padding: 0 10px;
  }

  .btn-pesquisa {
    padding: 0 10px;
    font-size: 14px;
  }

  .header-cart-btn {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }

  .vitrine-grid {
    gap: 6px;
    padding: 6px;
  }

  .produto-preco {
    font-size: 17px;
  }

  .produto-nome {
    font-size: 12px;
    -webkit-line-clamp: 2;
  }

  .produto-info {
    padding: 6px 8px 10px;
  }

  .btn-compra {
    padding: 8px 6px;
    font-size: 12px;
  }

  .btn-detalhes {
    padding: 8px 6px;
    font-size: 12px;
  }

  .produto-badge {
    font-size: 9px;
    padding: 2px 5px;
  }

  .produto-badge-desconto {
    top: 3px;
    right: 3px;
    left: auto;
  }

  .produto-imagem {
    padding: 6px;
  }

  .carrossel-track {
    aspect-ratio: 16 / 9;
    min-height: 100px;
  }

  .carrossel-indicadores {
    padding: 8px;
  }

  .dot {
    width: 8px;
    height: 8px;
  }

  .header-bottom {
    top: auto;
    position: relative;
  }

  .menu-categorias button.btn-menu-cat {
    font-size: 12px;
    padding: 10px 12px;
    min-height: 44px;
  }

  .vitrine-grid {
    gap: 5px;
    padding: 5px;
  }

  .footer-grid {
    gap: 20px;
  }

  .secao-destaque,
  .secao-categoria {
    margin: 10px auto;
    padding: 0 8px;
  }

  .secao-titulo h2 {
    font-size: 15px;
  }

  .carrossel-track-produtos {
    gap: 10px;
  }

  .carrossel-track-produtos .produto-card {
    flex: 0 0 150px;
  }

  .seta-carrossel {
    width: 40px;
    height: 40px;
    font-size: 22px;
  }

  .btn-whatsapp-flutuante {
    width: 48px;
    height: 48px;
    font-size: 22px;
    bottom: 16px;
    right: 10px;
  }

  .btn-topo {
    display: none;
  }

  .pagamentos-icons {
    font-size: 20px;
    gap: 6px;
  }

  .avisos-bar {
    font-size: 12px;
    padding: 6px 12px;
    min-height: 30px;
  }
}

/* Garantir que modais funcionem no mobile */
@media (max-height: 600px) {
  .modal-content {
    padding: 16px;
    max-height: 98vh;
  }

  .foto-principal-modal {
    height: 160px;
  }

  .miniaturas-container img {
    width: 36px;
    height: 36px;
  }
}

/* =========================================
   NOVA MELHORIA: MODAL BOTTOM-SHEET MOBILE
   ========================================= */
@media (max-width: 768px) {
  .modal-overlay {
    align-items: flex-end;
    padding: 12px;
  }

  .modal-overlay.aberto {
    animation: modalFadeIn 0.2s ease;
  }

  .modal-content {
    border-radius: 12px 12px 0 0;
    max-height: 75vh;
    max-width: 100%;
    width: 100%;
    padding: 0;
    animation: slideUp 0.3s ease;
    display: flex;
    flex-direction: column;
  }

  .modal-mobile-header {
    display: flex;
    justify-content: flex-end;
    padding: 8px 12px 0;
    flex-shrink: 0;
  }

  .modal-mobile-body {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    flex: 1;
    padding: 0 16px 24px;
  }

  .btn-fechar-modal {
    position: static;
    width: 44px;
    height: 44px;
    font-size: 24px;
    background: rgba(0,0,0,0.08);
    color: var(--text);
    box-shadow: 0 1px 3px rgba(0,0,0,0.12);
  }

  .modal-mobile-body h2 {
    padding-right: 40px;
  }
}

/* =========================================
   NOVA MELHORIA: DROPDOWN MOBILE (FIXED)
   ========================================= */
@media (max-width: 768px) {
  .dropdown-cat.ativo .dropdown-content {
    position: fixed;
    margin-top: 0;
    min-width: 200px;
    max-width: 280px;
    z-index: 3000;
    max-height: 50vh;
    overflow-y: auto;
  }

  .dropdown-sub.ativo-sub .dropdown-content-sub {
    display: block;
    position: fixed;
    z-index: 3001;
    min-width: 200px;
    max-width: 280px;
    max-height: 40vh;
    overflow-y: auto;
    margin-left: 0;
  }
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}
