/* ==========================================================================
   Phonetech Mobile Store - CSS Design System & Styles
   Mobile-First, Modern, Elegant with WhatsApp Green Accent (#25D366)
   ========================================================================== */

/* 1. VARIÁVEIS CSS E TOKENS DE DESIGN (DARK THEME - RED & YELLOW ACCENTS) */
:root {
  /* Cores Principais - Vermelho & Amarelo */
  --primary: #ff2a4b;           /* Vermelho Vibrante */
  --primary-hover: #d90429;     /* Vermelho Hover */
  --primary-light: rgba(255, 42, 75, 0.15); /* Fundo vermelho sutil */
  --primary-dark: #ff2a4b;
  
  --accent-yellow: #ffcc00;     /* Amarelo Elétrico / Ouro */
  --accent-yellow-hover: #e6b800;
  --accent-yellow-light: rgba(255, 204, 0, 0.15);
  
  --secondary: #f8fafc;         /* Slate 50 (Texto Claro) */
  --secondary-light: #e2e8f0;   
  
  /* Backgrounds Escuros */
  --bg-main: #0b0f19;           /* Fundo principal escuro slate */
  --bg-card: #131b2e;           /* Fundo de Cards e Modais */
  --bg-input: #1e293b;          /* Fundo de Inputs e Elementos */
  
  /* Textos */
  --text-main: #f1f5f9;         /* Texto Principal Claro */
  --text-muted: #94a3b8;        /* Texto Secundário Muted */
  --text-white: #ffffff;        /* Texto Branco */
  
  /* Badges & Alertas */
  --danger: #ff2a4b;            /* Promoção / Desconto (Vermelho) */
  --warning: #ffcc00;           /* Destaque / Estrelas (Amarelo) */
  --info: #3b82f6;              /* Informação */
  --purple: #a855f7;            /* Lançamento / IA */
  
  /* Bordas e Sombras Escuras com Brilho Vermelho & Amarelo */
  --border-color: #1e293b;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 20px rgba(255, 42, 75, 0.45);
  --shadow-glow-yellow: 0 0 20px rgba(255, 204, 0, 0.45);

  /* Fontes & Transições */
  --font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 2. RESET E ESTILOS BASE */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.5;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  font-size: inherit;
}

input, select, textarea {
  font-family: inherit;
  font-size: 1rem;
  border: none;
  outline: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Icons */
.icon {
  width: 24px;
  height: 24px;
}

/* 3. PRELOADER */
.preloader {
  position: fixed;
  inset: 0;
  background: #0b0f19;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-content {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.preloader-content .logo-icon {
  font-size: 3rem;
  animation: pulse-icon 1.5s infinite alternate;
}

.preloader-content .logo-title {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--secondary);
}

.preloader-content .logo-title span {
  color: var(--primary);
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid var(--border-color);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-top: 8px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes pulse-icon {
  from { transform: scale(0.95); }
  to { transform: scale(1.1); }
}

/* 4. CABEÇALHO & ANÚNCIO (HEADER STICKY & GLASSMORPHISM) */
.announcement-bar {
  background: var(--accent-yellow);
  color: #0b0f19;
  text-align: center;
  padding: 8px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  z-index: 1001;
  position: relative;
}

.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(11, 15, 25, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-sm);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  gap: 16px;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mobile-menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  color: var(--secondary);
  background: var(--bg-input);
  transition: var(--transition-fast);
}

.mobile-menu-btn:hover {
  background: var(--border-color);
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-logo-img {
  max-height: 48px;
  width: auto;
  object-fit: contain;
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
}

.brand-logo:hover .brand-logo-img {
  transform: scale(1.04);
}

.preloader-logo-img {
  max-height: 80px;
  width: auto;
  object-fit: contain;
  margin-bottom: 8px;
  animation: pulse-icon 1.5s infinite alternate;
}

.logo-badge {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: var(--shadow-glow);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  display: none !important;
}

.brand-tagline {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent-yellow);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Busca Desktop */
.header-search {
  flex: 1;
  max-width: 480px;
  display: none; /* Ativado via media query em telas maiores */
}

.search-box {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: 14px;
  width: 18px;
  height: 18px;
  color: var(--text-muted);
  pointer-events: none;
}

.search-box input {
  width: 100%;
  height: 44px;
  padding: 0 40px;
  background: var(--bg-input);
  border: 1px solid transparent;
  border-radius: var(--radius-full);
  color: var(--text-main);
  font-weight: 500;
  transition: var(--transition-fast);
}

.search-box input:focus {
  background: #131b2e;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255, 42, 75, 0.25);
}

.search-clear-btn {
  position: absolute;
  right: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
}

/* Carrinho Button */
.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cart-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #ff2a4b, #d90429);
  color: #ffffff;
  padding: 8px 16px 8px 12px;
  border-radius: var(--radius-full);
  font-weight: 800;
  transition: var(--transition-fast);
  box-shadow: var(--shadow-glow);
}

