/* =====================================================================
   @benyoriki Store — MODERN 2026 LAYER
   Dimuat SETELAH style.css. Fokus: tampilan menjual, modern, dan RINGAN
   (tanpa blur/backdrop-filter, animasi hanya transform/opacity, kompatibel
   Chrome 109 / Windows 7). Tidak memakai :has(), color-mix(), nesting CSS.
   ===================================================================== */

/* ---------- 1. Token ---------- */
:root {
  --font: 'Plus Jakarta Sans', 'Segoe UI', system-ui, -apple-system, Arial, sans-serif;
  --font-display: 'Space Grotesk', 'Plus Jakarta Sans', 'Segoe UI', Arial, sans-serif;
  --bg: #F6F3EF;
  --surface-2: #F2EEF5;
  --card-bg: #FFFFFF;
  --text: #17131F;
  --text-muted: #6B657A;
  --border: #E9E4EE;
  --header-bg: #FFFFFF;
  --card-border-soft: rgba(23,19,31,.07);
  --radius: 20px;
  --radius-sm: 12px;
  --radius-lg: 28px;
  --shadow: 0 1px 2px rgba(23,19,31,.04), 0 8px 22px -10px rgba(23,19,31,.12);
  --shadow-hover: 0 18px 36px -16px rgba(255,77,46,.38), 0 2px 6px rgba(23,19,31,.06);
  --cta: linear-gradient(135deg, #FF6A3D 0%, #FF4D2E 55%, #F0381A 100%);
}
body.dark {
  --bg: #0D0B13;
  --surface-2: #1B1726;
  --card-bg: #16131F;
  --text: #F4F2FA;
  --text-muted: #A19DB2;
  --border: #272336;
  --header-bg: #110F19;
  --card-border-soft: rgba(255,255,255,.07);
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 10px 24px -12px rgba(0,0,0,.6);
}
html { scroll-behavior: auto; }
body { background: var(--bg); font-family: var(--font); }
.modal-overlay { background: rgba(12,9,20,.62); }

/* Matikan efek berat (PC/HP lama): animasi tak-berhenti, will-change, 3D */
.flash-icon, .ai-promo-icon, .coin-promo-icon, .badge-ai, .hero-img, .hero-img img,
.account-btn:not(.logged-in), .demo-notice-icon { animation: none !important; }
.product-card, .stat-item, .dash-card { will-change: auto !important; transform-style: flat !important; }

/* ---------- 2. Header ---------- */
#mainHeader {
  background: var(--header-bg) !important;
  background-image: none !important;
  border-bottom: 1px solid var(--border) !important;
  box-shadow: none;
}
#mainHeader.header-shrink { box-shadow: 0 10px 24px -14px rgba(23,19,31,.28); }
.header-inner { gap: 18px; padding: 12px 24px; }
.logo-icon-img { width: 38px; height: 38px; border-radius: 11px; box-shadow: 0 6px 16px -4px rgba(255,77,46,.55); }
.logo-text { font-size: 1.32rem; font-weight: 800; letter-spacing: -.03em; }

.search-bar {
  border: 1.5px solid transparent; border-radius: 16px; background: var(--surface-2);
  max-width: 640px; box-shadow: none; transition: border-color .15s, background-color .15s, box-shadow .15s;
}
.search-bar:focus-within { background: var(--card-bg); border-color: var(--primary); box-shadow: 0 0 0 4px rgba(255,77,46,.13); }
.search-bar input { padding: 12px 18px; font-size: .92rem; }
.search-btn { margin: 4px; border-radius: 12px; background: var(--cta); color: #fff; padding: 0 16px; display: flex; align-items: center; }
.search-btn svg { width: 18px; height: 18px; }

#mainHeader .icon-btn {
  flex-direction: column; justify-content: center; gap: 3px; min-width: 54px; height: 48px;
  padding: 4px 8px; background: transparent; border-radius: 14px; color: var(--text);
}
#mainHeader .icon-btn:hover { background: var(--surface-2); transform: none; }
#mainHeader .icon-btn .hdr-icon { width: 21px; height: 21px; }
#mainHeader .icon-btn .icon-label { display: block !important; font-size: .64rem; font-weight: 600; color: var(--text-muted); }
#mainHeader .icon-btn .badge { top: 2px; right: 8px; width: 17px; height: 17px; font-size: .62rem; background: var(--primary); }
.account-btn.logged-in { background: var(--surface-2) !important; flex-direction: row !important; padding: 4px 12px 4px 5px !important; }

