/* ========== PRODUCT GALLERY ========== */
.product-gallery {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.thumbs {
  flex: 0 0 100px;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.thumbs img {
  cursor: pointer;
  border-radius: 6px;
  border: 2px solid transparent;
  object-fit: cover;
  height: 80px;
  width: 80px;
  transition: border-color 0.3s ease, transform 0.3s ease;
}
.thumbs img:hover {
  transform: scale(1.05);
}
.thumbs img.active-thumb {
  border-color: #28a745;
}
.main-img {
  flex: 1;
  border-radius: 8px;
  overflow: hidden;
}
.main-img img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  cursor: zoom-in;
  transition: transform 0.3s ease;
}
.main-img img:hover {
  transform: scale(1.05);
}

/* ========== PRICING ========== */
.price-old {
  text-decoration: line-through;
  color: #6c757d;
  font-size: 1.25rem;
  margin-right: 1rem;
  display: inline-block;
}
.price-new {
  color: #28a745;
  font-size: 1.75rem;
  font-weight: 700;
  display: inline-block;
}
.price-discount-badge {
  background-color: #dc3545;
  color: #fff;
  font-weight: 600;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  font-size: 0.85rem;
  display: inline-block;
  margin-left: 0.5rem;
  vertical-align: middle;
  line-height: 1;
}

/* ========== ROKOMARI STYLE ROUND BADGE ========== */
.rokomari-discount-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 58px;
  height: 58px;
  background-color: #dc3545;
  color: #fff;
  font-weight: bold;
  font-size: 13px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  z-index: 10;
  font-family: 'Poppins', sans-serif;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.15);
}
.rokomari-discount-badge .discount-inner {
  line-height: 1;
}
.rokomari-discount-badge .discount-inner span {
  font-size: 11px;
}

/* ========== TABS ========== */
.nav-tabs .nav-link {
  color: #495057;
  font-weight: 500;
}
.nav-tabs .nav-link.active {
  color: #28a745;
  font-weight: 600;
  border-bottom: 3px solid #28a745;
}
.tab-content {
  border: 1px solid #dee2e6;
  border-top: none;
  padding: 1.5rem;
}

/* ========== BADGE ========== */
.badge {
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 0.4rem;
  padding: 0.4em 0.7em;
}

/* ========== RELATED PRODUCTS (Grid 6 items in a row) ========== */
.related-products .card {
  border-radius: 8px;
  border: 1px solid #dee2e6;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
}
.related-products .card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.1);
}
.related-products .card img {
  height: 160px;
  object-fit: cover;
  width: 100%;
}
.related-products .card-title {
  font-size: 0.9rem;
  height: 40px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}
.related-products .card-body {
  text-align: center;
  padding: 0.8rem;
}
.related-products .price {
  font-weight: bold;
  color: #28a745;
  font-size: 1rem;
}
.related-products .price del {
  font-size: 0.85rem;
  color: #6c757d;
  margin-left: 0.3rem;
}
.related-products .btn {
  font-size: 0.8rem;
  margin-top: 0.3rem;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 767px) {
  .product-gallery {
    flex-direction: column;
  }
  .thumbs {
    flex-direction: row;
    justify-content: center;
  }
  .thumbs img {
    height: 60px;
    width: 60px;
  }
}
