:root {
    --primary-color: #4361ee;
    --primary-light: #e0e7ff;
    --secondary-color: #3f37c9;
    --accent-color: #4cc9f0;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --gray-color: #6c757d;
    --light-gray: #e9ecef;
    --success-color: #4bb543;
    --warning-color: #f0ad4e;
    --danger-color: #d9534f;
    --border-radius: 12px;
    --border-radius-sm: 8px;
    --box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --box-shadow-md: 0 8px 30px rgba(0, 0, 0, 0.12);
    --box-shadow-lg: 0 15px 50px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #f5f7fa;
    color: var(--dark-color);
    line-height: 1.6;
    padding-top: 5%;
}

.main-content {
    padding-top: 90px; /* previously 5% */
    padding-left: 20px;
    padding-right: 20px;
    margin-left: 90px;
    min-height: 100vh;
}


.dashboard-wrapper {
    max-width: 1350px;
    margin: 0 auto;
}

.btn-shop-now {
    display: inline-flex;
    align-items: center;
    padding: 14px 32px;
    background-color: white;
    color: var(--primary-color);
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: none;
    cursor: pointer;
    font-size: 1rem;
    gap: 8px;
}

.btn-shop-now:hover {
    background-color: var(--primary-dark);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.btn-shop-now i {
    transition: transform 0.3s ease;
}

.btn-shop-now:hover i {
    transform: translateX(3px);
}

/* Hero Banner */
.hero-banner {
    margin-top: 20px; /* Add this line */
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    margin-bottom: 30px;
    height: 400px;
    box-shadow: var(--box-shadow);
}

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

.banner-content {
    position: absolute;
    bottom: 50px;
    left: 50px;
    max-width: 500px;
    color: white;
    z-index: 2;
}

.banner-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.banner-content p {
    font-size: 1.2rem;
    margin-bottom: 20px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.btn-shop-now {
    display: inline-block;
    padding: 12px 30px;
    background-color: white;
    color: var(--primary-color);
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: none;
    cursor: pointer;
}

.btn-shop-now:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* Swiper Navigation */
.hero-swiper {
    position: relative;
}

.hero-swiper .swiper-button-next,
.hero-swiper .swiper-button-prev {
    color: white;
    background: rgba(0, 0, 0, 0.3);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    transition: var(--transition);
    opacity: 0;
    visibility: hidden;
}

.hero-swiper:hover .swiper-button-next,
.hero-swiper:hover .swiper-button-prev {
    opacity: 1;
    visibility: visible;
}

.hero-swiper .swiper-button-next:hover,
.hero-swiper .swiper-button-prev:hover {
    background: rgba(0, 0, 0, 0.5);
    transform: scale(1.1);
}

.hero-swiper .swiper-button-next::after,
.hero-swiper .swiper-button-prev::after {
    font-size: 1.5rem;
    font-weight: bold;
}

.hero-swiper .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: white;
    opacity: 0.5;
    transition: var(--transition);
}

.hero-swiper .swiper-pagination-bullet-active {
    opacity: 1;
    background: var(--primary-color);
    transform: scale(1.2);
}

/* Section Styling */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.section-title {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 0;
    color: var(--dark-color);
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 2px;
}

.section-title i {
    color: var(--primary-color);
}

.view-all {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.95rem;
}

.view-all:hover {
    color: var(--secondary-color);
    gap: 8px;
}

/* Category Section */
.category-section {
    margin-bottom: 40px;
    background-color: white;
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 20px;
}

.category-card {
    display: block;
    text-decoration: none;
    color: var(--dark-color);
    transition: var(--transition);
    text-align: center;
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
}

.category-card:hover {
    transform: translateY(-5px);
}

.category-img-container {
    width: 100%;
    height: 120px;
    border-radius: var(--border-radius);
    overflow: hidden;
    margin-bottom: 10px;
    background-color: var(--light-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.category-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.category-card h4 {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--dark-color);
}

/* Recommended Products */

/* Enhanced Recommended Carousel with Horizontal Scroll */

/* Toast Notifications */
.toast-notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 15px 25px;
    border-radius: 5px;
    color: white;
    font-weight: 500;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.toast-notification.show {
    transform: translateY(0);
    opacity: 1;
}

.toast-notification.success {
    background-color: #4CAF50;
}

.toast-notification.error {
    background-color: #F44336;
}

/* Loading state for buttons */
.fa-spin {
    margin-right: 5px;
}



.recommended-carousel {
    display: flex;
    gap: 20px;
    padding: 10px 5px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) var(--light-gray);
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 15px;
}

/* Custom scrollbar for Webkit browsers */
.recommended-carousel::-webkit-scrollbar {
    height: 6px;
}

.recommended-carousel::-webkit-scrollbar-track {
    background: var(--light-gray);
    border-radius: 10px;
}

.recommended-carousel::-webkit-scrollbar-thumb {
    background-color: var(--primary-color);
    border-radius: 10px;
}

.recommended-carousel::-webkit-scrollbar-thumb:hover {
    background-color: var(--secondary-color);
}

/* Product card adjustments for scroll */
.product-card {
    flex: 0 0 220px;
    scroll-snap-align: start;
    scroll-margin: 10px;
}

/* Navigation controls */
.carousel-controls {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-bottom: 10px;
}

.carousel-prev,
.carousel-next {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: white;
    color: var(--primary-color);
    border: 1px solid var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.carousel-prev:hover,
.carousel-next:hover {
    background-color: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

/* Disabled state for buttons */
.carousel-prev.disabled,
.carousel-next.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.recommended-section {
    margin-bottom: 40px;
    background-color: white;
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    position: relative;
}

.carousel-controls {
    display: flex;
    gap: 10px;
}

.carousel-controls button {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: white;
    color: var(--primary-color);
    border: 1px solid var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.carousel-controls button:hover {
    background-color: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

.recommended-carousel {
    display: flex;
    gap: 20px;
    padding: 10px 5px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    scroll-behavior: smooth;
    background-color: #f0f0f0 ;
}

.recommended-carousel::-webkit-scrollbar {
    display: none;
}

.product-card {
    flex: 0 0 220px;
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
    scroll-snap-align: start;
    position: relative;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-md);
    border-color: var(--primary-light);
}

.product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: var(--primary-color);
    color: white;
    padding: 3px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 2;
}

.product-img-container {
    width: 100%;
    height: 180px;
    background-color: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.product-img-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    mix-blend-mode: multiply;
    transition: var(--transition);
}

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

.product-info {
    padding: 15px;
}

.product-info h4 {
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 40px;
    color: var(--dark-color);
}

.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.product-meta .price.discount-price {
    font-weight: 600;
    font-size: 1.1rem;
    display: flex;
    align-items: flex-start;
    margin-left: -60rem;
}

.price {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.wishlist-btn {
    background: none;
    border: none;
    color: var(--gray-color);
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition);
    padding: 5px;
}

.wishlist-btn:hover {
    color: var(--danger-color);
    transform: scale(1.1);
}

.add-to-cart-btn {
    width: 100%;
    padding: 8px;
    background-color: var(--primary-light);
    color: var(--primary-color);
    border: none;
    border-radius: var(--border-radius-sm);
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.add-to-cart-btn:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Cart Message */
.cart-message {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: var(--success-color);
    color: white;
    padding: 15px 20px;
    border-radius: var(--border-radius-sm);
    box-shadow: var(--box-shadow);
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideIn 0.3s ease-out;
}

/* Add to cart animation */
.add-to-cart-btn.clicked {
    animation: pulse 0.5s;
    background-color: var(--success-color);
}

/* Top Products */
.top-products {
    margin-bottom: 40px;
    background-color: white;
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.top-products-list {
    display: grid;
    gap: 15px;
}

.top-product-item {
    display: flex;
    align-items: center;
    padding: 15px;
    border-radius: var(--border-radius);
    transition: var(--transition);
    background-color: #f8f9fa;
    gap: 15px;
}

.top-product-item:hover {
    background-color: #e9ecef;
    transform: translateX(5px);
}

.rank {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
    min-width: 30px;
    text-align: center;
}

.product-img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border-radius: 8px;
    background-color: white;
    padding: 5px;
}

.product-details {
    flex: 1;
}

.product-details h4 {
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 5px;
}

.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price {
    font-weight: 600;
    color: var(--primary-color);
}

.sold {
    font-size: 0.85rem;
    color: var(--gray-color);
}

/* Responsive Adjustments */
@media (max-width: 1200px) {
    .main-content {
        margin-left: 80px;
    }
    
    .hero-banner {
        height: 350px;
    }
    
    .banner-content h2 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .main-content {
        margin-left: 0;
        padding-top: 70px;
    }
    
    .hero-banner {
        height: 250px;
    }
    
    .banner-content {
        left: 20px;
        bottom: 20px;
    }
    
    .banner-content h2 {
        font-size: 1.5rem;
        margin-bottom: 5px;
    }
    
    .banner-content p {
        font-size: 1rem;
        margin-bottom: 10px;
    }
    
    .btn-shop-now {
        padding: 8px 20px;
        font-size: 0.9rem;
    }
    
    .category-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 15px;
    }
    
    .product-card {
        flex: 0 0 180px;
    }
}

@media (max-width: 480px) {
    .hero-banner {
        height: 200px;
    }
    
    .banner-content {
        left: 15px;
        bottom: 15px;
        max-width: 80%;
    }
    
    .section-title {
        font-size: 1.4rem;
    }
    
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .recommended-carousel {
        gap: 15px;
    }
    
    .top-product-item {
        padding: 10px;
    }
}


@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.close-message {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0;
    margin-left: 10px;
}



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

/* OUT OF STOCK */
/* .out-of-stock-overlay {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: rgba(255, 0, 0, 0.8);
    color: white;
    font-weight: bold;
    padding: 5px 10px;
    border-radius: 5px;
    z-index: 2;
    font-size: 14px;
} */
.product-img-container {
    position: relative;
}

/* Improved Floating Navigation */
.floating-nav {
  position: fixed;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: rgba(255, 255, 255, 0.9);
  padding: 12px 8px;
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(31, 38, 135, 0.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.floating-nav a {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #4361ee, #3a0ca3);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(67, 97, 238, 0.25);
  color: white;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
}

.floating-nav a::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: 0.5s;
}

.floating-nav a:hover::before {
  left: 100%;
}

.floating-nav a:hover {
  transform: translateY(-3px) scale(1.1);
  box-shadow: 0 6px 16px rgba(67, 97, 238, 0.35);
}

.floating-nav a i {
  font-size: 18px;
}

/* Tooltip for navigation items */
.floating-nav a::after {
  content: attr(title);
  position: absolute;
  right: 60px;
  background: #3a0ca3;
  color: white;
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
}

.floating-nav a:hover::after {
  opacity: 1;
  right: 50px;
}

.floating-nav.visible {
  opacity: 1;
  pointer-events: auto;
}

/*Discovery Section */
.section-wrapper {
  max-width: 1350px;
  margin: 0 auto;
  padding: 0 20px;
}

.daily-discovery {
  margin: 5px auto 80px auto; /* top, sides, bottom - centered horizontally */
  width: calc(112% - 113px); /* full width minus some margin */
  max-width: 1400px;           /* match this with other sections like top-products */
  padding: 30px;
  background: white;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05);
  transform: translateX(30px); /* slight right shift */
}

.daily-discovery .section-header {
  margin-bottom: 30px;
}

.daily-discovery .section-title {
  font-size: 2rem;
  color: #000000;
}

.daily-discovery .section-title i {
  color: #f72585;
}

.discovery-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
  margin-bottom: 30px;
}

.discovery-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  text-align: center;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  text-decoration: none;
  color: inherit;
  position: relative;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.03);
}

