/* ============================================================
   WHITEE v2 — Tampilan premium. Warna diambil dari CSS variables
   yang di-set di header sesuai tema pilihan admin.
   ============================================================ */
:root {
  --white: #FFFFFF; --muted: #6E6673;
  --ok: #2E7D52; --warn: #B07414; --bad: #B03A3A;
  --radius: 16px; --wa: #1FA855;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Plus Jakarta Sans', system-ui, sans-serif; background: var(--paper); color: var(--ink); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ---------- Bar atas & navigasi ---------- */
.announce { background: var(--accent); color: #fff; text-align: center; font-size: 13px; padding: 8px 16px; letter-spacing: .03em; font-weight: 600; }
.topbar {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px clamp(16px, 5vw, 56px);
  background: rgba(255,255,255,.85); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand { font-family: 'Marcellus', serif; font-size: 24px; letter-spacing: .24em; text-transform: uppercase; }
.topnav { display: flex; align-items: center; gap: clamp(12px, 2.6vw, 26px); font-size: 14px; font-weight: 600; }
.topnav a:not(.btn-cart):hover { color: var(--accent); }
.btn-cart {
  display: inline-flex; align-items: center; gap: 8px; position: relative;
  background: var(--ink); color: #fff; padding: 9px 18px; border-radius: 999px; transition: background .2s;
}
.btn-cart:hover { background: var(--accent); }
.cart-badge {
  position: absolute; top: -7px; right: -7px; background: var(--accent); color: #fff;
  font-size: 11px; font-weight: 800; min-width: 20px; height: 20px; border-radius: 999px;
  display: flex; align-items: center; justify-content: center; padding: 0 5px; border: 2px solid var(--paper);
}

/* ---------- Hero premium ---------- */
.hero { position: relative; overflow: hidden; color: #fff; }
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(900px 480px at 18% -10%, color-mix(in srgb, var(--glow1) 55%, transparent), transparent 60%),
    radial-gradient(720px 460px at 88% 8%, color-mix(in srgb, var(--glow1) 32%, transparent), transparent 62%),
    radial-gradient(640px 500px at 55% 118%, color-mix(in srgb, var(--glow2) 85%, transparent), transparent 64%),
    linear-gradient(165deg, color-mix(in srgb, var(--ink) 96%, var(--glow1)) 0%, var(--ink) 55%, color-mix(in srgb, var(--ink) 88%, var(--glow2)) 100%);
}
.hero-bg::after {
  content: ''; position: absolute; inset: 0; opacity: .5; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.16'/%3E%3C/svg%3E");
}
.hero-inner { position: relative; max-width: 900px; margin: 0 auto; text-align: center; padding: clamp(64px, 11vw, 130px) 22px clamp(56px, 8vw, 96px); }
.hero-eyebrow { font-size: 12px; font-weight: 800; letter-spacing: .32em; text-transform: uppercase; color: color-mix(in srgb, #fff 75%, var(--glow1)); margin-bottom: 20px; }
.hero-title { font-family: 'Marcellus', serif; font-weight: 400; font-size: clamp(32px, 5.6vw, 58px); line-height: 1.14; margin-bottom: 18px; text-wrap: balance; }
.hero-sub { color: rgba(255,255,255,.78); font-size: clamp(15px, 2vw, 17px); max-width: 600px; margin: 0 auto 32px; }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-stats { display: flex; justify-content: center; gap: clamp(22px, 5vw, 56px); margin-top: 46px; flex-wrap: wrap; }
.hero-stats > div { display: flex; flex-direction: column; align-items: center; }
.hero-stats b { font-family: 'Marcellus', serif; font-size: 20px; letter-spacing: .04em; }
.hero-stats span { font-size: 12.5px; color: rgba(255,255,255,.6); }

/* ---------- Tombol ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 13px 26px; border-radius: 999px; font-size: 15px; font-weight: 700; transition: all .2s; border: 1.5px solid transparent; cursor: pointer; font-family: inherit; }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--soft); }
.btn-ghost-light { border-color: rgba(255,255,255,.55); color: #fff; }
.btn-ghost-light:hover { border-color: #fff; background: rgba(255,255,255,.1); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--accent); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-line { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-line:hover { border-color: var(--accent); color: var(--accent); }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { filter: brightness(.92); }
.btn-wide { width: 100%; }

/* ---------- Banner carousel ---------- */
.banners { max-width: 1180px; margin: -34px auto 0; padding: 0 clamp(16px, 4vw, 40px); position: relative; z-index: 2; }
.carousel { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: 0 20px 50px rgba(0,0,0,.18); }
.carousel-track { display: flex; transition: transform .5s ease; }
.carousel-slide { position: relative; min-width: 100%; aspect-ratio: 3 / 1; background: var(--soft); }
.carousel-slide img { width: 100%; height: 100%; object-fit: cover; }
.carousel-caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 30px; background: linear-gradient(transparent, rgba(0,0,0,.62)); color: #fff; }
.carousel-title { font-family: 'Marcellus', serif; font-size: clamp(18px, 3vw, 28px); }
.carousel-sub { font-size: clamp(12px, 1.8vw, 15px); opacity: .85; }
.car-btn { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,.85); border: 0; width: 40px; height: 40px; border-radius: 50%; cursor: pointer; font-size: 16px; transition: background .2s; z-index: 2; }
.car-btn:hover { background: #fff; }
.car-prev { left: 14px; } .car-next { right: 14px; }
.car-dots { position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%); display: flex; gap: 7px; z-index: 2; }
.car-dot { width: 9px; height: 9px; border-radius: 50%; border: 0; background: rgba(255,255,255,.5); cursor: pointer; transition: all .2s; }
.car-dot.active { background: #fff; width: 24px; border-radius: 999px; }

/* ---------- Katalog ---------- */
.catalog { max-width: 1180px; margin: 0 auto; padding: 54px clamp(16px, 4vw, 40px) 70px; }
.catalog-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.section-title { font-family: 'Marcellus', serif; font-weight: 400; font-size: clamp(25px, 3.4vw, 36px); }
.search { display: flex; background: var(--white); border: 1px solid var(--line); border-radius: 999px; overflow: hidden; box-shadow: 0 2px 10px rgba(0,0,0,.04); }
.search input { border: 0; outline: 0; padding: 11px 18px; font-size: 14px; width: min(240px, 55vw); font-family: inherit; background: transparent; }
.search button { border: 0; background: var(--ink); color: #fff; padding: 0 20px; font-weight: 700; font-size: 14px; cursor: pointer; font-family: inherit; }
.search button:hover { background: var(--accent); }

.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 30px; }
.chip { padding: 8px 17px; border-radius: 999px; font-size: 13.5px; font-weight: 600; background: var(--white); border: 1px solid var(--line); transition: all .18s; }
.chip:hover { border-color: var(--accent); color: var(--accent); }
.chip.active { background: var(--ink); color: #fff; border-color: var(--ink); }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 24px; }
.card { background: var(--white); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); transition: transform .25s, box-shadow .25s; display: flex; flex-direction: column; }
.card:hover { transform: translateY(-5px); box-shadow: 0 18px 42px rgba(0,0,0,.12); }
.card-img { position: relative; aspect-ratio: 4 / 5; background: var(--soft); overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .card-img img { transform: scale(1.05); }
.card-noimg { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-family: 'Marcellus', serif; font-size: 84px; color: var(--accent); opacity: .35; }
.badge { position: absolute; top: 12px; left: 12px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 5px 11px; border-radius: 999px; }
.badge-video { top: auto; bottom: 12px; left: 12px; background: rgba(0,0,0,.68); text-transform: none; letter-spacing: 0; }
.card-body { padding: 15px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-cat { font-size: 11.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.card-name { font-weight: 700; font-size: 16px; line-height: 1.35; }
.card-stock { font-size: 12.5px; font-weight: 700; }
.stock-ok { color: var(--ok); } .stock-low { color: var(--warn); } .stock-out { color: var(--bad); }
.tier-strip { margin-top: auto; padding-top: 10px; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px dashed var(--line); gap: 4px; }
.tier { display: flex; flex-direction: column; }
.tier-qty { font-size: 11px; color: var(--muted); font-weight: 700; }
.tier-price { font-size: 13px; font-weight: 800; }
.tier:last-child .tier-price { color: var(--accent); }

.empty { background: var(--white); border: 1px dashed var(--line); border-radius: var(--radius); padding: 42px; text-align: center; color: var(--muted); }
.empty a { color: var(--accent); font-weight: 700; }

/* ---------- Cara order ---------- */
.how { background: var(--white); border-top: 1px solid var(--line); padding: 60px clamp(16px, 4vw, 40px) 74px; }
.how .section-title { text-align: center; }
.how-lead { text-align: center; color: var(--muted); margin: 8px 0 34px; }
.how-cols { max-width: 1020px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.how-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; }
.how-tag { align-self: flex-start; background: var(--accent); color: #fff; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 6px 14px; border-radius: 999px; margin-bottom: 16px; }
.how-tag-alt { background: var(--ink); }
.how-list { padding-left: 20px; display: flex; flex-direction: column; gap: 10px; font-size: 14.5px; margin-bottom: 22px; flex: 1; }
.how-list li::marker { color: var(--accent); font-weight: 800; }

/* ---------- Detail produk ---------- */
.crumbs { max-width: 1080px; margin: 0 auto; padding: 22px clamp(16px, 4vw, 40px) 0; font-size: 13px; color: var(--muted); }
.crumbs a:hover { color: var(--accent); }
.crumbs span { margin: 0 6px; opacity: .5; }
.page-alert { max-width: 1080px; margin: 16px auto 0; padding: 12px 18px; border-radius: 12px; background: #E3F2E9; color: var(--ok); font-weight: 600; font-size: 14px; width: calc(100% - clamp(32px, 8vw, 80px)); }
.page-alert a { text-decoration: underline; }
.alert-red { background: #FBEDED; color: var(--bad); }
.detail { max-width: 1080px; margin: 0 auto; padding: 22px clamp(16px, 4vw, 40px) 76px; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(24px, 4vw, 56px); }
.gallery-main { aspect-ratio: 4 / 5; background: var(--soft); border-radius: var(--radius); overflow: hidden; }
.gallery-main img, .gallery-main video { width: 100%; height: 100%; object-fit: cover; }
.gallery-empty { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-family: 'Marcellus', serif; font-size: 120px; color: var(--accent); opacity: .35; }
.gallery-thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.thumb-btn { width: 72px; height: 90px; border-radius: 10px; overflow: hidden; cursor: pointer; border: 2px solid transparent; opacity: .8; transition: all .15s; background: var(--soft); padding: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; font-family: inherit; }
.thumb-btn img { width: 100%; height: 100%; object-fit: cover; }
.thumb-btn:hover, .thumb-btn.active { border-color: var(--accent); opacity: 1; }
.thumb-video { color: var(--accent); font-size: 20px; font-weight: 800; gap: 2px; }
.thumb-video span { font-size: 11px; font-weight: 700; }

.detail-name { font-family: 'Marcellus', serif; font-weight: 400; font-size: clamp(26px, 3.6vw, 38px); line-height: 1.15; margin: 6px 0 8px; }
.price-table { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin: 18px 0; }
.price-table-title { font-size: 12px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.price-table table { width: 100%; border-collapse: collapse; font-size: 15px; }
.price-table th { text-align: left; font-size: 12.5px; color: var(--muted); font-weight: 700; padding: 6px 0; border-bottom: 1px solid var(--line); }
.price-table td { padding: 9px 0; border-bottom: 1px dashed var(--line); }
.price-table tr:last-child td { border-bottom: 0; }
.price-cell { font-weight: 800; }
.price-table tr:last-child .price-cell { color: var(--accent); }
.price-note { margin-top: 10px; font-size: 12.5px; color: var(--muted); }
.spec { margin: 6px 0 14px; }
.spec-row { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 14.5px; }
.spec-row span { color: var(--muted); }
.spec-row b { font-weight: 700; text-align: right; }
.detail-desc { color: var(--muted); font-size: 15px; margin-bottom: 20px; }
.detail-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.buy-box { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin-bottom: 16px; }
.buy-box label { font-size: 13px; font-weight: 800; display: block; margin-bottom: 6px; }
.buy-row { display: flex; gap: 10px; }
.buy-row input { width: 110px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; font-family: inherit; font-size: 16px; font-weight: 700; outline: none; }
.buy-row input:focus { border-color: var(--accent); }
.buy-row .btn { flex: 1; }
.buy-note { font-size: 12.5px; color: var(--muted); margin-top: 8px; }

/* ---------- Keranjang & checkout ---------- */
.page-narrow { max-width: 1000px; margin: 0 auto; padding: 40px clamp(16px, 4vw, 40px) 76px; }
.page-narrow .section-title { margin-bottom: 22px; }
.cart-panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 18px 18px; overflow-x: auto; }
.cart-table { width: 100%; border-collapse: collapse; min-width: 560px; }
.cart-table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 12px 8px; border-bottom: 1px solid var(--line); }
.cart-table td { padding: 13px 8px; border-bottom: 1px dashed var(--line); vertical-align: middle; }
.cart-prod { display: flex; gap: 12px; align-items: center; }
.cart-prod img, .cart-noimg { width: 52px; height: 66px; object-fit: cover; border-radius: 10px; background: var(--soft); flex: none; }
.cart-noimg { display: flex; align-items: center; justify-content: center; font-family: 'Marcellus', serif; color: var(--accent); font-size: 22px; }
.muted-s { font-size: 12.5px; color: var(--muted); }
.cart-qty { width: 78px; padding: 9px 10px; border: 1.5px solid var(--line); border-radius: 10px; font-family: inherit; font-size: 15px; font-weight: 700; outline: none; }
.cart-qty:focus { border-color: var(--accent); }
.cart-del { border: 0; background: var(--soft); color: var(--bad); width: 30px; height: 30px; border-radius: 50%; font-size: 17px; cursor: pointer; }
.cart-del:hover { background: #FBDDDD; }
.cart-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; padding-top: 16px; flex-wrap: wrap; }
.cart-total { text-align: right; font-size: 14.5px; display: flex; flex-direction: column; gap: 3px; }
.cart-sum { font-size: 20px; color: var(--accent); }
.cart-actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 18px; flex-wrap: wrap; }

.co-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px; align-items: start; }
.co-form, .co-summary { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.co-form h3, .co-summary h3 { font-family: 'Marcellus', serif; font-weight: 400; font-size: 21px; margin-bottom: 12px; }
.co-form label { display: block; font-size: 13px; font-weight: 800; margin: 14px 0 5px; }
.co-form input, .co-form select, .co-form textarea { width: 100%; padding: 11px 13px; border: 1.5px solid var(--line); border-radius: 11px; font-family: inherit; font-size: 14.5px; outline: none; background: var(--paper); }
.co-form input:focus, .co-form select:focus, .co-form textarea:focus { border-color: var(--accent); background: #fff; }
.co-form .btn-wide { margin-top: 20px; }
.co-line { display: flex; justify-content: space-between; gap: 14px; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 14.5px; }
.co-line:last-of-type { border-bottom: 0; }
.co-total { border-top: 2px solid var(--ink); border-bottom: 0; margin-top: 6px; padding-top: 13px; font-size: 16px; }
.co-total b { color: var(--accent); font-size: 20px; }

.bank-box { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 13px 16px; margin: 10px 0; }
.bank-name { font-weight: 800; letter-spacing: .04em; }
.bank-number { font-size: 20px; font-weight: 800; letter-spacing: .05em; color: var(--accent); }
.co-summary .btn-wide { margin-top: 14px; }
.success-head { text-align: center; margin-bottom: 26px; }
.success-icon { width: 62px; height: 62px; margin: 0 auto 14px; border-radius: 50%; background: #E3F2E9; color: var(--ok); font-size: 28px; display: flex; align-items: center; justify-content: center; }
.order-code { color: var(--accent); font-size: 18px; letter-spacing: .05em; }
.status-pill { padding: 3px 12px; border-radius: 999px; font-size: 12.5px; }
.st-baru { background: #FDF6E8; color: var(--warn); }
.st-diproses { background: var(--soft); color: var(--accent); }
.st-dikirim { background: #E4EDFB; color: #2B5DA8; }
.st-selesai { background: #E3F2E9; color: var(--ok); }
.st-batal { background: #F1F1F1; color: var(--muted); }
.track-form { display: flex; gap: 10px; max-width: 520px; }
.track-form input { flex: 1; padding: 12px 15px; border: 1.5px solid var(--line); border-radius: 999px; font-family: inherit; font-size: 14.5px; outline: none; }
.track-form input:focus { border-color: var(--accent); }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: rgba(255,255,255,.72); }
.footer-inner { max-width: 1180px; margin: 0 auto; padding: 54px clamp(16px, 4vw, 40px) 30px; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; }
.footer-brand { font-family: 'Marcellus', serif; font-size: 24px; letter-spacing: .24em; text-transform: uppercase; color: #fff; margin-bottom: 12px; }
.footer-about, .footer-col p { font-size: 14px; line-height: 1.75; }
.footer-title { color: #fff; font-weight: 800; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 12px; }
.footer-link:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); text-align: center; font-size: 12.5px; padding: 18px; opacity: .7; }

/* ---------- Widget CS ---------- */
.cs-widget { position: fixed; right: 18px; bottom: 18px; z-index: 60; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.cs-fab { display: flex; align-items: center; gap: 10px; background: var(--accent); color: #fff; border: 0; cursor: pointer; padding: 13px 20px; border-radius: 999px; font-family: inherit; font-size: 15px; font-weight: 800; box-shadow: 0 10px 26px color-mix(in srgb, var(--accent) 45%, transparent); transition: transform .15s, background .2s; }
.cs-fab:hover { transform: translateY(-2px); background: var(--accent-dark); }
.cs-panel { display: none; width: min(330px, calc(100vw - 36px)); background: var(--white); border-radius: 18px; overflow: hidden; box-shadow: 0 24px 60px rgba(0,0,0,.25); border: 1px solid var(--line); }
.cs-panel.open { display: block; animation: csUp .22s ease; }
@keyframes csUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.cs-head { background: var(--ink); color: #fff; padding: 14px 16px; display: flex; justify-content: space-between; align-items: flex-start; }
.cs-head-title { font-weight: 800; font-size: 15px; }
.cs-head-sub { font-size: 12px; opacity: .7; }
.cs-close { background: none; border: 0; color: #fff; font-size: 22px; cursor: pointer; line-height: 1; }
.cs-body { padding: 16px; }
.cs-bubble { background: var(--soft); border-radius: 12px 12px 12px 4px; padding: 10px 13px; font-size: 13.5px; margin-bottom: 14px; }
.cs-label { display: block; font-size: 12px; font-weight: 800; color: var(--muted); margin-bottom: 4px; }
.cs-input { width: 100%; border: 1.5px solid var(--line); border-radius: 10px; padding: 10px 12px; font-family: inherit; font-size: 14px; margin-bottom: 12px; outline: none; resize: vertical; background: var(--paper); }
.cs-input:focus { border-color: var(--accent); }
.cs-send { width: 100%; background: var(--wa); color: #fff; border: 0; cursor: pointer; padding: 12px; border-radius: 999px; font-family: inherit; font-size: 15px; font-weight: 800; transition: filter .2s; }
.cs-send:hover { filter: brightness(.92); }

/* ---------- Aksesibilitas & responsif ---------- */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .carousel-track { transition: none; }
}
@media (max-width: 900px) {
  .detail, .co-grid, .how-cols { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 26px; }
}
@media (max-width: 600px) {
  .grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .card-body { padding: 10px 12px 12px; }
  .tier-strip { grid-template-columns: 1fr; gap: 2px; }
  .tier { flex-direction: row; justify-content: space-between; }
  .cs-fab span { display: none; }
  .cs-fab { padding: 14px; }
  .carousel-slide { aspect-ratio: 2 / 1; }
  .banners { margin-top: -20px; }
}

/* ============ v3: Testimoni, review berjalan, popup, akun ============ */
.nav-akun { display: inline-flex; flex-direction: column; line-height: 1.1; }
.nav-akun span { font-size: 11px; font-weight: 600; color: var(--accent); }
.link { color: var(--accent); font-weight: 700; text-decoration: underline; }
.banners-mid, .banners-bottom { margin-top: 0; margin-bottom: 46px; }
.banners-mid { padding-top: 10px; }
.carousel-slide video { width: 100%; height: 100%; object-fit: cover; }

/* Testimoni */
.testi { max-width: 1180px; margin: 0 auto; padding: 20px clamp(16px, 4vw, 40px) 40px; }
.testi .section-title, .reviews .section-title { text-align: center; }
.testi-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; margin-top: 26px; }
.testi-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 10px; transition: transform .25s, box-shadow .25s; }
.testi-card:hover { transform: translateY(-4px); box-shadow: 0 16px 38px rgba(0,0,0,.1); }
.stars { color: #E8A33D; letter-spacing: 2px; font-size: 15px; }
.stars-s { font-size: 12.5px; letter-spacing: 1px; }
.testi-text { font-size: 14.5px; line-height: 1.7; flex: 1; }
.testi-media { width: 100%; border-radius: 12px; max-height: 220px; object-fit: cover; }
.testi-who { display: flex; flex-direction: column; border-top: 1px dashed var(--line); padding-top: 10px; }
.testi-who b { font-size: 14.5px; }
.testi-who span { font-size: 12.5px; color: var(--muted); }

/* Review berjalan (marquee) */
.reviews { padding: 34px 0 60px; overflow: hidden; }
.marquee { margin-top: 24px; overflow: hidden; position: relative; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.marquee-track { display: flex; gap: 16px; width: max-content; animation: marquee var(--marquee-dur, 60s) linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.rev-card { width: 268px; flex: none; background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; display: flex; flex-direction: column; gap: 7px; }
.rev-text { font-size: 13.5px; line-height: 1.6; }
.rev-media { width: 100%; border-radius: 10px; max-height: 150px; object-fit: cover; }
.rev-who { font-size: 12px; color: var(--muted); font-weight: 700; }

/* Popup "sedang checkout" */
.buy-toast {
  position: fixed; left: 18px; bottom: 20px; z-index: 55;
  display: flex; align-items: center; gap: 11px;
  background: var(--white); border: 1px solid var(--line); border-radius: 14px;
  padding: 11px 16px 11px 12px; box-shadow: 0 14px 36px rgba(0,0,0,.16);
  max-width: min(320px, calc(100vw - 36px));
  opacity: 0; transform: translateY(14px); pointer-events: none; transition: opacity .35s, transform .35s;
}
.buy-toast.show { opacity: 1; transform: none; }
.bt-ico { width: 38px; height: 38px; border-radius: 50%; background: var(--soft); display: flex; align-items: center; justify-content: center; font-size: 18px; flex: none; }
.bt-body { display: flex; flex-direction: column; min-width: 0; }
.bt-body b { font-size: 13.5px; }
.bt-body span { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bt-body i { font-size: 11px; color: var(--accent); font-style: normal; font-weight: 700; }

/* Form akun */
.page-slim { max-width: 620px; }
.form-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.co-hint { background: var(--soft); border-radius: 10px; padding: 10px 13px; font-size: 13px; margin-bottom: 6px; }
@media (max-width: 600px) {
  .form-row2 { grid-template-columns: 1fr; gap: 0; }
  .buy-toast { left: 12px; bottom: 84px; }
  .rev-card { width: 232px; }
}
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }

/* ============ v3.2: Segmen produk (Lokal / Import) ============ */
.seg-tabs { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.seg-tab {
  --seg: var(--accent);
  padding: 10px 22px; border-radius: 12px; font-size: 14.5px; font-weight: 800;
  background: var(--white); border: 1.5px solid var(--line); transition: all .18s; position: relative;
}
.seg-tab:hover { border-color: var(--seg); color: var(--seg); }
.seg-tab.active { background: var(--seg); border-color: var(--seg); color: #fff; box-shadow: 0 6px 18px color-mix(in srgb, var(--seg) 32%, transparent); }
.seg-tab:first-child.active { background: var(--ink); border-color: var(--ink); box-shadow: 0 6px 18px rgba(0,0,0,.18); }
.seg-desc { font-size: 14px; color: var(--muted); margin: -4px 0 16px; }
.seg-badge { display: inline-block; color: #fff; font-size: 11.5px; font-weight: 800; letter-spacing: .04em; padding: 4px 12px; border-radius: 999px; }
.badge-seg { top: 12px; left: 12px; text-transform: none; letter-spacing: .03em; }
.badge-best { top: 12px; left: auto; right: 12px; }
.detail-tags { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
@media (max-width: 600px) {
  .seg-tab { padding: 9px 16px; font-size: 13.5px; flex: 1; text-align: center; }
  .badge, .badge-best { font-size: 10px; padding: 4px 8px; }
}

/* ============ v4: Seri, kalkulator, dropship, level, materi ============ */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.btn-sm { padding: 9px 16px; font-size: 13.5px; }

/* Kotak seri & warna */
.seri-box { background: var(--soft); border-radius: 14px; padding: 14px 18px; margin: 16px 0; }
.seri-head { font-weight: 800; font-size: 15px; margin-bottom: 4px; }
.color-box { margin: 16px 0; }
.color-title { font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }
.color-chips { display: flex; gap: 7px; flex-wrap: wrap; }
.color-chip { background: var(--white); border: 1.5px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: 13px; font-weight: 600; }
.color-out { opacity: .45; text-decoration: line-through; }

/* Kalkulator untung */
.calc-box { background: var(--white); border: 1.5px solid var(--accent); border-radius: var(--radius); padding: 18px 20px; margin: 18px 0; }
.calc-title { font-weight: 800; font-size: 15.5px; margin-bottom: 12px; }
.calc-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 14px; }
.calc-row label { display: block; font-size: 12.5px; font-weight: 700; color: var(--muted); margin-bottom: 4px; }
.calc-row input { width: 100%; padding: 11px 13px; border: 1.5px solid var(--line); border-radius: 11px; font-family: inherit; font-size: 16px; font-weight: 700; outline: none; }
.calc-row input:focus { border-color: var(--accent); }
.calc-out { background: var(--paper); border-radius: 12px; padding: 12px 15px; }
.calc-line { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; padding: 5px 0; }
.calc-profit { border-top: 1.5px dashed var(--line); margin-top: 6px; padding-top: 10px; font-size: 15.5px; }
.calc-profit b { color: var(--ok); font-size: 20px; font-weight: 800; }
.calc-profit b.text-bad { color: var(--bad); }
.calc-margin { font-size: 12.5px; color: var(--muted); margin-top: 8px; text-align: center; }
.profit-cell { color: var(--ok); font-weight: 700; }

/* Materi jualan */
.jualan-box { background: var(--paper); border: 1px dashed var(--line); border-radius: var(--radius); padding: 16px 18px; margin-top: 18px; }
.jualan-title { font-weight: 800; font-size: 15px; margin-bottom: 4px; }
.jualan-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.materi-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
.materi-item { display: flex; flex-direction: column; gap: 10px; }
.materi-item img, .materi-item video { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: var(--radius); background: var(--soft); }
.materi-item .btn { width: 100%; }

/* Pre-order */
.po-box { background: var(--white); border: 1.5px solid var(--accent); border-radius: var(--radius); padding: 18px 20px; margin-bottom: 16px; }
.po-head { font-weight: 800; font-size: 16px; margin-bottom: 6px; }
.po-form { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.po-form input { padding: 11px 13px; border: 1.5px solid var(--line); border-radius: 11px; font-family: inherit; font-size: 14.5px; outline: none; }
.po-form input:focus { border-color: var(--accent); }

/* Dropship */
.drop-box { background: var(--soft); border-radius: 12px; padding: 14px 16px; margin-top: 18px; }
.drop-check { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; margin: 0 !important; font-weight: 400 !important; font-size: 14px !important; }
.drop-check input { width: 18px; height: 18px; accent-color: var(--accent); flex: none; margin-top: 2px; }
.drop-fields { margin-top: 12px; }
.drop-tag { background: #FDF6E8; color: var(--warn); border-radius: 10px; padding: 10px 14px; font-size: 13.5px; margin-bottom: 10px; }

/* Level reseller */
.lvl-line { color: var(--ok); font-weight: 700; }
.lvl-next { font-size: 12.5px; color: var(--muted); background: var(--paper); border-radius: 10px; padding: 10px 12px; margin-top: 12px; }
.lvl-card { --lv: var(--accent); background: linear-gradient(135deg, var(--lv), color-mix(in srgb, var(--lv) 65%, #000)); color: #fff; border-radius: var(--radius); padding: 18px; margin-bottom: 18px; }
.lvl-name { font-family: 'Marcellus', serif; font-size: 24px; letter-spacing: .06em; }
.lvl-spend, .lvl-perk { font-size: 13.5px; opacity: .92; }
.lvl-perk { font-weight: 700; margin-top: 4px; }
.lvl-card .muted-s { color: rgba(255,255,255,.8); }
.lvl-bar { height: 7px; background: rgba(255,255,255,.25); border-radius: 999px; margin: 12px 0 6px; overflow: hidden; }
.lvl-bar span { display: block; height: 100%; background: #fff; border-radius: 999px; }
@media (max-width: 600px) { .calc-row { grid-template-columns: 1fr; } }

/* ============ Menu HP (hamburger) ============ */
.mobile-actions { display: none; align-items: center; gap: 6px; }
.m-cart { position: relative; display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 12px; color: var(--ink); }
.m-cart:active { background: var(--soft); }
.m-toggle { width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px; padding: 0; }
.m-toggle span { display: block; width: 22px; height: 2.5px; background: var(--ink); border-radius: 2px; transition: transform .25s, opacity .2s; }
.m-toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.m-toggle.open span:nth-child(2) { opacity: 0; }
.m-toggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

.m-menu { display: none; }
.m-menu a {
  display: flex; align-items: center; gap: 8px;
  padding: 15px 22px; font-size: 16px; font-weight: 700;
  border-bottom: 1px solid var(--line); color: var(--ink);
}
.m-menu a:active { background: var(--soft); }
.m-primary { color: var(--accent) !important; }
.m-wa { color: var(--wa) !important; border-bottom: 0 !important; }
.m-badge { background: var(--accent); color: #fff; font-size: 12px; font-weight: 800; min-width: 22px; height: 22px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; padding: 0 6px; }

@media (max-width: 780px) {
  .topnav { display: none; }
  .mobile-actions { display: flex; }
  .topbar { padding: 12px 16px; }
  .brand { font-size: 20px; letter-spacing: .2em; }
  .m-menu {
    display: block; position: sticky; top: 61px; z-index: 39;
    background: var(--white); border-bottom: 1px solid var(--line);
    box-shadow: 0 14px 34px rgba(0,0,0,.12);
    animation: mDrop .2s ease;
  }
  .m-menu[hidden] { display: none; }
  @keyframes mDrop { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
  body.menu-open { overflow: hidden; }
}

/* ============ Sample gratis ============ */
.sample-strip {
  max-width: 1180px; margin: 22px auto -14px; padding: 14px 20px;
  background: var(--soft); border-radius: 14px;
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  width: calc(100% - clamp(32px, 8vw, 80px));
}
.sample-strip span { font-size: 14.5px; }
.daftar-promo, .sample-cta {
  display: flex; align-items: center; gap: 14px;
  background: var(--soft); border-radius: 14px; padding: 16px 18px; margin-bottom: 18px;
}
.sample-cta { border: 1.5px solid var(--accent); background: var(--white); color: inherit; transition: transform .2s, box-shadow .2s; }
.sample-cta:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(0,0,0,.1); }
.sample-cta-done { border-color: var(--line); }
.dp-ico, .sc-ico { font-size: 30px; flex: none; }
.sc-arrow { margin-left: auto; font-size: 22px; color: var(--accent); font-weight: 800; }
.sample-terms { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin-bottom: 20px; }
.sample-terms ul { margin: 10px 0 0 18px; display: flex; flex-direction: column; gap: 7px; font-size: 14px; }
.sample-terms li::marker { color: var(--accent); }
.sample-sub { font-family: 'Marcellus', serif; font-weight: 400; font-size: 21px; margin-bottom: 14px; }
.sample-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.sample-item { cursor: pointer; display: flex; flex-direction: column; gap: 5px; }
.sample-item input { position: absolute; opacity: 0; pointer-events: none; }
.si-img { position: relative; aspect-ratio: 4/5; border-radius: 14px; overflow: hidden; background: var(--soft); border: 3px solid transparent; transition: border-color .18s; }
.si-img img { width: 100%; height: 100%; object-fit: cover; }
.sample-item input:checked + .si-img { border-color: var(--accent); }
.si-check { position: absolute; top: 8px; right: 8px; width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: #fff; display: none; align-items: center; justify-content: center; font-weight: 800; }
.sample-item input:checked + .si-img .si-check { display: flex; }
.si-name { font-weight: 700; font-size: 14px; line-height: 1.3; }
.sample-note { width: 100%; padding: 11px 13px; border: 1.5px solid var(--line); border-radius: 11px; font-family: inherit; font-size: 14.5px; outline: none; }
.sample-note:focus { border-color: var(--accent); }
.sample-status { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.sample-status h3 { font-family: 'Marcellus', serif; font-weight: 400; font-size: 22px; margin: 10px 0 4px; }
.ss-next { background: var(--soft); border-radius: 12px; padding: 16px; margin-top: 16px; }
.ss-next p { font-size: 14px; margin: 6px 0 12px; }

/* ============ Tombol akun melayang (HP) ============ */
.auth-fab { display: none; }
@media (max-width: 780px) {
  .auth-fab {
    display: flex; gap: 8px; position: fixed; left: 12px; bottom: 18px; z-index: 58;
  }
  .af-btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 12px 18px; border-radius: 999px;
    font-size: 14px; font-weight: 800; line-height: 1;
    box-shadow: 0 8px 22px rgba(0,0,0,.22);
  }
  .af-masuk { background: var(--white); color: var(--ink); border: 1.5px solid var(--line); }
  .af-daftar { background: var(--accent); color: #fff; }
  .af-akun { background: var(--ink); color: #fff; }
  /* Geser popup checkout supaya tidak menabrak tombol ini */
  .buy-toast { bottom: 78px; }
}
@media (max-width: 380px) {
  .af-btn { padding: 11px 14px; font-size: 13px; }
}

/* ============ Hero lebih ringkas di HP ============ */
@media (max-width: 780px) {
  .hero-inner { padding: 40px 20px 34px; }
  .hero-eyebrow { font-size: 10.5px; letter-spacing: .24em; margin-bottom: 12px; }
  .hero-title { font-size: clamp(24px, 6.4vw, 32px); line-height: 1.2; margin-bottom: 12px; }
  .hero-sub { font-size: 14px; margin-bottom: 20px; }
  .hero-actions { gap: 9px; }
  .hero-actions .btn { padding: 11px 20px; font-size: 14px; }
  .hero-stats { margin-top: 26px; gap: 18px; }
  .hero-stats b { font-size: 16px; }
  .hero-stats span { font-size: 11px; }
  .announce { font-size: 11.5px; padding: 6px 14px; }
  .sample-strip { margin-top: 16px; padding: 12px 16px; gap: 10px; }
  .sample-strip span { font-size: 13.5px; }
  .banners { margin-top: -14px; }
  .catalog { padding-top: 34px; }
}
@media (max-width: 480px) {
  .hero-inner { padding: 30px 18px 26px; }
  .hero-title { font-size: 23px; }
  .hero-sub { font-size: 13.5px; margin-bottom: 18px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .hero-stats { margin-top: 22px; gap: 0; justify-content: space-between; }
  .hero-stats > div { flex: 1; }
  .hero-stats b { font-size: 14px; }
  .hero-stats span { font-size: 10px; text-align: center; }
  .section-title { font-size: 22px; }
}
