.header--mobile {
    z-index: 999;
}


/* from admin */

.ps-btn:hover.ps-btn--black,
button.ps-btn:hover.ps-btn--black {
    background-color: #000 !important;
}

.rating-filter-ha label {
    width: 90% !important;
}

.rating-filter-ha input {
    margin-right: 5px !important;
}

/* hussain */
.header .header__top {
    padding: 25px 0 !important;
}


.header--product.header--sticky {
    height: 0 !important;
    opacity: 0 !important;
    visibility: hidden !important;
}

.ps-tabs .h4-ha {
    border-bottom: 1px solid #dee2e6 !important;
    padding-bottom: 15px !important;
}

.ps-logo img {
    height: 60px !important;
}

/* #homepage-1 .ps-home-banner .ps-container > *{
    height: 462px !important;
} */
/* #homepage-1 .ps-home-banner .ps-collection{
    height: 216px;
} */
.ps-collection img {
    height: 240px;

    object-fit: cover;

}

.stores-grid {

    min-height: 320px !important;
}

.stores-grid .bg--cover {
    min-height: 250px !important;
}

.ps-product .ps-product__badge-cond {
    position: absolute;
    top: 0;
    left: 0;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    line-height: 20px;
    padding: 5px 10px;
    border-radius: 4px;
    background-color: #f14705;
    display: none !important;
}

.header--product.header--sticky {
    display: none !important;
}

.site_question_info_box {


    width: 300px;
    background-color: white !important;
    position: absolute;

    display: none;
    z-index: 9999;
    border: solid;
    padding: 10px;
}

.owl-item {
    position: relative;
}

.site_question_info_list {
    list-style: none;
    margin: 0px;
    padding: 0px;
}

.fa-stack {
    width: 10px;

}

.fa-star {
    color: #FFCB05;
}

.fa-star-o {
    color: #d2d2d2
}

.site_star_wrap {
    height: 20px;
}

.r_title {
    font-weight: bold !important;
}

.site_question_info_box p {
    padding-top: 5px;
    font-size: 13px;
}

.icon-question-circle:hover+.site_question_info_box {

    display: block !important;
}

.site_question_info_box p:after {
    background-color: transparent !important;

}

.header__center {
    margin-top: 10px !important;
}

.header__right {
    margin-top: 15px !important;
}

.ps-top-categories h3 {
    align-items: center;
    background-color: #f4f4f4;
    border-bottom: 1px solid #e3e3e3;
    display: flex;
    flex-flow: row nowrap;
    justify-content: space-between;
    padding: 16px 20px;
}

.ps-product__content img {
    float: right !important;
    margin-top: -15px !important;
    margin-bottom: 5px !important;
}

.owl-carousel .ps-product {

    min-height: 350px !important;
}


a:hover {
    color: #000 !important;
}

.ps-top-categories h3 {

    font-size: 20px !important;
    font-weight: 500 !important;

}

.ps-product:hover,
.ps-product--wide:hover {

    /*  border: none !important;
     border-bottom: 1px solid  #ebeef0  !important; */
    border-left: 1px solid transparent !important;
    border-right: 1px solid transparent !important;
    border-top: 1px solid transparent !important;
    border-bottom: 1px solid #dee2e6 !important;

}

.owl-stage-outer .ps-product:hover {

    /*     border: none !important;
 */
    border: 1px solid transparent !important;

}

.ps-top-categories img {
    max-width: 130px !important;
}

.cat-div {
    max-width: 130px !important;
}

.owl-carousel .owl-stage-outer {
    overflow: hidden !important;
}

.header--sticky .search-form-ha {
    display: none;
}

.nav-ha {
    display: none;
}

.header--sticky .nav-ha {
    display: block;
}

.site_question_info_box p {
    margin-bottom: 0px !important;
}

.ps-product__title {
    min-height: 35px !important;
}

/* .ps-product__content p styling removed */
header.header.header--1.header--sticky {
    display: none !important;
}

.ps-footer {

    border-top: 1px solid #cfcfcf !important;
}

.ps-section--account {
    padding: 20px 0 !important;
}

span.main-cat-label-ha {
    font-weight: bold;
}

.h4-ha {
    font-size: 20px !important;
    font-weight: 600 !important;
}

.ps-product--detail .ps-tab-list li a:before {
    background-color: transparent !important;
}

.header .header__top {
    background-color: #333333 !important;
}

.header .ps-form--quick-search button {

    background: #ffcb05 !important;
    color: #000 !important;

}

.btn-shopping-cart .icon-bag2,
.header__extra .icon-alarm-ringing {

    color: #FFF !important;
}

.header .header__extra span {
    background: #ffcb05 !important;
    color: #000 !important;
}

.ps-block__right a {
    color: #FFF !important;
}

.ps-product .ps-product__thumbnail {

    min-width: 168px !important;
    min-height: 168px !important;
}

img {
    text-indent: -9999px;
}

table.new-table th {
    font-weight: bold !important;
    color: #000 !important;
    font-size: 14px !important;
    background-color: #ebeef0;
}

.ps-main__sidebar ul.menu li:nth-child(1) a,
.ps-main__sidebar ul.menu li:nth-child(7) a,
.ps-main__sidebar ul.menu li:nth-child(12) a {
    color: #979797 !important;
    font-size: 18px !important;
}

.ps-main__sidebar ul.menu li:nth-child(1),
.ps-main__sidebar ul.menu li:nth-child(7),
.ps-main__sidebar ul.menu li:nth-child(12) {
    margin-left: -22px !important;
}

