/* استایل کلی صفحه */
.shop-area-modern {
    padding-top: 40px !important;
    padding-bottom: 60px !important;
    background: #f8f9fa;
}

/* باکس فیلترها - همه در یک باکس */
.filters-box {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
    position: sticky;
    top: 20px;
    overflow: hidden;
}

.filters-header {
    background: #f83ba9;
    padding: 20px;
    color: #fff;
}

.filters-title {
    color: white;
    font-size: 20px;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
}

.filters-content {
    padding: 20px;
}

.filter-section {
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid #e9ecef;
}

.filter-section:last-of-type {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.filter-section-title {
    font-size: 16px;
    font-weight: 700;
    color: #f83ba9;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-option {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    border-radius: 10px;
    text-decoration: none;
    color: #495057;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    background: #f8f9fa;
    border: 2px solid transparent;
}

.filter-option:hover {
    background: #fce4ec;
    color: #f83ba9;
    border-color: #f83ba9;
    transform: translateX(-5px);
}

.filter-option.active {
    background: #f83ba9;
    color: #fff;
    border-color: #f83ba9;
    font-weight: 600;
}

.filter-option i {
    font-size: 14px;
    width: 20px;
}

.price-filter-section {
    padding: 10px 0;
}

.price-input-container {
    margin-bottom: 20px;
}

.price-input-field {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    text-align: center;
    font-weight: 600;
    font-size: 14px;
    color: #f83ba9;
    background: #f8f9fa;
    transition: all 0.3s ease;
}

.price-input-field:focus {
    outline: none;
    border-color: #f83ba9;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(248, 59, 169, 0.1);
}

.price-slider-container {
    padding: 15px 0;
}

.price-slider-container .ui-slider-handle {
    background: #f83ba9 !important;
    border: 3px solid #fff !important;
    width: 20px !important;
    height: 20px !important;
    border-radius: 50% !important;
    box-shadow: 0 2px 8px rgba(248, 59, 169, 0.4) !important;
    cursor: pointer;
    transition: all 0.3s ease !important;
    top: -8px !important;
}

.price-slider-container .ui-slider-handle:hover {
    transform: scale(1.2) !important;
    box-shadow: 0 4px 12px rgba(248, 59, 169, 0.5) !important;
}

.price-slider-container .ui-slider-range {
    background: #f83ba9 !important;
    border-radius: 5px !important;
}

.price-slider-container .ui-widget-content {
    background: #e9ecef !important;
    border: none !important;
    height: 6px !important;
    border-radius: 10px !important;
}

.filters-footer {
    padding: 20px;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
}

.clear-all-btn {
    width: 100%;
    padding: 14px;
    background: #f83ba9;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.clear-all-btn:hover {
    background: #e62a95;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(248, 59, 169, 0.3);
}

.clear-all-btn:active {
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 991px) {
    .filters-box {
        position: relative;
        top: 0;
        margin-bottom: 30px;
    }
}

@media (max-width: 767px) {
    .filters-header {
        padding: 15px;
    }

    .filters-title {
        font-size: 18px;
    }

    .filters-content {
        padding: 15px;
    }

    .filter-section {
        margin-bottom: 20px;
        padding-bottom: 20px;
    }

    .filter-option {
        padding: 10px 12px;
        font-size: 13px;
    }
}

/* Toolbar */
.products-toolbar {
    background: #fff;
    padding: 18px 25px;
    border-radius: 12px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    border: 1px solid #e9ecef;
}

.products-count-badge {
    display: flex;
    align-items: center;
    color: #495057;
    font-size: 15px;
    font-weight: 600;
}

.products-count-badge i {
    color: var(--theme-color, #f83ba9);
}

.sort-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sort-label {
    color: #6c757d;
    font-size: 14px;
    margin: 0;
    display: flex;
    align-items: center;
}

.sort-select {
    padding: 8px 35px 8px 15px;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    background: #fff;
    color: #495057;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23f83ba9' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 12px center;
    padding-right: 12px;
}

.sort-select:focus {
    outline: none;
    border-color: var(--theme-color, #f83ba9);
    box-shadow: 0 0 0 3px rgba(248, 59, 169, 0.1);
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.product-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    border-color: var(--theme-color, #f83ba9);
}

.product-image-wrapper {
    position: relative;
    overflow: hidden;
    background: #f8f9fa;
    aspect-ratio: 1;
    padding: 15px;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.4s ease;
}

.product-card:hover .product-image {
    transform: scale(1.08);
}

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(248, 59, 169, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.view-product {
    color: #fff;
    font-weight: 600;
    font-size: 15px;
    display: flex;
    align-items: center;
}

.product-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    z-index: 5;
}

.product-badge img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.add-to-cart-quick {
    position: absolute;
    bottom: 15px;
    left: 15px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: #fff;
    border: none;
    color: var(--theme-color, #f83ba9);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(10px);
    z-index: 5;
}

.product-card:hover .add-to-cart-quick {
    opacity: 1;
    transform: translateY(0);
}

.add-to-cart-quick:hover {
    background: var(--theme-color, #f83ba9);
    color: #fff;
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(248, 59, 169, 0.4);
}

.product-info {
    padding: 18px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-name {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.4;
}

.product-name a {
    color: #212529;
    text-decoration: none;
    transition: color 0.3s ease;
}

.product-name a:hover {
    color: var(--theme-color, #f83ba9);
}

.product-brand {
    font-size: 13px;
    color: #6c757d;
    margin-bottom: 12px;
}

.product-price-wrapper {
    margin-top: auto;
    display: flex;
    align-items: baseline;
    gap: 5px;
}

.product-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--theme-color, #f83ba9);
}

.price-unit {
    font-size: 13px;
    color: #6c757d;
}

/* Empty State */
.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.empty-icon-wrapper {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: #f8f9fa;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.empty-icon-wrapper i {
    font-size: 40px;
    color: #dee2e6;
}

.empty-state h3 {
    font-size: 22px;
    font-weight: 600;
    color: #212529;
    margin-bottom: 10px;
}

.empty-state p {
    color: #6c757d;
    margin-bottom: 25px;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    padding: 12px 28px;
    background: var(--theme-color, #f83ba9);
    color: #fff;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.back-btn:hover {
    background: var(--theme-color2, #ff6b9d);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(248, 59, 169, 0.3);
    color: #fff;
}

/* Pagination */
.pagination-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.pagination-nav {
    display: inline-block;
}

.pagination-list {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 8px;
    align-items: center;
}

.page-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: 10px;
    border: 1px solid #dee2e6;
    background: #fff;
    color: #495057;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.page-btn:hover {
    border-color: var(--theme-color, #f83ba9);
    color: var(--theme-color, #f83ba9);
    transform: translateY(-2px);
}

.page-btn.active {
    background: var(--theme-color, #f83ba9);
    border-color: var(--theme-color, #f83ba9);
    color: #fff;
}

/* Responsive */
@media (max-width: 991px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 15px;
    }

    .products-toolbar {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
}

@media (max-width: 767px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 12px;
    }

    .product-info {
        padding: 15px;
    }

    .product-name {
        font-size: 14px;
    }

    .product-price {
        font-size: 16px;
    }
}

/*فیلتر قیمت*/
.dual-price-slider {
    position: relative;
    height: 40px;
    margin-bottom: 15px;
}

.dual-price-slider .price-slider {
    position: absolute;
    width: 100%;
    height: 6px;
    background: none;
    pointer-events: none;
    -webkit-appearance: none;
    margin: 0;
    z-index: 2;
}

.slider-track {
    position: absolute;
    width: 100%;
    height: 6px;
    background: var(--theme-color-light);
    border-radius: 10px;
    top: 50%;
    transform: translateY(-50%);
}

.slider-progress {
    position: absolute;
    height: 6px;
    background: var(--theme-color);
    border-radius: 10px;
    transition: var(--transition);
}

.dual-price-slider .price-slider::-webkit-slider-thumb {
    pointer-events: auto;
    -webkit-appearance: none;
    height: 20px;
    width: 20px;
    border-radius: 50%;
    background: var(--theme-color);
    cursor: pointer;
    border: 3px solid var(--color-white);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.dual-price-slider .price-slider::-webkit-slider-thumb:hover {
    background: var(--theme-color2);
    transform: scale(1.1);
}

.dual-price-slider .price-slider::-moz-range-thumb {
    pointer-events: auto;
    height: 20px;
    width: 20px;
    border-radius: 50%;
    background: var(--theme-color);
    cursor: pointer;
    border: 3px solid var(--color-white);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    border: none;
}

.dual-price-slider .price-slider::-moz-range-track {
    background: transparent;
    border: none;
    height: 6px;
}

.price-input-field {
    background: var(--theme-color-light);
    border: 1px solid var(--border-info-color);
    border-radius: 10px;
    color: var(--theme-color);
    font-weight: 600;
    text-align: center;
    padding: 12px 15px;
    margin-bottom: 15px;
    width: 100%;
    transition: var(--transition);
}
