/* =====================================
   CATEGORY SLIDER COMPONENT
   ===================================== */


.container-main { 
  width: 100%; 
  max-width: 1800px!important; 
  margin: 0 auto; 
  padding: 0 1rem; 
}



   .category-slider-wrapper {
  overflow: hidden;
  margin: 0 -15px;
  padding: 0 15px;
}


.category-slider-container {
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
  scroll-behavior: smooth;
  padding: 10px 0;
  margin: 0 -10px;
}

.category-slider-container::-webkit-scrollbar {
  display: none; /* Chrome, Safari and Opera */
}

.category-slider {
  display: flex;
  gap: 1.5rem;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0 10px;
}

.category-slide {
  flex: 0 0 auto;
  width: 280px;
  scroll-snap-align: start;
}

.category-card-modern {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid #00000021;
  border-radius: 20px;
  padding: 2rem 1.5rem;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);

  position: relative;
  overflow: hidden;
  height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.category-card-modern::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.05) 0%, rgba(16, 185, 129, 0.05) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.category-card-modern:hover::before {
  opacity: 1;
}

.category-card-modern:hover {
  transform: translateY(-10px) scale(1.03);

  border-color: rgba(37, 99, 235, 0.3);
}

.category-icon-wrapper {
  position: relative;
  z-index: 2;
  margin-bottom: 1.5rem;
}

.category-icon {
  font-size: 3.5rem;
  transition: all 0.3s ease;
}

.category-card-modern:hover .category-icon {
  transform: scale(1.1);
  filter: brightness(1.2) saturate(1.3);
}

.category-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 0.75rem;
  position: relative;
  z-index: 2;
  line-height: 1.3;
}

.category-description {
  font-size: 0.9rem;
  color: #64748b;
  margin-bottom: 1rem;
  position: relative;
  z-index: 2;
  line-height: 1.4;
}

.category-arrow {
  position: relative;
  z-index: 2;
  color: #64748b;
  font-size: 1.2rem;
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.3s ease;
}

.category-card-modern:hover .category-arrow {
  opacity: 1;
  transform: translateX(0);
}

.category-card-link {
  display: block;
  color: inherit;
  text-decoration: none !important;
}

/* Navigation Arrows */
.category-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.95);
  border: 2px solid rgba(37, 99, 235, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: #2563eb;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.category-nav:hover {
  background: #2563eb;
  color: white;
  border-color: #2563eb;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 8px 25px rgba(37, 99, 235, 0.3);
}

.category-nav-prev {
  left: -25px;
}

.category-nav-next {
  right: -25px;
}

.category-nav:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: translateY(-50%) scale(0.9);
}

.category-nav:disabled:hover {
  background: rgba(255, 255, 255, 0.95);
  color: #2563eb;
  border-color: rgba(37, 99, 235, 0.1);
  transform: translateY(-50%) scale(0.9);
}

/* Responsive Design */
@media (max-width: 1200px) {
  .category-slide {
    width: 240px;
  }

  .category-slider {
    gap: 1.25rem;
  }

  .category-card-modern {
    padding: 1.75rem 1.25rem;
    height: 200px;
  }

  .category-icon {
    font-size: 3rem;
  }

  .category-title {
    font-size: 1.1rem;
  }
}

@media (max-width: 992px) {
  .category-slider-wrapper {
    margin: 0 -10px;
    padding: 0 10px;
  }

  .category-slide {
    width: 200px;
  }

  .category-slider {
    gap: 1rem;
    scroll-snap-type: x mandatory;
  }

  .category-card-modern {
    padding: 1.5rem 1rem;
    height: 180px;
  }

  .category-icon {
    font-size: 2.5rem;
  }

  .category-title {
    font-size: 1rem;
  }

  .category-description {
    font-size: 0.85rem;
  }

  .category-card-modern:hover {
    transform: translateY(-6px) scale(1.02);
  }
}

@media (max-width: 768px) {
  .category-slide {
    width: 160px;
  }

  .category-slider {
    gap: 0.75rem;
  }

  .category-card-modern {
    padding: 1.25rem 0.75rem;
    height: 160px;
    border-radius: 16px;
  }

  .category-icon {
    font-size: 2.2rem;
  }

  .category-title {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
  }

  .category-description {
    font-size: 0.8rem;
    margin-bottom: 0.75rem;
  }

  .category-icon-wrapper {
    margin-bottom: 1rem;
  }
}

@media (max-width: 576px) {
  .category-slide {
    width: 140px;
  }

  .category-slider {
    gap: 0.5rem;
  }

  .category-card-modern {
    padding: 1rem 0.5rem;
    height: 140px;
    border-radius: 12px;
  }

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

  .category-title {
    font-size: 0.8rem;
    margin-bottom: 0.25rem;
  }

  .category-description {
    font-size: 0.7rem;
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    overflow: hidden;
  }

  .category-icon-wrapper {
    margin-bottom: 0.75rem;
  }

  .category-arrow {
    font-size: 1rem;
  }
}

