@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');


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


body{
    font-family: "Montserrat", serif;
    background-color: hsl(30, 38%, 92%);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    margin: 0;
}

main{
    display: flex;
    flex-direction: column;
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    max-width: 375px;
    box-shadow: 0, 10px, 15px rgba(0, 0, 0, 0.1);
}

.image-container{
    width: 100%;
    display: block;
}

.content{
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

h1.text.intro{
    font-size: 12px;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: hsl(228, 12%, 48%);
}

h2.perfume.type{
    font-family: "Fraunces", serif;
    font-size: 32px;
    color: hsl(212, 21%, 14%);
    font-weight: 700;
    line-height: 1.1;
}

p.description{
    font-size: 14px;
    color: hsl(228, 12%, 48%);
    line-height: 1.5;
}

.pricing{
    display: flex;
    align-items: center;
    gap: 15px;
}

.sale.price{
    font-family: "Fraunces", serif;
    font-size: 32px;
    font-weight: bold;
    color: #3d8168;
}
.regular.price{
    color: hsl(228, 12%, 48%);
    font-size: 14px;
    text-decoration: line-through;
}

a.btn{
    background-color: #3d8168;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    text-align: center;
    padding: 15px;
    font-weight: bold;
    align-items: center;
    justify-content: center;
    display: flex;
    gap: 10px;
    transition: background-color 0.3s ease;
}
a.btn:hover{
    background-color: #002322;
}
a.btn img.btn-icon{
    width: 16px;
    height: 16px;
}

.attribution{
    font-size: 12px;
    text-align: center;
    margin-top: 20px;
}


@media (min-width: 768px) {
    main {
      flex-direction: row;
      max-width: 600px;
    }
  
    .image-container img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }
  
    .content {
      padding: 30px;
      justify-content: center;
    }
  }

