﻿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 */
}