/* Touch-specific styles */
@media (hover: none) and (pointer: coarse) {
  .category-card-modern:hover {
    transform: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border-color: transparent;
  }

  .category-card-modern:hover::before {
    opacity: 0;
  }

  .category-card-modern:hover .category-icon {
    transform: none;
  }

  .category-card-modern:hover .category-arrow {
    opacity: 1;
    transform: translateX(0);
  }

  .category-card-modern:active {
    transform: scale(0.95);
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .category-card-modern {
    border: 2px solid #000;
  }

  .category-nav {
    border: 2px solid #000;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .category-slider,
  .category-card-modern,
  .category-icon,
  .category-arrow,
  .category-nav {
    transition: none;
  }

  .category-slider-container {
    scroll-behavior: auto;
  }
}

/* ===========================================
   STILI PROFESSIONALI ED ELEGANTI - INDEX
   =========================================== */

/* Background Sections Styling */
section {
  position: relative;
  transition: all 0.3s ease;
}

section.bg-light {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%) !important;
  border-top: 1px solid rgba(226, 232, 240, 0.3);
  border-bottom: 1px solid rgba(226, 232, 240, 0.3);
}

section:not(.bg-light):not(.bg-primary) {
  background: linear-gradient(135deg, #ffffff 0%, #fafbfc 100%);
}

/* Hero Section - Enhanced Gradient */
.hero-section {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 50%, #cbd5e1 100%);
  position: relative;
  /*min-height: 40vh;*/
  display: flex;
  align-items: center;
  overflow: hidden;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);

}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 40%, rgba(37, 99, 235, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

.hero-section::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 60%;
  height: 200%;
  background: linear-gradient(45deg, rgba(59, 130, 246, 0.05) 0%, transparent 50%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-section .container-main {
  position: relative;
  z-index: 2;
}


/* Hero Content Styling */
.hero-content {
  max-width: 700px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-block;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, rgba(59, 130, 246, 0.05) 100%);
  color: #2563eb;
  padding: 0.5rem 1.2rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid rgba(37, 99, 235, 0.2);
  backdrop-filter: blur(10px);
  animation: fadeInUp 0.8s ease-out;
  position: relative;
  overflow: hidden;
}

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

.hero-badge:hover::before {
  left: 100%;
}

.hero-title {
  font-size: 3rem;
  font-weight: 800;
  color: #1e293b;
  line-height: 1.1;
  background: linear-gradient(135deg, #1e293b 0%, #475569 50%, #64748b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fadeInUp 0.8s ease-out 0.2s both;
  text-shadow: 0 1px 3px rgba(0,0,0,0.1);
  letter-spacing: -0.02em;
}

.text-gradient {
  background: linear-gradient(135deg, #ff8f00 0%, #ff8f00 50%, #ff8f00 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 900;
}

.hero-subtitle {
  font-size: 1.1rem;
  font-weight: 400;
  color: #64748b;
  line-height: 1.5;
  max-width: 550px;
  margin: 0 auto;
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

/* Hero Actions */
.hero-actions {
  animation: fadeInUp 0.8s ease-out 0.6s both;
}

.hero-actions .btn {
  padding: 0.75rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 10px;
  transition: all 0.3s ease;
  text-decoration: none;
}

.hero-actions .btn-primary {
  background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
  border: none;
  box-shadow: 0 8px 25px rgba(37, 99, 235, 0.3);
}

.hero-actions .btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(37, 99, 235, 0.4);
}

.hero-actions .btn-outline-primary {
  border: 2px solid #2563eb;
  color: #2563eb;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
}

.hero-actions .btn-outline-primary:hover {
  background: #2563eb;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(37, 99, 235, 0.3);
}

/* Hero Stats - Light Version */
.hero-stats {
  animation: fadeInUp 0.8s ease-out 0.8s both;
  margin-top: 2rem;
}

.stat-item-light {
  padding: 0.75rem 0.4rem;
  transition: all 0.3s ease;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  margin-bottom: 0.75rem;
}

.stat-item-light:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.5);
  box-shadow: 0 6px 20px rgba(0,0,0,0.06);
  border-color: rgba(37, 99, 235, 0.1);
}

.stat-icon-light {
  font-size: 1rem;
  color: #64748b;
  opacity: 0.8;
  transition: all 0.3s ease;
}

.stat-item-light:hover .stat-icon-light {
  color: #2563eb;
  opacity: 1;
  transform: scale(1.05);
}

.stat-number-light {
  font-weight: 700;
  color: #475569;
  font-size: 1.2rem;
  margin-bottom: 0.15rem;
  transition: color 0.3s ease;
}

.stat-item-light:hover .stat-number-light {
  color: #2563eb;
}

.stat-label-light {
  font-weight: 500;
  color: #94a3b8;
  font-size: 0.75rem;
  margin: 0;
  transition: color 0.3s ease;
}

.stat-item-light:hover .stat-label-light {
  color: #64748b;
}

/* Animations */
@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================
   SECTION TITLES - ANIMATED STYLING
   ========================================== */

.section-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: #1e293b;
  position: relative;
  display: inline-block;
  margin-bottom: 1rem;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #2563eb 0%, #3b82f6 50%, #10b981 100%);
  border-radius: 2px;
  transition: width 0.4s ease;
}

.section-title:hover::after {
  width: 60px;
}

.section-title.text-white {
  color: #ffffff !important;
}

.section-title.text-white::after {
  background: linear-gradient(90deg, #ffffff 0%, rgba(255,255,255,0.8) 50%, #ffffff 100%);
}

.section-title i {
  color: #2563eb;
  transition: all 0.3s ease;
}

.section-title.text-white i {
  color: #ffffff !important;
}

.section-subtitle {
  font-size: 1rem;
  font-weight: 400;
  color: #64748b;
  max-width: 600px;
}

/* Section Title Hover Effects */
.section-title:hover {
  transform: translateX(3px);
  transition: transform 0.3s ease;
}

.section-title:hover i {
  transform: scale(1.05);
  transition: transform 0.3s ease;
}

/* Animations */
/* Removed automatic animations - only hover effects remain */

/* Responsive section titles */
@media (max-width: 768px) {
  .section-title {
    font-size: 1.5rem;
  }

  .section-subtitle {
    font-size: 0.9rem;
  }
}

@media (max-width: 576px) {
  .section-title {
    font-size: 1.25rem;
  }

  .section-subtitle {
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .section-title {
    font-size: 1.1rem;
  }

  .section-subtitle {
    font-size: 0.8rem;
  }
}

@media (max-width: 360px) {
  .section-title {
    font-size: 1rem;
  }

  .section-subtitle {
    font-size: 0.75rem;
  }
}

/* ===============================================
   FEATURED CATEGORIES - DESIGN PROFESSIONALE
   =============================================== */

section#featured-categories {
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
}


.category-card {
  display: block;
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.category-hover {
  border-radius: 16px;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid rgba(226, 232, 240, 0.5);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  min-height: 120px;
}

/* Enhanced styling for categories on light background */
.bg-light .category-hover {
  background: linear-gradient(135deg, #ffffff 0%, #fefefe 100%);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(226, 232, 240, 0.8);
}

.bg-light .category-card:hover .category-hover {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.category-hover::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.8) 0%, rgba(248,250,252,0.4) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.category-hover:hover::before {
  opacity: 1;
}

.category-card:hover .category-hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
  border-color: rgba(37, 99, 235, 0.2);
}

.category-icon {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  z-index: 2;
}

.category-icon-size {
  font-size: 2.5rem;
}

.category-card:hover .category-icon {
  transform: scale(1.15) rotate(5deg);
}

.category-hover .card-title {
  font-weight: 600;
  color: #1e293b;
  font-size: 0.95rem;
  position: relative;
  z-index: 2;
  transition: color 0.3s ease;
}

.category-title {
  line-height: 1.3;
}

.category-card:hover .category-hover .card-title {
  color: #0f172a;
}

/* ==========================================
   DAILY DEALS - DESIGN PREMIUM
   ========================================== */

.deal-card {
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.5);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  position: relative;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

/* Enhanced styling for deals on white background */
section:not(.bg-light) .deal-card {
  background: linear-gradient(135deg, #ffffff 0%, #fefefe 100%);
  border: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.08);
}

section:not(.bg-light) .deal-card:hover {
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.18);
}

.deal-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.02) 0%, rgba(59, 130, 246, 0.01) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

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

.deal-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
  border-color: rgba(37, 99, 235, 0.3);
}