.rejected-ha {

    color: #FFF !important;
    background: #dc3545 !important;
}

.accept-ha {

    color: #FFF !important;
    background: #198754 !important;
}


.section-brands-filter-ha .widget-title,
.section-rating-filter-ha .widget-title,
.section-tags-filter-ha .widget-title {
    margin-bottom: 0px !important
}

.section-categories-filter-ha .widget-title {
    margin-bottom: 15px !important;
}

.section-brands-filter-ha .ps-custom-scrollbar,
.section-rating-filter-ha .ps-custom-scrollbar,
.section-tags-filter-ha .ps-custom-scrollbar {
    margin-top: 15px !important;
    padding-top: 15px !important;
}

h5.cat-h5 a {
    font-weight: bold !important;
    font-size: 16px !important;
}

.ps-product--detail>.ps-product__content {
    padding-top: 30px !important;
}

.ps-product--detail .ps-tab-list li a {
    padding-left: 0px !important;
}

.ps-product--detail {
    margin-bottom: 30px !important;
}

.ps-product--detail .ps-tab-list {
    margin-bottom: 30px !important;
}

.ps-section--default .ps-section__header {
    margin-bottom: 30px !important;
    padding-bottom: 15px !important;
}

table.new-table th {
    font-weight: bold !important;
    color: #000 !important;
    font-size: 14px !important;
    background-color: #ebeef0;
}

.ps-main__sidebar ul.menu li:nth-child(1) a,
.ps-main__sidebar ul.menu li:nth-child(7) a,
.ps-main__sidebar ul.menu li:nth-child(12) a {
    color: #979797 !important;
    font-size: 18px !important;
}

.ps-main__sidebar ul.menu li:nth-child(1),
.ps-main__sidebar ul.menu li:nth-child(7),
.ps-main__sidebar ul.menu li:nth-child(12) {
    margin-left: -22px !important;
}

.rejected-ha {

    color: #FFF !important;
    background: #dc3545 !important;
}

.accept-ha {

    color: #FFF !important;
    background: #198754 !important;
}

/* end from admin*/

.ps-table--wishlist thead tr th:nth-child(2) {
    text-align: left !important;
}

.tbl-ha th {
    text-align: left !important;
}

.tbl-ha .last-ha {
    text-align: right !important;

}

.y_m_m {

    font-weight: bold !important;
    color: #f56358 !important;
}

.ps-section--shopping {
    padding: 10px 0 !important;
}

.ps-product--cart .ps-product__thumbnail {
    margin-right: 12px !important;
}

.ps-cart--mini .ps-cart__items .ps-product--cart-mobile {
    margin-bottom: 0px !important;
}

.ps-cart--mobile .ps-cart__footer {

    padding: 15px 20px !important;
}

.ps-btn:active,
.ps-btn:hover,
button.ps-btn:active,
button.ps-btn:hover {
    background-color: #ffcb05 !important;
    color: #000 !important;
}

header.header.header--mobile,
.header--mobile.header--sticky .navigation--mobile {
    background: #333333 !important;
}

.ps-block__left i {
    color: #FFF !important;
}

.navigation--list {
    background-color: #fdcc07 !important;
}

.header--mobile .navigation--mobile {
    padding: 21px 30px !important
}

.navigation--list i,
.navigation--list a {

    color: #000 !important;
}

.navigation {
    background-color: #fdcc07 !important;

}

.ps-btn,
button.ps-btn {
    background-color: #fdcc07 !important;

}

.site_question_info_list {

    height: 215px !important;
}

.icon-question-circle:hover .site_question_info_box {

    display: block !important;
}

.ps-product--detail .ps-product__meta p {
    line-height: 10px !important;
    padding-bottom: 5px !important;
}

.site_question_info_list p {
    line-height: 10px !important;
    padding-bottom: 5px !important;

}

.buy_now_button {
    background: #000 !important;
    color: #FFF !important;
}

.disable_button {
    background: #CCC !important;
    color: #000 !important;
}

/* .hr-ha{
    width: 108.2% !important;
    margin-left: -30px !important;
}

 */
.hr-ha {
    width: 100% !important;
    margin-left: -30px !important;
    position: absolute !important;
    bottom: 46px !important;
}

.site_question_info_box_th {

    text-align: left !important;
    right: 20px !important;
}

.site_question_info_box_th .r_title {
    text-transform: capitalize !important;


}

.site_question_info_box_th p {
    text-transform: capitalize;
}

.close_ha {
    float: right;
    font-size: 17px;
    color: red;
    border: 1px solid red;
    border-radius: 50%;
    width: 25px;
    margin-top: 3px;
    border-radius: 47%;
    cursor: pointer;



}

.logo-text-en,
.logo-text-ar {

    color: white !important;
}

.logo-text-ar {
    display: none !important;
}

.ps-drawer--mobile .ps-drawer__content {

    overflow: scroll !important;
}

.order_num_ha {
    margin-top: -15px !important;
}

.f-section-ha ul {
    list-style-type: none !important;
    margin: 0px !important;
    padding: 0px !important;
}

.app_download img {
    width: 150px !important;
}

.f-section-ha ul li a {

    font-size: 18px;
    color: #000;
}

.f-section-ha ul li i {
    font-size: 18px;

}

.f-section-ha ul li {
    line-height: 40px !important;
}

.timing_footer {
    font-size: 16px !important;
    color: #000 !important
}

.ps-list--social li a {
    font-size: 16px !important;

}

.ps-list--social li img {
    width: 32px !important;

}

