/* =========
   Rocha Store - Modern Design System
   ========= */

/* CSS Variables & Custom Properties */
:root {
  /* Colors */
  --primary: #ff5b25;
  --primary-dark: #e54d1e;
  --primary-light: #ff7a4d;
  --secondary: #6366f1;
  --secondary-dark: #4f46e5;
  --accent: #10b981;
  --accent-dark: #059669;
  
  /* Backgrounds */
  --bg-primary: #617294;
  --bg-secondary: #7185b0;
  --bg-tertiary: #1e293b;
  --bg-elevated: #334155;
  
  /* Text */
  --text-primary: #15599c;
  --text-secondary: #0f62c9;
  --text-muted: #94a3b8;
  --text-inverse: #0f172a;
  
  /* Borders & Shadows */
  --border-light: rgba(255, 255, 255, 0.1);
  --border-medium: rgba(255, 255, 255, 0.15);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.15);
  --shadow-2xl: 0 25px 50px rgba(0, 0, 0, 0.25);
  
  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  
  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-full: 9999px;
  
  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
  
  /* Layout */
  --max-width: 1200px;
  --header-height: 80px;
}

/* Light Theme */
@media (prefers-color-scheme: light) {
  :root {
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    --bg-elevated: #e2e8f0;
    --text-primary: #0f172a;
    --text-secondary: #334155;
    --text-muted: #64748b;
    --text-inverse: #ffffff;
    --border-light: rgba(0, 0, 0, 0.1);
    --border-medium: rgba(0, 0, 0, 0.15);
  }
}

/* Reset & Base Styles */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

/* Background Effects */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(800px 400px at 15% -10%, rgba(255, 91, 37, 0.1), transparent 40%),
    radial-gradient(900px 500px at 110% 0%, rgba(99, 102, 241, 0.08), transparent 35%);
  pointer-events: none;
  z-index: -1;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

/* Loading Screen */
.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity var(--transition-slow), visibility var(--transition-slow);
}

/* IMPORTANTE: Garantir que loading screen seja escondido */
.loading-screen.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: -1;
}

.loading-screen.hidden {
  opacity: 0;
  visibility: hidden;
}

.loading-content {
  text-align: center;
  animation: fadeInUp 0.8s ease;
}

.loading-logo {
  font-size: 4rem;
  margin-bottom: var(--space-md);
  animation: pulse 2s infinite;
}

.loading-text {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: var(--space-lg);
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border-light);
  border-top: 3px solid var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto;
}

/* Floating Action Button */
.fab {
  position: fixed;
  bottom: var(--space-xl);
  right: var(--space-xl);
  width: 60px;
  height: 60px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-xl);
  transition: all var(--transition-normal);
  z-index: 100;
  transform: scale(0);
  animation: scaleIn 0.5s ease forwards;
}

/* Seta 3D para voltar ao topo */
.scroll-to-top {
  position: fixed;
  bottom: var(--space-2xl);
  right: var(--space-2xl);
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, #ff5b25, #ff8c42);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 
    0 8px 25px rgba(255, 91, 37, 0.4),
    0 4px 15px rgba(0, 0, 0, 0.2),
    inset 0 2px 0 rgba(255, 255, 255, 0.3);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 1000;
  transform: translateY(100px) scale(0);
  opacity: 0;
  border: 3px solid rgba(255, 255, 255, 0.2);
}

.scroll-to-top.show {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.scroll-to-top:hover {
  transform: translateY(-8px) scale(1.1);
  box-shadow: 
    0 15px 35px rgba(255, 91, 37, 0.6),
    0 8px 25px rgba(0, 0, 0, 0.3),
    inset 0 2px 0 rgba(255, 255, 255, 0.4);
  background: linear-gradient(135deg, #ff8c42, #ff5b25);
}

.scroll-to-top:active {
  transform: translateY(-4px) scale(1.05);
}

.scroll-to-top::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, #ff5b25, #ff8c42, #ff5b25);
  border-radius: 50%;
  z-index: -1;
  opacity: 0.7;
  filter: blur(8px);
  animation: pulse 2s ease-in-out infinite;
}

.scroll-to-top .arrow-icon {
  width: 0;
  height: 0;
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
  border-bottom: 20px solid white;
  transform: translateY(-2px);
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
  transition: transform 0.3s ease;
}

.scroll-to-top:hover .arrow-icon {
  transform: translateY(-4px);
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.4));
}

/* Efeito de brilho 3D */
.scroll-to-top::after {
  content: '';
  position: absolute;
  top: 8px;
  left: 8px;
  width: 20px;
  height: 20px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.8) 0%, transparent 70%);
  border-radius: 50%;
  opacity: 0.6;
  animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 0.3; transform: scale(1.2); }
}

.fab:hover {
  transform: scale(1.1);
  box-shadow: var(--shadow-2xl);
}

.fab-icon {
  font-size: 1.5rem;
  color: white;
}

.fab-count {
  position: absolute;
  top: -8px;
  right: -8px;
  background: var(--accent);
  color: white;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
}

/* Header Profissional e Moderno */
.header {
  position: relative;
  top: auto;
  width: 100%;
  z-index: 1000;
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  backdrop-filter: blur(20px);
  border-bottom: 2px solid #ff5b25;
  transition: all var(--transition-normal);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.header.scrolled {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
  border-bottom-color: #ff8c42;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  gap: var(--space-lg);
  padding: 0 var(--space-lg);
}

/* Brand - Profissional e Visível */
.brand {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  text-decoration: none;
  color: #ffffff;
  transition: all var(--transition-normal);
  padding: var(--space-sm);
  border-radius: var(--radius-lg);
}

.brand:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 15px rgba(255, 91, 37, 0.3);
}

