/* Safe Area Support untuk Capacitor Mobile Apps */
@supports (padding: max(0px)) {
    body {
        /* Jangan tambah padding di body, biarkan header/footer yang handle */
        padding-top: 0;
        padding-bottom: 0;
    }
}

.hidden {
    visibility: hidden;
    position: absolute;
    pointer-events: none;
}

.img-featured {
    height: 212;
    width: 200px;
    overflow: hidden;
}

.img-deals {
    height: 350px;
    width: 380px;
}

.img-selected-category {
    height: 200px;
    width: 212px;
}

#wa-floating-btn {
    position: fixed;
    bottom: 3px;
    right: 20px;
    width: 60px;
    height: 60px;
    z-index: 1000;
    border-radius: 50%;
    background-color: #25D366;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s;
}

#wa-floating-btn img {
    width: 35px;
    height: 35px;
}

#wa-floating-btn:hover {
    transform: scale(1.1);
}

/* tampilan cart shopee style */
.cart-item-mobile {
    background: #fff;
}

.cart-item-checkbox {
    width: 18px;
    height: 18px;
}

.cart-select-all {
    width: 18px;
    height: 18px;
}

.cart-mobile .btn-light {
    border: 1px solid #ddd;
}

.cart-checkout-mobile {
    z-index: 1030;
}

div.text-sm.d-md-flex.justify-content-md-center.align-items-md-center {
    font-size: small;
}

.floating-cart {
    display: none;
}

.floating-home {
    display: none;
}

.hero-main {
    background-image: url("/static/assets/img/1920X422/img1.jpg");
    background-size: cover;
    background-position: center;
}

@media (max-width: 767.98px) {
    .hero-main {
        background-image: url("/static/assets/img/768x600/img-mobile.webp");
        background-size: cover;
        background-position: center;
        min-height: 360px;
    }

    .hero-main .row {
        flex-direction: column;
    }

    .hero-main img {
        max-width: 80%;
        margin: 0 auto;
    }

    .badge {
        font-size: 90%;
        padding: 6px 10px;
    }

    .floating-cart {
        display: flex;
        position: fixed;
        left: 13px;
        bottom: 85px;
        z-index: 1000;
        background: #fff;
        padding: 12px 14px;
        border-radius: 999px;
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
        align-items: center;
        gap: 10px;
    }

    .floating-home {
        display: flex;
        position: fixed;
        left: 13px;
        bottom: 24px;
        /* DI BAWAH CART */
        z-index: 1000;
        background: #fff;
        padding: 12px 14px;
        border-radius: 999px;
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
        align-items: center;
        gap: 8px;
    }

    .floating-cart .cart-badge {
        width: 22px;
        height: 22px;
        background: #000;
        color: #fff;
        border-radius: 50%;
        font-size: 12px;
        font-weight: bold;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

.custom-font-detail {
    font-size: 12px;
    font-weight: bolder;
}

.rating-wrapper {
    background: #f0eacc;
    border-color: orange;
    border-width: 2px;
}

#currency {
    font-weight: 700;
    color: orange;
    font-size: small;
}

.text-2xs {
    font-size: 11px;
}

#nominal {
    font-weight: 700;
    color: orange;
    font-size: medium;
}

.price-inline {
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.price-current {
    font-size: 16px;
    font-weight: 600;
}

.price-old {
    font-size: 12px;
    color: #9ca3af;
}

.discount-badge {
    font-size: 11px;
    font-weight: 600;
    color: #dc2626;
    /* red-600 */
    background: #fee2e2;
    /* red-100 */
    padding: 2px 6px;
    border-radius: 4px;
    line-height: 1;
}

.btn-blue {
    color: 0066fe;
}

.hide-component {
    display: none !important;
}

.product-item__title {
    max-width: 100%;
}

#sidebarNavCustom .dropdown-item,
#sidebarNavCustom .dropdown-toggle {
    white-space: normal;
    /* boleh multiline */
    word-break: break-word;
    /* pecah kata panjang */
    line-height: 1.4;
}

#sidebarNavCustom .dropdown-list {
    padding-left: 16px;
}

#sidebarNavCustom .dropdown-item {
    padding-left: 12px;
}

.table-xs {
    font-size: 0.75rem;
}

.order-table th,
.order-table td {
    vertical-align: middle;
}

/* Kolom spesifik */
.col-order {
    white-space: nowrap;
    min-width: 160px;
}

.col-date {
    white-space: nowrap;
    min-width: 90px;
}

.col-status {
    white-space: nowrap;
    min-width: 170px;
}

.col-total {
    white-space: nowrap;
    min-width: 110px;
}

/* Badge status */
.order-table .badge {
    font-size: 0.7rem;
    padding: 0.35em 0.6em;
}

/* Sticky only on large screens (desktop) */
@media (min-width: 992px) {
    .sticky-lg-top {
        position: sticky;
        top: 0;
        z-index: 1000;
    }

}

/* Custom Badge controlled by our JS */
.custom-cart-badge {
    position: absolute;
    top: 0px;
    right: -5px;
    width: 20px;
    height: 20px;
    background-color: #000 !important;
    color: #fff !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: bold;
    z-index: 100;
    line-height: 1;
}

/* Position adjustment for specific parents if needed */
.header .custom-cart-badge {
    top: -5px;
    right: -8px;
}

.floating-cart .custom-cart-badge {
    top: -5px;
    right: -5px;
    background-color: #000;
}

/* Bottom Sheet for Mobile */
@media (max-width: 767.98px) {
    .modal-bottom-sheet .modal-dialog {
        position: fixed;
        bottom: 0;
        margin: 0;
        width: 100%;
        max-width: 100%;
        display: flex;
        align-items: flex-end;
    }

    .modal-bottom-sheet .modal-content {
        border-radius: 20px 20px 0 0;
        border: none;
        width: 100%;
    }

    .modal-bottom-sheet.fade .modal-dialog {
        transform: translateY(100%);
        transition: transform 0.3s ease-out;
    }

    .modal-bottom-sheet.show .modal-dialog {
        transform: translateY(0);
    }
}

.shipping-item:hover {
    background-color: #f8f9fa;
    cursor: pointer;
}

.shipping-item.active {
    background-color: #e9ecef;
    border-left: 4px solid #333e48;
}

/* Shopee Header */
* {
    box-sizing: border-box;
}

.shopee-header {
    background: linear-gradient(180deg, #ee4d2d 0%, #ff7337 100%);
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 999;
}

.logo-text {
    font-weight: bold;
    font-size: 22px;
    color: #fff;
    text-decoration: none;
}

.shopee-search {
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
}

.shopee-search input {
    height: 45px;
    font-size: 14px;
}

.cart-badge {
    position: absolute;
    top: -6px;
    right: -10px;
    background: #fff;
    color: #ee4d2d;
    font-size: 11px;
    font-weight: bold;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.trending-links a {
    color: #fff;
    font-size: 13px;
    margin-right: 15px;
    text-decoration: none;
}

.trending-links a:hover {
    text-decoration: underline;
}

.hero-slider img {
    height: 320px;
    object-fit: cover;
}

@media (max-width: 768px) {
    .hero-slider img {
        height: 200px;
    }
}

/* Hero Section */

.hero-section {
    background: #f5f5f5;
}

.image-carousel {
    position: relative;
    background: #fff;
    overflow: visible;
}

.image-carousel__item-list-wrapper {
    overflow: hidden;
}

.image-carousel__item-list {
    display: flex;
    transform: translateX(0);
    transition: transform 0.4s ease;
}

.carousel-page {
    flex: 0 0 100%;
    display: grid;
    grid-template-columns: repeat(10, 10%);
}

.image-carousel__item {
    list-style: none;
    box-sizing: border-box;
    border-right: 1px solid #f5f5f5;
    border-bottom: 1px solid #f5f5f5;
    position: relative;
    width: 100%;
    height: 170px;
    transition: all 0.2s ease;
}

.home-category-grid {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: #555;
}

.category-box {
    width: 100%;
    height: 100%;
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
}

.category-img {
    width: 84px;
    height: 84px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.category-img img {
    width: 70%;
    height: 70%;
    object-fit: contain;
}

.category-text {
    font-size: 12px;
    margin-top: 8px;
    text-align: center;
}

.image-carousel__item:hover {
    z-index: 10;
}

.image-carousel__item:hover .category-box {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
}

.image-carousel__item:hover .category-text {
    color: #ee4d2d;
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%) scale(0.8);
    z-index: 50;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, .12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.carousel-arrow:hover {
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, .18);
}

.carousel-arrow--prev {
    left: -16px;
}

.carousel-arrow--next {
    right: -16px;
}

@media (max-width: 768px) {
    .carousel-arrow--prev {
        left: -4px;
    }

    .carousel-arrow--next {
        right: -4px;
    }
}


@media (max-width: 768px) {
    .carousel-page {
        grid-template-columns: repeat(5, 20%);
    }

    .image-carousel__item {
        height: 120px;
    }

    .category-img {
        width: 50px;
        height: 50px;
    }

    .category-text {
        font-size: 10px;
    }
}


/* Center wrapper */
.col-wd-auto.max-width-1130 {
    max-width: 1130px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 16px;
    padding-right: 16px;
}

/* Center nav wrapper */
#pills-tab {
    width: 100%;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
}

/* Nav item spacing */
#pills-tab .nav-item {
    margin: 4px 6px;
}

/* Nav link style refinement */
#pills-tab .nav-link {
    padding: 8px 18px;
    border-radius: 30px;
    font-weight: 500;
    white-space: nowrap;
}

/* Active tab look more centered visually */
#pills-tab .nav-link.active {
    font-weight: 600;
}

/* Make tab content centered */
.tab-content {
    width: 100%;
}

/* ========================= */
/* Responsive Adjustments */
/* ========================= */

@media (max-width: 768px) {

    .col-wd-auto.max-width-1130 {
        padding-left: 12px;
        padding-right: 12px;
    }

    #pills-tab {
        justify-content: center;
        flex-wrap: wrap;
    }

    #pills-tab .nav-link {
        font-size: 13px;
        padding: 6px 14px;
    }
}

@media (max-width: 480px) {

    #pills-tab {
        gap: 6px;
    }

    #pills-tab .nav-link {
        font-size: 12px;
        padding: 6px 12px;
    }
}

/* Reset body padding-top untuk desktop, tapi izinkan untuk mobile app */
body:not(.capacitor-app) {
    padding-top: 0 !important;
}

/* Untuk mobile app, gunakan safe area padding */
body.capacitor-app {
    padding-top: env(safe-area-inset-top, 0px) !important;
}

body>*:first-child {
    margin-top: 0 !important;
}

/* ===================================================
   HERO SLIDER (Universal)
   =================================================== */
.hero-slider-wrap {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.hero-slider-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    will-change: transform;
}

.hero-slider-slide {
    flex: 0 0 100%;
    width: 100%;
}

.hero-slider-slide img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

@media (min-width: 768px) {
    .hero-slider-slide img {
        height: 380px;
    }
}

@media (min-width: 1200px) {
    .hero-slider-slide img {
        height: 420px;
    }
}

/* Tombol panah */
.hero-slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 0;
    transition: all 0.3s ease;
    opacity: 0;
}

.hero-slider-wrap:hover .hero-slider-arrow {
    opacity: 1;
}

.hero-slider-arrow:hover {
    background: #fff;
    transform: translateY(-50%) scale(1.1);
}

.hero-slider-arrow--prev {
    left: 20px;
}

.hero-slider-arrow--next {
    right: 20px;
}

@media (max-width: 767.98px) {
    .hero-slider-arrow {
        width: 32px;
        height: 32px;
        opacity: 1;
        /* Always show on mobile */
    }

    .hero-slider-arrow--prev {
        left: 10px;
    }

    .hero-slider-arrow--next {
        right: 10px;
    }
}

/* Dots */
.hero-slider-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
}

.hero-slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ddd;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: all 0.3s ease;
}

.hero-slider-dot.active {
    background: #333;
    width: 24px;
    border-radius: 4px;
}

/* ===================================================
   HALAMAN PAYMENT / CHECKOUT - Premium Redesign
   =================================================== */

/* Container utama checkout */
.checkout-table {
    background: #fff !important;
    border-radius: 16px !important;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08) !important;
    padding: 28px !important;
    border: 1px solid #e8ecf0 !important;
}

/* ---- Alamat Pengiriman ---- */
.checkout-table .border-bottom.border-color-1.mb-5:first-child .p-3 h4 {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a2e !important;
    letter-spacing: 0.3px;
}

/* Card alamat terpilih */
.checkout-table #userAddress {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.checkout-table .d-flex.justify-content-between.align-items-end.border.p-3.rounded.bg-light {
    background: linear-gradient(135deg, #f8faff 0%, #f0f4ff 100%) !important;
    border: 1.5px solid #d0d8ff !important;
    border-radius: 12px !important;
    padding: 14px 16px !important;
    transition: box-shadow 0.2s;
}

.checkout-table .d-flex.justify-content-between.align-items-end.border.p-3.rounded.bg-light:hover {
    box-shadow: 0 2px 12px rgba(100, 116, 255, 0.12);
}

/* Label & teks alamat */
.checkout-table .text-dark.small {
    color: #444 !important;
    font-size: 13px !important;
}

.checkout-table #receiver-name {
    color: #1a1a2e !important;
    font-weight: 600 !important;
    font-size: 14px !important;
}

.checkout-table #receiver-address {
    color: #555 !important;
    font-size: 13px;
    line-height: 1.5;
}

/* Tombol "Ganti" */
.checkout-table #btnChangeAddress,
.checkout-table #btnChangeShipping {
    border: 1.5px solid #333e48 !important;
    color: #333e48 !important;
    border-radius: 20px !important;
    font-size: 12px !important;
    padding: 4px 14px !important;
    font-weight: 600;
    transition: all 0.2s;
}

.checkout-table #btnChangeAddress:hover,
.checkout-table #btnChangeShipping:hover {
    background: #333e48 !important;
    color: #fff !important;
}

/* ---- Section Title "Pesanan Anda" ---- */
.checkout-table h3.section-title {
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #1a1a2e !important;
}

/* ---- Item Produk di tabel ---- */
#checkout-items td,
#checkout-items th,
#checkout-items span,
#checkout-items strong {
    color: #222 !important;
    vertical-align: middle;
}

#checkout-items tr {
    border-bottom: 1px solid #f0f0f0 !important;
}

#checkout-items td:last-child {
    font-weight: 700;
    font-size: 15px;
    color: #1a1a2e !important;
    white-space: nowrap;
}

/* ---- Section Pengiriman (JNE) ---- */
.checkout-table .border-bottom.border-color-1.border-dotted-bottom .p-3 a {
    color: #1a1a2e !important;
    font-size: 15px;
    font-weight: 600;
}

