/* =========================================================
   PlanilhaPro Market — Design System
   ========================================================= */

/* === Google Fonts === */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* === CSS Variables === */
:root {
  /* Brand Colors */
  --primary: #2563EB;
  --primary-dark: #1D4ED8;
  --primary-light: #EFF6FF;
  --primary-ultra-light: #F0F7FF;
  --accent: #F97316;
  --accent-dark: #EA580C;
  --accent-light: #FFF7ED;

  /* Status Colors */
  --success: #10B981;
  --success-light: #ECFDF5;
  --warning: #F59E0B;
  --warning-light: #FFFBEB;
  --danger: #EF4444;
  --danger-light: #FEF2F2;

  /* Neutral Palette */
  --bg: #F1F5F9;
  --bg-alt: #E9EEF5;
  --surface: #FFFFFF;
  --surface-hover: #FAFBFF;
  --border: #E2E8F0;
  --border-dark: #CBD5E1;
  --text: #0F172A;
  --text-secondary: #475569;
  --text-muted: #94A3B8;
  --text-disabled: #CBD5E1;

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08), 0 2px 6px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.10), 0 4px 12px rgba(0, 0, 0, 0.06);
  --shadow-xl: 0 20px 48px rgba(0, 0, 0, 0.12), 0 8px 20px rgba(0, 0, 0, 0.08);
  --shadow-blue: 0 8px 24px rgba(37, 99, 235, 0.25);
  --shadow-orange: 0 8px 24px rgba(249, 115, 22, 0.25);

  /* Spacing */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;

  /* Border Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --radius-2xl: 28px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-base: 0.25s ease;
  --transition-slow: 0.4s ease;

  /* Layout */
  --max-width: 100%;
  --navbar-height: 70px;
  --topbar-height: 40px;
}

/* === RESET === */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select, textarea { font-family: inherit; }
ul, ol { list-style: none; }

/* === TYPOGRAPHY === */
h1 { font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 800; line-height: 1.15; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); font-weight: 600; line-height: 1.3; }
h4 { font-size: 1rem; font-weight: 600; }
p { color: var(--text-secondary); }

/* === LAYOUT === */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.grid { display: grid; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }


/* =========================================================
   TOP BAR
   ========================================================= */
.top-bar {
  background: var(--primary-dark);
  color: white;
  height: var(--topbar-height);
  display: flex;
  align-items: center;
  font-size: 0.8rem;
  font-weight: 500;
}

.top-bar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.top-bar-left { display: flex; gap: var(--space-6); align-items: center; }
.top-bar-right { display: flex; gap: var(--space-4); align-items: center; }

.top-bar a {
  color: rgba(255, 255, 255, 0.85);
  transition: color var(--transition-fast);
}
.top-bar a:hover { color: white; }

.top-bar-badge {
  background: var(--accent);
  color: white;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

/* Animated Top Bar Phrases */
.top-bar-phrases {
  position: relative;
  height: 20px;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  min-width: 450px;
}
.top-bar-phrases .phrase {
  position: absolute;
  top: 0;
  left: 0;
  white-space: nowrap;
  opacity: 0;
  animation: fadePhrases 20s infinite;
}
.top-bar-phrases .phrase:nth-child(1) { animation-delay: 0s; }
.top-bar-phrases .phrase:nth-child(2) { animation-delay: 4s; }
.top-bar-phrases .phrase:nth-child(3) { animation-delay: 8s; }
.top-bar-phrases .phrase:nth-child(4) { animation-delay: 12s; }
.top-bar-phrases .phrase:nth-child(5) { animation-delay: 16s; }

@keyframes fadePhrases {
  0%, 3% { opacity: 0; transform: translateY(5px); }
  8%, 15% { opacity: 1; transform: translateY(0); }
  20%, 100% { opacity: 0; transform: translateY(-5px); }
}

/* =========================================================
   NAVBAR
   ========================================================= */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  height: var(--navbar-height);
  box-shadow: var(--shadow-sm);
}

.navbar .container {
  height: 100%;
  display: flex;
  align-items: center;
  gap: var(--space-6);
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  text-decoration: none;
  flex-shrink: 0;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.nav-logo-img {
  height: 48px;
  width: auto;
  object-fit: contain;
  border-radius: var(--radius-md);
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.2));
  transition: transform var(--transition-fast);
}

.nav-logo:hover .nav-logo-img {
  transform: scale(1.06);
}

