/* products.css - صفحة المنتجات */

/* Page Banner */
.page-banner {
    background: linear-gradient(135deg, #1a1a2e 0%, #2d2d44 100%);
    color: #fff;
    padding: 80px 0;
    text-align: center;
}

.page-banner h1 {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 10px;
}

.page-banner p {
    font-size: 18px;
    opacity: 0.85;
}

/* Filters Bar */
.filters-bar {
    background: #fff;
    padding: 20px 0;
    box-shadow: 0 2px 15px rgba(0,0,0,0.06);
    position: sticky;
    top: 72px;
    z-index: 900;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.filter-btn {
    background: #f0f0f0;
    border: none;
    padding: 10px 22px;
    border-radius: 25px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    color: #555;
    cursor: pointer;
    transition: all 0.3s;
}

.filter-btn:hover {
    background: #e0e0e0;
    color: #1a1a2e;
}

.filter-btn.active {
    background: #00bcd4;
    color: #fff;
    box-shadow: 0 4px 12px rgba(0,188,212,0.35);
}

/* Products Grid */
.products-section-page {
    padding: 60px 0;
}

.products-grid .product-card {
    display: flex;
    flex-direction: column;
}

.products-grid .product-info {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-cat {
    display: inline-block;
    align-self: flex-start;
    background: rgba(0,188,212,0.1);
    color: #0097a7;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 12px;
    margin-bottom: 10px;
}

.btn-card {
    display: inline-block;
    align-self: flex-start;
    margin-top: auto;
    background: #00bcd4;
    color: #fff;
    padding: 10px 24px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-card:hover {
    background: #0097a7;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,188,212,0.4);
}

.empty-products {
    grid-column: 1 / -1;
    text-align: center;
    color: #999;
    padding: 60px 0;
    font-size: 18px;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #00bcd4, #0097a7);
    color: #fff;
    text-align: center;
    padding: 70px 0;
}

.cta-section h2 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 10px;
}

.cta-section p {
    margin-bottom: 25px;
    opacity: 0.9;
    font-size: 17px;
}

.cta-section .btn-primary {
    background: #fff;
    color: #0097a7;
}

.cta-section .btn-primary:hover {
    background: #f0f0f0;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

/* Responsive */
@media (max-width: 992px) {
    .filters-bar {
        top: 64px;
    }
}

@media (max-width: 768px) {
    .page-banner {
        padding: 55px 0;
    }

    .page-banner h1 {
        font-size: 30px;
    }

    .page-banner p {
        font-size: 16px;
    }

    .filters-bar {
        position: static;
        padding: 15px 0;
    }

    .filter-btn {
        padding: 8px 16px;
        font-size: 13px;
    }

    .products-section-page {
        padding: 40px 0;
    }

    .cta-section h2 {
        font-size: 24px;
    }
}

/* ===== RTL ===== */
[dir="rtl"] .back-link i {
    transform: scaleX(-1);
}

[dir="rtl"] .article-date {
    justify-content: center;
}

[dir="rtl"] .article-content {
    text-align: right;
}
