﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #f5f5f7;
    /*font-family: 'Vazirmatn', sans-serif;*/
    padding: 0 0 20px 0;
    color: #1e1e1e;
}

.container-custom {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.breadcrumb-top {
    font-size: 0.8rem;
    color: #6c757d;
    margin: 16px 0 8px;
}

    .breadcrumb-top i {
        margin-left: 4px;
    }

.search-box-wrapper {
    position: relative;
    margin-bottom: 12px;
}

    .search-box-wrapper input {
        width: 100%;
        padding: 12px 46px 12px 16px;
        border: 1px solid #ddd;
        border-radius: 30px;
        font-size: 0.9rem;
        background: white;
        /*font-family: inherit;*/
        transition: all 0.2s;
    }

        .search-box-wrapper input:focus {
            outline: none;
            border-color: #ef5046;
            box-shadow: 0 0 0 3px rgba(239, 80, 70, 0.1);
        }

    .search-box-wrapper .search-icon {
        position: absolute;
        top: 50%;
        right: 16px;
        transform: translateY(-50%);
        color: #888;
        font-size: 1rem;
    }

.top-sticky {
    position: sticky;
    top: 0;
    z-index: 250;
    background: #f5f5f7;
    padding: 0 0 8px 0;
}

.filter-sort-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 0;
    flex-wrap: nowrap;
}

.sort-chips-row {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    flex: 1;
    padding-bottom: 4px;
    white-space: nowrap;
    scrollbar-width: thin;
}

    .sort-chips-row::-webkit-scrollbar {
        height: 4px;
    }

    .sort-chips-row::-webkit-scrollbar-thumb {
        background: #ccc;
        border-radius: 4px;
    }

.sort-chip {
    background: white;
    border: 1px solid #ddd;
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    flex-shrink: 0;
    color: #333;
}

    .sort-chip.active {
        background: #ef5046;
        color: white;
        border-color: #ef5046;
    }

.sort-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #555;
    margin-left: 4px;
    white-space: nowrap;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 16px;
    margin-top: 10px;
}

.product-card {
    background: white;
    border-radius: 20px;
    padding: 12px;
    border: 1px solid #eee;
    transition: box-shadow 0.2s, transform 0.2s;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

    .product-card:hover {
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
        transform: translateY(-2px);
    }

.product-card-img {
    aspect-ratio: 1 / 1;
    object-fit: contain;
    border-radius: 16px;
    background: #fafafa;
    width: 100%;
    margin-bottom: 10px;
}

.product-card-title {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: #1e1e1e;
    text-decoration: none;
    min-height: 44px;
}

    .product-card-title:hover {
        color: #ef5046;
    }

.product-card-price {
    font-size: 1.1rem;
    font-weight: 800;
    color: #ef5046;
    margin-bottom: 8px;
}

.product-card-colors {
    display: flex;
    gap: 6px;
    margin-bottom: 10px;
}

.product-card-color-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 1.5px solid #ccc;
}

.product-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.product-card-rating {
    font-size: 0.75rem;
    color: #888;
}

    .product-card-rating i {
        color: #f59e0b;
        margin-left: 2px;
    }

.add-to-cart-btn {
    background: #ef5046;
    border: none;
    color: white;
    font-size: 0.8rem;
    padding: 6px 14px;
    border-radius: 30px;
    cursor: pointer;
    transition: background 0.2s;
}

    .add-to-cart-btn:hover {
        background: #d63c32;
    }

    .add-to-cart-btn:disabled {
        opacity: 0.65;
        cursor: wait;
    }

.product-cart-message {
    position: fixed;
    top: 90px;
    left: 50%;
    z-index: 2200;
    width: max-content;
    max-width: calc(100vw - 24px);
    padding: 10px 18px;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 14px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.16);
    font-size: 0.88rem;
    line-height: 1.8;
    text-align: center;
    direction: rtl;
    transform: translateX(-50%);
}