.nav-logo-icon {
  width: 58px;
  height: 58px;
  background: linear-gradient(135deg, #1E293B 0%, #0F172A 100%);
  border: 1px solid rgba(245, 158, 11, 0.4);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.nav-logo-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nav-logo:hover .nav-logo-icon {
  transform: scale(1.08);
  border-color: #F59E0B;
}

.nav-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.nav-logo-name {
  font-size: 1.4rem;
  font-weight: 900;
  color: #0F172A; /* Azul escuro elegante */
  letter-spacing: -0.02em;
  font-family: 'Inter', system-ui, sans-serif;
}

.nav-logo-name span {
  background: linear-gradient(180deg, #F59E0B 0%, #D97706 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 900;
  margin-left: 1px;
}

.nav-logo-tagline {
  font-size: 0.65rem;
  color: #F59E0B;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-top: 3px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-logo-tagline::before, .nav-logo-tagline::after {
  content: '';
  display: inline-block;
  height: 1px;
  width: 10px;
  background: linear-gradient(90deg, transparent, #F59E0B);
}
.nav-logo-tagline::after {
  background: linear-gradient(90deg, #F59E0B, transparent);
}

/* Search Bar */
.nav-search {
  flex: 1;
  max-width: 560px;
  position: relative;
}

.nav-search input {
  width: 100%;
  height: 42px;
  padding: 0 50px 0 44px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  background: var(--bg);
  color: var(--text);
  transition: all var(--transition-fast);
  outline: none;
}

.nav-search input:focus {
  border-color: var(--primary);
  background: var(--surface);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

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

.nav-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 1rem;
  pointer-events: none;
}

.nav-search-btn {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--primary);
  color: white;
  border: none;
  border-radius: var(--radius-full);
  height: 30px;
  width: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background var(--transition-fast);
}
.nav-search-btn:hover { background: var(--primary-dark); }

/* Nav Actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-left: auto;
  flex-shrink: 0;
}

.nav-seller-btn {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: 8px 16px;
  border: 1.5px solid var(--accent);
  border-radius: var(--radius-full);
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--accent-dark);
  background: var(--accent-light);
  transition: all var(--transition-fast);
  cursor: pointer;
}
.nav-seller-btn:hover {
  background: var(--accent);
  color: white;
  box-shadow: var(--shadow-orange);
}

.nav-login-btn {
  padding: 8px 20px;
  border-radius: var(--radius-full);
  font-size: 0.825rem;
  font-weight: 600;
  background: var(--primary);
  color: white;
  transition: all var(--transition-fast);
  cursor: pointer;
}
.nav-login-btn:hover {
  background: var(--primary-dark);
  box-shadow: var(--shadow-blue);
  transform: translateY(-1px);
}

.nav-cart-btn {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  background: var(--bg);
  border: 1.5px solid var(--border);
  color: var(--text-secondary);
  transition: all var(--transition-fast);
  cursor: pointer;
}
.nav-cart-btn:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }

.cart-count {
  position: absolute;
  top: -6px;
  right: -6px;
  background: var(--accent);
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid white;
}

/* Marketplace Nav Link */
.nav-marketplace-link {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 6px 12px;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  flex-shrink: 0;
}
.nav-marketplace-link:hover {
  color: var(--primary);
  background: var(--primary-light);
}
.nav-marketplace-link.active {
  color: var(--primary);
  background: var(--primary-light);
}

/* =========================================================
   BUTTONS
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 12px 24px;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 600;
  transition: all var(--transition-base);
  cursor: pointer;
  border: none;
  line-height: 1;
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: white;
  box-shadow: var(--shadow-blue);
}
.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(37, 99, 235, 0.35);
}

.btn-accent {
  background: var(--accent);
  color: white;
  box-shadow: var(--shadow-orange);
}
.btn-accent:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(249, 115, 22, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-outline:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
}

.btn-ghost {
  background: rgba(255,255,255,0.15);
  color: white;
  border: 2px solid rgba(255,255,255,0.3);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.25);
  border-color: rgba(255,255,255,0.5);
  transform: translateY(-2px);
}

.btn-lg { padding: 15px 32px; font-size: 1rem; }
.btn-sm { padding: 8px 16px; font-size: 0.8rem; }
.btn-icon { width: 40px; height: 40px; padding: 0; border-radius: var(--radius-md); }

/* =========================================================
   BADGES
   ========================================================= */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.badge-primary { background: var(--primary-light); color: var(--primary); }
.badge-accent { background: var(--accent-light); color: var(--accent-dark); }
.badge-success { background: var(--success-light); color: var(--success); }
.badge-warning { background: var(--warning-light); color: var(--warning); }
.badge-new { background: linear-gradient(135deg, var(--accent), var(--accent-dark)); color: white; }
.badge-hot { background: linear-gradient(135deg, #EF4444, #DC2626); color: white; }
.badge-sale { background: linear-gradient(135deg, var(--success), #059669); color: white; }

/* =========================================================
   PRODUCT CARD
   ========================================================= */
.product-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
  cursor: pointer;
  position: relative;
  display: flex;
  flex-direction: column;
}

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

.product-card-cover {
  position: relative;
  height: 160px;
  overflow: hidden;
  flex-shrink: 0;
}

.product-card-cover-inner {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  position: relative;
  transition: transform var(--transition-slow);
}

.product-card:hover .product-card-cover-inner {
  transform: scale(1.05);
}

.product-card-cover::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 50%, rgba(0,0,0,0.15) 100%);
}

.product-card-badges {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  gap: 4px;
  z-index: 1;
}

.product-card-wishlist {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  background: rgba(255,255,255,0.9);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  z-index: 1;
  border: none;
  color: var(--text-muted);
}
.product-card-wishlist:hover { color: var(--danger); background: white; }
.product-card-wishlist.active { color: var(--danger); }

.product-card-body {
  padding: 14px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.product-card-category {
  font-size: 0.72rem;
  color: var(--primary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.product-card-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card-seller {
  font-size: 0.77rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 5px;
}

.product-card-seller-avatar {
  width: 18px;
  height: 18px;
  border-radius: var(--radius-full);
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  font-weight: 700;
  color: var(--primary);
  flex-shrink: 0;
}

.product-card-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.78rem;
}

.stars { color: #F59E0B; letter-spacing: 1px; }
.rating-count { color: var(--text-muted); font-size: 0.72rem; }

.product-card-footer {
  padding: 10px 14px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border);
  margin-top: auto;
}

.product-card-price {
  display: flex;
  flex-direction: column;
}

.price-from {
  font-size: 0.68rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

.price-current {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
}

.price-current span {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.product-card-buy {
  width: 36px;
  height: 36px;
  background: var(--primary);
  color: white;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  border: none;
}
.product-card-buy:hover {
  background: var(--primary-dark);
  transform: scale(1.1);
  box-shadow: var(--shadow-blue);
}

/* =========================================================
   STAR RATINGS
   ========================================================= */
.rating-display {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.star-list {
  display: flex;
  gap: 2px;
}

.star {
  width: 16px;
  height: 16px;
  color: var(--warning);
}

.star.empty { color: var(--border-dark); }
.star.half { color: var(--warning); }

/* =========================================================
   CATEGORY CARD
   ========================================================= */
.category-card {
  background: var(--surface);
  border-radius: var(--radius-xl);
  padding: var(--space-5) var(--space-4);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.category-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 28px -6px rgba(15, 23, 42, 0.12);
  border-color: rgba(37, 99, 235, 0.3);
}

.category-icon {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  flex-shrink: 0;
  box-shadow: 0 6px 16px -2px rgba(0, 0, 0, 0.18);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
  padding: 6px;
}

.category-card:hover .category-icon {
  transform: scale(1.12) rotate(3deg);
  box-shadow: 0 10px 22px -2px rgba(0, 0, 0, 0.28);
}

.category-icon-img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
  transition: transform var(--transition-fast);
}

.category-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.25;
}

.category-count {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  transition: all var(--transition-fast);
}

.category-count.has-products {
  background: var(--primary-light);
  color: var(--primary);
  border-color: rgba(37, 99, 235, 0.25);
  font-weight: 700;
}

/* =========================================================
   SECTION HEADER
   ========================================================= */
.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: var(--space-8);
}

.section-header-left {}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-2);
}

.section-title {
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}

.section-desc {
  margin-top: var(--space-2);
  font-size: 0.9rem;
  color: var(--text-muted);
}

.section-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
  transition: gap var(--transition-fast);
}
.section-link:hover { gap: 8px; }

/* =========================================================
   HERO SECTION
   ========================================================= */
.hero {
  background: linear-gradient(135deg, #0F172A 0%, #1E3A8A 50%, #1D4ED8 100%);
  padding: var(--space-20) 0;
  overflow: hidden;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 70% 50%, rgba(37, 99, 235, 0.3) 0%, transparent 60%),
              radial-gradient(ellipse 40% 40% at 20% 80%, rgba(249, 115, 22, 0.15) 0%, transparent 60%);
  pointer-events: none;
}

/* Dots pattern overlay */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
}

.hero-content {}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(249, 115, 22, 0.15);
  border: 1px solid rgba(249, 115, 22, 0.3);
  color: #FED7AA;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 600;
  margin-bottom: var(--space-6);
  backdrop-filter: blur(10px);
}

.hero-badge-dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: var(--radius-full);
  animation: pulse-dot 2s infinite;
}

.hero-title {
  color: white;
  margin-bottom: var(--space-5);
}

.hero-title-highlight {
  background: linear-gradient(135deg, #F97316, #FDE68A);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  color: rgba(255, 255, 255, 0.75);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: var(--space-8);
  max-width: 480px;
}

.hero-cta {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: var(--space-8);
  margin-top: var(--space-10);
  padding-top: var(--space-8);
  border-top: 1px solid rgba(255,255,255,0.12);
}

.hero-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hero-stat-number {
  font-size: 1.5rem;
  font-weight: 800;
  color: white;
  letter-spacing: -0.03em;
}

.hero-stat-label {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.55);
  font-weight: 500;
}

/* Hero Visual */
.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.hero-mockup {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-2xl);
  padding: var(--space-5);
  width: 100%;
  max-width: 380px;
  animation: float 4s ease-in-out infinite;
}

