:root {
  --primary: #e91e8c;
  --primary-dark: #c3146a;
  --gray-light: #f5f5f5;
  --gray-border: #ddd;
  --text-dark: #333;
  --text-light: #777;
  --green: #22c55e;
}

.product-details-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  margin-top: 60px;
}

.breadcrumb {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 20px;
}
.breadcrumb a {
  color: var(--primary);
  text-decoration: none;
}
.breadcrumb span { color: var(--text-light); }

.product-main {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.image-zoom-container {
  width: 100%;
  height: 400px;
  overflow: hidden;
  border-radius: 8px;
  background: #f7f7f7;
  position: relative;
}
.zoom-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.thumbnail-gallery {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}
.thumbnail {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 6px;
  border: 2px solid transparent;
  cursor: pointer;
}
.thumbnail.active-thumb {
  border-color: var(--primary);
}

.product-title {
  font-size: 26px;
  font-weight: 600;
  color: var(--text-dark);
}

/* Wishlist + Review Row */
.rating-review-row {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 10px;
}

/* Wishlist Button */
.wishlist-btn {
  width: 40px;
  height: 40px;
  border: 1px solid var(--gray-border);
  background: white;
  border-radius: 6px;
  color: var(--primary);
  font-size: 20px;
  cursor: pointer;
}
.wishlist-btn:hover {
  background: rgba(233, 30, 140, 0.1);
}

/* Review Button */
.review-btn {
  padding: 8px 16px;
  border: 2px solid var(--primary);
  color: var(--primary);
  background: #fff;
  border-radius: 20px;
  font-size: 13px;
  cursor: pointer;
  text-decoration: none;
}
.review-btn:hover {
  background: var(--primary);
  color: #fff;
}

/* Price */
.price-section {
  border-top: 1px solid var(--gray-border);
  border-bottom: 1px solid var(--gray-border);
  padding: 12px 0;
}
.current-price {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-dark);
}
.inclusive-text {
  font-size: 12px;
  color: var(--text-light);
}

/* Stock */
.stock-section {
  margin-top: 10px;
  font-size: 14px;
}
.stock-label {
  font-weight: 500;
  margin-right: 5px;
}

/* Weight Buttons */
.weight-options {
  display: flex;
  gap: 12px;
}
.weight-btn {
  padding: 6px 16px;
  border: 1px solid var(--gray-border);
  background: #fff;
  cursor: pointer;
  border-radius: 4px;
  font-size: 13px;
}
.weight-btn:hover {
  border-color: var(--primary);
}
.weight-btn.active {
  background: var(--primary);
  color: #fff;
}

/* Message Box */
.message-section {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}
.message-input {
  flex: 1;
  padding: 10px;
  border: 1px solid var(--gray-border);
  border-radius: 4px;
}
.message-btn {
  padding: 10px 16px;
  background: var(--primary);
  border: none;
  color: #fff;
  border-radius: 4px;
  cursor: pointer;
}
.message-btn:hover {
  background: var(--primary-dark);
}

/* Quantity + Add to Cart */
.action-section {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.quantity-section {
  display: flex;
  align-items: center;
  border: 1px solid var(--gray-border);
  border-radius: 4px;
  background: #fff;
}
.qty-btn {
  width: 36px;
  height: 36px;
  font-size: 20px;
  border: none;
  background: white;
  cursor: pointer;
  font-weight: 600;
}
.qty-input {
  width: 50px;
  text-align: center;
  border: none;
  font-size: 14px;
}
.add-to-cart-btn {
  flex: 1;
  background: var(--green);
  border: none;
  color: #fff;
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
  padding: 12px;
}
.add-to-cart-btn:hover {
  background: #16a34a;
}

/* Sold Out */
.soldout-text {
  color: red;
  font-weight: 600;
  margin-top: 6px;
}

/* -------------------------------------
   RELATED PRODUCTS
------------------------------------- */
.related-products {
  margin-top: 50px;
}
.related-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 20px;
}
.related-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.related-card {
  width: 180px;
  text-align: center;
}
.related-img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 8px;
}
.related-name {
  font-size: 14px;
  font-weight: 500;
  margin-top: 6px;
}
.related-price {
  font-weight: 600;
  font-size: 14px;
  color: var(--text-dark);
}

/* -------------------------------------
   RESPONSIVE (Mobile)
------------------------------------- */
@media (max-width: 768px) {
  .product-main {
    grid-template-columns: 1fr;
  }
  .related-grid {
    justify-content: center;
  }
}

/* ✅ Description Section */
.description-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px 0;
}

.description-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-dark);
  margin: 0;
}

.description-content {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.6;
}

.description-content p {
  margin: 0 0 8px 0;
  font-weight: 600;
}

.product-details-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.product-details-list li {
  padding: 4px 0 4px 20px;
  position: relative;
}

