/* =========================================
   PRODUCTS PAGE
   ========================================= */

.products-page {
    min-height: 100vh;
    padding: 70px 6% 90px;
    background: #f8fbf7;
}

/* Page heading */
.products-header {
    text-align: center;
    margin-bottom: 55px;
}

.products-header h1 {
    margin: 0;
    color: #1f2937;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.5px;
}

.products-header p {
    margin: 12px 0 0;
    color: #64748b;
    font-size: 1rem;
}

/* Product grid */
.products-grid {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;

    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 28px;
}

/* Product card */
.product-card {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;

    border: 1px solid rgba(34, 100, 45, 0.08);

    box-shadow:
        0 8px 25px rgba(30, 70, 40, 0.07);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.product-card:hover {
    transform: translateY(-6px);

    box-shadow:
        0 16px 35px rgba(30, 70, 40, 0.13);
}

/* Image wrapper */
.product-image {
    width: 100%;
    height: 245px;
    overflow: hidden;
    background: #eef4ed;
}

/* Product image */
.product-image img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
    object-position: center;

    transition: transform 0.4s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.04);
}

/* Product name */
.product-name {
    padding: 18px 20px 20px;
    text-align: center;

    color: #24313f;
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.35;
}

/* =========================================
   TABLET
   ========================================= */

@media (max-width: 1050px) {

    .products-page {
        padding-left: 4%;
        padding-right: 4%;
    }

    .products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 24px;
    }

    .product-image {
        height: 260px;
    }
}

/* =========================================
   MOBILE
   ========================================= */

@media (max-width: 600px) {

    .products-page {
        padding: 45px 18px 60px;
    }

    .products-header {
        margin-bottom: 32px;
    }

    .products-header h1 {
        font-size: 2rem;
    }

    .products-header p {
        font-size: 0.92rem;
    }

    .products-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .product-card {
        border-radius: 18px;
    }

    .product-image {
        height: 245px;
    }

    .product-name {
        padding: 16px 15px 18px;
        font-size: 1rem;
    }

}