@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --primary: #6d5df6;
  --primary-2: #9b5df0;
  --primary-dark: #4b3bcb;
  --accent: #ffb648;
  --accent-2: #ff7eb3;
  --bg: #f4f6fb;
  --bg-gradient: radial-gradient(1200px 600px at 10% -10%, #ede9fe 0%, transparent 60%),
    radial-gradient(1000px 500px at 110% 0%, #ffe8f3 0%, transparent 55%), #f4f6fb;
  --card: #ffffff;
  --text: #171a2b;
  --muted: #6b7094;
  --line: rgba(110, 120, 160, 0.14);
  --radius-lg: 22px;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 8px 30px rgba(62, 70, 130, 0.10);
  --shadow-hover: 0 18px 44px rgba(62, 70, 130, 0.16);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }
#katalog, .howto { scroll-margin-top: 84px; }

body {
  font-family: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  background: var(--bg-gradient);
  background-attachment: fixed;
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

.hidden { display: none !important; }
.muted { color: var(--muted); }
.center { text-align: center; }

/* ---------- promo bar (header banner) ---------- */
.promo-bar {
  background: linear-gradient(120deg, #f90 0%, #ffb648 45%, #ff7eb3 100%);
  color: #42110a;
  text-align: center;
  padding: 10px 20px;
  font-weight: 800;
  font-size: 0.9rem;
  letter-spacing: 0.01em;
  overflow: hidden;
}
.promo-track {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  max-width: 100%;
  white-space: nowrap;
  animation: promoSlide 18s linear infinite;
}
.promo-msg { display: inline-flex; align-items: center; gap: 8px; }
.promo-msg::after {
  content: "•";
  opacity: 0.5;
  margin-left: 10px;
}
.promo-msg:last-child::after { display: none; margin-left: 0; }
@keyframes promoSlide {
  0%, 22% { transform: translateX(0); }
  38%, 72% { transform: translateX(-33%); }
  88%, 100% { transform: translateX(-66%); }
}

/* ---------- topbar / navbar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  box-shadow: 0 1px 0 var(--line), 0 10px 30px rgba(62, 70, 130, 0.05);
}
.topbar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 16px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
}
.brand-logo { width: 38px; height: 38px; flex-shrink: 0; }
.brand-text { line-height: 1; }
.brand-accent {
  background: linear-gradient(120deg, var(--primary), var(--primary-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.nav { display: flex; align-items: center; gap: 10px; }
.nav-right { margin-left: auto; }
.nav .btn { padding: 8px 15px; font-size: 0.88rem; border-radius: 10px; box-shadow: none; }

/* ---------- category strip ---------- */
.cat-bar {
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.55);
}
.cat-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.cat-menu {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: 9px 0;
  flex: 1;
  min-width: 0;
}
.cat-menu::-webkit-scrollbar { display: none; }
.cat-menu { scrollbar-width: none; }
.top-search-wrap { position: relative; flex-shrink: 0; margin-left: auto; }
.top-search {
  width: 180px;
  padding: 7px 30px 7px 13px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.85rem;
  background: #fff;
  color: var(--text);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
  -webkit-appearance: none;
}
.top-search:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(93, 80, 240, 0.12);
}
.top-search::placeholder { color: #aab1c8; }
.top-search-clear {
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  border: none;
  border-radius: 50%;
  background: #f1f3fb;
  color: var(--muted);
  font-weight: 800;
  font-size: 0.7rem;
  line-height: 1;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
}
.top-search-clear:hover { background: #e4e8f6; color: var(--text); }
.cat-drop-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 16px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--text);
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: all 0.15s ease;
  flex-shrink: 0;
}
.cat-drop-btn:hover { border-color: var(--primary); color: var(--primary); }
.cat-drop-btn.open { border-color: var(--primary); color: var(--primary); box-shadow: 0 0 0 3px rgba(93, 80, 240, 0.12); }
.cat-drop-chev { transition: transform 0.2s ease; font-size: 0.8rem; }
.cat-drop-btn.open .cat-drop-chev { transform: rotate(180deg); }
.cat-drop-panel {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 60;
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 18px 40px rgba(20, 26, 60, 0.12);
  padding: 18px 0 20px;
  display: none;
  max-height: 78vh;
  overflow-y: auto;
}
.cat-drop-panel.open {
  display: block;
  animation: fdrop 0.18s ease;
}
@keyframes fdrop {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}
.cat-drop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 10px;
}
.cat-drop-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 14px;
  border: 1px solid transparent;
  border-radius: 12px;
  color: var(--text);
  text-decoration: none;
  transition: all 0.14s ease;
}
.cat-drop-item:hover {
  background: #f4f6fb;
  border-color: var(--line);
  transform: translateY(-1px);
}
.cat-drop-item .d-icon { font-size: 1.3rem; width: 32px; text-align: center; flex-shrink: 0; }
.cat-drop-item .d-name { display: block; font-weight: 700; font-size: 0.95rem; }
.cat-drop-item .d-count { display: block; font-size: 0.75rem; color: var(--muted); font-weight: 600; }
.cat-drop-foot { padding: 16px 24px 0; }
.cat-drop-all { width: 100%; justify-content: center; }
/* ---------- category menu ---------- */
.cat-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  background: transparent;
  border: 1px solid transparent;
  color: var(--muted);
  font-family: inherit;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 8px 13px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.18s ease;
  white-space: nowrap;
}
.cat-tab:hover {
  color: var(--primary);
  background: rgba(109, 93, 246, 0.08);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.18s ease;
  box-shadow: 0 4px 14px rgba(109, 93, 246, 0);
}
.btn:active { transform: scale(0.97); }
.btn-primary {
  background: linear-gradient(120deg, var(--primary), var(--primary-2));
  color: #fff;
  box-shadow: 0 8px 20px rgba(93, 80, 240, 0.32);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(93, 80, 240, 0.4);
}
.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 1.6px solid rgba(109, 93, 246, 0.35);
}
.btn-outline:hover { background: var(--primary); border-color: var(--primary); color: #fff; transform: translateY(-1px); }
.btn-lg { padding: 15px 30px; font-size: 1.02rem; border-radius: 14px; }
.btn-block { width: 100%; }
.btn-cta {
  background: #fff;
  color: var(--primary);
  box-shadow: 0 10px 26px rgba(30, 20, 90, 0.28);
}
.btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(30, 20, 90, 0.36);
  background: #fff;
  color: var(--primary-dark);
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 92px 24px 96px;
  color: #fff;
  isolation: isolate;
  width: min(1160px, calc(100% - 28px));
  margin: 18px auto 10px;
  border-radius: 28px;
}
.hero.has-banner {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.hero.has-banner::before {
  display: none;
}
.hero.has-banner::after {
  background: linear-gradient(180deg, rgba(18, 15, 52, 0.5) 0%, rgba(18, 15, 52, 0.55) 40%, rgba(18, 15, 52, 0.78) 100%);
  background-image: none;
  opacity: 1;
  mask-image: none;
  z-index: -1;
}
.hero.has-banner .hero-blob,
.hero.has-banner .hero-particle {
  display: none;
}
.hero.has-banner h1,
.hero.has-banner p,
.hero.has-banner .hero-badge,
.hero.has-banner .hero-stats,
.hero.has-banner .btn {
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.35);
}
.hero::before {
  content: "";
  position: absolute;
  inset: -60%;
  background:
    radial-gradient(620px 320px at 18% 18%, rgba(155, 93, 240, 0.6), transparent 60%),
    radial-gradient(520px 320px at 82% 12%, rgba(255, 126, 179, 0.45), transparent 55%),
    radial-gradient(740px 420px at 50% 95%, rgba(90, 70, 220, 0.5), transparent 60%),
    conic-gradient(from 0deg at 50% 50%, #5b4bd8, #6d5df6, #8b5cf6, #a855f7, #d946ef, #a855f7, #8b5cf6, #6d5df6, #5b4bd8);
  z-index: -1;
  animation: heroMove 22s linear infinite;
}
@keyframes heroMove {
  0% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(8deg) scale(1.12); }
  100% { transform: rotate(0deg) scale(1); }
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.16) 1px, transparent 1px);
  background-size: 26px 26px;
  z-index: -1;
  opacity: 0.5;
  mask-image: radial-gradient(700px 400px at 50% 20%, #000, transparent 75%);
}
.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.5;
  z-index: -1;
  animation: float 9s ease-in-out infinite;
}
.blob-1 { width: 260px; height: 260px; background: rgba(255, 209, 255, 0.45); top: -60px; left: 8%; }
.blob-2 { width: 200px; height: 200px; background: rgba(64, 220, 220, 0.35); bottom: -40px; right: 10%; animation-delay: -4.5s; }
.blob-3 { width: 170px; height: 170px; background: rgba(255, 180, 72, 0.35); top: 40%; right: 22%; animation-delay: -2.2s; }
.blob-4 { width: 140px; height: 140px; background: rgba(94, 234, 212, 0.35); top: 18%; left: 22%; animation-delay: -6.5s; }
@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-22px) scale(1.06); }
}
.hero-particle {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.8);
  z-index: -1;
  animation: particleUp linear infinite;
}
.p1 { width: 8px; height: 8px; left: 12%; bottom: 8%; animation-duration: 9s; }
.p2 { width: 5px; height: 5px; left: 26%; bottom: -12px; animation-duration: 12s; animation-delay: -3s; opacity: 0.7; }
.p3 { width: 11px; height: 11px; left: 48%; bottom: 2%; animation-duration: 8s; animation-delay: -5s; opacity: 0.5; }
.p4 { width: 6px; height: 6px; left: 66%; bottom: -18px; animation-duration: 13s; animation-delay: -7s; opacity: 0.8; }
.p5 { width: 9px; height: 9px; left: 82%; bottom: 6%; animation-duration: 10s; animation-delay: -2s; opacity: 0.6; }
.p6 { width: 5px; height: 5px; left: 90%; bottom: 12%; animation-duration: 11s; animation-delay: -6s; opacity: 0.7; }
@keyframes particleUp {
  0% { transform: translateY(0); opacity: 0; }
  10% { opacity: 0.7; }
  90% { opacity: 0.6; }
  100% { transform: translateY(-520px); opacity: 0; }
}
/* wave divider bawah hero */
.hero-wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  line-height: 0;
  z-index: 1;
  pointer-events: none;
}
.hero-wave svg { display: block; width: 100%; height: 70px; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #fff;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 8px 16px;
  border-radius: 999px;
  backdrop-filter: blur(8px);
  margin-bottom: 22px;
}
.hero-badge .pulse {
  width: 8px; height: 8px; border-radius: 50%;
  background: #5eead4;
  box-shadow: 0 0 0 0 rgba(94, 234, 212, 0.7);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(94, 234, 212, 0.6); }
  70% { box-shadow: 0 0 0 10px rgba(94, 234, 212, 0); }
  100% { box-shadow: 0 0 0 0 rgba(94, 234, 212, 0); }
}
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.12;
  margin-bottom: 14px;
  text-shadow: 0 4px 24px rgba(30, 20, 90, 0.25);
}
.hero h1 .grad {
  background: linear-gradient(120deg, #ffe29f, #ffb648);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p { font-size: 1.12rem; max-width: 520px; margin: 0 auto 30px; opacity: 0.92; font-weight: 500; }
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 34px;
  margin-top: 46px;
  flex-wrap: wrap;
}
.hero-stat h3 { font-size: 1.7rem; font-weight: 800; letter-spacing: -0.02em; }
.hero-stat span { font-size: 0.85rem; opacity: 0.85; font-weight: 600; }

/* ---------- section ---------- */
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 10px;
}
.section-title {
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.section-title .grad {
  background: linear-gradient(120deg, var(--primary), var(--primary-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 14px;
  box-shadow: 0 2px 8px rgba(62, 70, 130, 0.05);
}
.status-badge::before {
  content: "";
  width: 7px; height: 7px; border-radius: 50%;
  background: linear-gradient(120deg, var(--primary), var(--primary-2));
}

/* ---------- category sections ---------- */
.cat-section {
  margin-bottom: 14px;
  scroll-margin-top: 110px;
}
.cat-section + .cat-section {
  margin-top: 44px;
}
.cat-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.cat-section-title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.18rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.cat-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 13px;
  background: linear-gradient(135deg, rgba(94, 89, 255, 0.14), rgba(255, 86, 137, 0.14));
  border: 1px solid rgba(94, 89, 255, 0.18);
  font-size: 1.15rem;
}
.cat-count {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 12px;
}
.dropdown-head .cat-count {
  margin-left: 8px;
}

/* ---------- kategori page ---------- */
.kategori-hero {
  padding-top: 46px;
}
.kategori-hero h1 {
  font-size: 1.9rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.kategori-hero p {
  color: var(--muted);
  margin: 6px 0 0;
}
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 16px;
  cursor: pointer;
  transition: all 0.18s ease;
  box-shadow: 0 2px 8px rgba(62, 70, 130, 0.06);
}
.chip:hover {
  border-color: var(--primary);
  transform: translateY(-1px);
}
.chip-active {
  background: linear-gradient(120deg, var(--primary), var(--primary-2));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 6px 16px rgba(94, 89, 255, 0.28);
}

/* ---------- grouped/product variant card ---------- */
.card-group .var-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
}
.card-group .var-list[hidden] {
  display: none;
}
.var-toggle {
  width: 100%;
  justify-content: center;
  margin-top: 14px;
}
.var-toggle .vcount {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  border-radius: 999px;
  background: linear-gradient(120deg, var(--primary), var(--primary-2));
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0 6px;
}
.var-toggle .vchev {
  display: inline-block;
  transition: transform 0.22s ease;
}
.var-toggle.var-open .vchev {
  transform: rotate(180deg);
}
.var-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  background: var(--bg, #f7f8fd);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 9px 12px;
}
.var-main {
  flex: 1;
  min-width: 0;
}
.var-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ink);
}
.var-price {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--primary);
}
.var-note {
  flex-basis: 100%;
  font-size: 0.72rem;
  font-weight: 600;
  color: #b45309;
}
.btn-sm {
  font-size: 0.78rem;
  font-weight: 700;
  padding: 7px 14px;
  border-radius: 10px;
}

