/* === VARIÁVEIS CSS === */
:root {
  --bg: #f3f6fb;
  --surface: #ffffff;
  --text: #0f172a;
  --muted: rgba(15, 23, 42, 0.62);
  --border: rgba(15, 23, 42, 0.10);

  /* Paleta inspirada na logo (azul petróleo/teal + azul escuro) */
  --brand-700: #0b3a5c;
  --brand-600: #0f5b86;
  --brand-500: #117aa3;
  --brand-400: #19a4c1;

  --shadow: 0 10px 26px rgba(2, 12, 27, 0.08);
  --shadow-strong: 0 16px 40px rgba(2, 12, 27, 0.14);
}

/* === SCROLL SUAVE E FEEDBACK === */
html {
  scroll-behavior: smooth;
}

/* Scrollbar personalizado */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

/* Feedback de carregamento */
.loading {
  pointer-events: none;
  opacity: 0.6;
}

.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid #f3f3f3;
  border-top: 2px solid #3b82f6;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* === LOADING SKELETON === */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
  border-radius: 4px;
}

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

.skeleton-text {
  height: 1rem;
  margin-bottom: 0.5rem;
}

.skeleton-title {
  height: 1.2rem;
  width: 80%;
  margin-bottom: 0.5rem;
}

.skeleton-price {
  height: 1.1rem;
  width: 40%;
}

.skeleton-image {
  height: 200px;
  width: 100%;
  margin-bottom: 1rem;
}

/* === ERROR HANDLING ENTERPRISE === */
.error-placeholder {
  min-height: 160px;
  padding: 24px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  color: #334155;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  font-size: 0.95rem;
}

.error-placeholder strong {
  font-size: 1.05rem;
  margin-bottom: 6px;
  color: #1e293b;
}

.error-placeholder p {
  opacity: 0.85;
  margin: 0;
  line-height: 1.4;
}

.error-message {
  text-align: center;
  padding: 2rem;
  background: #fef3c7;
  border: 1px solid #fbbf24;
  border-radius: 8px;
  color: #92400e;
  font-size: 0.875rem;
}

/* === CRO - CONVERSION RATE OPTIMIZATION === */

/* Página de Produto Otimizada */
.product-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.product-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
  font-size: 0.875rem;
  color: #64748b;
}

.product-breadcrumb a {
  color: #3b82f6;
  text-decoration: none;
}

.product-breadcrumb a:hover {
  text-decoration: underline;
}

.product-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

/* Seção de Imagem com Selos */
.product-image-section {
  position: sticky;
  top: 100px;
}

.main-product-image {
  aspect-ratio: 1;
  background: #f8fafc;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.main-product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.trust-badges {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.trust-badge {
  background: #f0f9ff;
  color: #0369a1;
  padding: 0.5rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 500;
  text-align: center;
}

/* Seção de Informações */
.product-info-section {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.product-title {
  font-size: 2rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0;
  line-height: 1.2;
}

.product-brand-tag {
  display: block;
  font-size: 1rem;
  font-weight: 500;
  color: #64748b;
  margin-top: 0.5rem;
}

/* Prova Social */
.product-rating-summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  background: #fef3c7;
  border-radius: 8px;
  border: 1px solid #fbbf24;
  line-height: 1;
  box-sizing: border-box;
}

.stars {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 14px;
  line-height: 1;
}

.rating-text {
  font-weight: 600;
  color: #92400e;
  font-size: 12px;
  line-height: 1;
}

.review-link {
  color: #3b82f6;
  text-decoration: none;
  font-size: 11px;
  line-height: 1;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(59, 130, 246, 0.1);
  transition: all 0.2s ease;
}

.review-link:hover {
  background: rgba(59, 130, 246, 0.2);
  text-decoration: underline;
}

/* Preço com Destaque */
.product-price-section {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  padding: 2rem;
  border-radius: 12px;
  border: 2px solid #3b82f6;
}

.price-wrapper {
  text-align: center;
  margin-bottom: 1rem;
}

.product-price {
  font-size: 2.5rem;
  font-weight: 800;
  color: #1e293b;
  line-height: 1;
}

.price-info {
  font-size: 0.875rem;
  color: #64748b;
  margin-top: 0.5rem;
}

.price-installment {
  margin-top: 0.4rem;
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
}

.price-benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.price-benefit-card {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(59, 130, 246, 0.12);
  border-radius: 10px;
  padding: 0.9rem;
  text-align: left;
}

.price-benefit-card strong {
  display: block;
  color: #0f172a;
  font-size: 0.95rem;
  line-height: 1.4;
}

.price-benefit-card small {
  display: block;
  margin-top: 0.35rem;
  color: #475569;
  line-height: 1.45;
}

.price-benefit-label {
  display: inline-block;
  margin-bottom: 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #2563eb;
}

.product-availability {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  border-radius: 6px;
  font-weight: 600;
}

.product-availability.in-stock {
  background: #dcfce7;
  color: #166534;
}

.product-availability.out-of-stock {
  background: #fef2f2;
  color: #dc2626;
}

.stock-level {
  font-size: 0.875rem;
  opacity: 0.8;
}

.urgency-badge {
  background: #fef3c7;
  color: #92400e;
  padding: 0.75rem;
  border-radius: 6px;
  text-align: center;
  font-weight: 600;
  border: 1px solid #fbbf24;
  animation: pulse 2s infinite;
}

.purchase-benefits {
  margin: 1rem 0 0;
  padding-left: 1.25rem;
  color: #334155;
}

.purchase-benefits li + li {
  margin-top: 0.45rem;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.8; }
}