.footer_whatsapp a {
    font-size: 16px !important;
    color: #000 !important;
}

.footer_whatsapp img {
    width: 32px !important;
}

.ps-footer__copyright {
    padding: 15px 0 !important;
    border-top: none !important;
}

.ps-list--social {
    margin-bottom: 10px !important;
}

p.footer_whatsapp {
    margin-top: 15px !important;
}

.ps-footer__copyright p {
    color: #000 !important;
    font-size: 16px !important;
}

.navigation--list {
    /*     display: none !important;
 */
}

header.header.header--mobile.header--sticky {

    position: static !important;
}

.ps-widget--account-dashboard .ps-widget__content ul li.active a {

    color: #000 !important;
}

.ps-btn:hover.ps-btn--black,
button.ps-btn:hover.ps-btn--black {
    background-color: #fdcc07 !important;
    color: #FFF !important;
}

.header--mobile.header--sticky .navigation--mobile {

    position: unset !important;
}

input[type="checkbox"]:checked {
    background-color: #000 !important;
    border-color: #000 !important;
}

.app_download .col-md-12 {
    margin-left: -15px !important;
}

.ps-footer__widgets {

    padding-bottom: 0px !important;
}

.ps-footer {

    background-color: #f1f1f1 !important;
}

/* .ps-product :hover{

    border: 1px solid transparent !important;
} */

a.bg-success:focus,
a.bg-success:hover,
button.bg-success:focus,
button.bg-success:hover {

    background: #ffcb05 !important;
    color: #000 !important;
}

a.bg-danger:focus,
a.bg-danger:hover,
button.bg-danger:focus,
button.bg-danger:hover {

    background: #ffcb05 !important;
    color: #000 !important;
}

.ps-checkbox input[type=checkbox]:checked~label:before {
    background: #000 !important;
}

.header--mobile-product .header__back {

    color: white !important;
}

.ps-product--search-result .ps-product__thumbnail {
    min-width: 120px !important;
    min-height: 120px !important;
}

.ps-widget--account-dashboard .ps-widget__content ul li.active a {
    background: #fdcc07 !important;
}

.ps-panel--search-result .ps-product:hover {
    background: #fdcc07 !important;
}

.site_question_info_box_th .product_rate:before {

    content: "\f005\f005\f005\f005\f005";
    font-size: 13px;
    left: 0;
    letter-spacing: 2px;
    position: absolute;
    top: 0;
    /*  font-family: FontAwesome !important;
    color: #edb867;
 */
}

.site_question_info_box_th .rating:before {
    color: #d2d2d2;
    content: "\f005\f005\f005\f005\f005";
    float: left;
    font-size: 13px;
    left: 0;
    letter-spacing: 2px;
    position: absolute;
    top: 0;
}


.site_question_info_box_th .product_rate {
    color: #edb867;
    font-family: FontAwesome !important;
    left: 0;
    overflow: hidden;
    padding-top: 1.5em;
    position: absolute;
    top: 0;
}

.site_question_info_box_th .rating {
    display: inline-block;
    font-family: FontAwesome !important;
    height: 20px;
    overflow: hidden;
    position: relative;
    vertical-align: top;
    width: 70px;
}

.owl-carousel:hover .owl-stage-outer {
    overflow: visible !important;
}

#product_page .p_price_ha {
    bottom: 0px !important
}

.table-desktop {
    display: table;
}

.table-mobile {
    display: none;
}

.product-content .product-seller strong {
    padding-top: 5px;
}

@media (max-width: 768px) {
    /*   .ps-product__price {
                left: 20px;
            } */

    .navigation--mobile-product {
        display: none !important;
    }

    .owl-carousel:hover .owl-stage-outer {
        overflow: hidden !important;
    }

    .ps-layout--shop .ps-layout__left .sub-menu {
        display: none !important;
    }

    .ps-layout--shop .ps-layout__left.active .sub-menu {
        display: block !important;
    }

    .logo-model-ha {
        float: left !important;
        margin-left: 10px !important;

    }

    .ps-carousel--responsive .ps-product__price,
    #product-page .ps-carousel--nav .ps-product__price {
        left: auto !important;
        bottom: 0px !important;
    }

    .ps-carousel--responsive .ps-product__title,
    #product-page .ps-carousel--nav .ps-product__title {
        margin-bottom: 20px !important;
    }

    .ps-tab-root #tab-1 .ps-shopping-product .ps-product__price {
        left: 0px !important;

        bottom: 0px !important;
    }

    /*   #product-page .ps-product__price {
         
        margin-left: 2px !important;
        bottom: 115px !important;
        left: auto !important;
        } */
    .ps-page--shop .ps-product .ps-product__vendor {
        padding-left: 0px !important;
    }

    .ps-product--wide .ps-product__shopping {
        margin-top: -35px !important;
    }

    .logo-model-ha img {
        padding-top: 30px !important;
    }

    .col-md-6.order_date_ha {
        text-align: left !important;
        padding-left: 0px !important;
    }

    .table-desktop {
        display: none;
    }

    .table-mobile {
        display: block;
    }

    .table-mobile-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        /* smooth scrolling */
    }

    .table-mobile {
        display: flex;
        flex-wrap: nowrap;
    }

    .table-mobile table {
        min-width: 250px;
        /* width for each table */
        margin-right: 15px;
        /* space between tables */
        flex-shrink: 0;
        /* prevent shrinking */
    }

    .ps-tab-root #tab-1 .ps-product .ps-product__thumbnail {
        min-width: 100% !important;
        min-height: 100% !important;
    }

    .ps-tab-root #tab-1 .ps-product {
        padding: 0px
    }

    .ps-tab-root #tab-1 .ps-shopping-product .ps-product__content img {
        float: none !important;
        margin-top: -15px !important;
    }

    .ps-tab-root #tab-1 .ps-shopping-product .row>* {
        padding: 0 5px;
    }

    .ps-shopping .ps-shopping__header {
        margin-bottom: 20px;
    }



}