.hero-mockup-header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.mockup-dots { display: flex; gap: 5px; }
.mockup-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
}
.mockup-dot.red { background: #EF4444; }
.mockup-dot.yellow { background: #F59E0B; }
.mockup-dot.green { background: #10B981; }

.mockup-title {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.5);
  flex: 1;
  text-align: center;
}

.mockup-products { display: flex; flex-direction: column; gap: 10px; }

.mockup-product {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  background: rgba(255,255,255,0.06);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255,255,255,0.08);
}

.mockup-product-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.mockup-product-info { flex: 1; }
.mockup-product-name { font-size: 0.78rem; font-weight: 600; color: white; }
.mockup-product-seller { font-size: 0.68rem; color: rgba(255,255,255,0.45); margin-top: 2px; }

.mockup-product-price { font-size: 0.85rem; font-weight: 700; color: #86EFAC; }

.mockup-stats-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 10px;
}

.mockup-stat-card {
  padding: 12px;
  background: rgba(255,255,255,0.06);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255,255,255,0.08);
  text-align: center;
}

.mockup-stat-value {
  font-size: 1.1rem;
  font-weight: 800;
  color: white;
}

.mockup-stat-label {
  font-size: 0.65rem;
  color: rgba(255,255,255,0.45);
  margin-top: 2px;
}

