:root {
    /* primary: */

    --darkCyan: hsl(158, 36%, 37%);
    --deepAquamarine: hsl(158, 43%, 18%);
    --cream: hsl(30, 38%, 92%);

    /* neutral: */
    --veryDarkBlue: hsl(212, 21%, 14%);
    --darkGrayishBlue: hsl(228, 12%, 48%);
    --white: hsl(0, 0%, 100%);

    --ff-accent: 'Fraunces', serif;
    --ff-base: 'Montserrat', sans-serif;

    --fw-regular: 500;
    --fw-bold: 700;

}

/*
  1. Use a more-intuitive box-sizing model.
*/
*, *::before, *::after {
    box-sizing: border-box;
  }
  /*
    2. Remove default margin
  */
  * {
    margin: 0;
  }
  /*
    Typographic tweaks!
    3. Add accessible line-height
    4. Improve text rendering
  */
  html, body {
    height: 100%;
  }
  body {
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
  }
  /*
    5. Improve media defaults
  */
  img, picture, video, canvas, svg {
    display: block;
    max-width: 100%;
  }
  /*
    6. Remove built-in form typography styles
  */
  input, button, textarea, select {
    font: inherit;
  }
  /*
    7. Avoid text overflows
  */
  p, h1, h2, h3, h4, h5, h6 {
    overflow-wrap: break-word;
  }

  h1, h2, h3 {
    line-height: 1;
  }
  /*
    8. Create a root stacking context
  #root, #__next {
    isolation: isolate;
  }*/

  /* general styling: */
  body {
    font-family: var(--ff-base);
    font-weight: var(--fw-regular);
    font-size: 0.875rem;
    color: var(--darkGrayishBlue);
    background-color: var(--cream);

    /* for this project only: 
    since body already has a height of 100% we're 
    not gonna use min-height here */

    display: grid;
    place-content: center;
    margin: 1rem;

  }

  /* utilities: */
  /*creating a flex group so we can get the
  two prices next to each other: */
  .flex-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
  }

  .visually-hidden:not(:focus):not(:active) {
    clip: react(0 0 0 0);
    clip-path: inset(50%);
    height: 1px;
    overflow: hidden;
    position: absolute;
    white-space: nowrap;
    width: 1px;
  }

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

    border: 0;
    border-radius: 0.5rem;
    padding: 0.75em 1.5em;
    background-color: var(--darkCyan);
    color: var(--white);
    font-weight: var(--fw-bold);
    font-size: 0.925rem;
  }

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

  }

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

  /* product styles: */
  .product {
    /* can be called for
    any class associated with product: */
    --content-padding: 1.5rem;
    --content-spacing: 1rem;

    display: grid;
    background-color: var(--white) ;
    border-radius: 0.5rem;
    overflow: hidden;
    max-width: 600px;
  }

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

  .product__content {
    display: grid;
    gap: var(--content-spacing);
    padding: var(--content-padding);
  }

  .product__category {
    font-size: 0.8125rem;
    letter-spacing: 6px;
    text-transform: uppercase;
  }

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

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



  
