﻿/* ===== Product Card Modern Styles ===== */
:root {
    --product-card-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    --product-card-hover-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    --product-card-transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    --product-card-border-radius: 20px;
    --product-card-badge-bg: linear-gradient(135deg, var(--accent-color), #e87c2c);
    --product-card-overlay: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
}
:root {
    --product-card-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    --product-card-hover-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    --product-card-transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    --product-card-border-radius: 20px;
}

.product-card-modern {
    background: white;
    border-radius: var(--product-card-border-radius);
    overflow: hidden;
    box-shadow: var(--product-card-shadow);
    transition: var(--product-card-transition);
    border: 1px solid rgba(222, 117, 37, 0.1);
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

    .product-card-modern:hover {
        transform: translateY(-10px) scale(1.02);
        box-shadow: var(--product-card-hover-shadow);
        border-color: #de7525;
    }

/* Product Image */
.product-image-modern {
    position: relative;
    padding-top: 75%;
    overflow: hidden;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
}

    .product-image-modern img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    }

.product-card-modern:hover .product-image-modern img {
    transform: scale(1.1) rotate(2deg);
}

/* Product Badges */
.product-badges {
    position: absolute;
    top: 15px;
    right: 15px;
    left: 15px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    z-index: 10;
    pointer-events: none;
}

.badge-right, .badge-left {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.product-badge-modern {
    padding: 6px 12px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 700;
    color: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    pointer-events: auto;
}

    .product-badge-modern.discount {
        background: linear-gradient(135deg, #dc3545, #c82333);
    }

    .product-badge-modern.new {
        background: linear-gradient(135deg, #28a745, #218838);
    }

    .product-badge-modern.special {
        background: linear-gradient(135deg, #ffc107, #e0a800);
        color: #212529;
    }

/* Action Buttons */
.product-actions-modern {
    position: absolute;
    bottom: 15px;
    left: 15px;
    right: 15px;
    display: flex;
    justify-content: center;
    gap: 8px;
    z-index: 10;
    opacity: 0;
    transform: translateY(20px);
    transition: var(--product-card-transition);
    pointer-events: none;
}

.product-card-modern:hover .product-actions-modern {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.action-btn-modern {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    color: #4a4a4a;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

    .action-btn-modern:hover {
        background: #de7525;
        color: white;
        transform: scale(1.1);
    }

    .action-btn-modern.add-to-cart {
        width: auto;
        border-radius: 50px;
        background: linear-gradient(135deg, #de7525, #e87c2c);
        color: white;
        padding: 0 20px;
        gap: 5px;
    }

        .action-btn-modern.add-to-cart i {
            font-size: 14px;
        }

    .action-btn-modern.disabled {
        background: #6c757d;
        cursor: not-allowed;
        opacity: 0.6;
    }

        .action-btn-modern.disabled:hover {
            transform: none;
        }

/* Product Info */
.product-info-modern {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-category-modern {
    font-size: 11px;
    color: #de7525;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.product-title-modern {
    font-size: 15px;
    font-weight: 700;
    color: #1f4e79;
    margin-bottom: 10px;
    line-height: 1.5;
    height: 45px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    text-decoration: none;
    transition: color 0.3s ease;
}

    .product-title-modern:hover {
        color: #de7525;
    }

.product-description-modern {
    font-size: 12px;
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 15px;
    height: 60px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

/* Rating */
.product-rating-modern {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.stars-modern {
    display: flex;
    gap: 2px;
    direction: ltr;
}

    .stars-modern i {
        color: #ffc107;
        font-size: 13px;
    }

        .stars-modern i.far {
            color: #e4e5e9;
        }

.rating-count-modern {
    font-size: 11px;
    color: #6c757d;
}

/* Price */
.product-price-modern {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 15px;
    border-top: 2px dashed rgba(222, 117, 37, 0.2);
}

.price-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.current-price-modern {
    font-size: 20px;
    font-weight: 800;
    color: #de7525;
    line-height: 1;
}

.currency-modern {
    font-size: 12px;
    font-weight: 400;
    color: #6c757d;
    margin-right: 3px;
}

.old-price-modern {
    font-size: 13px;
    color: #adb5bd;
    text-decoration: line-through;
    margin-top: 3px;
}

.discount-percent-modern {
    background: linear-gradient(135deg, #28a745, #218838);
    color: white;
    padding: 4px 10px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Stock Status */
.stock-status-modern {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    margin-top: 8px;
}

    .stock-status-modern.in-stock {
        color: #28a745;
    }

    .stock-status-modern.out-of-stock {
        color: #dc3545;
    }

/* View Details Link */
.view-details-modern {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #1f4e79;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    margin-top: 10px;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
    padding-bottom: 2px;
}

    .view-details-modern:hover {
        color: #de7525;
        border-bottom-color: #de7525;
    }

    .view-details-modern i {
        font-size: 11px;
        transition: transform 0.3s ease;
    }

    .view-details-modern:hover i {
        transform: translateX(-3px);
    }

/* Quick View Modal */
.quick-view-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

    .quick-view-modal.active {
        display: flex;
        animation: fadeIn 0.3s ease;
    }

.quick-view-content {
    background: white;
    border-radius: 20px;
    max-width: 900px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: slideUp 0.4s ease;
}

.quick-view-close {
    position: absolute;
    top: 15px;
    left: 15px;
    width: 35px;
    height: 35px;
    background: #de7525;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    z-index: 10;
    transition: all 0.3s ease;
}

    .quick-view-close:hover {
        transform: rotate(90deg);
        background: #c45a09;
    }

/* Loading State */
.product-card-modern.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .product-actions-modern {
        opacity: 1;
        transform: translateY(0);
        bottom: 10px;
    }

    .action-btn-modern {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }

        .action-btn-modern.add-to-cart {
            padding: 0 15px;
            font-size: 12px;
        }

    .product-title-modern {
        font-size: 14px;
        height: 40px;
    }

    .current-price-modern {
        font-size: 18px;
    }
}
.product-card-modern {
    background: white;
    border-radius: var(--product-card-border-radius);
    overflow: hidden;
    box-shadow: var(--product-card-shadow);
    transition: var(--product-card-transition);
    border: 1px solid rgba(222, 117, 37, 0.1);
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(10px);
}

    .product-card-modern:hover {
        transform: translateY(-10px) scale(1.02);
        box-shadow: var(--product-card-hover-shadow);
        border-color: var(--accent-color);
    }

/* Product Image Container */
.product-image-modern {
    position: relative;
    padding-top: 75%; /* نسبت 4:3 */
    overflow: hidden;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
}

    .product-image-modern img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    }

.product-card-modern:hover .product-image-modern img {
    transform: scale(1.1) rotate(2deg);
}

/* Product Badges */
.product-badges {
    position: absolute;
    top: 15px;
    right: 15px;
    left: 15px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    z-index: 10;
    pointer-events: none;
}

.badge-right {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.badge-left {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.product-badge-modern {
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    pointer-events: auto;
}

    .product-badge-modern.discount {
        background: linear-gradient(135deg, #dc3545, #c82333);
    }

    .product-badge-modern.new {
        background: linear-gradient(135deg, #28a745, #218838);
    }

    .product-badge-modern.special {
        background: linear-gradient(135deg, #ffc107, #e0a800);
        color: #212529;
    }

/* Product Action Buttons */
.product-actions-modern {
    position: absolute;
    bottom: 15px;
    left: 15px;
    right: 15px;
    display: flex;
    justify-content: space-between;
    gap: 8px;
    z-index: 10;
    opacity: 0;
    transform: translateY(20px);
    transition: var(--product-card-transition);
    pointer-events: none;
}

.product-card-modern:hover .product-actions-modern {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.action-btn-modern {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: white;
    color: var(--text-color);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    transition: var(--product-card-transition);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border: 2px solid transparent;
}

    .action-btn-modern:hover {
        background: var(--accent-color);
        color: white;
        transform: scale(1.1) rotate(360deg);
        border-color: white;
    }

    .action-btn-modern.add-to-cart {
        flex: 1;
        border-radius: 50px;
        background: linear-gradient(135deg, var(--accent-color), #e87c2c);
        color: white;
        font-size: 14px;
        font-weight: 600;
        gap: 8px;
        width: auto;
        padding: 0 20px;
    }

        .action-btn-modern.add-to-cart i {
            font-size: 16px;
        }

        .action-btn-modern.add-to-cart:hover {
            transform: translateY(-3px);
            box-shadow: 0 10px 25px rgba(222, 117, 37, 0.4);
        }

/* Product Info */
.product-info-modern {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    background: white;
}

.product-category-modern {
    font-size: 12px;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

    .product-category-modern i {
        font-size: 14px;
    }

.product-title-modern {
    font-size: 16px;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 10px;
    line-height: 1.5;
    height: 48px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    transition: color 0.3s ease;
}

.product-card-modern:hover .product-title-modern {
    color: var(--accent-color);
}

.product-description-modern {
    font-size: 13px;
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 15px;
    height: 60px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

/* Rating Stars */
.product-rating-modern {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.stars-modern {
    display: flex;
    gap: 2px;
    direction: ltr;
}

    .stars-modern i {
        color: #ffc107;
        font-size: 14px;
    }

        .stars-modern i.far {
            color: #e4e5e9;
        }

.rating-count-modern {
    font-size: 12px;
    color: #6c757d;
}

/* Price Section */
.product-price-modern {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 15px;
    border-top: 2px dashed rgba(222, 117, 37, 0.2);
}

.price-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.current-price-modern {
    font-size: 22px;
    font-weight: 800;
    color: var(--accent-color);
    line-height: 1;
}

.currency-modern {
    font-size: 14px;
    font-weight: 400;
    color: #6c757d;
    margin-right: 5px;
}

.old-price-modern {
    font-size: 14px;
    color: #adb5bd;
    text-decoration: line-through;
    margin-top: 3px;
}

.discount-percent-modern {
    background: linear-gradient(135deg, #28a745, #218838);
    color: white;
    padding: 5px 12px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 5px;
}

    .discount-percent-modern i {
        font-size: 12px;
    }

/* Stock Status */
.stock-status-modern {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    margin-top: 8px;
}

    .stock-status-modern.in-stock {
        color: #28a745;
    }

    .stock-status-modern.out-of-stock {
        color: #dc3545;
    }

    .stock-status-modern i {
        font-size: 14px;
    }

/* View Details Link */
.view-details-modern {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--secondary-color);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    margin-top: 10px;
    transition: var(--product-card-transition);
    border-bottom: 2px solid transparent;
    padding-bottom: 3px;
}

    .view-details-modern:hover {
        color: var(--accent-color);
        border-bottom-color: var(--accent-color);
    }

    .view-details-modern i {
        font-size: 12px;
        transition: transform 0.3s ease;
    }

    .view-details-modern:hover i {
        transform: translateX(-5px);
    }

/* Quick View Modal Styles */
.quick-view-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

    .quick-view-modal.active {
        display: flex;
        animation: fadeIn 0.3s ease;
    }

.quick-view-content {
    background: white;
    border-radius: 30px;
    max-width: 900px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: slideUp 0.4s ease;
}

.quick-view-close {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 40px;
    height: 40px;
    background: var(--accent-color);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    z-index: 10;
    transition: all 0.3s ease;
}

    .quick-view-close:hover {
        transform: rotate(90deg);
        background: #c45a09;
    }

/* Loading State */
.product-card-modern.loading {
    position: relative;
    overflow: hidden;
}

    .product-card-modern.loading::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
        animation: loading 1.5s infinite;
    }

@keyframes loading {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Styles */
@media (max-width: 768px) {
    .product-actions-modern {
        opacity: 1;
        transform: translateY(0);
        bottom: 10px;
        left: 10px;
        right: 10px;
    }

    .action-btn-modern {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

        .action-btn-modern.add-to-cart {
            padding: 0 15px;
            font-size: 13px;
        }

    .product-title-modern {
        font-size: 15px;
        height: 42px;
    }

    .current-price-modern {
        font-size: 20px;
    }
}

@media (max-width: 576px) {
    .product-info-modern {
        padding: 15px;
    }

    .product-title-modern {
        font-size: 14px;
    }

    .product-description-modern {
        font-size: 12px;
        height: 54px;
    }

    .action-btn-modern {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }

        .action-btn-modern.add-to-cart {
            padding: 0 12px;
            font-size: 12px;
        }
}
.product-title-modern {
    font-size: 14px !important;
    height: 40px !important;
    line-height: 1.4 !important;
}

.product-category-modern {
    font-size: 11px !important;
}

.product-description-modern {
    font-size: 12px !important;
    height: 54px !important;
}

.current-price-modern {
    font-size: 16px !important;
}

.old-price-modern {
    font-size: 12px !important;
}

.currency-modern {
    font-size: 11px !important;
}

.discount-percent-modern {
    font-size: 11px !important;
    padding: 3px 8px !important;
}

.product-badge-modern {
    font-size: 10px !important;
    padding: 4px 10px !important;
}

.filter-title {
    font-size: 15px !important;
}

.form-check-label {
    font-size: 13px !important;
}

/* باکس فیلتر شناور */
#box-filter {
    position: sticky;
    top: 90px;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-color) #f0f0f0;
    padding-right: 5px;
    transition: all 0.3s ease;
}

    #box-filter::-webkit-scrollbar {
        width: 5px;
    }

    #box-filter::-webkit-scrollbar-track {
        background: #f0f0f0;
        border-radius: 10px;
    }

    #box-filter::-webkit-scrollbar-thumb {
        background: var(--accent-color);
        border-radius: 10px;
    }

/* چک باکس توضیحات */
.read-more-state {
    display: none;
}

.read-more-wrap {
    position: relative;
    max-height: 100px;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.read-more-state:checked ~ .read-more-wrap {
    max-height: 1000px;
}

.read-more-trigger {
    display: inline-block;
    margin-top: 10px;
    color: var(--accent-color);
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    background: none;
    border: none;
    padding: 5px 0;
}

    .read-more-trigger:before {
        content: 'نمایش بیشتر';
    }

.read-more-state:checked ~ .read-more-trigger:before {
    content: 'نمایش کمتر';
}

.read-more-trigger i {
    margin-right: 5px;
    transition: transform 0.3s;
}

.read-more-state:checked ~ .read-more-trigger i {
    transform: rotate(180deg);
}

/* استایل‌های اضافی */
.filter-container {
    background: white;
    border-radius: 12px;
    padding: 18px;
    margin-bottom: 15px;
    border: 1px solid #e9ecef;
}

.price-slider .field {
    display: flex;
    align-items: center;
    gap: 5px;
}

    .price-slider .field input {
        width: 90px;
        padding: 8px;
        border: 1px solid #e9ecef;
        border-radius: 8px;
    }

.category-sort .btn {
    font-size: 13px;
    padding: 5px 12px;
}

.box_filter_counter {
    font-size: 14px !important;
}

.content-box {
    background: white;
    border-radius: 12px;
    padding: 15px 20px;
    border: 1px solid #e9ecef;
}
:root {
    --card-font-size: 13px;
    --card-title-size: 14px;
    --card-price-size: 16px;
    --card-old-price-size: 11px;
    --badge-font-size: 10px;
    --filter-font-size: 13px;
}

/* ===== باکس فیلتر ===== */
.filter-container {
    background: white;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 15px;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}

.filter-title {
    font-size: 14px !important;
    font-weight: 600;
    color: #1f4e79;
    margin-bottom: 10px;
}

.filter-head {
    cursor: pointer;
    padding: 5px 0;
}

    .filter-head i {
        font-size: 14px;
        color: #de7525;
        transition: transform 0.3s;
    }

        .filter-head i.bi-chevron-up {
            transform: rotate(180deg);
        }

.filter-content {
    margin-top: 15px;
}

.form-check-label {
    font-size: 13px !important;
    color: #4a4a4a;
}

.form-check-input:checked {
    background-color: #de7525;
    border-color: #de7525;
}

/* ===== اسلایدر قیمت ===== */
.price-slider {
    width: 100%;
}

.slider-range {
    position: relative;
    height: 5px;
    background: #e9ecef;
    border-radius: 5px;
    margin: 20px 0 30px;
}

    .slider-range .progress {
        position: absolute;
        height: 5px;
        background: linear-gradient(90deg, #de7525, #f39c12);
        border-radius: 5px;
        z-index: 1;
    }

.range-input {
    position: relative;
}

    .range-input input {
        position: absolute;
        width: 100%;
        height: 5px;
        background: none;
        pointer-events: none;
        -webkit-appearance: none;
        appearance: none;
        top: -5px;
        z-index: 2;
    }

        .range-input input::-webkit-slider-thumb {
            -webkit-appearance: none;
            appearance: none;
            width: 18px;
            height: 18px;
            background: white;
            border: 2px solid #de7525;
            border-radius: 50%;
            cursor: pointer;
            pointer-events: auto;
            box-shadow: 0 2px 6px rgba(0,0,0,0.2);
            margin-top: -6px;
        }

        .range-input input::-moz-range-thumb {
            width: 18px;
            height: 18px;
            background: white;
            border: 2px solid #de7525;
            border-radius: 50%;
            cursor: pointer;
            pointer-events: auto;
            box-shadow: 0 2px 6px rgba(0,0,0,0.2);
        }

.price-slider .field {
    display: flex;
    align-items: center;
    gap: 5px;
    background: #f8f9fa;
    padding: 5px 10px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

    .price-slider .field input {
        width: 80px;
        padding: 5px;
        border: none;
        background: transparent;
        font-size: 12px;
        text-align: center;
    }

        .price-slider .field input:focus {
            outline: none;
        }

    .price-slider .field span {
        font-size: 11px;
        color: #6c757d;
    }

/* ===== کارد محصول ===== */
.product-card-modern {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 3px 12px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
    height: 100%;
    display: flex;
    flex-direction: column;
}

    .product-card-modern:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 20px rgba(222, 117, 37, 0.12);
        border-color: rgba(222, 117, 37, 0.3);
    }

.product-image-modern {
    position: relative;
    padding-top: 70%;
    overflow: hidden;
    background: #f8f9fa;
}

    .product-image-modern img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.3s;
    }

.product-card-modern:hover .product-image-modern img {
    transform: scale(1.05);
}

.product-badges {
    position: absolute;
    top: 8px;
    right: 8px;
    left: 8px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    z-index: 2;
    pointer-events: none;
}

.product-badge-modern {
    padding: 3px 8px;
    border-radius: 20px;
    font-size: 10px !important;
    font-weight: 600;
    color: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

    .product-badge-modern i {
        font-size: 9px;
    }

    .product-badge-modern.discount {
        background: linear-gradient(135deg, #dc3545, #c82333);
    }

    .product-badge-modern.new {
        background: linear-gradient(135deg, #28a745, #218838);
    }

    /* برچسب ناموجود مخفی شد */
    .product-badge-modern.out-of-stock {
        display: none;
    }

.product-info-modern {
    padding: 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-title-modern {
    font-size: 13px !important;
    font-weight: 600;
    color: #1f4e79;
    line-height: 1.5;
    height: 38px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    margin-bottom: 8px;
    text-decoration: none;
}

    .product-title-modern:hover {
        color: #de7525;
    }

.product-price-modern {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 8px;
    border-top: 1px solid #f0f0f0;
}

.price-container {
    display: flex;
    flex-direction: column;
}

.current-price-modern {
    font-size: 15px !important;
    font-weight: 700;
    color: #de7525;
    line-height: 1.2;
}

.currency-modern {
    font-size: 10px !important;
    font-weight: 400;
    color: #6c757d;
    margin-right: 2px;
}

.old-price-modern {
    font-size: 10px !important;
    color: #adb5bd;
    text-decoration: line-through;
    margin-top: 2px;
}

.discount-percent-modern {
    background: linear-gradient(135deg, #28a745, #218838);
    color: white;
    padding: 3px 6px;
    border-radius: 20px;
    font-size: 9px !important;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 3px;
}

    .discount-percent-modern i {
        font-size: 8px;
    }

.stock-status-modern {
    display: none; /* مخفی کردن وضعیت موجودی از کارد */
}

.view-details-modern {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #1f4e79;
    text-decoration: none;
    font-size: 11px;
    font-weight: 500;
    margin-top: 8px;
    transition: all 0.3s;
    border-bottom: 1px solid transparent;
    padding-bottom: 2px;
    width: fit-content;
}

    .view-details-modern:hover {
        color: #de7525;
        border-bottom-color: #de7525;
    }

    .view-details-modern i {
        font-size: 10px;
        transition: transform 0.3s;
    }

    .view-details-modern:hover i {
        transform: translateX(-3px);
    }

/* ===== اسلایدر دسته‌بندی ===== */
.pro-slider {
    position: relative;
    padding: 10px 0 20px !important;
}

    .pro-slider .swiper-wrapper {
        display: flex;
    }

    .pro-slider .swiper-slide {
        width: auto;
        flex-shrink: 0;
    }

.cat-item {
    width: 100px;
    text-align: center;
    transition: all 0.3s;
    padding: 8px 5px;
    border-radius: 10px;
    background: white;
    border: 1px solid #f0f0f0;
}

    .cat-item:hover {
        border-color: #de7525;
        box-shadow: 0 3px 10px rgba(222, 117, 37, 0.1);
    }

.cat-item-image {
    width: 60px;
    height: 60px;
    margin: 0 auto 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .cat-item-image img {
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
    }

.cat-item-desc h6 {
    font-size: 11px !important;
    font-weight: 500;
    color: #4a4a4a;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.swiper-nav {
    display: none; /* مخفی کردن دکمه‌های قبلی و بعدی */
}

/* ===== مرتب‌سازی ===== */
.category-sort .content-box {
    background: white;
    border-radius: 10px;
    padding: 10px 15px;
    border: 1px solid #f0f0f0;
}

.box_filter ul {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.box_filter li {
    margin: 0 !important;
}

.box_filter a {
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 20px;
    background: #f8f9fa;
    color: #4a4a4a;
    text-decoration: none;
    transition: all 0.3s;
    display: block;
}

    .box_filter a.active_custom,
    .box_filter a:hover {
        background: #de7525;
        color: white;
    }

.box_filter_counter {
    font-size: 12px !important;
    color: #6c757d;
}

    .box_filter_counter i {
        color: #de7525;
    }

/* ===== باکس فیلتر شناور ===== */
#box-filter {
    position: sticky;
    top: 90px;
    max-height: calc(100vh - 110px);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #de7525 #f0f0f0;
    padding-right: 5px;
}

    #box-filter::-webkit-scrollbar {
        width: 4px;
    }

    #box-filter::-webkit-scrollbar-track {
        background: #f0f0f0;
        border-radius: 10px;
    }

    #box-filter::-webkit-scrollbar-thumb {
        background: #de7525;
        border-radius: 10px;
    }

/* ===== فیلترهای انتخاب شده ===== */
.selected-filter {
    background: #f8f9fa;
    padding: 8px 12px;
    border-radius: 8px;
    margin: 10px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    border-right: 3px solid #de7525;
}

.btn-close-filter {
    background: none;
    border: none;
    color: #dc3545;
    font-size: 14px;
    cursor: pointer;
    padding: 0 5px;
}

    .btn-close-filter:hover {
        color: #c82333;
    }

/* ===== توضیحات با read more ===== */
.read-more-state {
    display: none;
}

.read-more-wrap {
    position: relative;
    max-height: 60px;
    overflow: hidden;
    transition: max-height 0.3s ease;
    font-size: 13px;
    line-height: 1.6;
}

.read-more-state:checked ~ .read-more-wrap {
    max-height: 500px;
}

.read-more-trigger {
    display: inline-block;
    margin-top: 8px;
    color: #de7525;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    background: none;
    border: none;
    padding: 3px 0;
}

    .read-more-trigger:before {
        content: 'نمایش بیشتر';
    }

.read-more-state:checked ~ .read-more-trigger:before {
    content: 'نمایش کمتر';
}

.read-more-trigger i {
    margin-right: 5px;
    transition: transform 0.3s;
    font-size: 10px;
}

.read-more-state:checked ~ .read-more-trigger i {
    transform: rotate(180deg);
}

/* ===== رسپانسیو برای موبایل و تبلت ===== */
@media (max-width: 768px) {
    .col-lg-4 {
        flex: 0 0 50%;
        max-width: 50%;
    }

    .cat-item {
        width: 85px;
    }

    .cat-item-image {
        width: 50px;
        height: 50px;
    }

    .cat-item-desc h6 {
        font-size: 10px !important;
    }

    .pro-slider {
        padding: 5px 0 15px !important;
    }
 

    .category-sort .content-box {
        padding: 8px 12px;
    }

    .box_filter ul {
        gap: 5px;
    }

    .box_filter a {
        font-size: 11px;
        padding: 3px 8px;
    }
}

@media (max-width: 576px) {
    .col-lg-4 {
        flex: 0 0 50%;
        max-width: 50%;
    }

    .product-info-modern {
        padding: 8px;
    }

    .product-title-modern {
        font-size: 12px !important;
        height: 34px;
    }

    .current-price-modern {
        font-size: 13px !important;
    }

    .discount-percent-modern {
        padding: 2px 5px;
        font-size: 8px !important;
    }

    .view-details-modern {
        font-size: 10px;
        margin-top: 5px;
    }
}

/* ===== لودینگ ===== */
#loading-indicator {
    width: 100%;
    text-align: center;
    padding: 20px;
}

.spinner-border {
    color: #de7525;
    width: 2rem;
    height: 2rem;
}

/* ===== حالت خالی ===== */
.empty-state {
    padding: 40px 20px;
    text-align: center;
    background: white;
    border-radius: 12px;
}

.empty-icon {
    font-size: 48px;
    color: #de7525;
    opacity: 0.5;
}

 