.details-section {
  background: linear-gradient(180deg, var(--cream) 0%, #f4efe6 100%);
  padding: 4rem 0;
}

.product-gallery-box {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 1.5rem;
  box-shadow: 0 12px 30px rgba(15, 92, 76, 0.06);
}

.main-img-wrap {
  background: var(--cream, #f7f9f6);
  border: 1px solid var(--line, #e2e8f0);
  border-radius: 18px;
  overflow: hidden;
  height: 480px;
  position: relative;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
}

.main-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.main-img-wrap:hover img {
  transform: scale(1.05);
}

/* Zoom Hint Badge */
.zoom-hint-icon {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(15, 92, 76, 0.9);
  backdrop-filter: blur(6px);
  color: #fff;
  padding: 10px 20px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  pointer-events: none;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  white-space: nowrap;
}

.main-img-wrap:hover .zoom-hint-icon {
  background: var(--teal-deep, #0f5c4c);
  bottom: 25px;
}

/* Thumbnail Gallery */
.thumb-gallery {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 0.3rem;
}

.thumb-item {
  width: 90px;
  height: 90px;
  border-radius: 14px;
  border: 2px solid var(--line);
  overflow: hidden;
  cursor: pointer;
  background: var(--paper);
  flex-shrink: 0;
  transition: all 0.25s ease;
}

.thumb-item.active,
.thumb-item:hover {
  border-color: var(--teal-deep);
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(15, 92, 76, 0.15);
}

.thumb-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}


/* ===== 2. Professional Info Card & Options ===== */
.details-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 2.5rem;
  box-shadow: 0 12px 30px rgba(15, 92, 76, 0.06);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.product-heading {
  font-weight: 700;
  color: var(--ink);
  font-size: 2.1rem;
  margin-bottom: 0.6rem;
  line-height: 1.2;
}

.details-price-box {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin: 1.2rem 0;
}

.details-price-now {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--teal-deep);
}

.details-price-old {
  font-size: 1.2rem;
  text-decoration: line-through;
  color: #8a9a95;
}

/* Option Selectors */
.option-label {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--ink);
  margin-bottom: 0.6rem;
  display: block;
}

.size-btn {
  border: 2px solid var(--line);
  background: var(--paper);
  padding: 0.5rem 1.2rem;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
  color: var(--ink);
}

.size-btn.active,
.size-btn:hover {
  background: var(--teal-deep);
  color: #fff;
  border-color: var(--teal-deep);
  box-shadow: 0 4px 10px rgba(15, 92, 76, 0.2);
}

.color-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-block;
  border: 2px solid var(--line);
  cursor: pointer;
  transition: transform 0.2s;
}

.color-dot.active {
  transform: scale(1.2);
  border-color: var(--teal-deep);
  box-shadow: 0 0 0 3px var(--marigold);
}

/* Quantity Counter */
.quantity-wrap {
  display: flex;
  align-items: center;
  border: 2px solid var(--line);
  border-radius: 14px;
  width: max-content;
  overflow: hidden;
  background: var(--cream);
}

.qty-btn {
  background: transparent;
  border: none;
  padding: 0.6rem 1.2rem;
  font-weight: 800;
  color: var(--teal-deep);
  cursor: pointer;
  transition: background 0.2s;
}

.qty-btn:hover {
  background: var(--line);
}

.qty-input {
  width: 50px;
  text-align: center;
  border: none;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--ink);
  background: transparent;
}

/* Action Buttons */
.details-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.btn-cart-add {
  flex: 1;
  background: var(--paper);
  color: var(--teal-deep);
  border: 2.5px solid var(--teal-deep);
  border-radius: 14px;
  padding: 0.9rem;
  font-weight: 700;
  font-size: 1rem;
  transition: all 0.2s ease;
}

.btn-cart-add:hover {
  background: var(--cream);
}

.btn-checkout-now {
  flex: 1;
  background: var(--teal-deep);
  color: #fff;
  border: none;
  border-radius: 14px;
  padding: 0.9rem;
  font-weight: 700;
  font-size: 1rem;
  box-shadow: 0 6px 20px rgba(15, 92, 76, 0.25);
  transition: all 0.2s ease;
}

.btn-checkout-now:hover {
  background: var(--teal-darker);
}


/* ===== 3. Tabs & Review Form ===== */
.product-tabs-wrap {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 2.5rem;
  margin-top: 3rem;
  box-shadow: 0 12px 30px rgba(15, 92, 76, 0.06);
}

.nav-tabs {
  border-bottom: 2px solid var(--line);
}

.nav-tabs .nav-link {
  color: var(--ink);
  font-weight: 700;
  border: none;
  padding: 0.8rem 1.8rem;
  border-radius: 12px 12px 0 0;
  background: transparent;
}

.nav-tabs .nav-link.active {
  background: var(--teal-deep) !important;
  color: #fff !important;
}

