﻿body *:not(.fa):not(.fas):not(.far):not(.fab):not(.ratings):not(.no-font-change) {
    font-family: 'Open sans', sans-serif !important;
}

img.slide-bg {
    object-position: inherit !important
}

/*.products-section h2 {
    font-family: 'Nunito', sans-serif;
}*/

.inner-quickview figure .btn-quickview {
    background-color: #f4631b !important;
}

footer .payment-icons .payment-icon {
    background-color: #007bff !important;
}

.btn-orange {
    background-color: #f4631b !important
}

.main-nav .menu > li.active > a,
.main-nav .menu > li > a:hover {
    border-top-color: #f4631b !important
}

.shop-menu {
    display: flex;
    height: 6.8rem;
    width: 100%;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    color: #222529;
    background: #ececec;
    margin-bottom: 1.9rem;
}

    .shop-menu li:not(:last-child) {
        border-right: 1px solid #fff;
    }

    .shop-menu a {
        display: flex;
        align-items: center;
        font-family: Poppins, sans-serif;
        font-weight: 700;
        line-height: 1;
        padding: 1.2rem 2rem;
    }

@media (max-width: 1199px) {
    .shop-menu {
        padding-left: 16.6rem;
    }
}

.checkout-progress-bar li.active a {
    color: #f4631b !important
}

    .checkout-progress-bar li.active a:hover {
        color: #f4631b !important
    }

.checkout-progress-bar li.active + li a:hover {
    color: #f4631b !important
}

.checkout-progress-bar li a.active,
.checkout-progress-bar li a:hover {
    color: #f4631b !important
}

.product-single-qty .btn {
    height: 100% !important;
}

.product-single-details {
    position: inherit !important;
}

    .product-single-details .product-desc {
        word-wrap: break-word;
    }

.product-single-tabs .nav.nav-tabs .nav-link.active,
.product-single-tabs .nav.nav-tabs .nav-link:hover {
    border-bottom-color: #f4631b;
}

.breadcrumb-item + .breadcrumb-item:before {
    margin-top: 0px !important;
}

.brand-checkbox + label {
    display: block;
    margin: 0.2em;
    cursor: pointer;
    padding: 0.2em;
}

.brand-checkbox {
    display: none;
}

    .brand-checkbox + label:before {
        content: "\2714";
        border: 0.1em solid #000;
        border-radius: 0.2em;
        display: inline-block;
        width: 18px;
        height: 18px;
        padding-left: 0.2em;
        padding-bottom: 0.3em;
        margin-right: 0.2em;
        vertical-align: bottom;
        color: transparent;
        transition: 0.2s;
    }

    .brand-checkbox + label:active:before {
        transform: scale(0);
    }

    .brand-checkbox:checked + label:before {
        background-color: MediumSeaGreen;
        border-color: MediumSeaGreen;
        color: #fff;
        height: 18px;
        width: 18px;
    }

    .brand-checkbox:disabled + label:before {
        transform: scale(1);
        border-color: #aaa;
    }

    .brand-checkbox:checked:disabled + label:before {
        transform: scale(1);
        background-color: #bfb;
        border-color: #bfb;
    }

.input-group-text {
    height: 4.6rem;
}

/* Global Button Styles */
.btn {
    border: 1px solid #ddd !important;
    border-radius: 4px;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-block {
    width: 100% !important;
    display: block !important;
}

.btn-orange {
    background-color: #f4631b !important;
    color: white !important;
    border-color: #f4631b !important;
}

    .btn-orange:hover {
        background-color: #e55a15 !important;
        border-color: #e55a15 !important;
        color: white !important;
    }

    .btn-orange:focus {
        box-shadow: 0 0 0 0.2rem rgba(244, 99, 27, 0.25) !important;
    }

    .btn-orange:active {
        background-color: #d14d12 !important;
        border-color: #d14d12 !important;
    }

.noUi-connect {
    background: #f4631b !important;
}

.noUi-connect,
.noUi-target {
    height: 6px !important;
    border-radius: 3px !important;
}

.noUi-horizontal .noUi-handle {
    top: -6px !important;
}

.noUi-handle {
    width: 16px !important;
    height: 16px !important;
    border-radius: 50% !important;
    background: #fff !important;
    border: 2px solid #f4631b !important;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.2) !important;
    cursor: pointer !important;
}

    .noUi-handle:after,
    .noUi-handle:before {
        content: none !important;
        display: none !important;
    }

    .noUi-handle:hover {
        border-color: #0056b3;
    }

    .noUi-handle:active {
        background-color: #007bff;
        border-color: #0056b3;
    }

.price-slider-wrapper .form-control {
    font-size: 1.5rem !important;
}

.input-wrapper {
    position: relative;
    display: inline-block;
}

    .input-wrapper input {
        padding-right: 40px;
        box-sizing: border-box;
    }

.input-suffix {
    position: absolute;
    right: 10px;
    top: 42%;
    transform: translateY(-50%);
    pointer-events: none;
    color: gray;
    font-size: 1.5rem;
}

/* Additional styles for demo3 compatibility */
.category-banner {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.category-slide-content {
    position: absolute;
    top: 50%;
    left: 3rem;
    transform: translateY(-50%);
    color: white;
    z-index: 2;
}

.coupon-sale-text {
    color: #f4631b;
    font-weight: bold;
    font-size: 2rem;
}

.toolbox {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.toolbox-left, .toolbox-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.sidebar-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: #333;
}

    .sidebar-toggle svg {
        width: 20px;
        height: 20px;
    }

.layout-modes {
    display: flex;
    gap: 0.5rem;
}

.layout-btn {
    padding: 0.5rem;
    border: 1px solid #ddd;
    background: white;
    text-decoration: none;
    color: #666;
}

    .layout-btn.active {
        background: #f4631b;
        color: white;
        border-color: #f4631b;
    }

.product-label {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    font-weight: bold;
    border-radius: 3px;
    z-index: 2;
}

.label-hot {
    background: #ff6b6b;
    color: white;
}

.label-sale {
    background: #f4631b;
    color: white;
    top: 35px;
}

.config-swatch-list {
    list-style: none;
    padding: 0;
}

    .config-swatch-list li {
        display: flex;
        align-items: center;
        margin-bottom: 0.5rem;
    }

    .config-swatch-list a {
        width: 20px;
        height: 20px;
        border-radius: 50%;
        margin-right: 0.5rem;
        border: 2px solid #ddd;
    }

.config-size-list {
    list-style: none;
    padding: 0;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

    .config-size-list li a {
        padding: 0.5rem 1rem;
        border: 1px solid #ddd;
        text-decoration: none;
        color: #333;
        border-radius: 4px;
    }

    .config-size-list li.active a {
        background: #f4631b;
        color: white;
        border-color: #f4631b;
    }

.cat-list {
    list-style: none;
    padding: 0;
}

    .cat-list li {
        margin-bottom: 0.5rem;
    }

.cat-sublist {
    list-style: none;
    padding-left: 1rem;
    margin-top: 0.5rem;
}

.products-count {
    color: #999;
    font-size: 0.9rem;
}

.toggle {
    float: right;
}

.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    color: #666;
    text-decoration: none;
    transition: all 0.3s ease;
}

    .category-item:hover {
        color: #333;
        text-decoration: none;
    }

    .category-item.active {
        color: #007bff;
        font-weight: 500;
    }

.count {
    font-size: 0.9em;
    color: #999;
}

.loading {
    position: relative;
    opacity: 0.6;
    pointer-events: none;
}

    .loading::after {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 30px;
        height: 30px;
        margin: -15px 0 0 -15px;
        border: 3px solid #f3f3f3;
        border-top: 3px solid #3498db;
        border-radius: 50%;
        animation: spin 1s linear infinite;
    }

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.input-wrapper {
    position: relative;
    width: 45%;
}

.input-suffix {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    pointer-events: none;
}

#applyPriceFilter {
    transition: all 0.3s ease;
}

    #applyPriceFilter:hover {
        opacity: 0.9;
    }

