
.related {
     --barik-900: #0b2142;
  --barik-800: #0f2d5a;
  --barik-700: #12376e;
  --barik-600: #164583;
  --barik-500: #1b5fb3;
  --barik-400: #2c82d8;
  --barik-300: #7db3ea;
  --barik-200: #cfe6fb;
  --barik-100: #eaf3ff;
  --ink-900: #0c1420;
  --ink-700: #2a3647;
  --ink-500: #5c6b80;
  --ink-300: #9aa7b8;
  --ink-200: #c9d3df;
  --ink-100: #e7edf4;
  --ink-50: #f5f8fb;
  --accent: #82b440;
  --success: #2fb344;
  --surface: #fff;
  --surface-2: #fafcff;
  --radius-xl: 18px;
  --radius-lg: 14px;
  --radius-md: 12px;
  --radius-sm: 10px;
  --shadow-sm: 0 2px 8px rgba(11, 33, 66, 0.06);
  --shadow-md: 0 8px 24px rgba(11, 33, 66, 0.1);
  --shadow-lg: 0 16px 40px rgba(11, 33, 66, 0.14);
  --fast: 160ms cubic-bezier(0.2, 0.7, 0.2, 1);
  --slow: 380ms cubic-bezier(0.2, 0.7, 0.2, 1);
  position: relative;
  padding: 8px 0 24px;
}
.related .section-head {
  display: flex;
  align-items: flex-end;
  justify-content: start;
  gap: 16px;
  margin-bottom: 14px;
}
.related .section-head h2 {
  margin: 0;
  font-size: clamp(20px, 3vw, 28px);
  color: var(--barik-800);
  letter-spacing: 0.2px;
}
.related .section-head .meta {
  color: var(--ink-500);
  font-size: 13px;
}
.related::before {
  content: "";
  position: absolute;
  left: 24px;
  right: 24px;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--ink-100), transparent);
}

/* Carousel wrapper */
.related .cards {
  display: block;
}

/* Owl nav */
.related .owl-nav {
  position: absolute;
  top: -54px;
  right: 24px;
  display: flex;
  gap: 8px;
}
.related .owl-nav button {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--ink-100);
  background: #fff !important;
  box-shadow: var(--shadow-sm);
  transition: var(--fast);
  display: grid;
  place-items: center;
}
.related .owl-nav button:hover {
  border-color: var(--ink-200);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}
.related .owl-nav button span {
  display: none;
}
.related .owl-nav .owl-prev::after,
.related .owl-nav .owl-next::after {
  content: "";
  width: 18px;
  height: 18px;
  display: block;
  mask-size: contain;
  mask-repeat: no-repeat;
  background: var(--barik-700);
}
.related .owl-nav .owl-prev::after {
  mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="15 18 9 12 15 6"/></svg>');
}
.related .owl-nav .owl-next::after {
  mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="9 18 15 12 9 6"/></svg>');
}

/* Dots */
.related .owl-dots {
  margin-top: 8px;
  display: flex;
  justify-content: center;
  gap: 8px;
}
.related .owl-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--ink-200) !important;
  transition: var(--fast);
}
.related .owl-dot.active {
  width: 24px;
  background: var(--barik-600) !important;
}