.deal-badge {
  z-index: 10;
}

.deal-badge .badge {
  padding: 0.6rem 1rem;
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: 8px;
  background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
  border: 2px solid rgba(255,255,255,0.9);
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

.deal-card img {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  filter: brightness(1);
}

.deal-card:hover img {
  transform: scale(1.08);
  filter: brightness(1.05);
}

.deal-card .card-body {
  padding: 1.5rem;
  position: relative;
  z-index: 2;
}

.deal-card .card-title {
  font-weight: 600;
  color: #1e293b;
  font-size: 1rem;
  margin-bottom: 1rem;
  line-height: 1.4;
}

.price-section {
  margin-bottom: 1rem;
}

.price-section .h5 {
  font-weight: 700;
  color: #2563eb;
  font-size: 1.4rem;
}

.price-section small {
  font-size: 0.9rem;
  color: #94a3b8;
}

.deal-card .text-muted {
  color: #64748b !important;
  font-size: 0.85rem;
  font-weight: 500;
}

/* ==============================================
   MOST SEARCHED PRODUCTS - DESIGN ELEGANTE
   ============================================== */

.trending-card {
  border-radius: 16px;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid rgba(226, 232, 240, 0.5);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  position: relative;
}

/* Enhanced styling for trending products on light background */
.bg-light .trending-card {
  background: linear-gradient(135deg, #ffffff 0%, #fefefe 100%);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(226, 232, 240, 0.8);
}

.bg-light .trending-card:hover {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.trending-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.02) 0%, rgba(34, 197, 94, 0.01) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

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

.trending-card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
  border-color: rgba(16, 185, 129, 0.3);
}

.trending-card img {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  filter: brightness(1);
}

.trending-card:hover img {
  transform: scale(1.1);
  filter: brightness(1.05);
}

.trending-card .card-body {
  padding: 1.25rem;
  position: relative;
  z-index: 2;
}

.trending-card .badge {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.4rem 0.7rem;
  background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
  border-radius: 6px;
}

.trending-card .text-success {
  font-weight: 600;
  color: #059669 !important;
  font-size: 0.8rem;
}

.trending-card .card-title {
  font-weight: 600;
  color: #1e293b;
  font-size: 0.95rem;
  line-height: 1.3;
  margin-bottom: 0.5rem;
}

.trending-card .h6.text-primary {
  font-weight: 700;
  color: #2563eb !important;
  font-size: 1.1rem;
}

.trending-card .text-muted {
  color: #64748b !important;
  font-size: 0.8rem;
  font-weight: 500;
}

/* Feature Icons Styling */
.feature-icon {
  opacity: 0.95;
  transition: all 0.3s ease;
}

.feature-icon:hover {
  opacity: 1;
  transform: scale(1.1);
}

/* =====================================
   RESPONSIVE DESIGN OTTIMIZZATO
   ===================================== */

@media (max-width: 992px) {
  .category-card:hover .category-hover {
    transform: translateY(-6px) scale(1.01);
  }

  .deal-card:hover,
  .trending-card:hover {
    transform: translateY(-4px);
  }
}

/* Mobile First Design for Categories */
@media (max-width: 480px) {
  .category-hover {
    min-height: 120px;
    margin-bottom: 0.4rem;
  }

  .category-icon-size {
    font-size: 2.5rem !important;
  }

  .category-title {
    font-size: 0.85rem !important;
    font-weight: 600;
  }

  .category-hover .card-body {
    padding: 0.8rem 0.4rem !important;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-actions .btn {
    font-size: 0.9rem;
    padding: 0.7rem 1.3rem;
    margin-bottom: 0.6rem;
  }

  .hero-stats {
    margin-top: 1.5rem;
  }

  .stat-item-light {
    margin-bottom: 0.75rem;
    padding: 0.6rem 0.3rem;
  }

  .stat-number-light {
    font-size: 1rem;
  }

  .stat-label-light {
    font-size: 0.7rem;
  }

  /* Categories Mobile Optimization */
  .category-hover {
    min-height: 140px;
    margin-bottom: 0.75rem;
  }

  .category-icon-size {
    font-size: 3rem !important;
  }

  .category-title {
    font-size: 1rem !important;
    font-weight: 700;
  }

  .category-card:hover .category-hover {
    transform: translateY(-6px) scale(1.01);
  }

  .deal-card .card-body,
  .trending-card .card-body {
    padding: 1.25rem;
  }
}

@media (max-width: 576px) {
  .hero-title {
    font-size: 1.8rem !important;
    line-height: 1.1;
  }

  .hero-subtitle {
    font-size: 0.9rem !important;
  }

  .hero-actions .btn {
    font-size: 0.85rem;
    padding: 0.6rem 1.2rem;
    margin-bottom: 0.6rem;
    display: block;
    width: 100%;
    max-width: 250px;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-badge {
    font-size: 0.75rem;
    padding: 0.4rem 1rem;
  }

  .hero-stats {
    margin-top: 1rem;
  }

  .stat-item-light {
    padding: 0.5rem 0.25rem;
    margin-bottom: 0.6rem;
  }

  .stat-icon-light {
    font-size: 0.9rem;
  }

  .stat-number-light {
    font-size: 0.9rem;
  }

  .stat-label-light {
    font-size: 0.65rem;
  }

  /* Categories Mobile Extra Small */
  #featured-categories .row {
    margin-left: -0.25rem;
    margin-right: -0.25rem;
  }

  #featured-categories .row > * {
    padding-left: 0.25rem;
    padding-right: 0.25rem;
    margin-bottom: 0.5rem;
  }

  .category-hover {
    min-height: 130px;
  }

  .category-icon-size {
    font-size: 2.8rem !important;
  }

  .category-title {
    font-size: 0.9rem !important;
    font-weight: 700;
    line-height: 1.2;
  }

  .category-hover .card-body {
    padding: 1rem 0.5rem !important;
  }

  .h1 {
    font-size: 1.5rem !important;
  }

  .deal-card .price-section .h5 {
    font-size: 1.1rem;
  }
}

/* Animazioni fluide per le card */
@keyframes gentleFloat {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-3px); }
}

