/* ============================================
   HOME PAGE - Styles Principaux (Entry Point)
   Architecture V4.1 - Style Alibaba
   Importe tous les composants CSS modulaires
   ============================================ */

/* ============================================
   IMPORTS DES COMPOSANTS MODULAIRES
   ============================================ */

/* Composants de navigation */
@import url('_mega-menu.css');

/* Composants de contenu */
@import url('_hero-carousel.css');
@import url('_product-card.css');
@import url('_flash-deals.css');
@import url('_search-box.css');

/* ============================================
   VARIABLES CSS GLOBALES (Design System)
   ============================================ */

:root {
  /* Couleurs principales */
  --primary-orange: #FF6A00;
  --primary-orange-hover: #E55A00;
  --primary-orange-light: #FFF4ED;
  --primary-orange-gradient: linear-gradient(135deg, #FF6A00 0%, #FF8A3D 100%);
  
  /* Couleurs secondaires */
  --secondary-purple: #667eea;
  --secondary-purple-hover: #5568d3;
  --secondary-purple-light: #EEF2FF;
  --secondary-purple-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  
  /* Couleurs de succès */
  --success-green: #00B578;
  --success-green-light: #ECFDF5;
  --success-green-hover: #00D68F;
  
  /* Couleurs d'avertissement */
  --warning-yellow: #FFB800;
  --warning-yellow-light: #FFFBEB;
  
  /* Couleurs d'erreur */
  --error-red: #DC2626;
  --error-red-light: #FEE2E2;
  
  /* Couleurs neutres */
  --gray-50: #F9FAFB;
  --gray-100: #F3F4F6;
  --gray-200: #E5E7EB;
  --gray-300: #D1D5DB;
  --gray-400: #9CA3AF;
  --gray-500: #6B7280;
  --gray-600: #4B5563;
  --gray-700: #374151;
  --gray-800: #1F2937;
  --gray-900: #111827;
  
  /* Ombres */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.15);
  
  /* Arrondis */
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-2xl: 20px;
  
  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-base: 0.2s ease;
  --transition-slow: 0.3s ease;
  
  /* Z-index */
  --z-dropdown: 100;
  --z-sticky: 50;
  --z-modal: 200;
}

/* ============================================
   RESET & BASE STYLES
   ============================================ */

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--gray-50);
  color: var(--gray-800);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   LAYOUT UTILITIES
   ============================================ */

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px;
}

.fade-in {
  animation: fadeIn 0.6s ease-out;
}

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

/* ============================================
   SECTION HEADERS (Réutilisable)
   ============================================ */

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

.section-header h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--gray-800);
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-header h2 i {
  color: var(--primary-orange);
}

.section-subtitle {
  font-size: 13px;
  color: var(--gray-500);
  margin-top: 4px;
}

.section-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--primary-orange-light);
  color: var(--primary-orange);
  border: none;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
}

.section-link:hover {
  background: var(--primary-orange);
  color: white;
  transform: translateX(4px);
}

.section-link i {
  font-size: 10px;
  transition: transform var(--transition-base);
}

.section-link:hover i {
  transform: translateX(3px);
}

/* ============================================
   TRUST STRIP (Bande de réassurance)
   ============================================ */

.trust-strip {
  max-width: 1280px;
  margin: 0 auto;
  padding: 16px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  animation: fadeIn 0.6s ease-out;
}

.trust-strip-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  transition: all var(--transition-base);
}

.trust-strip-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-orange);
}

.trust-strip-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--primary-orange-light);
  color: var(--primary-orange);
  border-radius: var(--radius-md);
  font-size: 18px;
  flex-shrink: 0;
}

.trust-strip-text {
  flex: 1;
  min-width: 0;
}

.trust-strip-main {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-800);
  margin-bottom: 2px;
}

.trust-strip-sub {
  display: block;
  font-size: 12px;
  color: var(--gray-500);
}

/* ============================================
   SCROLL CONTAINERS (Carousels horizontaux)
   ============================================ */