/* دسکتاپ */
@media (min-width: 992px) {
    body {
        padding-top: 20px;
    }

    .mobile-only {
        display: none !important;
    }

    .desktop-layout {
        display: flex;
        gap: 24px;
        margin-top: 16px;
    }

    .desktop-sidebar-filter {
        width: 280px;
        flex-shrink: 0;
        background: white;
        border-radius: 20px;
        padding: 20px;
        border: 1px solid #eee;
        align-self: flex-start;
        position: sticky;
        top: 56px;
        max-height: calc(100vh - 56px - 20px);
        overflow-y: auto;
        z-index: 100;
    }

    .desktop-main {
        flex: 1;
        min-width: 0;
    }

    .sort-bar-desktop {
        display: flex;
        align-items: center;
        gap: 8px;
        margin-bottom: 16px;
        position: sticky;
        top: 56px;
        background: white;
        border-radius: 20px;
        padding: 12px 16px;
        border: 1px solid #eee;
        z-index: 200;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
    }

    .product-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
        margin-top: 0;
    }

    .product-card {
        padding: 16px;
    }

    .product-card-title {
        font-size: 1rem;
    }

    .product-card-price {
        font-size: 1.2rem;
    }

    .filter-section {
        margin-bottom: 24px;
    }

        .filter-section h4 {
            font-size: 0.95rem;
            font-weight: 700;
            margin-bottom: 12px;
            color: #1e1e1e;
            display: flex;
            align-items: center;
            gap: 6px;
        }

            .filter-section h4 i {
                color: #ef5046;
                font-size: 0.9rem;
            }

    .price-range-inputs {
        display: flex;
        align-items: center;
        gap: 8px;
    }

        .price-range-inputs input {
            width: 100%;
            padding: 8px 12px;
            border: 1px solid #ddd;
            border-radius: 12px;
            font-size: 0.8rem;
            /*font-family: inherit;*/
        }

        .price-range-inputs span {
            color: #888;
        }

    .apply-filter-btn {
        width: 100%;
        background: #ef5046;
        color: white;
        border: none;
        padding: 12px;
        border-radius: 30px;
        font-size: 0.9rem;
        font-weight: 700;
        cursor: pointer;
        transition: background 0.2s;
        margin-top: 24px;
        /*font-family: inherit;*/
    }

        .apply-filter-btn:hover {
            background: #d63c32;
        }

    .multi-select {
        position: relative;
    }

        .multi-select .select-box {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 8px;
            padding: 8px 12px;
            border: 1px solid #ddd;
            border-radius: 12px;
            cursor: pointer;
            background: white;
            min-height: 42px;
            font-size: 0.8rem;
        }

        .multi-select .selected-items {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            gap: 6px;
            flex: 1;
            min-height: 24px;
        }

        .multi-select .select-arrow {
            color: #888;
            font-size: 0.75rem;
            flex-shrink: 0;
            margin-right: auto;
            transition: transform 0.2s;
        }

            .multi-select .select-arrow.open {
                transform: rotate(180deg);
            }

        .multi-select .select-box .placeholder {
            color: #aaa;
        }

        .multi-select .select-box .chip {
            background: #f0f0f0;
            border-radius: 20px;
            padding: 2px 10px;
            font-size: 0.75rem;
            display: inline-flex;
            align-items: center;
            gap: 6px;
            max-width: 150px;
            overflow: hidden;
            white-space: nowrap;
            text-overflow: ellipsis;
        }

            .multi-select .select-box .chip .remove-chip {
                cursor: pointer;
                color: #888;
                font-size: 0.9rem;
                line-height: 1;
            }

        .multi-select .dropdown {
            position: absolute;
            top: 100%;
            left: 0;
            right: 0;
            background: white;
            border: 1px solid #eee;
            border-radius: 12px;
            box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
            z-index: 300;
            display: none;
            margin-top: 6px;
            overflow: hidden;
        }

            .multi-select .dropdown.active {
                display: block;
            }

            .multi-select .dropdown .search-input {
                width: 100%;
                padding: 10px 12px;
                border: none;
                border-bottom: 1px solid #eee;
                /*font-family: inherit;*/
                font-size: 0.8rem;
            }

                .multi-select .dropdown .search-input:focus {
                    outline: none;
                }

            .multi-select .dropdown .options-list {
                max-height: 180px;
                overflow-y: auto;
                padding: 6px 0;
            }

                .multi-select .dropdown .options-list label {
                    display: flex;
                    align-items: center;
                    gap: 8px;
                    padding: 8px 12px;
                    font-size: 0.8rem;
                    cursor: pointer;
                    transition: background 0.2s;
                }

                    .multi-select .dropdown .options-list label:hover {
                        background: #f9f9f9;
                    }

                .multi-select .dropdown .options-list input[type="checkbox"] {
                    accent-color: #ef5046;
                }
}

/* موبایل */
@media (max-width: 991px) {
    .desktop-only {
        display: none !important;
    }

    body {
        padding-bottom: 80px;
    }

    .container-custom {
        padding: 0 12px;
    }

    .sort-trigger-row {
        display: flex;
        align-items: center;
        gap: 8px;
        flex: 1;
    }

    .sort-trigger {
        display: flex;
        align-items: center;
        gap: 8px;
        background: white;
        border: 1px solid #ddd;
        padding: 10px 16px;
        border-radius: 30px;
        font-size: 0.8rem;
        cursor: pointer;
        white-space: nowrap;
        color: #1e1e1e;
        min-width: 100px;
        justify-content: center;
    }

    .mobile-sort-label-text {
        font-size: 0.8rem;
        font-weight: 600;
        color: #555;
        white-space: nowrap;
    }

    .mobile-bottom-bar {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: white;
        border-top: 1px solid #eee;
        display: flex;
        justify-content: space-around;
        padding: 8px 0;
        z-index: 900;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
    }

        .mobile-bottom-bar .bar-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 4px;
            font-size: 0.7rem;
            color: #888;
            cursor: pointer;
            text-decoration: none;
        }

            .mobile-bottom-bar .bar-item.active {
                color: #ef5046;
            }

    .mobile-sheet {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        height: 100vh;
        background: white;
        z-index: 1100;
        transform: translateY(100%);
        transition: transform 0.3s;
        display: flex;
        flex-direction: column;
        border-radius: 24px 24px 0 0;
        overflow: hidden;
    }

        .mobile-sheet.open {
            transform: translateY(40%);
        }

    .sheet-handle {
        width: 40px;
        height: 5px;
        background: #ccc;
        border-radius: 3px;
        margin: 0 auto 8px;
        touch-action: none;
    }

    .sheet-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 14px;
        border-bottom: 1px solid #ddd;
    }

        .sheet-header h3 {
            font-size: 1rem;
        }

    .close-sheet-btn {
        background: none;
        border: none;
        font-size: 1.5rem;
        cursor: pointer;
    }

    .category-list {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .category-list-item {
        padding: 14px 16px;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: space-between;
        border: none;
    }

    .overlay-backdrop {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.4);
        z-index: 1050;
        display: none;
    }

        .overlay-backdrop.show {
            display: block;
        }

    .sort-options-list {
        list-style: none;
        padding: 0;
        margin: 0;
    }

        .sort-options-list li {
            padding: 14px 16px;
            border-bottom: 1px solid #eee;
            font-size: 0.9rem;
            cursor: pointer;
        }

            .sort-options-list li.active {
                font-weight: 700;
                color: #ef5046;
            }

    .mobile-view-toggle {
        display: flex;
        align-items: center;
        gap: 6px;
        background: white;
        border: 1px solid #ddd;
        border-radius: 30px;
        padding: 4px;
        flex-shrink: 0;
    }

    .view-mode-btn {
        width: 34px;
        height: 34px;
        border: none;
        background: transparent;
        color: #777;
        border-radius: 50%;
        cursor: pointer;
        font-size: 0.9rem;
        display: flex;
        align-items: center;
        justify-content: center;
    }

        .view-mode-btn.active {
            background: #ef5046;
            color: white;
        }

    .product-grid.mobile-grid-view {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

        .product-grid.mobile-grid-view .product-card {
            padding: 10px;
            border-radius: 16px;
        }

        .product-grid.mobile-grid-view .product-card-img {
            margin-bottom: 8px;
            border-radius: 14px;
        }

        .product-grid.mobile-grid-view .product-card-title {
            font-size: 0.78rem;
            line-height: 1.5;
            min-height: 38px;
        }

        .product-grid.mobile-grid-view .product-card-price {
            font-size: 0.85rem;
            margin-bottom: 6px;
        }

        .product-grid.mobile-grid-view .product-card-colors {
            margin-bottom: 8px;
        }

        .product-grid.mobile-grid-view .product-card-color-dot {
            width: 13px;
            height: 13px;
        }

        .product-grid.mobile-grid-view .add-to-cart-btn {
            padding: 5px 10px;
            font-size: 0.75rem;
        }

    .product-grid.mobile-list-view {
        grid-template-columns: 1fr;
        gap: 10px;
    }

        .product-grid.mobile-list-view .product-card {
            display: grid;
            grid-template-columns: 105px 1fr;
            grid-template-areas: "image title" "image price" "image colors" "image footer";
            gap: 6px 12px;
            padding: 10px;
            border-radius: 18px;
            align-items: start;
        }

        .product-grid.mobile-list-view .product-card-img {
            grid-area: image;
            width: 105px;
            height: 105px;
            aspect-ratio: auto;
            margin-bottom: 0;
            border-radius: 16px;
        }

        .product-grid.mobile-list-view .product-card-title {
            grid-area: title;
            font-size: 0.9rem;
            line-height: 1.5;
            min-height: auto;
            margin-bottom: 0;
            -webkit-line-clamp: 2;
        }

        .product-grid.mobile-list-view .product-card-price {
            grid-area: price;
            font-size: 0.95rem;
            margin-bottom: 0;
        }

        .product-grid.mobile-list-view .product-card-colors {
            grid-area: colors;
            margin-bottom: 0;
        }

        .product-grid.mobile-list-view .product-card-footer {
            grid-area: footer;
            margin-top: 0;
        }

        .product-grid.mobile-list-view .add-to-cart-btn {
            padding: 6px 12px;
        }
}

