/* ==========================================================================
   LOJA VIRTUAL MF TECNOLOGIA - ESTILOS PRINCIPAIS
   Design Moderno, Responsivo, Dinâmico e Profissional para Equipamentos em Aço Inox
   ========================================================================== */

:root {
  --primary: #162669;
  --primary-dark: #0f1a4a;
  --primary-light: #20358e;
  --action: #0052f2;
  --action-hover: #003ecb;
  --accent: #ff7a00;
  --accent-hover: #e66e00;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --bg-body: #f8fafc;
  --bg-card: #ffffff;
  --border-color: #e2e8f0;
  --border-focus: #3b82f6;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(22, 38, 105, 0.08);
  --shadow-lg: 0 10px 25px rgba(22, 38, 105, 0.12);
  --shadow-xl: 0 20px 35px rgba(22, 38, 105, 0.18);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

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

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

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

/* --------------------------------------------------------------------------
   1. TOPO DE AVISOS / ATENDIMENTO
   -------------------------------------------------------------------------- */
.top-bar {
  background-color: #0b143a;
  color: #cbd5e1;
  font-size: 12px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-bar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.top-bar-left, .top-bar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.top-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.top-item i {
  color: var(--accent);
}

.top-badge {
  background-color: #ffcc00;
  color: #1e293b;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 11px;
}

/* --------------------------------------------------------------------------
   2. HEADER PRINCIPAL
   -------------------------------------------------------------------------- */
.main-header {
  background-color: #5b6695;
  color: #ffffff;
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.header-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

/* Logo */
.logo-container {
  display: flex;
  align-items: center;
  min-width: 220px;
}

.logo-container img {
  height: var(--logo-custom-height, 52px);
  width: var(--logo-custom-width, auto);
  max-width: 100%;
  object-fit: contain;
  transition: height 0.2s ease, width 0.2s ease;
}

/* Busca ao Vivo com Dropdown */
.search-wrapper {
  flex: 1;
  max-width: 580px;
  position: relative;
}

.search-form {
  display: flex;
  position: relative;
  width: 100%;
}

.search-input {
  width: 100%;
  padding: 12px 50px 12px 18px;
  border-radius: var(--radius-full);
  border: 2px solid transparent;
  background-color: #ffffff;
  color: var(--text-main);
  font-size: 14px;
  outline: none;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.search-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 122, 0, 0.25);
}

.search-btn {
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  background-color: #5b6695;
  color: #ffffff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.search-btn:hover {
  background-color: var(--action);
}

/* Resultados da Busca em Tempo Real */
.live-search-results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 100%;
  background: #ffffff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border-color);
  max-height: 420px;
  overflow-y: auto;
  z-index: 1200;
  display: none;
}

.live-search-results.active {
  display: block;
  animation: fadeInDown 0.2s ease;
}

.search-result-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition);
  color: var(--text-main);
}

.search-result-item:hover {
  background-color: #f1f5f9;
}

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

.search-result-thumb {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  background: #f1f5f9;
}

.search-result-info {
  flex: 1;
}

.search-result-title {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
}

.search-result-price {
  font-size: 14px;
  font-weight: 700;
  color: var(--action);
  margin-top: 2px;
}

/* Ações do Header (Conta, Painel, Carrinho) */
.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.account-link, .admin-link {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  cursor: pointer;
  padding: 6px 12px;
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.account-link:hover, .admin-link:hover {
  background-color: rgba(255, 255, 255, 0.12);
}

.account-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.account-text {
  display: flex;
  flex-direction: column;
  font-size: 12px;
  line-height: 1.2;
}

.account-text strong {
  font-size: 13px;
}

/* Botão Carrinho */
.cart-trigger-btn {
  background-color: var(--action);
  color: #ffffff;
  border: none;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
}

.cart-trigger-btn:hover {
  background-color: var(--action-hover);
  transform: translateY(-1px);
}

.cart-badge {
  background-color: var(--accent);
  color: #ffffff;
  min-width: 22px;
  height: 22px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  padding: 0 4px;
}

/* Botão Hambúrguer Mobile */
.mobile-nav-toggle {
  display: none;
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 24px;
  cursor: pointer;
}

/* --------------------------------------------------------------------------
   3. MEGA MENU E NAVEGAÇÃO HORIZONTAL
   -------------------------------------------------------------------------- */
.main-navigation {
  background-color: var(--primary-dark);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-list {
  display: flex;
  list-style: none;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: block;
  padding: 12px 16px;
  color: #e2e8f0;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  transition: var(--transition);
  white-space: nowrap;
}

.nav-link:hover, .nav-item.active .nav-link {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.08);
}

.nav-link.highlight {
  color: var(--accent);
}

/* --------------------------------------------------------------------------
   4. HERO BANNER COM DESTAQUE E SLIDER
   -------------------------------------------------------------------------- */
.hero-section {
  position: relative;
  background: linear-gradient(135deg, #101c4e 0%, #5b6695 50%, #0c1742 100%);
  color: #ffffff;
  overflow: hidden;
  padding: 48px 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 40px;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 122, 0, 0.2);
  color: var(--accent);
  border: 1px solid rgba(255, 122, 0, 0.4);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 18px;
}

.hero-title {
  font-size: 38px;
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 18px;
}

.hero-title span {
  color: var(--accent);
}

.hero-desc {
  font-size: 16px;
  color: #cbd5e1;
  margin-bottom: 28px;
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

.btn-primary {
  background-color: var(--accent);
  color: #ffffff;
}

.btn-primary:hover {
  background-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 122, 0, 0.35);
}

.btn-outline {
  background: transparent;
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.4);
}