.scroll-section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 16px;
  animation: fadeIn 0.6s ease-out;
}

.scroll-container {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--primary-orange) var(--gray-100);
  padding-bottom: 8px;
}

.scroll-container::-webkit-scrollbar {
  height: 8px;
}

.scroll-container::-webkit-scrollbar-track {
  background: var(--gray-100);
  border-radius: 4px;
}

.scroll-container::-webkit-scrollbar-thumb {
  background: var(--primary-orange);
  border-radius: 4px;
}

.scroll-container::-webkit-scrollbar-thumb:hover {
  background: var(--primary-orange-hover);
}

/* ============================================
   CATEGORY GRID (Grille de catégories visuelle)
   ============================================ */

.category-visual-grid {
  max-width: 1280px;
  margin: 0 auto;
  padding: 16px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
  animation: fadeIn 0.6s ease-out;
}

.category-visual-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 12px;
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition-base);
  text-align: center;
}

.category-visual-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-orange);
}

.category-visual-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: var(--primary-orange-light);
  color: var(--primary-orange);
  border-radius: var(--radius-lg);
  font-size: 24px;
  transition: all var(--transition-base);
}

.category-visual-item:hover .category-visual-icon {
  background: var(--primary-orange);
  color: white;
  transform: scale(1.1);
}

.category-visual-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-800);
  line-height: 1.3;
}

.category-visual-count {
  font-size: 11px;
  color: var(--gray-500);
}

/* ============================================
   PRODUCT GRID (Grille de produits)
   ============================================ */

.product-grid-section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 16px;
  animation: fadeIn 0.6s ease-out;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

/* ============================================
   LOAD MORE BUTTON
   ============================================ */

.load-more-container {
  text-align: center;
  padding: 24px;
}

.load-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: white;
  color: var(--primary-orange);
  border: 2px solid var(--primary-orange);
  border-radius: var(--radius-lg);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-base);
}

.load-more-btn:hover {
  background: var(--primary-orange);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* ============================================
   SKELETON LOADING
   ============================================ */

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

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

.skeleton-card {
  background: white;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--gray-200);
}

