/* ===== Body ===== */
body {
  background-color: #fdf1ec;
  margin: 0;
  font-family: 'Raleway', sans-serif;
}

/* ===== Wrapper ===== */
.wrapper {
  display: flex;
  flex-wrap: wrap;          /* allow stacking on small screens */
  justify-content: center;
  align-items: flex-start;
  gap: 20px;
  margin: 20px auto;
  max-width: 1200px;        /* center content */
  box-sizing: border-box;
  padding: 15px;
  background-color: #fff;
  border-radius: 15px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* ===== Product Image & Carousel ===== */
.product-img {
  flex: 0 0 auto;
  width: 100%;
  max-width: 327px;
  position: relative;
  overflow: hidden;
  border-radius: 15px;
}

.carousel {
  position: relative;
  width: 100%;
}

.carousel-img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: none;  /* hide non-active images */
}

.carousel-img.active {
  display: block;
}

/* Arrows */
.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background-color: rgba(0,0,0,0.6);
  border: none;
  border-radius: 50%;
  color: #fff;
  font-size: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 2;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.arrow:hover {
  background-color: rgba(0,0,0,0.9);
  transform: translateY(-50%) scale(1.1);
}

.arrow.left {
  left: 10px;
}

.arrow.right {
  right: 10px;
}

/* ===== Product Info ===== */
.product-info {
  flex: 1 1 300px;
  max-width: 400px;
  box-sizing: border-box;
  margin-top: 0; /* remove extra margin for desktop */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.product-text {
  width: 100%;
}

.product-text h1 {
  margin: 0 0 10px 0;
  font-size: 28px;
  color: #474747;
  font-family: 'Bentham', serif;
}

.product-text h2 {
  margin: 0 0 10px 0;
  font-size: 12px;
  font-family: 'Raleway', sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  color: #d2d2d2;
  letter-spacing: 0.2em;
}

.product-text p {
  margin: 0;
  font-family: 'Playfair Display', serif;
  color: #8d8d8d;
  line-height: 1.5em;
  font-size: 14px;
  overflow-wrap: break-word;
}

/* ===== Price & Button ===== */
.product-price-btn {
  margin-top: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.product-price-btn p {
  font-family: 'Trocchi', serif;
  font-size: 24px;
  color: #474747;
  margin: 0;
}

.product-price-btn span {
  font-family: 'Suranna', serif;
  font-size: 32px;
}

.product-price-btn button {
  border: none;
  border-radius: 60px;
  background-color: #c43535;
  color: #fff;
  font-family: 'Raleway', sans-serif;
  font-weight: 500;
  font-size: 14px;
  text-transform: uppercase;
  padding: 10px 20px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.product-price-btn button:hover {
  background-color: #deb01b;
  transform: scale(1.05);
}

/* ===== Responsive Layout ===== */
@media screen and (max-width: 768px) {
  .wrapper {
    flex-direction: column; /* stack image + info vertically */
    align-items: center;
    max-width: 95%;
    padding: 10px;
  }

  .product-info {
    max-width: 100%;
    margin-top: 10px;
  }

  .product-price-btn {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .product-price-btn button {
    width: 90%;
  }

  .product-text h1 {
    font-size: 24px;
  }

  .product-text h2 {
    font-size: 11px;
  }

  .product-text p {
    font-size: 13px;
    line-height: 1.4em;
  }
}

@media screen and (max-width: 480px) {
  .product-text h1 {
    font-size: 20px;
  }

  .product-text h2 {
    font-size: 10px;
  }

  .product-text p {
    font-size: 12px;
    line-height: 1.3em;
  }

  .product-price-btn span {
    font-size: 24px;
  }

  .product-price-btn p {
    font-size: 18px;
  }
}