.cart-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 24px rgba(255, 42, 75, 0.6);
}

.cart-icon-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.cart-badge {
  position: absolute;
  top: -8px;
  right: -10px;
  background: var(--accent-yellow);
  color: #0b0f19;
  font-size: 0.75rem;
  font-weight: 800;
  min-width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2px;
  border: 2px solid #ff2a4b;
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.cart-badge.bump {
  transform: scale(1.3);
}

.cart-btn-label {
  font-size: 0.9rem;
  display: none; /* Exibido em telas maiores */
}

/* Busca Mobile Bar */
.mobile-search-bar {
  padding-bottom: 12px;
  display: block;
}

/* 5. DRAWER DE NAVEGAÇÃO MOBILE */
.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 1100;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-normal);
}

.mobile-nav-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-nav-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 82%;
  max-width: 320px;
  background: var(--bg-card);
  z-index: 1101;
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
}

.mobile-nav-drawer.active {
  transform: translateX(0);
}

.mobile-nav-header {
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-color);
}

.close-drawer-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-input);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}

.mobile-nav-body {
  padding: 20px;
  overflow-y: auto;
  flex: 1;
}

.nav-title {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}

.mobile-menu-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mobile-menu-list a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  font-weight: 600;
  color: var(--text-main);
  transition: var(--transition-fast);
}

.mobile-menu-list a:hover {
  background: var(--primary-light);
  color: var(--primary-dark);
}

.mobile-menu-list a.highlight-item {
  background: #fef2f2;
  color: var(--danger);
}

.nav-divider {
  border: none;
  border-top: 1px solid var(--border-color);
  margin: 20px 0;
}

.mobile-contact-info {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* 6. HERO BANNER SLIDER AUTOMÁTICO */
.banner-section {
  padding: 20px 0;
}

.slider-container {
  position: relative;
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(135deg, #0f172a, #1e293b);
  box-shadow: var(--shadow-md);
}

.slider-wrapper {
  display: flex;
  transition: transform 0.5s ease-in-out;
  width: 100%;
}

.slide {
  min-width: 100%;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  padding: 32px 24px;
  color: var(--text-white);
  gap: 24px;
}

.slide-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  z-index: 2;
}

.slide-tag {
  display: inline-block;
  padding: 4px 12px;
  background: var(--primary);
  color: var(--secondary);
  font-size: 0.75rem;
  font-weight: 800;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.slide-tag.tag-purple {
  background: var(--purple);
  color: #fff;
}

.slide-tag.tag-orange {
  background: var(--warning);
  color: #000;
}

.slide-title {
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.5px;
}

.slide-desc {
  font-size: 0.95rem;
  color: #94a3b8;
  max-width: 480px;
  white-space: pre-wrap;
  word-break: break-word;
}

.slide-price-tag {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  margin: 6px 0 10px 0;
}

.old-price {
  font-size: 0.9rem;
  text-decoration: line-through;
  color: #64748b;
}

.new-price {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
}

.installment {
  font-size: 0.8rem;
  color: #ff8597;
  font-weight: 700;
  display: inline-block;
  background: rgba(255, 42, 75, 0.15);
  padding: 4px 8px;
  border-radius: 4px;
  width: fit-content;
  margin-top: 4px;
}

.slide-image {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.slide-image img {
  max-height: 240px;
  object-fit: contain;
  filter: drop-shadow(0 15px 25px rgba(0,0,0,0.5));
  transition: transform 0.3s ease;
}

.slide:hover .slide-image img {
  transform: scale(1.05);
}

.img-glow {
  position: absolute;
  width: 180px;
  height: 180px;
  background: var(--primary);
  opacity: 0.15;
  filter: blur(50px);
  border-radius: 50%;
}

/* Controles do Slider */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(4px);
  color: #fff;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
  z-index: 5;
}

.slider-arrow:hover {
  background: rgba(255, 255, 255, 0.3);
}

.slider-arrow.prev { left: 12px; }
.slider-arrow.next { right: 12px; }

.slider-dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 5;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: var(--transition-fast);
}

.dot.active {
  width: 28px;
  border-radius: var(--radius-full);
  background: var(--primary);
}

/* 7. BOTÕES GERAIS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  font-weight: 700;
  text-align: center;
  transition: var(--transition-fast);
  user-select: none;
}

.btn-primary {
  background: var(--primary);
  color: var(--secondary);
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.3);
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.btn-outline {
  border: 1px solid var(--border-color);
  background: transparent;
  color: var(--text-main);
}

.btn-outline:hover {
  background: var(--bg-input);
  border-color: var(--text-muted);
}

.btn-lg {
  padding: 14px 28px;
  font-size: 1rem;
}

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

.btn-block {
  width: 100%;
}

.btn-whatsapp-checkout {
  background: #25D366;
  color: #0b0f19;
  font-weight: 800;
  font-size: 1.05rem;
  padding: 16px 20px;
  border-radius: var(--radius-md);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  border: none;
}

.btn-whatsapp-checkout:hover {
  background: #1eaa53;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(37, 211, 102, 0.55);
}

.whatsapp-icon {
  width: 22px;
  height: 22px;
}

/* 8. CATEGORIAS (CARDS & HORIZONTAL SCROLL) */
.categories-section {
  padding: 28px 0;
}

.categories-section .section-header {
  text-align: center;
  margin-bottom: 20px;
}

.section-title {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--secondary);
}