.skeleton-image {
  width: 100%;
  padding-top: 100%;
  background: linear-gradient(90deg, var(--gray-100) 25%, var(--gray-200) 50%, var(--gray-100) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

.skeleton-text {
  height: 14px;
  margin: 12px;
  background: linear-gradient(90deg, var(--gray-100) 25%, var(--gray-200) 50%, var(--gray-100) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}

.skeleton-price {
  height: 20px;
  width: 60%;
  margin: 0 12px 12px;
  background: linear-gradient(90deg, var(--gray-100) 25%, var(--gray-200) 50%, var(--gray-100) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}

/* ============================================
   TOAST NOTIFICATIONS
   ============================================ */

.home-toast {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gray-800);
  color: white;
  padding: 12px 24px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  z-index: var(--z-modal);
  font-size: 14px;
  font-weight: 500;
  animation: slideUp 0.3s ease-out;
  max-width: 90vw;
  text-align: center;
}

@keyframes slideUp {
  from {
    transform: translateX(-50%) translateY(100px);
    opacity: 0;
  }
  to {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
  }
}

/* ============================================
   SCROLL TO TOP BUTTON
   ============================================ */

.scroll-top-btn {
  position: fixed;
  bottom: 80px;
  right: 20px;
  width: 48px;
  height: 48px;
  background: var(--primary-orange);
  color: white;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
  z-index: 40;
}

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

.scroll-top-btn:hover {
  background: var(--primary-orange-hover);
  transform: translateY(-4px);
}

/* ============================================
   CAROUSEL NAVIGATION
   ============================================ */

.carousel-wrapper {
  position: relative;
}

.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.carousel-nav-btn {
  width: 40px;
  height: 40px;
  background: white;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  transition: all var(--transition-base);
  color: var(--gray-700);
}

.carousel-nav-btn:hover {
  background: var(--primary-orange);
  color: white;
  transform: scale(1.1);
}

.carousel-nav-btn.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.carousel-nav-btn.nav-prev {
  position: absolute;
  left: -20px;
}

.carousel-nav-btn.nav-next {
  position: absolute;
  right: -20px;
}

/* ============================================
   RESPONSIVE UTILITIES
   ============================================ */

@media (max-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }
}

@media (max-width: 768px) {
  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
  }
  
  .trust-strip {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  
  .category-visual-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }
}

@media (max-width: 480px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  
  .trust-strip {
    grid-template-columns: 1fr;
  }
  
  .category-visual-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ============================================
   DARK MODE SUPPORT (si activé)
   ============================================ */

@media (prefers-color-scheme: dark) {
  :root {
    --gray-50: #111827;
    --gray-100: #1f2937;
    --gray-200: #374151;
    --gray-300: #4B5563;
    --gray-400: #6B7280;
    --gray-500: #9CA3AF;
    --gray-600: #D1D5DB;
    --gray-700: #E5E7EB;
    --gray-800: #F3F4F6;
    --gray-900: #F9FAFB;
  }
}

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
  .scroll-container,
  .flash-deals-container {
    overflow-x: visible;
  }
  
  .product-card {
    break-inside: avoid;
  }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus visible pour accessibilité */
*:focus-visible {
  outline: 2px solid var(--primary-orange);
  outline-offset: 2px;
}

/* ============================================
   UX/UI IMPROVEMENTS - Product Marketing
   ============================================ */

/* --- STICKY HEADER --- */
.home-header {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  z-index: 50;
  border-bottom: 1px solid var(--gray-200);
  transition: all var(--transition-base);
}

.home-header.scrolled {
  box-shadow: var(--shadow-md);
}

/* --- PROMO BANNER (Top announcement) --- */
.promo-banner {
  background: linear-gradient(135deg, #FF6A00 0%, #FF8A3D 100%);
  color: white;
  padding: 12px 16px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.promo-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 200%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  animation: shimmer 3s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.promo-banner-content {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.promo-banner h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 0;
}

.promo-banner p {
  font-size: 13px;
  margin: 4px 0 0;
  opacity: 0.95;
}

.promo-banner-btn {
  padding: 8px 16px;
  background: white;
  color: #FF6A00;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-base);
  white-space: nowrap;
}

.promo-banner-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* --- AI MODE BANNER --- */
.ai-mode-banner {
  max-width: 1280px;
  margin: 16px auto;
  padding: 16px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: var(--radius-xl);
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-shadow: var(--shadow-lg);
  animation: fadeIn 0.6s ease-out;
}

.ai-mode-content h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 4px;
}

.ai-mode-content p {
  font-size: 13px;
  margin: 0;
  opacity: 0.95;
}

.ai-mode-btn {
  padding: 10px 20px;
  background: white;
  color: #667eea;
  border: none;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-base);
  white-space: nowrap;
}

.ai-mode-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* --- THEMATIC SECTIONS --- */
.thematic-sections {
  max-width: 1280px;
  margin: 0 auto;
  padding: 16px;
  animation: fadeIn 0.6s ease-out;
}

.thematic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.thematic-card {
  background: white;
  border-radius: var(--radius-xl);
  border: 1px solid var(--gray-200);
  overflow: hidden;
  transition: all var(--transition-base);
}

.thematic-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.thematic-header {
  padding: 16px;
  border-bottom: 1px solid var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.thematic-header h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--gray-800);
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.thematic-link {
  font-size: 13px;
  color: var(--primary-orange);
  text-decoration: none;
  font-weight: 600;
  transition: all var(--transition-base);
}

.thematic-link:hover {
  transform: translateX(4px);
}

.thematic-products {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.thematic-product {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.thematic-product:hover {
  background: var(--gray-50);
}

.thematic-product-img {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--gray-100);
}

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

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

.thematic-product-name {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-800);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.thematic-product-price {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--primary-orange);
  margin-top: 2px;
}

.thematic-empty {
  text-align: center;
  padding: 24px;
  color: var(--gray-500);
  font-size: 13px;
}

/* --- SPONSORED SECTION --- */
.sponsored-section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 16px;
  animation: fadeIn 0.6s ease-out;
}

.sponsored-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

.sponsored-card {
  background: white;
  border-radius: var(--radius-xl);
  border: 2px dashed #9333EA;
  overflow: hidden;
  cursor: pointer;
  transition: all var(--transition-base);
}

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

.sponsored-img {
  position: relative;
  width: 100%;
  padding-top: 100%;
  background: var(--gray-100);
  overflow: hidden;
}

.sponsored-img img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

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

.sponsored-info {
  padding: 12px;
}

.sponsored-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-800);
  margin: 0 0 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sponsored-price {
  display: block;
  font-size: 16px;
  font-weight: 700;
  color: #9333EA;
  margin-bottom: 4px;
}