.product-details-list li:before {
  content: "•";
  position: absolute;
  left: 0;
}

.serving-text {
  color: var(--primary-pink);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
}

.serving-popup {
  display: none;
  background: white;
  padding: 10px 14px;
  border: 1px solid var(--border-gray);
  border-radius: 6px;
  font-size: 13px;
  color: var(--text-dark);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  margin-top: 6px;
  max-width: 200px;
}

/* Reviews Section */
.reviews-section {
  margin-top: 30px;
  padding: 20px;
  border-top: 1px solid #eee;
}

.review-card {
  padding: 12px;
  border: 1px solid #eee;
  border-radius: 8px;
  margin-bottom: 12px;
  background-color: #fafafa;
}

.review-header {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
}

.review-rating span {
  color: #fbbf24; /* Golden star */
  font-size: 16px;
}

.review-text {
  font-size: 14px;
  color: #333;
  margin: 8px 0;
}

.review-date {
  font-size: 12px;
  color: gray;
}

.rating-badge {
  display: inline-block;
  background: #4CAF50;   /* Green color */
  color: #fff;
  padding: 4px 8px;
  margin-top: 15px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: bold;
  margin-left: 0;         /* Ensure no unwanted spacing */
  position: relative;
  left: 0px;            /* Move to the left (adjust as needed) */
}

.readmore-btn {
  background: none;
  border: none;
  color: #ff4f81;      /* Light Pink */
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  padding: 0;
  margin-top: 8px;
  text-decoration: underline;
  transition: 0.3s;
}

.readmore-btn:hover {
  color: #d81b60;       /* Dark Pink */
  text-decoration: none;
}
/* ===============================
   PRODUCT DETAILS – WISHLIST FIX
================================ */
.product-title-row {
  display: flex;
  align-items: center;      /* key fix */
  gap: 10px;
  margin-bottom: 12px;
}

.product-title-row .product-title {
  margin: 0;                /* remove default h1 margin */
  line-height: 1.2;         /* tighten text */
}

.product-title-row .wishlist-icon {
  position: static !important;
  opacity: 1 !important;
  font-size: 20px;          /* slightly smaller for balance */
  cursor: pointer;
  color: #999;
  display: flex;
  align-items: center;      /* vertical center */
}

.product-title-row .wishlist-icon i {
  pointer-events: none;
  line-height: 1;           /* prevents drop */
}

.product-title-row .wishlist-icon:hover {
  color: #e91e63;
}

.product-title-row .wishlist-icon.active i {
  color: #e91e63;
}


.wishlist-icon i {
  color: #999;          /* white/grey heart */
  transition: 0.2s;
}

.wishlist-icon.active i {
  color: #e91e63;       /* pink heart */
}

/* DEFAULT HEART (NOT WISHLISTED) */
.wishlist-icon i {
  font-family: "Font Awesome 5 Free";
  font-weight: 400; /* regular (outline) */
  color: #ccc;
  transition: all 0.3s ease;
}

/* ACTIVE HEART (WISHLISTED) */
.wishlist-icon.active i {
  font-weight: 900; /* solid (filled) */
  color: #e91e63;   /* pink */
}

/* FIX FONT AWESOME HEART TILT (NO ROTATION) */
.wishlist-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.wishlist-icon i {
  line-height: 1;
  transform: translateY(0);
}

/* MICRO ALIGNMENT FIX FOR SOLID HEART */
.wishlist-icon.active i {
  transform: translateX(-0.5px);
}

.related-products .products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.related-products .product-card {
  background: #fff;
  border-radius: 12px;
  padding: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  position: relative;
  transition: transform 0.2s ease;
}

.related-products .product-card:hover {
  transform: translateY(-4px);
}

.related-products .product-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 10px;
}

.related-products .product-name {
  font-size: 15px;
  margin: 8px 0 4px;
}

.related-products .product-price {
  font-weight: 600;
  color: #e91e63;
}

.related-products .add-to-cart-btn {
  width: 100%;
  margin-top: 8px;
}

.related-products .wishlist-icon {
  position: absolute;
  top: 10px;
  right: 10px;
}

/* OFFER BADGE */
.offer-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #e53935;
  color: #fff;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 4px;
  z-index: 10;
}

/* OFFER TEXT (Product Details Page) */
.offer-text {
  margin: 6px 0;
  color: #2e7d32;
  font-size: 14px;
  font-weight: 500;
}


.weight-popup {
  position: absolute;
  background: #fff;
  padding: 10px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
  display: none;
  z-index: 999;
}

.weight-popup button {
  margin: 4px;
  padding: 6px 12px;
  border: 1px solid #ddd;
  background: white;
  cursor: pointer;
  border-radius: 4px;
}

.weight-popup button:hover {
  background: #f16ead;
  color: white;
}