.brand-logo {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #ff5b25, #ff8c42);
  border-radius: 50%;
  box-shadow: 0 4px 15px rgba(255, 91, 37, 0.4);
}

.brand-icon {
  font-size: 1.8rem;
  z-index: 2;
  position: relative;
  color: #ffffff;
}

.brand-glow {
  position: absolute;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, #ff5b25 0%, transparent 70%);
  opacity: 0.6;
  filter: blur(12px);
  animation: pulse 3s ease-in-out infinite;
}

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

.brand-name {
  font-size: 1.6rem;
  font-weight: 900;
  letter-spacing: -0.025em;
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  line-height: 1.1;
}

.brand-tagline {
  font-size: 0.9rem;
  color: #ff8c42;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Navigation */
.nav-center {
  flex: 1;
  display: flex;
  justify-content: center;
  max-width: 500px;
}

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

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

#search-input {
  width: 100%;
  padding: 12px 20px;
  background: rgba(255, 255, 255, 0.95);
  border: 2px solid transparent;
  border-radius: var(--radius-full);
  color: #1f2937;
  font-size: 1rem;
  font-weight: 500;
  transition: all var(--transition-normal);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

#search-input:focus {
  outline: none;
  border-color: #ff5b25;
  box-shadow: 0 0 0 3px rgba(255, 91, 37, 0.2), 0 4px 20px rgba(0, 0, 0, 0.15);
  background: #ffffff;
  transform: translateY(-1px);
}

#search-input::placeholder {
  color: #6b7280;
  font-weight: 400;
}

.nav-menu {
  display: flex;
  align-items: center;
}

#nav-list {
  display: flex;
  list-style: none;
  gap: var(--space-md);
  align-items: center;
}

.nav-link {
  color: #ffffff;
  text-decoration: none;
  padding: 10px 16px;
  border-radius: var(--radius-lg);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.nav-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 91, 37, 0.2), transparent);
  transition: left var(--transition-normal);
}

.nav-link:hover::before {
  left: 100%;
}

.nav-link:hover {
  color: #ff8c42;
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255, 91, 37, 0.3);
}



/* Hamburger Menu */
.hamburger {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-sm);
  gap: 4px;
  z-index: 1001;
  position: relative;
}

.hamburger span {
  width: 24px;
  height: 3px;
  background: var(--text-primary);
  border-radius: var(--radius-sm);
  transition: all 0.3s ease;
  transform-origin: center;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Hover effects */
.hamburger:hover span {
  background: var(--accent-primary);
}

.hamburger:hover span:nth-child(1) {
  transform: translateY(-2px);
}

.hamburger:hover span:nth-child(3) {
  transform: translateY(2px);
}

/* Main Content */
.main-content {
  min-height: calc(100vh - var(--header-height));
}

/* Views */
.view {
  display: none;
  animation: fadeIn var(--transition-normal);
}

.view.active {
  display: block;
}

/* Hero Section */
.hero-section {
  position: relative;
  padding: var(--space-3xl) 0;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.hero-particles {
  position: absolute;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(circle at 20% 80%, rgba(255, 91, 37, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(99, 102, 241, 0.1) 0%, transparent 50%);
  animation: float 20s ease-in-out infinite;
}

.hero-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255, 91, 37, 0.05) 0%, transparent 70%);
  animation: pulse 4s ease-in-out infinite;
}

.hero {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
}

.hero-content {
  animation: slideInLeft 1s ease;
}

.hero-title {
  margin-bottom: var(--space-xl);
}

.hero-highlight {
  display: block;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: var(--space-sm);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.hero-main {
  display: block;
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: var(--space-sm);
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  display: block;
  font-size: 1.5rem;
  color: var(--text-secondary);
  font-weight: 600;
}

.hero-description {
  font-size: 1.125rem;
  color: var(--text-muted);
  margin-bottom: var(--space-2xl);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-xl);
  border: none;
  border-radius: var(--radius-full);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
  transform: translateY(0);
}

.btn::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 var(--transition-normal);
}

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

.btn:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-xl);
}

.btn:active {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, #ff5b25, #ff8c42);
  color: white;
  box-shadow: 0 4px 15px rgba(255, 91, 37, 0.4);
  border: none;
  font-weight: 700;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #ff8c42, #ff5b25);
  box-shadow: 0 8px 25px rgba(255, 91, 37, 0.6);
  transform: translateY(-2px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

.btn-hero {
  padding: var(--space-lg) var(--space-2xl);
  font-size: 1.125rem;
}

.btn-icon {
  font-size: 1.25rem;
}

/* Hero Visual */
.hero-visual {
  animation: slideInRight 1s ease;
}

.hero-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-2xl);
  padding: var(--space-2xl);
  box-shadow: var(--shadow-xl);
  backdrop-filter: blur(20px);
  transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
  transition: transform var(--transition-normal);
}

.hero-card:hover {
  transform: perspective(1000px) rotateY(0deg) rotateX(0deg) scale(1.02);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

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

.stat-number {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--primary);
  margin-bottom: var(--space-xs);
  display: block;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Section Headers */
.section-header {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: var(--space-md);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
}

.title-icon {
  font-size: 2rem;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* ======================================== */
/* GRID DE PRODUTOS - MOBILE FIRST RESPONSIVO */
/* ======================================== */
/* 
  LAYOUT RESPONSIVO ESTILO SHOPEE:
  📱 Mobile: 2 colunas (padrão)
  📱 Tablet: 3 colunas (680px+)  
  💻 Desktop: 4 colunas (980px+)
  🖥️ Large: 5 colunas (1200px+)
*/
.products-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, 1fr);
  margin: 1rem 0;
  padding: 0 8px;
}

