/*------------------------------------------*/
/*-----import-styles-start-----*/
@import url(../global/global.css?ver=3.01);
@import url(../layout/header.css?ver=3.01);
@import url(../layout/footer.css);
/*-----import-styles-end-----*/
/*------------------------------------------*/


/*------------------------------------------*/
/*-----💡-banner-section-start-----*/

div#offcanvasFilters {
    height: 80vh;
    background-color: var(--tertiary-color-50);
    border-radius: 16px 16px 0 0;
}

.hero-banner-section .mobile-banner {
    height: 550px;
}

.responsive-title {
    color: #fff !important;
}

.responsive-paragraph {
    color: var(--informative-color-950) !important;
}

/* 📱 موبایل کامل: کمتر از 576px */
@media (max-width: 575.98px) {
    .content-box {
        background: none !important;
        padding: 0 !important;
    }

    .responsive-paragraph {
        color: #fff !important;
    }

    .responsive-title {
        font-size: 0.75rem;
    }

    .responsive-paragraph {
        font-size: 0.6rem;
    }
}

/* 📱📲 موبایل بزرگ و تبلت: 576px تا 992px */
@media (min-width: 576px) and (max-width: 992px) {
    .content-box {
        background: none !important;
        padding: 0.5rem !important;
    }

    .responsive-paragraph {
        color: #fff !important;
    }

    .responsive-title {
        font-size: 1.125rem;
    }

    .responsive-paragraph {
        font-size: 0.875rem;
    }
}

/* 💻 دسکتاپ باریک: 993px تا 1300px */
@media (min-width: 993px) and (max-width: 1300px) {
    .position-absolute.d-flex {
        align-items: center !important;
        justify-content: center !important;
    }

    .content-box {
        width: 90% !important;
        margin-inline: auto !important;
        padding: 1.5rem !important;
        backdrop-filter: blur(20px);
    }
}

/* 💻 دسکتاپ استاندارد: 992px به بالا */
@media (min-width: 992px) {
    .position-absolute.d-flex {
        align-items: flex-end !important;
        justify-content: flex-end !important;
    }
}

/*-----💡-banner-section-end-----*/

/*-----💡-tab-part-start-----*/

.tab-wrapper {
    overflow-x: scroll !important;
}

.tab-wrapper .nav-tabs {
    display: flex;
    flex-wrap: nowrap;
    white-space: nowrap;
    width: 100%;
    gap: 0.5rem;
}

/*-----💡-tab-part-end-----*/

/*-----💡-product-list-filter-section-start-----*/

.filter-products .accordion-button {
    padding: 10px;
}

.filter-products .filter-line {
    height: 2px;
    background-color: gray;
}

/* 📱 در موبایل، سایدبار مخفی */
@media (max-width: 768px) {
    #sidebarFilters {
        display: none !important;
    }
}

/* 💻 در دسکتاپ، Offcanvas مخفی */
@media (min-width: 768px) {
    #offcanvasFilters {
        display: none !important;
    }
}

/* ظاهر کلی کارت فیلتر */
.filter-card {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
    margin-bottom: 1rem;
    padding: 0.75rem;
}

/* تیتر آکاردئون */
.filter-header {
    background-color: transparent;
}

.filter-header:not(.collapsed) {
    background-color: var(--white-color);
    color: #333;
    box-shadow: none;
    border-bottom: 2px solid var(--tertiary-color-100) !important;
}

/* حذف حاشیه آکاردئون */
.filter-accordion .accordion-item {
    border: none;
}

/* بدنه داخلی هر فیلتر */
.filter-body {
    padding: 0.5rem 0;
}

/* آیتم‌های چک‌باکس / رادیو */
.filter-check {
    padding: 0.25rem 0;
}

/* عنوان کلی فیلترها */
.filter-title {
    font-weight: bold;
    font-size: 1rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 0.5rem;
}

@media (max-width: 768px) {
    .filter-products .btn-secondary {
        font-size: 12px;
        padding: 6px 12px;
        height: max-content;
    }
}

/*-----💡-product-list-filter-section-end-----*/


/*-----💡-product-tags-start-----*/
.tag-scroll-container {
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
}

.tag-scroll-container::-webkit-scrollbar {
    display: none; /* Chrome, Safari */
}

.tag-pill {
    background-color: #e6fef6;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    margin-left: 0.5rem;
    margin-bottom: 0.5rem;
}

/*-----💡-product-tags-end-----*/

/*-----💡-box-products-start-----*/

.sidebar-filters {
    height: fit-content;
    background-color: var(--tertiary-color-50);
}

.accordion-button.filter-header:focus {
    box-shadow: none;
}

.box-product-card {
    border: 1px solid var(--tertiary-color-100);
    transition: 0.3s ease-in-out;
}

