* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght,SOFT,WONK@9..144,100..900,0..100,0..1&family=Montserrat:wght@100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght,SOFT,WONK@9..144,700,100,1&display=swap');

.fraunces {
  font-family: "Fraunces", serif;
  font-optical-sizing: auto;
  font-weight: 700;
  font-style: normal;
  font-variation-settings:
    "SOFT" 100,
    "WONK" 1;
}

.montserrat {
  font-family: "Montserrat", serif;
  font-optical-sizing: auto;
  font-style: normal;
}

body {
  background-color: hsl(30, 38%, 92%);
}

main {
  background-color: hsl(30, 38%, 92%);
  height: 100vh;
  width: 100vw;
  display: flex;
  justify-content: center;
  align-items: center;
}

.container {
  width: 40vw;
  background-color: white;
  margin: 0 auto;
  display: flex;
  border-radius: 10px;
  overflow: hidden;
}

.img {
  width: 50%;
  background-image: url("https://raw.githubusercontent.com/ShivamI18/Product-preview-card/refs/heads/main/image-product-desktop.jpg");
  background-position: center;
  background-size: cover;
}
.padding {
  width: 50%;
  padding: 3vh 2vw;
}

h4,
h1,
p,
.price,
button {
  margin: 15px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

h4,
p {
  font-weight: 100;
  color: hsl(228, 12%, 48%);
}

.price span {
  color: hsl(228, 12%, 48%);
  font-size: 1rem;
  text-decoration: line-through;
}

.price {
  font-size: 40px;
  color: hsl(158, 36%, 37%);
}

button {
  background-color: hsl(158, 36%, 37%);
  border: none;
  outline: none;
  width: 100%;
  margin: 0 auto;
  padding: 15px;
  justify-content: center;
  color: white;
  border-radius: 5px;
}

@media screen and (width<=375px) {
  .container {
    width: 90vw;
    margin: 8vw auto;
    flex-direction: column;
  }

  .img {
    background-image: url("https://raw.githubusercontent.com/ShivamI18/Product-preview-card/refs/heads/main/image-product-mobile.jpg");
    width: 100%;
    height: 35vh;
  }
  .padding{
    width: 100%;
    padding: 3vh 5vw;
  }
}