/* CTA Principal */
.product-actions-primary {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.btn-large {
  padding: 1rem 2rem;
  font-size: 1.125rem;
  font-weight: 600;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-block {
  width: 100%;
}

.btn-primary {
  background: #3b82f6;
  color: white;
}

.btn-primary:hover:not(:disabled) {
  background: #2563eb;
  transform: translateY(-1px);
}

.btn-primary:disabled {
  background: #94a3b8;
  cursor: not-allowed;
}

.security-indicator {
  text-align: center;
  font-size: 0.875rem;
  color: #64748b;
}

/* CTA Secundário */
.product-actions-secondary {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.divider {
  text-align: center;
  color: #64748b;
  font-size: 0.875rem;
  position: relative;
}

.divider::before,
.divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 40%;
  height: 1px;
  background: #e2e8f0;
}

.divider::before { left: 0; }
.divider::after { right: 0; }

.whatsapp-btn {
  background: #25d366;
  color: white;
  text-decoration: none;
  padding: 1rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  text-align: center;
  transition: all 0.2s ease;
}

.whatsapp-btn:hover {
  background: #128c7e;
  transform: translateY(-1px);
}

.whatsapp-info {
  text-align: center;
  font-size: 0.875rem;
  color: #64748b;
}

/* Meta Info */
.product-meta {
  display: flex;
  justify-content: space-between;
  padding: 1rem 0;
  border-top: 1px solid #e2e8f0;
  font-size: 0.875rem;
  color: #64748b;
}

/* Footer Actions */
.product-footer-actions {
  padding-top: 1rem;
  border-top: 1px solid #e2e8f0;
}

/* Responsive */
@media (max-width: 768px) {
  .product-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .product-image-section {
    position: static;
  }
  
  .product-title {
    font-size: 1.5rem;
  }
  
  .product-price {
    font-size: 2rem;
  }

  .price-benefits-grid {
    grid-template-columns: 1fr;
  }
  
  .trust-badges {
    grid-template-columns: 1fr;
  }
}

/* === PERFORMANCE OPTIMIZATIONS === */

/* Prevenir Layout Shift - Dimensions Fixas */
.product-card {
  min-height: 320px;
  contain: layout style paint;
  will-change: transform;
}

.product-image {
  aspect-ratio: 1;
  background: #f1f5f9;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
}

.product-image .image-placeholder {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 2rem;
  opacity: 0.3;
}

/* Fade suave para imagens carregadas */
.product-image img.loaded {
  opacity: 1;
  transition: opacity 0.3s ease;
}

.product-image img:not(.loaded) {
  opacity: 0;
}

/* Otimizações de renderização */
.products-grid {
  contain: layout;
  transform: translateZ(0); /* Hardware acceleration */
}

.product-card {
  transform: translateZ(0);
  backface-visibility: hidden;
}

/* Reduzir repaints */
.product-card:hover {
  transform: translateY(-2px);
  transition: transform 0.2s ease;
}

/* === SISTEMA DE NOTIFICAÇÕES === */

/* === CRITICAL CSS MOVED FROM INDEX.HTML === */
body {
  margin: 0;
  font-family: 'Inter', 'Inter Fallback', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
}

.loading {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.95);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.loading.active {
  opacity: 1;
  visibility: visible;
}

.loading-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid rgba(59, 130, 246, 0.1);
  border-top: 4px solid #3b82f6;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* IMAGENS OTIMIZADAS */
.product img,
.products-grid .product img,
.product-card img,
.product-image img {
  width: 100% !important;
  height: 200px !important;
  object-fit: contain !important;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.product img.loaded,
.products-grid .product img.loaded,
.product-card img.loaded,
.product-image img.loaded {
  opacity: 1;
}

.products-grid .product-image,
.product-image {
  width: 100% !important;
  height: 200px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: #f8f9fa !important;
  position: relative !important;
}

.image-placeholder {
  position: absolute;
  font-size: 2rem;
  color: #ddd;
  z-index: 1;
}

.product-image img {
  position: relative;
  z-index: 2;
}

@media (max-width: 768px) {
  .product img,
  .products-grid .product img,
  .product-card img,
  .product-image img {
    height: 160px !important;
  }
  
  .products-grid .product-image,
  .product-image {
    height: 160px !important;
  }
}

@media (max-width: 480px) {
  .product img,
  .products-grid .product img,
  .product-card img,
  .product-image img {
    height: 140px !important;
  }
  
  .products-grid .product-image,
  .product-image {
    height: 140px !important;
  }
}

/* CONTROLE DAS SEÇÕES */
.category[id="inicio"] {
  display: block;
}

.products-section {
  display: block;
}

.category:not([id="inicio"]) {
  display: block;
}

/* SCROLL SUAVE */
html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
}

/* CARRINHO LATERAL - IGUAL AO AUTH.HTML */
.cart-sidebar {
  position: fixed !important;
  top: 0 !important;
  right: -400px !important;
  width: 400px !important;
  height: 100vh !important;
  background: white !important;
  box-shadow: -4px 0 12px rgba(0, 0, 0, 0.1) !important;
  transition: right 0.3s ease !important;
  z-index: 1003 !important;
  transform: none !important;
}

.cart-sidebar.active {
  right: 0 !important;
}

.cart-overlay {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  background: rgba(0, 0, 0, 0.5) !important;
  z-index: 1002 !important;
  opacity: 0 !important;
  visibility: hidden !important;
  transition: all 0.3s ease !important;
}

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

@media (max-width: 768px) {
  .cart-sidebar {
    width: 100vw !important;
    right: -100vw !important;
  }
  
  .cart-overlay {
    z-index: 1001 !important;
  }
  
  /* Botão hamburguer visível apenas em mobile */
  .action-buttons .mobile-menu-btn {
    display: flex !important;
  }
  
  /* Garantir que botão de filtros apareça em mobile */
  .action-buttons .filters-toggle {
    display: flex !important;
  }
}

/* iPhone 11 e iOS específicos para filtros */
@media only screen 
  and (device-width: 414px) 
  and (device-height: 896px) 
  and (-webkit-device-pixel-ratio: 2) {
  
  .filters-modal {
    width: 100vw !important;
    height: 100vh !important;
    top: 0 !important;
    right: -100vw !important;
    position: fixed !important;
  }
  
  .filters-modal.active {
    right: 0 !important;
    -webkit-transform: translateX(0) !important;
    transform: translateX(0) !important;
  }
}

/* iPhones em geral para filtros */
@media only screen 
  and (max-device-width: 428px) 
  and (-webkit-min-device-pixel-ratio: 2) {
  
  .filters-modal {
    width: 100vw !important;
    height: 100vh !important;
    position: fixed !important;
    top: 0 !important;
    right: -100vw !important;
    -webkit-transform: translateX(-100%) !important;
    transform: translateX(-100%) !important;
  }
  
  .filters-modal.active {
    -webkit-transform: translateX(0) !important;
    transform: translateX(0) !important;
  }
}

/* iOS Safari específico para filtros */
@supports (-webkit-touch-callout: none) {
  .filters-modal {
    -webkit-overflow-scrolling: touch !important;
  }
  
  .filters-modal button {
    -webkit-tap-highlight-color: transparent !important;
    touch-action: manipulation !important;
  }
}

/* Botão hamburguer escondido em desktop */
.action-buttons .mobile-menu-btn {
  display: none !important;
}

/* Garantir que botão de filtros apareça em mobile */
.action-buttons .filters-toggle {
  display: flex !important;
}

/* Estilos para a caixa de faixa de preço */
.price-range-container {
  padding: 20px;
  background: #f8fafc;
  border-top: 1px solid #e5e7eb;
}

.price-range-inputs {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.price-input-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.price-input-group label {
  font-size: 14px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 4px;
}

.price-input-group input {
  padding: 12px;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-size: 16px;
  transition: all 0.2s ease;
}

.price-input-group input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.price-range-actions {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.apply-price-btn {
  flex: 1;
  padding: 12px 24px;
  background: linear-gradient(135deg, var(--brand-500) 0%, var(--brand-600) 100%);
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(17, 122, 163, 0.3);
}

.apply-price-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(17, 122, 163, 0.4);
  background: linear-gradient(135deg, var(--brand-400) 0%, var(--brand-500) 100%);
}

.apply-price-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(17, 122, 163, 0.3);
}

.btn-primary {
  flex: 1;
  padding: 12px 24px;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(59, 130, 246, 0.2);
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.4s, height 0.4s;
}

.btn-primary:active::before {
  width: 300px;
  height: 300px;
}

.cancel-price-btn {
  flex: 1;
  padding: 12px 16px;
  background: white;
  color: #6b7280;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cancel-price-btn:hover {
  background: #f8fafc;
  color: #374151;
  border-color: #d1d5db;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* MENU MOBILE - IGUAL AO AUTH.HTML */
.mobile-menu-overlay {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  background: rgba(0, 0, 0, 0.5) !important;
  z-index: 9999 !important;
  opacity: 0 !important;
  visibility: hidden !important;
  transition: all 0.3s ease !important;
}

.mobile-menu-overlay.active {
  opacity: 1 !important;
  visibility: visible !important;
}

.mobile-menu-sidebar {
  position: fixed !important;
  top: 0 !important;
  right: 0 !important;
  width: 320px !important;
  height: 100vh !important;
  background: white !important;
  box-shadow: -4px 0 12px rgba(0, 0, 0, 0.1) !important;
  transform: translateX(100%) !important;
  transition: transform 0.3s ease !important;
  overflow-y: auto !important;
  z-index: 10000 !important;
}

.mobile-menu-overlay.active .mobile-menu-sidebar {
  transform: translateX(0) !important;
}

@media (max-width: 768px) {
  .mobile-menu-sidebar {
    width: 280px !important;
  }
}

@media (max-width: 480px) {
  .mobile-menu-sidebar {
    width: 100vw !important;
    max-width: 100vw !important;
  }
}

/* === FIM DO CRITICAL CSS MOVIDO === */

/* === LAZY LOADING STYLES === */
img[data-src] {
  opacity: 0;
  transition: opacity 0.3s ease;
}

img[data-src].loaded {
  opacity: 1;
}

img[data-src].loading {
  opacity: 0.5;
}

/* Intersection Observer fallback */
img.lazy-load {
  opacity: 0;
  transition: opacity 0.3s ease;
}

img.lazy-load.loaded {
  opacity: 1;
}

/* === NATIVE LAZY LOADING === */
img[loading="lazy"][data-src] {
  opacity: 0;
  transition: opacity 0.3s ease;
}

img[loading="lazy"][data-src].loaded,
img[loading="lazy"]:not([data-src]) {
  opacity: 1;
}

.notification-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.notification {
  background: white;
  border-radius: 12px;
  padding: 16px 20px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  border-left: 4px solid #3b82f6;
  min-width: 300px;
  max-width: 400px;
  display: flex;
  align-items: center;
  gap: 12px;
  pointer-events: auto;
  transform: translateX(100%);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.notification.show {
  transform: translateX(0);
  opacity: 1;
}

.notification.hide {
  transform: translateX(100%);
  opacity: 0;
}

.notification-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: white;
}

.notification.error .notification-icon {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.notification.warning .notification-icon {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.notification.success .notification-icon {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.notification.info .notification-icon {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.notification.error {
  border-left-color: #ef4444;
}

.notification.warning {
  border-left-color: #f59e0b;
}

.notification.success {
  border-left-color: #10b981;
}

.notification.info {
  border-left-color: #3b82f6;
}

.notification-content {
  flex: 1;
}

.notification-title {
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 2px;
  font-size: 14px;
}

.notification-message {
  color: #6b7280;
  font-size: 13px;
  line-height: 1.4;
}

.notification-close {
  flex-shrink: 0;
  background: none;
  border: none;
  color: #9ca3af;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: all 0.2s ease;
  font-size: 16px;
  line-height: 1;
}

.notification-close:hover {
  background: #f3f4f6;
  color: #6b7280;
}

@media (max-width: 768px) {
  .notification-container {
    top: 10px;
    right: 10px;
    left: 10px;
  }
  
  .notification {
    min-width: auto;
    max-width: none;
  }
}

/* === HEADER MODERNO === */
.modern-header {
  background: rgba(255, 255, 255, 0.95);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(229, 231, 235, 0.8);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease;
}

.modern-header.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.header-top {
  padding: 12px 0;
  background: transparent;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.header-brand:hover {
  transform: translateY(-1px);
}

.header-brand img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  transition: transform 0.2s ease;
}

.header-brand:hover img {
  transform: scale(1.05);
}

.brand-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.brand-info h1 {
  font-size: 20px;
  font-weight: 700;
  color: var(--brand-700);
  margin: 0;
  line-height: 1.2;
}

.brand-tagline {
  font-size: 14px;
  color: var(--muted);
  margin: 2px 0 0 0;
  font-weight: 500;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  justify-content: flex-end;
}

.search-container {
  flex: 1;
  max-width: 400px;
  position: relative;
}

.search-input-wrapper {
  position: relative;
  width: 100%;
}

.search-input {
  width: 100%;
  padding: 10px 16px;
  border: 2px solid rgba(148, 163, 184, 0.2);
  border-radius: 8px;
  font-size: 14px;
  background: white;
  transition: all 0.3s ease;
  outline: none;
}

.search-input:focus {
  border-color: var(--brand-500);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.search-input::placeholder {
  color: var(--muted);
}

.action-buttons {
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
  z-index: 1000;
}

.cart-count {
  position: absolute;
  top: -6px;
  right: -6px;
  background: #ef4444;
  color: white;
  font-size: 11px;
  font-weight: 600;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  box-shadow: 0 2px 4px rgba(239, 68, 68, 0.3);
}

.auth-btn {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  font-size: 9px;
}

/* Responsive para auth-btn */
@media (max-width: 375px) {
  .auth-btn {
    font-size: 8px;
  }
}

@media (min-width: 480px) {
  .auth-btn {
    font-size: 9.5px;
  }
}

@media (min-width: 768px) {
  .auth-btn {
    font-size: 9.75px;
  }
}

@media (min-width: 1024px) {
  .auth-btn {
    font-size: 10px;
  }
}

@media (min-width: 1280px) {
  .auth-btn {
    font-size: 10px;
  }
}

@media (min-width: 1440px) {
  .auth-btn {
    font-size: 10px;
  }
}

.auth-btn:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

/* Navegação Principal */
.header-nav {
  background: rgba(248, 250, 252, 0.95);
  border-top: 1px solid rgba(148, 163, 184, 0.1);
  /* Fallback para navegadores que não suportam backdrop-filter */
  background: rgba(248, 250, 252, 0.9);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  position: relative;
}

/* Indicadores de scroll */
.header-nav::before,
.header-nav::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 20px;
  pointer-events: none;
  z-index: 10;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.header-nav::before {
  left: 0;
  background: linear-gradient(to right, rgba(248, 250, 252, 0.9), transparent);
}

.header-nav::after {
  right: 0;
  background: linear-gradient(to left, rgba(248, 250, 252, 0.9), transparent);
}

.header-nav.scrollable-left::before {
  opacity: 1;
}

.header-nav.scrollable-right::after {
  opacity: 1;
}

.nav-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 20px;
  max-width: 1400px;
  margin: 0 auto;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
  -ms-overflow-style: thin;
  flex-wrap: nowrap;
  scroll-behavior: smooth;
}

/* Scrollbar personalizada para Webkit (Chrome, Safari, Edge) */
.nav-tabs::-webkit-scrollbar {
  height: 6px;
}

.nav-tabs::-webkit-scrollbar-track {
  background: transparent;
  border-radius: 3px;
}

.nav-tabs::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 3px;
  transition: background 0.3s ease;
}

/* Fallback para Firefox */
.nav-tabs scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 3px;
}

.nav-tabs::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Fallback para Firefox */
.nav-tabs scrollbar-thumb:hover {
  background: #94a3b8;
}

.nav-tab {
  padding: 10px 12px;
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  color: var(--muted);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  font-size: 13px;
}

.nav-tab:hover {
  color: var(--brand-600);
  background: rgba(59, 130, 246, 0.05);
}

.nav-tab.active {
  color: var(--brand-700);
  border-bottom-color: var(--brand-500);
  background: rgba(59, 130, 246, 0.1);
}

/* === RESPONSIVE HEADER === */
/* Tablets e Desktop Pequeno */
@media (max-width: 1024px) {
  .header-container {
    padding: 0 16px;
    gap: 16px;
  }
  
  .search-container {
    max-width: 350px;
  }
  
  .brand-info h1 {
    font-size: 18px;
  }
  
  .brand-tagline {
    font-size: 13px;
  }
}

/* Tablets */
@media (max-width: 768px) {
  .header-top {
    padding: 8px 0;
  }
  
  .header-container {
    flex-direction: column;
    gap: 8px;
    padding: 0 16px;
  }
  
  .header-brand {
    width: 100%;
    justify-content: space-between;
    margin-bottom: 8px;
  }
  
  .header-brand img {
    width: 32px;
    height: 32px;
  }
  
  .brand-info h1 {
    font-size: 16px;
  }
  
  .brand-tagline {
    font-size: 12px;
  }
  
  .header-actions {
    width: 100%;
    flex-direction: column;
    gap: 8px;
  }
  
  .search-container {
    width: 100%;
    max-width: none;
  }
  
  .action-buttons {
    justify-content: center;
    gap: 8px;
  }
  
  .header-nav {
    display: none;
  }
}

/* Mobile Grande */
@media (max-width: 480px) {
  .header-top {
    padding: 6px 0;
  }
  
  .header-container {
    padding: 0 12px;
    gap: 6px;
  }
  
  .header-brand img {
    width: 28px;
    height: 28px;
  }
  
  .brand-info h1 {
    font-size: 15px;
  }
  
  .brand-tagline {
    font-size: 11px;
  }
  
  .action-btn {
    min-width: 40px;
    height: 40px;
    padding: 6px 10px;
  }
  
  .action-btn svg {
    width: 18px;
    height: 18px;
  }
  
  .cart-count {
    font-size: 10px;
    min-width: 16px;
    height: 16px;
  }
}

/* Mobile Pequeno */
@media (max-width: 360px) {
  .header-container {
    padding: 0 8px;
  }
  
  .header-brand img {
    width: 24px;
    height: 24px;
  }
  
  .brand-info h1 {
    font-size: 14px;
  }
  
  .brand-tagline {
    font-size: 10px;
  }
  
  .action-btn {
    min-width: 36px;
    height: 36px;
    padding: 4px 8px;
  }
  
  .action-btn svg {
    width: 16px;
    height: 16px;
  }
  
  .cart-count {
    font-size: 9px;
    min-width: 14px;
    height: 14px;
  }
}

/* === Loading Spinner Moderno === */
.loading {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.95);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.loading.active {
  opacity: 1;
  visibility: visible;
}

.loading-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid rgba(59, 130, 246, 0.1);
  border-top: 4px solid #3b82f6;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
  will-change: transform;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* === Menu do Usuário === */
.user-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  /* Z-index acima da barra de pesquisa */
  z-index: 1002;
  background: white;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(0, 0, 0, 0.08);
  min-width: 280px;
  max-width: 320px;
  overflow: visible;
  max-height: 80vh;
  overflow-y: auto;
  transform-origin: top right;
  
  /* Estado inicial para animação suave */
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1), 
              transform 0.25s cubic-bezier(0.4, 0, 0.2, 1),
              top 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Estado ativo do menu */
.user-menu.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Forçar visibilidade em todos os contextos */
.user-menu * {
  display: block;
  visibility: visible;
  opacity: 1;
}

/* Responsividade para o menu do usuário */
@media (max-width: 768px) {
  .user-menu {
    /* Manter posicionamento relativo ao botão pai */
    min-width: 280px !important;
    max-width: 90vw !important;
    max-height: 60vh !important;
    border-radius: 12px !important;
    z-index: 9999 !important;
  }
  
  .user-menu.active {
    /* Garantir visibilidade em mobile */
    opacity: 1 !important;
    pointer-events: auto !important;
  }
}

@media (max-width: 480px) {
  .user-menu {
    min-width: 260px !important;
    max-width: 95vw !important;
    border-radius: 8px !important;
  }
}

/* === Modal de Pedidos === */
.orders-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

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

.orders-modal {
  background: white;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  max-width: 90vw;
  max-height: 90vh;
  width: 800px;
  overflow: hidden;
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

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

.orders-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid #e5e7eb;
  background: #f8fafc;
}

.orders-modal-header h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  color: #1f2937;
}

.orders-modal-close {
  background: none;
  border: none;
  font-size: 24px;
  color: #6b7280;
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.orders-modal-close:hover {
  background: #f3f4f6;
  color: #374151;
}

.orders-modal-content {
  padding: 24px;
  max-height: calc(90vh - 80px);
  overflow-y: auto;
}

/* Lista de Pedidos */
.orders-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.order-item {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  background: white;
  transition: all 0.2s ease;
}

.order-item:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateY(-1px);
}

.order-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: #f9fafb;
  border-bottom: 1px solid #e5e7eb;
}

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

.order-number {
  font-weight: 600;
  color: #1f2937;
  font-size: 16px;
}

.order-date {
  font-size: 14px;
  color: #6b7280;
}

.order-status {
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.order-status.pendente {
  background: #fef3c7;
  color: #92400e;
}

.order-status.confirmado {
  background: #dbeafe;
  color: #1e40af;
}

.order-status.preparando {
  background: #e9d5ff;
  color: #6b21a8;
}

.order-status.enviado {
  background: #fed7aa;
  color: #9a3412;
}

.order-status.entregue {
  background: #d1fae5;
  color: #065f46;
}

.order-status.cancelado {
  background: #fee2e2;
  color: #991b1b;
}

.order-items {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.order-item-product {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px;
  background: #f9fafb;
  border-radius: 8px;
}

.order-item-image {
  width: 78px;
  height: 78px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
  min-width: 78px;
  min-height: 78px;
  max-width: 78px;
  max-height: 78px;
}

.order-item-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.order-item-details h4 {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: #1f2937;
}

.order-item-details p {
  margin: 0;
  font-size: 13px;
  color: #6b7280;
}

.order-item-price {
  font-weight: 600;
  color: #059669 !important;
}

.order-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: #f9fafb;
  border-top: 1px solid #e5e7eb;
}

.order-total {
  font-size: 16px;
  font-weight: 600;
  color: #1f2937;
}

.order-actions {
  display: flex;
  gap: 8px;
}

.no-orders {
  text-align: center;
  padding: 60px 20px;
  color: #6b7280;
  font-size: 16px;
}

.no-orders::before {
  content: '📦';
  display: block;
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.5;
}

/* Responsividade intermediária para tablets */
@media (max-width: 1024px) {
  .order-item-image {
    width: 70px;
    height: 70px;
    min-width: 70px;
    min-height: 70px;
    max-width: 70px;
    max-height: 70px;
  }
}

/* Responsividade do Modal de Pedidos */
@media (max-width: 768px) {
  .orders-modal {
    width: 95vw;
    max-height: 95vh;
    margin: 20px;
  }
  
  .orders-modal-header {
    padding: 16px 20px;
  }
  
  .orders-modal-content {
    padding: 16px;
    max-height: calc(95vh - 60px);
  }
  
  .order-header {
    padding: 12px 16px;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  
  .order-items {
    padding: 16px;
  }
  
  .order-item-product {
    padding: 8px;
  }
  
  .order-item-image {
    width: 60px;
    height: 60px;
    min-width: 60px;
    min-height: 60px;
    max-width: 60px;
    max-height: 60px;
  }
  
  .order-footer {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 16px;
  }
  
  .order-actions {
    justify-content: stretch;
  }
  
  .order-actions button {
    flex: 1;
  }
}

@media (max-width: 480px) {
  .orders-modal {
    width: 98vw;
    margin: 10px;
  }
  
  .orders-modal-header h3 {
    font-size: 18px;
  }
  
  .order-item-details h4 {
    font-size: 13px;
  }
  
  .order-item-details p {
    font-size: 12px;
  }
  
  .order-total {
    font-size: 14px;
  }
  
  .order-item-image {
    width: 50px;
    height: 50px;
    min-width: 50px;
    min-height: 50px;
    max-width: 50px;
    max-height: 50px;
  }
}

/* === Modal de Perfil === */
.profile-modal-overlay,
.products-modal-overlay,
.reviews-modal-overlay,
.settings-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.profile-modal-overlay.active,
.products-modal-overlay.active,
.reviews-modal-overlay.active,
.settings-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.profile-modal,
.products-modal,
.reviews-modal,
.settings-modal {
  background: white;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  max-width: 90vw;
  max-height: 90vh;
  width: 600px;
  overflow: hidden;
  transform: scale(1);
  transition: transform 0.3s ease;
  opacity: 0;
  visibility: hidden;
}

.profile-modal-overlay.active .profile-modal,
.products-modal-overlay.active .products-modal,
.reviews-modal-overlay.active .reviews-modal,
.settings-modal-overlay.active .settings-modal {
  transform: scale(1);
  opacity: 1;
  visibility: visible;
}

/* Garantir que o profile-modal-overlay funcione */
.profile-modal-overlay.active {
  opacity: 1 !important;
  visibility: visible !important;
}

.profile-modal-overlay.active .profile-modal {
  transform: scale(1) !important;
  opacity: 1 !important;
  visibility: visible !important;
}

/* Garantir que o conteúdo do modal seja visível */
.profile-modal-overlay.active .profile-modal-content {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.profile-modal-header,
.products-modal-header,
.reviews-modal-header,
.settings-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid #e5e7eb;
  background: #f8fafc;
}

.profile-modal-header h3,
.products-modal-header h3,
.reviews-modal-header h3,
.settings-modal-header h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  color: #1f2937;
}

.profile-modal-close,
.products-modal-close,
.reviews-modal-close,
.settings-modal-close {
  background: none;
  border: none;
  font-size: 24px;
  color: #6b7280;
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.profile-modal-close:hover,
.products-modal-close:hover,
.reviews-modal-close:hover,
.settings-modal-close:hover {
  background: #f3f4f6;
  color: #374151;
}

.profile-modal-content,
.products-modal-content,
.reviews-modal-content,
.settings-modal-content {
  padding: 24px;
  max-height: calc(90vh - 80px);
  overflow-y: auto;
}

/* Conteúdo do Perfil */
.profile-info-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px;
  background: #f9fafb;
  border-radius: 12px;
  margin-bottom: 24px;
}

.profile-avatar-large {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 600;
  flex-shrink: 0;
}

.profile-details h4 {
  margin: 0 0 8px 0;
  font-size: 18px;
  font-weight: 600;
  color: #1f2937;
}

.profile-email {
  margin: 0 0 4px 0;
  font-size: 14px;
  color: #6b7280;
}

.profile-member {
  margin: 0;
  font-size: 12px;
  color: #9ca3af;
}

.profile-stats {
  display: flex;
  gap: 20px;
  justify-content: center;
  padding: 20px;
  background: #f3f4f6;
  border-radius: 12px;
}

.stat-item {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 24px;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 14px;
  color: #6b7280;
}

/* Conteúdo de Produtos */
.products-list,
.reviews-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.product-item,
.review-item {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  background: white;
  transition: all 0.2s ease;
}

.product-item:hover,
.review-item:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateY(-1px);
}

.product-image {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}

.product-info {
  flex: 1;
  padding: 16px;
}

.product-info h4,
.review-header h4 {
  margin: 0 0 8px 0;
  font-size: 16px;
  font-weight: 600;
  color: #1f2937;
}

.product-price {
  margin: 0 0 4px 0;
  font-size: 18px;
  font-weight: 700;
  color: #059669;
}

.product-date {
  margin: 0;
  font-size: 12px;
  color: #6b7280;
}

.product-actions {
  padding: 16px;
  border-top: 1px solid #e5e7eb;
  display: flex;
  gap: 8px;
}

/* Conteúdo de Avaliações */
.review-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  border-bottom: 1px solid #e5e7eb;
}

.review-product {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.review-rating {
  font-size: 14px;
}

.review-date {
  font-size: 12px;
  color: #6b7280;
}

.review-content {
  padding: 16px;
}

.review-content p {
  margin: 0;
  font-size: 14px;
  color: #374151;
  line-height: 1.5;
}

/* Conteúdo de Configurações */
.settings-section {
  margin-bottom: 32px;
}

.settings-section h4 {
  margin: 0 0 16px 0;
  font-size: 16px;
  font-weight: 600;
  color: #1f2937;
  display: flex;
  align-items: center;
  gap: 8px;
}

.setting-item {
  margin-bottom: 16px;
}

.setting-label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: #374151;
  cursor: pointer;
}

.setting-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.setting-select {
  padding: 8px 12px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 14px;
  color: #374151;
  background: white;
  cursor: pointer;
}

.settings-actions {
  display: flex;
  justify-content: center;
  padding-top: 20px;
  border-top: 1px solid #e5e7eb;
}

/* Estados vazios */
.no-products,
.no-reviews {
  text-align: center;
  padding: 60px 20px;
  color: #6b7280;
  font-size: 16px;
}

.no-products::before {
  content: '📦';
  display: block;
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.5;
}

.no-reviews::before {
  content: '⭐';
  display: block;
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.5;
}

/* Botões */
.btn-danger {
  padding: 10px 20px;
  border: none;
  background: #dc2626;
  color: white;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-danger:hover {
  background: #b91c1c;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

/* Responsividade dos Novos Modais */
@media (max-width: 768px) {
  .profile-modal,
  .products-modal,
  .reviews-modal,
  .settings-modal {
    width: 95vw;
    max-height: 95vh;
    margin: 20px;
  }
  
  .profile-modal-header,
  .products-modal-header,
  .reviews-modal-header,
  .settings-modal-header {
    padding: 16px 20px;
  }
  
  .profile-modal-content,
  .products-modal-content,
  .reviews-modal-content,
  .settings-modal-content {
    padding: 16px;
    max-height: calc(95vh - 60px);
  }
  
  .profile-info-card {
    flex-direction: column;
    text-align: center;
    gap: 16px;
    padding: 20px;
  }
  
  .profile-stats {
    flex-direction: column;
    gap: 12px;
  }
  
  .product-item {
    flex-direction: column;
  }
  
  .product-image {
    width: 100%;
    height: 200px;
  }
  
  .product-actions {
    flex-direction: column;
  }
  
  .review-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  
  .settings-actions {
    flex-direction: column;
  }
  
  .settings-actions button {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .profile-modal,
  .products-modal,
  .reviews-modal,
  .settings-modal {
    width: 98vw;
    margin: 10px;
  }
  
  .profile-avatar-large {
    width: 60px;
    height: 60px;
    font-size: 24px;
  }
  
  .stat-number {
    font-size: 20px;
  }
  
  .product-image {
    height: 150px;
  }
}

/* === Diálogo de Confirmação Personalizado === */
.confirm-dialog-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

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

.confirm-dialog {
  background: white;
  border-radius: 12px;
  padding: 32px 24px;
  max-width: 400px;
  width: 90vw;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.confirm-dialog-overlay.active .confirm-dialog {
  transform: scale(1);
}

.confirm-dialog-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.confirm-dialog-title {
  margin: 0 0 12px 0;
  font-size: 18px;
  font-weight: 600;
  color: #1f2937;
}

.confirm-dialog-message {
  margin: 0 0 24px 0;
  font-size: 14px;
  color: #6b7280;
  line-height: 1.5;
}

.confirm-dialog-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.btn-cancel {
  padding: 10px 20px;
  border: 2px solid #e5e7eb;
  background: white;
  color: #6b7280;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-cancel:hover {
  background: #f3f4f6;
  color: #374151;
  border-color: #d1d5db;
}

.btn-confirm {
  padding: 10px 20px;
  border: none;
  background: #dc2626;
  color: white;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-confirm:hover {
  background: #b91c1c;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

/* === Notificações === */
.notification {
  position: fixed;
  top: 20px;
  right: 20px;
  background: white;
  border-radius: 8px;
  padding: 16px 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  z-index: 10002;
  transform: translateX(400px);
  transition: all 0.3s ease;
  max-width: 350px;
}

.notification.show {
  transform: translateX(0);
}

.notification.hide {
  transform: translateX(400px);
  opacity: 0;
}

.notification-content {
  display: flex;
  align-items: center;
  gap: 12px;
}

.notification-icon {
  font-size: 20px;
  flex-shrink: 0;
}

.notification-text {
  font-size: 14px;
  font-weight: 500;
  color: #1f2937;
}

.notification-success {
  border-left: 4px solid #10b981;
}

.notification-success .notification-icon {
  color: #10b981;
}

.notification-error {
  border-left: 4px solid #ef4444;
}

.notification-error .notification-icon {
  color: #ef4444;
}

.notification-info {
  border-left: 4px solid #3b82f6;
}

.notification-info .notification-icon {
  color: #3b82f6;
}

/* Responsividade do Diálogo e Notificações */
@media (max-width: 768px) {
  .confirm-dialog {
    padding: 24px 20px;
    margin: 20px;
  }
  
  .confirm-dialog-title {
    font-size: 16px;
  }
  
  .confirm-dialog-message {
    font-size: 13px;
  }
  
  .confirm-dialog-actions {
    flex-direction: column;
  }
  
  .btn-cancel,
  .btn-confirm {
    width: 100%;
    padding: 12px 20px;
  }
  
  .notification {
    top: 10px;
    right: 10px;
    left: 10px;
    max-width: none;
    transform: translateY(-100px);
  }
  
  .notification.show {
    transform: translateY(0);
  }
  
  .notification.hide {
    transform: translateY(-100px);
  }
}

.user-menu-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid #e5e7eb;
  background: #f8fafc;
}

.user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 16px;
}

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

.user-name {
  font-weight: 600;
  color: #1f2937;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-email {
  color: #64748b;
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-menu-actions {
  padding: 8px;
}

.user-menu-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border: none;
  background: transparent;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 14px;
  color: #374151;
  text-align: left;
}

.user-menu-btn:hover {
  background: #f3f4f6;
  color: #1f2937;
}

.user-menu-btn.logout {
  color: #dc2626;
  margin-top: 4px;
  border-top: 1px solid #e5e7eb;
  padding-top: 16px;
}

.user-menu-btn.logout:hover {
  background: #fef2f2;
  color: #b91c1c;
}

.user-menu-btn svg {
  flex-shrink: 0;
}





/* === Botões de Ação do Header === */
.action-btn {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 8px;
  padding: 8px 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 500;
  color: #475569;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  min-width: 44px;
  min-height: 44px;
  position: relative;
  text-decoration: none;
}

.action-btn:hover {
  background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-color: rgba(148, 163, 184, 0.4);
}

.action-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.action-btn svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
}

/* Texto do botão de autenticação */
.auth-text {
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  color: inherit;
}

/* Botão de autenticação específico */
.auth-btn {
  min-width: auto !important;
  padding: 8px 12px !important;
  gap: 6px;
}

.auth-btn .auth-text {
  display: inline;
}

/* Em mobile, esconder texto se necessário */
@media (max-width: 768px) {
  .auth-btn .auth-text {
    display: none;
  }
  
  .auth-btn {
    min-width: 44px !important;
    padding: 8px !important;
  }
}

/* Botão do carrinho com contador */
.cart-btn {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: white;
  border-color: transparent;
  position: relative;
  min-width: 44px;
  min-height: 44px;
  width: 44px;
  height: 44px;
  padding: 10px;
}

.cart-btn:hover {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.cart-count {
  position: absolute;
  top: -6px;
  right: -6px;
  background: #ef4444;
  color: white;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  border: 2px solid white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Botão de autenticação - REVERTIDO */
.auth-btn {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  border-color: transparent;
}

.auth-btn:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

/* Botão de filtros com mesmo tamanho */
.filters-toggle {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  color: #475569;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  min-width: 44px;
  min-height: 44px;
  width: 44px;
  height: 44px;
  padding: 10px;
}

.filters-toggle:hover {
  background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-color: rgba(148, 163, 184, 0.4);
}

/* === Animações de Carregamento de Imagem === */
@keyframes imageFadeIn {
  0% {
    opacity: 0;
    transform: scale(0.8) translateY(15px);
    filter: blur(8px) brightness(0.8);
  }
  30% {
    opacity: 0.3;
    transform: scale(0.9) translateY(8px);
    filter: blur(4px) brightness(0.9);
  }
  60% {
    opacity: 0.7;
    transform: scale(0.95) translateY(3px);
    filter: blur(1px) brightness(1);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
    filter: blur(0) brightness(1);
  }
}

@keyframes imageSlideIn {
  0% {
    opacity: 0;
    transform: translateX(-30px) scale(0.85) rotate(-2deg);
    filter: blur(6px);
  }
  50% {
    opacity: 0.6;
    transform: translateX(-10px) scale(0.95) rotate(-1deg);
    filter: blur(2px);
  }
  100% {
    opacity: 1;
    transform: translateX(0) scale(1) rotate(0deg);
    filter: blur(0);
  }
}

@keyframes imageZoomIn {
  0% {
    opacity: 0;
    transform: scale(0.6) rotate(1deg);
    filter: blur(10px) brightness(0.7);
  }
  40% {
    opacity: 0.5;
    transform: scale(0.8) rotate(0.5deg);
    filter: blur(3px) brightness(0.9);
  }
  100% {
    opacity: 1;
    transform: scale(1) rotate(0deg);
    filter: blur(0) brightness(1);
  }
}

@keyframes imageReveal {
  0% {
    opacity: 0;
    transform: scale(1.1) translateY(10px);
    filter: blur(12px) contrast(0.8);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.05) translateY(3px);
    filter: blur(2px) contrast(1);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
    filter: blur(0) contrast(1);
  }
}

@keyframes placeholderFadeOut {
  0% {
    opacity: 1;
    transform: scale(1) rotate(0deg);
    filter: blur(0);
  }
  50% {
    opacity: 0.5;
    transform: scale(0.9) rotate(1deg);
    filter: blur(1px);
  }
  100% {
    opacity: 0;
    transform: scale(0.7) rotate(-1deg);
    filter: blur(3px);
  }
}

/* Animações extras para produtos */
@keyframes productCardEntrance {
  0% {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Animação de entrada para cards de produtos */
.product-card {
  animation: productCardEntrance 0.5s ease-out;
  animation-fill-mode: both;
}

/* Animação para categorias */
@keyframes categoryCardEntrance {
  0% {
    opacity: 0;
    transform: translateY(20px) rotateX(-10deg);
  }
  100% {
    opacity: 1;
    transform: translateY(0) rotateX(0);
  }
}

.category-card {
  animation: categoryCardEntrance 0.6s ease-out;
  animation-fill-mode: both;
}

.category-card:nth-child(1) { animation-delay: 0.0s; }
.category-card:nth-child(2) { animation-delay: 0.1s; }
.category-card:nth-child(3) { animation-delay: 0.2s; }
.category-card:nth-child(4) { animation-delay: 0.3s; }
.category-card:nth-child(5) { animation-delay: 0.4s; }

/* === Botão Flutuante WhatsApp === */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  background: #25d366;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
  z-index: 999; /* Reduzido para não conflitar com header */
  transition: all 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
  text-decoration: none;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.whatsapp-float svg {
  width: 28px;
  height: 28px;
}

.whatsapp-tooltip {
  position: absolute;
  bottom: 70px;
  right: 0;
  background: #333;
  color: white;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 14px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  pointer-events: none;
}

.whatsapp-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  right: 20px;
  border: 6px solid transparent;
  border-top-color: #333;
}

.whatsapp-float:hover .whatsapp-tooltip {
  opacity: 1;
  visibility: visible;
}

.product-image img.loading {
  animation: imageFadeIn 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform, opacity, filter;
}

.product-image img.loaded {
  animation: imageReveal 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  transition: transform 0.3s ease, filter 0.3s ease;
  will-change: transform, filter;
}

.product-image img.loaded:hover {
  transform: scale(1.05);
  filter: brightness(1.1) saturate(1.2) contrast(1.05);
}

.image-placeholder.hiding {
  animation: placeholderFadeOut 0.4s cubic-bezier(0.55, 0.055, 0.675, 0.19) forwards;
}

/* Animações diferentes para variar o efeito */
.product-card:nth-child(3n) .product-image img.loading {
  animation: imageSlideIn 0.7s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.product-card:nth-child(5n) .product-image img.loading {
  animation: imageZoomIn 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.product-card:nth-child(7n) .product-image img.loading {
  animation: imageReveal 0.9s cubic-bezier(0.19, 1, 0.22, 1);
}

/* Animações para categorias na home */
.category-card .category-image img.loading {
  animation: imageFadeIn 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.category-card:nth-child(2n) .category-image img.loading {
  animation: imageSlideIn 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.category-card:nth-child(4n) .category-image img.loading {
  animation: imageZoomIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.category-card .category-image img.loaded {
  animation: imageReveal 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  transition: transform 0.3s ease, filter 0.3s ease;
}

.category-card .category-image img.loaded:hover {
  transform: scale(1.08);
  filter: brightness(1.15) saturate(1.3) contrast(1.1);
}

.category-image.has-loaded-image::before {
  display: none;
}

/* Efeito shimmer enquanto carrega */
.product-image::before,
.category-image::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
  animation: shimmer 1.5s infinite;
  z-index: 1;
}

.product-image img.loaded + .image-placeholder::before,
.category-image img.loaded + .image-placeholder::before {
  display: none;
}

@keyframes shimmer {
  0% { left: -100%; }
  100% { left: 100%; }
}


/* === Animações nos Botões Adicionar === */
@keyframes buttonSuccess {
  0% { transform: scale(1); background: #3b82f6; }
  50% { transform: scale(0.95); background: #10b981; }
  100% { transform: scale(1); background: #3b82f6; }
}

@keyframes checkmark {
  0% { transform: scale(0) rotate(-45deg); opacity: 0; }
  50% { transform: scale(1.2) rotate(-45deg); opacity: 1; }
  100% { transform: scale(1) rotate(-45deg); opacity: 1; }
}

.btn-primary {
  position: relative;
  transition: all 0.3s ease;
  overflow: hidden;
}

.btn-primary.adding {
  animation: buttonSuccess 0.6s ease;
}

.btn-primary.added::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 16px;
  font-weight: bold;
  animation: checkmark 0.4s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

@media (max-width: 768px) {
  .whatsapp-float {
    width: 50px;
    height: 50px;
    bottom: 15px;
    right: 15px;
  }
  
  .whatsapp-float svg {
    width: 24px;
    height: 24px;
  }
  
  .whatsapp-tooltip {
    font-size: 12px;
    padding: 6px 10px;
  }
}

/* === HEADER REMOVIDO - ESPAÇO PARA NOVO DESIGN === */




























@media (max-width: 480px) {
  .product img, .products-grid .product img, .product-card img, .product-image img {
    height: 140px !important;
  }
  .products-grid .product-image, .product-image {
    height: 140px !important;
  }
}

/* === Melhorias de Performance === */
img {
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

/* === CARDS DE PRODUTOS - VERSÃO CONSOLIDADA === */
.product-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  position: relative;
  min-height: 320px;
  contain: layout style paint;
  will-change: transform;
  transform: translateZ(0);
  backface-visibility: hidden;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.product-card:active {
  transform: translateY(-2px);
  transition: all 0.1s ease;
}

/* === ESTRUTURA INTERNA DO PRODUCT-CARD === */
.product-card .product-image {
  width: 100%;
  height: 200px;
  aspect-ratio: 1;
  background: #f1f5f9;
  border-radius: 8px 8px 0 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-card .product-info {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  text-align: center;
  position: relative;
  width: 100%;
  min-width: 0;
}

/* === CONTEÚDO DO PRODUTO === */
.product-card .product-content {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  text-align: center;
}

.product-card .product-content h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: #1f2937;
  line-height: 1.3;
  display: -webkit-box;
  display: -moz-box;
  display: box;
  -webkit-line-clamp: 2;
  -moz-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  -moz-box-orient: vertical;
  box-orient: vertical;
  overflow: hidden;
  min-height: 2.6em;
  word-break: keep-all;
  overflow-wrap: normal;
  hyphens: none;
}

.product-card .product-content h3 a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.product-card .product-content h3 a:hover {
  color: #3b82f6;
}

/* === AVALIAÇÕES === */
.product-card .product-rating-summary {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}

.product-card .stars {
  display: flex;
  gap: 2px;
}

.product-card .star {
  color: #fbbf24;
  font-size: 14px;
}

.product-card .rating-text {
  font-size: 12px;
  color: #6b7280;
  margin: 0;
}

.product-card .review-btn {
  background: none;
  border: 1px solid #d1d5db;
  color: #6b7280;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 11px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.product-card .review-btn:hover {
  background: #f9fafb;
  border-color: #9ca3af;
  color: #374151;
}

/* === PREÇO === */
.product-card .price {
  font-size: 18px;
  font-weight: 700;
  color: #059669;
  margin: 0;
  white-space: nowrap;
}

/* === BOTÃO ADICIONAR === */
.product-card .btn-primary {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 auto !important;
  left: 0 !important;
  right: 0 !important;
  position: relative !important;
  transform: none !important;
  padding: 12px 16px;
  background: #3b82f6;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  box-sizing: border-box !important;
  display: block !important;
}

.product-card .btn-primary:hover {
  background: #2563eb;
  transform: translateY(-1px);
}

.product-card .btn-primary:active {
  transform: translateY(0);
}

.product-card .btn-primary.added {
  background-color: #10b981 !important;
  color: white !important;
  border-color: #0d9f6e !important;
  animation: resetButtonColor 0.3s 1s forwards !important;
}

@keyframes resetButtonColor {
  0% { background-color: #10b981; }
  100% { background-color: #3b82f6; }
}

/* === RESPONSIVIDADE PARA MOBILE === */
@media (max-width: 768px) {
  .product-card {
    border-radius: 8px;
    min-height: 280px;
  }
  
  .product-card .product-image {
    height: 160px;
  }
  
  .product-card .product-info {
    padding: 12px;
    gap: 8px;
  }
  
  .product-card .product-content h3 {
    font-size: 13px;
    line-height: 1.2;
    min-height: 2.4em;
  }
  
  .product-card .price {
    font-size: 16px;
  }
  
  .product-card .btn-primary {
    padding: 10px 12px;
    font-size: 13px;
    min-height: 40px;
  }
  
  .product-card .rating-text {
    font-size: 11px;
  }
  
  .product-card .review-btn {
    font-size: 10px;
    padding: 3px 6px;
  }
}

@media (max-width: 480px) {
  .product-card {
    border-radius: 6px;
    min-height: 260px;
  }
  
  .product-card .product-image {
    height: 140px;
  }
  
  .product-card .product-info {
    padding: 10px;
    gap: 6px;
  }
  
  .product-card .product-content h3 {
    font-size: 12px;
    line-height: 1.2;
    min-height: 2.2em;
  }
  
  .product-card .price {
    font-size: 15px;
  }
  
  .product-card .btn-primary {
    padding: 8px 10px;
    font-size: 12px;
    min-height: 36px;
  }
  
  .product-card .rating-text {
    font-size: 10px;
  }
  
  .product-card .review-btn {
    font-size: 9px;
    padding: 2px 4px;
  }
}

@media (max-width: 360px) {
  .product-card .product-info {
    padding: 8px;
    gap: 4px;
  }
  
  .product-card .product-content h3 {
    font-size: 11px;
    line-height: 1.1;
    min-height: 2em;
  }
  
  .product-card .price {
    font-size: 14px;
  }
  
  .product-card .btn-primary {
    padding: 6px 8px;
    font-size: 11px;
    min-height: 32px;
  }
}

.product-image {
  width: 100%;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8f9fa;
  overflow: hidden;
  flex-shrink: 0;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.product-card .product-info {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  text-align: center;
  position: relative;
}

/* Responsividade para product-card em mobile */
@media (max-width: 768px) {
  .product-card {
    border-radius: 8px;
  }
  
  .product-info {
    padding: 12px;
    gap: 8px;
    align-items: center;
    text-align: center;
  }
  
  .product-info h3 {
    font-size: 14px;
    line-height: 1.3;
    text-align: center;
  }
  
  .product-info .price {
    font-size: 16px;
    text-align: center;
  }
  
  .product-info .btn-primary {
    padding: 10px 12px;
    font-size: 13px;
    min-height: 40px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    display: block !important;
    margin: 0 auto !important;
    left: 0 !important;
    right: 0 !important;
    position: relative !important;
    transform: none !important;
  }
}

@media (max-width: 480px) {
  .product-card {
    border-radius: 6px;
  }
  
  .product-info {
    padding: 10px;
    gap: 6px;
    align-items: center;
    text-align: center;
  }
  
  .product-info h3 {
    font-size: 13px;
    line-height: 1.2;
    text-align: center;
  }
  
  .product-info .price {
    font-size: 15px;
    text-align: center;
  }
  
  .product-info .btn-primary {
    padding: 8px 10px;
    font-size: 12px;
    min-height: 36px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    display: block !important;
    margin: 0 auto !important;
    left: 0 !important;
    right: 0 !important;
    position: relative !important;
    transform: none !important;
  }
}

@media (max-width: 360px) {
  .product-info {
    padding: 8px;
    gap: 4px;
    align-items: center;
    text-align: center;
  }
  
  .product-info h3 {
    font-size: 12px;
    line-height: 1.2;
    text-align: center;
  }
  
  .product-info .price {
    font-size: 14px;
    text-align: center;
  }
  
  .product-info .btn-primary {
    padding: 6px 8px;
    font-size: 11px;
    min-height: 32px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    display: block !important;
    margin: 0 auto !important;
    left: 0 !important;
    right: 0 !important;
    position: relative !important;
    transform: none !important;
  }
}

@media (max-width: 320px) {
  .product-info {
    padding: 6px;
    gap: 3px;
    align-items: center;
    text-align: center;
  }
  
  .product-info h3 {
    font-size: 11px;
    line-height: 1.1;
    text-align: center;
  }
  
  .product-info .price {
    font-size: 13px;
    text-align: center;
  }
  
  .product-info .btn-primary {
    padding: 5px 6px;
    font-size: 10px;
    min-height: 30px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    display: block !important;
    margin: 0 auto !important;
    left: 0 !important;
    right: 0 !important;
    position: relative !important;
    transform: none !important;
  }
}

/* === Correção para imagens antigas === */
.product img,
.products-grid .product img,
.product-card img,
.product-image img {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  min-width: 100% !important;
  min-height: 100% !important;
  object-fit: cover !important;
  border-radius: 0 !important;
  display: block !important;
  overflow: hidden !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
}

/* Força proporção correta */
.product-image {
  position: relative;
  aspect-ratio: 1/1;
  overflow: hidden !important;
  background: #f8f9fa;
}

.product-image img {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  min-width: 100% !important;
  min-height: 100% !important;
  object-fit: cover !important;
  border-radius: 0 !important;
  display: block !important;
  overflow: hidden !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
}

/* Container da imagem */
.product-image {
  width: 100%;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8f9fa;
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
}

@media (max-width: 768px) {
  .product-image {
    aspect-ratio: 4/3;
    height: 160px;
  }
  
  .product-image img {
    height: 160px !important;
  }
}

@media (max-width: 480px) {
  .product-image {
    aspect-ratio: 4/3;
    height: 140px;
  }
  
  .product-image img {
    height: 140px !important;
  }
}

@media (max-width: 360px) {
  .product-image {
    aspect-ratio: 4/3;
    height: 120px;
  }
  
  .product-image img {
    height: 120px !important;
  }
}

/* Igualar tamanho da fonte KCAS500W às outras fontes */
.product-image img[src*="aerocool_fonte500w"],
.product-image img[src*="AEROCOOL_FONTE500W"],
.product-image img[alt*="aerocool_fonte500w"],
.product-image img[alt*="AEROCOOL_FONTE500W"] {
  width: 70% !important;
  height: 70% !important;
  max-width: 70% !important;
  max-height: 70% !important;
  object-fit: contain !important;
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  padding: 0 !important;
  box-sizing: border-box !important;
}

/* Redução específica para mobile - KCAS500W */
@media (max-width: 768px) {
  .product-image img[src*="aerocool_fonte500w"],
  .product-image img[src*="AEROCOOL_FONTE500W"],
  .product-image img[alt*="aerocool_fonte500w"],
  .product-image img[alt*="AEROCOOL_FONTE500W"] {
    width: 65% !important;
    height: 65% !important;
    max-width: 65% !important;
    max-height: 65% !important;
  }
}

@media (max-width: 480px) {
  .product-image img[src*="aerocool_fonte500w"],
  .product-image img[src*="AEROCOOL_FONTE500W"],
  .product-image img[alt*="aerocool_fonte500w"],
  .product-image img[alt*="AEROCOOL_FONTE500W"] {
    width: 60% !important;
    height: 60% !important;
    max-width: 60% !important;
    max-height: 60% !important;
  }
}

@media (max-width: 360px) {
  .product-image img[src*="aerocool_fonte500w"],
  .product-image img[src*="AEROCOOL_FONTE500W"],
  .product-image img[alt*="aerocool_fonte500w"],
  .product-image img[alt*="AEROCOOL_FONTE500W"] {
    width: 55% !important;
    height: 55% !important;
    max-width: 55% !important;
    max-height: 55% !important;
  }
}

/* === Animações Otimizadas === */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.5s ease forwards;
}

/* === Loading States === */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

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

/* === Responsive para Cards === */
@media (max-width: 768px) {
  .product-image {
    height: 160px;
  }
  
  .product-info {
    padding: 12px;
  }
  
  .product-info h3 {
    font-size: 14px;
  }
  
  .product-info .price {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .product-image {
    height: 140px;
  }
  
  .product-info {
    padding: 10px;
  }
  
  .product-info h3 {
    font-size: 13px;
  }
  
  .product-info .price {
    font-size: 15px;
  }
}

/* === Animações de Entrada Suaves === */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.add {
  height: 40px;
  font-size: 14px;
}

.stock-status {
  font-size: 11px;
  margin-top: 3px;
  padding: 1px 4px;
}

  /* Product cards small mobile */
  .product {
    height: 22rem;
    margin-bottom: 12px;
  }

  .product img {
    width: 100% !important;
    height: 120px !important;
    object-fit: contain !important;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef) !important;
    padding: 12px !important;
    border-radius: 0.75rem 0.75rem 0 0 !important;
    transition: transform 0.3s ease !important;
  }

  .product-info {
    padding: 12px;
    gap: 8px;
  }

  .product-info h4 {
    font-size: 13px;
    line-height: 1.1;
  }

  .price {
    font-size: 15px;
  }

  .add {
  height: 36px;
  font-size: 13px;
}

.stock-status {
  font-size: 10px;
  margin-top: 2px;
  padding: 1px 3px;
}

/* Carrinho Sidebar */
.cart-sidebar {
  position: fixed;
  top: 0;
  right: 0;
  width: 400px;
  height: 100vh;
  background: white;
  box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
  z-index: 1002; /* Acima do header mas abaixo de modais */
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  visibility: hidden;
}

.cart-sidebar.active {
  transform: translateX(0);
  visibility: visible;
}

/* Mobile First - Ajustes para dispositivos móveis */
@media (max-width: 768px) {
  .cart-sidebar {
    width: 100vw;
    max-width: 100vw;
    height: 100vh;
    transform: translateX(100%);
    visibility: hidden;
    border-radius: 0;
  }
  
  .cart-sidebar.active {
    transform: translateX(0);
    visibility: visible;
  }
  
  /* Header adjustments para mobile */
  .header-actions {
    max-width: none;
  }
  
  .cart-btn {
    padding: 0.75rem;
    z-index: 1002;
  }
  
  .cart-count {
    z-index: 1003;
  }
}

/* Extra Small Mobile - Otimizações adicionais */
@media (max-width: 480px) {
  .cart-sidebar {
    width: 100vw;
    max-width: 100vw;
    height: 100vh;
  }
  
  .cart-header {
    padding: 1rem 0.75rem;
    min-height: 60px;
  }
  
  .cart-header h3 {
    font-size: 1.1rem;
  }
  
  .cart-close {
    font-size: 1.25rem;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f3f4f6;
  }
  
  .cart-items {
    padding: 0.75rem;
    flex: 1;
    overflow-y: auto;
  }
  
  .cart-footer {
    padding: 0.75rem;
    background: white;
    border-top: 1px solid #e5e7eb;
    position: sticky;
    bottom: 0;
  }
  
  .cart-total {
    margin-bottom: 0.75rem;
  }
  
  .cart-total span {
    font-size: 1rem;
  }
  
  .cart-total strong {
    font-size: 1.2rem;
  }
  
  .cart-footer button {
    width: 100%;
    padding: 0.875rem;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    border-radius: 8px;
  }
  
  .cart-footer button:last-child {
    margin-bottom: 0;
  }
}

/* iPhone 11 Pro e dispositivos similares (375px width) */
@media (max-width: 375px) {
  .header-top {
    padding: 6px 0;
  }
  
  .header-top .header-container {
    gap: 6px;
    padding: 0 12px;
  }
  
  .header-brand {
    margin-left: 0;
    margin-right: 0;
    margin-top: 0;
    margin-bottom: 6px;
    width: 100%;
    gap: 8px;
    padding: 0 4px;
  }
  
  .header-brand img {
    width: 28px;
    height: 28px;
  }
  
  .header-brand h1 {
    font-size: 15px;
  }
  
  .header-brand .brand-tagline {
    font-size: 11px;
  }
  
  .header-actions {
    gap: 6px;
  }
  
  .search-container {
    width: 100%;
  }
  
  .search-input {
    font-size: 14px;
    padding: 8px 12px;
  }
  
  .action-buttons {
    gap: 6px;
    padding: 0 4px;
  }
  
  .action-btn {
    min-width: 40px;
    height: 40px;
    padding: 6px 10px;
  }
  
  .action-btn svg {
    width: 18px;
    height: 18px;
  }
  
  .cart-count {
    font-size: 10px;
    min-width: 16px;
    height: 16px;
  }
}

/* Dispositivos muito pequenos (320px e menores) */
@media (max-width: 320px) {
  .header-top {
    padding: 4px 0;
  }
  
  .header-top .header-container {
    gap: 4px;
    padding: 0 8px;
  }
  
  .header-brand {
    margin-bottom: 4px;
    gap: 6px;
  }
  
  .header-brand img {
    width: 24px;
    height: 24px;
  }
  
  .header-brand h1 {
    font-size: 14px;
  }
  
  .header-brand .brand-tagline {
    font-size: 10px;
  }
  
  .header-actions {
    gap: 4px;
  }
  
  .search-input {
    font-size: 13px;
    padding: 6px 10px;
  }
  
  .action-buttons {
    gap: 4px;
  }
  
  .action-btn {
    min-width: 36px;
    height: 36px;
    padding: 4px 8px;
  }
  
  .action-btn svg {
    width: 16px;
    height: 16px;
  }
  
  .cart-count {
    font-size: 9px;
    min-width: 14px;
    height: 14px;
  }
}

/* Tablets pequenos e larguras médias (480px a 768px) */
@media (min-width: 481px) and (max-width: 768px) {
  .header-top {
    padding: 10px 0;
  }
  
  .header-top .header-container {
    gap: 10px;
    padding: 0 20px;
  }
  
  .header-brand {
    margin-bottom: 10px;
    gap: 12px;
  }
  
  .header-brand img {
    width: 32px;
    height: 32px;
  }
  
  .header-brand h1 {
    font-size: 17px;
  }
  
  .header-brand .brand-tagline {
    font-size: 12px;
  }
  
  .header-actions {
    gap: 10px;
  }
  
  .search-input {
    font-size: 15px;
    padding: 10px 14px;
  }
  
  .action-buttons {
    gap: 10px;
  }
  
  .action-btn {
    min-width: 48px;
    height: 48px;
    padding: 10px 14px;
  }
  
  .action-btn svg {
    width: 22px;
    height: 22px;
  }
  
  .cart-count {
    font-size: 12px;
    min-width: 18px;
    height: 18px;
  }
}

/* Large Mobile (414px - iPhone 12/13 Pro Max) */
@media (min-width: 414px) and (max-width: 480px) {
  .header-brand h1 {
    font-size: 16px;
  }
  
  .header-brand .brand-tagline {
    font-size: 12px;
  }
  
  .action-btn {
    min-width: 44px;
    height: 44px;
  }
  
  .action-btn svg {
    width: 20px;
    height: 20px;
  }
}

.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  border-bottom: 1px solid #e5e7eb;
  background: #f8f9fa;
}

.cart-header h3 {
  margin: 0;
  color: #1f2937;
}

.cart-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #6b7280;
  padding: 0.25rem;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.cart-close:hover {
  background: #e5e7eb;
  color: #1f2937;
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
}

.cart-item {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  margin-bottom: 1rem;
  transition: all 0.3s ease;
}

.cart-item:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.cart-item-image {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 8px;
}

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

.cart-item-name {
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 0.25rem;
}

.cart-item-price {
  color: #2563eb;
  font-weight: 500;
}

.cart-item-quantity {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.quantity-btn {
  background: #f3f4f6;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  width: 24px;
  height: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.quantity-btn:hover {
  background: #e5e7eb;
}

.quantity-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.cart-item-remove {
  background: #dc2626;
  color: white;
  border: none;
  border-radius: 4px;
  padding: 0.25rem 0.5rem;
  cursor: pointer;
  font-size: 0.75rem;
  transition: all 0.3s ease;
  align-self: flex-start;
}

.cart-item-remove:hover {
  background: #b91c1c;
}

.cart-footer {
  padding: 1rem;
  border-top: 1px solid #e5e7eb;
  background: #f8f9fa;
}

.cart-total {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 1rem;
  text-align: right;
}

.cart-total strong {
  color: #2563eb;
}

.cart-footer button {
  width: 100%;
  margin-bottom: 0.5rem;
}

.cart-empty {
  text-align: center;
  padding: 2rem;
  color: #6b7280;
}

.cart-empty svg {
  width: 48px;
  height: 48px;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.cart-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  display: none;
}

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

/* === Modal de Checkout === */
.checkout-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2000;
  display: none;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.checkout-modal.active {
  display: flex;
  opacity: 1;
  visibility: visible;
}

.checkout-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
}

.checkout-content {
  position: relative;
  margin: auto;
  background: white;
  border-radius: 16px;
  max-width: 600px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.checkout-modal.active .checkout-content {
  transform: scale(1);
}

.checkout-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  border-bottom: 1px solid #e5e7eb;
  background: #f8f9fa;
  border-radius: 16px 16px 0 0;
}

.checkout-header h3 {
  margin: 0;
  color: #1f2937;
  font-size: 1.25rem;
}

.checkout-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #6b7280;
  padding: 0.5rem;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.checkout-close:hover {
  background: #e5e7eb;
  color: #1f2937;
}

.checkout-order-summary {
  padding: 1.5rem;
  border-bottom: 1px solid #e5e7eb;
}

.checkout-order-summary h4 {
  margin: 0 0 1rem 0;
  color: #1f2937;
  font-size: 1.1rem;
}

#checkoutSummary {
  margin-bottom: 1rem;
}

.checkout-summary-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid #f3f4f6;
}

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

.checkout-item-name {
  font-weight: 500;
  color: #374151;
}

.checkout-item-details {
  text-align: right;
  color: #6b7280;
  font-size: 0.9rem;
}

.checkout-total {
  text-align: right;
  font-size: 1.25rem;
  color: #2563eb;
  font-weight: 600;
}

.checkout-options {
  padding: 1.5rem;
}

.checkout-options h4 {
  margin: 0 0 1rem 0;
  color: #1f2937;
  font-size: 1.1rem;
}

.contact-option {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  padding: 1rem;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  background: white;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-bottom: 0.75rem;
  text-align: left;
}

.contact-option:hover {
  border-color: #2563eb;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(37, 99, 235, 0.15);
}

.option-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-option.whatsapp .option-icon {
  background: #25d366;
  color: white;
}

.contact-option.instagram .option-icon {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  color: white;
}

.contact-option.facebook .option-icon {
  background: #1877f2;
  color: white;
}

.contact-option.email .option-icon {
  background: #ea4335;
  color: white;
}

.contact-option.presential .option-icon {
  background: #10b981;
  color: white;
}

.option-content h5 {
  margin: 0 0 0.25rem 0;
  color: #1f2937;
  font-size: 1rem;
  font-weight: 600;
}

.option-content p {
  margin: 0;
  color: #6b7280;
  font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
  .checkout-content {
    width: 95%;
    margin: 1rem auto;
    max-height: 95vh;
  }
  
  .checkout-header,
  .checkout-order-summary,
  .checkout-options {
    padding: 1rem;
  }
  
  .contact-option {
    padding: 0.75rem;
  }
  
  .option-icon {
    width: 40px;
    height: 40px;
  }
  
  .option-content h5 {
    font-size: 0.95rem;
  }
  
  .option-content p {
    font-size: 0.85rem;
  }
}

/* === Botão Adicionar ao Carrinho Responsivo === */
.add-to-cart-btn {
  width: 100%;
  margin-top: 8px;
  padding: 12px 16px;
  border: none;
  border-radius: 8px;
  background: #2563eb;
  color: white;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.add-to-cart-btn:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.add-to-cart-btn:active {
  transform: translateY(0);
}

.add-to-cart-btn:disabled {
  background: #9ca3af;
  color: #6b7280;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .add-to-cart-btn {
    padding: 10px 14px;
    font-size: 13px;
    min-height: 40px;
    margin-top: 6px;
  }
}

@media (max-width: 480px) {
  .add-to-cart-btn {
    padding: 8px 12px;
    font-size: 12px;
    min-height: 36px;
    margin-top: 4px;
  }
}

@media (max-width: 360px) {
  .add-to-cart-btn {
    padding: 6px 10px;
    font-size: 11px;
    min-height: 32px;
    margin-top: 3px;
    right: 16px;
  }
}

/* Animação de notificação */
@keyframes slideInUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* === Features Grid === */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.feature-item {
  text-align: center;
  padding: 1.5rem;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 12px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.feature-item h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #2c3e50;
}

.feature-item p {
  color: #6c757d;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .features-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .feature-item {
    padding: 1rem;
  }
}

/* === Performance Optimizations === */
.product img {
  will-change: transform;
  transform: translateZ(0);
  backface-visibility: hidden;
}

.products-grid {
  contain: layout style paint;
}

.category {
  contain: layout style paint;
}

/* === Image Loading Optimization === */
img[data-src] {
  background: linear-gradient(45deg, #f0f0f0 25%, transparent 50%);
  background-size: cover;
  min-height: 110px;
  transition: opacity 0.3s ease;
}

img.lazy:not([src]) {
  opacity: 1 !important; /* CORRIGIDO - não esconder imagens */
}

img.lazy.loaded {
  opacity: 1 !important; /* CORRIGIDO - garantir visibilidade */
}

/* === Reset & Variables === */
* { 
  box-sizing: border-box; 
  margin: 0; 
  padding: 0; 
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; 
}

/* === Animações Globais === */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.animate-fadeInUp {
  animation: fadeInUp 0.6s ease-out;
}

.animate-slideInLeft {
  animation: slideInLeft 0.5s ease-out;
}

.animate-pulse {
  animation: pulse 2s infinite;
}

body { 
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}

/* === Sistema de Avaliações === */
.rating-container {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0;
  font-size: 14px;
}

.stars {
  display: flex;
  gap: 2px;
}

.star {
  width: 16px;
  height: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  color: #d1d5db;
}

.star:hover {
  transform: scale(1.1);
}

.star.filled {
  color: #fbbf24;
  animation: starPop 0.3s ease;
}

.star.half-filled {
  position: relative;
  color: #d1d5db;
}

.star.half-filled::before {
  content: '★';
  position: absolute;
  left: 0;
  top: 0;
  width: 50%;
  overflow: hidden;
  color: #fbbf24;
}

@keyframes starPop {
  0% { transform: scale(1); }
  50% { transform: scale(1.3); }
  100% { transform: scale(1); }
}

.rating-text {
  color: #6b7280;
  font-size: 12px;
  font-weight: 500;
}

.rating-count {
  color: #9ca3af;
  font-size: 11px;
}

.reviews-section {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(148, 163, 184, 0.1);
}

.review-item {
  margin-bottom: 12px;
  padding: 8px;
  background: rgba(248, 250, 252, 0.5);
  border-radius: 6px;
  border-left: 3px solid #3b82f6;
}

.review-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.review-author {
  font-weight: 600;
  color: #374151;
  font-size: 13px;
}

.review-date {
  color: #9ca3af;
  font-size: 11px;
}

.review-rating {
  display: flex;
  gap: 1px;
  margin-bottom: 4px;
}

.review-rating .star {
  width: 12px;
  height: 12px;
  color: #fbbf24;
}

.review-text {
  color: #4b5563;
  font-size: 12px;
  line-height: 1.4;
}

.add-review-btn {
  width: 100%;
  padding: 8px;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 6px;
  color: #475569;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 8px;
}

.add-review-btn:hover {
  background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
  transform: translateY(-1px);
}

.review-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

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

.review-modal-content {
  background: white;
  border-radius: 12px;
  padding: 24px;
  width: 90%;
  max-width: 400px;
  transform: scale(0.9);
  transition: all 0.3s ease;
}

.review-modal.active .review-modal-content {
  transform: scale(1);
}

.review-modal h3 {
  margin-bottom: 16px;
  color: #1f2937;
}

.review-form-group {
  margin-bottom: 16px;
}

.review-form-group label {
  display: block;
  margin-bottom: 4px;
  font-weight: 500;
  color: #374151;
  font-size: 14px;
}

.review-form-group input,
.review-form-group textarea {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 6px;
  font-size: 14px;
  transition: all 0.3s ease;
}

.review-form-group input:focus,
.review-form-group textarea:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.review-form-group textarea {
  resize: vertical;
  min-height: 80px;
}

.review-rating-input {
  display: flex;
  gap: 4px;
  font-size: 24px;
}

.review-rating-input .star {
  width: 24px;
  height: 24px;
}

.review-modal-actions {
  display: flex;
  gap: 8px;
  margin-top: 20px;
}

.review-modal-actions button {
  flex: 1;
  padding: 10px 16px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

/* Desktop (acima de 768px) */
@media (min-width: 769px) {
  header {
    flex-wrap: nowrap;
    padding: 16px 24px;
    gap: 0px;
    position: sticky;
    top: 0;
    z-index: 100;
  }
  
  header .brand-title {
    order: 1;
    width: auto;
    text-align: left;
    margin-bottom: 0;
  }
  
  header .header-actions {
    order: 3;
    width: auto;
    margin-top: 0;
    gap: 12px;
  }
  
  header .cart-btn {
    padding: 8px 16px;
    font-size: 14px;
    min-height: auto;
    background: #2563eb;
    color: white;
    border: none;
    cursor: pointer;
  }
  
  .tabs {
    order: 4;
    width: auto;
    margin-top: 0;
    padding: 0;
    overflow-x: visible;
  }
  
  .tab-btn {
    padding: 8px 16px;
    font-size: 14px;
    min-height: auto;
    white-space: nowrap;
  }
}


/* === Container === */
.container {
  max-width: 1200px;
  margin: 30px auto;
  padding: 20px;
  display: flex;
  gap: 24px;
}

aside { 
  width: 270px;
}
.box {
  background: #fff;
  padding: 18px;
  margin-bottom: 18px;
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(22,22,22,0.05);
}
.box h3 { 
  margin-bottom: 10px; 
  font-size: 15px; 
}
.box p, 
.box li { 
  font-size: 14px; 
  margin-bottom: 6px; 
}
.box ul { 
  list-style: none; 
}
.box ul li { 
  padding: 6px; 
  cursor: pointer; 
}
.box ul li:hover { 
  background: #eee; 
}
main { 
  flex: 1; 
  padding: 20px; /* cria espaçamento interno ao redor do conteúdo principal */
}
.section { 
  margin-bottom: 25px; 
}
.section h2 { 
  font-size: 18px; 
  margin-bottom: 10px; 
}
/* === Product Cards === */
.product {
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  align-items: center;
  height: 28rem;
  background: rgb(255, 255, 255);
  border-radius: 0.75rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
  margin-bottom: 20px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  contain: layout style paint;
}

.product:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  border-color: rgba(17, 122, 163, 0.2);
}

.product::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand-600), var(--brand-500));
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.product:hover::before {
  transform: scaleX(1);
}

.empty-state {
  background: rgba(255,255,255,0.8);
  border: 1px dashed rgba(17, 122, 163, 0.35);
  border-radius: 12px;
  padding: 14px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.product img { 
  width: 100% !important;
  height: 180px !important;
  object-fit: contain !important;
  background: linear-gradient(135deg, #f8f9fa, #e9ecef) !important;
  padding: 20px !important;
  border-radius: 0.75rem 0.75rem 0 0 !important;
  transition: transform 0.3s ease !important;
  display: block !important;
}

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

.product-info { 
  width: 100%;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}
.product-info h4 { 
  font-size: 14px;
  font-weight: 700;
  margin: 0 0 4px;
  color: var(--text);
  line-height: 1.3;
  display: -webkit-box;
  display: -moz-box;
  display: box;
  -webkit-line-clamp: 2;
  -moz-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  -moz-box-orient: vertical;
  box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 480px) {
  .product-info h4 {
    font-size: 13px;
    line-height: 1.2;
  }
}

@media (max-width: 360px) {
  .product-info h4 {
    font-size: 12px;
    line-height: 1.1;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 2.8em;
  }
}

.price { 
  font-size: 18px; 
  font-weight: 700; 
  color: var(--brand-600);
  margin: 0;
  white-space: nowrap;
}

.add { 
  background: linear-gradient(135deg, var(--brand-600), var(--brand-500));
  color: #fff; 
  border: none; 
  width: 100%; 
  height: 44px; 
  font-size: 16px; 
  font-weight: 600;
  border-radius: 0.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  margin-top: auto;
  position: relative;
  overflow: hidden;
}

.add::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.add:hover::before {
  width: 300px;
  height: 300px;
}

.add:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(17, 122, 163, 0.3);
}

.add:disabled {
  background: #94a3b8;
  cursor: not-allowed;
  opacity: 0.6;
}

.stock-status {
  font-size: 12px;
  font-weight: 600;
  margin-top: 4px;
  padding: 2px 6px;
  border-radius: 4px;
  display: inline-block;
}

.stock-status.disponivel {
  color: #059669;
  background: rgba(5, 150, 105, 0.1);
}

.stock-status.esgotado {
  color: #dc2626;
  background: rgba(220, 38, 38, 0.1);
}

.product.sem-estoque {
  opacity: 0.7;
}

.product.sem-estoque .product-info {
  opacity: 0.8;
}
.add:hover {
  filter: brightness(1.03);
}
/* === Footer === */
footer { 
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 8px 10px; 
  position: fixed; 
  bottom: 0; 
  width: 100%; 
  display: flex; 
  justify-content: center; 
  gap: 10px; 
  z-index: 100;
  transform: translateY(0);
  transition: transform 0.3s ease, opacity 0.3s ease;
  background: rgba(255, 255, 255, 0.95);
}

/* Footer escondido quando usuário rola para baixo */
footer.hidden {
  transform: translateY(100%);
  opacity: 0;
}

/* Footer minimizado no mobile */
@media (max-width: 768px) {
  footer {
    padding: 6px;
    gap: 8px;
    flex-wrap: wrap;
    max-height: 40px;
    overflow: hidden;
  }
  
  footer button {
    padding: 4px 8px;
    font-size: 0.8rem;
  }
}

footer button { 
  padding: 4px 10px; 
  border: 1px solid var(--border);
  background: var(--surface);
  cursor: pointer; 
  border-radius: 6px;
  font-size: 0.85rem;
  transition: all 0.2s ease;
}
footer button:hover {
  border-color: rgba(17, 122, 163, 0.35);
  background: rgba(17, 122, 163, 0.06);
  transform: translateY(-1px);
}

.site-footer,
.simple-footer {
  position: static;
  width: auto;
  display: block;
  padding: 0;
  max-height: none;
  overflow: visible;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  background: #0f172a;
  color: #e2e8f0;
  transform: none;
  opacity: 1;
}

.site-footer-inner,
.simple-footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 20px;
}

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

.site-footer-brand img {
  display: inline-block;
  margin-bottom: 12px;
}

.site-footer-brand h2,
.site-footer-column h3 {
  margin: 0 0 12px;
  color: #fff;
}

.site-footer-brand p,
.site-footer-contact p,
.simple-footer p {
  margin: 0;
  color: #cbd5e1;
  line-height: 1.6;
}

.site-footer-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.site-footer-badges span {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.18);
  color: #dbeafe;
  font-size: 12px;
  font-weight: 700;
}

.site-footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.site-footer-links a,
.site-footer-links button,
.site-footer-contact a,
.simple-footer a {
  color: #cbd5e1;
  text-decoration: none;
}

.site-footer-links button {
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  font: inherit;
  cursor: pointer;
}

.site-footer-links button:hover {
  background: transparent;
  transform: none;
  border-color: transparent;
}

.site-footer-links a:hover,
.site-footer-links button:hover,
.site-footer-contact a:hover,
.simple-footer a:hover {
  color: #fff;
  text-decoration: underline;
}

.site-footer-contact {
  display: grid;
  gap: 10px;
}

.site-footer-bottom,
.simple-footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.site-footer-bottom {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid rgba(148, 163, 184, 0.16);
  font-size: 14px;
  color: #94a3b8;
}

.site-footer-bottom a {
  color: #dbeafe;
  text-decoration: none;
}

.site-footer-bottom a:hover {
  text-decoration: underline;
}

.policy-page {
  background: #f8fafc;
  color: #0f172a;
}

.policy-header-shell {
  background: #fff;
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
  position: sticky;
  top: 0;
  z-index: 50;
}

.policy-header-container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 18px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.policy-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.policy-brand img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.policy-brand h1 {
  margin: 0;
  font-size: 20px;
  color: var(--brand-700);
}

.policy-brand-tagline {
  display: block;
  margin-top: 2px;
  color: #64748b;
  font-size: 14px;
}

.policy-nav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.policy-nav-link {
  padding: 10px 14px;
  border-radius: 999px;
  color: #475569;
  text-decoration: none;
  background: #f8fafc;
  border: 1px solid rgba(148, 163, 184, 0.18);
}

.policy-nav-link.active,
.policy-nav-link:hover {
  color: #0f172a;
  background: #e0f2fe;
  border-color: rgba(59, 130, 246, 0.24);
}

.policy-main {
  padding: 32px 20px 48px;
}

.policy-container {
  max-width: 960px;
  margin: 0 auto;
}

.policy-hero {
  padding: 28px;
  border-radius: 24px;
  background: linear-gradient(135deg, #eff6ff 0%, #ffffff 100%);
  border: 1px solid rgba(59, 130, 246, 0.12);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 14px;
  color: #64748b;
}

.breadcrumb a {
  color: var(--brand-700);
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.policy-title {
  margin: 0 0 8px;
  font-size: 36px;
  line-height: 1.1;
}

.policy-subtitle {
  margin: 0;
  color: #475569;
}

.policy-highlight-grid,
.policy-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.policy-highlight-card,
.policy-card {
  padding: 18px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.policy-highlight-card h2,
.policy-card h2,
.policy-section h2 {
  margin: 0 0 10px;
  font-size: 22px;
  line-height: 1.25;
  color: #0f172a;
}

.policy-highlight-card p,
.policy-card p,
.policy-section p,
.policy-section li {
  color: #475569;
  line-height: 1.7;
}

.policy-content {
  margin-top: 24px;
  display: grid;
  gap: 18px;
}

.policy-section {
  padding: 24px;
  border-radius: 20px;
  background: #fff;
  border: 1px solid rgba(148, 163, 184, 0.16);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.05);
}

.policy-section ul {
  margin: 12px 0 0;
  padding-left: 20px;
}

.policy-note {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 14px;
  background: #eff6ff;
  border: 1px solid rgba(59, 130, 246, 0.14);
}

.faq-list {
  display: grid;
  gap: 14px;
}

.faq-item {
  padding: 18px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(148, 163, 184, 0.18);
}

.faq-item h2 {
  margin: 0 0 8px;
  font-size: 20px;
}

.simple-footer {
  margin-top: 32px;
}

@media (max-width: 900px) {
  .site-footer-grid,
  .policy-highlight-grid,
  .policy-card-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 700px) {
  .site-footer-grid,
  .policy-highlight-grid,
  .policy-card-grid {
    grid-template-columns: 1fr;
  }

  .policy-header-container {
    flex-direction: column;
    align-items: flex-start;
  }

  .policy-main {
    padding: 24px 16px 40px;
  }

  .policy-hero,
  .policy-section {
    padding: 20px;
  }

  .policy-title {
    font-size: 28px;
  }
}

/* Adicionar padding ao main para não ficar escondido atrás do footer */
main {
  padding-bottom: 32px;
}

@media (max-width: 768px) {
  main {
    padding-bottom: 24px;
  }
}


.tabs {
  background: var(--surface);
  padding: 18px 18px;
  display: flex;
  gap: 12px;
  border: 1px solid var(--border);
  max-width: 1200px;
  margin: 18px auto 0;
  border-radius: 14px;
  box-shadow: var(--shadow);
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(15, 91, 134, 0.35) transparent;
  cursor: grab;
  position: relative;
}

.tabs:active {
  cursor: grabbing;
}

.tabs::-webkit-scrollbar {
  height: 14px;
}

.tabs::-webkit-scrollbar-track {
  background: transparent;
}

.tabs::-webkit-scrollbar-thumb {
  background: rgba(15, 91, 134, 0.3);
  border-radius: 2px;
  border: 3px solid transparent;
  background-clip: content-box;
}

.tabs:hover::-webkit-scrollbar-thumb {
  background: rgba(15, 91, 134, 0.42);
  border: 3px solid transparent;
  background-clip: content-box;
}

.tab-btn {
  padding: 10px 16px;
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  color: var(--muted);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  font-size: 12px;
}

.tab-btn:hover {
  color: var(--brand-600);
  background: rgba(17, 122, 163, 0.05);
  transform: translateY(-1px);
}

.tab-btn:active {
  transform: translateY(0);
}

.tab-btn::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 3px;
  background: linear-gradient(135deg, var(--brand-700), var(--brand-500));
  color: #fff;
  border-color: rgba(0,0,0,0.0);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateX(-50%);
}

.tab-btn:hover::before {
  width: 100%;
}

.tab-btn:hover {
  color: var(--brand-600);
  background: rgba(17, 122, 163, 0.05);
}

.tab-btn.active {
  background: linear-gradient(135deg, var(--brand-700), var(--brand-500));
  color: #fff;
  border-color: rgba(0,0,0,0.0);
}

.load-more {
  width: 100%;
  margin: 10px 0 22px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(15, 91, 134, 0.18);
  background: rgba(255,255,255,0.85);
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(2, 12, 27, 0.08);
}

.load-more:hover {
  background: rgba(17, 122, 163, 0.08);
}

/* Home */
.home-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.22), transparent 30%),
    linear-gradient(135deg, #0f172a 0%, #1d4ed8 55%, #38bdf8 100%);
  color: #fff;
  padding: 56px 28px;
  border-radius: 24px;
  margin-bottom: 32px;
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
  box-shadow: 0 30px 70px rgba(15, 23, 42, 0.24);
}

.home-hero::after {
  content: '';
  position: absolute;
  inset: auto -120px -120px auto;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  filter: blur(10px);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-start;
  margin-bottom: 24px;
}

.hero-eyebrow span {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.8fr);
  gap: 24px;
  align-items: stretch;
}

.hero-copy {
  text-align: left;
}

.hero-kicker {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
}

.home-hero h1 {
  font-size: 42px;
  margin-bottom: 14px;
  line-height: 1.08;
}

.home-hero p {
  font-size: 17px;
  opacity: 0.94;
  margin-bottom: 24px;
  max-width: 680px;
}

.hero-buttons {
  display: flex;
  gap: 12px;
  justify-content: flex-start;
  flex-wrap: wrap;
  align-items: center;
}

.hero-buttons > .btn-primary,
.hero-buttons > .btn-whatsapp,
.hero-buttons > .hero-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
}

.hero-primary-btn {
  min-width: 260px;
  max-width: 100%;
  padding: 16px 28px;
  font-size: 16px;
  white-space: nowrap;
}

.hero-link {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  margin-top: 0;
}

.hero-link:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.hero-microcopy {
  margin: 18px 0 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.82);
}

.hero-panel {
  display: grid;
  gap: 14px;
  align-content: start;
}

.hero-panel-item {
  padding: 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.hero-panel-item strong {
  display: block;
  margin-bottom: 8px;
  font-size: 18px;
  line-height: 1.3;
}

.hero-panel-item p {
  margin: 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.82);
}

.hero-panel-label {
  display: inline-block;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.home-trust-section {
  margin-top: -6px;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.trust-strip-item {
  padding: 22px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(148, 163, 184, 0.22);
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.08);
}

.trust-strip-item h2 {
  margin: 0 0 10px;
  color: #0f172a;
  font-size: 20px;
  line-height: 1.25;
}

.trust-strip-item p {
  margin: 0;
  color: #475569;
  font-size: 15px;
}

.trust-strip-label {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--brand-700);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.btn-primary {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 50%, #1d4ed8 100%);
  color: #ffffff;
  border: none;
  padding: 12px 24px;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.2);
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s ease;
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 50%, #1e40af 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.btn-whatsapp {
  background: #25d366;
  color: #fff;
  text-decoration: none;
  padding: 12px 24px;
  border-radius: 10px;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.btn-whatsapp::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn-whatsapp:hover::before {
  width: 300px;
  height: 300px;
}

.btn-whatsapp:hover {
  background: #128c7e;
}

.btn-olx {
  background: #002f6c;
  color: #fff;
  text-decoration: none;
  padding: 12px 24px;
  border-radius: 10px;
  font-weight: 600;
  transition: all 0.2s;
}

.btn-olx:hover {
  background: #002354;
}

.btn-instagram {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  color: #fff;
  text-decoration: none;
  padding: 12px 24px;
  border-radius: 10px;
  font-weight: 600;
  transition: all 0.2s;
}

.btn-instagram:hover {
  background: linear-gradient(45deg, #e08322 0%, #d5572b 25%, #c71f3a 50%, #b71e5a 75%, #a71577 100%);
}

.btn-facebook {
  background: #1877f2;
  color: #fff;
  text-decoration: none;
  padding: 12px 24px;
  border-radius: 10px;
  font-weight: 600;
  transition: all 0.2s;
}

.btn-facebook:hover {
  background: #166fe5;
}

.btn-maps {
  background: #ea4335;
  color: #fff;
  text-decoration: none;
  padding: 12px 24px;
  border-radius: 10px;
  font-weight: 600;
  transition: all 0.2s;
}

.btn-maps:hover {
  background: #d23324;
}

.btn-outline {
  background: transparent;
  color: var(--brand-700);
  border: 2px solid var(--brand-700);
  padding: 12px 24px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  margin-top: 16px;
}

.btn-outline:hover {
  background: var(--brand-700);
  color: #fff;
}

.text-center {
  text-align: center;
}

.home-section {
  margin-bottom: 48px;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 16px;
}

.home-section h2 {
  font-size: 20px;
  margin-bottom: 20px;
  color: var(--brand-700);
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  align-items: stretch;
}

/* === Category Cards === */
.category-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 280px;
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.category-image {
  width: 100%;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8f9fa;
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
}

.category-image img {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  display: block !important;
  overflow: hidden !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  border-radius: 0 !important;
}

.category-info {
  padding: 1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: center;
  gap: 0.5rem;
  min-height: 120px;
  /* Garantir espaço consistente para o botão */
  contain: layout;
  /* Limitar altura do título para não comprimir o botão */
  max-height: 60px;
}

.category-info h3 {
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--brand-700);
  line-height: 1.2;
  /* Manter em uma única linha */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  /* Altura fixa para uniformidade */
  height: auto;
  min-height: 20px;
  text-align: center;
}

.category-info p {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}

.category-info .btn-primary {
  width: 100%;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 600;
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 50%, #6d28d9 100%);
  color: #ffffff;
  border: none;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(139, 92, 246, 0.2);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  flex-shrink: 0;
  height: 44px;
  white-space: nowrap;
  text-overflow: ellipsis;
  margin-top: auto;
}

.category-info .btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.25),
    transparent
  );
  transition: left 0.5s ease;
}

.category-info .btn-primary:hover::before {
  left: 100%;
}

.category-info .btn-primary:hover {
  background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 50%, #5b21b6 100%);
  box-shadow: 0 2px 8px rgba(139, 92, 246, 0.3);
}

.category-info .btn-primary:active {
  box-shadow: 0 2px 8px rgba(139, 92, 246, 0.3);
}

.category-image {
  width: 100%;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8f9fa;
  position: relative;
  overflow: hidden;
}

.category-image img {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: cover !important;
  display: block !important;
  overflow: hidden !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  border-radius: 0 !important;
  transition: transform 0.3s ease;
}

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

/* Garantir que todas as imagens dos category-card fiquem sem overflow */
.category-card .category-image img,
.category-card .category-image img.loading,
.category-card .category-image img.loaded {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  min-width: 100% !important;
  min-height: 100% !important;
  object-fit: contain !important;
  display: block !important;
  overflow: hidden !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  z-index: 2 !important;
  border-radius: 0 !important;
}

/* Responsividade para category-card */
@media (max-width: 768px) {
  .category-image {
    height: 160px !important;
  }
  
  .category-image img {
    height: 160px !important;
  }
}

@media (max-width: 480px) {
  .category-image {
    height: 140px !important;
  }
  
  .category-image img {
    height: 140px !important;
  }
}

@media (max-width: 360px) {
  .category-image {
    height: 120px !important;
  }
  
  .category-image img {
    height: 120px !important;
  }
}

.category-info {
  padding: 16px;
  text-align: center;
}

.category-info h3 {
  margin: 0 0 8px 0;
  font-size: 16px;
  font-weight: 600;
  color: #333;
  line-height: 1.3;
}

.category-count {
  margin: 0 0 12px 0;
  font-size: 14px;
  color: #666;
  font-weight: 500;
}

.category-info .btn-primary {
  width: 100%;
  padding: 8px 16px;
  font-size: 14px;
  border-radius: 6px;
  border: none;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: white;
  cursor: pointer;
  transition: all 0.2s ease;
}

.category-info .btn-primary:hover {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  transform: translateY(-1px);
}

@media (max-width: 600px) {
  .categories-grid {
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 12px;
  }
  
  /* Category Info responsivo */
  .category-info {
    padding: 12px !important;
    text-align: center !important;
  }
  
  .category-info h3 {
    font-size: 14px !important;
    margin: 0 0 6px 0 !important;
    line-height: 1.3 !important;
  }
  
  .category-info p {
    font-size: 12px !important;
    margin: 0 0 12px 0 !important;
    line-height: 1.4 !important;
  }
  
  .category-info .btn-primary {
    padding: 10px 12px !important;
    font-size: 13px !important;
    min-height: 44px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    margin-top: auto !important;
  }
}

@media (max-width: 480px) {
  .categories-grid {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
  }
  
  .category-info {
    padding: 10px !important;
  }
  
  .category-info h3 {
    font-size: 13px !important;
    margin: 0 0 4px 0 !important;
  }
  
  .category-info p {
    font-size: 11px !important;
    margin: 0 0 10px 0 !important;
  }
  
  .category-info .btn-primary {
    padding: 8px 10px !important;
    font-size: 12px !important;
    min-height: 40px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    margin-top: auto !important;
  }
}

@media (max-width: 360px) {
  .categories-grid {
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 8px;
  }
  
  .category-info {
    padding: 8px !important;
  }
  
  .category-info h3 {
    font-size: 12px !important;
    margin: 0 0 3px 0 !important;
  }
  
  .category-info p {
    font-size: 10px !important;
    margin: 0 0 8px 0 !important;
  }
  
  .category-info .btn-primary {
    padding: 6px 8px !important;
    font-size: 11px !important;
    min-height: 36px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    margin-top: auto !important;
  }
}


.contact-info {
  display: grid;
  gap: 12px;
  max-width: 600px;
  margin: 0 auto;
}

@media (max-width: 600px) {
  .contact-info {
    gap: 10px;
  }
  .contact-item {
    flex-direction: column;
    gap: 4px;
    font-size: 14px;
  }
}

.contact-item {
  display: flex;
  gap: 8px;
  font-size: 15px;
}

.contact-item strong {
  flex: 0 0 auto;
}

.contact-item a {
  color: var(--brand-700);
  text-decoration: none;
}

.contact-item a:hover {
  text-decoration: underline;
}

/* Responsividade Home */
@media (max-width: 900px) {
  .home-hero {
    padding: 32px 16px;
  }
  .home-hero h1 {
    font-size: 22px;
  }
  .home-hero p {
    font-size: 15px;
  }
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
  .btn-primary, .btn-whatsapp {
    width: 100%;
    max-width: 280px;
  }
  .categories-grid {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  }
  .home-section {
    padding: 0 12px;
  }
}

@media (max-width: 600px) {
  header {
    padding: 8px 12px;
    flex-wrap: wrap;
  }
  header .brand-logo {
    width: 50px !important;
    height: 50px !important;
  }
  header .brand-title {
    font-size: 16px;
  }
  
  .tabs {
    padding: 8px;
  }
  .tab-btn {
    padding: 8px 12px;
    font-size: 11px;
    min-width: 60px;
  }
  .home-hero {
    padding: 24px 16px;
    margin-bottom: 24px;
  }
  .home-hero h1 {
    font-size: 22px;
    margin-bottom: 12px;
    text-align: center;
  }
  .home-hero p {
    font-size: 14px;
    margin-bottom: 20px;
    text-align: center;
    line-height: 1.4;
  }
  .hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
  }
  .hero-buttons .btn-primary,
  .hero-buttons .btn-whatsapp,
  .hero-buttons .btn-olx,
  .hero-buttons .btn-instagram,
  .hero-buttons .btn-facebook,
  .hero-buttons .btn-maps {
    width: 100%;
    max-width: 280px;
    padding: 14px 20px;
    font-size: 14px;
    text-align: center;
  }
  .home-section {
    margin-bottom: 32px;
    padding: 0 16px;
  }
  .home-section h2 {
    font-size: 20px;
    margin-bottom: 16px;
  }
  .product {
    padding: 10px;
    gap: 10px;
    margin-bottom: 10px;
    min-height: 80px;
  }
  .product img {
    width: 60px;
    height: 60px;
    font-size: 10px;
  }
  .product h4 {
    font-size: 12px;
    margin-bottom: 2px;
  }
  .price {
    font-size: 13px;
    margin-bottom: 2px;
  }
  .stock-status {
    font-size: 9px;
    margin-bottom: 2px;
  }
  .add {
    width: 32px;
    height: 32px;
    font-size: 16px;
  }
  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 0 16px;
  }
  .category-card {
    height: 100%;
    min-height: 260px;
  }
  .category-card h3 {
    font-size: 16px;
  }
  .category-card p {
    font-size: 13px;
  }
  .contact-info {
    padding: 0 16px;
  }
  .contact-item {
    padding: 16px 0;
    font-size: 14px;
    border-bottom: 1px solid var(--border);
  }
  .contact-item:last-child {
    border-bottom: none;
  }
  .contact-item strong {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    color: var(--muted);
  }
  .contact-item a {
    word-break: break-all;
  }
}

.category {
  animation: fadeIn 0.3s;
  max-width: 1000px;
  margin: 0 auto 80px;
  padding: 22px;
  border-radius: 10px;
  background: transparent;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  align-items: stretch;
  width: 100%;
  container-type: inline-size;
}

/* Layout flexível baseado no espaço disponível */
@container (min-width: 320px) {
  .products-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
  }
}

@container (min-width: 480px) {
  .products-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 18px;
  }
}

@container (min-width: 768px) {
  .products-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
  }
}

