/**
 * استایل صفحات آرشیو محصول (فروشگاه/دسته‌بندی/برچسب)
 * مسیر پیشنهادی: assets/css/product-archive.css در چایلد تم
 * از qc-breadcrumb (تعریف‌شده در single-company.css) هم استفاده می‌کنه.
 */

.pa-archive-page {
    font-family: 'Vazirmatn', Tahoma, sans-serif;
    direction: rtl;
}

/* ===================== عنوان و توضیح ===================== */
.pa-header {
    background: linear-gradient(120deg, #061031 0%, #0B1B49 55%, #16244F 100%);
    border-radius: 18px;
    padding: 28px 32px;
    margin-bottom: 20px;
}
.pa-header h1 {
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 8px;
    text-shadow: 0 0 18px rgba(120,160,255,0.55), 0 0 4px rgba(255,255,255,0.4);
}
.pa-header-desc {
    font-size: 14px;
    line-height: 1.9;
    color: rgba(255,255,255,0.72);
    max-width: 800px;
}

/* ===================== فیلتر و جستجو ===================== */
.pa-filters {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 10px rgba(20,30,60,0.06);
    padding: 18px 20px;
    margin-bottom: 24px;
}
.pa-filters-form {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}
.pa-search-row {
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 220px;
    border: 1px solid #E4E2DA;
    border-radius: 8px;
    overflow: hidden;
}
.pa-search-row input[type="text"] {
    flex: 1;
    border: 0;
    padding: 10px 14px;
    font-size: 13.5px;
    outline: none;
    font-family: inherit;
}
.pa-search-btn {
    border: 0;
    background: #F3F5F9;
    color: #5F5E5A;
    padding: 0 14px;
    height: 40px;
    display: flex;
    align-items: center;
    cursor: pointer;
}
.pa-search-btn svg { width: 17px; height: 17px; }
.pa-search-btn:hover { background: #185FA5; color: #fff; }

.pa-category-jump,
.pa-sort-select {
    padding: 10px 14px;
    border: 1px solid #E4E2DA;
    border-radius: 8px;
    font-size: 13.5px;
    color: #33363F;
    background: #fff;
    min-width: 160px;
    cursor: pointer;
}

.pa-results-count {
    margin-top: 12px;
    font-size: 13px;
    color: #5F5E5A;
}

/* ===================== گرید محصولات ===================== */
.pa-products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
@media (max-width: 1024px) { .pa-products-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px)  { .pa-products-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px)  { .pa-products-grid { grid-template-columns: 1fr; } }

.pa-product-card {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(20,30,60,0.06);
    transition: box-shadow .2s;
}
.pa-product-card:hover { box-shadow: 0 6px 20px rgba(20,30,60,0.12); }

.pa-product-thumb {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #F3F5F9;
}
.pa-product-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

.pa-badge-daneshbonyan {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #E8F8F1;
    color: #1FA983;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
}

.pa-product-body { padding: 14px 16px 16px; }
.pa-product-cat {
    display: inline-block;
    font-size: 11px;
    color: #0C447C;
    background: #E6F1FB;
    padding: 2px 9px;
    border-radius: 20px;
    margin-bottom: 8px;
}
.pa-product-body h3 { font-size: 14.5px; margin: 0 0 6px; line-height: 1.5; }
.pa-product-body h3 a { color: #042C53; text-decoration: none; }
.pa-product-body h3 a:hover { color: #185FA5; }

.pa-product-company {
    display: block;
    font-size: 12.5px;
    color: #8A8D97;
    text-decoration: none;
    margin-bottom: 12px;
}
.pa-product-company:hover { color: #185FA5; }

.pa-product-btn {
    display: block;
    text-align: center;
    padding: 8px;
    border-radius: 8px;
    background: #F3F5F9;
    color: #042C53;
    text-decoration: none;
    font-size: 12.5px;
}
.pa-product-btn:hover { background: #185FA5; color: #fff; }

.pa-no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 48px 20px;
    background: #fff;
    border-radius: 12px;
    color: #5F5E5A;
    font-size: 15px;
}

/* ===================== صفحه‌بندی ===================== */
.pa-pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 28px;
}
.pa-pagination .page-numbers {
    padding: 8px 14px;
    border-radius: 8px;
    border: 1px solid #E4E2DA;
    text-decoration: none;
    color: #33363F;
    font-size: 13px;
    background: #fff;
}
.pa-pagination .page-numbers.current {
    background: #185FA5;
    color: #fff;
    border-color: #185FA5;
}
.pa-pagination .page-numbers:hover:not(.current) { background: #F3F5F9; }