.box-product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 8px -4px rgba(16, 24, 40, 0.06),
    0 20px 24px -4px rgba(16, 24, 40, 0.06);
}

.box-product-card .card-img-top {
    aspect-ratio: 1.3 / 1;
}

.box-product-price {
    color: var(--tertiary-color-600);
}

.box-product-card-title {
    font-size: 1.25rem !important;
}

.box-product-card-link {
    font-size: 1rem !important;
}

/* اندازه در موبایل */
@media screen and (max-width: 576px) {
    .box-product-card-title {
        font-size: 0.8rem !important;
    }

    .box-product-card-link {
        font-size: 0.6rem !important;
    }
}

/*-----💡-box-products-end-----*/


/*-----💡-tags-products-start-----*/

.product-tag {
    top: 25px;
    right: 25px;
    z-index: 1;
    padding: 5px 10px;
    color: var(--informative-color-950);
    background-color: var(--informative-color-100);
}

.off-badge {
    width: 35px;
    height: 35px;
}

.off-price {
    text-decoration: line-through;
    color: var(--tertiary-color-600);
}

/*-----💡-tags-products-end-----*/


/*-----💡-filter-wrapper-visibility-start-----*/

/* پیش‌فرض: مخفی */
#filterWrapper {
    display: none;
}

/* نمایش در دسکتاپ */
@media (min-width: 768px) {
    #filterWrapper {
        display: block;
    }

    #sidebarFilters #filterHolderDesktop::before,
    #sidebarFilters #filterHolderDesktop > * {
        display: contents;
    }
}

/* نمایش در موبایل (داخل Offcanvas) */
@media (max-width: 767.98px) {
    #filterWrapper {
        display: block;
    }

    #offcanvasFilters #filterHolderMobile::before,
    #offcanvasFilters #filterHolderMobile > * {
        display: contents;
    }
}

/*-----💡-filter-wrapper-visibility-end-----*/


/*-----💡-filters-action-buttons-start-----*/

.filters-action {
    position: sticky;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10;
}

/* 📱 در موبایل ثابت پایین صفحه */
@media (max-width: 768px) {
    .filters-action {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        z-index: 1055;
    }

    .offcanvas-body {
        padding-bottom: 4rem !important; /* فضای خالی برای دکمه‌ها */
    }
}

/*-----💡-filters-action-buttons-end-----*/


/*----------💡-price-range-start----------*/

input[type='range'] {
    width: 100%;
    height: 30px;
    overflow: hidden;
    cursor: pointer;
    outline: none;
}

input[type='range'],
input[type='range']::-webkit-slider-runnable-track,
input[type='range']::-webkit-slider-thumb {
    -webkit-appearance: none;
    background: none;
}

input[type='range']::-webkit-slider-runnable-track {
    width: 200px;
    height: 5px;
    background: var(--primary-color);
}

input[type='range']:nth-child(2)::-webkit-slider-runnable-track {
    background: none;
}

input[type='range']::-webkit-slider-thumb {
    position: relative;
    height: 20px;
    width: 20px;
    margin-top: -10px;
    background: #fff;
    border: 2px solid var(--primary-color);
    border-radius: 25px;
    z-index: 1;
}


input[type='range']:nth-child(1)::-webkit-slider-thumb {
    z-index: 2;
}

.rangeslider {
    position: relative;
    height: 60px;
    width: 100%;
    display: flex;
    flex-direction: column;
    direction: ltr;
}

.rangeslider input:active,
.rangeslider input:focus {
    outline: none !important;
    border: none !important;
}

.rangeslider input {
    position: absolute;
}

.rangeslider span {
    position: absolute;
    margin-top: 30px;
    right: 0;
    font-weight: bold;
}

.rangeslider .right {
    position: relative;
    float: right;
    margin-right: -5px;
}


/* Proof of concept for Firefox */
@-moz-document url-prefix() {
    .rangeslider::before {
        content: '';
        width: 100%;
        height: 2px;
        background: #003D7C;
        display: block;
        position: relative;
        top: 16px;
    }

    input[type='range']:nth-child(1) {
        position: absolute;
        top: 35px !important;
        overflow: visible !important;
        height: 0;
    }

    input[type='range']:nth-child(2) {
        position: absolute;
        top: 35px !important;
        overflow: visible !important;
        height: 0;
    }

    input[type='range']::-moz-range-thumb {
        position: relative;
        height: 15px;
        width: 15px;
        margin-top: -7px;
        background: #fff;
        border: 1px solid #FF5800;
        border-radius: 25px;
        z-index: 1;
    }

    input[type='range']:nth-child(1)::-moz-range-thumb {
        transform: translateY(-20px);
    }

    input[type='range']:nth-child(2)::-moz-range-thumb {
        transform: translateY(-20px);
    }
}

/*----------💡-price-range-end----------*/

