/**
 * Akwanda Market E-Commerce - Custom Styles
 * 
 * Color Palette (Original):
 * - Primary: #2563eb (Blue)
 * - Secondary: #64748b (Slate)
 * - Success: #10b981 (Green)
 * - Danger: #ef4444 (Red)
 * - Warning: #f59e0b (Amber)
 * - Dark: #1e293b (Dark Slate)
 * - Light: #f8fafc (Light Slate)
 * 
 * Font: Inter (loaded via Google Fonts)
 * 
 * This file contains minimal custom CSS overrides.
 * Most styling is handled by Bootstrap 5 utilities.
 */

/* ============================================
   Import Google Font
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* ============================================
   CSS Variables & Root Styles
   ============================================ */
:root {
  --primary-color: #2563eb;
  --secondary-color: #64748b;
  --success-color: #10b981;
  --danger-color: #ef4444;
  --warning-color: #f59e0b;
  --dark-color: #1e293b;
  --light-color: #f8fafc;
  --border-radius: 0.5rem;
  --transition-speed: 0.3s;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

* {
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--dark-color);
  line-height: 1.6;
}

/* ============================================
   Accessibility: Skip Link
   ============================================ */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--primary-color);
  color: white;
  padding: 8px;
  text-decoration: none;
  z-index: 1000;
}

.skip-link:focus {
  top: 0;
}

/* ============================================
   Header & Navigation
   ============================================ */
.site-header {
  position: relative;
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

.top-bar {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
}

.hover-glow {
  transition: all 0.3s ease;
}

.hover-glow:hover {
  color: #fff !important;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
  transform: translateY(-1px);
}

.site-header .brand-logo {
  font-size: 2rem;
}

.brand-icon-wrapper {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.navbar-brand:hover .brand-icon-wrapper {
  transform: scale(1.05) rotate(5deg);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.brand-name {
  font-size: 1.5rem;
  color: var(--primary-color);
  transition: color 0.3s ease;
}

.navbar-brand:hover .brand-name {
  color: var(--primary-color) !important;
}

.search-wrapper {
  max-width: 100%;
  min-width: 250px;
}

.search-wrapper input {
  border-right: none;
}

@media (min-width: 1200px) {
  .search-wrapper {
    min-width: 300px;
  }
}

.search-wrapper input:focus {
  border-color: var(--primary-color) !important;
  box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.15);
  z-index: 1;
}

.search-wrapper .btn {
  border-left: none;
  z-index: 2;
}

/* Better header alignment */
.navbar {
  min-height: auto;
  padding: 0.75rem 0;
}

.navbar .d-flex {
  align-items: center;
}

.navbar .btn-link {
  padding: 0.5rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.navbar .btn-link:hover {
  background-color: rgba(0, 0, 0, 0.05);
  border-radius: var(--border-radius);
}

.navbar-brand {
  padding: 0;
  margin-right: 0;
}

.navbar .container-fluid {
  display: flex;
  align-items: center;
}

.navbar-nav {
  align-items: center;
}

.navbar-nav .nav-link {
  transition: all var(--transition-speed);
  border-radius: var(--border-radius);
  position: relative;
  padding: 0.5rem 0.75rem !important;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  white-space: nowrap;
}

/* Ensure navigation stays on left, search/cart on right */
.navbar .navbar-nav {
  flex-direction: row;
  margin-left: 0;
}

/* Hide mobile menu completely on desktop */
@media (min-width: 992px) {
  .navbar .navbar-nav {
    gap: 0.25rem;
  }
  
  /* Ensure mobile collapse menu is hidden on desktop */
  #navbarMain {
    display: none !important;
  }
}

/* Show desktop nav only on large screens */
@media (max-width: 991.98px) {
  .navbar .navbar-nav.d-lg-flex {
    display: none !important;
  }
}

.navbar-nav .nav-link:hover {
  color: var(--primary-color) !important;
  background-color: rgba(37, 99, 235, 0.05);
}

.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after {
  width: 80%;
}

.mega-menu {
  min-width: 800px;
  max-width: 1000px;
  animation: fadeInDown 0.3s ease;
}

.mega-menu .dropdown-item {
  transition: all 0.2s ease;
}

.mega-menu .dropdown-item:hover {
  background-color: rgba(37, 99, 235, 0.1);
  transform: translateX(5px);
  color: var(--primary-color);
}

.dropdown-menu {
  animation: fadeInDown 0.3s ease;
  border: none !important;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15) !important;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 991.98px) {
  .mega-menu {
    min-width: 100%;
  }
}

/* Cart badge pulse animation */
.cart-count {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    transform: translate(-50%, -50%) scale(1.1);
  }
}

/* ============================================
   Product Cards - Enhanced Design
   ============================================ */
.product-card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 12px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  position: relative;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px -8px rgba(0, 0, 0, 0.15), 0 4px 12px rgba(0, 0, 0, 0.08) !important;
  border-color: var(--primary-color);
}

.product-image-container {
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
  position: relative;
  overflow: hidden;
  padding: 4px;
  max-height: 180px;
}

.product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  background: #ffffff;
}

.product-card:hover .product-image {
  transform: scale(1.08);
}

.product-overlay {
  opacity: 0;
  transition: all 0.3s ease;
  background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0.7) 100%);
}

.product-card:hover .product-overlay {
  opacity: 1;
  background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.85) 100%);
}

