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

:root {
    --dark-cyan: hsl(158, 36%, 37%);
    --cream: hsl(30, 38%, 92%);
    --very-dark-blue: hsl(212, 21%, 14%);
    --dark-grayish-blue: hsl(228, 12%, 48%);
    --white: hsl(0, 0%, 100%);
  }

/* Base styles */

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

html {
    font-size: 10px; /* Base font size for better responsiveness */
}

body {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500; /* Default font weight for body */
    font-size: 1.4rem;

    background-color: var(--cream);
    color: var(--dark-grayish-blue);
}

main {
    background-color: white;
    margin: 16px;
    border-radius: 10px;
}

img {
    width: 100%; /* Prevent images from exceeding container width */
    height: auto; /* Maintain aspect ratio */
    border-radius: 10px 10px 0 0;
  }

.content {
    display: flex;
    flex-direction: column;
    padding: 24px;
}

.category {
    font-size: 1.2rem;
    letter-spacing: 0.5rem;
}

h1 {
    font-family: 'Fraunces', serif;
    color: var(--very-dark-blue);
    margin-top: 12px;
}

p {  
    line-height: 1.6;
    margin-top: 16px;
}

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

.highlight{
    font-family: 'Fraunces', serif;
    color: var(--dark-cyan);
    font-size: 3.2rem;
}

button {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.8rem;

    margin-top: 2rem;
    height: 4.8rem;
    border-radius: 0.8rem;
    background-color: var(--dark-cyan);
    color: white;
    border: none;
    font-weight: 700;
    cursor: pointer;
}


button:hover {
    background-color: #1A4032;
}
  
@media (min-width: 640px) {
    /* Styles for screens wider than 640px */
    body {
        display: flex;
        justify-content: center;
        align-items: center;
        height: 100dvh;
    }

    img {
        height: 450px;
        width: 300px;
        border-radius: 10px 0 0 10px;
        src: "/images/image-product-desktop.jpg";
    }

    main {
        display: flex;
        width: 600px;
        height: 450px;
    }

    .content {
        padding: 3.2rem;
    }

    h1 {
        margin-top: 20px;
        padding-right: 30px;
    }

    p {
        margin-top: 22px;
    }

    .price {
        margin-top: 29px;
    }

    button {
        margin-top: 20px;;
    }

}