/* ============================================
   HOME — Page d'accueil Alibaba-style
   Adapté pour Wely Express (Afrique Centrale)
   FULL-WIDTH LAYOUT - Comme Alibaba
   Version: 3.2.14 - Enhanced
   ============================================ */

/* Variables CSS */
:root {
  --primary-orange: #FF6A00;
  --primary-dark: #E55A00;
  --primary-light: #FFF4ED;
  --home-bg-primary: #FFFFFF;
  --home-bg-secondary: #F5F5F5;
  --home-text-primary: #191919;
  --home-text-secondary: #666666;
  --home-text-tertiary: #999999;
  --home-border-color: #E8E8E8;
  --home-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --home-shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --home-shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
  --home-section-gap: 8px;
  --home-padding-mobile: 12px;
  --home-padding-desktop: 16px;
  --bottom-nav-height: 56px;
  --flash-gradient: linear-gradient(135deg, #FF6A00 0%, #FF8F1F 50%, #FFB800 100%);
  --trust-badge-bg: #F0FFF4;
}

/* Mode sombre */
.dark {
  --home-bg-primary: #1C1B1F;
  --home-bg-secondary: #2B2930;
  --home-text-primary: #E6E1E5;
  --home-text-secondary: #CAC4D0;
  --home-text-tertiary: #938F99;
  --home-border-color: #49454F;
  --primary-light: #2B2930;
  --trust-badge-bg: #1a2e1f;
}

/* ============================================
   MAIN CONTENT - FULL WIDTH (comme Alibaba)
   ============================================ */

.main-content {
  width: 100%;
  max-width: 100%;
  padding: 0;
  margin: 0;
  background: var(--home-bg-secondary);
  padding-bottom: var(--bottom-nav-height);
}

#view-home {
  width: 100%;
  max-width: 100%;
}

#home-content {
  width: 100%;
  max-width: 100%;
}

/* ============================================
   HEADER & SEARCH BAR (Alibaba-style sticky)
   ============================================ */

.home-header {
  background: var(--home-bg-primary);
  padding: 8px var(--home-padding-mobile);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--home-border-color);
  width: 100%;
}

.home-header-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 1400px;
  margin: 0 auto;
}

.home-logo {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  flex-shrink: 0;
}

.home-logo svg {
  width: 32px;
  height: 32px;
  color: var(--primary-orange);
}

.home-logo-text {
  font-size: 18px;
  font-weight: 700;
  color: var(--home-text-primary);
  display: none;
}

@media (min-width: 480px) {
  .home-logo-text {
    display: block;
  }
}

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

.search-bar {
  display: flex;
  align-items: center;
  background: var(--home-bg-secondary);
  border-radius: 9999px;
  padding: 0 16px;
  height: 44px;
  transition: all 0.2s ease;
  border: 2px solid transparent;
}

.search-bar:focus-within {
  background: var(--home-bg-primary);
  border-color: var(--primary-orange);
  box-shadow: 0 0 0 3px rgba(255, 106, 0, 0.1);
}

.search-input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 14px;
  outline: none;
  color: var(--home-text-primary);
}

.search-input::placeholder {
  color: var(--home-text-tertiary);
}

.search-icon-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--primary-orange);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}

.search-icon-btn:hover {
  color: var(--primary-dark);
  transform: scale(1.1);
}

.search-voice-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--home-text-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.search-voice-btn:hover {
  color: var(--primary-orange);
}

/* Suggestions de recherche */
.search-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--home-bg-primary);
  border-radius: 12px;
  box-shadow: var(--home-shadow-lg);
  margin-top: 8px;
  max-height: 400px;
  overflow-y: auto;
  z-index: 1000;
  border: 1px solid var(--home-border-color);
}

.suggestion-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  cursor: pointer;
  transition: background 0.2s ease;
  font-size: 14px;
  color: var(--home-text-primary);
}

.suggestion-item:hover {
  background: var(--home-bg-secondary);
}

.suggestion-icon {
  color: var(--home-text-tertiary);
  font-size: 14px;
  width: 20px;
  text-align: center;
}

/* ============================================
   AI MODE BANNER (Alibaba AI Mode)
   ============================================ */

.ai-mode-banner {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 16px var(--home-padding-mobile);
  margin-bottom: var(--home-section-gap);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.ai-mode-content {
  flex: 1;
}

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

.ai-mode-content p {
  font-size: 12px;
  color: rgba(255,255,255,0.85);
  margin: 0;
}

.ai-mode-btn {
  background: white;
  color: #764ba2;
  border: none;
  padding: 10px 20px;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

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

/* ============================================
   CATEGORY TABS (Onglets principaux - Alibaba)
   ============================================ */

.category-tabs {
  display: flex;
  gap: 8px;
  padding: 12px var(--home-padding-mobile);
  overflow-x: auto;
  scrollbar-width: none;
  background: var(--home-bg-primary);
  border-bottom: 1px solid var(--home-border-color);
  width: 100%;
}

.category-tabs::-webkit-scrollbar {
  display: none;
}

.category-tabs .tab {
  padding: 8px 16px;
  border: none;
  background: var(--home-bg-secondary);
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  color: var(--home-text-primary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.category-tabs .tab i {
  font-size: 14px;
}

.category-tabs .tab.active {
  background: var(--primary-orange);
  color: white;
  box-shadow: 0 2px 8px rgba(255, 106, 0, 0.3);
}

.category-tabs .tab:hover:not(.active) {
  background: var(--home-border-color);
}

/* ============================================
   CATEGORY BAR (Catégories de produits scrollable)
   ============================================ */

.category-bar {
  display: flex;
  gap: 8px;
  padding: 12px var(--home-padding-mobile);
  overflow-x: auto;
  scrollbar-width: none;
  background: var(--home-bg-primary);
  border-bottom: 1px solid var(--home-border-color);
  width: 100%;
}

.category-bar::-webkit-scrollbar {
  display: none;
}

.category-item {
  padding: 6px 14px;
  border: 1px solid var(--home-border-color);
  background: var(--home-bg-primary);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  color: var(--home-text-primary);
}

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

.category-item:hover:not(.active) {
  background: var(--primary-light);
  border-color: var(--primary-orange);
  color: var(--primary-orange);
}

/* ============================================
   QUICK TOOLS (Outils rapides - comme Alibaba)
   ============================================ */

.quick-tools {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  padding: 16px var(--home-padding-mobile);
  background: var(--home-bg-primary);
  border-bottom: 1px solid var(--home-border-color);
  width: 100%;
}

.tool-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: transform 0.2s ease;
  padding: 8px;
  border-radius: 12px;
}

.tool-item:hover {
  transform: translateY(-2px);
  background: var(--home-bg-secondary);
}

.tool-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--home-bg-secondary) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--primary-orange);
  transition: all 0.3s ease;
  box-shadow: var(--home-shadow-sm);
}