@media (min-width: 480px) {
  .products-grid {
    gap: 12px;
    padding: 0 12px;
  }
}

@media (min-width: 680px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    padding: 0 16px;
  }
}

@media (min-width: 980px) {
  .products-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 0;
  }
}

@media (min-width: 1200px) {
  .products-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

/* SISTEMA DE FILTROS */
.filters-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  justify-content: center;
  margin: 30px 0;
  padding: 20px;
  background: linear-gradient(135deg, rgba(255, 91, 37, 0.1), rgba(255, 140, 66, 0.1));
  border-radius: 20px;
  border: 1px solid rgba(255, 91, 37, 0.2);
}

.filter-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.filter-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.filter-select {
  padding: 12px 16px;
  border: 2px solid rgba(255, 91, 37, 0.3);
  border-radius: 12px;
  background: white;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 150px;
}

.filter-select:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 15px rgba(255, 91, 37, 0.2);
}

.filter-select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255, 91, 37, 0.1);
}

.price-range {
  display: flex;
  align-items: center;
  gap: 8px;
}

.price-input {
  padding: 10px 12px;
  border: 2px solid rgba(255, 91, 37, 0.3);
  border-radius: 8px;
  background: white;
  font-size: 14px;
  width: 80px;
  text-align: center;
}

.price-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255, 91, 37, 0.1);
}

.price-separator {
  font-weight: 600;
  color: var(--text-primary);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 12px;
  border-radius: 8px;
}

/* Filtros específicos para Home */
.home-filters {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
  border-color: rgba(99, 102, 241, 0.2);
}

.home-filters .filter-select {
  border-color: rgba(99, 102, 241, 0.3);
}

.home-filters .filter-select:hover {
  border-color: var(--secondary);
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.2);
}

/* CHIPS DE CATEGORIA RÁPIDA */
.category-chips {
  margin: 30px 0;
  padding: 20px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.7));
  border-radius: 20px;
  border: 1px solid rgba(255, 91, 37, 0.1);
  backdrop-filter: blur(10px);
}

.chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: center;
}

.chip-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-right: 10px;
}

.category-chip {
  padding: 10px 16px;
  border: 2px solid rgba(255, 91, 37, 0.2);
  border-radius: 25px;
  background: white;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  text-decoration: none;
  display: inline-block;
}

.category-chip:hover {
  border-color: var(--primary);
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 91, 37, 0.3);
}

.category-chip.active {
  border-color: var(--primary);
  background: var(--primary);
  color: white;
  box-shadow: 0 4px 15px rgba(255, 91, 37, 0.4);
}

.category-chip.active:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(255, 91, 37, 0.5);
}

/* Mobile Category Dropdown */
.mobile-category-dropdown {
  display: none;
  margin-top: 20px;
}

.mobile-category-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 15px 20px;
  background: white;
  border: 2px solid var(--primary);
  border-radius: 12px;
  color: var(--primary);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.mobile-category-toggle:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 91, 37, 0.3);
}

.mobile-category-toggle .toggle-icon {
  margin-right: 10px;
  font-size: 16px;
}

.mobile-category-toggle .toggle-text {
  flex: 1;
  text-align: left;
}

.mobile-category-toggle .toggle-arrow {
  transition: transform 0.3s ease;
  font-size: 12px;
}

.mobile-category-toggle.active .toggle-arrow {
  transform: rotate(180deg);
}

.mobile-category-menu {
  display: none;
  margin-top: 10px;
  background: white;
  border: 1px solid rgba(255, 91, 37, 0.2);
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  max-height: 300px;
  overflow-y: auto;
}

.mobile-category-menu.show {
  display: block;
}

.mobile-category-item {
  display: block;
  padding: 15px 20px;
  color: var(--text-primary);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 91, 37, 0.1);
  transition: all 0.3s ease;
  font-size: 14px;
}

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

.mobile-category-item:hover {
  background: rgba(255, 91, 37, 0.05);
  color: var(--primary);
}

.mobile-category-item.active {
  background: var(--primary);
  color: white;
}

/* Estado vazio */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}

.empty-icon {
  font-size: 48px;
  margin-bottom: 20px;
  opacity: 0.5;
}

.empty-state h3 {
  font-size: 24px;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.empty-state p {
  font-size: 16px;
  line-height: 1.5;
}

/* Product Cards - Mobile First Responsive */
.card {
  background: #ffffff;
  border: 1px solid #d1d5db;
  border-radius: 12px;
  padding: 1rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  min-height: 320px;
}

/* Mobile Responsive para Category Chips */
@media (max-width: 768px) {
  .chip-group {
    display: none;
  }
  
  .mobile-category-dropdown {
    display: block;
  }
  
  .category-chips {
    padding: 15px;
    margin: 20px 0;
  }
}

/* Botões de Teste do Facebook Pixel */
.pixel-test-section {
  border-top: 1px solid rgba(255, 91, 37, 0.2);
  padding-top: 15px;
  margin-top: 15px;
}

.pixel-test-section .btn {
  font-size: 12px;
  padding: 8px 12px;
  border-radius: 6px;
}

.pixel-test-section .btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, transparent, rgba(255, 91, 37, 0.05));
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.card:hover::before {
  opacity: 1;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
  border-color: #9ca3af;
}

