/* ===================================
   POPULAR NOW SECTION - COMPLETE REFINED STYLES
   Elegant, Modern & Professional Design
   Matching Catalogue Section Aesthetics
   =================================== */

/* ===================================
   1. SECTION CONTAINER
   =================================== */
.popular-now {
  background: #ffffff;
 margin-bottom: 0rem;
  margin-top: -3rem;
  position: relative;
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* Subtle animated background */
.popular-now::before {
  content: '';
  position: absolute;
  top: 0;
  right: -20%;
  width: 40%;
  height: 100%;
  background: radial-gradient(
    circle at center,
    rgba(26, 137, 23, 0.02) 0%,
    transparent 70%
  );
  animation: floatGradient 20s ease-in-out infinite;
  pointer-events: none;
}

@keyframes floatGradient {
  0%, 100% { transform: translateX(0) scale(1); }
  50% { transform: translateX(-50px) scale(1.1); }
}

/* ===================================
   2. SECTION HEADER
   =================================== */
.popular-now .section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1px;
  position: relative;
  z-index: 2;
}

.popular-now .section-title {
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;
}

/* Title Icon - Clean & Modern */
.title-icon {
  width: 48px;
  height: 48px;
  background: #1a8917;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 0 4px 12px rgba(26, 137, 23, 0.15);
  transition: all 0.3s ease;
}

.title-icon:hover {
  transform: rotate(-5deg) scale(1.05);
}

.title-icon i {
  color: white;
  font-size: 1.375rem;
  position: relative;
  z-index: 2;
}

/* Title Text - Professional Typography */
.title-text {
  font-size: 2rem;
  font-weight: 700;
  font-family: var(--font-secondary, 'Space Grotesk', sans-serif);
  color: #1a8917;
  position: relative;
  letter-spacing: -0.5px;
}

/* Trending Badge - Subtle Animation */
.title-badge {
  background: #ef4444;
  color: white;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  position: relative;
  margin-left: 12px;
  animation: gentlePulse 3s ease-in-out infinite;
}

@keyframes gentlePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.9; transform: scale(1.02); }
}

/* ===================================
   3. CAROUSEL CONTROLS
   =================================== */
.carousel-controls {
  display: flex;
  gap: 12px;
  align-items: center;
}

.carousel-nav-btn {
  width: 44px;
  height: 44px;
  border: none;
  background: #f0ecec;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  color: #666666;
  font-size: 1rem;
  position: relative;
  overflow: hidden;
}

.carousel-nav-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: #1a8917;
  transform: scale(0);
  transition: transform 0.3s ease;
  border-radius: 12px;
}

.carousel-nav-btn:hover:not(:disabled) {
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(26, 137, 23, 0.15);
}

.carousel-nav-btn:hover:not(:disabled)::before {
  transform: scale(1);
}

.carousel-nav-btn i {
  position: relative;
  z-index: 2;
  transition: transform 0.3s ease;
}

.carousel-nav-btn:hover:not(:disabled) i {
  transform: scale(1.1);
}

.carousel-nav-btn:active:not(:disabled) {
  transform: translateY(0);
}

.carousel-nav-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

/* ===================================
   4. CAROUSEL WRAPPER
   =================================== */
.popular-carousel-wrapper {
  position: relative;
  margin: 0 -20px;
  padding: 0 20px;
}

.popular-carousel {
  overflow: hidden;
  padding: 20px 0 40px;
  position: relative;
}

.carousel-track {
  display: flex;
  gap: 20px;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  padding: 10px 0;
}

/* ===================================
   5. PRODUCT CARDS - ELEGANT DESIGN
   =================================== */
.popular-product-card {
  flex: 0 0 280px;
  position: relative;
  transition: all 0.3s ease;
  cursor: pointer;
}

