/* ============================================================
   PRODUCT LIST PAGE - صفحه لیست محصولات
   ============================================================ */

/* ========== صفحه اصلی ========== */
.product-list-page {
    min-height: 60vh;
    padding: 40px 0;
}

/* ========== هدر صفحه ========== */
.page-header {
    padding-bottom: 20px;
    border-bottom: 2px solid #eef0f2;
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 12px;
}

.page-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: #1f2330;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.page-title i {
    color: #0052cc;
    font-size: 1.6rem;
}

.page-subtitle {
    font-size: 0.95rem;
    color: #8a8f9c;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.page-subtitle i {
    color: #0052cc;
}

/* ========== Grid محصولات ========== */
.product-list-grid-section {
    position: relative;
}

.product-list-col {
    display: flex;
}

/* ========== کارت محصول ========== */
.product-list-card {
    width: 100%;
    height: 100%;
    background: #fff;
    border-radius: 16px;
    border: 1px solid #eef0f2;
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
}

.plc-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

.product-list-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 40px rgba(0, 82, 204, 0.15);
    border-color: #0052cc;
}

.product-list-card-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* ========== تصویر محصول ========== */
.plc-img-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.plc-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 16px;
    transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.product-list-card:hover .plc-img-wrapper img {
    transform: scale(1.1);
}

/* Overlay هنگام hover */
.plc-hover-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 82, 204, 0.9) 0%, rgba(79, 110, 247, 0.9) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(2px);
}

.product-list-card:hover .plc-hover-overlay {
    opacity: 1;
}

.plc-hover-text {
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    transform: translateY(10px);
    transition: transform 0.3s ease;
}

.product-list-card:hover .plc-hover-text {
    transform: translateY(0);
}

.plc-hover-text i {
    font-size: 1.5rem;
}

/* ========== محتوای کارت ========== */
.plc-content {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.plc-category {
    display: inline-block;
    background: rgba(0, 82, 204, 0.1);
    color: #0052cc;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    width: fit-content;
    margin-bottom: 4px;
    transition: all 0.2s ease;
}

.product-list-card:hover .plc-category {
    background: #0052cc;
    color: #fff;
}

.plc-title {
    font-size: 1rem;
    font-weight: 700;
    color: #1f2330;
    margin: 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 44px;
    transition: color 0.2s ease;
}

.product-list-card:hover .plc-title {
    color: #0052cc;
}

.plc-desc {
    font-size: 0.8rem;
    color: #8a8f9c;
    line-height: 1.5;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.plc-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #0052cc;
    font-weight: 600;
    font-size: 0.85rem;
    margin-top: auto;
    padding-top: 8px;
    transition: gap 0.2s ease;
}

.product-list-card:hover .plc-cta {
    gap: 10px;
}

.plc-cta i {
    font-size: 0.8em;
}

/* ========== Empty State ========== */
.empty-state {
    background: #fff;
    border-radius: 16px;
    border: 1px solid #eef0f2;
    padding: 60px 20px;
    max-width: 500px;
    margin: 0 auto;
}

.empty-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 20px;
    background: rgba(0, 82, 204, 0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0052cc;
    font-size: 2.5rem;
    animation: emptyFloat 3s ease-in-out infinite;
}

@keyframes emptyFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.empty-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1f2330;
    margin-bottom: 10px;
}

.empty-text {
    color: #8a8f9c;
    font-size: 0.95rem;
    margin-bottom: 20px;
    line-height: 1.7;
}

/* ========== Loading State ========== */
.loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    gap: 16px;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid #eef0f2;
    border-top-color: #0052cc;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ========== Responsive - Tablet ========== */
@media (max-width: 991px) {
    .page-title {
        font-size: 1.6rem;
    }

    .plc-content {
        padding: 14px;
    }
}

/* ========== Responsive - Mobile ========== */
@media (max-width: 767px) {
    .product-list-page {
        padding: 24px 0;
    }

    .page-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .page-title {
        font-size: 1.4rem;
    }

    .page-title i {
        font-size: 1.3rem;
    }

    .plc-title {
        font-size: 0.9rem;
        min-height: 40px;
    }

    .plc-content {
        padding: 12px;
        gap: 6px;
    }

    .plc-desc {
        font-size: 0.75rem;
        -webkit-line-clamp: 1;
    }

    .plc-cta {
        font-size: 0.8rem;
    }

    .empty-state {
        padding: 40px 16px;
    }

    .empty-icon {
        width: 80px;
        height: 80px;
        font-size: 2rem;
    }

    .empty-title {
        font-size: 1.2rem;
    }
}

/* ========== Responsive - Small Mobile ========== */
@media (max-width: 575px) {
    .plc-img-wrapper img {
        padding: 10px;
    }

    .plc-category {
        font-size: 0.65rem;
        padding: 3px 8px;
    }

    .plc-hover-text {
        font-size: 0.75rem;
    }

    .plc-hover-text i {
        font-size: 1.2rem;
    }
}

/* ========== Dark Mode (اختیاری) ========== */
@media (prefers-color-scheme: dark) {
    /* در صورت نیاز به دارک مود، اینجا اضافه کن */
}