.overlay-buttons {
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 80%;
}

.product-card:hover .overlay-buttons {
  opacity: 1;
  transform: translateY(0);
}

.overlay-buttons .btn {
  border-radius: 8px;
  font-weight: 600;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: all 0.2s ease;
}

.overlay-buttons .btn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.product-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.2;
  min-height: 1.8rem;
  margin-bottom: 0;
  margin-top: 0;
  color: #1f2937;
}

.product-title a {
  color: #1f2937;
  text-decoration: none;
  transition: color 0.2s ease;
}

.product-title a:hover {
  color: var(--primary-color);
}

.product-rating {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-bottom: 0.25rem;
  font-size: 0.7rem;
  margin-top: 0;
}

.product-rating .stars {
  color: var(--warning-color);
  font-size: 0.8rem;
  letter-spacing: 0.5px;
}

.star-empty {
  color: #e5e7eb;
  opacity: 0.5;
}

.product-rating small {
  color: #6b7280;
  font-size: 0.7rem;
  font-weight: 500;
}

.product-price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-top: auto;
  padding-top: 0.25rem;
}

.product-price .h5 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary-color);
  margin: 0;
  line-height: 1.1;
}

.product-price .text-decoration-line-through {
  font-size: 0.95rem;
  color: #9ca3af;
  font-weight: 500;
}

.product-price .badge {
  font-size: 0.7rem;
  padding: 0.25rem 0.5rem;
  font-weight: 600;
  border-radius: 4px;
}

/* Product Badge Improvements */
.product-image-container .badge {
  font-size: 0.75rem;
  padding: 0.4rem 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  z-index: 10;
  backdrop-filter: blur(4px);
}

.product-image-container .badge.bg-danger {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
}

.product-image-container .badge.bg-success {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
}

.product-image-container .badge.bg-warning {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
}

/* Product Meta Info */
.product-meta {
  font-size: 0.65rem;
  color: #6b7280;
  margin-top: 0;
  margin-bottom: 0.15rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  line-height: 1.2;
}

.product-meta .separator {
  color: #d1d5db;
}

/* Stock Status Badge */
.stock-status {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: 12px;
}

.stock-status.in-stock {
  background: #d1fae5;
  color: #065f46;
}

.stock-status.low-stock {
  background: #fef3c7;
  color: #92400e;
}

.stock-status.out-of-stock {
  background: #fee2e2;
  color: #991b1b;
}

/* Card Body Improvements */
.product-card .card-body {
  padding: 0.5rem 0.75rem;
  display: flex;
  flex-direction: column;
  min-height: auto;
}

/* Free Shipping Badge */
.free-shipping-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  font-size: 0.65rem;
  color: var(--success-color);
  font-weight: 600;
  margin-top: 0.15rem;
}

.free-shipping-badge i {
  font-size: 0.7rem;
}

/* Country Selector Styling */
.country-option {
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: all 0.2s ease;
}

.country-option:hover {
  background-color: #f8f9fa;
}

.country-option.active {
  background-color: #e3f2fd;
}

.country-option .fa-check {
  margin-left: auto;
}

/* Section Headers Styling */
.section-header {
  position: relative;
  padding-bottom: 0.5rem;
}

.section-header h3 {
  font-weight: 700;
  letter-spacing: -0.3px;
  color: #1f2937;
  margin: 0;
}

.section-header h3 .text-primary {
  font-size: 1.4rem;
  vertical-align: middle;
}

.section-header .text-muted {
  font-weight: 400;
  line-height: 1.5;
}

.section-header .btn-sm {
  border-radius: 20px;
  padding: 0.4rem 1rem;
  font-weight: 500;
  font-size: 0.875rem;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.section-header .btn-sm:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
}

.section-header .btn-sm i {
  font-size: 0.75rem;
}

/* ============================================
   Trending Products Section - Fire Theme
   ============================================ */
.trending-deals-section {
  position: relative;
  overflow: hidden;
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

.trending-section-wrapper {
  background: linear-gradient(135deg, #fff5f5 0%, #ffe5e5 50%, #fff5f5 100%);
  border-radius: 16px 16px 0 0;
  padding: 2rem 0 1rem 0;
  position: relative;
  margin-bottom: 0;
}

.trending-section-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #ef4444, #f97316, #ef4444);
  background-size: 200% 100%;
  animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.trending-icon-wrapper {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #ef4444 0%, #f97316 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
  animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.5);
    transform: scale(1.05);
  }
}

.trending-icon {
  font-size: 2rem;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.trending-title {
  font-size: 2rem;
  background: linear-gradient(135deg, #ef4444 0%, #f97316 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}

.trending-subtitle {
  color: #991b1b;
  font-size: 0.9rem;
  font-weight: 500;
}

.trending-view-btn {
  background: linear-gradient(135deg, #ef4444 0%, #f97316 100%);
  border: none;
  color: white;
  padding: 0.6rem 1.5rem;
  border-radius: 25px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.trending-view-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(239, 68, 68, 0.4);
  color: white;
}

/* ============================================
   Recommended Products Section - Star Theme
   ============================================ */
.recommended-section {
  position: relative;
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

.recommended-section-wrapper {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 50%, #fffbeb 100%);
  border-radius: 0;
  padding: 1rem 0 1rem 0;
  position: relative;
  border: 2px solid #fde68a;
  border-top: none;
  margin-bottom: 0;
}

.recommended-section-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #fbbf24, #f59e0b, #fbbf24);
  background-size: 200% 100%;
  animation: shimmer 3s ease-in-out infinite;
}

.recommended-icon-wrapper {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(251, 191, 36, 0.4);
  position: relative;
}

.recommended-icon-wrapper::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 70%);
  animation: sparkle 2s ease-in-out infinite;
}

@keyframes sparkle {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.1); }
}

