.header_section{
  position:sticky !important;
}
.header_section .container-fluid{
    padding: 0px !important;
}
.container-fluid {
    padding: 0px !important;
}
.custom_nav-container{
    padding: 8px 16px !important;
}
/* Product Section Spacing (Navbar ke niche se start ho) */
.single-product-section {
  padding-top: 40px;
  padding-bottom: 60px;
}

/* Layout */
.product-gallery {
  display: flex;
  gap: 12px;
}

.product-row {
  margin-left: 0;
  margin-right: 0;
}

/* Thumbnails */
.thumbs {
  width: 70px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.thumb-list {
  height: 245px;              /* 4 thumbnails ke hisaab se fixed height */
  overflow: hidden;          /* scroll buttons se hi move hoga */
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.thumb {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 6px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: 0.2s ease;
}

.thumb:hover {
  transform: scale(1.05);
}

.thumb.active {
  border-color: #e89c8c;
}

/* Thumb Buttons */
.thumb-btn {
  background: #fff;
  border: 1px solid #ddd;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  margin: 5px 0;
}

/* Main Image */
.main-image-box {
  flex: 1;
  overflow: hidden;
  position: relative;
  height: 400px;
}

.main-image {
  width: 100%;
  height: 100%;
  object-fit: contain;     /* Maintain aspect ratio */
  transition: transform 0.3s ease;
  cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" height="24" width="24"><text y="20" font-size="20">+</text></svg>') 12 12, auto; /* custom + cursor */
}

/* Right Section */
.product-info {
  padding-left: 10px;
}

.product-title {
  font-weight: 600;
  margin-bottom: 10px;
}

.price-box {
  font-size: 22px;
  margin-bottom: 15px;
}

.price {
  font-weight: bold;
  margin-right: 10px;
}

.old-price {
  text-decoration: line-through;
  color: #999;
  margin-right: 10px;
}

.discount {
  color: #ff4d4d;
}

.product-desc {
  color: #555;
  margin-bottom: 25px;
  line-height: 1.6;
}

/* Buy Button */
.buy-now-btn {
  width: 100%;
  background: #e89c8c;
  border: none;
  padding: 14px;
  font-weight: 600;
  color: #fff;
  border-radius: 8px;
  transition: 0.2s;
}

.buy-now-btn:hover {
  background: #d88a7a;
}

/* Share */
.share-box {
  margin-top: 15px;
}

.share-box i {
  font-size: 18px;
  margin-left: 8px;
  color: #333;
}

/* Responsive */
@media (max-width: 768px) {
  #thumbUp{
    display: none;
  }
  #thumbDown{
    display: none;
  }
  .product-gallery {
    flex-direction: column;
  }

  .thumbs {
    flex-direction: row;
    width: 100%;
    justify-content: center;
  }

  .thumb-list {
    flex-direction: row;
    height: auto;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 8px;
  }

  .product-info {
    padding-left: 0;
    margin-top: 20px;
  }
}

/* ======= Related Products Section Styles ======= */

.related-products-section {
  margin-top: 50px;
  text-align: center; /* Center heading */
}

.related-products-section h3 {
  margin-bottom: 30px;
  font-weight: 700;
  font-size: 1.8rem;
  display: inline-block;
  padding-bottom: 8px;
  color: #b85c4f;
}

/* Related products carousel container */
.related-products {
  position: relative; /* For positioning nav buttons */
  margin: 0 auto;
  max-width: 1200px; /* Optional max width */
}

/* Each product card */
.related-products .item {
  padding: 10px;
  border: 1px solid #eee;
  border-radius: 6px;
  background: #fff;
  transition: box-shadow 0.3s ease;
  box-sizing: border-box;
  user-select: none;
}

.related-products .item:hover {
  box-shadow: 0 5px 15px rgba(184, 92, 79, 0.3);
}

/* Product image */
.related-products .product-img {
  width: 100%;
  height: 180px;
  object-fit: contain;
  border-radius: 4px;
  margin-bottom: 10px;
  background: #f7f7f7;
}

/* Product title */
.related-products .product-title {
  font-size: 1rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 5px;
}

/* Price styling */
.related-products .product-price {
  font-size: 1.1rem;
  color: #b85c4f;
  font-weight: 700;
}

/* Old price (strikethrough) */
.related-products .old-price {
  text-decoration: line-through;
  color: #999;
  font-weight: 400;
  font-size: 0.9rem;
  margin-left: 8px;
}

/* Discount badge */
.related-products .discount {
  color: #e04e3d;
  font-weight: 600;
  margin-left: 6px;
}

/* Owl carousel dots override */
.owl-dots{
  margin-top: 10px;
}
.owl-theme .owl-dots .owl-dot span {
  background: #b85c4f !important;
}

/* ===== Owl Carousel nav buttons on sides ===== */

/* Nav container styling */
.related-products .owl-nav {
  position: absolute;
  top: 40%;
  width: 100%;
  pointer-events: none; /* Let clicks through except buttons */
  transform: translateY(-40%);
  z-index: 10;
}

/* Prev and next buttons style */
.related-products .owl-nav button.owl-prev,
.related-products .owl-nav button.owl-next {
  position: absolute;
  pointer-events: auto;
  background: rgba(184, 92, 79, 0.7);
  color: white;
  border: none;
  padding: 10px 15px;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  transition: background 0.3s ease;
  user-select: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  box-shadow: 0 2px 6px rgba(184, 92, 79, 0.6);
}

/* Hover effect */
.related-products .owl-nav button.owl-prev:hover,
.related-products .owl-nav button.owl-next:hover {
  background: rgba(184, 92, 79, 1);
  box-shadow: 0 4px 12px rgba(184, 92, 79, 0.9);
}

/* Position prev button to left */
.related-products .owl-nav button.owl-prev {
  left: -35px;
  top: 50%;
  transform: translateY(-50%);
}

/* Position next button to right */
.related-products .owl-nav button.owl-next {
  right: -35px;
  top: 50%;
  transform: translateY(-50%);
}
/* Toast style */
.copy-toast {
  position: absolute;
  background: #b85c4f;
  color: white;
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s ease;
  z-index: 9999;
}
.copy-toast.show {
  opacity: 1;
  transform: translateY(-10px);
}