/* Product Labels - Refined with Gentle Animation */
.product-label {
  position: absolute;
  top: 12px;
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.product-label.new {
  right: 12px;
  background: #3b82f6;
  color: white;
  animation: labelPop 0.5s ease-out;
}

.product-label.trending {
  left: 12px;
  background: #ef4444;
  color: white;
  animation: labelPulse 2s ease-in-out infinite;
}

@keyframes labelPop {
  0% { transform: scale(0) rotate(-180deg); opacity: 0; }
  50% { transform: scale(1.1) rotate(10deg); }
  100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

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

/* Product Inner - Clean Card Design */
.product-inner {
  background: #ffffff;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  overflow: hidden;
  height: 100%;
  transition: all 0.3s ease;
  position: relative;
}

.popular-product-card:hover .product-inner {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  border-color: #1a8917;
}

/* Product Image Wrapper */
.product-image-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  background: #f8f8f8;
}

.product-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

/* Product Overlay - Professional Quick View */
.product-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.popular-product-card:hover .product-overlay {
  opacity: 1;
  visibility: visible;
}

/* Quick View Button */
.overlay-btn {
  background: white;
  color: #222222;
  border: none;
  padding: 12px 28px;
  border-radius: 40px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.875rem;
  transition: all 0.3s ease;
  transform: translateY(20px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.popular-product-card:hover .overlay-btn {
  transform: translateY(0);
}

.overlay-btn:hover {
  background: #1a8917;
  color: white;
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(26, 137, 23, 0.3);
}

.overlay-btn i {
  font-size: 1rem;
}

/* Product Details - Clean Layout */
.product-details {
  padding: 16px;
}

.product-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: #222222;
  margin-bottom: 12px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.8em;
}

/* Product Footer - Price and Action */
.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

/* Price Section */
.price-section {
  flex: 1;
}

.price-tag {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 4px;
}

.price-current {
  font-size: 1.125rem;
  font-weight: 700;
  color: #222222;
}

.price-original {
  font-size: 0.8rem;
  color: #999999;
  text-decoration: line-through;
}

/* Rating - Compact */
.product-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
}

.rating-stars {
  color: #ff9500;
  font-weight: 600;
}

.rating-count {
  color: #666666;
}

/* Add to Cart Button - Left Aligned, Compact */
.add-cart-btn {
  background: #0c8012;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-weight: 600;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  min-width: fit-content;
  text-transform: capitalize;
}

.add-cart-btn:hover {
  background: #1a8917;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(26, 137, 23, 0.25);
}

.add-cart-btn:active {
  transform: translateY(0);
}

.add-cart-btn i {
  font-size: 0.875rem;
}

/* Active Card Highlight */
.popular-product-card.active .product-inner {
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
  border-color: #1a8917;
}

/* ===================================
   6. LOADING SKELETON
   =================================== */
.popular-product-card.skeleton {
  pointer-events: none;
}

.skeleton-inner {
  background: white;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  overflow: hidden;
  height: 380px;
}

.skeleton-image {
  width: 100%;
  aspect-ratio: 1;
  background: linear-gradient(90deg, #f0f0f0 0%, #e0e0e0 50%, #f0f0f0 100%);
  background-size: 200% 100%;
  animation: shimmerSkeleton 1.5s infinite;
}

.skeleton-content {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.skeleton-title {
  height: 40px;
  background: linear-gradient(90deg, #f0f0f0 0%, #e0e0e0 50%, #f0f0f0 100%);
  background-size: 200% 100%;
  animation: shimmerSkeleton 1.5s infinite;
  border-radius: 4px;
}

.skeleton-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.skeleton-price {
  flex: 1;
  height: 24px;
  background: linear-gradient(90deg, #f0f0f0 0%, #e0e0e0 50%, #f0f0f0 100%);
  background-size: 200% 100%;
  animation: shimmerSkeleton 1.5s infinite;
  border-radius: 4px;
}

.skeleton-button {
  width: 100px;
  height: 32px;
  background: linear-gradient(90deg, #f0f0f0 0%, #e0e0e0 50%, #f0f0f0 100%);
  background-size: 200% 100%;
  animation: shimmerSkeleton 1.5s infinite;
  border-radius: 4px;
}

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

/* ===================================
   7. CAROUSEL INDICATORS
   =================================== */
.carousel-indicators {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
  position: relative;
  z-index: 2;
}

.indicator {
  width: 8px;
  height: 8px;
  background: #d1d5db;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.indicator.active {
  width: 24px;
  background: #1a8917;
  border-radius: 12px;
}

.indicator:hover:not(.active) {
  background: #9ca3af;
  transform: scale(1.2);
}

/* ===================================
   8. RESPONSIVE DESIGN
   =================================== */
@media (max-width: 1400px) {
  .popular-product-card {
    flex: 0 0 260px;
  }
}

@media (max-width: 1200px) {
  .popular-product-card {
    flex: 0 0 240px;
  }
  
  .title-text {
    font-size: 1.75rem;
  }
}

@media (max-width: 992px) {
  .popular-product-card {
    flex: 0 0 220px;
  }
  
  .carousel-track {
    gap: 16px;
  }
  
  .title-text {
    font-size: 1.5rem;
  }
  
  .title-icon {
    width: 40px;
    height: 40px;
  }
}

/* ===================================
   POPULAR NOW SECTION - ENHANCED MOBILE STYLES
   Professional, Elegant & Touch-Optimized
   =================================== */

/* ===================================
   1. BASE MOBILE ADJUSTMENTS
   =================================== */
@media (max-width: 768px) {
  .popular-now {
    background: #ffffff;
    margin-bottom: 3rem;
    margin-top: 0rem;
    padding: 40px 0;
    position: relative;
  }
  
  /* Disable complex background animations on mobile */
  .popular-now::before {
    display: none;
  }
  
  /* Mobile-optimized container */
  .popular-now .container {
    padding: 0 5px;
    max-width: 100%;
  }
  
  /* ===================================
     2. SECTION HEADER - MOBILE LAYOUT
     =================================== */
  .popular-now .section-header {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: stretch;
    margin-bottom: 7px;
    margin-top: -1px;
    animation: fadeInUp 0.6s ease-out;
  }
  
  @keyframes fadeInUp {
    from {
      opacity: 0;
      transform: translateY(20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  /* Title Section - Mobile Optimized */
  .popular-now .section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
  }
  
  /* Title Icon - Smaller for Mobile */
  .title-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #1a8917 0%, #22a31f 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(26, 137, 23, 0.2);
    flex-shrink: 0;
  }
  
  .title-icon i {
    font-size: 1.125rem;
    color: white;
  }
  
  /* Title Text - Responsive Typography */
  .title-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a8917;
    letter-spacing: -0.3px;
    text-align: center;
    line-height: 1.2;
  }
  
  /* Trending Badge - Mobile Sized */
  .title-badge {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
    animation: mobilePulse 3s ease-in-out infinite;
  }
  
  @keyframes mobilePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
  }
  
  /* ===================================
     3. CAROUSEL CONTROLS - MOBILE
     =================================== */
  .carousel-controls {
    display: flex;
    gap: 10px;
    justify-content: center;
    order: -1; /* Move to top on mobile */
  }
  
  .carousel-nav-btn {
    width: 40px;
    height: 40px;
    background: #f8f8f8;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    color: #666;
    transition: all 0.3s ease;
    -webkit-tap-highlight-color: transparent;
  }
  
  .carousel-nav-btn:active:not(:disabled) {
    transform: scale(0.95);
    background: #1a8917;
    color: white;
    border-color: #1a8917;
  }
  
  .carousel-nav-btn:disabled {
    opacity: 0.3;
    background: #f0f0f0;
  }
  
  /* ===================================
     4. CAROUSEL WRAPPER - MOBILE
     =================================== */
  .popular-carousel-wrapper {
    margin: 0 -20px;
    padding: 0;
    position: relative;
  }
  
  /* Add scroll indicators */
  .popular-carousel-wrapper::before,
  .popular-carousel-wrapper::after {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 60%;
    background: linear-gradient(to right, 
      rgba(255, 255, 255, 0.9) 0%, 
      rgba(255, 255, 255, 0) 100%);
    z-index: 2;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
  }
  
  .popular-carousel-wrapper::after {
    right: 0;
    background: linear-gradient(to left, 
      rgba(255, 255, 255, 0.9) 0%, 
      rgba(255, 255, 255, 0) 100%);
  }
  
  .popular-carousel-wrapper.can-scroll::before,
  .popular-carousel-wrapper.can-scroll::after {
    opacity: 1;
  }
  
  .popular-carousel {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 20px 16px 30px;
    
    /* Hide scrollbar but maintain functionality */
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  
  .popular-carousel::-webkit-scrollbar {
    display: none;
  }
  
  /* Touch-optimized track */
  .carousel-track {
    display: flex;
    gap: 12px;
    padding: 4px 0;
    transition: none; /* Remove transition for native scroll */
  }
  
  /* ===================================
     5. PRODUCT CARDS - MOBILE OPTIMIZED
     =================================== */
  .popular-product-card {
    flex: 0 0 160px;
    scroll-snap-align: start;
    transform: translateZ(0); /* GPU acceleration */
    -webkit-tap-highlight-color: transparent;
  }
  
  /* Product Labels - Mobile Sized */
  .product-label {
    padding: 3px 8px;
    font-size: 0.5625rem;
    letter-spacing: 0.3px;
    border-radius: 4px;
    top: 8px;
  }
  
  .product-label.new {
    right: 8px;
    animation: none; /* Disable animation on mobile */
  }
  
  .product-label.trending {
    left: 8px;
    animation: mobileLabelPulse 2s ease-in-out infinite;
  }
  
  @keyframes mobileLabelPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.85; }
  }
  
  /* Product Inner - Touch Optimized */
  .product-inner {
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    overflow: hidden;
    height: 100%;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }
  
  .popular-product-card:active .product-inner {
    transform: scale(0.98);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  }
  
  /* Product Image - Optimized Loading */
  .product-image-wrapper {
    aspect-ratio: 1;
    background: #f5f5f5;
    position: relative;
    overflow: hidden;
  }
  
  .product-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: none; /* Disable hover transitions */
  }
  
  /* Hide overlay on mobile */
  .product-overlay {
    display: none;
  }
  
  /* Product Details - Compact Mobile Layout */
  .product-details {
    padding: 12px;
  }
  
  .product-title {
    font-size: 0.75rem;
    font-weight: 600;
    color: #222;
    margin-bottom: 8px;
    line-height: 1.3;
    min-height: 2.6em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  
  /* Product Footer - Mobile Optimized */
  .product-footer {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  
  /* Price Section */
  .price-section {
    width: 100%;
  }
  
  .price-tag {
    display: flex;
    align-items: baseline;
    gap: 4px;
    flex-wrap: wrap;
    margin-bottom: 4px;
  }
  
  .price-current {
    font-size: 0.9375rem;
    font-weight: 700;
    color: #222;
  }
  
  .price-original {
    font-size: 0.75rem;
    color: #999;
  }
  
  /* Rating - Compact Mobile */
  .product-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.6875rem;
  }
  
  .rating-stars {
    color: #ff9500;
    font-weight: 600;
  }
  
  .rating-count {
    color: #666;
  }
  
  /* Add to Cart - Full Width Mobile */
  .add-cart-btn {
    width: 100%;
    background: #0c8012;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    transition: all 0.2s ease;
    -webkit-tap-highlight-color: transparent;
  }
  
  .add-cart-btn:active {
    transform: scale(0.98);
    background: #1a8917;
  }
  
  .add-cart-btn i {
    font-size: 0.75rem;
  }
  
  /* ===================================
     6. LOADING SKELETON - MOBILE
     =================================== */
  .popular-product-card.skeleton {
    flex: 0 0 160px;
  }
  
  .skeleton-inner {
    height: 260px;
  }
  
  .skeleton-content {
    padding: 12px;
    gap: 8px;
  }
  
  .skeleton-title {
    height: 32px;
  }
  
  .skeleton-price {
    height: 20px;
    width: 60%;
  }
  
  .skeleton-button {
    width: 100%;
    height: 28px;
    margin-top: 4px;
  }
  
  /* ===================================
     7. SCROLL INDICATORS
     =================================== */
  .carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 16px;
    padding: 0 16px;
  }
  
  .indicator {
    width: 6px;
    height: 6px;
    background: #d1d5db;
    border-radius: 50%;
    transition: all 0.3s ease;
  }
  
  .indicator.active {
    width: 20px;
    background: #1a8917;
    border-radius: 10px;
  }
  
  /* ===================================
     8. SWIPE HINT
     =================================== */
  .popular-carousel::after {
    content: 'Swipe for more →';
    position: absolute;
    bottom: 8px;
    right: 16px;
    font-size: 0.6875rem;
    color: #666;
    opacity: 0.7;
    animation: swipeHint 2s ease-in-out infinite;
    pointer-events: none;
  }
  
  .popular-carousel.scrolled::after {
    display: none;
  }
  
  @keyframes swipeHint {
    0%, 100% { transform: translateX(0); opacity: 0.7; }
    50% { transform: translateX(5px); opacity: 1; }
  }
}

/* ===================================
   9. SMALL PHONE ADJUSTMENTS (≤480px)
   =================================== */
@media (max-width: 480px) {
  .popular-now {
    padding: 30px 0;
  }
  
  .popular-now .container {
    padding: 0 12px;
  }
  
  .title-icon {
    width: 36px;
    height: 36px;
  }
  
  .title-icon i {
    font-size: 1rem;
  }
  
  .title-text {
    font-size: 1.25rem;
  }
  
  .title-badge {
    font-size: 0.5625rem;
    padding: 3px 10px;
  }
  
  .carousel-nav-btn {
    width: 36px;
    height: 36px;
    font-size: 0.75rem;
  }
  
  .popular-product-card {
    flex: 0 0 180px;
  }
  
  .product-label {
    padding: 2px 6px;
    font-size: 0.5rem;
  }
  
  .product-details {
    padding: 10px;
  }
  
  .product-title {
    font-size: 0.7rem;
    min-height: 2.4em;
  }
  
  .price-current {
    font-size: 0.875rem;
  }
  
  .price-original {
    font-size: 0.6875rem;
  }
  
  .product-rating {
    font-size: 0.625rem;
  }
  
  .add-cart-btn {
    padding: 6px 10px;
    font-size: 0.7rem;
    gap: 3px;
  }
}

/* ===================================
   10. VERY SMALL PHONES (≤375px)
   =================================== */
@media (max-width: 375px) {
  .popular-product-card {
    flex: 0 0 130px;
  }
  
  .carousel-track {
    gap: 10px;
  }
  
  .popular-carousel {
    padding: 16px 12px 24px;
  }
  
  .title-text {
    font-size: 1.125rem;
  }
}

/* ===================================
   11. LANDSCAPE ORIENTATION
   =================================== */
@media (max-width: 768px) and (orientation: landscape) {
  .popular-now {
    padding: 30px 0;
  }
  
  .popular-now .section-header {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
  
  .carousel-controls {
    order: 0;
  }
  
  .popular-product-card {
    flex: 0 0 180px;
  }
  
  .popular-carousel {
    padding: 16px;
  }
}

/* ===================================
   12. TOUCH OPTIMIZATIONS
   =================================== */
@media (hover: none) and (pointer: coarse) {
  /* Remove all hover effects */
  .popular-product-card:hover .product-inner {
    transform: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  }
  
  .popular-product-card:hover .product-image-wrapper img {
    transform: none;
  }
  
  /* Enhanced touch feedback */
  .popular-product-card:active .product-inner {
    transform: scale(0.97);
    transition-duration: 0.1s;
  }
  
  .add-cart-btn:active {
    transform: scale(0.96);
    transition-duration: 0.1s;
  }
  
  /* Increase touch targets */
  .carousel-nav-btn,
  .add-cart-btn {
    min-height: 44px; /* iOS recommendation */
  }
}

/* ===================================
   13. PERFORMANCE OPTIMIZATIONS
   =================================== */
@media (max-width: 768px) {
  /* GPU acceleration for smooth scrolling */
  .popular-carousel,
  .carousel-track,
  .popular-product-card {
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
  }
  
  /* Optimize images */
  .product-image-wrapper img {
    will-change: auto;
    image-rendering: -webkit-optimize-contrast;
  }
  
  /* Reduce paint complexity during scroll */
  .is-scrolling .popular-product-card {
    box-shadow: none !important;
  }
  
  /* Contain layout */
  .popular-carousel {
    contain: layout style;
  }
  
  .popular-product-card {
    contain: layout;
  }
}

/* ===================================
   14. ACCESSIBILITY IMPROVEMENTS
   =================================== */
@media (max-width: 768px) {
  /* Focus states */
  .carousel-nav-btn:focus,
  .add-cart-btn:focus,
  .popular-product-card:focus {
    outline: 2px solid #1a8917;
    outline-offset: 2px;
  }
  
  /* Screen reader only text */
  .sr-only-mobile {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
  }
  
  /* High contrast mode */
  @media (prefers-contrast: high) {
    .product-inner {
      border-width: 2px;
      border-color: currentColor;
    }
    
    .add-cart-btn {
      border: 2px solid currentColor;
    }
  }
  
  /* Reduced motion */
  @media (prefers-reduced-motion: reduce) {
    * {
      animation-duration: 0.01ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: 0.01ms !important;
    }
    
    .popular-carousel {
      scroll-behavior: auto;
    }
  }
}

/* ===================================
   9. TOUCH DEVICE OPTIMIZATIONS
   =================================== */
@media (hover: none) {
  .popular-product-card:active .product-inner {
    transform: scale(0.98);
  }
  
  .add-cart-btn:active {
    transform: scale(0.95);
  }
  
  .carousel-nav-btn:active:not(:disabled) {
    transform: scale(0.95);
  }
}

/* ===================================
   10. PRINT STYLES
   =================================== */
@media print {
  .popular-now {
    display: none;
  }
}

/* ===================================
   11. HIGH CONTRAST MODE
   =================================== */
@media (prefers-contrast: high) {
  .product-inner {
    border-width: 2px;
  }
  
  .add-cart-btn {
    border: 2px solid currentColor;
  }
  
  .product-label {
    font-weight: 800;
  }
}

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