/* Card opsi shipping terpilih */
.checkout-table #selected-shipping .d-flex {
    background: linear-gradient(135deg, #f0fff4 0%, #e8f5e9 100%) !important;
    border: 1.5px solid #a5d6a7 !important;
    border-radius: 12px !important;
    padding: 12px 16px !important;
}

.checkout-table #selected-shipping-name {
    color: #1a1a2e !important;
    font-weight: 600 !important;
    font-size: 14px !important;
}

.checkout-table #selected-shipping-etd {
    color: #555 !important;
    font-size: 12px !important;
}

.checkout-table #selected-shipping-price,
.checkout-table .text-primary {
    color: #1a1a2e !important;
    font-weight: 700 !important;
}

/* Placeholder shipping */
#shipping-options-placeholder p {
    color: #778 !important;
    font-size: 13px;
    font-style: italic;
    background: #f8f9ff;
    border-radius: 8px;
    padding: 12px;
    border: 1px dashed #c5c8e8;
}

/* ---- Total Bayar ---- */
.checkout-table .border-bottom.border-color-1.mb-3 .d-flex {
    background: linear-gradient(135deg, #1a1a2e 0%, #2d2d52 100%);
    border-radius: 12px;
    padding: 16px 20px;
    margin: 4px 0;
}

.checkout-table .border-bottom.border-color-1.mb-3 h4 {
    color: #fff !important;
    font-size: 16px !important;
    font-weight: 600 !important;
}

#checkout-total-display {
    color: #d32f2f !important;
    font-weight: 800 !important;
    font-size: 20px !important;
}

/* ---- Tombol "Buat Pesanan" ---- */
#btnBuatPesanan {
    background: #fed700 !important;
    border: none !important;
    color: #333e48 !important;
    font-weight: 700 !important;
    font-size: 16px !important;
    letter-spacing: 0.5px;
    border-radius: 16px !important;
    padding: 16px !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 16px rgba(254, 215, 0, 0.4) !important;
    margin-top: 8px !important;
}

#btnBuatPesanan:hover:not(:disabled) {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 24px rgba(51, 62, 72, 0.35) !important;
    background: #333e48 !important;
    color: #fff !important;
}

#btnBuatPesanan:disabled {
    opacity: 0.6 !important;
    cursor: not-allowed !important;
}

/* Tombol Tambah Alamat */
#btnAddAddressCO {
    border-radius: 50px !important;
    font-size: 14px !important;
}

/* ---- Override text-muted umum di checkout ---- */
.checkout-table .text-muted,
.checkout-table p.text-muted,
.checkout-table small.text-muted,
.checkout-table div.text-muted {
    color: #778 !important;
    opacity: 1 !important;
}

/* Background area checkout */
.checkout-table .bg-light {
    background-color: #f8f9fa !important;
}


.text-co-title {
    font-size: 12px;
}

.text-co-price {
    font-size: 12px;
}

.text-co-qty {
    font-size: 12px;
}

.cart-summary-mobile {
    position: sticky;
    bottom: 60px;
    background: white;
    z-index: 10;
}

#header.sticky {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1001;
    background: #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

#header {
    transition: all 0.3s ease;
}

#header.sticky {
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }

    to {
        transform: translateY(0);
    }
}


/* ===================================================
   MOBILE HEADER
   =================================================== */
.mobile-header {
    position: sticky;
    top: 0;
    z-index: 1050;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    padding: 10px 14px 8px;
    padding-top: calc(10px + env(safe-area-inset-top, 0px));
}

.mobile-header__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.mobile-header__logo img {
    height: 32px;
    object-fit: contain;
}

.mobile-header__actions {
    display: flex;
    align-items: center;
    gap: 4px;
}

.mobile-header__icon-btn {
    background: none;
    border: none;
    padding: 6px 8px;
    cursor: pointer;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: background 0.2s;
    text-decoration: none;
}

.mobile-header__icon-btn:hover,
.mobile-header__icon-btn:focus {
    background: #f5f5f5;
    color: #333;
    text-decoration: none;
}

.mobile-header__cart-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    min-width: 18px;
    height: 18px;
    background: #ee4d2d;
    color: #000;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3px 4px;
    line-height: 1;
    text-align: center;
}

.mobile-header__search-wrap {
    display: flex;
    align-items: center;
    background: #f5f5f5;
    border-radius: 8px;
    padding: 8px 12px;
    gap: 8px;
}

.mobile-header__search-icon {
    flex-shrink: 0;
}

.mobile-header__search-input {
    border: none;
    background: transparent;
    outline: none;
    font-size: 13px;
    color: #333;
    width: 100%;
}

.mobile-header__search-input::placeholder {
    color: #aaa;
}

/* Sembunyikan header lama di mobile */
@media (max-width: 767.98px) {
    #header {
        display: none !important;
    }

    /* Sembunyikan footer lama di mobile */
    footer {
        display: none !important;
    }

    /* Sembunyikan floating buttons lama di mobile (diganti bottom nav) */
    .floating-cart,
    .floating-home {
        display: none !important;
    }

    /* Padding bawah konten agar tidak tertutup bottom nav — hanya di home */
    .page-home #content {
        padding-bottom: 70px;
    }

    /* Main content padding untuk menghindari tabrakan dengan header/footer */
    main#content {
        padding-top: 0;
        padding-bottom: 56px;
    }
}

/* ===================================================
   MOBILE BOTTOM NAVIGATION BAR (Tokopedia style)
   =================================================== */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1060;
    background: #fff;
    border-top: 1px solid #e8e8e8;
    display: none; /* hidden by default */
    align-items: stretch;
    height: 56px;
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.08);
    padding-bottom: env(safe-area-inset-bottom, 0px);
}

/* Hanya tampil di halaman home, mobile only */
@media (max-width: 767.98px) {
    .page-home .mobile-bottom-nav {
        display: flex;
    }
}

.mobile-bottom-nav__item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #888;
    gap: 4px;
    padding: 8px 4px;
    transition: color 0.2s;
    position: relative;
}

.mobile-bottom-nav__item:hover,
.mobile-bottom-nav__item:focus {
    text-decoration: none;
    color: #ee4d2d;
}

.mobile-bottom-nav__item.active {
    color: #fed700;
}

.mobile-bottom-nav__item.active .mobile-bottom-nav__icon svg {
    stroke: #fed700;
    fill: #fed700;
}

.mobile-bottom-nav__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-bottom: 6px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f5f5f5;
    transition: background 0.2s;
    /* spacing antara icon & label */
}

.mobile-bottom-nav__item:hover .mobile-bottom-nav__icon {
    background: #ffe8e0;
}

.mobile-bottom-nav__item.active .mobile-bottom-nav__icon {
    background: #fff9e6;
}

.mobile-bottom-nav__icon svg {
    transition: fill 0.2s, stroke 0.2s;
    width: 24px;
    height: 24px;
}

.mobile-bottom-nav__label {
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    margin-top: 2px;
}

.mobile-bottom-nav__badge {
    position: absolute;
    top: -4px;
    right: -6px;
    min-width: 14px;
    height: 14px;
    background: #ee4d2d;
    color: #fff;
    border-radius: 7px;
    font-size: 9px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 3px;
    line-height: 1;
}

/* Active indicator line di atas item */
.mobile-bottom-nav__item.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 20%;
    right: 20%;
    height: 2px;
    background: #fed700;
    border-radius: 0 0 2px 2px;
}


/* ===================================================
   TAB SCROLLABLE (Best Seller, All Product, dll)
   =================================================== */
.tab-scroll-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    /* Firefox */
}

.tab-scroll-wrapper::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari */
}

.tab-scroll-wrapper #pills-tab {
    display: flex;
    flex-wrap: nowrap;
    width: max-content;
    min-width: 100%;
    justify-content: flex-start;
    gap: 0;
    padding: 0 4px;
}

@media (min-width: 768px) {

    /* Desktop: tetap centered seperti semula */
    .tab-scroll-wrapper {
        overflow-x: visible;
    }

    .tab-scroll-wrapper #pills-tab {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }
}


/* ===================================================
   CATEGORY SCROLL (Tokopedia style, 1 baris)
   =================================================== */
.category-scroll-section {
    background: #fff;
    padding: 8px 0 6px;
    border-bottom: 1px solid #f0f0f0;
}

.category-scroll-track {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 0;
    padding: 0 8px;
}

.category-scroll-track::-webkit-scrollbar {
    display: none;
}

.category-scroll-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 0 0 auto;
    width: 68px;
    padding: 4px 4px 6px;
    text-decoration: none;
    color: #333;
    transition: opacity 0.2s;
}

.category-scroll-item:hover,
.category-scroll-item:focus {
    text-decoration: none;
    color: #333;
    opacity: 0.75;
}

.category-scroll-img {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 4px;
}

.category-scroll-img img {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.category-scroll-label {
    font-size: 10px;
    text-align: center;
    line-height: 1.3;
    color: #444;
    max-width: 64px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* Desktop: sedikit lebih besar */
@media (min-width: 768px) {
    .category-scroll-section {
        padding: 10px 0 8px;
    }

    .category-scroll-item {
        width: 80px;
        padding: 6px 6px 8px;
    }

    .category-scroll-img {
        width: 56px;
        height: 56px;
    }

    .category-scroll-img img {
        width: 42px;
        height: 42px;
    }

    .category-scroll-label {
        font-size: 11px;
        max-width: 76px;
    }
}

/* ===================================================
   HILANGKAN FLOATING CHAT DI MOBILE
   =================================================== */
@media (max-width: 767.98px) {

    #chat-widget,
    .chat-widget {
        display: none !important;
    }
}


/* ===================================================
   COMPACT LAYOUT MOBILE — kurangi padding & margin
   =================================================== */
@media (max-width: 767.98px) {

    /* Hero slider lebih rapat */
    .hero-section {
        padding-top: 6px !important;
        padding-bottom: 4px !important;
    }

    .hero-section .container {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .hero-slider-wrap {
        border-radius: 0 !important;
    }

    .hero-slider-dots {
        margin-top: 6px !important;
    }

    /* Products section lebih rapat */
    .col-wd-auto.max-width-1130 {
        padding-left: 8px !important;
        padding-right: 8px !important;
    }

    .mb-6 {
        margin-bottom: 1rem !important;
    }

    /* Tab nav lebih rapat */
    #pills-tab .nav-link {
        padding: 5px 12px !important;
        font-size: 12px !important;
    }

    /* Container global lebih rapat */
    .container {
        padding-left: 8px !important;
        padding-right: 8px !important;
    }
}


/* ===================================================
   BANNER FULL WIDTH FRAMELESS
   =================================================== */
.hero-banner-fullwidth {
    width: 100%;
    overflow: hidden;
    line-height: 0;
    background: #000;
}

.hero-banner-fullwidth .hero-slider-wrap {
    border-radius: 0 !important;
    box-shadow: none !important;
}

.hero-banner-fullwidth .hero-slider-slide img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

@media (min-width: 768px) {
    .hero-banner-fullwidth .hero-slider-slide img {
        height: 320px;
    }
}

@media (min-width: 1200px) {
    .hero-banner-fullwidth .hero-slider-slide img {
        height: 400px;
    }
}

.hero-banner-fullwidth .hero-slider-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    margin-top: 0;
}

.hero-banner-fullwidth {
    position: relative;
}

/* ===================================================
   ETALASE TOKO — full width sticky dropdown
   =================================================== */
.etalase-bar {
    position: sticky;
    top: 0;
    z-index: 210;
    background: #fff;
    border-bottom: 1px solid #e8e8e8;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.etalase-bar__trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0 14px;
    height: 42px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    color: #333;
    text-align: left;
}

.etalase-bar__label {
    flex: 1;
}

.etalase-bar__chevron {
    flex-shrink: 0;
    transition: transform 0.25s ease;
    color: #666;
}

.etalase-bar.open .etalase-bar__chevron {
    transform: rotate(180deg);
}

/* Panel dropdown full width */
.etalase-panel {
    display: none;
    position: absolute;
    top: 42px;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid #f0f0f0;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    z-index: 300;
    max-height: 60vh;
    overflow-y: auto;
    padding: 12px 8px 16px;
}

.etalase-bar.open .etalase-panel {
    display: block;
}

/* Grid kategori di dalam panel */
.etalase-panel__grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
}

@media (min-width: 768px) {
    .etalase-panel__grid {
        grid-template-columns: repeat(8, 1fr);
    }
}

.etalase-cat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #333;
    padding: 6px 4px;
    border-radius: 8px;
    transition: background 0.15s;
    gap: 4px;
}

.etalase-cat-item:hover {
    background: #f5f5f5;
    text-decoration: none;
    color: #333;
}

.etalase-cat-item__img {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: #f5f5f5;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.etalase-cat-item__img img {
    width: 38px;
    height: 38px;
    object-fit: contain;
}

.etalase-cat-item__name {
    font-size: 10px;
    text-align: center;
    line-height: 1.3;
    color: #444;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    max-width: 60px;
}

/* ===================================================
   PRODUCT TAB BAR — tab + layout toggle
   =================================================== */
.product-tab-bar {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-bottom: 1px solid #f0f0f0;
    position: sticky;
    top: 42px;
    /* tepat di bawah etalase bar */
    z-index: 200;
}

.product-tab-bar__tabs {
    flex: none;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    border-bottom: 1px solid #f0f0f0;
}

.product-tab-bar__tabs::-webkit-scrollbar {
    display: none;
}

.product-tabs {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0 4px;
    height: 40px;
    align-items: stretch;
    flex-wrap: nowrap;
    white-space: nowrap;
}

.product-tabs li {
    display: flex;
    align-items: stretch;
    flex-shrink: 0;
}

.product-tab {
    display: flex;
    align-items: center;
    padding: 0 12px;
    font-size: 12px;
    font-weight: 500;
    color: #666;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: color 0.15s, border-color 0.15s;
    white-space: nowrap;
}

.product-tab:hover {
    color: #333;
    text-decoration: none;
}

.product-tab.active {
    color: #d4a017;
    border-bottom-color: #d4a017;
    font-weight: 700;
}

/* Baris 2: Tampilan di kanan */
.product-tab-bar__toggle {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 4px 10px;
    height: 30px;
}

/* "Tampilan ☰" — teks biasa clickable */
.tampilan-toggle {
    display: flex;
    align-items: center;
    gap: 5px;
    text-decoration: none;
    color: #555;
    cursor: pointer;
    user-select: none;
}

.tampilan-toggle:hover,
.tampilan-toggle:focus {
    text-decoration: none;
    color: #222;
}

.tampilan-toggle__text {
    font-size: 12px;
    font-weight: 500;
    color: #555;
    white-space: nowrap;
}

.tampilan-toggle__icon {
    display: flex;
    align-items: center;
    color: #555;
}

/* Sticky offset: etalase (42px) + tab bar (70px) */
@media (max-width: 767.98px) {
    .product-tab-bar {
        top: 42px;
    }
}