@container (min-width: 1024px) {
  .products-grid {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
  }
}

@container (min-width: 1280px) {
  .products-grid {
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 28px;
  }
}

/* Produtos se adaptam ao container */
.products-grid .product {
  width: 100%;
  min-width: 280px;
  max-width: 400px;
  justify-self: stretch;
  align-self: stretch;
  transition: all 0.3s ease;
}

/* Layout responsivo tradicional como fallback */
@media (max-width: 767px) {
  .products-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .products-grid .product {
    min-width: auto;
    max-width: none;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .products-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 18px;
  }
}

@media (min-width: 1024px) and (max-width: 1279px) {
  .products-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
  }
}

@media (min-width: 1280px) {
  .products-grid {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
  }
}

@media (max-width: 768px) {
  /* Header Top - Mobile - Layout em duas linhas */
  .header-top {
    padding: 8px 0;
    overflow-x: visible;
  }
  
  .header-top .header-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow-x: visible;
  }
  
  /* Primeira linha: Logo */
  .header-top .header-container > .header-brand {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 8px; /* Espaço para a linha de baixo */
  }
  
  /* Segunda linha: Barra de pesquisa e botões */
  .header-top .header-container > .header-actions {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 8px; /* Espaço entre pesquisa e botões */
    order: 2; /* Segunda linha */
  }
  
  /* Barra de pesquisa */
  .search-container {
    width: 100%;
    order: 1; /* Primeiro elemento da segunda linha */
  }
  
  /* Botões de ação centralizados */
  .action-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    order: 2; /* Segundo elemento da segunda linha */
    width: 100%;
  }
  
  .header-brand {
    flex-shrink: 0;
    min-width: auto;
    /* Posicionamento no canto superior com margem */
    align-self: flex-start;
    margin-left: 16px; /* Margem apenas na esquerda */
    margin-right: 16px; /* Margem apenas na direita */
    margin-top: 12px;
    margin-bottom: 8px; /* Espaço para os botões */
    /* Layout horizontal: logo e texto em lados opostos */
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: calc(100% - 32px); /* Largura total menos as margens */
    gap: 8px;
  }
  
  .header-brand img {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    cursor: pointer;
    order: 1; /* Primeiro elemento (esquerda) */
  }
  
  .header-brand .brand-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end; /* Alinhado à direita */
    order: 2; /* Segundo elemento (direita) */
    margin-left: auto; /* Empurra para a direita */
    margin-right: 8px; /* Margem adicional na direita */
  }
  
  .header-brand h1 {
    font-size: 16px;
    margin: 0;
    line-height: 1.2;
    text-align: left;
    padding-right: 10px; /* Apenas padding à direita */
  }
  
  .header-brand .brand-tagline {
    font-size: 12px;
    margin: 2px 0 0 0; /* Mantido margin-top */
    line-height: 1.2;
    text-align: left;
    opacity: 0.8;
    padding-right: 10px; /* Apenas padding à direita */
  }
  
  .header-actions {
    flex-shrink: 0;
    overflow-x: visible;
    gap: 6px;
  }
  
  /* Segunda linha: Barra de pesquisa */
  .search-container {
    width: 100%;
    min-width: 0;
    overflow-x: visible;
    order: 2;
  }
  
  /* Header e Busca - Continuação */
  
  header input {
    width: 100%;
    font-size: 16px;
    padding: 12px 16px;
    border-radius: 12px;
  }
  
  /* Tabs */
  .tabs {
    padding: 8px 16px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    -ms-overflow-style: auto;
  }
  
  .tabs::-webkit-scrollbar {
    height: 4px;
  }
  
  .tabs::-webkit-scrollbar-track {
    background: rgba(226, 232, 240, 0.3);
    border-radius: 2px;
  }
  
  .tabs::-webkit-scrollbar-thumb {
    background: rgba(59, 130, 246, 0.5);
    border-radius: 2px;
  }
  
  .tabs:hover::-webkit-scrollbar-thumb {
    background: rgba(59, 130, 246, 0.7);
  }
  
  .tab-btn {
    padding: 10px 16px;
    font-size: 13px;
    min-width: 80px;
    white-space: nowrap;
    flex-shrink: 0;
  }
  
  /* Container Principal */
  main {
    padding: 16px;
    max-width: 100%;
  }
  
  /* Grid de Produtos - MOBILE */
  .products-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 0 8px;
  }
  
  .products-grid .product {
    width: 100% !important;
    min-width: auto !important;
    max-width: none !important;
  }
  
  /* Cards de Produtos - MOBILE */
  .product {
    width: 100% !important;
    height: auto !important;
    min-height: 200px;
    max-height: none;
    flex-direction: column;
    align-items: center;
    padding: 12px;
    border-radius: 12px;
    margin-bottom: 0;
  }
  
  .product img {
    width: 100px !important;
    height: 100px !important;
    min-width: 100px !important;
    border-radius: 8px !important;
    padding: 8px !important;
    object-fit: contain !important;
    display: block !important;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef) !important;
    margin-bottom: 12px !important;
  }
  
  .product-info {
    padding: 0;
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
  }
  
  .product-info h4 {
    font-size: 12px;
    line-height: 1.3;
    display: -webkit-box;
    display: -moz-box;
    display: box;
    -webkit-line-clamp: 2;
    -moz-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    -moz-box-orient: vertical;
    box-orient: vertical;
    min-height: 2.6em;
    margin: 0 4px 4px 4px;
    word-break: keep-all;
    overflow-wrap: normal;
    hyphens: none;
    text-align: center;
  }
  
  .price {
    font-size: 13px;
    margin: 0;
    text-align: center;
  }
  
  .stock-status {
    font-size: 11px;
    margin-top: 4px;
    padding: 2px 6px;
    text-align: center;
  }
  
  .add {
    width: 100%;
    height: 32px;
    padding: 0 12px;
    font-size: 12px;
    margin-top: 8px;
    align-self: stretch;
  }
  
  /* Categorias */
  .categories-grid {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
    padding: 0 16px;
  }
  
  .category-card {
    height: 100%;
    min-height: 250px;
  }
  
  .category-card h3 {
    font-size: 14px;
  }
  
  .category-card p {
    font-size: 12px;
  }
  
  /* Home Hero */
  .home-hero {
    padding: 32px 16px;
    text-align: center;
  }
  
  .home-hero h1 {
    font-size: 24px;
    line-height: 1.2;
  }
  
  .home-hero p {
    font-size: 16px;
    line-height: 1.4;
  }
  
  .hero-buttons {
    flex-direction: column;
    gap: 12px;
    margin-top: 24px;
  }
  
  .btn-primary, .btn-whatsapp {
    width: 100%;
    max-width: 300px;
  }
  
  /* Seções */
  .home-section {
    padding: 0 16px;
    margin-bottom: 32px;
  }
  
  .home-section h2 {
    font-size: 20px;
    margin-bottom: 16px;
  }
}