.tool-item:hover .tool-icon {
  background: linear-gradient(135deg, var(--primary-orange) 0%, var(--primary-dark) 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(255, 106, 0, 0.3);
}

.tool-label {
  font-size: 11px;
  font-weight: 500;
  color: var(--home-text-secondary);
  text-align: center;
}

/* ============================================
   FLASH DEALS - Countdown Timer (Alibaba-style)
   ============================================ */

.flash-deals-section {
  background: var(--home-bg-primary);
  margin-bottom: var(--home-section-gap);
  width: 100%;
  overflow: hidden;
}

.flash-deals-header {
  background: var(--flash-gradient);
  padding: 14px var(--home-padding-mobile);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.flash-deals-title {
  display: flex;
  align-items: center;
  gap: 8px;
}

.flash-deals-title h2 {
  font-size: 16px;
  font-weight: 700;
  color: white;
  margin: 0;
}

.flash-deals-title i {
  color: white;
  font-size: 20px;
}

.flash-deals-timer {
  display: flex;
  align-items: center;
  gap: 6px;
}

.flash-timer-label {
  font-size: 11px;
  color: rgba(255,255,255,0.85);
  font-weight: 500;
}

.flash-timer-item {
  background: rgba(0,0,0,0.3);
  color: white;
  font-weight: 700;
  font-size: 14px;
  padding: 4px 8px;
  border-radius: 4px;
  min-width: 28px;
  text-align: center;
  font-family: 'Courier New', monospace;
}

.flash-timer-sep {
  color: white;
  font-weight: 700;
  font-size: 14px;
}

.flash-deals-container {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 14px var(--home-padding-mobile);
  scrollbar-width: none;
  scroll-snap-type: x mandatory;
}

.flash-deals-container::-webkit-scrollbar {
  display: none;
}

.flash-deals-container .product-card {
  flex: 0 0 140px;
  scroll-snap-align: start;
}

.flash-deal-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: #FF3141;
  color: white;
  padding: 3px 6px;
  border-radius: 4px;
  font-size: 9px;
  font-weight: 700;
  box-shadow: 0 2px 4px rgba(255,49,65,0.3);
}

.flash-original-price {
  font-size: 11px;
  color: var(--home-text-tertiary);
  text-decoration: line-through;
  margin-left: 4px;
}

/* ============================================
   SCROLL SECTIONS (Sections défilantes)
   ============================================ */

.scroll-section {
  margin-bottom: var(--home-section-gap);
  background: var(--home-bg-primary);
  width: 100%;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px var(--home-padding-mobile);
  border-bottom: 1px solid var(--home-border-color);
  width: 100%;
}

.section-header h2 {
  font-size: 18px;
  font-weight: 600;
  margin: 0;
  color: var(--home-text-primary);
}

.section-subtitle {
  font-size: 12px;
  color: var(--home-text-secondary);
  margin: 4px 0 0 0;
}

.arrow {
  font-size: 20px;
  color: var(--primary-orange);
  cursor: pointer;
  transition: transform 0.2s ease;
  padding: 8px;
  border-radius: 50%;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.scroll-container {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 16px var(--home-padding-mobile);
  scrollbar-width: none;
  scroll-snap-type: x mandatory;
  cursor: grab;
  width: 100%;
}

.scroll-container:active {
  cursor: grabbing;
}

.scroll-container::-webkit-scrollbar {
  display: none;
}

.scroll-container .product-card {
  flex: 0 0 160px;
  scroll-snap-align: start;
}

/* ============================================
   BRAND CAROUSEL (Vendeurs en vedette)
   ============================================ */

.brand-carousel {
  background: var(--home-bg-primary);
  margin-bottom: var(--home-section-gap);
  padding: 16px var(--home-padding-mobile);
  width: 100%;
}

.brand-carousel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.brand-carousel-header h2 {
  font-size: 16px;
  font-weight: 600;
  color: var(--home-text-primary);
  margin: 0;
}

.brand-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scrollbar-width: none;
  scroll-snap-type: x mandatory;
}

.brand-scroll::-webkit-scrollbar {
  display: none;
}

.brand-item {
  flex: 0 0 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: transform 0.2s ease;
  scroll-snap-align: start;
}

.brand-item:hover {
  transform: translateY(-2px);
}

.brand-logo {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--home-border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--home-bg-secondary);
}

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

.brand-logo-placeholder {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--primary-orange);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
}

.brand-name {
  font-size: 11px;
  font-weight: 500;
  color: var(--home-text-secondary);
  text-align: center;
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ============================================
   TRUST BADGES (Badges de confiance)
   ============================================ */

.trust-badges {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 12px var(--home-padding-mobile);
  background: var(--home-bg-primary);
  margin-bottom: var(--home-section-gap);
  width: 100%;
}

.trust-badge-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
  padding: 8px;
  border-radius: 8px;
  transition: background 0.2s ease;
  cursor: default;
}

.trust-badge-item:hover {
  background: var(--home-bg-secondary);
}

.trust-badge-icon {
  font-size: 20px;
  color: var(--primary-orange);
}

.trust-badge-text {
  font-size: 9px;
  color: var(--home-text-tertiary);
  line-height: 1.3;
}

/* ============================================
   PRODUCT CARD (Carte produit - Alibaba enhanced)
   ============================================ */

/* BADGES CONFIANCE (rangée de chips) */
.product-badges-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 6px;
}

.product-badge-chip {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 9px;
  font-weight: 600;
  white-space: nowrap;
  line-height: 1.2;
}

.product-badge-chip i {
  font-size: 8px;
}

/* PRIX PAR PALIERS (quantité dégressive Alibaba) */
.product-paliers {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 6px 0;
}

.palier-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  background: var(--primary-light);
  border-radius: 4px;
  font-size: 10px;
  line-height: 1.3;
}

.palier-qte {
  font-weight: 700;
  color: var(--primary-orange);
  font-size: 11px;
}

.palier-prix {
  font-weight: 600;
  color: var(--home-text-primary);
  font-size: 10px;
}

.palier-economie {
  color: #00B578;
  font-size: 8px;
  font-weight: 600;
}

.palier-more {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  background: var(--home-bg-secondary);
  border-radius: 4px;
  font-size: 10px;
  color: var(--home-text-tertiary);
  font-weight: 500;
}