.category-hover:hover,
.deal-card:hover,
.trending-card:hover {
  animation: gentleFloat 2s ease-in-out infinite;
}

/* ==============================================
   ACTIVE FILTERS STYLING
   ============================================== */

.active-filters {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(37, 99, 235, 0.1);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.active-filters .badge {
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.5rem 0.75rem;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  transition: all 0.3s ease;
  border: none;
}

.active-filters .badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.active-filters .badge.bg-success {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.active-filters .badge i {
  font-size: 0.8rem;
  transition: all 0.3s ease;
}

.active-filters .badge:hover i {
  transform: scale(1.2);
}

.cursor-pointer {
  cursor: pointer;
  transition: all 0.3s ease;
}

.cursor-pointer:hover {
  color: #dc2626 !important;
  transform: scale(1.1);
}

/* ==============================================
   UNIFORM SECTION STYLING
   ============================================== */

section.popular-merchants-section {
   background: white !important;
}
.popular-categories-section,
.popular-merchants-section,
.daily-deals-section,
.most-searched-products-section,
.features-section {
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
}

.popular-categories-section,
.popular-merchants-section,
.most-searched-products-section {
  padding: 3rem 0;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%) !important;
  border-top: 1px solid rgba(226, 232, 240, 0.3);
  border-bottom: 1px solid rgba(226, 232, 240, 0.3);
}

.daily-deals-section {
  padding: 3rem 0;
}

.features-section {
  padding: 3rem 0;
  background: linear-gradient(135deg, #2563eb 0%, #3b82f6 50%, #1d4ed8 100%) !important;
  color: #ffffff !important;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
}

/* ==============================================
   SECTION HEADER STYLING
   ============================================== */

.section-title {
  font-size: 2.25rem;
  font-weight: 700;
  color: #1e293b;
  position: relative;
  display: inline-block;
  margin-bottom: 1rem;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #2563eb 0%, #3b82f6 50%, #10b981 100%);
  border-radius: 2px;
  transition: width 0.4s ease;
}

.section-title:hover::after {
  width: 60px;
}

.section-title.text-white {
  color: #ffffff !important;
}

.section-title.text-white::after {
  background: linear-gradient(90deg, #ffffff 0%, rgba(255,255,255,0.8) 50%, #ffffff 100%);
}

.section-title i {
  color: #ff8f00;
  transition: all 0.3s ease;
}

.section-title.text-white i {
  color: #ffffff !important;
}

.section-subtitle {
  font-size: 1.1rem;
  font-weight: 400;
  color: #64748b;
  max-width: 600px;
}

/* Responsive section titles - improved mobile scaling */
@media (max-width: 1200px) {
  .section-title {
    font-size: 2rem;
    margin-bottom: 0.9rem;
  }

  .section-subtitle {
    font-size: 1rem;
  }
}

@media (max-width: 992px) {
  .section-title {
    font-size: 1.75rem;
    margin-bottom: 0.8rem;
  }

  .section-subtitle {
    font-size: 0.95rem;
  }
}

@media (max-width: 768px) {
  .section-title {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
  }

  .section-subtitle {
    font-size: 0.9rem;
  }
}

@media (max-width: 576px) {
  .section-title {
    font-size: 1.25rem;
    margin-bottom: 0.7rem;
  }

  .section-subtitle {
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .section-title {
    font-size: 1.1rem;
    margin-bottom: 0.6rem;
  }

  .section-subtitle {
    font-size: 0.8rem;
  }
}

@media (max-width: 360px) {
  .section-title {
    font-size: 1rem;
    margin-bottom: 0.5rem;
  }

  .section-subtitle {
    font-size: 0.75rem;
  }
}

/* Daily Deals Header Special Layout */
.daily-deals-section .section-title {
  margin-bottom: 0.5rem;
}

/* ===============================================
   FEATURED CATEGORIES - DESIGN PROFESSIONALE
   =============================================== */

section#featured-categories {
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
}

.popular-merchant-card {
  transition: all 0.3s ease;
}

.popular-merchant-hover {
  border-radius: 12px;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid rgba(226, 232, 240, 0.5);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.popular-merchant-hover::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.02) 0%, rgba(34, 197, 94, 0.01) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.popular-merchant-card:hover .popular-merchant-hover::before {
  opacity: 1;
}

.popular-merchant-card:hover .popular-merchant-hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
  border-color: rgba(16, 185, 129, 0.2);
}

.popular-merchant-icon {
  font-size: 2rem;
  color: #10b981;
  transition: all 0.3s ease;
}

.popular-merchant-card:hover .popular-merchant-icon {
  transform: scale(1.05);
  color: #059669;
}

/* Merchant Logo Styling */
.merchant-logo {
  width: 60px;
  height: 60px;
  object-fit: contain;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.9);
  padding: 8px;
  border: 2px solid rgba(16, 185, 129, 0.1);
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.popular-merchant-card:hover .merchant-logo {
  transform: scale(1.05);
  border-color: rgba(16, 185, 129, 0.3);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.2);
}

/* Fallback icon when logo is not available */
.merchant-logo-fallback {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(34, 197, 94, 0.05) 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(16, 185, 129, 0.1);
  transition: all 0.3s ease;
}

.popular-merchant-card:hover .merchant-logo-fallback {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(34, 197, 94, 0.08) 100%);
  border-color: rgba(16, 185, 129, 0.3);
  transform: scale(1.05);
}