@media (max-width: 900px) {
  .hero-layout {
    grid-template-columns: 1fr;
  }

  .trust-strip {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .home-hero {
    padding: 28px 18px;
  }

  .hero-eyebrow {
    justify-content: center;
  }

  .hero-copy {
    text-align: center;
  }

  .home-hero h1,
  .home-hero p,
  .hero-microcopy {
    max-width: none;
    text-align: center;
  }

  .hero-buttons {
    align-items: stretch;
  }

  .hero-buttons .btn-primary,
  .hero-buttons .btn-whatsapp,
  .hero-buttons .hero-link {
    width: 100%;
    max-width: none;
  }

  .hero-primary-btn {
    min-width: 0;
    padding: 15px 20px;
    font-size: 15px;
  }

  .hero-panel-item strong {
    font-size: 16px;
  }

  .trust-strip-item {
    padding: 18px;
  }
}

/* Extra Small Devices */
@media (max-width: 480px) {
  header {
    padding: 8px 12px;
  }
  
  .header-brand h1 {
    font-size: 18px;
  }
  
  .brand-logo {
    width: 50px !important;
    height: 50px !important;
  }
  
  .header-actions {
    width: 100%;
    justify-content: center;
  }
  
  .search-container {
    width: calc(100% - 24px);
    margin: 0 12px;
  }
  
  header input {
    width: 100%;
    padding: 10px 14px;
    font-size: 14px;
  }
  
  .tab-btn {
    padding: 8px 12px;
    font-size: 12px;
    min-width: 70px;
  }
  
  main {
    padding: 12px;
  }
  
  .product {
    padding: 12px;
    border-radius: 12px;
  }
  
  .product img {
    width: 80px !important;
    height: 80px !important;
    min-width: 80px !important;
    padding: 8px !important;
    object-fit: contain !important;
    display: block !important;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef) !important;
    border-radius: 8px !important;
  }
  
  .product-info {
    padding: 0 0 0 12px;
  }
  
  .product-info h4 {
    font-size: 13px;
  }
  
  .price {
    font-size: 15px;
  }
  
  .add {
    height: 32px;
    padding: 0 12px;
    font-size: 13px;
  }
  
  .categories-grid {
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 8px;
    padding: 0 12px;
  }
  
  .category-card {
    height: 100%;
    min-height: 240px;
  }
  
  .category-card h3 {
    font-size: 13px;
  }
  
  .category-card p {
    font-size: 11px;
  }
}