.section-subtitle {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.categories-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  padding-bottom: 8px;
}

.categories-grid::-webkit-scrollbar {
  height: 4px;
}

.categories-grid::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: var(--radius-full);
}

.category-card {
  min-width: 110px;
  scroll-snap-align: start;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  transition: var(--transition-fast);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}

.category-card:hover {
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.category-card.active {
  background: linear-gradient(135deg, #ff2a4b, #c9184a);
  border-color: #ff2a4b;
  color: #ffffff;
  box-shadow: var(--shadow-glow);
}

.category-card.active .category-name {
  color: #ffffff;
}

.category-card.active .category-count {
  color: var(--accent-yellow);
  font-weight: 800;
}

.category-card.promo-card {
  background: rgba(255, 204, 0, 0.12);
  border-color: rgba(255, 204, 0, 0.35);
  color: var(--accent-yellow);
}

.category-card.promo-card.active {
  background: var(--danger);
  color: #fff;
}

.category-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
}

.category-svg {
  width: 28px;
  height: 28px;
  stroke: var(--text-main);
  transition: var(--transition-fast);
}

.category-card:hover .category-svg {
  stroke: var(--primary);
  transform: scale(1.1);
}

.category-card.active .category-svg {
  stroke: #ffffff;
}

.category-card.promo-card .category-svg {
  stroke: var(--accent-yellow);
}

.menu-icon-svg {
  width: 18px;
  height: 18px;
  stroke: var(--primary);
}

.feature-svg {
  width: 26px;
  height: 26px;
  stroke: var(--primary);
}

.category-name {
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.2;
  color: #ffffff;
}

.category-count {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* 9. SEÇÃO DE PRODUTOS & FILTROS */
.products-section {
  padding: 32px 0 60px 0;
}

.products-controls-bar {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.controls-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.products-counter-badge {
  font-size: 0.8rem;
  font-weight: 600;
  background: var(--primary-light);
  color: var(--primary-dark);
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.controls-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.sort-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
}

.sort-wrapper select {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 8px 12px;
  border-radius: var(--radius-md);
  font-weight: 700;
  color: var(--secondary);
  cursor: pointer;
}

/* Grade de Cards de Produtos */
.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2 Colunas no Mobile */
  gap: 14px;
}

/* Card de Produto */
.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: var(--transition-normal);
  box-shadow: var(--shadow-sm);
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(37, 211, 102, 0.4);
}

.product-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.admin-table .product-badge {
  position: static;
  display: inline-block;
  white-space: nowrap;
}

.badge-promo { background: var(--danger); color: #fff; }
.badge-destaque { background: var(--purple); color: #fff; }
.badge-novo { background: #25D366; color: #0b0f19; }
.badge-mais-vendido { background: var(--accent-yellow); color: #0b0f19; }

.product-img-wrapper {
  position: relative;
  width: 100%;
  padding-top: 85%; /* Proporção 1:1 aproximada */
  background: #0f172a;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-img-wrapper img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 82%;
  max-height: 82%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.product-card:hover .product-img-wrapper img {
  transform: translate(-50%, -50%) scale(1.08);
}

.quick-view-btn {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(19, 27, 46, 0.85);
  backdrop-filter: blur(4px);
  border: 1px solid var(--border-color);
  color: #f1f5f9;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-fast);
}

.quick-view-btn:hover {
  background: var(--primary);
  color: #0b0f19;
  border-color: var(--primary);
}

.quick-view-svg {
  width: 18px;
  height: 18px;
  stroke: #ffffff;
  transition: var(--transition-fast);
}

.quick-view-btn:hover .quick-view-svg {
  stroke: #0b0f19;
}

.product-content {
  padding: 12px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-category-tag {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.product-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--secondary);
  line-height: 1.25;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 2.5em;
}

.product-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  color: var(--accent-yellow);
  margin-bottom: 8px;
}

.rating-count {
  color: var(--text-muted);
  font-weight: 600;
}

.product-prices {
  margin-top: auto;
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
}

.price-old {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
  text-decoration: line-through;
  display: block;
  margin-bottom: 2px;
}

.price-current {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--accent-yellow);
  line-height: 1;
}

.price-installment {
  font-size: 0.7rem;
  color: #ff8597;
  font-weight: 700;
  display: inline-block;
  background: rgba(255, 42, 75, 0.15);
  padding: 3px 6px;
  border-radius: 4px;
  width: fit-content;
  margin-top: 6px;
}

.add-to-cart-btn {
  width: 100%;
  background: linear-gradient(135deg, #ff2a4b, #d90429);
  color: #ffffff;
  border: none;
  padding: 10px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: var(--transition-fast);
}

.add-to-cart-btn:hover {
  background: linear-gradient(135deg, #e01e37, #b7094c);
  color: var(--accent-yellow);
  box-shadow: var(--shadow-glow);
}

.add-to-cart-btn .btn-icon {
  width: 16px;
  height: 16px;
}

/* SKELETON LOADING */
.skeleton {
  background: linear-gradient(90deg, #1e293b 25%, #334155 50%, #1e293b 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
  border-radius: var(--radius-sm);
}

@keyframes loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.skeleton-card { height: 320px; padding: 12px; }
.skeleton-img { height: 160px; margin-bottom: 12px; border-radius: var(--radius-md); }
.skeleton-text { height: 12px; width: 40%; margin-bottom: 8px; }
.skeleton-title { height: 18px; width: 90%; margin-bottom: 12px; }
.skeleton-price { height: 22px; width: 60%; margin-bottom: 12px; }
.skeleton-btn { height: 38px; width: 100%; border-radius: var(--radius-md); }

.no-results {
  text-align: center;
  padding: 48px 16px;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px dashed var(--border-color);
  grid-column: 1 / -1;
}

.no-results-icon {
  font-size: 3rem;
  margin-bottom: 12px;
}

/* 10. FEATURES / DIFERENCIAIS */
.features-banner {
  padding: 30px 0;
  background: var(--bg-card);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 20px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 14px;
}

.feature-icon {
  width: 48px;
  height: 48px;
  background: var(--primary-light);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.feature-info h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--secondary);
}

.feature-info p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* 11. MODAL DE DETALHES DO PRODUTO */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(6px);
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-normal);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  background: var(--bg-card);
  width: 100%;
  max-width: 680px;
  max-height: 90vh;
  border-radius: var(--radius-lg);
  overflow-y: auto;
  position: relative;
  box-shadow: var(--shadow-lg);
  transform: scale(0.92);
  transition: transform 0.3s ease;
}

.modal-overlay.active .modal-card {
  transform: scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-input);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  color: var(--text-muted);
}

.modal-body-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  padding: 24px;
}

.modal-product-img {
  background: #0f172a;
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  cursor: pointer;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all var(--transition-fast);
}

.modal-product-img:hover {
  border-color: rgba(59, 130, 246, 0.4);
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.15);
}

.modal-product-img img {
  max-height: 260px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.modal-product-img:hover img {
  transform: scale(1.05);
}

.img-zoom-badge {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
  pointer-events: none;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.modal-product-img:hover .img-zoom-badge {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  transform: translateY(-2px);
}

/* MODAL DE IMAGEM EXPANDIDA (LIGHTBOX) */
.lightbox-overlay {
  z-index: 1300;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(10px);
}

.lightbox-card {
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-lg);
  max-width: 90vw;
  max-height: 92vh;
  width: auto;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  transform: scale(0.9);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.lightbox-overlay.active .lightbox-card {
  transform: scale(1);
}

.lightbox-header {
  padding: 16px 56px 12px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.lightbox-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lightbox-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: auto;
  max-height: calc(92vh - 60px);
  position: relative;
  cursor: zoom-in;
}

.lightbox-body.is-zoomed {
  cursor: zoom-out;
}

.lightbox-body img {
  max-width: 100%;
  max-height: 72vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
  transition: transform 0.3s ease;
  user-select: none;
}

.lightbox-body.is-zoomed img {
  max-width: none;
  max-height: none;
  transform: scale(1.8);
  cursor: zoom-out;
}

.lightbox-hint {
  position: absolute;
  bottom: 16px;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(6px);
  color: #94a3b8;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  gap: 6px;
  pointer-events: none;
}

.lightbox-close-btn {
  top: 10px;
  right: 10px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.lightbox-close-btn:hover {
  background: var(--danger, #ef4444);
  color: #fff;
}


.modal-product-details {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.modal-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--secondary);
}

.modal-description {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
}

.modal-specs-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 6px 0;
}

.spec-badge {
  background: var(--bg-input);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--secondary);
}

.spec-badge-highlight {
  background: var(--accent-yellow-light);
  color: var(--accent-yellow);
  border: 1px solid rgba(255, 204, 0, 0.4);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 0 10px rgba(255, 204, 0, 0.15);
}

.modal-price-box {
  background: var(--primary-light);
  padding: 14px 16px;
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

/* 12. CART DRAWER (GAVETA LATERAL DO CARRINHO) */
.cart-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 1300;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-normal);
}

.cart-drawer-overlay.active {
  opacity: 1;
  visibility: visible;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 440px;
  background: var(--bg-card);
  z-index: 1301;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
}

.cart-drawer.active {
  transform: translateX(0);
}

.cart-header {
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-color);
  background: #131b2e;
}

