/* fraunces-700 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 700;
  src: url("../fonts/fraunces-v37-latin-700.woff2") format("woff2"); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* montserrat-regular - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 400;
  src: url("../fonts/montserrat-v30-latin-regular.woff2") format("woff2"); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* montserrat-500 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 500;
  src: url("../fonts/montserrat-v30-latin-500.woff2") format("woff2"); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* montserrat-700 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 700;
  src: url("../fonts/montserrat-v30-latin-700.woff2") format("woff2"); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

* {
  margin: 0;
}

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

  --spacing-500: 2.5rem;
  --spacing-400: 2rem;
  --spacing-300: 1.5rem;
  --spacing-200: 1rem;
  --spacing-100: 0.5rem;
  --spacing-50: 0.25rem;
}

body {
  font-family: "Montserrat", sans-serif;
}
main {
  background-color: var(--cream);
  min-block-size: 100vh;
  min-block-size: 100dvh;
  padding-inline: 0.8125rem;
  padding-block: 5rem;
  display: grid;
  place-items: center;
}

img {
  max-inline-size: 100%;
  display: block;
}

.text-preset-1-700 {
  font-family: "Fraunces", serif;
  font-size: 2rem;
  line-height: 1;
  letter-spacing: 0;
  font-weight: 700;
}

.text-preset-2-700 {
  font-size: 0.875rem;
  line-height: 1.1;
  letter-spacing: 0;
  font-weight: 700;
}

.text-preset-3-500 {
  font-size: 0.875rem;
  line-height: 1.6;
  letter-spacing: 0;
  font-weight: 500;
}

.text-preset-4-500 {
  font-size: 0.75rem;
  line-height: 1.2;
  letter-spacing: 5px;
  font-weight: 500;
}

.text-preset-5-500 {
  font-size: 0.8125rem;
  line-height: 1.2;
  letter-spacing: 0;
  font-weight: 500;
}

.text-uppercase {
  text-transform: uppercase;
}

/* product-card */
.product-card {
  display: flex;
  flex-direction: column;

  border-radius: 8px;
  background-color: var(--white);
  max-inline-size: 37.5rem;
  overflow: hidden;
}

.product-card__category {
  color: var(--grey);
}

.product-card__content {
  padding: var(--spacing-400);
  display: flex;
  flex-direction: column;
  gap: var(--spacing-300);
}

.product-card__description {
  color: var(--grey);
}

.product-card__price-box {
  display: flex;
  align-items: center;
  gap: var(--spacing-200);
}

.product-card__price {
  color: var(--green-500);
}

.product-card__prev-price {
  color: var(--grey);
  text-decoration: line-through;
}

@media (width >= 48rem) {
  .product-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .product-card__img {
    border-radius: 8px 0 0 8px;
    height: 100%;
  }
  .product-card__price-box {
    padding-block: var(--spacing-100);
  }
}
/* add to cart button */
.add-to-cart-button {
  all: unset;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-100);
  background-color: var(--green-500);
  padding-block: var(--spacing-200);
  padding-inline: var(--spacing-400);
  max-inline-size: 17.875rem;
  font-size: 0.875rem;
  line-height: 1.1;
  letter-spacing: 0;
  font-weight: 700;
  color: var(--white);
  border-radius: 8px;
  cursor: pointer;
  transition: background-color ease-out 0.3s;
}

.add-to-cart-button:hover {
  background-color: var(--green-700);
}