/* === Filtros Avançados === */
.filters-container {
  position: relative;
  margin-left: 16px;
}

.filters-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 320px;
  min-width: 320px;
  max-width: 400px;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  padding: 20px;
  z-index: 1006; /* Aumentado para ficar acima da barra de pesquisa (1001) */
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  max-height: 80vh;
  overflow-y: auto;
  box-sizing: border-box;
}

.filters-panel.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.filter-group {
  margin-bottom: 20px;
}

.filter-group:last-child {
  margin-bottom: 0;
}

.filter-group label {
  display: block;
  margin-bottom: 12px;
  font-weight: 500;
  color: #374151;
  font-size: 14px;
}

.price-range {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.price-range input {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 6px;
  font-size: 14px;
  box-sizing: border-box;
}

.category-filters,
.brand-filters {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  max-height: 200px;
  overflow-y: auto;
  padding-right: 8px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 6px;
  transition: all 0.2s ease;
  font-size: 14px;
  color: #4b5563;
  width: 100%;
  box-sizing: border-box;
  min-height: 36px;
}

.checkbox-label:hover {
  background: rgba(59, 130, 246, 0.05);
}

.checkbox-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #3b82f6;
  cursor: pointer;
  flex-shrink: 0;
}

.checkbox-label input[type="checkbox"]:checked + span {
  color: #3b82f6;
  font-weight: 500;
}