.cart-header-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cart-header-title h3 {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--secondary);
}

.cart-count-badge {
  font-size: 0.75rem;
  font-weight: 700;
  background: var(--primary-light);
  color: var(--primary-dark);
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.cart-items-container {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Item no Carrinho */
.cart-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-main);
  padding: 10px 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.cart-item-img {
  width: 60px;
  height: 60px;
  background: #0f172a;
  border-radius: var(--radius-sm);
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cart-item-img img {
  max-height: 100%;
  object-fit: contain;
}

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

.cart-item-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cart-item-price {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--primary-dark);
}

.cart-item-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}

.qty-btn {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  background: #1e293b;
  color: #fff;
  border: 1px solid var(--border-color);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
}

.qty-btn:hover {
  background: var(--primary);
  color: #0b0f19;
  border-color: var(--primary);
}

.qty-val {
  font-size: 0.85rem;
  font-weight: 700;
  min-width: 18px;
  text-align: center;
}

.cart-item-remove {
  color: var(--danger);
  padding: 6px;
  border-radius: 50%;
  transition: var(--transition-fast);
}

.cart-item-remove:hover {
  background: rgba(239, 68, 68, 0.15);
}

/* Carrinho Vazio State */
.empty-cart-state {
  text-align: center;
  padding: 48px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: auto;
}