.merchant-logo-fallback .popular-merchant-icon {
  margin: 0;
  font-size: 2.5rem;
}

.popular-merchant-card .card-body {
  position: relative;
  z-index: 2;
  padding: 1rem;
}

.popular-merchant-card .card-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 0.25rem;
  transition: color 0.3s ease;
  line-height: 1.3;
}

.popular-merchant-card:hover .card-title {
  color: #0f172a;
}

.merchant-stats {
  margin-bottom: 0.25rem;
}

.merchant-stats small {
  font-weight: 500;
  color: #64748b;
  font-size: 0.75rem;
}

.merchant-offers small {
  font-weight: 500;
  color: #06b6d4;
  font-size: 0.75rem;
}

.merchant-popularity small {
  font-size: 0.7rem;
  color: #059669;
  font-weight: 500;
}

/* ==============================================
   POPULAR CATEGORIES STYLING
   ============================================== */

.popular-category-card {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  height: 100%;
}

.popular-category-hover {
  border-radius: 16px;
  background: linear-gradient(135deg, #ffffff 0%, #fefefe 100%);
  border: 1px solid rgba(226, 232, 240, 0.6);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  min-height: 160px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.popular-category-hover::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.03) 0%, rgba(59, 130, 246, 0.02) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 1;
}

.popular-category-card:hover .popular-category-hover::before {
  opacity: 1;
}

.popular-category-card:hover .popular-category-hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
  border-color: rgba(37, 99, 235, 0.3);
}

.popular-category-icon {
  font-size: 2.5rem;
  color: #2563eb;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  z-index: 2;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, rgba(59, 130, 246, 0.05) 100%);
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem auto;
  border: 2px solid rgba(37, 99, 235, 0.1);
}

.popular-category-card:hover .popular-category-icon {
  transform: scale(1.1) rotate(5deg);
  color: #1d4ed8;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.15) 0%, rgba(59, 130, 246, 0.08) 100%);
  border-color: rgba(37, 99, 235, 0.2);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.2);
}

.popular-category-card .card-body {
  position: relative;
  z-index: 2;
  padding: 1.5rem 1.25rem 1.25rem 1.25rem;
  text-align: center;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.popular-category-card .card-title {
  font-size: 1rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 0.75rem;
  transition: color 0.3s ease;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.popular-category-card:hover .card-title {
  color: #0f172a;
}

.category-stats {
  margin-bottom: 0.5rem;
}

.category-stats small {
  font-weight: 600;
  color: #64748b;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
}

.category-popularity small {
  font-size: 0.75rem;
  color: #059669;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  background: rgba(5, 150, 105, 0.1);
  padding: 0.25rem 0.5rem;
  border-radius: 12px;
  border: 1px solid rgba(5, 150, 105, 0.2);
}

/* Responsive Popular Categories */
@media (max-width: 768px) {
  .popular-category-hover {
    min-height: 140px;
  }

  .popular-category-icon {
    font-size: 2.2rem;
    width: 50px;
    height: 50px;
  }

  .popular-category-card .card-body {
    padding: 1.25rem 1rem 1rem 1rem;
  }

  .popular-category-card .card-title {
    font-size: 0.9rem;
  }

  .category-stats small {
    font-size: 0.75rem;
  }

  .category-popularity small {
    font-size: 0.7rem;
    padding: 0.2rem 0.4rem;
  }
}

@media (max-width: 576px) {
  .popular-category-hover {
    min-height: 130px;
    border-radius: 12px;
  }

  .popular-category-icon {
    font-size: 2rem;
    width: 45px;
    height: 45px;
    margin-bottom: 0.75rem;
  }

  .popular-category-card .card-body {
    padding: 1rem 0.75rem 0.75rem 0.75rem;
  }

  .popular-category-card .card-title {
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
  }

  .category-stats small {
    font-size: 0.7rem;
  }

  .category-popularity small {
    font-size: 0.65rem;
    padding: 0.15rem 0.35rem;
  }
}

/* ==============================================
   DAILY DEALS STYLING
   ============================================== */

.deal-card {
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.5);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  position: relative;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

/* Enhanced styling for deals on white background */
section:not(.bg-light) .deal-card {
  background: linear-gradient(135deg, #ffffff 0%, #fefefe 100%);
  border: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.08);
}

section:not(.bg-light) .deal-card:hover {
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.18);
}

.deal-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.02) 0%, rgba(59, 130, 246, 0.01) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

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