/* Mobile touch optimization */
@media (max-width: 768px) {
  .card:hover {
    transform: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-color: #d1d5db;
  }
  
  .card:active {
    transform: scale(0.98);
    transition: transform 0.1s ease;
  }
}

.card .img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 8px;
  margin-bottom: 1rem;
  overflow: hidden;
  position: relative;
  background: #f8f8f8;
}

.card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

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

.card h3 {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
  color: #2d3748;
  line-height: 1.3;
  min-height: 44px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card .meta {
  color: #666;
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.sales {
  color: #666;
  font-size: 0.875rem;
}

.commission {
  color: #ff5b25;
  font-weight: 600;
  font-size: 0.875rem;
}

.commission-rate {
  color: #666;
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.chip {
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 500;
}

/* Product Badges */
.product-badges {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  z-index: 10;
}

.badge-off {
  background: #ffd700;
  color: #333;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  text-align: center;
  min-width: 60px;
}

.badge-recommended {
  background: #ff4444;
  color: white;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  text-align: center;
  min-width: 80px;
}

/* Product Actions */
.product-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

.action-checkbox {
  width: 18px;
  height: 18px;
  accent-color: #ff5b25;
}

.btn-get-link {
  background: #ff5b25;
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease;
  flex: 1;
}

.btn-get-link:hover {
  background: #e54d1f;
}

.card .price {
  font-size: 1.5rem;
  font-weight: 900;
  color: #ff5b25;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: 'Inter', sans-serif;
}

.card .old {
  color: #a0aec0;
  text-decoration: line-through;
  font-size: 1rem;
  margin-left: var(--space-sm);
  font-weight: 500;
}

/* Badges e elementos visuais */
.badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #ffbf00;
  color: #000000;
  font-weight: 900;
  padding: 6px 12px;
  border-radius: 12px;
  font-size: 12px;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.tag-commission {
  display: inline-block;
  margin: 8px 0;
  font-size: 11px;
  color: #ff5b25;
  border: 2px solid #ff5b25;
  padding: 4px 8px;
  border-radius: 8px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #718096;
  font-size: 12px;
  margin-top: 8px;
  margin-bottom: 12px;
  font-weight: 500;
}

.card .actions {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
  margin-top: 1rem;
}

.card .btn {
  background: #ff5b25;
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
  font-size: 14px;
  width: 100%;
}

.card .btn:hover {
  background: #e04a1a;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 91, 37, 0.3);
}

.card .btn-primary {
  background: #ff5b25;
}

.card .btn-primary:hover {
  background: #e04a1a;
}

/* ======================================== */
/* CARDS DE PRODUTOS - LAYOUT PROFISSIONAL */
/* ======================================== */
/* 
  LAYOUT MELHORADO:
  ✅ Fundo azul roxo (#735cea) para visual moderno
  ✅ Borda laranja de 3px para destaque
  ✅ Sombra laranja com glow
  ✅ Texto branco para contraste
  ✅ Layout 4 colunas responsivo
  ✅ Hover com fundo azul escuro
  ✅ Modal de visualização de imagem
  ✅ Botão de compra direta na Shopee
*/
.product-card {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  z-index: 1 !important;
  position: relative !important;
  background: #ffffff !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 12px !important;
  padding: 1rem !important;
  margin-bottom: 1rem !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08) !important;
  min-height: 300px !important;
  transition: all 0.3s ease !important;
  overflow: hidden !important;
}

.product-card::before {
  content: '' !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  height: 4px !important;
  background: linear-gradient(90deg, #ff5b25, #ff8c42, #ff5b25) !important;
  background-size: 200% 100% !important;
  animation: shimmer 2s infinite !important;
}

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

/* Hover dos cards - Efeito sutil estilo Shopee */
.product-card:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 25px rgba(0,0,0,0.15) !important;
  border-color: #d1d5db !important;
  background: #ffffff !important;
}

/* Mobile: remover hover, usar active */
@media (max-width: 768px) {
  .product-card:hover {
    transform: none !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08) !important;
    border-color: #e5e7eb !important;
  }
  
  .product-card:active {
    transform: scale(0.98) !important;
    transition: transform 0.1s ease !important;
  }
}

.product-card:hover::before {
  animation: shimmer 1s infinite !important;
}

.product-card .img {
  width: 100% !important;
  aspect-ratio: 1 !important;
  border-radius: 16px !important;
  margin-bottom: 1rem !important;
  overflow: hidden !important;
  position: relative !important;
  background: linear-gradient(45deg, #f8f8f8, #e8e8e8) !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
}

.product-card .img:hover {
  transform: scale(1.05) !important;
  box-shadow: 0 8px 25px rgba(0,0,0,0.2) !important;
}

.product-card .img img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  transition: transform 0.3s ease !important;
}

.product-card:hover .img img {
  transform: scale(1.05) !important;
}

.product-card h3 {
  font-size: 1rem !important;
  font-weight: 600 !important;
  margin-bottom: 0.75rem !important;
  color: #1f2937 !important;
  line-height: 1.3 !important;
  min-height: 40px !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
}

.product-card .tag-commission {
  display: inline-block !important;
  margin: 8px 0 !important;
  font-size: 11px !important;
  color: #ff5b25 !important;
  border: 2px solid #ff5b25 !important;
  padding: 4px 8px !important;
  border-radius: 8px !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
}

.product-card .price {
  font-size: 1.5rem !important;
  font-weight: 900 !important;
  color: #ff5b25 !important;
  margin-bottom: 1rem !important;
  display: flex !important;
  align-items: center !important;
  gap: 0.75rem !important;
  font-family: 'Inter', sans-serif !important;
}

.product-card .meta-row {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  color: #6b7280 !important;
  font-size: 12px !important;
  margin-top: 8px !important;
  margin-bottom: 12px !important;
  font-weight: 500 !important;
}

.product-card .actions {
  display: flex !important;
  gap: var(--space-sm) !important;
  flex-wrap: wrap !important;
  margin-top: 1rem !important;
}

.product-card .btn {
  background: linear-gradient(135deg, #ff5b25, #ff8c42) !important;
  color: white !important;
  border: none !important;
  padding: 14px 24px !important;
  border-radius: 12px !important;
  font-weight: 800 !important;
  text-decoration: none !important;
  display: inline-block !important;
  text-align: center !important;
  transition: all 0.3s ease !important;
  cursor: pointer !important;
  font-size: 14px !important;
  width: 100% !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  box-shadow: 0 4px 15px rgba(255, 91, 37, 0.4) !important;
}

.product-card .btn:hover {
  background: linear-gradient(135deg, #e04a1a, #ff6b2a) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 25px rgba(255, 91, 37, 0.6) !important;
}

/* ======================================== */
/* MODAL DE VISUALIZAÇÃO DE PRODUTO */
/* ======================================== */
.product-modal {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  background: rgba(0, 0, 0, 0.9) !important;
  z-index: 10000 !important;
  display: none !important;
  align-items: flex-start !important;
  justify-content: center !important;
  padding: 20px !important;
  overflow-y: auto !important;
}

.product-modal.show {
  display: flex !important;
}

.product-modal-content {
  background: linear-gradient(135deg, #735cea, #5a4fcf) !important;
  border-radius: 20px !important;
  padding: 1.5rem !important;
  max-width: 500px !important;
  width: 100% !important;
  position: relative !important;
  border: 3px solid #ff5b25 !important;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5) !important;
  margin: 20px auto !important;
}

.product-modal-close {
  position: absolute !important;
  top: 10px !important;
  right: 15px !important;
  background: #ff5b25 !important;
  color: white !important;
  border: none !important;
  width: 45px !important;
  height: 45px !important;
  border-radius: 50% !important;
  cursor: pointer !important;
  font-size: 24px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 0.3s ease !important;
  z-index: 10001 !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3) !important;
}

.product-modal-close:hover {
  background: #e04a1a !important;
  transform: scale(1.1) !important;
}

/* GALERIA DE IMAGENS */
.product-modal-gallery {
  margin-bottom: 2rem;
}

.main-image-container {
  position: relative;
  width: 100%;
  height: 300px;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 1rem;
}

.product-modal-main-image {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  border-radius: 16px !important;
  background: white;
  transition: all 0.3s ease;
}

/* BOTÕES DE NAVEGAÇÃO DA GALERIA */
.gallery-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 91, 37, 0.9);
  color: white;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 10;
}

.gallery-nav-btn:hover {
  background: rgba(255, 91, 37, 1);
  transform: translateY(-50%) scale(1.1);
}

.gallery-prev {
  left: 15px;
}

.gallery-next {
  right: 15px;
}

/* MINIATURAS */
.product-thumbnails {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.thumbnail-item {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  border: 3px solid transparent;
  transition: all 0.3s ease;
  background: white;
}

.thumbnail-item:hover {
  border-color: #ff5b25;
  transform: scale(1.05);
}

.thumbnail-item.active {
  border-color: #ff5b25;
  box-shadow: 0 4px 15px rgba(255, 91, 37, 0.4);
}

.thumbnail-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.3s ease;
}

.thumbnail-item:hover img {
  transform: scale(1.1);
}

/* INFORMAÇÕES DO PRODUTO */
.product-modal-info {
  text-align: center;
  margin-bottom: 2rem;
}

.product-modal-title {
  color: white !important;
  font-size: 1.2rem !important;
  font-weight: 700 !important;
  margin-bottom: 0.8rem !important;
  text-align: center !important;
  line-height: 1.3;
}

.product-modal-description {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9rem;
  line-height: 1.4;
  margin-bottom: 0.8rem;
  text-align: center;
  max-height: 80px;
  overflow-y: auto;
}

.product-modal-meta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.product-category {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
}

.product-discount {
  background: #ff5b25;
  color: white;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
}

.product-modal-price {
  color: #ff5b25 !important;
  font-size: 1.5rem !important;
  font-weight: 800 !important;
  text-align: center !important;
  margin-bottom: 1rem !important;
}

.product-modal-actions {
  display: flex !important;
  gap: 1rem !important;
  justify-content: center !important;
}

.product-modal-btn {
  padding: 16px 32px !important;
  border: none !important;
  border-radius: 12px !important;
  font-weight: 800 !important;
  font-size: 16px !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
}

.product-modal-btn-primary {
  background: linear-gradient(135deg, #ff5b25, #ff8c42) !important;
  color: white !important;
}

.product-modal-btn-primary:hover {
  background: linear-gradient(135deg, #e04a1a, #ff6b2a) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 25px rgba(255, 91, 37, 0.6) !important;
}

.product-modal-btn-secondary {
  background: transparent !important;
  color: white !important;
  border: 2px solid #ff5b25 !important;
}

.product-modal-btn-secondary:hover {
  background: #ff5b25 !important;
  transform: translateY(-2px) !important;
}

/* BOTÃO DE FECHAR ALTERNATIVO */
.product-modal-close-alt {
  position: fixed !important;
  bottom: 20px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  background: #ff5b25 !important;
  color: white !important;
  border: none !important;
  padding: 12px 24px !important;
  border-radius: 25px !important;
  cursor: pointer !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  z-index: 10002 !important;
  box-shadow: 0 4px 20px rgba(255, 91, 37, 0.6) !important;
  transition: all 0.3s ease !important;
}

.product-modal-close-alt:hover {
  background: #e04a1a !important;
  transform: translateX(-50%) translateY(-2px) !important;
  box-shadow: 0 6px 25px rgba(255, 91, 37, 0.8) !important;
}

.product-card .btn:hover {
  background: #e04a1a !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 12px rgba(255, 91, 37, 0.3) !important;
}

.product-card .badge {
  position: absolute !important;
  top: 12px !important;
  left: 12px !important;
  background: #ffbf00 !important;
  color: #273bef !important;
  font-weight: 900 !important;
  padding: 6px 12px !important;
  border-radius: 12px !important;
  font-size: 12px !important;
  z-index: 10 !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2) !important;
}

/* Categories Grid */
.categories-grid {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: var(--space-3xl);
}

.category-chip {
  padding: var(--space-md) var(--space-lg);
  background: var(--bg-secondary);
  border: 2px solid var(--border-light);
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-normal);
  font-weight: 500;
  position: relative;
  overflow: hidden;
}

.category-chip::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 91, 37, 0.1), transparent);
  transition: left var(--transition-normal);
}

