/* ══ View Transitions API — animasi smooth antar halaman ═════════════════════
   Aktif di Chrome/Edge 111+ dan Safari 18+. Browser lain: fallback biasa.
   ══════════════════════════════════════════════════════════════════════════════ */
@view-transition { navigation: auto; }

@keyframes mys-fade-in  { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes mys-fade-out { from { opacity: 1; } to { opacity: 0; } }

::view-transition-old(root) {
    animation: 180ms ease-out both mys-fade-out;
}
::view-transition-new(root) {
    animation: 220ms ease-out both mys-fade-in;
}

/*
 * Myseries — Luxcrime-inspired Design System
 * Font   : Figtree (seluruh storefront)
 * Source : luxcrime.com design analysis
 *
 * ATURAN FONT:
 * - Figtree dimuat SATU KALI di base.html via <link> Google Fonts.
 * - --font-primary didefinisikan di :root di bawah — gunakan var() di mana perlu.
 * - Jangan tambah @import font atau deklarasi font-family di file CSS lain.
 * - Jangan ulangi font-family di setiap komponen — body + inherit sudah cukup.
 */

/* ── Design tokens ────────────────────────────────── */
:root {
    --font-primary: 'Figtree', sans-serif;

    /* ── Warna tema (fallback default; di-override oleh blok inline {% if mys_design %} di base.html) ── */
    --mys-aksen: #e8b4b8;
    --mys-aksen-dark: #c8848e;
    --mys-teks-aksen: #ffffff;
    --mys-bg-body: #f8f8f8;
    --mys-bg-header: #ffffff;
    --mys-bg-bottom-nav: #ffffff;
    --mys-teks-utama: #1e2a3a;
    --mys-teks-muted: #999999;
    --mys-topbar-bg: #C8384D;
    --mys-topbar-teks: #ffffff;

    /*
     * Produk — nama & varian: satu presisi tipografi (fw / letter-spacing / line-height / warna sama).
     * Bedakan hierarki hanya lewat ukuran (--mys-pui-size-*), sesuaikan skala di sini bila perlu.
     */
    /* ── CSS Custom Variables (settable via Visual Editor → CSS Panel) ── */
    /* CSS1 — Font Family */
    --mys-font-heading:  'Figtree', sans-serif;
    --mys-font-body:     'Figtree', sans-serif;
    /* CSS2 — Ukuran Teks */
    --mys-scale-h:       1;
    --mys-size-body:     14px;
    /* CSS3 — Warna Teks */
    --mys-teks-heading:  #1e2a3a;
    --mys-teks-body:     #333333;
    --mys-teks-muted-2:  #888888;
    /* CSS4 — Shape */
    --mys-radius-card:   16px;
    --mys-radius-btn:    8px;

    --mys-pui-fw: 400;
    --mys-pui-ls: 0.06em;
    --mys-pui-lh: 1.35;
    /* Warna judul kartu home LP — dipakai ulang di cart drawer supaya sama */
    --lp-text: #3e3e47;
    --mys-pui-color: #1a1a2e;
    --mys-pui-size-name-grid: 0.82rem;
    --mys-pui-size-variant-grid: 0.82rem;
    --mys-pui-size-name-lp: 16px;
    --mys-pui-size-variant-lp: 16px;
    --mys-pui-size-name-cart: var(--mys-pui-size-name-lp);
    --mys-pui-size-variant-cart: var(--mys-pui-size-variant-lp);
    --mys-pui-size-name-pdp: 1.125rem;
    --mys-pui-size-variant-pdp: 0.85em;
    --mys-pui-size-name-list: 1rem;
    --mys-pui-size-name-order: 0.85rem;
    --mys-pui-size-name-checkout: 0.86rem;
    --mys-pui-size-variant-checkout: 0.74rem;
}

/* ── Reset & Base ─────────────────────────────────── */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    margin: 0;
    padding: 0;
}

/* Prevent horizontal scrollbar from offcanvas & animated topbar items */
html {
    overflow-x: hidden;
}

