/* Global Styles */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 1rem;
  height: 100svh;
  display: grid;
  place-items: center;
  font-family: "Montserrat", sans-serif;
  background-color: #f2eae2;
}

/* Card Styles */
.card {
  max-width: 21.3rem;
  width: 100%;
  height: auto;
  border-radius: 8px;
  background-color: white;
}

/* Image Styles */
picture {
  display: block;
}

.perfume-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px 8px 0 0;
}

/* Content Styles */
.content {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* Title Styles */
.title {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.category {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 120%;
  letter-spacing: 5px;
  color: #6c7289;
}

.heading,
.desc {
  margin: 0;
}

.heading {
  font-family: "Fraunces", serif;
  font-size: 2rem;
  font-weight: bold;
  line-height: 100%;
  color: #1c232b;
}

.desc {
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 160%;
  color: #6c7289;
}

/* Price Styles */
.price {
  display: flex;
  justify-content: start;
  align-items: center;
  gap: 1rem;
}

.sale-price {
  font-family: "Fraunces", serif;
  font-size: 2rem;
  font-weight: bold;
  line-height: 100%;
  color: #3d8168;
}

.original-price {
  text-decoration: line-through;
  font-size: 0.813rem;
  font-weight: 500;
  line-height: 120%;
  color: #6c7289;
}

/* Button Styles */
button {
  padding: 1rem 2rem;
  border: none;
  border-radius: 8px;
  background-color: #3d8168;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}

.text-btn {
  font-size: 0.875rem;
  font-weight: bold;
  line-height: 110%;
  color: white;
}

/* Attribution Styles */

/* .attribution {
  font-size: 11px;
  text-align: center;
}
.attribution a {
  color: hsl(228, 45%, 44%);
} */

@media only screen and (min-width: 768px) {
  .card {
    max-width: 37.5rem;
    width: 100%;
    height: auto;
    display: flex;
  }

  .perfume-img {
    display: block;
    width: 300px;
    border-radius: 8px 0 0 8px;
  }

  .content {
    gap: 1.812rem;
  }

  .title {
    gap: 1.5rem;
  }
}

@media only screen and (min-width: 1440px) {
  button {
    transition: all 0.5s ease;
  }

  button:hover {
    background-color: #1a4032;
  }
}
