.product-detail-section {
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.product-gallery-main {
  border: 1px solid #e6ebf2;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.product-gallery-main img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.thumbnail-carousel {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #ff9d782e;
  padding: 5px;
  border-radius: 10px;
}

.thumb-nav-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid #d8e1ec;
  background: #fff;
  color: #1f2937;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.thumb-nav-btn:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  box-shadow: 0 5px 14px rgba(15, 23, 42, 0.12);
}

.thumbnail-viewport {
  overflow-x: auto;
  flex: 1;
  scrollbar-width: none;
}

.thumbnail-viewport::-webkit-scrollbar {
  display: none;
}

.thumbnail-track {
  display: flex;
  gap: 10px;
}

.thumb-btn {
  border: 0;
  padding: 0;
  background: transparent;
  display: block;
  width: 88px;
  min-width: 88px;
  border-radius: 10px;
  flex-shrink: 0;
}

.thumb-btn img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 10px;
  border: 2px solid transparent;
  transition: all 0.25s ease;
  display: block;
}

.thumb-btn:hover img {
  border-color: var(--color-accent);
  transform: translateY(-2px);
}

.thumb-btn.is-active img {
  border-color: var(--color-primary);
  box-shadow: 0 5px 16px rgba(37, 79, 34, 0.22);
}

.product-info-card {
  border: 1px solid #e6ebf2;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
  padding: 26px;
}

.product-category-tag {
  display: inline-block;
  background: rgba(37, 79, 34, 0.1);
  color: var(--color-primary);
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: 999px;
  padding: 6px 12px;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.product-price {
  color: var(--color-secondary);
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1.1;
}

.product-detail-price{
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-accent);
}

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

.product-meta-list li {
  border-bottom: 1px dashed #e2e8f0;
  padding: 8px 0;
  font-size: 0.95rem;
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.product-meta-list li:last-child {
  border-bottom: 0;
}

.product-meta-list strong {
  color: #10213f;
}

.feature-list li {
  margin-bottom: 9px;
  color: #334155;
}

.feature-list i {
  color: var(--color-primary);
}

.detail-widget {
  border: 1px solid #e6ebf2;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  padding: 20px;
}

.detail-widget h5 {
  margin-bottom: 12px;
}

.related-products-widget {
  position: relative;
}

.related-product-item {
  min-width: 0;
  height: 100%;
  padding: 6px 4px;
}

.related-products-carousel {
  position: relative;
}

.related-products-carousel .owl-stage {
  display: flex;
}

.related-products-carousel .owl-item {
  display: flex;
}

.related-products-carousel .owl-nav {
  margin-top: 0;
  position: absolute;
  top: -48px;
  right: 0;
  display: flex;
  gap: 8px;
  pointer-events: auto;
}

.related-products-carousel .owl-nav button.owl-prev,
.related-products-carousel .owl-nav button.owl-next {
  width: 34px;
  height: 34px;
  border-radius: 8px !important;
  border: 1px solid #cbd5e1 !important;
  background: #ffffff !important;
  color: #334155 !important;
  margin: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 0.9rem !important;
  transition: all 0.25s ease !important;
}

.related-products-carousel .owl-nav button.owl-prev:hover,
.related-products-carousel .owl-nav button.owl-next:hover {
  background: var(--color-primary, #0e7490) !important;
  border-color: var(--color-primary, #0e7490) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(14, 116, 144, 0.22) !important;
}

.related-product-card {
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  overflow: hidden;
  position: relative;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
  transition: transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.3s cubic-bezier(0.165, 0.84, 0.44, 1), border-color 0.3s ease;
}

.related-product-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-primary, #0e7490);
  box-shadow: 0 12px 28px rgba(14, 116, 144, 0.12);
}

.related-product-image-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background-color: #f8fafc;
}

.related-product-img-link {
  display: block;
  width: 100%;
  height: 100%;
}

.related-product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.related-product-card:hover .related-product-image {
  transform: scale(1.08);
}

.related-product-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  background: var(--color-accent, #f35c03);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(243, 92, 3, 0.3);
  line-height: 1;
}

.related-product-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 6px;
}

.related-product-cat {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--color-primary, #0e7490);
  letter-spacing: 0.4px;
}

.related-product-title {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.5rem;
}

.related-product-title a {
  color: #1e293b;
  text-decoration: none;
  transition: color 0.2s ease;
}

.related-product-card:hover .related-product-title a,
.related-product-title a:hover {
  color: var(--color-primary, #0e7490);
}

.related-product-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: auto;
  padding-top: 4px;
  padding-bottom: 6px;
}

.related-product-price .price-current {
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--color-accent, #f35c03);
}

.related-product-price .price-old {
  font-size: 0.8rem;
  color: #94a3b8;
  text-decoration: line-through;
}

.related-product-btn {
  width: 100%;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.82rem;
  padding: 6px 12px;
  border-color: #cbd5e1;
  color: #334155;
  transition: all 0.25s ease;
}

.related-product-card:hover .related-product-btn,
.related-product-btn:hover {
  background-color: var(--color-primary, #0e7490);
  border-color: var(--color-primary, #0e7490);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(14, 116, 144, 0.22);
}

@media (max-width: 767.98px) {
  .product-info-card {
    padding: 20px;
  }

  .product-gallery-main img {
    height: 280px;
  }

  .thumb-nav-btn {
    width: 34px;
    height: 34px;
  }

  .thumb-btn {
    width: 78px;
    min-width: 78px;
  }

  .related-products-carousel .owl-nav {
    position: relative;
    top: 0;
    right: 0;
    justify-content: flex-end;
    margin-bottom: 12px;
  }
}