.category-chip:hover::before {
  left: 100%;
}

.category-chip:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.category-chip.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}



/* Profile */
.profile-container {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: var(--space-2xl);
  margin-bottom: var(--space-3xl);
}

.profile-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  box-shadow: var(--shadow-lg);
}

.profile-header {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.profile-avatar {
  width: 80px;
  height: 80px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: white;
}

.profile-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.form-group label {
  font-weight: 600;
  color: var(--text-secondary);
}

.form-group input,
.form-group select {
  padding: var(--space-md);
  background: var(--bg-tertiary);
  border: 2px solid var(--border-light);
  border-radius: var(--radius-lg);
  color: var(--text-primary);
  font-size: 1rem;
  transition: all var(--transition-normal);
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255, 91, 37, 0.1);
}

.stats-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  box-shadow: var(--shadow-lg);
}

.stats-card h4 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: var(--space-lg);
  text-align: center;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
}

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

.stats-grid .stat-icon {
  font-size: 2rem;
  margin-bottom: var(--space-sm);
}

.stats-grid .stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: var(--space-xs);
}

.stats-grid .stat-label {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Footer */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-light);
  margin-top: var(--space-3xl);
  padding: var(--space-3xl) 0 var(--space-xl);
}

.footer-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-2xl);
}

.footer-main {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--space-3xl);
}

