﻿/* ===== استایل اختصاصی صفحه محصولات ===== */

.product-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s ease;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    height: 100%;
    display: flex;
    flex-direction: column;
}

    .product-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 20px 50px rgba(0, 37, 44, 0.15);
    }

/* ===== تصویر محصول - استاندارد ===== */
.product-img-wrapper {
    position: relative;
    width: 100%;
    padding-top: 75%;
    background: #f7f7f7;
    overflow: hidden;
    border-radius: 16px 16px 0 0;
}

.product-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    background: #f7f7f7;
    padding: 12px;
    transition: transform 0.4s ease;
}

.product-card:hover .product-img {
    transform: scale(1.03);
}

/* ===== تصویر پیش‌فرض ===== */
.product-img-wrapper .no-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #00252C 0%, #043138 100%);
    gap: 6px;
}

    .product-img-wrapper .no-image i {
        font-size: 44px;
        color: #c0c0c0;
    }

    .product-img-wrapper .no-image span {
        color: #999;
        font-size: 13px;
        font-weight: 500;
    }

    .product-img-wrapper .no-image .brand-name {
        color: #B9F8B1;
        font-weight: 700;
        font-size: 15px;
        letter-spacing: 2px;
    }

/* ===== نشان فعال ===== */
.product-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #B9F8B1;
    color: #00252C;
    padding: 4px 14px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    z-index: 2;
}

/* ===== اطلاعات محصول ===== */
.product-info {
    padding: 20px 22px 22px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-title {
    font-size: 18px;
    font-weight: 700;
    color: #393737;
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 50px;
}

    .product-title a {
        color: #393737;
        transition: color 0.3s ease;
    }

        .product-title a:hover {
            color: #00252C;
        }

.product-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 12px;
    margin-bottom: 12px;
    font-size: 13px;
    color: #888787;
}

    .product-meta span {
        display: flex;
        align-items: center;
        gap: 4px;
    }

    .product-meta i {
        color: #91D089;
        font-size: 14px;
    }

.product-desc {
    font-size: 14px;
    color: #888787;
    line-height: 1.7;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 12px;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 14px;
    border-top: 1px solid #f0f0f0;
    margin-top: auto;
}

.product-brand {
    font-size: 13px;
    color: #99A8AB;
}

    .product-brand strong {
        color: #393737;
        font-weight: 600;
    }

/* ===== صفحه‌بندی ===== */
.pagination-wrapper {
    margin-top: 50px;
}

    .pagination-wrapper .page-nav li a {
        width: 48px;
        height: 48px;
        font-size: 16px;
        background: #fff;
        border-radius: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.3s ease;
        color: #393737;
        font-weight: 600;
        border: 1px solid #e8e8e8;
    }

        .pagination-wrapper .page-nav li a:hover,
        .pagination-wrapper .page-nav li a.active {
            background: #B9F8B1;
            border-color: #B9F8B1;
            color: #00252C;
        }

        .pagination-wrapper .page-nav li a.disabled {
            opacity: 0.4;
            cursor: not-allowed;
            pointer-events: none;
        }

    .pagination-wrapper .page-nav li {
        margin-left: 8px;
    }

        .pagination-wrapper .page-nav li:last-child {
            margin-left: 0;
        }

.pagination-info {
    color: #888787;
    font-size: 14px;
    margin-top: 15px;
    text-align: center;
}

/* ===== حالت خالی ===== */
.empty-state {
    text-align: center;
    padding: 80px 20px;
}

    .empty-state i {
        font-size: 64px;
        color: #D9D9D9;
        margin-bottom: 20px;
    }

    .empty-state h3 {
        font-size: 24px;
        color: #393737;
        margin-bottom: 12px;
    }

    .empty-state p {
        color: #888787;
        font-size: 16px;
    }

/* ===== ریسپانسیو ===== */
@media (max-width: 992px) {
    .product-img-wrapper {
        padding-top: 78%;
    }
}

@media (max-width: 768px) {
    .product-img-wrapper {
        padding-top: 80%;
    }

    .product-img {
        padding: 8px;
    }

    .product-title {
        font-size: 16px;
        height: 44px;
    }

    .product-info {
        padding: 16px 18px 18px;
    }

    .pagination-wrapper .page-nav li a {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }
}

@media (max-width: 576px) {
    .product-img-wrapper {
        padding-top: 85%;
    }

    .product-img {
        padding: 6px;
    }

    .product-title {
        font-size: 15px;
        height: 42px;
    }

    .product-meta {
        font-size: 12px;
        gap: 4px 8px;
    }

    .product-desc {
        font-size: 13px;
        -webkit-line-clamp: 2;
    }

    .product-brand {
        font-size: 12px;
    }

    .product-info {
        padding: 14px 14px 16px;
    }

    .product-img-wrapper .no-image i {
        font-size: 32px;
    }

    .product-img-wrapper .no-image span {
        font-size: 12px;
    }

    .product-img-wrapper .no-image .brand-name {
        font-size: 13px;
    }
}