/* ========================================
   FILTER SYSTEM CSS - Moved from blade files
   ======================================== */

/* Professional Product Card Design - Responsive */
.product-card {
    border-radius: 16px;
    overflow: visible;
    border: solid 1px #e0e0e0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    min-height: 220px;
    margin-bottom: 10px;
}

.product-card:hover {
    /* Hover effects removed */
}

.product-image-container {
    width: 200px;
    min-height: 100%;
    background: linear-gradient(135deg, #f1f3f4 0%, #e8eaed 100%);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border-top-left-radius: 16px;
    border-bottom-left-radius: 16px;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    border-top-left-radius: 16px;
    border-bottom-left-radius: 16px;
}

.product-card:hover .product-image {
    /* Image hover effect removed */
}

.product-title {
    color: #2c5aa0;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 8px;
    font-size: 1.4rem;
}

.product-subtitle {
    color: #495057;
    font-weight: 500;
    background: #e3f2fd;
    padding: 4px 12px;
    border-radius: 20px;
    display: inline-block;
    font-size: 1.1rem;
}

.product-category {
    color: #6c757d;
    font-weight: 400;
    font-size: 1rem;
}

/* Product Categories Container - Responsive Badge Layout */
.product-categories-container {
    flex-wrap: wrap;
    gap: 4px;
}

.product-categories-container .badge {
    flex-shrink: 0;
    white-space: nowrap;
}

@media(min-width:480px) {
    #homepage-1 .ps-home-banner .owl-slider.owl-loaded .ps-banner img {
        height: 510px;
    }
}


/* Mobile: Force single row with horizontal scroll only on very small screens */
@media (max-width: 480px) {
    .product-categories-container {
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        /* Firefox */
        -ms-overflow-style: none;
        /* IE and Edge */
        padding-bottom: 2px;
    }

    .product-categories-container::-webkit-scrollbar {
        display: none;
        /* Chrome, Safari, Opera */
    }

    .product-categories-container .badge {
        flex-shrink: 0;
        white-space: nowrap;
    }

    #homepage-1 .ps-home-banner .ps-section__left {
        margin-bottom: 15px;
    }

    #homepage-1 .ps-home-banner .ps-collection {
        padding: 0px;
        margin: 0px !important;
    }

    #homepage-1 .ps-home-banner .ps-section__right {
        gap: 15px;
    }

    .ps-section__right .ps-collection img {
        height: auto;
    }
}

/* Very small screens: Ensure badges fit */
@media (max-width: 360px) {
    .product-categories-container .badge {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
    }
}

.product-part-number {
    font-size: 0.95rem;
    color: #6c757d;
    font-weight: 500;
    background: #f8f9fa;
    padding: 2px 8px;
    border-radius: 4px;
    display: inline-block;
}

.product-seller {

    font-weight: bold;
    font-size: 1.2rem;
}

.product-seller a {
    font-weight: bold !important;
    color: #fdcc07 !important;
    text-decoration: none !important;
}

.product-seller a:hover {
    color: #2c5aa0 !important;
    text-decoration: underline !important;
}

.product-price {

    font-size: 2rem;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.product-brand-logo {
    width: 120px;
    height: 120px;
    object-fit: contain;
    background: white;
    border-radius: 8px;
    padding: 4px;
}


/* Ensure parent containers don't clip the tooltip */
.row,
.col-auto,
.col,
.card-body,
.product-content,
.product-rating,
.mb-lg-3 {
    overflow: visible !important;
    position: static !important;
}

/* Allow product cards to have proper positioning for z-index */
.card,
.product-card {
    overflow: visible !important;
}

/* Create a new stacking context for the rating wrap */
.rating_wrap {
    z-index: 1000;
}

/* Ensure hovered product card appears above others */
.card.product-card {
    position: relative;
    z-index: 1;
}

.card.product-card:hover {
    z-index: 1001;
}

/* Ensure the tooltip appears above everything else */
.rating_wrap:hover {
    z-index: 1002;
}

/* Alternative positioning for tooltips near screen bottom */


/* ========================================
   FILTER SIDEBAR CSS
   ======================================== */

/* Custom Select2 styling to match theme */
.select2-container--default .select2-selection--multiple {
    border: 1px solid #ced4da !important;
    border-radius: 0.375rem !important;
    min-height: 38px !important;
    padding: 5px !important;
    background-color: #fff !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice {
    background-color: #fdcc07 !important;
    border: none !important;
    border-radius: 0 !important;
    color: #000 !important;
    padding: 8px 12px !important;
    margin: 4px !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    display: flex !important;
    align-items: flex-start !important;
    gap: 8px !important;
    min-height: 36px !important;
    box-shadow: none !important;
    position: relative !important;
    flex-wrap: wrap !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    color: #000 !important;
    margin-right: 0 !important;
    font-weight: bold !important;
    font-size: 16px !important;
    opacity: 1 !important;
    background: none !important;
    border-radius: 0 !important;
    width: auto !important;
    height: auto !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
    border: none !important;
    box-shadow: none !important;
    flex-shrink: 0 !important;
    margin-top: 0 !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover {
    color: #000 !important;
    background-color: transparent !important;
    transform: none !important;
    border-color: transparent !important;
    box-shadow: none !important;
}

.select2-dropdown {
    border: 1px solid #ced4da !important;
    border-radius: 0.375rem !important;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: #007bff !important;
}

.select2-container--default .select2-results__option[aria-selected=true] {
    background-color: #e9ecef !important;
}

/* Ensure Select2 dropdown appears above offcanvas */
.offcanvas .select2-dropdown {
    z-index: 9999 !important;
}

.offcanvas .select2-container {
    z-index: 9998 !important;
}

/* Make sure Select2 is visible */
.select2-container {
    display: block !important;
    width: 100% !important;
}

/* Fix for year select element dimensions in offcanvas */
#z-year-select {
    min-width: 200px !important;
    min-height: 38px !important;
    width: 100% !important;
    display: block !important;
    visibility: visible !important;
    position: relative !important;
    z-index: 1 !important;
}

/* Ensure the year select container has proper dimensions */
#z-year-select,
#z-year-select+.select2-container {
    min-width: 200px !important;
    min-height: 38px !important;
    width: 100% !important;
    display: block !important;
    visibility: visible !important;
}