/* Floating badges */
.hero-float-badge {
  position: absolute;
  background: white;
  border-radius: var(--radius-md);
  padding: 8px 12px;
  box-shadow: var(--shadow-xl);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
  animation: float-badge 3s ease-in-out infinite;
}

.hero-float-badge.top { top: -10px; right: 70px; animation-delay: 0.5s; }
.hero-float-badge.bottom { bottom: -10px; left: 50px; animation-delay: 1.5s; }
.hero-float-badge-icon { font-size: 1.2rem; }

/* =========================================================
   HOME SECTIONS
   ========================================================= */
.section {
  padding: var(--space-16) 0;
}

.section-alt { background: var(--surface); }

/* Categories Grid */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-4);
}

/* Products Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-5);
}

/* =========================================================
   HOW IT WORKS
   ========================================================= */
.how-it-works-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
  position: relative;
}

.how-it-works-steps::before {
  content: '';
  position: absolute;
  top: 35px;
  left: 15%;
  right: 15%;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: var(--radius-full);
  opacity: 0.3;
}

.step-card {
  text-align: center;
  position: relative;
}

.step-number {
  width: 70px;
  height: 70px;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  font-size: 1.4rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-5);
  box-shadow: var(--shadow-blue);
  position: relative;
  z-index: 1;
}

.step-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: var(--space-3);
}

.step-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* =========================================================
   SELLER CTA SECTION
   ========================================================= */
.seller-cta {
  background: linear-gradient(135deg, #0F172A 0%, #1E3A8A 100%);
  padding: var(--space-20) 0;
  position: relative;
  overflow: hidden;
}

.seller-cta::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.seller-cta .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
  position: relative;
  z-index: 1;
}

.seller-cta-content {}

.seller-cta-title {
  color: white;
  margin-bottom: var(--space-4);
}

.seller-cta-desc {
  color: rgba(255,255,255,0.65);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: var(--space-8);
}

.seller-cta-perks {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: var(--space-8);
}

.seller-cta-perk {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: 0.9rem;
  color: rgba(255,255,255,0.8);
}

.perk-icon {
  width: 28px;
  height: 28px;
  background: rgba(16, 185, 129, 0.2);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.seller-cta-visual {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.cta-stat-card {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.cta-stat-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.cta-stat-info {}
.cta-stat-value { font-size: 1.4rem; font-weight: 800; color: white; letter-spacing: -0.02em; }
.cta-stat-label { font-size: 0.8rem; color: rgba(255,255,255,0.5); margin-top: 2px; }

/* =========================================================
   MARKETPLACE PAGE
   ========================================================= */
.marketplace-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: var(--space-6);
  padding: var(--space-6) 0 var(--space-16);
  align-items: start;
}

/* Sidebar Filter */
.filter-sidebar {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: var(--space-5);
  position: sticky;
  top: 88px;
  align-self: start;
  height: fit-content;
}

.filter-group {
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-6);
  border-bottom: 1px solid var(--border);
}

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

.filter-group-title {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
  margin-bottom: var(--space-3);
}

.filter-option {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: 7px 10px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background var(--transition-fast);
  font-size: 0.875rem;
}
.filter-option:hover { background: var(--bg); }
.filter-option.active { background: var(--primary-light); color: var(--primary); font-weight: 600; }

.filter-option input[type="checkbox"] {
  accent-color: var(--primary);
  width: 15px;
  height: 15px;
  cursor: pointer;
}

.filter-option-count {
  margin-left: auto;
  font-size: 0.72rem;
  color: var(--text-muted);
  background: var(--bg);
  padding: 2px 7px;
  border-radius: var(--radius-full);
}

.tag-pill {
  padding: 4px 10px;
  background: var(--bg);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  cursor: pointer;
  border: 1px solid var(--border);
  transition: all var(--transition-fast);
  font-weight: 500;
  color: var(--text-secondary);
}
.tag-pill:hover {
  background: var(--primary-light);
  color: var(--primary);
  border-color: var(--primary);
}

/* Price Range */
.price-range-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
  margin-top: var(--space-3);
}

.price-input {
  padding: 8px 10px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 0.825rem;
  color: var(--text);
  background: var(--bg);
  transition: border-color var(--transition-fast);
  outline: none;
  width: 100%;
}
.price-input:focus { border-color: var(--primary); background: white; }

/* Sort & Filter Bar */
.marketplace-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-5);
  padding: var(--space-3) var(--space-5);
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

