:root {
    --primary-color: #4e73df;
    --secondary-color: #858796;
    --background-color: #f8f9fc;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: 1px solid rgba(255, 255, 255, 0.3);
    --sidebar-width: 250px;
}

body {
    font-family: 'Outfit', 'Hind Siliguri', sans-serif;
    background-color: var(--background-color);
    overflow-x: hidden;
}

/* Glassmorphism Utilities */
.bg-lightglass {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: var(--glass-border);
}

.card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: var(--glass-border);
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

/* Wrapper */
.wrapper {
    display: flex;
    width: 100%;
    align-items: stretch;
}

/* Sidebar */
#sidebar {
    min-width: var(--sidebar-width);
    max-width: var(--sidebar-width);
    background: #fff;
    color: #333;
    transition: all 0.3s;
    height: 100vh;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.05);
    position: fixed;
    z-index: 999;
}

#sidebar.active {
    margin-left: -250px;
}

.sidebar-header {
    padding: 20px;
    background: var(--primary-color);
    color: #fff;
}

#sidebar ul.components {
    padding: 20px 0;
}

#sidebar ul li a {
    padding: 10px 20px;
    font-size: 1.1em;
    display: block;
    color: #333;
    text-decoration: none;
}

#sidebar ul li.active a,
#sidebar ul li.active a:hover {
    color: #fff !important;
    background: var(--primary-color) !important;
    font-weight: 600;
    border-radius: 5px;
    margin: 0 10px;
    width: auto;
}

#sidebar ul li a:hover {
    color: var(--primary-color);
    background: #f1f1f1;
    border-radius: 5px;
    margin: 0 10px;
    width: auto;
}

/* Content */
#content {
    width: 100%;
    padding: 0;
    min-height: 100vh;
    transition: all 0.3s;
}

#content.active {
    width: calc(100% - 250px);
    margin-left: 250px;
}

/* Mobile Responsiveness */
/* Mobile Responsiveness */
@media (max-width: 768px) {
    #sidebar {
        margin-left: -250px;
        z-index: 2000 !important;
        /* Force above everything including overlay */
        box-shadow: 5px 0 15px rgba(0, 0, 0, 0.1);
    }

    #sidebar.active {
        margin-left: 0;
    }

    #content {
        width: 100%;
    }

    #content.active {
        width: 100%;
        margin-left: 0;
    }

    /* Sidebar Overlay */
    #sidebar-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1050;
        /* Below Sidebar (1100) but above content */
        display: none;
        opacity: 0;
        transition: opacity 0.3s;
    }

    #sidebar-overlay.active {
        display: block;
        opacity: 1;
    }

    /* Adjust header for mobile */
    .navbar-brand {
        font-size: 1.2rem;
    }

    .search-header {
        max-width: 100%;
    }

    .feature-box {
        padding: 25px 15px;
    }

    .icon-box {
        width: 50px;
        height: 50px;
        font-size: 1.4rem;
        margin-bottom: 15px;
    }

    .feature-box h4 {
        font-size: 1.1rem;
    }

    /* Mobile Buttons */
    .btn,
    .btn-premium {
        padding: 8px 16px !important;
        font-size: 0.9rem !important;
    }


    /* Smaller Stock Badge */
    .product-badge {
        padding: 4px 8px !important;
        font-size: 0.65rem !important;
        top: 10px !important;
        right: 10px !important;
    }

    /* Mobile Dropdown Fix */
    .dropdown-menu {
        position: absolute !important;
        /* Ensure it doesn't break layout flow strangely, though Bootstrap handles this well usually. */
    }

    /* Hero Floating Elements Fix */
    .hero-visual {
        transform: scale(0.85);
        /* Scale down slightly to fit */
        margin-top: -20px;
    }

    .hero-visual .floating-card {
        max-width: 90% !important;
        margin: 0 auto;
        left: 0 !important;
        right: 0 !important;
        transform: none !important;
        position: relative !important;
        top: 0 !important;
        margin-bottom: 20px;
    }

    /* Show the 'black portion' (delay-2) */
    .hero-visual .floating-card.delay-2 {
        display: block !important;
        background: #212529 !important;
        margin-top: -30px;
        margin-left: 30px;
        /* Slight offset */
        z-index: 5;
    }

    /* Show 'Order Paid' (delay-1) */
    .hero-visual .floating-card.delay-1 {
        display: block !important;
        position: absolute !important;
        top: -10px !important;
        right: 0 !important;
        width: auto !important;
        z-index: 10;
        margin: 0 !important;
        font-size: 0.8rem;
    }
}

