html, body {
    min-height: 100vh;
    height: fit-content;
}

:root {
    --bs-primary-rgb: 43, 0, 206;
    --bs-link-color: #2B00CE;
    --gradient: linear-gradient(89.18deg, #2B00CE 5.47%, #BA46A8 50.53%, #FF9F22 94.7%);
}

#bannerCarousel img {
    border-radius: 20px;
    width: 344px;
    height: 180px;
    background-size: cover !important;
}

#header {
    background: #FFF;
    z-index: 100;
}

#cart-icon span,
#mobile-cart-icon span {
    width: 1.2rem;
    height: 1.2rem;
    font-size: .7rem;
}

#popular .card,
#rec .card {
    height: 100%;
    width: 15vw;
}

#mainProductList,
#categoryProductList,
#popularList,
#recommendedList {
    background-color: #fff;
}

a.disabled {
    pointer-events: none;
    color: #4d4d4d !important;
}

.alert-wrapper {
    position: fixed;
    right: 15px;
    bottom: 15px;
}

.gradient {
    background: var(--gradient);
}

.text-gradient {
    background: var(--gradient);
    -webkit-background-clip: text;
            background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Buttons */

.btn-primary {
    --bs-btn-color: #FFF;
    --bs-btn-bg: #2B00CE;
    --bs-btn-border-color: #2B00CE;
    --bs-btn-hover-color: #FFF;
    --bs-btn-hover-bg: #B5A6ED;
    --bs-btn-hover-border-color: #B5A6ED;
    --bs-btn-focus-shadow-rgb: 49, 132, 253;
    --bs-btn-active-color: #FFF;
    --bs-btn-active-bg: #B5A6ED;
    --bs-btn-active-border-color: #B5A6ED;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #a9a9a9;
    --bs-btn-disabled-bg: #E5EAF0;
    --bs-btn-disabled-border-color: #E5EAF0;
}

.btn-secondary {
    --bs-btn-color: #2B00CE;
    --bs-btn-bg: #F7F5FF;
    --bs-btn-border-color: #F7F5FF;
    --bs-btn-hover-color: #FFF;
    --bs-btn-hover-bg: #2B00CE;
    --bs-btn-hover-border-color: #2B00CE;
    --bs-btn-focus-shadow-rgb: 49, 132, 253;
    --bs-btn-active-color: #2B00CE;
    --bs-btn-active-bg: #B5A6ED;
    --bs-btn-active-border-color: #B5A6ED;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #FFF;
    --bs-btn-disabled-bg: #E5EAF0;
    --bs-btn-disabled-border-color: #E5EAF0;
}

.btn-circle {
    color: #28093B;
    background-color: #FFFFFF;
    box-shadow: 0px 0px 5px 0px #00000026;
    --bs-btn-hover-color: #FFF;
    --bs-btn-hover-bg: #B5A6ED;
    --bs-btn-hover-border-color: #B5A6ED;
    --bs-btn-active-bg: #B5A6ED;
    --bs-btn-active-border-color: #B5A6ED;
    border-radius: 50%;
}

.btn-outline-primary {
    position: relative;
    --bs-btn-border-color: #FFF;
    --bs-btn-hover-bg: var(--gradient);
    --bs-btn-hover-border-color: none;
    --bs-btn-focus-shadow-rgb: 13, 110, 253;
    --bs-btn-active-bg: #2B00CE;
    --bs-btn-active-border-color: #2B00CE;
    --bs-btn-disabled-color: #E5EAF0;
    --bs-btn-disabled-bg: rgba(0, 0, 0, 0);
    --bs-btn-disabled-border-color: #E5EAF0;
    /* border: 4px solid transparent;
    border-radius: 1em;
    background: linear-gradient(90deg, #2B00CE 0%, #BA46A8 55%, #FF9F22 100%); 
    background-clip: padding-box, border-box;
    background-origin: padding-box, border-box; */
}

.btn-outline-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, #2B00CE 0%, #BA46A8 55%, #FF9F22 100%);
    border-radius: var(--bs-border-radius);
    z-index: -2;
    transition: .5s ease-in-out;
}

.btn-outline-primary::after {
    content: '';
    position: absolute;
    top: var(--bs-border-width);
    left: var(--bs-border-width);
    right: var(--bs-border-width);
    bottom: var(--bs-border-width);
    background: #FFF;
    border-radius: var(--bs-border-radius);
    z-index: -1;
}

.btn-outline-primary:hover::after {
    background: var(--gradient);
}

.btn-outline-primary:hover > .text-gradient {
    color: #FFF;
    background: none;
    -webkit-background-clip: initial;
            background-clip: initial;
    -webkit-text-fill-color: initial;
}

.btn-link {
    background: #FFF;
    color: #000;
    text-decoration: none;
}

.btn-link:hover {
    background-color: #e4e4e4;
    color: #000;
}

.carousel-indicators button {
    width: 6px !important;
    height: 6px !important;
    border-radius: 50%;
}

.cards-container {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 15px;
    gap: 15px;
}

.cards-container .card {
    flex: 0 0 auto;
    width: auto;
    scroll-snap-align: start;
}

#hero .cards-container .card img,
#store-banners .cards-container .card img {
    border-radius: 20px;
}

#store-banners .cards-container .card {
    position: relative;
    display: inline-block;
    overflow: hidden;
}

#store-banners .delete-banner {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 8px 16px;
    background: #fff;
    border: none;
    cursor: pointer;
    opacity: 0.2;
    transition: opacity 0.3s ease;
}

#store-banners .cards-container .card:hover .delete-banner {
    opacity: 1;
}

.add-banner {
    width: 344px !important;
    height: 180px !important;
    border: dashed 3px #cfd3d8 !important;
    color: #cfd3d8 !important;
    cursor: pointer;
}