/* ===================================================
   PRODUCT SECTION & GRID
   =================================================== */
.product-section {
    background: #f5f5f5;
    min-height: 60vh;
    padding: 0 0 80px;
}

/* Default: 2 kolom */
.product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
    padding: 6px;
    list-style: none;
    margin: 0;
    background: #f5f5f5;
}

/* 1 kolom */
.product-grid.layout-1 {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 0;
    background: #f5f5f5;
}

/* Desktop */
@media (min-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 10px;
        padding: 10px;
    }

    .product-grid.layout-1 {
        grid-template-columns: 1fr;
        gap: 0;
        padding: 0;
    }
}

@media (min-width: 1200px) {
    .product-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* ===================================================
   CARD — BASE (shared 1 & 2 kolom)
   =================================================== */
.toko-card {
    background: #fff;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.15s;
    overflow: hidden;
    border-radius: 8px;
}

.toko-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    color: inherit;
}

/* Gambar square */
.toko-card__img-wrap {
    position: relative;
    width: 100%;
    padding-top: 100%;
    overflow: hidden;
    background: #f5f5f5;
    flex-shrink: 0;
}

.toko-card__img-wrap img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.toko-card:hover .toko-card__img-wrap img {
    transform: scale(1.03);
}

/* Badge diskon pojok kanan atas */
.toko-card__badge {
    position: absolute;
    top: 6px;
    right: 6px;
    background: #ff5722;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 5px;
    border-radius: 4px;
    line-height: 1.4;
    z-index: 1;
}

/* Body */
.toko-card__body {
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex: 1;
}

.toko-card__name {
    font-size: 12px;
    color: #212121;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
}

/* Rating + terjual */
.toko-card__meta {
    display: flex;
    align-items: center;
    gap: 3px;
    font-size: 10px;
    color: #9e9e9e;
}

.toko-card__star {
    color: #ffc107;
}

/* Harga */
.toko-card__price-row {
    display: flex;
    align-items: baseline;
    gap: 4px;
    flex-wrap: wrap;
    margin-top: 2px;
}

.toko-card__price {
    font-size: 13px;
    font-weight: 700;
    color: #d32f2f;
}

.toko-card__price-original {
    font-size: 10px;
    color: #9e9e9e;
    text-decoration: line-through;
}

.toko-card__discount {
    font-size: 10px;
    font-weight: 700;
    color: #ff5722;
}

/* Footer 2 kolom: harga kiri + tombol cart kanan, 1 baris */
.toko-card__footer {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 6px;
    gap: 4px;
}

.toko-card__price-col {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}

.toko-card__btn-cart-sm {
    width: 34px;
    height: 34px;
    border: 1.5px solid #c8960c;
    border-radius: 8px;
    background: #fff;
    color: #c8960c;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.15s;
    flex-shrink: 0;
}

.toko-card__btn-cart-sm:hover {
    background: #fffbea;
}

/* Tombol aksi — hidden di 2 kolom */
.toko-card__actions {
    display: none;
}

.toko-card__cart-2col {
    display: none;
}

/* ===================================================
   CARD 1 KOLOM — horizontal list persis referensi
   =================================================== */
.product-grid.layout-1>li {
    background: #fff;
    border-bottom: 8px solid #f5f5f5;
}

/* Override: card jadi horizontal */
.product-grid.layout-1 .toko-card {
    flex-direction: row !important;
    border-radius: 0;
    min-height: 0;
    align-items: flex-start;
    padding: 12px;
    gap: 12px;
}

/* Gambar kiri — reset padding-top dari base, pakai width+height fixed */
.product-grid.layout-1 .toko-card__img-wrap {
    position: relative !important;
    width: 120px !important;
    min-width: 120px !important;
    height: 120px !important;
    padding-top: 0 !important;
    border-radius: 10px;
    flex-shrink: 0;
    overflow: hidden;
    background: #f5f5f5;
}

.product-grid.layout-1 .toko-card__img-wrap img {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    border-radius: 10px;
}

/* Badge pojok kanan atas gambar */
.product-grid.layout-1 .toko-card__badge {
    top: 6px;
    right: 6px;
    left: auto;
    font-size: 10px;
}

/* Body kanan */
.product-grid.layout-1 .toko-card__body {
    padding: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-height: 0;
}

/* Judul */
.product-grid.layout-1 .toko-card__name {
    font-size: 13px;
    font-weight: 400;
    color: #212121;
    -webkit-line-clamp: 2;
    line-height: 1.4;
}

/* Rating + terjual */
.product-grid.layout-1 .toko-card__meta {
    font-size: 11px;
    color: #9e9e9e;
}

/* Harga: coret kecil di atas, merah bold di bawah */
.product-grid.layout-1 .toko-card__price-row {
    flex-direction: column !important;
    align-items: flex-start;
    gap: 0;
    margin-top: 4px;
}

.product-grid.layout-1 .toko-card__price-original {
    font-size: 11px;
    color: #9e9e9e;
    text-decoration: line-through;
    order: 1;
}

.product-grid.layout-1 .toko-card__price {
    font-size: 15px;
    font-weight: 700;
    color: #d32f2f;
    order: 2;
}

.product-grid.layout-1 .toko-card__discount {
    display: none;
}

/* Sembunyikan tombol cart kecil (2 kolom) */
.product-grid.layout-1 .toko-card__cart-2col {
    display: none !important;
}

/* Tombol cart+beli: rata kanan bawah */
.product-grid.layout-1 .toko-card__actions {
    display: flex !important;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    margin-top: auto;
    padding-top: 8px;
}

/* Tombol cart — border kuning, ikon kuning */
.toko-card__btn-cart {
    width: 40px;
    height: 40px;
    border: 1.5px solid #fed700;
    border-radius: 8px;
    background: #fff;
    color: #fed700;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.15s;
}

.toko-card__btn-cart:hover {
    background: #fffbea;
}

/* Tombol Beli — kuning solid, teks hitam */
.toko-card__btn-buy {
    min-width: 56px;
    height: 40px;
    padding: 0 14px;
    background: #fed700;
    color: #212121;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
    line-height: 40px;
    text-decoration: none;
    display: block;
    flex-shrink: 0;
    transition: background 0.15s;
}

.toko-card__btn-buy:hover {
    background: #f5cc00;
    color: #212121;
    text-decoration: none;
}

/* ===================================================
   CARD LIST — Layout 1 Kolom (HTML terpisah dari toko-card)
   =================================================== */
.card-list-item {
    background: #fff;
    border-bottom: 8px solid #f5f5f5;
    list-style: none;
}

.card-list {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    padding: 12px;
    gap: 12px;
    text-decoration: none;
    color: inherit;
}

/* Gambar kiri */
.card-list__img-link {
    flex-shrink: 0;
    text-decoration: none;
}

.card-list__img-wrap {
    position: relative;
    width: 120px;
    height: 120px;
    border-radius: 10px;
    overflow: hidden;
    background: #f5f5f5;
    flex-shrink: 0;
}

.card-list__img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 10px;
}

/* Badge diskon pojok kanan atas gambar */
.card-list__img-wrap .toko-card__badge {
    position: absolute;
    top: 6px;
    right: 6px;
    left: auto;
}

/* Body kanan */
.card-list__body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.card-list__name {
    font-size: 13px;
    font-weight: 400;
    color: #212121;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-decoration: none;
}

.card-list__name:hover {
    text-decoration: none;
    color: #212121;
}

.card-list__meta {
    display: flex;
    align-items: center;
    gap: 3px;
    font-size: 11px;
    color: #9e9e9e;
}

.card-list__meta .toko-card__star {
    color: #ffc107;
}

/* Harga: coret kecil di atas, merah bold di bawah */
.card-list__prices {
    display: flex;
    flex-direction: column;
    gap: 1px;
    margin-top: 4px;
}

.card-list__price-original {
    font-size: 11px;
    color: #9e9e9e;
    text-decoration: line-through;
}

.card-list__price {
    font-size: 16px;
    font-weight: 700;
    color: #d32f2f;
}

/* Tombol cart + beli — rata kanan bawah */
.card-list__actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    margin-top: auto;
    padding-top: 6px;
}

.card-list__btn-cart {
    width: 40px;
    height: 40px;
    border: 1.5px solid #fed700;
    border-radius: 8px;
    background: #fff;
    color: #fed700;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.15s;
}

.card-list__btn-cart:hover {
    background: #fffbea;
}

.card-list__btn-buy {
    min-width: 56px;
    height: 40px;
    padding: 0 16px;
    background: #fed700;
    color: #212121;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
    line-height: 40px;
    text-decoration: none;
    display: block;
    flex-shrink: 0;
    transition: background 0.15s;
}

.card-list__btn-buy:hover {
    background: #f5cc00;
    color: #212121;
    text-decoration: none;
}

/* ===================================================
   PRODUCT DETAIL PAGE — Mobile First
   =================================================== */
.pd-page {
    background: #f5f5f5;
    padding-bottom: 80px;
}

/* --- Media (slider) --- */
.pd-media {
    background: #fff;
    margin-bottom: 8px;
}

.pd-slider-main .js-slide img,
.pd-slider-main img {
    width: 100%;
    max-height: 380px;
    object-fit: contain;
    background: #fff;
}

.pd-slider-thumb {
    padding: 6px 8px;
}

.pd-slider-thumb .js-slide img {
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    border: 2px solid transparent;
    cursor: pointer;
}

.pd-slider-thumb .js-slide.slick-current img {
    border-color: #fed700;
}

/* --- Info block --- */
.pd-info {
    background: #fff;
    padding: 14px 14px 14px;
    margin-bottom: 8px;
}

margin-bottom: 8px;
}

/* Harga */
.pd-price-block {
    margin-bottom: 6px;
}

.pd-price-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
}

.pd-price-sale {
    font-size: 22px;
    font-weight: 700;
    color: #d32f2f;
}

.pd-price-original {
    font-size: 13px;
    color: #9e9e9e;
    text-decoration: line-through;
}

.pd-discount {
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    background: #ff5722;
    padding: 2px 6px;
    border-radius: 4px;
}

/* Nama + wishlist */
.pd-name-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 6px;
}

.pd-name {
    font-size: 15px;
    font-weight: 500;
    color: #212121;
    line-height: 1.4;
    margin: 0;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pd-wishlist-btn {
    background: none;
    border: none;
    padding: 2px;
    cursor: pointer;
    color: #9e9e9e;
    flex-shrink: 0;
    transition: color 0.2s;
}

.pd-wishlist-btn:hover,
.pd-wishlist-btn.active {
    color: #e53935;
}

/* Rating + meta */
.pd-meta-row {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #9e9e9e;
    flex-wrap: wrap;
}

.pd-stars {
    color: #ffc107;
    font-size: 12px;
}

.pd-dot {
    color: #ccc;
}

/* Breadcrumb */
.pd-breadcrumb {
    margin-top: 8px;
    font-size: 11px;
}

.pd-breadcrumb .breadcrumb {
    background: none;
    padding: 0;
    margin: 0;
    font-size: 11px;
}

/* --- Section blocks --- */
.pd-section {
    background: #fff;
    margin-bottom: 8px;
    padding: 14px;
}

.pd-section__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.pd-section__title {
    font-size: 14px;
    font-weight: 700;
    color: #212121;
}

.pd-section__link {
    font-size: 12px;
    color: #d4a017;
    text-decoration: none;
}

.pd-section__link:hover {
    text-decoration: underline;
}

/* --- Deskripsi --- */
.pd-desc-text {
    font-size: 13px;
    color: #444;
    line-height: 1.6;
    white-space: pre-wrap;
}

.pd-desc-collapsed {
    max-height: 90px;
    overflow: hidden;
    position: relative;
}

.pd-desc-collapsed::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: linear-gradient(transparent, #fff);
}

.pd-desc-toggle {
    background: none;
    border: none;
    color: #d4a017;
    font-size: 13px;
    font-weight: 600;
    padding: 6px 0 0;
    cursor: pointer;
    display: block;
}

/* --- Rating summary --- */
.pd-rating-summary {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 12px;
}

.pd-rating-avg {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
    min-width: 60px;
}

.pd-rating-big {
    font-size: 32px;
    font-weight: 700;
    color: #212121;
    line-height: 1;
}

.pd-rating-breakdown {
    flex: 1;
    margin: 0;
}

.pd-rating-breakdown li {
    margin-bottom: 4px;
}

/* --- Reviews --- */
.pd-reviews .border-bottom {
    padding-bottom: 12px;
    margin-bottom: 12px;
}

/* --- Review form --- */
.pd-review-form {
    margin-top: 16px;
    border-top: 1px solid #f0f0f0;
    padding-top: 14px;
}

.pd-review-form__title {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 10px;
}

.pd-star-picker {
    margin-bottom: 10px;
}

/* --- Related products grid --- */
.pd-related-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Related product card pakai toko-card style */
.pd-related-grid .toko-card {
    border-radius: 8px;
}

/* --- STICKY BOTTOM BAR --- */
.pd-bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1100;
    background: #fff;
    border-top: 1px solid #e8e8e8;
    display: flex;
    align-items: stretch;
    height: 56px;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.08);
}

.pd-bottom-bar__chat {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
    background: none;
    border: none;
    border-right: 1px solid #f0f0f0;
    cursor: pointer;
    flex-shrink: 0;
    gap: 2px;
    font-size: 10px;
    color: #555;
    border: 1.5px solid #B2BEB5;
    margin: 8px;
    border-radius: 8px;
    transition: background 0.15s;
}

.pd-bottom-bar__logo {
    height: 22px;
    width: auto;
    object-fit: contain;
}

.pd-bottom-bar__buy {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1.5px solid #fed700;
    color: #212121;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    margin: 8px 4px 8px 8px;
    border-radius: 8px;
    transition: background 0.15s;
}

.pd-bottom-bar__buy:hover {
    background: #fffbea;
    text-decoration: none;
    color: #212121;
}

.pd-bottom-bar__cart {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fed700;
    border: none;
    color: #212121;
    font-size: 13px;
    font-weight: 700;
    margin: 8px 8px 8px 4px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.15s;
}

.pd-bottom-bar__cart:hover {
    background: #f5cc00;
}