.empty-cart-icon {
  font-size: 3.5rem;
}

/* Checkout Form & Financeiro */
.cart-checkout-section {
  padding: 16px 20px;
  background: #131b2e;
  border-top: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 50vh;
  overflow-y: auto;
}

.checkout-form-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.checkout-form-group label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--secondary);
}

.checkout-form-group input,
.checkout-form-group textarea {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: 0.85rem;
  color: var(--text-main);
}

.checkout-form-group input:focus,
.checkout-form-group textarea:focus {
  border-color: var(--primary);
  background: #0f172a;
}

.radio-options {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.radio-card {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 600;
}

.radio-card input[type="radio"] {
  accent-color: var(--primary-dark);
}

.badge-pix {
  background: var(--accent-yellow);
  color: #0b0f19;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 4px;
  margin-left: 4px;
}

.cart-summary {
  background: var(--bg-main);
  padding: 12px;
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.85rem;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  color: var(--text-muted);
}

.summary-row.promo-row {
  color: var(--primary-dark);
  font-weight: 700;
}

.summary-divider {
  border: none;
  border-top: 1px solid var(--border-color);
  margin: 4px 0;
}

.summary-row.total-row {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--secondary);
}

/* 13. FLOATING WHATSAPP & BACK TO TOP */
.whatsapp-float-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 56px;
  height: 56px;
  background: #25D366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
  z-index: 990;
  transition: transform 0.3s ease;
  animation: pulse-whatsapp 2s infinite;
}

.whatsapp-float-btn:hover {
  transform: scale(1.1);
}

.whatsapp-float-btn .whatsapp-icon {
  width: 32px;
  height: 32px;
}

.float-tooltip {
  position: absolute;
  right: 68px;
  background: var(--bg-card);
  color: var(--text-main);
  border: 1px solid var(--border-color);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: var(--radius-md);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translateX(10px);
  transition: var(--transition-fast);
  box-shadow: var(--shadow-md);
}

.whatsapp-float-btn:hover .float-tooltip {
  opacity: 1;
  transform: translateX(0);
}

@keyframes pulse-whatsapp {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
  70% { box-shadow: 0 0 0 14px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.back-to-top-btn {
  position: fixed;
  bottom: 86px;
  right: 24px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--bg-card);
  color: var(--text-main);
  border: 1px solid var(--border-color);
  font-weight: 800;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  z-index: 989;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-fast);
}

.back-to-top-btn.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top-btn:hover {
  background: var(--primary);
  color: #ffffff;
}

/* 14. TOAST NOTIFICATIONS (POPUP INFERIOR) */
.toast-container {
  position: fixed;
  bottom: 24px;
  left: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  background: var(--bg-card);
  color: var(--text-main);
  padding: 14px 20px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 700;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  gap: 12px;
  pointer-events: auto;
  animation: toast-in 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  border: 1px solid var(--border-color);
  border-left: 4px solid #25D366;
}

.toast.toast-error, .toast.toast-erro {
  border-left-color: var(--danger);
  background: #1c1017;
  color: #ff8597;
}