@media (max-width: 991px) {
    body.product-index-page {
        padding-bottom: 92px;
    }

        body.product-index-page #siteHeader,
        body.product-index-page #siteFooter,
        body.product-index-page #darkModeToggle,
        body.product-index-page #redFloatingCard,
        body.product-index-page #mainMobileBottomMenu {
            display: none !important;
        }

        body.product-index-page #floatBtn {
            width: 46px;
            height: 46px;
            min-width: 46px;
            min-height: 46px;
            font-size: 1rem;
            bottom: 94px;
            right: 14px;
            z-index: 1035;
        }

        body.product-index-page .float-contact {
            bottom: 94px;
            right: 14px;
            z-index: 1035;
        }

        body.product-index-page #contactMenu {
            bottom: 58px;
            right: 0;
        }

    .mobile-search-filter-row {
        display: flex;
        align-items: stretch;
        gap: 8px;
        margin-bottom: 10px;
    }

    .mobile-active-filter-box {
        width: 42%;
        min-width: 135px;
        background: #fff;
        border: 1px solid #eee;
        border-radius: 18px;
        padding: 7px 9px;
        display: flex;
        flex-direction: column;
        gap: 5px;
        overflow: hidden;
    }

    .mobile-active-filter-title {
        font-size: 0.68rem;
        font-weight: 800;
        color: #555;
        white-space: nowrap;
    }

    .mobile-active-filter-items {
        display: flex;
        align-items: center;
        gap: 5px;
        overflow-x: auto;
        white-space: nowrap;
        scrollbar-width: none;
    }

        .mobile-active-filter-items::-webkit-scrollbar {
            display: none;
        }

    .mobile-filter-empty-text {
        font-size: 0.72rem;
        color: #999;
    }

    .mobile-filter-chip {
        display: inline-flex;
        align-items: center;
        gap: 5px;
        background: #fff2f1;
        color: #ef5046;
        border: 1px solid rgba(239, 80, 70, 0.18);
        border-radius: 999px;
        padding: 3px 7px;
        font-size: 0.7rem;
        font-weight: 700;
        max-width: 120px;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .mobile-remove-filter {
        width: 17px;
        height: 17px;
        border: none;
        border-radius: 50%;
        background: #ef5046;
        color: #fff;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 0.85rem;
        line-height: 1;
        padding: 0;
        cursor: pointer;
        flex-shrink: 0;
    }

    .mobile-search-inline {
        flex: 1;
        margin-bottom: 0;
    }

        .mobile-search-inline input {
            height: 100%;
            min-height: 52px;
            border-radius: 18px;
            padding-left: 12px;
        }

        .mobile-search-inline .search-icon {
            cursor: pointer;
        }

    .overlay-backdrop {
        background: rgba(0, 0, 0, 0.62);
        z-index: 1050;
        backdrop-filter: blur(1px);
    }

    .mobile-sheet {
        top: 0;
        height: 100vh;
        transform: translateY(100%);
        transition: transform 0.28s ease;
        will-change: transform;
    }

        .mobile-sheet.open {
            transform: translateY(var(--sheet-translate-y, 40%));
        }

            .mobile-sheet.open.full {
                transform: translateY(0);
                border-radius: 0;
            }

        .mobile-sheet.dragging {
            transition: none;
        }

    .sheet-header {
        position: relative;
        justify-content: center;
        padding: 16px 48px 13px;
        touch-action: none;
        user-select: none;
    }

        .sheet-header h3 {
            width: 100%;
            text-align: center;
            font-size: 1rem;
            font-weight: 800;
            margin: 0;
        }

    .sheet-handle {
        position: absolute;
        top: 7px;
        left: 50%;
        transform: translateX(-50%);
        margin: 0;
        width: 46px;
        height: 5px;
        background: #cfcfcf;
        border-radius: 999px;
    }

    .close-sheet-btn {
        position: absolute;
        left: 14px;
        top: 50%;
        transform: translateY(-50%);
        color: #ef5046;
        background: #fff2f1;
        border: 1px solid rgba(239, 80, 70, 0.18);
        width: 34px;
        height: 34px;
        border-radius: 50%;
        font-size: 1.35rem;
        line-height: 1;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .sheet-body {
        flex: 1;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    body.mobile-sheet-is-open {
        overflow: hidden;
    }

    .category-tree-list,
    .category-tree-children,
    .category-tree-grandchildren {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    /*.category-tree-parent {
        border-bottom: 1px solid #f1f1f1;
    }

    .category-tree-parent-row,
    .category-tree-child-row,
    .category-tree-grandchild {
        min-height: 52px;
        padding: 13px 16px;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
    }

    .category-tree-parent-row {
        font-weight: 800;
        color: #222;
        background: #fff;
    }*/

    /*.category-tree-child-row {
        padding-right: 30px;
        font-size: 0.88rem;
        color: #444;
        background: #fafafa;
        border-top: 1px solid #f1f1f1;
    }

    .category-tree-grandchild {
        padding-right: 46px;
        font-size: 0.82rem;
        color: #555;
        background: #fff;
        border-top: 1px solid #f5f5f5;
    }*/

    /*.category-tree-title {
        flex: 1;
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .category-tree-actions {
        display: inline-flex;
        align-items: center;
        gap: 10px;
        flex-shrink: 0;
        color: #999;
        font-size: 0.78rem;
    }*/

    .category-direct-select {
        border: none;
        background: #fff2f1;
        color: #ef5046;
        border-radius: 999px;
        padding: 5px 11px;
        font-size: 0.72rem;
        font-weight: 800;
        /*font-family: inherit;*/
        cursor: pointer;
    }

    /*.category-tree-children,
    .category-tree-grandchildren {
        display: none;
    }

    .category-tree-parent.open > .category-tree-children,
    .category-tree-child.open > .category-tree-grandchildren {
        display: block;
    }

    .category-tree-parent.open > .category-tree-parent-row .category-toggle-icon,
    .category-tree-child.open > .category-tree-child-row .category-toggle-icon {
        transform: rotate(180deg);
    }*/

    .category-toggle-icon {
        transition: transform 0.2s ease;
    }

    /*.category-tree-parent.active > .category-tree-parent-row,
    .category-tree-child.active > .category-tree-child-row,
    .category-tree-grandchild.active {
        background: #fff2f1;
        color: #ef5046;
        font-weight: 800;
    }*/

    .sort-options-list li {
        min-height: 52px;
        display: flex;
        align-items: center;
    }

    .product-mobile-bottom-bar {
        position: fixed;
        right: 12px;
        left: 12px;
        bottom: 12px;
        height: 66px;
        background: rgba(255, 255, 255, 0.96);
        border: 1px solid rgba(0, 0, 0, 0.06);
        border-radius: 24px;
        box-shadow: 0 12px 35px rgba(0, 0, 0, 0.16);
        backdrop-filter: blur(12px);
        z-index: 1040;
        padding: 8px;
        display: grid;
        grid-template-columns: 1fr 1fr 1.25fr;
        gap: 8px;
        direction: rtl;
    }

    .product-bottom-item {
        border: none;
        background: transparent;
        color: #555;
        border-radius: 18px;
        /*font-family: inherit;*/
        font-size: 0.74rem;
        font-weight: 800;
        text-decoration: none;
        cursor: pointer;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
        min-width: 0;
        transition: all 0.2s ease;
    }

        .product-bottom-item:hover,
        .product-bottom-item:focus {
            text-decoration: none;
            color: #ef5046;
        }

        .product-bottom-item.active {
            background: #fff2f1;
            color: #ef5046;
        }

    .product-bottom-icon {
        width: 28px;
        height: 28px;
        border-radius: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 0.95rem;
    }

    .product-bottom-item.active .product-bottom-icon {
        background: #ef5046;
        color: #fff;
        box-shadow: 0 6px 16px rgba(239, 80, 70, 0.28);
    }

    .product-call-bottom-btn {
        background: linear-gradient(135deg, #16a34a, #22c55e);
        color: #fff !important;
        box-shadow: 0 8px 20px rgba(34, 197, 94, 0.35);
        flex-direction: row;
        gap: 8px;
        font-size: 0.82rem;
    }

        .product-call-bottom-btn:hover,
        .product-call-bottom-btn:focus {
            color: #fff !important;
            transform: translateY(-1px);
        }

    .product-call-icon {
        width: 32px;
        height: 32px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.22);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 0.95rem;
    }
}

/* ==============================
   Product Mobile Top Like Blog
============================== */

@media (max-width: 991px) {
    .product-mobile-top-sticky {
        position: sticky;
        top: 0;
        z-index: 30;
        background: rgba(245, 245, 247, 0.96);
        backdrop-filter: blur(12px);
        padding: 8px 0 10px;
        margin-bottom: 10px;
    }

    .product-mobile-breadcrumb {
        background: #fff;
        border: 1px solid #eeeeee;
        border-radius: 16px;
        padding: 9px 12px;
        margin-bottom: 8px;
        display: flex;
        align-items: center;
        gap: 7px;
        color: #777;
        font-size: 0.78rem;
        font-weight: 800;
        box-shadow: 0 6px 18px rgba(15, 23, 42, 0.04);
    }

        .product-mobile-breadcrumb a {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            color: #555;
            text-decoration: none;
        }

        .product-mobile-breadcrumb i {
            color: #ef5046;
            font-size: 0.86rem;
        }

    .product-mobile-search-row {
        display: flex !important;
        width: 100%;
        margin-bottom: 7px;
    }

    .product-mobile-search-box {
        width: 100%;
        height: 42px;
        min-height: 42px;
        border-radius: 15px;
        padding: 4px;
        margin-bottom: 0 !important;
        background: #fff;
        border: 1px solid transparent;
        display: flex;
        align-items: center;
        box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05);
    }

        .product-mobile-search-box:focus-within {
            border-color: rgba(239, 80, 70, 0.35);
            background: #fff;
        }

        .product-mobile-search-box input {
            flex: 1;
            height: 34px;
            border: 0;
            outline: 0;
            background: transparent;
            padding: 6px 10px;
            font-size: 0.78rem;
            color: #222;
        }

        .product-mobile-search-box .search-icon {
            width: 34px;
            height: 34px;
            min-width: 34px;
            border-radius: 12px;
            background: #ef5046;
            color: #fff;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            font-size: 0.78rem;
            cursor: pointer;
            position: static !important;
            transform: none !important;
        }

    .product-mobile-filter-sort-row {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) 105px 86px;
        gap: 6px;
        align-items: center;
        margin-bottom: 8px;
    }

    .product-mobile-filter-info {
        width: auto !important;
        min-width: 0;
        height: 40px;
        min-height: 40px;
        padding: 6px 9px;
        border-radius: 15px;
        background: #fff;
        border: 1px solid #eee;
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 6px;
        overflow: hidden;
    }

    .product-mobile-filter-label {
        font-size: 0.72rem;
        font-weight: 900;
        color: #444;
        white-space: nowrap;
        flex: 0 0 auto;
    }

    .product-mobile-selected-filters {
        min-width: 0;
        display: flex;
        align-items: center;
        gap: 5px;
        overflow-x: auto;
        white-space: nowrap;
        scrollbar-width: none;
    }

        .product-mobile-selected-filters::-webkit-scrollbar {
            display: none;
        }

        .product-mobile-selected-filters .mobile-filter-empty-text {
            color: #888;
            font-size: 0.72rem;
            font-weight: 900;
        }

        .product-mobile-selected-filters .mobile-filter-chip {
            display: inline-flex;
            align-items: center;
            gap: 5px;
            color: #ef5046;
            background: rgba(239, 80, 70, 0.08);
            border: 1px solid rgba(239, 80, 70, 0.14);
            border-radius: 999px;
            padding: 4px 7px;
            font-size: 0.68rem;
            font-weight: 900;
            flex: 0 0 auto;
        }

        .product-mobile-selected-filters .mobile-remove-filter {
            border: 0;
            background: rgba(239, 80, 70, 0.12);
            color: #ef5046;
            width: 19px;
            height: 19px;
            border-radius: 50%;
            line-height: 1;
            padding: 0;
            flex: 0 0 auto;
        }

    .product-mobile-sort-trigger {
        width: 100%;
        height: 40px;
        min-height: 40px;
        border: 1px solid #eee;
        background: #fff;
        color: #333;
        border-radius: 15px;
        padding: 0 7px;
        /*font-family: inherit;*/
        font-size: 0.7rem;
        font-weight: 900;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 5px;
        white-space: nowrap;
    }

        .product-mobile-sort-trigger i {
            font-size: 0.72rem;
        }

    .product-mobile-view-toggle {
        width: 100%;
        height: 40px;
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        gap: 5px;
    }

        .product-mobile-view-toggle .view-mode-btn {
            width: 100%;
            height: 40px;
            border: 1px solid #eee;
            background: #fff;
            color: #777;
            border-radius: 14px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            font-size: 0.82rem;
            padding: 0;
        }

            .product-mobile-view-toggle .view-mode-btn.active {
                background: #ef5046;
                color: #fff;
                border-color: #ef5046;
                box-shadow: 0 7px 16px rgba(239, 80, 70, 0.22);
            }

    .mobile-search-filter-row,
    .filter-sort-row {
        display: none !important;
    }
}

@media (max-width: 390px) {
    .product-mobile-filter-sort-row {
        grid-template-columns: minmax(0, 1fr) 92px 76px;
        gap: 5px;
    }

    .product-mobile-sort-trigger {
        font-size: 0.66rem;
    }

    .product-mobile-filter-label,
    .product-mobile-selected-filters .mobile-filter-empty-text {
        font-size: 0.68rem;
    }
}

/* =========================================================
   Product Index With Global Mobile Topbar
========================================================= */

@media (max-width: 991px) {
    body.product-index-page .container-custom {
        padding-top: 62px;
    }

    body.product-index-page .product-mobile-top-sticky {
        top: 58px;
        z-index: 30;
    }
}


/* =========================================================
   Product Page Theme Override - Main Blue Theme
========================================================= */

.search-box-wrapper input:focus,
.product-mobile-search-box:focus-within {
    border-color: rgba(34, 65, 115, 0.35) !important;
    box-shadow: 0 0 0 3px rgba(34, 65, 115, 0.1) !important;
}

.sort-chip.active,
.services-sort-chip.active,
.apply-filter-btn,
.add-to-cart-btn,
.product-mobile-search-box .search-icon,
.view-mode-btn.active,
.product-mobile-view-toggle .view-mode-btn.active,
.close-sheet-btn,
.mobile-remove-filter,
.category-direct-select {
    background: linear-gradient(135deg, #224173, #1b3560) !important;
    border-color: #224173 !important;
    color: #fff !important;
}

.product-card-title:hover,
.product-card-price,
.filter-section h4 i,
.mobile-bottom-bar .bar-item.active,
.sort-options-list li.active,
.category-tree-parent.active > .category-tree-parent-row,
.category-tree-child.active > .category-tree-child-row,
.category-tree-grandchild.active {
    color: #224173 !important;
}

.mobile-filter-chip,
.product-mobile-selected-filters .mobile-filter-chip {
    color: #224173 !important;
    background: rgba(34, 65, 115, 0.08) !important;
    border-color: rgba(34, 65, 115, 0.14) !important;
}

.product-bottom-item.active {
    background: rgba(34, 65, 115, 0.08) !important;
    color: #224173 !important;
}

    .product-bottom-item.active .product-bottom-icon {
        background: linear-gradient(135deg, #224173, #1b3560) !important;
        color: #fff !important;
        box-shadow: 0 6px 16px rgba(34, 65, 115, 0.28) !important;
    }

.product-call-bottom-btn {
    background: linear-gradient(135deg, #224173, #1b3560) !important;
    box-shadow: 0 8px 20px rgba(34, 65, 115, 0.32) !important;
}

.product-call-icon {
    background: rgba(255, 255, 255, 0.22) !important;
}

.close-sheet-btn {
    background: rgba(34, 65, 115, 0.08) !important;
    color: #224173 !important;
    border-color: rgba(34, 65, 115, 0.14) !important;
}

.product-mobile-view-toggle .view-mode-btn.active {
    box-shadow: 0 7px 16px rgba(34, 65, 115, 0.22) !important;
}

/* =========================================================
   Product Index Mobile Topbar Spacing Fix
========================================================= */

@media (max-width: 991px) {
    body.product-index-page .mobile-page-topbar {
        top: 0 !important;
        padding-top: 6px !important;
        padding-bottom: 6px !important;
    }

    body.product-index-page .mobile-page-breadcrumb,
    body.product-index-page .mobile-page-menu-btn {
        height: 42px !important;
        min-height: 42px !important;
    }

    body.product-index-page .container-custom {
        padding-top: 10px !important;
    }

    body.product-index-page .product-mobile-top-sticky {
        top: 56px !important;
        padding-top: 0 !important;
        margin-top: 0 !important;
    }

    body.product-index-page .product-mobile-search-row {
        margin-top: 0 !important;
        margin-bottom: 7px !important;
    }
}


/* حذف فاصله بالای هدر در صفحات محصول */
/* فقط برای صفحه محصولات */
body.product-index-page {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

    body.product-index-page #siteHeader {
        top: 0 !important;
        margin-top: 0 !important;
    }

/* Product Mobile First Card Visibility Fix */
@media (max-width: 991px) {
    body.product-index-page .container-custom {
        padding-top: 60px !important;
    }

    body.product-index-page .product-mobile-top-sticky {
        top: 55px !important;
        z-index: 1055 !important;
        margin-bottom: 14px !important;
    }

    body.product-index-page .desktop-layout,
    body.product-index-page .desktop-main,
    body.product-index-page #productGrid {
        position: relative;
        z-index: 1;
    }
}



/* FIX: Mobile category/sort sheet scroll + bottom bar overlap */
@media (max-width: 991px) {
    .mobile-sheet {
        top: auto !important;
        bottom: 0 !important;
        height: 100vh !important;
        height: 100dvh !important;
        max-height: 100vh !important;
        max-height: 100dvh !important;
        transform: translateY(100%) !important;
        display: flex !important;
        flex-direction: column !important;
        overflow: hidden !important;
    }

        .mobile-sheet.open {
            height: calc(100vh - var(--sheet-translate-y, 40%)) !important;
            height: calc(100dvh - var(--sheet-translate-y, 40%)) !important;
            transform: translateY(0) !important;
        }

            .mobile-sheet.open.full {
                height: 100vh !important;
                height: 100dvh !important;
                transform: translateY(0) !important;
                border-radius: 0 !important;
            }

    .sheet-header {
        flex: 0 0 auto !important;
    }

    .sheet-body {
        flex: 1 1 auto !important;
        min-height: 0 !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        -webkit-overflow-scrolling: touch !important;
        overscroll-behavior: contain !important;
        padding-bottom: calc(98px + env(safe-area-inset-bottom)) !important;
    }

    .category-tree-list,
    .sort-options-list {
        padding-bottom: 8px !important;
    }

    body.mobile-sheet-is-open {
        overflow: hidden !important;
        touch-action: none;
    }

        body.mobile-sheet-is-open .sheet-body {
            touch-action: pan-y;
        }

        body.mobile-sheet-is-open .product-mobile-bottom-bar,
        body.mobile-sheet-is-open .mobile-bottom-bar {
            opacity: 0 !important;
            pointer-events: none !important;
        }
}







/* Mobile recursive product category tree */
.category-tree-list,
.category-tree-children {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-tree-item {
    list-style: none;
}

.category-tree-children {
    display: none;
    margin-top: 6px;
    margin-right: 14px;
    padding-right: 10px;
    border-right: 1px dashed rgba(34, 65, 115, 0.16);
}

.category-tree-item.open > .category-tree-children {
    display: block;
}

.category-tree-row {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    padding-right: calc(12px + (var(--category-level, 0) * 8px));
    border-radius: 14px;
    cursor: pointer;
}

    .category-tree-row:hover {
        background: rgba(34, 65, 115, 0.06);
    }

.category-tree-title {
    font-size: 0.92rem;
    font-weight: 600;
    color: #263238;
}

.category-tree-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #607d8b;
    font-size: 0.78rem;
}

.category-direct-select {
    border: 0;
    outline: 0;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(34, 65, 115, 0.08);
    color: #224173;
    font-size: 0.75rem;
    font-weight: 700;
}

.category-tree-item.active > .category-tree-row {
    background: rgba(34, 65, 115, 0.1);
}

    .category-tree-item.active > .category-tree-row .category-tree-title {
        color: #224173;
        font-weight: 800;
    }

.category-toggle-icon {
    transition: transform 0.2s ease;
}

.category-tree-item.open > .category-tree-row .category-toggle-icon {
    transform: rotate(180deg);
}


/* =========================================================
   Product index mobile toolbar
   ترتیب RTL:
   جست‌وجو، فیلتر، مرتب‌سازی، گرید، لیست
   ========================================================= */

@media (max-width: 991px) {

    /*
     * Breadcrumb قدیمی موبایل مخفی شود.
     */
    body.product-index-page
    .mobile-page-topbar {
        display: none !important;
    }

    body.product-index-page
    .container-custom {
        padding-top: 0 !important;
        padding-right: 10px;
        padding-left: 10px;
    }

    /*
     * نوار ابزار زیر هدر ثابت بماند.
     */
    body.product-index-page
    .product-mobile-top-sticky {
        position: sticky !important;
        top: 60px !important;
        z-index: 1200 !important;
        margin: 0 -10px 10px !important;
        padding: 6px 10px 8px !important;
        background: rgba(245, 245, 247, 0.96) !important;
        border-bottom: 1px solid rgba(148, 163, 184, 0.16);
        backdrop-filter: blur(12px);
    }

    /*
     * تمام ابزارها در یک خط قرار بگیرند.
     */
    .product-mobile-toolbar {
        width: 100%;
        min-width: 0;
        display: flex !important;
        flex-direction: row;
        flex-wrap: nowrap !important;
        align-items: center;
        justify-content: flex-start;
        direction: rtl;
        gap: 5px;
        overflow: hidden;
    }

    /*
     * ظاهر مشترک دکمه‌ها
     */
    .product-mobile-tool-button {
        position: relative;
        min-width: 0;
        height: 38px;
        min-height: 38px;
        padding: 0 8px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 5px;
        flex: 0 1 auto;
        border: 1px solid #e2e8f0;
        border-radius: 12px;
        background: #ffffff;
        color: #334155;
        font-family: inherit;
        font-size: 0.72rem;
        font-weight: 850;
        line-height: 1;
        white-space: nowrap;
        overflow: hidden;
        cursor: pointer;
        box-shadow: 0 4px 12px rgba(15, 23, 42, 0.035);
        transition: border-color 0.18s ease, color 0.18s ease, background 0.18s ease;
    }

        .product-mobile-tool-button i {
            flex: 0 0 auto;
            font-size: 0.76rem;
        }

        .product-mobile-tool-button span {
            min-width: 0;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .product-mobile-tool-button:hover,
        .product-mobile-tool-button:focus-visible {
            border-color: rgba(34, 65, 115, 0.32);
            background: #f8fafc;
            color: #224173;
            outline: 0;
        }

    /*
     * دکمه جمع‌وجور سرچ
     */
    .product-mobile-search-trigger {
        flex: 1 1 92px;
        min-width: 70px;
        max-width: 118px;
        justify-content: flex-start;
        padding-right: 10px;
        background: #f1f3f5;
        border-color: transparent;
    }

    /*
     * دکمه فیلتر
     */
    .product-mobile-filter-trigger {
        flex: 0 1 70px;
        min-width: 58px;
        max-width: 76px;
    }

    /*
     * دکمه مرتب‌سازی
     */
    .product-mobile-sort-trigger {
        width: auto !important;
        height: 38px !important;
        min-height: 38px !important;
        flex: 0 1 92px;
        min-width: 72px;
        max-width: 98px;
        padding: 0 7px !important;
        border: 1px solid #e2e8f0 !important;
        border-radius: 12px !important;
        background: #ffffff !important;
        color: #334155 !important;
        font-size: 0.7rem !important;
        font-weight: 850 !important;
        box-shadow: 0 4px 12px rgba(15, 23, 42, 0.035);
    }

    /*
     * نقطه مشخص‌کننده فعال بودن فیلتر
     */
    .product-mobile-filter-dot {
        position: absolute;
        top: 6px;
        left: 6px;
        width: 6px;
        height: 6px;
        border: 1px solid #ffffff;
        border-radius: 50%;
        background: #224173;
    }

    /*
     * گروه گرید و لیست
     */
    .product-mobile-view-toggle {
        width: 74px !important;
        min-width: 74px;
        height: 38px !important;
        flex: 0 0 74px;
        display: flex !important;
        align-items: center;
        gap: 4px !important;
        padding: 2px;
        border: 1px solid #e2e8f0;
        border-radius: 12px;
        background: #ffffff;
        box-shadow: 0 4px 12px rgba(15, 23, 42, 0.035);
    }

        .product-mobile-view-toggle
        .view-mode-btn {
            width: 32px !important;
            min-width: 32px;
            height: 32px !important;
            min-height: 32px;
            flex: 0 0 32px;
            padding: 0 !important;
            border: 0 !important;
            border-radius: 9px !important;
            background: transparent !important;
            color: #64748b !important;
            box-shadow: none !important;
        }

            .product-mobile-view-toggle
            .view-mode-btn.active {
                background: linear-gradient( 135deg, #224173, #1b3560 ) !important;
                color: #ffffff !important;
                box-shadow: 0 5px 12px rgba(34, 65, 115, 0.22) !important;
            }

    /*
     * کنترل‌های قدیمی موبایل مخفی شوند.
     */
    .product-mobile-search-row,
    .product-mobile-filter-sort-row,
    .product-mobile-search-box,
    .product-mobile-filter-info {
        display: none !important;
    }
}

/*
 * موبایل‌های کوچک‌تر
 */
@media (max-width: 390px) {

    body.product-index-page
    .product-mobile-top-sticky {
        padding-right: 7px !important;
        padding-left: 7px !important;
    }

    .product-mobile-toolbar {
        gap: 4px;
    }

    .product-mobile-tool-button {
        height: 36px;
        min-height: 36px;
        padding: 0 6px;
        gap: 4px;
        border-radius: 11px;
        font-size: 0.66rem;
    }

    .product-mobile-search-trigger {
        flex-basis: 76px;
        min-width: 60px;
        max-width: 92px;
    }

    .product-mobile-filter-trigger {
        flex-basis: 58px;
        min-width: 51px;
    }

    .product-mobile-sort-trigger {
        height: 36px !important;
        min-height: 36px !important;
        flex-basis: 78px;
        min-width: 65px;
        padding: 0 5px !important;
        font-size: 0.64rem !important;
    }

    .product-mobile-view-toggle {
        width: 68px !important;
        min-width: 68px;
        height: 36px !important;
        flex-basis: 68px;
        gap: 2px !important;
    }

        .product-mobile-view-toggle
        .view-mode-btn {
            width: 30px !important;
            min-width: 30px;
            height: 30px !important;
            min-height: 30px;
            flex-basis: 30px;
        }
}

/*
 * موبایل‌های بسیار کوچک
 */
@media (max-width: 340px) {

    .product-mobile-tool-button {
        padding-right: 5px;
        padding-left: 5px;
        font-size: 0.61rem;
    }

        .product-mobile-tool-button i {
            font-size: 0.68rem;
        }

    .product-mobile-search-trigger {
        min-width: 55px;
    }

    .product-mobile-filter-trigger {
        min-width: 47px;
    }

    .product-mobile-sort-trigger {
        min-width: 60px;
        font-size: 0.59rem !important;
    }
}

/* =========================================================
   FINAL FIX
   Product index mobile second row
   ========================================================= */

@media (max-width: 991px) {

    /*
     * فاصله‌های قدیمی حذف شوند.
     */
    body.product-index-page {
        margin: 0 !important;
        padding-top: 0 !important;
    }

        body.product-index-page main {
            margin: 0 !important;
            padding: 0 !important;
        }

        body.product-index-page
        .container-custom {
            width: 100% !important;
            max-width: none !important;
            margin: 0 !important;
            padding: 0 8px 90px !important;
        }

        /*
     * Breadcrumb قدیمی بدنه صفحه مخفی شود.
     */
        body.product-index-page
        .mobile-page-topbar,
        body.product-index-page
        .product-mobile-breadcrumb {
            display: none !important;
        }

        /*
     * ردیف دوم دقیقاً زیر ردیف اول قرار بگیرد.
     */
        body.product-index-page
        .product-mobile-top-sticky {
            position: sticky !important;
            top: 58px !important;
            z-index: 20000 !important;
            width: calc(100% + 16px) !important;
            margin: 0 -8px 10px !important;
            padding: 6px 8px 8px !important;
            transform: none !important;
            background: rgba(245, 247, 249, 0.97) !important;
            border-bottom: 1px solid rgba(148, 163, 184, 0.14) !important;
            backdrop-filter: blur(12px);
        }

        /*
     * همه گزینه‌ها دقیقاً در یک خط
     */
        body.product-index-page
        .product-mobile-toolbar {
            width: 100% !important;
            min-width: 0 !important;
            margin: 0 !important;
            padding: 0 !important;
            display: flex !important;
            flex-direction: row !important;
            flex-wrap: nowrap !important;
            align-items: center !important;
            justify-content: flex-start !important;
            direction: rtl !important;
            gap: 5px !important;
            overflow: hidden !important;
        }

        /*
     * جست‌وجو تمام فضای آزاد ردیف را بگیرد.
     * max-width قبلی باعث فضای خالی سمت چپ شده بود.
     */
        body.product-index-page
        .product-mobile-search-trigger {
            width: auto !important;
            min-width: 62px !important;
            max-width: none !important;
            height: 38px !important;
            flex: 1 1 0 !important;
            padding: 0 9px !important;
            justify-content: flex-start !important;
            border: 1px solid transparent !important;
            border-radius: 12px !important;
            background: #f0f2f4 !important;
            color: #334155 !important;
        }

        /*
     * فیلتر
     */
        body.product-index-page
        .product-mobile-filter-trigger {
            width: 68px !important;
            min-width: 68px !important;
            max-width: 68px !important;
            height: 38px !important;
            flex: 0 0 68px !important;
        }

        /*
     * مرتب‌سازی
     */
        body.product-index-page
        .product-mobile-sort-trigger {
            width: 91px !important;
            min-width: 91px !important;
            max-width: 91px !important;
            height: 38px !important;
            min-height: 38px !important;
            flex: 0 0 91px !important;
        }

        /*
     * گرید و لیست
     */
        body.product-index-page
        .product-mobile-view-toggle {
            width: 72px !important;
            min-width: 72px !important;
            max-width: 72px !important;
            height: 38px !important;
            flex: 0 0 72px !important;
            margin: 0 !important;
            padding: 2px !important;
            display: flex !important;
            flex-direction: row !important;
            flex-wrap: nowrap !important;
            align-items: center !important;
            justify-content: center !important;
            direction: rtl !important;
            gap: 3px !important;
        }

            body.product-index-page
            .product-mobile-view-toggle
            .view-mode-btn {
                width: 31px !important;
                min-width: 31px !important;
                height: 31px !important;
                min-height: 31px !important;
                flex: 0 0 31px !important;
            }
}

@media (max-width: 390px) {

    body.product-index-page
    .product-mobile-toolbar {
        gap: 4px !important;
    }

    body.product-index-page
    .product-mobile-search-trigger {
        min-width: 54px !important;
        padding-right: 7px !important;
        padding-left: 7px !important;
        font-size: 0.64rem !important;
    }

    body.product-index-page
    .product-mobile-filter-trigger {
        width: 59px !important;
        min-width: 59px !important;
        max-width: 59px !important;
        flex-basis: 59px !important;
        padding-right: 5px !important;
        padding-left: 5px !important;
    }

    body.product-index-page
    .product-mobile-sort-trigger {
        width: 81px !important;
        min-width: 81px !important;
        max-width: 81px !important;
        flex-basis: 81px !important;
        padding-right: 4px !important;
        padding-left: 4px !important;
        font-size: 0.62rem !important;
    }

    body.product-index-page
    .product-mobile-view-toggle {
        width: 67px !important;
        min-width: 67px !important;
        max-width: 67px !important;
        flex-basis: 67px !important;
    }
}

@media (max-width: 340px) {

    body.product-index-page
    .product-mobile-toolbar {
        gap: 3px !important;
    }

    body.product-index-page
    .product-mobile-tool-button {
        gap: 3px !important;
        font-size: 0.6rem !important;
    }

    body.product-index-page
    .product-mobile-search-trigger {
        min-width: 48px !important;
    }

    body.product-index-page
    .product-mobile-filter-trigger {
        width: 54px !important;
        min-width: 54px !important;
        max-width: 54px !important;
        flex-basis: 54px !important;
    }

    body.product-index-page
    .product-mobile-sort-trigger {
        width: 75px !important;
        min-width: 75px !important;
        max-width: 75px !important;
        flex-basis: 75px !important;
    }

    body.product-index-page
    .product-mobile-view-toggle {
        width: 64px !important;
        min-width: 64px !important;
        max-width: 64px !important;
        flex-basis: 64px !important;
    }
}

/* عنوان‌های فیلتر سایدبار دسکتاپ */
.desktop-sidebar-filter.desktop-only h4 {
    font-size: 16px !important;
}