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

/* Styling Page */
:root {
  --clr-01: hsl(158, 36%, 37%);
  --clr-02: hsl(30, 38%, 92%);
  --clr-03: hsl(212, 21%, 14%);
  --clr-04: hsl(228, 12%, 48%);
  --clr-05: hsl(0, 0%, 100%);
  --clr-06: hsl(158, 36%, 18%);

  --ff-base: "Montserrat", sans-serif;
  --ff-suppl: "Fraunces", sans-serif;
}
body {
  background: var(--clr-02);
  font-family: var(--ff-base);
  font-weight: 500;
  font-size: 0.875rem;
  color: var(--clr-04);
  display: grid;
  place-content: center;
}
.product {
  width: 640px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--clr-05);
  font-family: var(--ff-base);
  align-items: center;
  border-radius: 1rem;
  overflow: hidden;
}
.product-descrition {
  display: grid;
  gap: 1rem;
  padding: 2rem;
}
.product-category {
  text-transform: uppercase;
  letter-spacing: 5px;
}
.product-title {
  font-family: var(--ff-suppl);
  font-size: 2.25rem;
  line-height: 1;
  color: var(--clr-03);
}
.product-price {
  font-family: var(--ff-suppl);
  font-size: 2.25rem;
  color: var(--clr-01);
}
.price {
  display: flex;
  align-items: center;
}
.product-original-price {
  color: var(--clr-04);
  margin: 0px 30px;
}
.product-add {
  display: block;
  background: var(--clr-01);
  color: var(--clr-05);
  padding: 18px 0px;
  border-radius: 8px;
  border: 0px;
  text-align: center;
  cursor: pointer;
}
.product-add:hover,
:focus {
  background: var(--clr-06);
}
.product-add::before {
  content: "";
  display: inline-block;
  width: 15px;
  height: 16px;
  margin: 0px 16px;
  background-image: url("../images/icon-cart.svg");
}
/* Responsive */
@media (max-width: 700px) {
  .product-area {
    height: auto;
  }
  .product {
    width: 370px;
    grid-template-columns: 1fr;
  }
  .product-descrition {
    padding: 1rem;
  }
}
@media (max-width: 499px) {
  .product {
    width: 300px;
  }
  .product-descrition {
    gap: 0.8rem;
  }
  .product-title {
    font-size: 1.75rem;
  }
}
@media (max-width: 280px) {
  .product {
    width: 270px;
  }
  .product-descrition {
    padding: 0.5rem;
  }
  .product-title {
    font-size: 1.75rem;
  }
  .price {
    display: grid;
  }
}