.marketplace-results {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.marketplace-results strong { color: var(--text); font-weight: 700; }

.sort-select {
  padding: 8px 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 0.825rem;
  background: var(--bg);
  color: var(--text);
  cursor: pointer;
  outline: none;
}
.sort-select:focus { border-color: var(--primary); }

/* =========================================================
   PRODUCT DETAIL PAGE
   ========================================================= */
.product-detail {
  padding: var(--space-8) 0 var(--space-16);
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.825rem;
  color: var(--text-muted);
  margin-bottom: var(--space-6);
  flex-wrap: wrap;
}

.breadcrumb a {
  color: var(--text-muted);
  transition: color var(--transition-fast);
}
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb-sep { color: var(--border-dark); }

.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--space-10);
  margin-bottom: var(--space-12);
}

/* Product Cover Large */
.product-cover-large {
  border-radius: var(--radius-xl);
  overflow: hidden;
  height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 6rem;
  position: relative;
  border: 1px solid var(--border);
}

/* Product Info */
.product-info {}

.product-info-header {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.product-detail-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
  flex: 1;
}

.product-meta {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  margin-bottom: var(--space-5);
  flex-wrap: wrap;
}

.product-seller-info {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.seller-avatar-sm {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-full);
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary);
}

.seller-name-link { color: var(--primary); font-weight: 600; }

.product-price-large {
  margin: var(--space-5) 0;
  padding: var(--space-5);
  background: var(--bg);
  border-radius: var(--radius-lg);
}

.price-original { font-size: 0.85rem; color: var(--text-muted); text-decoration: line-through; }
.price-big { font-size: 2.2rem; font-weight: 800; color: var(--text); letter-spacing: -0.03em; }
.price-big span { font-size: 1rem; font-weight: 600; color: var(--text-secondary); }
.price-discount-badge { display: inline-block; background: var(--success-light); color: var(--success); padding: 3px 10px; border-radius: var(--radius-full); font-size: 0.78rem; font-weight: 700; margin-top: 4px; }

.product-buy-group {
  display: flex;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
}

.product-buy-group .btn { flex: 1; justify-content: center; }

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

.guarantee-item {
  text-align: center;
  padding: var(--space-3);
  background: var(--bg);
  border-radius: var(--radius-md);
}

.guarantee-icon { font-size: 1.2rem; margin-bottom: 4px; }
.guarantee-text { font-size: 0.7rem; color: var(--text-muted); line-height: 1.3; }

/* Product Tabs */
.product-tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--border);
  margin-bottom: var(--space-6);
}

.product-tab {
  padding: 12px 20px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all var(--transition-fast);
  background: none;
}
.product-tab:hover { color: var(--text); }
.product-tab.active { color: var(--primary); border-bottom-color: var(--primary); }

/* Reviews */
.reviews-summary {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-8);
  padding: var(--space-6);
  background: var(--bg);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-6);
}

.review-big-rating {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
}

.review-score { font-size: 3.5rem; font-weight: 800; color: var(--text); letter-spacing: -0.04em; }
.review-stars-big { font-size: 1.2rem; color: var(--warning); }
.review-count-text { font-size: 0.78rem; color: var(--text-muted); }

.review-bars { display: flex; flex-direction: column; gap: var(--space-2); justify-content: center; }

.review-bar-row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.review-bar-track {
  flex: 1;
  height: 6px;
  background: var(--border);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.review-bar-fill {
  height: 100%;
  background: var(--warning);
  border-radius: var(--radius-full);
  transition: width 1s ease;
}

.review-card {
  padding: var(--space-5);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-4);
}

.review-header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}

.review-avatar {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--primary);
  flex-shrink: 0;
}

.review-name { font-weight: 600; font-size: 0.875rem; }
.review-date { font-size: 0.75rem; color: var(--text-muted); }
.review-text { font-size: 0.875rem; color: var(--text-secondary); line-height: 1.65; }

/* =========================================================
   MODAL
   ========================================================= */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(6px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
  overflow-y: auto;
}

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

.modal {
  background: var(--surface);
  border-radius: var(--radius-2xl);
  width: 100%;
  max-width: 440px;
  max-height: min(90vh, 700px);
  overflow-y: auto;
  padding: var(--space-8);
  box-shadow: var(--shadow-xl);
  transform: scale(0.95) translateY(10px);
  transition: transform var(--transition-base);
  position: relative;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 0, 0, 0.15) transparent;
}

@media (max-width: 480px) {
  .modal {
    padding: 24px 18px;
    border-radius: 20px;
    max-height: 94vh;
  }
}

.modal-overlay.open .modal { transform: scale(1) translateY(0); }

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-md);
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  color: var(--text-muted);
  transition: all var(--transition-fast);
}
.modal-close:hover { background: var(--border); color: var(--text); }

.modal-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}

.modal-logo-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.modal-logo-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-logo-text { font-size: 1.25rem; font-weight: 900; color: var(--text); }
.modal-logo-text span { color: var(--primary); }

.modal-title { font-size: 1.3rem; font-weight: 700; margin-bottom: var(--space-2); color: var(--text); }
.modal-subtitle { font-size: 0.875rem; color: var(--text-muted); margin-bottom: var(--space-6); }

.modal-tabs {
  display: flex;
  background: var(--bg);
  border-radius: var(--radius-lg);
  padding: 4px;
  margin-bottom: var(--space-6);
}

.modal-tab {
  flex: 1;
  padding: 10px;
  text-align: center;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  cursor: pointer;
  color: var(--text-muted);
  transition: all var(--transition-fast);
  border: none;
  background: none;
}
.modal-tab.active { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }

