:root {
  /* ### Primary */

  --Green-regular-500: hsl(158, 36%, 37%);
  --Green-dark-700: hsl(158, 42%, 18%);

  /* ### Neutral */

  --clr-Black: hsl(212, 21%, 14%);
  --clr-Grey: hsl(228, 12%, 48%);
  --clr-Cream: hsl(30, 38%, 92%);
  --clr-White: hsl(0, 0%, 100%);

  /* Font Weight */
  --fw-regular: 500;
  --fw-bold: 700;

  /* Font Family */
  --ff-montserrat: "Montserrat", sans-serif;
  --ff-fraunces: "Fraunces", serif;
}

/* 1. Use a more-intuitive box-sizing model */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* 2. Remove default margin */
*:not(dialog) {
  margin: 0;
}

/* 3. Enable keyword animations */
@media (prefers-reduced-motion: no-preference) {
  html {
    interpolate-size: allow-keywords;
  }
}

body {
  /* 4. Add accessible line-height */
  line-height: 1.5;
  /* 5. Improve text rendering */
  -webkit-font-smoothing: antialiased;
  min-height: 100dvh;
  font-size: 0.875rem;
  display: grid;
  place-content: center;
  padding: 1rem;
  background-color: var(--clr-Cream);
  font-family: var(--ff-montserrat);
  font-weight: var(--fw-regular);
  color: var(--clr-Grey);
}

/* 6. Improve media defaults */
img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

/* 7. Inherit fonts for form controls */
input,
button,
textarea,
select {
  font: inherit;
}

/* 8. Avoid text overflows */
p,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
}

/* 9. Improve line wrapping */
p {
  text-wrap: pretty;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  text-wrap: balance;
}

h1,
h2,
h3 {
  line-height: 1;
}

.flex {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.container {
  background-color: var(--clr-White);
  border-radius: 0.5rem;
  overflow: hidden;

  display: grid;
  max-width: 600px;
}

.product__content {
  display: grid;
  padding: 1.5rem;
  gap: 1rem;
}

@media (min-width: 600px) {
  .container {
    grid-template-columns: 1fr 1fr;
  }
  .product__content {
    padding: 2rem;
  }
}

.product__category {
  font-size: 0.8rem;
  letter-spacing: 0.3rem;
  text-transform: uppercase;
}

.product__title {
  font-size: 2rem;
  font-weight: var(--fw-bold);
  font-family: var(--ff-fraunces);
  color: var(--clr-Black);
}

.product__price {
  color: var(--Green-regular-500);
  font-weight: var(--fw-bold);
  font-size: 2rem;
  font-family: var(--ff-fraunces);
}

.product__original-price {
  text-decoration: line-through;
}

.btn {
  background-color: var(--Green-regular-500);
  color: var(--clr-White);
  border: none;
  border-radius: 0.5rem;
  padding: 0.7rem 1.5rem;
  font-weight: var(--fw-bold);
  font-size: 0.9rem;
  cursor: pointer;
  transition: background-color 0.3s ease;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.btn::before {
  content: "";
  background-image: url("./images/icon-cart.svg");
  width: 15px;
  height: 16px;
}

.btn:is(:hover, :focus-visible) {
  background-color: var(--Green-dark-700);
}

.btn:focus-visible {
  outline: 3px solid hsl(158, 36%, 37%);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