.footer-brand .footer-logo {
  font-size: 1.5rem;
  font-weight: 900;
  margin-bottom: var(--space-md);
}

.footer-brand p {
  color: var(--text-muted);
  max-width: 300px;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-2xl);
}

.footer-section h4 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: var(--space-lg);
  color: var(--text-primary);
}

.footer-section ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer-section a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition-normal);
}

.footer-section a:hover {
  color: var(--primary);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-xl);
  border-top: 1px solid var(--border-light);
  flex-wrap: wrap;
  gap: var(--space-md);
}

.footer-copyright {
  color: var(--text-muted);
  font-size: 0.875rem;
}

.footer-legal {
  display: flex;
  gap: var(--space-lg);
}

.footer-legal a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color var(--transition-normal);
}

.footer-legal a:hover {
  color: var(--primary);
}

/* Toast Notifications */
.toast {
  position: fixed;
  top: 20px;
  right: 20px;
  background: #333;
  color: white;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(53, 3, 215, 0.3);
  z-index: 9999;
  transform: translateX(120%);
  transition: transform 0.3s ease;
  min-width: 300px;
  max-width: 400px;
}

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

.toast-content {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.toast-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
}

.toast-message {
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.4;
}

/* Toast Types */
.toast-success {
  background: #10b981;
  border-left: 4px solid #059669;
}

.toast-error {
  background: #ef4444;
  border-left: 4px solid #dc2626;
}

.toast-warning {
  background: #f59e0b;
  border-left: 4px solid #d97706;
}

.toast-info {
  background: #3b82f6;
  border-left: 4px solid #2563eb;
}

/* Google Ads */
.ad-wrap {
  margin: var(--space-2xl) 0;
}

.ad-slot {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  background: var(--bg-secondary);
  border: 2px dashed var(--border-medium);
  border-radius: var(--radius-lg);
  color: var(--text-muted);
  font-size: 0.875rem;
}

.ad-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
}

.ad-icon {
  font-size: 2rem;
  opacity: 0.5;
}

/* Empty States */
.empty-state {
  text-align: center;
  padding: var(--space-3xl);
  color: var(--text-muted);
}

.empty-icon {
  font-size: 4rem;
  margin-bottom: var(--space-lg);
  opacity: 0.5;
}

.empty-state h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: var(--space-md);
  color: var(--text-secondary);
}

.empty-state p {
  font-size: 1.125rem;
  max-width: 400px;
  margin: 0 auto;
}

/* Utility Classes */
.hidden {
  display: none !important;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .profile-container {
    grid-template-columns: 1fr;
  }
}