.add-banner .card-body {
    height: 100%;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}

.delete-banner:hover {
    background-color: #e4e4e4 !important;
}

.cards-container::-webkit-scrollbar {
    display: none;
}

.cart-products-card:not(:last-child) {
    border-bottom: 1px solid #DCD7E2;
}

/* Input */

.form-check-input:checked {
    background-color: #2B00CE;
    border-color: #2B00CE;
}

/* Table */

th {
    font-weight: 400;
}

/* pagination */
.pagination {
    --bs-pagination-active-bg: #2B00CE;
}

/* Layout */

#header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 62px;
}

.content {
    background-color: #f0f2f5;
    height: 100%;
    min-height: 100vh;
    padding-top: 62px;
}

/* Sidebar */

.content-sidebar {
    min-height: calc(100vh - 62px);
    background: #FFF;
    padding: 0;
    border-right: 1px solid #DCD7E2;
}

.sidebar {
    height: 100%;
    display: flex;
    flex-shrink: 0;
    flex-direction: column;
}

.sidebar .nav-pills {
    flex-direction: column;
}

li:has(.active) {
    background: #ffffff;
}

.nav-pills .nav-link {
    position: relative;
    padding: 1rem 2rem;
    color: #000000;
    border-radius: 0;
}

.nav-pills .nav-link.active {
    background: #F0F2F5;
    
    color: transparent;
    background-clip: text;
    -webkit-background-clip: text;

    background-image: linear-gradient(90deg, #2B00CE 0%, #BA46A8 55%, #FF9F22 100%);
    @supports not (background-clip: text) {
        color: #000;
    }
}

.nav-pills .nav-link.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 8px;
    height: 100%;
    background: linear-gradient(0deg, #2B00CE 0%, #BA46A8 55%, #FF9F22 100%);
    border-radius: 0 1em 1em 0;
}

.noUi-connect {
    background-color: #2B00CE !important;
}

.noUi-handle {
    width: 28px !important;
    border-radius: 15px !important;
}

.noUi-handle::before,
.noUi-handle::after {
    content: none !important;
}

tr.clickable-row {
    cursor: pointer;
}

.object-fit-cover {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

/* Image gallery */
.product-gallery-container {
    max-width: 800px;
    margin: 0 auto;
}
  
.main-image-container {
    text-align: center;
    border: 1px solid #dee2e6;
    padding: 10px;
    border-radius: 5px;
}

.thumbnails-container {
    overflow-x: auto;
    padding-bottom: 10px;
}

.thumbnails-scroller {
    padding: 5px;
    display: flex;
    gap: 10px;
}

.thumbnail-item {
    flex: 0 0 auto;
    cursor: pointer;
}

.thumbnail-item.active img {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.1rem rgba(13, 110, 253, 0.25);
}

/* Hide scrollbar but keep functionality */
.thumbnails-container::-webkit-scrollbar {
    height: 5px;
}

.thumbnails-container::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.thumbnails-container::-webkit-scrollbar-thumb {
    background: #888;
}

.thumbnails-container::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* .price-input-container {
    position: relative;
    display: inline-block;
}

.price-input {
    padding-right: 25px;
    font-size: 16px;
}

.currency-symbol {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    font-size: 16px;
} */

@media screen and (max-width: 768px) {
    .container {
        padding: 0;
    }

    .content-sidebar {
        min-height: auto;
        flex: 0 0 100%;
        overflow-x: auto;
    }

    .sidebar {
        flex-direction: row;
        width: max-content;
        height: auto;
    }

    .sidebar .nav-pills {
        flex-direction: row;
    }

    .nav-pills .nav-link.active::before {
        display: none;
    }

    .nav-pills .nav-link {
        font-size: small;
    }
}

/* /Sidebar */

/* Moblie menu */

.mobile-navbar {
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    background: #FFFFFF;
    z-index: 2;
}

.mobile-navbar.nav-pills .nav-link.active {
    color: #000000;
    background: #B5A6ED;
}

@media screen and (max-width: 768px) {
    .mobile-navbar {
        display: block;
    }

    .mobile-navbar .nav-pills > * {
        flex: 0 0 25%;
        max-width: 25%;
        text-align: center;
    }
    
    .mobile-navbar .nav-pills .nav-link {
        padding: 1rem .75rem;
    }

    #popular .card,
    #rec .card {
        width: 10rem;
    }
}

.content-section {
    padding: 1rem 2rem;
    background-color: #FFFFFF;
    border-radius: 1rem;
}

@media screen and (max-width: 768px) {
    .content-main {
        padding: 1rem .5rem 100px;
    }

    .content-section {
        overflow-x: auto;
    }
}

/* Main Content */

.content-main {
    padding: 1rem 1rem 100px;
    background-color: #F0F2F5;
    min-height: 100%;
}

.card {
    border: none;
    border-radius: 1rem;
}

/* /Main Content */

.circle-done {
    width: 100px;
    height: 100px;
    background-image: url('../images/icon-done.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 30px;
    background-color: #F7F5FF;
    border-radius: 50%;
}


.circle-cancel {
    width: 100px;
    height: 100px;
    background-image: url('../images/icon-cancel.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 40px;
    background-color: #F7F5FF;
    border-radius: 50%;
}

.no-decoration {
    text-decoration: none;
    color: inherit;
}

.no-decoration:hover {
    text-decoration: none;
    color: inherit;
}

.btn-icon {
    background-color: #e6f3f9; /* light blue background */
    color: #08a1cb;            /* blue icon color */
    border-radius: 50%;
    width: 32px;
    height: 32px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .btn-icon:hover {
    background-color: #d0ebf7;
  }
  