/* Desktop: sembunyikan sticky bar */
@media (min-width: 768px) {
    .pd-bottom-bar {
        display: none !important;
    }

    .pd-page {
        padding-bottom: 0;
    }

    .pd-info {
        padding: 20px;
    }

    .pd-name {
        font-size: 20px;
        -webkit-line-clamp: unset;
    }

    .pd-price-sale {
        font-size: 28px;
    }

    .pd-related-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ===================================================
   PRODUCT VARIANT SELECTOR
   =================================================== */
.pd-variant-group {
    margin-bottom: 14px;
}

.pd-variant-group__label {
    font-size: 13px;
    font-weight: 600;
    color: #212121;
    margin-bottom: 8px;
}

.pd-variant-selected {
    font-weight: 400;
    color: #555;
}

.pd-variant-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* Tombol opsi teks (Size, dll) */
.pd-variant-opt {
    min-width: 44px;
    height: 36px;
    padding: 0 12px;
    border: 1.5px solid #e0e0e0;
    border-radius: 6px;
    background: #fff;
    font-size: 13px;
    color: #333;
    cursor: pointer;
    transition: all 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.pd-variant-opt:hover {
    border-color: #fed700;
    color: #212121;
}

.pd-variant-opt.active {
    border-color: #fed700;
    background: #fffbea;
    color: #212121;
    font-weight: 600;
}

/* Opsi dengan gambar (Warna) */
.pd-variant-opt--img {
    width: 56px;
    height: 56px;
    padding: 3px;
    border-radius: 8px;
    flex-direction: column;
    font-size: 10px;
}

.pd-variant-opt--img img {
    width: 36px;
    height: 36px;
    object-fit: cover;
    border-radius: 4px;
}

.pd-variant-opt--img.active {
    border-color: #fed700;
    box-shadow: 0 0 0 2px #fed700;
}

/* ===================================================
   ULASAN PEMBELI — wireframe style
   =================================================== */
.pd-review-summary__row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.pd-review-avg {
    font-size: 22px;
    font-weight: 700;
    color: #212121;
}

.pd-review-stars {
    font-size: 13px;
}

.pd-review-meta {
    font-size: 12px;
    color: #9e9e9e;
}

/* Foto review — horizontal scroll */
.pd-review-photos {
    margin-bottom: 10px;
}

.pd-review-photos__track {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 4px;
}

.pd-review-photos__track::-webkit-scrollbar {
    display: none;
}

.pd-review-photo {
    flex-shrink: 0;
    width: 90px;
    height: 90px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e8e8e8;
    background: #f5f5f5;
}

.pd-review-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Teks ulasan pertama */
.pd-review-first__text {
    font-size: 13px;
    color: #444;
    line-height: 1.5;
    margin: 0;
    font-style: italic;
}

/* Full review list */
.pd-review-item {
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.pd-review-item:last-child {
    border-bottom: none;
}

.pd-review-item__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.pd-review-item__name {
    font-size: 13px;
    font-weight: 600;
    color: #212121;
}

.pd-review-item__date {
    font-size: 11px;
    color: #9e9e9e;
}

.pd-review-item__stars {
    font-size: 12px;
    margin-bottom: 6px;
}

.pd-review-item__comment {
    font-size: 13px;
    color: #444;
    line-height: 1.5;
    margin: 6px 0 0;
}

/* ===================================================
   REVIEW UPLOAD AREA
   =================================================== */
.pd-upload-area {
    margin-bottom: 12px;
}

.pd-upload-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    border: 1.5px dashed #d0d0d0;
    border-radius: 10px;
    padding: 16px;
    cursor: pointer;
    color: #888;
    transition: border-color 0.2s, background 0.2s;
    text-align: center;
}

.pd-upload-label:hover {
    border-color: #fed700;
    background: #fffbea;
    color: #555;
}

.pd-upload-label svg {
    color: #bbb;
}

.pd-upload-label span {
    font-size: 13px;
    font-weight: 500;
}

.pd-upload-label small {
    font-size: 11px;
    color: #aaa;
}

/* Preview grid */
.pd-upload-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.pd-upload-item {
    position: relative;
    width: 72px;
    height: 72px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e8e8e8;
    background: #f5f5f5;
}

.pd-upload-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.pd-upload-type {
    position: absolute;
    bottom: 2px;
    left: 2px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    padding: 1px 4px;
    border-radius: 3px;
}

/* ===================================================
   DESKTOP FIXES (min-width: 768px)
   Tidak mengubah mobile style
   =================================================== */
@media (min-width: 768px) {

    /* --- Sembunyikan chat widget floating di semua ukuran --- */
    #chat-widget,
    .chat-widget {
        display: none !important;
    }

    /* --- Banner: beri max-width dan center, tidak full bleed --- */
    .hero-banner-fullwidth {
        max-width: 1320px;
        margin: 0 auto;
        border-radius: 0;
    }

    .hero-banner-fullwidth .hero-slider-slide img {
        height: 400px;
        object-fit: cover;
    }

    /* --- Etalase bar: max-width container --- */
    .etalase-bar {
        max-width: 1320px;
        margin: 0 auto;
        position: relative;
        /* tidak sticky di desktop */
    }

    .etalase-bar__trigger {
        padding: 0 24px;
        height: 48px;
        font-size: 14px;
    }

    /* --- Product tab bar: max-width --- */
    .product-tab-bar {
        max-width: 1320px;
        margin: 0 auto;
        position: relative;
        /* tidak sticky di desktop */
        top: auto;
    }

    .product-tab {
        font-size: 14px;
        padding: 0 16px;
    }

    /* --- Category scroll: max-width --- */
    .category-scroll-section {
        max-width: 1320px;
        margin: 0 auto;
    }

    /* --- Product section: max-width --- */
    .product-section {
        max-width: 1320px;
        margin: 0 auto;
    }

    /* --- Product grid desktop: 4 kolom default --- */
    .product-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 12px;
        padding: 12px;
    }

    /* --- Tampilan toggle: sembunyikan di desktop --- */
    .product-tab-bar__toggle {
        display: none;
    }

    /* --- Etalase panel: relative bukan absolute di desktop --- */
    .etalase-panel {
        position: relative;
        top: auto;
        box-shadow: none;
        border: 1px solid #f0f0f0;
        border-top: none;
        max-height: none;
    }

    /* --- Mobile header: sembunyikan di desktop --- */
    .mobile-header {
        display: none !important;
    }

    /* --- Mobile bottom nav: sembunyikan di desktop --- */
    .mobile-bottom-nav {
        display: none !important;
    }

    /* --- Content padding bawah: reset --- */
    #content {
        padding-bottom: 0 !important;
    }
}

/* Sembunyikan chat widget di semua ukuran layar */
#chat-widget,
.chat-widget {
    display: none !important;
}

/* Breadcrumb compact — product detail */
.pd-breadcrumb .breadcrumb {
    padding: 6px 0;
    margin: 0;
    background: none;
    font-size: 11px;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    align-items: center;
}

.pd-breadcrumb .breadcrumb::-webkit-scrollbar {
    display: none;
}

.pd-breadcrumb .breadcrumb-item {
    padding-left: 0;
    white-space: nowrap;
    display: flex;
    align-items: center;
    line-height: 1;
}

.pd-breadcrumb .breadcrumb-item+.breadcrumb-item {
    padding-left: 4px;
}

.pd-breadcrumb .breadcrumb-item+.breadcrumb-item::before {
    padding-right: 4px;
    padding-bottom: 0;
    color: #aaa;
    content: "›";
    float: none;
    line-height: 1;
    vertical-align: middle;
    position: relative;
    top: -1px;
    margin-bottom: 4px;
}

.pd-breadcrumb .breadcrumb-item a {
    color: #666;
    text-decoration: none;
    line-height: 1;
}

.pd-breadcrumb .breadcrumb-item a:hover {
    color: #333;
}

.pd-breadcrumb .breadcrumb-item.active {
    color: #999;
    line-height: 1;
}

/* Override theme.min.css breadcrumb padding */
.pd-breadcrumb .breadcrumb-item + .breadcrumb-item a,
.pd-breadcrumb .breadcrumb-item a {
    padding: 0 !important;
    background-color: transparent !important;
    border-radius: 0 !important;
}

/* ===================================================
   SKELETON LOADING — shimmer animation
   =================================================== */
.sk {
    background: #e8e8e8;
    border-radius: 6px;
    position: relative;
    overflow: hidden;
}

.sk::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(255,255,255,0) 0%,
        rgba(255,255,255,0.55) 50%,
        rgba(255,255,255,0) 100%
    );
    transform: translateX(-100%);
    animation: sk-shimmer 1.4s infinite ease-in-out;
}

@keyframes sk-shimmer {
    100% { transform: translateX(100%); }
}

/* --- Home product grid skeleton --- */
.sk-product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
    padding: 6px;
    list-style: none;
    margin: 0;
    background: #f5f5f5;
}

@media (min-width: 768px) {
    .sk-product-grid { grid-template-columns: repeat(4, 1fr); gap: 10px; padding: 10px; }
}

.sk-product-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
}

.sk-product-card__img {
    width: 100%;
    padding-top: 100%;
}

.sk-product-card__body {
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* --- Detail page skeleton --- */
.sk-detail-media {
    width: 100%;
    height: 320px;
    background: #e8e8e8;
}

.sk-detail-info {
    background: #fff;
    padding: 14px;
    margin-bottom: 8px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Back to top — naik di atas bottom nav saat di halaman home mobile */
@media (max-width: 767.98px) {
    .page-home .u-go-to,
    .page-home .js-go-to {
        bottom: 66px !important; /* 56px bottom nav + 10px gap */
    }
}

/* ===================================================
   IMAGE SKELETON — shimmer saat gambar belum terload
   =================================================== */

/* Semua img yang ada di dalam wrapper slider/thumb */
.pd-slider-thumb .js-slide,
#sliderSyncingThumb .js-slide {
    position: relative;
    background: #e8e8e8;
    border-radius: 6px;
    overflow: hidden;
}

/* Shimmer sebelum gambar load */
.pd-slider-thumb .js-slide::before,
#sliderSyncingThumb .js-slide::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(255,255,255,0) 0%,
        rgba(255,255,255,0.55) 50%,
        rgba(255,255,255,0) 100%
    );
    transform: translateX(-100%);
    animation: sk-shimmer 1.4s infinite ease-in-out;
    z-index: 1;
}

/* Hilangkan shimmer setelah gambar load */
.pd-slider-thumb .js-slide img,
#sliderSyncingThumb .js-slide img {
    position: relative;
    z-index: 2;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #e8e8e8;
}

/* Gambar utama slider juga */
#sliderSyncingNav .js-slide {
    position: relative;
    background: #e8e8e8;
    overflow: hidden;
    min-height: 200px;
}

#sliderSyncingNav .js-slide::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(255,255,255,0) 0%,
        rgba(255,255,255,0.55) 50%,
        rgba(255,255,255,0) 100%
    );
    transform: translateX(-100%);
    animation: sk-shimmer 1.4s infinite ease-in-out;
    z-index: 1;
}

#sliderSyncingNav .js-slide img {
    position: relative;
    z-index: 2;
    background: #e8e8e8;
}

/* Setelah gambar loaded — sembunyikan shimmer via JS */
.img-loaded::before {
    display: none !important;
}

/* ===================================================
   HALAMAN CHAT — full page mobile style
   =================================================== */
.chat-page {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 0px);
    background: #f5f5f5;
    position: relative;
    overflow: hidden;
}

/* Header */
.chat-page__header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: #fff;
    border-bottom: 1px solid #f0f0f0;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    flex-shrink: 0;
    z-index: 10;
}

.chat-page__back {
    color: #333;
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

.chat-page__logo {
    height: 32px;
    width: auto;
    object-fit: contain;
    border-radius: 6px;
}

.chat-page__header-info {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.chat-page__shop-name {
    font-size: 14px;
    font-weight: 700;
    color: #212121;
    line-height: 1.2;
}

.chat-page__status-row {
    display: flex;
    align-items: center;
    gap: 5px;
}

.chat-page__status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #bbb;
    flex-shrink: 0;
    transition: background 0.3s;
}

.chat-page__status-text {
    font-size: 11px;
    color: #888;
}

/* Queue Banner */
.chat-page__queue-banner {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: #fff8e1;
    border-bottom: 1px solid #ffe082;
    font-size: 12px;
    color: #856404;
    flex-shrink: 0;
}

/* Messages */
.chat-page__messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    -webkit-overflow-scrolling: touch;
}

/* Welcome */
.chat-page__welcome {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    text-align: center;
    color: #888;
    padding: 40px 20px;
}

.chat-page__welcome-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.chat-page__welcome p {
    font-size: 14px;
    line-height: 1.6;
    color: #666;
}