.tab-content {
  padding-top: 1.8rem;
  color: #4a5d58;
  line-height: 1.7;
  font-size: 1.05rem;
}

.review-form-box {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.5rem;
  margin-top: 2rem;
}

.form-control,
.form-select {
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 0.7rem;
  background: var(--paper);
}

.form-control:focus,
.form-select:focus {
  border-color: var(--teal-deep);
  box-shadow: 0 0 0 3px rgba(15, 92, 76, 0.15);
}


/* ===== 4. Related Products & Owl Carousel ===== */
.related-section {
  margin-top: 4rem;
  padding: 0 10px;
}

.related-title {
  font-weight: 800;
  color: var(--teal-deep, #0f5c4c);
  font-size: 1.6rem;
  position: relative;
  margin-bottom: 0 !important;
}

.custom-owl-nav {
  display: flex;
  gap: 8px;
}

.custom-owl-nav button.owl-prev,
.custom-owl-nav button.owl-next {
  background: var(--paper, #ffffff) !important;
  border: 1px solid rgba(15, 92, 76, 0.15) !important;
  color: var(--teal-deep, #0f5c4c) !important;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 0.95rem !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  cursor: pointer;
}

.custom-owl-nav button.owl-prev:hover,
.custom-owl-nav button.owl-next:hover {
  background: var(--teal-deep, #0f5c4c) !important;
  color: #fff !important;
  border-color: var(--teal-deep, #0f5c4c) !important;
  transform: scale(1.05);
}

.related-slider .owl-dots {
  text-align: center;
  margin-top: 25px;
}

.related-slider .owl-dots button.owl-dot span {
  width: 8px;
  height: 8px;
  background: rgba(15, 92, 76, 0.2);
  border-radius: 50%;
  transition: all 0.3s ease;
  display: block;
  margin: 0 4px;
}

.related-slider .owl-dots button.owl-dot.active span {
  width: 24px;
  background: var(--teal-deep, #0f5c4c);
  border-radius: 6px;
}

/* Product Card Styling */
.product-card {
  background: var(--paper, #ffffff);
  border: 1px solid rgba(15, 92, 76, 0.08);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(15, 92, 76, 0.03);
  margin: 5px;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(15, 92, 76, 0.1);
  border-color: var(--marigold, #ffb100);
}

.product-thumb {
  height: 210px;
  background: var(--cream, #f7f9f6);
  position: relative;
  overflow: hidden;
}

.product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.product-card:hover .product-thumb img {
  transform: scale(1.08);
}

.badge-sale {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--marigold, #ffb100);
  color: #000;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 30px;
  z-index: 5;
}

.wish-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #333;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 5;
}

.wish-btn:hover {
  background: #ff4757;
  color: #fff;
}

.product-body {
  padding: 1.2rem;
}

.product-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 0.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 2.6rem;
}

.rating {
  color: #ffc107;
  font-size: 0.8rem;
}

.price-now {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--teal-deep, #0f5c4c);
}

.price-old {
  font-size: 0.85rem;
  color: #999;
  text-decoration: line-through;
  margin-left: 8px;
}

.product-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.btn-buy-now {
  flex: 1;
  background: var(--teal-deep, #0f5c4c);
  color: #fff;
  border: none;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  transition: background 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-buy-now:hover {
  background: #0a4337;
  color: #fff;
}

.btn-details {
  flex: 1;
  background: #f1f3f5;
  color: #333;
  border: none;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  transition: background 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}


/* ===== 5. Fullscreen Zoomable Lightbox Modal ===== */
.custom-lightbox-modal {
  display: none;
  position: fixed;
  z-index: 99999;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(11, 23, 20, 0.95);
  backdrop-filter: blur(10px);
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  overflow: hidden;
}

.custom-lightbox-modal.show {
  display: flex;
  opacity: 1;
}

.lightbox-content-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.custom-lightbox-modal img {
  max-width: 90%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
  cursor: grab;
  transition: transform 0.1s ease-out;
  transform-origin: center center;
  user-select: none;
}

.custom-lightbox-modal img:active {
  cursor: grabbing;
}

/* Lightbox Controls */
.lightbox-controls {
  position: absolute;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  padding: 8px 16px;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  z-index: 10;
}

.lightbox-control-btn {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 1.1rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
}

.lightbox-control-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

.lightbox-close-btn {
  position: absolute;
  top: 25px;
  right: 30px;
  color: #fff;
  font-size: 20px;
  width: 42px;
  height: 42px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  z-index: 10;
}

.lightbox-close-btn:hover {
  background: #ff4757;
  border-color: #ff4757;
  transform: rotate(90deg);
}


/* ===== 6. Mobile Responsive Fixes ===== */
@media (max-width: 768px) {
  .main-img-wrap {
    height: 350px;
  }
  .product-heading {
    font-size: 1.6rem;
  }
  .details-card {
    padding: 1.5rem;
  }
  .details-actions {
    flex-direction: column;
  }
}