/* از قالب product_category_expand_2.tpl.html (بلوک <style> درون‌خطی) به فایل جدا آمد تا کش شود -- مرحله‌ی ۱۱٫۴، ۱۴۰۵/۰۷/۱۵ */
/* ── Sort bar: desktop ── */
                .product-sort-bar {
                    display: inline-flex;
                    align-items: center;
                    margin-left: 16px;
                    margin-right: 4px;
                    font-family: byekan;
                    vertical-align: middle;
                }
                .product-sort-bar .sort-label {
                    font-size: 13px;
                    color: #888;
                    white-space: nowrap;
                    margin-left: 6px;
                    display: flex;
                    align-items: center;
                    gap: 4px;
                }
                .sort-items-desktop {
                    display: flex;
                    align-items: center;
                }
                .sort-items-desktop .sort-item {
                    font-size: 13px;
                    color: #555;
                    cursor: pointer;
                    padding: 4px 12px;
                    border: none;
                    border-left: 1px solid #e0e0e0;
                    background: none;
                    -webkit-appearance: none;
                    appearance: none;
                    font-family: inherit;
                    white-space: nowrap;
                    text-decoration: none !important;
                    line-height: 1.6;
                    transition: color 0.15s;
                    user-select: none;
                    outline: none;
                }
                .sort-items-desktop .sort-item:last-child { border-left: none; }
                .sort-items-desktop .sort-item:hover { color: #222; }
                .sort-items-desktop .sort-item.sort-active {
                    color: #111;
                    font-weight: 700;
                }

                /* ── Sort select: mobile only ── */
                .sort-select-mobile {
                    display: none;
                }

                @media (max-width: 767px) {
                    .product-sort-bar { display: none; }
                    .sort-select-mobile {
                        display: inline-flex;
                        align-items: center;
                        gap: 6px;
                        margin: 2px 4px;
                    }
                    .sort-select-mobile .sort-label {
                        font-size: 13px;
                        color: #888;
                        white-space: nowrap;
                        display: flex;
                        align-items: center;
                        gap: 4px;
                        font-family: byekan;
                        flex-shrink: 0;
                    }
                    .sort-select-mobile select {
                        font-family: byekan;
                        font-size: 14px;
                        color: #333;
                        background-color: #fff;
                        border: 1px solid #e2e2e2;
                        border-radius: 10px;
                        padding: 0 12px 0 30px;
                        height: 40px;
                        width: 140px;
                        appearance: none;
                        -webkit-appearance: none;
                        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23888'/%3E%3C/svg%3E");
                        background-repeat: no-repeat;
                        background-position: left 12px center;
                        box-shadow: none;
                        cursor: pointer;
                    }
                    .sort-select-mobile select:focus {
                        outline: none;
                        border-color: #00b3aa;
                        box-shadow: 0 0 0 2px rgba(0,179,170,.12);
                    }
                }

                /* ── Mobile filter button (next to sort) ── */
                .mobile-filter-sort-group { display: none; }
                @media (max-width: 767px) {
                    .mobile-filter-sort-group {
                        display: inline-flex;
                        align-items: center;
                        gap: 8px;
                    }
                    /* ── Mobile filter button (next to sort) ── */
                .mobile-filter-sort-group { display: none; }
                @media (max-width: 767px) {
                    .mobile-filter-sort-group {
                        display: flex !important; 
                        align-items: center;
                        justify-content: space-between; 
                        width: 100%; 
                        gap: 8px;
                    }
                    
                    .product-toolbar {
                        width: 100%;
                        display: flex !important;
                    }

                    .mobile-filter-sort-group .sort-select-mobile { 
                        margin: 0; 
                        margin-right: auto;
                    }
                    .mobile-filter-sort-group .sort-select-mobile .sort-label { display: none; }
                    .mobile-filter-sort-group .sort-select-mobile select { width: 132px; }
                    
                    .mobile-filter-btn {
                        display: inline-flex;
                        align-items: center;
                        gap: 7px;
                        font-family: byekan;
                        font-size: 14px;
                        font-weight: bold;
                        color: #fff;
                        background-color: #00b3aa;
                        background-image: linear-gradient(135deg, #00d7cc 0%, #00b3aa 100%);
                        border: none;
                        border-radius: 10px;
                        padding: 0 18px;
                        height: 40px;
                        cursor: pointer;
                        box-shadow: 0 2px 8px rgba(0,179,170,.30);
                        white-space: nowrap;
                        -webkit-appearance: none;
                        appearance: none;
                        transition: filter .15s, box-shadow .15s;
                    }
                    .mobile-filter-btn .fa { font-size: 16px; color: #fff; }
                    .mobile-filter-btn:active { filter: brightness(.94); box-shadow: 0 1px 4px rgba(0,179,170,.30); }
                    .mobile-filter-btn .mobile-filter-count {
                        display: inline-flex;
                        align-items: center;
                        justify-content: center;
                        min-width: 20px;
                        height: 20px;
                        padding: 0 5px;
                        border-radius: 10px;
                        background: #fff;
                        color: #00b3aa;
                        font-size: 12px;
                        font-weight: bold;
                        line-height: 20px;
                    }
                }