.deal-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
  border-color: rgba(37, 99, 235, 0.3);
}

.deal-badge {
  z-index: 10;
}

.deal-badge .badge {
  padding: 0.6rem 1rem;
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: 8px;
  background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
  border: 2px solid rgba(255,255,255,0.9);
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

.deal-card img {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  filter: brightness(1);
}

.deal-card:hover img {
  transform: scale(1.08);
  filter: brightness(1.05);
}

.deal-card .card-body {
  padding: 1.5rem;
  position: relative;
  z-index: 2;
}

.deal-card .card-title {
  font-weight: 600;
  color: #1e293b;
  font-size: 1rem;
  margin-bottom: 1rem;
  line-height: 1.4;
}

.price-section {
  margin-bottom: 1rem;
}

.price-section .h5 {
  font-weight: 700;
  color: #2563eb;
  font-size: 1.4rem;
}

.price-section small {
  font-size: 0.9rem;
  color: #94a3b8;
}

.deal-card .text-muted {
  color: #64748b !important;
  font-size: 0.85rem;
  font-weight: 500;
}

/* ==============================================
   MOST SEARCHED PRODUCTS - DESIGN ELEGANTE
   ============================================== */

.trending-card {
  border-radius: 16px;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid rgba(226, 232, 240, 0.5);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  position: relative;
}

/* Enhanced styling for trending products on light background */
.bg-light .trending-card {
  background: linear-gradient(135deg, #ffffff 0%, #fefefe 100%);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(226, 232, 240, 0.8);
}

.bg-light .trending-card:hover {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.trending-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.02) 0%, rgba(34, 197, 94, 0.01) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

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

.trending-card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
  border-color: rgba(16, 185, 129, 0.3);
}

.trending-card img {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  filter: brightness(1);
}

.trending-card:hover img {
  transform: scale(1.1);
  filter: brightness(1.05);
}

.trending-card .card-body {
  padding: 1.25rem;
  position: relative;
  z-index: 2;
}

.trending-card .badge {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.4rem 0.7rem;
  background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
  border-radius: 6px;
}

.trending-card .text-success {
  font-weight: 600;
  color: #059669 !important;
  font-size: 0.8rem;
}

.trending-card .card-title {
  font-weight: 600;
  color: #1e293b;
  font-size: 0.95rem;
  line-height: 1.3;
  margin-bottom: 0.5rem;
}

.trending-card .h6.text-primary {
  font-weight: 700;
  color: #2563eb !important;
  font-size: 1.1rem;
}

.trending-card .text-muted {
  color: #64748b !important;
  font-size: 0.8rem;
  font-weight: 500;
}

/* ==============================================
   FEATURES STYLING
   ============================================== */

.features-section {
  padding: 3rem 0;
  background: linear-gradient(135deg, #2563eb 0%, #3b82f6 50%, #1d4ed8 100%) !important;
  color: #ffffff !important;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
}
@media (max-width: 768px) {
  .popular-merchant-card .card-body {
    padding: 0.875rem 0.75rem;
  }

  .popular-merchant-icon {
    font-size: 1.75rem;
  }

  .popular-merchant-card .card-title {
    font-size: 0.9rem;
  }

  /* Merchant Logo Responsive */
  .merchant-logo,
  .merchant-logo-fallback {
    width: 50px;
    height: 50px;
  }

  .merchant-logo-fallback .popular-merchant-icon {
    font-size: 2rem;
  }
}

@media (max-width: 576px) {
  .popular-merchant-card .card-body {
    padding: 0.75rem 0.5rem;
  }

  .popular-merchant-icon {
    font-size: 1.5rem;
  }

  .popular-merchant-card .card-title {
    font-size: 0.85rem;
  }

  .merchant-stats small,
  .merchant-offers small,
  .merchant-popularity small {
    font-size: 0.7rem;
  }

  /* Merchant Logo Responsive Small */
  .merchant-logo,
  .merchant-logo-fallback {
    width: 45px;
    height: 45px;
  }

  .merchant-logo-fallback .popular-merchant-icon {
    font-size: 1.8rem;
  }
}

/* ==============================================
   MERCHANT SLIDER STYLING
   ============================================== */

.merchant-slider-wrapper {
  overflow: hidden;
  margin: 0 -15px;
  padding: 0 15px;
}

.merchant-slider-container {
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
  scroll-behavior: smooth;
  padding: 10px 0;
  margin: 0 -10px;
}

.merchant-slider-container::-webkit-scrollbar {
  display: none; /* Chrome, Safari and Opera */
}

.merchant-slider {
  display: flex;
  gap: 1.5rem;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0 10px;
}

.merchant-slide {
  flex: 0 0 auto;
  width: 280px;
  scroll-snap-align: start;
}

.merchant-card-modern {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: 2px solid transparent;
  border-radius: 20px;
  padding: 2rem 1.5rem;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  position: relative;
  overflow: hidden;
  height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.merchant-card-modern::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.05) 0%, rgba(34, 197, 94, 0.05) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.merchant-card-modern:hover::before {
  opacity: 1;
}

.merchant-card-modern:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  border-color: rgba(16, 185, 129, 0.3);
}

.merchant-icon-wrapper {
  position: relative;
  z-index: 2;
  margin-bottom: 1.5rem;
}

.merchant-icon {
  font-size: 3.5rem;
  transition: all 0.3s ease;
}

.merchant-card-modern:hover .merchant-icon {
  transform: scale(1.1);
  filter: brightness(1.2) saturate(1.3);
}

.merchant-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 0.75rem;
  position: relative;
  z-index: 2;
  line-height: 1.3;
}

