:root {
            --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
            --accent-color: #4facfe;
            --text-dark: #2c3e50;
            --text-light: #7f8c8d;
            --border-color: #e9ecef;
            --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
            --shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.15);
        }

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

        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            background-color: #f4f6f9;
            color: var(--text-dark);
            line-height: 1.6;
        }

        /* Header Styles */

.mega-dropdown { display: none; }
.mega-parent:hover .mega-dropdown { display: block; }

/* Highlight active parent category with blue border */
.mega-parent.active-parent img {
  border: 3px solid #1976d2 !important;
  box-shadow: 0 0 0 2px #e3f0fd;
}

.mega-dropdown .d-flex {
  flex-wrap: wrap;
  overflow: visible !important;
  max-height: none !important;
}

/* Optional: Style horizontal scroll bar for better UX */
.mega-dropdown .d-flex {
  flex-wrap: wrap;
  overflow: visible;
  max-height: none;
}


        .navbar-custom {
            background: var(--primary-gradient);
            padding: 0;
            box-shadow: var(--shadow);
            position: fixed;
            top: 10;
            width: 100%;
            z-index: 1000;
        }

        .navbar-brand {
            font-size: 1.8rem;
            font-weight: 700;
            color: white !important;
            text-decoration: none;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .navbar-brand i {
            font-size: 2rem;
            color: #ffd700;
        }

        /* Navigation Categories */
        .nav-categories {
            display: flex;
            align-items: center;
            justify-content: center;
            flex-wrap: wrap;
            gap: 0.5rem;
            padding: 1rem 0;
        }

        .category-dropdown {
            position: relative;
            display: inline-block;
        }

        .category-btn {
            background: none;
            border: none;
            color: white;
            padding: 0.75rem 1.25rem;
            border-radius: 25px;
            text-decoration: none;
            font-weight: 500;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            gap: 0.5rem;
            white-space: nowrap;
            cursor: pointer;
        }

        .category-btn:hover {
            background: rgba(255, 255, 255, 0.15);
            color: white;
            transform: translateY(-2px);
        }

        .category-btn i {
            font-size: 1.1rem;
        }

        .category-btn .dropdown-icon {
            font-size: 0.8rem;
            transition: transform 0.3s ease;
        }

        .category-dropdown:hover .dropdown-icon {
            transform: rotate(180deg);
        }

        /* Mega Menu Styles */
        .mega-menu {
            position: absolute;
            top: 100%;
            left: 50%;
            transform: translateX(-50%);
            background: white;
            border-radius: 15px;
            box-shadow: var(--shadow);
            padding: 2rem;
            min-width: 800px;
            max-width: 1000px;
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s ease;
            z-index: 1000;
            margin-top: 10px;
        }

        .category-dropdown:hover .mega-menu {
            opacity: 1;
            visibility: visible;
            transform: translateX(-50%) translateY(0);
        }

        .mega-menu-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 2rem;
        }

        .mega-menu-column h5 {
            color: var(--text-dark);
            font-weight: 600;
            margin-bottom: 1rem;
            padding-bottom: 0.5rem;
            border-bottom: 2px solid var(--accent-color);
            display: inline-block;
        }

        .mega-menu-item {
            display: block;
            padding: 0.5rem 0;
            color: var(--text-light);
            text-decoration: none;
            transition: all 0.3s ease;
            border-bottom: 1px solid #f0f0f0;
        }

        .mega-menu-item:hover {
            color: var(--accent-color);
            padding-left: 10px;
        }

        #subcategoriesBar {
  padding-left: 24px; /* 1.5rem, matches .mx-3 of parent bar */
}

        /* Hero Section */
        .hero-section {
            background: var(--primary-gradient);
            color: white;
            padding: 120px 0 80px;
            position: relative;
            overflow: hidden;
        }

        .hero-section::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255,255,255,0.1)" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,149.3C960,160,1056,160,1152,138.7C1248,117,1344,75,1392,53.3L1440,32L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') bottom;
            background-size: cover;
        }

        .hero-content {
            position: relative;
            z-index: 2;
        }

        .hero-title {
            font-size: 3.5rem;
            font-weight: 700;
            margin-bottom: 1rem;
            text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
        }

        .hero-subtitle {
            font-size: 1.25rem;
            margin-bottom: 2rem;
            opacity: 0.9;
        }

        .hero-price {
            font-size: 2.5rem;
            font-weight: 700;
            color: #ffd700;
            margin-bottom: 1rem;
        }

        .hero-product-card {
            background: rgba(255, 255, 255, 0.15);
            border-radius: 20px;
            padding: 2rem;
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.2);
            text-align: center;
        }

        .hero-product-image {
            width: 100%;
            max-width: 400px;
            height: 300px;
            object-fit: cover;
            border-radius: 15px;
            margin-bottom: 1.5rem;
        }

        .hero-actions {
            display: flex;
            justify-content: center;
            gap: 1rem;
            margin-top: 1.5rem;
        }

        .hero-action-btn {
            background: rgba(255, 255, 255, 0.2);
            border: none;
            width: 60px;
            height: 60px;
            border-radius: 50%;
            color: white;
            font-size: 1.5rem;
            transition: all 0.3s ease;
            cursor: pointer;
        }

        .hero-action-btn:hover {
            background: rgba(255, 255, 255, 0.3);
            transform: scale(1.1);
        }

        .btn-primary-custom {
            background: var(--secondary-gradient);
            border: none;
            padding: 1rem 2rem;
            border-radius: 50px;
            color: white;
            font-weight: 600;
            font-size: 1.1rem;
            transition: all 0.3s ease;
            text-decoration: none;
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
        }

        .btn-primary-custom:hover {
            transform: translateY(-3px);
            box-shadow: 0 15px 30px rgba(245, 87, 108, 0.4);
            color: white;
        }

        /* Features Bar */
        .features-bar {
            background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
            border-radius: 50px;
            padding: 1.5rem 2rem;
            margin: 3rem 0;
            color: white;
            box-shadow: var(--shadow);
        }

        .feature-item {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 1rem;
            text-align: center;
        }

        .feature-icon {
            font-size: 2.5rem;
            color: #ffd700;
        }

        .feature-text {
            font-weight: 600;
        }

        /* Section Titles */
        .section-title {
            font-size: 3rem;
            font-weight: 700;
            background: var(--primary-gradient);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            text-align: center;
            margin: 4rem 0 3rem;
        }

        /* Champion Categories */
        .champion-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
            gap: 2rem;
            margin-bottom: 4rem;
        }

        .champion-card {
            border-radius: 20px;
            overflow: hidden;
            box-shadow: var(--shadow);
            transition: all 0.3s ease;
            height: 280px;
            position: relative;
            cursor: pointer;
        }

        .champion-card:hover {
            transform: translateY(-10px);
            box-shadow: var(--shadow-hover);
        }

        .champion-card-image {
            width: 100%;
            height: 100%;
            object-fit: cover;
            position: absolute;
            top: 0;
            left: 0;
        }

        .champion-card-overlay {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(45deg, rgba(0,0,0,0.7), rgba(0,0,0,0.3));
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            padding: 2rem;
            color: white;
        }

        .champion-card-content h5 {
            font-size: 1.5rem;
            font-weight: 700;
            margin-bottom: 0.5rem;
        }

        .champion-card-content p {
            font-size: 1rem;
            opacity: 0.9;
        }

        .champion-price {
            background: rgba(255, 255, 255, 0.9);
            color: var(--text-dark);
            padding: 0.75rem 1.5rem;
            border-radius: 50px;
            font-weight: 700;
            font-size: 1.2rem;
            display: inline-block;
            align-self: flex-start;
        }

        /* Deals Section */
        .deals-section {
            background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
            border-radius: 30px;
            padding: 4rem 2rem;
            margin: 4rem 0;
            position: relative;
            overflow: hidden;
        }

        .deals-section::before {
            content: '';
            position: absolute;
            top: -50%;
            right: -50%;
            width: 200%;
            height: 200%;
            background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
            animation: rotate 20s linear infinite;
        }

        @keyframes rotate {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }

        .deals-content {
            position: relative;
            z-index: 2;
        }

        .carousel-control-prev,
        .carousel-control-next {
            width: 60px;
            height: 60px;
            background: var(--primary-gradient);
            border-radius: 50%;
            margin: auto;
            opacity: 0.8;
            transition: all 0.3s ease;
        }

        .carousel-control-prev:hover,
        .carousel-control-next:hover {
            opacity: 1;
            transform: scale(1.1);
        }

        .carousel-control-prev-icon,
        .carousel-control-next-icon {
            width: 20px;
            height: 20px;
        }

        /* Category Section Styles */
        .category-section {
            background: white;
            border-radius: 30px;
            box-shadow: 0 4px 6px rgba(0,0,0,0.05);
            margin-bottom: 2rem;
            padding: 1.5rem;
        }

        .category-card,
        .subcat-card,
        .parent-category-card,
        .subcategory-card {
            transition: all 0.3s ease;
            cursor: pointer;
            border-radius: 50%;
            overflow: hidden;
            display: flex;
            justify-content: center;
            align-items: center;
            text-align: center;
        }

        .product-card {
            background: #f8f9fa;
            border: none;
            border-radius: 30px;
            transition: transform 0.3s ease;
            overflow: hidden;
        }

        .product-card:hover {
            transform: scale(1.03);
            box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        }

        .active-category {
            border: 3px solid #0d6efd;
            box-shadow: 0 0 10px rgba(13,110,253,0.3);
        }

        .active-subcategory {
            border: 3px solid #198754;
            box-shadow: 0 0 10px rgba(25,135,84,0.3);
        }

        .hover-products {
            position: absolute;
            top: 100%;
            left: 50%;
            transform: translateX(-50%);
            width: 250px;
            z-index: 1000;
            background: white;
            border: 1px solid #dee2e6;
            border-radius: 20px;
            box-shadow: 0 4px 6px rgba(0,0,0,0.1);
            padding: 1rem;
            display: none;
        }

        .subcat-card:hover .hover-products {
            display: block;
        }

        /* --- Category grid alignment and size --- */
        .category-section .col-3,
        .category-section .col-md-3,
        .category-section .col-lg-2 {
            flex: 0 0 120px !important;
            max-width: 120px !important;
            padding-left: 8px;
            padding-right: 8px;
        }

        .parent-category-card,
        .subcategory-card {
            width: 90px;
            height: 90px;
            border-radius: 50%;
            overflow: hidden;
            display: flex;
            justify-content: center;
            align-items: center;
            margin: 0 auto 8px auto;
            border: 2px solid #eee;
            background: #fff;
            box-shadow: 0 2px 8px rgba(0,0,0,0.04);
            transition: box-shadow 0.2s;
        }

        .parent-category-card img,
        .subcategory-card img {
            width: 80px;
            height: 80px;
            object-fit: cover;
            border-radius: 50%;
        }

        .category-card-content {
            text-align: center;
            font-size: 14px;
            font-weight: 500;
            color: #222;
            margin-top: 4px;
            margin-bottom: 8px;
            min-height: 36px;
        }

        /* --- Product card grid alignment and size --- */
        .product-card {
            background: #f8f9fa;
            border: none;
            border-radius: 20px;
            transition: transform 0.3s ease;
            overflow: hidden;
            min-height: 220px;
            max-width: 240px;
            margin: 0 auto;
            box-shadow: 0 2px 8px rgba(0,0,0,0.04);
        }

        .product-card .card-body {
            padding: 1rem 0.5rem;
        }

        .product-card h5.card-title {
            font-size: 1rem;
            font-weight: 600;
        }

        .product-card .card-text {
            font-size: 0.95rem;
        }

        .product-card .h3 {
            font-size: 1.2rem;
        }

        .product-card:hover {
            transform: scale(1.03);
            box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        }

        /* Responsive Design */
        @media (max-width: 768px) {
            .hero-title {
                font-size: 2.5rem;
            }
            
            .section-title {
                font-size: 2rem;
            }
            
            .nav-categories {
                flex-direction: column;
                gap: 0.25rem;
            }
            
            .category-btn {
                padding: 0.5rem 1rem;
                font-size: 0.9rem;
            }
            
            .mega-menu {
                position: static;
                transform: none;
                opacity: 1;
                visibility: visible;
                margin-top: 0;
                min-width: auto;
                max-width: none;
                width: 100%;
                display: none;
            }
            
            .mega-menu.show {
                display: block;
            }
            
            .mega-menu-grid {
                grid-template-columns: 1fr;
                gap: 1rem;
            }
            
            .champion-grid {
                grid-template-columns: 1fr;
            }
            
            .champion-card {
                height: 250px;
            }
        }

        /* Animation Classes */
        .fade-in {
            opacity: 0;
            transform: translateY(30px);
            animation: fadeInUp 0.8s ease forwards;
        }

        @keyframes fadeInUp {
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .animate-on-scroll {
            opacity: 0;
            transform: translateY(50px);
            transition: all 0.8s ease;
        }

        .animate-on-scroll.animated {
            opacity: 1;
            transform: translateY(0);
        }
/* Additional Mega Menu Styles for Clickable Links */
.hover-primary:hover {
  color: #0d6efd !important;
  text-decoration: underline !important;
}

.mega-dropdown a:hover {
  color: #0d6efd !important;
}

.mega-parent:hover {
  transform: translateY(-2px);
  transition: transform 0.2s ease;
}

.mega-parent img:hover {
  border-color: #0d6efd !important;
}

/* Enhanced Product Card Styles */
.product-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15) !important;
}

/* Breadcrumb styling */
.breadcrumb-item + .breadcrumb-item::before {
  content: "›";
  color: #6c757d;
}

/* Filter sidebar styling */
.card-header {
  background-color: #f8f9fa;
  border-bottom: 1px solid #dee2e6;
}

/* Button hover effects */
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(13, 110, 253, 0.3);
}

.btn-outline-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(13, 110, 253, 0.2);
}

/* Rating badge styling */
.badge.bg-success {
  font-size: 0.75rem;
}

/* Wishlist button styling */
.btn-light:hover {
  background-color: #e9ecef;
  color: #dc3545;
}

/* Responsive adjustments for mega menu */
@media (max-width: 768px) {
  .hover-products {
    min-width: 200px;
    padding: 10px;
  }
}