.recommended-icon {
  font-size: 2rem;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
  z-index: 1;
}

.recommended-title {
  font-size: 2rem;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}

.recommended-subtitle {
  color: #92400e;
  font-size: 0.9rem;
  font-weight: 500;
}

.recommended-view-btn {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  border: none;
  color: white;
  padding: 0.6rem 1.5rem;
  border-radius: 25px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(251, 191, 36, 0.4);
}

.recommended-view-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(251, 191, 36, 0.5);
  color: white;
}

/* ============================================
   Best Sellers Section - Premium Trophy Theme
   ============================================ */
.bestsellers-section {
  position: relative;
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

.bestsellers-section-wrapper {
  background: linear-gradient(135deg, #f0f9ff 0%, #dbeafe 50%, #f0f9ff 100%);
  border-radius: 0 0 16px 16px;
  padding: 1rem 0 2rem 0;
  position: relative;
  border: 2px solid #bfdbfe;
  border-top: none;
  margin-bottom: 0;
}

.bestsellers-section-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #3b82f6, #2563eb, #3b82f6);
  background-size: 200% 100%;
  animation: shimmer 3s ease-in-out infinite;
}

.bestsellers-icon-wrapper {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
  position: relative;
}

.bestsellers-icon-wrapper::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.4) 0%, transparent 70%);
  animation: rotate-glow 3s linear infinite;
}

@keyframes rotate-glow {
  0% { transform: rotate(0deg); opacity: 0.4; }
  50% { opacity: 0.7; }
  100% { transform: rotate(360deg); opacity: 0.4; }
}

.bestsellers-icon {
  font-size: 2rem;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
  z-index: 1;
}

.bestsellers-title {
  font-size: 2rem;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}

.bestsellers-subtitle {
  color: #1e40af;
  font-size: 0.9rem;
  font-weight: 500;
}

.bestsellers-view-btn {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  border: none;
  color: white;
  padding: 0.6rem 1.5rem;
  border-radius: 25px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.bestsellers-view-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(59, 130, 246, 0.5);
  color: white;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .trending-title,
  .recommended-title,
  .bestsellers-title {
    font-size: 1.5rem;
  }
  
  .trending-icon-wrapper,
  .recommended-icon-wrapper,
  .bestsellers-icon-wrapper {
    width: 50px;
    height: 50px;
  }
  
  .trending-icon,
  .recommended-icon,
  .bestsellers-icon {
    font-size: 1.5rem;
  }
  
  .trending-section-wrapper,
  .recommended-section-wrapper,
  .bestsellers-section-wrapper {
    padding: 1.5rem 0 1.5rem 0;
    margin-bottom: 0;
  }
}

/* Responsive Product Card Improvements */
@media (max-width: 768px) {
  .product-card {
    border-radius: 10px;
  }
  
  .product-image-container {
    padding: 3px;
    max-height: 150px;
    aspect-ratio: 4 / 3;
  }
  
  .product-title {
    font-size: 0.75rem;
    min-height: 1.6rem;
  }
  
  .product-price .h5 {
    font-size: 1.1rem;
  }
  
  .overlay-buttons {
    width: 90%;
  }
  
  .overlay-buttons .btn {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
  }
  
  .section-header h3 {
    font-size: 1.3rem;
  }
  
  .section-header .text-muted {
    font-size: 0.8rem;
  }
  
  .section-header .btn-sm {
    padding: 0.35rem 0.85rem;
    font-size: 0.8rem;
  }
}

/* ============================================
   Hero Carousel
   ============================================ */
.hero-carousel {
  max-height: 180px;
  overflow: hidden;
  border-radius: var(--border-radius);
}

.hero-carousel .carousel-item img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.hero-carousel .carousel-caption {
  display: none !important;
}

.hero-carousel .carousel-indicators {
  display: none !important;
}

.hero-section {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* Remove any spacing between header and hero */
.site-header + .hero-section,
header + section.hero-section,
#header-placeholder + section.hero-section,
#header-placeholder {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

#header-placeholder > .site-header {
  margin-bottom: 0 !important;
}

/* Ensure no spacing between hero and first product section */
.hero-section + section,
.hero-section + .trending-deals-section {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* Carousel control buttons styling */
.hero-carousel .carousel-control-prev,
.hero-carousel .carousel-control-next {
  width: 50px;
  height: 50px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.8;
  transition: all 0.3s ease;
}

.hero-carousel .carousel-control-prev {
  left: 15px;
}

.hero-carousel .carousel-control-next {
  right: 15px;
}

.hero-carousel .carousel-control-prev:hover,
.hero-carousel .carousel-control-next:hover {
  background: rgba(0, 0, 0, 0.7);
  opacity: 1;
  transform: translateY(-50%) scale(1.1);
}

.hero-carousel .carousel-control-prev-icon,
.hero-carousel .carousel-control-next-icon {
  width: 24px;
  height: 24px;
  filter: brightness(0) invert(1);
}

@media (max-width: 768px) {
  .hero-carousel {
    max-height: 140px;
  }
  
  .hero-carousel .carousel-item img {
    height: 140px;
  }
  
  .hero-carousel .carousel-caption h2 {
    font-size: 1rem;
  }
  
  .hero-carousel .carousel-caption p {
    font-size: 0.75rem;
  }
  
  .hero-carousel .carousel-caption {
    padding: 0.4rem 0.6rem;
    bottom: 5px;
  }
}

/* ============================================
   Category Grid
   ============================================ */
.category-card {
  border-radius: var(--border-radius);
  overflow: hidden;
  transition: transform var(--transition-speed);
}

.category-card:hover {
  transform: translateY(-4px);
}

.category-icon {
  font-size: 3rem;
}

/* ============================================
   Filters Sidebar
   ============================================ */
.filter-sidebar {
  position: sticky;
  top: 100px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
}

.filter-section {
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: 1rem;
  margin-bottom: 1rem;
}

.filter-section:last-child {
  border-bottom: none;
}

/* Price Range Slider - Placeholder styling */
.price-range-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: #e5e7eb;
  outline: none;
}

.price-range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--primary-color);
  cursor: pointer;
}

.price-range-slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--primary-color);
  cursor: pointer;
  border: none;
}

/* ============================================
   Product Detail Page
   ============================================ */
.product-gallery-main {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: var(--border-radius);
}

.product-gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-gallery-thumbnails img {
  cursor: pointer;
  opacity: 0.7;
  transition: opacity var(--transition-speed), border-color var(--transition-speed);
  border: 2px solid transparent;
  border-radius: var(--border-radius);
}

.product-gallery-thumbnails img:hover,
.product-gallery-thumbnails img.active {
  opacity: 1;
  border-color: var(--primary-color);
}

.quantity-selector {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.quantity-selector button {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid #e5e7eb;
  background: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.quantity-selector input {
  width: 60px;
  text-align: center;
  border: 1px solid #e5e7eb;
  border-radius: var(--border-radius);
}

/* ============================================
   Cart & Checkout
   ============================================ */
.cart-item {
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: 1rem;
  margin-bottom: 1rem;
}

.cart-item:last-child {
  border-bottom: none;
}

.cart-item-image {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: var(--border-radius);
}

.order-summary {
  background: var(--light-color);
  border-radius: var(--border-radius);
  padding: 1.5rem;
}

/* ============================================
   Forms
   ============================================ */
.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.25);
}

.form-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.25);
}

/* ============================================
   Buttons
   ============================================ */
.btn {
  border-radius: var(--border-radius);
  transition: all var(--transition-speed);
  font-weight: 500;
}

.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-primary:hover {
  background-color: #1d4ed8;
  border-color: #1d4ed8;
  transform: translateY(-1px);
}

