/* ========================================
   Category & Search Page Styles
   ======================================== */

/* Ajax Loading */
.ajax-loading {
    min-height: 400px;
}

/* Title Section */
.title-section {
    font-size: 20px;
    font-weight: bold;
    color: #252525;
    margin: 20px 0;
}

.title-section span {
    position: relative;
    display: inline-block;
}

.c-text {
    font-size: 14px;
    color: #666;
    margin-left: 8px;
}

/* Container */
.cont-categori {
    background-color: #fff;
}

.col-top {
    padding-top: 20px;
}

/* Category Carousel */
.owl-pro1 .item {
    margin: 8px;
}

.owl-pro1 .thumbnail {
    background-color: #fff;
    border-radius: 12px;
    padding: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.owl-pro1 .thumbnail:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-3px);
}

.owl-pro1 .thumbnail p {
    font-size: 13px;
    color: #252525;
    font-weight: 500;
}

.owl-pro1 .thumbnail p a {
    color: #252525;
    transition: color 0.3s ease;
}

.owl-pro1 .thumbnail p a:hover {
    color: #41226b;
}

.img-pro-cat {
    margin-top: 10px;
}

.img-pro-cat img {
    border-radius: 8px;
    max-height: 150px;
    object-fit: contain;
}

/* ========================================
   MAIN LAYOUT: Two Column Layout (Desktop)
   ======================================== */

/* Filter Category - Parent UL */
.filter-category {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
   
    gap: 20px;
    align-items: flex-start;
}

/* Filter Item - Sidebar (سمت راست) */
.filter-item {
    background-color: transparent;
    flex: 0 0 280px; /* عرض ثابت برای سایدبار */
    width: 280px;
}

/* Category Container - Main Content (سمت چپ) */
.category-container {
    list-style: none;
    flex: 1; /* باقی فضا برای محصولات */
    min-width: 0;
}

/* ========================================
   STICKY SIDEBAR (Desktop Only)
   ======================================== */
.sticky_column {
    position: sticky;
    top: 20px;
    align-self: flex-start;
}

/* ========================================
   FILTER BOX STYLES
   ======================================== */
.filter-box {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    overflow: hidden;
}

.panel-group {
    margin-bottom: 0;
}

.panel-default {
    border: none;
    box-shadow: none;
}

.panel-heading {
    background-color: transparent;
    border: none;
    padding: 0;
}

/* دکمه‌های فیلتر و مرتب‌سازی در بالای صفحه (موبایل) */
.panel-title ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: none; /* پنهان در دسکتاپ */
}

/* ========================================
   FILTER BUTTONS (Mobile Fixed Bottom)
   ======================================== */