.merchant-description {
  font-size: 0.9rem;
  color: #64748b;
  margin-bottom: 1rem;
  position: relative;
  z-index: 2;
  line-height: 1.4;
}

.merchant-arrow {
  position: relative;
  z-index: 2;
  color: #64748b;
  font-size: 1.2rem;
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.3s ease;
}

.merchant-card-modern:hover .merchant-arrow {
  opacity: 1;
  transform: translateX(0);
}

.merchant-card-link {
  display: block;
  color: inherit;
  text-decoration: none !important;
}

/* Navigation Arrows */
.merchant-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.95);
  border: 2px solid rgba(16, 185, 129, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: #10b981;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.merchant-nav:hover {
  background: #10b981;
  color: white;
  border-color: #10b981;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.3);
}

.merchant-nav-prev {
  left: -25px;
}

.merchant-nav-next {
  right: -25px;
}

.merchant-nav:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: translateY(-50%) scale(0.9);
}

.merchant-nav:disabled:hover {
  background: rgba(255, 255, 255, 0.95);
  color: #10b981;
  border-color: rgba(16, 185, 129, 0.1);
  transform: translateY(-50%) scale(0.9);
}

/* Responsive Design */
@media (max-width: 1200px) {
  .merchant-slide {
    width: 240px;
  }

  .merchant-slider {
    gap: 1.25rem;
  }

  .merchant-card-modern {
    padding: 1.75rem 1.25rem;
    height: 200px;
  }

  .merchant-icon {
    font-size: 3rem;
  }

  .merchant-title {
    font-size: 1.1rem;
  }
}

@media (max-width: 992px) {
  .merchant-slider-wrapper {
    margin: 0 -10px;
    padding: 0 10px;
  }

  .merchant-slide {
    width: 200px;
  }

  .merchant-slider {
    gap: 1rem;
    scroll-snap-type: x mandatory;
  }

  .merchant-card-modern {
    padding: 1.5rem 1rem;
    height: 180px;
  }

  .merchant-icon {
    font-size: 2.5rem;
  }

  .merchant-title {
    font-size: 1rem;
  }

  .merchant-description {
    font-size: 0.85rem;
  }

  .merchant-card-modern:hover {
    transform: translateY(-6px) scale(1.02);
  }
}

@media (max-width: 768px) {
  .merchant-slide {
    width: 160px;
  }

  .merchant-slider {
    gap: 0.75rem;
  }

  .merchant-card-modern {
    padding: 1.25rem 0.75rem;
    height: 160px;
    border-radius: 16px;
  }

  .merchant-icon {
    font-size: 2.2rem;
  }

  .merchant-title {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
  }

  .merchant-description {
    font-size: 0.8rem;
    margin-bottom: 0.75rem;
  }

  .merchant-icon-wrapper {
    margin-bottom: 1rem;
  }
}

@media (max-width: 576px) {
  .merchant-slide {
    width: 140px;
  }

  .merchant-slider {
    gap: 0.5rem;
  }

  .merchant-card-modern {
    padding: 1rem 0.5rem;
    height: 140px;
    border-radius: 12px;
  }

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

  .merchant-title {
    font-size: 0.8rem;
    margin-bottom: 0.25rem;
  }

  .merchant-description {
    font-size: 0.7rem;
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    overflow: hidden;
  }

  .merchant-icon-wrapper {
    margin-bottom: 0.75rem;
  }

  .merchant-arrow {
    font-size: 1rem;
  }
}

/* Touch-specific styles */
@media (hover: none) and (pointer: coarse) {
  .merchant-card-modern:hover {
    transform: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border-color: transparent;
  }

  .merchant-card-modern:hover::before {
    opacity: 0;
  }

  .merchant-card-modern:hover .merchant-icon {
    transform: none;
  }

  .merchant-card-modern:hover .merchant-arrow {
    opacity: 1;
    transform: translateX(0);
  }

  .merchant-card-modern:active {
    transform: scale(0.95);
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .merchant-card-modern {
    border: 2px solid #000;
  }

  .merchant-nav {
    border: 2px solid #000;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .merchant-slider,
  .merchant-card-modern,
  .merchant-icon,
  .merchant-arrow,
  .merchant-nav {
    transition: none;
  }

  .merchant-slider-container {
    scroll-behavior: auto;
  }
}

/* =====================================
   PRODUCTS SLIDER COMPONENT
   ===================================== */

.products-slider-wrapper {
  overflow: hidden;
  margin: 0 -15px;
  padding: 0 15px;
}

.products-slider-container {
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
  scroll-behavior: smooth;
  padding: 10px 0;
  margin: 0 -10px;
}

.products-slider-container::-webkit-scrollbar {
  display: none; /* Chrome, Safari and Opera */
}

.products-slider {
  display: flex;
  gap: 1.5rem;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0 10px;
}

.products-slide {
  flex: 0 0 auto;
  width: 280px;
  scroll-snap-align: start;
}

.products-card-modern {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid #00000021;
  border-radius: 20px;
  padding: 1.5rem;
  text-align: left;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
 
  position: relative;
  overflow: hidden;
  height: 320px;
  display: flex;
  flex-direction: column;
}

.products-card-modern::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.05) 0%, rgba(59, 130, 246, 0.05) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.products-card-modern:hover::before {
  opacity: 1;
}

.products-card-modern:hover {
  transform: translateY(-10px) scale(1.03);
  
  border-color: rgba(37, 99, 235, 0.3);
}

.products-image-wrapper {
  position: relative;
  z-index: 2;
  margin-bottom: 1rem;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: transparent;
}

.products-rank-overlay {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 3;
}

.products-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  transition: transform 0.3s ease;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.products-card-modern:hover .products-image {
  transform: scale(1.05);
}

.products-image-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  font-size: 1.5rem;
}