/* Fix for offcanvas form elements */
.offcanvas form select,
.offcanvas form .form-select {
    min-width: 200px !important;
    min-height: 38px !important;
    width: 100% !important;
    display: block !important;
    visibility: visible !important;
    position: relative !important;
    z-index: 1 !important;
}

/* Hide the duplicate external remove button that appears outside the choice tag */
.select2-container--default .select2-selection--multiple .select2-selection__choice+.select2-selection__choice__remove {
    display: none !important;
}

/* Ensure only the internal remove button is visible */
.select2-container--default .select2-selection--multiple .select2-selection__choice .select2-selection__choice__remove {
    display: inline-flex !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__rendered {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    min-height: 28px !important;
}

/* Auto-submit indicator animations */
#auto-submit-indicator {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }

    100% {
        opacity: 1;
    }
}

/* Loading state for apply button */
.btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Filter input focus states */
.filter-input-field:focus,
.select2-container--default .select2-selection--multiple:focus {
    border-color: #007bff !important;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25) !important;
}

.quick-brand-btn:hover {
    background: #e9ecef !important;
    border-color: #adb5bd !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.quick-brand-btn.active {
    background: #007bff !important;
    border-color: #007bff !important;
    color: white !important;
}

.quick-brand-btn.active:hover {
    background: #0056b3 !important;
    border-color: #0056b3 !important;
}

/* Custom scrollbar for models section */
.models-scroll-container::-webkit-scrollbar {
    width: 6px;
}

.models-scroll-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.models-scroll-container::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.models-scroll-container::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Firefox scrollbar */
.models-scroll-container {
    scrollbar-width: thin;
    scrollbar-color: #c1c1c1 #f1f1f1;
}

/* ========================================
   FILTER PRODUCTS PAGE CSS
   ======================================== */

/* Pagination Styling */
.pagination-wrapper .pagination {
    margin: 0;
    gap: 5px;
}

.pagination-wrapper .page-link {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    color: #495057;
    font-weight: 500;
    padding: 10px 15px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.pagination-wrapper .page-link:hover {
    background-color: #e9ecef;
    border-color: #adb5bd;
    color: #495057;
}

.pagination-wrapper .page-item.active .page-link {
    background-color: #007bff;
    border-color: #007bff;
    color: white;
}

.pagination-wrapper .page-item.disabled .page-link {
    color: #6c757d;
    background-color: #f8f9fa;
    border-color: #dee2e6;
}

.pagination-wrapper .page-link:focus {
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Selected Filters Styling */
.badge {
    font-size: 0.875rem;
    padding: 0.5rem 0.75rem;
}

.badge a {
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.badge a:hover {
    opacity: 1;
}

/* Offcanvas display styles */
.offcanvas {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1045;
    display: flex;
    flex-direction: column;
    max-width: 100vw;
    visibility: hidden;
    background-color: #fff;
    outline: 0;
    transition: transform 0.3s ease-in-out;
    transform: translateX(-100%);
    height: 100vh;
}

.offcanvas.show {
    visibility: visible;
    transform: translateX(0);
}

.offcanvas-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1040;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
}

.offcanvas-open {
    overflow: hidden;
}

/* Offcanvas header styling */
.offcanvas-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 1rem !important;
    border-bottom: 1px solid #dee2e6 !important;
    width: 100% !important;
    position: relative !important;
}

.offcanvas-title {
    margin: 0 !important;
    font-size: 1.25rem !important;
    font-weight: 600 !important;
    flex: 1 !important;
}

.btn-close {
    background: #f8f9fa !important;
    border: 1px solid #dee2e6 !important;
    font-size: 1rem !important;
    color: #495057 !important;
    padding: 8px 12px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 44px !important;
    min-height: 44px !important;
    border-radius: 6px !important;
    margin-left: auto !important;
    position: relative !important;
    z-index: 10 !important;
}

.btn-close:hover {
    color: #212529 !important;
    background-color: #e9ecef !important;
    border-color: #adb5bd !important;
}

.btn-close i {
    font-size: 1.2rem !important;
    color: inherit !important;
}

.ps-document .table thead th {
    border-bottom: 2px solid #dee2e6;
    background-color: #f5f5f5;
    font-weight: 600;
    font-family: 'custom';
}

.ps-document .table {
    border: 1px solid #e3e3e3;
}

.ps-tabs h3 {
    border-bottom: 1px solid #e3e3e3;
    margin-bottom: 30px;
    padding-bottom: 15px;
}


@media(min-width:768px) {
    .ps-tabs h3 {
        font-size: 18px;
        font-weight: 600;
    }
}




small.including_vat {
    font-size: 12px;
    font-weight: bold;
}

.ps-product--detail .ps-tab-list li a {
    padding-right: 0px;
}

.ps-section--default .ps-section__header h3 {
    font-size: 18px;
}


.accordion .card .card-header h2 * {
    color: #000;
    font-weight: 500 !important;
    font-size: 14px !important;
}

.filter-count-text {

    font-weight: bold;
    color: #000 !important;
}

.site_delivery_feature_list * {
    font-weight: 600;
}

.site_delivery_feature_list {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    flex-direction: row-reverse;
    justify-content: start;
}

.ps-product--detail .ps-product__meta {
    padding-bottom: 15px;
}

.site_delivery_feature_list li {
    text-align: center;
    align-items: center;
    border: solid 1px #ccc;
    padding: 10px 15px;
    border-radius: 15px;
    width: 23%;
}

.site_delivery_feature_list li a {
    display: block;

}

.site_delivery_feature_list li img {
    width: 40px;
    height: 40px;
    margin-bottom: 10px;
    margin-top: 10px;
}


.site_inquire_list li a {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: underline;
}

.site_inquire_list li a img {
    width: 20px;
}

.inquiry-link {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: inherit;
}

.inquiry-icon {
    width: 24px;
    height: 24px;
}

.ltr-inquiry .inquiry-link {
    flex-direction: row;
    direction: ltr;
}

.rtl-inquiry .inquiry-link {
    direction: rtl;
    text-align: right;

}


#products.p-ha {
    border-bottom: 1px solid #dee2e6 !important;
    padding-bottom: 20px !important;
}

