/* Product detail only: retain server-rendered prices, variants and purchase forms. */
.buyer-layout .buyer-product-page { padding-block: 24px 32px; min-width: 0; }
.buyer-layout .buyer-product-page :is(h1,h2,h3,p,li,td,a) { overflow-wrap: anywhere; }
.buyer-layout .buyer-product-page .breadcrumb { margin-bottom: 24px; padding: 0; border: 0; border-radius: 0; background: transparent; font-size: .75rem; line-height: 1.7; }
.buyer-layout .buyer-product-page .breadcrumb :is(a,li) { font-size: .75rem; line-height: 1.7; }
.buyer-layout .buyer-product-page .breadcrumb a { color: #737373; text-decoration: none; }
.buyer-layout .buyer-product-page .breadcrumb-item.active { color: var(--theme-primary); }
.buyer-layout .buyer-product-page .product-detail-layout { grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 48px; margin-top: 0; align-items: start; }
.buyer-layout .buyer-product-page .product-gallery { min-width: 0; position: sticky; top: calc(var(--buyer-header-bottom,100px) + 20px); }
.buyer-layout .buyer-product-page .product-detail-info { position: static; padding: 0; min-width: 0; }
.buyer-layout .buyer-product-page .img-produk-besar { position: relative; display: flex; width: 100%; aspect-ratio: 1; gap: 0; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: 6px; background: var(--theme-soft); }
.buyer-layout .buyer-product-page .img-produk-besar::-webkit-scrollbar { display: none; }
.buyer-layout .buyer-product-page .img-produk-besar .img-produk-prev { position: relative; flex: 0 0 100%; min-width: 100%; width: 100%; height: 100%; scroll-snap-align: start; border-radius: 6px; background: var(--theme-soft); }
.buyer-layout .buyer-product-page .img-produk-besar .img-produk-prev-baru { width: 100%; height: 100%; margin: 0; border-radius: 6px; background-size: contain; background-position: center; background-repeat: no-repeat; }
.buyer-layout .buyer-product-page .img-produk-besar .img-produk-prev > img { pointer-events: none; z-index: 1; }
.buyer-layout .buyer-product-page .img-produk { width: 100%; margin-top: 12px; }
.buyer-layout .buyer-product-page .img-produk > div { display: flex; gap: 10px; max-width: 100%; overflow-x: auto; padding-block: 3px; }
.buyer-layout .buyer-product-page .img-produk-select { flex: 0 0 64px; max-width: 64px; min-width: 44px; min-height: 44px; padding: 3px; border: 1px solid var(--theme-soft-2); border-radius: 4px; background: transparent; opacity: 1; cursor: pointer; }
.buyer-layout .buyer-product-page .img-produk-select img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; border-radius: 2px; }
.buyer-layout .buyer-product-page .img-produk-select:is(:hover,.selected) { border-color: var(--theme-primary); transform: none; }
.buyer-layout .buyer-product-page .product-detail-title { margin-bottom: 12px; font-family: 'Plus Jakarta Sans',sans-serif; font-size: clamp(1.25rem,1rem + .8vw,1.625rem); font-weight: 500; line-height: 1.5; letter-spacing: -.025em; color: var(--theme-primary); }
.buyer-layout .buyer-product-page .product-detail-info > .harga { font-size: 1.5rem; font-weight: 600; line-height: 1.5; letter-spacing: -.02em; }
.buyer-layout .buyer-product-page .product-discount-badge { padding: 3px 6px; border-radius: 4px; background: var(--theme-soft); color: var(--theme-primary); font-size: .75rem; line-height: 1.5; }
.buyer-layout .buyer-product-page .product-social-proof { margin-top: 12px !important; gap: 8px 16px !important; font-size: .8125rem; }
.buyer-layout .buyer-product-page .product-social-proof > a { display: inline-flex; min-height: 44px; align-items: center; }
.buyer-layout .buyer-product-page .product-stock { display: inline-flex; width: fit-content; align-items: center; min-height: 30px; margin: 8px 0 0; padding: 5px 10px; border: 1px solid transparent; border-radius: 999px; font-size: .75rem; font-weight: 600; letter-spacing: .01em; }
.buyer-layout .buyer-product-page .product-stock.is-available { border-color: #e6e3dc; background: #f7f6f3; color: #555349; }
.buyer-layout .buyer-product-page .product-stock.is-low-stock { border-color: #eadcc9; background: #f8f3ed; color: #795b3e; }
.buyer-layout .buyer-product-page .product-stock.is-out-of-stock { border-color: #deddd9; background: #eeedea; color: #575650; }
.buyer-layout .buyer-product-page .product-gallery.is-out-of-stock .img-produk-besar .img-produk-prev-baru { filter: grayscale(1) contrast(.94); opacity: .72; }
.buyer-layout .buyer-product-page .product-gallery.is-out-of-stock .img-produk-besar .img-produk-prev > img { filter: grayscale(1); opacity: .72; }
.buyer-layout .buyer-product-page .product-gallery.is-out-of-stock .img-produk-besar::after { content: "Stok habis"; position: absolute; z-index: 3; top: 14px; left: 14px; padding: 7px 12px; border: 1px solid rgb(255 255 255 / 70%); border-radius: 999px; background: rgb(47 45 32 / 82%); color: #fff; font-size: .75rem; font-weight: 600; letter-spacing: .02em; pointer-events: none; }
.buyer-layout .buyer-product-page .product-detail-info .garis { margin-block: 20px; background: var(--theme-soft-2); }
.buyer-layout .buyer-product-page .product-section-label { margin-bottom: 12px; font-size: .875rem; line-height: 1.5; font-weight: 500; color: var(--theme-primary); }
.buyer-layout .buyer-product-page #varian-group { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.buyer-layout .buyer-product-page #varian-group > label { display: inline-flex; align-items: center; justify-content: center; flex: 0 1 auto; min-width: 44px; min-height: 44px; max-width: 100%; padding: 10px 14px; margin: 0 !important; border: 1px solid var(--theme-soft-2); border-radius: 6px !important; color: var(--theme-primary); background: transparent; font-size: .8125rem; font-weight: 400; white-space: normal; box-shadow: none; }
.buyer-layout .buyer-product-page #varian-group > label.is-sold-out { gap: 6px; border-color: #deddd9; background: #f2f1ee; color: #77766f; }
.buyer-layout .buyer-product-page #varian-group > label.is-sold-out::after { content: "Habis"; padding: 2px 5px; border-radius: 999px; background: #e4e2dd; color: #575650; font-size: .625rem; font-weight: 600; }
.buyer-layout .buyer-product-page #varian-group > .btn-check:checked + label.is-sold-out { border-color: #aaa8a0; background: #e9e8e4; color: #4a4943; }
.buyer-layout .buyer-product-page #varian-group > .btn-check:checked + label { border-color: var(--theme-primary); background: var(--theme-soft); color: var(--theme-primary); }
.buyer-layout .buyer-product-page :is(a,button,[role='button'],textarea):focus-visible, .buyer-layout .buyer-product-page .btn-check:focus-visible + label, .buyer-layout .buyer-product-page .star-input input:focus-visible + label { outline: 2px solid var(--theme-primary); outline-offset: 3px; }
.buyer-layout .buyer-product-page :is(.product-purchase-actions,.product-mobile-purchase-bar) { gap: 8px !important; }
.buyer-layout .buyer-product-page .product-purchase-actions { margin-bottom: 24px; }
.buyer-layout .buyer-product-page :is(.product-purchase-actions,.product-mobile-purchase-bar) form { flex: 0 0 auto; margin: 0; }
.buyer-layout .buyer-product-page :is(.product-purchase-actions,.product-mobile-purchase-bar) form:first-child { flex: 1 1 0; min-width: 0; }
.buyer-layout .buyer-product-page :is(.product-purchase-actions,.product-mobile-purchase-bar) .btn { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 48px; padding: 10px 12px; border-radius: 6px; font-size: .875rem; line-height: 1.6; box-shadow: none; white-space: normal; }
.buyer-layout .buyer-product-page :is(.product-purchase-actions,.product-mobile-purchase-bar) form:first-child .btn { width: 100%; }
.buyer-layout .buyer-product-page :is(.product-purchase-actions,.product-mobile-purchase-bar) > a:first-child { flex: 1 1 0; }
.buyer-layout .buyer-product-page .btn-outline-dark { border-color: var(--theme-soft-2); color: var(--theme-primary); }
.buyer-layout .buyer-product-page .btn-outline-dark:hover { background: var(--theme-soft); color: var(--theme-primary); border-color: var(--theme-primary); }
.buyer-layout .buyer-product-page .product-action-icon { display: block; flex-shrink: 0; width: 20px; height: 20px; }
.buyer-layout .buyer-product-page .product-description-label { padding-top: 24px; border-top: 1px solid var(--theme-soft-2); }
.buyer-layout .buyer-product-page .product-description { margin: 0 0 24px; color: #626262; font-size: .875rem; line-height: 1.85; }
.buyer-layout .buyer-product-page .product-description :is(table,img,iframe) { max-width: 100% !important; }
.buyer-layout .buyer-product-page .product-description table { width: 100% !important; table-layout: fixed; }
.buyer-layout .buyer-product-page .product-description :is(td,th) { padding: 8px; overflow-wrap: anywhere; border-color: var(--theme-soft-2); }
.buyer-layout .buyer-product-page .product-description img { height: auto; }
.buyer-layout .buyer-product-page .product-detail-info hr { display: none; }
.buyer-layout .buyer-product-page .accordion { border-top: 0; }
.buyer-layout .buyer-product-page .accordion-item { border: 0; border-bottom: 1px solid var(--theme-soft-2); border-radius: 0; }
.buyer-layout .buyer-product-page .accordion-button { min-height: 56px; padding: 16px 0 !important; gap: 16px; border-radius: 0; background: transparent; color: var(--theme-primary); font-size: .875rem; font-weight: 500 !important; line-height: 1.6; box-shadow: none; }
.buyer-layout .buyer-product-page .accordion-body { padding: 0 0 20px; font-size: .8125rem; line-height: 1.85; color: #626262; }
.buyer-layout .buyer-product-page .accordion-body ol { padding-left: 20px; }
.buyer-layout .buyer-product-page .accordion-body li { margin-bottom: 10px; }
.buyer-layout .buyer-product-page .product-marketplace { margin-block: 24px 12px; }
.buyer-layout .buyer-product-page .product-marketplace p { margin-bottom: 12px !important; font-size: .8125rem; }
.buyer-layout .buyer-product-page .product-marketplace > div { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.buyer-layout .buyer-product-page .product-marketplace a { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; }
.buyer-layout .buyer-product-page .product-marketplace .marketplace { height: 24px; max-width: 80px; width: auto; padding: 0; border: 0; border-radius: 0; background: transparent; object-fit: contain; transform: none; }
.buyer-layout .buyer-product-page #rating-section { scroll-margin-top: calc(var(--buyer-header-bottom,100px) + 20px); }
.buyer-layout .buyer-product-page #rating-section :is(.rating-summary,.rating-card,.rating-form) { padding: 20px 0; border: 0; border-bottom: 1px solid var(--theme-soft-2); border-radius: 0; background: transparent; box-shadow: none; }
.buyer-layout .buyer-product-page #rating-section .big-score { font-size: 2rem; font-weight: 500; color: var(--theme-primary); }
.buyer-layout .buyer-product-page #rating-section p { font-size: .875rem; line-height: 1.8; }
.buyer-layout .buyer-product-page #rating-section :is(.btn, .star-input label) { min-height: 44px; min-width: 44px; border-radius: 6px; }
.buyer-layout .buyer-product-page #rating-section textarea { font-size: 1rem; border-radius: 6px; border-color: var(--theme-soft-2); }
.buyer-layout .buyer-product-page .star-input { position: relative; flex-wrap: wrap; }
.buyer-layout .buyer-product-page .star-input input { display: block; position: absolute; width: 1px; height: 1px; opacity: 0; }
.buyer-layout .buyer-product-page .star-input label { display: inline-flex; justify-content: center; align-items: center; }
@media (min-width: 992px) { .buyer-layout .buyer-product-page .product-purchase-actions { display: flex !important; } .buyer-layout .buyer-product-page .product-mobile-purchase-bar { display: none !important; } }
@media (max-width: 991.98px) {
    .buyer-layout .buyer-product-page { padding-top: 16px; }
    .buyer-layout .buyer-product-page .product-detail-layout { grid-template-columns: minmax(0,1fr); gap: 24px; }
    .buyer-layout .buyer-product-page .product-gallery { position: static; width: 100%; max-width: 560px; margin-inline: auto; }
    .buyer-layout .buyer-product-page .product-detail-title { font-size: 1.25rem; }
    .buyer-layout .buyer-product-page .product-detail-info > .harga { font-size: 1.375rem; }
    .buyer-layout .buyer-product-page .product-purchase-actions { display: none !important; }
    .buyer-layout .buyer-product-page .product-mobile-purchase-bar { display: flex !important; position: fixed; inset: auto 0 0; width: 100%; z-index: 20 !important; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)) !important; border-top: 1px solid var(--theme-soft-2); border-radius: 0 !important; background: var(--theme-background,#fff); box-shadow: none !important; }
    body.buyer-layout:has(.buyer-product-page) { padding-bottom: var(--product-purchase-bar-height,80px); }
    .buyer-layout:has(.buyer-product-page) > .buyer-page-content > .hide-ke-show-block { display: none !important; }
    .buyer-layout:has(.buyer-product-page) .container-melayang.geser { bottom: calc(var(--product-purchase-bar-height,80px) + 16px); }
    .buyer-layout .buyer-product-page .img-produk-select { flex-basis: 56px; max-width: 56px; }
    .buyer-layout .buyer-product-page .breadcrumb-item:last-child { display: none; }
}
@media (prefers-reduced-motion: reduce) { .buyer-layout .buyer-product-page .img-produk-select { transition: none; } }

.buyer-layout .buyer-product-page .product-detail-info > a.btn { min-height: 44px; border-radius: 6px; font-size: .8125rem; box-shadow: none; }
@media print { .buyer-layout .buyer-product-page .product-mobile-purchase-bar { display: none !important; } .buyer-layout .buyer-product-page .product-gallery { position: static; width: 100%; max-width: 560px; margin-inline: auto; } }

@media print { body.buyer-layout:has(.buyer-product-page) { padding-bottom: 0; } }