.sponsored-vendor {
  display: block;
  font-size: 12px;
  color: var(--gray-500);
}

/* --- BRAND SHOWCASE --- */
.brands-section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 16px;
  animation: fadeIn 0.6s ease-out;
}

.brands-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}

.brand-card {
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 16px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-base);
}

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

.brand-card-logo {
  width: 64px;
  height: 64px;
  margin: 0 auto 8px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--gray-100);
}

.brand-card-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-card-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-orange-light);
  color: var(--primary-orange);
  font-size: 24px;
  font-weight: 700;
}

.brand-card-name {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-800);
}

/* --- REVIEWS SECTION --- */
.reviews-section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 16px;
  animation: fadeIn 0.6s ease-out;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.review-card {
  background: white;
  border-radius: var(--radius-xl);
  border: 1px solid var(--gray-200);
  padding: 16px;
  cursor: pointer;
  transition: all var(--transition-base);
}

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

.review-product-img {
  width: 100%;
  height: 160px;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 12px;
  background: var(--gray-100);
}

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

.review-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.review-product-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-800);
  margin: 0;
}

.review-stars {
  color: #FFB800;
  font-size: 14px;
  letter-spacing: 1px;
}

.review-text {
  font-size: 13px;
  color: var(--gray-600);
  font-style: italic;
  line-height: 1.5;
  margin: 0;
}

.review-author {
  font-size: 12px;
  color: var(--gray-500);
  font-weight: 500;
}

/* --- FAQ SECTION --- */
.faq-section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 16px;
  animation: fadeIn 0.6s ease-out;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  overflow: hidden;
  transition: all var(--transition-base);
}

.faq-item:hover {
  border-color: var(--primary-orange);
}

.faq-question {
  width: 100%;
  padding: 16px;
  background: transparent;
  border: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-800);
  text-align: left;
  transition: all var(--transition-fast);
}

.faq-question:hover {
  color: var(--primary-orange);
}

.faq-question i {
  color: var(--primary-orange);
  transition: transform var(--transition-base);
}

.faq-question[aria-expanded="true"] i {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 16px;
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-base), padding var(--transition-base);
}

.faq-answer p {
  padding-bottom: 16px;
  font-size: 14px;
  color: var(--gray-600);
  line-height: 1.6;
  margin: 0;
}

/* --- NEWSLETTER --- */
.newsletter-section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 16px;
  animation: fadeIn 0.6s ease-out;
}

.newsletter-card {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: var(--radius-2xl);
  padding: 32px;
  color: white;
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.newsletter-icon {
  font-size: 48px;
  margin-bottom: 16px;
  display: block;
}

.newsletter-content h3 {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 8px;
}

.newsletter-content p {
  font-size: 14px;
  margin: 0 0 20px;
  opacity: 0.95;
}

.newsletter-form {
  display: flex;
  gap: 8px;
  max-width: 500px;
  margin: 0 auto;
}

.newsletter-input {
  flex: 1;
  padding: 12px 16px;
  border: none;
  border-radius: var(--radius-md);
  font-size: 14px;
  outline: none;
}

.newsletter-btn {
  padding: 12px 20px;
  background: white;
  color: #667eea;
  border: none;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-base);
  white-space: nowrap;
}