/* Toast Mobile Responsive */
@media (max-width: 768px) {
  .toast {
    top: 10px;
    right: 10px;
    left: 10px;
    min-width: auto;
    max-width: none;
    transform: translateY(-120%);
  }
  
  .toast.show {
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  /* Header mobile estilo Shopee */
  .nav {
    padding: 0 12px;
    height: 60px;
  }
  
  .nav-center {
    flex: 1;
    display: flex;
    margin: 0 12px;
  }
  
  #search-input {
    padding: 10px 16px;
    font-size: 14px;
    border-radius: 20px;
  }
  
  .hamburger {
    display: flex;
  }
  
  .nav-menu {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-light);
    padding: var(--space-lg);
    flex-direction: column;
    gap: var(--space-md);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
  }
  
  .nav-menu.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  
  #nav-list {
    flex-direction: column;
    gap: var(--space-md);
    width: 100%;
  }
  
  .nav-link {
    width: 100%;
    text-align: center;
    padding: 16px 20px;
    border-radius: var(--radius-lg);
    font-size: 1.1rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
  }
  
  .nav-link:hover {
    background: rgba(255, 91, 37, 0.2);
    border-color: var(--accent-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 91, 37, 0.3);
  }
  
  /* Overlay para fechar menu */
  .nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
  }
  
  .nav-overlay.show {
    opacity: 1;
    visibility: visible;
  }
  
  .hero-main {
    font-size: 2rem;
  }
  
  .hero-actions {
    justify-content: center;
  }
  
  /* Grid mobile - 2 colunas como Shopee */
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    padding: 0 8px;
  }
  
  .footer-main {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  
  /* Modal mobile responsivo */
  .product-modal-content {
    padding: 1rem !important;
    max-width: 95% !important;
    margin: 10px !important;
  }
  
  .main-image-container {
    height: 300px;
  }
  
  .gallery-nav-btn {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }
  
  .product-thumbnails {
    gap: 8px;
  }
  
  .thumbnail-item {
    width: 60px;
    height: 60px;
  }
  
  .product-modal-title {
    font-size: 1.2rem !important;
  }
  
  .product-modal-price {
    font-size: 1.5rem !important;
  }
  
  .product-modal-actions {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .product-modal-btn {
    padding: 14px 24px !important;
    font-size: 14px !important;
  }
  
  /* Seções mobile */
  .section-header {
    margin-bottom: var(--space-xl);
    padding: 0 12px;
  }
  
  .section-title {
    font-size: 1.5rem;
  }
  
  .section-subtitle {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 8px;
  }
  
  .hero-section {
    padding: var(--space-xl) 0;
  }
  
  .hero-main {
    font-size: 1.8rem;
  }
  
  .hero-actions {
    flex-direction: column;
    align-items: center;
  }
  
  .btn-hero {
    width: 100%;
    justify-content: center;
  }
  
  /* Header mobile compacto estilo Shopee */
  .header {
    padding: 6px 0;
    border-bottom-width: 1px;
  }
  
  .nav {
    height: 60px;
    padding: 0 12px;
  }
  
  .brand-name {
    font-size: 1.3rem;
  }
  
  .brand-tagline {
    display: none;
  }
  
  .brand-logo {
    width: 40px;
    height: 40px;
  }
  
  .brand-icon {
    font-size: 1.5rem;
  }
  
  /* Cards mobile otimizados */
  .card {
    padding: 0.75rem;
    min-height: 280px;
    border-radius: 8px;
  }
  
  .card h3 {
    font-size: 0.9rem;
    min-height: 36px;
    line-height: 1.2;
  }
  
  .card .price {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
  }
  
  .card .meta-row {
    font-size: 11px;
    margin-bottom: 8px;
  }
  
  .card .actions {
    margin-top: 0.75rem;
  }
  
  .card .btn {
    padding: 10px 16px;
    font-size: 12px;
  }
  
  /* Filtros mobile */
  .filters-bar {
    padding: 12px;
    gap: 12px;
    flex-direction: column;
    align-items: stretch;
  }
  
  .filter-group {
    align-items: stretch;
  }
  
  .filter-select {
    width: 100%;
    min-width: auto;
  }
  
  /* Chips de categoria mobile */
  .category-chips {
    padding: 15px;
    margin: 20px 0;
  }
  
  .chip-group {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  
  .chip-label {
    text-align: center;
    margin-right: 0;
    margin-bottom: 8px;
  }
  
  .category-chip {
    width: 100%;
    text-align: center;
    padding: 12px 16px;
    font-size: 14px;
  }
}

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

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

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

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleIn {
  from { transform: scale(0); }
  to { transform: scale(1); }
}

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

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}

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

/* AOS (Animate On Scroll) Support */
[data-aos] {
  opacity: 0;
  transition: all var(--transition-slow);
}

[data-aos].aos-animate {
  opacity: 1;
}

[data-aos="fade-up"] {
  transform: translateY(30px);
}

[data-aos="fade-up"].aos-animate {
  transform: translateY(0);
}

[data-aos="fade-left"] {
  transform: translateX(-30px);
}

[data-aos="fade-left"].aos-animate {
  transform: translateX(0);
}

[data-aos="fade-right"] {
  transform: translateX(30px);
}

[data-aos="fade-right"].aos-animate {
  transform: translateX(0);
}

[data-aos="fade-in"] {
  opacity: 0;
}

[data-aos="fade-in"].aos-animate {
  opacity: 1;
}

/* Focus States for Accessibility */
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* Print Styles */
@media print {
  .header,
  .footer,
  .fab,
  .toast,
  .ad-wrap {
    display: none !important;
  }
  
  .main-content {
    padding: 0;
  }
  
  .card {
    break-inside: avoid;
    box-shadow: none;
    border: 1px solid #ccc;
  }
}

/* =========
   Authentication & Modals
   ========= */

/* Modal Base */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.modal.show {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
}

.modal-content {
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 0;
  width: 90%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.9) translateY(20px);
  transition: transform var(--transition-normal);
  box-shadow: var(--shadow-2xl);
}