/* ---------- horizontal product rows (beranda) ---------- */
.cat-list {
  display: block;
  padding-bottom: 20px;
}
.hscroll {
  display: flex;
  align-items: stretch;
  gap: 20px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  cursor: grab;
  padding-bottom: 18px;
  margin-right: -24px;
  padding-right: 24px;
  scroll-snap-type: x proximity;
  scroll-behavior: smooth;
}
.hscroll:active { cursor: grabbing; }
.hscroll::-webkit-scrollbar { display: none; }
.hscroll { scrollbar-width: none; }
.hscroll .card {
  flex: 0 0 auto;
  width: 268px;
  scroll-snap-align: start;
}
.hscroll .card-group { width: 286px; }
.hscroll-wrap { position: relative; }
.hscroll-wrap::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 18px;
  right: 0;
  width: 52px;
  background: linear-gradient(90deg, transparent, var(--bg) 88%);
  pointer-events: none;
  display: none;
}
.cat-section.overflowing .hscroll-wrap::after { display: block; }
.hscroll-arrows {
  display: inline-flex;
  gap: 6px;
  margin-left: auto;
}
.cat-section:not(.overflowing) .hscroll-arrows { display: none; }
.hscroll-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  font-weight: 900;
  font-size: 1.05rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.hscroll-btn:hover {
  background: linear-gradient(120deg, var(--primary), var(--primary-2));
  color: #fff;
  border-color: transparent;
  transform: scale(1.06);
}

