/* =========================================================
   ريحانة — صفحة قائمة المنتجات
   ========================================================= */

.products-section {
    padding: 60px 20px 80px;
    background: var(--cream);
}

.products-section .page-head {
    max-width: 640px;
    margin: 0 auto 44px;
}

.products-grid {
    max-width: var(--container);
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 26px;
}

.product-card {
    flex: 1 1 290px;
    max-width: 320px;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover,
.product-card:focus-within {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
}

.product-card .card-media {
    background: linear-gradient(160deg, #f2f7ee, #e8f0e1);
    padding: 22px;
}

.product-card img {
    width: 100%;
    height: 200px;
    object-fit: contain;
    transition: transform 0.35s ease;
}

.product-card:hover img {
    transform: scale(1.06);
}

.product-card .card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 20px 20px 24px;
    text-align: center;
}

.product-card h2 {
    font-size: 1.16rem;
    font-weight: 800;
    color: var(--green-dark);
    margin: 0 0 10px;
}

.product-card p {
    flex: 1;
    font-size: 0.97rem;
    color: var(--muted);
    margin: 0 0 20px;
    line-height: 1.75;
}

.product-card .btn {
    align-self: center;
    margin-top: auto;
    padding: 11px 26px;
    font-size: 0.95rem;
}

.products-empty {
    text-align: center;
    color: var(--muted);
    padding: 40px 0;
}

/* =========================================================
   الاستجابة للشاشات
   ========================================================= */

@media (max-width: 640px) {
    .products-section {
        padding: 36px 16px 56px;
    }

    .products-section .page-head {
        margin-bottom: 30px;
    }

    .products-grid {
        flex-direction: column;
        gap: 18px;
    }

    .product-card {
        flex: 1 1 auto;
        width: 100%;
        max-width: none;
    }

    .product-card img {
        height: 190px;
    }
}

@media (min-width: 641px) and (max-width: 900px) {
    .product-card {
        flex: 1 1 calc(50% - 26px);
        max-width: calc(50% - 26px);
    }
}
