/* Mobile: 375px - Desktop: 1440px */
/* - Font size (paragraph): 14px */
/* - Family: [Montserrat](https://fonts.google.com/specimen/Montserrat) - Weights: 500, 700 */
/* Family: [Fraunces](https://fonts.google.com/specimen/Fraunces) - Weights: 700 */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:wght@700&family=Montserrat:wght@500;700&display=swap');

:root {
    /* Primary Colors */
    --green-500: hsl(158, 36%, 37%);
    --green-700: hsl(158, 42%, 18%);

    /* Neutral Colors */
    --black: hsl(212, 21%, 14%);
    --grey: hsl(228, 12%, 48%);
    --cream: hsl(30, 38%, 92%);
    --white: hsl(0, 0%, 100%);
}

body {
    min-height: 100vh;
    background-color: var(--cream);
    display: flex;
    justify-content: center;
    align-items: center;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.product-card {
    background-color: var(--white);
    max-width: 600px;
    height: 475px;
    border-radius: 10px;
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.1);
    display: flex;
    overflow: hidden;
}

.product-image {
    flex: 1 1 50%;
    min-width: 200px;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.product-info {
    flex: 1 1 50%;
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.product-category {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    color: var(--grey);
    letter-spacing: 4px;
}

.product-name {
    font-family: 'Fraunces', serif;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--black);
}

.product-description {
    font-family: "Montserrat", sans-serif;
    font-size: 14px;
    color: var(--grey);
    line-height: 1.5;
}

.product-price {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-top: auto;
    margin-right: auto;
    gap: 2rem;
}

.price-original {
    font-family: 'Montserrat', sans-serif;
    color: var(--grey);
    text-decoration: line-through;
}

.price-current {
    font-family: 'Fraunces', serif;
    font-size: 2rem;
    color: var(--green-500);
    font-weight: 700;
}

.add-to-cart {
    font-family: 'Montserrat', sans-serif;
    display: flex;
    justify-content: center;
    margin-top: auto;
    align-items: center;
    font-weight: 700;
    font-size: 14px;
    color: var(--white);
    text-align: center;
    padding: 0.75rem 3rem;
    background-color: var(--green-500);
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.add-to-cart:hover, .add-to-cart:focus {
    background-color: var(--green-700);
    outline: none;
}

.icon-cart {
    margin-right: 10px;
}

@media (max-width: 576px) {
    .product-card {
        max-width: 90%;
        width: 90%;
        height: auto;
        margin: 0 auto;
        flex-direction: column;
    }

    .product-info {
        padding: 1.5rem;
    }

    .product-image img {
        width: 100%;
        height: 500px;
    }

    .add-to-cart {
        width: 100%;
    }
}