.checkbox-label span {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.filter-actions {
  display: flex;
  gap: 8px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(148, 163, 184, 0.1);
}

.filter-actions button {
  flex: 1;
  padding: 10px 16px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  min-width: 0;
  box-sizing: border-box;
}

.filter-actions button:first-child {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: white;
}

.filter-actions button:last-child {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  color: #475569;
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.filter-actions button:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Responsive para Filtros */
@media (max-width: 768px) {
  .filters-container {
    margin-left: 8px;
  }
  
  /* Estilos mobile para o botão Aplicar */
  .apply-price-btn {
    padding: 14px 20px;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 10px;
    min-height: 48px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }
  
  .apply-price-btn:hover {
    transform: scale(1.02);
  }
  
  .apply-price-btn:active {
    transform: scale(0.98);
  }
  
  /* Modal de Filtros dentro dos action-buttons */
.action-buttons .filters-modal {
  position: relative;
  top: auto;
  left: auto;
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  color: #475569;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  z-index: 1002;
}

.action-buttons .filters-modal:hover {
  background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-color: rgba(148, 163, 184, 0.4);
}

.action-buttons .filters-modal .filters-modal-content {
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  min-width: 320px;
  max-width: 90vw;
  width: 400px;
  z-index: 1500;
  display: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
}

.action-buttons .filters-modal.active .filters-modal-content {
  display: block;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Botão de Filtros dentro dos action-buttons */
.action-buttons .filters-btn {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 8px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  z-index: 1001;
  min-width: 44px;
  height: 44px;
  pointer-events: auto;
}

.action-buttons .filters-btn:hover {
  background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-color: rgba(148, 163, 184, 0.4);
}

.action-buttons .filters-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.action-buttons .filters-btn svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* Botão Mobile Menu dentro dos action-buttons */
.action-buttons .mobile-menu-btn {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 8px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  z-index: 1001;
  min-width: 44px;
  height: 44px;
}

.action-buttons .mobile-menu-btn:hover {
  background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-color: rgba(148, 163, 184, 0.4);
}

.action-buttons .mobile-menu-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.action-buttons .mobile-menu-btn svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
  .filters-toggle {
    /* Área clicável mínima para toque */
    min-height: 44px;
    min-width: 44px;
  }
  
  /* Modal de Filtros */
  .filters-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1500;
    display: none;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
  }
  
  .filters-modal.active {
    display: block;
    opacity: 1;
    visibility: visible;
  }
  
  .filters-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    max-width: 90vw;
    max-height: 80vh;
    width: 400px;
    overflow-y: auto;
  }
  
  .filters-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid #e5e7eb;
    background: #f8fafc;
    border-radius: 12px 12px 0 0;
  }
  
  .filters-modal-header h3 {
    margin: 0;
    color: #1f2937;
    font-size: 1.1rem;
  }
  
  .filters-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #6b7280;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 10;
  }
  
  .filters-modal-close:hover {
    background: #f3f4f6;
    color: #374151;
  }
  
  .filters-modal-body {
    padding: 1rem;
    display: none; /* Escondido por padrão */
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
  }
  
  .filters-modal.active .filters-modal-body {
    display: block; /* Aparece apenas quando modal está ativo */
    opacity: 1;
    visibility: visible;
  }
  
  .filters-modal-footer {
    padding: 1rem;
    border-top: 1px solid #e5e7eb;
    background: #f8fafc;
    border-radius: 0 0 12px 12px;
    display: flex;
    gap: 0.5rem;
    display: none; /* Escondido por padrão */
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
  }
  
  .filters-modal.active .filters-modal-footer {
    display: flex; /* Aparece apenas quando modal está ativo */
    opacity: 1;
    visibility: visible;
  }
  
  .filters-modal-footer button {
    flex: 1;
    padding: 0.75rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
  }
  
  .apply-filters-btn {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    border: none;
  }
  
  .apply-filters-btn:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
  }
  
  .clear-filters-btn {
    background: #f3f4f6;
    color: #6b7280;
    border: 1px solid #d1d5db;
  }
  
  .clear-filters-btn:hover {
    background: #e5e7eb;
    color: #374151;
  }
  
  /* Botões dentro do painel de filtros */
  .apply-filters-btn,
  .clear-filters-btn {
    /* Área clicável adequada para toque */
    min-height: 44px;
    min-width: 120px;
    padding: 12px 16px;
    font-size: 14px;
    /* Espaçamento seguro entre botões */
    margin: 8px 4px;
    /* Visual melhorado */
    border-radius: 8px;
  }
  
  /* Botões de fechar painéis e modais */
  .filters-close,
  .cart-close,
  .checkout-close {
    /* Área clicável mínima para toque */
    min-width: 44px;
    min-height: 44px;
    padding: 10px;
    font-size: 18px;
    /* Fundo sutil para melhor identificação */
    background: rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    /* Melhor posicionamento visual */
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  /* Botões de fechar hover */
  .filters-close:hover,
  .cart-close:hover,
  .checkout-close:hover {
    background: rgba(0, 0, 0, 0.1);
  }
  
  .filters-panel {
    width: 280px;
    right: -50px;
    padding: 16px;
  }
  
  .category-filters,
  .brand-filters {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .filters-panel {
    width: calc(100vw - 32px);
    right: -16px;
    left: 16px;
  }
}

/* === OUTROS ESTILOS === */

/* Estados de Loading */
.loading-state {
  position: relative;
  overflow: hidden;
}

.loading-state::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
  animation: loading-shimmer 1.5s infinite;
}

@keyframes loading-shimmer {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

/* Animações de Sucesso/Erro */
.success-message {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 16px;
  text-align: center;
  animation: slideDown 0.3s ease-out;
}

.error-message {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: white;
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 16px;
  text-align: center;
  animation: shake 0.5s ease-out;
}

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

@keyframes shake {
  0%, 100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-5px);
  }
  75% {
    transform: translateX(5px);
  }
}

/* === CORREÇÃO FINAL DAS IMAGENS === */
/* Força todas as imagens de produto a terem tamanho consistente */
.products-grid .product-card img,
.products-grid .product img,
.product-card img,
.product img,
.product-image img {
  width: 100% !important;
  height: 200px !important;
  max-width: 100% !important;
  max-height: 200px !important;
  min-width: 100% !important;
  min-height: 200px !important;
  object-fit: contain !important;
  object-position: center !important;
  border-radius: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  display: block !important;
  background: transparent !important;
}

/* Container das imagens */
.products-grid .product-image,
.product-image {
  width: 100% !important;
  height: 200px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: #f8f9fa !important;
  overflow: hidden !important;
  border-radius: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  position: relative !important;
}

/* Mobile */
@media (max-width: 768px) {
  .products-grid .product-card img,
  .products-grid .product img,
  .product-card img,
  .product img,
  .product-image img {
    height: 160px !important;
    max-height: 160px !important;
    min-height: 160px !important;
  }
  
  .products-grid .product-image,
  .product-image {
    height: 160px !important;
  }
}

@media (max-width: 480px) {
  .products-grid .product-card img,
  .products-grid .product img,
  .product-card img,
  .product img,
  .product-image img {
    height: 140px !important;
    max-height: 140px !important;
    min-height: 140px !important;
  }
  
  .products-grid .product-image,
  .product-image {
    height: 140px !important;
  }
}

