﻿/* featureProducts.css - نسخه نهایی با اورراید layout.js فقط با CSS */

.featured-page {
    min-height: 70vh;
    padding: 40px 0;
}

.search-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 30px;
}

.filter-sidebar {
    background: var(--bg-card);
    border-radius: 24px;
    border: 1px solid var(--border);
    padding: 20px;
    position: sticky;
    top: 100px;
    height: fit-content;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    transition: right 0.3s ease;
}

    .filter-sidebar::-webkit-scrollbar {
        width: 4px;
    }

.filter-section {
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

    .filter-section:last-child {
        border-bottom: none;
        margin-bottom: 0;
        padding-bottom: 0;
    }

.filter-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

    .filter-title i {
        color: var(--primary);
    }

    .filter-title .toggle-icon {
        margin-right: auto;
        transition: transform 0.3s;
    }

    .filter-title.collapsed .toggle-icon {
        transform: rotate(-90deg);
    }

.filter-content {
    display: block;
}

    .filter-content.collapsed {
        display: none;
    }

.filter-actions-top {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.filter-actions-bottom {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

    .filter-actions-top .btn-apply-filter,
    .filter-actions-bottom .btn-apply-filter {
        flex: 1;
        padding: 10px;
        border-radius: 12px;
        cursor: pointer;
        transition: all 0.3s;
        font-weight: 500;
        background: var(--primary);
        border: none;
        color: white;
    }

        .filter-actions-top .btn-apply-filter:hover,
        .filter-actions-bottom .btn-apply-filter:hover {
            background: var(--primary-dark);
            transform: translateY(-2px);
        }

    .filter-actions-top .btn-reset-filter,
    .filter-actions-bottom .btn-reset-filter {
        flex: 1;
        padding: 10px;
        border-radius: 12px;
        cursor: pointer;
        transition: all 0.3s;
        font-weight: 500;
        background: transparent;
        border: 1px solid var(--border);
        color: var(--text-secondary);
    }

        .filter-actions-top .btn-reset-filter:hover,
        .filter-actions-bottom .btn-reset-filter:hover {
            background: var(--bg-hover);
        }

.price-range {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.price-inputs {
    display: flex;
    gap: 12px;
}

.price-input {
    flex: 1;
}

    .price-input label {
        font-size: 12px;
        color: var(--text-muted);
        display: block;
        margin-bottom: 4px;
    }

    .price-input input {
        width: 100%;
        padding: 8px 12px;
        background: var(--bg-secondary);
        border: 1px solid var(--border);
        border-radius: 12px;
        color: var(--text-primary);
        font-size: 13px;
    }

.category-options,
.brand-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 250px;
    overflow-y: auto;
}

.category-option,
.brand-option {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 6px 0;
    transition: all 0.2s;
}

    .category-option:hover,
    .brand-option:hover {
        padding-right: 5px;
    }

    .category-option input,
    .brand-option input {
        width: 18px;
        height: 18px;
        cursor: pointer;
        accent-color: var(--primary);
    }

    .category-option a,
    .brand-option a {
        color: var(--text-secondary);
        font-size: 14px;
        cursor: pointer;
        flex: 1;
        text-decoration: none;
    }

        .category-option a:hover,
        .brand-option a:hover {
            color: var(--primary);
        }

.category-children {
    margin-right: 16px;
}

.category-item-wrapper {
    margin-bottom: 8px;
}

/* بنر */
.search-header {
    margin-bottom: 30px;
}

.search-banner {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 24px;
    padding: 28px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

    .search-banner::before {
        content: '';
        position: absolute;
        top: -50%;
        right: -50%;
        width: 200%;
        height: 200%;
        background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
        pointer-events: none;
    }

    .search-banner h1 {
        font-size: 28px;
        font-weight: 800;
        color: white;
        margin-bottom: 10px;
        letter-spacing: -0.5px;
        position: relative;
    }

    .search-banner p {
        color: rgba(255, 255, 255, 0.85);
        font-size: 14px;
        position: relative;
    }

/* تولبار */
.products-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 12px;
}

.products-count {
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 500;
}

.sort-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

    .sort-wrapper label {
        color: var(--text-muted);
        font-size: 13px;
        font-weight: 500;
    }

/* دراپ‌داون سفارشی */
.custom-sort-dropdown {
    position: relative;
    min-width: 150px;
}

.sort-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    padding: 9px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 30px;
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

    .sort-trigger i:first-child {
        color: var(--primary);
        font-size: 14px;
    }

    .sort-trigger i:last-child {
        color: var(--text-muted);
        font-size: 14px;
        transition: transform 0.2s ease;
    }

    .sort-trigger:hover {
        border-color: var(--primary);
        background: var(--bg-hover);
    }

    .sort-trigger span {
        flex: 1;
        text-align: right;
    }

.sort-options-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    overflow: hidden;
}

    .sort-options-menu.show {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

.sort-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid var(--border);
}

    .sort-option:last-child {
        border-bottom: none;
    }

    .sort-option:hover {
        background: var(--bg-hover);
    }

    .sort-option i:first-child {
        font-size: 14px;
        color: var(--text-muted);
    }

    .sort-option span {
        flex: 1;
        font-size: 13px;
        font-weight: 500;
        color: var(--text-secondary);
    }

    .sort-option .check-icon {
        color: var(--primary);
        font-size: 14px;
    }

    .sort-option.active {
        background: var(--bg-hover);
    }

        .sort-option.active span {
            color: var(--primary);
        }

        .sort-option.active i:first-child {
            color: var(--primary);
        }

/* دکمه فیلتر موبایل */
.filter-button-mobile {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 40px;
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 12px;
}

    .filter-button-mobile i {
        font-size: 18px;
        color: var(--primary);
    }

    .filter-button-mobile:hover {
        background: var(--bg-hover);
        border-color: var(--primary);
    }

/* سایدبار فیلتر برای موبایل */
.filter-sidebar {
    background: var(--bg-card);
    border-radius: 24px;
    border: 1px solid var(--border);
    padding: 20px;
    position: sticky;
    top: 100px;
    height: fit-content;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.filter-sidebar-header {
    display: none;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 16px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

    .filter-sidebar-header h3 {
        font-size: 18px;
        font-weight: 700;
        color: var(--text-primary);
        display: flex;
        align-items: center;
        gap: 8px;
        margin: 0;
    }

        .filter-sidebar-header h3 i {
            color: var(--primary);
        }

.close-filter-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-hover);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

    .close-filter-btn:hover {
        background: var(--danger);
        color: white;
        border-color: var(--danger);
    }

.filter-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 999;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

    .filter-overlay.show {
        display: block;
        opacity: 1;
    }

/* ============================================
   گرید محصولات - اورراید قوی برای layout.js
   ============================================ */
.featured-page .search-products-grid,
#featuredPage .search-products-grid {
    display: grid !important;
    grid-template-columns: repeat(5, 1fr) !important;
    gap: 16px !important;
}

/* ============================================
   کارت محصول - دقیقاً مثل search
   ============================================ */
.featured-product-card {
    background: var(--bg-card);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid var(--border);
    cursor: pointer;
    position: relative;
    width: 100%;
}

    .featured-product-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
        border-color: var(--primary);
        z-index: 2;
    }

.featured-product-image {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: var(--bg-hover);
}

    .featured-product-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.5s ease;
    }

