/* 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.7;
  /* 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;
}
/* ---------------- varibles ---------------- */
:root {
  --clr-green: hsl(158, 36%, 37%);
  --clr-Cream: hsl(30, 38%, 92%);
  --clr-dark-green: hsl(158, 42%, 18%);
  --cle-white: hsl(0, 0%, 100%);
  --clr-grey: hsl(228, 12%, 48%);
  --clr-black: hsl(212, 21%, 14%);

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

  --fw-regular: 500;
  --fw-bold: 700;
}
/* ---------------- BASE STYLES ----------------*/

body {
  font-family: var(--ff-base);
  font-weight: var(--fw-regular);
  color: var(--clr-grey);
  font-size: 0.875rem;
  background-color: var(--clr-Cream);

  /* for this project only */
  display: grid;
  place-content: center;
  min-height: 100vh;
  margin: 1rem;
}

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

.product-card {
  --content-padding: 1.5rem;
  --content-spacing: 1rem;

  display: grid;
  background-color: var(--cle-white);
  border-radius: 0.5rem;
  overflow: hidden;
  max-width: 600px;
  /* 
  width: 90%;
  flex-direction: column; */
}
@media (min-width:600px) {
  .product-card{
    --content-padding: 2rem;
    grid-template-columns: 1fr 1fr;
  }
}
.product-content {
  display: grid;
  gap: var(--content-spacing);
  padding: var(--content-padding);
}
.product-category {
  text-transform: uppercase;
  letter-spacing: 0.4em;
  font-size: 0.8125rem;
  /* 
  color: hsl(228, 12%, 48%);
  margin-bottom: 0.75em; */
}
.product-title {
  font-size: 2rem;
  font-family: var(--ff-accent);
  color: var(--clr-black);
  line-height: 1;
  /* 
  margin-bottom: 0.5em; */
}
.price {
  font-size:2rem;
  font-family: var(--ff-accent);
  color: var(--clr-green);
}
.add-to-cart {
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  gap: 0.75rem;
  align-items: center;
  justify-content: center;

  border: 0;
  border-radius: 0.5rem;
  padding: 0.75em 1.5em;
  background-color: var(--clr-green);
  color: var(--cle-white);
  font-weight: var(--fw-bold);
  font-size:.925rem;

  
  /* 
  font-family: "Montserrat", sans-serif;
  transition: background-color 0.3s; */
}
.add-to-cart[data-icon="shoping-cart"]::before{
  content: "";
  background-image: url("images/icon-cart.svg");
  width:1rem ;
  height: 1rem;

}
.add-to-cart:is(:hover, :focus){
  background-color: var(--clr-dark-green);
}
/* 
.product-card .product-image img {
  width: 100%;
  min-height: 100%;
}

.product-content .product-description {
  color: hsl(228, 12%, 48%);
  line-height: 1.6;
  max-width: 35rem;
}
---------------- FOOTER ----------------
.product-footer {
  padding: 0 1.5rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.price-box .old-price {
  text-decoration: line-through;
  font-size: clamp(0.6rem, 3vw, 1.1rem);
  color: hsl(228, 12%, 48%);
}
---------------- BUTTON ----------------

@media (min-width: 1440px) {
  * {
    padding: 0;
    margin: 0;
  }
  .row {
    display: flex;
    flex-direction: row;
    height: auto;
    max-width: 45vw;
    max-height: 75vh;
  }
  .col {
    width: 100%;
    height: auto;
    padding: 0;
  }
  .product-image {
    padding-bottom: 0;
  }
  .product-image picture {
    height: 100%;
    padding: 0;
  }
  .product-image img {
    height: 100%;
    min-width: 100%;
  }
  .product-content .product-category {
    margin-bottom: 2rem;
  }
  .product-title {
    padding-bottom: 0.3rem;
  }
  .product-description {
    padding-bottom: 0.3rem;
  }
  .product-text {
    padding: 1rem;
  }
  .price-box {
    margin-bottom: 1rem;
  }
} */
