*, *::before, *::after {
    box-sizing: border-box;
}


html {
    font-family: 'Montserrat', 'Fraunces', sans-serif;
    font-size: 16px; /* 1rem = 16px */
}
body {
    margin: 0 auto;
    height: 100vh;
    width: 100%;
    background-color: hsl(30, 38%, 92%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

main {
    margin: auto;
}


.product-card {
    background-color: white;
    border-radius: 0.4375rem; /* 7px */
    max-width: 35.9375rem; /* 575px */
    padding: 0;
    overflow: hidden;
    display: flex;
    cursor: default;
}


.img {
    width: 48%; 
}


.product-card img {  
    width: 100%;  
    height: 100%;
}


.product-details {
    padding: 1.25rem; /* 20px */
    width: 52%;
}


.product-details .category {
    font-family: 'Montserrat', serif;
    font-weight: 500;
    font-size: 0.875rem; /* 14px */
    color: hsl(228, 12%, 48%);
    text-transform: uppercase;
    letter-spacing: 0.25rem; /* 4px */
    margin-top: 0;
}


.product-details h1 {
    font-family: 'Fraunces', serif;
    font-weight: 700;
    font-size: 2.125rem; /* 34px */
    margin: 0;
    line-height: 1;
    color: hsl(212, 21%, 14%);
}


.product-details .description {
    font-family: 'Montserrat', serif;
    font-weight: 500;
    font-size: 1rem; /* 16px */
    color: hsl(228, 12%, 48%);
    margin-top: 0.9375rem; /* 15px */
    line-height: 1.5;
}


.product-details .prices {
    font-family: 'Fraunces', serif;
    margin-top: 0.9375rem; /* 15px */
    display: flex;                 /* puts both prices side by side */
    justify-content: left;       /* centers them horizontally */
    align-items: center;    
}


.product-details .prices .price-current {
    font-weight: 700;
    font-size: 1.875rem; /* 30px */
    color: hsl(158, 36%, 37%);
}


.product-details .prices .price-old {
    font-weight: 500;
    font-size: 0.9375rem; /* 15px */
    color: hsl(228, 12%, 48%);
    text-decoration: line-through;
    margin-left: 0.625rem; /* 10px */
}


.product-details button {
    width: 100%;
    display:  flex;
    justify-content: center;
    padding: 1.2rem;
    margin-top: 0.625rem; /* 10px */
    color: white;
    font-family: 'Montserrat', serif;
    font-weight: 700;
    background-color: hsl(158, 36%, 37%);
    border: none;
    border-radius: 0.4375rem; /* 7px */
    transition: background-color 0.3s ease;
}


.product-details button img {
    width: 6%;
    height: 0.9rem;
    margin-right: 0.4rem;
}


.product-card:hover {
    box-shadow: 0px 0px 0.6875rem 0px rgba(170, 170, 170, 0.4); /* 11px */
}

.product-details button:hover {
    background-color: hsl(158, 50%, 30%);
    cursor: pointer;
    transform: scale(1.05);
}

.attribution { 
    font-size: 0.6875rem; /* 11px */
    text-align: center;
}

.attribution a { 
    color: hsl(228, 45%, 44%); 
}

.attribution a:link {
    text-decoration: none;
}

.attribution a:hover {
    text-decoration: underline;
}


@media (max-width: 425px) { /* 425px */
    body { 
        padding: 2rem 1rem;
        height: 100vh;
    }
    .product-card {
        flex-direction: column;
        align-items: center;
        width: 100%;
        max-width: 23.4375rem; /* 375px */
    }
    .img {
        width: 100%;
        height: 40vh;
    }
    .product-card img {
        object-fit: cover;
    }
    .product-details {
        width: 100%;   
    }
}