body {
    box-sizing: border-box;
    background-color: #f8f9fa;
}

.star-rating {
    color: #fbbf24;
}

#min-price::-webkit-inner-spin-button,
#min-price::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

#max-price,
#min-price:focus {
    outline: none;
    box-shadow: none;
}

#max-price::-webkit-inner-spin-button,
#max-price::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.wishlist-btn.active {
    color: #ef4444 !important;
}

.compare-btn.active {
    color: #3b82f6 !important;
}

.slider-container {
    position: relative;
    overflow: hidden;
}

.slider-track {
    display: flex;
    transition: transform 0.5s ease;
}

.slider-item {
    min-width: 100%;
    flex-shrink: 0;
}

.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1055;
    transform: translateX(400px);
    transition: transform 0.3s ease;
}

.notification.show {
    transform: translateX(0);
}

.modal-custom {
    background: rgba(0, 0, 0, 0.5);
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1050;
}

.modal-custom.show {
    display: flex;
}

.search-suggestions {
    position: absolute;
    z-index: 100;
    background: white;
    border: 1px solid #e5e7eb;
    border-top: none;
    border-radius: 0 0 .5rem .5rem;
    max-height: 200px;
    overflow-y: auto;
    width: 100%;
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ef4444;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
}

.progress-bar-custom {
    height: 4px;
    background: #e5e7eb;
    border-radius: 2px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #1d4ed8);
    transition: width 0.3s ease;
}

.category-pill {
    transition: all 0.2s ease;
    cursor: pointer;
    border-radius: 50px;
    padding: .75rem 1.25rem;
    white-space: nowrap;
    color: #fff;
    font-weight: 500;
}

.category-pill:hover {
    transform: scale(1.05);
}

.floating-cart {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1055;
}

.sort-sheet-overlay {
    display: none;
}

.gender-sheet-overlay {
    display: none;
}

.filter-sheet-overlay {
    display: none;
}

.vendor-product-card {
    transition: all 0.3s ease;
}

.vendor-product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.vendor-hover-icons {
    opacity: 0;
}

.vendor-product-card:hover .vendor-hover-icons {
    opacity: 1 !important;
}

.vendor-progress-bar {
    height: 4px;
    background: #eee0ff;
    border-radius: 2px;
    overflow: hidden;
}

.vendor-progress-fill {
    height: 100%;
    transition: width 0.3s ease;
}

.seller-mobile-header {
    display: none;
}

/* Slider Track */
.noUi-connect {
    background: #ba9afaff !important;
}

/* Inactive track */
.noUi-target {
    background: #e7d8ff !important;
    border: none !important;
    border-radius: 8px !important;
    height: 6px !important;
    box-shadow: none !important;
}

/* Slider handles */
.noUi-handle {
    width: 18px !important;
    height: 18px !important;
    border-radius: 50% !important;
    background: #ba9afaff !important;
    border: 2px solid white !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15) !important;
    cursor: pointer !important;
    top: -6px !important;
}

/* Remove extra bars inside handle */
.noUi-handle:before,
.noUi-handle:after {
    display: none !important;
}

/* Hover effect */
.noUi-handle:hover {
    transform: scale(1.1) !important;
}

/* Active state (when dragging) */
.noUi-handle:active {
    transform: scale(0.95) !important;
}

.vendor-banner-mobile h4 {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 220px;
    display: block;
}

/* Mobile FilterBar */
.mobile-filter-bar {
    display: none;
}