.featured-product-card:hover .featured-product-image img {
    transform: scale(1.05);
}

.featured-product-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 700;
    z-index: 2;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.featured-wishlist-btn {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    color: #94a3b8;
    transition: all 0.2s ease;
    z-index: 3;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

    .featured-wishlist-btn:hover {
        transform: scale(1.1);
    }

    .featured-wishlist-btn.active {
        color: #ef4444;
    }

body.dark-theme .featured-wishlist-btn {
    background: rgba(30, 41, 59, 0.9);
    color: #94a3b8;
}

body.light-theme .featured-wishlist-btn {
    background: rgba(255, 255, 255, 0.95);
}

.featured-product-info {
    padding: 10px 10px 12px;
    background: transparent;
}

.featured-product-brand {
    font-size: 10px;
    color: var(--primary);
    margin-bottom: 4px;
    display: block;
    font-weight: 500;
    letter-spacing: 0.3px;
}

.featured-product-title {
    font-size: 13px;
    font-weight: 600;
    margin: 0 0 6px 0;
    line-height: 1.4;
    height: 36px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    color: var(--text-primary);
}

    .featured-product-title:hover {
        color: var(--primary);
    }

.featured-product-price {
    display: flex;
    align-items: baseline;
    gap: 6px;
    flex-wrap: wrap;
}

.featured-price-current {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary);
}