.toast.toast-info {
  border-left-color: var(--accent-yellow);
  background: #1c1b12;
  color: var(--accent-yellow);
}

.toast.toast-sucesso, .toast.toast-success {
  border-left-color: #25D366;
  background: #101d19;
  color: #79f7ab;
}

@keyframes toast-in {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 15. RODAPÉ (FOOTER) */
.footer {
  background: #070a12;
  color: #94a3b8;
  padding: 60px 0 24px 0;
  margin-top: auto;
  border-top: 1px solid var(--border-color);
}

.footer-top-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
}

.footer-heading {
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 16px;
  position: relative;
  display: inline-block;
}

.footer-heading::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 28px;
  height: 3px;
  background: var(--primary);
  border-radius: var(--radius-full);
}

.footer-desc {
  font-size: 0.88rem;
  line-height: 1.6;
  margin-top: 12px;
  color: #94a3b8;
}

.social-links {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.social-icon {
  font-size: 0.8rem;
  font-weight: 700;
  background: #1e293b;
  border: 1px solid var(--border-color);
  padding: 8px 14px;
  border-radius: var(--radius-full);
  color: #f1f5f9;
  transition: var(--transition-fast);
}

.social-icon:hover {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  box-shadow: var(--shadow-glow);
}

.footer-icon-svg {
  width: 18px;
  height: 18px;
  stroke: var(--primary);
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
  transition: var(--transition-fast);
}

.social-icon:hover .footer-icon-svg {
  stroke: #ffffff;
}

.footer-links, .footer-info-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.88rem;
}

.footer-links a {
  color: #cbd5e1;
  transition: var(--transition-fast);
}

.footer-links a:hover {
  color: var(--accent-yellow);
  transform: translateX(4px);
}

.footer-info-list li {
  color: #cbd5e1;
  line-height: 1.5;
  display: flex;
  align-items: center;
  gap: 8px;
}

.map-card-placeholder {
  background: #131b2e;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.map-icon {
  font-size: 1.8rem;
}

.map-info strong {
  color: #ffffff;
  font-size: 0.95rem;
  display: block;
}

.map-info p {
  font-size: 0.8rem;
  color: #94a3b8;
}

.map-status {
  font-size: 0.75rem;
  color: #25D366;
  font-weight: 700;
}

.map-link {
  color: #ffffff;
  margin-top: 4px;
  border-color: var(--primary);
}

.map-link:hover {
  background: var(--primary);
  color: #ffffff;
}

.footer-divider {
  border: none;
  border-top: 1px solid var(--border-color);
  margin: 40px 0 24px 0;
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
  font-size: 0.8rem;
  color: #64748b;
}

.payment-methods {
  display: flex;
  gap: 8px;
}

.pay-badge {
  background: #1e293b;
  border: 1px solid var(--border-color);
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-yellow);
}

/* ==========================================================================
   16. MEDIA QUERIES (RESPONSIVIDADE FOR TABLET & DESKTOP)
   ========================================================================== */

/* Tablet (min-width: 640px) */
@media (min-width: 640px) {
  .mobile-search-bar {
    display: none; /* Oculta barra mobile duplicada */
  }
  
  .header-search {
    display: flex; /* Exibe busca no header em telas maiores */
  }
  
  .cart-btn-label {
    display: inline;
  }
  
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
  }
  
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .slide {
    grid-template-columns: 1fr 1fr;
    padding: 40px;
  }
  
  .slide-title {
    font-size: 2.2rem;
  }
  
  .modal-body-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .footer-top-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Desktop (min-width: 1024px) */
@media (min-width: 1024px) {
  .mobile-menu-btn {
    display: none; /* Oculta hambúrguer no desktop */
  }
  
  .products-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
  }
  
  .features-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .products-controls-bar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  
  .footer-top-grid {
    grid-template-columns: 2fr 1fr 1.5fr 1.5fr;
  }
  
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

/* ==========================================================================
   17. ESTILOS DO BACK OFFICE / ADMIN (ADMIN.HTML)
   ========================================================================== */
.admin-body {
  background-color: var(--bg-main);
  color: var(--text-main);
  min-height: 100vh;
}

.admin-login-overlay {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at center, rgba(30, 41, 59, 0.95), rgba(11, 15, 25, 0.98));
  backdrop-filter: blur(12px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.admin-login-card {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 40px 32px;
  width: 100%;
  max-width: 420px;
  text-align: center;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(16px);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.admin-login-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 35px 60px -15px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.admin-input {
  width: 100%;
  padding: 14px 16px;
  background: rgba(11, 15, 25, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  transition: all 0.3s ease;
  outline: none;
}

.admin-input:focus {
  background: rgba(11, 15, 25, 0.8);
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(255, 42, 75, 0.15);
}

.admin-input::placeholder {
  color: var(--text-muted);
  font-weight: 500;
}

.admin-badge {
  background: var(--primary);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  letter-spacing: 0.5px;
}

.connection-status {
  font-size: 0.8rem;
  font-weight: 700;
  background: rgba(37, 211, 102, 0.15);
  color: #25D366;
  border: 1px solid rgba(37, 211, 102, 0.3);
  padding: 4px 12px;
  border-radius: var(--radius-full);
}

.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}

@media (min-width: 768px) {
  .admin-stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--shadow-sm);
}

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--bg-input);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.stat-info h3 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent-yellow);
  line-height: 1;
  margin-bottom: 4px;
}

