* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --Green-500: hsl(158, 36%, 37%);
  --Green-700: hsl(158, 42%, 18%);
  --Black-color: hsl(212, 21%, 14%);
  --Grey-color: hsl(228, 12%, 48%);
  --Cream-color: hsl(30, 38%, 92%);
  --White-color: hsl(0, 0%, 100%);
  --Font-size-Paragraph: 14px;
  --Font-Family: "Montserrat", sans-serif;
  --Font-Family-1: "Fraunces", serif;
}

html,
body {
  height: 100%;
  width: 100%;
  background-color: var(--Cream-color);
}

main {
  width: 100%;
  height: 100%;

  display: grid;
  place-items: center;

  gap: 1rem;
}

.product_card_component {
  width: 23rem;
  height: auto;
  /* margin: 1rem; */
  /* border: 1px solid black; */
  border-radius: 0.6rem;

  display: grid;
  justify-items: center;
  align-items: center;
}

.product_image {
  width: 100%;
  height: auto;
}

.product_image img {
  width: 100%;
  height: 100%;
  /* top-left | top-right | bottom-right | bottom-left */
  border-radius: 0.6rem 0.6rem 0 0;
  object-fit: cover;
  display: block;

  align-self: start;
}

.product_body {
  width: 100%;
  height: 100%;
  background-color: var(--White-color);
  /* top-left | top-right | bottom-right | bottom-left */
  border-radius: 0 0 0.6rem 0.6rem;
  padding: 1.5rem;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 1rem;
}

.product_body > span:nth-of-type(1) {
  color: var(--Grey-color);
  letter-spacing: 0.3rem;
}

.product_body p {
  color: var(--Grey-color);
  font-weight: 500;
  font-size: 0.863rem;
  line-height: 1.2rem;
}

.checkout_section {
  display: flex;
  gap: 1rem;
  justify-content: flex-start;
  align-items: center;
}

.checkout_section h2 {
  color: var(--Green-500);
  font-size: 1.5rem;
  font-weight: 700;
  font-family: var(--Font-Family-1);
}

.checkout_section span {
  color: var(--Grey-color);
  font-weight: 500;
  font-size: 0.9rem;
}

.product_body .addToCart {
  width: 95%;
  height: 2.5rem;
  color: var(--White-color);
  font-weight: 700;
  cursor: pointer;

  border-radius: 0.5rem;
  border: none;
  background-color: var(--Green-500);

  text-align: center;
}

.addToCart:hover,
.addToCart:active {
  background-color: var(--Green-700);
}

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

@media screen and (min-width: 23.483rem) {
  .product_card_component {
    width: 30rem;
    height: auto;

    /* border: 1px solid black; */

    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 1fr;
    place-items: center;
    align-items: stretch;
    overflow: hidden;
  }

  .product_image{
    height: 100%;
    align-self: stretch;
  }

  .product_image picture img {
    height: 100%;
    border-radius: 0.6rem 0 0 0.6rem; 
  }

  .product_body {
    height: auto;
    border-radius: 0 0.6rem 0.6rem 0;
  }
}