#products1.p-ha {
    border-bottom: 1px solid #dee2e6 !important;
    padding-bottom: 20px !important;
}




.ps-product--detail .ps-product__price {
    color: #000 !important;
    font-family: ' Work Sans', sans-serif !important;
}

.ps-product .ps-product__price.sale span:nth-child(2) {
    font-family: ' Work Sans', sans-serif !important;
}



.ps-product .ps-product__price.sale del {
    color: #B3B3B3;
    display: block;
}

.ps-product .ps-product__price span:first-child {
    display: block;
}
.ps-product .ps-product__price span:last-child {
    margin-right: 0px !important;
}

.ps-product .ps-product__price span span.ha-discount,
.ps-product__info .site_price_before_discount .d-inline-flex span.ha-discount,
.table-responsive .product__price .d-inline-flex span.ha-discount
{
    font-size: 16px !important;
    margin-right:5px !important; 
}

.ps-product--detail .ps-product__info .ps-product__price .site_price_before_discount
{
    color: #B3B3B3; 
} 

.ps-product--detail .ps-product__info .ps-product__price.sale del
{
    color: #B3B3B3; 
}




.ps-block--shopping-total h3 span {
    color: #000;
}

.ps-table--shopping-cart .product__price {
    display: inline-flex;
    gap: 0px;
}

.ps-table--shopping-cart .product__price small
{
    font-size: 100%;
    color: #B3B3B3;

}

.product-card .product-content .text-end
{
    display: inline-flex;
    gap: 10px;
}

.product-card .product-content .text-end span.product-price
{
        font-size: 2rem;
    font-weight: 700;
    color: #B3B3B3;
 
}

.product-card .product-content .text-end * {
    font-weight: 400 !important;
    font-size: 16px !important;
}


/* ========================================
   RESPONSIVE STYLES
   ======================================== */

/* Responsive Design for Product Cards */
@media (max-width: 991.98px) {
    .product-card {
        min-height: auto;
    }

    .product-image-container {
        width: 150px;
        min-height: 150px;
    }

    .product-title {
        font-size: 1.2rem;
    }

    .product-subtitle {
        font-size: 1rem;
        padding: 3px 10px;
    }

    .product-price {
        font-size: 1.5rem;
    }

    .product-brand-logo {
        width: 80px;
        height: 80px;
    }

    .ps-product--detail .ps-product__meta {
        margin-bottom: 30px;
        padding-bottom: 25px !important;
    }

    .ps-product--detail .ps-product__desc {
        margin-bottom: 30px !important;
        padding-bottom: 15px;
    }

    form.add-to-cart-form {
        padding-bottom: unset !important;
        overflow: visible !important;
    }

    .ps-product--detail .ps-product__shopping {
        margin-bottom: 0rem;
        padding-bottom: 0px;
    }


    .ps-product--detail .ps-product__shopping .ps-btn.ps-btn--black {
        margin-bottom: 15px;
    }


    .site_delivery_feature_list_wrap {
        padding-bottom: 40px !important;
        margin-bottom: 35px !important;
    }

    .ps-product--detail>.ps-product__content {
        padding-top: 10px !important;
    }

    .ps-carousel--nav {
        margin-bottom: 2rem;
    }

    #products .ps-section--default .ps-section__header {
        margin-bottom: 20px !important;
    }



}