/* Form */
.form-group { margin-bottom: var(--space-4); }

.form-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: var(--space-2);
}

.form-input {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  color: var(--text);
  background: var(--bg);
  transition: all var(--transition-fast);
  outline: none;
}
.form-input:focus { border-color: var(--primary); background: white; box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1); }
.form-input::placeholder { color: var(--text-muted); }

.form-submit {
  width: 100%;
  padding: 13px;
  background: var(--primary);
  color: white;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--transition-fast);
  margin-top: var(--space-2);
}
.form-submit:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: var(--shadow-blue); }

.form-divider {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin: var(--space-5) 0;
  color: var(--text-muted);
  font-size: 0.78rem;
}
.form-divider::before, .form-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.social-login {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
}

.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 10px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 0.825rem;
  font-weight: 600;
  cursor: pointer;
  background: var(--surface);
  color: var(--text);
  transition: all var(--transition-fast);
}
.social-btn:hover { border-color: var(--primary); background: var(--primary-light); color: var(--primary); }

/* =========================================================
   TOAST NOTIFICATIONS
   ========================================================= */
.toast-container {
  position: fixed;
  bottom: var(--space-6);
  right: var(--space-6);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.toast {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: var(--space-4) var(--space-5);
  box-shadow: var(--shadow-xl);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: 0.875rem;
  font-weight: 500;
  min-width: 280px;
  max-width: 380px;
  border-left: 4px solid var(--success);
  animation: slideInRight 0.3s ease, fadeOut 0.4s ease 2.6s forwards;
}

.toast.error { border-left-color: var(--danger); }
.toast.warning { border-left-color: var(--warning); }
.toast-icon { font-size: 1.1rem; flex-shrink: 0; }
.toast-message { flex: 1; color: var(--text); }

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  background: #0F172A;
  color: rgba(255,255,255,0.6);
  padding: var(--space-16) 0 var(--space-6);
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-10);
  margin-bottom: var(--space-12);
}

.footer-brand-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.footer-brand-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.footer-brand-name {
  font-size: 1rem;
  font-weight: 800;
  color: white;
  letter-spacing: -0.02em;
}

.footer-brand-name span { color: var(--primary); }

.footer-desc {
  font-size: 0.875rem;
  line-height: 1.7;
  margin-bottom: var(--space-5);
  color: rgba(255,255,255,0.45);
}

.footer-social {
  display: flex;
  gap: var(--space-3);
}

.footer-social-link {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.06);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: all var(--transition-fast);
  border: 1px solid rgba(255,255,255,0.08);
}
.footer-social-link:hover { background: var(--primary); border-color: var(--primary); }

.footer-col-title {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: white;
  margin-bottom: var(--space-4);
}

.footer-links { display: flex; flex-direction: column; gap: var(--space-3); }

.footer-link {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.5);
  transition: color var(--transition-fast);
}
.footer-link:hover { color: white; }

.footer-bottom {
  padding-top: var(--space-6);
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.footer-bottom-links { display: flex; gap: var(--space-5); }
.footer-bottom-link {
  color: rgba(255,255,255,0.4);
  transition: color var(--transition-fast);
}
.footer-bottom-link:hover { color: rgba(255,255,255,0.7); }

/* =========================================================
   PAGE HEADER (Marketplace)
   ========================================================= */
.page-header {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  padding: var(--space-8) 0;
  color: white;
}

.page-header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.page-header h1 {
  font-size: 1.6rem;
  font-weight: 700;
  color: white;
}

.page-header p {
  color: rgba(255,255,255,0.7);
  font-size: 0.875rem;
  margin-top: 4px;
}

/* =========================================================
   EMPTY STATE
   ========================================================= */
.empty-state {
  text-align: center;
  padding: var(--space-20) var(--space-8);
}

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

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

.empty-state p {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* =========================================================
   ANIMATIONS
   ========================================================= */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@keyframes float-badge {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-8px) rotate(1deg); }
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.3); }
}

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

@keyframes fadeOut {
  from { opacity: 1; transform: translateX(0); }
  to { opacity: 0; transform: translateX(100%); }
}

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

/* Skeleton loading */
.skeleton {
  background: linear-gradient(90deg, var(--bg) 25%, var(--border) 50%, var(--bg) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-md);
}

/* =========================================================
   SCROLLBAR
   ========================================================= */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border-dark); border-radius: var(--radius-full); }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1024px) {
  .categories-grid { grid-template-columns: repeat(3, 1fr); }
  .products-grid { grid-template-columns: repeat(3, 1fr); }
  .how-it-works-steps { grid-template-columns: 1fr; gap: var(--space-6); }
  .how-it-works-steps::before { display: none; }
  .hero .container { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .seller-cta .container { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: var(--space-6); }
  .product-detail-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  :root { --space-16: 48px; --space-20: 60px; }

  .top-bar { display: none; }
  .nav-search { display: none; }
  .nav-marketplace-link { display: none; }
  .nav-logo-tagline { display: none; }

  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-3); }

  .marketplace-layout { grid-template-columns: 1fr; }
  .filter-sidebar { display: none; }

  .hero-cta { flex-direction: column; }
  .hero-stats { gap: var(--space-5); flex-wrap: wrap; }

  .seller-cta-visual { display: none; }

  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }

  .section-header { flex-direction: column; align-items: flex-start; gap: var(--space-3); }
  .modal { padding: var(--space-6); }
  .product-guarantees { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .products-grid { grid-template-columns: 1fr; }
  .categories-grid { grid-template-columns: repeat(3, 1fr); }
  .category-card { padding: var(--space-4); }
  .hero-title { font-size: 1.8rem; }
}