.discovery-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
  border-color: rgba(67, 97, 238, 0.2);
}

.discovery-img {
  position: relative;
  overflow: hidden;
  height: 200px;
  background: #f8f9fa;
}

.discovery-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.discovery-info {
  padding: 16px 12px;
}

.discovery-info h4 {
  font-size: 15px;
  margin: 0 0 8px;
  font-weight: 500;
  color: #2b2d42;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 42px;
}

.discovery-info .price {
  font-weight: 700;
  color: #2548f7;
  font-size: 1.1rem;
  margin-bottom: 0;
}

/* Load More Button */
.load-more-container {
  text-align: center;
  margin-top: 20px;
}

.load-more-btn {
  background: linear-gradient(135deg, #4361ee, #3a0ca3);
  color: white;
  border: none;
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(67, 97, 238, 0.3);
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.load-more-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(67, 97, 238, 0.4);
}

.load-more-btn:active {
  transform: translateY(0);
}

.load-more-btn i {
  transition: transform 0.3s ease;
}

.load-more-btn:hover i {
  transform: translateX(3px);
}

/* Responsive adjustments */
@media (max-width: 1200px) {
  .discovery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 992px) {
  .discovery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .discovery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  
  .floating-nav {
    right: 10px;
    padding: 8px 6px;
  }
  
  .floating-nav a {
    width: 38px;
    height: 38px;
  }
}

@media (max-width: 480px) {
  .discovery-grid {
    grid-template-columns: 1fr;
  }
  
  .daily-discovery {
    padding: 20px 15px;
  }
  
  .discovery-img {
    height: 180px;
  }
}

/* Style for the original price */
.original-price {
    color: red;  /* Red color for the original price */
    font-weight: bold;
    margin-right: 8px;
}

/* Strikethrough for discounted price */
.discount-price {
    text-decoration: line-through;  /* Strikethrough for discounted price */
    color: gray;  /* Gray color for the discounted price */
}


/* Live Stream Section Styles - 9:16 Aspect Ratio */
        .live-stream-section {
            padding: 20px;
            margin: 20px 0;
            background: white;
            box-shadow: 0 4px 12px rgba(0,0,0,0.1);
            border-radius: 12px;
        }
        
        .section-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
        }
        
        .section-title {
            font-size: 1.5rem;
            font-weight: 600;
            color: #333;
            display: flex;
            align-items: center;
            gap: 10px;
        }
        
        .view-all {
            color: #007bff;
            text-decoration: none;
            font-weight: 500;
            display: flex;
            align-items: center;
            gap: 5px;
        }
        
        .live-indicator {
            position: absolute;
            top: 10px;
            left: 10px;
            background: #ff4757;
            color: white;
            padding: 4px 8px;
            border-radius: 4px;
            font-size: 12px;
            font-weight: bold;
            display: flex;
            align-items: center;
            gap: 4px;
            z-index: 2;
        }
        
        .live-indicator::before {
            content: '';
            display: block;
            width: 8px;
            height: 8px;
            background: white;
            border-radius: 50%;
            animation: pulse 1.5s infinite;
        }
        
        @keyframes pulse {
            0% { opacity: 1; }
            50% { opacity: 0.4; }
            100% { opacity: 1; }
        }
        
        /* Desktop Grid - Maximum 4 videos */
        .live-stream-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 20px;
            margin-top: 15px;
        }
        
        .live-stream-card {
            background: white;
            border-radius: 12px;
            overflow: hidden;
            box-shadow: 0 4px 12px rgba(0,0,0,0.1);
            transition: transform 0.3s ease, box-shadow 0.3s ease;
            position: relative;
            display: flex;
            flex-direction: column;
        }
        
        .live-stream-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 8px 20px rgba(0,0,0,0.15);
        }
        
        /* 9:16 Aspect Ratio Container */
        .live-player-container {
            position: relative;
            width: 100%;
            padding-bottom: 177.78%; /* 9:16 aspect ratio (16/9 = 177.78%) */
            overflow: hidden;
            background: #000;
        }
        
        .live-iframe {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            border: none;
        }
        
        .viewer-count {
            position: absolute;
            bottom: 10px;
            right: 10px;
            background: rgba(0,0,0,0.7);
            color: white;
            padding: 4px 8px;
            border-radius: 4px;
            font-size: 12px;
            display: flex;
            align-items: center;
            gap: 4px;
            z-index: 2;
        }
        
        .live-stream-info {
            padding: 15px;
            flex-grow: 1;
            display: flex;
            flex-direction: column;
        }
        
        .live-stream-info h4 {
            margin: 0 0 8px 0;
            font-size: 16px;
            font-weight: 600;
            line-height: 1.4;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }
        
        .streamer-info {
            display: flex;
            align-items: center;
            gap: 8px;
            margin-top: auto;
        }
        
        .streamer-logo {
            width: 24px;
            height: 24px;
            border-radius: 50%;
            object-fit: cover;
        }
        
        .streamer-name {
            font-size: 14px;
            color: #6c757d;
            font-weight: 500;
        }
        
        .no-live-streams {
            text-align: center;
            padding: 40px 20px;
            color: #6c757d;
            grid-column: 1 / -1;
        }
        
        .no-live-streams i {
            font-size: 48px;
            margin-bottom: 15px;
            color: #dee2e6;
        }
        
        .watch-live-btn {
            display: block;
            margin-top: 12px;
            padding: 8px 15px;
            background: #007bff;
            color: white;
            text-align: center;
            border-radius: 6px;
            font-weight: 500;
            transition: background 0.3s ease;
            text-decoration: none;
        }
        
        .watch-live-btn:hover {
            background: #0069d9;
            text-decoration: none;
            color: white;
        }
        
        .live-placeholder {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            background: linear-gradient(45deg, #007bff, #6610f2);
            color: white;
            font-size: 16px;
            font-weight: 600;
        }
        
        /* Mobile Responsiveness - Maximum 2 videos in a row */
        @media (max-width: 768px) {
            .live-stream-grid {
                grid-template-columns: repeat(2, 1fr);
                gap: 15px;
            }
            
            .live-stream-section {
                padding: 1rem;
            }
            
            .section-title {
                font-size: 1.3rem;
            }
        }
        
        @media (max-width: 576px) {
            .live-stream-grid {
                display: flex;
                flex-direction: row;
                overflow-x: auto;
                scroll-snap-type: x mandatory;
                gap: 15px;
                padding-bottom: 10px;
                -webkit-overflow-scrolling: touch;
            }
            
            .live-stream-card {
                flex: 0 0 calc(100% - 30px);
                scroll-snap-align: start;
            }
            
            .live-player-container {
                padding-bottom: 177.78%; /* Maintain 9:16 aspect ratio */
            }
            
            /* Hide scrollbar for Chrome, Safari and Opera */
            .live-stream-grid::-webkit-scrollbar {
                display: none;
            }
            
            /* Hide scrollbar for IE, Edge and Firefox */
            .live-stream-grid {
                -ms-overflow-style: none;  /* IE and Edge */
                scrollbar-width: none;  /* Firefox */
            }
        }

/* Popup Overlay */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    backdrop-filter: blur(5px);
}