@media (max-width: 767.98px) {
    .product-card {
        margin-bottom: 15px;
    }

    #products.p-ha {
        padding-bottom: 0 !important;
    }

    .product-image-container {
        width: 120px;
        min-height: 120px;
    }

    .product-title {
        font-size: 1.1rem;
        line-height: 1.2;
    }

    .product-subtitle {
        font-size: 0.9rem;
        padding: 2px 8px;
    }

    .product-category {
        font-size: 0.9rem;
    }

    .product-seller {
        font-size: 0.85rem;
    }

    .product-price {
        font-size: 1.3rem;
    }

    .product-brand-logo {
        width: 60px;
        height: 60px;
    }

    /* Add spacing between year/brand/model and categories on mobile */
    .mb-lg-3+.mb-lg-2 {
        margin-top: 1rem !important;
    }

    .product-part-number {
        font-size: 0.85rem;
    }

    .site_delivery_feature_list {
        margin-top: 20px;
        flex-direction: column-reverse !important;

    }

    .site_delivery_feature_list li {

        width: 100%;
        display: flex;
        align-items: center;
        gap: 15px;
    }

    .site_delivery_feature_list li img {
        margin-bottom: 0px;
        margin-top: 0px;
    }

    .picon_ha {
        margin-bottom: 0px !important;
        text-align: right;
    }

    .site_inquire_list li a img {
        width: 24px !important;
    }

    .inquiry-text {
        font-size: 16px !important;
    }

    .ps-product--detail .ps-product__shopping .ps-btn.ps-btn--black {

        font-size: 14px !important;
    }

}

@media (max-width: 767px) {
    .table-mobile-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .table-mobile {
        display: flex;
        border: 1px solid #ddd;
    }

    .table-col {
        display: flex;
        flex-direction: column;
        min-width: 120px;
        /* each product column width */
    }

    .table-col-fixed {
        background: #f5f5f5;
        font-weight: bold;
        position: sticky;
        left: 0;
        z-index: 2;
        min-width: 150px;
    }

    .table-col-scroll {
        display: flex;
        overflow-x: auto;
    }

    .table-cell {
        border-bottom: 1px solid #ddd;
        border-right: 1px solid #ddd;
        padding: 10px;
        text-align: center;
        white-space: nowrap;
        font-weight: 600;
    }

    .ps-tabs h3 {
        font-size: 18px;
        font-weight: 600;
        padding-bottom: 5px;
    }

    .ps-document table {
        border: solid 1px #dee2e6;
    }



    #products .ps-section__header {
        padding-bottom: 5px !important;
    }

    .site_delivery_feature_list {
        margin-top: 20px;

    }



}

@media (max-width: 575.98px) {
    .product-card {
        border-radius: 12px;
    }

    .product-image-container {
        width: 100px;
        min-height: 100px;
        border-top-left-radius: 12px;
        border-bottom-left-radius: 12px;
    }

    .product-image {
        border-top-left-radius: 12px;
        border-bottom-left-radius: 12px;
    }

    .product-title {
        font-size: 1rem;
    }

    .product-subtitle {
        font-size: 0.8rem;
        padding: 2px 6px;
    }

    .product-price {
        font-size: 1.2rem;
    }

    .product-brand-logo {
        width: 50px;
        height: 50px;
    }

    /* Increase spacing on smaller mobile screens */
    .mb-lg-3+.mb-lg-2 {
        margin-top: 1.25rem !important;
    }

    .card-body {
        padding: 1rem !important;
    }



}