.btn-outline:hover {
  background: #ffffff;
  color: var(--primary);
  border-color: #ffffff;
}

.hero-visual {
  position: relative;
}

.hero-banner-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  border: 2px solid rgba(255, 255, 255, 0.1);
  height: 340px;
  background: #0f172a;
}

.hero-slider-track {
  width: 100%;
  height: 100%;
  position: relative;
}

.hero-slider-track img,
.hero-banner-card img.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.8s ease-in-out, transform 0.6s ease;
  pointer-events: none;
}

.hero-slider-track img.active,
.hero-banner-card img.hero-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.hero-banner-card:hover .hero-slider-track img.active,
.hero-banner-card:hover img.hero-slide.active {
  transform: scale(1.04);
}

.hero-card-badge {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background: rgba(16, 28, 78, 0.92);
  backdrop-filter: blur(8px);
  padding: 12px 18px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.15);
  z-index: 5;
  transition: opacity 0.25s ease;
  line-height: 1.35;
}

.hero-card-badge strong {
  display: block;
  color: #ffffff;
  font-size: 15px;
}

.hero-card-badge span {
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
}

.hero-slider-dots {
  position: absolute;
  bottom: 20px;
  right: 20px;
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 6;
}

.hero-slider-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.hero-slider-dot.active {
  background: #ffcc00;
  width: 22px;
  border-radius: 5px;
}

/* --------------------------------------------------------------------------
   5. FAIXA DE BENEFÍCIOS (CONFIANÇA E VANTAGENS)
   -------------------------------------------------------------------------- */
.benefits-section {
  background-color: #ffffff;
  padding: 24px 0;
  border-bottom: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

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

.benefit-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px;
}

.benefit-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: #eff6ff;
  color: var(--action);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.benefit-info h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 2px;
}

.benefit-info p {
  font-size: 12px;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   6. CARROSSEL / CATEGORIAS POPULARES
   -------------------------------------------------------------------------- */
.categories-section {
  padding: 40px 0 20px;
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 14px;
}

.section-title {
  font-size: 26px;
  font-weight: 800;
  color: var(--primary);
  position: relative;
  padding-left: 14px;
}

.section-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 5px;
  background-color: var(--accent);
  border-radius: var(--radius-full);
}

.category-chips {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: thin;
}

.chip-btn {
  background: #ffffff;
  color: var(--text-main);
  border: 1px solid var(--border-color);
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition);
}

.chip-btn:hover, .chip-btn.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

/* --------------------------------------------------------------------------
   7. GRADE DE PRODUTOS
   -------------------------------------------------------------------------- */
.products-section {
  padding: 20px 0 60px;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 24px;
}

.product-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  position: relative;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: #cbd5e1;
}

.product-thumb-wrapper {
  position: relative;
  padding-top: 75%; /* Proporção 4:3 */
  overflow: hidden;
  background: #f8fafc;
}

.product-thumb {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.product-card:hover .product-thumb {
  transform: scale(1.06);
}

.product-badges {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  z-index: 2;
}

.badge-tag {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
}

.badge-tag.promo {
  background-color: var(--accent);
  color: #ffffff;
}

.badge-tag.pronta-entrega {
  background-color: #10b981;
  color: #ffffff;
}

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

.product-category {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.product-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.35;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 38px;
}

.product-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #f59e0b;
  font-size: 12px;
  margin-bottom: 12px;
}