@media (max-width: 768px) {
    .seller-mobile-header {
        display: block;
    }

    .seller-mobile-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0px 16px;
    }

    .seller-mobile-header .back-btn {
        background: none;
        border: none;
    }

    .right-icons {
        display: flex;
        gap: 5px;
    }

    .icon-btn {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        text-decoration: none;
        background: transparent;
        border: none;
    }

    .wishlist-red i {
        color: #d62839;
    }

    aside.col-lg-3 {
        display: none !important;
    }

    .mobile-filter-bar-wrapper {
        position: sticky;
        top: 0px;
        z-index: 999;
        background: #ffffffff;
    }

    .mobile-filter-bar {
        padding: 10px 15px;
        display: flex;
        justify-content: space-around;
        align-items: center;
        border: 1px solid #e8d9ff;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.06);
    }

    .vendor-product-card {
        padding: 10px !important;
    }

    #products-container .row {
        flex-direction: row;
        margin: 0;
    }

    .desktop-toolbar {
        display: none !important;
    }

    #followBtnMobile {
        width: 95px;
        text-align: center;
        white-space: nowrap;
        transition: 0.3s ease;
        font-size: small;
    }

    /* Bottom sheet overlay */
    .sort-sheet-overlay {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.35);
        display: none;
        justify-content: flex-end;
        /* PUSHES SHEET TO BOTTOM */
        align-items: end;
        z-index: 99999;
    }

    /* Bottom sheet */
    .sort-sheet {
        background: white;
        width: 100%;
        max-height: 65vh;
        border-radius: 18px 18px 0 0;
        transform: translateY(100%);
        /* STARTS HIDDEN BELOW */
        transition: transform 0.35s ease;
    }

    /* When active */
    .sort-sheet-overlay.active {
        display: flex;
    }

    .sort-sheet-overlay.active .sort-sheet {
        transform: translateY(0);
        /* SLIDE UP */
    }

    /* Option styling */
    .sort-option {
        display: flex;
        justify-content: space-between;
        padding: 12px 5px;
        border-bottom: 1px solid #eee;
        font-size: 15px;
    }

    .sort-option input {
        accent-color: #8c53fe;
    }

    .gender-sheet-overlay {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.35);
        display: none;
        justify-content: flex-end;
        align-items: end;
        z-index: 9999;
    }

    .gender-sheet {
        background: #fff;
        width: 100%;
        max-height: 60vh;
        border-radius: 20px 20px 0 0;
        transform: translateY(100%);
        transition: transform .35s ease;
    }

    .gender-sheet-overlay.active {
        display: flex;
    }

    .gender-sheet-overlay.active .gender-sheet {
        transform: translateY(0);
    }

    .gender-option {
        display: flex;
        flex-direction: column;
        align-items: center;
        cursor: pointer;
    }

    .gender-option img {
        width: 65px;
        height: 65px;
        object-fit: cover;
        border-radius: 50%;
        border: 2px solid transparent;
    }

    .gender-option.active img {
        border-color: #8c53fe;
    }

    .gender-option span {
        margin-top: 6px;
        font-size: 14px;
    }

    /* Overlay */
    .filter-sheet-overlay {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.45);
        display: none;
        justify-content: flex-end;
        align-items: end;
        z-index: 9999;
    }

    /* Bottom Sheet */
    .filter-sheet {
        width: 100%;
        background: white;
        border-radius: 20px 20px 0 0;
        padding: 15px;
        max-height: 80vh;
        transform: translateY(100%);
        transition: transform 0.35s ease;

        display: flex;
        flex-direction: column;
        /* IMPORTANT */
    }

    /* Show */
    .filter-sheet-overlay.active {
        display: flex;
    }

    .filter-sheet-overlay.active .filter-sheet {
        transform: translateY(0);
    }

    .filter-sheet-header {
        display: flex;
        justify-content: space-between;
        font-weight: 600;
        padding-bottom: 10px;
        border-bottom: 1px solid #eee;

        position: sticky;
        top: 0;
        background: #fff;
        z-index: 10;
    }

    #filterSheetBody {
        overflow-y: auto;
        flex-grow: 1;
    }

    .filter-block {
        margin: 15px 0;
    }

    .filter-block h6 {
        margin-bottom: 8px;
        font-weight: 600;
    }

    .filter-sheet-footer {
        display: flex;
        justify-content: space-between;
        padding-top: 10px;
        border-top: 1px solid #eee;

        position: sticky;
        bottom: 0;
        background: #fff;
        z-index: 10;
    }

    .filter-sheet-body label {
        display: block;
        margin-bottom: 6px;
        font-size: 14px;
    }

    #filterCloseBtn {
        background: none;
        border: none;
        font-size: 20px;
    }

    .seller-page .header {
        display: none !important;
    }
}

@media (max-width: 450px) {
    #followBtnMobile {
        width: 80px;
    }
}