.stat-info span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.admin-actions-bar {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}

@media (min-width: 768px) {
  .admin-actions-bar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.actions-right {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.admin-table-container {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow-x: auto;
  box-shadow: var(--shadow-md);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.88rem;
}

.admin-table th {
  background: #0f172a;
  color: var(--text-muted);
  padding: 14px 16px;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.75rem;
  border-bottom: 1px solid var(--border-color);
}

.admin-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-color);
  vertical-align: middle;
}

.admin-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

.admin-table-img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  background: #0f172a;
  border-radius: var(--radius-sm);
  padding: 4px;
}

.admin-table-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.image-preview-container {
  background: #0f172a;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.image-preview-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.image-preview-wrapper img {
  max-height: 140px;
  object-fit: contain;
  border-radius: var(--radius-sm);
  background: #131b2e;
  padding: 6px;
}

.preview-status-badge {
  font-size: 0.72rem;
  font-weight: 700;
  color: #25D366;
  margin-top: 6px;
}

/* SIDEBAR / MENU LATERAL ADMIN LAYOUT */
.admin-layout {
  display: flex;
  min-height: 100vh;
  background-color: var(--bg-main);
}

.admin-sidebar {
  width: 260px;
  background: #0d1322;
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 1000;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-header {
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  border-bottom: 1px solid var(--border-color);
}

.sidebar-logo-img {
  max-height: 42px;
  object-fit: contain;
}

.sidebar-badge {
  background: var(--primary);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  align-self: center;
  letter-spacing: 0.5px;
}

.sidebar-nav {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sidebar-nav-section {
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--text-muted);
  letter-spacing: 1px;
  padding: 12px 12px 4px 12px;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 600;
  transition: var(--transition-fast);
  text-align: left;
  width: 100%;
  border: none;
  background: transparent;
}

.sidebar-link:hover {
  background: var(--bg-input);
  color: var(--text-main);
}

.sidebar-link.active {
  background: var(--primary);
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(255, 42, 75, 0.35);
}

.sidebar-icon {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  flex-shrink: 0;
}

.sidebar-user-footer {
  padding: 16px;
  border-top: 1px solid var(--border-color);
  background: #090d18;
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bg-input);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.user-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.user-info strong {
  font-size: 0.88rem;
  color: var(--text-main);
}

.status-online {
  font-size: 0.7rem;
  color: #25D366;
  font-weight: 700;
}

.logout-btn {
  padding: 6px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  transition: var(--transition-fast);
  background: transparent;
  border: none;
  font-size: 1.1rem;
}

.logout-btn:hover {
  background: rgba(255, 42, 75, 0.2);
  color: var(--danger);
}

/* MAIN CONTENT AREA */
.admin-main-content {
  margin-left: 260px;
  flex: 1;
  padding: 24px 32px 60px 32px;
  min-width: 0;
}

.main-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
}

.search-admin-wrapper {
  position: relative;
  flex: 1;
  max-width: 480px;
}

.search-admin-wrapper .search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  stroke: var(--text-muted);
}

.search-admin-wrapper input {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  padding: 10px 16px 10px 42px;
  color: var(--text-main);
  font-size: 0.88rem;
}

.search-admin-wrapper input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(255, 42, 75, 0.2);
}

.mobile-toggle-btn {
  display: none;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  padding: 8px 14px;
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  color: var(--text-main);
}

@media (max-width: 991px) {
  .admin-sidebar {
    transform: translateX(-100%);
  }
  
  .admin-sidebar.mobile-open {
    transform: translateX(0);
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.8);
  }
  
  .admin-main-content {
    margin-left: 0;
    padding: 16px 16px 40px 16px;
  }
  
  .mobile-toggle-btn {
    display: block;
  }
}

.stat-svg {
  width: 26px;
  height: 26px;
  stroke: var(--accent-yellow);
}

.btn-icon-svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  display: inline-block;
  vertical-align: text-bottom;
  margin-right: 4px;
}

/* CONFIGURAÇÕES CENTRALIZADAS E ELEGANTES */
.config-wrapper-centered {
  max-width: 760px;
  margin: 0 auto;
  padding: 10px 0 40px 0;
}