.product-rating span {
  color: var(--text-muted);
  font-size: 11px;
  margin-left: 4px;
}

.product-pricing {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px dashed var(--border-color);
}

.old-price {
  font-size: 12px;
  color: var(--text-muted);
  text-decoration: line-through;
}

.current-price {
  font-size: 20px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.1;
}

.installments-info {
  font-size: 11px;
  color: #059669;
  font-weight: 600;
  margin-top: 3px;
  margin-bottom: 14px;
}

.product-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.btn-buy {
  background-color: var(--action);
  color: #ffffff;
  border: none;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: var(--transition);
}

.btn-buy:hover {
  background-color: var(--action-hover);
}

.btn-quick-view {
  background: #f1f5f9;
  color: var(--text-main);
  border: 1px solid var(--border-color);
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

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

/* --------------------------------------------------------------------------
   8. MODAL DE DETALHES DO PRODUTO E CÁLCULO DE FRETE CORREIOS
   -------------------------------------------------------------------------- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(11, 20, 58, 0.7);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.active {
  display: flex;
  animation: fadeIn 0.2s ease;
}

.product-modal-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 30px;
  padding: 30px;
}

.modal-close-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  background: #f1f5f9;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
  color: var(--text-main);
  transition: var(--transition);
}

.modal-close-btn:hover {
  background: #fee2e2;
  color: #ef4444;
}

.modal-product-img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  border-radius: var(--radius-md);
}

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

.modal-sku {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.modal-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 12px;
  line-height: 1.25;
}

.modal-desc {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 18px;
  line-height: 1.5;
}

/* Calculadora de Frete Correios Embutida */
.shipping-calc-box {
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 20px;
}

.shipping-calc-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.shipping-form {
  display: flex;
  gap: 8px;
}

.cep-input {
  flex: 1;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  font-size: 14px;
}

.shipping-results {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.shipping-option-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: #ffffff;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  font-size: 13px;
}

.shipping-option-name {
  font-weight: 600;
}

.shipping-option-prazo {
  font-size: 11px;
  color: var(--text-muted);
}

.shipping-option-val {
  font-weight: 800;
  color: var(--primary);
}

/* --------------------------------------------------------------------------
   9. GAVETA DO CARRINHO (SLIDE-OVER DRAWER)
   -------------------------------------------------------------------------- */
.cart-drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(11, 20, 58, 0.6);
  backdrop-filter: blur(3px);
  z-index: 3000;
  display: none;
}

.cart-drawer-overlay.active {
  display: block;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: -420px;
  width: 420px;
  max-width: 100%;
  height: 100%;
  background: #ffffff;
  z-index: 3100;
  box-shadow: -5px 0 25px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cart-drawer.active {
  right: 0;
}

.cart-drawer-header {
  padding: 20px;
  background: var(--primary);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cart-drawer-header h3 {
  font-size: 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}

.cart-drawer-close {
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 20px;
  cursor: pointer;
}

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

.cart-item {
  display: flex;
  gap: 14px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
}

.cart-item-img {
  width: 70px;
  height: 70px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  background: #f1f5f9;
}

.cart-item-info {
  flex: 1;
}

.cart-item-title {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 6px;
}

.cart-item-price {
  font-size: 14px;
  font-weight: 800;
  color: var(--primary);
}

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

.qty-btn {
  width: 26px;
  height: 26px;
  border-radius: var(--radius-sm);
  background: #f1f5f9;
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-weight: 700;
}

.cart-drawer-footer {
  padding: 20px;
  background: #f8fafc;
  border-top: 1px solid var(--border-color);
}

.cart-summary-line {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  margin-bottom: 8px;
  color: var(--text-muted);
}

.cart-summary-line.total {
  font-size: 18px;
  font-weight: 800;
  color: var(--primary);
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--border-color);
}

.cart-checkout-btn {
  width: 100%;
  margin-top: 16px;
  padding: 14px;
  background: #10b981;
  color: #ffffff;
  border: none;
  border-radius: var(--radius-md);
  font-weight: 800;
  font-size: 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition);
}

.cart-checkout-btn:hover {
  background: #059669;
}

/* --------------------------------------------------------------------------
   10. BOTÃO FLUTUANTE DE SUPORTE POR WHATSAPP
   -------------------------------------------------------------------------- */
