/* Light/Dark Logo */
.for-light {
    display: block;
}

.for-dark {
    display: none;
}

body.dark-mode .for-light {
    display: none;
}

body.dark-mode .for-dark {
    display: block;
}

/* Navbar Styles */
.navbar {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
}

.brand-logo img {
    height: 40px;
}

/* Desktop Dropdown Hover */
@media (min-width: 992px) {
    .navbar .dropdown:hover>.dropdown-menu {
        display: block;
        margin-top: 0;
    }

    .dropdown-submenu {
        position: relative;
    }

    .dropdown-submenu>.dropdown-menu {
        top: 0;
        left: 100%;
        display: none;
        min-width: 250px;
        background: #fff;
        border: 1px solid #ddd;
        border-radius: 5px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }

    .dropdown-submenu:hover>.dropdown-menu {
        display: block;
    }

    /* Center desktop menu */
    .navbar-nav.mx-auto {
        margin-left: auto !important;
        margin-right: auto !important;
    }

    /* Nav padding bigger */
    .navbar-nav .nav-link {
        padding: 0.75rem 1.5rem;
        font-size: 1.1rem;
        font-weight: 500;
        color: #333;
    }

    .navbar-nav .dropdown-menu {
        padding: 1rem 0;
    }

    /* Make submenu items bold and black */
    .dropdown-menu .dropdown-item,
    .dropdown-submenu .dropdown-item {
        font-weight: 600;
        color: #000 !important;
        padding: 0.5rem 2.5rem;
        font-size: 1rem;
        transition: all 0.2s;
    }

    .dropdown-menu .dropdown-item:hover {
        background-color: #f8f9fa;
        color: #000;
        transform: translateX(5px);
    }

    /* Big card style for nested dropdowns */
    .big-card {
        padding: 1rem 1.5rem;
        background: #fff;
        border-radius: 8px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }

}

/* Mobile Offcanvas Styles */
.offcanvas-start {
    width: 300px;
}

.offcanvas-header {
    border-bottom: 1px solid #dee2e6;
    padding-bottom: 1rem;
}

.offcanvas-title {
    font-weight: 700;
}

.offcanvas-body .navbar-nav {
    padding-top: 1rem;
}

.offcanvas-body .nav-link {
    padding: 0.75rem 0;
    font-size: 1.1rem;
    font-weight: 500;
    border-bottom: 1px solid #f0f0f0;
}

.offcanvas-body .dropdown-menu {
    border: none;
    padding-left: 1rem;
    background-color: #f8f9fa;
}

/* Mobile dropdown items bold black */
.offcanvas-body .dropdown-item {
    font-weight: 600;
    color: #000 !important;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #eaeaea;
}

.offcanvas-body .dropdown-toggle::after {
    float: right;
    margin-top: 0.5rem;
}

/* Mobile menu toggle button */
.navbar-toggler {
    border: none;
    padding: 0.5rem;
    font-size: 1.5rem;
}

.navbar-toggler:focus {
    box-shadow: none;
    outline: none;
}

.fa-bars-staggered:before,
.fa-reorder:before,
.fa-stream:before {
    content: "";
}

/* Product Category Page CSS */
.color-swatch {
    display: inline-block;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    margin-right: 5px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.3s;
}

.color-swatch.selected {
    border-color: #000 !important;
    transform: scale(1.1);
}

.range-slider {
    position: relative;
    height: 40px;
    margin: 10px 0;
}

.range-slider-input {
    position: absolute;
    width: 100%;
    height: 5px;
    pointer-events: none;
    -webkit-appearance: none;
    background: transparent;
    z-index: 2;
}

.range-slider-input::-webkit-slider-thumb {
    pointer-events: auto;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #007bff;
    cursor: pointer;
    -webkit-appearance: none;
}

.range-slider-display {
    margin-top: 20px;
    padding: 8px;
    background: #f8f9fa;
    border-radius: 4px;
    text-align: center;
    font-weight: 500;
}

.spinner-border {
    width: 3rem;
    height: 3rem;
}

.list-view .product-box {
    display: flex;
    align-items: center;
}

.list-view .product-image {
    width: 200px;
    margin-right: 20px;
}

.list-view .product-detail {
    flex: 1;
}
.range-slider:before {
    top: 70%!important;
}