.featured-price-old {
    font-size: 11px;
    color: var(--text-muted);
    text-decoration: line-through;
}

/* صفحه‌بندی */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 32px;
    flex-wrap: wrap;
}

    .pagination .page-btn {
        min-width: 40px;
        height: 40px;
        border-radius: 12px;
        background: var(--bg-secondary);
        border: 1px solid var(--border);
        color: var(--text-secondary);
        cursor: pointer;
        transition: all 0.2s;
        font-size: 14px;
    }

        .pagination .page-btn:hover:not(.disabled) {
            background: var(--primary);
            color: white;
            border-color: var(--primary);
        }

        .pagination .page-btn.active {
            background: var(--primary);
            color: white;
            border-color: var(--primary);
        }

        .pagination .page-btn.disabled {
            opacity: 0.5;
            cursor: not-allowed;
        }

    .pagination .page-dots {
        display: flex;
        align-items: center;
        justify-content: center;
        min-width: 40px;
        height: 40px;
        color: var(--text-muted);
        font-size: 14px;
    }

.no-products {
    text-align: center;
    padding: 80px 20px;
    background: var(--bg-secondary);
    border-radius: 24px;
}

    .no-products i {
        font-size: 64px;
        color: var(--text-muted);
        margin-bottom: 20px;
        display: block;
    }

    .no-products h3 {
        font-size: 22px;
        margin-bottom: 12px;
        color: var(--text-primary);
    }

    .no-products p {
        color: var(--text-muted);
        font-size: 14px;
    }

.toast-notify {
    position: fixed;
    bottom: 30px;
    left: 30px;
    background: #1e293b;
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    z-index: 10000;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    font-size: 14px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

    .toast-notify.show {
        transform: translateX(0);
    }

/* مدال */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}

    .modal-overlay.open {
        display: flex;
    }

.modal-content {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 24px;
    max-width: 400px;
    width: 90%;
    text-align: center;
}

    .modal-content h3 {
        font-size: 18px;
        font-weight: 700;
        margin-bottom: 16px;
    }

    .modal-content p {
        color: var(--text-muted);
        margin-bottom: 24px;
    }

.modal-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.modal-btn {
    padding: 10px 24px;
    border-radius: 40px;
    border: none;
    cursor: pointer;
    font-weight: 500;
}

    .modal-btn.confirm {
        background: var(--primary);
        color: white;
    }

    .modal-btn.cancel {
        background: var(--bg-secondary);
        border: 1px solid var(--border);
        color: var(--text-secondary);
    }

/* ============================================
   Responsive - کاملاً برابر با search.css
   ============================================ */

/* دسکتاپ بزرگ - 5 کارت */
@media (min-width: 1400px) {
    .featured-page .search-products-grid,
    #featuredPage .search-products-grid {
        grid-template-columns: repeat(5, 1fr) !important;
        gap: 18px !important;
    }

    .search-banner {
        padding: 36px 28px;
    }

        .search-banner h1 {
            font-size: 32px;
        }

    .featured-product-card {
        border-radius: 18px;
    }

    .featured-product-title {
        font-size: 14px;
        height: 40px;
    }

    .featured-price-current {
        font-size: 15px;
    }
}

/* دسکتاپ معمولی - 5 کارت */
@media (max-width: 1399px) and (min-width: 1200px) {
    .featured-page .search-products-grid,
    #featuredPage .search-products-grid {
        grid-template-columns: repeat(5, 1fr) !important;
        gap: 16px !important;
    }
}

/* لپ‌تاپ - 5 کارت */
@media (max-width: 1199px) and (min-width: 1025px) {
    .featured-page .search-products-grid,
    #featuredPage .search-products-grid {
        grid-template-columns: repeat(5, 1fr) !important;
        gap: 14px !important;
    }

    .search-layout {
        grid-template-columns: 260px 1fr;
        gap: 18px;
    }
}

/* تبلت بزرگ - 4 کارت */
@media (max-width: 1024px) {
    .search-layout {
        grid-template-columns: 240px 1fr;
        gap: 16px;
    }

    .featured-page .search-products-grid,
    #featuredPage .search-products-grid {
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 14px !important;
    }

    .search-banner h1 {
        font-size: 26px;
    }
}

