:root {
    --brand: #b4436c;
    --brand-dark: #8e2f53;
    --brand-soft: #fbeef3;
    --gold: #d4a24c;
    --ink: #2a2230;
    --muted: #756b7c;
    --line: #eee5ea;
    --bg: #fffafc;
    --bs-primary: #b4436c;
    --bs-primary-rgb: 180, 67, 108;
    --bs-link-color: #b4436c;
    --bs-link-hover-color: #8e2f53;
}
body { font-family: 'Plus Jakarta Sans', system-ui, sans-serif; color: var(--ink); background: var(--bg); }
.font-serif, h1, h2, .display-font { font-family: 'Playfair Display', Georgia, serif; }
a { text-decoration: none; }
.text-muted { color: var(--muted) !important; }
.text-brand { color: var(--brand) !important; }
.text-gold { color: var(--gold) !important; }
.bg-brand-soft { background: var(--brand-soft) !important; }

.btn { border-radius: 999px; font-weight: 600; padding: .6rem 1.4rem; }
.btn-sm { padding: .35rem .9rem; }
.btn-brand { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn-brand:hover, .btn-brand:focus { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; }
.btn-outline-brand { border: 1.5px solid var(--brand); color: var(--brand); background: transparent; }
.btn-outline-brand:hover { background: var(--brand); color: #fff; }
.btn-gold { background: var(--gold); color: #fff; border-color: var(--gold); }
.btn-gold:hover { background: #bb8b37; color: #fff; }
.form-control, .form-select { border-radius: 12px; border-color: var(--line); padding: .65rem .9rem; }
.form-control:focus, .form-select:focus { border-color: var(--brand); box-shadow: 0 0 0 .2rem rgba(180, 67, 108, .15); }

/* Navbar */
.store-nav { background: rgba(255, 250, 252, .9); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.store-nav .navbar-brand { font-family: 'Playfair Display', serif; font-weight: 700; font-size: 1.5rem; color: var(--ink); }
.store-nav .navbar-brand span { color: var(--brand); }
.store-nav .nav-link { font-weight: 500; color: var(--ink); }
.store-nav .nav-link.active, .store-nav .nav-link:hover { color: var(--brand); }
.brand-mark { display: inline-flex; width: 36px; height: 36px; border-radius: 12px; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--brand), var(--gold)); color: #fff; margin-right: .4rem; font-size: 1.1rem; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 5rem 0 4rem; background:
    radial-gradient(circle at 85% 20%, rgba(212, 162, 76, .18), transparent 40%),
    radial-gradient(circle at 10% 80%, rgba(180, 67, 108, .14), transparent 45%); }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1.15; font-weight: 700; }
.hero h1 em { color: var(--brand); font-style: italic; }
.hero-badge { display: inline-flex; gap: .5rem; align-items: center; padding: .35rem .9rem; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: .85rem; font-weight: 600; color: var(--brand); }
.hero-stat strong { display: block; font-family: 'Playfair Display', serif; font-size: 1.8rem; color: var(--ink); }
.hero-stat span { font-size: .85rem; color: var(--muted); }

/* Bingkai HP untuk preview */
.phone { position: relative; width: 300px; max-width: 100%; aspect-ratio: 9 / 18.5; margin: 0 auto; padding: 12px; border-radius: 44px; background: #1d1720; box-shadow: 0 30px 60px rgba(42, 34, 48, .25), inset 0 0 0 2px #3a3140; }
.phone::before { content: ''; position: absolute; top: 18px; left: 50%; width: 90px; height: 22px; transform: translateX(-50%); border-radius: 20px; background: #1d1720; z-index: 2; }
.phone iframe, .phone img { width: 100%; height: 100%; border: 0; border-radius: 34px; background: #fff; object-fit: cover; }
.phone.lg { width: 360px; }

/* Kartu template */
.tpl-card { border: 1px solid var(--line); border-radius: 22px; background: #fff; overflow: hidden; height: 100%; transition: transform .25s, box-shadow .25s; }
.tpl-card:hover { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(42, 34, 48, .1); }
.tpl-thumb { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--brand-soft); }
.tpl-thumb img { width: 100%; height: 100%; object-fit: cover; }
.tpl-thumb .mini { position: absolute; top: 0; left: 50%; width: 390px; height: 800px; border: 0; transform: translateX(-50%) scale(.62); transform-origin: top center; pointer-events: none; }
.tpl-thumb .overlay { position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: center; gap: .5rem; padding: 1rem; background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, .55)); opacity: 0; transition: opacity .25s; }
.tpl-card:hover .overlay { opacity: 1; }
.tpl-badge { position: absolute; top: 12px; left: 12px; z-index: 2; padding: .25rem .7rem; border-radius: 999px; font-size: .72rem; font-weight: 700; background: var(--brand); color: #fff; }
.tpl-badge.gold { left: auto; right: 12px; background: var(--gold); }
.tpl-body { padding: 1rem 1.1rem 1.2rem; }
.tpl-cat { font-size: .75rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--brand); }
.tpl-name { font-family: 'Playfair Display', serif; font-size: 1.2rem; font-weight: 700; color: var(--ink); margin: .2rem 0 .4rem; }
.price { font-weight: 800; font-size: 1.15rem; color: var(--ink); }
.price-old { font-size: .85rem; color: #aaa; text-decoration: line-through; margin-left: .35rem; }

/* Bagian umum */
.section { padding: 5rem 0; }
.section-title { font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 700; }
.eyebrow { font-size: .8rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; color: var(--gold); }
.cat-card { display: block; padding: 1.5rem 1.2rem; border-radius: 20px; background: #fff; border: 1px solid var(--line); text-align: center; color: var(--ink); height: 100%; transition: all .25s; }
.cat-card:hover { border-color: var(--brand); color: var(--brand); transform: translateY(-4px); }
.cat-card i { display: inline-flex; width: 56px; height: 56px; border-radius: 18px; align-items: center; justify-content: center; font-size: 1.6rem; margin-bottom: .8rem; background: var(--brand-soft); color: var(--brand); }
.chip { display: inline-flex; align-items: center; gap: .4rem; padding: .5rem 1rem; margin: .25rem; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--ink); font-weight: 500; transition: all .2s; }
.chip:hover, .chip.active { background: var(--brand); border-color: var(--brand); color: #fff; }
.adat-card { position: relative; display: block; border-radius: 22px; overflow: hidden; aspect-ratio: 1; color: #fff; }
.adat-card .pat { position: absolute; inset: 0; background-size: 60px; }
.adat-card .pat::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(0, 0, 0, .7)); }
.adat-card span { position: absolute; left: 1rem; bottom: .9rem; z-index: 1; font-family: 'Playfair Display', serif; font-size: 1.25rem; font-weight: 700; }
.feature { display: flex; gap: 1rem; padding: 1.3rem; border-radius: 20px; background: #fff; border: 1px solid var(--line); height: 100%; }
.feature i { flex: 0 0 48px; height: 48px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; background: var(--brand-soft); color: var(--brand); }
.feature h6 { font-weight: 700; margin-bottom: .2rem; }
.feature p { margin: 0; font-size: .9rem; color: var(--muted); }
.step { text-align: center; padding: 1rem; }
.step .num { width: 60px; height: 60px; margin: 0 auto 1rem; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: 'Playfair Display', serif; font-size: 1.5rem; font-weight: 700; background: #fff; color: var(--brand); border: 2px dashed var(--brand); }
.cta-band { border-radius: 32px; padding: 3.5rem 2rem; color: #fff; background: linear-gradient(135deg, var(--brand), #6e2a6b); }
.accordion-button:not(.collapsed) { background: var(--brand-soft); color: var(--brand); box-shadow: none; }
.accordion-button:focus { box-shadow: none; }
.accordion-item { border-color: var(--line); }

/* Sidebar katalog */
.filter-box { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 1.2rem; }
.filter-box a { display: flex; justify-content: space-between; padding: .45rem .7rem; border-radius: 10px; color: var(--ink); font-size: .95rem; }
.filter-box a:hover, .filter-box a.active { background: var(--brand-soft); color: var(--brand); font-weight: 600; }
.filter-box .sub a { padding-left: 1.6rem; font-size: .9rem; }

.card-soft { background: #fff; border: 1px solid var(--line); border-radius: 22px; }
.bank-option { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.2rem; border: 1.5px solid var(--line); border-radius: 16px; cursor: pointer; transition: all .2s; }
.bank-option:hover { border-color: var(--brand); }
.btn-check:checked + .bank-option { border-color: var(--brand); background: var(--brand-soft); }
.bank-logo { width: 54px; height: 36px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: .8rem; color: #fff; background: #1e3a8a; }

.auth-wrap { min-height: calc(100vh - 76px); display: flex; align-items: center; padding: 3rem 0; }
.auth-card { max-width: 460px; margin: 0 auto; padding: 2.5rem 2rem; }

footer.store-footer { background: #1d1720; color: rgba(255, 255, 255, .7); padding: 4rem 0 2rem; }
footer.store-footer a { color: rgba(255, 255, 255, .7); }
footer.store-footer a:hover { color: #fff; }
footer.store-footer h6 { color: #fff; font-weight: 700; margin-bottom: 1rem; }
.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 1030; width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: #25d366; color: #fff; font-size: 1.7rem; box-shadow: 0 10px 25px rgba(37, 211, 102, .4); }
.wa-float:hover { color: #fff; transform: scale(1.06); }
.pagination { --bs-pagination-active-bg: var(--brand); --bs-pagination-active-border-color: var(--brand); --bs-pagination-color: var(--brand); }

/* Efek hover: sampul berganti ke isi undangan */
.tpl-thumb img { object-position: top; }
.tpl-thumb img.inside { position: absolute; inset: 0; opacity: 0; transition: opacity .45s ease; }
.tpl-card:hover .tpl-thumb img.inside, .pf-card:hover img.inside { opacity: 1; }

/* Portofolio */
.pf-hero { padding: 4rem 0 2.5rem; text-align: center; background:
    radial-gradient(circle at 20% 10%, rgba(212, 162, 76, .18), transparent 40%),
    radial-gradient(circle at 80% 90%, rgba(180, 67, 108, .15), transparent 45%); }
.pf-stats { display: flex; justify-content: center; gap: 2.5rem; margin-top: 1.5rem; }
.pf-stats strong { display: block; font-family: 'Playfair Display', serif; font-size: 2rem; color: var(--brand); }
.pf-filter { position: sticky; top: 76px; z-index: 10; background: rgba(255, 250, 252, .92); backdrop-filter: blur(8px); padding: .75rem 0; border-bottom: 1px solid var(--line); }
.pf-filter .chips { display: flex; gap: .25rem; overflow-x: auto; justify-content: safe center; scrollbar-width: none; }
.pf-filter .chip { white-space: nowrap; cursor: pointer; }
.pf-filter .chip small { opacity: .7; margin-left: .2rem; }
.pf-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 2.2rem 1.6rem; }
.pf-card { cursor: pointer; text-align: center; transition: transform .3s; }
.pf-card:hover { transform: translateY(-8px); }
.pf-card[hidden] { display: none; }
.pf-phone { position: relative; aspect-ratio: 9 / 18; padding: 8px; border-radius: 30px; background: #1d1720; box-shadow: 0 18px 40px rgba(42, 34, 48, .22); }
.pf-phone::before { content: ''; position: absolute; top: 13px; left: 50%; width: 56px; height: 14px; transform: translateX(-50%); border-radius: 10px; background: #1d1720; z-index: 3; }
.pf-screen { position: relative; width: 100%; height: 100%; border-radius: 23px; overflow: hidden; background: var(--brand-soft); }
.pf-screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.pf-screen iframe { position: absolute; top: 0; left: 0; width: 390px; height: 780px; border: 0; transform-origin: top left; pointer-events: none; }
.pf-play { position: absolute; inset: 0; z-index: 2; display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity .3s; background: rgba(29, 23, 32, .35); }
.pf-play span { padding: .5rem 1rem; border-radius: 999px; background: #fff; color: var(--ink); font-weight: 700; font-size: .85rem; }
.pf-card:hover .pf-play { opacity: 1; }
.pf-meta { margin-top: 1rem; }
.pf-meta .tpl-name { font-size: 1.05rem; margin: .1rem 0; }
.pf-empty { display: none; }

/* Modal preview */
.pf-modal .modal-content { border: 0; border-radius: 28px; overflow: hidden; }
.pf-modal .phone { width: 340px; }

/* Marquee beranda */
.marquee { overflow: hidden; padding: 1.2rem 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 1.4rem; width: max-content; animation: marquee 90s linear infinite; }
.marquee.reverse .marquee-track { animation-direction: reverse; animation-duration: 110s; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee .pf-card { width: 170px; flex: 0 0 170px; }
.marquee .pf-meta { margin-top: .6rem; }
.marquee .pf-meta .tpl-name { font-size: .95rem; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } .marquee { overflow-x: auto; } }
.pf-screen img.inside { opacity: 0; transition: opacity .45s ease; }
@media (max-width: 576px) {
    .pf-grid { grid-template-columns: repeat(2, 1fr); gap: 1.6rem .9rem; }
    .pf-phone { padding: 5px; border-radius: 20px; }
    .pf-phone::before { top: 9px; width: 36px; height: 9px; }
    .pf-screen { border-radius: 16px; }
    .pf-meta .tpl-name { font-size: .9rem; }
    .pf-meta .price { font-size: .85rem !important; }
    .pf-meta .price-old { display: none; }
    .pf-play span { font-size: .72rem; }
    .pf-stats { gap: 1.5rem; }
    .marquee .pf-card { width: 130px; flex-basis: 130px; }
}