/* Guest form */
.chat-page__guest-form {
    background: #fff;
    border-radius: 12px;
    padding: 16px;
    margin: 8px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.chat-page__guest-form p {
    font-size: 13px;
    color: #555;
    margin-bottom: 8px;
}

/* Bubbles */
.chat-page__bubble {
    max-width: 75%;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.chat-page__bubble.sent {
    align-self: flex-end;
    align-items: flex-end;
}

.chat-page__bubble.recv {
    align-self: flex-start;
    align-items: flex-start;
}

.chat-page__bubble-name {
    font-size: 10px;
    color: #888;
    padding: 0 4px;
}

.chat-page__bubble-text {
    padding: 10px 14px;
    border-radius: 18px;
    font-size: 14px;
    line-height: 1.4;
    word-break: break-word;
}

.sent .chat-page__bubble-text {
    background: #fed700;
    color: #212121;
    border-bottom-right-radius: 4px;
}

.recv .chat-page__bubble-text {
    background: #fff;
    color: #212121;
    border-bottom-left-radius: 4px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.chat-page__bubble-time {
    font-size: 10px;
    color: #aaa;
    padding: 0 4px;
}

/* Typing */
.chat-page__typing {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    font-size: 12px;
    color: #888;
    flex-shrink: 0;
}

.chat-page__typing-dots {
    display: flex;
    gap: 3px;
}

.chat-page__typing-dots span {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #bbb;
    animation: typingBounce 1.4s infinite ease-in-out both;
}
.chat-page__typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.chat-page__typing-dots span:nth-child(3) { animation-delay: 0.4s; }

/* Quick Replies */
.chat-page__quick-replies {
    display: flex;
    gap: 8px;
    padding: 8px 12px;
    overflow-x: auto;
    scrollbar-width: none;
    flex-shrink: 0;
    background: #f5f5f5;
}
.chat-page__quick-replies::-webkit-scrollbar { display: none; }

.chat-page__quick-btn {
    flex-shrink: 0;
    padding: 6px 14px;
    border: 1.5px solid #fed700;
    border-radius: 20px;
    background: #fff;
    font-size: 12px;
    color: #333;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s;
}
.chat-page__quick-btn:hover { background: #fffbea; }

/* Input Bar */
.chat-page__input-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    background: #fff;
    border-top: 1px solid #f0f0f0;
    flex-shrink: 0;
    padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
}

.chat-page__input {
    flex: 1;
    padding: 10px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 24px;
    font-size: 14px;
    outline: none;
    background: #f5f5f5;
    transition: border-color 0.2s, background 0.2s;
}
.chat-page__input:focus { border-color: #fed700; background: #fff; }
.chat-page__input:disabled { opacity: 0.6; }

.chat-page__send-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #fed700;
    border: none;
    color: #212121;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.15s;
}
.chat-page__send-btn:hover { background: #f5cc00; }

/* Desktop: tampilkan sebagai panel centered */
@media (min-width: 768px) {
    .chat-page {
        max-width: 480px;
        margin: 20px auto;
        height: calc(100vh - 160px);
        border-radius: 16px;
        box-shadow: 0 8px 32px rgba(0,0,0,0.12);
        overflow: hidden;
    }
}

/* Sembunyikan mobile header & footer di halaman chat */
.page-chat .mobile-header,
.page-chat .mobile-header.d-md-none,
.page-chat footer,
.page-chat .mobile-bottom-nav,
.page-chat #header,
.page-chat .floating-cart,
.page-chat .floating-home {
    display: none !important;
}
.page-chat #header,
.page-chat .floating-cart,
.page-chat .floating-home {
    display: none !important;
}

.page-chat #content {
    padding: 0 !important;
}

/* ===================================================
   CHAT PRODUCT CARD
   =================================================== */
.chat-product-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: #fff;
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
    flex-shrink: 0;
}

.chat-product-card__img-wrap {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #f0f0f0;
    background: #f5f5f5;
    display: block;
}

.chat-product-card__img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.chat-product-card__info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.chat-product-card__name {
    font-size: 13px;
    color: #212121;
    font-weight: 500;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.3;
}
.chat-product-card__name:hover { text-decoration: none; color: #212121; }

.chat-product-card__price {
    font-size: 13px;
    font-weight: 700;
    color: #d32f2f;
}

.chat-product-card__close {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #f5f5f5;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #888;
    transition: background 0.15s;
}
.chat-product-card__close:hover { background: #e0e0e0; color: #333; }

/* ===================================================
   CHAT PRODUCT CARD — seperti Tokopedia
   =================================================== */
.chat-product-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: #fff;
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
    flex-shrink: 0;
}

.chat-product-card__img-wrap {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #f0f0f0;
    background: #f5f5f5;
    display: block;
}

.chat-product-card__img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.chat-product-card__info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.chat-product-card__name {
    font-size: 12px;
    color: #212121;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}
.chat-product-card__name:hover { text-decoration: none; color: #212121; }

.chat-product-card__price {
    font-size: 13px;
    font-weight: 700;
    color: #d32f2f;
}

.chat-product-card__close {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border: none;
    background: #f5f5f5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #888;
    transition: background 0.15s;
}
.chat-product-card__close:hover { background: #e0e0e0; }

/* ===================================================
   GLOBAL LOGIN MODAL
   =================================================== */
#globalLoginModal .modal-content {
    border: none;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

#globalLoginModal .modal-header {
    padding: 20px 24px 8px;
}

#globalLoginModal .modal-body {
    padding: 8px 24px 24px;
}

#globalLoginModal .form-control {
    border-radius: 8px;
    height: 44px;
    font-size: 14px;
}

#globalLoginModal .btn-primary {
    height: 44px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 15px;
}

/* ===================================================
   CHAT — Plus button & Attachment Panel
   =================================================== */
.chat-page__plus-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: none;
    color: #888;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: transform 0.2s, color 0.2s;
}
.chat-page__plus-btn:hover { color: #333; }
.chat-page__plus-btn.open {
    transform: rotate(45deg);
    color: #d32f2f;
}

/* Attachment Panel */
.chat-page__attach-panel {
    display: flex;
    justify-content: center;
    gap: 24px;
    padding: 16px 12px;
    background: #fff;
    border-top: 1px solid #f0f0f0;
    flex-shrink: 0;
}

.chat-page__attach-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    color: #555;
    transition: color 0.15s;
    padding: 8px 16px;
}
.chat-page__attach-item:hover { color: #1976d2; }

.chat-page__attach-item svg {
    width: 32px;
    height: 32px;
    padding: 6px;
    border-radius: 12px;
    background: #f5f5f5;
    transition: background 0.15s;
}
.chat-page__attach-item:hover svg { background: #e3f2fd; }

.chat-page__attach-item span {
    font-size: 11px;
    font-weight: 500;
}

/* ===================================================
   CHAT — Product Card as Bubble (inside messages)
   =================================================== */
.chat-bubble-product {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
    max-width: 260px;
}

.chat-bubble-product__link {
    display: flex;
    gap: 10px;
    padding: 10px;
    text-decoration: none;
    color: inherit;
}
.chat-bubble-product__link:hover { text-decoration: none; color: inherit; }

.chat-bubble-product__img {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background: #f5f5f5;
}
.chat-bubble-product__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.chat-bubble-product__info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.chat-bubble-product__name {
    font-size: 12px;
    color: #212121;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.chat-bubble-product__price {
    font-size: 14px;
    font-weight: 700;
    color: #d32f2f;
}

.chat-bubble-product__original {
    font-size: 11px;
    color: #9e9e9e;
    text-decoration: line-through;
}

.chat-bubble-product__actions {
    display: flex;
    gap: 0;
    border-top: 1px solid #f0f0f0;
}

.chat-bubble-product__btn-cart,
.chat-bubble-product__btn-buy {
    flex: 1;
    text-align: center;
    padding: 8px 0;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.15s;
}

.chat-bubble-product__btn-cart {
    color: #fed700;
    border-right: 1px solid #f0f0f0;
}
.chat-bubble-product__btn-cart:hover { background: #fffbea; text-decoration: none; color: #c8960c; }

.chat-bubble-product__btn-buy {
    background: #fed700;
    color: #212121;
    border-radius: 0 0 12px 0;
}
.chat-bubble-product__btn-buy:hover { background: #f5cc00; text-decoration: none; }

/* Sent bubble with product — no yellow bg */
.chat-page__bubble.sent .chat-bubble-product {
    margin: 0;
}
.chat-page__bubble.sent:has(.chat-bubble-product) .chat-page__bubble-text {
    display: none;
}
.chat-page__bubble.sent:has(.chat-bubble-product) {
    background: none;
}

/* Info bubble (queue, system messages) */
.chat-page__info-bubble {
    text-align: center;
    font-size: 12px;
    color: #888;
    padding: 8px 16px;
    background: #fff8e1;
    border-radius: 20px;
    margin: 8px auto;
    max-width: 280px;
}

/* ===================================================
   CHAT — Inline Product Card (above quick replies)
   =================================================== */
.chat-product-inline {
    background: #fff;
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
    padding: 10px 12px;
    flex-shrink: 0;
    position: relative;
}

.chat-product-inline__body {
    display: flex;
    gap: 10px;
    text-decoration: none;
    color: inherit;
}
.chat-product-inline__body:hover { text-decoration: none; color: inherit; }

.chat-product-inline__img {
    width: 72px;
    height: 72px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background: #f5f5f5;
}
.chat-product-inline__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.chat-product-inline__info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
    justify-content: center;
}

.chat-product-inline__name {
    font-size: 12px;
    color: #212121;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.chat-product-inline__price {
    font-size: 14px;
    font-weight: 700;
    color: #d32f2f;
}

.chat-product-inline__original {
    font-size: 11px;
    color: #9e9e9e;
    text-decoration: line-through;
}

.chat-product-inline__actions {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.chat-product-inline__btn-cart {
    flex: 1;
    text-align: center;
    padding: 8px 0;
    font-size: 12px;
    font-weight: 700;
    border: 1.5px solid #fed700;
    border-radius: 20px;
    color: #c8960c;
    text-decoration: none;
    transition: background 0.15s;
}
.chat-product-inline__btn-cart:hover { background: #fffbea; text-decoration: none; }

.chat-product-inline__btn-buy {
    flex: 1;
    text-align: center;
    padding: 8px 0;
    font-size: 12px;
    font-weight: 700;
    background: #fed700;
    border: none;
    border-radius: 20px;
    color: #212121;
    text-decoration: none;
    transition: background 0.15s;
}
.chat-product-inline__btn-buy:hover { background: #f5cc00; text-decoration: none; }

.chat-product-inline__close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 20px;
    height: 20px;
    border: none;
    background: #f0f0f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #888;
}
.chat-product-inline__close:hover { background: #ddd; }

/* Product bubble sent — no yellow bg, just the card */
.chat-page__bubble.sent:has(.chat-bubble-product) {
    background: none !important;
    max-width: 280px;
}

.chat-page__bubble.sent .chat-bubble-product .chat-page__bubble-text,
.chat-page__bubble.sent .chat-bubble-product .chat-page__bubble-time {
    display: none;
}

/* ===================================================
   CHAT — Product Preview (below quick replies)
   =================================================== */
.chat-product-preview {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: #fff;
    border-top: 1px solid #f0f0f0;
    flex-shrink: 0;
    position: relative;
}

.chat-product-preview__body {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
    text-decoration: none;
    color: inherit;
}
.chat-product-preview__body:hover { text-decoration: none; color: inherit; }

.chat-product-preview__img {
    width: 48px;
    height: 48px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
    background: #f5f5f5;
}
.chat-product-preview__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.chat-product-preview__info {
    flex: 1;
    min-width: 0;
}

.chat-product-preview__name {
    font-size: 12px;
    color: #212121;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chat-product-preview__price {
    font-size: 13px;
    font-weight: 700;
    color: #d32f2f;
}

.chat-product-preview__close {
    width: 20px;
    height: 20px;
    border: none;
    background: #f0f0f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #888;
    flex-shrink: 0;
}
.chat-product-preview__close:hover { background: #ddd; }


/* ===================================================
   REVIEW SLIDER (detail page — 3 kartu swipe)
   =================================================== */
.rv-slider-wrap {
    overflow: hidden;
    margin: 8px 0 4px;
    position: relative;
}

.rv-slider-track {
    display: flex;
    gap: 10px;
    transition: transform 0.35s cubic-bezier(0.23, 1, 0.32, 1);
    will-change: transform;
    padding: 2px 0 6px;
}

.rv-card {
    flex: 0 0 calc(85%);
    max-width: 280px;
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    padding: 12px 14px;
    box-shadow: 0 1px 6px rgba(0,0,0,0.06);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

@media (min-width: 480px) {
    .rv-card { flex: 0 0 calc(48%); }
}

.rv-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.rv-card__name {
    font-size: 13px;
    font-weight: 700;
    color: #212121;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    min-width: 0;
}

.rv-card__stars {
    display: flex;
    gap: 1px;
    flex-shrink: 0;
}
.rv-star--on { color: #f5a623; font-size: 13px; }
.rv-star--off { color: #ddd; font-size: 13px; }

.rv-card__comment {
    font-size: 12px;
    color: #555;
    line-height: 1.55;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ===================================================
   HALAMAN ULASAN DETAIL (/product/:slug/reviews)
   =================================================== */
.rvp-page {
    background: #f5f5f5;
    min-height: 100vh;
    padding-bottom: 20px;
}

/* Header */
.rvp-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #fff;
    display: flex;
    align-items: center;
    padding: 12px 14px;
    gap: 12px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.rvp-back {
    display: flex;
    align-items: center;
    color: #333;
    text-decoration: none;
    flex-shrink: 0;
}
.rvp-back:hover { color: #333; text-decoration: none; }

.rvp-header__title {
    flex: 1;
    font-size: 16px;
    font-weight: 700;
    color: #212121;
}

.rvp-header__cart {
    position: relative;
    color: #333;
    text-decoration: none;
    display: flex;
    align-items: center;
}
.rvp-header__cart:hover { color: #333; text-decoration: none; }

.rvp-header__cart-badge {
    position: absolute;
    top: -6px;
    right: -8px;
    min-width: 16px;
    height: 16px;
    background: #ee4d2d;
    color: #fff;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 3px;
}

/* Summary */
.rvp-summary {
    background: #fff8e8;
    padding: 14px 16px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 8px;
    border-bottom: 1px solid #f0e8cc;
}

.rvp-summary__left {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
    padding-top: 2px;
}

.rvp-summary__star-icon {
    font-size: 22px;
    line-height: 1;
}

.rvp-summary__avg {
    font-size: 28px;
    font-weight: 800;
    color: #212121;
    line-height: 1;
}

.rvp-summary__label {
    font-size: 13px;
    color: #888;
    align-self: flex-end;
    padding-bottom: 2px;
}

.rvp-summary__right {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.rvp-summary__satisfied {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    font-weight: 700;
    color: #212121;
}

.rvp-summary__meta {
    font-size: 12px;
    color: #888;
}

.rvp-summary__lihat {
    font-size: 13px;
    font-weight: 600;
    color: #2e7d32;
    text-decoration: none;
    margin-top: 2px;
    display: inline-block;
}
.rvp-summary__lihat:hover { text-decoration: underline; color: #2e7d32; }

/* Filter bar */
.rvp-filter-bar {
    background: #fff;
    padding: 10px 12px;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin-bottom: 8px;
    border-bottom: 1px solid #f0f0f0;
}
.rvp-filter-bar::-webkit-scrollbar { display: none; }

.rvp-filter-btn {
    flex-shrink: 0;
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid #e0e0e0;
    background: #fff;
    font-size: 12px;
    color: #555;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.15s;
}
.rvp-filter-btn.active {
    background: #212121;
    color: #fff;
    border-color: #212121;
    font-weight: 600;
}
.rvp-filter-btn:hover:not(.active) { background: #f5f5f5; }

/* Review items */
.rvp-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.rvp-item {
    background: #fff;
    padding: 16px;
    border-bottom: 8px solid #f5f5f5;
}

.rvp-item__top {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
}

.rvp-item__avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #fed700;
    color: #212121;
    font-size: 15px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.rvp-item__meta { flex: 1; }

.rvp-item__name {
    font-size: 13px;
    font-weight: 600;
    color: #212121;
    margin-bottom: 3px;
}

.rvp-item__stars {
    display: flex;
    align-items: center;
    gap: 4px;
}

.rvp-star { font-size: 14px; }
.rvp-star.on { color: #f5a623; }
.rvp-star.off { color: #ddd; }

.rvp-item__time {
    font-size: 11px;
    color: #999;
    margin-left: 4px;
}

.rvp-item__photos {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.rvp-item__photo {
    width: 90px;
    height: 90px;
    border-radius: 8px;
    overflow: hidden;
    background: #f5f5f5;
    flex-shrink: 0;
}
.rvp-item__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rvp-item__comment {
    font-size: 13px;
    color: #444;
    line-height: 1.6;
    margin: 0;
}

/* Skeleton */
.rvp-skeleton__item {
    background: #fff;
    padding: 16px;
    border-bottom: 8px solid #f5f5f5;
    height: 120px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: rvp-shimmer 1.4s infinite;
}

@keyframes rvp-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Empty state */
.rvp-empty {
    text-align: center;
    padding: 40px 20px;
    color: #999;
    font-size: 14px;
    background: #fff;
}

/* Load more */
.rvp-loadmore {
    padding: 16px;
    text-align: center;
}
.rvp-loadmore__btn {
    padding: 10px 32px;
    border-radius: 20px;
    border: 1.5px solid #333;
    background: #fff;
    font-size: 13px;
    font-weight: 600;
    color: #333;
    cursor: pointer;
}
.rvp-loadmore__btn:hover { background: #f5f5f5; }

/* Desktop: max-width */
@media (min-width: 768px) {
    .rvp-page { max-width: 600px; margin: 0 auto; }
    .rvp-header { display: none; } /* pakai header desktop */
    .rv-card { flex: 0 0 calc(32%); max-width: 220px; }
}


/* ===================================================
   DETAIL PAGE — Review Section (foto grid + 1 card)
   =================================================== */

/* Rating summary row */
.pd-rv-summary {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
}
.pd-rv-avg {
    font-size: 22px;
    font-weight: 800;
    color: #212121;
    line-height: 1;
}
.pd-rv-stars { display: flex; gap: 1px; }
.pd-rv-star { font-size: 16px; }
.pd-rv-star.on { color: #f5a623; }
.pd-rv-star.off { color: #ddd; }
.pd-rv-meta {
    font-size: 12px;
    color: #888;
}

/* Foto grid: 4 kotak sejajar */
.pd-rv-photos { margin-bottom: 12px; }
.pd-rv-photos__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
}
.pd-rv-photo {
    position: relative;
    aspect-ratio: 1;
    border-radius: 6px;
    overflow: hidden;
    background: #f0f0f0;
    display: block;
}
.pd-rv-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
/* Kotak terakhir: overlay gelap + teks */
.pd-rv-photo--more {
    text-decoration: none;
}
.pd-rv-photo__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.52);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    gap: 2px;
}
.pd-rv-photo__overlay span {
    font-size: 16px;
    font-weight: 800;
    line-height: 1;
}
.pd-rv-photo__overlay small {
    font-size: 11px;
    opacity: 0.9;
}

/* 1 review card */
.pd-rv-card {
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 10px;
    padding: 12px 14px;
    margin-top: 4px;
}
.pd-rv-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}
.pd-rv-card__name {
    font-size: 13px;
    font-weight: 700;
    color: #212121;
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.pd-rv-card__stars {
    display: flex;
    gap: 1px;
    flex-shrink: 0;
}
.pd-rv-card__comment {
    font-size: 12px;
    color: #555;
    line-height: 1.55;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ===================================================
   REVIEWS PAGE — Photo Grid (tab=photo)
   =================================================== */
.rvp-photo-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    background: #f5f5f5;
    padding: 12px;
}
.rvp-photo-cell {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.rvp-photo-cell__img {
    aspect-ratio: 1;
    overflow: hidden;
    background: #f0f0f0;
    border-radius: 12px 12px 0 0;
}
.rvp-photo-cell__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.rvp-photo-cell__stars {
    display: flex;
    gap: 1px;
    padding: 8px 10px 10px;
}


/* ===================================================
   REVIEW PHOTO VIEWER (full-screen)
   =================================================== */
.rpv-page {
    position: fixed;
    inset: 0;
    background: #000;
    display: flex;
    flex-direction: column;
    z-index: 9999;
    overflow: hidden;
}

/* Back button */
.rpv-back {
    position: absolute;
    top: 16px;
    left: 14px;
    z-index: 10;
    color: #fff;
    display: flex;
    align-items: center;
    text-decoration: none;
    background: rgba(0,0,0,0.35);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    justify-content: center;
}
.rpv-back:hover { color: #fff; text-decoration: none; }

/* Dots */
.rpv-dots {
    position: absolute;
    bottom: 160px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 6px;
    z-index: 10;
}
.rpv-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: all 0.2s;
}
.rpv-dot.active {
    background: #fff;
    width: 20px;
    border-radius: 4px;
}

/* Slider */
.rpv-slider {
    flex: 1;
    overflow: hidden;
    position: relative;
}
.rpv-track {
    display: flex;
    height: 100%;
    transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    will-change: transform;
}
.rpv-slide {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
}
.rpv-slide img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    user-select: none;
    -webkit-user-drag: none;
}

/* Reviewer info */
.rpv-info {
    background: #111;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}
.rpv-info__avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #fed700;
    color: #212121;
    font-size: 15px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.rpv-info__meta { flex: 1; min-width: 0; }
.rpv-info__name {
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 2px;
}
.rpv-info__sub {
    font-size: 12px;
    color: #aaa;
    display: flex;
    align-items: center;
    gap: 4px;
}
.rpv-stars { color: #f5a623; letter-spacing: 1px; }
.rpv-rating-num { color: #f5a623; font-weight: 600; }

/* Product bar */
.rpv-product-bar {
    background: #1a1a1a;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    border-top: 1px solid #333;
}
.rpv-product-bar__inner {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
    text-decoration: none;
}
.rpv-product-bar__inner:hover { text-decoration: none; }
.rpv-product-bar__img {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    overflow: hidden;
    background: #333;
    flex-shrink: 0;
}
.rpv-product-bar__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.rpv-product-bar__info { flex: 1; min-width: 0; }
.rpv-product-bar__name {
    font-size: 12px;
    color: #ddd;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.rpv-product-bar__price {
    font-size: 13px;
    font-weight: 700;
    color: #fed700;
}
.rpv-product-bar__btn {
    flex-shrink: 0;
    padding: 8px 16px;
    background: #fed700;
    color: #212121;
    font-size: 12px;
    font-weight: 700;
    border-radius: 20px;
    text-decoration: none;
    white-space: nowrap;
}
.rpv-product-bar__btn:hover { background: #f5cc00; text-decoration: none; color: #212121; }


/* ===================================================
   REVIEWS PAGE — Filter Bar v2 (Foto&Video, Rating, Topik, Urutkan)
   =================================================== */
.rvp-filter-bar2 {
    background: #fff;
    padding: 10px 12px;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    border-bottom: 1px solid #f0f0f0;
    position: sticky;
    top: 52px; /* below rvp-header */
    z-index: 50;
}
.rvp-filter-bar2::-webkit-scrollbar { display: none; }

.rvp-filter2-btn {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 7px 14px;
    border-radius: 20px;
    border: 1px solid #e0e0e0;
    background: #fff;
    font-size: 12px;
    color: #444;
    cursor: pointer;
    white-space: nowrap;
    font-weight: 500;
    transition: all 0.15s;
}
.rvp-filter2-btn:hover { background: #f5f5f5; }
.rvp-filter2-btn.active {
    background: #212121;
    color: #fff;
    border-color: #212121;
    font-weight: 600;
}
.rvp-filter2-btn.active svg { stroke: #fff; }

/* Dropdown panel */
.rvp-dropdown {
    position: sticky;
    top: 100px;
    z-index: 49;
    background: #fff;
    border-bottom: 1px solid #f0f0f0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.rvp-dropdown__item {
    display: block;
    width: 100%;
    padding: 12px 16px;
    border: none;
    background: none;
    text-align: left;
    font-size: 13px;
    color: #333;
    cursor: pointer;
    border-bottom: 1px solid #f5f5f5;
    transition: background 0.1s;
}
.rvp-dropdown__item:last-child { border-bottom: none; }
.rvp-dropdown__item:hover { background: #f5f5f5; }
.rvp-dropdown__item.active {
    color: #212121;
    font-weight: 700;
}


/* ===================================================
   BOTTOM SHEET (filter popup dari bawah)
   =================================================== */
.bs-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 1080;
}
.bs-overlay.open { display: block; }

.bs-sheet {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-radius: 16px 16px 0 0;
    z-index: 1090;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    max-height: 80vh;
    display: flex;
    flex-direction: column;
}
.bs-sheet.open { transform: translateY(0); }

.bs-sheet__header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 16px 12px;
    border-bottom: 1px solid #f0f0f0;
    flex-shrink: 0;
}
.bs-sheet__close {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    color: #555;
    display: flex;
    align-items: center;
}
.bs-sheet__title {
    font-size: 15px;
    font-weight: 700;
    color: #212121;
}

.bs-sheet__body {
    overflow-y: auto;
    flex: 1;
}

/* Checkbox rows (Rating) */
.bs-check-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #f5f5f5;
    cursor: pointer;
}
.bs-check-row:last-child { border-bottom: none; }
.bs-check-row__label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    color: #212121;
    font-weight: 500;
}
.bs-star { font-size: 18px; }
.bs-checkbox {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    accent-color: #212121;
    cursor: pointer;
    flex-shrink: 0;
}

.bs-sheet__footer {
    padding: 12px 16px 20px;
    border-top: 1px solid #f0f0f0;
    flex-shrink: 0;
}
.bs-sheet__apply {
    width: 100%;
    padding: 14px;
    border-radius: 8px;
    border: none;
    background: #e0e0e0;
    color: #888;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}
/* Active when at least 1 checkbox checked */
#bsRating .bs-checkbox:checked ~ .bs-sheet__apply,
.bs-sheet__apply.ready {
    background: #212121;
    color: #fff;
}
/* Always make apply button dark */
.bs-sheet__apply { background: #212121; color: #fff; }

/* Radio rows (Urutkan) */
.bs-radio-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    border-bottom: 1px solid #f5f5f5;
    cursor: pointer;
}
.bs-radio-row:last-child { border-bottom: none; }
.bs-radio-row__label {
    font-size: 15px;
    color: #212121;
    font-weight: 500;
}
.bs-radio-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #ccc;
    flex-shrink: 0;
    transition: all 0.15s;
}
.bs-radio-dot.active {
    border-color: #2e7d32;
    background: #2e7d32;
    box-shadow: inset 0 0 0 4px #fff;
}


/* Varian group in bottom sheet */
.bs-varian-group__title {
    padding: 12px 20px 6px;
    font-size: 12px;
    font-weight: 700;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: #fafafa;
    border-bottom: 1px solid #f0f0f0;
}


/* Bottom sheet Reset button */
.bs-sheet__reset {
    margin-left: auto;
    background: none;
    border: none;
    font-size: 13px;
    font-weight: 600;
    color: #2e7d32;
    cursor: pointer;
    padding: 0;
}
.bs-sheet__reset:hover { text-decoration: underline; }

/* Varian chips */
.bs-varian-group { padding: 14px 16px 6px; }
.bs-varian-group__title {
    font-size: 13px;
    font-weight: 700;
    color: #212121;
    margin-bottom: 10px;
}
.bs-varian-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-bottom: 8px;
}
.bs-varian-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 20px;
    border: 1.5px solid #e0e0e0;
    background: #fff;
    font-size: 13px;
    color: #333;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.15s;
}
.bs-varian-chip:hover { border-color: #bbb; }
.bs-varian-chip.active {
    border-color: #212121;
    background: #212121;
    color: #fff;
}
.bs-varian-chip__img {
    width: 22px;
    height: 22px;
    border-radius: 4px;
    object-fit: cover;
    flex-shrink: 0;
}

/* Green apply button */
#bsVarianApply {
    background: #2e7d32 !important;
    color: #fff !important;
}
#bsVarianApply:hover { background: #1b5e20 !important; }


/* ===================================================
   CART BADGE — hide when empty, show count when > 0
   =================================================== */
#mobileCartBadge {
    display: none; /* hidden by default, shown by JS */
}

/* ===================================================
   FLY-TO-CART ANIMATION
   =================================================== */
.fly-to-cart-img {
    will-change: transform, opacity, left, top, width, height;
}

/* Badge bounce when item lands */
@keyframes cartBadgeBounce {
    0%   { transform: scale(1); }
    40%  { transform: scale(1.6); }
    70%  { transform: scale(0.85); }
    100% { transform: scale(1); }
}
.cart-badge-bounce {
    animation: cartBadgeBounce 0.4s ease forwards;
}


/* ===================================================
   ADD-TO-CART POPUP (Lengkapi belanjaanmu)
   =================================================== */
.atcp-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 10000;
    display: flex;
    align-items: flex-end;
    opacity: 0;
    transition: opacity 0.25s;
}
.atcp-overlay.open { opacity: 1; }
.atcp-overlay.open .atcp-sheet { transform: translateY(0); }

.atcp-sheet {
    background: #fff;
    border-radius: 16px 16px 0 0;
    width: 100%;
    max-height: 55vh;
    overflow-y: auto;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    padding-bottom: env(safe-area-inset-bottom, 0px);
}

.atcp-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 16px 12px;
    border-bottom: 1px solid #f0f0f0;
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 1;
}
.atcp-close {
    background: none;
    border: none;
    font-size: 16px;
    color: #555;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}
.atcp-title {
    font-size: 15px;
    font-weight: 700;
    color: #212121;
}

.atcp-product-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid #f5f5f5;
}
.atcp-product-img {
    width: 52px;
    height: 52px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background: #f5f5f5;
}
.atcp-product-img img { width: 100%; height: 100%; object-fit: cover; }
.atcp-product-info { flex: 1; min-width: 0; }
.atcp-product-name {
    font-size: 13px;
    color: #212121;
    font-weight: 500;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 4px;
}
.atcp-product-status {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #2e7d32;
    font-weight: 600;
}

.atcp-section-title {
    font-size: 14px;
    font-weight: 700;
    color: #212121;
    padding: 14px 16px 8px;
}

.atcp-related-scroll {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 0 16px 12px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.atcp-related-scroll::-webkit-scrollbar { display: none; }

.atcp-rel-card {
    flex: 0 0 130px;
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 10px;
    overflow: hidden;
}
.atcp-rel-card a { text-decoration: none; color: inherit; display: block; }
.atcp-rel-img { aspect-ratio: 1; overflow: hidden; background: #f5f5f5; }
.atcp-rel-img img { width: 100%; height: 100%; object-fit: cover; }
.atcp-rel-name {
    font-size: 11px;
    color: #333;
    padding: 6px 8px 2px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}
.atcp-rel-price {
    font-size: 12px;
    font-weight: 700;
    color: #d32f2f;
    padding: 2px 8px 8px;
}

.atcp-footer {
    padding: 12px 16px 20px;
    border-top: 1px solid #f0f0f0;
}
.atcp-btn-cart {
    display: block;
    width: 100%;
    padding: 14px;
    background: #fed700;
    color: #212121;
    font-size: 15px;
    font-weight: 700;
    text-align: center;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.15s;
}
.atcp-btn-cart:hover { background: #f5cc00; color: #212121; text-decoration: none; }


/* ===================================================
   VARIANT PICKER POPUP (bottom sheet)
   =================================================== */
.vp-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 1080;
}

.vp-sheet {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-radius: 16px 16px 0 0;
    z-index: 1090;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    padding-bottom: env(safe-area-inset-bottom, 0px);
}
.vp-sheet.open { transform: translateY(0); }

.vp-sheet__header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px 10px;
    border-bottom: 1px solid #f0f0f0;
    flex-shrink: 0;
}
.vp-sheet__close {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    color: #555;
    display: flex;
    align-items: center;
}
.vp-sheet__title {
    font-size: 15px;
    font-weight: 700;
    color: #212121;
}

.vp-sheet__body {
    overflow-y: auto;
    flex: 1;
    padding: 0 0 8px;
}

/* Product summary row */
.vp-product-row {
    display: flex;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid #f5f5f5;
}
.vp-product-img {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    background: #f5f5f5;
    flex-shrink: 0;
}
.vp-product-img img { width: 100%; height: 100%; object-fit: cover; }
.vp-product-info { flex: 1; min-width: 0; }
.vp-product-price {
    font-size: 18px;
    font-weight: 800;
    color: #d32f2f;
    margin-bottom: 2px;
}
.vp-product-original {
    font-size: 12px;
    color: #999;
    text-decoration: line-through;
    margin-bottom: 4px;
}
.vp-product-selected {
    font-size: 12px;
    color: #555;
    background: #f5f5f5;
    border-radius: 4px;
    padding: 2px 8px;
    display: inline-block;
}

/* Variant groups */
.vp-group {
    padding: 14px 16px 6px;
    border-bottom: 1px solid #f5f5f5;
}
.vp-group__label {
    font-size: 13px;
    font-weight: 600;
    color: #212121;
    margin-bottom: 10px;
}
.vp-group__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-bottom: 6px;
}
.vp-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 20px;
    border: 1.5px solid #e0e0e0;
    background: #fff;
    font-size: 13px;
    color: #333;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.15s;
}
.vp-chip:hover { border-color: #bbb; }
.vp-chip.active {
    border-color: #212121;
    background: #212121;
    color: #fff;
}
.vp-chip__img {
    width: 22px;
    height: 22px;
    border-radius: 4px;
    object-fit: cover;
    flex-shrink: 0;
}

/* Quantity row */
.vp-qty-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
}
.vp-qty-label {
    font-size: 13px;
    color: #212121;
    font-weight: 500;
}
.vp-qty-ctrl {
    display: flex;
    align-items: center;
    gap: 0;
    border: 1.5px solid #e0e0e0;
    border-radius: 20px;
    overflow: hidden;
}
.vp-qty-btn {
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    font-size: 18px;
    color: #333;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.1s;
}
.vp-qty-btn:hover { background: #f5f5f5; }
.vp-qty-val {
    min-width: 32px;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: #212121;
}

/* Footer */
.vp-sheet__footer {
    padding: 12px 16px 16px;
    border-top: 1px solid #f0f0f0;
    flex-shrink: 0;
}
.vp-sheet__add-btn {
    width: 100%;
    padding: 14px;
    background: #fed700;
    color: #212121;
    font-size: 15px;
    font-weight: 700;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.15s;
}
.vp-sheet__add-btn:hover { background: #f5cc00; }


/* ===================================================
   HALAMAN KERANJANG — Tokopedia Style (Yellow Theme)
   =================================================== */
.krt-page {
    background: #f5f5f5;
    min-height: 100vh;
    padding-bottom: 80px;
}

/* Header */
.krt-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #fff;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}
.krt-header__back {
    color: #212121;
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}
.krt-header__back:hover { color: #212121; text-decoration: none; }
.krt-header__title {
    font-size: 17px;
    font-weight: 700;
    color: #212121;
    flex: 1;
}

/* Body */
.krt-body {
    padding: 8px 0;
}

/* Group */
.krt-group {
    background: #fff;
    margin-bottom: 8px;
}

/* Item */
.krt-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 16px;
    border-bottom: 1px solid #f5f5f5;
}
.krt-item:last-child { border-bottom: none; }

.krt-item__check {
    padding-top: 4px;
    flex-shrink: 0;
}

.krt-item__img {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background: #f5f5f5;
    display: block;
}
.krt-item__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.krt-item__info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.krt-item__name {
    font-size: 13px;
    color: #212121;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}
.krt-item__name:hover { color: #212121; text-decoration: none; }

.krt-item__variant {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: #555;
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 2px 8px;
    width: fit-content;
}

.krt-item__price-row {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 6px;
}
.krt-item__price-sale {
    font-size: 14px;
    font-weight: 700;
    color: #d32f2f;
}
.krt-item__price-orig {
    font-size: 11px;
    color: #999;
    text-decoration: line-through;
}
.krt-item__badge {
    font-size: 10px;
    font-weight: 700;
    color: #d32f2f;
    background: #fff3f3;
    border-radius: 3px;
    padding: 1px 4px;
}

/* Bottom row: left (variant + orig price) | right (qty) */
.krt-item__bottom {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 8px;
    margin-top: 2px;
}
.krt-item__bottom-left {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    min-width: 0;
}
.krt-item__orig-row {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Qty control */
.krt-qty {
    display: flex;
    align-items: center;
    border: 1.5px solid #e0e0e0;
    border-radius: 20px;
    overflow: hidden;
}
.krt-qty__btn {
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    font-size: 16px;
    color: #333;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.1s;
}
.krt-qty__btn:hover { background: #f5f5f5; }
.krt-qty__input {
    width: 36px;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    color: #212121;
    border: none;
    outline: none;
    background: transparent;
    -moz-appearance: textfield;
    padding: 0;
}
.krt-qty__input::-webkit-outer-spin-button,
.krt-qty__input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* Checkboxes */
.krt-item-cb,
.krt-select-all-cb,
.krt-shop-cb {
    width: 18px;
    height: 18px;
    accent-color: #fed700;
    cursor: pointer;
    flex-shrink: 0;
}

/* Promo banner */
.krt-promo-banner {
    background: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    margin-top: 8px;
    color: #555;
    font-size: 13px;
    cursor: pointer;
}
.krt-promo-banner svg:last-child { margin-left: auto; color: #999; }
.krt-promo-banner:hover { background: #fafafa; }

/* Empty state */
.krt-empty {
    text-align: center;
    padding: 60px 20px;
    background: #fff;
}
.krt-empty__icon { font-size: 48px; margin-bottom: 12px; }
.krt-empty__text { font-size: 15px; color: #888; margin-bottom: 20px; }
.krt-empty__btn {
    display: inline-block;
    padding: 12px 32px;
    background: #fed700;
    color: #212121;
    font-weight: 700;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
}
.krt-empty__btn:hover { background: #f5cc00; color: #212121; text-decoration: none; }

/* Skeleton */
.krt-skeleton-item {
    background: #fff;
    margin-bottom: 8px;
    height: 110px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: krtShimmer 1.4s infinite;
}
@keyframes krtShimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Sticky bottom bar */
.krt-bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid #e8e8e8;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    z-index: 1060;
    box-shadow: 0 -2px 12px rgba(0,0,0,0.08);
}
.krt-bottom-bar__select-all {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #212121;
    font-weight: 500;
    cursor: pointer;
    flex-shrink: 0;
}
.krt-bottom-bar__total {
    flex: 1;
    text-align: right;
}
.krt-bottom-bar__total-label {
    font-size: 15px;
    font-weight: 700;
    color: #212121;
}
.krt-bottom-bar__btn {
    flex-shrink: 0;
    padding: 12px 28px;
    background: #fed700;
    color: #212121;
    font-size: 14px;
    font-weight: 700;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.15s;
    min-width: 90px;
}
.krt-bottom-bar__btn:hover { background: #f5cc00; }
.krt-bottom-bar__btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* Hide old cart elements on cart page */
.cart-page .cart-layout,
.cart-page .cart-total,
.cart-page .cart-checkout-mobile { display: none !important; }

/* Desktop: center and max-width */
@media (min-width: 768px) {
    .krt-page { max-width: 600px; margin: 0 auto; }
    .krt-bottom-bar { max-width: 600px; left: 50%; transform: translateX(-50%); }
    .krt-header { display: none; } /* use desktop header */
}


/* ===================================================
   HALAMAN CHECKOUT — Tokopedia Style (Yellow Theme)
   =================================================== */

/* Header */
.co-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #fff;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}
.co-header__back {
    color: #212121;
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}
.co-header__back:hover { color: #212121; text-decoration: none; }
.co-header__title {
    font-size: 17px;
    font-weight: 700;
    color: #212121;
    line-height: 1.2;
}
.co-header__sub {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 2px;
}

/* Section */
.co-section {
    background: #fff;
    margin-bottom: 8px;
    padding: 14px 16px;
}
.co-section__label {
    font-size: 12px;
    color: #888;
    margin-bottom: 8px;
}

/* Address */
.co-address__card {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 0;
}
.co-address__info { flex: 1; min-width: 0; }
.co-address__name-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 2px;
}
.co-address__name {
    font-size: 14px;
    font-weight: 700;
    color: #212121;
}
.co-address__phone {
    font-size: 13px;
    color: #555;
}
.co-address__label-row { margin-bottom: 4px; }
.co-address__label-badge {
    font-size: 11px;
    font-weight: 600;
    color: #555;
    background: #f0f0f0;
    border-radius: 4px;
    padding: 2px 8px;
    display: inline-block;
}
.co-address__detail {
    font-size: 12px;
    color: #666;
    line-height: 1.5;
}
.co-add-address-btn {
    width: 100%;
    padding: 10px;
    border: 1.5px dashed #ccc;
    border-radius: 8px;
    background: none;
    color: #555;
    font-size: 13px;
    cursor: pointer;
    text-align: center;
}
.co-add-address-btn:hover { border-color: #fed700; color: #212121; }

/* Items */
.co-items-list { display: flex; flex-direction: column; gap: 12px; }
.co-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}
.co-item__img {
    width: 64px;
    height: 64px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
    background: #f5f5f5;
}
.co-item__info { flex: 1; min-width: 0; }
.co-item__name {
    font-size: 13px;
    color: #212121;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 4px;
}
.co-item__variant {
    font-size: 11px;
    color: #555;
    background: #f5f5f5;
    border-radius: 4px;
    padding: 2px 8px;
    display: inline-block;
    margin-bottom: 4px;
}
.co-item__price-row {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 2px;
}
.co-item__price-orig {
    font-size: 11px;
    color: #999;
    text-decoration: line-through;
}
.co-item__badge {
    font-size: 10px;
    font-weight: 700;
    color: #d32f2f;
    background: #fff3f3;
    border-radius: 3px;
    padding: 1px 4px;
}
.co-item__final {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.co-item__price-sale {
    font-size: 13px;
    font-weight: 700;
    color: #d32f2f;
}
.co-item__qty {
    font-size: 12px;
    color: #888;
}

/* Shipping */
.co-shipping-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.co-shipping__left { flex: 1; min-width: 0; }
.co-shipping__name {
    font-size: 13px;
    font-weight: 600;
    color: #212121;
}
.co-shipping__etd {
    font-size: 11px;
    color: #888;
    margin-top: 2px;
}
.co-shipping__right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    flex-shrink: 0;
}
.co-shipping__change {
    font-size: 12px;
    font-weight: 600;
    color: #d32f2f;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}

/* Summary */
.co-summary-title {
    font-size: 14px;
    font-weight: 700;
    color: #212121;
    margin-bottom: 12px;
}
.co-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: #555;
    margin-bottom: 8px;
}
.co-summary-row--total {
    font-size: 14px;
    font-weight: 700;
    color: #212121;
    margin-top: 4px;
    margin-bottom: 0;
}
.co-summary-total {
    color: #d32f2f;
    font-size: 15px;
    font-weight: 800;
}.co-summary-divider {
    border-top: 1px solid #f0f0f0;
    margin: 10px 0;
}

/* Sticky footer — Tokopedia style */
.co-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid #e8e8e8;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 12px 16px;
    padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    z-index: 1060;
    box-shadow: 0 -2px 12px rgba(0,0,0,0.08);
}
.co-footer__summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.co-footer__total-label {
    font-size: 13px;
    color: #555;
    font-weight: 800;
}
.co-footer__total-amount {
    font-size: 16px;
    font-weight: 800;
    color: #d32f2f;
    white-space: nowrap;
}
.co-footer__btn {
    width: 100%;
    padding: 14px;
    background: #fed700;
    color: #212121;
    font-size: 15px;
    font-weight: 700;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.15s;
    text-align: center;
}
.co-footer__btn:hover:not(:disabled) { background: #f5cc00; }
.co-footer__btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* Desktop */
@media (min-width: 768px) {
    .co-page { max-width: 600px; margin: 0 auto; }
    .co-footer { max-width: 600px; left: 50%; transform: translateX(-50%); }
    .co-header { display: none; }
}


/* ===================================================
   CHECKOUT — Shipping Modal (Tokopedia style)
   =================================================== */
.co-ship-modal {
    border-radius: 16px 16px 0 0 !important;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    max-height: 80vh;
    min-height: 50vh;
}

/* Override Bootstrap modal-dialog for shipping modal */
#shippingModal .modal-dialog {
    margin: 0 !important;
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
}

#shippingModal .modal-content {
    max-height: 80vh;
    min-height: 50vh;
    display: flex;
    flex-direction: column;
    border-radius: 16px 16px 0 0 !important;
    border: none !important;
}

.co-ship-modal__header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 16px 12px;
    border-bottom: 1px solid #f0f0f0;
    flex-shrink: 0;
}
.co-ship-modal__close {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    color: #555;
    display: flex;
    align-items: center;
}
.co-ship-modal__title {
    font-size: 16px;
    font-weight: 700;
    color: #212121;
}

.co-ship-modal__info {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    background: #f5f5f5;
    font-size: 12px;
    color: #666;
    flex-shrink: 0;
}

.co-ship-modal__loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 32px 16px;
    color: #888;
    font-size: 13px;
}
.co-ship-modal__spinner {
    width: 28px;
    height: 28px;
    border: 3px solid #f0f0f0;
    border-top-color: #fed700;
    border-radius: 50%;
    animation: coShipSpin 0.8s linear infinite;
}
@keyframes coShipSpin { to { transform: rotate(360deg); } }

.co-ship-modal__error {
    padding: 20px 16px;
    text-align: center;
    color: #d32f2f;
    font-size: 13px;
}

.co-ship-modal__list {
    overflow-y: auto;
    flex: 1;
    min-height: 0;
}

/* Shipping option row */
.co-ship-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    border-bottom: 1px solid #f5f5f5;
    cursor: pointer;
    transition: background 0.1s;
}
.co-ship-option:hover { background: #fafafa; }
.co-ship-option.active { background: #f9fbe7; }
.co-ship-option:last-child { border-bottom: none; }

.co-ship-option__info { flex: 1; min-width: 0; }
.co-ship-option__name {
    font-size: 14px;
    font-weight: 600;
    color: #212121;
    margin-bottom: 3px;
}
.co-ship-option__etd {
    font-size: 12px;
    color: #888;
}

.co-ship-option__right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}
.co-ship-option__price {
    font-size: 13px;
    font-weight: 700;
    color: #212121;
}
.co-ship-option.active .co-ship-option__price {
    color: #2e7d32;
}


/* ===================================================
   DAFTAR ALAMAT PAGE
   =================================================== */
.adrl-page {
    background: #f5f5f5;
    min-height: 100vh;
}

.adrl-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #fff;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}
.adrl-header__back {
    color: #212121;
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}
.adrl-header__back:hover { color: #212121; text-decoration: none; }
.adrl-header__title {
    flex: 1;
    font-size: 17px;
    font-weight: 700;
    color: #212121;
}
.adrl-header__add {
    background: none;
    border: none;
    font-size: 13px;
    font-weight: 700;
    color: #2e7d32;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
}
.adrl-header__add:hover { text-decoration: underline; }

.adrl-list {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Address card */
.adrl-card {
    background: #fff;
    border-radius: 12px;
    padding: 14px 16px;
    border: 1.5px solid #e0e0e0;
    position: relative;
}
.adrl-card--default {
    border-color: #2e7d32;
    border-left: 4px solid #2e7d32;
}
.adrl-card--selected {
    border-color: #2e7d32;
    background: #f1f8f1;
}

.adrl-card__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}
.adrl-card__labels {
    display: flex;
    align-items: center;
    gap: 6px;
}
.adrl-card__label {
    font-size: 12px;
    font-weight: 600;
    color: #555;
}
.adrl-card__badge-utama {
    font-size: 10px;
    font-weight: 700;
    color: #2e7d32;
    background: #e8f5e9;
    border-radius: 4px;
    padding: 2px 6px;
}

.adrl-card__name {
    font-size: 14px;
    font-weight: 700;
    color: #212121;
    margin-bottom: 2px;
}
.adrl-card__phone {
    font-size: 13px;
    color: #555;
    margin-bottom: 4px;
}
.adrl-card__address {
    font-size: 12px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 8px;
}
.adrl-card__pinpoint {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #2e7d32;
    font-weight: 600;
    margin-bottom: 12px;
}

.adrl-card__actions {
    display: flex;
    gap: 8px;
}
.adrl-card__btn-ubah {
    flex: 1;
    padding: 9px;
    border: 1.5px solid #e0e0e0;
    border-radius: 8px;
    background: #fff;
    font-size: 13px;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    text-align: center;
    transition: background 0.1s;
}
.adrl-card__btn-ubah:hover { background: #f5f5f5; }
.adrl-card__btn-more {
    width: 42px;
    padding: 9px;
    border: 1.5px solid #e0e0e0;
    border-radius: 8px;
    background: #fff;
    font-size: 16px;
    color: #555;
    cursor: pointer;
    text-align: center;
}
.adrl-card__btn-more:hover { background: #f5f5f5; }

/* Empty */
.adrl-empty {
    text-align: center;
    padding: 40px 20px;
    color: #888;
    font-size: 14px;
    line-height: 1.6;
    background: #fff;
    border-radius: 12px;
}

/* Skeleton */
.adrl-skeleton__item {
    height: 160px;
    border-radius: 12px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: adrlShimmer 1.4s infinite;
}
@keyframes adrlShimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Footer */
.adrl-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid #e8e8e8;
    padding: 12px 16px;
    padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    z-index: 1060;
    box-shadow: 0 -2px 12px rgba(0,0,0,0.08);
}
.adrl-footer__btn {
    width: 100%;
    padding: 14px;
    background: #e0e0e0;
    color: #888;
    font-size: 15px;
    font-weight: 700;
    border: none;
    border-radius: 8px;
    cursor: not-allowed;
    transition: all 0.15s;
}
.adrl-footer__btn:not(:disabled) {
    background: #fed700;
    color: #212121;
    cursor: pointer;
}
.adrl-footer__btn:not(:disabled):hover { background: #f5cc00; }

@media (min-width: 768px) {
    .adrl-page { max-width: 600px; margin: 0 auto; }
    .adrl-footer { max-width: 600px; left: 50%; transform: translateX(-50%); }
}


/* ===================================================
   TITIK LOKASI (address-pin)
   =================================================== */
.pin-page {
    position: fixed;
    inset: 0;
    display: flex;
    flex-direction: column;
    background: #fff;
    z-index: 10;
}

.pin-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,0.12);
}
.pin-header__back {
    color: #212121;
    display: flex;
    align-items: center;
    text-decoration: none;
}
.pin-header__back:hover { color: #212121; text-decoration: none; }
.pin-header__title {
    font-size: 17px;
    font-weight: 700;
    color: #212121;
}

.pin-map {
    flex: 1;
    width: 100%;
    margin-top: 52px;
    z-index: 1;
}

/* Custom marker */
.pin-marker {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

/* Use location button */
.pin-locate-btn {
    position: absolute;
    bottom: 250px;
    right: 10px;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    background: #fed700;
    color: #000;
    border: none;
    border-radius: 24px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    white-space: nowrap;
}
.pin-locate-btn:hover { background: #1b5e20; }
.pin-locate-btn:disabled { opacity: 0.7; cursor: not-allowed; }

/* Bottom panel */
.pin-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: #fff;
    border-radius: 16px 16px 0 0;
    padding: 14px 16px 20px;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.12);
    padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px));
}

.pin-search {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f5f5f5;
    border-radius: 8px;
    padding: 10px 12px;
    margin-bottom: 12px;
    position: relative;
}
.pin-search__input {
    flex: 1;
    border: none;
    background: transparent;
    outline: none;
    font-size: 13px;
    color: #333;
}
.pin-search__input::placeholder { color: #aaa; }

.pin-search-results {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: calc(100% + 4px);
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    z-index: 1001;
    max-height: 200px;
    overflow-y: auto;
}
.pin-search-result-item {
    padding: 12px 14px;
    font-size: 13px;
    color: #333;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
}
.pin-search-result-item:last-child { border-bottom: none; }
.pin-search-result-item:hover { background: #f5f5f5; }

.pin-address-info {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 8px;
}
.pin-address-info__text { flex: 1; min-width: 0; }
.pin-address-info__main {
    font-size: 14px;
    font-weight: 700;
    color: #212121;
    margin-bottom: 2px;
}
.pin-address-info__sub {
    font-size: 12px;
    color: #666;
    line-height: 1.4;
}

.pin-hint {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #888;
    background: #f5f5f5;
    border-radius: 6px;
    padding: 8px 10px;
    margin-bottom: 12px;
}

.pin-confirm-btn {
    width: 100%;
    padding: 14px;
    background: #fed700;
    color: #000;
    font-size: 15px;
    font-weight: 700;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.15s;
}
.pin-confirm-btn:hover:not(:disabled) { background: #1b5e20; }
.pin-confirm-btn:disabled { background: #e0e0e0; color: #aaa; cursor: not-allowed; }

/* ===================================================
   FORM ALAMAT (address-form)
   =================================================== */
.adrf-page {
    background: #f5f5f5;
    min-height: 100vh;
}

.adrf-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #fff;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}
.adrf-header__back {
    color: #212121;
    display: flex;
    align-items: center;
    text-decoration: none;
}
.adrf-header__back:hover { color: #212121; text-decoration: none; }
.adrf-header__title {
    font-size: 17px;
    font-weight: 700;
    color: #212121;
}

.adrf-section {
    background: #fff;
    margin-bottom: 8px;
    padding: 14px 16px;
}
.adrf-section__title {
    font-size: 13px;
    font-weight: 700;
    color: #212121;
    margin-bottom: 12px;
}

/* Location card */
.adrf-loc-card {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 0;
}
.adrf-loc-card__info { flex: 1; min-width: 0; }
.adrf-loc-card__main {
    font-size: 14px;
    font-weight: 700;
    color: #212121;
    margin-bottom: 2px;
}
.adrf-loc-card__sub {
    font-size: 12px;
    color: #666;
    line-height: 1.4;
}
.adrf-loc-card__change {
    font-size: 12px;
    font-weight: 700;
    color: #d32f2f;
    text-decoration: none;
    flex-shrink: 0;
}
.adrf-loc-card__change:hover { text-decoration: underline; color: #d32f2f; }

/* Fields */
.adrf-field { margin-bottom: 14px; }
.adrf-field:last-child { margin-bottom: 0; }
.adrf-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #555;
    margin-bottom: 6px;
}
.adrf-required { color: #d32f2f; }
.adrf-input {
    width: 100%;
    padding: 11px 12px;
    border: 1.5px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    color: #212121;
    background: #fff;
    outline: none;
    transition: border-color 0.15s;
    box-sizing: border-box;
}
.adrf-input:focus { border-color: #2e7d32; }
.adrf-textarea { resize: vertical; min-height: 80px; }
.adrf-select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; background-size: 16px; padding-right: 32px; }
.adrf-select:disabled { background-color: #f5f5f5; color: #aaa; }

/* Label chips */
.adrf-label-chips {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.adrf-chip {
    padding: 7px 16px;
    border-radius: 20px;
    border: 1.5px solid #e0e0e0;
    background: #fff;
    font-size: 13px;
    color: #555;
    cursor: pointer;
    transition: all 0.15s;
}
.adrf-chip.active {
    border-color: #2e7d32;
    background: #e8f5e9;
    color: #2e7d32;
    font-weight: 600;
}

/* Toggle */
.adrf-toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 14px;
    color: #212121;
    cursor: pointer;
    position: relative;
}
.adrf-toggle-cb { display: none; }
.adrf-toggle-slider {
    width: 44px;
    height: 24px;
    background: #ccc;
    border-radius: 12px;
    position: relative;
    transition: background 0.2s;
    flex-shrink: 0;
}
.adrf-toggle-slider::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: #fff;
    border-radius: 50%;
    top: 2px;
    left: 2px;
    transition: transform 0.2s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.adrf-toggle-cb:checked + .adrf-toggle-slider { background: #2e7d32; }
.adrf-toggle-cb:checked + .adrf-toggle-slider::after { transform: translateX(20px); }

/* Footer */
.adrf-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid #e8e8e8;
    padding: 12px 16px;
    padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    z-index: 1060;
    box-shadow: 0 -2px 12px rgba(0,0,0,0.08);
}
.adrf-footer__btn {
    width: 100%;
    padding: 14px;
    background: #fed700;
    color: #212121;
    font-size: 15px;
    font-weight: 700;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.15s;
}
.adrf-footer__btn:hover:not(:disabled) { background: #f5cc00; }
.adrf-footer__btn:disabled { opacity: 0.5; cursor: not-allowed; }

@media (min-width: 768px) {
    .pin-page { max-width: 600px; margin: 0 auto; }
    .adrf-page { max-width: 600px; margin: 0 auto; }
    .adrf-footer { max-width: 600px; left: 50%; transform: translateX(-50%); }
}


/* ===================================================
   ADDRESS FORM — Tokopedia style additions
   =================================================== */

/* Map preview mini */
.adrf-map-preview {
    background: #fff;
    margin-bottom: 8px;
    overflow: hidden;
}
.adrf-map-preview__addr {
    padding: 10px 16px 6px;
    font-size: 12px;
    color: #666;
    border-bottom: 1px solid #f0f0f0;
}
.adrf-map-preview__mini {
    height: 120px;
    width: 100%;
    background: #f0f0f0;
}
.adrf-map-preview__label {
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    color: #212121;
    background: rgba(255,255,255,0.95);
    border-top: 1px solid #f0f0f0;
}

/* Char counter */
.adrf-char-count {
    text-align: right;
    font-size: 11px;
    color: #aaa;
    margin-top: 4px;
}

/* Resolve status */
.adrf-resolve-status {
    background: #fff;
    padding: 10px 16px;
    margin-bottom: 8px;
    font-size: 12px;
    color: #555;
    border-left: 3px solid #2e7d32;
}


/* ===================================================
   METODE PEMBAYARAN - CHECKOUT PAGE
   =================================================== */

/* Container metode pembayaran */
.co-pay-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e8e8e8;
}

.co-pay-header__title {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a2e;
    letter-spacing: 0.3px;
}

/* List metode pembayaran */
.co-pay-list {
    display: flex;
    flex-direction: column;
}

/* Item metode pembayaran */
.co-pay-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border: 1.5px solid #e8e8e8;
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
}

.co-pay-item:hover {
    border-color: #d0d8ff;
    background: #f8faff;
    box-shadow: 0 2px 8px rgba(100, 116, 255, 0.08);
}

.co-pay-item__left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    margin-left: 6px;
}

/* Icon/Logo bank */
.co-pay-item__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 12px;
    color: #fff;
    flex-shrink: 0;
    background: #333e48;
}

/* Warna untuk setiap bank */
.co-pay-icon--bca {
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
}

.co-pay-icon--bri {
    background: linear-gradient(135deg, #7c2d12 0%, #92400e 100%);
}

.co-pay-icon--mandiri {
    background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
}

.co-pay-icon--bni {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
}

.co-pay-icon--transfer {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
}

/* Label metode pembayaran */
.co-pay-item__label {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a2e;
    letter-spacing: 0.2px;
}

/* Radio button */
.co-pay-radio {
    width: 20px;
    height: 20px;
    cursor: pointer;
    flex-shrink: 0;
    accent-color: #fed700;
}

/* Saat item dipilih */
.co-pay-item input[type="radio"]:checked + .co-pay-item__left,
input[type="radio"]:checked ~ .co-pay-item__left {
    /* Styling untuk item yang dipilih */
}

.co-pay-item input[type="radio"]:checked {
    accent-color: #fed700;
}

/* Responsive untuk mobile */
@media (max-width: 767.98px) {
    .co-pay-item {
        padding: 12px 14px;
    }

    .co-pay-item__icon {
        width: 44px;
        height: 44px;
        font-size: 11px;
    }

    .co-pay-item__label {
        font-size: 13px;
    }

    .co-pay-radio {
        width: 18px;
        height: 18px;
    }
}

/* Styling untuk halaman checkout mobile */
.co-page {
    background: #f8f9fa;
    min-height: 100vh;
    padding-bottom: calc(120px + env(safe-area-inset-bottom, 0px));
}

.co-section {
    background: #fff;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.co-section__label {
    font-size: 14px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 12px;
    display: block;
}

/* Footer checkout */
.co-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid #e8e8e8;
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 100;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.04);
}

.co-footer__summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.co-footer__total-label {
    font-size: 13px;
    color: #666;
    font-weight: 500;
}

.co-footer__total-amount {
    font-size: 16px;
    font-weight: 700;
    color: #d32f2f !important;
}

.co-footer__btn {
    background: #fed700 !important;
    border: none !important;
    color: #333e48 !important;
    font-weight: 700 !important;
    font-size: 15px !important;
    padding: 12px 16px !important;
    border-radius: 10px !important;
    transition: all 0.2s ease !important;
    width: 100%;
}

.co-footer__btn:hover:not(:disabled) {
    background: #333e48 !important;
    color: #fff !important;
    transform: translateY(-1px);
}

.co-footer__btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

@media (max-width: 767.98px) {
    .co-footer {
        padding: 10px 12px;
    }

    .co-footer__btn {
        font-size: 14px !important;
        padding: 10px 14px !important;
    }
}