/* تبلت - 3 کارت */
@media (max-width: 820px) {
    .featured-page .search-products-grid,
    #featuredPage .search-products-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 14px !important;
    }

    .search-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .filter-sidebar {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        max-width: 340px;
        height: 100%;
        max-height: 100vh;
        border-radius: 24px 0 0 24px;
        z-index: 1000;
        padding: 20px;
        overflow-y: auto;
        transition: right 0.3s ease;
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.3);
        position: fixed;
    }

        .filter-sidebar.open {
            right: 0;
        }

    .filter-sidebar-header {
        display: flex;
    }

    .filter-button-mobile {
        display: flex;
    }

    .filter-actions-top,
    .filter-actions-bottom {
        margin: 0;
    }

    .filter-actions-top {
        margin-bottom: 16px;
    }

    .filter-actions-bottom {
        margin-top: 16px;
    }

    .search-banner {
        padding: 22px 16px;
        border-radius: 20px;
    }

        .search-banner h1 {
            font-size: 22px;
        }

        .search-banner p {
            font-size: 13px;
        }

    .products-toolbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        margin-bottom: 14px;
    }

    .products-count {
        font-size: 13px;
    }

    .sort-wrapper {
        width: 100%;
        justify-content: space-between;
    }

        .sort-wrapper label {
            font-size: 12px;
        }

    .custom-sort-dropdown {
        min-width: 130px;
    }

    .sort-trigger {
        padding: 7px 12px;
        font-size: 12px;
    }
}

/* ============================================
   موبایل - 2 کارت با فاصله مناسب (برابر با search.css)
   ============================================ */
@media (max-width: 650px) {
    .featured-page {
        padding: 24px 0;
    }

        .featured-page .search-products-grid,
        #featuredPage .search-products-grid {
            grid-template-columns: repeat(2, 1fr) !important;
            gap: 10px !important;
        }

    .featured-product-card {
        border-radius: 14px;
        min-height: 280px;
        width: 100%;
    }

    .featured-product-title {
        font-size: 13px;
        height: 38px;
        -webkit-line-clamp: 2;
    }

    .featured-price-current {
        font-size: 14px;
    }

    .featured-price-old {
        font-size: 11px;
    }

    .featured-product-info {
        padding: 10px 10px 12px;
    }

    .featured-product-brand {
        font-size: 10px;
        margin-bottom: 4px;
    }

    .featured-product-badge {
        top: 8px;
        right: 8px;
        padding: 3px 8px;
        font-size: 10px;
        border-radius: 8px;
    }

    .featured-wishlist-btn {
        top: 8px;
        left: 8px;
        width: 30px;
        height: 30px;
        font-size: 14px;
        opacity: 1;
        transform: translateX(0);
    }

    .search-banner {
        padding: 20px 14px;
        border-radius: 18px;
    }

        .search-banner h1 {
            font-size: 20px;
        }

        .search-banner p {
            font-size: 12px;
        }

    .products-count {
        font-size: 12px;
    }

    .pagination {
        margin-top: 24px;
        gap: 5px;
    }

        .pagination .page-btn {
            min-width: 34px;
            height: 34px;
            font-size: 12px;
            border-radius: 10px;
        }

    .filter-button-mobile {
        padding: 12px 16px;
        font-size: 14px;
        margin-bottom: 12px;
    }

        .filter-button-mobile i {
            font-size: 18px;
        }
}

