/* Product section */
.egrn-products-section {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    margin-bottom: 50px;
    padding: 20px 0;
    align-content: stretch;
    min-height: fit-content;
}

.egrn-product-card {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    width: 100%;
    max-width: 350px;
    padding: 20px;
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 500px;
    flex: 1 1 auto;
}

.egrn-product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.egrn-product-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    flex-shrink: 0;
}

.egrn-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 4px;
}

.egrn-product-title h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: #2c3e50;
}

.egrn-product-description p {
    font-size: 0.95rem;
    color: #7f8c8d;
    margin-bottom: 20px;
    min-height: 40px;
    flex-grow: 1;
}

.egrn-product-sample {
    margin-bottom: 15px;
    flex-shrink: 0;
}

.egrn-sample-btn {
    background-color: #bdc3c7;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    width: 100%;
    transition: background-color 0.3s ease;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.egrn-sample-btn:hover {
    background-color: #95a5a6;
}

.egrn-product-price {
    font-size: 1.2rem;
    font-weight: bold;
    color: #27ae60;
    margin-top: auto;
    flex-shrink: 0;
}

/* Responsive design for product cards */
@media (max-width: 768px) {
    .egrn-products-section {
        gap: 20px;
        align-content: stretch;
    }

    .egrn-product-card {
        max-width: 100%;
        min-height: 450px;
        flex: 1 1 100%;
    }
}

@media (max-width: 480px) {
    .egrn-products-section {
        gap: 15px;
        align-content: stretch;
    }

    .egrn-product-card {
        padding: 15px;
        min-height: 400px;
        flex: 1 1 100%;
    }

    .egrn-product-title h3 {
        font-size: 1.1rem;
    }

    .egrn-product-description p {
        font-size: 0.9rem;
    }

    .egrn-product-price {
        font-size: 1.1rem;
    }
}