.config-header-centered {
  text-align: center;
  margin-bottom: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.config-header-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255, 42, 75, 0.15);
  border: 1px solid rgba(255, 42, 75, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  color: var(--primary);
}

.config-header-icon svg {
  width: 28px;
  height: 28px;
  stroke: var(--primary);
}

.config-header-centered h2 {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 6px;
}

.config-card-centered {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px 36px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.config-section-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-color);
}

.config-section-title .btn-icon-svg {
  stroke: var(--primary);
}

.config-submit-wrapper {
  margin-top: 32px;
  display: flex;
  justify-content: center;
}

.btn-config-submit {
  padding: 14px 36px;
  font-size: 1rem;
  font-weight: 800;
  box-shadow: 0 4px 20px rgba(255, 42, 75, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-config-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(255, 42, 75, 0.5);
}

/* ==========================================================================
   OTIMIZAÇÕES RESPONSIVAS EXCLUSIVAS PARA MOBILE (< 768px & < 480px)
   ========================================================================== */
@media (max-width: 768px) {
  .header-container {
    padding: 8px 12px;
    height: 64px;
  }

  .brand-logo-img {
    max-height: 38px;
  }

  /* Banner Hero Slider Mobile Overhaul */
  .banner-section {
    padding: 12px 0 16px 0;
  }

  .slider-container {
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, #0b1329 0%, #161e33 50%, #1e293b 100%);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.08);
  }

  .slide {
    display: flex !important;
    flex-direction: column !important;
    padding: 20px 16px 44px 16px !important;
    text-align: center;
    gap: 12px;
    align-items: center;
  }

  .slide-image {
    order: -1; /* Imagem em destaque no topo no mobile */
    margin: 4px 0 8px 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .slide-image img {
    max-height: 165px;
    object-fit: contain;
    filter: drop-shadow(0 10px 18px rgba(0,0,0,0.6));
  }

  .img-glow {
    width: 140px;
    height: 140px;
    filter: blur(35px);
  }

  .slide-content {
    max-width: 100%;
    align-items: center;
    text-align: center;
    gap: 8px;
  }

  .slide-tag {
    font-size: 0.68rem;
    padding: 4px 10px;
  }

  .slide-title {
    font-size: 1.3rem;
    line-height: 1.2;
    margin: 2px 0;
    font-weight: 800;
  }

  .slide-desc {
    font-size: 0.82rem;
    line-height: 1.4;
    color: #94a3b8;
    max-width: 95%;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .slide-price-tag {
    justify-content: center;
    gap: 8px;
    margin: 2px 0 6px 0;
  }

  .new-price {
    font-size: 1.35rem;
    font-weight: 800;
  }

  .slide-cta-btn {
    width: 100%;
    justify-content: center;
    padding: 11px 18px;
    font-size: 0.88rem;
  }

  .slider-arrow {
    width: 32px;
    height: 32px;
    font-size: 0.85rem;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
  }

  .slider-arrow.prev { left: 6px; }
  .slider-arrow.next { right: 6px; }

  .slider-dots {
    bottom: 12px;
    gap: 6px;
  }

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

  .dot.active {
    width: 22px;
  }

  .config-card-centered {
    padding: 20px 16px;
  }
}

@media (max-width: 640px) {
  .categories-grid {
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding: 6px 12px 14px 12px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .categories-grid::-webkit-scrollbar {
    display: none;
  }

  .category-card {
    min-width: 96px;
    scroll-snap-align: start;
    flex-shrink: 0;
    padding: 12px 8px;
    gap: 4px;
  }

  .category-svg {
    width: 24px;
    height: 24px;
  }

  .category-name {
    font-size: 0.78rem;
  }

  .category-count {
    font-size: 0.68rem;
  }
}

@media (max-width: 576px) {
  .products-section {
    padding: 20px 0 40px 0;
  }

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

  .product-card {
    border-radius: var(--radius-md);
  }

  .product-content {
    padding: 10px 8px;
  }

  .product-title {
    font-size: 0.84rem;
    line-height: 1.25;
    height: 2.5em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    margin-bottom: 6px;
  }

  .product-prices .new-price {
    font-size: 1.05rem;
  }

  .product-prices .price-old {
    font-size: 0.75rem;
  }

  .product-installment {
    font-size: 0.68rem;
  }

  .btn-add-cart {
    padding: 10px 6px;
    font-size: 0.8rem;
    border-radius: var(--radius-sm);
  }

  .whatsapp-float-btn {
    bottom: 16px;
    right: 14px;
    width: 48px;
    height: 48px;
  }

  .back-to-top-btn {
    bottom: 74px;
    right: 14px;
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .float-tooltip {
    display: none;
  }
}

@media (max-width: 480px) {
  .cart-drawer {
    max-width: 100%;
  }

  .modal-card {
    padding: 20px 16px;
    max-width: 95%;
    margin: 10px auto;
  }
}