/* موبایل متوسط - 2 کارت با فاصله مناسب */
@media (max-width: 480px) {
    .featured-page {
        padding: 16px 0;
    }

        .featured-page .search-products-grid,
        #featuredPage .search-products-grid {
            grid-template-columns: repeat(2, 1fr) !important;
            gap: 8px !important;
        }

    .featured-product-card {
        border-radius: 12px;
        min-height: 260px;
        width: 100%;
    }

    .featured-product-title {
        font-size: 12px;
        height: 34px;
        -webkit-line-clamp: 2;
    }

    .featured-price-current {
        font-size: 13px;
    }

    .featured-price-old {
        font-size: 10px;
    }

    .featured-product-info {
        padding: 8px 8px 10px;
    }

    .featured-product-brand {
        font-size: 9px;
        margin-bottom: 3px;
    }

    .featured-product-badge {
        top: 6px;
        right: 6px;
        padding: 2px 6px;
        font-size: 9px;
        border-radius: 6px;
    }

    .featured-wishlist-btn {
        top: 6px;
        left: 6px;
        width: 28px;
        height: 28px;
        font-size: 13px;
        opacity: 1;
        transform: translateX(0);
    }

    .search-banner {
        padding: 16px 12px;
        border-radius: 16px;
    }

        .search-banner h1 {
            font-size: 18px;
        }

        .search-banner p {
            font-size: 11px;
        }

    .sort-wrapper {
        flex-wrap: wrap;
        gap: 6px;
    }

    .custom-sort-dropdown {
        min-width: 120px;
    }

    .sort-trigger {
        padding: 6px 10px;
        font-size: 11px;
    }

    .filter-button-mobile {
        padding: 10px 14px;
        font-size: 13px;
        margin-bottom: 10px;
    }

        .filter-button-mobile i {
            font-size: 16px;
        }

    .pagination {
        margin-top: 20px;
        gap: 4px;
    }

        .pagination .page-btn {
            min-width: 32px;
            height: 32px;
            font-size: 11px;
            border-radius: 8px;
        }

        .pagination .page-dots {
            min-width: 32px;
            height: 32px;
            font-size: 11px;
        }
}

/* موبایل کوچک - 2 کارت با فاصله مناسب */
@media (max-width: 380px) {
    .featured-page {
        padding: 12px 0;
    }

        .featured-page .search-products-grid,
        #featuredPage .search-products-grid {
            grid-template-columns: repeat(2, 1fr) !important;
            gap: 6px !important;
        }

    .featured-product-card {
        border-radius: 10px;
        min-height: 230px;
        width: 100%;
    }

    .featured-product-title {
        font-size: 11px;
        height: 30px;
        -webkit-line-clamp: 2;
    }

    .featured-price-current {
        font-size: 12px;
    }

    .featured-price-old {
        font-size: 9px;
    }

    .featured-product-info {
        padding: 6px 6px 8px;
    }

    .featured-product-brand {
        font-size: 8px;
        margin-bottom: 2px;
    }

    .featured-product-badge {
        top: 5px;
        right: 5px;
        padding: 2px 5px;
        font-size: 8px;
        border-radius: 5px;
    }

    .featured-wishlist-btn {
        top: 5px;
        left: 5px;
        width: 24px;
        height: 24px;
        font-size: 11px;
        opacity: 1;
        transform: translateX(0);
    }

    .search-banner {
        padding: 14px 10px;
        border-radius: 14px;
    }

        .search-banner h1 {
            font-size: 16px;
        }

        .search-banner p {
            font-size: 10px;
        }

    .products-count {
        font-size: 11px;
    }

    .sort-wrapper label {
        font-size: 11px;
    }

    .custom-sort-dropdown {
        min-width: 110px;
    }

    .sort-trigger {
        padding: 5px 8px;
        font-size: 10px;
    }

    .filter-button-mobile {
        padding: 8px 12px;
        font-size: 12px;
        margin-bottom: 8px;
    }

        .filter-button-mobile i {
            font-size: 14px;
        }

    .pagination {
        margin-top: 16px;
        gap: 3px;
    }

        .pagination .page-btn {
            min-width: 28px;
            height: 28px;
            font-size: 10px;
            border-radius: 6px;
        }

        .pagination .page-dots {
            min-width: 28px;
            height: 28px;
            font-size: 10px;
        }
}

/* دسکتاپ - فیلتر به حالت عادی */
@media (min-width: 821px) {
    .filter-sidebar {
        position: sticky;
        right: auto;
        width: auto;
        height: fit-content;
        max-height: calc(100vh - 120px);
        border-radius: 24px;
    }

        .filter-sidebar.open {
            right: auto;
        }
}

/* اصلاح فاصله محتوای جستجو - برابر با search.css */
.featured-page .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

@media (max-width: 768px) {
    .featured-page .container {
        padding: 0 16px;
    }
}

@media (max-width: 480px) {
    .featured-page .container {
        padding: 0 10px;
    }
}

@media (max-width: 380px) {
    .featured-page .container {
        padding: 0 8px;
    }
}

.text-muted {
    color: var(--text-muted);
}

.hidden {
    display: none !important;
}
