:root {
  --background: hsl(30, 38%, 92%);
  --card-background: hsl(0, 0%, 100%);
  --text-main-color: #1c232b;
  --text-sec-color: #6c7289;
  --primary-color: #3d8168;
  --hover-color: #1a4032;

  --heading-font: "Georgia", sans-serif;
  --para-font: "Montserrat", sans-serif;
  --price-font: "Fraunces", sans-serif;
}

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

body,
html {
  height: 100%;
  background-color: var(--background);
  font-family: var(--para-font);
  display: flex;
  justify-content: center;
  align-items: center;
}

.container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1em;
}

.product-card {
  display: flex;
  background-color: var(--card-background);
  border-radius: 12px;
  overflow: hidden;
  max-width: 600px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  max-width: 300px;
}

.product-content {
  padding: 1.8rem;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  max-width: 300px;
}

.product-content span {
  text-transform: uppercase;
  letter-spacing: 5px;
  font-size: 0.8rem;
  color: var(--text-sec-color);
  margin-bottom: 1rem;
}

.product-content h1 {
  font-size: 2rem;
  color: var(--text-main-color);
  margin-bottom: 1rem;
  font-family: var(--heading-font);
}

.product-content p {
  color: var(--text-sec-color);
  font-weight: 400;
  font-size: 1rem;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.product-price {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  font-family: var(--price-font);
}

.product-price .discounted-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
}

.ori-price {
  text-decoration: line-through;
  color: var(--text-sec-color);
}

button {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 0.75rem;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  transition: background 0.3s ease;
}

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

button img {
  width: 16px;
  height: 16px;
}

@media (max-width: 640px) {
  .product-card {
    display: grid;
  }
  .product-image img {
    max-height: 250px;
    max-width: 400px;
  }
  .product-price {
    margin-bottom: 0;
  }
}