/* PROGRÈS DE VENTE (preuve sociale) */
.product-sales-progress {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 4px 0;
}

.sales-progress-bar {
  flex: 1;
  height: 4px;
  background: var(--home-border-color);
  border-radius: 2px;
  overflow: hidden;
  max-width: 80px;
}

.sales-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #00B578, #00D68F);
  border-radius: 2px;
  transition: width 0.5s ease;
}

.sales-progress-text {
  font-size: 9px;
  color: var(--home-text-tertiary);
  font-weight: 500;
  white-space: nowrap;
}

/* COMMANDE RÉCENTE (preuve sociale temps réel) */
.product-recent-order {
  position: absolute;
  bottom: 8px;
  left: 8px;
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(0,0,0,0.65);
  color: white;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 9px;
  font-weight: 500;
  backdrop-filter: blur(4px);
  max-width: 90%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-recent-order i {
  font-size: 10px;
  flex-shrink: 0;
}

.product-recent-order span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* OPTION LIVRAISON */
.product-livraison {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 9px;
  color: var(--home-text-tertiary);
  margin: 3px 0;
}

.product-livraison i {
  font-size: 10px;
  color: #667eea;
}

/* AVIS RÉCENTS */
.product-avis-recants {
  margin: 4px 0;
}

.avis-mini {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  padding: 3px 6px;
  background: var(--home-bg-secondary);
  border-radius: 4px;
  font-size: 9px;
}

.avis-stars {
  font-size: 9px;
  line-height: 1;
}

.avis-texte {
  color: var(--home-text-secondary);
  font-style: italic;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 120px;
}

.avis-auteur {
  color: var(--home-text-tertiary);
  font-weight: 500;
}

/* STOCK BADGE SUR IMAGE */
.product-stock-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

.product-stock-badge.stock-urgent {
  background: #FF3141;
  color: white;
  animation: pulse-badge 1.5s infinite;
}

.product-stock-badge.stock-rupture {
  background: #6B7280;
  color: white;
}

/* META ITEMS */
.product-meta-item.stock-warning {
  color: #FF6A00;
}

.product-meta-item i {
  margin-right: 2px;
}

/* Rating count */
.rating-count {
  font-size: 10px;
  color: var(--home-text-tertiary);
  font-weight: 400;
}

.product-card {
  background: var(--home-bg-primary);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid var(--home-border-color);
  position: relative;
  display: flex;
  flex-direction: column;
}

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

.product-image {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--home-bg-secondary);
}

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

.product-card:hover .product-image img {
  transform: scale(1.08);
}

.placeholder-image {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--home-text-tertiary);
  font-size: 48px;
}

.product-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--primary-orange);
  color: white;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.product-badge.new {
  background: #00B578;
}

.product-badge.hot {
  background: #FF3141;
}

.product-badge.promo {
  background: #FF6A00;
  animation: pulse-badge 2s infinite;
}

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

.product-rating-badge {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0,0,0,0.7);
  color: white;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 10px;
  display: flex;
  align-items: center;
  gap: 2px;
}

.product-rating-badge i {
  color: #FFB800;
  font-size: 9px;
}

.quick-add-btn {
  position: absolute;
  bottom: 8px;
  right: 8px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary-orange);
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  box-shadow: 0 2px 8px rgba(255,106,0,0.4);
  transition: all 0.2s ease;
  opacity: 0;
  transform: scale(0.8);
}

.product-card:hover .quick-add-btn {
  opacity: 1;
  transform: scale(1);
}

.quick-add-btn:hover {
  background: var(--primary-dark);
  transform: scale(1.1);
}

.product-info {
  padding: 12px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--home-text-primary);
  margin: 0 0 8px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
  min-height: 36px;
}

.product-description {
  font-size: 11px;
  color: var(--home-text-secondary);
  margin: 0 0 6px 0;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-vendor {
  font-size: 10px;
  color: var(--home-text-tertiary);
  margin: 4px 0;
  display: flex;
  align-items: center;
  gap: 4px;
}

.product-vendor i {
  font-size: 9px;
}

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

.product-stock.in-stock {
  background: #e6f7f0;
  color: #00B578;
}

.product-stock.out-stock {
  background: #ffe6e6;
  color: #FF3141;
}

.product-price-section {
  margin-top: auto;
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
}

.product-price {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary-orange);
  margin-bottom: 4px;
}

.product-original-price {
  font-size: 11px;
  color: var(--home-text-tertiary);
  text-decoration: line-through;
}

.product-moq {
  font-size: 11px;
  color: var(--home-text-secondary);
  margin-bottom: 8px;
}

.product-price-range {
  font-size: 11px;
  color: var(--home-text-secondary);
  margin-bottom: 6px;
}

.product-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
}

.stars {
  font-size: 12px;
}

.rating-value {
  font-size: 11px;
  color: var(--home-text-tertiary);
}

.product-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--home-border-color);
  font-size: 11px;
  color: var(--home-text-tertiary);
}

.product-meta-item {
  display: flex;
  align-items: center;
  gap: 4px;
}

.product-meta-item i {
  font-size: 10px;
}

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

.product-grid-section {
  background: var(--home-bg-primary);
  padding: 16px var(--home-padding-mobile);
  width: 100%;
  margin-bottom: var(--home-section-gap);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  width: 100%;
}

@media (min-width: 768px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

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

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

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

.load-more-btn {
  background: var(--home-bg-primary);
  color: var(--primary-orange);
  border: 2px solid var(--primary-orange);
  padding: 12px 32px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.load-more-btn:hover {
  background: var(--primary-orange);
  color: white;
  box-shadow: 0 4px 12px rgba(255, 106, 0, 0.3);
}

/* ============================================
   EMPTY STATE
   ============================================ */

.empty-state {
  text-align: center;
  padding: 64px 16px;
  color: var(--home-text-tertiary);
}

.empty-state i {
  font-size: 64px;
  margin-bottom: 16px;
  opacity: 0.5;
}

.empty-state p {
  font-size: 16px;
  margin: 0;
}

/* ============================================
   STORIES PREVIEW ON HOME
   ============================================ */

.stories-preview-section {
  background: var(--home-bg-primary);
  padding: 12px var(--home-padding-mobile);
  margin-bottom: var(--home-section-gap);
  width: 100%;
}

.stories-preview-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.stories-preview-header h3 {
  font-size: 14px;
  font-weight: 600;
  color: var(--home-text-primary);
  margin: 0;
}

.stories-preview-header a {
  font-size: 12px;
  color: var(--primary-orange);
  text-decoration: none;
  font-weight: 500;
}

.stories-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scrollbar-width: none;
  scroll-snap-type: x mandatory;
}

.stories-scroll::-webkit-scrollbar {
  display: none;
}

.story-preview-item {
  flex: 0 0 72px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  scroll-snap-align: start;
  transition: transform 0.2s ease;
}

.story-preview-item:hover {
  transform: translateY(-2px);
}

.story-preview-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(135deg, var(--primary-orange), #FFB800);
  display: flex;
  align-items: center;
  justify-content: center;
}

.story-preview-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--home-bg-primary);
}