body {
    font-family: var(--font-primary);
    font-size: 14px !important;
    font-weight: 400;
    line-height: 1.55;
    color: var(--mys-teks-utama, #1a1a2e) !important;
    letter-spacing: 0;
    margin: 0 !important;
    overflow-x: hidden;
    padding: 0 !important;
    background: var(--mys-bg-body, #f8f8f8) !important;
}

/* Elemen yang tidak inherit font-family secara default di browser */
button, input, optgroup, select, textarea {
    font-family: inherit;
}

/* ── Typography ───────────────────────────────────── */
h1, h2, h3, h4, h5, h6,
.section-title,
.section-title h2,
.title-style-1,
.title-style-2 {
    font-weight: 800 !important;
    letter-spacing: 0.01em;
    line-height: 1.2;
    color: #1a1a2e;
}

/* Section titles (Luxcrime uppercase large label style) */
.section-title .title-text,
.section-title h2,
.section-heading {
    font-size: clamp(1.1rem, 4vw, 1.35rem) !important;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* Subtitle under section title */
.section-title .subtitle,
.section-title p {
    font-weight: 400;
    font-size: 0.82rem;
    color: #7a7a8a;
    letter-spacing: 0;
    text-transform: none;
}

/* Product name (non-grid — PDP / blok info) */
.product-title,
.single-product-title,
.product-name,
.product-info h3,
.product-info .title {
    font-weight: var(--mys-pui-fw) !important;
    font-size: var(--mys-pui-size-name-pdp) !important;
    line-height: var(--mys-pui-lh);
    color: var(--mys-pui-color);
    letter-spacing: var(--mys-pui-ls);
}

.grid-product__title {
    font-weight: var(--mys-pui-fw) !important;
    font-size: var(--mys-pui-size-name-grid) !important;
    line-height: var(--mys-pui-lh);
    color: var(--mys-pui-color);
    letter-spacing: var(--mys-pui-ls);
}

/* Varian inline di judul PDP (/ setelah nama) */
.mys-product-variant-inline {
    font-size: var(--mys-pui-size-variant-pdp);
    font-weight: var(--mys-pui-fw);
    letter-spacing: var(--mys-pui-ls);
    line-height: var(--mys-pui-lh);
    color: var(--mys-pui-color);
}

/* Judul produk PDP, list toko, ringkasan checkout, wishlist variant */
.mys-pdp .product-content-header__main-info .title {
    font-weight: var(--mys-pui-fw) !important;
    font-size: var(--mys-pui-size-name-pdp) !important;
    letter-spacing: var(--mys-pui-ls);
    line-height: var(--mys-pui-lh);
    color: var(--mys-pui-color);
}

.checkout-order-line__name {
    font-weight: var(--mys-pui-fw);
    font-size: var(--mys-pui-size-name-checkout);
    letter-spacing: var(--mys-pui-ls);
    line-height: var(--mys-pui-lh);
    color: var(--mys-pui-color);
    margin: 0;
}

.checkout-order-line__variant-row {
    font-weight: var(--mys-pui-fw);
    font-size: var(--mys-pui-size-variant-checkout);
    letter-spacing: var(--mys-pui-ls);
    line-height: var(--mys-pui-lh);
    color: #3b9fd8;
    margin-top: 3px;
}

.mys-order-item-name {
    font-weight: var(--mys-pui-fw);
    font-size: var(--mys-pui-size-name-order);
    letter-spacing: var(--mys-pui-ls);
    line-height: var(--mys-pui-lh);
    color: var(--mys-pui-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mys-wishlist-variant {
    font-size: var(--mys-pui-size-variant-grid);
    font-weight: var(--mys-pui-fw);
    letter-spacing: var(--mys-pui-ls);
    line-height: var(--mys-pui-lh);
    color: var(--mys-pui-color);
    margin: 0 0 4px;
}

/* Category label above product name */
.product-category,
.product-info .category,
.product-tag,
.grid-product__category {
    font-weight: 600 !important;
    font-size: 0.68rem !important;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #a0a0b0;
}

/* Price */
.product-price,
.price,
.current-price,
.regular-price,
.product-info .price,
.grid-product__price {
    font-weight: 800 !important;
    font-size: 0.88rem !important;
    color: #1a1a2e;
}

.old-price,
.price-old,
del .amount {
    font-weight: 400 !important;
    color: #b0b0be !important;
    font-size: 0.75rem !important;
    text-decoration: line-through;
}

/* Discount badge */
.product-discount,
.badge-discount,
.discount-badge,
.sale-badge {
    font-weight: 700 !important;
    font-size: 0.68rem !important;
    letter-spacing: 0.02em;
    border-radius: 6px 6px 0 0;
}

/* Navigation / header links */
.offcanvas-navigation li a,
.footer-nav-single span,
header a,
.nav-link {
    font-weight: 500;
    letter-spacing: 0.01em;
}

/* ── [POLISH #7] Focus ring — keyboard accessibility ── */
:focus-visible {
    outline: 2px solid var(--mys-aksen, #C8384D);
    outline-offset: 2px;
}
button:focus:not(:focus-visible),
a:focus:not(:focus-visible) {
    outline: none;
}

/* ── Buttons ──────────────────────────────────────── */
button,
.btn,
.btn-mys,
.add-to-cart-btn,
a.add-to-cart-btn,
.btn-theme,
.checkout-btn,
.view-cart-btn {
    font-weight: 700 !important;
    letter-spacing: 0.04em;
    border-radius: 50px !important;
    font-size: 0.82rem !important;
    touch-action: manipulation; /* cegah double-tap zoom di iOS */
}

/* Primary action button style */
.btn-mys,
.add-to-cart-btn,
.btn-theme {
    padding: 10px 24px !important;
    text-transform: uppercase;
}

/* ── [POLISH #1] CTA button hover lift — subtle scale + shadow ── */
@media (min-width: 992px) {
    .btn-mys,
    .add-to-cart-btn,
    a.add-to-cart-btn,
    .btn-theme,
    .checkout-btn,
    .view-cart-btn {
        transition: background-color 0.2s ease, border-color 0.2s ease,
                    color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    }
    .btn-mys:hover,
    .add-to-cart-btn:hover,
    a.add-to-cart-btn:hover,
    .btn-theme:hover,
    .checkout-btn:hover,
    .view-cart-btn:hover {
        transform: translateY(-2px) scale(1.03);
        box-shadow: 0 4px 14px rgba(0,0,0,0.12);
    }
    .btn-mys:active,
    .add-to-cart-btn:active,
    .btn-theme:active,
    .checkout-btn:active,
    .view-cart-btn:active {
        transform: translateY(0) scale(1);
        box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    }
}

/* Small round buttons */
.btn-sm,
button.btn-sm {
    padding: 7px 18px !important;
    font-size: 0.75rem !important;
    border-radius: 50px !important;
}

/* ── Inputs ───────────────────────────────────────── */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="number"],
input[type="search"],
textarea,
select,
.form-control {
    font-size: 16px !important; /* min 16px — cegah auto-zoom iOS Safari */
    font-weight: 400;
    border-radius: 10px !important;
    border: 1.5px solid #e8e8f0 !important;
    padding: 10px 16px !important;
    color: #1a1a2e;
    transition: border-color 0.15s;
    touch-action: manipulation; /* cegah double-tap zoom */
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="tel"]:focus,
input[type="number"]:focus,
textarea:focus,
.form-control:focus {
    border-color: var(--mys-aksen, #e8b4b8) !important;
    box-shadow: 0 0 0 3px rgba(232,180,184,0.15) !important;
    outline: none !important;
}

/* ── Cards / Product tiles ────────────────────────── */
.product-card,
.single-product,
.product-tile,
.shop-product-card,
.product-grid-item,
.product-item {
    border-radius: 16px !important;
    overflow: hidden;
    border: none !important;
    background: #fff;
}

/* Product image wrapper */
.product-card .product-img,
.product-card .product-image,
.product-card a.img {
    border-radius: 14px 14px 0 0 !important;
}

/* ── Grid-product (main product tile) ─────────────── */
.grid-product {
    border-radius: 16px !important;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
    transition: box-shadow 0.2s ease;
}

.grid-product:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.10);
}

.grid-product__image {
    border-radius: 14px 14px 0 0 !important;
    overflow: hidden;
    position: relative;
    background: #fdf5f7;
    display: flex;
    align-items: stretch;
    justify-content: center;
    /* Bingkai gambar seragam per kolom → grid rapi; contain isi slot (jeda samping/atas boleh) */
    aspect-ratio: 1 / 1;
    width: 100%;
}

.grid-product__image > a {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1 1 auto;
    align-self: stretch;
    width: 100%;
    min-width: 0;
    min-height: 0;
}

.grid-product__image img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

.grid-product__image .mys-grid-promo-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 2;
    font-size: 0.65rem;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 600;
    line-height: 1.2;
    color: #fff;
    pointer-events: none;
}
.grid-product__image .mys-grid-promo-badge--new {
    background: #e8b4b8;
}
.grid-product__image .mys-grid-promo-badge--flash {
    background: #ef4444;
}
.grid-product__image .mys-grid-promo-badge--flash .mys-flash-bolt {
    filter: sepia(1) saturate(5) hue-rotate(5deg) brightness(1.2);
}

/* Badge diskon % (sudut kanan bawah gambar — dipakai Flash Sale home, dll.) */
.grid-product__image .mys-grid-discount-corner {
    position: absolute;
    right: 8px;
    bottom: 8px;
    z-index: 2;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    line-height: 1;
    padding: 6px 9px;
    border-radius: 6px;
    color: #fff;
    background: linear-gradient(135deg, #ff2020 0%, #e00000 100%);
    box-shadow: 0 2px 6px rgba(224, 0, 0, 0.35);
    pointer-events: none;
}

/*
 * Desktop storefront: kartu produk (.grid-product) maks. lebar 300px; gambar sampai tinggi sama tapi tidak memotong lebar
 */
@media (min-width: 768px) {
    .grid-product {
        max-width: 300px;
        width: 100%;
        margin-left: auto;
        margin-right: auto;
        box-sizing: border-box;
    }

    .grid-product__image {
        width: 100%;
        margin-left: 0;
        margin-right: 0;
        min-width: 0;
    }

    /* Shop list layout (shop_list.html): thumbnail horizontal */
    .list-product__image {
        flex-basis: auto !important;
        width: min(300px, 42vw);
        max-width: 300px;
        max-height: 300px;
        overflow: hidden;
        flex-shrink: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        background: #fdf5f7;
    }

    .list-product__image > a {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        min-height: 120px;
    }

    .list-product__image img {
        width: auto;
        height: auto;
        max-width: 100%;
        max-height: 300px;
        object-fit: contain;
    }

    .list-product__content {
        flex-basis: 0 !important;
        flex-grow: 1;
        min-width: 0;
    }
}

.mys-shop-results.mys-shop-loading {
    opacity: 0.55;
    pointer-events: none;
    transition: opacity 0.15s ease;
}

.grid-product__content {
    padding: 10px 12px 12px !important;
}

/*
 * Kartu .mys-grid-product-card: dalam satu baris grid, kolom sama tinggi (Bootstrap stretch).
 * Konten teks mengisi sisa ruang; baris harga + ATC menempel bawah — judul/kategori tidak
 * membuat kartu “jenjong” berbeda saat ada coret harga atau tidak.
 */
.row > [class*='col-']:has(> .mys-grid-product-card) {
    display: flex;
    flex-direction: column;
}

.mys-grid-product-card {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    width: 100%;
    min-height: 0;
}

.mys-grid-product-card .grid-product__image {
    flex-shrink: 0;
}

.mys-grid-product-card .grid-product__content {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    /* Rapat ke gambar + blok teks lebih pendek (shop / search grid) */
    padding: 5px 10px 7px !important;
}

.mys-grid-product-card .grid-product__content .product-category-label,
.mys-grid-product-card .grid-product__content .category-label {
    margin: 0 0 1px !important;
    font-size: 0.68rem !important;
    line-height: 1.2;
}

.mys-grid-product-card .grid-product__content .title,
.mys-grid-product-card .grid-product__content h3 {
    margin: 0 0 3px !important;
    line-height: 1.28 !important;
}

.mys-grid-product-card .grid-product__content .mys-grid-variant-slot {
    min-height: 22px;
}

.mys-grid-product-card .grid-product__content .mys-grid-variant-row {
    margin: 2px 0 2px;
}

.mys-grid-product-card .grid-product__content .mys-grid-variant-static {
    margin: 2px 0 0;
    line-height: 1.25;
}

.mys-grid-product-card .grid-product__content .mys-grid-price-row {
    margin-top: auto;
    gap: 6px;
}

/* Konten atas kartu konsisten — brand, judul, varian satu kolom tetap tinggi jalur kosongnya */
.grid-product__content .mys-grid-product-stack {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
}

.grid-product__content .mys-grid-cat-placeholder {
    opacity: 0;
    pointer-events: none;
    user-select: none;
}

/* Lantai sama untuk varian hilang vs satu baris teks/chip pertama (baris harga bisa sejajar) */
.grid-product__content .mys-grid-variant-slot {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    align-content: flex-start;
    /* chip row + margin-vertical ~34px lebih tinggi dari teks variant tunggal */
    min-height: max(38px, calc(14px + 0.74rem * 1.35));
}

/* Category label above product name (Luxcrime style: medium, NOT uppercase) */
.grid-product__content .product-category-label,
.grid-product__content .category-label {
    font-weight: 500 !important;
    font-size: 0.72rem !important;
    letter-spacing: 0;
    color: #7a7a8a;
    margin: 0 0 2px;
    display: block;
}

/* Product title inside grid */
.grid-product__content .title,
.grid-product__content h3 {
    font-weight: var(--mys-pui-fw) !important;
    font-size: var(--mys-pui-size-name-grid) !important;
    letter-spacing: var(--mys-pui-ls);
    line-height: var(--mys-pui-lh);
    color: var(--mys-pui-color);
    margin: 0 0 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Price row */
.grid-product__content .price {
    margin-top: 4px;
}

.grid-product__content .discounted-price {
    font-weight: 300 !important;
    font-size: 14px !important;
    letter-spacing: 0.84px !important;
    color: #1a1a2e;
}

.grid-product__content .main-price {
    font-weight: 400 !important;
    font-size: 12px !important;
    color: #b0b0be;
    text-decoration: line-through;
    margin-left: 4px;
    opacity: 0.7;
}

/* Baris harga + tombol Add to cart — satu row */
.grid-product__content .mys-grid-price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 6px;
}
/* Harga tidak boleh terpotong ellipsis: lebar minimal = teks penuh; tombol yang boleh menyusut / pindah baris */
.grid-product__content .mys-grid-price-row .mys-grid-product-price {
    flex: 0 0 auto;
    margin-bottom: 0;
}
.grid-product__content .mys-grid-price-row .price {
    margin-top: 0;
}
.grid-product__content .mys-grid-price-row .mys-grid-product-price > div {
    white-space: nowrap;
    overflow: visible;
}

/* Varian di kartu grid (chip / teks tunggal) */
.grid-product__content .mys-grid-variant-row {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin: 6px 0 4px;
}
.grid-product__content .mys-grid-variant-chip {
    max-width: 100%;
    padding: 3px 8px;
    border-radius: 6px;
    border: 1px solid #e4e4ea;
    background: #fafafa;
    color: var(--mys-pui-color);
    font-size: var(--mys-pui-size-variant-grid);
    font-weight: var(--mys-pui-fw);
    font-style: italic;
    letter-spacing: var(--mys-pui-ls);
    line-height: var(--mys-pui-lh);
    cursor: pointer;
    font-family: inherit;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.grid-product__content .mys-grid-variant-chip:hover {
    border-color: var(--mys-aksen, #e8b4b8);
    color: var(--mys-pui-color);
}
.grid-product__content .mys-grid-variant-chip.is-active {
    border-color: var(--mys-aksen, #e8b4b8);
    background: rgba(232, 180, 184, 0.18);
    color: var(--mys-pui-color);
}
.grid-product__content .mys-grid-variant-static {
    font-size: calc(var(--mys-pui-size-variant-grid) + 0.1rem);
    font-weight: var(--mys-pui-fw);
    font-style: italic;
    letter-spacing: var(--mys-pui-ls);
    line-height: var(--mys-pui-lh);
    color: var(--mys-pui-color);
    margin: 4px 0 2px;
}

/* ════════════════════════════════════════════════════════════════
   VARIAN CARD — dua modifier resmi, satu untuk tiap konteks
   ════════════════════════════════════════════════════════════════

   --grid  : kartu kolom Bootstrap (shop, search, category detail, related)
             Basis tipografi & layout sudah di-set di atas — modifier ini
             hanya menegaskan identitas; tidak ada rule visual baru.

   --rail  : kartu horizontal scroll (new-rail, spotlight, flash sale home)
             Teks center, price row centered. Tipografi (font-weight, color,
             font-size) identik dengan --grid — tidak di-override di sini.
   ═══════════════════════════════════════════════════════════════ */

/* ── Shop flash sale rail ─────────────────────────────────── */
.mys-shop-flash-rail {
    padding: 16px 0 8px;
    border-bottom: 1px solid rgba(232, 180, 184, 0.30);
    margin-bottom: 16px;
}
.mys-shop-flash-rail .mys-lp-container {
    padding: 0 16px;
}
.mys-shop-flash-rail .mys-fs-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}
.mys-shop-flash-rail .mys-fs-title {
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
}
.mys-shop-flash-rail .mys-fs-title-highlight {
    color: var(--mys-aksen, #C8384D);
}
.mys-shop-flash-rail .mys-lp-new-rail {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    padding: 4px 0 14px;
}
.mys-shop-flash-rail .mys-lp-new-rail-card {
    flex: 0 0 min(60vw, 200px);
    max-width: 220px;
    scroll-snap-align: start;
    min-width: 0;
}
@media (min-width: 576px) {
    .mys-shop-flash-rail .mys-lp-new-rail-card {
        flex: 0 0 clamp(160px, 26vw, 220px);
    }
}
.mys-shop-flash-rail .grid-product {
    background: transparent;
    box-shadow: none;
    border-radius: 12px !important;
}
.mys-shop-flash-rail .grid-product__image {
    border-radius: 12px !important;
}
.mys-shop-flash-rail .mys-fs-card-deadline {
    text-align: center;
    font-size: 0.7rem;
    color: var(--mys-aksen, #C8384D);
    font-weight: 600;
    margin-top: 2px;
    padding-bottom: 4px;
}

/* ── Shop/category/search grid: flat tile — no card box oval ── */
.mys-shop-grid-inner .grid-product,
.mys-cat-grid-section .grid-product {
    border-radius: 12px !important;
    background: transparent;
    box-shadow: none;
}
.mys-shop-grid-inner .grid-product:hover,
.mys-cat-grid-section .grid-product:hover {
    box-shadow: none;
}
.mys-shop-grid-inner .grid-product__image,
.mys-cat-grid-section .grid-product__image {
    border-radius: 12px !important;
}

/* ── Variant: rail ─────────────────────────────────────────── */
.mys-grid-product-card--rail .grid-product__content {
    text-align: center;
}
.mys-grid-product-card--rail .grid-product__content .product-category-label,
.mys-grid-product-card--rail .grid-product__content .category-label {
    text-align: center;
}
.mys-grid-product-card--rail .grid-product__content .mys-grid-price-row {
    justify-content: center;
    gap: 10px;
}
.mys-grid-product-card--rail .grid-product__content .mys-grid-variant-slot {
    justify-content: center;
}

/* Quick add — minimalist circle outline (global default, semua page, semua breakpoint).
   Variant gelap (mis. flash sale strip) override-nya pakai scope sendiri. */
.grid-product__content .mys-grid-product-price {
    margin-bottom: 0;
}
.mys-grid-add-cart-btn,
.mys-grid-atc-variant {
    flex-shrink: 0;
    width: 34px;
    min-width: 34px;
    height: 34px;
    padding: 0;
    margin-top: 0;
    border: 1px solid rgba(26, 26, 46, 0.32);
    border-radius: 50%;
    background: transparent;
    color: #1a1a2e;
    box-shadow: none;
    font-size: 0;
    gap: 0;
    cursor: pointer;
    font-family: inherit;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}
.mys-grid-add-cart-btn .mys-atc-icon,
.mys-grid-atc-variant .mys-atc-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    line-height: 0;
}
.mys-grid-add-cart-btn .mys-atc-icon svg,
.mys-grid-atc-variant .mys-atc-icon svg {
    display: block;
    width: 14px;
    height: 14px;
    stroke-width: 1.4;
}
/* Label hidden everywhere — accessible via aria-label on the button */
.mys-grid-add-cart-btn .mys-atc-label,
.mys-grid-atc-variant .mys-atc-label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.mys-grid-add-cart-btn:hover,
.mys-grid-atc-variant:hover {
    background: #1a1a2e;
    color: #fff;
    border-color: #1a1a2e;
    filter: none;
    box-shadow: none;
}

/* Habis: sembunyikan tombol total — overlay "Habis" pada gambar sudah cukup sebagai indikator */
.mys-grid-add-cart-btn--habis {
    display: none !important;
}
.mys-grid-card--habis .grid-product__image {
    opacity: 0.65;
}
.mys-grid-card--habis .grid-product__image::after {
    content: 'Habis';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.28);
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.05em;
    border-radius: inherit;
}

/* Indikator stok rendah (1–10 item tersisa) */
.mys-grid-low-stock {
    margin: 0 0 4px;
    font-size: 0.7rem;
    font-weight: 600;
    color: #d97706;
    letter-spacing: 0.01em;
    line-height: 1.2;
}

/* Feedback singkat setelah add — struktur tombol (ikon + label) dipulihkan lewat innerHTML, bukan textContent. */
.mys-grid-add-cart-btn .mys-atc-feedback {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 1.2em;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1;
}

/* Layar sangat sempit: boleh wrap; tombol sedikit lebih kecil */
@media (max-width: 360px) {
    .grid-product__content .mys-grid-price-row {
        flex-wrap: wrap;
        align-items: center;
        gap: 6px;
    }
    .grid-product__content .mys-grid-price-row .mys-grid-add-cart-btn,
    .grid-product__content .mys-grid-price-row .mys-grid-atc-variant {
        width: 32px;
        min-width: 32px;
        height: 32px;
    }
    .grid-product__content .mys-grid-price-row .mys-grid-add-cart-btn .mys-atc-icon svg,
    .grid-product__content .mys-grid-price-row .mys-grid-atc-variant .mys-atc-icon svg {
        width: 14px;
        height: 14px;
    }
}

/* ── Section title (h2.section-title) ─────────────── */
h2.section-title {
    font-weight: 800 !important;
    font-size: 1.05rem !important;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #1a1a2e;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

h2.section-title a {
    font-weight: 600 !important;
    font-size: 0.72rem !important;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--mys-aksen, #e8b4b8) !important;
    text-decoration: none;
}

/* ── Grid spacing ─────────────────────────────────── */
.product-grid,
.row-products,
.row.product-row,
.products-row {
    gap: 12px !important;
    row-gap: 14px !important;
}

/* ── Section spacing ──────────────────────────────── */
.section-area,
.content-section,
.space-mt--40,
.space-mb--40 {
    margin-bottom: 32px;
}

/* ── Bottom Nav (removed — replaced by FAB) ── */

/* ── Offcanvas menu ───────────────────────────────── */
.offcanvas-navigation li a {
    font-size: 0.9rem !important;
    font-weight: 500 !important;
    letter-spacing: 0.01em;
}

.profile-card .name {
    font-weight: 700 !important;
    font-size: 1rem !important;
}

/* Legacy main.js used to add body.space-pt--120 after 200px scroll (caused hero jump).
   Spacing sekarang di-handle oleh .body-wrapper di mys-theme.css (dipindahkan dari base.html). */
body.space-pt--120 {
  padding-top: 0 !important;
}

/* ── Neutralize legacy .stick behavior from main.js ── */
/* Positioning sepenuhnya dikontrol oleh .mys-header-wrap */
header.sticker,
header.sticker.stick {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    width: 100% !important;
    z-index: auto !important;
    animation: none !important;
    background: transparent !important;
}

/* ── Header & footer brand logo (satu sumber gaya; PNG transparan direkomendasikan) ── */
.header-wrapper .header-logo img,
.mys-site-footer__logo {
    background: transparent !important;
    display: block;
    mix-blend-mode: multiply;   /* hapus background putih logo secara visual */
}

/* Greeting text */
.mys-header-greeting {
    font-size: 0.72rem;
    font-weight: 400;
    color: #7a7a8a;
    line-height: 1.3;
}

/* ── Elegant image fade-in (all devices) ─────────── */
/* Semua gambar & banner muncul pelan-pelan saat loaded — mirip La Prairie. */
.mys-img-reveal {
    opacity: 0;
    transition: opacity 0.7s ease-out;
}
.mys-img-reveal.mys-img-loaded {
    opacity: 1;
}

/* ── Scroll-reveal zoom animation (DESKTOP ONLY) ─── */
/* Mobile: card langsung visible tanpa animasi (scroll cepat, beda UX). */
@media (min-width: 992px) {
    .mys-grid-product-card,
    .mys-scroll-reveal {
        opacity: 0;
        transform: translateY(18px);
        transition: opacity 0.6s ease-out, transform 0.6s ease-out;
        /* transition-delay set dynamically by JS for 1-by-1 stagger */
    }
    .mys-grid-product-card.mys-revealed,
    .mys-scroll-reveal.mys-revealed {
        opacity: 1;
        transform: translateY(0);
    }
}
/* ── Unified banner reveal: ALL banners fade in together after all loaded ── */
/* JS adds .mys-banners-loaded to <body> once every banner image is ready.    */
/* NOTE: header icons sudah charcoal (#3e3e47) — aman jika hero opacity:0    */
.hero-slider,
.mys-sp-banner {
    opacity: 0;
    transition: opacity 0.7s ease-out;
}
body.mys-banners-loaded .hero-slider,
body.mys-banners-loaded .mys-sp-banner {
    opacity: 1;
}

/* ── Scroll zoom-out (La Prairie parallax): banners start 110% → 100% ── */
/* Only transform (zoom), no opacity — fade handled by unified banner reveal. */
@media (min-width: 992px) {
    .mys-scroll-zoom img,
    .mys-scroll-zoom .bg-img {
        transform: scale(1.1);
        transition: transform 1.4s cubic-bezier(0.22, 0.61, 0.36, 1);
        will-change: transform;
    }
    .mys-scroll-zoom.mys-zoom-active img,
    .mys-scroll-zoom.mys-zoom-active .bg-img {
        transform: scale(1);
    }
}

/* ── Spotlight banner hover "lift" (La Prairie category hover) ── */
/* On hover, image appears to "lift" — vertical scale shrinks, origin at bottom. */
@media (min-width: 992px) {
    .mys-sp-banner {
        cursor: pointer;
    }
    .mys-sp-banner-pic img {
        transition: transform 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        transform-origin: center bottom;
    }
    .mys-sp-banner:hover .mys-sp-banner-pic img {
        transform: scaleY(0.93);      /* vertical shrink = "lift/float" effect */
    }
}

/* No-motion preference */
@media (prefers-reduced-motion: reduce) {
    .mys-grid-product-card,
    .mys-scroll-reveal,
    .mys-img-reveal,
    .mys-sp-banner,
    .mys-scroll-zoom img,
    .mys-scroll-zoom .bg-img {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}

.mys-header-greeting strong {
    font-weight: 700;
    color: #1a1a2e;
    font-size: 0.8rem;
}

/* ── Banner / Hero ────────────────────────────────── */
.hero-slider-content h1,
.hero-slider-content h2,
.hero-slider-content .banner-title {
    font-weight: 900 !important;
    letter-spacing: -0.01em;
    line-height: 1.1;
}

.hero-slider-content .banner-subtitle,
.hero-slider-content p {
    font-weight: 300;
    font-size: 0.88rem;
}

/* ── Category pills / chips ───────────────────────── */
.category-name,
.category-title,
.category-pill {
    font-weight: 700 !important;
    font-size: 0.75rem !important;
    letter-spacing: 0.02em;
}

/* ── Modal / Popup ────────────────────────────────── */
.modal-title,
.modal h4,
.modal h5 {
    font-weight: 800 !important;
    font-size: 1.05rem !important;
}

/* ── Form labels ──────────────────────────────────── */
label,
.form-label,
.sf-label {
    font-weight: 600 !important;
    font-size: 0.78rem !important;
    letter-spacing: 0.01em;
    color: #4a4a5a;
}

/* ── Cart / Checkout — nama produk (legacy class) ───────────────── */
.cart-product-name,
.order-item-name {
    font-weight: var(--mys-pui-fw) !important;
    font-size: var(--mys-pui-size-name-cart) !important;
    letter-spacing: var(--mys-pui-ls);
    line-height: var(--mys-pui-lh);
    color: var(--mys-pui-color);
}

.cart-price,
.order-total-value {
    font-weight: 800 !important;
}

/* ── Section title (Luxcrime style: label + big heading) ── */
.mys-section-label {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--mys-aksen, #e8b4b8);
    margin-bottom: 4px;
}

.mys-section-title {
    font-size: clamp(1.1rem, 4.5vw, 1.4rem);
    font-weight: 800;
    color: #1a1a2e;
    letter-spacing: 0.01em;
    line-height: 1.2;
    margin: 0 0 20px;
}

/* ── Alert / Messages ─────────────────────────────── */
.alert,
.messages div {
    font-size: 0.85rem !important;
    border-radius: 12px !important;
    font-weight: 500;
}

/* ── SweetAlert2 override ─────────────────────────── */
/* Wajib di atas drawer keranjang (10040), reminder modal (10050), offcanvas (10039) */
.swal2-container {
    z-index: 110000 !important;
}

.swal2-title {
    font-weight: 800 !important;
}

.swal2-confirm,
.swal2-cancel {
    font-weight: 700 !important;
    border-radius: 50px !important;
    letter-spacing: 0.04em;
}

/* ── Misc helpers ─────────────────────────────────── */
.text-muted {
    color: #a0a0b0 !important;
}

small {
    font-size: 0.75rem;
}

/* ── Topbar text (Luxcrime-ish: Figtree sedang, tracking moderat) ── */
#mys-topbar .mys-topbar-item {
    font-weight: 500 !important;
    letter-spacing: 0.045em !important;
    text-transform: uppercase;
    font-size: 0.74rem !important;
}

/* ── Spacing overrides (Luxcrime tighter) ─────────── */
.space-mb--20 {
    margin-bottom: 12px !important;
}

.space-mb--30 {
    margin-bottom: 20px !important;
}

.space-mb--40 {
    margin-bottom: 28px !important;
}

.space-pt--70 {
    padding-top: var(--mys-chrome-h, 68px) !important;
}

/* ── Row gutter for product grid ──────────────────── */
.row-5  { --bs-gutter-x: 5px;  --bs-gutter-y: 10px; }
.row-10 { --bs-gutter-x: 10px; --bs-gutter-y: 12px; }

/* ── Hero slider text ─────────────────────────────── */
.hero-slider-content h2 {
    font-weight: 900 !important;
    font-size: clamp(1.6rem, 7vw, 2.5rem) !important;
    line-height: 1.1 !important;
    letter-spacing: -0.01em;
}

/* ── Offcanvas Sidebar — full viewport redesign ──── */
/* Di atas #mys-topbar (z-index 1001) — panel tidak lagi di dalam #mys-header-wrap (999) */
.offcanvas-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 10038;
}
.offcanvas-overlay.active { display: block; }

/* Full-width mobile: backdrop tetap ada (tipis) agar bisa tap luar = tutup — jangan display:none */
@media (max-width: 479px) {
    .offcanvas-overlay.active {
        display: block !important;
        background: rgba(0,0,0,0.35);
    }
}

.offcanvas-menu {
    top: 0 !important;
    height: 100vh !important;
    height: 100dvh !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: column;
    overflow: hidden;
    border-radius: 0 !important;
    background: #fff !important;
    background-image: none !important;
    position: fixed !important;
    z-index: 10039 !important;
        /* Full viewport width on mobile */
    width: 100vw !important;
    right: 0 !important;
    left: 0 !important;
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s linear 0.28s !important;
    /* Closed state — hide off-screen right so it doesn't widen the document */
    transform: translateX(100%);
    visibility: hidden;
    will-change: transform;
    contain: layout paint;
}
/* Open state */
.offcanvas-menu.active {
    transform: translateX(0) !important;
    visibility: visible !important;
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s !important;
}

/* On larger screens keep a drawer width */
@media (min-width: 480px) {
    .offcanvas-menu {
        width: 360px !important;
        left: auto !important;
    }
}

/* ── Sidebar Topbar (brand + X) ── */
.mys-sidebar-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px 16px;
    border-bottom: 1px solid #efefef;
    flex-shrink: 0;
}

.mys-sidebar-brand {
    font-weight: 800;
    font-size: 1.25rem;
    color: #1a1a2e;
    letter-spacing: -0.03em;
    text-transform: lowercase;
    line-height: 1;
}

.mys-sidebar-close {
    background: none;
    border: none;
    padding: 10px;
    min-width: 44px;
    min-height: 44px;
    cursor: pointer;
    color: #1a1a2e;
    line-height: 0;
    border-radius: 50%;
    transition: background 0.12s, color 0.12s;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: -4px -6px -4px 0;
}
.mys-sidebar-close:hover { background: rgba(0,0,0,0.06); color: #000; }
.mys-sidebar-close:focus-visible {
    outline: 2px solid var(--mys-aksen, #e8b4b8);
    outline-offset: 2px;
}

/* ── Login / Register buttons (guest) ── */
.mys-sidebar-auth-btns {
    display: flex;
    gap: 0;
    flex-shrink: 0;
    margin: 14px 20px 10px;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 14px;
}

.mys-sidebar-btn-login,
.mys-sidebar-btn-register {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 13px 8px;
    font-weight: 700;
    font-size: 0.78rem;
    letter-spacing: 0.05em;
    text-decoration: none;
    border: 1px solid #ddd;
    transition: background 0.15s, color 0.15s;
}

.mys-sidebar-btn-login {
    background: var(--mys-aksen, #e8b4b8);
    color: #fff;
    border-color: var(--mys-aksen, #e8b4b8);
    border-radius: 4px 0 0 4px;
}
.mys-sidebar-btn-login:hover { opacity: 0.88; color: #fff; }

.mys-sidebar-btn-register {
    background: #fff;
    color: #555;
    border-left: none;
    border-radius: 0 4px 4px 0;
}
.mys-sidebar-btn-register:hover { background: #fafafa; color: #1a1a2e; }

/* ── User block (logged in) ── */
.mys-sidebar-user-block {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    border-bottom: 1px solid #f0f0f0;
    flex-shrink: 0;
    background: #fdf7f8;
}

.mys-sidebar-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--mys-aksen, #e8b4b8);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 800;
    font-size: 1.05rem;
    flex-shrink: 0;
}

.mys-sidebar-user-info {
    flex: 1;
    min-width: 0;
}

.mys-sidebar-user-name {
    font-weight: 700;
    font-size: 0.88rem;
    color: #1a1a2e;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mys-sidebar-user-email {
    font-weight: 400;
    font-size: 0.7rem;
    color: #a0a0b0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ── Sidebar Navigation ── */
.offcanvas-navigation-wrapper {
    flex: 1;
    overflow-y: auto;
    padding: 4px 0;
    -webkit-overflow-scrolling: touch;
}

.offcanvas-navigation {
    height: auto !important;
    overflow: visible !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none;
}

.offcanvas-navigation li {
    display: flex !important;
    align-items: center;
    flex-wrap: wrap;
    /* horizontal padding: icon aligns with topbar/auth content */
    padding: 0 20px 0 20px !important;
    border-bottom: 1px solid #f0f0f0 !important;
    border-top: none !important;
    gap: 0;
    position: relative;
    /* left accent border for active (reserve space so non-active items don't shift) */
    border-left: 3px solid transparent !important;
}

.offcanvas-navigation li:last-child { border-bottom: none !important; }
.offcanvas-navigation li:nth-child(1) { border-top: none !important; }

.offcanvas-navigation li:hover { background: #fafafa; }

/* Active nav item */
.offcanvas-navigation li.mys-nav-active {
    background: #fdf7f8 !important;
    border-left-color: var(--mys-aksen, #e8b4b8) !important;
}
.offcanvas-navigation li.mys-nav-active a {
    color: var(--mys-aksen, #e8b4b8) !important;
    font-weight: 700 !important;
}
.offcanvas-navigation li.mys-nav-active span.icon {
    opacity: 0.9 !important;
}

/* Icon — inline, no box */
.offcanvas-navigation li span.icon {
    width: 36px !important;
    height: auto !important;
    border-radius: 0 !important;
    background: none !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    margin-right: 8px !important;
    flex-shrink: 0;
    opacity: 0.4;
}

.offcanvas-navigation li span.icon svg,
.offcanvas-navigation li span.icon img,
.offcanvas-navigation li span.icon i {
    width: 16px !important;
    height: 16px !important;
    font-size: 1rem !important;
    line-height: 1;
}

.offcanvas-navigation li a {
    font-weight: 500 !important;
    font-size: 0.95rem !important;
    color: #1a1a2e !important;
    flex: 1;
    letter-spacing: 0;
    padding: 15px 0 !important;
    display: block !important;
    line-height: 1.2;
}
/* Reset <a> tags inside order count badges — override the global li a rule */
.offcanvas-navigation li .mys-order-count-badges a.mys-ocb-item {
    flex: none !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: flex-end;
    gap: 3px;
    padding: 0 !important;
    pointer-events: auto;
    width: auto !important;
    height: auto !important;
    line-height: 1 !important;
}

/* Sidebar badge (cart count, wishlist count) */
.mys-sidebar-badge {
    font-size: 0.62rem;
    font-weight: 700;
    background: var(--mys-aksen, #e8b4b8);
    color: #fff;
    border-radius: 50px;
    padding: 2px 7px;
    min-width: 18px;
    text-align: center;
    flex-shrink: 0;
    line-height: 1.5;
    margin-left: 6px;
    text-decoration: none;
}

/* Notification count badge — blue */
.mys-notif-count {
    background: #2563eb;
    color: #fff;
}

/* Order status badges in sidebar */
.mys-sidebar-order-badges {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: 6px;
    flex-shrink: 0;
}
.mys-sidebar-badge--unpaid {
    background: #dc2626;
    color: #fff;
    font-size: 0.62rem;
    font-weight: 700;
    border-radius: 50px;
    padding: 2px 7px;
    min-width: 18px;
    text-align: center;
    line-height: 1.5;
    text-decoration: none;
}
.mys-sidebar-badge--unpaid:hover { background: #b91c1c; color: #fff; text-decoration: none; }
.mys-sidebar-badge--processing {
    background: #15803d;
    color: #fff;
    font-size: 0.62rem;
    font-weight: 700;
    border-radius: 50px;
    padding: 2px 7px;
    min-width: 18px;
    text-align: center;
    line-height: 1.5;
    text-decoration: none;
}
.mys-sidebar-badge--processing:hover { background: #166534; color: #fff; text-decoration: none; }
.mys-sidebar-badge--shipped {
    background: #1d4ed8;
    color: #fff;
    font-size: 0.62rem;
    font-weight: 700;
    border-radius: 50px;
    padding: 2px 7px;
    min-width: 18px;
    text-align: center;
    line-height: 1.5;
    text-decoration: none;
}
.mys-sidebar-badge--shipped:hover { background: #1e40af; color: #fff; text-decoration: none; }

/* My Orders — count badges di ujung kanan flex row (bukan absolute agar tidak tumpang tindih link) */
.mys-order-count-badges {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    pointer-events: none;
    flex-shrink: 0;
    margin-left: auto;
    padding-left: 6px;
}
/* Each item: small label text + circle badge, same row */
.mys-ocb-item {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    text-decoration: none;
}
.mys-ocb-label {
    font-size: 0.65rem;
    font-weight: 600;
    color: #888;
    white-space: nowrap;
}
@keyframes mys-hint-pulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.45; }
}
.mys-order-nav-hint--pulse { animation: mys-hint-pulse 1.6s ease-in-out infinite; }

/* My Orders nav link — keep same dark color as other nav links even when active */
.offcanvas-navigation li a.mys-orders-link {
    color: #1a1a2e !important;
    font-weight: 500 !important;
    flex: 1 !important;
    min-width: 0 !important;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
/* Prevent My Orders li from wrapping badges to next line */
.offcanvas-navigation li:has(.mys-order-count-badges) {
    flex-wrap: nowrap !important;
}

/* ── Sidebar Footer (logout) ── */
.mys-sidebar-lang-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px 12px;
    border-bottom: 1px solid #f0f0f0;
    flex-shrink: 0;
}
.mys-sidebar-lang-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--mys-teks-muted, #888);
    display: flex;
    align-items: center;
    gap: 6px;
}

.mys-sidebar-footer {
    padding: 10px 20px 20px;
    border-top: 1px solid #f0f0f0;
    flex-shrink: 0;
}

.mys-sidebar-logout {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 0.88rem;
    color: #cc3333;
    text-decoration: none;
    padding: 11px 12px;
    border-radius: 8px;
    transition: background 0.12s;
}
.mys-sidebar-logout:hover { background: #fff0f0; }
.mys-sidebar-logout svg { opacity: 0.7; flex-shrink: 0; }

/* ── Preloader ─────────────────────────────────────── */
/* (untouched — logo based) */

/* ── Fly-to-cart: partikel thumbnail → ikon keranjang header ── */
.mys-fly-cart-particle {
    backface-visibility: hidden;
}
#mys-header-cart-fly-pulse.mys-cart-icon-bump {
    animation: mysCartIconBump 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform-origin: center center;
}
@keyframes mysCartIconBump {
    0% { transform: scale(1); }
    35% { transform: scale(1.22); }
    100% { transform: scale(1); }
}

/* Breadcrumb storefront: tidak menambah “pita” di bawah chrome — offset vertikal dari JS + .body-wrapper saja. */
.breadcrumb-area {
    padding-top: 24px !important;
}

/* Sub-category detail page: extra top breathing room below fixed chrome */
.mys-cat-detail-header {
    padding-top: 28px !important;
}
/* Sub-category product grid: bottom clearance above footer */
.mys-cat-grid-section {
    padding-bottom: 50px !important;
}

.breadcrumb-area .page-title,
.breadcrumb-area h1,
.breadcrumb-area .mys-lp-sec-title {
    margin-top: 0 !important;
}

/* ── Halaman keranjang: judul & area breadcrumb selaras tipografi storefront ── */
.mys-cart-page .breadcrumb-area {
    padding-top: 10px !important;
    padding-bottom: 14px !important;
    background: linear-gradient(180deg, #fafafa 0%, #f6f6f8 100%);
    border-bottom: 1px solid rgba(30, 42, 58, 0.06);
}
.mys-cart-page .breadcrumb-area .container {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    max-width: 100%;
}
.mys-cart-page .breadcrumb-area .page-title {
    font-weight: 800 !important;
    font-size: 1.125rem !important;
    letter-spacing: 0.04em !important;
    color: #2d2d2d !important;
    line-height: 1.2 !important;
    margin: 0 !important;
}
@media (min-width: 768px) {
    .mys-cart-page .breadcrumb-area .page-title {
        font-size: 1.2rem !important;
    }
}

/* ── Keranjang: baris item (halaman + drawer) ── */
.cart-product {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    align-content: flex-start;
    gap: 14px;
    padding: 16px max(16px, env(safe-area-inset-right)) 16px max(16px, env(safe-area-inset-left));
    border-bottom: 1px solid #f5eded;
}
.cart-product--habis {
    opacity: 0.65;
    background: #f3f4f6; /* light grey — bukan red tint */
}
.cart-product--habis .cart-product__image img,
.cart-product--habis .cart-product__title-row {
    filter: grayscale(0.5);
}
.mys-cart-stok-habis-badge {
    width: 100%;
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 5px 10px;
    border-radius: 8px;
    margin-bottom: -4px;
}
.mys-cart-unavail-badge {
    background: #f3f4f6;
    border-color: #d1d5db;
    color: #6b7280;
}
.cart-product--unavailable {
    opacity: 0.6;
    background: #f9fafb;
}
.cart-product--unavailable .cart-qty input,
.cart-product--unavailable .cart-qty-btn {
    pointer-events: none;
    opacity: 0.4;
}
/* Over-order: qty melebihi stok tersedia */
.cart-product--over .cart-qty-btn[data-mys-qty-delta="1"]:disabled {
    opacity: 0.25;
    cursor: not-allowed;
}
.mys-cart-stok-over-badge {
    font-size: 0.68rem;
    font-weight: 700;
    color: #dc2626;
    text-align: right;
    margin-bottom: 3px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
    line-height: 1.2;
}
.cart-product__image {
    align-self: flex-start;
    flex: 0 0 auto;
    flex-basis: auto;
    width: fit-content;
    margin-right: 0;
    background: none;
}
.cart-product__image a {
    display: block;
    line-height: 0;
}
.cart-product__image img {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 10px;
}
.cart-product__image .no-foto {
    width: 72px;
    height: 72px;
    background: #f5eded;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: #ddd;
}
/* Kolom kanan: judul → varian → [harga | qty]; promo penuh lebar di atas (lihat .cart-product__promo-row) */
.cart-product__body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
/* Judul produk di drawer/halaman keranjang = tipografi nama produk kartu home LP;
   h3 global memakai fw 800 !important — perlu !important di sini supaya tidak bold */
.cart-product__title-row .title {
    font-size: var(--mys-pui-size-name-lp);
    font-weight: var(--mys-pui-fw) !important;
    letter-spacing: var(--mys-pui-ls) !important;
    line-height: var(--mys-pui-lh) !important;
    color: var(--lp-text) !important;
    margin: 0;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    word-break: break-word;
}
.cart-product__title-row .title a {
    font-weight: inherit !important;
    color: inherit;
    text-decoration: none;
}
.cart-product__variant-row:empty {
    display: none;
}
.cart-product__variant-row .variant {
    font-size: var(--mys-pui-size-variant-lp);
    font-weight: var(--mys-pui-fw);
    font-style: italic;
    letter-spacing: var(--mys-pui-ls);
    line-height: var(--mys-pui-lh);
    color: var(--lp-text);
    margin: 0 0 4px;
}
.cart-product__variant-row .variant strong {
    font-weight: inherit;
}
.cart-product__price-qty-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 6px;
}
.cart-product__price-col {
    flex: 1;
    min-width: 0;
}
/* subfoot sekarang di luar price-qty-row, langsung di bawah */
.cart-product__stok-badge-row {
    margin-bottom: 4px;
}
.cart-product__promo-row:empty {
    display: none;
}
.cart-product__promo-row {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px 8px;
    flex: 1 1 100%;
    width: 100%;
    order: -1;
    margin: 0 0 5px;
    padding: 5px 8px;
    box-sizing: border-box;
    background: #fff1f2;
    border: 1px solid #fecdd3;
    border-radius: 8px;
    font-size: 0.72rem;
}
.cart-product__promo-row .cart-product__badge {
    margin-top: 0;
    flex-shrink: 0;
}
.cart-product__promo-row .mys-flash-deadline {
    margin-top: 0;
    flex: 1;
    min-width: 0;
}
.cart-product__promo-row .mys-flash-deadline__text {
    display: inline;
    font-size: 0.72rem;
}
.cart-product__price-col .price {
    font-size: 14px;
    font-weight: 300;
    letter-spacing: 0.84px;
    color: #1a1a2e;
    line-height: 1.35;
}
.cart-product__price-col .price .cart-price--coret {
    font-weight: 400;
    font-size: 12px;
    color: #b0b0be;
    text-decoration: line-through;
    opacity: 0.7;
    margin-left: 4px;
}
.cart-product__price-col .price .cart-price--flash {
    color: #dc2626;
}
.cart-product__price-col .price .cart-price--tebus {
    color: #15803d;
}
.cart-product__badge {
    margin-top: 6px;
    display: block;
}
.cart-product__badge .cart-badge-label {
    display: inline-block;
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    padding: 2px 6px;
    border-radius: 4px;
    line-height: 1.2;
    vertical-align: middle;
}
.cart-product__badge .cart-badge-label--flash {
    background: #ef4444;
    color: #fff;
}
.cart-product__badge .cart-badge-label--default {
    background: #7c3aed;
    color: #fff;
}
.cart-product__badge .cart-badge-label--tebus {
    background: #059669;
    color: #fff;
}
.cart-product__badge .cart-badge-label--qty {
    background: #4f46e5;
    color: #fff;
}
.mys-flash-deadline {
    margin-top: 4px;
}
.mys-flash-deadline__badge {
    display: inline-block;
    background: #ff4500;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    padding: 1px 6px;
    border-radius: 4px;
    margin-right: 4px;
    vertical-align: middle;
    line-height: 1.6;
}
.mys-flash-deadline__text {
    display: inline;
    color: #b91c1c;
    font-weight: 400;
    font-size: 0.68rem;
    line-height: 1.4;
    vertical-align: middle;
}
.checkout-order-line--flash {
}
.checkout-order-line--habis {
    border-left: 3px solid #9ca3af;
    padding-left: 8px;
    opacity: 0.6;
    background: #f3f4f6; /* light grey — konsisten dengan cart */
}
.checkout-order-line--habis .checkout-order-line__thumb img {
    filter: grayscale(0.6);
}
.checkout-order-line--over {
    border-left: 3px solid #f97316;
    padding-left: 8px;
    background: #fff7ed;
}
.checkout-line-stok-habis {
    font-size: 0.72rem;
    color: #dc2626;
    font-weight: 600;
    margin-top: 3px;
}
.checkout-line-stok-habis a {
    color: #dc2626;
    text-decoration: underline;
}
.checkout-line-stok-over {
    font-size: 0.72rem;
    color: #c2410c;
    font-weight: 600;
    margin-top: 3px;
}
.checkout-line-stok-over a {
    color: #c2410c;
    text-decoration: underline;
}
.cart-product__actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    flex-shrink: 0;
    margin-left: 4px;
}
.cart-product__subfoot {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: nowrap;
    width: 100%;
    max-width: 100%;
}
.cart-line-subtotal {
    font-size: 0.8rem;
    font-weight: 400;
    color: #999;
    line-height: 1;
    white-space: nowrap;
}
.cart-qty {
    display: flex;
    align-items: center;
    gap: 3px;
}
.cart-qty button {
    background: #f5eded;
    border: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    font-size: 0.8rem;
    cursor: pointer;
    font-weight: 400 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1e2a3a;
}
.cart-qty input {
    width: 30px;
    min-width: 30px;
    text-align: center;
    border: 1px solid #e0e0e8 !important;
    border-radius: 6px !important;
    font-size: 0.78rem !important;
    font-weight: 400 !important;
    padding: 3px 2px !important;
    color: #1a1a2e !important;
    background: #fafafa !important;
    -moz-appearance: textfield;
}
.cart-qty input::-webkit-outer-spin-button,
.cart-qty input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.cart-remove {
    position: static;
    bottom: auto;
    right: auto;
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 8px;
    background: rgba(220, 38, 38, 0.12);
    color: #dc2626;
    font-size: 0.85rem;
    font-weight: 400 !important;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}
.cart-remove:hover {
    background: rgba(220, 38, 38, 0.2);
    color: #b91c1c;
}
.cart-remove .bi {
    font-size: 0.95rem;
}

/* ── Drawer keranjang (modal slide-in) ── */
body.mys-cart-drawer-open {
    overflow: hidden;
}
.mys-cart-drawer-overlay {
    position: fixed;
    inset: 0;
    z-index: 10040;
}
.mys-cart-drawer-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
}
.mys-cart-drawer {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(100%, 400px);
    max-width: 100vw;
    background: #fff;
    display: flex;
    flex-direction: column;
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.12);
    animation: mysCartDrawerIn 0.28s ease;
}
@keyframes mysCartDrawerIn {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}
@keyframes mysCartSheetIn {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}
@media (max-width: 576px) {
    .mys-cart-drawer {
        left: 0;
        right: 0;
        top: auto;
        bottom: 0;
        width: 100%;
        max-height: 88vh;
        border-radius: 16px 16px 0 0;
        animation: mysCartSheetIn 0.28s ease;
    }
}
.mys-cart-drawer__head {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-bottom: 1px solid #f0e8e8;
    flex-shrink: 0;
}
.mys-cart-drawer__title {
    font-size: 1rem;
    font-weight: 400 !important;
    letter-spacing: 0.04em;
    color: #2d2d2d;
    margin: 0;
    flex: 1;
    min-width: 0;
}
.mys-cart-drawer__nks {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}
.mys-cart-drawer__fullnk {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--mys-aksen, #C8384D);
    text-decoration: none;
    white-space: nowrap;
    background: color-mix(in srgb, var(--mys-aksen, #C8384D) 10%, transparent);
    border: 1.5px solid color-mix(in srgb, var(--mys-aksen, #C8384D) 30%, transparent);
    border-radius: 999px;
    padding: 3px 11px 3px 9px;
    transition: background 0.15s, border-color 0.15s;
}
.mys-cart-drawer__fullnk::after {
    content: '↗';
    font-size: 0.75rem;
    opacity: 0.7;
}
.mys-cart-drawer__fullnk:hover {
    text-decoration: none;
    background: color-mix(in srgb, var(--mys-aksen, #C8384D) 18%, transparent);
    border-color: color-mix(in srgb, var(--mys-aksen, #C8384D) 50%, transparent);
}
.mys-cart-drawer__close {
    background: #f5f0f0;
    border: none;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    font-size: 1rem;
    line-height: 1;
    font-weight: 400 !important;
    cursor: pointer;
    color: #555;
    flex-shrink: 0;
}
.mys-cart-drawer__body {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    min-height: 0;
}
.mys-cart-d-empty {
    text-align: center;
    padding: 36px 20px;
    color: #999;
}
.mys-cart-d-empty__ico { font-size: 2.5rem; margin-bottom: 8px; }
.mys-cart-d-empty__btn {
    display: inline-block;
    margin-top: 14px;
    background: var(--mys-aksen, #e8b4b8);
    color: #fff;
    padding: 10px 24px;
    border-radius: 40px;
    font-weight: 800;
    text-decoration: none;
    font-size: 0.88rem;
}
.mys-cart-drawer__foot {
    padding: 14px 16px calc(14px + env(safe-area-inset-bottom));
    border-top: 1px solid #f0e8e8;
    background: #fff;
    flex-shrink: 0;
}
.mys-cart-drawer__sum {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.92rem;
    font-weight: 400;
    margin-bottom: 2px;
}
.mys-cart-drawer__sum strong {
    font-size: 1rem;
    font-weight: 800;
    color: #1e2a3a;
}
.mys-cart-drawer__hint {
    font-size: 0.78rem;
    font-weight: 400;
    color: #999;
    margin: 0 0 10px;
}
.mys-cart-drawer__cta-row {
    display: flex;
    gap: 8px;
    align-items: stretch;
    margin-bottom: 4px;
}
.mys-cart-drawer__checkout {
    flex: 1;
    display: block;
    padding: 12px 14px;
    background: var(--mys-aksen, #e8b4b8);
    color: var(--mys-teks-aksen, #fff);
    border: none;
    border-radius: 50px;
    font-weight: 800 !important;
    font-size: 1rem;
    cursor: pointer;
}
.mys-cart-drawer__shop {
    display: block;
    text-align: center;
    margin-top: 10px;
    font-size: 0.85rem;
    font-weight: 400;
    color: #999;
    text-decoration: none;
}
.mys-cart-drawer__shop:hover { color: #666; }

.mys-cart-drawer__links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 4px 10px;
    margin-top: 12px;
    font-size: 0.82rem;
    font-weight: 400;
}
.mys-cart-drawer__links a {
    color: #888;
    text-decoration: none;
}
.mys-cart-drawer__links a:hover { color: #555; }
.mys-cart-drawer__links-dot {
    color: #ccc;
    user-select: none;
}

.mys-cart-d-empty__home a:hover {
    color: #555 !important;
}

.mys-cart-drawer__remind {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: auto;
    margin: 0;
    padding: 10px 14px;
    border-radius: 999px;
    border: 1.5px dashed rgba(100, 100, 120, 0.35);
    background: rgba(248, 250, 252, 0.95);
    color: #5a6270;
    font-size: 0.82rem;
    font-weight: 400 !important;
    cursor: pointer;
    text-align: center;
    font-family: inherit;
    line-height: 1.3;
    transition: background 0.15s, border-color 0.15s;
    white-space: nowrap;
}
.mys-cart-drawer__remind:hover {
    background: #f1f5f9;
    border-color: var(--mys-aksen, #e8b4b8);
    color: #334155;
}

/* Modal pengingat → Google Calendar (di atas drawer) */
.mys-reminder-modal {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
}
.mys-reminder-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
}
.mys-reminder-modal__box {
    position: relative;
    width: 100%;
    max-width: 400px;
    max-height: 90vh;
    overflow: auto;
    padding: 20px 18px 18px;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
}
.mys-reminder-modal__title {
    font-size: 1.05rem;
    font-weight: 800;
    margin: 0 0 8px;
    color: var(--mys-teks-utama, #1e2a3a);
}
.mys-reminder-modal__desc {
    font-size: 0.84rem;
    color: #64748b;
    margin: 0 0 14px;
    line-height: 1.45;
}
.mys-reminder-modal__label {
    display: block;
    font-size: 0.78rem;
    font-weight: 400;
    margin-bottom: 6px;
    color: #475569;
}
.mys-reminder-modal__input {
    width: 100%;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1.5px solid #e2e8f0;
    font-size: 0.9rem;
    font-family: inherit;
    margin-bottom: 10px;
    box-sizing: border-box;
}
.mys-reminder-modal__input:focus {
    outline: none;
    border-color: var(--mys-aksen, #e8b4b8);
    box-shadow: 0 0 0 3px rgba(232, 180, 184, 0.2);
}
.mys-reminder-modal__hint {
    font-size: 0.72rem;
    color: #94a3b8;
    margin: 0 0 16px;
    line-height: 1.4;
}
.mys-reminder-modal__actions-vertical {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 8px;
}
.mys-reminder-modal__btn--block {
    width: 100%;
    box-sizing: border-box;
    justify-content: center;
}
.mys-reminder-modal__btn--outline {
    background: #fff;
    border: 1.5px solid #e2e8f0 !important;
    color: #475569 !important;
}
.mys-reminder-modal__btn--outline:hover {
    background: #f8fafc !important;
    border-color: #cbd5e1 !important;
}
.mys-reminder-modal__btn--link {
    background: transparent !important;
    color: var(--mys-aksen, #e8b4b8) !important;
    border: none !important;
    font-size: 0.78rem;
    font-weight: 400 !important;
    padding: 6px 4px !important;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.mys-reminder-modal__btn--link:hover {
    filter: brightness(0.95);
}
.mys-reminder-modal__actions--footer {
    margin-top: 6px;
    justify-content: center;
}
.mys-reminder-modal__actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    flex-wrap: wrap;
}
.mys-reminder-modal__btn {
    border-radius: 999px;
    padding: 10px 16px;
    font-size: 0.82rem;
    font-weight: 400 !important;
    cursor: pointer;
    font-family: inherit;
    border: none;
}
.mys-reminder-modal__btn--ghost {
    background: #f1f5f9;
    color: #64748b;
}
.mys-reminder-modal__btn--ghost:hover {
    background: #e2e8f0;
}
.mys-reminder-modal__btn--primary {
    background: var(--mys-aksen, #e8b4b8);
    color: var(--mys-teks-aksen, #fff);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 800 !important;
}
.mys-reminder-modal__btn--primary:hover {
    filter: brightness(0.95);
}
.mys-reminder-modal__gcal-ico {
    display: inline-block;
    width: 16px;
    height: 16px;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M19 4h-1V2h-2v2H8V2H6v2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 16H5V9h14v11z'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M19 4h-1V2h-2v2H8V2H6v2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 16H5V9h14v11z'/%3E%3C/svg%3E") center / contain no-repeat;
}

body.mys-reminder-modal-open {
    overflow: hidden;
}

/* ── Profile: avatar tanpa foto (inisial, tanpa dummy image) ── */
.mys-profile-avatar-placeholder {
    width: 120px;
    height: 120px;
    border-radius: 15px;
    background: linear-gradient(145deg, #e8eaf0 0%, #dfe3ea 100%);
    color: #5a6270;
    font-size: 2rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 0.02em;
    flex-shrink: 0;
}

/* ══════════════════════════════════════════════════════
   PDP — Elegant Product Detail (La Prairie inspired)
   ══════════════════════════════════════════════════════ */

/* ── Gallery ── */
body.mys-pdp .product-image-slider-wrapper {
    margin-top: 0;
}
body.mys-pdp .product-image-slider-wrapper .slick-list {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

@media (max-width: 767.98px) {
    body.mys-pdp .mys-pdp-hero.container {
        max-width: 100% !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    body.mys-pdp .mys-pdp-hero > .row {
        --bs-gutter-x: 0;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    body.mys-pdp .product-image-slider-wrapper .slick-list {
        border-radius: 0 !important;
    }
    body.mys-pdp .product-image-slider-wrapper {
        width: 100%;
    }
    body.mys-pdp .product-image-slider-wrapper .product-image-single {
        display: block;
        width: 100%;
    }
    body.mys-pdp .product-image-slider-wrapper .product-image-single img.img-fluid {
        width: 100% !important;
        max-width: 100% !important;
        max-height: none !important;
        height: auto !important;
        object-fit: contain;
        display: block;
    }
}
@media (min-width: 768px) {
    body.mys-pdp .mys-pdp-hero .product-image-slider-wrapper .product-image-single {
        display: flex;
        justify-content: center;
        align-items: center;
    }
    body.mys-pdp .mys-pdp-hero .product-image-slider-wrapper .product-image-single img.img-fluid {
        max-width: 100% !important;
        max-height: min(560px, 70vh) !important;
        width: auto !important;
        height: auto !important;
        object-fit: contain;
    }
}

/* ── PDP Hero spacing ── */
@media (min-width: 768px) {
    .mys-pdp-hero {
        padding-top: 24px;
        padding-bottom: 40px;
    }
}

/* ── Product info panel ── */
.mys-pdp-info {
    padding: 12px 0 0;
}
@media (min-width: 768px) {
    .mys-pdp-info {
        padding: 0;
        position: sticky;
        top: 120px;
    }
}

/* Breadcrumb (La Prairie style) */
.mys-pdp-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 24px;
    font-size: 0.7rem;
    font-weight: 300;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #6f6f75;
}
.mys-pdp-breadcrumb a {
    color: #6f6f75;
    text-decoration: none;
    transition: color 0.2s ease;
}
.mys-pdp-breadcrumb a:hover {
    color: var(--mys-pui-color, #3e3e47);
}
.mys-pdp-breadcrumb__sep {
    color: #b0b0b5;
}
.mys-pdp-breadcrumb__current {
    color: var(--mys-pui-color, #3e3e47);
}

/* Brand name (small, light — La Prairie) */
.mys-pdp-brand {
    font-size: 0.72rem;
    font-weight: 300;
    letter-spacing: 0.08em;
    color: #6f6f75;
    margin: 0 0 8px;
}

/* Title (light weight, wide tracking — La Prairie luxury) */
.mys-pdp-title {
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    font-weight: 300;
    letter-spacing: 0.12em;
    line-height: 1.3;
    color: var(--mys-pui-color, #3e3e47);
    margin: 0 0 8px;
    text-transform: uppercase;
}

/* Subtitle (variant / tagline) */
.mys-pdp-subtitle {
    font-size: 0.85rem;
    font-weight: 300;
    letter-spacing: 0.05em;
    color: #6f6f75;
    margin: 0 0 16px;
}

/* Price (La Prairie — clean, charcoal, no heavy weight) */
.mys-pdp-price {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}
.mys-pdp-price__current {
    font-size: 1.15rem;
    font-weight: 400;
    color: var(--mys-pui-color, #3e3e47);
    letter-spacing: 0.03em;
}
.mys-pdp-price__original {
    font-size: 0.85rem;
    font-weight: 300;
    color: #999;
    text-decoration: line-through;
}

/* Badges — subtle, refined */
.mys-pdp-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 16px;
}
.mys-pdp-badges:empty {
    display: none;
}
.mys-pdp-badge {
    display: inline-block;
    font-size: 0.62rem;
    font-weight: 400;
    padding: 3px 10px;
    border-radius: 2px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    line-height: 1.4;
}
.mys-pdp-badge--new {
    background: var(--mys-aksen, #e8b4b8);
    color: var(--mys-teks-aksen, #fff);
}
.mys-pdp-badge--bestseller {
    background: #3e3e47;
    color: #fff;
}
.mys-pdp-badge--flash {
    background: #ef4444;
    color: #fff;
}
.mys-pdp-badge--discount {
    background: #ef4444;
    color: #fff;
}
.mys-pdp-badge--promo {
    background: #7c3aed;
    color: #fff;
}

/* Variant chips */
.mys-pdp-variant-chips {
    margin-bottom: 24px;
}
.mys-pdp-variant-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 300;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #6f6f75;
    margin-bottom: 10px;
}
.mys-pdp-variant-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.mys-pdp-variant-chip {
    display: inline-block;
    padding: 7px 18px;
    font-size: 0.75rem;
    font-weight: 300;
    letter-spacing: 0.05em;
    border: 0.75px solid #3e3e47;
    border-radius: 0;
    color: #3e3e47;
    text-decoration: none;
    transition: all 0.2s ease;
}
.mys-pdp-variant-chip:hover {
    background: #3e3e47;
    color: #fff;
}
.mys-pdp-variant-chip--active {
    background: #3e3e47;
    border-color: #3e3e47;
    color: #fff;
}
.mys-pdp-variant-chip--active:hover {
    color: #fff;
}

/* Desktop CTA (La Prairie: ghost outline + accent fill) */
.mys-pdp-cta-desktop {
    margin-bottom: 20px;
}
.mys-pdp-cta-desktop__inner {
    display: flex;
    gap: 12px;
}
.mys-pdp-btn--ghost {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex: 1 1 0;
    padding: 13px 20px;
    font-size: 0.78rem;
    font-weight: 300;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: transparent !important;
    border: 0.75px solid #3e3e47 !important;
    border-radius: 0 !important;
    color: #3e3e47 !important;
    cursor: pointer;
    transition: background 0.25s ease, color 0.25s ease;
}
.mys-pdp-btn--ghost:hover {
    background: #3e3e47 !important;
    color: #fff !important;
}
.mys-pdp-btn--ghost .mys-atc-icon {
    display: inline-flex;
    align-items: center;
    line-height: 0;
}
.mys-pdp-btn--ghost .mys-atc-icon svg {
    display: block;
    width: 1em;
    height: 1em;
}
.mys-pdp-btn--ghost .mys-atc-label {
    white-space: nowrap;
}
.mys-pdp-btn-buy {
    flex: 1 1 0;
    padding: 13px 20px;
    font-size: 0.78rem;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: var(--mys-aksen, #C8384D);
    border: 0.75px solid var(--mys-aksen, #C8384D);
    border-radius: 0 !important;
    color: var(--mys-teks-aksen, #fff);
    cursor: pointer;
    transition: background 0.25s ease, border-color 0.25s ease;
}
.mys-pdp-btn-buy:hover {
    background: var(--mys-aksen-dark, #a82d3e);
    border-color: var(--mys-aksen-dark, #a82d3e);
}

/* Wishlist button (standalone with text — La Prairie style) */
.mys-pdp-wl-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    padding: 0;
    margin-bottom: 16px;
    cursor: pointer;
    color: #6f6f75;
    transition: color 0.2s ease;
}
.mys-pdp-wl-btn:hover {
    color: var(--mys-aksen, #C8384D);
}
.mys-pdp-wl-text {
    font-size: 0.72rem;
    font-weight: 300;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border-bottom: 0.5px solid currentColor;
    padding-bottom: 1px;
}

/* Divider */
.mys-pdp-divider {
    border: 0;
    border-top: 0.5px solid rgba(62, 62, 71, 0.12);
    margin: 8px 0 16px;
}

/* Collapsible accordion (La Prairie description toggle) */
.mys-pdp-accordion {
    margin-bottom: 16px;
}
.mys-pdp-accordion__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    font-size: 0.75rem;
    font-weight: 300;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #3e3e47;
    cursor: pointer;
    list-style: none;
    border-bottom: 0.5px solid rgba(62, 62, 71, 0.12);
}
.mys-pdp-accordion__head::-webkit-details-marker {
    display: none;
}
.mys-pdp-accordion__chevron {
    transition: transform 0.3s ease;
    flex-shrink: 0;
}
.mys-pdp-accordion[open] .mys-pdp-accordion__chevron {
    transform: rotate(180deg);
}
.mys-pdp-accordion__body {
    padding: 16px 0;
    font-size: 0.84rem;
    font-weight: 300;
    line-height: 1.75;
    color: #555;
    letter-spacing: 0.02em;
    max-width: 520px;
}
.mys-pdp-accordion__body p {
    margin: 0 0 12px;
}

/* Trust strip */
.mys-pdp-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-top: 4px;
    padding-top: 16px;
    border-top: 0.5px solid rgba(62, 62, 71, 0.12);
}
.mys-pdp-trust__item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.68rem;
    font-weight: 300;
    color: #6f6f75;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.mys-pdp-trust__item svg {
    flex-shrink: 0;
    color: #6f6f75;
}

/* ── PDP Sections (video, etc. below hero) ── */
.mys-pdp-section {
    padding: 40px 0;
    border-top: 0.5px solid rgba(62, 62, 71, 0.12);
}
.mys-pdp-section__title {
    font-size: 0.75rem;
    font-weight: 300;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #3e3e47;
    margin: 0 0 20px;
}
.mys-pdp-section__body {
    font-size: 0.84rem;
    font-weight: 300;
    line-height: 1.75;
    color: #555;
    max-width: 520px;
    letter-spacing: 0.02em;
}
.mys-pdp-section__body p {
    margin: 0 0 12px;
}
@media (min-width: 992px) {
    .mys-pdp-section {
        padding: 56px 0;
    }
}

/* Related products (La Prairie: centered heading, generous spacing) */
.mys-pdp-related {
    padding: 48px 0 40px;
    border-top: 0.5px solid rgba(62, 62, 71, 0.12);
}
.mys-pdp-related__title {
    text-align: center;
    font-size: clamp(0.9rem, 2vw, 1.15rem);
    font-weight: 300;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #3e3e47;
    margin: 0 0 32px;
}
@media (min-width: 992px) {
    .mys-pdp-related {
        padding: 64px 0 56px;
    }
    .mys-pdp-related__title {
        margin-bottom: 40px;
    }
}

/* Mobile sticky CTA */
@media (max-width: 767.98px) {
    body.mys-pdp .body-wrapper {
        padding-bottom: calc(88px + 56px + env(safe-area-inset-bottom, 0px)) !important;
    }
    body.mys-pdp .mys-pdp-sticky-cta {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 980;
        background: var(--mys-bg-body, #fff);
        border-top: 1px solid rgba(0, 0, 0, 0.07);
        box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.08);
        padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px));
    }
    body.mys-pdp .mys-pdp-sticky-cta__inner.shop-product-button {
        margin: 0;
        gap: 10px;
        max-width: 100%;
    }
    body.mys-pdp .mys-pdp-sticky-cta .shop-product-button button {
        flex: 1 1 0;
        border-radius: 0;
        padding: 12px 10px;
        font-size: 0.78rem;
        font-weight: 300;
        letter-spacing: 0.06em;
        text-transform: uppercase;
    }
    body.mys-pdp .mys-pdp-sticky-cta .mys-pdp-btn-back {
        background: transparent;
        border: 0.75px solid #3e3e47;
        color: #3e3e47;
    }
    body.mys-pdp .mys-pdp-sticky-cta .mys-pdp-btn-back:hover,
    body.mys-pdp .mys-pdp-sticky-cta .mys-pdp-btn-back:active {
        background: #3e3e47;
        color: #fff;
        border-color: #3e3e47;
    }
    body.mys-pdp .mys-pdp-sticky-cta .mys-pdp-btn-add {
        background: var(--mys-aksen, #C8384D) !important;
        border: 0.75px solid var(--mys-aksen, #C8384D) !important;
        color: var(--mys-teks-aksen, #fff) !important;
    }
    body.mys-pdp #mys-chat-fab {
        bottom: calc(102px + env(safe-area-inset-bottom, 0px));
    }
}

@media (min-width: 768px) {
    body.mys-pdp .body-wrapper {
        padding-bottom: 88px !important;
    }
}

/* ── Hemat / savings — hijau muda (ref. Luxcrime cart “You saved”) ── */
.mys-cart-hemat-amount {
    color: #4ade80 !important;
    font-weight: 800;
}

/* ── Halaman /cart/ — voucher hint, card ringkasan, sticky checkout ── */
body.mys-cart-page .mys-cart-items-wrap {
    margin-bottom: 12px;
}

body.mys-cart-page .mys-cart-voucher-hint {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 12px 14px;
    margin-bottom: 14px;
    border: 1px solid #e8e8f0;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.6);
    font-size: 0.82rem;
    color: #5a6270;
}
body.mys-cart-page .mys-cart-voucher-hint p {
    margin: 0;
    line-height: 1.45;
}
body.mys-cart-page .mys-cart-voucher-hint__ico {
    font-size: 1.15rem;
    line-height: 1;
    flex-shrink: 0;
}

body.mys-cart-page .mys-cart-summary-card {
    background: #fff;
    border-radius: 14px;
    padding: 14px 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    margin-bottom: 12px;
}
body.mys-cart-page .mys-cart-summary-card__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    font-size: 0.92rem;
    font-weight: 400;
}
body.mys-cart-page .mys-cart-summary-card__row strong {
    font-weight: 800;
}
body.mys-cart-page .mys-cart-summary-card__row + .mys-cart-summary-card__row {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px dashed #eee;
}
body.mys-cart-page .mys-cart-summary-card__row--hemat {
    border-top: none !important;
    margin-top: 0 !important;
    padding-top: 0 !important;
}
body.mys-cart-page .mys-cart-summary-card__fineprint {
    margin: 10px 0 0;
    font-size: 0.74rem;
    color: #999;
    font-style: italic;
}

body.mys-cart-page .mys-cart-sticky-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 980;
    background: var(--mys-bg-body, #fff);
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 -8px 28px rgba(0, 0, 0, 0.08);
    padding: 12px 0 calc(12px + env(safe-area-inset-bottom, 0px));
}

/* Kolom: ringkasan harga atas, lalu satu baris dua tombol */
body.mys-cart-page .mys-cart-sticky-bar__inner {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
}
body.mys-cart-page .mys-cart-sticky-bar__totals {
    width: 100%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
}
body.mys-cart-page .mys-cart-sticky-bar__price {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--mys-teks-utama, #1e2a3a);
}
body.mys-cart-page .mys-cart-sticky-bar__saved {
    font-size: 0.8rem;
    color: #888;
}
body.mys-cart-page .mys-cart-sticky-bar__saved .mys-cart-hemat-amount {
    font-size: 0.84rem;
}
body.mys-cart-page .mys-cart-sticky-bar__actions {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 10px;
    width: 100%;
}
body.mys-cart-page .mys-cart-sticky-bar__shop-btn {
    flex: 1;
    min-width: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 12px 8px;
    min-height: 48px;
    box-sizing: border-box;
    border-radius: 999px;
    border: 1.5px solid #d4d4d8;
    background: #fff;
    color: #555 !important;
    font-size: 0.78rem;
    font-weight: 400;
    text-decoration: none;
    line-height: 1.2;
}
body.mys-cart-page .mys-cart-sticky-bar__shop-btn:hover {
    background: #fafafa;
    color: #333 !important;
}
body.mys-cart-page .mys-cart-sticky-bar__checkout {
    flex: 1;
    min-width: 0;
    border: none;
    border-radius: 999px;
    padding: 12px 8px;
    min-height: 48px;
    font-weight: 800 !important;
    font-size: 0.78rem;
    letter-spacing: 0.02em;
    cursor: pointer;
    background: var(--mys-aksen, #e8b4b8) !important;
    color: var(--mys-teks-aksen, #fff) !important;
    line-height: 1.2;
}

body.mys-cart-page .body-wrapper {
    padding-bottom: calc(88px + 168px + env(safe-area-inset-bottom, 0px)) !important;
}

body.mys-cart-page #mys-chat-fab {
    bottom: calc(166px + env(safe-area-inset-bottom, 0px));
}

.mys-cart-empty-state {
    text-align: center;
    padding: 72px 24px 80px;
}
.mys-cart-empty-state__ico {
    font-size: 4rem;
    margin-bottom: 16px;
    line-height: 1;
}
.mys-cart-empty-state__title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1e2a3a;
    margin-bottom: 8px;
}
.mys-cart-empty-state__sub {
    font-size: 0.9rem;
    color: #9ca3af;
    margin-bottom: 0;
}
.mys-cart-empty-shop {
    display: inline-block;
    margin-top: 24px;
    background: var(--mys-aksen, #e8b4b8);
    color: #fff;
    padding: 12px 32px;
    border-radius: 40px;
    font-weight: 700;
    text-decoration: none;
    font-size: 0.95rem;
    letter-spacing: 0.01em;
    transition: opacity .15s;
}
.mys-cart-empty-shop:hover {
    opacity: .85;
    color: #fff;
    text-decoration: none;
}

/* Drawer: baris hemat */
.mys-cart-drawer__hemat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2px;
    padding-top: 0;
    font-size: 0.82rem;
    font-weight: 400;
}
.mys-cart-drawer__hemat .mys-cart-hemat-amount {
    font-size: 0.88rem;
}
/* ── Cart summary rows (Total → Diskon → Subtotal) ── */
.mys-cart-drawer__sum-rows {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin-bottom: 6px;
    padding-bottom: 8px;
    border-bottom: 1px solid #f0e0e2;
}
.mys-cart-drawer__sum-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.82rem;
    color: #6b7280;
}
.mys-cart-drawer__sum-row--disc {
    color: #d63b5a;
    font-size: 0.82rem;
}
.mys-cart-drawer__sum-row--disc .mys-cart-hemat-amount {
    font-weight: 700;
}
.mys-cart-drawer__sum-row--total {
    font-size: 0.95rem;
    color: #1e2a3a;
    margin-top: 3px;
    padding-top: 5px;
    border-top: 1px dashed #f0e0e2;
}
.mys-cart-drawer__sum-row--total strong {
    font-weight: 800;
}

/* PDP: tombol wishlist di header produk */
.mys-pdp-wl-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 6px;
    color: #333;
    line-height: 0;
}

/* ── Footer situs (Luxcrime-inspired; latar = token header; teks logo/link abu gelap konsisten) ── */
/* [POLISH #6] Footer separator — subtle border + shadow */
.mys-site-footer {
    --mys-footer-fg: #3a3d45;
    --mys-footer-fg-soft: #5c5f6a;
    background: var(--mys-bg-header, #fff);
    border-top: 1px solid rgba(62, 62, 71, 0.08);
    box-shadow: 0 -2px 12px rgba(0,0,0,0.03);
    color: var(--mys-footer-fg);
    border-top: 1px solid rgba(62, 62, 71, 0.1);
    padding: 28px 0 20px;
    padding-left: env(safe-area-inset-left, 0px);
    padding-right: env(safe-area-inset-right, 0px);
    padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px));
}

.mys-site-footer__inner {
    max-width: 1380px;
    margin: 0 auto;
    padding: 0 max(15px, env(safe-area-inset-left)) 0 max(15px, env(safe-area-inset-right));
}

.mys-site-footer__top {
    display: grid;
    gap: 1.25rem 2rem;
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .mys-site-footer__top {
        grid-template-columns: minmax(160px, 240px) 1fr;
        align-items: start;
    }
}

.mys-site-footer__brand {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mys-site-footer__logo-link {
    line-height: 0;
}

.mys-site-footer__wordmark {
    font-size: clamp(1.05rem, 3vw, 1.25rem);
    font-weight: 800;
    letter-spacing: 0.06em;
    text-decoration: none;
    color: var(--mys-footer-fg);
    text-transform: uppercase;
}

.mys-site-footer__wordmark:hover {
    color: var(--mys-aksen, #C8384D);
}

.mys-site-footer__tagline {
    margin: 0;
    font-size: 0.8rem;
    line-height: 1.55;
    color: var(--mys-footer-fg-soft);
    letter-spacing: 0.02em;
    max-width: 22rem;
}

.mys-site-footer__cols {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.75rem 1.25rem;
}

/* Judul kolom footer (desktop + label accordion mobile) */
.mys-site-footer__summary-title {
    margin: 0;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--mys-footer-fg);
}

/* ── Panel footer (selalu terbuka) ── */
.mys-site-footer__panel {
    border: 0;
    margin: 0;
}

.mys-site-footer__summary {
    display: block;
    padding: 0;
    margin: 0;
}

.mys-site-footer__panel-body {
    padding: 0 0 4px;
}

.mys-site-footer__panel-body .mys-site-footer__links {
    padding-bottom: 4px;
}

@media (max-width: 767.98px) {
    .mys-site-footer__brand {
        padding-bottom: 1.15rem;
        margin-bottom: 0.15rem;
        border-bottom: 1px solid rgba(62, 62, 71, 0.14);
    }

    .mys-site-footer__cols {
        gap: 0;
        grid-template-columns: 1fr;
    }

    .mys-site-footer__panel {
        padding-bottom: 1rem;
    }

    .mys-site-footer__summary {
        padding: 0 0 10px;
    }

    .mys-site-footer__panel-body {
        padding: 0 0 8px;
    }

    .mys-site-footer__panel--social .mys-site-footer__social {
        justify-content: center;
    }
}

@media (min-width: 768px) {
    .mys-site-footer__summary-title {
        margin: 0 0 12px;
    }

    .mys-site-footer__panel-body {
        padding: 0;
    }
}

.mys-site-footer__links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mys-site-footer__links a {
    color: var(--mys-footer-fg-soft);
    text-decoration: none;
    font-size: 0.84rem;
    border-bottom: 1px solid transparent;
    letter-spacing: 0.03em;
    transition: color 0.2s ease;
}

/* [POLISH #3] Footer link hover — underline + color shift */
.mys-site-footer__links a:hover {
    color: var(--mys-aksen, #C8384D);
    border-bottom-color: var(--mys-aksen, #C8384D);
}

/* Panel kontak usaha (syarat iPaymu): item non-link ikut warna & ukuran link footer */
.mys-site-footer__links--contact li {
    color: var(--mys-footer-fg-soft);
    font-size: 0.84rem;
    letter-spacing: 0.03em;
    line-height: 1.5;
}

.mys-site-footer__social {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.mys-site-footer__social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease, transform 0.2s ease;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(62, 62, 71, 0.14);
    color: var(--mys-footer-fg);
    background: rgba(255, 255, 255, 0.35);
    transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
    font-size: 1.05rem;
}

/* [POLISH #8] Social icon hover — scale + color transition */
.mys-site-footer__social-btn:hover {
    border-color: var(--mys-aksen, #C8384D);
    color: var(--mys-aksen, #C8384D);
    background: rgba(200, 56, 77, 0.06);
    transform: scale(1.1);
}

.mys-site-footer__rule {
    height: 0;
    margin: 16px 0 12px;
    border: 0;
    border-top: 1px solid rgba(62, 62, 71, 0.1);
}

.mys-site-footer__copyright {
    margin: 0;
    text-align: center;
    font-size: 0.74rem;
    letter-spacing: 0.04em;
    color: var(--mys-footer-fg-soft);
}

@media (min-width: 768px) {
    .mys-site-footer__copyright {
        text-align: left;
    }
}

/* Footer pratinjau Visual Editor — sedikit rapat */
.ve-preview .mys-site-footer {
    padding: 24px 0 20px;
}

/* ═══════════════════════════════════════════════════════════════════════
   BASE LAYOUT — dipindahkan dari base.html <style> (Phase 1 cleanup)
   ═══════════════════════════════════════════════════════════════════════ */

/* Header & bottom nav background via tokens */
.header-wrapper, .site-header { background: var(--mys-bg-header, #ffffff) !important; }
.footer-nav-area, .footer-nav { background: var(--mys-bg-bottom-nav, #ffffff) !important; }

/* Body wrapper utama */
.body-wrapper {
    margin: 0;
    padding-bottom: 88px !important;
    width: 100%;
    box-sizing: border-box;
    position: relative;
    background-color: var(--mys-bg-body, #f8f8f8);
    /* padding-top di-handle oleh JS (promo + header); tidak di-animate agar tidak ada
       scroll-anchor oscillation saat scroll ke footer */
    overflow-anchor: none;
}
@media (prefers-reduced-motion: reduce) {
    html body .body-wrapper { transition: none; }
}

/* Konten utama shell — safe-area top */
.mys-main-content-shell {
    padding-top: env(safe-area-inset-top, 0px);
}

/* Transparent header + anchor page: konten rapat dengan hero */
.body-wrapper.hero-overlap > *:first-child {
    margin-top: 0 !important;
}

/* Neutralize legacy sticker (dikontrol penuh oleh .mys-header-wrap) */
.sticker { position: static; }

/* Chat FAB */
#mys-chat-fab {
    position: fixed;
    bottom: calc(20px + env(safe-area-inset-bottom, 0px));
    right: max(16px, env(safe-area-inset-right, 0px));
    z-index: 990;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 11px 18px 11px 14px;
    background: linear-gradient(135deg, #5bb8f5 0%, #2196f3 60%, #1565c0 100%);
    color: #fff;
    text-decoration: none;
    border-radius: 999px;
    box-shadow: 0 4px 20px rgba(33, 150, 243, 0.45), 0 1px 4px rgba(0,0,0,0.12);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    font-weight: 700;
    font-size: 0.82rem;
    letter-spacing: 0.01em;
    white-space: nowrap;
    user-select: none;
}
#mys-chat-fab:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 8px 28px rgba(33, 150, 243, 0.5), 0 2px 6px rgba(0,0,0,0.14);
}
#mys-chat-fab:active {
    transform: scale(0.97);
}
#mys-chat-fab:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 3px;
}
.mys-fab__pulse {
    position: absolute;
    inset: -4px;
    border-radius: 999px;
    background: rgba(33, 150, 243, 0.35);
    animation: mys-fab-pulse 2.4s ease-out infinite;
    pointer-events: none;
    z-index: -1;
}
@keyframes mys-fab-pulse {
    0%   { transform: scale(1);    opacity: 0.7; }
    70%  { transform: scale(1.35); opacity: 0;   }
    100% { transform: scale(1.35); opacity: 0;   }
}
.mys-fab__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    background: rgba(255,255,255,0.18);
    border-radius: 50%;
    flex-shrink: 0;
}
.mys-fab__icon svg {
    width: 15px;
    height: 15px;
}
.mys-fab__label {
    line-height: 1;
}
.mys-fab__spark {
    font-size: 0.85rem;
    line-height: 1;
    animation: mys-fab-spark 3s ease-in-out infinite;
    display: inline-block;
}
@keyframes mys-fab-spark {
    0%, 100% { transform: rotate(-10deg) scale(1);   }
    50%       { transform: rotate(10deg)  scale(1.2); }
}

/* Primary button colors via tokens */
.btn-mys, .add-to-cart-btn, .btn-theme {
    background: var(--mys-aksen) !important;
    color: var(--mys-teks-aksen) !important;
    border-color: var(--mys-aksen) !important;
}
.btn-mys:hover, .add-to-cart-btn:hover { background: var(--mys-aksen-dark) !important; }

/* Active nav link color */
.nav-link.active, .footer-nav-area .nav-link.active { color: var(--mys-aksen) !important; }

/* Logo image fallback & dynamic height */
.header-logo img {
    height: var(--mys-logo-height, 40px);
    width: auto;
    max-width: 160px;
    display: block;
    background: transparent;
    mix-blend-mode: multiply;
}

/* ═══════════════════════════════════════════════════════════════════════
   SITE CHROME — fixed topbar + header wrapper
   dipindahkan dari base.html <style> (Phase 1 cleanup)
   ═══════════════════════════════════════════════════════════════════════ */

/* Satu wrapper: promo bar + header — hide/show bersama saat scroll */
#mys-site-chrome {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1001;
    transition: transform 0.32s cubic-bezier(0.32, 0.72, 0, 1);
}
@media (prefers-reduced-motion: reduce) {
    #mys-site-chrome { transition: none; }
}
body.mys-chrome-hidden #mys-site-chrome {
    transform: translateY(-100%);
}

/* ── Promo Top Bar ── */
#mys-topbar {
    background: var(--mys-topbar-bg, #C8384D);
    color: var(--mys-topbar-teks, #fff);
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    width: 100%;
    margin: 0;
    border-bottom: none;
}
#mys-topbar .mys-topbar-slides {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}
#mys-topbar .mys-topbar-item {
    position: absolute;
    left: 0; right: 0;
    top: 0; bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 max(16px, env(safe-area-inset-left)) 0 max(16px, env(safe-area-inset-right));
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transform: translateX(100%);
    opacity: 1;
    z-index: 0;
    transition: none;
    pointer-events: none;
}
#mys-topbar.mys-topbar-anim-ready .mys-topbar-item {
    transition: transform 1s cubic-bezier(0.32, 0.72, 0, 1);
}
@media (prefers-reduced-motion: reduce) {
    #mys-topbar.mys-topbar-anim-ready .mys-topbar-item { transition: none; }
}
#mys-topbar .mys-topbar-item.is-active {
    transform: translateX(0);
    z-index: 2;
    pointer-events: auto;
}
#mys-topbar .mys-topbar-item.is-leave {
    transform: translateX(-100%);
    z-index: 1;
    pointer-events: none;
}
#mys-topbar .mys-topbar-link {
    /* Inner link yang mengisi full area topbar item — selalu bisa diklik */
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: inherit;
    text-decoration: none;
    cursor: pointer;
    pointer-events: auto;
}
#mys-topbar .mys-topbar-link:hover {
    text-decoration: underline;
    opacity: 0.9;
}

/* ── Header bar inner — satu sumber tinggi ── */
#mys-header-wrap .header-wrapper > .container.mys-header-bar-inner {
    box-sizing: border-box;
    height: 60px;
    padding-top: 0;
    padding-bottom: 0;
    display: flex;
    align-items: center;
    padding-right: max(4px, env(safe-area-inset-right)) !important;
}

/* ── Header actions row ── */
#mys-header-wrap .mys-header-actions {
    padding-right: 0 !important;
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 8px !important;
}

/* ── Header wrapper (solid + transparent modes) ── */
.mys-header-wrap {
    position: relative;
    width: 100%;
    z-index: 1;
    margin: 0;
    transition: background 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
}
.mys-header-wrap.is-solid {
    background: var(--mys-bg-header, #fff) !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
    border-bottom: none;
    backdrop-filter: none;
}
.mys-header-wrap.is-transparent {
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.28) 0%,
        rgba(0,0,0,0.10) 60%,
        transparent 100%
    ) !important;
    box-shadow: none;
    backdrop-filter: none;
    border-bottom: none !important;
}

/* ── Header icon buttons ── */
.mys-hdr-btn {
    background: none;
    border: none;
    padding: 3px 4px;
    min-width: 0;
    cursor: pointer;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    position: relative;
    color: var(--mys-teks-utama, #1e2a3a);
}
/* Area sentuh minimum 44px sesuai WCAG */
#mys-header-wrap .mys-header-actions > .mys-hdr-btn {
    box-sizing: border-box;
    min-width: 44px;
    min-height: 44px;
    padding: 0 !important;
}
#mys-header-wrap .mys-header-actions > .mys-hdr-btn .mys-hdr-icon {
    width: 22px !important;
    height: 22px !important;
}
.mys-hdr-icon { flex-shrink: 0; }

/* ── CSS Mask Icon system ── */
.mys-icon {
    display: inline-block;
    width: 20px;
    height: 20px;
    background-color: currentColor;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: contain;
    mask-size: contain;
    transition: background-color 0.25s;
    flex-shrink: 0;
}
.mys-icon-bag {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 2L3 6v14a2 2 0 002 2h14a2 2 0 002-2V6l-3-4z'/%3E%3Cline x1='3' y1='6' x2='21' y2='6'/%3E%3Cpath d='M16 10a4 4 0 01-8 0'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 2L3 6v14a2 2 0 002 2h14a2 2 0 002-2V6l-3-4z'/%3E%3Cline x1='3' y1='6' x2='21' y2='6'/%3E%3Cpath d='M16 10a4 4 0 01-8 0'/%3E%3C/svg%3E");
}
@media (max-width: 575.98px) {
    .mys-icon-bag {
        -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='21' r='1'/%3E%3Ccircle cx='20' cy='21' r='1'/%3E%3Cpath d='M1 1h4l2.68 13.39a2 2 0 0 0 2 1.61h9.72a2 2 0 0 0 2-1.61L23 6H6'/%3E%3C/svg%3E");
        mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='21' r='1'/%3E%3Ccircle cx='20' cy='21' r='1'/%3E%3Cpath d='M1 1h4l2.68 13.39a2 2 0 0 0 2 1.61h9.72a2 2 0 0 0 2-1.61L23 6H6'/%3E%3C/svg%3E");
    }
}
.mys-icon-person {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 21v-2a4 4 0 00-4-4H8a4 4 0 00-4 4v2'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 21v-2a4 4 0 00-4-4H8a4 4 0 00-4 4v2'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E");
}
.mys-icon-search {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E");
}

/* ── Copy button (referral code, etc.) ─────────────────────── */
.mys-copy-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 2px 4px;
    margin-left: 4px;
    color: #9ca3af;
    vertical-align: middle;
    line-height: 0;
    border-radius: 4px;
    transition: color 0.15s, background 0.15s;
    display: inline-flex;
    align-items: center;
}
.mys-copy-btn:hover { color: var(--mys-aksen, #C8384D); background: rgba(200,56,77,0.07); }

/* ── Profile info block actions (edit / verify) ─────────────── */
.profile-info-block {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px 8px;
}
.profile-info-block__title {
    flex: 0 0 90px;
    font-size: 0.75rem;
    color: #9ca3af;
}
.profile-info-block__value {
    flex: 1;
    font-size: 0.88rem;
    min-width: 0;
}
.profile-info-block__actions {
    display: flex;
    gap: 6px;
    align-items: center;
    flex-shrink: 0;
}
/* Override style.css legacy padding & 50/50 split — more compact inline layout */
.profile-info-table .profile-info-block {
    padding: 10px 0;
    gap: 4px 10px;
}
.profile-info-table .profile-info-block__title {
    flex: 0 0 100px;
    flex-basis: 100px;
    font-size: 0.75rem;
    font-weight: 500;
    color: #9ca3af;
    text-align: left;
}
.profile-info-table .profile-info-block__value {
    flex: 1;
    flex-basis: auto;
    font-size: 0.88rem;
    font-weight: 400;
    text-align: left;
}
.mys-pib-action-btn {
    display: inline-flex;
    align-items: center;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 2px 9px;
    border-radius: 999px;
    text-decoration: none;
    border: 1.5px solid #e5e7eb;
    color: #6b7280;
    background: #f9fafb;
    transition: border-color 0.15s, color 0.15s, background 0.15s;
    white-space: nowrap;
}
.mys-pib-action-btn:hover {
    border-color: var(--mys-aksen, #C8384D);
    color: var(--mys-aksen, #C8384D);
    background: rgba(200,56,77,0.05);
    text-decoration: none;
}
.mys-pib-action-btn--verify {
    border-color: #fcd34d;
    color: #92400e;
    background: #fef3c7;
}
.mys-pib-action-btn--verify:hover {
    border-color: #f59e0b;
    color: #78350f;
    background: #fde68a;
}
.mys-pib-action-btn--icon {
    padding: 4px 6px;
    line-height: 0;
}

/* ── Notification unread badge (sidebar) ───────────────────── */
.mys-notif-badge {
    display: inline-flex; align-items: center; justify-content: center;
    background: #ef4444; color: #fff; font-size: 0.65rem; font-weight: 700;
    border-radius: 999px; padding: 1px 6px; margin-left: 4px;
    vertical-align: middle; line-height: 1.4;
}

/* ── MyPoint badge ─────────────────────────────────────────── */
.mys-mypoint-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 0.82rem;
    font-weight: 700;
    color: #92400e;
    background: #fef3c7;
    border: 1.5px solid #fcd34d;
    border-radius: 999px;
    padding: 2px 10px;
}

/* ── Change password panel inputs ─────────────────────────────────────── */
#mys-change-pw-panel input[type="text"],
#mys-change-pw-panel input[type="password"] {
    font-size: 16px !important; /* prevent iOS zoom */
    width: 100%;
    padding: 9px 13px;
    border: 1.5px solid #e0e0e0;
    border-radius: 8px;
    background: #fff;
    color: #222;
    outline: none;
    transition: border-color .18s;
}
#mys-change-pw-panel input[type="text"]:focus,
#mys-change-pw-panel input[type="password"]:focus {
    border-color: var(--mys-primary, #d63b5a);
}
#mys-change-pw-panel label {
    font-size: 0.78rem;
    font-weight: 600;
    color: #555;
    margin-bottom: 4px;
    display: block;
}

/* ── Search overlay (below fixed chrome) ──────────────────── */
#mys-search-overlay {
    position: fixed;
    left: 0;
    right: 0;
    top: 0; /* set to chrome.offsetHeight by JS */
    z-index: 1000;
    background: #fff;
    border-bottom: 1px solid rgba(30,42,58,0.10);
    box-shadow: 0 6px 24px rgba(0,0,0,0.10);
    transform: translateY(-110%);
    transition: transform 0.22s cubic-bezier(0.32,0.72,0,1);
    pointer-events: none;
}
#mys-search-overlay.is-open {
    transform: translateY(0);
    pointer-events: auto;
}
.mys-search-overlay__bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    max-width: 680px;
    margin: 0 auto;
}
.mys-search-overlay__icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    background-color: #9ca3af;
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
}
.mys-search-overlay__input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-size: 1rem;
    font-family: var(--font-primary);
    color: var(--mys-teks-utama, #1e2a3a);
    min-width: 0;
}
.mys-search-overlay__input::placeholder { color: #b0b8c4; }
.mys-search-overlay__clear,
.mys-search-overlay__close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px 6px;
    color: #9ca3af;
    font-size: 0.9rem;
    line-height: 1;
    display: flex;
    align-items: center;
}
.mys-search-overlay__close-icon {
    width: 18px;
    height: 18px;
    background-color: currentColor;
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
}
.mys-icon-close-x {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round'%3E%3Cline x1='18' y1='6' x2='6' y2='18'/%3E%3Cline x1='6' y1='6' x2='18' y2='18'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round'%3E%3Cline x1='18' y1='6' x2='6' y2='18'/%3E%3Cline x1='6' y1='6' x2='18' y2='18'/%3E%3C/svg%3E");
}
.mys-search-drop {
    max-width: 680px;
    margin: 0 auto;
    border-top: 1px solid #f0e8e8;
    max-height: 60vh;
    overflow-y: auto;
}
.mys-search-drop-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    cursor: pointer;
    text-decoration: none;
    color: var(--mys-teks-utama, #1e2a3a);
    border-bottom: 1px solid #f8f4f5;
    transition: background 0.12s;
}
.mys-search-drop-item:hover,
.mys-search-drop-item:focus,
.mys-search-drop-item[aria-selected="true"] { background: #fdf5f6; }
.mys-search-drop-item__img {
    width: 44px;
    height: 44px;
    object-fit: contain;
    border-radius: 8px;
    background: #f5f5f7;
    flex-shrink: 0;
}
.mys-search-drop-item__img--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}
.mys-search-drop-item__info { flex: 1; min-width: 0; }
.mys-search-drop-item__name {
    font-size: 0.88rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.mys-search-drop-item__variant {
    font-size: 0.75rem;
    color: #9ca3af;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.mys-search-drop-item__price {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--mys-aksen, #e8b4b8);
    flex-shrink: 0;
}
.mys-search-drop-footer {
    display: block;
    text-align: center;
    padding: 10px;
    font-size: 0.8rem;
    color: var(--mys-aksen, #e8b4b8);
    font-weight: 600;
    text-decoration: none;
    border-top: 1px solid #f0e8e8;
}
.mys-search-drop-footer:hover { text-decoration: underline; }

/* Flash sale badge inside search dropdown */
.mys-search-drop-item__flash-badge {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--mys-aksen, #C8384D);
    background: color-mix(in srgb, var(--mys-aksen, #C8384D) 10%, transparent);
    border: 1px solid color-mix(in srgb, var(--mys-aksen, #C8384D) 25%, transparent);
    border-radius: 4px;
    padding: 1px 5px;
    margin-bottom: 2px;
}
/* Promo price (flash sale / diskon) */
.mys-search-drop-item__price-promo {
    display: block;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--mys-aksen, #C8384D);
    line-height: 1.2;
}
/* Strikethrough original price */
.mys-search-drop-item__price-orig {
    display: block;
    font-size: 0.72rem;
    font-weight: 400;
    color: #b0b8c4;
    text-decoration: line-through;
    line-height: 1.2;
}
.mys-search-drop-empty {
    padding: 20px 16px;
    text-align: center;
    color: #9ca3af;
    font-size: 0.88rem;
}
/* Backdrop dimmer */
#mys-search-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 999;
    background: rgba(0,0,0,0.25);
}
#mys-search-backdrop.is-open { display: block; }
.mys-icon-menu {
    width: 20px;
    height: 20px;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'%3E%3Cline x1='3' y1='6' x2='21' y2='6'/%3E%3Cline x1='3' y1='12' x2='21' y2='12'/%3E%3Cline x1='3' y1='18' x2='21' y2='18'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'%3E%3Cline x1='3' y1='6' x2='21' y2='6'/%3E%3Cline x1='3' y1='12' x2='21' y2='12'/%3E%3Cline x1='3' y1='18' x2='21' y2='18'/%3E%3C/svg%3E");
}
#mys-header-wrap .mys-header-actions > .mys-hdr-btn .mys-icon-menu {
    width: 22px !important;
    height: 22px !important;
}
.mys-icon-chat {
    width: 24px;
    height: 24px;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M20 2H4C2.9 2 2 2.9 2 4v18l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-3 11H7v-2h10v2zm0-3H7V8h10v2z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M20 2H4C2.9 2 2 2.9 2 4v18l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-3 11H7v-2h10v2zm0-3H7V8h10v2z'/%3E%3C/svg%3E");
}

/* ── Transparent header icon & logo colors (La Prairie: dark charcoal) ── */
/* Icons & logo always dark (#3e3e47) — visible on both light and dark banners. */
.mys-header-wrap.is-transparent {
    background: transparent !important;
}
.mys-header-wrap.is-transparent .mys-hdr-btn { color: #3e3e47; }
.mys-header-wrap.is-transparent .mys-hdr-btn .mys-hdr-icon { color: #3e3e47; }
.mys-header-wrap.is-transparent:not(.scrolled) .header-logo .mys-brand-fallback { color: #3e3e47 !important; }
.mys-header-wrap.is-transparent:not(.scrolled) .header-logo img {
    mix-blend-mode: multiply;
    filter: none;
}
.mys-header-wrap.is-transparent.scrolled .header-logo .mys-brand-fallback {
    color: var(--mys-aksen, #2d8659) !important;
}
.mys-header-wrap.is-transparent.scrolled .header-logo img {
    filter: none;
    mix-blend-mode: multiply;
}
.mys-header-wrap.is-transparent.scrolled {
    background: var(--mys-bg-header, #fff) !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
    border-bottom: none !important;
}
.mys-header-wrap.is-transparent.scrolled .mys-hdr-btn { color: #3e3e47; }
.mys-header-wrap.is-transparent.scrolled .mys-hdr-btn .mys-hdr-icon { color: #3e3e47; }


/* ═══════════════════════════════════════════════════════════════════════
   EMPTY STATE & PRIMARY BUTTON — dipindahkan dari wishlist/orders/notifications (Phase 3)
   ═══════════════════════════════════════════════════════════════════════ */

.mys-empty-state {
    text-align: center;
    padding: 60px 20px 80px;
    color: #bbb;
}
.mys-empty-state svg { margin-bottom: 20px; opacity: .5; }
.mys-empty-state h3 {
    font-weight: 700;
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 6px;
}
.mys-empty-state p {
    font-size: .9rem;
    color: #aaa;
    margin-bottom: 24px;
}
.mys-btn-primary {
    display: inline-block;
    background: var(--mys-aksen, #e8b4b8);
    color: #fff;
    font-weight: 700;
    font-size: .9rem;
    border-radius: 50px;
    padding: 11px 28px;
    text-decoration: none;
    transition: opacity .15s;
}
.mys-btn-primary:hover { opacity: .85; color: #fff; }

/* ═══════════════════════════════════════════════════════════════════════
   WISHLIST — dipindahkan dari wishlist.html (Phase 3)
   ═══════════════════════════════════════════════════════════════════════ */

.wl-remove-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: rgba(232,180,184,0.92);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    padding: 0;
    transition: background .15s, transform .15s;
}
.wl-remove-btn:hover { background: #d44; transform: scale(1.1); }

/* ═══════════════════════════════════════════════════════════════════════
   ORDERS PAGE — dipindahkan dari orders.html (Phase 3)
   ═══════════════════════════════════════════════════════════════════════ */

.mys-order-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,.06);
    margin-bottom: 16px;
    overflow: hidden;
    border: 1px solid #f0f0f5;
}
.mys-order-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px 10px;
    border-bottom: 1px solid #f8f8fc;
    gap: 8px;
}
.mys-order-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.mys-order-code {
    font-weight: 700;
    font-size: .82rem;
    color: #1a1a2e;
}
.mys-order-date {
    font-size: .72rem;
    color: #a0a0b0;
}
.mys-order-badge {
    font-weight: 700;
    font-size: .7rem;
    padding: 4px 12px;
    border-radius: 50px;
    white-space: nowrap;
    flex-shrink: 0;
}
.mys-status-pending    { background: #fff3cd; color: #856404; }
.mys-status-processing { background: #cfe2ff; color: #084298; }
.mys-status-shipped    { background: #d1ecf1; color: #0c5460; }
.mys-status-delivered  { background: #d4edda; color: #155724; }
.mys-status-cancelled  { background: #f8d7da; color: #721c24; }
.mys-order-items {
    padding: 8px 16px;
}
.mys-order-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #f8f8fc;
}
.mys-order-item:last-child { border-bottom: none; }
.mys-order-item-img {
    width: 52px;
    height: 52px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    background: #fafafa;
    border: 1px solid #f0f0f5;
    display: flex;
    align-items: center;
    justify-content: center;
}
.mys-order-item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.mys-order-img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.mys-order-item-info {
    flex: 1;
    min-width: 0;
}
.mys-order-item-qty {
    font-size: .75rem;
    color: #a0a0b0;
    margin-top: 2px;
}
.mys-order-item-sub {
    font-weight: 700;
    font-size: .82rem;
    color: var(--mys-aksen, #e8b4b8);
    flex-shrink: 0;
}
.mys-order-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: #fdf8f9;
    border-top: 1px solid #f0f0f5;
}
.mys-order-total-label {
    font-size: .82rem;
    color: #777;
}
.mys-order-total-value {
    font-weight: 800;
    font-size: .95rem;
    color: #1a1a2e;
}

/* ── Proof rejection warning inside order card ───────────────────── */
.mys-order-proof-rejected {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0 16px 0;
    padding: 10px 14px;
    background: #fff1f2;
    border: 1px solid #fecdd3;
    border-radius: 10px 10px 0 0;
    border-bottom: none;
}
.mys-order-proof-rejected > i {
    color: #dc2626;
    font-size: 1rem;
    margin-top: 2px;
    flex-shrink: 0;
}
.mys-order-proof-rejected > div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.mys-order-proof-rejected__title {
    font-weight: 700;
    font-size: 0.78rem;
    color: #dc2626;
}
.mys-order-proof-rejected__note {
    font-size: 0.78rem;
    color: #7f1d1d;
    line-height: 1.4;
}

/* ═══════════════════════════════════════════════════════════════════════
   CHECKOUT PAGE — dipindahkan dari checkout.html (Phase 3)
   ═══════════════════════════════════════════════════════════════════════ */

#addr-domestic-fields select,
#addr-intl-fields input {
    background: #fff;
}
#addr-domestic-fields select:disabled { background: #f5f5f5; color: #aaa; }
.checkout-form__input {
    width: 100%; padding: 10px 0;
    border: none; border-bottom: 1px solid #ddd;
    font-size: 0.9rem; outline: none;
}

/* ── Custom address card picker ─────────────────────────────── */
.mys-addr-picker {
    position: relative;
}
.mys-addr-picker__trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 11px 14px;
    border: 1.5px solid #e4d7d9;
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    font-size: 0.88rem;
    font-weight: 600;
    color: #26334c;
    text-align: left;
    transition: border-color .15s;
}
.mys-addr-picker__trigger:hover { border-color: #aaa; }
.mys-addr-picker__trigger[aria-expanded="true"] { border-color: #aaa; border-radius: 10px 10px 0 0; }
.mys-addr-picker__trigger-label { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mys-addr-picker__chevron {
    flex-shrink: 0;
    width: 16px; height: 16px;
    transition: transform .2s;
}
.mys-addr-picker__trigger[aria-expanded="true"] .mys-addr-picker__chevron { transform: rotate(180deg); }

.mys-addr-picker__dropdown {
    display: none;
    position: absolute;
    left: 0; right: 0;
    top: 100%;
    z-index: 500;
    background: #fff;
    border: 1.5px solid #c9a0a8;
    border-top: none;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 6px 24px rgba(38,51,76,.10);
    max-height: 320px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
.mys-addr-picker__dropdown.is-open { display: block; }

.mys-addr-picker__option {
    padding: 12px 14px;
    cursor: pointer;
    border-bottom: 1px solid #f5eef0;
    transition: background .12s;
}
.mys-addr-picker__option:last-of-type { border-bottom: none; }
.mys-addr-picker__option:hover { background: #f5f5f5; }
.mys-addr-picker__option.is-selected { background: #eeeeee; }
.mys-addr-picker__option.is-new {
    font-size: 0.83rem;
    color: #888;
    font-style: italic;
    padding: 10px 14px;
}
.mys-addr-picker__option.is-new:hover { background: #fafafa; color: #555; }
.mys-addr-picker__manage-link {
    display: block;
    padding: 9px 14px;
    font-size: 0.8rem;
    color: #c9a0a8;
    text-decoration: none;
    border-top: 1px solid #f5eef0;
    font-weight: 600;
    letter-spacing: 0.01em;
}
.mys-addr-picker__manage-link:hover { color: #a07880; text-decoration: underline; }

/* Address card inside each option */
.mys-addr-card__head {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 3px;
    flex-wrap: wrap;
}
.mys-addr-card__edit-btn {
    margin-left: auto;
    flex-shrink: 0;
    font-size: 0.72rem;
    font-weight: 600;
    color: #c9a0a8;
    text-decoration: none;
    padding: 1px 8px;
    border: 1px solid #e4d7d9;
    border-radius: 20px;
    background: #fff;
    line-height: 1.6;
    transition: background .12s, color .12s, border-color .12s;
    white-space: nowrap;
}
.mys-addr-card__edit-btn:hover {
    background: #c9a0a8;
    color: #fff;
    border-color: #c9a0a8;
}
.mys-addr-card__label {
    font-weight: 700;
    font-size: 0.88rem;
    color: #26334c;
}
.mys-addr-card__badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 1px 8px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1.6;
}
.mys-addr-card__badge--utama {
    background: #f9e5e8;
    color: #b05060;
    border: 1px solid #f0c8ce;
}
.mys-addr-card__badge--intl {
    background: #e8eef6;
    color: #3a5a8a;
    border: 1px solid #c5d5e8;
}
.mys-addr-card__recipient {
    font-size: 0.78rem;
    color: #888;
    margin-bottom: 2px;
}
.mys-addr-card__addr {
    font-size: 0.82rem;
    color: #444;
    line-height: 1.4;
}
#sel-provinsi, #sel-kabupaten, #sel-kecamatan, #sel-kelurahan {
    appearance: auto;
}
.checkout-compact.checkout-form {
    padding: 16px 12px;
}
.checkout-body .container {
    max-width: 100%;
}
@media (max-width: 767.98px) {
    .checkout-body .container {
        padding-left: 12px;
        padding-right: 12px;
    }
}
.checkout-section-title {
    font-size: 0.95rem;
    font-weight: 700;
    border-bottom: 1px solid #f0e0e2;
}
.checkout-compact .checkout-form__single-field label {
    margin-bottom: 0.3rem;
    font-size: 0.8rem;
}
.checkout-compact .checkout-form__single-field input,
.checkout-compact .checkout-form__single-field textarea,
.checkout-compact .checkout-form__single-field select {
    font-size: 0.92rem;
    padding-bottom: 6px;
    border-bottom-width: 1px;
}
@media (max-width: 767.98px) {
    .checkout-compact .checkout-field-inline-sm {
        display: grid;
        grid-template-columns: minmax(88px, 36%) 1fr;
        column-gap: 8px;
        align-items: center;
    }
    .checkout-compact .checkout-field-inline-sm > *:last-child {
        min-width: 0;
    }
    .checkout-compact .checkout-field-inline-sm label {
        margin-bottom: 0 !important;
        font-size: 0.72rem;
        line-height: 1.25;
    }
}
.checkout-order-summary .checkout-order-summary__box {
    padding: 10px 12px !important;
    background: #f6f6f7 !important;
    border-radius: 8px;
    border: 1px solid #e8e8ea;
}
.checkout-order-summary .checkout-order-summary__head ul {
    padding: 2px 0 6px !important;
    margin-bottom: 0 !important;
    border-bottom: none !important;
}
.checkout-order-summary .checkout-order-summary__head ul li {
    font-size: 0.7rem !important;
    font-weight: 600 !important;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #666 !important;
}
.checkout-order-summary .checkout-order-summary__lines {
    margin: 6px 0 !important;
    padding: 8px 0 !important;
    border-top: 1px solid #e2e2e5 !important;
    border-bottom: 1px solid #e2e2e5 !important;
}
.checkout-order-summary .checkout-order-summary__lines ul.checkout-order-line-list > li.checkout-order-line {
    margin: 0 0 10px !important;
    padding-bottom: 10px;
    border-bottom: 1px solid #ededf0;
    font-size: 0.84rem;
    line-height: 1.35;
}
.checkout-order-summary .checkout-order-summary__lines ul.checkout-order-line-list > li.checkout-order-line:last-child {
    margin-bottom: 0 !important;
    padding-bottom: 0;
    border-bottom: none;
}
.checkout-order-line {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.checkout-order-line__product {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    flex: 1;
}
.checkout-order-line__thumb { flex-shrink: 0; }
.checkout-order-line__img,
.checkout-order-line__img-ph {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    border: 1px solid #ebebeb;
    box-sizing: border-box;
}
.checkout-order-line__img {
    display: block;
    object-fit: cover;
    background: #fafafa;
}
.checkout-order-line__img-ph {
    background: #ececf0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}
.checkout-order-line__info { min-width: 0; }
.checkout-order-line__qty {
    font-size: 0.74rem;
    color: #7a8494;
    margin-top: 3px;
}
.checkout-order-summary .checkout-order-summary__lines .order-price {
    font-weight: 600;
    white-space: nowrap;
    margin-left: 6px;
    font-size: 0.86rem;
    color: #111827;
}
.checkout-order-summary .checkout-order-summary__ship ul {
    padding: 6px 0 !important;
    margin-bottom: 0 !important;
    font-size: 0.8rem;
}
.checkout-order-summary .checkout-order-summary__grand ul {
    padding: 8px 0 4px !important;
    margin-bottom: 0 !important;
}
.checkout-order-summary .checkout-order-summary__grand .order-total {
    font-size: 0.85rem !important;
}
.checkout-order-summary .checkout-order-summary__grand #order-total-price {
    font-size: 0.95rem !important;
}

/* ═══════════════════════════════════════════════════════════════════════
   AUTH / SIGNUP FORM — dipindahkan dari signup.html (Phase 3)
   ═══════════════════════════════════════════════════════════════════════ */

.sf-label {
    font-size: 0.72rem;
    font-weight: 600;
    color: #999;
    letter-spacing: .03em;
    margin-bottom: 2px;
    display: block;
}
.sf-input {
    width: 100%;
    border: none;
    border-bottom: 1px solid #e0e0e0;
    padding: 7px 0;
    outline: none;
    font-size: 0.9rem;
    background: transparent;
    color: #1e2a3a;
}
.sf-input:focus { border-bottom-color: #e8b4b8; }
.sf-input::placeholder { color: #ccc; font-size: 0.83rem; }
.sf-select {
    width: 100%;
    border: none;
    border-bottom: 1px solid #e0e0e0;
    padding: 7px 0;
    outline: none;
    font-size: 0.88rem;
    background: transparent;
    color: #1e2a3a;
    appearance: none;
    -webkit-appearance: none;
}
.sf-select:disabled { color: #bbb; }
.sf-row { display: grid; gap: 16px; margin-bottom: 8px; }
.sf-row-2 { grid-template-columns: 1fr 1fr; }
.sf-row-3 { grid-template-columns: 1fr 1fr 1fr; }
.sf-row-1 { grid-template-columns: 1fr; }
@media (max-width: 767.98px) {
    .sf-row-2,
    .sf-row-3 { grid-template-columns: 1fr; gap: 10px; }
    .auth-page-body .container,
    .auth-page-header .container { padding-left: 12px !important; padding-right: 12px !important; }
}

/* ── Auth form: kecilkan jarak label → input ── */
.auth-form__single-field label {
    display: block;
    margin-bottom: 4px !important;
    font-size: 0.8rem;
    font-weight: 600;
    color: #888;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}
.auth-form__single-field input,
.auth-form__single-field textarea,
.auth-form__single-field select {
    margin-top: 0 !important;
}
#signup-form .mys-gmaps-map-wrap {
    position: relative;
    z-index: 0;
    isolation: isolate;
}
#signup-form #addr-domestic-fields .sf-select {
    position: relative;
    z-index: 2;
}

/* Google Places autocomplete dropdown — di atas fixed header & map */
.pac-container {
    z-index: 10050 !important;
    box-sizing: border-box;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    font-family: inherit;
}
.pac-item {
    font-size: 0.85rem;
    padding: 10px 12px;
    line-height: 1.35;
    cursor: pointer;
}
.pac-item-query {
    font-size: 0.85rem;
}

.mys-gplaces-pick-btn {
    flex-shrink: 0;
    align-self: center;
    min-width: 72px;
    padding: 8px 16px;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.2;
    border: 1.5px solid var(--mys-aksen, #e8b4b8);
    border-radius: 50px;
    background: transparent;
    color: var(--mys-aksen, #c2185b);
    cursor: pointer;
    white-space: nowrap;
    letter-spacing: 0.02em;
    transition: background 0.15s ease, color 0.15s ease;
}
.mys-gplaces-pick-btn:hover {
    background: var(--mys-aksen, #e8b4b8);
    color: var(--mys-teks-aksen, #fff);
}
.mys-gplaces-pick-btn:active {
    opacity: 0.85;
}
.sf-section {
    font-size: 0.68rem;
    font-weight: 700;
    color: #ccc;
    letter-spacing: .08em;
    text-transform: uppercase;
    margin: 14px 0 8px;
}

/* ═══════════════════════════════════════════════════════════════════════
   ADDRESS FORM DONE BAR — dipindahkan dari profile_addresses.html (Phase 3)
   ═══════════════════════════════════════════════════════════════════════ */

.mys-address-form-done-bar {
    margin-top: 0.75rem;
    margin-bottom: 1.25rem;
    padding-top: 0.75rem;
    border-top: 1px solid #f0e0e2;
    display: flex;
    justify-content: flex-end;
}

/* Kartu alamat tersimpan (daftar di halaman Profil/Alamat) — kelas unik agar TIDAK
   bentrok dgn .mys-addr-card di dalam picker checkout. */
.mys-saved-addr-card {
    border: 1px solid #f0e0e2;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.15s ease, border-color 0.15s ease;
}
.mys-saved-addr-card:hover {
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    border-color: #e8cdd2;
}
@media (max-width: 767.98px) {
    .mys-address-form-done-bar {
        margin-top: 1.25rem;
        justify-content: stretch;
    }
    .mys-address-form-done-bar .btn {
        width: 100%;
    }
}

/* ═══════════════════════════════════════════════════════════════════════
   FORGOT PASSWORD / RESET FLOW — dipindahkan dari forgot_password_confirm.html (Phase 3)
   ═══════════════════════════════════════════════════════════════════════ */

#mys-fp-reset-success-overlay.mys-fp-reset-success-overlay {
    display: flex;
    position: fixed;
    inset: 0;
    z-index: 10070;
    align-items: center;
    justify-content: center;
    padding: 24px;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: saturate(140%) blur(6px);
}
.mys-fp-reset-success-panel {
    text-align: center;
    max-width: 340px;
    padding: 28px 24px;
    border-radius: 16px;
    border: 1px solid rgba(232, 180, 184, 0.45);
    background: #fff;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}
.mys-fp-reset-success-spinner {
    box-sizing: border-box;
    width: 52px;
    height: 52px;
    margin: 0 auto 18px;
    border-radius: 50%;
    border: 3px solid rgba(232, 180, 184, 0.35);
    border-top-color: var(--mys-aksen, #e8b4b8);
    animation: mysFpResetSpin 0.95s linear infinite;
}
@keyframes mysFpResetSpin {
    to { transform: rotate(360deg); }
}
.mys-fp-reset-success-panel h4 {
    margin: 0 0 10px;
    font-size: 1.08rem;
    font-weight: 700;
    color: #065f46;
}
.mys-fp-reset-success-sub {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.55;
    color: #047857;
}
#mys-fp-reset-success-sec { font-weight: 700; }
.mys-fp-reset-success-panel p:last-child { margin: 14px 0 0; }
#mys-fp-reset-success-now {
    display: inline-block;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--mys-aksen, #e8b4b8);
    text-decoration: none;
}
#mys-fp-reset-success-now:hover { text-decoration: underline; }
.mys-pw-reveal-wrap {
    position: relative;
    display: block;
}
.mys-pw-reveal-wrap input.mys-pw-reveal-input {
    width: 100%;
    box-sizing: border-box;
    padding-right: 48px !important;
}
.mys-pw-reveal-toggle {
    position: absolute;
    top: 50%;
    right: 4px;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    border-radius: 8px;
    color: #999;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    line-height: 1;
    transition: color 0.15s ease, background 0.15s ease;
}
.mys-pw-reveal-toggle:hover {
    color: var(--mys-aksen, #e8b4b8);
    background: rgba(232, 180, 184, 0.12);
}
.mys-pw-reveal-toggle:focus-visible {
    outline: 2px solid var(--mys-aksen, #e8b4b8);
    outline-offset: 2px;
}
.mys-pw-reveal-toggle .bi-eye-slash { display: none; }
.mys-pw-reveal-toggle.is-visible .bi-eye { display: none; }
.mys-pw-reveal-toggle.is-visible .bi-eye-slash { display: inline-block; }

/* ═══════════════════════════════════════════════════════════════════════
   MODAL SIGNIN CHECKOUT — dipindahkan dari modal_signin_checkout.html (Phase 3)
   ═══════════════════════════════════════════════════════════════════════ */

@keyframes mysModalIn {
    from { transform: scale(.93); opacity: 0; }
    to   { transform: scale(1);   opacity: 1; }
}

/* ═══════════════════════════════════════════════════════════════════════
   PROFILE ADDRESS FORM — dipindahkan dari profile_address_form.html (Phase 3)
   ═══════════════════════════════════════════════════════════════════════ */

.mys-profile-address-inline.checkout-form {
    padding: 10px 12px !important;
    background-color: #fdfcfd !important;
}
@media (min-width: 576px) {
    .mys-profile-address-inline.checkout-form {
        padding: 14px 18px !important;
    }
}
.mys-profile-address-inline-form .mys-profile-edit-form__h5 {
    font-weight: 700;
    margin-bottom: 0;
    border-bottom: none;
    padding-bottom: 0;
    font-size: 0.95rem;
}
.mys-profile-address-inline-form .mys-addr-form-head {
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid #f0e0e2;
}
@media (max-width: 575.98px) {
    .mys-profile-address-inline-form .mys-addr-form-head {
        margin-bottom: 6px;
        padding-bottom: 6px;
    }
}
.mys-profile-address-inline-form .mys-addr-inline-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px 16px;
    margin-bottom: 8px;
}
/* Native "Please fill out this field" bubble anchors to the invalid control.
   Reserve the fixed-chrome height (topbar + header) so the browser stops the
   field below the header on submit — otherwise the bubble hides behind it. */
.mys-profile-address-inline-form input,
.mys-profile-address-inline-form select,
.mys-profile-address-inline-form textarea {
    scroll-margin-top: calc(var(--mys-chrome-h, 120px) + 16px);
}
.mys-profile-address-inline-form .mys-addr-rt-rw-row {
    grid-template-columns: 1fr 1fr !important;
    gap: 8px 12px !important;
}
@media (max-width: 575.98px) {
    .mys-profile-address-inline-form .mys-addr-rt-rw-row { gap: 6px 10px !important; }
    .mys-profile-address-inline-form .mys-addr-inline-grid { gap: 6px 12px; margin-bottom: 4px; }
}
@media (min-width: 576px) {
    .mys-profile-address-inline-form .mys-addr-inline-grid { grid-template-columns: 1fr 1fr; }
    .mys-profile-address-inline-form .mys-addr-wilayah-grid { grid-template-columns: 1fr 1fr; }
}
.mys-profile-address-inline-form .mys-addr-span-full { grid-column: 1 / -1; }
.mys-profile-address-inline-form .mys-addr-kodepos-wrap {
    grid-column: 1 / -1;
    max-width: 14rem;
}
.mys-profile-address-inline-form .checkout-form__single-field label {
    margin-bottom: 5px !important;
    font-size: 12px !important;
    line-height: 1.25 !important;
    display: block;
}
@media (min-width: 576px) {
    .mys-profile-address-inline-form .checkout-form__single-field label {
        margin-bottom: 6px !important;
        font-size: 13px !important;
    }
}
.mys-profile-address-inline-form .checkout-form__single-field input {
    font-size: 15px !important;
    padding-bottom: 6px !important;
    border-bottom-width: 1px !important;
}
@media (min-width: 576px) {
    .mys-profile-address-inline-form .checkout-form__single-field input {
        font-size: 16px !important;
        padding-bottom: 8px !important;
    }
}
.mys-profile-address-inline-form .checkout-form__single-field.space-mb--20 { margin-bottom: 12px !important; }
@media (max-width: 575.98px) {
    .mys-profile-address-inline-form .checkout-form__single-field.space-mb--20 { margin-bottom: 8px !important; }
}
.mys-profile-address-inline-form .mys-addr-hint {
    margin-top: 2px !important;
    font-size: 11px !important;
    line-height: 1.3 !important;
}
.mys-profile-address-inline-form .mys-addr-type-row {
    margin-bottom: 14px !important;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* ── Address type card toggle ── */
.mys-addr-type-cards {
    display: flex;
    gap: 10px;
}

.mys-addr-type-card {
    flex: 1;
    cursor: pointer;
    margin: 0;
}

.mys-addr-type-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.mys-addr-type-card__inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    border: 2px solid #f0e0e2;
    border-radius: 10px;
    background: #fff;
    transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
    user-select: none;
}

.mys-addr-type-card__flag {
    font-size: 1.35rem;
    line-height: 1;
}

.mys-addr-type-card__label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #555;
    letter-spacing: 0.01em;
}

.mys-addr-type-card input[type="radio"]:checked + .mys-addr-type-card__inner {
    border-color: var(--mys-aksen, #e8b4b8);
    background: #fdf6f7;
    box-shadow: 0 0 0 3px rgba(232,180,184,0.18);
}

.mys-addr-type-card input[type="radio"]:checked + .mys-addr-type-card__inner .mys-addr-type-card__label {
    color: var(--mys-aksen, #c8384d);
}

.mys-addr-type-card:hover .mys-addr-type-card__inner {
    border-color: var(--mys-aksen, #e8b4b8);
    background: #fdf6f7;
}

/* ── Modal pilih tipe alamat (ID / International) ── */
.mys-addr-hidden { display: none !important; }
.mys-hidden-radio {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}
.mys-addr-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10060;
    background: rgba(0, 0, 0, 0.45);
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.mys-addr-modal--open { display: flex; }
.mys-addr-modal__box {
    background: #fff;
    border-radius: 14px;
    width: 100%;
    max-width: 340px;
    padding: 18px 18px 20px;
    box-shadow: 0 12px 38px rgba(0, 0, 0, 0.2);
    text-align: center;
}
.mys-addr-modal__title { margin: 0 0 4px; font-weight: 700; font-size: 1rem; }
.mys-addr-modal__sub { margin: 0 0 14px; color: #777; font-size: 0.8rem; }
.mys-addr-modal__choices {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.mys-addr-choice {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 12px 8px;
    border: 1px solid #eee;
    border-radius: 10px;
    background: #fafafa;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
}
.mys-addr-choice:hover {
    border-color: var(--mys-aksen, #e8b4b8);
    background: #fdf6f7;
}
.mys-addr-choice__flag { font-size: 1.4rem; line-height: 1; }
.mys-addr-choice__label { font-weight: 600; font-size: 0.82rem; }
.mys-addr-type-current { display: flex; align-items: center; gap: 8px; }
.mys-addr-type-badge { font-weight: 600; font-size: 0.9rem; }

/* Baris telepon: kode negara (hanya International) + nomor */
.mys-phone-row { display: flex; gap: 8px; align-items: stretch; }
.mys-phone-row #recipient_phone { flex: 1 1 auto; min-width: 0; }
.mys-phone-code {
    flex: 0 0 auto;
    max-width: 108px;
    display: none;  /* muncul saat mode International via JS */
}
.mys-phone-code.mys-phone-code--show { display: block; }

/* Badge ekspedisi di seksi Ongkir checkout */
.mys-courier-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    background: #fef2f2;
    color: #d32f2f;
    border: 1px solid #f6c9c9;
}
@media (max-width: 400px) {
    .mys-addr-modal__choices { grid-template-columns: 1fr; }
}

/* Search tip below Google Maps input */
.mys-addr-search-tip {
    color: var(--mys-aksen, #c8384d);
    font-weight: 500;
    margin-top: 6px !important;
}

@media (max-width: 575.98px) {
    .mys-profile-address-inline-form .mys-addr-type-row {
        margin-bottom: 10px !important;
    }
    .mys-addr-type-card__inner {
        padding: 11px 12px;
    }
}
#addr-domestic-fields .mys-addr-kodepos-wrap { margin-bottom: 8px !important; }
.mys-profile-edit-form #addr-domestic-fields select,
.mys-profile-edit-form #addr-intl-fields input,
.mys-profile-address-inline-form .mys-addr-select {
    background: #fff;
    width: 100%;
    padding: 8px 10px;
    border: none;
    border-bottom: 1px solid #ddd;
    font-size: 14px;
    outline: none;
    border-radius: 0;
}
@media (min-width: 576px) {
    .mys-profile-edit-form #addr-domestic-fields select,
    .mys-profile-address-inline-form .mys-addr-select {
        padding: 10px 14px;
        font-size: 0.9rem;
    }
}
.mys-profile-edit-form #addr-domestic-fields select:disabled,
.mys-profile-address-inline-form .mys-addr-select:disabled {
    background: #f5f5f5;
    color: #aaa;
}
.mys-profile-edit-form .checkout-form__input {
    width: 100%;
    padding: 8px 0;
    border: none;
    border-bottom: 1px solid #ddd;
    font-size: 15px;
    outline: none;
}
.mys-profile-edit-form #sel-provinsi,
.mys-profile-edit-form #sel-kabupaten,
.mys-profile-edit-form #sel-kecamatan,
.mys-profile-edit-form #sel-kelurahan { appearance: auto; }
.mys-profile-address-inline-form .checkout-form__button {
    width: auto;
    min-width: 9rem;
    padding: 11px 16px !important;
    font-size: 14px !important;
}
@media (max-width: 575.98px) {
    .mys-profile-address-inline-form .mys-addr-submit-row {
        margin-top: 8px !important;
        padding-top: 8px !important;
    }
}
#mys-profile-edit .mys-gmaps-map-wrap,
#mys-address-section .mys-gmaps-map-wrap {
    position: relative;
    z-index: 0;
    isolation: isolate;
}
#mys-profile-edit #addr-domestic-fields .mys-addr-select,
#mys-address-section #addr-domestic-fields .mys-addr-select {
    position: relative;
    z-index: 2;
}
#mys-profile-edit,
#mys-address-section { scroll-margin-top: 100px; }

/* ═══════════════════════════════════════════════════════════════════════
   PROFILE PERSONAL FORM — dipindahkan dari profile_personal_form.html (Phase 3)
   ═══════════════════════════════════════════════════════════════════════ */

.mys-ver-badge {
    font-size: 11px;
    font-weight: 600;
    padding: 0.28em 0.65em;
}
.mys-ver-badge--ok { background: #dcfce7; color: #166534; }
.mys-ver-badge--pending { background: #fef3c7; color: #92400e; }
.mys-profile-personal-compact.checkout-form {
    padding: 10px 12px !important;
    background-color: #fdfcfd !important;
}
@media (min-width: 576px) {
    .mys-profile-personal-compact.checkout-form { padding: 14px 18px !important; }
}
.mys-profile-personal-compact__title {
    font-weight: 700;
    font-size: 0.95rem;
    margin: 0;
    padding-bottom: 6px;
    border-bottom: 1px solid #f0e0e2;
}
@media (max-width: 575.98px) {
    .mys-profile-personal-compact__title { padding-bottom: 5px; }
}
.mys-profile-personal-compact .checkout-form__single-field label {
    margin-bottom: 5px !important;
    font-size: 12px !important;
    line-height: 1.25 !important;
    display: block;
}
@media (min-width: 576px) {
    .mys-profile-personal-compact .checkout-form__single-field label {
        margin-bottom: 6px !important;
        font-size: 13px !important;
    }
}
.mys-profile-personal-compact .checkout-form__single-field input {
    font-size: 15px !important;
    padding-bottom: 6px !important;
    border-bottom-width: 1px !important;
}
@media (min-width: 576px) {
    .mys-profile-personal-compact .checkout-form__single-field input {
        font-size: 16px !important;
        padding-bottom: 8px !important;
    }
}
.mys-profile-personal-compact .checkout-form__single-field.space-mb--20 { margin-bottom: 10px !important; }
@media (max-width: 575.98px) {
    .mys-profile-personal-compact .checkout-form__single-field.space-mb--20 { margin-bottom: 7px !important; }
}
.mys-profile-personal-compact .mys-profile-personal-compact__btn.checkout-form__button {
    margin-top: 0 !important;
    padding: 11px 16px !important;
    font-size: 14px !important;
    min-width: 0;
}
.mys-profile-personal-cancel { padding: 11px 16px; font-size: 14px; }
@media (min-width: 576px) {
    .mys-profile-personal-compact .mys-profile-personal-compact__btn.checkout-form__button {
        min-width: 200px;
    }
}

/* ═══════════════════════════════════════════════════════════════════════
   AI CHAT PAGE — dipindahkan dari chat.html (Phase 3)
   Semua selectors di-scope ke body.mys-chat-page atau .ai-* / .mys-chat-*
   ═══════════════════════════════════════════════════════════════════════ */
  /* Soft blue dari warna aksen (FAB / header accent) — tidak jauh tapi lebih lembut */
  body.mys-chat-page {
    --mys-chat-soft-bg: #f3f6ff;
    --mys-chat-soft-bg: color-mix(in srgb, var(--mys-aksen, #97a9f6) 13%, white);
    background: var(--mys-chat-soft-bg) !important;
  }
  body.mys-chat-page .body-wrapper {
    background: var(--mys-chat-soft-bg) !important;
    display: flex;
    flex-direction: column;
    min-height: 100dvh;
    height: 100dvh;
    max-height: 100dvh;
    box-sizing: border-box;
    overflow: hidden;
    padding-bottom: 0 !important;
    /* padding-top is set by JS applyPadding() to chrome height — box-sizing:border-box
       means the content area = 100dvh - chrome, no overflow */
  }
  /* Shell wrapper (dari base.html) harus ikut flex chain agar ai-messages bisa scroll */
  body.mys-chat-page .mys-main-content-shell {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }
  /* Area ketik tetap di bawah layar; daftar pesan yang scroll */
  body.mys-chat-page #mys-chat-fab { display: none !important; }

  /* ── Streaming cursor blink (moved from chat.html inline style) ── */
  .streaming-bubble::after {
    content: '▍';
    display: inline-block;
    animation: mys-blink .6s step-end infinite;
    opacity: .7;
    margin-left: 2px;
  }
  @keyframes mys-blink { 0%,100%{opacity:.7} 50%{opacity:0} }

  /* ── AI Chat Layout ───────────────────────────────────── */
  .ai-chat-wrapper {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    width: 100%;
    max-width: 680px;
    margin: 0 auto;
    background: var(--mys-chat-soft-bg);
  }

  /* Header strip = sama dengan header situs (warna_bg_header) */
  .ai-chat-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    background: var(--mys-bg-header, #fff);
    color: var(--mys-teks-utama, #1e2a3a);
    flex-shrink: 0;
    border-bottom: 1px solid rgba(30, 42, 58, 0.08);
  }
  /* Language toggle pill (EN / ID) — lives in sidebar, reused here via shared class */
  .mys-chat-lang-toggle {
    display: flex;
    gap: 2px;
    flex-shrink: 0;
    background: rgba(30,42,58,0.07);
    border-radius: 20px;
    padding: 2px;
  }
  .mys-chat-lang-btn {
    border: none;
    background: transparent;
    border-radius: 18px;
    padding: 3px 10px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--mys-teks-utama, #1e2a3a);
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    line-height: 1.4;
  }
  .mys-chat-lang-btn.active {
    background: var(--mys-aksen, #97a9f6);
    color: #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,0.12);
  }
  .mys-chat-lang-btn:not(.active):hover { background: rgba(30,42,58,0.1); }
  .mys-chat-lang-btn:disabled { opacity: 0.5; cursor: not-allowed; }
  .ai-chat-header .bot-avatar {
    width: 40px; height: 40px;
    border-radius: 50%;
    /* Sama dengan FAB chat: aksen brand */
    background: var(--mys-aksen, #3a7bd5);
    color: var(--mys-teks-aksen, #fff);
    display: flex; align-items: center; justify-content: center;
    font-size: 20px; flex-shrink: 0;
  }
  .ai-chat-header .bot-info h6 { margin: 0; font-size: 14px; font-weight: 700; color: var(--mys-teks-utama, #1e2a3a); }
  /* Bukan teks-muted: abu terlalu pudar di atas latar biru muda / warna header */
  .ai-chat-header .bot-info small {
    font-size: 11px;
    font-weight: 500;
    color: var(--mys-teks-utama, #1e2a3a);
    opacity: 0.78;
  }
  .ai-online-dot {
    width: 7px; height: 7px; border-radius: 50%; background: #4cde80;
    display: inline-block; margin-right: 4px;
    animation: pulse-dot 2s infinite;
  }
  @keyframes pulse-dot { 0%,100%{opacity:1} 50%{opacity:.4} }

  /* Mode selector */
  .ai-mode-bar {
    display: flex;
    gap: 6px;
    padding: 8px 14px;
    overflow-x: auto;
    background: var(--mys-chat-soft-bg);
    border-bottom: 1px solid color-mix(in srgb, var(--mys-aksen, #97a9f6) 12%, transparent);
    flex-shrink: 0;
    scrollbar-width: none;
  }
  .ai-mode-bar::-webkit-scrollbar { display: none; }
  .mode-pill {
    display: flex; align-items: center; gap: 5px;
    padding: 5px 12px;
    border-radius: 20px;
    border: 1.5px solid rgba(30, 42, 58, 0.12);
    background: #fff;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: all .15s;
    color: var(--mys-teks-utama, #333);
  }
  .mode-pill:hover { border-color: var(--mys-aksen, #3a7bd5); color: var(--mys-aksen, #3a7bd5); }
  .mode-pill.active {
    background: var(--mys-aksen, #3a7bd5);
    border-color: var(--mys-aksen, #3a7bd5);
    color: var(--mys-teks-aksen, #fff);
  }

  /* Panel gambar referensi konsultasi kulit (file dari server /media — cache browser) */
  .ai-skin-ref-panel {
    flex-shrink: 0;
    padding: 6px 14px 8px;
    background: color-mix(in srgb, var(--mys-aksen, #97a9f6) 6%, var(--mys-chat-soft-bg));
    border-bottom: 1px solid color-mix(in srgb, var(--mys-aksen, #97a9f6) 12%, transparent);
  }
  .ai-skin-ref-panel[hidden] { display: none !important; }
  .ai-skin-ref-inner {
    max-width: 680px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 6px;
  }
  .ai-skin-ref-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--mys-teks-utama, #333);
    opacity: 0.85;
    letter-spacing: 0.02em;
  }
  .ai-skin-ref-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }
  .skin-ref-chip {
    background: #fff;
    border: 1.5px solid rgba(30, 42, 58, 0.12);
    color: var(--mys-teks-utama, #333);
    border-radius: 14px;
    padding: 5px 11px;
    font-size: 11.5px;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s, border-color .15s, color .15s;
  }
  .skin-ref-chip:hover {
    border-color: var(--mys-aksen, #3a7bd5);
    color: var(--mys-aksen, #3a7bd5);
  }
  .skin-ref-chip:focus-visible {
    outline: 2px solid var(--mys-aksen, #3a7bd5);
    outline-offset: 2px;
  }
  .ai-skin-ref-empty {
    font-size: 11px;
    color: var(--mys-teks-utama, #555);
    opacity: 0.85;
    margin: 0;
  }
  .skin-ref-chat-thumb {
    display: block;
    max-width: 100%;
    max-height: 220px;
    width: auto;
    height: auto;
    border-radius: 12px;
    margin-top: 8px;
    object-fit: contain;
    background: rgba(255,255,255,.6);
  }
  .skin-ref-user-caption {
    font-size: 13px;
    line-height: 1.45;
  }
  .skin-ref-modal { position: fixed; inset: 0; z-index: 450; display: flex; align-items: center; justify-content: center; padding: 16px; box-sizing: border-box; }
  .skin-ref-modal[hidden] { display: none !important; }
  .skin-ref-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(30, 42, 58, 0.45);
    backdrop-filter: blur(3px);
  }
  .skin-ref-modal__panel {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 420px;
    max-height: min(88vh, 640px);
    overflow: auto;
    background: #fff;
    border-radius: 16px 16px 12px 12px;
    padding: 14px 14px 16px;
    box-shadow: 0 16px 48px rgba(0,0,0,.18);
    border: 1px solid rgba(30, 42, 58, 0.08);
    box-sizing: border-box;
  }
  .skin-ref-modal__close {
    position: absolute;
    top: 8px;
    right: 10px;
    border: none;
    background: transparent;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    color: #888;
    padding: 4px 8px;
  }
  .skin-ref-modal__title {
    margin: 0 28px 10px 0;
    font-size: 1rem;
    font-weight: 700;
    color: var(--mys-teks-utama, #1e2a3a);
  }
  .skin-ref-modal__img {
    display: block;
    width: 100%;
    max-height: 52vh;
    object-fit: contain;
    border-radius: 12px;
    background: #f5f5f8;
  }
  .skin-ref-modal__desc {
    margin: 10px 0 14px;
    font-size: 12.5px;
    line-height: 1.5;
    color: var(--mys-teks-utama, #444);
  }
  .skin-ref-modal__actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
  }
  .skin-ref-modal__btn {
    border-radius: 999px;
    padding: 9px 16px;
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    border: 1.5px solid transparent;
    font-family: inherit;
  }
  .skin-ref-modal__btn.ghost {
    background: #fff;
    border-color: rgba(30, 42, 58, 0.18);
    color: var(--mys-teks-utama, #333);
  }
  .skin-ref-modal__btn.primary {
    background: var(--mys-aksen, #3a7bd5);
    border-color: var(--mys-aksen, #3a7bd5);
    color: #fff;
  }

  /* Notice */
  .ai-notice {
    background: #fff8e1; border-left: 3px solid #ffc107;
    font-size: 12px; color: #7a6000; padding: 7px 14px; flex-shrink: 0;
  }

  /* Area pesan — soft blue (sumber warna = aksen, lebih pucat dari header) */
  .ai-messages {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 14px 14px calc(var(--footer-h, 148px) + env(safe-area-inset-bottom, 0px));
    display: flex; flex-direction: column; gap: 10px;
    background: var(--mys-chat-soft-bg); scroll-behavior: smooth;
  }
  .ai-messages::-webkit-scrollbar { width: 4px; }
  .ai-messages::-webkit-scrollbar-thumb {
    background: color-mix(in srgb, var(--mys-aksen, #97a9f6) 28%, #ccc);
    border-radius: 4px;
  }

  /* Bubble */
  .msg-row { display: flex; align-items: flex-end; gap: 8px; max-width: 88%; }
  .msg-row.user-row { align-self: flex-end; flex-direction: row-reverse; }
  .msg-row.bot-row  { align-self: flex-start; }
  .msg-avatar {
    width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center; font-size: 13px;
  }
  .bot-row .msg-avatar  { background: var(--mys-aksen, #3a7bd5); color: var(--mys-teks-aksen, #fff); }
  .user-row .msg-avatar { background: #e2e2e2; color: #555; }

  .chat-model-badge {
    display: inline-flex; align-items: center; justify-content: center;
    width: 20px; height: 20px; border-radius: 50%;
    font-size: 10px; font-weight: 700; line-height: 1; letter-spacing: 0;
  }
  .chat-model-badge.model-h { background: #22c55e; color: #fff; }
  .chat-model-badge.model-s { background: #6366f1; color: #fff; }

  .msg-bubble {
    padding: 9px 13px; border-radius: 18px;
    font-size: 13.5px; line-height: 1.55; word-break: break-word;
  }
  /* Markdown inside bubble */
  .msg-bubble p    { margin: 0 0 6px; }
  .msg-bubble p:last-child { margin-bottom: 0; }
  .msg-bubble strong { font-weight: 700; }
  .msg-bubble ul, .msg-bubble ol { margin: 4px 0 4px 18px; padding: 0; }
  .msg-bubble li   { margin-bottom: 2px; }
  /* Headings inside chat bubble — scale down to fit chat context */
  .msg-bubble h1 { font-size: 1em; font-weight: 700; margin: 6px 0 4px; }
  .msg-bubble h2 { font-size: .95em; font-weight: 700; margin: 6px 0 4px; }
  .msg-bubble h3 { font-size: .9em;  font-weight: 600; margin: 4px 0 3px; }
  .msg-bubble h4, .msg-bubble h5, .msg-bubble h6 { font-size: .85em; font-weight: 600; margin: 3px 0; }

  /* Inline images in AI response — capped at 200×200 */
  .msg-bubble img  {
    max-width: 200px; max-height: 200px;
    width: auto; height: auto;
    border-radius: 8px; display: block; margin: 4px 0;
  }

  /* ── Choice chips: item pilihan konsultasi yang bisa diklik (tampil sebagai tombol) ── */
  .msg-bubble ul.mys-choice-list {
    list-style: none;
    padding-left: 0;
    margin: 12px 0 4px;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  .msg-bubble li.mys-chat-choice-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    text-align: left;
    cursor: pointer;
    padding: 11px 15px;
    border-radius: 14px;
    border: 1.5px solid color-mix(in srgb, var(--mys-aksen, #3a7bd5) 40%, transparent);
    background: color-mix(in srgb, var(--mys-aksen, #3a7bd5) 6%, #fff);
    color: var(--mys-teks-utama, #333);
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
    box-shadow: 0 1px 2px rgba(30, 42, 58, .06);
    transition: background .15s, border-color .15s, color .15s, transform .05s;
    user-select: none;
    -webkit-user-select: none;
    margin-bottom: 0;
  }
  /* marked kadang membungkus isi <li> dalam <p> (loose list) — netralkan marginnya */
  .msg-bubble li.mys-chat-choice-chip > p { margin: 0; display: inline; }
  .msg-bubble li.mys-chat-choice-chip:hover {
    background: color-mix(in srgb, var(--mys-aksen, #3a7bd5) 14%, #fff);
    border-color: var(--mys-aksen, #3a7bd5);
  }
  .msg-bubble li.mys-chat-choice-chip:active { transform: scale(.985); }
  .msg-bubble li.mys-chat-choice-chip:focus-visible {
    outline: 2px solid var(--mys-aksen, #3a7bd5);
    outline-offset: 2px;
  }
  .msg-bubble li.mys-chat-choice-chip.chip-selected {
    background: var(--mys-aksen, #3a7bd5);
    color: var(--mys-teks-aksen, #fff);
    border-color: var(--mys-aksen, #3a7bd5);
    box-shadow: 0 2px 6px color-mix(in srgb, var(--mys-aksen, #3a7bd5) 35%, transparent);
    cursor: default;
  }
  .msg-bubble li.mys-chat-choice-chip.chip-done {
    cursor: default;
    opacity: 0.4;
    pointer-events: none;
  }
  .msg-bubble code { background: rgba(0,0,0,.07); padding: 1px 5px; border-radius: 4px; font-size: 12px; }

  .bot-row .msg-bubble {
    background: #fff; border-bottom-left-radius: 4px;
    border: 1px solid rgba(30, 42, 58, 0.1);
    box-shadow: 0 1px 2px rgba(0,0,0,.04); color: var(--mys-teks-utama, #333);
  }
  .user-row .msg-bubble {
    background: var(--mys-aksen, #3a7bd5);
    color: var(--mys-teks-aksen, #fff);
    border-bottom-right-radius: 4px;
    border: 1px solid transparent;
  }

  .msg-time { font-size: 10px; color: #aaa; margin-top: 3px; }
  .bot-row .msg-time { text-align: left; }
  .user-row .msg-time { text-align: right; }

  /* CTA button */
  .btn-cta-chat {
    display: inline-flex; align-items: center; gap: 6px;
    margin-top: 8px; padding: 7px 16px;
    background: var(--mys-aksen, #3a7bd5);
    color: var(--mys-teks-aksen, #fff);
    border-radius: 20px; font-size: 12.5px; font-weight: 600;
    text-decoration: none; transition: opacity .15s;
  }
  .btn-cta-chat:hover { opacity: .85; color: var(--mys-teks-aksen, #fff); }
  .btn-cta-chat-secondary {
    background: var(--mys-aksen-dark, #2c5daa);
  }

  /* Typing indicator */
  .typing-indicator .msg-bubble {
    display: flex; gap: 5px; align-items: center; padding: 11px 15px;
  }
  .typing-dot {
    width: 7px; height: 7px; border-radius: 50%; background: #ccc;
    animation: bounce-dot .9s infinite;
  }
  .typing-dot:nth-child(2) { animation-delay: .15s; }
  .typing-dot:nth-child(3) { animation-delay: .30s; }
  @keyframes bounce-dot { 0%,80%,100%{transform:translateY(0)} 40%{transform:translateY(-7px)} }

  /* Blok bawah: tombol simpan kulit + input — nempel viewport (di atas safe area) */
  .ai-chat-footer-surface {
    flex-shrink: 0;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 100;
    background: var(--mys-chat-soft-bg);
    padding-bottom: env(safe-area-inset-bottom, 0);
    box-shadow: 0 -4px 18px color-mix(in srgb, var(--mys-aksen, #97a9f6) 8%, transparent);
    box-sizing: border-box;
  }
  .ai-chat-footer-surface .ai-skin-action-bar {
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 14px;
    padding-right: 14px;
    box-sizing: border-box;
  }
  .ai-chat-input {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    padding: 9px 13px 12px;
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    box-sizing: border-box;
    background: var(--mys-chat-soft-bg);
    border-top: 1px solid color-mix(in srgb, var(--mys-aksen, #97a9f6) 14%, transparent);
    flex-shrink: 0;
  }
  .ai-chat-input textarea {
    flex: 1; border: 1.5px solid rgba(30, 42, 58, 0.15); border-radius: 20px;
    padding: 9px 15px; font-size: 14px; resize: none; outline: none;
    max-height: 120px; min-height: 42px; line-height: 1.4;
    font-family: inherit; color: var(--mys-teks-utama, #333); background: #fff; transition: border-color .2s;
  }
  .ai-chat-input textarea:focus { border-color: var(--mys-aksen, #3a7bd5); }
  .ai-chat-input textarea::placeholder { color: #bbb; }
  /* Tombol kirim: aksen solid, ikon pesawat selalu putih (abaikan warna aksen-teks tema) */
  .btn-send {
    width: 42px; height: 42px; border-radius: 50%;
    background: var(--mys-aksen, #3a7bd5);
    color: #fff;
    border: none;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    font-size: 15px; flex-shrink: 0; transition: background .2s, transform .1s, opacity .2s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  }
  .btn-send .fa,
  .btn-send i {
    color: #fff !important;
  }
  .btn-send .fa::before {
    color: inherit;
  }
  .btn-send:hover {
    background: var(--mys-aksen-dark, #2c5daa);
    color: #fff;
  }
  .btn-send:active { transform: scale(.92); }
  .btn-send:disabled { opacity: .45; cursor: not-allowed; }

  /* Kartu produk di bawah bubble Livi */
  .msg-bot-column {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    max-width: 100%;
    min-width: 0;
  }
  .mys-chat-product-strip {
    display: flex;
    flex-direction: row;
    gap: 10px;
    margin-top: 10px;
    padding-bottom: 4px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    max-width: min(100vw - 56px, 560px);
  }
  .mys-chat-pcard {
    flex: 0 0 140px;
    width: 140px;
    background: #fff;
    border: 1px solid rgba(30, 42, 58, 0.1);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .06);
    display: flex;
    flex-direction: column;
  }
  .mys-chat-pcard__media {
    display: block;
    aspect-ratio: 1;
    background: #f2f4f8;
    overflow: hidden;
  }
  .mys-chat-pcard__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }
  .mys-chat-pcard__body {
    padding: 8px 9px 10px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
  }
  .mys-chat-pcard__title {
    font-size: 11.5px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--mys-teks-utama, #1e2a3a);
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .mys-chat-pcard__title:hover { color: var(--mys-aksen, #3a7bd5); }
  .mys-chat-pcard__var {
    font-size: 10px;
    color: #666;
    line-height: 1.2;
  }
  .mys-chat-pcard__price {
    font-size: 12px;
    font-weight: 700;
    color: var(--mys-teks-utama, #333);
  }
  .mys-chat-pcard__atc {
    margin-top: 4px;
    width: 100%;
    border: none;
    border-radius: 999px;
    padding: 0;
    height: 32px;
    min-height: 32px;
    font-size: 0;
    line-height: 0;
    font-weight: 700;
    cursor: pointer;
    background: var(--mys-aksen, #3a7bd5);
    color: #fff;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .mys-chat-pcard__atc .mys-chat-pcard__atc-inner svg {
    display: block;
  }
  .mys-chat-pcard__atc .mys-atc-feedback {
    font-size: 15px;
    line-height: 1;
  }
  .mys-chat-pcard__atc:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    background: #9aa5b5;
    font-size: 10px;
    line-height: 1.2;
  }

  /* Welcome chips */
  .welcome-chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
  .chip {
    background: #fff; border: 1px solid rgba(30, 42, 58, 0.12); color: var(--mys-teks-utama, #333);
    border-radius: 14px; padding: 4px 11px; font-size: 11.5px; cursor: pointer;
    transition: background .15s, border-color .15s, color .15s;
  }
  .chip:hover {
    background: var(--mys-aksen, #3a7bd5);
    border-color: var(--mys-aksen, #3a7bd5);
    color: var(--mys-teks-aksen, #fff);
  }

  /* Konsultasi kulit — guest hint & tombol simpan (tombol opsional dari server/JS) */
  .ai-skin-guest-hint {
    flex-shrink: 0;
    margin: 0 14px 8px;
    padding: 8px 12px;
    border-radius: 10px;
    background: rgba(255,255,255,.85);
    font-size: 12px;
    color: var(--mys-teks-utama, #555);
    border: 1px dashed rgba(30, 42, 58, 0.15);
  }
  .ai-skin-guest-hint a {
    color: var(--mys-aksen, #3a7bd5);
    font-weight: 600;
    text-decoration: none;
  }
  .ai-skin-action-bar {
    flex-shrink: 0;
    padding: 0 14px 8px;
    background: transparent;
  }
  .btn-finalize-skin {
    width: 100%;
    padding: 10px 14px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    background: color-mix(in srgb, var(--mys-aksen, #3a7bd5) 12%, white);
    color: var(--mys-aksen, #2c5daa);
    border: 1.5px solid var(--mys-aksen, #3a7bd5);
    transition: background .15s, opacity .15s;
  }
  .btn-finalize-skin:hover:not(:disabled) {
    background: color-mix(in srgb, var(--mys-aksen, #3a7bd5) 22%, white);
  }
  .btn-finalize-skin:disabled {
    opacity: .55;
    cursor: not-allowed;
  }

  /* Pesan dari admin human */
  .ai-admin-avatar { background: var(--mys-aksen-dark, #2c5daa) !important; color: var(--mys-teks-aksen, #fff) !important; }
  .ai-admin-bubble {
    border-left: 3px solid var(--mys-aksen, #3a7bd5) !important;
  }

  /* Modal lanjut / sesi baru */
  .mys-chat-resume-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10075;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    background: rgba(30, 42, 58, 0.45);
    backdrop-filter: blur(4px);
  }
  .mys-chat-resume-overlay.is-open { display: flex; }
  .mys-chat-resume-panel {
    width: 100%;
    max-width: 360px;
    background: #fff;
    border-radius: 16px;
    padding: 22px 20px 18px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.14);
    border: 1px solid rgba(30, 42, 58, 0.08);
  }
  .mys-chat-resume-panel h3 {
    margin: 0 0 8px;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--mys-teks-utama, #1e2a3a);
  }
  .mys-chat-resume-panel p {
    margin: 0 0 16px;
    font-size: 0.88rem;
    line-height: 1.5;
    color: #5a6570;
  }
  .mys-chat-resume-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  .mys-chat-resume-actions button {
    font-family: inherit;
    font-size: 0.92rem;
    font-weight: 600;
    padding: 12px 14px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: opacity 0.15s, transform 0.1s;
  }
  .mys-chat-resume-actions button:active { transform: scale(0.98); }
  .mys-chat-btn-continue {
    background: var(--mys-aksen, #3a7bd5);
    color: var(--mys-teks-aksen, #fff);
  }
  .mys-chat-btn-new {
    background: #fff;
    color: var(--mys-teks-utama, #333);
    border: 1.5px solid rgba(30, 42, 58, 0.15);
  }

/* ═══════════════════════════════════════════════════════════════════════
   PHASE 7 — style="" attributes removed from base.html, now in CSS
   ═══════════════════════════════════════════════════════════════════════ */

/* Header inner row layout */
.mys-header-bar-inner > .row {
    width: 100%;
    margin: 0;
    height: 100%;
}
.mys-header-bar-inner > .row > .col-6 {
    padding-top: 0;
    padding-bottom: 0;
}
.mys-header-bar-inner > .row > .col-6:first-child {
    display: flex;
    align-items: center;
}

/* Brand fallback text (ketika tidak ada logo) */
.mys-brand-fallback {
    font-weight: 800;
    font-size: 1.05rem;
    letter-spacing: .04em;
    color: #2d2d2d;
    line-height: 1.2;
    display: inline-block;
}

/* Cart badge pada header (awalnya tersembunyi, ditampilkan oleh mys-cart-ui.js) */
.mys-cart-badge {
    display: none;
    position: absolute;
    top: 0;
    right: 0;
    background: #dc2626;
    color: #fff;
    font-size: 0.5rem;
    font-weight: 700;
    min-width: 14px;
    height: 14px;
    border-radius: 50%;
    padding: 0 2px;
    align-items: center;
    justify-content: center;
    line-height: 1;
    border: 1.5px solid #fff;
}

/* Sidebar badge (cart count & wishlist count) */
.mys-sidebar-badge {
    display: none;
}

/* Sidebar logo */
.mys-sidebar-brand img {
    height: 26px;
    object-fit: contain;
    max-width: 140px;
}

/* Cart drawer — initial hidden state (JS yang show/hide) */
#mys-cart-drawer-overlay,
#mys-cart-d-empty,
#mys-cart-d-items,
#mys-cart-d-summary,
#mys-cart-d-hemat-row {
    display: none;
}