.newsletter-btn:hover {
  transform: scale(1.05);
}

.newsletter-disclaimer {
  font-size: 11px;
  opacity: 0.8;
  margin-top: 12px;
  margin-bottom: 0;
}

/* --- APP DOWNLOAD --- */
.app-download-section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 16px;
  animation: fadeIn 0.6s ease-out;
}

.app-download-card {
  background: white;
  border-radius: var(--radius-2xl);
  border: 1px solid var(--gray-200);
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  box-shadow: var(--shadow-md);
}

.app-download-icon {
  color: var(--primary-orange);
  display: flex;
  align-items: center;
  justify-content: center;
}

.app-download-text h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--gray-800);
  margin: 0 0 4px;
}

.app-download-text p {
  font-size: 13px;
  color: var(--gray-600);
  margin: 0;
}

.app-download-buttons {
  display: flex;
  gap: 8px;
}

.app-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  border: none;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-base);
}

.app-btn-android {
  background: #000;
  color: white;
}

.app-btn-ios {
  background: #000;
  color: white;
}

.app-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* --- FOOTER --- */
.home-footer {
  background: var(--gray-800);
  color: var(--gray-300);
  padding: 48px 16px 24px;
  margin-top: 48px;
}

.footer-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  margin-bottom: 32px;
}

.footer-col h4 {
  color: white;
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-col a {
  display: block;
  color: var(--gray-400);
  text-decoration: none;
  font-size: 13px;
  margin-bottom: 8px;
  transition: color var(--transition-fast);
}

.footer-col a:hover {
  color: white;
}

.footer-brand {
  grid-column: 1 / -1;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  color: white;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
}

.footer-desc {
  font-size: 13px;
  line-height: 1.6;
  margin: 0 0 16px;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social-link {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gray-700);
  color: var(--gray-300);
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
}

.footer-social-link:hover {
  background: var(--primary-orange);
  color: white;
  transform: translateY(-2px);
}

.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid var(--gray-700);
  text-align: center;
}

.footer-bottom p {
  font-size: 13px;
  margin: 0 0 12px;
}

.footer-payments {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.footer-payment-badge {
  padding: 6px 12px;
  background: var(--gray-700);
  color: var(--gray-300);
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 500;
}

/* --- TRENDING SECTION --- */
.trending-section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 16px;
  animation: fadeIn 0.6s ease-out;
}

.trending-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.trending-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px;
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition-base);
}

.trending-item:hover {
  transform: translateX(4px);
  border-color: var(--primary-orange);
  box-shadow: var(--shadow-md);
}

.trending-rank {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary-orange);
  width: 40px;
  text-align: center;
  flex-shrink: 0;
}

.trending-img {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--gray-100);
  flex-shrink: 0;
}

.trending-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.trending-name {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-800);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.trending-price {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: #FF6A00;
  margin-top: 4px;
}

.trending-rating {
  display: block;
  font-size: 12px;
  color: var(--gray-500);
  margin-top: 2px;
}

.trending-arrow {
  color: var(--gray-400);
  transition: all var(--transition-base);
}

.trending-item:hover .trending-arrow {
  color: var(--primary-orange);
  transform: translateX(4px);
}

/* --- EMPTY STATE HELPERS --- */
.section-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--gray-500);
}

.section-empty i {
  font-size: 64px;
  color: var(--gray-300);
  margin-bottom: 16px;
  display: block;
}

.section-empty p {
  font-size: 14px;
  margin: 0;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

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

.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-medium { font-weight: 500; }

.text-sm { font-size: 14px; }
.text-xs { font-size: 12px; }
.text-lg { font-size: 18px; }
.text-xl { font-size: 20px; }

.mt-1 { margin-top: 4px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; }

.mb-1 { margin-bottom: 4px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 16px; }

.p-1 { padding: 4px; }
.p-2 { padding: 8px; }
.p-3 { padding: 12px; }
.p-4 { padding: 16px; }

.hidden { display: none; }
.block { display: block; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
