@import url("https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,100..900;1,9..144,100..900&family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap");

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

:root {
  /* margin */
  --mb: 1.4rem;
  --mt: 1.1rem;
  --me: 1.1rem;
  --ms: 1.1rem;

  /* padding */
  --pt: 2rem;
  --pb: 2rem;
  --pe: 2rem;
  --ps: 2rem;

  /* fontfamily */
  --montsert: "Montserrat", sans-serif;
  --fraunces: "Fraunces", serif;

  /* colors */
  --Green-500: hsl(158, 36%, 37%);
  --Green-700: hsl(158, 42%, 18%);

  --Black: hsl(212, 21%, 14%);
  --Grey: hsl(228, 12%, 48%);
  --Cream: hsl(30, 38%, 92%);
  --White: hsl(0, 0%, 100%);

  /* border */

  --bR-lg: 1.6rem;
  --bR-sm: 0.8rem;
}

.main {
  width: 100%;
  min-height: 100vh;
  height: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  background-color: var(--Cream);
}

.cardBox {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background-color: var(--White);
  width: 44rem;
  border-radius: 12px;
  overflow: hidden;
  font-family: var(--montsert);
}

.box1,
.box2 {
  flex: 1;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.image {
  width: 100%;
  background-size: cover;
}

#desktopImg {
}

#mobileImg {
  display: none;
  visibility: hidden;
}

.box2 {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 2rem;
}

.smHeading {
  text-transform: uppercase;
  letter-spacing: 0.3rem;
  color: var(--Grey);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: var(--mb);
}

.heading {
  color: var(--Black);
  font-size: 2.4rem;
  margin-bottom: var(--mb);
  font-family: var(--fraunces);
  line-height: 1;
}

.pera {
  font-size: 1rem;
  color: var(--Grey);
  margin-bottom: var(--mb);
}

.priceBox {
  display: flex;
  width: 100%;
  justify-content: flex-start;
  align-items: center;
  margin-bottom: var(--mb);
  font-family: var(--fraunces);
}

.discountedPrice {
  color: var(--Green-500);
  font-size: 2rem;
  margin-right: var(--mb);
}

.acturalPrice {
  color: var(--Grey);
  font-size: 1rem;
  text-decoration: line-through;
}

.btn {
  padding: 1.2rem;
  font-size: 1.1rem;
  color: var(--White);
  background-color: var(--Green-500);
  font-weight: bold;
  border-radius: var(--bR-sm);
  width: 100%;
  border: none;
  cursor: pointer;
  box-shadow: 1px 1px 10px #eee;
}

@media screen and (max-width: 770px) {
  #desktopImg {
    display: none;
    visibility: hidden;
  }

  #mobileImg {
    display: block;
    visibility: visible;
    background-position: center;
  }

  .main {
    padding: var(--mt);
  }

  .cardBox {
    grid-template-rows: auto auto;
    grid-template-columns: none;
    width: 24rem;
  }
}