/* =========================================================
   SISTEMA DE AVALIAÇÕES (REVIEWS)
   ========================================================= */

.reviews-summary {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-8);
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  margin-bottom: var(--space-6);
}

.review-big-rating {
  text-align: center;
  padding-right: var(--space-8);
  border-right: 1px solid var(--border);
}

.review-score {
  font-size: 3.5rem;
  font-weight: 900;
  color: var(--text);
  line-height: 1;
}

.review-stars-big {
  color: var(--warning);
  font-size: 1.4rem;
  margin: var(--space-1) 0;
}

.review-count-text {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.review-bars {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.review-bar-row {
  display: grid;
  grid-template-columns: 28px 1fr 38px;
  align-items: center;
  gap: var(--space-3);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.review-bar-track {
  height: 8px;
  background: var(--border);
  border-radius: 99px;
  overflow: hidden;
}

.review-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--warning), #f59e0b);
  border-radius: 99px;
  transition: width 0.6s ease;
}

.review-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  margin-bottom: var(--space-4);
  transition: box-shadow 0.2s;
}

.review-card:hover {
  box-shadow: var(--shadow-lg);
}

.review-header {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  margin-bottom: var(--space-3);
}

.review-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 700;
  flex-shrink: 0;
}

.review-name { font-weight: 600; font-size: 0.95rem; color: var(--text); }
.review-date { font-size: 0.78rem; color: var(--text-muted); }
.review-text { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.7; margin: 0; }

/* ──── Formulário de envio de review ──── */
.review-form-section {
  background: linear-gradient(135deg, rgba(var(--primary-rgb,99,102,241),0.05) 0%, transparent 100%);
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  margin-bottom: var(--space-6);
  text-align: center;
}

.star-rating-input {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin: var(--space-4) 0;
}

.star-rating-input .star-btn {
  background: none;
  border: none;
  font-size: 2.2rem;
  cursor: pointer;
  color: var(--border);
  transition: color 0.15s, transform 0.15s;
  padding: 4px;
  line-height: 1;
}

.star-rating-input .star-btn:hover,
.star-rating-input .star-btn.active {
  color: var(--warning);
  transform: scale(1.2);
}

.review-textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  font-family: var(--font-family);
  font-size: 0.9rem;
  color: var(--text);
  background: var(--surface);
  resize: vertical;
  min-height: 90px;
  transition: border-color 0.2s;
  box-sizing: border-box;
}

.review-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99,102,241,0.1);
}

/* ──── Modal de avaliar (em minhas_compras) ──── */
.review-modal-stars {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin: var(--space-5) 0;
}

.review-modal-stars .rstar {
  font-size: 2.8rem;
  cursor: pointer;
  transition: transform 0.15s, filter 0.15s;
  filter: grayscale(1);
  user-select: none;
}

.review-modal-stars .rstar.lit {
  filter: grayscale(0);
  transform: scale(1.1);
}

/* =========================================================
   GAMIFICAÇÃO — CARD DE PONTOS E NÍVEL
   ========================================================= */

.gamification-card {
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 60%, #4c1d95 100%);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  color: white;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(79,70,229,0.4);
}

.gamification-card::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 180px; height: 180px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
}

.gamification-card::after {
  content: '';
  position: absolute;
  bottom: -60px; left: -20px;
  width: 200px; height: 200px;
  background: rgba(255,255,255,0.03);
  border-radius: 50%;
}

.gamification-level-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 99px;
  padding: 4px 14px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: var(--space-3);
  backdrop-filter: blur(10px);
}

.gamification-points-display {
  font-size: 3rem;
  font-weight: 900;
  line-height: 1;
  margin: var(--space-2) 0;
}

.gamification-points-display span {
  font-size: 1rem;
  font-weight: 500;
  opacity: 0.7;
}

.gamification-progress-bar {
  background: rgba(255,255,255,0.15);
  border-radius: 99px;
  height: 8px;
  margin: var(--space-4) 0 var(--space-2);
  overflow: hidden;
}

.gamification-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #a78bfa, #f0abfc);
  border-radius: 99px;
  transition: width 1s cubic-bezier(0.4,0,0.2,1);
}

.gamification-discount-info {
  background: rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
  font-size: 0.82rem;
  opacity: 0.9;
  margin-top: var(--space-3);
  border: 1px solid rgba(255,255,255,0.1);
}

/* =========================================================
   BADGE VENDEDOR TOP 🏆
   ========================================================= */

.badge-top-seller {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: white;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 99px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: 0 2px 8px rgba(245,158,11,0.4);
  white-space: nowrap;
}

/* =========================================================
   RANKING PÚBLICO DE VENDEDORES (vendedores.html)
   ========================================================= */