.products-content {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.products-title {
  font-size: 1rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 0.5rem;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-clamp: 2;
  overflow: hidden;
}

.products-price {
  font-size: 1.1rem;
  font-weight: 700;
  color: #2563eb;
  margin-bottom: 0.5rem;
}

.products-meta {
  margin-bottom: 0.75rem;
}

.products-meta small {
  font-size: 0.8rem;
  color: #64748b;
  font-weight: 500;
}

.products-arrow {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  color: #64748b;
  font-size: 1rem;
  opacity: 0;
  transform: translateX(-5px);
  transition: all 0.3s ease;
}

.products-card-modern:hover .products-arrow {
  opacity: 1;
  transform: translateX(0);
}

.products-card-link {
  display: block;
  color: inherit;
  text-decoration: none !important;
}

/* Navigation Arrows */
.products-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.95);
  border: 2px solid rgba(37, 99, 235, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: #2563eb;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.products-nav:hover {
  background: #2563eb;
  color: white;
  border-color: #2563eb;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 8px 25px rgba(37, 99, 235, 0.3);
}

.products-nav-prev {
  left: -25px;
}

.products-nav-next {
  right: -25px;
}

.products-nav:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: translateY(-50%) scale(0.9);
}

.products-nav:disabled:hover {
  background: rgba(255, 255, 255, 0.95);
  color: #2563eb;
  border-color: rgba(37, 99, 235, 0.1);
  transform: translateY(-50%) scale(0.9);
}

/* Responsive Design */
@media (max-width: 1200px) {
  .products-slide {
    width: 240px;
  }

  .products-slider {
    gap: 1.25rem;
  }

  .products-card-modern {
    padding: 1.25rem;
    height: 260px;
  }

  .products-image-wrapper {
    height: 150px;
  }

  .products-title {
    font-size: 0.9rem;
  }
}

@media (max-width: 992px) {
  .products-slider-wrapper {
    margin: 0 -10px;
    padding: 0 10px;
  }

  .products-slide {
    width: 200px;
  }

  .products-slider {
    gap: 1rem;
    scroll-snap-type: x mandatory;
  }

  .products-card-modern {
    padding: 1rem;
    height: 220px;
  }

  .products-image-wrapper {
    height: 120px;
  }

  .products-title {
    font-size: 0.85rem;
  }

  .products-price {
    font-size: 1rem;
  }

  .products-card-modern:hover {
    transform: translateY(-6px) scale(1.02);
  }
}

@media (max-width: 768px) {
  .products-slide {
    width: 160px;
  }

  .products-slider {
    gap: 0.75rem;
  }

  .products-card-modern {
    padding: 0.875rem;
    height: 180px;
    border-radius: 16px;
  }

  .products-image-wrapper {
    height: 90px;
    margin-bottom: 0.75rem;
  }

  .products-title {
    font-size: 0.8rem;
    margin-bottom: 0.25rem;
  }

  .products-price {
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
  }

  .products-meta {
    margin-bottom: 0.5rem;
  }

  .products-arrow {
    font-size: 0.9rem;
  }
}

@media (max-width: 576px) {
  .products-slide {
    width: 140px;
  }

  .products-slider {
    gap: 0.5rem;
  }

  .products-card-modern {
    padding: 0.75rem;
    height: 170px;
    border-radius: 12px;
  }

  .products-image-wrapper {
    height: 80px;
    margin-bottom: 0.5rem;
  }

  .products-title {
    font-size: 0.75rem;
    margin-bottom: 0.2rem;
  }

  .products-price {
    font-size: 0.9rem;
    margin-bottom: 0.2rem;
  }

  .products-meta {
    margin-bottom: 0.25rem;
  }

  .products-meta small {
    font-size: 0.7rem;
  }

  .products-arrow {
    font-size: 0.8rem;
    bottom: 0.75rem;
    right: 0.75rem;
  }
}

/* Touch-specific styles */
@media (hover: none) and (pointer: coarse) {
  .products-card-modern:hover {
    transform: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border-color: transparent;
  }

  .products-card-modern:hover::before {
    opacity: 0;
  }

  .products-card-modern:hover .products-arrow {
    opacity: 1;
    transform: translateX(0);
  }

  .products-card-modern:active {
    transform: scale(0.95);
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .products-card-modern {
    border: 2px solid #000;
  }

  .products-nav {
    border: 2px solid #000;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .products-slider,
  .products-card-modern,
  .products-arrow,
  .products-nav {
    transition: none;
  }

  .products-slider-container {
    scroll-behavior: auto;
  }
}
