:root {
  --bg: #1a1a2e;
  --white: #ffffff;
  --dark: #1a1a2e;
  --dark2: #16213e;
  --accent: #e63946;
  --gold: #e9c46a;
  --text: #2d2d2d;
  --text-muted: #888;
  --border: #e8e8e8;
  --radius: 14px;
  --shadow: 0 4px 24px rgba(0,0,0,0.10);
  --shadow-hover: 0 8px 32px rgba(0,0,0,0.18);
  --int-high: #16a34a;
  --int-med:  #ca8a04;
  --int-low:  #e63946;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  background-color: var(--bg);
  background-size: cover; background-attachment: fixed; background-position: center;
  color: var(--text); font-family: 'Segoe UI', system-ui, sans-serif;
  padding-top: 64px; padding-bottom: 20px;
}
body::before {
  content: ''; position: fixed; inset: 0;
  background: rgba(15,10,30,0.82); z-index: 0; pointer-events: none;
}
body > * { position: relative; z-index: 1; }
a { text-decoration: none; color: inherit; }
.container { max-width: 1160px; margin: 0 auto; padding: 0 20px; }

/* ANNOUNCEMENT */
.announcement-bar { background: linear-gradient(90deg,var(--accent),#c1121f); color:#fff; padding:8px 0; font-size:0.85rem; font-weight:500; overflow:hidden; }
.marquee-inner { display:inline-block; white-space:nowrap; animation:marquee 18s linear infinite; }
@keyframes marquee { from{transform:translateX(100vw)} to{transform:translateX(-100%)} }

/* HEADER */
.header { background:rgba(255,255,255,0.97); backdrop-filter:blur(10px); border-bottom:1px solid var(--border); padding:14px 0; position:fixed !important; top:0 !important; left:0; right:0; z-index:9999; box-shadow:0 2px 12px rgba(0,0,0,0.15); }
.header-inner { display:flex; align-items:center; justify-content:space-between; }
.logo-text { font-size:1.5rem; font-weight:800; color:var(--dark); letter-spacing:-0.5px; }
.nav-links { display:flex; align-items:center; gap:28px; }
.nav-links a { color:var(--text-muted); font-size:0.9rem; font-weight:500; }
.nav-wa { background:#25d366; color:#fff !important; padding:8px 16px; border-radius:50px; display:flex; align-items:center; gap:6px; font-weight:600 !important; }

/* HERO */
.hero { min-height:320px; position:relative; display:flex; align-items:center; padding:60px 0;
  background-size:cover; background-position:center; background-attachment:fixed;
  background-color: var(--dark); }
.hero-overlay { position:absolute; inset:0; background:linear-gradient(135deg,rgba(10,5,25,0.88) 0%,rgba(26,26,46,0.75) 100%); }
.hero-content { position:relative; z-index:1; max-width:680px; }
.hero-badge { display:inline-flex; align-items:center; gap:8px; background:rgba(233,196,106,0.2); border:1px solid rgba(233,196,106,0.4); color:var(--gold); padding:6px 16px; border-radius:50px; font-size:0.8rem; font-weight:700; margin-bottom:20px; }
.hero h1 { font-size:clamp(1.8rem,4.5vw,3rem); font-weight:900; color:#fff; line-height:1.2; margin-bottom:14px; }
.hero p { font-size:1.1rem; color:rgba(255,255,255,0.75); }

/* HERO BUTTONS */
.hero-btn-bar { display:flex; width:100%; }
.hero-login, .hero-daftar { flex:1; display:flex; align-items:center; justify-content:center; gap:8px; padding:16px 10px; font-size:1rem; font-weight:700; text-decoration:none; transition:filter 0.2s; }
.hero-login  { background:var(--color-login,  #2563eb); color:#fff; }
.hero-daftar { background:var(--color-daftar, #e63946); color:#fff; }
.hero-login:hover, .hero-daftar:hover { filter:brightness(1.12); }

/* CATEGORY */
.cat-section { padding:28px 0 16px; }
.cat-scroll-wrap { overflow-x:auto; -webkit-overflow-scrolling:touch; scrollbar-width:none; padding-bottom:6px; }
.cat-scroll-wrap::-webkit-scrollbar { display:none; }
.cat-icon-row { display:flex; gap:14px; width:max-content; padding:4px 2px; }
.cat-icon-item { display:flex; flex-direction:column; align-items:center; gap:8px; cursor:pointer; transition:transform 0.2s; min-width:72px; }
.cat-icon-item:hover { transform:translateY(-4px); }
.cat-icon-item.active .cat-icon-img-wrap { border-color:#fff; background:rgba(255,255,255,0.18); }
.cat-icon-item.active .cat-icon-label { color:#fff; font-weight:800; }
.cat-icon-img-wrap { width:64px; height:64px; border-radius:50%; border:2px solid rgba(255,255,255,0.2); background:rgba(255,255,255,0.08); display:flex; align-items:center; justify-content:center; overflow:hidden; transition:all 0.2s; }
.cat-icon-img-wrap img { width:100%; height:100%; object-fit:cover; }
.cat-icon-img-wrap i { font-size:1.6rem; color:rgba(255,255,255,0.7); }
.cat-icon-label { font-size:0.72rem; font-weight:600; color:rgba(255,255,255,0.6); text-align:center; white-space:nowrap; }

/* SEARCH */
.products-section { padding:10px 0 80px; }
.search-wrap { padding:0 0 20px; }
.search-box { display:flex; align-items:center; background:rgba(255,255,255,0.1); border:1.5px solid rgba(255,255,255,0.2); border-radius:50px; padding:10px 20px; gap:10px; transition:border-color 0.2s; }
.search-box:focus-within { border-color:#fff; background:rgba(255,255,255,0.15); }
.search-box i { color:rgba(255,255,255,0.5); font-size:0.95rem; }
.search-box input { flex:1; background:none; border:none; outline:none; color:#fff; font-size:0.92rem; }
.search-box input::placeholder { color:rgba(255,255,255,0.4); }

/* PRODUCTS GRID */
.products-grid { display:grid; grid-template-columns:repeat(5,1fr); gap:16px; }

/* PRODUCT CARD */
.product-card { background:var(--white); border-radius:var(--radius); box-shadow:var(--shadow); overflow:hidden; position:relative; transition:all 0.3s; border:2px solid transparent; }
.product-card:hover { transform:translateY(-4px); box-shadow:var(--shadow-hover); }
.product-card.interest-high { border-color:var(--int-high,#16a34a); }
.product-card.interest-med  { border-color:var(--int-med, #ca8a04); }
.product-card.interest-low  { border-color:var(--int-low, #e63946); }
.card-badge { position:absolute; top:14px; left:14px; z-index:2; background:var(--accent); color:#fff; padding:4px 12px; border-radius:50px; font-size:0.72rem; font-weight:700; }
.card-img-wrap { width:100%; aspect-ratio:4/3; overflow:hidden; background:#f0f0f0; display:flex; align-items:center; justify-content:center; }
.card-img-wrap img { width:100%; height:100%; object-fit:cover; transition:transform 0.4s; }
.product-card:hover .card-img-wrap img { transform:scale(1.06); }
.img-placeholder { font-size:4rem; color:#ddd; }
.card-body { padding:12px; }
.cat-tag { display:inline-block; background:#f0f4ff; color:#3b5bdb; padding:3px 10px; border-radius:20px; font-size:0.72rem; font-weight:700; margin-bottom:6px; text-transform:uppercase; letter-spacing:0.04em; }
.card-body h3 { font-size:0.92rem; font-weight:700; color:var(--dark); margin-bottom:5px; line-height:1.4; }
.card-desc { font-size:0.78rem; color:var(--text-muted); line-height:1.6; margin-bottom:10px; }

/* INTEREST BAR */
.interest-wrap { margin-bottom:8px; }
.interest-bar-bg { background:#fff; border:1px solid #e5e7eb; border-radius:50px; height:22px; overflow:hidden; position:relative; }
.interest-bar-fill { height:100%; border-radius:50px; display:flex; align-items:center; justify-content:flex-end; padding-right:8px; min-width:36px; }
.interest-high .interest-bar-fill { background:var(--int-high,#16a34a); }
.interest-med  .interest-bar-fill { background:var(--int-med, #ca8a04); }
.interest-low  .interest-bar-fill { background:var(--int-low, #e63946); }
.interest-pct { font-size:0.7rem; font-weight:800; color:#fff; white-space:nowrap; line-height:1; }

/* STICKY BAR */
.sticky-bar { position:fixed; bottom:10px; left:50%; transform:translateX(-50%); z-index:200; display:flex; gap:6px; align-items:center; background:rgba(0,0,0,0.55); backdrop-filter:blur(8px); padding:5px 10px; border-radius:50px; box-shadow:0 4px 20px rgba(0,0,0,0.3); white-space:nowrap; }
.sticky-btn { display:inline-flex; align-items:center; padding:5px 14px; border-radius:50px; font-size:0.72rem; font-weight:700; cursor:pointer; transition:filter 0.2s; color:#fff; text-decoration:none; }
.sticky-btn:hover { filter:brightness(1.15); transform:translateY(-1px); }

/* FOOTER */
.footer { background:var(--dark); color:rgba(255,255,255,0.8); padding:50px 0 24px; }
.footer-top { display:flex; justify-content:space-between; align-items:flex-start; flex-wrap:wrap; gap:24px; margin-bottom:32px; }
.footer-logo { font-size:1.4rem; font-weight:800; color:#fff; margin-bottom:10px; }
.footer-desc { font-size:0.85rem; color:rgba(255,255,255,0.5); max-width:320px; line-height:1.6; }
.footer-social { display:flex; gap:10px; }
.social-btn { width:42px; height:42px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:1.1rem; transition:transform 0.2s; }
.social-btn.wa { background:#25d366; color:#fff; }
.social-btn.tg { background:#0088cc; color:#fff; }
.social-btn.fb { background:#1877f2; color:#fff; }
.social-btn.ig { background:linear-gradient(135deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888); color:#fff; }
.social-btn:hover { transform:scale(1.12); }
.footer-bottom { border-top:1px solid rgba(255,255,255,0.1); padding-top:20px; text-align:center; font-size:0.82rem; color:rgba(255,255,255,0.35); }

/* RESPONSIVE */
@media (max-width:768px) {
  .products-grid { grid-template-columns:repeat(3,1fr); gap:12px; }
}
@media (max-width:480px) {
  .nav-links { display:none; }
  .products-grid { grid-template-columns:repeat(3,1fr); gap:8px; }
  .card-body { padding:8px; }
  .card-body h3 { font-size:0.72rem; }
  .card-desc { font-size:0.65rem; margin-bottom:6px; }
  .cat-tag { font-size:0.6rem; padding:2px 6px; }
  .sticky-bar { gap:4px; padding:4px 8px; }
  .sticky-btn { padding:4px 10px; font-size:0.65rem; }
}