.story-preview-avatar-placeholder {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--home-bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--home-text-tertiary);
  border: 2px solid var(--home-bg-primary);
}

.story-preview-name {
  font-size: 10px;
  color: var(--home-text-secondary);
  max-width: 72px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: center;
}

/* ============================================
   RECOMMANDATIONS PERSO SECTION
   ============================================ */

.recommandations-section {
  background: linear-gradient(135deg, #667eea08 0%, #764ba208 100%);
  margin-bottom: var(--home-section-gap);
  width: 100%;
}

/* ============================================
   BOTTOM NAVIGATION BAR (Alibaba-style mobile)
   ============================================ */

.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--bottom-nav-height);
  background: var(--home-bg-primary);
  border-top: 1px solid var(--home-border-color);
  display: flex;
  align-items: center;
  justify-content: space-around;
  z-index: 200;
  padding-bottom: env(safe-area-inset-bottom, 0);
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 6px 12px;
  border: none;
  background: none;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  color: var(--home-text-tertiary);
}

.bottom-nav-item.active {
  color: var(--primary-orange);
}

.bottom-nav-item i {
  font-size: 20px;
}

.bottom-nav-item span {
  font-size: 10px;
  font-weight: 500;
}

.bottom-nav-badge {
  position: absolute;
  top: 0;
  right: 4px;
  background: #FF3141;
  color: white;
  font-size: 9px;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

@media (min-width: 1024px) {
  .bottom-nav {
    display: none;
  }
  .main-content {
    padding-bottom: 0;
  }
}

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

.scroll-top-btn {
  position: fixed;
  bottom: 72px;
  right: 16px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary-orange);
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: var(--home-shadow-lg);
  z-index: 150;
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
}

.scroll-top-btn.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.scroll-top-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255,106,0,0.4);
}

@media (min-width: 1024px) {
  .scroll-top-btn {
    bottom: 24px;
  }
}

/* ============================================
   ANIMATIONS
   ============================================ */

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

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

.product-card {
  animation: fadeInUp 0.4s ease-out;
}

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

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

/* Enhanced Skeleton */
.skeleton-card {
  background: var(--home-bg-primary);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--home-border-color);
}

.skeleton-card .skeleton-image {
  width: 100%;
  aspect-ratio: 1;
  background: linear-gradient(90deg, var(--home-bg-secondary) 25%, var(--home-border-color) 50%, var(--home-bg-secondary) 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

.skeleton-card .skeleton-text {
  height: 12px;
  margin: 8px 12px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--home-bg-secondary) 25%, var(--home-border-color) 50%, var(--home-bg-secondary) 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

.skeleton-card .skeleton-price {
  height: 18px;
  width: 60%;
  margin: 4px 12px 12px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--home-bg-secondary) 25%, var(--home-border-color) 50%, var(--home-bg-secondary) 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--home-bg-secondary);
  border-top-color: var(--primary-orange);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* ============================================
   PROMOTIONAL BANNER
   ============================================ */

.promo-banner {
  width: 100%;
  margin-bottom: var(--home-section-gap);
  background: linear-gradient(135deg, var(--primary-orange) 0%, var(--primary-dark) 100%);
  padding: 20px var(--home-padding-mobile);
  color: white;
  position: relative;
  overflow: hidden;
}

.promo-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 300px;
  height: 300px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  pointer-events: none;
}

.promo-banner-content {
  position: relative;
  z-index: 1;
  max-width: 1400px;
  margin: 0 auto;
}

.promo-banner h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 8px 0;
  color: white;
}

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

.promo-banner-btn {
  display: inline-block;
  padding: 10px 24px;
  background: white;
  color: var(--primary-orange);
  border-radius: 24px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
}

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

/* ============================================
   CATEGORY VISUAL GRID
   ============================================ */

.category-visual-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding: 16px var(--home-padding-mobile);
  background: var(--home-bg-primary);
  width: 100%;
  margin-bottom: var(--home-section-gap);
}

.category-visual-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--home-bg-secondary) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px;
  text-align: center;
}

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

.category-visual-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--primary-orange);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 12px;
  box-shadow: 0 4px 12px rgba(255, 106, 0, 0.3);
}

.category-visual-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--home-text-primary);
  margin: 0;
}

.category-visual-count {
  font-size: 11px;
  color: var(--home-text-secondary);
  margin-top: 4px;
}

/* ============================================
   SECTION DIVIDER
   ============================================ */

.section-divider {
  height: 8px;
  background: var(--home-bg-secondary);
  width: 100%;
}

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