.popup-content {
    background: transparent;
    border-radius: 0;
    padding: 0;
    text-align: center;
    max-width: 500px;
    width: 90%;
    position: relative;
    box-shadow: none;
    animation: popupAppear 0.5s ease-out;
    display: flex;
    flex-direction: column;
    align-items: center;
}

@keyframes popupAppear {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.popup-image {
    width: 80%;
    max-width: 400px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.popup-title {
    font-size: 24px;
    font-weight: 700;
    color: #000080;
    margin-bottom: 15px;
    width: 100%;
}

.popup-message {
    font-size: 16px;
    color: #fff;
    margin-bottom: 5px;
    line-height: 1.5;
    width: 100%;
}

/* Countdown Timer - Centered and responsive */
.countdown-timer {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 25px 0;
    width: 80%; /* Match image width */
    max-width: 400px; /* Match max image width */
    margin-top: -10px;
}

.countdown-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 10px;
    flex: 1; /* Make items responsive */
    max-width: 70px; /* Limit max size */
    border: 2px solid #000080;
    backdrop-filter: blur(10px);
    margin-top: -5rem;
}

.countdown-number {
    font-size: 28px;
    font-weight: 800;
    color: #fff;
    display: block;
}

.countdown-label {
    font-size: 10px;
    color: #ddd;
    text-transform: uppercase;
    margin-top: 5px;
}

.popup-highlight {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    padding: 15px;
    border-radius: 10px;
    margin: 20px 0;
    font-weight: 600;
    font-size: 18px;
    width: 80%; /* Match image width */
    max-width: 400px; /* Match max image width */
}

.close-popup {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 24px;
    color: #fff;
    cursor: pointer;
    transition: color 0.3s;
    z-index: 10;
}

.close-popup:hover {
    color: #e74c3c;
}

/* Continue Shopping Button - Centered and responsive */
.continue-btn {
    background: linear-gradient(135deg, #000080, #000b70);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    margin-top: -1rem;
}

.continue-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.4);
}

.continue-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 128, 0.4);
}


/* Responsive adjustments */
@media (max-width: 768px) {
    .popup-content {
        width: 95%;
    }
    
    .popup-image {
        width: 90%;
    }
    
    .countdown-timer {
        width: 90%;
        gap: 10px;
    }
    
    .countdown-item {
        padding: 10px;
        max-width: 70px;
    }
    
    .countdown-number {
        font-size: 24px;
    }
    
    .popup-highlight {
        width: 90%;
        font-size: 16px;
        padding: 12px;
    }
    
    .continue-btn {
        width: 90%;
        padding: 10px 20px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .countdown-item {
        max-width: 60px;
        padding: 8px;
    }
    
    .countdown-number {
        font-size: 20px;
    }
    
    .countdown-label {
        font-size: 10px;
    }
}

