﻿body {
    padding-top: 60px; /* space for fixed filter button */
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 300px;
    background-color: #fff;
    border-right: 1px solid #ddd;
    z-index: 1050;
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
}


    .sidebar-overlay.show {
        transform: translateX(0);
    }

.sidebar-header {
    padding: 1rem;
    border-bottom: 1px solid #ddd;
    font-weight: bold;
}

.overlay-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1040;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
}

    .overlay-backdrop.show {
        display: block;
    }

.filter-btn {
    position: fixed;
    top: 263px;
    left: 10px;
    z-index: 1100;
}

.cart-btn {
    position: fixed;
    top: 263px;
    left: 90%;
    z-index: 1100;
}

@@media (min-width: 768px) {
    .sidebar-overlay {
        top: 0;
        height: 100vh;
    }

    .main-content {
        margin-left: 0;
    }
}

.form-check {
    padding-left: 1.5rem;
}

.form-check-input[type="radio"] {
    margin-left: -1.5rem;
}

.btn-primary {
    background-color: gold !important;
    border-color: gold !important;
    color: black !important;
}

    .btn-primary:hover {
        background-color: goldenrod;
        border-color: goldenrod;
        color: white;
    }

.btn-outline-pink {
    border-color: hotpink;
    color: hotpink;
}

.btn-outline-green {
    border-color: mediumseagreen;
    color: mediumseagreen;
}

.btn-check:checked + .btn-outline-pink {
    background-color: hotpink;
    color: white;
    box-shadow: 0 0 10px rgba(255, 105, 180, 0.6);
    font-weight: 600;
}

.btn-check:checked + .btn-outline-green {
    background-color: mediumseagreen;
    color: white;
    box-shadow: 0 0 10px rgba(60, 179, 113, 0.6);
    font-weight: 600;
}

#btnBackToTop {
    border-radius: 50%;
    width: 45px;
    height: 45px;
    font-size: 20px;
    font-weight: bold;
    text-align: center;
    line-height: 45px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
}

.btn-pink {
    background-color: #e83e8c; /* Bootstrap's "pink" shade */
    color: white;
    border: none;
}

    .btn-pink:hover {
        background-color: #d63384;
        color: white;
    }

.btn-black {
    background-color: #260031; /* Bootstrap's "pink" shade */
    color: white;
    font-weight: bold;
    border: none;
    border-radius: 30px;
}

    .btn-black:hover {
        background-color: #260031;
        color: white;
        box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #260031;
    }

    .btn-black:focus {
        background-color: #260031;
        color: white;
        box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #260031;
        outline: none;
    }

.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px; /* hidden by default */
    width: 370px;
    height: 100%;
    background-color: #fff;
    box-shadow: -2px 0 6px rgba(0,0,0,0.1);
    z-index: 1050;
    transition: right 0.3s ease;
    overflow-y: auto;
}

    .cart-sidebar.show {
        right: 0; /* slide in */
    }

#cartOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.5);
    z-index: 1049;
    display: none;
}

    #cartOverlay.show {
        display: block;
    }

.btn-success, .btn-danger {
    background-color: transparent;
    color: #198754;
    border-color: #198754;
    transition: all 0.3s ease;
}

.btn-danger {
    color: #dc3545;
    border-color: #dc3545;
}

.btn-success:hover {
    background-color: #198754;
    color: white;
}

.btn-danger:hover {
    background-color: #dc3545;
    color: white;
}
.scroll-area-height {
    max-height: 500px;
}
.loading-display-hide {
    display: none;
}
.btnBackToTop-style {
    bottom: 30px;
    right: 20px;
    z-index: 999;
    width: 45px;
    height: 45px;
    border-radius: 50%;
}
.cartSidebar-style {
    height: 100vh;
}
.cartSidebar-style-div1 {
    background-color: #e83e8c;
    color: white;
}

.btn-black-os {
    background-color: #e5b0b0;
    text-transform: uppercase;
    color: white;
    font-weight: bold;
    border: none;
    border-radius: 30px;
    flex: auto;
}

    .btn-black-os:hover {
        background-color: #e5b0b0;
        color: white;
        box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #e5b0b0;
    }

    .btn-black-os:focus {
        background-color: #e5b0b0;
        color: red;
        box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #e5b0b0;
        outline: none;
    }
    .txtSearch {
        width:100%;
    }

/* Ensure the main dropdown menu has a scrollable container */
.category-scroll {
    max-height: 300px; /* Adjust height as needed */
    overflow-y: auto;
    overflow-x: visible;
    position: relative;
}