/* Card */
.related .product-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--ink-100);
  border-radius: var(--radius-lg);
  overflow: clip;
  box-shadow: var(--shadow-sm);
  transition: transform var(--slow), box-shadow var(--slow),
    border-color var(--fast);
  isolation: isolate;
}
.related .product-card:focus-within {
  outline: 2px solid var(--barik-300);
  outline-offset: 2px;
}
.related .product-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--ink-200);
}
.related .product-card a {
  color: inherit;
  text-decoration: none;
  display: block;
}
.related .product-media {
  position: relative;
  aspect-ratio: 4/3;
  background: var(--ink-50);
  overflow: hidden;
}
.related .product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--slow);
}
.related .product-card:hover .product-media img {
  transform: scale(1.03);
}
.related .badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(22, 69, 131, 0.92);
  color: #fff;
  font-weight: 600;
  font-size: 12px;
  box-shadow: 0 4px 14px rgba(22, 69, 131, 0.25);
  border:none;
}
.related .badge .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.related .badge.sale {
  background: rgba(240, 62, 62, 0.96);
  right: unset;
  left: 0;
}
.related .badge.new {
  background: rgba(47, 179, 68, 0.96);
}
.related .card-actions {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  gap: 8px;
  z-index: 2;
}
.related .icon-btn {
  appearance: none;
  border: 1px solid rgba(11, 33, 66, 0.08);
  background: rgba(255, 255, 255, 0.9);
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform var(--fast), background var(--fast),
    border-color var(--fast);
  backdrop-filter: blur(6px);
}
.related .icon-btn:hover {
  transform: translateY(-1px);
  background: #fff;
  border-color: rgba(11, 33, 66, 0.2);
}
.related .icon {
  width: 19px;
  height: 19px;
  display: block;
  color: var(--ink-700);
}
.related .product-body {
  padding: 12px 12px 14px;
  display: grid;
  gap: 8px;
}
.related .product-title {
  font-size: 14.5px;
  line-height: 1.35;
  color: var(--ink-900);
  max-height: 2.7em;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.related .rating {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--ink-500);
}
.related .stars {
  display: inline-flex;
  gap: 2px;
}
.related .stars svg {
  width: 14px;
  height: 14px;
  color: #f5c243;
}
.related .price {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.related .price-new {
  color: var(--barik-700);
  font-weight: 800;
  font-size: 16px;
}
.related .price-old {
  color: var(--ink-300);
  font-size: 12px;
  text-decoration: line-through;
}
.related .price-save {
  color: var(--success);
  font-size: 12px;
  font-weight: 700;
}
.related .card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

/* .related .btn-primary {
    background: var(--barik-600);
    color: #fff;
} */
 .btn-related {
  appearance: none;
  border: 1px solid var(--ink-100);
  border-radius: 10px;
  padding: 10px 12px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: transform var(--fast), box-shadow var(--fast),
    background var(--fast);
  box-shadow: 0 8px 16px rgba(22, 69, 131, 0.16);
}
.btn-related:hover {
  background: var(--barik-700);
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(22, 69, 131, 0.2);
}
.btn-related:active {
  transform: translateY(0);
  box-shadow: var(--shadow-sm);
} */
.btn-ghost {
  background: transparent;
   color: var(--barik-700);
  border: 1px solid #dbe4ff;
    height: 45px;
}
.btn-ghost:hover {
   background: #eef5ff;
} 
.related .fav {
  position: absolute;
right: 0px;
  top: 2px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fff;
  border: 1px solid #e8eef6;
  cursor: pointer;
}
@media (prefers-reduced-motion: reduce) {
  .product-card,
  .product-media img,
  .btn,
  .icon-btn {
    transition: none !important;
  }
}

.product-description {
  position: relative;
  margin: 0 auto;
  padding-bottom: 60px; /* beri ruang agar tombol tidak menutupi teks */
}

.product-description .desc-content.collapse {
  display: block;
  max-height: 500px;
  height: auto !important;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.product-description .desc-content.in {
  max-height: none;
}

/* Tombol kecil dan center */
.product-description .desc-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 18px auto 0;
  padding: 6px 14px;
  background: none;
  border: 1px solid #ccc;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  color: #444;
  transition: all 0.25s;
}

.product-description .desc-toggle:hover {
  background: #f9f9f9;
  border-color: #bbb;
}

/* Putar icon saat expand */
.product-description .desc-toggle svg {
  transition: transform 0.3s ease;
}

.product-description .desc-toggle:not(.collapsed) svg {
  transform: rotate(180deg);
}

.product-description .desc-toggle .text-less {
  display: none;
}

.product-description .desc-toggle:not(.collapsed) .text-show {
  display: none;
}

.product-description .desc-toggle:not(.collapsed) .text-less {
  display: inline;
}