:root {
    --green-500: hsl(158, 36%, 37%);
    --green-700: hsl(158, 42%, 18%);
    --black: hsl(212, 21%, 14%);
    --grey: hsl(228, 12%, 48%);
    --cream: hsl(30, 38%, 92%);
    --white: hsl(0, 0%, 100%);
}

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

body {
    min-height: 100vh;
    display: grid;
    place-items: center;
    background: var(--cream);
    padding: 1rem;
    font-family: 'Montserrat', sans-serif;
}

/* Main Card Container */
.card {
    display: flex;
    width: 100%;
    max-width: 600px;
    background: var(--white);
    border-radius: 0.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* Image Section */
.image-section {
    flex: 1;
    background-image: url("./images/image-product-desktop.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 450px;
}

/* Right Section */
.right-side {
    flex: 1;
    padding: 2rem;
    color: var(--grey);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.product-type {
    letter-spacing: 5px;
    text-transform: uppercase;
    font-size: 0.8rem;
}

.product-name {
    font-family: 'Fraunces', serif;
    color: var(--black);
    font-size: 2rem;
    line-height: 1;
}

.content p {
    font-size: 0.875rem;
    line-height: 1.6;
}

.price {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
}

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

.original-price {
    font-size: 0.875rem;
    color: var(--grey);
    text-decoration: line-through;
}

/* Button */
.btn {
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: 0.5rem;
    background: var(--green-500);
    color: var(--white);
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: background 0.3s ease;
}

.btn:hover {
    background: var(--green-700);
}

.attribution {
    margin-top: 2rem;
    font-size: 0.7rem;
    text-align: center;
}

.attribution a {
    color: var(--green-500);
    font-weight: bold;
    text-decoration: none;
}
    
/* Mobile Responsiveness */
@media (max-width: 650px) {
    .card {
        flex-direction: column;
        max-width: 350px;
    }
    
    .image-section {
        background-image: url("./images/image-product-mobile.jpg");
        min-height: 240px;
    }
    
    .right-side {
        padding: 1.5rem;
    }
    
    .product-name {
        font-size: 1.8rem;
    }
}