   :root {
        --brand-purple: #8b5cf6;
        --brand-purple-dark: #7c3aed;
        --hero-bg: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
        --text-dark: #1e293b;
        --text-muted: #64748b;
        --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
        --card-shadow-hover: 0 10px 25px rgba(124, 58, 237, 0.12);
    }

    body {
        font-family: 'Inter', sans-serif;
        color: var(--text-dark);
        background-color: #ffffff;
    }

    /* --- Navbar --- */
    .navbar {
        padding: 16px 0;
        background-color: #ffffff;
    }

    .navbar-brand {
        font-weight: 700;
        font-size: 1.5rem;
        color: var(--brand-purple) !important;
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .brand-logo-icon {
        width: 36px;
        height: 36px;
        background: var(--hero-bg);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        font-weight: bold;
    }

    .nav-link {
        font-weight: 500;
        color: #475569 !important;
        padding: 0 16px !important;
    }

    .nav-link:hover,
    .nav-link.active {
        color: var(--brand-purple) !important;
    }

    .cart-badge {
        background-color: var(--brand-purple);
        font-size: 0.7rem;
    }

    /* --- Hero Section --- */
    .hero-section {
        background: var(--hero-bg);
        color: #ffffff;
        padding: 80px 0;
        border-bottom-left-radius: 0px;
        border-bottom-right-radius: 0px;
    }

    .hero-title {
        font-size: 3.2rem;
        font-weight: 800;
        line-height: 1.15;
        letter-spacing: -0.5px;
    }

    .hero-subtitle {
        color: rgba(255, 255, 255, 0.9);
        font-size: 1.05rem;
        max-width: 500px;
    }

    .btn-hero-white {
        background-color: #ffffff;
        color: var(--brand-purple-dark);
        font-weight: 600;
        padding: 12px 28px;
        border-radius: 10px;
        border: none;
        transition: all 0.2s ease;
    }

    .btn-hero-white:hover {
        background-color: #f8fafc;
        transform: translateY(-2px);
        color: var(--brand-purple-dark);
    }

    .btn-hero-outline {
        background-color: rgba(255, 255, 255, 0.15);
        color: #ffffff;
        font-weight: 600;
        padding: 12px 28px;
        border-radius: 10px;
        border: 1px solid rgba(255, 255, 255, 0.4);
        transition: all 0.2s ease;
    }

    .btn-hero-outline:hover {
        background-color: rgba(255, 255, 255, 0.25);
        color: #ffffff;
    }

    /* Hero Image Container and Floating Badges */
    .hero-img-container {
        position: relative;
        border-radius: 20px;
        overflow: hidden;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    }

    .hero-img-container img {
        width: 100%;
        height: auto;
        display: block;
    }

    .floating-badge {
        position: absolute;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(8px);
        border-radius: 12px;
        padding: 10px 16px;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        color: var(--text-dark);
        z-index: 2;
    }

    .badge-top-right {
        top: 20px;
        right: 20px;
        text-align: right;
    }

    .badge-bottom-left {
        bottom: 20px;
        left: 20px;
    }

    /* --- Section Titles --- */
    .section-title {
        font-size: 2.25rem;
        font-weight: 700;
        color: var(--text-dark);
    }

    .section-subtitle {
        color: var(--text-muted);
        font-size: 1rem;
    }

    /* --- Category Cards --- */
    .category-card {
        background: #ffffff;
        border-radius: 16px;
        border: 1px solid #f1f5f9;
        box-shadow: var(--card-shadow);
        padding: 24px 16px;
        text-align: center;
        transition: all 0.3s ease;
        height: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: space-between;
    }

    .category-card:hover {
        transform: translateY(-6px);
        box-shadow: var(--card-shadow-hover);
    }

    .category-img-box {
        width: 100%;
        height: 180px;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-bottom: 16px;
        overflow: hidden;
    }

    .category-img-box img {
        max-height: 100%;
        max-width: 100%;
        object-fit: contain;
    }

    .category-name {
        font-size: 1.15rem;
        font-weight: 700;
        color: var(--text-dark);
        margin-bottom: 16px;
    }

    .btn-shop-now {
        border: 1.5px solid var(--brand-purple);
        color: var(--brand-purple);
        background: transparent;
        font-weight: 600;
        padding: 8px 24px;
        border-radius: 8px;
        transition: all 0.2s ease;
        width: 100%;
    }

    .btn-shop-now:hover {
        background-color: var(--brand-purple);
        color: #ffffff;
    }

    /* --- Product Cards --- */
    .product-card {
        background: #ffffff;
        border-radius: 16px;
        border: 1px solid #f1f5f9;
        box-shadow: var(--card-shadow);
        overflow: hidden;
        transition: all 0.3s ease;
        height: 100%;
    }

    .product-card:hover {
        transform: translateY(-6px);
        box-shadow: var(--card-shadow-hover);
    }

    .product-img-box {
        width: 100%;
        height: 220px;
        background-color: #f8fafc;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
    }

    .product-img-box img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .product-body {
        padding: 16px 20px 20px;
    }

    .tag-badge {
        display: inline-block;
        background-color: #f3e8ff;
        color: var(--brand-purple-dark);
        font-size: 0.75rem;
        font-weight: 600;
        padding: 4px 10px;
        border-radius: 6px;
        margin-bottom: 8px;
    }

    .product-title {
        font-size: 0.95rem;
        font-weight: 600;
        color: var(--text-dark);
        margin: 0;
    }
/* --- User Profile Dropdown on Hover --- */
.dropdown {
    position: relative;
}

/* Invisible bridge so mouse hover doesn't break when moving between button and dropdown menu */
.dropdown::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 12px;
    display: none;
    z-index: 1040;
}

.dropdown:hover::after {
    display: block;
}

/* Ensure dropdown menu aligns properly to the right edge and below button */
.dropdown .dropdown-menu-end {
    right: 0 !important;
    left: auto !important;
    top: 100% !important;
}

/* Open dropdown on hover */
@media (hover: hover), (min-width: 992px) {
    .dropdown:hover > .dropdown-menu,
    .dropdown-menu:hover {
        display: block !important;
        margin-top: 4px !important;
        animation: dropdownFadeIn 0.18s ease-in-out;
    }
}

/* Smooth fade-in effect */
@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}