/* Mobile small (< 360px) */
@media (max-width: 360px) {
  :root {
    --home-padding-mobile: 8px;
  }
  
  .quick-tools {
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
  }
  
  .tool-icon {
    width: 44px;
    height: 44px;
    font-size: 18px;
  }
  
  .tool-label {
    font-size: 9px;
  }
  
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  
  .scroll-container .product-card {
    flex: 0 0 130px;
  }
  
  .flash-deals-container .product-card {
    flex: 0 0 120px;
  }
  
  .trust-badges {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile (360px - 640px) */
@media (min-width: 361px) and (max-width: 640px) {
  .quick-tools {
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
  }
  
  .tool-icon {
    width: 48px;
    height: 48px;
    font-size: 20px;
  }
  
  .tool-label {
    font-size: 10px;
  }
  
  .scroll-container .product-card {
    flex: 0 0 140px;
  }
  
  .flash-deals-container .product-card {
    flex: 0 0 130px;
  }
  
  .section-header h2 {
    font-size: 16px;
  }
  
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  
  .trust-badges {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Tablette (641px - 1024px) */
@media (min-width: 641px) and (max-width: 1024px) {
  :root {
    --home-padding-mobile: 16px;
  }
  
  .quick-tools {
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
  }
  
  .tool-icon {
    width: 64px;
    height: 64px;
    font-size: 28px;
  }
  
  .tool-label {
    font-size: 12px;
  }
  
  .scroll-container .product-card {
    flex: 0 0 180px;
  }
  
  .flash-deals-container .product-card {
    flex: 0 0 160px;
  }
  
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
  
  .section-header h2 {
    font-size: 20px;
  }
  
  .category-visual-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Desktop (> 1024px) */
@media (min-width: 1025px) {
  :root {
    --home-padding-mobile: 24px;
  }
  
  .home-header {
    padding: 12px var(--home-padding-mobile);
  }
  
  .quick-tools {
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    max-width: 1400px;
    margin: 0 auto;
  }
  
  .tool-icon {
    width: 72px;
    height: 72px;
    font-size: 32px;
  }
  
  .tool-label {
    font-size: 13px;
  }
  
  .scroll-container .product-card {
    flex: 0 0 200px;
  }
  
  .flash-deals-container .product-card {
    flex: 0 0 180px;
  }
  
  .product-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 1400px;
    margin: 0 auto;
  }
  
  .section-header {
    max-width: 1400px;
    margin: 0 auto;
  }
  
  .section-header h2 {
    font-size: 22px;
  }
  
  .category-visual-grid {
    grid-template-columns: repeat(4, 1fr);
    max-width: 1400px;
    margin: 0 auto var(--home-section-gap);
  }
  
  .home-header-inner {
    padding: 0 16px;
  }
  
  .home-logo-text {
    display: block;
    font-size: 20px;
  }
  
  .flash-deals-section .section-header,
  .scroll-section .section-header,
  .product-grid-section .section-header {
    max-width: 1400px;
    margin: 0 auto;
  }
  
  .brand-carousel {
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
  }
  
  .trust-badges {
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
  }
  
  .stories-preview-section {
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* Large Desktop (> 1400px) */
@media (min-width: 1401px) {
  .product-grid {
    grid-template-columns: repeat(5, 1fr);
  }
  
  .category-visual-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

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

:focus-visible {
  outline: 2px solid var(--primary-orange);
  outline-offset: 2px;
}

button, a {
  min-height: 44px;
  min-width: 44px;
}

.bottom-nav-item {
  min-height: auto;
  min-width: auto;
}

@media (display-mode: standalone) {
  .home-header {
    padding-top: calc(8px + env(safe-area-inset-top));
  }
  
  .bottom-nav {
    padding-bottom: env(safe-area-inset-bottom, 0);
  }
}

/* ============================================
   SECTION DIVIDER
   ============================================ */

.section-divider {
  height: 0;
}

/* ============================================
   MEGA MENU BAR (Section 2)
   ============================================ */

.mega-menu-bar {
  background: var(--home-bg-primary);
  border-bottom: 1px solid var(--home-border-color);
  padding: 0 var(--home-padding-mobile);
  display: none;
}

@media (min-width: 768px) {
  .mega-menu-bar {
    display: block;
  }
}

.mega-menu-inner {
  display: flex;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
}

.mega-menu-trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--primary-orange);
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
  min-width: auto;
  min-height: auto;
}

.mega-menu-trigger:hover {
  background: var(--primary-dark);
}

.mega-menu-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 24px;
  overflow-x: auto;
  scrollbar-width: none;
}

.mega-menu-links::-webkit-scrollbar {
  display: none;
}

.mega-link {
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--home-text-secondary);
  text-decoration: none;
  white-space: nowrap;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.mega-link:hover {
  background: var(--home-bg-secondary);
  color: var(--primary-orange);
}

.mega-menu-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--home-bg-primary);
  border: 1px solid var(--home-border-color);
  border-radius: 12px;
  box-shadow: var(--home-shadow-lg);
  z-index: 1000;
  min-width: 280px;
  max-height: 400px;
  overflow-y: auto;
}

.mega-menu-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

.mega-menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.mega-menu-item:hover {
  background: var(--primary-light);
}

.mega-menu-item-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--home-bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-orange);
  font-size: 16px;
}

.mega-menu-item-info {
  display: flex;
  flex-direction: column;
}

.mega-menu-item-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--home-text-primary);
}

.mega-menu-item-count {
  font-size: 11px;
  color: var(--home-text-tertiary);
}

/* ============================================
   HEADER ACTIONS (Favoris + Panier dans le header)
   ============================================ */

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-action-btn {
  position: relative;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--home-text-primary);
  border-radius: 50%;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: auto;
  min-height: auto;
}

.header-action-btn:hover {
  background: var(--home-bg-secondary);
  color: var(--primary-orange);
}

.cart-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  background: #FF3141;
  color: white;
  font-size: 9px;
  font-weight: 700;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: auto;
  min-height: auto;
}

.menu-toggle-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--home-text-primary);
  border-radius: 8px;
  transition: all 0.2s ease;
  min-width: auto;
  min-height: auto;
}

.menu-toggle-btn:hover {
  background: var(--home-bg-secondary);
  color: var(--primary-orange);
}

@media (min-width: 768px) {
  .menu-toggle-btn {
    display: none;
  }
  .header-actions {
    display: flex;
  }
}

@media (max-width: 767px) {
  .header-actions .header-action-btn:first-child {
    display: none;
  }
  .header-actions .cart-btn {
    display: flex;
  }
}

/* ============================================
   HERO SECTION (Section 3)
   ============================================ */

.hero-section {
  padding: 12px var(--home-padding-mobile);
  background: var(--home-bg-primary);
  margin-bottom: var(--home-section-gap);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  max-width: 1400px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .hero-grid {
    grid-template-columns: 2fr 1fr;
  }
}

.hero-main {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  min-height: 220px;
}

.hero-main-bg {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 220px;
  background: linear-gradient(135deg, var(--primary-orange) 0%, #FF8F1F 100%);
}

.hero-main-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
}

.hero-main-placeholder {
  width: 100%;
  height: 100%;
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.3);
  font-size: 64px;
}

.hero-main-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.2) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  gap: 8px;
}

.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.2);
  color: white;
  padding: 4px 12px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 600;
  backdrop-filter: blur(4px);
  width: fit-content;
}

