.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px;
}

/* ---------- PRODUCT PAGE LAYOUT ---------- */
.product-page {
  display: flex;
  gap: 30px;
  margin-bottom: 50px;
}

/* ---------- IMAGE SECTION ---------- */
.product-images {
  display: flex;
  flex-direction: column; /* stack main image above thumbnails */
  align-items: center;
  width: 50%;
  gap: 15px;
  margin-bottom: 1rem; /* FIX: changed from 1in → 1rem */
}

.main-image img {
  width: 350px;
  max-width: 100%;
  border-radius: 8px;
  border: 1px solid #ddd;
}

/* Thumbnails Row */
.thumbnails {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
  padding: 5px 0;
}

.thumbnails img {
  width: 80px;
  height: 80px;
  border-radius: 6px;
  cursor: pointer;
  border: 1px solid #ddd;
  transition: border 0.2s;
  object-fit: cover;
}

.thumbnails img:hover {
  border: 2px solid #9C1137;
}

/* ---------- RESPONSIVE MEDIA QUERIES ---------- */

/* Tablets (≤ 992px) */
@media (max-width: 992px) {
  .product-page {
    flex-direction: column; /* stack image and details */
    align-items: center;
  }

  .product-images {
    width: 80%;
  }

  .main-image img {
    width: 300px;
  }
}

/* Mobile (≤ 768px) */
@media (max-width: 768px) {
  .product-images {
    width: 100%;
  }

  .main-image img {
    width: 250px;
  }

  .thumbnails img {
    width: 70px;
    height: 70px;
  }
}

/* Small Mobile (≤ 480px) */
@media (max-width: 480px) {
  .main-image img {
    width: 200px;
  }

  .thumbnails img {
    width: 60px;
    height: 60px;
  }
}


/* ---------- PRODUCT INFO ---------- */
.product-info {
  width: 50%;
  padding: 20px;
  background: #fff6ed;
  border-radius: 10px;
}

.price {
  font-size: 24px;
  color: #000;
  font-weight: bold;
}

.breakdown-btn {
  background: #a6004c;
  color: white;
  padding: 8px 12px;
  border: none;
  margin: 10px 0;
  cursor: pointer;
  border-radius: 5px;
}

.description {
  color: #555;
}

/* ---------- QUANTITY CONTROL ---------- */
.quantity-control {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0;
}

.quantity-control button {
  width: 35px;
  height: 35px;
  border: 1px solid #ccc;
  background: #fff;
  cursor: pointer;
}

.quantity-control input {
  width: 50px;
  text-align: center;
  border: 1px solid #ccc;
}

/* ---------- ACTION BUTTONS ---------- */
.action-buttons button {
  padding: 10px 20px;
  margin-right: 10px;
  cursor: pointer;
  border-radius: 8px;
  font-weight: bold;
}

.cart-btn, .buy-btn {
  background:#9C1137;
  color: white;
  border: none;
}

.delivery-info {
  margin-top: 15px;
  font-size: 14px;
}

/* ---------- RELATED PRODUCTS (Carousel) ---------- */
#relatedProductsCarousel .carousel-inner {
  padding: 20px 0;
}

#relatedProductsCarousel .card {
  background-color:#FFF0D5;
  border-radius: 12px;
  padding: 10px;
  text-align: center;
  height: 320px;
  transition: transform 0.3s ease;
}

#relatedProductsCarousel .card:hover {
  transform: translateY(-5px);
}

#relatedProductsCarousel .card img {
  width: 100%;
  height: 180px;
  border-radius: 10px;
  margin-bottom: 10px;
  object-fit: cover;
}

#relatedProductsCarousel .card h6 {
  color: #7e1e41;
  font-size: 14px;
  margin-bottom: 6px;
}

#relatedProductsCarousel .card p {
  font-size: 13px;
  color: #7e7e7e;
}

/* Carousel controls */
#relatedProductsCarousel .carousel-control-prev-icon,
#relatedProductsCarousel .carousel-control-next-icon {
  background-color: #7e1e41;
  border-radius: 50%;
  padding: 10px;
}

/* ---------- TESTIMONIALS ---------- */
.testimonials {
  display: flex;
  gap: 20px;
  margin-top: 30px;
}

.testimonial {
  background: white;
  padding: 20px;
  border-radius: 10px;
  flex: 1;
}

.testimonial .user {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}

.testimonial img {
  width: 40px;
  border-radius: 50%;
}

.testimonial-card {
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  max-width: 600px;
  margin: auto;
}

.testimonial-card .message {
  font-style: italic;
  font-size: 1.1rem;
}

.testimonial-card .user h5 {
  margin: 0;
  font-weight: bold;
}

/* ---------- RESPONSIVE MEDIA QUERIES ---------- */

/* Tablets (≤ 992px) */
@media (max-width: 992px) {
  .product-page {
    flex-direction: column; /* stack images & info */
    align-items: center;
  }

  .product-info {
    width: 90%;
  }

  .testimonials {
    flex-direction: column; /* stack testimonials vertically */
  }

  #relatedProductsCarousel .card {
    height: 280px;
  }
}

/* Mobile (≤ 768px) */
@media (max-width: 768px) {
  .product-info {
    width: 100%;
    padding: 15px;
  }

  .price {
    font-size: 20px;
  }

  .quantity-control {
    gap: 6px;
  }

  .quantity-control button {
    width: 30px;
    height: 30px;
  }

  .quantity-control input {
    width: 45px;
  }

  .action-buttons button {
    width: 100%;
    margin-bottom: 10px;
  }

  #relatedProductsCarousel .card img {
    height: 150px;
  }
}

/* Small Mobile (≤ 480px) */
@media (max-width: 480px) {
  .price {
    font-size: 18px;
  }

  .description {
    font-size: 13px;
  }

  .delivery-info {
    font-size: 12px;
  }

  .testimonial {
    padding: 15px;
  }

  .testimonial-card {
    max-width: 100%;
    padding: 15px;
  }

  .testimonial-card .message {
    font-size: 0.95rem;
  }

  #relatedProductsCarousel .card {
    height: auto; /* let card expand naturally */
  }

  #relatedProductsCarousel .card img {
    height: 120px;
  }
}
