.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: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);
    height: 20px;
}
.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;
    border: 1px solid var(--barik-100);
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    color: var(--barik-100);
    transition: all 0.25s;
    background: var(--barik-600);
}
.product-description .desc-toggle:hover {
    background: var(--barik-100);
    border-color: var(--barik-200);
    color: var(--barik-600);
}
/* 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;
}
.bt-sticky-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    background: rgba(15, 23, 42, 0.96);
    color: #f9fafb;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(55, 65, 81, 0.8);
    transform: translateY(100%);
    opacity: 0;
    transition: transform 0.3s ease-out, opacity 0.3s ease-out;
    visibility: hidden;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}
.bt-sticky-bar.is-visible {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}
.bt-sticky-bar-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 13px;
}
@media (max-width: 640px) {
    .bt-sticky-bar-inner {
        flex-wrap: wrap;
        align-items: flex-start;
        padding: 8px 12px;
    }
}
.bt-sticky-bar-info {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    flex: 1;
}
.bt-sticky-bar-thumb {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #4b5563;
    background: #111827;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.bt-sticky-bar-thumb img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.bt-sticky-bar-text {
    min-width: 0;
}
.bt-sticky-bar-title {
    font-weight: 600;
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0;
}
.bt-sticky-bar-meta {
    font-size: 11px;
    color: #9ca3af;
    margin-top: 2px;
}
.bt-sticky-bar-price {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    margin-right: 10px;
}
.bt-sticky-bar-price-current {
    font-weight: 700;
    font-size: 13px;
}
.bt-sticky-bar-price-old {
    font-size: 11px;
    text-decoration: line-through;
    color: #9ca3af;
}
.bt-sticky-bar-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}
.bt-sticky-bar .bt-btn {
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
}
.bt-sticky-bar .bt-btn-primary {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    padding: 8px 16px;
    font-size: 13px;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}
.bt-sticky-bar .bt-btn-primary:hover {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
}
.bt-sticky-bar .bt-btn-subtle {
    border: 1px solid #4b5563;
    background: #111827;
    color: #e5e7eb;
    padding: 8px 12px;
    font-size: 12px;
    min-width: 30px;
}
.bt-sticky-bar .bt-btn-subtle:hover {
    background: #1f2937;
    border-color: #6b7280;
}
#sticky-quantity {
    background: #1f2937;
    border: 1px solid #4b5563;
    color: #f9fafb;
    border-radius: 4px;
    font-size: 13px;
    height: 34px;
    text-align: center;
}
.bt-icon-inline {
    margin-right: 5px;
}
.bt-btn-mini {
    padding: 6px 10px;
    font-size: 11px;
    border-radius: 999px !important;
}
@media (max-width: 480px) {
    .bt-sticky-bar-title {
        font-size: 12px;
    }
    .bt-sticky-bar-meta {
        font-size: 10px;
    }
    .bt-sticky-bar-price-current {
        font-size: 13px;
    }
    .bt-sticky-bar .bt-btn-primary {
        padding: 6px 12px;
        font-size: 12px;
    }
}