/* Rumah Alesha */
:root {
    --navy: #0a2351;
    --navy-2: #12326f;
    --blue: #1e4db7;
    --blue-2: #2a5fd4;
    --blue-100: #e3ecfb;
    --blue-50: #f3f7fe;
    --ink: #0f1b33;
    --slate: #53607a;
    --line: #dbe3f1;
    --white: #ffffff;
    --sand: #efe7da;
    --coral: #c8553d;
    --ok: #1f7a4d;
    --ok-bg: #def3e8;
    --warn: #8a5200;
    --warn-bg: #fff1d1;
    --err: #a3262a;
    --err-bg: #fde4e4;
    --radius: 10px;
    --shadow: 0 1px 2px rgba(10, 35, 81, .06), 0 4px 14px rgba(10, 35, 81, .06);
    --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
    --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family : var(--font); font-size: 15px; line-height: 1.55; color: var(--ink); background: var(--white); }
img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1; margin: 0 0 .5em; color: var(--navy); }
	h1, h2 { font-family: 'Montserrat'(--serif); font-weight: 700; }
p { margin: 0 0 1em; }
code { background: var(--blue-50); padding: 1px 6px; border-radius: 4px; font-size: .9em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 8px 0; }
[hidden] { display: none !important; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--slate); }
.small { font-size: .875rem; }
.center-box { text-align: center; padding: 64px 20px; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.container.narrow, .narrow { max-width: 640px; }
.page-top { padding-top: 28px; padding-bottom: 56px; }
.page-title { font-size: 2rem; margin-bottom: .4em; }
.breadcrumbs { font-size: .875rem; color: var(--slate); margin-bottom: 14px; }
.breadcrumbs a { color: var(--slate); }
.icon { flex: none; vertical-align: middle; }

/* Tombol */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 20px; border-radius: 999px; border: 1.5px solid transparent; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none !important; line-height: 1.2; transition: background .15s, color .15s, border-color .15s; }
.btn:disabled, .btn.disabled { opacity: .5; cursor: not-allowed; pointer-events: none; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--navy-2); }
.btn-outline { background: #fff; color: var(--blue); border-color: var(--blue); }
.btn-outline:hover { background: var(--blue-50); }
.btn-ghost { background: transparent; color: var(--slate); }
.btn-ghost:hover { background: var(--blue-50); }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: var(--blue-100); }
.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .6); }
.btn-ghost-light:hover { background: rgba(255, 255, 255, .12); }
.btn-danger-outline { background: #fff; color: var(--err); border-color: #e3a3a5; }
.btn-danger-outline:hover { background: var(--err-bg); }
.btn-lg { padding: 14px 26px; font-size: 1.02rem; }
.btn-sm { padding: 6px 12px; font-size: .85rem; }
.btn-block { display: flex; width: 100%; }
.icon-btn { background: none; border: 0; padding: 8px; cursor: pointer; color: var(--navy); border-radius: 8px; line-height: 0; }
.icon-btn:hover { background: var(--blue-50); }
.link-btn { background: none; border: 0; padding: 0; color: var(--blue); cursor: pointer; font: inherit; font-size: .9rem; }
.link-btn:hover { text-decoration: underline; }
.link-btn.danger { color: var(--err); }

/* Pesan */
.alert { padding: 12px 16px; border-radius: var(--radius); margin: 12px 0; font-size: .95rem; border: 1px solid transparent; }
.alert-ok { background: var(--ok-bg); color: var(--ok); border-color: #b9e0cb; }
.alert-error { background: var(--err-bg); color: var(--err); border-color: #f3bcbc; }
.alert-warn { background: var(--warn-bg); color: var(--warn); border-color: #f0d9a0; }
.alert-info { background: var(--blue-50); color: var(--navy-2); border-color: var(--blue-100); }

/* Header */
.topbar { background: var(--navy); color: #fff; text-align: center; font-size: .6rem; padding: 7px 16px; letter-spacing: .02em; }
.site-header { position: sticky; top: 0; z-index: 30; background: #fff; border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 22px; min-height: 68px; }
.brand { font-family: var(--arial); font-weight: 700; font-size: 1.2rem; color: var(--navy); text-decoration: none !important; letter-spacing: .01em; }
.brand-light { color: #fff; }
.main-nav { display: flex; gap: 20px; flex: 1; font-size: .95rem; font-weight: 500; overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
.main-nav::-webkit-scrollbar { display: none; }
.main-nav a { color: var(--ink); padding: 6px 0; border-bottom: 2px solid transparent; }
.main-nav a:hover { border-color: var(--blue); text-decoration: none; }
.header-search { display: flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; padding: 0 6px 0 14px; background: var(--blue-50); }
.header-search input { border: 0; background: transparent; outline: none !important; box-shadow: none !important; font: inherit; font-size: .6rem; width: 150px; padding: 8px 0; }
.header-search input:focus,
.header-search input:focus-visible {
    outline: none !important;
    box-shadow: none !important;
}
.header-search button { border: 0; background: none; cursor: pointer; color: var(--navy); padding: 0px; line-height: 0; }
.header-actions { display: flex; align-items: center; gap: 6px; }
.header-link { display: inline-flex; align-items: center; gap: 6px; color: var(--navy); padding: 8px 10px; border-radius: 8px; font-size: .9rem; font-weight: 500; position: relative; }
.header-link:hover { background: var(--blue-50); text-decoration: none; }
.cart-badge { position: absolute; top: 0; right: 0; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--coral); color: #fff; font-size: .7rem; font-weight: 700; display: grid; place-items: center; }
.menu-toggle { display: none; }

/* Hero */
.hero { background: var(--navy); color: #fff; }
.hero-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; padding-top: 48px; padding-bottom: 48px; }
.eyebrow { text-transform: uppercase; letter-spacing: .16em; font-size: .8rem; color: #a9c0f0; margin-bottom: 14px; }
.hero h1 { color: #fff; font-size: clamp(2.2rem, 5vw, 3.6rem); margin-bottom: .35em; }
.hero .lead { font-size: 1.15rem; color: #d3def5; max-width: 34ch; margin-bottom: 1.6em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-art img, .hero-block { width: 100%; aspect-ratio: 4 / 5; max-height: 520px; object-fit: cover; border-radius: 18px; margin-left: auto; }
.hero-block { background: var(--blue); display: grid; place-items: center; }
.hero-block span { font-family: var(--serif); font-size: clamp(6rem, 18vw, 11rem); color: var(--sand); font-weight: 700; }

.perks { border-bottom: 1px solid var(--line); background: #fff; }
.perks-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; padding-top: 20px; padding-bottom: 20px; }
.perk { display: flex; gap: 14px; align-items: center; color: var(--blue); }
.perk strong { display: block; color: var(--navy); font-size: .98rem; }
.perk span { color: var(--slate); font-size: .86rem; }

.section { padding: 48px 0; }
.section-tint { background: var(--blue-50); }
.section-title { font-size: 1.2rem; margin-bottom: 18px; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 4px; gap: 12px; }
.section-head .section-title { margin-bottom: 18px; }

.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
.cat-tile { background: var(--blue-100); border-radius: var(--radius); padding: 22px 18px; display: flex; flex-direction: column; gap: 4px; color: var(--navy); transition: background .15s, transform .15s; }
.cat-tile:hover { background: var(--blue); color: #fff; text-decoration: none; transform: translateY(-2px); }
.cat-tile:hover .cat-count { color: #cfdcf8; }
.cat-name { font-family: var(--aria); font-size: 1rem; font-weight: 600; }
.cat-count { font-size: .82rem; color: var(--slate); }

/* Kartu produk */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px 18px; }
.card { display: block; color: inherit; }
.card:hover { text-decoration: none; }
.card-img { position: relative; aspect-ratio: 4 / 5; background: var(--blue-50); border-radius: var(--radius); overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.product-card:hover .card-img img { transform: scale(1.04); }
.img-ph { width: 100%; height: 100%; background: var(--blue-100); display: grid; place-items: center; }
.img-ph span { font-family: var(--serif); font-size: 2.6rem; font-weight: 700; color: var(--blue); }
.img-ph.big { aspect-ratio: 4 / 5; }
.img-ph.big span { font-size: 6rem; }
.img-ph.small span { font-size: 1.1rem; }
.card-tags { position: absolute; top: 10px; left: 10px; display: flex; gap: 6px; }
.tag { display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: .72rem; font-weight: 700; color: #fff; }
.tag-sale { background: var(--coral); }
.tag-dark { background: var(--navy); }
.card-body { padding: 12px 2px 0; }
.card-cat { font-size: .74rem; text-transform: uppercase; letter-spacing: .1em; color: var(--slate); margin-bottom: 2px; }
.card-body h3 { font-family: var(--font); font-size: .98rem; font-weight: 600; margin-bottom: 4px; color: var(--ink); }
.price { font-weight: 700; color: var(--navy); }
.price s { color: var(--slate); font-weight: 400; font-size: .88em; margin-left: 6px; }
.price-lg { font-size: 1.5rem; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }

.filter-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin: 6px 0 14px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.filter-bar .chips { margin-bottom: 0; }
.chip { padding: 7px 16px; border-radius: 999px; border: 1.5px solid var(--line); color: var(--ink); font-size: .9rem; background: #fff; font-weight: 500; }
.chip:hover { border-color: var(--blue); text-decoration: none; }
.chip.active { background: var(--navy); color: #fff; border-color: var(--navy); }
.chip small { opacity: .7; }
.result-count { margin-bottom: 14px; }
.empty-state { text-align: center; padding: 56px 16px; background: var(--blue-50); border-radius: var(--radius); }
.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 32px; flex-wrap: wrap; }
.pagination a, .pagination span { min-width: 38px; height: 38px; display: grid; place-items: center; border-radius: 8px; border: 1px solid var(--line); color: var(--ink); font-size: .9rem; }
.pagination a:hover { border-color: var(--blue); text-decoration: none; }
.pagination .current { background: var(--blue); color: #fff; border-color: var(--blue); }

/* Detail produk */
.product-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; margin-bottom: 56px; }
.gallery-main { border-radius: var(--radius); overflow: hidden; background: var(--blue-50); aspect-ratio: 4 / 5; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-top: 8px; }
.thumb { border: 2px solid transparent; padding: 0; border-radius: 8px; overflow: hidden; cursor: pointer; background: var(--blue-50); aspect-ratio: 1; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.active { border-color: var(--blue); }
.product-info h1 { font-size: 2rem; }
.size-picker { border: 0; padding: 0; margin: 0 0 18px; }
.size-picker legend { font-weight: 600; margin-bottom: 8px; padding: 0; }
.size-options { display: flex; gap: 8px; flex-wrap: wrap; }
.size-opt { position: relative; }
.size-opt input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.size-opt span { display: grid; place-items: center; min-width: 52px; height: 46px; padding: 0 14px; border: 1.5px solid var(--line); border-radius: 10px; font-weight: 600; background: #fff; }
.size-opt input:checked + span { background: var(--navy); color: #fff; border-color: var(--navy); }
.size-opt input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }
.size-opt.disabled span { color: #a7b0c3; background: var(--blue-50); text-decoration: line-through; }
.size-opt.disabled input { cursor: not-allowed; }
.qty-row { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.qty-row label { font-weight: 600; }
.qty-box { display: inline-flex; border: 1.5px solid var(--line); border-radius: 999px; overflow: hidden; background: #fff; }
.qty-box button { width: 40px; border: 0; background: none; font-size: 1.2rem; cursor: pointer; color: var(--navy); }
.qty-box button:hover { background: var(--blue-50); }
.qty-box input { width: 54px; text-align: center; border: 0; font: inherit; font-weight: 600; background: transparent; -moz-appearance: textfield; padding: 8px 0; }
.qty-box input::-webkit-outer-spin-button, .qty-box input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.buy-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.buy-actions .btn { flex: 1 1 200px; }
.desc { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }
.desc h2 { font-size: 1.2rem; }
.facts { list-style: none; padding: 0; margin: 18px 0 0; color: var(--slate); font-size: .92rem; display: grid; gap: 8px; }
.facts li { display: flex; gap: 8px; align-items: center; }

/* Formulir */
label { display: block; font-size: .9rem; font-weight: 500; color: var(--ink); }
input, select, textarea { font: inherit; color: var(--ink); }
label input:not([type=checkbox]):not([type=radio]):not([type=file]), label select, label textarea, .inline-form input, .inline-search input, .inline-search select, .cat-row input, .rates-table input:not([type=checkbox]), .rates-table select {
    display: block; width: 100%; margin-top: 6px; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 8px; background: #fff; font-size: .95rem;
}
input[type=file] { display: block; margin-top: 6px; font-size: .9rem; max-width: 100%; }
label input:focus, label select:focus, label textarea:focus, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--blue-2); outline-offset: 1px; border-color: var(--blue-2); }
.form-stack { display: grid; gap: 14px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.check { display: flex; align-items: center; gap: 10px; font-weight: 400; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--blue); }
.check.danger { color: var(--err); }

.inline-form { display: flex; gap: 10px; align-items: flex-end; margin-top: 12px; flex-wrap: wrap; }
.inline-form label { flex: 1 1 220px; }
.inline-search { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.inline-search input[type=search] { flex: 1 1 240px; margin: 0; }
.inline-search select { width: auto; margin: 0; }
.narrow-input { width: 110px !important; }

/* Panel */
.panel { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 22px; margin-bottom: 18px; }
.panel h2 { font-size: 1.25rem; margin-bottom: 14px; }
.panel h3 { font-size: 1.05rem; font-family: var(--font); }
.panel-accent { background: var(--blue-50); border-color: var(--blue-100); }
.pad { padding: 20px; margin: 0; }

/* Keranjang dan checkout */
.cart-layout, .checkout-layout { display: grid; grid-template-columns: 1fr 360px; gap: 28px; align-items: start; }
.cart-list { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 8px 20px; }
.cart-item { display: grid; grid-template-columns: 76px 1fr auto 110px 40px; gap: 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.cart-thumb { width: 76px; aspect-ratio: 4 / 5; border-radius: 8px; overflow: hidden; background: var(--blue-50); }
.cart-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-name { font-weight: 600; color: var(--ink); }
.cart-line { text-align: right; font-weight: 700; color: var(--navy); }
.cart-actions { padding: 16px 0 10px; }
.has-issue { background: var(--warn-bg); margin: 0 -20px; padding-left: 20px; padding-right: 20px; }
.issue { color: var(--err); font-size: .85rem; font-weight: 600; }
.summary-box { background: var(--blue-50); border: 1px solid var(--blue-100); border-radius: 14px; padding: 22px; }
.summary-box.sticky { position: sticky; top: 90px; }
.summary-box h2 { font-size: 1.2rem; }
.sum-row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; }
.sum-row.total { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 14px; font-size: 1.15rem; color: var(--navy); }
.mini-items { list-style: none; padding: 0; margin: 0 0 12px; font-size: .92rem; }
.mini-items li { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px dashed var(--line); }
.addr-list, .pay-list { display: grid; gap: 10px; margin-bottom: 14px; }
.addr-card, .pay-card, .ship-card { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 12px; cursor: pointer; background: #fff; font-weight: 400; }
.addr-card:hover, .pay-card:hover, .ship-card:hover { border-color: var(--blue); }
.addr-card:has(input:checked), .pay-card:has(input:checked), .ship-card:has(input:checked) { border-color: var(--blue); background: var(--blue-50); }
.addr-card input, .pay-card input, .ship-card input { margin-top: 4px; accent-color: var(--blue); }
.ship-card { align-items: center; margin-bottom: 10px; }
.ship-price { margin-left: auto; font-weight: 700; color: var(--navy); }

/* Pesanan */
.order-list { display: grid; gap: 12px; }
.order-card { display: block; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; color: inherit; }
.order-card:hover { border-color: var(--blue); text-decoration: none; }
.order-card-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.order-card-body { display: flex; justify-content: space-between; gap: 12px; margin-top: 10px; }
.order-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 18px; }
.order-layout { display: grid; grid-template-columns: 1fr 340px; gap: 24px; align-items: start; }
.line-item { display: grid; grid-template-columns: 60px 1fr auto; gap: 14px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.line-thumb { width: 60px; aspect-ratio: 4 / 5; border-radius: 6px; overflow: hidden; background: var(--blue-50); }
.line-thumb img { width: 100%; height: 100%; object-fit: cover; }
.line-total { font-weight: 700; }
.totals { margin-top: 12px; }
.bank-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin: 14px 0; }
.bank-card { background: #fff; border: 1px solid var(--blue-100); border-radius: 12px; padding: 14px 16px; }
.bank-name { font-weight: 700; color: var(--navy); }
.bank-no { font-size: 1.25rem; font-weight: 700; letter-spacing: .04em; color: var(--blue); }
.resi-box { background: var(--blue-50); border: 1px dashed var(--blue); border-radius: 12px; padding: 14px 16px; display: grid; gap: 2px; margin: 12px 0; }
.resi-box strong { font-size: 1.25rem; color: var(--navy); }
.timeline { list-style: none; margin: 0; padding: 0 0 0 18px; border-left: 2px solid var(--blue-100); display: grid; gap: 14px; }
.timeline li { position: relative; }
.timeline li::before { content: ''; position: absolute; left: -24px; top: 6px; width: 10px; height: 10px; border-radius: 50%; background: var(--blue); }
.badge { display: inline-block; padding: 3px 11px; border-radius: 999px; font-size: .78rem; font-weight: 600; white-space: nowrap; }
.badge-warn { background: var(--warn-bg); color: var(--warn); }
.badge-info { background: #dbe9ff; color: #1b4a9c; }
.badge-blue { background: var(--blue-100); color: var(--blue); }
.badge-ok { background: var(--ok-bg); color: var(--ok); }
.badge-off { background: #e8ebf1; color: #5b657a; }
.proof-img { max-width: 360px; width: 100%; border-radius: 10px; border: 1px solid var(--line); margin-bottom: 10px; }

/* Akun */
.account-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.addr-item { display: flex; justify-content: space-between; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.addr-actions { display: grid; gap: 6px; justify-items: end; white-space: nowrap; }
.prose { font-size: 1.05rem; color: #26334f; margin-bottom: 28px; }

/* Footer */
.site-footer { background: var(--navy); color: #c9d6f3; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.3fr 1fr; gap: 32px; padding-top: 48px; padding-bottom: 36px; }
	.footer-grid > div:first-child p { font-size: .8rem; line-height: 1.6; }
.site-footer h4 { color: #fff; font-family: var(--font); font-size: .80rem; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 1px; font-size: .70rem; }
.site-footer a { color: #c9d6f3; }
.site-footer a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .14); padding: 16px 0; font-size: .60rem; color: #93a8d6; }
.wa-float { position: fixed; right: 18px; bottom: 18px; width: 54px; height: 54px; border-radius: 50%; background: #1fa855; color: #fff; display: grid; place-items: center; box-shadow: 0 6px 18px rgba(0, 0, 0, .25); z-index: 40; }
.wa-float:hover { background: #178a45; }

/* Pemasang */
.install-body { background: var(--blue-50); }
.install-wrap { max-width: 720px; margin: 0 auto; padding: 32px 16px 64px; }
.install-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 28px; box-shadow: var(--shadow); }
.install-card h2 { font-size: 1.15rem; margin: 22px 0 10px; font-family: var(--font); font-weight: 700; }
.install-next { padding-left: 20px; }
.checklist { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 4px; font-size: .92rem; }
.checklist .ok { color: var(--ok); }
.checklist .bad { color: var(--err); font-weight: 600; }
.checklist .warn { color: var(--warn); }

/* Admin */
.admin-body { background: #f3f6fb; }
.admin-shell { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.admin-side { background: var(--navy); color: #fff; display: flex; flex-direction: column; padding: 22px 14px; position: sticky; top: 0; height: 100vh; }
.admin-brand { font-family: var(--serif); font-size: 1.35rem; font-weight: 700; padding: 0 10px 18px; display: grid; }
.admin-brand small { font-family: var(--font); font-weight: 400; font-size: .75rem; color: #9fb4e2; letter-spacing: .08em; text-transform: uppercase; }
.admin-side nav, .admin-side-foot { display: grid; gap: 2px; }
.admin-side a { display: flex; align-items: center; gap: 10px; color: #d3def5; padding: 10px 12px; border-radius: 8px; font-size: .93rem; font-weight: 500; }
.admin-side a:hover { background: rgba(255, 255, 255, .08); text-decoration: none; }
.admin-side a.active { background: var(--blue); color: #fff; }
.admin-side-foot { margin-top: auto; border-top: 1px solid rgba(255, 255, 255, .14); padding-top: 12px; }
.admin-main { min-width: 0; }
.admin-top { display: flex; align-items: center; gap: 10px; padding: 20px 28px 0; }
.admin-top h1 { font-size: 1.4rem; margin: 0; }
.admin-content { padding: 18px 28px 56px; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 14px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; display: grid; gap: 2px; color: var(--ink); }
a.stat:hover { border-color: var(--blue); text-decoration: none; }
.stat span { color: var(--slate); font-size: .85rem; }
.stat strong { font-size: 1.6rem; color: var(--navy); font-family: var(--serif); }
.stat small { color: var(--slate); }
.stat-alert { border-color: var(--coral); background: #fff7f4; }
.stat-alert strong { color: var(--coral); }
.admin-two { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
.admin-two.wide-left { grid-template-columns: 1.6fr 1fr; }
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th { text-align: left; font-size: .76rem; text-transform: uppercase; letter-spacing: .06em; color: var(--slate); padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table-panel { padding: 0; overflow: hidden; }
.table .actions { text-align: right; white-space: nowrap; }
.table .actions form, .table .actions a { display: inline-block; margin-left: 10px; }
.toolbar { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: flex-start; }
.row-product { display: flex; gap: 12px; align-items: center; }
.mini-thumb { width: 44px; aspect-ratio: 4 / 5; border-radius: 6px; overflow: hidden; background: var(--blue-100); display: grid; place-items: center; flex: none; }
.mini-thumb img { width: 100%; height: 100%; object-fit: cover; }
.mini-thumb span { font-family: var(--serif); font-weight: 700; color: var(--blue); font-size: .85rem; }
.plain-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.variant-table { display: grid; gap: 8px; margin-bottom: 12px; }
.variant-head, .variant-row { display: grid; grid-template-columns: 1fr 110px 40px; gap: 10px; align-items: center; }
.variant-head { font-size: .78rem; color: var(--slate); text-transform: uppercase; letter-spacing: .06em; }
.variant-row input:not([type=hidden]) { width: 100%; padding: 9px 12px; border: 1.5px solid var(--line); border-radius: 8px; font-size: .95rem; }
.img-manage { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 12px; margin-bottom: 14px; }
.img-tile { border: 1px solid var(--line); border-radius: 10px; padding: 8px; display: grid; gap: 6px; font-size: .85rem; }
.img-tile img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 6px; }
.cat-row { display: grid; grid-template-columns: 1fr 90px auto auto auto; gap: 10px; align-items: center; margin-bottom: 10px; }
.cat-row input { margin: 0; }
.rates-table input:not([type=checkbox]), .rates-table select { margin: 0; padding: 7px 9px; font-size: .88rem; min-width: 90px; }
.hero-preview { display: grid; gap: 8px; max-width: 220px; }
.hero-preview img { border-radius: 10px; }

/* Responsif */
@media (max-width: 1000px) {
    .product-grid { grid-template-columns: repeat(3, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .admin-two, .admin-two.wide-left { grid-template-columns: 1fr; }
    .stat-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
    .header-inner { gap: 10px; flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; }
    .menu-toggle { display: inline-block; order: 0; }
    .brand { order: 1; flex: 1; font-size: 1.4rem; }
    .header-actions { order: 2; }
    .header-link span:not(.cart-badge):not(.avatar) { display: none; }
    .header-search { order: 3; width: 100%; }
    .header-search input { width: 100%; flex: 1; }
    .main-nav { order: 4; width: 100%; flex: none; display: none; flex-direction: column; gap: 0; padding: 4px 0 8px; }
    .main-nav.open { display: flex; }
    .main-nav a { padding: 12px 4px; border-bottom: 1px solid var(--line); }
    .hero-inner { grid-template-columns: 1fr; padding-top: 32px; padding-bottom: 32px; }
    .hero-art { order: -1; }
    .hero-art img, .hero-block { max-height: 300px; aspect-ratio: 16 / 10; }
    .perks-grid { grid-template-columns: 1fr; gap: 12px; }
    .product-layout { grid-template-columns: 1fr; gap: 24px; }
    .cart-layout, .checkout-layout, .order-layout, .account-grid { grid-template-columns: 1fr; }
    .summary-box.sticky { position: static; }
    .cart-item { grid-template-columns: 64px 1fr; grid-template-areas: 'thumb info' 'qty line'; }
    .cart-item .cart-thumb { grid-area: thumb; width: 64px; }
    .cart-item .cart-info { grid-area: info; }
    .cart-item .qty-box { grid-area: qty; justify-self: start; }
    .cart-item .cart-line { grid-area: line; }
    .cart-item .icon-btn { position: absolute; right: 0; }
    .cart-item { position: relative; }
    /* menu admin */
    .admin-shell { grid-template-columns: 1fr; }
    .admin-side { position: fixed; z-index: 50; inset: 0 auto 0 0; width: 250px; transform: translateX(-100%); transition: transform .2s; }
    .admin-side.open { transform: none; }
    .admin-top .menu-toggle { display: inline-block; }
    .admin-top, .admin-content { padding-left: 16px; padding-right: 16px; }
}
@media (min-width: 901px) {
    .admin-top .menu-toggle { display: none; }
}
@media (max-width: 640px) {
    .product-grid { grid-template-columns: repeat(2, 1fr); gap: 16px 12px; }
    .grid-2, .grid-3 { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 22px; }
    .page-title { font-size: 1.6rem; }
    .stat-grid { grid-template-columns: 1fr 1fr; }
    .cat-row { grid-template-columns: 1fr 80px; }
    .panel { padding: 16px; }
    .order-head { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; animation: none !important; }
}
@media print {
    .site-header, .topbar, .site-footer, .wa-float, .admin-side, .admin-top .menu-toggle { display: none !important; }
}

.text-danger { color: #b3261e; }
.text-ok { color: #1b7a3e; }
[data-photo-preview]:not(:empty) { margin-top: 12px; }

/* Traffic admin */
.stat-grid-3 { grid-template-columns: repeat(3, 1fr); }
.bar-chart { width: 100%; height: auto; display: block; }
.bar-table progress { display: block; width: 100%; height: 6px; margin-top: 6px; appearance: none; -webkit-appearance: none; border: 0; border-radius: 4px; background: var(--blue-50); overflow: hidden; }
.bar-table progress::-webkit-progress-bar { background: var(--blue-50); border-radius: 4px; }
.bar-table progress::-webkit-progress-value { background: var(--blue); border-radius: 4px; }
.bar-table progress::-moz-progress-bar { background: var(--blue); border-radius: 4px; }
.pad-top { padding: 22px 22px 0; margin: 0; }
@media (max-width: 720px) { .stat-grid-3 { grid-template-columns: 1fr; } }

/* Tombol Google */
.btn-google { background: #fff; color: #1f1f1f; border: 1.5px solid var(--line); display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-weight: 600; }
.btn-google:hover { border-color: var(--blue); text-decoration: none; }
.or-divider { display: flex; align-items: center; gap: 12px; color: var(--slate); font-size: .85rem; margin: 16px 0; }
.or-divider::before, .or-divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }

/* Flash sale */
:root { --flash: #e11d48; }
.section-flash { background: #fff1f3; }
.section-flash .section-title { color: var(--flash); display: flex; align-items: center; gap: 8px; }
.flash-pill { display: inline-flex; align-items: center; gap: 4px; margin-top: 6px; padding: 3px 9px; border-radius: 6px; background: var(--flash); color: #fff; font-size: .74rem; font-weight: 700; }
.flash-pill .icon { fill: #fff; stroke: #fff; }
.countdown { font-variant-numeric: tabular-nums; }
.price-flash { color: var(--flash); }
.flash-banner { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; background: var(--flash); color: #fff; border-radius: 12px; padding: 14px 18px; margin: 4px 0 18px; }
.flash-price { font-size: 1.7rem; font-weight: 800; line-height: 1.1; }
.flash-old { font-size: .9rem; opacity: .9; }
.flash-pct { background: #fff; color: var(--flash); border-radius: 6px; padding: 1px 7px; font-weight: 700; font-size: .78rem; margin-left: 6px; }
.flash-time { text-align: right; display: grid; gap: 4px; }
.flash-label { font-weight: 800; letter-spacing: .12em; font-size: .8rem; display: inline-flex; gap: 4px; align-items: center; justify-content: flex-end; }
.flash-label .icon { fill: #fff; stroke: #fff; }
.flash-left { background: rgba(0, 0, 0, .22); border-radius: 6px; padding: 3px 10px; font-size: .85rem; }
.chip-flash { display: inline-flex; align-items: center; gap: 4px; border-color: var(--flash); color: var(--flash); }
.chip-flash.active { background: var(--flash); color: #fff; border-color: var(--flash); }
.chip-flash.active .icon { stroke: #fff; }
.badge-flash { background: #ffe0e6; color: var(--flash); }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; }
.mini-row { display: flex; align-items: center; gap: 10px; }

/* Favorit */
.product-card { position: relative; }
.card-link { display: block; color: inherit; text-decoration: none; }
.fav-btn { position: absolute; top: 10px; right: 10px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: #fff; color: var(--slate); display: grid; place-items: center; cursor: pointer; box-shadow: 0 1px 4px rgba(10, 30, 80, .18); z-index: 2; padding: 0; }
.fav-btn .icon { fill: none; stroke: currentColor; stroke-width: 1.8; }
.fav-btn:hover { color: var(--flash); }
.fav-btn.is-on { color: var(--flash); }
.fav-btn.is-on .icon { fill: var(--flash); stroke: var(--flash); }
.fav-btn:disabled { opacity: .6; }
.fav-lg { position: static; flex: none; box-shadow: none; border: 1.5px solid var(--line); width: 44px; height: 44px; }
.title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.title-row h1 { margin-bottom: 8px; }

/* Bintang dan ulasan */
.stars { --v: 0; display: inline-block; font-size: 1em; letter-spacing: 1px; line-height: 1; background: linear-gradient(90deg, #f5a623 calc(var(--v) / 5 * 100%), #d5dbe8 calc(var(--v) / 5 * 100%)); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.card-rating { font-size: .8rem; color: var(--slate); display: flex; align-items: center; gap: 5px; margin-bottom: 4px; }
.rating-line { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 12px; color: var(--ink); text-decoration: none; }
.rating-line span { color: var(--slate); }
.reviews { margin: 48px 0 16px; scroll-margin-top: 90px; }
.review-summary { display: flex; gap: 32px; align-items: center; flex-wrap: wrap; margin-bottom: 20px; }
.review-avg { display: grid; justify-items: start; gap: 2px; }
.review-avg strong { font-size: 2.6rem; font-family: var(--serif); color: var(--navy); line-height: 1; }
.review-avg span, .review-avg small { color: var(--slate); font-size: .85rem; }
.review-dist { flex: 1; min-width: 220px; max-width: 420px; display: grid; gap: 6px; }
.dist-row { display: grid; grid-template-columns: 36px 1fr 28px; gap: 8px; align-items: center; font-size: .85rem; color: var(--slate); }
.dist-row progress, .review-dist progress { width: 100%; height: 8px; appearance: none; -webkit-appearance: none; border: 0; border-radius: 4px; background: var(--blue-50); overflow: hidden; }
.dist-row progress::-webkit-progress-bar { background: var(--blue-50); }
.dist-row progress::-webkit-progress-value { background: #f5a623; }
.dist-row progress::-moz-progress-bar { background: #f5a623; }
.review-list { list-style: none; padding: 0; margin: 0 0 16px; display: grid; }
.review-list li { padding: 16px 0; border-bottom: 1px solid var(--line); }
.review-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.review-list p { margin: 0; }
.review-form { max-width: 560px; margin-bottom: 22px; }
.star-input { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; }
.star-input input { position: absolute; opacity: 0; pointer-events: none; }
.star-input label { font-size: 2rem; line-height: 1; color: #d5dbe8; cursor: pointer; }
.star-input input:checked ~ label, .star-input label:hover, .star-input label:hover ~ label { color: #f5a623; }
.star-input input:focus-visible + label { outline: 2px solid var(--blue); border-radius: 4px; }
.review-cell { max-width: 360px; }

.flash-summary { background: #eef4ff; border: 1px solid #cfe0ff; border-radius: 8px; padding: 10px 12px; font-size: 14px; line-height: 1.6; margin: 0; }
.chips .muted { align-self: center; }

/* ---------- Pop-up Masuk / Daftar ---------- */
[hidden] { display: none !important; }
/* Pop-up Masuk / Daftar. Ukuran kotak: ubah "width" pada .auth-card (sekarang 760px). */
body.auth-open { overflow: hidden; }
.auth-modal { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 16px; }
.auth-backdrop { position: absolute; inset: 0; background: rgba(8, 20, 50, .62); backdrop-filter: blur(3px); }
.auth-card { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); width: min(760px, 100%); max-height: calc(100vh - 32px); background: #fff; border-radius: 20px; overflow: hidden; box-shadow: 0 30px 80px rgba(0, 0, 0, .35); animation: auth-in .22s ease-out; }
@keyframes auth-in { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
.auth-close { position: absolute; top: 12px; right: 12px; z-index: 2; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, .9); color: #0a2351; }
.auth-close:hover { background: var(--blue-100); }
.auth-main { padding: 24px 30px 22px; overflow-y: auto; }
.auth-tabs { display: inline-flex; gap: 4px; padding: 4px; background: var(--blue-50); border-radius: 999px; margin-bottom: 14px; }
.auth-tabs a { padding: 6px 18px; border-radius: 999px; font-weight: 600; font-size: .9rem; color: #3b4a6b; }
.auth-tabs a.is-active { background: var(--blue); color: #fff; box-shadow: 0 2px 8px rgba(30, 77, 183, .35); }
      .auth-title { font-family: 'Inter', sans-serif; font-size: 1rem; font-weight: 700; letter-spacing: -0.01em; margin: 0 0 4px; color: #0a2351; }
.auth-pane > .muted { margin: 0 0 12px; font-size: .80rem; }
.auth-pane .alert { margin: 8px 0; }
.auth-pane .btn-google { margin-bottom: 0; }
.auth-compact { gap: 10px; }
.auth-compact label { font-size: .88rem; }
.auth-modal .form-stack { gap: 10px; }
.auth-modal label { font-size: .88rem; }
.auth-modal label input:not([type=checkbox]):not([type=radio]) { margin-top: 4px; padding: 8px 11px; font-size: .92rem; }
.auth-modal .btn { padding: 9px 18px; font-size: .92rem; }
.auth-modal .btn-block { margin-top: 2px; }
.auth-switch { text-align: center; margin: 12px 0 0; font-size: .88rem; color: #55627d; }
.auth-switch a { font-weight: 600; }
.auth-side { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 28px 24px; text-align: center; color: #fff; background: radial-gradient(circle at 25% 20%, #3b6fe0 0%, #1e4db7 45%, #0a2351 100%); }
.auth-logo { width: 100%; display: flex; align-items: center; justify-content: center; }
.auth-logo img { max-width: 68%; max-height: 180px; object-fit: contain; background: none; padding: 0; border-radius: 0; box-shadow: none; filter: drop-shadow(0 8px 18px rgba(0, 0, 0, .35)); }
.auth-logo-text { font-family: 'Playfair Display', serif; font-size: 2.2rem; font-weight: 700; line-height: 1.15; }
.auth-tagline { margin: 0; opacity: .9; font-size: .92rem; }
.auth-perks { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 10px; font-size: .9rem; text-align: left; }
.auth-perks li { display: flex; align-items: center; gap: 8px; opacity: .92; }
.auth-perks svg { flex: none; }
@media (max-width: 760px) {
    .auth-card { grid-template-columns: 1fr; }
    .auth-side { order: -1; flex-direction: row; justify-content: flex-start; gap: 12px; padding: 14px 56px 14px 18px; text-align: left; }
    .auth-logo { width: auto; }
    .auth-logo img { max-width: 56px; max-height: 56px; }
    .auth-logo-text { font-size: 1.3rem; }
    .auth-tagline { font-size: .85rem; }
    .auth-perks { display: none; }
    .auth-main { padding: 20px 18px 18px; }
    .auth-close { background: rgba(255, 255, 255, .95); }
}
/* Logo di pengaturan admin */
.logo-field { display: grid; grid-template-columns: 140px 1fr; gap: 16px; align-items: center; }
.logo-preview { height: 120px; display: grid; place-items: center; background: var(--blue-50); border: 1px dashed var(--blue-100); border-radius: 12px; overflow: hidden; }
.logo-preview img { max-width: 100%; max-height: 100%; object-fit: contain; }
@media (max-width: 560px) { .logo-field { grid-template-columns: 1fr; } }

.pw-field { position: relative; display: block; }
.pw-field input { width: 100%; padding-right: 64px; }
.pw-toggle { position: absolute; top: 50%; right: 8px; transform: translateY(-50%); background: none; border: 0; color: var(--blue); font: inherit; font-size: .85rem; font-weight: 600; cursor: pointer; padding: 6px 8px; border-radius: 6px; }
.pw-toggle:hover { background: var(--blue-50); }

/* Promo gratis ongkir */
.ship-price { text-align: right; font-weight: 700; white-space: nowrap; }
.ship-price.is-free { color: var(--ok); }
.ship-old { color: var(--slate); font-weight: 400; font-size: .85rem; }
.ship-saved { color: var(--ok); font-weight: 600; font-size: .78rem; }
.fs-note { display: flex; align-items: center; gap: 8px; background: var(--ok-bg); color: var(--ok); border: 1px solid #b9e0cb; border-radius: var(--radius); padding: 9px 12px; font-size: .9rem; margin: 10px 0; }
.fs-note svg { flex: none; }
.fs-bar { height: 6px; background: #cfe9da; border-radius: 99px; overflow: hidden; margin-top: 6px; }
.fs-bar > span { display: block; height: 100%; background: var(--ok); }
.fs-note.is-progress { display: block; background: var(--blue-50); color: var(--ink); border-color: var(--blue-100); }
.fs-note.is-progress .fs-bar { background: var(--blue-100); }
.fs-note.is-progress .fs-bar > span { background: var(--blue); }
.topbar .fs-top { opacity: .95; }

/* Menu akun di header */
.user-menu { position: relative; }
.user-menu > .header-link { background: none; border: 0; cursor: pointer; font-family: inherit; }
.user-menu > .header-link svg:last-of-type { opacity: .6; }
.user-menu .user-dot { top: 2px; right: 2px; }
.user-dropdown { position: absolute; right: 0; top: calc(100% + 8px); min-width: 250px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 32px rgba(10, 35, 81, .18); padding: 6px; z-index: 80; }
.user-dropdown-head { display: flex; align-items: center; gap: 10px; padding: 10px 12px 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; overflow: hidden; }
.user-dropdown-id { display: grid; min-width: 0; }
.user-dropdown-head strong { color: var(--navy); }
.user-dropdown-head span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-dropdown a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 8px; color: var(--ink); font-size: .95rem; font-weight: 500; }
.user-dropdown a:hover { background: var(--blue-50); text-decoration: none; }
.user-dropdown a.is-logout { color: var(--err); border-top: 1px solid var(--line); border-radius: 0 0 8px 8px; margin-top: 6px; padding-top: 12px; }
.user-dropdown a.is-logout:hover { background: var(--err-bg); }
.menu-badge { margin-left: auto; font-style: normal; min-width: 22px; padding: 1px 7px; border-radius: 999px; background: var(--blue-100); color: var(--blue); font-size: .75rem; font-weight: 700; text-align: center; }
@media (max-width: 760px) { .user-dropdown { position: fixed; left: 12px; right: 12px; top: 64px; min-width: 0; } }

/* Foto profil (avatar) */
.avatar { display: grid; place-items: center; flex: none; border-radius: 50%; overflow: hidden; background: var(--navy); color: #fff; font-family: var(--serif); font-weight: 600; line-height: 1; user-select: none; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-sm { width: 28px; height: 28px; font-size: .8rem; box-shadow: 0 0 0 1.5px var(--line); }
.avatar-md { width: 40px; height: 40px; font-size: 1rem; }
.avatar-xl { width: 132px; height: 132px; font-size: 2.6rem; box-shadow: 0 0 0 4px #fff, 0 0 0 5px var(--blue-100); }

/* Halaman akun: kartu profil */
.profile-card { display: grid; grid-template-columns: 200px minmax(0, 1fr); padding: 0; overflow: hidden; }
.profile-side { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 32px 18px; text-align: center; background: var(--blue-50); border-right: 1px solid var(--blue-100); }
.avatar-wrap { position: relative; }
.avatar-cam { position: absolute; right: 0; bottom: 4px; width: 38px; height: 38px; display: grid; place-items: center; border: 3px solid var(--blue-50); border-radius: 50%; background: var(--blue); color: #fff; cursor: pointer; transition: background .15s; }
.avatar-cam:hover { background: var(--navy-2); }
.profile-hint { margin: 0; max-width: 170px; }
.profile-main { padding: 24px 24px 26px; }
.profile-main h2 { font-size: 1.25rem; margin-bottom: 6px; }
.profile-table { width: 100%; border-collapse: collapse; }
.profile-table th, .profile-table td { padding: 12px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; font-size: .95rem; }
.profile-table th { width: 36%; padding-right: 16px; font-weight: 500; color: var(--slate); }
.profile-table td { font-weight: 500; overflow-wrap: anywhere; }
.profile-table tr:last-child th, .profile-table tr:last-child td { border-bottom: 0; }
.profile-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.addr-add { margin-top: 16px; }

/* Pop-up umum (profil, kata sandi, foto, alamat) */
body.modal-open { overflow: hidden; }
.modal { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 16px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(8, 20, 50, .62); backdrop-filter: blur(3px); }
.modal-card { position: relative; display: flex; flex-direction: column; width: min(540px, 100%); max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); background: #fff; border-radius: 20px; overflow: hidden; box-shadow: 0 30px 80px rgba(0, 0, 0, .35); animation: auth-in .22s ease-out; }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px 14px 26px; border-bottom: 1px solid var(--line); }
.modal-head h2 { margin: 0; font-size: 1.35rem; }
.modal-x { display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--blue-50); color: var(--navy); cursor: pointer; }
.modal-x:hover { background: var(--blue-100); }
.modal-body { padding: 20px 26px 24px; overflow-y: auto; }
.modal-body .alert { margin-top: 0; }
.modal-lead { margin: 0 0 14px; }
.modal label input:disabled { background: var(--blue-50); color: var(--slate); cursor: not-allowed; }
.modal-note { margin: -6px 0 0; }
.modal-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; margin-top: 4px; }
.avatar-pick { display: grid; justify-items: center; gap: 14px; text-align: center; }
.avatar-pick p { margin: 0; max-width: 320px; }
.file-pick { position: relative; cursor: pointer; }
.file-pick:focus-within { outline: 2px solid var(--blue-2); outline-offset: 2px; }
.avatar-remove { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); text-align: center; }

@media (max-width: 760px) {
    .profile-card { grid-template-columns: 1fr; }
    .profile-side { padding: 26px 18px 22px; border-right: 0; border-bottom: 1px solid var(--blue-100); }
    .profile-main { padding: 20px 18px 22px; }
}
@media (max-width: 480px) {
    .profile-table th, .profile-table td { display: block; width: auto; padding: 0; border: 0; }
    .profile-table th { padding-top: 12px; font-size: .85rem; }
    .profile-table td { padding-bottom: 12px; border-bottom: 1px solid var(--line); }
    .profile-table tr:last-child td { border-bottom: 0; }
    .profile-actions .btn { flex: 1 1 100%; }
}
@media (max-width: 560px) {
    .modal { align-items: flex-end; padding: 0; }
    .modal-card { width: 100%; max-height: 92vh; max-height: 92dvh; border-radius: 20px 20px 0 0; }
    .modal-head { padding-left: 20px; }
    .modal-body { padding: 18px 20px 22px; }
    .modal-actions .btn { flex: 1 1 auto; }
}
.sum-row.sum-disc, .sum-row.sum-disc strong { color: #0e8a4f; }

/* ---------- Profil Saya ---------- */
.avatar { display: inline-grid; place-items: center; border-radius: 50%; overflow: hidden; background: linear-gradient(135deg, var(--blue), #5b8def); color: #fff; font-weight: 700; flex: none; }
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar-sm { width: 26px; height: 26px; font-size: .8rem; }
.avatar-xl { width: 140px; height: 140px; font-size: 3.2rem; border: 4px solid #fff; box-shadow: 0 6px 20px rgba(10, 35, 81, .2); }
.profile-card { display: grid; grid-template-columns: 220px 1fr; gap: 32px; align-items: start; padding: 28px; }
.profile-photo { display: grid; justify-items: center; gap: 10px; text-align: center; padding: 8px 0; border-right: 1px solid var(--line); padding-right: 28px; }
.profile-photo p { margin: 0; }
.profile-data h2 { font-size: 1.5rem; margin-bottom: 12px; color: var(--navy); }
.profile-table { width: 100%; border-collapse: collapse; }
.profile-table th, .profile-table td { padding: 11px 0; border-bottom: 1px solid var(--line); text-align: left; font-size: .96rem; vertical-align: top; }
.profile-table th { width: 170px; color: var(--slate); font-weight: 500; }
.profile-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.profile-actions .btn, .profile-links .btn { display: inline-flex; align-items: center; gap: 8px; }
.profile-links { display: flex; flex-wrap: wrap; gap: 10px; margin: -4px 0 18px; }
.addr-add { margin: 16px 0 0; }
.field-hint { display: block; font-size: .8rem; font-weight: 400; color: var(--slate); margin-top: 4px; }
.region { display: grid; gap: 14px; }

/* Pop-up umum */
.modal { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 16px; }
.modal-card { position: relative; width: min(460px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; background: #fff; border-radius: 18px; padding: 28px 28px 24px; box-shadow: 0 30px 80px rgba(0, 0, 0, .35); animation: auth-in .22s ease-out; }
.modal-card.modal-wide { width: min(640px, 100%); }
.modal-card h2 { font-size: 1.4rem; margin: 0 40px 16px 0; color: var(--navy); }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 6px; }
@media (max-width: 760px) {
    .profile-card { grid-template-columns: 1fr; gap: 18px; padding: 18px; }
    .profile-photo { border-right: 0; padding-right: 0; border-bottom: 1px solid var(--line); padding-bottom: 18px; }
    .profile-table th { width: 120px; }
    .modal-card { padding: 22px 18px 18px; }
}
   /* Batas waktu pembayaran: merah tebal */
   .pay-deadline { color: #d61f1f; font-weight: 700; }

/* ---------- Toast notifikasi ---------- */
.toast-wrap { position: fixed; top: 84px; right: 16px; z-index: 1200; display: grid; gap: 10px; width: min(360px, calc(100vw - 32px)); pointer-events: none; }
.toast { display: flex; align-items: center; gap: 12px; padding: 13px 16px; border-radius: 12px; background: #0a2351; color: #fff; font-weight: 600; font-size: .95rem; box-shadow: 0 12px 32px rgba(10, 35, 81, .28); opacity: 0; transform: translateX(24px); transition: opacity .3s ease, transform .3s ease; }
.toast.is-in { opacity: 1; transform: none; }
.toast-ic { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: .85rem; font-weight: 700; background: #1fa467; color: #fff; }
.toast-error { background: #8f1d1d; }
.toast-error .toast-ic { background: #fff; color: #8f1d1d; }
.toast-warn .toast-ic { background: #e0a100; }
@keyframes cart-bump { 0% { transform: scale(1); } 40% { transform: scale(1.4); } 100% { transform: scale(1); } }
.cart-badge.bump { animation: cart-bump .4s ease; }
.btn.is-loading { opacity: .7; cursor: progress; }
@media (max-width: 760px) { .toast-wrap { top: auto; bottom: 16px; right: 16px; left: 16px; width: auto; } .toast { transform: translateY(16px); } }

/* ---------- Mini cart (dropdown ikon keranjang) ---------- */
.mini-cart { position: relative; display: flex; align-items: center; }
.mini-panel { position: absolute; right: 0; top: calc(100% + 6px); width: 360px; max-width: calc(100vw - 24px); background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 16px 40px rgba(10, 35, 81, .22); z-index: 90; overflow: hidden; animation: mini-in .16s ease-out; }
.mini-panel::before { content: ""; position: absolute; left: 0; right: 0; top: -8px; height: 8px; }
@keyframes mini-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.mini-head { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 16px 10px; border-bottom: 1px solid var(--line); }
.mini-head strong { color: var(--navy); font-size: 1.02rem; }
.mini-list { list-style: none; margin: 0; padding: 4px 16px; max-height: 300px; overflow-y: auto; }
.mini-item { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.mini-item:last-child { border-bottom: 0; }
.mini-thumb { width: 56px; height: 70px; border-radius: 8px; overflow: hidden; background: var(--blue-50); display: grid; place-items: center; }
.mini-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mini-ph { font-weight: 700; color: var(--blue); }
.mini-info { display: grid; gap: 2px; min-width: 0; }
.mini-name { color: var(--ink); font-weight: 600; font-size: .92rem; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mini-name:hover { color: var(--blue); text-decoration: none; }
.mini-price { font-weight: 700; color: var(--navy); font-size: .92rem; white-space: nowrap; }
.mini-foot { padding: 12px 16px 16px; border-top: 1px solid var(--line); background: #fafcff; }
.mini-total { display: flex; justify-content: space-between; margin-bottom: 10px; color: var(--navy); }
.mini-total strong { font-size: 1.1rem; }
.mini-empty { padding: 26px 16px; text-align: center; color: var(--slate); }
.mini-empty + .mini-foot { border-top: 0; background: #fff; }
@media (max-width: 760px) {
    .mini-cart { position: static; }
    .mini-panel { position: fixed; left: 12px; right: 12px; top: var(--mini-top, 76px); width: auto; max-width: none; max-height: calc(100vh - var(--mini-top, 76px) - 16px); display: flex; flex-direction: column; }
    .mini-list { flex: 1; min-height: 0; max-height: none; }
}

/* ---------- Bagikan produk ---------- */
.title-actions { display: flex; align-items: center; gap: 10px; flex: none; }
.share { position: relative; }
.share-btn { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px; border: 1.5px solid var(--line); border-radius: 999px; background: #fff; color: var(--navy); font: inherit; font-weight: 600; font-size: .92rem; cursor: pointer; transition: background .15s, border-color .15s; }
.share-btn:hover, .share-btn[aria-expanded="true"] { background: var(--blue-50); border-color: var(--blue); }
.share-panel { position: absolute; right: 0; top: calc(100% + 8px); width: 260px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 16px 40px rgba(10, 35, 81, .22); padding: 8px; z-index: 60; animation: mini-in .16s ease-out; }
.share-head { display: flex; justify-content: space-between; align-items: center; padding: 6px 10px 8px; color: var(--navy); }
.share-x { display: none; border: 0; background: none; cursor: pointer; color: var(--navy); padding: 4px; }
.share-item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px; border: 0; border-radius: 10px; background: none; color: var(--ink); font: inherit; font-weight: 500; font-size: .95rem; text-align: left; cursor: pointer; text-decoration: none; }
.share-item:hover { background: var(--blue-50); text-decoration: none; }
.share-ic { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: #fff; flex: none; }
.ic-fb { background: #1877f2; }
.ic-wa { background: #25d366; }
.ic-ig { background: linear-gradient(45deg, #f9a03f, #e1306c 55%, #7b3fbf); }
.ic-link { background: var(--navy); }
.share-backdrop { display: none; }
@media (max-width: 760px) {
    .share-panel { position: fixed; left: 0; right: 0; bottom: 0; top: auto; width: auto; border-radius: 18px 18px 0 0; padding: 10px 12px 18px; z-index: 1100; animation: share-up .22s ease-out; }
    .share-x { display: inline-flex; }
    .share-backdrop { display: block; position: fixed; inset: 0; background: rgba(8, 20, 50, .55); z-index: 1090; }
    .share-backdrop[hidden] { display: none; }
    body.share-open { overflow: hidden; }
}
@media (max-width: 480px) {
    .share-btn span { display: none; }
    .share-btn { width: 44px; padding: 0; justify-content: center; }
}
@keyframes share-up { from { transform: translateY(30px); opacity: 0; } to { transform: none; opacity: 1; } }


/* Variasi produk (swatch) */
.color-picker { border: 0; padding: 0; margin: 0 0 18px; min-width: 0; }
.color-picker legend { font-weight: 600; margin-bottom: 8px; padding: 0; }
.color-options { display: flex; flex-wrap: wrap; gap: 8px; }
.color-opt { position: relative; display: inline-flex; max-width: 100%; }
.color-opt input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.color-box { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; max-width: 100%; transition: border-color .15s, box-shadow .15s; }
.color-box img { width: 36px; height: 36px; object-fit: cover; border-radius: 7px; flex: none; background: var(--blue-50); }
.color-name { font-size: .92rem; font-weight: 500; line-height: 1.2; overflow-wrap: anywhere; }
.color-opt:hover .color-box { border-color: var(--blue); }
.color-opt input:checked + .color-box { border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue); background: var(--blue-50); }
.color-opt input:focus-visible + .color-box { outline: 2px solid var(--blue); outline-offset: 2px; }
@media (max-width: 480px) { .color-box img { width: 32px; height: 32px; } .color-name { font-size: .88rem; } }

/* Admin: baris variasi */
.color-rows { display: grid; gap: 10px; margin-bottom: 12px; }
.color-row { display: grid; grid-template-columns: 52px minmax(120px, 1fr) minmax(0, 1.2fr) auto; gap: 10px; align-items: center; }
.color-prev { width: 52px; height: 52px; border-radius: 8px; object-fit: cover; border: 1px solid var(--line); background: var(--blue-50); display: block; }
.color-row input[type=file] { min-width: 0; font-size: .85rem; }
@media (max-width: 640px) { .color-row { grid-template-columns: 52px 1fr auto; } .color-row input[type=file] { grid-column: 1 / -1; } }

/* Ringkasan pesanan: nama & variasi di kiri, harga rata kanan satu baris */
.mini-items li { align-items: flex-start; }
.mini-items .mi-info { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.mini-items .mi-name { font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
.mini-items .mi-var { color: var(--slate); font-size: .82rem; line-height: 1.35; }
.mini-items .mi-price { flex: none; white-space: nowrap; text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }