/* Custom Variables */
:root {
  --primary-dark: #1a2a44;
  --primary-darker: #0f1a2e;
  --primary-blue: #007bff;
  --light-blue: #b0b8cc;
  --warning: #f4a81c;
  --blue: #0d6ed6
}

/* General Styles */
body {
  font-family: 'Arial', sans-serif;
  background-color: #f8f9fa;
  color: #333;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Banner */
.banner {
  background-color: #2a3a54 !important;
  font-size: 0.9rem;
}

/* Text Colors */
.text-light-blue {
  color: var(--light-blue) !important;
}

.text-primary {
  color: var(--primary-blue) !important;
}

.bg-primary-dark {
  background-color: #2a3a54 !important;
}

.bg-darker {
  background-color: var(--primary-darker) !important;
}

.bg-dark {
  background-color: var(--primary-dark) !important;
}

/* Navigation Styles */
.nav-link.text-light-blue:hover {
  color: white !important;
}

/* Search Nav Customization */
.input-group .form-control:focus {
  box-shadow: none;
  border-color: #ddd;
}

.input-group-text {
  background-color: white !important;
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 0;
  left: -100%;
  width: 80%;
  max-width: 300px;
  height: 100vh;
  z-index: 1100;
  background-color: white;
  transition: left 0.3s ease;
  box-shadow: 2px 0 10px rgba(0,0,0,0.1);
}

.mobile-menu.active {
  left: 0;
}

.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: rgba(0,0,0,0.5);
  z-index: 1099;
  display: none;
}

.mobile-menu-overlay.active {
  display: block;
}

/* Bottom Navigation */
.bottom-nav {
  z-index: 1080;
}

.bottom-nav .nav-link {
  padding: 0.5rem 0.25rem;
}

.bottom-nav .nav-link small {
  font-size: 0.7rem;
}

/* Simple Hero Section */
.simple-hero-section {
    position: relative;
    overflow: hidden;
    background: #000;
}

.carousel {
    height: 80vh;
    min-height: 600px;
}

.carousel-inner, .carousel-item {
    height: 100%;
}

/* Hero Carousel Section */
.hero-carousel-section {
    position: relative;
    overflow: hidden;
}

.carousel {
    height: 100vh;
    min-height: 700px;
}

.carousel-inner, .carousel-item {
    height: 100%;
}

/* Hero Slides with Background Images */
.hero-slide {
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

/* Slide Overlay for better text readability */
.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        90deg,
        rgba(0, 0, 0, 0.8) 0%,
        rgba(0, 0, 0, 0.6) 30%,
        rgba(0, 0, 0, 0.4) 50%,
        rgba(0, 0, 0, 0.2) 70%,
        transparent 100%
    );
    z-index: 1;
}

/* Hero Content */
.hero-content {
    color: white;
    z-index: 2;
    position: relative;
    padding: 2rem;
}

.brand-name {
    font-size: 0.9rem;
    font-weight: 300;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #ccc;
    margin-bottom: 1rem;
    display: block;
}

.product-name {
    font-size: 4rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.product-model {
    font-size: 2rem;
    font-weight: 300;
    line-height: 1.2;
    margin-bottom: 2rem;
    color: #ccc;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Price Section */
.price-section {
    margin-bottom: 2.5rem;
}

.price-label {
    font-size: 1rem;
    font-weight: 300;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 0.5rem;
}

.price {
    font-size: 3.5rem;
    font-weight: 700;
    color: #fff;
    display: block;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* Shop Now Button */
.shop-now-btn {
    background: transparent;
    color: white;
    border: 2px solid white;
    padding: 15px 40px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-radius: 0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.shop-now-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: white;
    transition: left 0.3s ease;
    z-index: -1;
}

.shop-now-btn:hover {
    color: black;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.2);
}

.shop-now-btn:hover::before {
    left: 0;
}

/* Carousel Indicators */
.carousel-indicators {
    bottom: 40px;
    margin: 0;
    z-index: 3;
}

.carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 8px;
    background-color: rgba(255, 255, 255, 0.3);
    border: none;
    transition: all 0.3s ease;
}

.carousel-indicators button.active {
    background-color: white;
    transform: scale(1.2);
}

/* Carousel Controls */
.carousel-control-prev,
.carousel-control-next {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    margin: 0 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    opacity: 0.7;
    z-index: 3;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background: rgba(255, 255, 255, 0.2);
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
}

/* Slide Animations */
.carousel-item {
    transition: transform 0.8s ease-in-out;
}

.hero-content > * {
    opacity: 0;
    transform: translateX(-50px);
    animation: slideInLeft 0.8s ease forwards;
}

.brand-name { animation-delay: 0.2s; }
.product-name { animation-delay: 0.4s; }
.product-model { animation-delay: 0.6s; }
.price-section { animation-delay: 0.8s; }
.shop-now-btn { animation-delay: 1s; }

@keyframes slideInLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Parallax Effect */
.hero-slide {
    background-attachment: scroll;
}

@media (min-width: 1200px) {
    .hero-slide {
        background-attachment: fixed;
    }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .product-name {
        font-size: 3.5rem;
    }
    
    .product-model {
        font-size: 1.8rem;
    }
    
    .price {
        font-size: 3rem;
    }
}

@media (max-width: 992px) {
    .product-name {
        font-size: 3rem;
    }
    
    .product-model {
        font-size: 1.5rem;
    }
    
    .price {
        font-size: 2.5rem;
    }
    
    .slide-overlay {
        background: linear-gradient(
            90deg,
            rgba(0, 0, 0, 0.8) 0%,
            rgba(0, 0, 0, 0.7) 50%,
            rgba(0, 0, 0, 0.6) 100%
        );
    }
}

@media (max-width: 768px) {
    .carousel {
        height: 80vh;
        min-height: 600px;
    }
    
    .hero-content {
        padding: 1rem;
        text-align: center;
    }
    
    .product-name {
        font-size: 2.5rem;
    }
    
    .product-model {
        font-size: 1.3rem;
    }
    
    .price {
        font-size: 2.2rem;
    }
    
    .slide-overlay {
        background: linear-gradient(
            135deg,
            rgba(0, 0, 0, 0.8) 0%,
            rgba(0, 0, 0, 0.7) 100%
        );
    }
    
    .carousel-control-prev,
    .carousel-control-next {
        width: 50px;
        height: 50px;
        margin: 0 15px;
    }
}

@media (max-width: 576px) {
    .carousel {
        height: 70vh;
        min-height: 500px;
    }
    
    .product-name {
        font-size: 2rem;
    }
    
    .product-model {
        font-size: 1.1rem;
    }
    
    .price {
        font-size: 1.8rem;
    }
    
    .shop-now-btn {
        padding: 12px 30px;
        font-size: 0.8rem;
    }
    
    .brand-name {
        font-size: 0.8rem;
        letter-spacing: 2px;
    }
}

/* Background Image Zoom Effect on Hover */
.hero-slide {
    transition: transform 0.5s ease;
}

.hero-slide:hover {
    transform: scale(1.02);
}

/* Ensure full width and proper positioning */
.hero-carousel-section,
.carousel,
.carousel-inner,
.carousel-item,
.hero-slide {
    width: 100%;
}

/* Product Cards Specific Styles */
.products-section {
  background-color: #f8f9fa;
}

.product-card {
  transition: all 0.3s ease;
  border-radius: 12px;
  overflow: hidden;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.1) !important;
}

/* Image Container and Transition Effects */
.image-container {
  height: 200px;
  overflow: hidden;
  position: relative;
}

.primary-image, .hover-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.primary-image {
  opacity: 1;
  transform: scale(1);
}

.hover-image {
  opacity: 0;
  transform: scale(1.1);
}

/* Hover Effects */
.product-card:hover .primary-image {
  opacity: 0;
  transform: scale(1.1);
}

.product-card:hover .hover-image {
  opacity: 1;
  transform: scale(1);
}

/* Card Body Content */
.product-name {
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.3;
  color: #2c3e50;
}

.product-rating {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.product-rating .text-muted {
  font-size: 0.85rem;
}

.product-price {
  font-weight: 700;
}

.vendor-info {
  display: flex;
  align-items: center;
  margin-top: 0.5rem;
}

.vendor-info i {
  font-size: 0.8rem;
}

.badge {
  font-size: 0.7rem;
  font-weight: 500;
  padding: 0.3rem 0.6rem;
  z-index: 10;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  color: #2c3e50;
  position: relative;
  padding-bottom: 1rem;
}

.section-title::after {
  content: '';
  position: relative;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background-color: #007bff;
  border-radius: 2px;
}

/* Mobile First Responsive Design */
@media (max-width: 576px) {
  .image-container {
    height: 160px;
  }
  
  .product-name {
    font-size: 0.95rem;
    margin-bottom: 0.4rem;
  }
  
  .product-price {
    font-size: 1rem;
  }
  
  .product-price .h5 {
    font-size: 1.1rem !important;
  }
  
  .badge {
    font-size: 0.6rem;
    padding: 0.2rem 0.4rem;
    margin: 0.3rem !important;
  }
  
  .vendor-info {
    font-size: 0.75rem;
  }
  
  .section-title {
    font-size: 1.5rem;
    padding-bottom: 0.8rem;
  }
  
  .products-section {
    padding: 2rem 0 !important;
  }
  
  .card-body {
    padding: 0.75rem !important;
  }
}

/* Tablet Styles */
@media (min-width: 577px) and (max-width: 768px) {
  .image-container {
    height: 180px;
  }
  
  .product-name {
    font-size: 1rem;
  }
  
  .section-title {
    font-size: 1.75rem;
  }
}

/* Desktop Styles */
@media (min-width: 769px) {
  .image-container {
    height: 200px;
  }
}

/* Large Desktop */
@media (min-width: 1200px) {
  .image-container {
    height: 220px;
  }
}

/* Ensure proper spacing on mobile */
.row.g-3 {
  margin-left: -0.5rem;
  margin-right: -0.5rem;
}

.row.g-3 > [class*="col-"] {
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

/* Categories Section Styles */
.categories-section {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.categories-filter {
  margin-bottom: 3rem;
}

.category-btn {
  border-radius: 25px;
  padding: 0.5rem 1.5rem;
  font-weight: 500;
  transition: all 0.3s ease;
  border-width: 2px;
  margin: 0.25rem;
}

.category-btn:hover,
.category-btn.active {
  background-color: #007bff;
  border-color: #007bff;
  color: white;
  transform: translateY(-2px);
}

/* Consistent Card Heights */
.product-card {
  transition: all 0.3s ease;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card-body {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.mt-auto {
  margin-top: auto !important;
}

/* Image Container */
.image-container {
  height: 200px;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
}

.primary-image, .hover-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.primary-image {
  opacity: 1;
  transform: scale(1);
}

.hover-image {
  opacity: 0;
  transform: scale(1.1);
}

/* Hover Effects */
.product-card:hover .primary-image {
  opacity: 0;
  transform: scale(1.1);
}

.product-card:hover .hover-image {
  opacity: 1;
  transform: scale(1);
}

/* Content Consistency */
.product-name {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
  color: #2c3e50;
  margin-bottom: 0.5rem;
  min-height: 2.6rem;
  display: -webkit-box;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-rating {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  margin-bottom: 0.5rem;
}

.product-rating .text-muted {
  font-size: 0.85rem;
}

.product-price {
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.vendor-info {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
  font-size: 0.85rem;
}

.vendor-info i {
  font-size: 0.8rem;
}

/* Add to Cart Button */
.add-to-cart {
  background-color: #007bff;
  border-color: #007bff;
  font-weight: 500;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  margin-top: auto;
}

.add-to-cart:hover {
  background-color: #0056b3;
  border-color: #0056b3;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

/* Category Badge Colors */
.bg-pink { background-color: #e83e8c !important; }
.bg-blue { background-color: #007bff !important; }
.bg-green { background-color: #28a745 !important; }
.bg-orange { background-color: #fd7e14 !important; }
.bg-purple { background-color: #6f42c1 !important; }
.bg-baby-blue { background-color: #17a2b8 !important; }
.bg-red { background-color: #dc3545 !important; }
.bg-gray { background-color: #6c757d !important; }

/* View All Button */
#view-all-btn {
  border-radius: 25px;
  padding: 0.75rem 2rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

#view-all-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 123, 255, 0.2);
}

/* Product Item Animation */
.product-item {
  transition: all 0.3s ease;
}

.product-item.hidden {
  display: none;
}

.product-item.visible {
  animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .categories-filter .d-flex {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 1rem;
    flex-wrap: nowrap;
  }
  
  .category-btn {
    white-space: nowrap;
    flex-shrink: 0;
    padding: 0.4rem 1.2rem;
    font-size: 0.9rem;
  }
  
  .image-container {
    height: 180px;
  }
  
  .product-name {
    font-size: 0.95rem;
    min-height: 2.4rem;
  }
}

@media (max-width: 576px) {
  .image-container {
    height: 160px;
  }
  
  .product-name {
    font-size: 0.9rem;
    min-height: 2.2rem;
  }
  
  .add-to-cart {
    padding: 0.5rem 0.8rem;
    font-size: 0.9rem;
  }
}

/* Add smooth transitions for product display */
.product-item {
    transition: all 0.3s ease;
}

/* Loading animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.product-item {
    animation: fadeIn 0.5s ease;
}

/* Footer Styles */
.footer-section-title {
  position: relative;
  padding-bottom: 0.5rem;
  margin-bottom: 1.2rem;
  font-size: 1.2rem;
}

.footer-features{
    background-color: #0d6ed6;
}

.footer-section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 35px;
  height: 2px;
  background-color: var(--primary-blue);
}

.social-icons {
  gap: 0.75rem;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background-color: #2a3a54;
  border-radius: 50%;
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-icon:hover {
  background-color: var(--primary-blue);
  transform: translateY(-2px);
  color: white;
}

/* Content Padding for Mobile */
.content {
  padding-bottom: 80px;
}

@media (max-width: 991.98px) {
  .content {
    padding-bottom: 100px;
  }
}

/* Badge positioning fix */
.badge {
  font-size: 0.6rem;
}

/* Navbar toggler customization */
.navbar-toggler:focus {
  box-shadow: none;
}

/* Best Selling Products Section */
.best-selling-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

.best-selling-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #007bff, #6f42c1, #e83e8c);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #2c3e50, #34495e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 4px;
    background: linear-gradient(90deg, #007bff, #6f42c1);
    border-radius: 2px;
}

.section-subtitle h3 {
    font-size: 1.8rem;
    font-weight: 300;
    letter-spacing: 1px;
}

.brand-text {
    font-size: 1.1rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: 600;
}

/* Product Card Styles */
.product-card-best {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: none;
    overflow: hidden;
    height: 100%;
    position: relative;
}

.product-card-best:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.product-card-best::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #007bff, #6f42c1);
}

.product-image-container {
    position: relative;
    overflow: hidden;
    height: 220px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.product-image {
    max-height: 180px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.product-card-best:hover .product-image {
    transform: scale(1.05);
}

.best-seller-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 2;
}

.vendor-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 123, 255, 0.9);
    color: white;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
}

.product-card-body {
    padding: 1.5rem;
    text-align: center;
}

.product-brand {
    font-size: 0.9rem;
    color: #6c757d;
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 1rem;
    line-height: 1.4;
    height: 2.8rem;
    overflow: hidden;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-rating {
    margin-bottom: 1rem;
}

.stars {
    color: #ffc107;
    font-size: 0.9rem;
}

.rating-count {
    color: #6c757d;
    font-size: 0.8rem;
    margin-left: 5px;
}

.product-price {
    display: flex;
    align-items: center;
    justify-content: start;
    gap: 10px;
    margin-bottom: 1.5rem;
}

.current-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: #007bff;
}

.original-price {
    font-size: 1rem;
    color: #6c757d;
    text-decoration: line-through;
}

.discount-badge {
    background: #28a745;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

.add-to-cart-btn {
    background: linear-gradient(135deg, #007bff, #0056b3);
    border: none;
    border-radius: 25px;
    padding: 10px 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    width: 100%;
}

.add-to-cart-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.4);
}

/* Responsive Design */
@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }
    
    .section-subtitle h3 {
        font-size: 1.4rem;
    }
    
    .brand-text {
        font-size: 1rem;
    }
    
    .product-image-container {
        height: 180px;
    }
    
    .product-card-body {
        padding: 1.25rem;
    }
    
    .product-title {
        font-size: 1rem;
        height: 2.6rem;
    }
}

@media (max-width: 576px) {
    .best-selling-section {
        padding: 2rem 0;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .section-subtitle h3 {
        font-size: 1.2rem;
    }
    
    .product-card-best {
        margin-bottom: 1.5rem;
    }
    
    .product-image-container {
        height: 160px;
    }
}

/* Animation for loading */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-card-best {
    animation: fadeInUp 0.6s ease-out;
}

/* Stagger animation for cards */
.product-card-best:nth-child(1) { animation-delay: 0.1s; }
.product-card-best:nth-child(2) { animation-delay: 0.2s; }
.product-card-best:nth-child(3) { animation-delay: 0.3s; }
.product-card-best:nth-child(4) { animation-delay: 0.4s; }
.product-card-best:nth-child(5) { animation-delay: 0.5s; }
.product-card-best:nth-child(6) { animation-delay: 0.6s; }

/* Loading state */
.products-loading {
    text-align: center;
    padding: 3rem;
}

.products-loading .spinner {
    width: 3rem;
    height: 3rem;
}

/* Featured Products Section */
.featured-products-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    position: relative;
}

/* .section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
} */

/* Featured Product Card */
.featured-product-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: none;
    overflow: hidden;
    height: 100%;
    position: relative;
}

.featured-product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.featured-product-image-container {
    position: relative;
    overflow: hidden;
    height: 250px;
    background: #f8f9fa;
}

.featured-product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.featured-product-card:hover .featured-product-image {
    transform: scale(1.05);
}

.featured-product-hover-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.featured-product-card:hover .featured-product-hover-image {
    opacity: 1;
}

.featured-product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    font-size: 0.8rem;
    padding: 5px 10px;
    z-index: 2;
}

.featured-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    border: none;
    z-index: 2;
}

.featured-product-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    height: calc(100% - 250px);
}

.featured-product-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.featured-product-vendor {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 0.5rem;
}

.featured-product-vendor i {
    color: #667eea;
}

.featured-product-rating {
    margin-bottom: 0.75rem;
}

.featured-product-rating .stars {
    color: #ffc107;
}

.featured-product-price {
    margin-bottom: 1rem;
}

.featured-current-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: #2c3e50;
}

.featured-original-price {
    font-size: 1rem;
    color: #6c757d;
    text-decoration: line-through;
    margin-left: 0.5rem;
}

.featured-product-actions {
    margin-top: auto;
}

.featured-product-actions .btn {
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

/* Loading Animation */
.loading-spinner {
    text-align: center;
    padding: 3rem 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }
    
    .featured-product-image-container {
        height: 200px;
    }
    
    .featured-product-body {
        padding: 1rem;
    }
}

/* Animation for new products */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.featured-product-card {
    animation: fadeInUp 0.6s ease forwards;
}

/* Stagger animation for cards */
.featured-product-card:nth-child(1) { animation-delay: 0.1s; }
.featured-product-card:nth-child(2) { animation-delay: 0.2s; }
.featured-product-card:nth-child(3) { animation-delay: 0.3s; }
.featured-product-card:nth-child(4) { animation-delay: 0.4s; }
.featured-product-card:nth-child(5) { animation-delay: 0.5s; }
.featured-product-card:nth-child(6) { animation-delay: 0.6s; }
.featured-product-card:nth-child(7) { animation-delay: 0.7s; }
.featured-product-card:nth-child(8) { animation-delay: 0.8s; }
.featured-product-card:nth-child(9) { animation-delay: 0.9s; }
.featured-product-card:nth-child(10) { animation-delay: 1.0s; }
.featured-product-card:nth-child(11) { animation-delay: 1.1s; }
.featured-product-card:nth-child(12) { animation-delay: 1.2s; }


/* Grocery Section Styles */
.grocery-section {
    background: linear-gradient(135deg, #f8fff8 0%, #f0f8f0 100%);
}

/* Grocery Product Cards */
.grocery-product-card {
    background: white;
    border: none;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    overflow: hidden;
    height: 100%;
}

.grocery-product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.grocery-product-image-container {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: #f8f9fa;
}

.grocery-product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.grocery-product-card:hover .grocery-product-image {
    transform: scale(1.05);
}

.grocery-product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
}

.grocery-category-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #28a745 !important;
    border: none;
}

.grocery-product-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    height: calc(100% - 200px);
}

.grocery-product-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.grocery-product-vendor {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 0.75rem;
}

.grocery-product-vendor i {
    color: #28a745;
}

.grocery-product-rating {
    margin-bottom: 0.75rem;
}

.grocery-product-rating .stars {
    color: #ffc107;
}

.grocery-product-price {
    margin-bottom: 1rem;
}

.grocery-current-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: #28a745;
}

.grocery-original-price {
    font-size: 1rem;
    color: #6c757d;
    text-decoration: line-through;
    margin-left: 0.5rem;
}

.grocery-product-actions .btn {
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.grocery-add-to-cart {
    background: #28a745;
    border: none;
    width: 100%;
}

.grocery-add-to-cart:hover {
    background: #218838;
    transform: translateY(-2px);
}

/* Fresh Badge */
.fresh-badge {
    background: linear-gradient(135deg, #28a745, #20c997) !important;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(40, 167, 69, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0);
    }
}

/* Organic Badge */
.organic-badge {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24) !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .grocery-product-image-container {
        height: 180px;
    }
    
    .grocery-product-body {
        padding: 1.25rem;
    }
    
    .grocery-product-title {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .grocery-product-image-container {
        height: 160px;
    }
    
    .grocery-product-body {
        padding: 1rem;
    }
}
