:root {
    /* color pallet */
    --color-primary-400: hsl(158, 36%, 40%);
    --color-primary-500: hsl(158, 36%, 37%);
    --color-primary-700: hsl(158, 42%, 18%);

    --color-neutral-black: hsl(212, 21%, 14%);
    --color-neutral-grey: hsl(228, 12%, 48%);
    --color-neutral-cream: hsl(30, 38%, 92%);
    --color-neutral-white: hsl(0, 0%, 100%);

    /* font weights */
    --fw-regular: 500;
    --fw-bold: 700;

    /* fonts */
    --ff-base: "Montserrat", sans-serif;
    --ff-accent: "Fraunces", serif;
}

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

/* 2. Remove default margin */
* {
  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;
}

/* 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.1;
}

/*
  10. Create a root stacking context
*/
#root, #__next {
  isolation: isolate;
}

body {
    font-family: var(--ff-base);
    background-color: var(--color-neutral-cream);
    color: var(--color-neutral-grey);
    font-size: 0.875rem;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 1rem;
}


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


.product {
    background-color: var(--color-neutral-white);
    border-radius: .5rem;
    overflow: hidden;

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

@media (min-width: 600px) {
  .product {
    grid-template-columns: 1fr  1fr;
  }
}

.product__category {
    text-transform: uppercase;
    letter-spacing: .5rem;
}

.product__title {
    color: var(--color-neutral-black);
    font-family: var(--ff-accent);
    font-size: 2rem;
}

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

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

.button {
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  gap: .75rem;
  justify-content: center;
  align-items: center;

  border: 0;
  border-radius: .5rem;
  padding: 0.75rem 1.5rem;
  background-color: var(--color-primary-400);
  color: var(--color-neutral-white);
  font-weight: var(--fw-bold);
  font-size: 0.925rem;

}

.button[data-icon="shopping-cart"]::before {
  content: "";
  background-image: url("images/icon-cart.svg");
  width: 15px;
  height: 16px;
}

.button:is(:hover, :focus) {
  background-color: var(--color-primary-500);
}