/* Allow submenu to extend outside scroll container */
.dropdown-submenu {
    position: relative;
}

    .dropdown-submenu > .dropdown-menu {
        position: absolute;
        top: 0;
        left: 100%;
        margin-top: -1px;
        display: none;
        z-index: 1050;
        white-space: nowrap;
    }

    /* Show submenu on hover */
    .dropdown-submenu:hover > .dropdown-menu {
        display: block;
    }

/* Fix for parent dropdown to not clip submenu */
.dropdown-menu {
    overflow: visible !important;
    max-height: none !important;
}
.dropdown-item {
    display: block;
    width: 100%;
    font-size: 11px;
    padding: .0rem 20px;
    clear: both;
    font-weight: 500;
    color: white;
    text-align: inherit;
    text-decoration: none;
    white-space: nowrap;
    background-color: transparent;
    border: 0;
    background-color: black;
}
.sidecart1 {
    max-height: calc(100vh - 60px);
}
.sidecart2 {
    width: 50px;
    height: 50px;
    object-fit: contain;
}
.sidecart3 {
    width: 50px;
}
.sidecart4 {
    width: 370px;
    height: 100vh;
    z-index: 1055;
    display: none;
}
.sidecart5 {
    background-color: #ec407a;
    color: white;
}
.nav-tabs .nav-link {
    background-color: #f8f9fa; /* default background */
    border: none;
    border-bottom: 2px solid transparent;
    color: #000;
    transition: all 0.3s ease;
}

    .nav-tabs .nav-link.active {
        background-color: #e9ecef; /* selected tab background */
        border-bottom: 2px solid #007bff; /* blue bottom border */
        color: #007bff;
    }
.filter-tab-content {
    height: 100%;
}
.cat-dis-none {
    display: none;
}
.focused-card {
    outline: 3px solid #007bff;
    border-radius: 8px;
    transition: outline 0.5s ease-in-out;
}
.subcategory-scroll {
    max-height: 180px; /* about 5 items depending on font-size */
    overflow-y: auto;
    padding-right: 5px; /* optional: space for scrollbar */
}
.offer-star {
    position: absolute;
    top: -15px;
    right: -15px;
    width: 100px;
    height: 100px;
    z-index: 20;
}

.card {
    overflow: visible;
}
/* DESKTOP ONLY */
@media (min-width:992px) {

    .desktop-category-wrapper {
        position: sticky;
        top: 113px;
        background: #fff;
        overflow: visible !important;
        z-index: 1000;
    }

    .desktop-category-scroll {
        display: flex;
        gap: 25px;
        overflow-x: auto;
        overflow-y: visible !important;
        white-space: nowrap;
        padding: 12px 45px;
        background: #fff;
        border-radius: 8px;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

        .desktop-category-scroll::-webkit-scrollbar {
            display: none;
        }

    .category-item {
        position: relative;
        flex: 0 0 auto;
    }

    .categorysub-dropdown {
        position: fixed !important;
        z-index: 999999 !important;
        min-width: 220px;
        display: none;
    }

    .category-item:hover .categorysub-dropdown {
        display: block;
    }

    .category-link {
        font-weight: 700;
        text-transform: uppercase;
        font-size: 14px;
        color: #000;
        text-decoration: none;
    }

    .scroll-arrow {
        position: absolute;
        top: 0;
        width: 40px;
        height: 100%;
        z-index: 1001;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        background: rgba(255,255,255,.95);
    }

    .left-arrow {
        left: 0;
    }

    .right-arrow {
        right: 0;
    }

    #filterBtn,
    #cartBtn {
        position: static !important;
    }

    .filter-btn,
    .cart-btn {
        all: unset;
    }

    #filterBtn,
    #cartBtn {
        display: inline-block;
        padding: .25rem .5rem;
        background: transparent !important;
        color: #fff;
        border-radius: .25rem;
        cursor: pointer;
    }

        #filterBtn:hover,
        #cartBtn:hover {
            background: transparent !important;
            color: #0d6efd !important;
        }

    .filter-text,
    .cart-text {
        font-size: 0;
    }

        .filter-text::after {
            content: "Filter";
            font-size: 14px;
        }

        .cart-text::after {
            content: "Quick View";
            font-size: 14px;
        }

    

    .desktop-search {
        width: 10% !important;
        min-width: 20px;
        padding: 0px !important;
    }

    .body-content {
        padding-top: 0 !important;
    }

    .w-10 {
        width: 20% !important;
    }

    .style2 {
        margin-top: 145px;
    }
}
