@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 {
  font-size: 62.5%;
  --Black: hsl(212, 21%, 14%);
  --Grey: hsl(228, 12%, 48%);
  --Cream: hsl(30, 38%, 92%);
  --White: hsl(0, 0%, 100%);
  --Green500: hsl(158, 36%, 37%);
  --Green700: hsl(158, 42%, 18%);
}

body {
  font-family: 'Montserrat', sans-serif;
  background-color: var(--Cream);
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

/* Layout */
.main-container {
  width: 100%;
  max-width: 600px;
  background-color: var(--White);
  display: flex;
  border-radius: 2rem;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

/* Image Section */
.img-sec,
.text-sec {
  width: 50%;
}

.desktop-pic,
.mobile-pic {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

.mobile-pic {
  display: none;
}

/* Text Section */
.text-sec {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.product {
  text-transform: uppercase;
  font-weight: 500;
  color: var(--Grey);
  font-size: 1.2rem;
  letter-spacing: 0.2rem;
}

.product-name {
  font-family: 'Fraunces', serif;
  text-transform: capitalize;
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--Black);
}

.description {
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--Grey);
  line-height: 1.6;
}

/* Prices */
.prices {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.current-price {
  color: var(--Green500);
  font-size: 2.4rem;
  font-weight: 700;
  font-family: 'Fraunces', serif;
}

.old-price {
  text-decoration: line-through;
  color: gray;
  font-size: 1.4rem;
}

/* Button */
button {
  width: 100%;
  height: 4.2rem;
  border: none;
  border-radius: 0.8rem;
  background-color: var(--Green500);
  color: var(--White);
  font-weight: 700;
  font-size: 1.4rem;
  text-transform: capitalize;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  transition: background-color 0.3s ease;
}

button:hover {
  background-color: var(--Green700);
}

/* Responsive */
@media (max-width: 658px) {
  .main-container {
    flex-direction: column;
    width: 90%;
  }

  .img-sec,
  .text-sec {
    width: 100%;
  }

  .desktop-pic {
    display: none;
  }

  .mobile-pic {
    display: block;
    border-radius: 2rem 2rem 0 0;
  }
}