.modal.show .modal-content {
  transform: scale(1) translateY(0);
}

.modal-header {
  padding: var(--space-xl);
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-header h2 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
}

.modal-close {
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  transition: all var(--transition-normal);
}

.modal-close:hover {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}

.modal-body {
  padding: var(--space-xl);
}

/* Auth Forms */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.auth-form .form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.auth-form label {
  font-weight: 600;
  color: var(--text-secondary);
}

.auth-form input {
  padding: var(--space-md);
  background: var(--bg-tertiary);
  border: 2px solid var(--border-light);
  border-radius: var(--radius-lg);
  color: var(--text-primary);
  font-size: 1rem;
  transition: all var(--transition-normal);
}

.auth-form input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255, 91, 37, 0.1);
}

.btn-full {
  width: 100%;
  justify-content: center;
}

.auth-divider {
  text-align: center;
  margin: var(--space-lg) 0;
  position: relative;
}

.auth-divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--border-light);
}

.auth-divider span {
  background: var(--bg-secondary);
  padding: 0 var(--space-md);
  color: var(--text-muted);
  font-size: 0.875rem;
}

.auth-footer {
  text-align: center;
  margin-top: var(--space-lg);
}

.auth-footer a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

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

/* Admin Panel */
.admin-modal .modal-content {
  max-width: 800px;
}

.admin-tabs {
  display: flex;
  gap: var(--space-sm);
  margin-bottom: var(--space-xl);
  border-bottom: 1px solid var(--border-light);
}

.tab-btn {
  background: none;
  border: none;
  padding: var(--space-md) var(--space-lg);
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all var(--transition-normal);
  font-weight: 500;
}

.tab-btn.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.tab-btn:hover {
  color: var(--text-primary);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.admin-actions {
  display: flex;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.admin-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-lg);
}

.admin-form .form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.admin-form label {
  font-weight: 600;
  color: var(--text-secondary);
}

.admin-form input,
.admin-form select,
.admin-form textarea {
  padding: var(--space-md);
  background: var(--bg-tertiary);
  border: 2px solid var(--border-light);
  border-radius: var(--radius-lg);
  color: var(--text-primary);
  font-size: 1rem;
  transition: all var(--transition-normal);
}

.admin-form input:focus,
.admin-form select:focus,
.admin-form textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255, 91, 37, 0.1);
}

.admin-form textarea {
  resize: vertical;
  min-height: 100px;
}

.image-preview {
  margin-top: var(--space-sm);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--space-md);
  max-width: 100%;
}

.preview-image-container {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 2px solid var(--border-light);
}

.preview-image-container img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  display: block;
}

.preview-image-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.8);
  color: rgb(71, 63, 167);
  padding: var(--space-sm);
  font-size: 0.875rem;
}

.image-number {
  background: var(--primary);
  color: white;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  margin-right: var(--space-sm);
  font-weight: 600;
}

.image-name {
  font-size: 0.75rem;
  opacity: 0.9;
}

.form-help {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-top: var(--space-xs);
  font-style: italic;
}

.form-actions {
  display: flex;
  gap: var(--space-md);
  justify-content: flex-end;
}

.admin-list {
  max-height: 400px;
  overflow-y: auto;
}

.admin-product-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-md);
  background: var(--bg-tertiary);
}

.product-image-container {
  position: relative;
  width: 80px;
  height: 80px;
  border-radius: var(--radius-md);
  overflow: hidden;
}

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

.image-count {
  position: absolute;
  top: 4px;
  right: 4px;
  background: var(--primary);
  color: white;
  font-size: 0.75rem;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  font-weight: 600;
}

.product-info {
  flex: 1;
}

.product-info h4 {
  margin: 0 0 var(--space-xs) 0;
  color: var(--text-primary);
  font-size: 1rem;
}

.product-info p {
  margin: 0 0 var(--space-xs) 0;
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.product-info small {
  color: var(--text-muted);
  font-size: 0.75rem;
}

.product-actions {
  display: flex;
  gap: var(--space-sm);
}

/* Auth Buttons */
.auth-buttons {
  display: flex;
  gap: var(--space-sm);
  align-items: center;
}

.btn-small {
  padding: var(--space-sm) var(--space-md);
  font-size: 0.875rem;
}

/* Loading Products */
.loading-products {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-3xl);
  color: var(--text-muted);
}

/* IMPORTANTE: Esconder loading quando produtos carregarem */
.loading-products.hidden {
  display: none !important;
}

.loading-products .loading-spinner {
  margin-bottom: var(--space-md);
}

/* Profile Info */
.profile-info {
  padding: var(--space-lg);
  background: var(--bg-tertiary);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-lg);
}

.profile-info h4 {
  margin: 0 0 var(--space-md) 0;
  color: var(--text-primary);
}

.profile-info p {
  margin: var(--space-sm) 0;
  color: var(--text-secondary);
}

/* Responsive Modals */
@media (max-width: 768px) {
  .modal-content {
    width: 95%;
    margin: var(--space-md);
  }
  
  .admin-modal .modal-content {
    width: 95%;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .form-actions {
    flex-direction: column;
  }
  
  .admin-tabs {
    flex-wrap: wrap;
  }
}