/* === BOTÃO VOLTAR AO TOPO === */
.back-to-top {
  position: fixed;
  bottom: 80px; /* Aumentado para ficar acima do WhatsApp */
  left: 20px; /* Movido para o lado esquerdo */
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 999; /* Abaixo do WhatsApp (1000+) */
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.back-to-top:active {
  transform: translateY(0);
}

/* Mobile */
@media (max-width: 768px) {
  .back-to-top {
    bottom: 75px; /* Ajustado para mobile */
    left: 15px; /* Movido para o lado esquerdo */
    width: 45px;
    height: 45px;
    font-size: 18px;
  }
}

@media (max-width: 480px) {
  .back-to-top {
    bottom: 70px; /* Ajustado para small mobile */
    left: 12px; /* Movido para o lado esquerdo */
    width: 40px;
    height: 40px;
    font-size: 16px;
  }
}

/* === SISTEMA DE AVALIAÇÕES === */

/* Container Principal de Avaliações */
.reviews-section {
  padding: 40px 0;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  border-radius: 16px;
  margin: 20px 0;
}

.reviews-header {
  text-align: center;
  margin-bottom: 30px;
}

.reviews-header h2 {
  font-size: 28px;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 8px;
}

.reviews-header p {
  font-size: 16px;
  color: #64748b;
  margin: 0;
}

/* Estatísticas de Avaliações */
.reviews-stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.stat-item {
  text-align: center;
  background: white;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  min-width: 120px;
}

.stat-number {
  font-size: 32px;
  font-weight: 700;
  color: #3b82f6;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 14px;
  color: #64748b;
  font-weight: 500;
}

/* Botão para Adicionar Avaliação */
.add-review-btn {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin: 0 auto 30px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.add-review-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
}

/* Lista de Avaliações */
.reviews-list {
  max-width: 800px;
  margin: 0 auto;
}

.review-card {
  background: white;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.review-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* Cabeçalho da Avaliação */
.review-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
  gap: 16px;
}

.review-user {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  font-size: 18px;
}

/* Estilos para outros elementos */

.user-name {
  font-size: 16px;
  font-weight: 600;
  color: #1f2937;
}

.review-date {
  font-size: 14px;
  color: #64748b;
}

/* Avaliação em Estrelas */
.review-rating {
  display: flex;
  align-items: center;
  gap: 4px;
}

.stars {
  display: flex;
  gap: 2px;
}

.star {
  font-size: 20px;
  color: #d1d5db;
  transition: color 0.2s ease;
}

.star.filled {
  color: #fbbf24;
}

.star.half-filled {
  color: #fbbf24;
  position: relative;
}

.star.half-filled::after {
  content: '★';
  position: absolute;
  left: 0;
  top: 0;
  width: 50%;
  overflow: hidden;
  color: #fbbf24;
}

.rating-number {
  font-size: 14px;
  font-weight: 600;
  color: #1f2937;
  margin-left: 8px;
}

/* Conteúdo da Avaliação */
.review-content {
  margin-bottom: 16px;
}

.review-text {
  font-size: 16px;
  line-height: 1.6;
  color: #374151;
  margin-bottom: 16px;
}

/* Fotos da Avaliação */
.review-photos {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.review-photo {
  width: 100px;
  height: 100px;
  border-radius: 8px;
  object-fit: cover;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid #e5e7eb;
}

.review-photo:hover {
  transform: scale(1.05);
  border-color: #3b82f6;
}

/* Ações da Avaliação */
.review-actions {
  display: flex;
  gap: 16px;
  align-items: center;
}

.helpful-btn {
  background: #f3f4f6;
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 14px;
  color: #64748b;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 4px;
}

.helpful-btn:hover {
  background: #e5e7eb;
  color: #3b82f6;
}

.helpful-btn.helpful {
  background: #3b82f6;
  color: white;
}

.helpful-count {
  font-size: 12px;
  font-weight: 600;
}

/* Modal de Avaliação */
.review-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  /* Fallback para navegadores que não suportam backdrop-filter */
  background: rgba(0, 0, 0, 0.7);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.review-modal.active {
  display: flex;
}

.review-modal-content {
  background: white;
  border-radius: 16px;
  padding: 32px;
  width: 90%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  animation: slideUp 0.3s ease-out;
}

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

.review-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.review-modal h3 {
  font-size: 24px;
  font-weight: 700;
  color: #1f2937;
  margin: 0;
}

.close-modal-btn {
  background: none;
  border: none;
  font-size: 24px;
  color: #64748b;
  cursor: pointer;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

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

/* Formulário de Avaliação */
.review-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

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

.form-group label {
  font-size: 16px;
  font-weight: 600;
  color: #374151;
}

.form-group input,
.form-group textarea {
  padding: 12px 16px;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-size: 16px;
  font-family: inherit;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

/* Seleção de Estrelas */
.star-rating {
  display: flex;
  gap: 8px;
  font-size: 32px;
}

.star-rating .star {
  cursor: pointer;
  transition: all 0.2s ease;
  color: #d1d5db;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

.star-rating .star:hover {
  color: #fbbf24;
  transform: scale(1.1);
}

.star-rating .star.filled {
  color: #fbbf24;
  animation: starPop 0.3s ease;
}

@keyframes starPop {
  0% { transform: scale(1); }
  50% { transform: scale(1.3); }
  100% { transform: scale(1); }
}

/* Upload de Fotos */
.photo-upload {
  border: 2px dashed #d1d5db;
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.photo-upload:hover {
  border-color: #3b82f6;
  background: #f8fafc;
}

.photo-upload-icon {
  font-size: 48px;
  color: #64748b;
  margin-bottom: 8px;
}

.photo-upload-text {
  font-size: 16px;
  color: #64748b;
  margin-bottom: 4px;
}

.photo-upload-hint {
  font-size: 14px;
  color: #9ca3af;
}

.photos-preview {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.photo-preview {
  position: relative;
  width: 80px;
  height: 80px;
  border-radius: 8px;
  object-fit: cover;
  border: 2px solid #e5e7eb;
}

.remove-photo {
  position: absolute;
  top: -8px;
  right: -8px;
  background: #ef4444;
  color: white;
  border: none;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Botões do Formulário */
.form-actions {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.submit-review-btn {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  flex: 1;
}

.submit-review-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
}

.cancel-review-btn {
  background: #f3f4f6;
  color: #64748b;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  flex: 1;
}

.cancel-review-btn:hover {
  background: #e5e7eb;
}

/* === ESTILOS PARA INFORMAÇÕES DE DESCONTO PROMOCIONAL === */
.promo-discount-info {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 12px;
}

.promo-discount-info .original-price {
  color: #9ca3af;
  text-decoration: line-through;
  font-weight: 400;
}

.promo-discount-info .discount-badge {
  background: #ef4444;
  color: white;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
}

/* === RESPONSIVIDADE PARA PROMO-Discount-Info === */
@media (max-width: 768px) {
  .promo-discount-info {
    font-size: 11px;
    gap: 6px;
    margin-bottom: 6px;
  }
  
  .promo-discount-info .discount-badge {
    font-size: 10px;
    padding: 1px 4px;
  }
}

@media (max-width: 480px) {
  .promo-discount-info {
    font-size: 10px;
    gap: 4px;
    margin-bottom: 4px;
  }
  
  .promo-discount-info .discount-badge {
    font-size: 9px;
    padding: 1px 3px;
  }
}

/* === ESTILOS PARA AVALIAÇÕES NOS PRODUTOS === */

/* Resumo de Avaliações no Card - usando definição unificada do CRO */

.product-rating-summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  background: #fef3c7;
  border-radius: 8px;
  border: 1px solid #d09f21;
  line-height: 1;
  box-sizing: border-box;
}

.product-rating-summary .stars .star {
  cursor: pointer;
  transition: all 0.2s ease;
  color: #d1d5db;
}

.product-rating-summary .stars .star:hover {
  color: #fbbf24;
  transform: scale(1.1);
}

.product-rating-summary .stars .star.filled {
  color: #fbbf24;
}

.product-rating-summary .stars .star.half-filled {
  color: #fbbf24;
  position: relative;
}

.product-rating-summary .stars .star.half-filled::after {
  content: '★';
  position: absolute;
  left: 0;
  top: 0;
  width: 50%;
  overflow: hidden;
  color: #fbbf24;
}

.product-rating-summary .rating-text {
  font-size: 12px;
  color: #64748b;
  font-weight: 500;
}

.review-btn {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  border: none;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.review-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(16, 185, 129, 0.3);
}

.review.auth-btn {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  font-size: 9px;
  border: none;
  border-radius: 8px;
  padding: 8px 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-weight: 600;
  position: relative;
  z-index: 1001;
}

.review.auth-btn {
  z-index: 1001;
}

/* Seção de Avaliações do Produto */
.product-reviews {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  border-radius: 12px;
  padding: 20px;
  margin-top: 16px;
  border: 1px solid #e5e7eb;
}

.reviews-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e5e7eb;
}

.reviews-header h4 {
  font-size: 18px;
  font-weight: 600;
  color: #1f2937;
  margin: 0;
}

.toggle-reviews {
  background: #3b82f6;
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.toggle-reviews:hover {
  background: #2563eb;
  transform: translateY(-1px);
}

.reviews-list {
  max-height: 400px;
  overflow-y: auto;
}

/* Responsive para Avaliações */
@media (max-width: 768px) {
  .product-rating-summary {
    gap: 6px;
    padding: 4px 8px;
  }
  
  .product-rating-summary .stars {
    font-size: 12px;
    gap: 1px;
  }
  
  .product-rating-summary .rating-text {
    font-size: 11px;
  }
  
  .product-rating-summary .review-link {
    font-size: 10px;
    padding: 1px 4px;
  }
  
  .review-btn {
    padding: 3px 6px;
    font-size: 10px;
  }
  
  .reviews-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  
  .toggle-reviews {
    align-self: flex-start;
  }
}

/* Modal de Avaliação */
.review-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.review-modal.active {
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 1;
  visibility: visible;
}

.review-modal-content {
  background: white;
  border-radius: 16px;
  padding: 32px;
  max-width: 600px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.review-modal.active .review-modal-content {
  transform: scale(1);
}

.review-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e5e7eb;
}

.review-modal-header h3 {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  color: #1f2937;
}

.close-modal-btn {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #6b7280;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.close-modal-btn:hover {
  background: #f3f4f6;
  color: #374151;
}

/* Estrelas de Avaliação */
.star-rating {
  display: flex;
  gap: 8px;
  margin: 16px 0;
}

.star-rating .star {
  font-size: 32px;
  color: #d1d5db;
  cursor: pointer;
  transition: all 0.2s ease;
}

.star-rating .star:hover {
  color: #fbbf24;
  transform: scale(1.1);
}

.star-rating .star.filled {
  color: #fbbf24;
}

/* Upload de Fotos */
.photo-upload {
  border: 2px dashed #d1d5db;
  border-radius: 8px;
  padding: 24px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.photo-upload:hover {
  border-color: #3b82f6;
  background: #f8fafc;
}

.photo-upload-icon {
  font-size: 48px;
  margin-bottom: 8px;
}

.photo-upload-text {
  font-weight: 600;
  color: #374151;
  margin-bottom: 4px;
}

.photo-upload-hint {
  font-size: 14px;
  color: #6b7280;
}

.photos-preview {
  display: flex;
  gap: 8px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.photo-preview {
  position: relative;
  width: 80px;
  height: 80px;
  border-radius: 8px;
  overflow: hidden;
}

.photo-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.remove-photo {
  position: absolute;
  top: 4px;
  right: 4px;
  background: rgba(239, 68, 68, 0.9);
  color: white;
  border: none;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  cursor: pointer;
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Mensagens de Sucesso */
.success-message {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  border-radius: 8px;
  box-shadow: 0 10px 15px -3px rgba(16, 185, 129, 0.3);
  z-index: 10001;
}

/* Indicador de Edição */
.edit-indicator {
  background: #fef3c7;
  border: 1px solid #f59e0b;
  color: #d97706;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 14px;
  margin-bottom: 16px;
  text-align: center;
}

/* Erros de Validação para Avaliações */
#review-errors {
  position: relative;
  margin-bottom: 16px;
}

/* Cards de Avaliação */
.review-card {
  background: white;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 16px;
  border: 1px solid #e5e7eb;
  transition: all 0.2s ease;
}

.review-card:hover {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.review-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}

.review-user {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 16px;
}

/* Estilos para avaliações */

.user-name {
  font-weight: 600;
  color: #1f2937;
}

.review-date {
  font-size: 12px;
  color: #6b7280;
}

.review-rating {
  display: flex;
  align-items: center;
  gap: 8px;
}

.review-rating .stars {
  display: flex;
  gap: 2px;
  font-size: 14px;
}

.rating-number {
  font-size: 14px;
  font-weight: 600;
  color: #6b7280;
}

.review-content h4 {
  margin: 0 0 8px 0;
  font-size: 16px;
  font-weight: 600;
  color: #1f2937;
}

.review-text {
  margin: 0 0 16px 0;
  line-height: 1.6;
  color: #4b5563;
}

.review-photos {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.review-photo {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  object-fit: cover;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.review-photo:hover {
  transform: scale(1.05);
}

.review-actions {
  display: flex;
  gap: 12px;
}

.helpful-btn {
  background: none;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 12px;
  color: #6b7280;
  cursor: pointer;
  transition: all 0.2s ease;
}

.helpful-btn:hover {
  border-color: #3b82f6;
  color: #3b82f6;
}

.helpful-btn.helpful {
  background: #3b82f6;
  border-color: #3b82f6;
  color: white;
}

/* Responsive para Modal */
@media (max-width: 768px) {
  .review-modal-content {
    padding: 20px;
    margin: 20px;
    width: calc(100% - 40px);
  }
  
  .star-rating .star {
    font-size: 28px;
  }
  
  .review-header {
    flex-direction: column;
    gap: 12px;
  }
  
  .review-user {
    width: 100%;
  }
}

/* === Estilos finais === */

/* === Destaque de Produto na Busca === */
.product-card.search-highlight {
  transform: scale(1.02);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
  border: 2px solid #3b82f6;
  position: relative;
  z-index: 10;
}

.product-card.search-highlight::before {
  content: '🎯 Produto encontrado!';
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: #3b82f6;
  color: white;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  z-index: 11;
  animation: bounceIn 0.5s ease;
}

@keyframes bounceIn {
  0% {
    opacity: 0;
    transform: translateX(-50%) translateY(-20px) scale(0.8);
  }
  50% {
    transform: translateX(-50%) translateY(-5px) scale(1.05);
  }
  100% {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
  }
}

/* === Search Results Dropdown === */
.search-container {
  position: relative;
  width: 100%;
}

.search-input-wrapper {
  position: relative;
  width: 100%;
}

.search-results {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  width: 100%;
  max-height: 280px;
  border-radius: 12px;
  background: white;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  z-index: 1004;
  overflow-y: auto;
  transition: all 0.3s ease;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
}

.search-results.active {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0) !important;
  display: block !important;
  z-index: 1004 !important;
  pointer-events: auto !important;
}

.search-result-item {
  padding: 12px 16px;
  border-bottom: 1px solid #f3f4f6;
  cursor: pointer !important;
  transition: background-color 0.2s ease;
  pointer-events: auto !important;
  user-select: none;
  position: relative;
  z-index: 10 !important;
  background: transparent !important;
}

.search-result-item:hover {
  background-color: #f8fafc !important;
}

.search-result-item:active {
  background-color: #e5e7eb !important;
}

.search-result-info {
  pointer-events: none !important;
}

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

.search-result-name {
  font-weight: 500;
  color: #1f2937;
  margin-bottom: 4px;
  font-size: 14px;
  line-height: 1.3;
}

.search-result-category {
  font-size: 12px;
  color: #6b7280;
  margin-bottom: 2px;
}

.search-result-price {
  font-weight: 600;
  color: #3b82f6;
  font-size: 13px;
}

.search-no-results {
  padding: 20px;
  text-align: center;
  color: #6b7280;
  font-size: 14px;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .search-results {
    max-height: 250px;
    border-radius: 6px;
    margin-top: 2px;
  }
  
  .search-result-item {
    padding: 10px 12px;
  }
  
  .search-result-name {
    font-size: 13px;
  }
  
  .search-result-category {
    font-size: 11px;
  }
  
  .search-result-price {
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  .search-results {
    max-height: 200px;
    margin-top: 2px;
  }
  
  .search-result-item {
    padding: 8px 10px;
  }
  
  .search-result-name {
    font-size: 12px;
    margin-bottom: 3px;
  }
  
  .search-result-category {
    font-size: 10px;
    margin-bottom: 2px;
  }
  
  .search-result-price {
    font-size: 11px;
  }
  
  .search-no-results {
    padding: 16px;
    font-size: 12px;
  }
}

@media (max-width: 320px) {
  .search-result-item {
    padding: 6px 8px;
  }
  
  .search-result-name {
    font-size: 11px;
  }
  
  .search-result-category {
    font-size: 9px;
  }
  
  .search-result-price {
    font-size: 10px;
  }
}

/* === Menu Mobile === */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1004;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

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

.mobile-menu-sidebar {
  position: absolute;
  top: 0;
  right: 0;
  width: 320px;
  height: 100%;
  background: white;
  box-shadow: -4px 0 12px rgba(0, 0, 0, 0.1);
  transform: translateX(100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
}

.mobile-menu-overlay.active .mobile-menu-sidebar {
  transform: translateX(0);
}

.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #e5e7eb;
  background: #f8fafc;
}

.mobile-menu-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #1f2937;
}

.mobile-menu-close {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #6b7280;
  padding: 4px;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.mobile-menu-close:hover {
  background: #e5e7eb;
  color: #1f2937;
}

.mobile-menu-content {
  padding: 16px 0;
}

.mobile-nav-tabs {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mobile-nav-tab {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 20px;
  border: none;
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
  color: #374151;
  font-size: 14px;
  font-weight: 500;
}

.mobile-nav-tab:hover {
  background: #f3f4f6;
  color: #1f2937;
}

.mobile-nav-tab.active {
  background: #3b82f6;
  color: white;
}

.mobile-nav-tab svg {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
}

/* Estilos para menu de filtros mobile */
.mobile-filters-tabs {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mobile-filters-tabs .mobile-nav-tab {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: transparent;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 14px;
  font-weight: 500;
  width: 100%;
  text-align: left;
}

.mobile-filters-tabs .mobile-nav-tab:hover {
  background: #f3f4f6;
  color: #1f2937;
}

/* Responsive: Esconder nav desktop e mostrar menu mobile */
@media (max-width: 768px) {
  .header-nav {
    display: none;
  }
  
  .action-buttons .mobile-menu-btn {
    display: flex !important;
  }
  
  .action-buttons .filters-btn {
    display: flex !important;
  }
}

@media (max-width: 480px) {
  .mobile-menu-sidebar {
    width: 280px;
  }
}

/* === ESTILOS DOS MODAIS DO USER-MENU === */

/* Orders Modal UX */
.orders-filters {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  padding: 15px;
  background: #f8fafc;
  border-radius: 12px;
  overflow-x: auto;
}

.filter-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  color: #6b7280;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.filter-btn:hover {
  background: #f3f4f6;
  border-color: #d1d5db;
}

.filter-btn.active {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: white;
  border-color: #3b82f6;
}

.status-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.status-indicator.pending {
  background: #f59e0b;
  box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.2);
}

.status-indicator.confirmed {
  background: #3b82f6;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

.status-indicator.delivered {
  background: #10b981;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}

.orders-list {
  max-height: 400px;
  overflow-y: auto;
  padding: 0 15px 15px;
}

.order-item {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 12px;
  transition: all 0.2s ease;
  cursor: pointer;
}

.order-item:hover {
  border-color: #d1d5db;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transform: translateY(-1px);
}

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

.order-id {
  font-weight: 600;
  color: #374151;
  font-size: 14px;
}

.order-status {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
}

.order-status.pending {
  background: #fef3c7;
  color: #92400e;
}

.order-status.confirmed {
  background: #dbeafe;
  color: #1e40af;
}

.order-status.delivered {
  background: #d1fae5;
  color: #065f46;
}

.order-date {
  font-size: 12px;
  color: #6b7280;
  margin-bottom: 12px;
}

.order-items {
  margin-bottom: 12px;
}

.order-item-product {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid #f3f4f6;
}

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

.order-product-image {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: cover;
  background: #f3f4f6;
}

.order-product-info {
  flex: 1;
  min-width: 0;
}

.order-product-name {
  font-size: 13px;
  font-weight: 500;
  color: #374151;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.order-product-quantity {
  font-size: 11px;
  color: #6b7280;
}

.order-product-price {
  font-size: 13px;
  font-weight: 600;
  color: #374151;
}

.order-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid #f3f4f6;
}

.order-total {
  font-size: 16px;
  font-weight: 600;
  color: #374151;
}

.order-actions {
  display: flex;
  gap: 8px;
}

.order-action-btn {
  padding: 6px 12px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  background: white;
  color: #6b7280;
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.order-action-btn:hover {
  background: #f3f4f6;
  border-color: #9ca3af;
}

.order-action-btn.primary {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: white;
  border-color: #3b82f6;
}

.order-action-btn.primary:hover {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: #64748b;
}

.empty-state svg {
  margin-bottom: 20px;
  opacity: 0.5;
}

.empty-state h4 {
  margin: 0 0 10px 0;
  font-size: 18px;
  font-weight: 600;
  color: #374151;
}

.empty-state p {
  margin: 0 0 20px 0;
  font-size: 14px;
}

.empty-state .btn-primary {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.2s ease;
}

.empty-state .btn-primary:hover {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  transform: translateY(-1px);
}

/* Settings Modal */
.settings-section {
  margin-bottom: 30px;
}

.settings-section h4 {
  margin: 0 0 15px 0;
  font-size: 16px;
  font-weight: 600;
  color: #374151;
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: 8px;
}

.setting-item {
  margin-bottom: 15px;
}

.setting-item label {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  font-size: 14px;
  color: #4b5563;
}

.setting-item input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #3b82f6;
}

.setting-info {
  padding: 15px;
  background: #f9fafb;
  border-radius: 8px;
  font-size: 13px;
  color: #6b7280;
}

.setting-info p {
  margin: 5px 0;
}

.settings-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  padding-top: 20px;
  border-top: 1px solid #e5e7eb;
}

.btn-secondary {
  background: #f3f4f6;
  color: #6b7280;
  border: 1px solid #d1d5db;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  background: #e5e7eb;
  color: #374151;
}

.btn-primary {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.2s ease;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  transform: translateY(-1px);
}

/* === MENU DE PERFIL === */

/* Garantir que o botão de filtros apareça em desktop */
@media (min-width: 769px) {
  .action-buttons .filters-btn {
    display: flex !important;
    pointer-events: auto !important;
  }
}

.profile-btn {
  position: relative;
  background: transparent !important;
  border: 2px solid transparent !important;
  padding: 8px !important;
  min-width: 40px !important;
  height: 40px !important;
  border-radius: 50% !important;
  transition: all 0.3s ease !important;
  cursor: pointer !important;
}

.profile-btn:hover {
  background: rgba(59, 130, 246, 0.1) !important;
  border-color: rgba(59, 130, 246, 0.3) !important;
  transform: translateY(-1px) !important;
}

.profile-btn:focus {
  outline: none !important;
  border-color: #3b82f6 !important;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1) !important;
}

.profile-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.profile-initial {
  color: white;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.profile-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 4px;
  width: 280px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  z-index: 1001;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-5px);
  transition: all 0.15s ease;
  border: 1px solid rgba(0, 0, 0, 0.1);
  pointer-events: none;
}

.profile-dropdown.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.profile-dropdown-header {
  padding: 16px;
  border-bottom: 1px solid #e5e7eb;
  background: #f9fafb;
  border-radius: 8px 8px 0 0;
}

.profile-user-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.profile-avatar-large {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.profile-initial-large {
  color: white;
  font-size: 16px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.profile-details {
  flex: 1;
  min-width: 0;
}

.profile-name {
  font-size: 14px;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile-email {
  font-size: 12px;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile-dropdown-content {
  padding: 4px 0;
}

.profile-menu-item {
  width: 100%;
  padding: 10px 16px;
  border: none;
  background: transparent;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: #374151;
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: left;
  position: relative;
}

.profile-menu-item:hover {
  background: rgba(59, 130, 246, 0.05);
  color: #3b82f6;
}

.profile-menu-item:focus {
  outline: none;
  background: rgba(59, 130, 246, 0.1);
}

.profile-menu-item svg {
  flex-shrink: 0;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.profile-menu-item:hover svg {
  opacity: 1;
}

.profile-divider {
  height: 1px;
  background: rgba(148, 163, 184, 0.1);
  margin: 8px 0;
}

.profile-logout {
  color: #ef4444 !important;
}

.profile-logout:hover {
  background: rgba(239, 68, 68, 0.05) !important;
  color: #dc2626 !important;
}

/* REMOVIDO: Overlay não será mais usado no dropdown tradicional */

/* Responsividade para o menu de perfil */
@media (max-width: 768px) {
  .profile-dropdown {
    position: fixed;
    top: auto;
    bottom: 20px;
    right: 20px;
    left: 20px;
    width: auto;
    max-height: 70vh;
    overflow-y: auto;
    border-radius: 12px;
  }
  
  .profile-dropdown.active {
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 480px) {
  .profile-dropdown {
    bottom: 10px;
    right: 10px;
    left: 10px;
    border-radius: 8px;
  }
  
  .profile-dropdown-header {
    padding: 16px;
  }
  
  .profile-avatar-large {
    width: 40px;
    height: 40px;
  }
  
  .profile-initial-large {
    font-size: 16px;
  }
  
  .profile-name {
    font-size: 15px;
  }
  
  .profile-email {
    font-size: 13px;
  }
  
  .profile-menu-item {
    padding: 10px 16px;
    font-size: 13px;
  }
}

/* Animações suaves */
@keyframes profileMenuSlideIn {
  from {
    opacity: 0;
    transform: translateY(-10px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.profile-dropdown.active {
  animation: profileMenuSlideIn 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Estados de foco para acessibilidade */
.profile-btn:focus-visible {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}

.profile-menu-item:focus-visible {
  outline: 2px solid #3b82f6;
  outline-offset: -2px;
  background: rgba(59, 130, 246, 0.1);
}

/* Prevenir flickering em dispositivos iOS */
.profile-btn {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.profile-menu-item {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

/* === ESTILOS DOS MODAIS DO USER-MENU === */

/* Responsividade melhorada para mobile */
@media (max-width: 768px) {
  .profile-modal-overlay {
    padding: 10px;
  }
  
  .profile-modal {
    width: 95vw;
    max-width: 95vw;
    max-height: 90vh;
    margin: 0 auto;
    border-radius: 16px;
    overflow: hidden;
  }
  
  .profile-modal-content {
    width: 100%;
    max-height: calc(90vh - 80px);
    overflow-y: auto;
    padding: 16px 20px;
    box-sizing: border-box;
  }
  
  .profile-modal-header {
    padding: 16px 20px;
    flex-shrink: 0;
  }
  
  .profile-avatar-section {
    flex-direction: column;
    text-align: center;
    gap: 16px;
    margin-bottom: 24px;
  }
  
  .profile-avatar-large-modal {
    width: 80px;
    height: 80px;
    margin: 0 auto;
  }
  
  .profile-info-modal {
    text-align: center;
  }
  
  .profile-info-modal h3 {
    font-size: 18px;
    margin-bottom: 4px;
  }
  
  .profile-info-modal p {
    font-size: 14px;
    margin-bottom: 2px;
  }
  
  .profile-member-since {
    font-size: 12px !important;
  }
  
  .profile-stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 24px;
  }
  
  .stat-item {
    padding: 16px;
    text-align: center;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
  }
  
  .stat-number {
    font-size: 20px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 4px;
  }
  
  .stat-label {
    font-size: 12px;
    color: #6b7280;
  }
  
  .profile-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  
  .profile-action-btn {
    width: 100%;
    padding: 16px;
    font-size: 14px;
    justify-content: center;
    min-height: 48px;
  }
}

@media (max-width: 480px) {
  .profile-modal-overlay {
    padding: 5px;
  }
  
  .profile-modal {
    width: 98vw;
    max-width: 98vw;
    max-height: 95vh;
    border-radius: 12px;
  }
  
  .profile-modal-content {
    max-height: calc(95vh - 70px);
    padding: 12px 16px;
  }
  
  .profile-modal-header {
    padding: 12px 16px;
  }
  
  .profile-avatar-section {
    gap: 12px;
    margin-bottom: 20px;
  }
  
  .profile-avatar-large-modal {
    width: 70px;
    height: 70px;
  }
  
  .profile-info-modal h3 {
    font-size: 16px;
  }
  
  .profile-info-modal p {
    font-size: 13px;
  }
  
  .profile-stats {
    gap: 10px;
    margin-bottom: 20px;
  }
  
  .stat-item {
    padding: 12px;
  }
  
  .stat-number {
    font-size: 18px;
  }
  
  .stat-label {
    font-size: 11px;
  }
  
  .profile-actions {
    gap: 10px;
  }
  
  .profile-action-btn {
    padding: 14px;
    font-size: 13px;
    min-height: 44px;
  }
  
  .profile-action-btn svg {
    width: 14px;
    height: 14px;
  }
}

/* Prevenir overflow em orientação landscape */
@media (max-width: 768px) and (orientation: landscape) {
  .profile-modal {
    max-height: 85vh;
  }
  
  .profile-modal-content {
    max-height: calc(85vh - 70px);
  }
  
  .profile-avatar-section {
    margin-bottom: 16px;
  }
  
  .profile-stats {
    margin-bottom: 16px;
  }
  
  .stat-item {
    padding: 10px;
  }
}

.profile-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
  flex-shrink: 0;
}

@media (max-width: 480px) {
  .profile-modal-header {
    padding: 16px;
  }
}

.profile-modal-header h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  color: #1e293b;
}

@media (max-width: 480px) {
  .profile-modal-header h2 {
    font-size: 18px;
  }
}

.profile-modal-close {
  background: transparent;
  border: none;
  font-size: 24px;
  color: #64748b;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: all 0.2s ease;
  line-height: 1;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.profile-modal-close:hover {
  background: rgba(148, 163, 184, 0.1);
  color: #374151;
}

.profile-modal-body {
  padding: 20px;
  flex: 1;
  overflow-y: auto;
}

@media (max-width: 480px) {
  .profile-modal-body {
    padding: 16px;
  }
}

.profile-avatar-section {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
  flex-wrap: wrap;
  justify-content: center;
}

@media (max-width: 768px) {
  .profile-avatar-section {
    flex-direction: column;
    text-align: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 16px;
  }
}

@media (max-width: 480px) {
  .profile-avatar-section {
    flex-direction: row;
    text-align: left;
    gap: 16px;
    margin-bottom: 16px;
    padding-bottom: 12px;
  }
}

.profile-avatar-large-modal {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

@media (max-width: 480px) {
  .profile-avatar-large-modal {
    width: 60px;
    height: 60px;
  }
}

.profile-initial-large-modal {
  color: white;
  font-size: 28px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

@media (max-width: 480px) {
  .profile-initial-large-modal {
    font-size: 24px;
  }
}

.profile-info-modal {
  flex: 1;
  min-width: 0;
}

.profile-info-modal h3 {
  margin: 0 0 4px;
  color: #1e293b;
  font-size: 18px;
  font-weight: 600;
  word-wrap: break-word;
}

@media (max-width: 480px) {
  .profile-info-modal h3 {
    font-size: 16px;
    text-align: center;
  }
}

.profile-info-modal p {
  margin: 0;
  color: #64748b;
  font-size: 14px;
  word-wrap: break-word;
  overflow-wrap: break-word;
  word-break: break-all;
}

@media (max-width: 480px) {
  .profile-info-modal p {
    font-size: 13px;
    text-align: center;
  }
}

.profile-member-since {
  font-size: 14px !important;
  color: #94a3b8 !important;
}

.profile-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

@media (max-width: 768px) {
  .profile-stats {
    grid-template-columns: 1fr;
    gap: 8px;
    margin-bottom: 20px;
  }
}

@media (max-width: 480px) {
  .profile-stats {
    grid-template-columns: 1fr;
    gap: 8px;
    margin-bottom: 16px;
  }
}

.stat-item {
  text-align: center;
  padding: 16px 12px;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.1);
}

@media (max-width: 480px) {
  .stat-item {
    padding: 12px 8px;
  }
}

.stat-number {
  font-size: 20px;
  font-weight: 700;
  color: #3b82f6;
  margin-bottom: 2px;
}

@media (max-width: 480px) {
  .stat-number {
    font-size: 18px;
  }
}

.stat-label {
  font-size: 12px;
  color: #64748b;
  font-weight: 500;
}

@media (max-width: 480px) {
  .stat-label {
    font-size: 11px;
  }
}

.profile-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

@media (max-width: 480px) {
  .profile-actions {
    gap: 8px;
  }
}

.profile-action-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: white;
  border: 2px solid rgba(148, 163, 184, 0.2);
  border-radius: 12px;
  font-size: 14px;
  color: #374151;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
  flex-wrap: wrap;
  font-weight: 500;
}

@media (max-width: 480px) {
  .profile-action-btn {
    padding: 12px 14px;
    font-size: 13px;
  }
}

.profile-action-btn:hover {
  background: rgba(59, 130, 246, 0.05);
  border-color: rgba(59, 130, 246, 0.3);
  color: #3b82f6;
  transform: translateY(-1px);
}

.profile-action-btn:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.profile-action-btn svg {
  flex-shrink: 0;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.profile-action-btn:hover svg {
  opacity: 1;
}

/* Responsividade do modal */
@media (max-width: 768px) {
  .profile-modal-content {
    width: 95%;
    max-height: 95vh;
    border-radius: 12px;
  }
  
  .profile-modal-header {
    padding: 20px 20px 16px;
  }
  
  .profile-modal-header h2 {
    font-size: 20px;
  }
  
  .profile-modal-body {
    padding: 20px;
  }
  
  .profile-avatar-section {
    flex-direction: column;
    text-align: center;
    gap: 16px;
    margin-bottom: 24px;
  }
  
  .profile-avatar-large-modal {
    width: 64px;
    height: 64px;
  }
  
  .profile-initial-large-modal {
    font-size: 24px;
  }
  
  .profile-info-modal h3 {
    font-size: 18px;
  }
  
  .profile-stats {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 24px;
  }
  
  .stat-item {
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .stat-number {
    font-size: 20px;
  }
  
  .profile-action-btn {
    padding: 14px 16px;
    font-size: 15px;
  }
}

@media (max-width: 480px) {
  .profile-modal-content {
    width: 98%;
    border-radius: 8px;
  }
  
  .profile-modal-header {
    padding: 16px;
  }
  
  .profile-modal-body {
    padding: 16px;
  }
  
  .profile-avatar-large-modal {
    width: 56px;
    height: 56px;
  }
  
  .profile-initial-large-modal {
    font-size: 20px;
  }
  
  .profile-info-modal h3 {
    font-size: 16px;
  }
  
  .profile-info-modal p {
    font-size: 14px;
  }
  
  .stat-number {
    font-size: 18px;
  }
  
  .stat-label {
    font-size: 13px;
  }
  
  .profile-action-btn {
    padding: 12px 14px;
    font-size: 14px;
  }
}

/* Animações suaves */
@keyframes profileModalSlideIn {
  from {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

.profile-modal.active .profile-modal-content {
  animation: profileModalSlideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Estados de foco para acessibilidade */
.profile-modal-close:focus-visible {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}

.profile-action-btn:focus-visible {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
  background: rgba(59, 130, 246, 0.1);
}

/* Prevenir flickering em dispositivos iOS */
.profile-modal-content {
  -webkit-tap-highlight-color: transparent;
}

.profile-action-btn {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

/* === Modal de Editar Perfil === */
.edit-profile-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1004;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

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

.edit-profile-modal {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  background: white;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  width: 100%;
  max-width: 500px;
  max-height: 90vh;
  overflow: hidden;
  transition: all 0.3s ease;
}

.edit-profile-modal-overlay.active .edit-profile-modal {
  transform: translate(-50%, -50%) scale(1);
}

.edit-profile-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}

.edit-profile-modal-header h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  color: #1f2937;
}

.edit-profile-modal-close {
  background: transparent;
  border: none;
  font-size: 24px;
  color: #6b7280;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.edit-profile-modal-close:hover {
  background: rgba(148, 163, 184, 0.1);
  color: #374151;
}

.edit-profile-modal-content {
  padding: 24px;
}

.edit-profile-modal-content .form-group {
  margin-bottom: 20px;
}

.edit-profile-modal-content label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #374151;
  font-size: 14px;
}

.edit-profile-modal-content input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-size: 16px;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.edit-profile-modal-content input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.edit-profile-modal-content .error-message {
  color: #ef4444;
  font-size: 12px;
  margin-top: 4px;
  min-height: 16px;
  display: none; /* Escondido por padrão */
}

.edit-profile-modal-content .error-message:not(:empty) {
  display: block; /* Mostra apenas quando tiver conteúdo */
}

.edit-profile-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #e2e8f0;
}

.cancel-edit-btn {
  flex: 1;
  padding: 12px 16px;
  background: white;
  color: #6b7280;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cancel-edit-btn:hover {
  background: #f8fafc;
  color: #374151;
  border-color: #d1d5db;
}

.save-edit-btn {
  flex: 1;
  padding: 12px 16px;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.save-edit-btn:hover {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* === REMOÇÃO DE ANIMAÇÕES === */
/* Removendo animações do product-card */
.product-card {
  transition: none !important;
  transform: none !important;
  animation: none !important;
}

/* Removendo animações do botão */
.product-card .btn-primary {
  transition: none !important;
  transform: none !important;
  animation: none !important;
}

/* Removendo o efeito de hover */
.product-card:hover {
  transform: none !important;
  box-shadow: none !important;
}

/* Removendo a mensagem "Produto encontrado" */
.product-card.search-highlight::before {
  display: none !important;
}

/* === VALIDAÇÃO DE FORMULÁRIO === */
/* Estilo para campos inválidos */
.is-invalid {
  border-color: #dc3545 !important;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right calc(0.375em + 0.1875rem) center;
  background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.is-invalid:focus {
  border-color: #dc3545;
  box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.25);
}

/* Estilo para o botão ao adicionar */
.product-card button.btn-primary.added {
  background-color: #10B981 !important; /* Verde */
  color: white !important;
  border-color: #0d9f6e !important;
  transition: all 0.3s ease !important;
}

/* Animação para voltar ao normal */
@keyframes resetButtonColor {
  0% { 
    background-color: #10B981;
    border-color: #0d9f6e;
    color: white;
  }
  100% { 
    background-color: #3b82f6;
    border-color: #2563eb;
    color: white;
  }
}

/* Aplicando a animação */
.product-card button.btn-primary.added {
  animation: resetButtonColor 0.3s 1s forwards !important;
}

/* Removendo o efeito de clique no botão */
.product-card .btn-primary:active {
  transform: none !important;
}

/* Mantendo a animação do carrinho */
.cart-btn.shake {
  animation: shake 0.3s ease-in-out;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-2px); }
  40%, 80% { transform: translateX(2px); }
}

/* Mantendo o scroll suave */
html {
  scroll-behavior: smooth;
}

/* Responsividade */
@media (max-width: 768px) {
  .edit-profile-modal {
    margin: 20px;
    max-width: calc(100vw - 40px);
  }
  
  .edit-profile-modal-header {
    padding: 16px 20px;
  }
  
  .edit-profile-modal-content {
    padding: 20px;
  }
  
  .edit-profile-actions {
    flex-direction: column;
  }
  
  .cancel-edit-btn,
  .save-edit-btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .edit-profile-modal {
    margin: 10px;
    max-width: calc(100vw - 20px);
  }
  
  .edit-profile-modal-header {
    padding: 12px 16px;
  }
  
  .edit-profile-modal-content {
    padding: 16px;
  }
}

/* === PREÇOS PROMOCIONAIS === */
.price-promocional {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.preco-promocional {
  font-size: 1.4rem;
  font-weight: 700;
  color: #10b981;
  margin: 0;
}

.preco-original {
  font-size: 1rem;
  color: #6b7280;
  text-decoration: line-through;
  margin: 0;
}

.economia {
  font-size: 0.85rem;
  color: #059669;
  font-weight: 600;
  background: #ecfdf5;
  padding: 2px 8px;
  border-radius: 12px;
  display: inline-block;
  margin: 0;
}

/* Responsividade para preços promocionais */
@media (max-width: 768px) {
  .preco-promocional {
    font-size: 1.2rem;
  }
  
  .preco-original {
    font-size: 0.9rem;
  }
  
  .economia {
    font-size: 0.75rem;
    padding: 1px 6px;
  }
}

@media (max-width: 480px) {
  .preco-promocional {
    font-size: 1.1rem;
  }
  
  .preco-original {
    font-size: 0.85rem;
  }
  
  .economia {
    font-size: 0.7rem;
  }
}

/* === ÍCONE DE PROMOÇÃO === */
.promocao-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: linear-gradient(135deg, #ff6b35, #f7931e);
  color: white;
  font-size: 18px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(255, 107, 53, 0.4);
  animation: pulse 2s infinite;
}

.promocao-card {
  border: 2px solid #ff6b35;
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.2);
}

.promocao-card:hover {
  box-shadow: 0 8px 24px rgba(255, 107, 53, 0.3);
  transform: translateY(-4px);
}

@keyframes pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.4);
  }
  50% {
    transform: scale(1.1);
    box-shadow: 0 2px 12px rgba(255, 107, 53, 0.6);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.4);
  }
}

/* Responsividade para o ícone de promoção */
@media (max-width: 768px) {
  .promocao-badge {
    top: 6px;
    right: 6px;
    width: 28px;
    height: 28px;
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .promocao-badge {
    top: 4px;
    right: 4px;
    width: 24px;
    height: 24px;
    font-size: 14px;
  }
}

/* === ANIMAÇÃO DE PISCADA NO BOTÃO ADICIONAR === */
.btn-primary.adding {
  animation: buttonPulse 0.6s ease-in-out 3;
  background-color: #10B981 !important;
  border-color: #0d9f6e !important;
  color: white !important;
  transform: scale(1.05);
}

@keyframes buttonPulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }
  25% {
    transform: scale(1.08);
    box-shadow: 0 0 0 8px rgba(16, 185, 129, 0.3);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 0 0 12px rgba(16, 185, 129, 0.1);
  }
  75% {
    transform: scale(1.08);
    box-shadow: 0 0 0 8px rgba(16, 185, 129, 0.3);
  }
  100% {
    transform: scale(1.05);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

/* === ESTILOS DAS AVALIAÇÕES DO USUÁRIO === */
.user-reviews-header {
  padding: 20px;
  border-bottom: 1px solid #e5e7eb;
  margin-bottom: 20px;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 16px;
}

.user-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 18px;
}

.user-details h4 {
  margin: 0;
  font-size: 18px;
  color: #1f2937;
}

.user-details p {
  margin: 4px 0 0 0;
  color: #6b7280;
  font-size: 14px;
}

.reviews-list {
  max-height: 400px;
  overflow-y: auto;
  padding-right: 8px;
}

.review-item {
  background: #f9fafb;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 16px;
  border: 1px solid #e5e7eb;
  transition: all 0.3s ease;
  position: relative;
}

.review-item:hover {
  border-color: #3b82f6;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.1);
}

.review-product {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
}

.review-product-image {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid #e5e7eb;
}

.review-product-info h5 {
  margin: 0 0 8px 0;
  font-size: 16px;
  color: #1f2937;
  font-weight: 600;
}

.review-rating {
  display: flex;
  align-items: center;
  gap: 8px;
}

.review-rating .star {
  color: #d1d5db;
  font-size: 16px;
}

.review-rating .star.filled {
  color: #fbbf24;
}

.review-date {
  font-size: 12px;
  color: #6b7280;
  margin-left: auto;
}

.review-content h6 {
  margin: 0 0 8px 0;
  font-size: 14px;
  color: #1f2937;
  font-weight: 600;
}

.review-content p {
  margin: 0 0 12px 0;
  color: #4b5563;
  line-height: 1.5;
  font-size: 14px;
}

.review-photos {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.review-photo {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  object-fit: cover;
  cursor: pointer;
  border: 1px solid #e5e7eb;
  transition: transform 0.2s ease;
}

.review-photo:hover {
  transform: scale(1.05);
}

.review-actions {
  display: flex;
  gap: 12px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #e5e7eb;
}

.edit-review-btn,
.delete-review-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  background: white;
  color: #6b7280;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.edit-review-btn:hover {
  border-color: #3b82f6;
  color: #3b82f6;
  background: #eff6ff;
}

.delete-review-btn:hover {
  border-color: #ef4444;
  color: #ef4444;
  background: #fef2f2;
}

.edited-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #fef3c7;
  color: #92400e;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 500;
}

/* Scrollbar personalizada para reviews-list */
.reviews-list::-webkit-scrollbar {
  width: 6px;
}

.reviews-list::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 3px;
}

.reviews-list::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 3px;
}

.reviews-list::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Responsividade */
@media (max-width: 768px) {
  .user-info {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }
  
  .review-product {
    flex-direction: column;
    gap: 12px;
  }
  
  .review-product-image {
    width: 100%;
    height: 200px;
  }
  
  .review-actions {
    flex-direction: column;
  }
  
  .edit-review-btn,
  .delete-review-btn {
    justify-content: center;
  }
}

/* === MEDIA QUERIES ORGANIZADOS === */

/* Mobile First Approach */
/* Small Mobile (até 480px) */
@media (max-width: 480px) {
  header {
    padding: 6px 8px;
    gap: 6px;
  }
  
  header .header-brand h1 {
    font-size: 14px;
  }
  
  .cart-btn {
    padding: 6px 10px;
    font-size: 11px;
    min-height: 32px;
    right: 3px;
  }
}

/* Medium Mobile (481px - 768px) */
@media (min-width: 481px) and (max-width: 768px) {
  .header-container {
    padding: 0 16px;
    gap: 16px;
  }
  
  .search-container {
    max-width: 350px;
  }
  
  .brand-info h1 {
    font-size: 18px;
  }
  
  .brand-tagline {
    font-size: 13px;
  }
}

/* Tablets (769px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
  .header-top {
    padding: 8px 0;
  }
  
  .header-container {
    flex-direction: column;
    gap: 8px;
    padding: 0 16px;
  }
  
  .header-brand {
    width: 100%;
    justify-content: center;
  }
}

/* Desktop Pequeno (1025px - 1280px) */
@media (min-width: 1025px) and (max-width: 1280px) {
  .header-container {
    padding: 0 16px;
    gap: 16px;
  }
  
  .search-container {
    max-width: 350px;
  }
  
  .brand-info h1 {
    font-size: 18px;
  }
}

/* Desktop Grande (1281px+) */
@media (min-width: 1281px) {
  .header-container {
    max-width: 1400px;
  }
  
  .search-container {
    max-width: 500px;
  }
}

/* === ESTILOS ADICIONAIS === */
.out-of-stock { 
  opacity: 0.6; 
  pointer-events: none; 
}

.out-of-stock-overlay { 
  position: absolute; 
  top: 10px; 
  right: 10px; 
  background: #dc2626; 
  color: white; 
  padding: 4px 8px; 
  border-radius: 4px; 
  font-size: 12px; 
  font-weight: bold; 
  z-index: 10; 
}

.product-image { 
  position: relative; 
}

/* === SEÇÃO DE DESCRIÇÃO DETALHADA === */
.product-description {
  background: var(--surface);
  border-radius: 12px;
  padding: 24px;
  margin-top: 2rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.product-description h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 16px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.product-description h3::before {
  content: '📋';
  font-size: 1.1rem;
}

.description-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.main-description {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  margin: 0;
  padding: 16px;
  background: #f8fafc;
  border-radius: 8px;
  border-left: 4px solid var(--brand-500);
}

.description-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}

.detail-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: #f8fafc;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  transition: all 0.2s ease;
}

.detail-item:hover {
  background: #f1f5f9;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.detail-label {
  font-weight: 600;
  color: var(--muted);
  font-size: 0.875rem;
}

.detail-value {
  font-weight: 600;
  color: var(--brand-600);
  font-size: 0.9rem;
}

.description-features {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border-radius: 12px;
  padding: 20px;
  border: 1px solid #bae6fd;
}

.description-features h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--brand-700);
  margin: 0 0 12px 0;
}

.description-features ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 8px;
}

.description-features li {
  padding: 8px 12px;
  background: white;
  border-radius: 6px;
  border: 1px solid #e0f2fe;
  font-size: 0.875rem;
  color: var(--text);
  transition: all 0.2s ease;
}

.description-features li:hover {
  background: var(--brand-50);
  transform: translateY(-1px);
}

/* Responsive para descrição */
@media (max-width: 768px) {
  .product-description {
    padding: 16px;
    margin-top: 1rem;
  }
  
  .description-details {
    grid-template-columns: 1fr;
  }
  
  .description-features ul {
    grid-template-columns: 1fr;
  }
  
  .detail-item {
    padding: 10px 12px;
  }
  
  .main-description {
    padding: 12px;
  }
}

/* Mobile overflow guards for the home page */
@media (max-width: 900px) {
  .hero-layout,
  .trust-strip,
  .features-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-layout > *,
  .trust-strip > *,
  .features-grid > * {
    min-width: 0;
  }
}

@media (max-width: 768px) {
  .header-top .header-container > .header-brand {
    width: 100%;
    margin: 0;
    padding: 0;
  }

  .header-brand,
  .header-actions,
  .search-container,
  .action-buttons,
  .brand-info {
    min-width: 0;
    max-width: 100%;
  }
}

@media (max-width: 600px) {
  .home-hero {
    padding: 24px 18px 22px;
    border-radius: 22px;
    box-shadow: 0 20px 48px rgba(15, 23, 42, 0.22);
  }

  .home-hero::after {
    width: 150px;
    height: 150px;
    inset: auto 0 -52px auto;
    opacity: 0.85;
  }

  .hero-content,
  .hero-layout,
  .hero-copy,
  .hero-panel,
  .hero-panel-item,
  .hero-buttons,
  .hero-buttons > *,
  .home-hero h1,
  .home-hero p,
  .hero-panel-item strong {
    min-width: 0;
    max-width: 100%;
  }

  .hero-content {
    display: grid;
    gap: 16px;
  }

  .hero-eyebrow {
    justify-content: flex-start;
    gap: 8px;
    margin-bottom: 0;
  }

  .hero-eyebrow span {
    padding: 7px 10px;
    font-size: 10px;
    letter-spacing: 0.06em;
  }

  .hero-layout {
    gap: 18px;
  }

  .hero-copy,
  .hero-panel-item,
  .hero-panel-item strong,
  .hero-buttons > * {
    overflow-wrap: anywhere;
  }

  .hero-copy {
    display: grid;
    gap: 14px;
    text-align: left;
  }

  .hero-kicker {
    margin: 0;
    padding: 8px 12px;
    width: fit-content;
    max-width: 100%;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.08);
    font-size: 11px;
    line-height: 1.35;
    letter-spacing: 0.02em;
    text-transform: none;
  }

  .home-hero h1 {
    margin: 0;
    font-size: clamp(2rem, 8.4vw, 2.45rem);
    line-height: 1.04;
    text-align: left;
  }

  .home-hero p {
    margin: 0;
    font-size: 15px;
    line-height: 1.55;
    text-align: left;
  }

  .hero-buttons {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 2px;
    align-items: stretch;
  }

  .hero-buttons > * {
    white-space: normal;
  }

  .hero-buttons .btn-primary,
  .hero-buttons .btn-whatsapp {
    min-height: 52px;
    padding: 14px 18px;
    font-size: 15px;
  }

  .hero-primary-btn {
    padding: 14px 18px;
    font-size: 15px;
  }

  .hero-link {
    width: auto;
    min-height: auto;
    padding: 2px 0 0;
    justify-content: flex-start;
    border: 0;
    background: transparent;
    color: #dbeafe;
    font-size: 14px;
    font-weight: 600;
  }

  .hero-link:hover {
    background: transparent;
    color: #fff;
    text-decoration: underline;
  }

  .hero-microcopy {
    margin: 0;
    padding-top: 2px;
    font-size: 13px;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.76);
    text-align: left;
  }

  .hero-panel {
    width: 100%;
    gap: 0;
    padding: 0 16px;
    border-radius: 18px;
    background: rgba(8, 20, 43, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  }

  .hero-panel-item {
    padding: 14px 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .hero-panel-item + .hero-panel-item {
    border-top: 1px solid rgba(255, 255, 255, 0.14);
  }

  .hero-panel-label {
    margin-bottom: 6px;
    font-size: 10px;
    letter-spacing: 0.14em;
    color: rgba(255, 255, 255, 0.66);
  }

  .hero-panel-item strong {
    margin-bottom: 6px;
    font-size: 15px;
    line-height: 1.25;
  }

  .hero-panel-item p {
    font-size: 13px;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.76);
  }
}

@media (max-width: 480px) {
  .home-hero {
    padding: 22px 16px 20px;
  }

  .hero-eyebrow span {
    font-size: 9.5px;
    padding: 6px 9px;
  }

  .hero-kicker {
    padding: 7px 11px;
    font-size: 10.5px;
  }

  .home-hero h1 {
    font-size: clamp(1.82rem, 9.2vw, 2.2rem);
  }

  .home-hero p {
    font-size: 14px;
  }

  .hero-buttons .btn-primary,
  .hero-buttons .btn-whatsapp {
    min-height: 50px;
    font-size: 14px;
  }

  .hero-link {
    font-size: 13.5px;
  }

  .hero-panel {
    padding: 0 14px;
  }

  .cart-count {
    top: 2px;
    right: 2px;
    width: 16px;
    height: 16px;
    min-width: 16px;
    font-size: 10px;
    border-width: 1.5px;
  }
}