.hero-title {
  color: white;
  font-size: 22px;
  font-weight: 700;
  margin: 0;
  line-height: 1.3;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.hero-subtitle {
  color: rgba(255,255,255,0.9);
  font-size: 13px;
  margin: 0;
  line-height: 1.4;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  background: white;
  color: var(--primary-orange);
  border: none;
  border-radius: 9999px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 8px;
  width: fit-content;
  min-width: auto;
  min-height: auto;
}

.hero-cta:hover {
  transform: translateX(4px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.hero-side {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

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

.hero-side-card {
  background: var(--home-bg-secondary);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.hero-side-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--home-shadow-md);
}

.hero-side-img {
  width: 100%;
  aspect-ratio: 1;
  background: var(--home-bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--home-text-tertiary);
  font-size: 32px;
  overflow: hidden;
}

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

.hero-side-info {
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hero-side-name {
  font-size: 12px;
  font-weight: 500;
  color: var(--home-text-primary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-side-price {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary-orange);
}

.hero-side-promo {
  background: linear-gradient(135deg, var(--primary-orange), #FF8F1F);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-side-promo-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 20px;
  color: white;
  text-align: center;
}

.hero-side-promo-content i {
  font-size: 32px;
  opacity: 0.9;
}

.hero-side-promo-text {
  font-size: 18px;
  font-weight: 700;
}

.hero-side-promo-sub {
  font-size: 11px;
  opacity: 0.85;
}

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

.trust-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  padding: 12px var(--home-padding-mobile);
  background: var(--home-bg-primary);
  border-bottom: 1px solid var(--home-border-color);
  margin-bottom: var(--home-section-gap);
  overflow-x: auto;
}

.trust-strip-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  min-width: 0;
}

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

.trust-strip-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.trust-strip-main {
  font-size: 11px;
  font-weight: 600;
  color: var(--home-text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.trust-strip-sub {
  font-size: 9px;
  color: var(--home-text-tertiary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 767px) {
  .trust-strip {
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
  }
  .trust-strip-item:last-child {
    display: none;
  }
  .trust-strip-item:nth-last-child(2) {
    display: none;
  }
}

/* ============================================
   FLASH DEALS FOOTER
   ============================================ */

.flash-deals-footer {
  padding: 0 var(--home-padding-mobile) 12px;
}

.flash-view-all {
  width: 100%;
  padding: 10px;
  background: var(--primary-light);
  color: var(--primary-orange);
  border: 1px solid var(--primary-orange);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.flash-view-all:hover {
  background: var(--primary-orange);
  color: white;
}

.flash-progress-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
}

.flash-progress-fill {
  flex: 1;
  height: 4px;
  background: #FF3141;
  border-radius: 2px;
  transition: width 0.3s ease;
  max-width: 100%;
  background: linear-gradient(90deg, #FF3141, #FF6A00);
}

.flash-progress-text {
  font-size: 9px;
  font-weight: 600;
  color: #FF3141;
  white-space: nowrap;
}

/* ============================================
   TOP CATEGORIES (Section 6)
   ============================================ */

.top-categories-section {
  background: var(--home-bg-primary);
  margin-bottom: var(--home-section-gap);
  padding-bottom: 12px;
}

.top-categories-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 0 var(--home-padding-mobile);
}

@media (max-width: 767px) {
  .top-categories-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
  }
}

.top-category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 6px;
  background: var(--home-bg-secondary);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
}

.top-category-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--home-shadow-md);
  background: var(--primary-light);
}

.top-category-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-orange);
  font-size: 18px;
}

.top-category-card:hover .top-category-icon {
  background: var(--primary-orange);
  color: white;
}

.top-category-name {
  font-size: 11px;
  font-weight: 600;
  color: var(--home-text-primary);
  text-align: center;
  line-height: 1.3;
}

.top-category-count {
  font-size: 9px;
  color: var(--home-text-tertiary);
}

/* ============================================
   SECTION LINK (lien "Voir tout")
   ============================================ */

.section-link {
  background: none;
  border: none;
  font-size: 12px;
  font-weight: 500;
  color: var(--primary-orange);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px;
  transition: all 0.2s ease;
  min-width: auto;
  min-height: auto;
}

.section-link:hover {
  color: var(--primary-dark);
  transform: translateX(2px);
}

/* ============================================
   RECOMMANDATIONS WRAPPER
   ============================================ */

.recommendations-wrapper {
  background: var(--home-bg-primary);
  margin-bottom: var(--home-section-gap);
}

.recommandations-container {
  padding: 0;
}

.recommendations-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 24px;
  color: var(--home-text-tertiary);
  font-size: 13px;
}

/* ============================================
   THEMATIC SECTIONS (Section 10)
   ============================================ */

.thematic-sections {
  background: var(--home-bg-primary);
  margin-bottom: var(--home-section-gap);
  padding: 0 var(--home-padding-mobile) 12px;
}

.thematic-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  max-width: 1400px;
  margin: 0 auto;
}

@media (max-width: 767px) {
  .thematic-grid {
    grid-template-columns: 1fr;
  }
}

.thematic-card {
  background: var(--home-bg-secondary);
  border-radius: 12px;
  overflow: hidden;
}

.thematic-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px;
}

.thematic-header h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--home-text-primary);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.thematic-link {
  background: none;
  border: none;
  font-size: 12px;
  color: var(--primary-orange);
  cursor: pointer;
  font-weight: 500;
  min-width: auto;
  min-height: auto;
}

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

.thematic-product {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  padding: 6px;
  border-radius: 8px;
  transition: background 0.2s ease;
}

.thematic-product:hover {
  background: var(--home-bg-primary);
}

.thematic-product-img {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--home-bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--home-text-tertiary);
  font-size: 18px;
  flex-shrink: 0;
}

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

.thematic-product-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.thematic-product-name {
  font-size: 12px;
  font-weight: 500;
  color: var(--home-text-primary);
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.thematic-product-price {
  font-size: 11px;
  font-weight: 700;
  color: var(--primary-orange);
}

.thematic-empty {
  font-size: 12px;
  color: var(--home-text-tertiary);
  padding: 8px;
  text-align: center;
}

/* ============================================
   SPONSORED PRODUCTS (Section 11)
   ============================================ */

.sponsored-section {
  background: var(--home-bg-primary);
  margin-bottom: var(--home-section-gap);
  padding-bottom: 12px;
}

.sponsored-label {
  font-size: 10px;
  color: var(--home-text-tertiary);
  padding: 2px 8px;
  border: 1px solid var(--home-border-color);
  border-radius: 4px;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.sponsored-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 0 var(--home-padding-mobile);
}

@media (max-width: 767px) {
  .sponsored-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.sponsored-card {
  background: var(--home-bg-secondary);
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

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

.sponsored-img {
  width: 100%;
  aspect-ratio: 1;
  background: var(--home-bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--home-text-tertiary);
  font-size: 28px;
  overflow: hidden;
}

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

.sponsored-info {
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sponsored-title {
  font-size: 12px;
  font-weight: 500;
  color: var(--home-text-primary);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.3;
}

.sponsored-price {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary-orange);
}

.sponsored-vendor {
  font-size: 10px;
  color: var(--home-text-tertiary);
}

/* ============================================
   FEATURED VENDORS (Section 12)
   ============================================ */

.featured-vendors-section {
  background: var(--home-bg-primary);
  margin-bottom: var(--home-section-gap);
  padding-bottom: 12px;
}

.vendors-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 0 var(--home-padding-mobile);
  scrollbar-width: none;
  scroll-snap-type: x mandatory;
}

.vendors-scroll::-webkit-scrollbar {
  display: none;
}

.vendor-card {
  flex: 0 0 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  padding: 8px;
  border-radius: 12px;
  transition: all 0.3s ease;
  scroll-snap-align: start;
}

.vendor-card:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
}

.vendor-avatar {
  position: relative;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--home-bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--home-border-color);
}

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