/* Tombol Login Admin — selalu terlihat */
.btn-admin {
  display: inline-flex; align-items: center; gap: 7px; height: 42px; padding: 0 16px;
  border-radius: 14px; font-size: .84rem; font-weight: 700; white-space: nowrap;
  background: #17131F; color: #fff; border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 8px 18px -8px rgba(23,19,31,.55);
}
body.dark .btn-admin { background: #2A2440; }
.btn-admin:hover { background: #2B2440; transform: translateY(-1px); }
.btn-admin .hdr-icon { width: 17px; height: 17px; margin: 0; color: #FFB199; }
.btn-admin.is-admin { background: var(--cta); border-color: transparent; }
.btn-admin.is-admin .hdr-icon { color: #fff; }

/* Kategori */
.category-nav { padding: 10px 24px 12px; gap: 8px; border-top: 0; box-shadow: none; background: transparent; scroll-snap-type: x proximity; }
.cat-btn { padding: 8px 16px; border-radius: 999px; background: var(--surface-2); color: var(--text); font-weight: 600; font-size: .84rem; scroll-snap-align: start; }
.cat-btn:hover { background: var(--primary-light); color: var(--primary-dark); }
.cat-btn.active { background: #17131F; color: #fff; box-shadow: 0 8px 16px -8px rgba(23,19,31,.6); }
body.dark .cat-btn.active { background: var(--cta); }
.cat-btn .cat-icon { width: 16px; height: 16px; }

/* Notifikasi demo di paling atas, ikut ter-scroll hilang; header tetap menempel */
#mainHeader { display: flex; flex-direction: column; top: -32px; }
html.no-notice #mainHeader { top: 0; }
#mainHeader > .header-inner, #mainHeader > .category-nav { width: 100%; box-sizing: border-box; }
.demo-notice { order: -1; max-width: none; width: 100%; height: 32px; box-sizing: border-box; margin: 0; padding: 0 24px; gap: 8px; border: 0; background: #17131F; }
.demo-notice p { font-size: .74rem; color: rgba(255,255,255,.78); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.demo-notice p strong { color: #fff; }
.demo-notice-link { color: #FFB199; }
.demo-notice-close { background: rgba(255,255,255,.12); color: #fff; width: 20px; height: 20px; font-size: .68rem; }
.demo-notice-icon { font-size: .9rem; }
body.dark .demo-notice { background: #0A0810; }

/* ---------- 3. Hero ---------- */
#mainContent { padding-left: 24px; padding-right: 24px; }
.hero-banner { margin: 18px 0 20px; border-radius: 32px; border: 0; box-shadow: 0 30px 60px -30px rgba(40,16,60,.6); }
.hero-slide { min-height: 380px; padding: 44px 56px; border-radius: 32px; gap: 24px; }
.hero-slide::before { background: radial-gradient(560px 300px at 100% 0%, rgba(255,255,255,.16), transparent 60%); }
.hs-1 { background:
  radial-gradient(520px 340px at 88% 12%, rgba(255,189,84,.6), transparent 62%),
  radial-gradient(560px 420px at -5% 105%, rgba(124,92,252,.55), transparent 60%),
  linear-gradient(135deg, #FF5B36 0%, #E8321B 50%, #8F1530 100%); }
.hs-2 { background:
  radial-gradient(520px 340px at 90% 10%, rgba(47,224,200,.4), transparent 62%),
  linear-gradient(135deg, #24165F 0%, #4B35C9 55%, #1D4ED8 100%); }
.hs-3 { background:
  radial-gradient(520px 340px at 90% 10%, rgba(245,180,0,.38), transparent 62%),
  linear-gradient(135deg, #053F3B 0%, #0E8B7F 55%, #2FD3BD 100%); }

.hero-text { max-width: 520px; flex: 1 1 auto; }
.hero-tag { gap: 8px; padding: 7px 14px; font-size: .78rem; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.3); }
.dot-live { width: 8px; height: 8px; border-radius: 50%; background: #7CFFB2; box-shadow: 0 0 0 0 rgba(124,255,178,.7); animation: dotLive 1.8s ease-out infinite; }
@keyframes dotLive { 0% { box-shadow: 0 0 0 0 rgba(124,255,178,.7); } 80%, 100% { box-shadow: 0 0 0 9px rgba(124,255,178,0); } }
.hero-text h2 { font-size: clamp(2rem, 3.6vw, 3rem); line-height: 1.02; letter-spacing: -.035em; font-weight: 800; text-shadow: none; margin-bottom: 14px; }
.hero-text h2 strong { display: block; font-size: clamp(2.7rem, 6vw, 4.8rem); line-height: .98; letter-spacing: -.04em; }
.hero-text p { font-size: 1rem; max-width: 430px; opacity: .92; margin-bottom: 22px; line-height: 1.55; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-text button { display: inline-flex; align-items: center; gap: 8px; padding: 14px 26px; border-radius: 16px; font-size: .92rem; font-weight: 800; background: #fff; color: #17131F; box-shadow: 0 14px 26px -12px rgba(0,0,0,.5); }
.hero-text .hero-ghost { background: rgba(255,255,255,.14); color: #fff; border: 1px solid rgba(255,255,255,.4); box-shadow: none; }
.hero-text .hero-ghost:hover { background: rgba(255,255,255,.24); }
.hero-perks { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 20px; font-size: .78rem; font-weight: 600; opacity: .92; }
.hero-perks li { display: inline-flex; align-items: center; gap: 7px; }
.hero-perks li::before { content: ""; width: 5px; height: 9px; margin: 0 2px 3px 0; border: solid #9CFFC9; border-width: 0 2px 2px 0; transform: rotate(45deg); }

.hero-dots { bottom: 16px; }
.hero-dot { background: rgba(255,255,255,.45); box-shadow: none; }
.hero-dot.active { width: 26px; background: #fff; }

/* Kolase produk */
.hv-collage { position: relative; flex: 0 0 auto; width: min(44%, 440px); height: 320px; font-size: 1rem; }
.hv-card { position: absolute; margin: 0; width: 168px; padding: 8px; border-radius: 22px; background: #fff; box-shadow: 0 26px 40px -18px rgba(0,0,0,.55); }
.hv-card img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 15px; background: #E9E4EE; }
.hv-card figcaption { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 9px 4px 3px; color: #17131F; }
.hv-card b { font-size: .74rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hv-card span { flex-shrink: 0; font-size: .68rem; font-weight: 800; color: #fff; background: #FF4D2E; padding: 2px 7px; border-radius: 7px; }
.hv-a { left: 0; top: 46px; transform: rotate(-7deg); z-index: 1; }
.hv-b { left: 118px; top: 0; transform: rotate(2deg); z-index: 3; width: 180px; }
.hv-c { left: 252px; top: 58px; transform: rotate(8deg); z-index: 2; }
.hv-duo .hv-a { left: 20px; top: 24px; transform: rotate(-5deg); width: 190px; }
.hv-duo .hv-b { left: 200px; top: 60px; transform: rotate(6deg); width: 180px; }

/* Visual pelacakan */
.hv-track { flex: 0 0 auto; width: min(42%, 380px); display: flex; justify-content: center; font-size: 1rem; }
.ht-card { width: 100%; background: #fff; color: #17131F; border-radius: 24px; padding: 20px; transform: rotate(-2deg); box-shadow: 0 30px 46px -20px rgba(0,0,0,.55); }
.ht-top { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.ht-box { width: 44px; height: 44px; border-radius: 14px; background: linear-gradient(135deg, #0E8B7F, #2FD3BD); display: inline-flex; align-items: center; justify-content: center; }
.ht-box svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ht-top b { display: block; font-size: .92rem; font-weight: 800; }
.ht-top small { font-size: .74rem; color: #6B657A; }
.ht-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; font-size: .64rem; font-weight: 600; color: #A19DB2; text-align: center; }
.ht-steps .done { color: #0E8B7F; }
.ht-steps .now { color: #FF4D2E; font-weight: 800; }
.ht-bar { height: 7px; margin-top: 10px; border-radius: 7px; background: #EFEAF3; overflow: hidden; }
.ht-bar i { display: block; height: 100%; width: 68%; border-radius: 7px; background: linear-gradient(90deg, #2FD3BD, #FF7A3D); }

/* ---------- 4. Strip kepercayaan, banner ---------- */
.stats-bar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; overflow: visible; margin-bottom: 20px; }
.stat-item { min-width: 0; padding: 14px 16px; border-radius: 18px; gap: 12px; box-shadow: var(--shadow); }
.stat-item:hover { transform: none; box-shadow: var(--shadow); }
.stat-icon { width: 42px; height: 42px; border-radius: 13px; flex-shrink: 0; background: rgba(255,77,46,.11); color: var(--primary); }
.stat-icon svg { width: 21px; height: 21px; }
.stat-item strong { font-size: 1.2rem; font-weight: 800; }
.stat-item small { font-size: .76rem; font-weight: 500; }

.ai-promo-banner { padding: 18px 22px; border-radius: 24px; margin-bottom: 18px; background: linear-gradient(120deg, #17122B 0%, #231A45 60%, #2C1F58 100%); }
.ai-promo-btn { border-radius: 14px; padding: 12px 20px; box-shadow: 0 12px 22px -12px rgba(255,77,46,.8); }
.trust-band { border-radius: 24px; margin: 18px auto; background: linear-gradient(120deg, #1A1210 0%, #2A1810 60%, #341B10 100%); }
.coin-promo-banner { border-radius: 20px; margin: 0 auto 6px; }

/* ---------- 5. Judul seksi ---------- */
.section-header { flex-direction: row !important; align-items: center !important; justify-content: space-between; gap: 12px; margin: 30px 0 14px; }
.section-title { min-width: 0; flex-wrap: nowrap; }
.section-title h3 { font-size: 1.45rem; font-weight: 800; letter-spacing: -.025em; white-space: nowrap; }
.see-all { white-space: nowrap; flex-shrink: 0; }
.flash-icon { font-size: 1.3rem; }
.countdown-seg { background: #17131F; border-radius: 8px; box-shadow: none; }
body.dark .countdown-seg { background: #FF4D2E; }
.see-all { padding: 7px 14px; border-radius: 999px; background: var(--primary-light); color: var(--primary-dark); font-size: .8rem; font-weight: 700; }
body.dark .see-all { color: #FFB199; }
.filter-chip { border-radius: 999px; padding: 8px 15px; font-weight: 600; background: var(--card-bg); }
.filter-chip.active { background: #17131F; color: #fff; border-color: transparent; }
body.dark .filter-chip.active { background: var(--cta); }
.sort-trigger { border-radius: 999px; }

/* ---------- 6. Kartu produk ---------- */
.product-grid { grid-template-columns: repeat(auto-fill, minmax(214px, 1fr)); gap: 20px; align-items: stretch; }
.product-card.card-wide { grid-column: auto !important; display: flex !important; }
.product-card.card-wide .card-img-wrap { height: auto; min-height: 0; aspect-ratio: 1 / 1; }
.product-card {
  display: flex; flex-direction: column; border-radius: 22px; overflow: hidden;
  background: var(--card-bg); border: 1px solid var(--card-border-soft); box-shadow: var(--shadow);
  transition: transform .2s ease-out, box-shadow .2s ease-out;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); border-color: transparent; }
.card-img-wrap { aspect-ratio: 1 / 1; background: linear-gradient(135deg, var(--surface-2), var(--border)); }
.card-img-wrap .ci-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card-body { display: flex; flex-direction: column; flex: 1 1 auto; padding: 13px 14px 14px; }
.card-category { font-size: .65rem; letter-spacing: .09em; color: var(--text-muted); margin-bottom: 4px; }
.card-body h4 { font-size: .93rem; font-weight: 700; line-height: 1.3; min-height: 2.6em; margin-bottom: 8px; }
.card-price { margin-bottom: 8px; }
.price-current { font-size: 1.12rem; font-weight: 800; letter-spacing: -.02em; }
.price-original { font-size: .74rem; }
.card-meta { margin-bottom: 8px; gap: 6px; flex-wrap: wrap; }
.card-stock { margin-bottom: 8px; }
.stock-bar { margin-bottom: 10px; height: 5px; border-radius: 5px; }
.btn-add-cart {
  margin-top: auto; padding: 11px 10px; border-radius: 13px; font-weight: 800; font-size: .86rem;
  background: var(--cta); color: #fff; box-shadow: 0 10px 18px -10px rgba(255,77,46,.9);
}
.btn-add-cart:hover { background: var(--cta); filter: brightness(1.06); transform: translateY(-1px); box-shadow: 0 14px 22px -10px rgba(255,77,46,.95); }
.btn-add-cart:disabled { background: var(--border); box-shadow: none; filter: none; }
.card-badges .badge-discount, .card-badges .badge-flash, .card-badges .badge-new { padding: 4px 8px; border-radius: 9px; }
.card-wish-btn { width: 34px; height: 34px; background: rgba(255,255,255,.94); }
.card-quick-view { display: none; }

/* ---------- 7. Login admin & demo ---------- */
.login-box { max-width: 420px; padding: 34px 30px 26px; border-radius: 30px; }
.login-header { margin-bottom: 20px; }
.login-icon { width: 62px; height: 62px; margin: 0 auto 14px; border-radius: 20px; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #FF6A3D, #7C5CFC); box-shadow: 0 16px 28px -12px rgba(124,92,252,.7); }
.login-icon svg { width: 30px; height: 30px; color: #fff; }
.login-header h2 { font-size: 1.45rem; letter-spacing: -.03em; }

.btn-demo-admin {
  width: 100%; display: flex; align-items: center; gap: 13px; padding: 13px 16px; text-align: left; cursor: pointer;
  color: #fff; border: 0; border-radius: 18px; font-family: var(--font);
  background: linear-gradient(120deg, #17122B 0%, #2A1F55 100%);
  box-shadow: 0 16px 28px -14px rgba(36,22,95,.9), inset 0 0 0 1px rgba(255,255,255,.08);
  transition: transform .15s, box-shadow .15s;
}
.btn-demo-admin:hover { transform: translateY(-2px); box-shadow: 0 20px 32px -14px rgba(36,22,95,1), inset 0 0 0 1px rgba(255,255,255,.12); }
.btn-demo-admin:active { transform: scale(.985); }
.bda-ic { width: 42px; height: 42px; flex-shrink: 0; border-radius: 13px; display: flex; align-items: center; justify-content: center; background: var(--cta); }
.bda-ic svg { width: 20px; height: 20px; }
.bda-tx { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.bda-tx b { font-size: .95rem; font-weight: 800; }
.bda-tx small { font-size: .74rem; color: rgba(255,255,255,.65); }
.bda-ar { font-size: 1.2rem; opacity: .8; }
.login-or { display: flex; align-items: center; gap: 12px; margin: 18px 0 16px; font-size: .74rem; color: var(--text-muted); font-weight: 600; }
.login-or::before, .login-or::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.login-form .input-group { margin-bottom: 0; }
.login-form .input-group input { padding: 13px 14px; border-radius: 14px; background: var(--surface-2); border: 1.5px solid transparent; }
.login-form .input-group input:focus { background: var(--card-bg); border-color: var(--primary); box-shadow: 0 0 0 4px rgba(255,77,46,.12); }
.pass-wrap { position: relative; display: flex; }
.pass-wrap input { width: 100%; padding-right: 92px !important; }
.pass-toggle { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); border: 0; background: transparent; color: var(--primary); font-family: var(--font); font-size: .76rem; font-weight: 700; padding: 6px 8px; cursor: pointer; border-radius: 8px; }
.pass-toggle:hover { background: var(--primary-light); }
.btn-login { border-radius: 14px; padding: 14px; background: var(--cta); box-shadow: 0 14px 24px -14px rgba(255,77,46,.9); }
.login-demo-hint { text-align: center; margin-top: 14px; font-size: .76rem; color: var(--text-muted); }
.login-demo-hint code { background: var(--surface-2); padding: 2px 8px; border-radius: 7px; font-weight: 700; color: var(--text); }

/* Drawer: item admin */
.drawer-item-admin .drawer-item-text { display: flex; flex-direction: column; gap: 2px; }
.drawer-item-admin .drawer-coin-sub { color: var(--text-muted); font-weight: 500; }

/* ---------- 8. Footer ---------- */
footer { margin-top: 56px; border-radius: 36px 36px 0 0; background: #100D18; overflow: hidden; }
.footer-newsletter { margin: 26px auto 0; max-width: 1352px; width: calc(100% - 48px); border: 1px solid rgba(255,255,255,.08); border-radius: 24px; background: linear-gradient(120deg, rgba(255,77,46,.14), rgba(124,92,252,.14)); }
.footer-divider { display: none; }
.social-btn { border-radius: 12px; }

/* ---------- 9. Tombol melayang (tidak bertumpuk) ---------- */
.chatbot-fab { right: 20px; bottom: 24px; width: 58px; height: 58px; box-shadow: 0 14px 26px -10px rgba(255,77,46,.7); }
.back-to-top { right: 24px; bottom: 96px; width: 48px; height: 48px; }
.dark-mode-btn { right: 24px; bottom: 154px; width: 48px; height: 48px; }

/* =====================================================================
   LOADER 2026 — 4 detik
   ===================================================================== */
.page-loader { position: fixed; inset: 0; z-index: 99999; background: transparent; color: #fff; font-family: var(--font); }
.pl-half { position: absolute; left: 0; right: 0; height: 50.5%; background: #0E0B16; transition: transform .72s cubic-bezier(.76,0,.24,1) .16s; }
.pl-top { top: 0; }
.pl-bottom { bottom: 0; }
.pl-stage { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; overflow: hidden; transition: opacity .32s ease, transform .5s ease; }
.pl-glow { position: absolute; inset: 0; background:
  radial-gradient(60vmax 60vmax at 12% 8%, rgba(255,77,46,.30), transparent 60%),
  radial-gradient(56vmax 56vmax at 92% 96%, rgba(124,92,252,.34), transparent 60%);
  animation: plBreathe 4s ease-in-out infinite alternate; }
@keyframes plBreathe { from { opacity: .7; } to { opacity: 1; } }
.pl-grid { position: absolute; inset: 0; opacity: .5;
  background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(circle at 50% 46%, #000 0, transparent 62%); mask-image: radial-gradient(circle at 50% 46%, #000 0, transparent 62%); }
.pl-center { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; padding: 0 24px; text-align: center; }

.pl-mark { position: relative; width: 176px; height: 176px; margin-bottom: 26px; }
.pl-ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.pl-ring-track { fill: none; stroke: rgba(255,255,255,.09); stroke-width: 3; }
.pl-ring-fill { fill: none; stroke: url(#plg); stroke-width: 4.5; stroke-linecap: round; }
.pl-logo { position: absolute; left: 50%; top: 50%; width: 104px; height: 104px; margin: -52px 0 0 -52px; border-radius: 30px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(145deg, rgba(255,255,255,.12), rgba(255,255,255,.03)); border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 24px 40px -18px rgba(255,77,46,.55); animation: plPop .75s cubic-bezier(.34,1.56,.64,1) both, plBob 2.6s ease-in-out .8s infinite alternate; transition: opacity .25s, transform .3s; }
.pl-logo img { width: 66px; height: 66px; object-fit: contain; display: block; }
@keyframes plPop { from { opacity: 0; transform: scale(.45) rotate(-12deg); } to { opacity: 1; transform: scale(1) rotate(0); } }
@keyframes plBob { from { transform: translateY(-3px); } to { transform: translateY(3px); } }

.pl-chip { position: absolute; width: 42px; height: 42px; border-radius: 14px; display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); opacity: 0; animation: plChipIn .6s ease-out both, plFloat 3s ease-in-out infinite alternate; }
.pl-chip svg { width: 20px; height: 20px; fill: none; stroke: #FFB199; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.pl-c1 { left: -46px; top: 10px; animation-delay: .5s, .5s; }
.pl-c2 { right: -48px; top: 22px; animation-delay: .75s, 1.1s; }
.pl-c2 svg { stroke: #B9A8FF; }
.pl-c3 { left: -34px; bottom: -4px; animation-delay: 1s, 1.6s; }
.pl-c3 svg { stroke: #7FF0DC; }
.pl-c4 { right: -36px; bottom: 6px; animation-delay: 1.25s, .8s; }
@keyframes plChipIn { from { opacity: 0; transform: scale(.5); } to { opacity: 1; transform: scale(1); } }
@keyframes plFloat { from { margin-top: -5px; } to { margin-top: 5px; } }

.pl-check { position: absolute; left: 50%; top: 50%; width: 76px; height: 76px; margin: -38px 0 0 -38px; padding: 20px; border-radius: 50%; opacity: 0; transform: scale(.4);
  background: linear-gradient(135deg, #FF7A3D, #FF4D2E); box-shadow: 0 0 0 10px rgba(255,77,46,.18), 0 20px 40px -10px rgba(255,77,46,.8); fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; transition: opacity .12s, transform .4s cubic-bezier(.34,1.56,.64,1); }
.pl-check path { stroke-dasharray: 30; stroke-dashoffset: 30; }
.pl-done .pl-logo { opacity: 0; transform: scale(.6); animation: none; }
.pl-done .pl-check { opacity: 1; transform: scale(1); }
.pl-done .pl-check path { stroke-dashoffset: 0; transition: stroke-dashoffset .35s ease .12s; }

.pl-brand { font-family: var(--font-display); font-size: 1.9rem; font-weight: 700; letter-spacing: -.03em; line-height: 1; animation: plUp .7s cubic-bezier(.16,1,.3,1) .3s both; }
.pl-b2 { background: linear-gradient(90deg, #FF7A3D, #FFB84D); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.pl-tag { margin-top: 10px; min-height: 20px; font-size: .86rem; color: rgba(255,255,255,.66); font-weight: 500; animation: plUp .7s cubic-bezier(.16,1,.3,1) .45s both; }
.pl-tag.swap { animation: plSwap .4s ease-out both; }
@keyframes plSwap { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }
@keyframes plUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.pl-meter { width: min(240px, 70vw); height: 5px; margin-top: 22px; border-radius: 5px; background: rgba(255,255,255,.1); overflow: hidden; animation: plUp .7s ease .55s both; }
.pl-meter-fill { width: 100%; height: 100%; border-radius: 5px; transform: scaleX(0); transform-origin: 0 50%; background: linear-gradient(90deg, #FF7A3D, #FF4D2E 55%, #7C5CFC); }
.pl-pct { margin-top: 12px; font-family: var(--font-display); font-weight: 700; font-size: 2.1rem; line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; animation: plUp .7s ease .6s both; }
.pl-pct i { font-style: normal; font-size: 1rem; margin-left: 2px; opacity: .55; }

.pl-foot { position: absolute; left: 0; right: 0; bottom: calc(22px + env(safe-area-inset-bottom, 0px)); z-index: 3; display: flex; justify-content: center; gap: 10px; padding: 0 16px; }
.pl-sound, .pl-skip { display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 15px; border-radius: 999px; cursor: pointer; font-family: var(--font); font-size: .78rem; font-weight: 600;
  color: rgba(255,255,255,.88); background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); transition: background-color .15s, border-color .15s; }
.pl-sound:hover, .pl-skip:hover { background: rgba(255,255,255,.14); }
.pl-sound svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pl-sound.is-off { color: #FFC3AB; border-color: rgba(255,122,61,.55); }
.pl-sound.is-off .pl-wave { display: none; }
.pl-sound[aria-pressed="false"]:not(.is-off) .pl-wave { display: none; }
.pl-sound.is-off { animation: plNudge 1.5s ease-in-out infinite; }
@keyframes plNudge { 0%, 100% { transform: none; } 50% { transform: translateY(-3px); } }

.loader-hide { pointer-events: none; }
.loader-hide .pl-stage { opacity: 0; transform: scale(1.05); }
.loader-hide .pl-top { transform: translateY(-101%); }
.loader-hide .pl-bottom { transform: translateY(101%); }
.pl-quick .pl-logo { animation-duration: .4s, 1s; }

/* =====================================================================
   RESPONSIF
   ===================================================================== */
@media (min-width: 1200px) {
  #flashSaleList.product-grid { grid-template-columns: repeat(6, 1fr); }
}
@media (min-width: 1440px) {
  .product-grid { grid-template-columns: repeat(auto-fill, minmax(228px, 1fr)); }
}

/* Flash sale = carousel geser untuk layar < 1200px */
@media (max-width: 1199px) {
  #flashSaleList.product-grid { display: flex; overflow-x: auto; gap: 14px; padding: 4px 2px 18px; margin: 0 -2px; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  #flashSaleList.product-grid::-webkit-scrollbar { display: none; }
  #flashSaleList .product-card { flex: 0 0 218px; scroll-snap-align: start; }
}

@media (max-width: 960px) {
  .hero-slide { padding: 38px 36px; min-height: 340px; }
  .hv-collage { width: 46%; transform: scale(.86); transform-origin: right center; }
  .hv-track { width: 44%; }
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .header-inner { padding: 10px 14px; gap: 10px; }
  .logo-icon-img { width: 34px; height: 34px; }
  .logo-text { font-size: 1.14rem; }
  .header-actions { margin-left: auto; gap: 8px; }
  .search-bar { max-width: none; }
  .search-bar input { padding: 11px 14px; font-size: .9rem; }
  .category-nav { padding: 6px 14px 12px; }
  #mainContent { padding-left: 14px; padding-right: 14px; }

  .hero-banner { margin: 12px 0 14px; border-radius: 26px; }
  .hero-slide { flex-direction: column; align-items: stretch; justify-content: flex-start; padding: 24px 20px 40px; min-height: 0; gap: 14px; border-radius: 26px; }
  .hero-text { max-width: none; }
  .hero-text h2 { font-size: 1.85rem; margin-bottom: 10px; }
  .hero-text h2 strong { font-size: 3.2rem; }
  .hero-text p { font-size: .86rem; margin-bottom: 16px; max-width: none; }
  .hero-text button { padding: 12px 20px; font-size: .86rem; border-radius: 14px; }
  .hero-perks { display: none; }
  .hv-collage { width: 100%; height: 168px; transform: none; align-self: center; max-width: 340px; }
  .hv-card { width: 108px; padding: 6px; border-radius: 17px; }
  .hv-card img { aspect-ratio: 1 / 1; border-radius: 12px; }
  .hv-card figcaption { padding-top: 7px; }
  .hv-card b { font-size: .66rem; }
  .hv-a { left: 4px; top: 22px; }
  .hv-b { left: 106px; top: 0; width: 118px; }
  .hv-c { left: 222px; top: 26px; }
  .hv-duo .hv-a { left: 24px; top: 10px; width: 128px; }
  .hv-duo .hv-b { left: 168px; top: 22px; width: 124px; }
  .hv-track { width: 100%; }
  .ht-card { max-width: 320px; padding: 16px; }
  .hero-dots { bottom: 12px; }

  .stats-bar { gap: 8px; margin-bottom: 14px; }
  .stat-item { padding: 12px; gap: 10px; border-radius: 16px; }
  .stat-icon { width: 38px; height: 38px; border-radius: 12px; }
  .stat-item strong { font-size: 1.05rem; }
  .ai-promo-banner { padding: 16px; border-radius: 22px; align-items: stretch; }
  .ai-promo-btn { width: 100%; }

  .section-title { gap: 8px; }
  .section-title h3 { font-size: 1.15rem; }
  .section-header { margin: 24px 0 12px; }
  .countdown-seg { font-size: .7rem; padding: 3px 5px; min-width: 21px; }
  .see-all { padding: 6px 11px; font-size: .74rem; }
  .demo-notice { padding: 0 14px; }
  .header-inner { padding: 8px 14px 6px; }
  .search-bar input { padding: 10px 14px; }
  .category-nav { padding: 4px 14px 10px; }

  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .product-card { border-radius: 18px; }
  .card-body { padding: 10px 10px 12px; }
  .card-body h4 { font-size: .84rem; }
  .price-current { font-size: 1rem; }
  .card-meta { font-size: .7rem; }
  .btn-add-cart { padding: 10px 8px; font-size: .82rem; border-radius: 12px; }
  #flashSaleList .product-card { flex-basis: 168px; }
  .card-wish-btn { width: 32px; height: 32px; top: 8px; right: 8px; }

  footer { border-radius: 28px 28px 0 0; margin-top: 40px; }
  .footer-newsletter { width: calc(100% - 28px); padding: 20px 16px; }
  .dark-mode-btn { display: none !important; }
  .back-to-top { bottom: 150px; right: 16px; width: 44px; height: 44px; }
  .chatbot-fab { bottom: 84px; right: 16px; width: 54px; height: 54px; }

  /* login */
  .login-box { padding: 28px 20px 22px; }
}

@media (max-width: 480px) {
  .hero-text .hero-ghost { display: none; }
  .btn-admin { height: 40px; padding: 0 12px; }
  .btn-admin-label { display: none; }
  .btn-admin .hdr-icon { width: 20px; height: 20px; }
  .btn-admin.is-admin .btn-admin-label { display: inline; }
  .pl-mark { width: 150px; height: 150px; margin-bottom: 22px; }
  .pl-logo { width: 90px; height: 90px; margin: -45px 0 0 -45px; border-radius: 26px; }
  .pl-logo img { width: 58px; height: 58px; }
  .pl-brand { font-size: 1.65rem; }
  .pl-c1 { left: -34px; } .pl-c2 { right: -36px; } .pl-c3 { left: -24px; } .pl-c4 { right: -26px; }
  .pl-chip { width: 38px; height: 38px; border-radius: 12px; }
}

@media (max-width: 360px) {
  .hero-text h2 strong { font-size: 2.7rem; }
  .product-grid { gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  .pl-glow, .pl-chip, .pl-logo, .dot-live { animation: none !important; }
  .pl-chip { opacity: 1; }
}
