/* =========================================
   BEREAMALL PRODUCT CARDS
   Shared by all PHP product pages
========================================= */

/* Product Grid */
.product-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
     align-items: stretch;
    gap: 24px;
    padding: 20px;
    width: 100%;
    box-sizing: border-box;
}

/* Product Card */
.product-card {
    width: 280px;
    flex: 0 0 280px;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    transition: transform 0.25s ease, box-shadow 0.25s ease;

    /* Keep cards in a row the same height */
    display: flex;
    flex-direction: column;
}

/* Product Content */
.product-content {
    padding: 18px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* Product Title */
.product-title {
    font-size: 1rem;
    line-height: 1.4;

    /* Keeps titles the same height */
    min-height: 48px;

    color: #333;
    margin: 0 0 12px 0;
}

/* Product Price */
.product-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: #b91c1c;
    margin-top: auto;
    margin-bottom: 15px;
}

/* View Product Button */
.view-btn {
    display: block;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
    background: #146c43;
    color: #fff;
    text-decoration: none;
    padding: 12px;
    border-radius: 8px;
    font-weight: 600;
    transition: background-color 0.25s ease;
}

.view-btn:hover {
    background: #0f5132;
}

/* =========================================
   MOBILE
========================================= */

@media (max-width: 600px) {

    .product-grid {
        gap: 18px;
        padding: 15px 10px;
    }

    .product-card {
        width: 100%;
        max-width: 320px;
        flex: 0 1 320px;
    }

    .product-image {
        height: 240px;
    }
}