/* Fix Resell Button Roundness */
.btn-resell-fix {
    border-radius: 5px !important;
}

/* Search Suggestions */
.search-container {
    position: relative;
    max-width: 400px;
    /* Match form width */
}

.suggestions-box {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 0 0 5px 5px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: none;
}

.suggestion-item {
    padding: 10px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    color: #000;
    /* Force black text */
}

/* Premium Animations & Hero */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0px);
    }
}

.hero-section {
    background: linear-gradient(135deg, #1a2980 0%, #26d0ce 100%);
    position: relative;
    overflow: hidden;
    padding: 100px 0;
    clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%);
}

.hero-section::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 10%, transparent 60%);
    top: -50%;
    left: -50%;
    animation: float 20s infinite linear;
}

.hero-content {
    animation: fadeInUp 1s ease-out;
}

.hero-visual {
    animation: fadeInUp 1s ease-out 0.3s backwards;
}

.floating-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    animation: float 6s ease-in-out infinite;
}

.floating-card.delay-1 {
    animation-delay: 1s;
}

.floating-card.delay-2 {
    animation-delay: 2s;
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: -0.5px;
    background: linear-gradient(45deg, #4e73df, #26d0ce);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.btn-premium {
    background: linear-gradient(45deg, #4e73df, #224abe);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(78, 115, 223, 0.4);
    transition: all 0.3s;
}

.btn-premium:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(78, 115, 223, 0.6);
    color: white;
}

.search-header {
    background: #f8f9fc;
    border: 1px solid #e3e6f0;
    border-radius: 50px;
    /* Pill shape container */
    padding: 3px;
    display: flex;
    align-items: center;
    transition: all 0.3s;
}

.search-header:focus-within {
    background: #fff;
    box-shadow: 0 0 0 0.2rem rgba(78, 115, 223, 0.25);
    border-color: #bac8f3;
}

.search-header input {
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 10px 20px;
    flex: 1;
    /* Take available width */
    font-size: 0.95rem;
}

.search-header button {
    border: none;
    background: var(--primary-color);
    color: white;
    width: 40px;
    height: 40px;
    min-width: 40px;
    /* Prevent squishing */
    border-radius: 50%;
    /* Circle button */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    margin-right: 2px;
}

.search-header button:hover {
    background: #224abe;
    transform: scale(1.05);
}

/* Premium Product Cards */
.product-card-premium {
    border: none;
    border-radius: 20px;
    overflow: hidden;
    background: #fff;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.product-card-premium:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    cursor: pointer;
}

.product-img-container {
    width: 100%;
    aspect-ratio: 1 / 1;
    /* Force square */
    overflow: hidden;
    position: relative;
    background: #f8f9fc;
}

.product-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

/* .product-card-premium:hover .product-img-container img {
    transform: scale(1.1);
} */

.product-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
    padding: 8px 16px;
    border-radius: 30px;
    font-weight: bold;
    color: var(--primary-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Feature Box Premium */
.feature-box {
    padding: 40px 30px;
    border-radius: 25px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.feature-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color) 0%, #6a11cb 100%);
    opacity: 0;
    z-index: -1;
    transition: opacity 0.3s ease;
}

.feature-box:hover::before {
    opacity: 1;
}

.feature-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(106, 17, 203, 0.2);
}