.btn-outline-primary {
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-outline-primary:hover {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

/* ============================================
   Badges
   ============================================ */
.badge {
  padding: 0.35em 0.65em;
  font-weight: 500;
}

.cart-count {
  font-size: 0.7rem;
}

/* ============================================
   Responsive Utilities
   ============================================ */
@media (max-width: 576px) {
  .product-card .card-footer {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .product-card .card-footer .btn {
    width: 100%;
  }
  
  .wishlist-btn {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
  }
}

/* Wishlist Button Styling */
.wishlist-btn {
  border-radius: 20px;
  font-size: 0.8rem;
  padding: 0.3rem 0.7rem;
  transition: all 0.2s ease;
  border: 1px solid #dc2626;
  color: #dc2626;
  background: transparent;
}

.wishlist-btn:hover {
  background: #dc2626;
  color: white;
  transform: scale(1.05);
}

.wishlist-btn.active,
.wishlist-btn.active i {
  color: #dc2626;
}

.wishlist-btn i {
  font-size: 0.85rem;
}

/* ============================================
   Loading States
   ============================================ */
.loading-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(0, 0, 0, 0.1);
  border-radius: 50%;
  border-top-color: var(--primary-color);
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ============================================
   Accessibility: Focus States
   ============================================ */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* ============================================
   Footer Styles
   ============================================ */
.site-footer {
  background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
}

.site-footer .bg-darker {
  background: rgba(0, 0, 0, 0.3);
}

.footer-links a {
  transition: all 0.3s ease;
  color: white !important;
}

.footer-links a:hover {
  color: #fff !important;
  opacity: 1 !important;
  transform: translateX(5px);
  padding-left: 5px;
}

.footer-links a:hover span {
  transform: scale(1.2);
}

.social-icon:hover {
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

.newsletter-form input:focus {
  border-color: var(--primary-color) !important;
  box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.25);
  background-color: rgba(255, 255, 255, 0.05) !important;
}

.payment-icons .badge {
  transition: all 0.3s ease;
}

.payment-icons .badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Payment Method Badges with Brand Colors */
.payment-badge {
  cursor: pointer;
  border: none;
  min-width: 100px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.payment-badge:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Visa - Blue and White */
.payment-visa {
  background: linear-gradient(135deg, #1434CB 0%, #1E3A8A 100%);
  color: white;
}

.payment-visa i {
  color: white;
}

.payment-visa:hover {
  background: linear-gradient(135deg, #1E3A8A 0%, #1434CB 100%);
  box-shadow: 0 4px 12px rgba(20, 52, 203, 0.4);
}

/* Mastercard - Red and Orange */
.payment-mastercard {
  background: linear-gradient(135deg, #EB001B 0%, #F79E1B 100%);
  color: white;
}

.payment-mastercard i {
  color: white;
}

.payment-mastercard:hover {
  background: linear-gradient(135deg, #F79E1B 0%, #EB001B 100%);
  box-shadow: 0 4px 12px rgba(235, 0, 27, 0.4);
}

/* PayPal - Blue */
.payment-paypal {
  background: linear-gradient(135deg, #0070BA 0%, #009CDE 100%);
  color: white;
}

.payment-paypal i {
  color: white;
}

.payment-paypal:hover {
  background: linear-gradient(135deg, #009CDE 0%, #0070BA 100%);
  box-shadow: 0 4px 12px rgba(0, 112, 186, 0.4);
}

/* Apple Pay - Black */
.payment-apple {
  background: #000000;
  color: white;
}

.payment-apple i {
  color: white;
}

.payment-apple:hover {
  background: #1a1a1a;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

/* Google Pay - Multi-color gradient */
.payment-google {
  background: linear-gradient(135deg, #4285F4 0%, #EA4335 25%, #FBBC04 50%, #34A853 75%, #4285F4 100%);
  background-size: 200% 200%;
  color: white;
  animation: googlePayGradient 3s ease infinite;
}

.payment-google i {
  color: white;
}

.payment-google:hover {
  animation: none;
  background: linear-gradient(135deg, #4285F4 0%, #EA4335 25%, #FBBC04 50%, #34A853 75%, #4285F4 100%);
  background-size: 200% 200%;
  box-shadow: 0 4px 12px rgba(66, 133, 244, 0.4);
}

@keyframes googlePayGradient {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

/* MTN - Yellow */
.payment-mtn {
  background: linear-gradient(135deg, #FFCC00 0%, #FFD700 100%);
  color: #000000;
}

.payment-mtn i {
  color: #000000;
}

.payment-mtn:hover {
  background: linear-gradient(135deg, #FFD700 0%, #FFCC00 100%);
  box-shadow: 0 4px 12px rgba(255, 204, 0, 0.5);
}

/* Airtel - Red */
.payment-airtel {
  background: linear-gradient(135deg, #E60012 0%, #FF1A2E 100%);
  color: white;
}

.payment-airtel i {
  color: white;
}

.payment-airtel:hover {
  background: linear-gradient(135deg, #FF1A2E 0%, #E60012 100%);
  box-shadow: 0 4px 12px rgba(230, 0, 18, 0.4);
}

/* Binance - Yellow/Gold */
.payment-binance {
  background: linear-gradient(135deg, #F3BA2F 0%, #F9D423 100%);
  color: #000000;
}

.payment-binance i {
  color: #000000;
}

.payment-binance:hover {
  background: linear-gradient(135deg, #F9D423 0%, #F3BA2F 100%);
  box-shadow: 0 4px 12px rgba(243, 186, 47, 0.5);
}

/* ============================================
   Payment Gateway Styles
   ============================================ */
.payment-option-card {
  transition: all 0.3s ease;
  cursor: pointer;
}

.payment-option-card:hover {
  border-color: #0d6efd !important;
  box-shadow: 0 2px 8px rgba(13, 110, 253, 0.15);
  transform: translateY(-2px);
}

.payment-option-card input[type="radio"]:checked + label {
  color: #0d6efd;
}

.payment-option-card input[type="radio"]:checked ~ .payment-option-card,
.payment-option-card:has(input[type="radio"]:checked) {
  border-color: #0d6efd !important;
  background-color: rgba(13, 110, 253, 0.05);
}

.payment-details {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #dee2e6;
  animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Footer section headers */
.site-footer h6 {
  position: relative;
  padding-bottom: 0.5rem;
}

/* Responsive footer adjustments */
@media (max-width: 768px) {
  .site-footer .container {
    text-align: center;
  }
  
  .footer-links {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .social-links {
    justify-content: center;
  }
}

/* ============================================
   Comprehensive Mobile Responsive Styles
   ============================================ */

/* Mobile First - Base Mobile Styles (up to 576px) */
@media (max-width: 575.98px) {
  /* Typography */
  body {
    font-size: 14px;
    line-height: 1.5;
  }
  
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.25rem; }
  h4 { font-size: 1.1rem; }
  h5 { font-size: 1rem; }
  h6 { font-size: 0.9rem; }
  
  /* Header & Navigation */
  .site-header {
    padding: 0.5rem 0;
  }
  
  .top-bar {
    font-size: 0.75rem;
    padding: 0.4rem 0;
  }
  
  .top-bar .container-fluid {
    padding: 0 1rem;
  }
  
  .navbar-brand {
    font-size: 1.25rem !important;
    padding: 0.5rem 0.75rem;
  }
  
  .brand-icon-wrapper {
    width: 35px !important;
    height: 35px !important;
    font-size: 1.25rem !important;
  }
  
  .search-wrapper {
    min-width: auto;
    max-width: 100%;
    margin: 0.5rem 0;
  }
  
  .search-wrapper input {
    font-size: 0.875rem;
    padding: 0.5rem 0.75rem;
    height: 38px;
  }
  
  .navbar-nav .nav-link {
    font-size: 0.875rem;
    padding: 0.5rem 0.75rem !important;
  }
  
  /* Cart & Search Icons */
  .navbar .nav-link i {
    font-size: 1.1rem !important;
  }
  
  .cart-count {
    font-size: 0.65rem !important;
    min-width: 16px !important;
    padding: 1px 4px !important;
  }
  
  /* Mobile Menu */
  .navbar-toggler {
    padding: 0.4rem 0.5rem;
    font-size: 1rem;
  }
  
  .navbar-collapse {
    background: white;
    margin-top: 0.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 0.5rem 0;
  }
  
  .mega-menu {
    min-width: 100% !important;
    max-width: 100% !important;
    padding: 1rem !important;
    margin: 0 !important;
    border-radius: 8px !important;
  }
  
  .dropdown-item {
    padding: 0.75rem 1rem !important;
    font-size: 0.9rem !important;
  }
  
  /* Hero Section */
  .hero-carousel {
    max-height: 120px !important;
    border-radius: 0;
  }
  
  .hero-carousel .carousel-item img {
    height: 120px !important;
  }
  
  .carousel-control-prev,
  .carousel-control-next {
    width: 30px;
    height: 30px;
    font-size: 0.875rem;
    top: 50%;
    transform: translateY(-50%);
  }
  
  .carousel-control-prev {
    left: 5px;
  }
  
  .carousel-control-next {
    right: 5px;
  }
  
  /* Product Cards */
  /* Force single column on mobile - one product per line */
  .row.g-4 .col-6,
  .row.g-3 .col-6,
  .row.g-4 .col-md-4,
  .row.g-4 .col-lg-3,
  .row.g-4 .col-lg-4,
  #trending-products .col-6,
  #recommended-products .col-6,
  #bestsellers-products .col-6,
  #productsGrid .col-6 {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    width: 100% !important;
  }
  
  .product-card {
    margin-bottom: 1rem;
    border-radius: 12px;
    overflow: hidden;
  }
  
  .product-image-container {
    padding: 4px;
    max-height: 140px;
    min-height: 140px;
  }
  
  .product-title {
    font-size: 0.8rem !important;
    line-height: 1.3;
    margin-bottom: 0.25rem;
    min-height: 2.4rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  
  .product-price .h5 {
    font-size: 1rem !important;
  }
  
  .product-price .text-muted {
    font-size: 0.75rem !important;
  }
  
  .product-card .badge {
    font-size: 0.65rem;
    padding: 0.25rem 0.5rem;
  }
  
  .product-card .card-body {
    padding: 0.75rem;
  }
  
  .product-card .card-footer {
    padding: 0.5rem 0.75rem;
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .product-card .btn {
    width: 100%;
    padding: 0.5rem;
    font-size: 0.85rem;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
  }
  
  .wishlist-btn {
    width: 36px;
    height: 36px;
    font-size: 1rem;
    padding: 0;
    position: absolute;
    bottom: 5px;
    left: 5px;
    z-index: 10;
  }
  
  .overlay-buttons {
    width: 95%;
    gap: 0.5rem;
  }
  
  .overlay-buttons .btn {
    font-size: 0.75rem;
    padding: 0.4rem 0.6rem;
    min-height: 36px;
  }
  
  /* Section Headers */
  .section-header {
    margin-bottom: 1rem;
    padding: 0.75rem 0;
  }
  
  .section-header h3 {
    font-size: 1.25rem !important;
    margin-bottom: 0.25rem;
  }
  
  .section-header .text-muted {
    font-size: 0.8rem !important;
  }
  
  .section-header .btn-sm {
    padding: 0.3rem 0.75rem;
    font-size: 0.75rem;
  }
  
  .trending-title,
  .recommended-title,
  .bestsellers-title {
    font-size: 1.3rem !important;
  }
  
  .trending-icon-wrapper,
  .recommended-icon-wrapper,
  .bestsellers-icon-wrapper {
    width: 45px !important;
    height: 45px !important;
  }
  
  .trending-icon,
  .recommended-icon,
  .bestsellers-icon {
    font-size: 1.25rem !important;
  }
  
  .trending-section-wrapper,
  .recommended-section-wrapper,
  .bestsellers-section-wrapper {
    padding: 1rem 0 !important;
  }
  
  /* Container Padding */
  .container,
  .container-fluid {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  /* Buttons */
  .btn {
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
    min-height: 40px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
  }
  
  .btn-lg {
    font-size: 1rem;
    padding: 0.75rem 1.5rem;
    min-height: 48px;
  }
  
  .btn-sm {
    font-size: 0.75rem;
    padding: 0.375rem 0.75rem;
    min-height: 32px;
  }
  
  /* Forms */
  .form-control,
  .form-select {
    font-size: 0.875rem;
    padding: 0.5rem 0.75rem;
    min-height: 40px;
  }
  
  /* Cards */
  .card {
    border-radius: 12px;
    margin-bottom: 1rem;
  }
  
  .card-body {
    padding: 1rem;
  }
  
  .card-title {
    font-size: 1.1rem;
  }
  
  /* Product Grid */
  .row.g-4 {
    --bs-gutter-x: 0.75rem;
    --bs-gutter-y: 0.75rem;
  }
  
  .row.g-3 {
    --bs-gutter-x: 0.5rem;
    --bs-gutter-y: 0.5rem;
  }
  
  /* Footer */
  .site-footer {
    padding: 2rem 0 1rem;
    font-size: 0.875rem;
  }
  
  .site-footer h6 {
    font-size: 1rem;
    margin-bottom: 1rem;
    margin-top: 1.5rem;
  }
  
  .site-footer .list-unstyled li {
    margin-bottom: 0.5rem;
  }
  
  .site-footer a {
    font-size: 0.875rem;
    padding: 0.25rem 0;
  }
  
  /* Filters Sidebar */
  .filter-sidebar {
    position: static;
    margin-bottom: 2rem;
  }
  
  /* Modal */
  .modal-dialog {
    margin: 0.5rem;
    max-width: calc(100% - 1rem);
  }
  
  .modal-content {
    border-radius: 12px;
  }
  
  .modal-header {
    padding: 1rem;
  }
  
  .modal-body {
    padding: 1rem;
  }
  
  .modal-footer {
    padding: 0.75rem 1rem;
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .modal-footer .btn {
    width: 100%;
    margin: 0;
  }
  
  /* Tables */
  .table {
    font-size: 0.875rem;
  }
  
  .table-responsive {
    border-radius: 8px;
  }
  
  /* Breadcrumbs */
  .breadcrumb {
    font-size: 0.8rem;
    padding: 0.5rem 0;
    margin-bottom: 1rem;
  }
  
  /* Badges */
  .badge {
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
  }
  
  /* Alerts */
  .alert {
    font-size: 0.875rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
  }
  
  /* Spacing Utilities */
  .mb-4 {
    margin-bottom: 1.5rem !important;
  }
  
  .mb-5 {
    margin-bottom: 2rem !important;
  }
  
  .mt-4 {
    margin-top: 1.5rem !important;
  }
  
  .mt-5 {
    margin-top: 2rem !important;
  }
  
  .py-4 {
    padding-top: 1.5rem !important;
    padding-bottom: 1.5rem !important;
  }
  
  .py-5 {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
  }
}

/* Small Mobile Devices (up to 480px) */
@media (max-width: 479.98px) {
  .container,
  .container-fluid {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
  
  .hero-carousel {
    max-height: 100px !important;
  }
  
  .hero-carousel .carousel-item img {
    height: 100px !important;
  }
  
  .product-image-container {
    max-height: 120px;
    min-height: 120px;
  }
  
  .trending-title,
  .recommended-title,
  .bestsellers-title {
    font-size: 1.1rem !important;
  }
  
  .section-header h3 {
    font-size: 1.1rem !important;
  }
}

/* Tablet Styles (576px to 991px) */
@media (min-width: 576px) and (max-width: 991.98px) {
  .product-card {
    border-radius: 12px;
  }
  
  .product-image-container {
    max-height: 180px;
    min-height: 180px;
  }
  
  .hero-carousel {
    max-height: 160px;
  }
  
  .hero-carousel .carousel-item img {
    height: 160px;
  }
  
  .container,
  .container-fluid {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
  
  .section-header h3 {
    font-size: 1.5rem;
  }
  
  .trending-title,
  .recommended-title,
  .bestsellers-title {
    font-size: 1.5rem;
  }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
  /* Increase touch targets */
  .btn,
  .nav-link,
  .dropdown-item,
  .form-control,
  .form-select {
    min-height: 44px;
  }
  
  /* Remove hover effects on touch devices */
  .product-card:hover {
    transform: none;
  }
  
  .product-card:hover .overlay-buttons {
    opacity: 0;
  }
  
  /* Show overlay buttons by default on mobile */
  .product-card .overlay-buttons {
    opacity: 1;
    position: static;
    transform: none;
    background: transparent;
    padding: 0.5rem 0;
  }
  
  /* Better spacing for touch */
  .navbar-nav .nav-link {
    padding: 0.75rem 1rem !important;
  }
  
  /* Remove text shadows on hover for touch */
  .hover-glow:hover {
    text-shadow: none;
  }
}

/* Landscape Mobile Optimization */
@media (max-width: 991.98px) and (orientation: landscape) {
  .hero-carousel {
    max-height: 100px;
  }
  
  .hero-carousel .carousel-item img {
    height: 100px;
  }
  
  .top-bar {
    padding: 0.25rem 0;
    font-size: 0.7rem;
  }
}

/* ============================================
   Mobile Styles for Specific Pages
   ============================================ */

/* Cart Page Mobile */
@media (max-width: 575.98px) {
  .cart-item {
    flex-direction: column;
    padding: 1rem;
  }
  
  .cart-item-image {
    width: 100%;
    max-width: 150px;
    margin: 0 auto 1rem;
  }
  
  .cart-item-details {
    width: 100%;
    text-align: center;
  }
  
  .cart-item-actions {
    width: 100%;
    justify-content: center;
    margin-top: 1rem;
  }
  
  .quantity-selector {
    justify-content: center;
  }
  
  .cart-summary {
    margin-top: 2rem;
    position: sticky;
    bottom: 0;
    background: white;
    padding: 1rem;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    border-radius: 12px 12px 0 0;
  }
}

/* Checkout Page Mobile */
@media (max-width: 575.98px) {
  .checkout-form {
    margin-bottom: 2rem;
  }
  
  .checkout-summary {
    order: -1;
    margin-bottom: 2rem;
    position: sticky;
    top: 0;
    background: white;
    padding: 1rem;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 10;
  }
  
  .payment-methods {
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .payment-method-card {
    width: 100%;
  }
  
  .form-row {
    flex-direction: column;
  }
  
  .form-row .form-group {
    width: 100%;
    margin-bottom: 1rem;
  }
}

/* Product Detail Page Mobile */
@media (max-width: 575.98px) {
  .product-gallery {
    margin-bottom: 1.5rem;
  }
  
  .product-gallery-main {
    margin-bottom: 0.75rem;
  }
  
  .product-gallery-thumbs {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    -webkit-overflow-scrolling: touch;
  }
  
  .product-gallery-thumbs img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
  }
  
  .product-info h1 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }
  
  .product-price-section {
    padding: 1rem;
    border-radius: 12px;
    margin-bottom: 1rem;
  }
  
  .product-actions {
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .product-actions .btn {
    width: 100%;
  }
  
  .product-tabs {
    margin-top: 2rem;
  }
  
  .nav-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-bottom: 2px solid #e5e7eb;
  }
  
  .nav-tabs .nav-link {
    white-space: nowrap;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
  }
  
  .tab-content {
    padding: 1rem 0;
  }
  
  .product-reviews {
    margin-top: 1.5rem;
  }
  
  .review-item {
    padding: 1rem;
    margin-bottom: 1rem;
  }
  
  .review-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
  }
}

/* Admin Dashboard Mobile */
@media (max-width: 991.98px) {
  .admin-sidebar {
    position: fixed;
    left: -100%;
    top: 0;
    height: 100vh;
    width: 280px;
    z-index: 1050;
    transition: left 0.3s ease;
    overflow-y: auto;
  }
  
  .admin-sidebar.show {
    left: 0;
  }
  
  .admin-main-content {
    margin-left: 0;
    width: 100%;
  }
  
  .admin-header {
    padding: 0.75rem 1rem;
  }
  
  .admin-stats-card {
    margin-bottom: 1rem;
  }
  
  .admin-table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  .admin-form-section {
    padding: 1rem;
  }
  
  .admin-form-row {
    flex-direction: column;
  }
  
  .admin-form-group {
    width: 100%;
    margin-bottom: 1rem;
  }
}

/* Search & Category Pages Mobile */
@media (max-width: 575.98px) {
  .filter-toggle-btn {
    width: 100%;
    margin-bottom: 1rem;
    padding: 0.75rem;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  
  .filter-sidebar {
    position: fixed;
    left: -100%;
    top: 0;
    width: 85%;
    max-width: 320px;
    height: 100vh;
    background: white;
    z-index: 1050;
    transition: left 0.3s ease;
    overflow-y: auto;
    padding: 1rem;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
  }
  
  .filter-sidebar.show {
    left: 0;
  }
  
  .filter-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1040;
  }
  
  .filter-overlay.show {
    display: block;
  }
  
  .sort-select {
    width: 100%;
    margin-bottom: 1rem;
  }
  
  .products-grid {
    margin-top: 1rem;
  }
}

/* Account Page Mobile */
@media (max-width: 575.98px) {
  .account-sidebar {
    margin-bottom: 2rem;
  }
  
  .account-nav {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e5e7eb;
  }
  
  .account-nav .nav-link {
    white-space: nowrap;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
  }
  
  .account-content {
    padding: 1rem 0;
  }
  
  .order-item {
    padding: 1rem;
    margin-bottom: 1rem;
  }
  
  .order-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  
  .order-items-list {
    margin-top: 1rem;
  }
}

/* Forms Mobile Optimization */
@media (max-width: 575.98px) {
  .form-group {
    margin-bottom: 1.25rem;
  }
  
  .form-label {
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
  }
  
  .input-group {
    flex-direction: column;
  }
  
  .input-group > * {
    width: 100% !important;
    margin-bottom: 0.5rem;
    border-radius: 8px !important;
  }
  
  .input-group > *:last-child {
    margin-bottom: 0;
  }
}

/* Improved Mobile Navigation */
@media (max-width: 575.98px) {
  .mobile-search-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: transparent;
    border: none;
    color: var(--dark-color);
    font-size: 1.1rem;
  }
  
  .mobile-search-toggle:active {
    background: rgba(0, 0, 0, 0.05);
  }
  
  #mobile-search {
    margin-top: 0.5rem;
    border-radius: 8px;
  }
  
  #mobile-search .input-group {
    flex-direction: row;
  }
  
  #mobile-search input {
    border-radius: 8px 0 0 8px;
  }
  
  #mobile-search button {
    border-radius: 0 8px 8px 0;
  }
}

/* Loading States Mobile */
@media (max-width: 575.98px) {
  .loading-spinner {
    width: 40px;
    height: 40px;
  }
  
  .skeleton-loader {
    border-radius: 12px;
  }
}

/* Toast Notifications Mobile */
@media (max-width: 575.98px) {
  .toast-container {
    bottom: 1rem;
    left: 1rem;
    right: 1rem;
    width: auto;
  }
  
  .toast {
    width: 100%;
    max-width: 100%;
    margin-bottom: 0.75rem;
    border-radius: 12px;
  }
}

/* ============================================
   Print Styles
   ============================================ */
@media print {
  .site-header,
  .site-footer,
  .btn,
  .navbar {
    display: none !important;
  }
}