.vendor-avatar-placeholder {
  width: 100%;
  height: 100%;
  background: var(--primary-orange);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 700;
}

.vendor-verified {
  position: absolute;
  bottom: -2px;
  right: -2px;
  color: #00B578;
  background: white;
  border-radius: 50%;
  font-size: 14px;
  line-height: 1;
}

.vendor-name {
  font-size: 11px;
  font-weight: 500;
  color: var(--home-text-primary);
  text-align: center;
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vendor-count {
  font-size: 9px;
  color: var(--home-text-tertiary);
}

/* ============================================
   POPULAR BRANDS (Section 13)
   ============================================ */

.brands-section {
  background: var(--home-bg-primary);
  margin-bottom: var(--home-section-gap);
  padding-bottom: 12px;
}

.brands-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding: 0 var(--home-padding-mobile);
}

@media (max-width: 767px) {
  .brands-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
  }
}

.brand-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 12px 8px;
  background: var(--home-bg-secondary);
  border-radius: 12px;
  transition: all 0.3s ease;
}

.brand-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--home-shadow-md);
}

.brand-card-logo {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--home-bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.brand-card-placeholder {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-orange), var(--primary-dark));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
}

.brand-card-name {
  font-size: 11px;
  font-weight: 500;
  color: var(--home-text-primary);
  text-align: center;
  max-width: 80px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ============================================
   NEW VENDORS (Section 14)
   ============================================ */

.new-vendors-section {
  background: var(--home-bg-primary);
  margin-bottom: var(--home-section-gap);
  padding-bottom: 12px;
}

.new-vendors-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 var(--home-padding-mobile);
}

.new-vendor-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: var(--home-bg-secondary);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.new-vendor-item:hover {
  background: var(--primary-light);
  transform: translateX(4px);
}

.new-vendor-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(135deg, #00B578, #00D68F);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  flex-shrink: 0;
}

.new-vendor-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.new-vendor-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.new-vendor-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--home-text-primary);
}

.new-vendor-meta {
  font-size: 11px;
  color: var(--home-text-tertiary);
}

.new-vendor-item i {
  color: var(--home-text-tertiary);
  font-size: 14px;
}

/* ============================================
   CUSTOMER REVIEWS (Section 15)
   ============================================ */

.reviews-section {
  background: var(--home-bg-primary);
  margin-bottom: var(--home-section-gap);
  padding-bottom: 12px;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding: 0 var(--home-padding-mobile);
}

@media (max-width: 767px) {
  .reviews-grid {
    grid-template-columns: 1fr;
  }
}

.review-card {
  display: flex;
  gap: 12px;
  padding: 12px;
  background: var(--home-bg-secondary);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.review-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--home-shadow-md);
}

.review-product-img {
  width: 60px;
  height: 60px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--home-bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--home-text-tertiary);
  font-size: 24px;
  flex-shrink: 0;
}

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

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

.review-product-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--home-text-primary);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.review-stars {
  font-size: 12px;
  line-height: 1;
}

.review-text {
  font-size: 11px;
  color: var(--home-text-secondary);
  margin: 0;
  line-height: 1.4;
  font-style: italic;
}

.review-author {
  font-size: 10px;
  color: var(--home-text-tertiary);
}

/* ============================================
   EDITORIAL COLLECTIONS (Section 16)
   ============================================ */

.editorial-collections {
  background: var(--home-bg-primary);
  margin-bottom: var(--home-section-gap);
  padding-bottom: 12px;
}

.collections-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 0 var(--home-padding-mobile);
}

@media (max-width: 767px) {
  .collections-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

.collection-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.collection-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--home-shadow-md);
}

.collection-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 20px;
  flex-shrink: 0;
}

.collection-info {
  flex: 1;
}

.collection-info h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--home-text-primary);
  margin: 0 0 4px 0;
}

.collection-info p {
  font-size: 12px;
  color: var(--primary-orange);
  margin: 0;
  font-weight: 500;
}

/* ============================================
   TRENDING SECTION (Section 17)
   ============================================ */

.trending-section {
  background: var(--home-bg-primary);
  margin-bottom: var(--home-section-gap);
  padding-bottom: 12px;
}

.trending-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 var(--home-padding-mobile);
}

.trending-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: var(--home-bg-secondary);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.trending-item:hover {
  background: var(--primary-light);
  transform: translateX(4px);
}

.trending-rank {
  font-size: 18px;
  font-weight: 800;
  color: var(--primary-orange);
  width: 28px;
  text-align: center;
  font-family: 'Courier New', monospace;
  opacity: 0.7;
}

.trending-item:nth-child(1) .trending-rank { opacity: 1; color: #FF3141; }
.trending-item:nth-child(2) .trending-rank { opacity: 1; color: #FF6A00; }
.trending-item:nth-child(3) .trending-rank { opacity: 1; color: #FFB800; }

.trending-img {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--home-bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--home-text-tertiary);
  font-size: 20px;
  flex-shrink: 0;
}

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

.trending-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.trending-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--home-text-primary);
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.trending-price {
  font-size: 12px;
  font-weight: 700;
  color: var(--primary-orange);
}

.trending-rating {
  font-size: 10px;
  color: var(--home-text-tertiary);
}

.trending-arrow {
  color: var(--home-text-tertiary);
  font-size: 14px;
}

/* ============================================
   RECENTLY VIEWED (Section 18)
   ============================================ */

.recently-viewed-section {
  background: var(--home-bg-primary);
  margin-bottom: var(--home-section-gap);
}

/* ============================================
   BLOG / ACTUALITÉS (Section 19)
   ============================================ */

.blog-section {
  background: var(--home-bg-primary);
  margin-bottom: var(--home-section-gap);
  padding-bottom: 12px;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 0 var(--home-padding-mobile);
}

@media (max-width: 767px) {
  .blog-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.blog-card {
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
  background: var(--home-bg-secondary);
}

.blog-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--home-shadow-md);
}

.blog-card-img {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--home-bg-primary);
}

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

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