.whatsapp-floating-container {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 1500;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.whatsapp-popup-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border-color);
  width: 310px;
  margin-bottom: 12px;
  overflow: hidden;
  animation: slideUp 0.3s ease;
  display: none;
}

.whatsapp-popup-card.active {
  display: block;
}

.whatsapp-popup-header {
  background: #075e54;
  color: #ffffff;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.whatsapp-avatar {
  display: flex;
  align-items: center;
  gap: 10px;
}

.whatsapp-avatar-img {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: #ffffff;
  padding: 2px;
}

.whatsapp-agent-info h5 {
  font-size: 14px;
  font-weight: 700;
}

.whatsapp-agent-info span {
  font-size: 11px;
  color: #a7f3d0;
}

.whatsapp-popup-close {
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 16px;
  cursor: pointer;
}

.whatsapp-popup-body {
  padding: 16px;
  background: #ece5dd;
}

.whatsapp-bubble {
  background: #ffffff;
  border-radius: 0 var(--radius-md) var(--radius-md) var(--radius-md);
  padding: 12px;
  font-size: 13px;
  line-height: 1.4;
  color: var(--text-main);
  box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.whatsapp-start-btn {
  display: block;
  margin-top: 12px;
  background: #25d366;
  color: #ffffff;
  text-align: center;
  padding: 10px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 13px;
  box-shadow: 0 2px 6px rgba(37, 211, 102, 0.4);
}

.whatsapp-btn-main {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-full);
  background: #25d366;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.45);
  cursor: pointer;
  position: relative;
  transition: var(--transition);
}

.whatsapp-btn-main:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

/* Efeito de Onda Pulsante */
.whatsapp-btn-main::after {
  content: '';
  position: absolute;
  top: -6px;
  left: -6px;
  right: -6px;
  bottom: -6px;
  border-radius: var(--radius-full);
  border: 2px solid #25d366;
  animation: pulseRipple 1.8s infinite;
  opacity: 0.8;
}

/* --------------------------------------------------------------------------
   11. RODAPÉ INSTITUCIONAL
   -------------------------------------------------------------------------- */
.main-footer {
  background-color: #0b143a;
  color: #cbd5e1;
  padding-top: 60px;
  border-top: 3px solid var(--accent);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-col h4 {
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 8px;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 32px;
  height: 2px;
  background-color: var(--accent);
}

.footer-about p {
  font-size: 13px;
  line-height: 1.6;
  margin-bottom: 16px;
  color: #94a3b8;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  font-size: 13px;
  color: #cbd5e1;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--accent);
  padding-left: 4px;
}

.footer-contact-item {
  display: flex;
  gap: 12px;
  font-size: 13px;
  margin-bottom: 14px;
  color: #cbd5e1;
}

.footer-contact-item i {
  color: var(--accent);
  margin-top: 3px;
}

/* Selos e Formas de Pagamento */
.footer-badges-bar {
  background: #5b6695;
  padding: 24px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.badges-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.payment-methods-title, .security-title {
  font-size: 12px;
  text-transform: uppercase;
  color: #ffffff;
  font-weight: 700;
  margin-bottom: 8px;
}

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

.pay-pill {
  background: #ffffff;
  color: #1e293b;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.pay-pill.pix {
  background: #00b4d8;
  color: #ffffff;
}

.pay-pill.mp {
  background: #009ee3;
  color: #ffffff;
}

.footer-bottom {
  padding: 24px 0;
  text-align: center;
  font-size: 12px;
  color: #64748b;
}

/* --------------------------------------------------------------------------
   12. ANIMAÇÕES E RESPONSIVIDADE MOBILE
   -------------------------------------------------------------------------- */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

@keyframes slideUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulseRipple {
  0% { transform: scale(1); opacity: 0.8; }
  70% { transform: scale(1.35); opacity: 0; }
  100% { transform: scale(1.35); opacity: 0; }
}

@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .product-modal-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .mobile-nav-toggle {
    display: block;
  }
  .main-navigation {
    display: none; /* acionado via drawer mobile */
  }
  .account-text {
    display: none;
  }
  .logo-container img {
    height: 42px;
  }
  .hero-title {
    font-size: 28px;
  }
  .benefits-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .top-bar-content {
    justify-content: center;
    text-align: center;
  }
  .whatsapp-floating-container {
    bottom: 18px;
    right: 18px;
  }
  .whatsapp-popup-card {
    width: 280px;
  }
}