/* ---------- grid / cards ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  padding-bottom: 54px;
}
.card {
  position: relative;
  background: var(--card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  animation: rise 0.4s ease both;
}
@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--primary-2), var(--accent-2));
  opacity: 0.9;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}
.card .cat-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--primary);
  background: rgba(109, 93, 246, 0.09);
  border-radius: 999px;
  padding: 4px 11px;
}
.card h3 { font-size: 1.12rem; font-weight: 800; word-break: break-word; letter-spacing: -0.01em; }
.card .stok { color: var(--muted); font-size: 0.9rem; font-weight: 600; }
.card .stok b { color: var(--text); }
.card .harga {
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(120deg, var(--primary), var(--primary-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.card .btn { margin-top: 6px; }

/* ---------- form ---------- */
.card-form {
  max-width: 440px;
  margin: 64px auto;
  background: var(--card);
  padding: 34px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-hover);
  border: 1px solid var(--line);
  animation: rise 0.4s ease both;
}
.card-form h2 { margin-bottom: 20px; text-align: center; font-weight: 800; letter-spacing: -0.02em; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-weight: 700; font-size: 0.9rem; margin-bottom: 7px; }
.form-group input {
  width: 100%;
  padding: 13px 14px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  font-family: inherit;
  font-size: 1rem;
  background: #fbfcff;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.form-group input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(109, 93, 246, 0.14);
}
.form-error { color: #e11d48; font-size: 0.9rem; font-weight: 600; margin-bottom: 10px; min-height: 1.2em; text-align: center; }
.form-footer { text-align: center; margin-top: 16px; color: var(--muted); font-size: 0.95rem; }
.form-footer a { color: var(--primary); text-decoration: none; font-weight: 700; }

/* ---------- admin table ---------- */
.table-wrap {
  overflow-x: auto;
  background: var(--card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
table { width: 100%; border-collapse: collapse; }
th, td { padding: 14px 16px; text-align: left; border-bottom: 1px solid #eef1f9; font-size: 0.93rem; }
th {
  background: linear-gradient(180deg, #fafbff, #f6f8ff);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}
tr:last-child td { border-bottom: none; }
tbody tr { transition: background 0.12s; }
tbody tr:hover { background: #fafbff; }
.price-input {
  width: 120px;
  padding: 9px 10px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.95rem;
}
.price-input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(109, 93, 246, 0.12); }
.save-btn { padding: 9px 16px; font-size: 0.9rem; }

/* ---------- howto ---------- */
.howto { padding: 10px 0 20px; }
.howto-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 18px;
  margin-top: 18px;
  padding-bottom: 40px;
}
.howto-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 22px;
  position: relative;
}
.howto-num {
  position: absolute;
  top: -14px;
  left: 18px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(120deg, var(--primary), var(--primary-2));
  color: #fff;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 14px rgba(93, 80, 240, 0.35);
}
.howto-card h3 { font-size: 1.02rem; font-weight: 800; margin-top: 6px; margin-bottom: 4px; }
.howto-card p { color: var(--muted); font-size: 0.92rem; }

/* ---------- footer ---------- */
.footer {
  background: var(--card);
  border-top: 1px solid var(--line);
  padding: 34px 0 0;
  color: var(--muted);
  font-size: 0.93rem;
  font-weight: 500;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  padding-bottom: 26px;
}
.footer-brand { max-width: 320px; }
.footer-logo { height: 46px; margin-bottom: 10px; }
.footer-links { display: flex; gap: 48px; flex-wrap: wrap; }
.footer-col h4 {
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text);
  margin-bottom: 10px;
}
.footer-col p, .footer-col a { display: block; font-size: 0.9rem; color: var(--muted); text-decoration: none; margin-bottom: 6px; }
.footer-col a:hover { color: var(--primary); }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding: 16px 24px;
  text-align: center;
  font-size: 0.85rem;
}

/* ---------- floating whatsapp ---------- */
.wa-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 26px rgba(37, 211, 102, 0.45);
  z-index: 70;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.wa-float:hover { transform: translateY(-3px) scale(1.05); box-shadow: 0 14px 32px rgba(37, 211, 102, 0.55); }

/* ---------- stock low badge ---------- */
.stock-low {
  display: inline-block;
  background: #ffe4ec;
  color: #d6315d;
  font-weight: 700;
  font-size: 0.72rem;
  padding: 3px 9px;
  border-radius: 999px;
  margin-left: 6px;
}
.avail {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  color: #0f9d58;
  font-size: 0.85rem;
}
.avail .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #25d366;
  box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.18);
}
.prod-note {
  font-size: 0.78rem;
  font-weight: 600;
  color: #b45309;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 10px;
  padding: 7px 10px;
}