.feature-box:hover h4,
.feature-box:hover p,
.feature-box:hover .icon-box {
    color: #fff !important;
}

.icon-box {
    width: 70px;
    height: 70px;
    border-radius: 20px;
    background: rgba(78, 115, 223, 0.1);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 25px;
    transition: all 0.3s ease;
}

.feature-box:hover .icon-box {
    background: rgba(255, 255, 255, 0.2);
}

/* Sitekori Footer Branding */
.sitekori-badge {
    background: linear-gradient(90deg, #111, #333);
    color: #fff;
    padding: 10px 25px;
    border-radius: 50px;
    display: inline-block;
    text-decoration: none;
    font-weight: 500;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.sitekori-badge:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    color: #fff;
}

.sitekori-badge span {
    color: #4e73df;
    font-weight: 800;
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item:hover {
    background-color: #f8f9fa;
}

.suggestion-item img,
.suggestion-item .placeholder-img {
    width: 30px;
    height: 30px;
    margin-right: 10px;
    border-radius: 50%;
    object-fit: cover;
}

.suggestion-item .placeholder-img {
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8em;
}

/* Custom Utilities Added for Product Card Enhancements */
.hover-opacity-100:hover {
    opacity: 1 !important;
}

.transition-all {
    transition: all 0.3s ease;
}

.header-btn-gradient {
    background: linear-gradient(45deg, var(--primary-color), #224abe);
    border: none;
    box-shadow: 0 4px 10px rgba(78, 115, 223, 0.3);
}

.header-btn-gradient:hover {
    box-shadow: 0 6px 15px rgba(78, 115, 223, 0.5);
    background: linear-gradient(45deg, #224abe, var(--primary-color));
}

.product-overlay {
    backdrop-filter: blur(2px);
}


/* Override Product Styles */
.product-card-premium:hover .product-img-container img {
    transform: scale(1) !important;
}

.product-badge {
    top: 15px !important;
    right: 15px !important;
    background: #000 !important;
    color: #fff !important;
    border: 2px solid #fff !important;
    padding: 5px 12px !important;
    border-radius: 8px !important;
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2) !important;
    backdrop-filter: none !important;
    letter-spacing: 0.5px !important;
}

.product-badge i {
    margin-right: 5px !important;
}

@keyframes fire-pulse {
    0% {
        box-shadow: 0 0 15px #ff4500, 0 0 30px rgba(255, 69, 0, 0.6);
        border-color: #ff4500;
        transform: scale(1);
    }

    50% {
        box-shadow: 0 0 25px #ff8c00, 0 0 50px rgba(255, 140, 0, 0.6);
        border-color: #ff8c00;
        transform: scale(1.02);
    }

    100% {
        box-shadow: 0 0 15px #ff4500, 0 0 30px rgba(255, 69, 0, 0.6);
        border-color: #ff4500;
        transform: scale(1);
    }
}

@keyframes fire-flicker {
    0% {
        transform: translateY(0) rotate(0deg);
    }

    25% {
        transform: translateY(-2px) rotate(-1deg);
    }

    50% {
        transform: translateY(0) rotate(1deg);
    }

    75% {
        transform: translateY(1px) rotate(-0.5deg);
    }

    100% {
        transform: translateY(0) rotate(0deg);
    }
}

.btn-fire {
    background: linear-gradient(45deg, #e64a19, #f57c00, #ff9800) !important;
    background-size: 200% auto !important;
    border: 2px solid #ffd54f !important;
    color: #fff !important;
    font-weight: 900 !important;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    animation: fire-pulse 1.2s infinite alternate ease-in-out, fire-flicker 0.3s infinite linear, burning-bg 3s infinite linear;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
}

@keyframes burning-bg {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.btn-fire:hover {
    background: linear-gradient(45deg, #ff9800, #f57c00, #e64a19) !important;
    transform: scale(1.08) !important;
    box-shadow: 0 0 40px #ff6f00, 0 0 60px rgba(255, 111, 0, 0.8) !important;
    z-index: 10;
}