.seller-ranking-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-5);
  margin-top: var(--space-6);
}

.seller-rank-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  position: relative;
  transition: transform 0.2s, box-shadow 0.2s;
  overflow: hidden;
}

.seller-rank-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.seller-rank-card.rank-1 {
  border-color: #f59e0b;
  background: linear-gradient(135deg, rgba(245,158,11,0.05), var(--surface));
}

.seller-rank-card.rank-2 {
  border-color: #94a3b8;
  background: linear-gradient(135deg, rgba(148,163,184,0.05), var(--surface));
}

.seller-rank-card.rank-3 {
  border-color: #cd7c2f;
  background: linear-gradient(135deg, rgba(205,124,47,0.05), var(--surface));
}

.seller-rank-position {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--border);
  line-height: 1;
}

.seller-rank-card.rank-1 .seller-rank-position { color: #f59e0b; }
.seller-rank-card.rank-2 .seller-rank-position { color: #94a3b8; }
.seller-rank-card.rank-3 .seller-rank-position { color: #cd7c2f; }

.seller-rank-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 900;
  margin-bottom: var(--space-3);
}

.seller-rank-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: var(--space-1);
}

.seller-rank-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
  margin-top: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid var(--border);
}

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

.seller-rank-stat-value {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}

.seller-rank-stat-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 2px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

@media (max-width: 768px) {
  .container { padding: 0 var(--space-4); }

  .reviews-summary { grid-template-columns: 1fr; }
  .review-big-rating { border-right: none; border-bottom: 1px solid var(--border); padding-right: 0; padding-bottom: var(--space-4); }
  .seller-ranking-grid { grid-template-columns: 1fr; }
  
  /* Ajustes Globais Mobile */
  .marketplace-layout { grid-template-columns: minmax(0, 1fr); padding-top: var(--space-4); }
  .marketplace-layout > main { min-width: 0; width: 100%; }
  
  .filter-sidebar { display: none; }
  .mobile-search-bar { display: block !important; }
  
  .marketplace-topbar { flex-direction: column; align-items: flex-start; gap: var(--space-3); }
  .marketplace-topbar > div { width: 100%; display: flex; justify-content: space-between; }
  
  .products-grid { grid-template-columns: minmax(0, 1fr); gap: var(--space-4); }
  .categories-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); }
  
  /* Correção de Overflow nos textos */
  .product-card-title {
    word-break: break-word;
    white-space: normal;
  }

  /* Navbar Mobile Fix */
  .navbar {
    height: auto;
    padding: var(--space-3) 0;
  }
  .navbar .container {
    flex-wrap: wrap;
    justify-content: space-between;
    gap: var(--space-3);
    height: auto;
  }
  .nav-logo {
    margin-right: auto;
  }
  .nav-actions {
    margin-left: 0;
  }
  .nav-search {
    order: 4;
    max-width: 100%;
    flex: 1 1 100%;
  }
  /* Show links clearly as pills on their own row */
  .nav-marketplace-link {
    font-size: 0.85rem;
    margin-left: 0 !important;
    padding: 8px 12px;
    background: var(--surface-hover);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    order: 3;
    text-align: center;
    flex: 1;
    white-space: nowrap;
    display: flex;
    justify-content: center;
  }
}

/* =========================================
   PAGINATION
   ========================================= */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.page-btn:hover:not(.disabled) {
  background: var(--surface-hover);
  border-color: var(--primary);
  color: var(--primary);
}

.page-btn.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  pointer-events: none;
}

.page-btn.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: var(--bg);
}

/* =========================================
   FLOATING FLASH SALE BUTTON (⚡)
   ========================================= */
.flash-sale-floating-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 99990;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: linear-gradient(135deg, #FF007A 0%, #7928CA 100%);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.85rem;
  box-shadow: 0 8px 24px rgba(255, 0, 122, 0.45), 0 2px 8px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
  animation: flashBtnPulse 3s infinite ease-in-out;
}

.flash-sale-floating-btn:hover {
  transform: translateY(-4px) scale(1.06);
  box-shadow: 0 14px 36px rgba(255, 0, 122, 0.65), 0 4px 14px rgba(0, 0, 0, 0.3);
}

.flash-sale-btn-icon {
  font-size: 1.25rem;
  display: inline-block;
  animation: flashIconBounce 1.8s infinite alternate ease-in-out;
}

.flash-sale-btn-badge {
  background: rgba(255, 255, 255, 0.25);
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-family: monospace;
  font-weight: 800;
  letter-spacing: 0.05em;
}

@keyframes flashIconBounce {
  0% { transform: scale(1) rotate(0deg); }
  50% { transform: scale(1.3) rotate(12deg); }
  100% { transform: scale(1) rotate(-6deg); }
}

@keyframes flashBtnPulse {
  0%, 100% { box-shadow: 0 8px 24px rgba(255, 0, 122, 0.45); }
  50% { box-shadow: 0 10px 32px rgba(255, 0, 122, 0.75); }
}

@media (max-width: 768px) {
  .flash-sale-floating-btn {
    bottom: 20px;
    right: 16px;
    padding: 8px 14px;
    font-size: 0.78rem;
  }
}