/* ---------- ghost button (hero) ---------- */
.btn-ghost {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.24); transform: translateY(-2px); }
.btn-row { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }

/* ---------- admin panel ---------- */
.adm { padding: 26px 24px 70px; }
.adm-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.adm-tabs-right { margin-left: auto; display: inline-flex; gap: 8px; }
.adm-tab {
  font-family: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.18s ease;
}
.adm-tab.active {
  background: linear-gradient(120deg, var(--primary), var(--primary-2));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 8px 18px rgba(93, 80, 240, 0.3);
}
.adm-select {
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  padding: 9px 12px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: #fff;
}
.add-section { margin-bottom: 22px; }
.add-form {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-top: 14px;
  box-shadow: var(--shadow);
}
.add-form h4 { margin-bottom: 14px; font-weight: 800; }
.form-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 6px; }
.form-row3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
}
.small { font-size: 0.8rem; margin-top: 8px; }
.var-edit { position: relative; padding: 8px 0; }
.var-del {
  position: absolute;
  right: -4px;
  top: 4px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid #fee2e2;
  background: #fef2f2;
  color: #dc2626;
  font-weight: 800;
  cursor: pointer;
}
.gvar { padding-right: 60px; padding-bottom: 14px; }
.gvar .btn { align-self: end; }
.group-box {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 16px 18px;
  margin-bottom: 18px;
}
.group-head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.group-head strong { font-size: 1.08rem; font-weight: 800; }
.g-actions { margin-left: auto; display: inline-flex; gap: 8px; flex-wrap: wrap; }
.prod-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  border-top: 1px solid #eef1f9;
  padding: 10px 0;
}
.prod-row:first-of-type { border-top: none; }
.p-label { flex: 1; min-width: 140px; font-weight: 700; font-size: 0.92rem; }
.p-harga, .p-note, .c-icon, .c-name, .c-sort {
  font-family: inherit;
  padding: 8px 10px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  font-size: 0.92rem;
}
.p-note { width: 200px; }
.p-harga { width: 110px; }
.p-stok {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--muted);
  background: #f4f6fb;
  border-radius: 999px;
  padding: 4px 10px;
}
.danger { color: #dc2626; border-color: rgba(220, 38, 38, 0.4); }
.danger:hover { background: #dc2626; border-color: #dc2626; color: #fff; }
.cat-row { align-items: center; }
.c-icon { width: 56px; text-align: center; }
.c-name { width: 170px; }
.c-sort { width: 74px; }
.c-slug { color: var(--muted); font-size: 0.8rem; width: 110px; word-break: break-word; }
.c-act { display: inline-flex; gap: 5px; font-size: 0.82rem; font-weight: 600; color: var(--muted); }
.c-count { font-size: 0.82rem; font-weight: 700; color: var(--muted); }
.banner-prev {
  margin: 12px 0;
  padding: 10px;
  background: #f6f8fd;
  border: 1px dashed var(--line);
  border-radius: 14px;
}
.banner-prev .banner-img {
  display: block;
  width: 100%;
  max-height: 180px;
  object-fit: cover;
  border-radius: 10px;
}

@media (max-width: 760px) {
  .adm { padding: 20px 16px 60px; }
  .adm-tabs-right { margin-left: 0; width: 100%; }
  .adm-select { flex: 1; }
  .p-label { min-width: 100%; }
  .group-head { flex-direction: column; align-items: flex-start; }
  .g-actions { margin-left: 0; }
}

@media (max-width: 760px) {
  .topbar-row { height: 58px; }
  .nav-right { margin-left: auto; }
  .nav .btn { padding: 7px 12px; font-size: 0.84rem; }
  .cat-menu { padding: 8px 0; }
  .cat-row { gap: 8px; }
  .cat-drop-btn { padding: 8px 13px; font-size: 0.85rem; }
  .top-search-wrap { flex: 1; min-width: 0; margin-left: 0; }
  .top-search { width: 100%; }
  .cat-drop-grid { grid-template-columns: repeat(1, 1fr); gap: 6px; }
  .cat-drop-panel { max-height: 74vh; }
  .hero { width: auto; margin: 12px 10px 8px; border-radius: 20px; padding: 54px 16px 44px; }
  .hero-stats { gap: 18px; margin-top: 34px; }
  .hero-stat h3 { font-size: 1.35rem; }
  .footer-inner { flex-direction: column; gap: 20px; }
}