.products{
    background-color: #dedfe0;
    margin-top: 5rem;
}

.product-card {
    background-color: #f8f9fa;
    border-radius: 24px;
    padding: 1.5rem;
    max-width: 350px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(370px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

.product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 0px 1px var(--text-dark);
}

.product-header {
    text-align: left;
}

.product-title{
    font-family: "Exo 2", sans-serif;
    text-transform: uppercase;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-red);
    line-height: 1.3;
    margin: 0;
    letter-spacing: -0.02em;
}

.product-image-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem 0;
    min-height: 300px;
}

.product-image{
    max-width: 100%;
    height: auto;
    max-height: 350px;
    object-fit: contain;
    border-radius: 8px;
}

.product-footer {
    display: flex;
    justify-content: flex-start;
    margin-top: auto;
}

.learn-more-btn {
    background-color: transparent;
    color: var(--text-dark);
    border: 2.5px solid var(--primary-red);
    border-radius: 12px;
    padding: 0.75rem 1.5rem;
    font-family: "Exo 2", sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.02em;
    text-decoration: none;
}

.learn-more-btn:hover {
    background-color: var(--primary-red);
    color: #F5F1E8;
    transform: translateY(-1px);
}

.learn-more-btn:active {
    transform: translateY(0);
}

@media (max-width: 1025px) {
    .product-card {
        padding: 1.5rem;
        max-width: 100%;
        gap: 1.25rem;
        border-radius: 20px;
    }

    .product-title{
        font-size: 1.25rem;
    }

    .product-image-wrapper {
        min-height: 250px;
        padding: 0.75rem 0;
    }

    .product-image{
        max-height: 280px;
    }

    .learn-more-btn {
        padding: 0.65rem 1.25rem;
        font-size: 0.9rem;
        border-radius: 10px;
    }
}

@media (max-width: 480px) {
    .product-card {
        padding: 1rem;
        gap: 1rem;
        border-radius: 16px;
    }

    .product-title {
        font-size: 0.9rem;
        line-height: 1.4;
    }

    .product-image-wrapper {
        min-height: 200px;
        padding: 0.5rem 0;
    }

    .product-image {
        max-height: 220px;
    }

    .learn-more-btn {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
        width: 100%;
        justify-self: stretch;
    }

    .product-footer {
        justify-content: stretch;
    }
}