.blog-card-placeholder {
  width: 100%;
  aspect-ratio: 16/9;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--home-bg-secondary);
  color: var(--home-text-tertiary);
}

.blog-card-content {
  padding: 12px;
}

.blog-card-date {
  font-size: 10px;
  color: var(--home-text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 500;
}

.blog-card-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--home-text-primary);
  margin: 6px 0;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card-desc {
  font-size: 12px;
  color: var(--home-text-secondary);
  margin: 0;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ============================================
   FAQ (Section 20)
   ============================================ */

.faq-section {
  background: var(--home-bg-primary);
  margin-bottom: var(--home-section-gap);
  padding-bottom: 12px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 var(--home-padding-mobile);
}

.faq-item {
  border: 1px solid var(--home-border-color);
  border-radius: 10px;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: var(--home-text-primary);
  text-align: left;
  transition: background 0.2s ease;
  min-width: auto;
  min-height: auto;
}

.faq-question:hover {
  background: var(--home-bg-secondary);
}

.faq-question i {
  font-size: 14px;
  color: var(--home-text-tertiary);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

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

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-answer p {
  padding: 0 16px 14px;
  margin: 0;
  font-size: 13px;
  color: var(--home-text-secondary);
  line-height: 1.5;
}

/* ============================================
   NEWSLETTER (Section 21)
   ============================================ */

.newsletter-section {
  padding: 0 var(--home-padding-mobile);
  margin-bottom: var(--home-section-gap);
}

.newsletter-card {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 16px;
  padding: 32px 24px;
  max-width: 600px;
  margin: 0 auto;
}

.newsletter-content {
  text-align: center;
  color: white;
}

.newsletter-icon {
  font-size: 40px;
  margin-bottom: 12px;
  opacity: 0.9;
}

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

.newsletter-content p {
  font-size: 14px;
  opacity: 0.9;
  margin: 0 0 20px;
  line-height: 1.5;
}

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

.newsletter-input {
  flex: 1;
  padding: 12px 16px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  outline: none;
  color: #333;
}

.newsletter-btn {
  padding: 12px 24px;
  background: var(--primary-orange);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
  white-space: nowrap;
  min-width: auto;
  min-height: auto;
}

.newsletter-btn:hover {
  background: var(--primary-dark);
}

.newsletter-disclaimer {
  font-size: 11px;
  opacity: 0.7;
  margin-top: 16px;
}

@media (max-width: 767px) {
  .newsletter-form {
    flex-direction: column;
  }
  .newsletter-card {
    padding: 24px 16px;
  }
}

/* ============================================
   APP DOWNLOAD (Section 22)
   ============================================ */

.app-download-section {
  padding: 0 var(--home-padding-mobile);
  margin-bottom: var(--home-section-gap);
}

.app-download-card {
  background: var(--home-bg-primary);
  border: 2px dashed var(--home-border-color);
  border-radius: 16px;
  padding: 24px;
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.app-download-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.app-download-icon {
  color: var(--primary-orange);
}

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

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

.app-download-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.app-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border: 1px solid var(--home-border-color);
  border-radius: 10px;
  background: var(--home-bg-primary);
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 13px;
  font-weight: 500;
  color: var(--home-text-primary);
  min-width: auto;
  min-height: auto;
}

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

.app-btn i {
  font-size: 20px;
}

.app-btn-android i { color: #34A853; }
.app-btn-ios i { color: #000; }

@media (max-width: 767px) {
  .app-download-buttons {
    flex-direction: column;
    align-items: stretch;
  }
  .app-btn {
    justify-content: center;
  }
}

/* ============================================
   FOOTER (Section 23)
   ============================================ */

.home-footer {
  background: #1a1a2e;
  color: #e0e0e0;
  padding: 32px var(--home-padding-mobile) 80px;
  margin-top: 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
  max-width: 1400px;
  margin: 0 auto;
}

@media (max-width: 1023px) {
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}

@media (max-width: 767px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

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

@media (max-width: 1023px) {
  .footer-brand {
    grid-column: 1 / -1;
  }
}

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

.footer-col h4 {
  font-size: 14px;
  font-weight: 700;
  color: white;
  margin: 0 0 6px;
}

.footer-col a {
  display: block;
  font-size: 13px;
  color: #b0b0c0;
  text-decoration: none;
  transition: color 0.2s ease;
  padding: 4px 0;
}

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

.footer-desc {
  font-size: 13px;
  color: #b0b0c0;
  line-height: 1.5;
  margin: 0;
}

.footer-social {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.footer-social-link {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #b0b0c0;
  text-decoration: none;
  transition: all 0.2s ease;
  font-size: 16px;
}

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

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 24px;
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}

.footer-bottom p {
  font-size: 12px;
  color: #808090;
  margin: 0;
}

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

.footer-payment-badge {
  padding: 4px 12px;
  background: rgba(255,255,255,0.1);
  border-radius: 4px;
  font-size: 11px;
  color: #b0b0c0;
  font-weight: 500;
}

/* ============================================
   DARK MODE OVERRIDES FOR NEW SECTIONS
   ============================================ */

.dark .mega-menu-bar {
  background: var(--home-bg-primary);
}

.dark .mega-menu-trigger {
  background: var(--primary-dark);
}

.dark .mega-link:hover {
  background: var(--home-bg-secondary);
}

.dark .hero-main-placeholder {
  background: linear-gradient(135deg, #2B2930, #1C1B1F);
}

.dark .hero-side-card {
  background: var(--home-bg-secondary);
}

.dark .top-category-card {
  background: var(--home-bg-secondary);
}

.dark .thematic-card {
  background: var(--home-bg-secondary);
}

.dark .thematic-product:hover {
  background: var(--home-bg-primary);
}

.dark .review-card {
  background: var(--home-bg-secondary);
}

.dark .brand-card {
  background: var(--home-bg-secondary);
}

.dark .new-vendor-item {
  background: var(--home-bg-secondary);
}

.dark .trending-item {
  background: var(--home-bg-secondary);
}

.dark .blog-card {
  background: var(--home-bg-secondary);
}

.dark .app-download-card {
  border-color: var(--home-border-color);
  background: var(--home-bg-secondary);
}

.dark .app-btn {
  background: var(--home-bg-secondary);
  border-color: var(--home-border-color);
}

.dark .home-footer {
  background: #0f0f1a;
}

/* ============================================
   TOAST OVERRIDE FOR HOME
   ============================================ */

.home-toast {
  position: fixed;
  bottom: 72px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--home-text-primary);
  color: var(--home-bg-primary);
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  box-shadow: var(--home-shadow-lg);
  z-index: 300;
  animation: toastSlideUp 0.3s ease;
}

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