.btn-filter,
.btn-sort {
    background-color: #41226b;
    color: #fff;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-filter:hover,
.btn-filter:focus {
    background-color: #562e8f;
}

.btn-sort {
    background-color: #fac402;
    color: #252525;
}

.btn-sort:hover,
.btn-sort:focus {
    background-color: #e8b600;
}

.btn-filter i,
.btn-sort i {
    font-size: 16px;
}

/* ========================================
   PANEL COLLAPSE (Filter Content)
   ======================================== */
.panel-collapse {
    background-color: #fff;
    overflow: visible;
}

.panel-body {
    padding: 20px;
}

/* ========================================
   CLOSE FILTER BOX (Mobile)
   ======================================== */
.close-box-fiter {
    display: none;
    background-color: #f8f8f8;
    padding: 12px 15px;
    margin: -20px -20px 15px -20px;
    border-bottom: 1px solid #ebebeb;
    align-items: center;
    justify-content: space-between;
}

.action-filter-box,
.clear-filter-box {
    text-align: center;
    font-size: 13px;
    color: #666;
}

.close-flter {
    text-align: center;
    cursor: pointer;
    background-color: #ff4444;
    color: #fff;
    border-radius: 6px;
    padding: 6px 10px;
    transition: all 0.3s ease;
    border: none !important;
    box-shadow: none !important;
}

.close-flter:hover {
    background-color: #cc0000;
}

.action-button {
    font-size: 16px;
}

/* ========================================
   FILTER PANEL
   ======================================== */
.filter_pannel ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.block.cat-filter {
    border-bottom: 1px solid #ebebeb;
    padding: 18px 0;
}

.block.cat-filter:first-child {
    padding-top: 0;
}

.block.cat-filter:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

/* Category Filter Name */
.cat-filter-name {
    font-size: 14px;
    font-weight: bold;
    color: #252525;
    margin-bottom: 12px !important;
}

/* ========================================
   CATEGORY FILTER
   ======================================== */
.main-categori {
    list-style: none;
}

.categori-name ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.categori-name ul li {
    margin: 6px 0;
}

.categori-name ul li a {
    color: #666;
    font-size: 13px;
    transition: color 0.3s ease;
    display: block;
    padding: 6px 8px;
    border-radius: 6px;
}

.categori-name ul li a:hover {
    color: #41226b;
    background-color: #f8f8f8;
}

.categori-name ul li a i {
    margin-left: 6px;
    font-size: 10px;
}

.c-catalog__list--depth {
    list-style: none;
    padding-right: 20px;
    margin-top: 8px;
}

.c-catalog__list--depth li {
    margin: 5px 0;
}

.c-catalog__list--depth li a {
    color: #666;
    font-size: 12px;
    padding: 5px 8px;
    display: block;
    border-radius: 6px;
}

.c-catalog__list--depth li a:hover {
    color: #41226b;
    background-color: #f8f8f8;
}

.c-catalog__list--depth li.more {
    color: #41226b;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    margin-top: 10px;
    padding: 5px 8px;
}

.c-catalog__list--depth li.more:hover {
    text-decoration: underline;
}

/* ========================================
   FILTER ACCORDION (Collapsible Filters)
   ======================================== */
.block.cat-filter > input[type="checkbox"] {
    display: none;
}

.block.cat-filter > i {
    display: none;
}

.filter-cation {
    font-size: 14px;
    font-weight: 500;
    color: #252525;
    cursor: pointer;
    display: block;
    margin-bottom: 12px;
    position: relative;
    padding-left: 20px;
}

.filter-cation::before {
    content: "\f078";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 2px;
    font-size: 12px;
    color: #666;
    transition: transform 0.3s ease;
}

.block.cat-filter > input[type="checkbox"]:checked + i + .filter-cation::before {
    transform: rotate(180deg);
}

.block.cat-filter .options {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.block.cat-filter > input[type="checkbox"]:checked ~ .options {
    max-height: 400px;
}

/* ========================================
   QUICK SEARCH INPUT
   ======================================== */
.input-quick-search {
    margin-top: 0;
}

.input-quick-search .input-field {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 13px;
    transition: all 0.3s ease;
}

.input-quick-search .input-field:focus {
    border-color: #41226b;
    box-shadow: 0 0 0 3px rgba(65, 34, 107, 0.1);
    outline: none;
}

.input-quick-search .input-field::placeholder {
    color: #999;
}

/* ========================================
   STATUS SWITCHER (Toggle Switch)
   ======================================== */
.c-ui-statusswitcher {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
    margin-left: 10px;
    vertical-align: middle;
}

.c-ui-statusswitcher input {
    opacity: 0;
    width: 0;
    height: 0;
}

.c-ui-statusswitcher__slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.4s;
    border-radius: 26px;
}

.c-ui-statusswitcher__slider__toggle {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    right: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

.c-ui-statusswitcher input:checked + .c-ui-statusswitcher__slider {
    background-color: #41226b;
}

.c-ui-statusswitcher input:checked + .c-ui-statusswitcher__slider .c-ui-statusswitcher__slider__toggle {
    transform: translateX(-24px);
}

.c-ui-statusswitcher input:focus + .c-ui-statusswitcher__slider {
    box-shadow: 0 0 1px #41226b;
}

.status {
    font-size: 13px;
    color: #252525;
    vertical-align: middle;
}

/* ========================================
   SCROLL OPTIONS
   ======================================== */
.scroll .options {
    max-height: 280px !important;
    overflow-y: auto;
}

/* ========================================
   FILTER OPTIONS
   ======================================== */
.options {
    margin-top: 0;
}

.li-item {
    list-style: none;
    padding: 0;
    margin: 0;
}

.li-item li {
    margin: 10px 0;
}

/* ========================================
   CUSTOM CHECKBOX/RADIO
   ======================================== */
.checkbox-icon.customradio {
    display: block;
    position: relative;
    padding-right: 32px;
    cursor: pointer;
    font-size: 13px;
    color: #666;
    user-select: none;
    line-height: 1.6;
    transition: color 0.3s ease;
}

.checkbox-icon.customradio:hover {
    color: #252525;
}

.checkbox-icon.customradio input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    top: 2px;
    right: 0;
    height: 20px;
    width: 20px;
    background-color: #fff;
    border: 2px solid #ddd;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.checkbox-icon.customradio:hover input ~ .checkmark {
    border-color: #41226b;
}

.checkbox-icon.customradio input:checked ~ .checkmark {
    background-color: #41226b;
    border-color: #41226b;
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.checkbox-icon.customradio input:checked ~ .checkmark:after {
    display: block;
}

.checkbox-icon.customradio .checkmark:after {
    right: 5px;
    top: 2px;
    width: 5px;
    height: 9px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* ========================================
   BRAND LOGO
   ======================================== */
.logo-brand {
    display: inline-block;
    width: 32px;
    height: 32px;
    margin-left: 10px;
    vertical-align: middle;
}

.logo-brand img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 4px;
    border: 1px solid #f0f0f0;
}

.name-factur {
    vertical-align: middle;
}

/* ========================================
   PRICE RANGE FILTER
   ======================================== */
#double-handle-slider {
    margin: 25px 10px 30px 10px;
}

.cost-rang {
    list-style: none;
    padding: 0;
    margin: 15px 0;
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.cost-rang li {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
}

.lbl-prise {
    font-size: 13px;
    color: #666;
    white-space: nowrap;
}

.cost-rang input {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 12px;
    text-align: center;
}

.cost-rang p {
    font-size: 11px;
    color: #666;
    white-space: nowrap;
}

.btn-action {
    text-align: center;
    margin-top: 15px;
}

.btn-filter-cost {
    background-color: #41226b;
    color: #fff;
    border: none;
    padding: 10px 24px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.btn-filter-cost:hover {
    background-color: #562e8f;
}

.btn-filter-cost i {
    margin-left: 6px;
}

/* ========================================
   SORT TOP ROW (Desktop Only)
   ======================================== */
.row-sort-top {
    background-color: #fff;
    padding: 15px 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.btn-filter.row-sort-top .btn-filter {
    background-color: transparent;
    padding: 0;
}

.btn-filter label.icon-sort {
    display: inline-block;
    font-weight: bold;

    margin-left: 20px;
    font-size: 14px;
}

.btn-filter label.icon-sort span {
    display: inline-block;
    width: 3px;
    height: 16px;
    background-color: #41226b;
    margin-left: 8px;
    vertical-align: middle;
    border-radius: 2px;
}

.sort_label {
    display: inline-block;
    margin: 0 6px;
    cursor: pointer;
    padding: 8px 16px;
    background-color: #f8f8f8;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.sort_label:hover {
    border-color: #41226b;
    background-color: #fff;
}

.sort_label input.button_radio {
    display: none;
}

.sort_label input.button_radio:checked + span {
    color: #41226b;
    font-weight: bold;
}

.sort_label span {
    font-size: 13px;
    color: #666;
    transition: all 0.3s ease;
}

/* ========================================
   PRODUCT LIST ROW
   ======================================== */
.row-list-item {
    margin-top: 0;
    margin-left: -8px;
    margin-right: -8px;
}

.row-list-item > div {
    margin-bottom: 16px;
    padding-left: 8px;
    padding-right: 8px;
}

/* ========================================
   NO PRODUCTS FOUND
   ======================================== */
.row-inner-cat {
    padding: 80px 20px;
    text-align: center;
}

.inner-cat-name {
    font-size: 15px;
    color: #666;
    padding: 50px 30px;
    background-color: #f8f8f8;
    border-radius: 12px;
    border: 2px dashed #ddd;
}

.inner-cat-name span {
    display: block;
}

/* ========================================
   CATEGORY DESCRIPTION & FAQ
   ======================================== */
.cat-desc-content {
    margin-top: 30px;
    line-height: 2;
    color: #666;
    font-size: 14px;
}

.cat-desc-content h1,
.cat-desc-content h2,
.cat-desc-content h3 {
    color: #252525;
    font-weight: bold;
    margin: 25px 0 15px 0;
}

.cat-desc-content p {
    margin-bottom: 15px !important;
}

.cat-desc-content ul,
.cat-desc-content ol {
    padding-right: 25px;
    margin-bottom: 15px !important;
}

/* FAQ Accordion */
.accordion {
    margin-top: 30px;
}

.accordion-item {
    border: 1px solid #ebebeb;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 10px;
}

.accordion-header {
    margin-bottom: 0;
}

.accordion-button {
    background-color: #fff;
    color: #252525;
    font-size: 14px;
    font-weight: 500;
    padding: 16px 20px;
    border: none;
    width: 100%;
    text-align: right;
    transition: all 0.3s ease;
}

.accordion-button:not(.collapsed) {
    background-color: #f8f8f8;
    color: #41226b;
    box-shadow: none;
}

.accordion-button:hover {
    background-color: #f8f8f8;
}

.accordion-button:focus {
    box-shadow: none;
    border: none;
}

.accordion-button::after {
    margin-right: auto;
    margin-left: 0;
}

.accordion-body {
    padding: 20px;
    background-color: #fff;
    color: #666;
    font-size: 13px;
    line-height: 2;
}

/* ========================================
   SORT MODAL (Mobile)
   ======================================== */
.modal-content {
    border-radius: 12px;
    border: none;
}

.modal-body {
    padding: 25px;
}

.sort-caption {
    font-size: 16px;
    font-weight: bold;
    color: #252525;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #ebebeb;
}

.radio {
    margin-bottom: 12px;
}

.radiotextsty {
    font-size: 14px;
    color: #666;
}

.modal-footer {
    border-top: 1px solid #ebebeb;
    padding: 15px 20px;
}

.btn-group-justified {
    width: 100%;
}

.btn-delete {
    width: 100%;
}

.btn-default,
.btn-hover-red {
    background-color: #41226b;
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.btn-default:hover,
.btn-hover-red:hover {
    background-color: #562e8f;
}

/* ========================================
   PAGINATION
   ======================================== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.pagination .page-link {
    color: #666;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 8px 14px;
    font-size: 13px;
    transition: all 0.3s ease;
}

.pagination .page-link:hover {
    background-color: #f8f8f8;
    border-color: #41226b;
    color: #41226b;
}

.pagination .page-item.active .page-link {
    background-color: #41226b;
    border-color: #41226b;
    color: #fff;
}

.pagination .page-item.disabled .page-link {
    color: #ccc;
    background-color: #f8f8f8;
    cursor: not-allowed;
}

/* ========================================
   LOADING SPINNER
   ======================================== */
div[wire\:loading] {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.9);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ========================================
   NOUISLIDER CUSTOM STYLES
   ======================================== */
.noUi-target {
    background: #ebebeb;
    border-radius: 8px;
    border: none;
    box-shadow: none;
    height: 6px;
}

.noUi-connect {
    background: #41226b;
}

.noUi-handle {
    border: 3px solid #41226b;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    border-radius: 50%;
    cursor: pointer;
    width: 20px;
    height: 20px;
}

.noUi-handle:before,
.noUi-handle:after {
    display: none;
}

.noUi-horizontal .noUi-handle {
    width: 20px;
    height: 20px;
    right: -10px;
    top: -7px;
}

.noUi-tooltip {
    background: #41226b;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 11px;
    padding: 5px 10px;
}

/* ========================================
   MCUSTOMSCROLLBAR STYLES
   ======================================== */
.mCustomScrollbar {
    direction: rtl;
}

.mCSB_scrollTools {
    width: 6px;
}

.mCSB_dragger_bar {
    background-color: #41226b !important;
    border-radius: 3px;
}

.mCSB_scrollTools .mCSB_dragger:hover .mCSB_dragger_bar {
    background-color: #562e8f !important;
}

.mCSB_scrollTools .mCSB_draggerRail {
    background-color: #f0f0f0;
}

/* ========================================
   RESPONSIVE STYLES
   ======================================== */

/* ====== MOBILE (زیر 768px) ====== */
@media screen and (max-width: 767px) {

    /* تغییر لی‌آوت به تک ستونی */
    .filter-category {
        flex-direction: column;
        gap: 0;
    }

    /* فیلتر سایدبار */
    .filter-item {
        flex: 1;
        width: 100%;
        order: 2; /* فیلتر پایین */
    }

    /* محصولات */
    .category-container {
        order: 1; /* محصولات بالا */
        padding-bottom: 80px; /* فضا برای دکمه‌های fixed */
    }

    /* غیرفعال کردن sticky */
    .sticky_column {
        position: static;
    }

    /* دکمه‌های فیلتر و مرتب‌سازی - FIXED در پایین صفحه */
    .panel-title ul {
        display: flex !important;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background-color: #fff;
        box-shadow: 0 -4px 12px rgba(0,0,0,0.1);
        z-index: 1000;
        padding: 10px;
        gap: 10px;
        margin: 0;
    }

    .panel-title ul li {
        flex: 1;
    }

    .panel-title ul li a {
        display: block;
    }

    .btn-filter,
    .btn-sort {
        padding: 14px 16px;
        font-size: 13px;
        font-weight: 600;
    }

    .sort-option {
        padding-right: 0;
    }

    /* Filter Box */
    .filter-box {
        margin-bottom: 10px;
        border-radius: 0;
    }

    .panel-collapse {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 2000;
        background-color: #fff;
        overflow-y: auto;
        border-radius: 0;
    }

    .panel-collapse.collapse:not(.show) {
        display: none;
    }

    .panel-collapse.show {
        display: block;
    }

    /* Close Box - نمایش در موبایل */
    .close-box-fiter {
        display: flex !important;
    }

    .panel-body {
        padding: 15px;
        padding-bottom: 30px;
    }

    /* Title Section */
    .title-section {
        font-size: 16px;
        margin: 15px 0;
    }

    /* Product Grid */
    .row-list-item > div {
        margin-bottom: 12px;
    }

    /* Sort Row - پنهان در موبایل */
    .row-sort-top {
        display: none !important;
    }

    /* Price Range */
    .cost-rang {
        flex-direction: column;
        gap: 12px;
    }

    .cost-rang input {
        width: 100%;
    }

    /* Carousel */
    .owl-pro1 .item {
        margin: 4px;
    }

    .img-pro-cat img {
        max-height: 100px;
    }

    /* Pagination */
    .pagination {
        gap: 4px;
    }

    .pagination .page-link {
        padding: 6px 10px;
        font-size: 12px;
    }

    /* Category Description */
    .cat-desc-content {
        font-size: 13px;
    }

    .inner-cat-name {
        font-size: 14px;
        padding: 40px 20px;
    }
}

/* ====== TABLET (768px - 991px) ====== */
@media screen and (min-width: 768px) and (max-width: 991px) {

    /* فیلتر سایدبار */
    .filter-item {
        flex: 0 0 240px;
        width: 240px;
    }

    /* Title Section */
    .title-section {
        font-size: 18px;
    }

    /* دکمه‌ها */
    .btn-filter,
    .btn-sort {
        padding: 10px 18px;
        font-size: 13px;
    }

    /* Price Range */
    .cost-rang input {
        width: 90px;
    }

    /* دکمه‌های بالا پنهان */
    .panel-title ul {
        display: none;
    }

    /* Panel Collapse باز */
    .panel-collapse {
        display: block !important;
    }

    /* Sort Row */
    .sort_label {
        padding: 6px 12px;
        font-size: 12px;
    }
}

/* ====== DESKTOP (بالای 992px) ====== */
@media screen and (min-width: 992px) {

    .col-top {
        padding-top: 30px;
    }

    /* Filter Box با Shadow */
    .filter-box {
        box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    }

    /* Sticky Sidebar فعال */
    .sticky_column {
        position: sticky;
        top: 20px;
    }

    /* دکمه‌های بالا پنهان */
    .panel-title ul {
        display: none;
    }

    /* Panel Collapse همیشه باز */
    .panel-collapse {
        display: block !important;
    }

    /* Filter Item عرض بیشتر */
    .filter-item {
        flex: 0 0 300px;
        width: 300px;
    }
}

/* ====== LARGE DESKTOP (بالای 1200px) ====== */
@media screen and (min-width: 1200px) {

    .filter-item {
        flex: 0 0 320px;
        width: 320px;
    }

    .filter-category {
        gap: 30px;
    }
}

/* ========================================
   PRODUCT CARD STYLES
   ======================================== */

/* Product Item Container */
.item.item-pro {
    position: relative;
    border: 1px solid #cacaca;
    overflow: hidden;
    min-width: 180px;
    margin: 20px 0;
    border-radius: 10px;
    background-color: #fff;
    transition: all 0.2s linear;
    padding: 10px;
}

.item.item-pro:hover {
    border-color: #41226b;
    box-shadow: 0 4px 16px rgba(65, 34, 107, 0.15);
}

/* Quick Buttons (Add to Cart, Favorite) */
.quick-btn {
    position: absolute;
    left: -40px;
    top: 5%;
    z-index: 3;
    border-radius: 3px;
    transition: all 0.2s ease;
}

.quick-btn .list-menu {
    width: 35px;
    display: block;
    padding: 0;
    margin: 3px 0;
    transform: scale(0);
    transition: 0.15s linear;
}

.list-menu li {
    list-style: none;
    display: block;
    margin-bottom: 5px;
}

.list-menu button {
    border: solid 0.25px #d4d3d2;
    border-radius: 100%;
    background-color: #fff;
    width: 35px;
    height: 35px;
    line-height: 26px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.list-menu button:hover {
    background-color: #41226b;
    border-color: #41226b;
    color: #fff;
    transform: scale(1.1);
}

/* Show buttons on hover */
.item.item-pro:hover .quick-btn {
    left: 5px !important;
    z-index: 2;
}

.item.item-pro:hover .list-menu {
    transform: scale(1) !important;
    transition: 0.15s linear;
}

/* Product Image */
.item-img {
    position: relative;
    text-align: center;
    padding: 10px;
}

.item-img .img-pro {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.item-img .img-pro img {
    width: 100%;
    height: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
    max-height: 220px;
}

.item.item-pro:hover .item-img .img-pro img {
    transform: scale(1.05);
}

/* Product Name */
.name-col {
    margin-top: 10px;
}

.pro-name-special {
    min-height: 50px;
    margin-top: 7px;
}

.pro-name h3 {
    color: #435a6d;
    min-height: 43px;
    font-size: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.5;
    margin: 0;
    transition: color 0.3s ease;
}

.pro-name:hover h3 {
    color: #41226b;
}

/* Cost/Price Section */
.cost-col {
    min-height: 40px;
    padding-top: 5px;
}

.flex-price {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 40px;
    gap: 8px;
    padding: 10px 5px;
}

/* Discount Badge */
.off-total {
    border-radius: 10px;
    width: 29px;
    height: 29px;
    line-height: 29px;
    display: inline-block;
    text-align: center;
    color: #fff;
    background-color: #fac402;
    font-size: 12px;
    font-weight: bold;
    flex-shrink: 0;
}

/* Price Display */
.cost-total {
    color: #000;
    font-weight: bolder;
    display: inline-block;
    font-size: 16px;
    line-height: 1;
}

.unit {
    color: #666666;
    font-size: 11px;
    margin-right: 3px;
}

.old-price {
    color: #bcbcbc;
    font-size: 14px;
    line-height: 1;
    text-decoration: line-through;
    margin-bottom: 3px;
}

/* Unavailable/Call for Price Button */
.btn-cost {
    font-size: 13px;
    padding: 8px 16px;
    border-radius: 8px;
    text-align: center;
}

.btn-cost a {
    color: #fff;
    text-decoration: none;
}

/* Icon Styles */
.icon-add-card {
    background-position: -56px -3px;
    width: 15px;
    height: 15px;
    display: inline-block;
    vertical-align: middle;
    position: relative;
}

.show-btn-pro .img-slice {
    background-position: -34px -4px;
    width: 14px;
    height: 11px;
    display: inline-block;
    vertical-align: middle;
    position: relative;
}

/* Responsive Product Card */
@media screen and (max-width: 767px) {
    .item.item-pro {
        margin: 10px 0;
        padding: 8px;
    }

    .item-img .img-pro img {
        max-height: 180px;
    }

    .pro-name h3 {
        font-size: 13px;
        min-height: 38px;
    }

    .cost-total {
        font-size: 14px;
    }

    .off-total {
        width: 26px;
        height: 26px;
        line-height: 26px;
        font-size: 11px;
    }

    /* دکمه‌های سریع همیشه نمایش داده شوند در موبایل */
    .quick-btn {
        left: 5px !important;
    }

    .quick-btn .list-menu {
        transform: scale(1) !important;
    }

    .list-menu button {
        width: 32px;
        height: 32px;
    }
}

@media screen and (min-width: 768px) and (max-width: 991px) {
    .item-img .img-pro img {
        max-height: 200px;
    }

    .pro-name h3 {
        font-size: 13px;
    }
}

/* ========================================
   UTILITY CLASSES
   ======================================== */
.p-xs-0 {
    padding: 0;
}

@media screen and (max-width: 575px) {
    .ps-2 {
        padding-right: 8px !important;
    }

    .pe-2 {
        padding-left: 8px !important;
    }
}
















/* ========================================
   SIDEBAR CATEGORY FILTER - IMPROVED
   ======================================== */

.cat-filter-name {
    font-size: 15px;
    font-weight: 700;
    color: #252525;
    margin-bottom: 14px !important;
    position: relative;
    padding-bottom: 8px;
}

.cat-filter-name::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: #41226b;
    border-radius: 1px;
}

/* درخت دسته‌بندی */
.category-tree {
    background-color: #f9f9f9;
    border-radius: 10px;
    padding: 12px 0;
    margin-top: 8px;
}

.category-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* آیتم اصلی */
.category-item {
    margin: 0;
    border-bottom: 1px dashed #e0e0e0;
}

.category-item:last-child {
    border-bottom: none;
}

.category-item a {
    display: block;
    padding: 10px 16px;
    color: #555;
    font-size: 13.5px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.25s ease;
    position: relative;
}

.category-item a:hover {
    color: #41226b;
    background-color: #f0f0f8;
    padding-left: 20px;
}

/* آیکون‌ها */
.category-item i {
    font-size: 12px;
    margin-left: 6px;
    color: #888;
    transition: color 0.25s ease;
}

.category-item a:hover i {
    color: #41226b;
}

/* دسته فعلی */
.category-item.current > a {
    color: #41226b;
    font-weight: 600;
    background-color: #f0f0f8;
    border-left: 3px solid #41226b;
    padding-left: 13px;
}

.category-item.current > a .toggle-icon {
    float: left;
    margin-left: 0;
    margin-top: 2px;
    transition: transform 0.3s ease;
}

.category-item.current > a.collapsed .toggle-icon {
    transform: rotate(-90deg);
}

/* زیرمنو */
.submenu {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
    background-color: #fff;
}

.submenu.show {
    max-height: 500px;
    border-top: 1px solid #eee;
}

.submenu-item {
    border-bottom: 1px dashed #eee;
}

.submenu-item:last-child {
    border-bottom: none;
}

.submenu-item a {
    padding: 9px 32px;
    font-size: 13px;
    color: #666;
}

.submenu-item a:hover {
    color: #41226b;
    background-color: #f8f8ff;
    padding-right: 36px;
}

.submenu-item i {
    font-size: 10px;
    color: #aaa;
}

/* دکمه نمایش بیشتر */
.show-more-item {
    text-align: center;
    padding: 8px 0;
}

.show-more-btn {
    font-size: 12.5px;
    color: #41226b;
    font-weight: 600;
    text-decoration: none;
}

.show-more-btn .count {
    font-weight: normal;
    color: #888;
}

.show-more-btn:hover {
    text-decoration: underline;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 767px) {
    .cat-filter-name {
        font-size: 14px;
    }
    .category-tree {
        padding: 10px 0;
        border-radius: 8px;
    }
    .category-item a {
        padding: 9px 14px;
        font-size: 13px;
    }
    .submenu-item a {
        padding: 8px 28px;
        font-size: 12.5px;
    }
}