/* Large screens: ensure image fills container and add tighter vertical rhythm */
@media (min-width: 992px) {
    .product-image-container {
        height: 100%;
        min-height: 220px;
    }

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

/* Mobile Filter Styling */
@media (max-width: 991.98px) {
    .offcanvas {
        width: 85%;
        max-width: 350px;
    }

    .offcanvas-body {
        overflow: hidden !important;
        padding: 0 !important;
        height: 100%;
        display: flex;
        flex-direction: column;
    }

    /* Ensure filter sidebar works properly in offcanvas */
    .offcanvas .bg-white.border {
        border: none !important;
        border-radius: 0 !important;
        height: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        overflow: hidden !important;
    }

    /* Make the form scrollable */
    .offcanvas form {
        height: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
        padding-bottom: 120px !important;
        /* Extra space for sticky buttons */
    }

    /* Sticky bottom buttons */
    .sticky-bottom {
        position: sticky !important;
        bottom: 0 !important;
        z-index: 10 !important;
        border-top: 1px solid #dee2e6 !important;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1) !important;
        background: white !important;
        padding: 1rem !important;
    }

    /* Mobile filter button styling */
    .btn-outline-primary {
        border-color: #007bff;
        color: #007bff;
    }

    .btn-outline-primary:hover {
        background-color: #007bff;
        border-color: #007bff;
        color: white;
    }

    /* Ensure buttons are large enough for mobile */
    .btn-lg {
        padding: 12px 20px;
        font-size: 1rem;
        font-weight: 600;
    }

    /* Better touch scrolling for scrollable elements only */
    .offcanvas form,
    .offcanvas .models-scroll-container,
    .offcanvas div[style*="max-height"] {
        -webkit-overflow-scrolling: touch !important;
    }

    /* Ensure scrollable sections work properly */
    .models-scroll-container,
    div[style*="max-height"] {
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: thin !important;
    }

    /* Mobile responsive adjustments for filter sidebar */
    .quick-brand-btn {
        min-height: 45px !important;
        font-size: 0.9rem !important;
    }

    .filter-section-title {
        font-size: 1.1rem !important;
    }

    .filter-label-text {
        font-size: 0.95rem !important;
    }

    .filter-checkbox {
        width: 16px !important;
        height: 16px !important;
    }

    .ps-btn {
        padding: 10px 16px !important;
        font-size: 0.95rem !important;
    }

    /* Mobile filter scrolling */
    .bg-white.border {
        height: 100vh !important;
        overflow-y: auto !important;
        display: flex !important;
        flex-direction: column !important;
    }

    form {
        flex: 1 !important;
        overflow-y: auto !important;
        /* padding-bottom: 100px !important;  */
        /* Space for sticky buttons */
    }

    /* Ensure all scrollable sections work on mobile */
    .models-scroll-container,
    div[style*="max-height"] {
        max-height: 150px !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }

    /* Better touch scrolling - but exclude interactive elements */
    .offcanvas form,
    .offcanvas .models-scroll-container,
    .offcanvas div[style*="max-height"] {
        -webkit-overflow-scrolling: touch !important;
    }
}

/* Ensure offcanvas is hidden on large screens */
@media (min-width: 992px) {
    .offcanvas.d-lg-none {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }
}

/* Smooth scrolling for all devices */
html {
    scroll-behavior: smooth;
}

/* ========================================
   FIXED CATEGORY ACCORDION STYLES
   ======================================== */

/* Filter accordion content styling */
.filter-accordion-content {
    background: white !important;
    border-top: 1px solid #e9ecef !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
    max-height: none !important;
    transform: scaleY(1) !important;
    transition: all 0.3s ease !important;
}

/* Filter accordion hidden state */
.filter-accordion-content.filter-accordion-hidden {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    max-height: 0 !important;
    overflow: hidden !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    transform: scaleY(0) !important;
    transition: all 0.3s ease !important;
}



/* Override any conflicting styles */
.category-content[style*="display: block"] {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* No special show class needed - JavaScript handles display directly */

/* Filter accordion toggle styling */
.filter-accordion-toggle {
    cursor: pointer !important;
    user-select: none !important;
    -webkit-user-select: none !important;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1) !important;
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    padding: 12px 16px !important;
    border: none !important;
    border-radius: 8px !important;
    background: #f8f9fa !important;
    transition: background-color 0.2s ease !important;
    touch-action: manipulation !important;
}

/* Toggle hover state */
.filter-accordion-toggle:hover {
    background-color: #f1f3f5 !important;
}

/* Toggle active state */
.filter-accordion-toggle:active {
    background-color: #e9ecef !important;
}

/* Toggle icon styling */
.toggle-icon {
    transition: transform 0.3s ease !important;
    pointer-events: none !important;
    font-size: 14px !important;
    color: #666 !important;
}

/* Icon rotation states */
.toggle-icon.icon-chevron-down {
    transform: rotate(0deg) !important;
}

.toggle-icon.icon-chevron-up {
    transform: rotate(180deg) !important;
}

/* Form check styling within filter accordion */
.filter-accordion-content .form-check {
    padding: 8px 16px !important;
    margin: 0 !important;
    border-bottom: 1px solid #f0f0f0;
}

.filter-accordion-content .form-check:last-child {
    border-bottom: none;
}


/* Mobile-specific fixes */
@media (max-width: 991.98px) {
    .filter-accordion-toggle {
        min-height: 48px !important;
        padding: 16px !important;
        font-size: 16px !important;
        border: none !important;
        border-radius: 8px !important;
        background: #f8f9fa !important;
        cursor: pointer !important;
        -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1) !important;
    }

    .filter-accordion-content {
        background: white !important;
    }

    .filter-accordion-content .form-check {
        min-height: 36px !important;
        padding: 8px 16px !important;
        display: flex !important;
        align-items: center !important;
    }

    .filter-accordion-content .form-check-input {
        min-width: 16px !important;
        min-height: 16px !important;
        width: 16px !important;
        height: 16px !important;
        transform: none !important;
        margin-right: 10px !important;
    }

    .filter-accordion-content .form-check-label {
        flex: 1 !important;
        font-size: 14px !important;
        line-height: 1.3 !important;
    }
}

/* Clean category styling */
.category-item {
    margin-bottom: 4px;
}

.accordion .card .card-header h2 button {
    display: flex;
    justify-content: space-between;
}


/* Responisve start */

@media(max-width:768px) {
    #homepage-1 .ps-home-banner .owl-slider {
        height: 200px;
    }
}

@media(max-width:480px) {
    #homepage-1 form .ps-btn {
        width: 100%;
    }

    .ps-top-categories .row {
        text-align: center;
    }

    .ps-top-categories .row .cat-div {

        margin: auto auto 20px;
    }

    .header--mobile .ps-search--mobile {
        padding-bottom: 30px;
    }

    .offcanvas .form-check-input {
        z-index: 2;
    }

    .offcanvas form {
        padding-left: 10px;
    }

    .product-card .col-auto {
        padding: 0px;
    }

   .product-card .product-content .text-end
{
    display: inline-flex;
    gap: 10px;
}

.product-card .product-content .text-end span.product-price
{
        font-size: 2rem;
    font-weight: 700;
    color: #B3B3B3;
 
}

.product-card .product-content .text-end * {
    font-weight: 400 !important;
    font-size: 16px !important;
}
    .col-12.col-lg-9.p-0 .bg-white>div:last-child {
        padding-left: 0px !important;
        padding-right: 0px !important;
    }

    .col-lg-9 .bg-white div:last-child .d-flex.flex-column .row.g-0.h-100 {
        margin: 0px !important;
    }

    .product-card .product-content .card-body {
        padding: 1rem 0px !important;
    }

}

.owl-item  .ps-product__price span{

    font-size: 16px !important;
    font-family: ' Work Sans', sans-serif !important;
}