.loading {
    opacity: 0.6;
    pointer-events: none;
}

.category-item.processing {
    opacity: 0.7;
    pointer-events: none;
}

.loading-state {
    position: relative;
    opacity: 0.6;
}

    .loading-state::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(255, 255, 255, 0.8);
        z-index: 10;
        pointer-events: none;
    }

.category-error-message {
    font-size: 14px;
    margin-bottom: 15px;
}

.category-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #666;
    z-index: 100;
    border-radius: 4px;
}

.widget-category {
    position: relative;
}

/* Sidebar Widget Scrolling - Apply to all filter widgets */
.sidebar-shop .widget .widget-body {
    max-height: 300px;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 5px; /* Add some padding to account for scrollbar */
}

    /* Custom scrollbar for webkit browsers */
    .sidebar-shop .widget .widget-body::-webkit-scrollbar {
        width: 6px;
    }

    .sidebar-shop .widget .widget-body::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 3px;
    }

    .sidebar-shop .widget .widget-body::-webkit-scrollbar-thumb {
        background: #ccc;
        border-radius: 3px;
    }

        .sidebar-shop .widget .widget-body::-webkit-scrollbar-thumb:hover {
            background: #999;
        }

/* For Firefox */
.sidebar-shop .widget .widget-body {
    scrollbar-width: thin;
    scrollbar-color: #ccc #f1f1f1;
}

/* Ensure the widget maintains its structure */
.sidebar-shop .widget {
    margin-bottom: 20px;
}

    /* Keep widget titles outside the scrollable area */
    .sidebar-shop .widget .widget-title {
        position: sticky;
        top: 0;
        background: white;
        z-index: 10;
        margin-bottom: 10px;
    }

.noUi-target {
    background: #f0f0f0;
    border-radius: 4px;
    border: 1px solid #d9d9d9;
    box-shadow: inset 0 1px 1px #f0f0f0, 0 3px 6px -5px #bbb;
    height: 8px;
}

.noUi-handle {
    background: #007bff;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
    height: 18px;
    right: -9px;
    top: -6px;
    width: 18px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

    .noUi-handle:before, .noUi-handle:after {
        display: none;
    }

.noUi-connect {
    background: #007bff;
}

.noUi-tooltip {
    background: #333;
    border-radius: 3px;
    color: white;
    font-size: 12px;
    padding: 4px 8px;
}

/* Filter Actions Widget Styling */
.widget-filter-actions {
    border-top: 2px solid #ccc !important;
    background: #f8f9fa;
}

    .widget-filter-actions .widget-body {
        max-height: none !important; /* Override the scrolling max-height */
        padding: 1.5rem !important;
    }

.filter-actions-wrapper {
    text-align: center;
}

#applyPriceFilter {
    background: #007bff;
    border-color: #007bff;
    font-weight: 600;
    transition: all 0.3s ease;
}

    #applyPriceFilter:hover {
        background: #0056b3;
        border-color: #0056b3;
        transform: translateY(-1px);
        box-shadow: 0 4px 8px rgba(0, 123, 255, 0.3);
    }

#clearPriceFilter {
    border-color: #6c757d;
    color: #6c757d;
    font-weight: 500;
    transition: all 0.3s ease;
}

    #clearPriceFilter:hover {
        background: #6c757d;
        border-color: #6c757d;
        color: white;
        transform: translateY(-1px);
    }

.widget-filter-actions .btn i {
    margin-right: 5px;
}
