/* ==========================================================================
   style.css — Design system utama
   Palet   : Emerald teal (retail/trust) + Orange accent (harga/CTA/promo)
   Tipografi: Plus Jakarta Sans (display & body) + IBM Plex Mono (harga/SKU/struk)
   Signature: motif garis "barcode" tipis sebagai divider & aksen kartu,
              terinspirasi dari struk & label harga minimarket.
   ========================================================================== */

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

:root {
  /* ---- Warna (Light) ---- */
  --primary: #0F766E;
  --primary-dark: #0B5A54;
  --primary-light: #E1F3F0;
  --accent: #F97316;
  --accent-dark: #DB5F0A;
  --accent-light: #FFEBDB;

  --bg: #F7F9F7;
  --bg-alt: #FFFFFF;
  --surface: #FFFFFF;
  --surface-2: #F1F4F2;
  --border: #E4E9E6;

  --text: #10201C;
  --text-muted: #5B6B66;
  --text-faint: #93A19C;

  --success: #16A34A;
  --warning: #EAB308;
  --danger: #EF4444;
  --info: #3B82F6;

  /* Emas — diambil dari gradasi kuning/emas pada logo KOPDAR, dipakai terbatas untuk rating & highlight premium */
  --gold: #FFC93C;
  --gold-dark: #C98A00;
  --gold-light: #FFF6DC;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 3px rgba(16, 32, 28, 0.06);
  --shadow: 0 8px 24px rgba(16, 32, 28, 0.08);
  --shadow-lg: 0 16px 48px rgba(16, 32, 28, 0.14);

  --font-display: 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;

  --header-h: 68px;
  --bottom-nav-h: 64px;
}

[data-theme="dark"] {
  --primary: #2CBF9C;
  --primary-dark: #1E8E73;
  --primary-light: #113630;
  --accent: #FF9147;
  --accent-dark: #FF7A1A;
  --accent-light: #3A2415;

  --gold: #FFD666;
  --gold-dark: #E0A100;
  --gold-light: #3A2E0F;

  --bg: #0D1512;
  --bg-alt: #121C18;
  --surface: #16211D;
  --surface-2: #1C2823;
  --border: #263832;

  --text: #EAF2EF;
  --text-muted: #9FB3AC;
  --text-faint: #647871;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.5);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-display);
  background: var(--bg);
  color: var(--text);
  transition: background .25s ease, color .25s ease;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; }
::selection { background: var(--accent); color: #fff; }

.mono { font-family: var(--font-mono); }
[data-icon] { display: inline-flex; align-items: center; justify-content: center; line-height: 0; }
svg { flex-shrink: 0; }
.price { font-family: var(--font-mono); font-weight: 600; }

/* Fokus terlihat untuk aksesibilitas */
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

.container { max-width: 1240px; margin: 0 auto; padding: 0 20px; }

/* ---- Motif signature: garis barcode tipis ---- */
.barcode-divider {
  height: 14px;
  background-image: repeating-linear-gradient(90deg, var(--border) 0 1px, transparent 1px 4px, var(--border) 4px 5px, transparent 5px 9px);
  opacity: .6;
  margin: 8px 0;
}
.barcode-strip {
  display: flex; align-items: flex-end; gap: 2px; height: 22px;
}
.barcode-strip span {
  display: block; width: 2px; background: var(--text-faint); opacity: .5;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: 999px; border: none; font-weight: 600;
  font-size: 14.5px; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-accent { background: var(--accent); color: #fff; box-shadow: 0 2px 8px rgba(249, 115, 22, .22); }
.btn-accent:hover { background: var(--accent-dark); }
.btn-outline { background: transparent; border: 1.5px solid var(--border); color: var(--text); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-ghost { background: var(--surface-2); color: var(--text); }
.btn-ghost:hover { background: var(--border); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-sm { padding: 7px 14px; font-size: 13px; }
.btn-lg { padding: 15px 28px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-icon { width: 40px; height: 40px; padding: 0; border-radius: 50%; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }

/* ---- Header ---- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--bg-alt) 88%, transparent); border-bottom: 1px solid var(--border);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.header-row { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.header-search-mobile {
  display: flex; align-items: center; gap: 8px; padding: 0 16px 12px; position: relative;
}
.header-search-mobile .icon { position: absolute; left: 28px; opacity: .5; pointer-events: none; }
.header-search-mobile input {
  width: 100%; padding: 10px 14px 10px 38px; border-radius: 999px; border: 1.5px solid var(--border);
  background: var(--surface-2); color: var(--text); font-size: 13.5px;
}
@media (min-width: 860px) { .header-search-mobile { display: none; } }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 19px; user-select: none; min-width: 0; flex-shrink: 1; }
.brand .brand-text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.brand .brand-text .brand-tagline { font-size: 10px; font-weight: 700; color: var(--text-faint); letter-spacing: .03em; text-transform: uppercase; white-space: nowrap; }
.brand span.brand-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 17px; letter-spacing: -0.01em; }
.brand-mark {
  width: 40px; height: 40px; border-radius: 12px; flex-shrink: 0; position: relative; overflow: hidden;
  box-shadow: 0 2px 10px rgba(15, 110, 92, .28);
}
.brand-mark img { width: 100%; height: 100%; object-fit: cover; display: block; }
.brand-mark .dark-img { display: none; }
[data-theme="dark"] .brand-mark .light-img { display: none; }
[data-theme="dark"] .brand-mark .dark-img { display: block; }
.header-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: var(--surface-2); border: none; font-size: 17px; color: var(--text); position: relative;
  transition: background .15s ease, transform .15s ease;
}
.icon-btn:hover { background: var(--border); transform: translateY(-1px); }
.badge-count {
  position: absolute; top: -3px; right: -3px; background: var(--accent); color: #1A1006;
  font-size: 10px; font-weight: 700; min-width: 17px; height: 17px; border-radius: 999px;
  display: flex; align-items: center; justify-content: center; padding: 0 3px; box-shadow: 0 0 0 2px var(--bg-alt);
}
.badge-count.bump, .floating-cart .count.bump { animation: badge-bump .35s cubic-bezier(.34,1.56,.64,1); }
@keyframes badge-bump { 0% { transform: scale(1); } 40% { transform: scale(1.35); } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .badge-count.bump, .floating-cart .count.bump { animation: none; } }
/* ---- Theme toggle: sliding pill switch, gaya premium 2026 ---- */
.theme-toggle {
  position: relative; display: flex; align-items: center; width: 64px; height: 32px; padding: 3px;
  border-radius: 999px; flex-shrink: 0; overflow: hidden;
  background: linear-gradient(90deg, #FFE8B8 0%, #FFEDD1 100%);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.04);
  transition: background .35s ease;
}
[data-theme="dark"] .theme-toggle { background: linear-gradient(90deg, #16233A 0%, #0E1524 100%); }
.theme-toggle::before {
  content: ''; position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%;
  background: linear-gradient(145deg, #FFC94D, #FF9F1C); box-shadow: 0 2px 6px rgba(255, 159, 28, .5);
  transition: transform .35s cubic-bezier(.34,1.4,.64,1), background .35s ease, box-shadow .35s ease; z-index: 1;
}
[data-theme="dark"] .theme-toggle::before {
  transform: translateX(32px); background: linear-gradient(145deg, #4C6FE0, #24346B); box-shadow: 0 2px 8px rgba(36, 52, 107, .6);
}
.theme-toggle .toggle-stars { position: absolute; inset: 0; opacity: 0; transition: opacity .35s ease; pointer-events: none; }
[data-theme="dark"] .theme-toggle .toggle-stars { opacity: 1; }
.theme-toggle .toggle-stars span { position: absolute; width: 2.5px; height: 2.5px; border-radius: 50%; background: #fff; opacity: .8; }
.theme-toggle button {
  position: relative; z-index: 2; border: none; background: transparent; width: 27px; height: 26px; border-radius: 50%;
  font-size: 14px; display: flex; align-items: center; justify-content: center; transition: color .35s ease;
}
.theme-toggle button[data-theme-btn="light"] { color: #FFFFFF; }
.theme-toggle button[data-theme-btn="dark"] { color: rgba(20,30,50,.32); }
[data-theme="dark"] .theme-toggle button[data-theme-btn="light"] { color: rgba(255,255,255,.3); }
[data-theme="dark"] .theme-toggle button[data-theme-btn="dark"] { color: #FFFFFF; }
.theme-toggle button svg { position: relative; z-index: 2; }
.theme-toggle button.active svg { filter: drop-shadow(0 1px 1px rgba(0,0,0,.15)); }

/* ---- Header super compact di layar sangat sempit (<400px): tetap tampilkan nama brand ---- */
@media (max-width: 400px) {
  .container.header-row { padding: 0 12px; gap: 6px; }
  .brand-mark { width: 34px; height: 34px; border-radius: 10px; }
  .brand span.brand-name { font-size: 15px; }
  .brand .brand-text .brand-tagline { font-size: 8.5px; }
  .header-actions { gap: 4px; }
  .icon-btn { width: 34px; height: 34px; font-size: 15px; }
  .theme-toggle { padding: 3px; }
  .theme-toggle button { width: 26px; height: 26px; }
}

.search-bar { flex: 1; max-width: 460px; position: relative; display: none; }
.search-bar input {
  width: 100%; padding: 11px 16px 11px 40px; border-radius: 999px; border: 1.5px solid var(--border);
  background: var(--surface-2); color: var(--text); font-size: 14px;
}
.search-bar .icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); opacity: .55; }
@media (min-width: 860px) { .search-bar { display: block; } }

/* ---- Search autocomplete suggestion dropdown ---- */
.search-suggest {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0; background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; box-shadow: var(--shadow-lg); z-index: 60; overflow: hidden; max-height: 400px; overflow-y: auto;
}
.header-search-mobile .search-suggest { top: calc(100% + 4px); }
.search-suggest-item { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-bottom: 1px solid var(--border); }
.search-suggest-item:last-child { border-bottom: none; }
.search-suggest-item:hover { background: var(--surface-2); }
.search-suggest-item .ss-thumb { width: 36px; height: 36px; border-radius: 8px; flex-shrink: 0; overflow: hidden; background: var(--surface-2); }
.search-suggest-item .ss-thumb img { width: 100%; height: 100%; object-fit: contain; padding: 3px; box-sizing: border-box; }
.search-suggest-item .ss-body { flex: 1; min-width: 0; }
.search-suggest-item .ss-name { font-size: 12.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search-suggest-item .ss-cat { font-size: 10.5px; color: var(--text-faint); }
.search-suggest-item .ss-price { font-size: 12px; font-weight: 700; color: var(--primary); font-family: var(--font-mono); flex-shrink: 0; }
.search-suggest-footer { padding: 9px 12px; text-align: center; font-size: 12px; font-weight: 700; color: var(--primary); background: var(--surface-2); }

/* ---- Hero ---- */
.hero {
  position: relative; overflow: hidden; padding: 40px 0 36px;
  background:
    radial-gradient(90% 120% at 100% -10%, var(--primary-light), transparent 55%),
    radial-gradient(60% 80% at -10% 110%, var(--accent-light), transparent 50%),
    var(--bg);
}
@media (min-width: 980px) { .hero { padding: 64px 0 90px; } }
[data-theme="dark"] .hero {
  background:
    radial-gradient(90% 120% at 100% -10%, rgba(44,191,156,.16), transparent 55%),
    radial-gradient(60% 80% at -10% 110%, rgba(255,145,71,.10), transparent 50%),
    var(--bg);
}
.hero::before {
  content: ''; position: absolute; inset: 0; opacity: .5; pointer-events: none;
  background-image: radial-gradient(circle, var(--border) 1px, transparent 1px);
  background-size: 26px 26px; mask-image: radial-gradient(60% 60% at 80% 20%, #000 0%, transparent 70%);
}
.hero .container { position: relative; display: grid; gap: 28px; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 980px) { .hero .container { grid-template-columns: 1.05fr 0.95fr; gap: 20px; } }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 12px;
  letter-spacing: .06em; color: var(--primary); background: var(--primary-light); padding: 6px 12px; border-radius: 999px;
  width: fit-content; text-transform: uppercase; border: 1px solid color-mix(in srgb, var(--primary) 25%, transparent);
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--primary); animation: dot-pulse 1.8s ease-in-out infinite; }
@keyframes dot-pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .4; transform: scale(.7); } }
.eyebrow.prototype-badge {
  color: var(--accent-dark); background: var(--accent-light);
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  align-items: flex-start; max-width: 100%;
}
.eyebrow.prototype-badge .dot { margin-top: 4px; flex-shrink: 0; }
.eyebrow.prototype-badge .dot { background: var(--accent); }
.eyebrow.prototype-badge b { font-weight: 800; }
.prototype-badge-wrap {
  margin-bottom: 8px; max-height: 60px; overflow: hidden;
  transition: max-height .35s ease, opacity .3s ease, margin .35s ease;
}
.prototype-badge-wrap.badge-closed { max-height: 0; opacity: 0; margin-bottom: 0; pointer-events: none; }
.prototype-badge-text { font-size: 10.5px; line-height: 1.4; }
.prototype-badge-close {
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: 16px; height: 16px; border-radius: 50%; border: none; cursor: pointer;
  background: color-mix(in srgb, var(--accent) 18%, transparent); color: var(--accent-dark);
  margin-left: 2px; padding: 0; transition: background .15s ease;
}
.prototype-badge-close:hover { background: color-mix(in srgb, var(--accent) 32%, transparent); }
.hero h1 { font-size: clamp(30px, 4.6vw, 48px); line-height: 1.06; margin: 16px 0 12px; font-weight: 800; letter-spacing: -0.02em; }
.hero h1 span { color: var(--accent); position: relative; white-space: nowrap; }
.hero h1 span::after {
  content: ''; position: absolute; left: -2%; right: -2%; bottom: 2px; height: .28em; z-index: -1;
  background: var(--accent-light); border-radius: 3px;
}
.hero p { color: var(--text-muted); font-size: 16.5px; max-width: 480px; margin: 0 0 24px; }
.hero-search { display: flex; gap: 10px; max-width: 520px; }
.hero-search input {
  flex: 1; padding: 15px 18px; border-radius: 999px; border: 1.5px solid var(--border);
  background: var(--surface); color: var(--text); font-size: 15px; box-shadow: var(--shadow-sm);
}
.hero-stats { display: flex; gap: 28px; margin-top: 30px; flex-wrap: wrap; }
.hero-stats .stat b { font-family: var(--font-mono); font-size: 24px; display: block; letter-spacing: -0.01em; }
.hero-stats .stat span { font-size: 12.5px; color: var(--text-muted); }

/* ---- Hero visual: floating receipt/price cards ---- */
.hero-visual { position: relative; height: 380px; display: none; }
@media (min-width: 980px) { .hero-visual { display: block; } }
.hero-visual .glow-orb {
  position: absolute; width: 240px; height: 240px; border-radius: 50%; top: 10%; right: 8%;
  background: radial-gradient(circle, var(--primary) 0%, transparent 70%); opacity: .14; filter: blur(10px);
}
.hero-float-card {
  position: absolute; background: var(--surface); border: 1px solid var(--border); border-radius: 18px;
  box-shadow: var(--shadow-lg); padding: 14px 16px; animation: float-y 5s ease-in-out infinite;
}
.hero-float-card.card-1 { top: 10%; left: 8%; width: 195px; animation-delay: 0s; }
.hero-float-card.card-2 { bottom: 14%; right: 6%; width: 205px; animation-delay: .6s; }
@keyframes float-y { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.hero-float-card .top-row { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.hero-float-card .emoji-badge {
  width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center;
  font-size: 18px; background: var(--primary-light); flex-shrink: 0;
}
.hero-float-card .title { font-size: 12.5px; font-weight: 700; line-height: 1.25; }
.hero-float-card .sub { font-size: 10.5px; color: var(--text-faint); }
.hero-float-card .price-tag {
  font-family: var(--font-mono); font-weight: 700; font-size: 14px; color: var(--primary);
  display: flex; align-items: center; justify-content: space-between;
}
.hero-float-card .price-tag .delta { font-size: 10.5px; background: var(--primary-light); color: var(--primary); padding: 2px 7px; border-radius: 999px; }
.hero-float-card.card-2 .price-tag .delta { background: var(--accent-light); color: var(--accent-dark); }
.hero-float-card .mini-barcode { display: flex; align-items: flex-end; gap: 1.5px; height: 16px; margin-top: 8px; opacity: .45; }
.hero-float-card .mini-barcode span { width: 2px; background: var(--text); display: block; }

/* ---- Section titles ---- */
.section { padding: 34px 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 18px; gap: 12px; }
.section-head h2 { font-size: 21px; margin: 0; font-weight: 800; letter-spacing: -0.01em; }
.section-head .link { font-size: 13.5px; color: var(--primary); font-weight: 600; }
.sort-select {
  padding: 7px 10px; border-radius: 8px; border: 1.5px solid var(--border); background: var(--surface);
  color: var(--text-muted); font-size: 12px; font-weight: 600;
}

/* ---- Active filter chips (bisa di-clear satu per satu) ---- */
.active-filter-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.active-filter-chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 6px 6px 12px; border-radius: 999px;
  background: var(--primary-light); color: var(--primary-dark); font-size: 12px; font-weight: 700;
}
[data-theme="dark"] .active-filter-chip { color: var(--primary); }
.active-filter-chip button {
  width: 18px; height: 18px; border-radius: 50%; background: color-mix(in srgb, var(--primary) 18%, transparent);
  border: none; color: inherit; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.active-filter-chip.clear-all { background: var(--surface-2); color: var(--text-muted); padding: 6px 14px; }
.chip-row { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; -ms-overflow-style: none; scrollbar-width: none; }
.chip-row::-webkit-scrollbar { display: none; }
.chip {
  flex-shrink: 0; padding: 9px 16px; border-radius: 999px; border: 1.5px solid var(--border);
  background: var(--surface); font-size: 13.5px; font-weight: 600; color: var(--text-muted); white-space: nowrap;
  transition: all .15s ease;
}
.chip.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.chip:hover:not(.active) { border-color: var(--primary); color: var(--primary); }

/* ---- Category cards (visual, dengan icon + gradient + jumlah produk) ---- */
.category-card-row { display: flex; gap: 12px; overflow-x: auto; padding: 4px 4px 10px; -ms-overflow-style: none; scrollbar-width: none; }
.category-card-row::-webkit-scrollbar { display: none; }
.category-card {
  flex-shrink: 0; width: 108px; border-radius: 16px; padding: 16px 12px; text-align: center; border: 1.5px solid transparent;
  background: var(--cat-bg, linear-gradient(145deg, var(--surface-2), var(--border))); cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.category-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.category-card.active { border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 18%, transparent); }
.category-card .cat-icon { font-size: 26px; margin-bottom: 8px; }
.category-card .cat-name { font-size: 12px; font-weight: 700; color: #1A2420; line-height: 1.25; }
.category-card .cat-count { font-size: 10px; color: #47544F; margin-top: 2px; font-family: var(--font-mono); }

/* ---- Quick filter row ---- */
.quick-filter-row { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 4px; -ms-overflow-style: none; scrollbar-width: none; }
.quick-filter-row::-webkit-scrollbar { display: none; }
.quick-filter-btn {
  flex-shrink: 0; padding: 8px 15px; border-radius: 999px; border: 1.5px solid var(--border); background: var(--surface);
  font-size: 12.5px; font-weight: 700; color: var(--text-muted); white-space: nowrap; display: inline-flex; align-items: center; gap: 6px;
}
.quick-filter-btn.active { background: var(--text); border-color: var(--text); color: var(--bg); }
[data-theme="dark"] .quick-filter-btn.active { background: var(--primary); border-color: var(--primary); color: #fff; }

/* ---- Filter row wrapper + "more filter" button ---- */
.quick-filter-row-wrap { display: flex; align-items: center; gap: 10px; }
.quick-filter-row-wrap .quick-filter-row { flex: 1; min-width: 0; }
.filter-more-btn {
  flex-shrink: 0; position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 8px 15px;
  border-radius: 999px; border: 1.5px solid var(--border); background: var(--surface); font-size: 12.5px; font-weight: 700; color: var(--text-muted);
}
.filter-more-btn:hover { border-color: var(--primary); color: var(--primary); }
.filter-more-btn .badge-count { position: static; margin-left: 2px; box-shadow: none; }

/* ---- Filter sheet contents ---- */
.price-range-row { display: flex; align-items: center; gap: 10px; }
.price-preset-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.price-preset-btn {
  padding: 6px 12px; border-radius: 999px; border: 1.5px solid var(--border); background: var(--surface);
  font-size: 11.5px; font-weight: 700; color: var(--text-muted);
}
.price-preset-btn.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.rating-filter-row { display: flex; gap: 8px; flex-wrap: wrap; }
.rating-filter-btn {
  padding: 8px 14px; border-radius: 10px; border: 1.5px solid var(--border); background: var(--surface);
  font-size: 12.5px; font-weight: 700; color: var(--text-muted);
}
.rating-filter-btn.active { background: var(--primary-light); border-color: var(--primary); color: var(--primary-dark); }
[data-theme="dark"] .rating-filter-btn.active { color: var(--primary); }

/* ---- Trust section ---- */
.trust-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (min-width: 700px) { .trust-grid { grid-template-columns: repeat(4, 1fr); } }
.trust-card { padding: 18px 16px; text-align: center; }
.trust-card .trust-icon {
  width: 46px; height: 46px; border-radius: 14px; display: flex; align-items: center; justify-content: center;
  font-size: 21px; background: var(--primary-light); color: var(--primary); margin: 0 auto 10px;
}
.trust-card h4 { font-size: 13.5px; margin: 0 0 4px; }
.trust-card p { font-size: 11.5px; color: var(--text-muted); margin: 0; }

/* ---- Skeleton product card (loading state) ---- */
.skeleton-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.skeleton-card .thumb { aspect-ratio: 1/1; }
.skeleton-card .info { padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.skeleton-line { height: 10px; border-radius: 4px; }
.skeleton-line.w-60 { width: 60%; }
.skeleton-line.w-90 { width: 90%; }
.skeleton-line.w-40 { width: 40%; }

/* ---- Product grid & card ---- */
.product-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (min-width: 620px) { .product-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .product-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1180px) { .product-grid { grid-template-columns: repeat(5, 1fr); } }

.product-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .25s ease, transform .25s ease, border-color .25s ease;
  position: relative;
}
.product-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); border-color: color-mix(in srgb, var(--primary) 30%, var(--border)); }
.product-card .thumb {
  aspect-ratio: 1/1; position: relative; overflow: hidden;
  background: var(--thumb-bg, linear-gradient(145deg, var(--surface-2), var(--border)));
  display: block;
}
.product-card .thumb img {
  width: 100%; height: 100%; object-fit: contain; object-position: center; display: block;
  padding: 10%; box-sizing: border-box; transition: transform .35s ease;
}
.product-card:hover .thumb img { transform: scale(1.06); }
.product-card .badge-promo {
  position: absolute; top: 8px; left: 8px; background: var(--accent); color: #1A1006; font-size: 10.5px;
  font-weight: 700; padding: 3px 8px; border-radius: 999px; font-family: var(--font-mono); box-shadow: 0 2px 6px rgba(249,115,22,.28); z-index: 2;
}
.product-card .badge-low {
  position: absolute; top: 8px; right: 8px; background: var(--warning); color: #1A1006; font-size: 10px;
  font-weight: 700; padding: 3px 7px; border-radius: 999px; z-index: 2;
}
.product-card .badge-new {
  position: absolute; top: 8px; right: 8px; background: var(--info); color: #fff; font-size: 10px;
  font-weight: 700; padding: 3px 7px; border-radius: 999px; z-index: 2;
}
.product-card .rank-badge {
  position: absolute; top: 8px; left: 8px; z-index: 2; width: 26px; height: 26px; border-radius: 8px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: #fff; font-family: var(--font-mono);
  font-weight: 800; font-size: 12.5px; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 6px color-mix(in srgb, var(--primary) 30%, transparent);
}
.product-card .info { padding: 12px; display: flex; flex-direction: column; gap: 5px; flex: 1; }
.product-card .cat { font-size: 10.5px; color: var(--text-faint); text-transform: uppercase; letter-spacing: .04em; }
.product-card .name { font-size: 13.5px; font-weight: 600; line-height: 1.3; min-height: 34px; }
.product-card .rating-row { display: flex; align-items: center; gap: 5px; font-size: 11px; color: var(--text-muted); }
.product-card .rating-row .star { color: var(--gold-dark); }
.product-card .price-row { display: flex; flex-direction: column; margin-top: auto; }
.product-card .price-now { display: flex; align-items: baseline; gap: 6px; }
.product-card .price { font-size: 15px; color: var(--primary); }
.product-card .price-original { font-size: 11px; color: var(--text-faint); text-decoration: line-through; font-family: var(--font-mono); }
.product-card .discount-pct { font-size: 10px; font-weight: 700; color: var(--accent-dark); background: var(--accent-light); padding: 1px 6px; border-radius: 999px; font-family: var(--font-mono); }
.product-card .stock { font-size: 10.5px; color: var(--text-faint); }
.product-card .stock.low { color: var(--danger); font-weight: 700; }
.product-card .add-row { display: flex; align-items: center; gap: 6px; margin-top: 8px; }
.qty-control { display: flex; align-items: center; border: 1.5px solid var(--border); border-radius: 999px; overflow: hidden; }
.qty-control button { width: 28px; height: 28px; border: none; background: var(--surface-2); font-size: 15px; }
.qty-control span { width: 26px; text-align: center; font-family: var(--font-mono); font-size: 13px; }
.btn-add-cart {
  flex: 1; background: var(--primary); color: #fff; border: none; border-radius: 999px; padding: 8px 0;
  font-size: 12.5px; font-weight: 700;
}
.btn-add-cart:hover { background: var(--primary-dark); }
.btn-add-cart:disabled { background: var(--text-faint); }

/* ---- Cards general ---- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; transition: box-shadow .2s ease; }
.card-stat { display: flex; flex-direction: column; gap: 6px; }
.card-stat .label { font-size: 12px; color: var(--text-muted); font-weight: 600; }
.card-stat .value {
  font-family: var(--font-mono); font-size: clamp(16px, 4.2vw, 24px); font-weight: 700;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%;
}
.card-stat .delta { font-size: 11.5px; font-weight: 600; }
.card-stat .delta.up { color: var(--success); }
.card-stat .delta.down { color: var(--danger); }

/* ---- Branch cards ---- */
.branch-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.branch-card { padding: 16px; }
.branch-card h4 { margin: 0 0 6px; font-size: 15px; }
.branch-card p { margin: 2px 0; font-size: 12.5px; color: var(--text-muted); }

/* ---- Footer ---- */
.site-footer { background: var(--bg-alt); border-top: 1px solid var(--border); padding: 40px 0 90px; margin-top: 30px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 24px; }
.footer-grid h5 { font-size: 13px; margin: 0 0 10px; }
.footer-grid p, .footer-grid a { display: block; font-size: 13px; color: var(--text-muted); margin-bottom: 6px; }
@media (min-width: 860px) { .site-footer { padding-bottom: 40px; } }

/* ---- Bottom navigation (mobile) ---- */
.bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; height: var(--bottom-nav-h); background: var(--bg-alt);
  border-top: 1px solid var(--border); display: flex; z-index: 50; padding-bottom: env(safe-area-inset-bottom);
}
.bottom-nav a, .bottom-nav button {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  background: none; border: none; color: var(--text-faint); font-size: 10.5px; font-weight: 600;
}
.bottom-nav a.active, .bottom-nav button.active { color: var(--primary); }
.bottom-nav .icon { font-size: 19px; }
@media (min-width: 860px) { .bottom-nav { display: none; } }

/* ---- Floating cart button ---- */
.floating-cart {
  position: fixed; right: 18px; bottom: calc(var(--bottom-nav-h) + 18px); z-index: 45;
  background: var(--accent); color: #1A1006; border: none; border-radius: 999px; padding: 14px 20px;
  display: flex; align-items: center; gap: 10px; box-shadow: 0 4px 14px rgba(249, 115, 22, .25); font-weight: 700;
  font-size: 14px; transform: translateY(120%); transition: transform .25s ease;
}
.floating-cart.show { transform: translateY(0); }
@media (min-width: 860px) { .floating-cart { bottom: 24px; } }
.floating-cart .count { background: rgba(0,0,0,.18); border-radius: 999px; padding: 2px 8px; font-family: var(--font-mono); }

/* ---- Modal ---- */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(10, 16, 14, .55); backdrop-filter: blur(2px);
  display: flex; align-items: flex-end; justify-content: center; z-index: 100; opacity: 0; pointer-events: none;
  transition: opacity .2s ease;
}
.modal-overlay.open { opacity: 1; pointer-events: auto; }
@media (min-width: 640px) { .modal-overlay { align-items: center; padding: 20px; } }
.modal {
  background: var(--surface); width: 100%; max-width: 480px; max-height: 92vh; overflow-y: auto;
  border-radius: 22px 22px 0 0; padding: 22px; transform: translateY(30px); transition: transform .25s ease;
  box-shadow: var(--shadow-lg);
}
.modal-overlay.open .modal { transform: translateY(0); }
@media (min-width: 640px) { .modal { border-radius: var(--radius-lg); } }
.modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.modal-head h3 { margin: 0; font-size: 18px; font-weight: 800; display: flex; align-items: center; gap: 8px; }
.modal-close { width: 32px; height: 32px; border-radius: 50%; border: none; background: var(--surface-2); font-size: 15px; }
.modal.modal-lg { max-width: 720px; }

/* ---- Drawer variant (mis. Keranjang): side panel di desktop, bottom sheet di mobile ---- */
.modal-overlay.drawer-right { justify-content: flex-end; align-items: stretch; padding: 0; }
.modal-overlay.drawer-right .modal {
  border-radius: 22px 22px 0 0; max-width: 100%; margin-top: auto; max-height: 88vh;
}
@media (min-width: 640px) {
  .modal-overlay.drawer-right { align-items: stretch; }
  .modal-overlay.drawer-right .modal {
    width: 420px; max-width: 420px; height: 100%; max-height: 100%; border-radius: 0; margin-top: 0;
    transform: translateX(30px); display: flex; flex-direction: column;
  }
  .modal-overlay.drawer-right.open .modal { transform: translateX(0); }
}
.cart-drawer-modal { display: flex; flex-direction: column; min-height: 0; }
.cart-drawer-scroll { flex: 1; min-height: 0; overflow-y: auto; margin: 0 -22px; padding: 0 22px; }
.cart-drawer-footer { flex-shrink: 0; border-top: 1px solid var(--border); margin: 12px -22px -22px; padding: 16px 22px; background: var(--surface); }
@media (min-width: 640px) { .cart-drawer-footer { padding-bottom: 22px; } }

/* ---- Sheet modal generik: konten scroll + footer CTA sticky (mis. detail produk) ---- */
.sheet-modal { display: flex; flex-direction: column; max-height: 88vh; }
.sheet-modal .sheet-scroll { flex: 1; min-height: 0; overflow-y: auto; }
.sheet-modal .sheet-footer {
  flex-shrink: 0; border-top: 1px solid var(--border); margin: 14px -22px -22px; padding: 14px 22px;
  background: var(--surface); padding-bottom: max(14px, env(safe-area-inset-bottom));
}
.detail-info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.detail-info-grid > div { background: var(--surface-2); border-radius: 10px; padding: 10px 12px; }
.detail-info-grid span { display: block; font-size: 10.5px; color: var(--text-faint); margin-bottom: 2px; }
.detail-info-grid b { font-size: 13px; }

/* ---- Forms ---- */
.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-size: 12.5px; font-weight: 600; margin-bottom: 6px; color: var(--text-muted); }
.form-control {
  width: 100%; padding: 11px 14px; border-radius: var(--radius-sm); border: 1.5px solid var(--border);
  background: var(--bg-alt); color: var(--text); font-size: 14px;
}
.form-control:focus { border-color: var(--primary); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 480px) { .form-row { grid-template-columns: 1fr; } }
.form-hint { font-size: 11.5px; color: var(--text-faint); margin-top: 4px; }
.form-error { font-size: 12px; color: var(--danger); margin-top: 4px; }
.form-tabs { display: flex; background: var(--surface-2); border-radius: 999px; padding: 4px; margin-bottom: 18px; }
.form-tabs button { flex: 1; border: none; background: transparent; padding: 9px 0; border-radius: 999px; font-size: 13px; font-weight: 700; color: var(--text-muted); display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.form-tabs button.active { background: var(--surface); color: var(--primary); box-shadow: var(--shadow-sm); }

/* ---- Toast ---- */
#toast-container {
  position: fixed; left: 50%; bottom: calc(var(--bottom-nav-h) + 16px); transform: translateX(-50%); z-index: 300;
  display: flex; flex-direction: column-reverse; gap: 8px; width: min(360px, 92vw);
}
@media (min-width: 860px) {
  #toast-container { bottom: 20px; }
}
.toast {
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px;
  display: flex; align-items: center; gap: 10px; box-shadow: var(--shadow); font-size: 13.5px; font-weight: 600;
  animation: toast-in .25s ease;
}
.toast-icon { display: flex; flex-shrink: 0; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.toast.success { border-left: 4px solid var(--success); }
.toast.success .toast-icon { color: var(--success); }
.toast.error { border-left: 4px solid var(--danger); }
.toast.error .toast-icon { color: var(--danger); }
.toast.warning { border-left: 4px solid var(--warning); }
.toast.warning .toast-icon { color: var(--warning); }
.toast.info { border-left: 4px solid var(--info); }
.toast.info .toast-icon { color: var(--info); }

/* ==========================================================================
   APP LOADER — splash screen KOPDAR
   Ringan: hanya CSS transform/opacity (GPU-accelerated), memakai logo yang
   sudah dimuat halaman lain, tanpa dependency/aset tambahan.
   ========================================================================== */
.app-loader {
  position: fixed; inset: 0; z-index: 9999; display: flex; flex-direction: column; align-items: center; justify-content: center;
  background:
    radial-gradient(60% 55% at 50% 38%, rgba(44,191,156,.22), transparent 70%),
    linear-gradient(160deg, #0B5A54 0%, #0D1512 55%, #071009 100%);
  background-size: 100% 100%, 220% 220%;
  animation: loader-bg-shift 9s ease-in-out infinite;
  opacity: 1; visibility: visible; transition: opacity .6s ease, visibility .6s ease;
  overflow: hidden;
}
.app-loader.loader-hide { opacity: 0; visibility: hidden; pointer-events: none; }
@keyframes loader-bg-shift {
  0%, 100% { background-position: 50% 38%, 0% 0%; }
  50% { background-position: 50% 38%, 100% 100%; }
}
.app-loader-noise {
  position: absolute; inset: 0; opacity: .35; pointer-events: none;
  background-image: radial-gradient(circle, rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: radial-gradient(60% 60% at 50% 35%, #000 0%, transparent 75%);
}
.app-loader-particles { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.app-loader-particles span {
  position: absolute; bottom: -24px; width: 7px; height: 7px; border-radius: 50%;
  background: rgba(44,191,156,.55); box-shadow: 0 0 8px 1px rgba(44,191,156,.5);
  animation: loader-particle-float linear infinite;
}
.app-loader-particles span:nth-child(odd) { background: rgba(255,159,28,.5); box-shadow: 0 0 8px 1px rgba(255,159,28,.45); }
.app-loader-particles span:nth-child(1) { left: 6%;  width: 5px; height: 5px; animation-duration: 6.5s; animation-delay: .1s; }
.app-loader-particles span:nth-child(2) { left: 17%; width: 8px; height: 8px; animation-duration: 8.2s; animation-delay: 1.1s; }
.app-loader-particles span:nth-child(3) { left: 30%; width: 6px; height: 6px; animation-duration: 7.1s; animation-delay: .5s; }
.app-loader-particles span:nth-child(4) { left: 45%; width: 4px; height: 4px; animation-duration: 6s;   animation-delay: 1.8s; }
.app-loader-particles span:nth-child(5) { left: 58%; width: 7px; height: 7px; animation-duration: 8.6s; animation-delay: .3s; }
.app-loader-particles span:nth-child(6) { left: 71%; width: 5px; height: 5px; animation-duration: 7.4s; animation-delay: 1.4s; }
.app-loader-particles span:nth-child(7) { left: 84%; width: 8px; height: 8px; animation-duration: 6.8s; animation-delay: .8s; }
.app-loader-particles span:nth-child(8) { left: 93%; width: 4px; height: 4px; animation-duration: 9s;   animation-delay: 2.1s; }
@keyframes loader-particle-float {
  0%   { transform: translateY(0) scale(.7); opacity: 0; }
  12%  { opacity: .9; }
  85%  { opacity: .5; }
  100% { transform: translateY(-420px) scale(1.15); opacity: 0; }
}
.app-loader-content { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; }

.loader-logo-wrap { position: relative; width: 96px; height: 96px; display: flex; align-items: center; justify-content: center; margin-bottom: 22px; }
.loader-logo {
  width: 68px; height: 68px; border-radius: 18px; object-fit: cover; position: relative; z-index: 2;
  box-shadow: 0 8px 30px rgba(0,0,0,.45);
  animation: loader-breathe 2.2s ease-in-out .6s infinite, loader-pop-scale .6s cubic-bezier(.34,1.5,.64,1), loader-fade-in .4s ease-out both;
}
.loader-ring {
  position: absolute; inset: 0; border-radius: 50%;
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2.5px), #000 calc(100% - 2.5px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 2.5px), #000 calc(100% - 2.5px));
}
.loader-ring.ring-1 {
  background: conic-gradient(from 0deg, transparent 0deg, #FF9F1C 60deg, transparent 140deg, transparent 360deg);
  animation: loader-spin 1.7s linear infinite;
}
.loader-ring.ring-2 {
  inset: -16px;
  background: conic-gradient(from 180deg, transparent 0deg, #2CBF9C 70deg, transparent 150deg, transparent 360deg);
  animation: loader-spin 2.6s linear infinite reverse;
}
@keyframes loader-spin { to { transform: rotate(360deg); } }
@keyframes loader-breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.045); } }
@keyframes loader-pop-scale { from { transform: scale(.6); } to { transform: scale(1); } }
@keyframes loader-fade-in { from { opacity: 0; } to { opacity: 1; } }

.loader-brand { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.loader-brand-name {
  font-family: var(--font-display); font-size: 26px; font-weight: 800; letter-spacing: .04em; color: #fff;
  animation: loader-fade-up .6s ease .25s both;
}
.loader-brand-tagline {
  font-family: var(--font-mono); font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: rgba(255,255,255,.55); animation: loader-fade-up .6s ease .4s both;
}
@keyframes loader-fade-up { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

.loader-dots { display: flex; gap: 6px; margin-top: 22px; }
.loader-dots span {
  width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.6);
  animation: loader-dot-bounce 1.2s ease infinite;
}
.loader-dots span:nth-child(2) { animation-delay: .15s; }
.loader-dots span:nth-child(3) { animation-delay: .3s; }
@keyframes loader-dot-bounce { 0%, 80%, 100% { transform: translateY(0); opacity: .35; } 40% { transform: translateY(-6px); opacity: 1; } }

.loader-progress-track {
  width: 210px; height: 4px; border-radius: 4px; margin-top: 24px; overflow: hidden;
  background: rgba(255,255,255,.14); animation: loader-fade-up .6s ease .5s both;
}
.loader-progress-bar {
  height: 100%; width: 0%; border-radius: 4px;
  background: linear-gradient(90deg, #2CBF9C, #FF9F1C);
  box-shadow: 0 0 10px rgba(44,191,156,.65);
  animation: loader-progress-fill 7s cubic-bezier(.22,.61,.36,1) forwards;
}
@keyframes loader-progress-fill { from { width: 0%; } to { width: 100%; } }

.loader-status {
  margin-top: 10px; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .04em;
  color: rgba(255,255,255,.5); min-height: 15px; animation: loader-fade-up .6s ease .65s both;
  transition: opacity .2s ease;
}

.loader-credit {
  position: absolute; left: 0; right: 0; bottom: 26px; text-align: center;
  font-size: 11.5px; color: rgba(255,255,255,.4); letter-spacing: .02em;
  animation: loader-fade-up .6s ease .55s both;
}
.loader-credit b { color: rgba(255,255,255,.68); font-weight: 700; }

@media (prefers-reduced-motion: reduce) {
  .app-loader { animation: none; }
  .loader-logo { animation: loader-pop .3s ease both; }
  .loader-ring { animation: none; opacity: .5; }
  .loader-dots span { animation: none; opacity: .6; }
  .app-loader-particles { display: none; }
  .loader-progress-bar { animation: none; width: 100%; }
}

/* ---- Empty state ---- */
.empty-state { text-align: center; padding: 48px 20px; color: var(--text-muted); }
.empty-state .icon {
  margin: 0 auto 12px; display: inline-flex; align-items: center; justify-content: center;
  width: 60px; height: 60px; border-radius: 50%; background: var(--surface-2); color: var(--text-faint);
  animation: empty-bob 3s ease-in-out infinite;
}
@keyframes empty-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.empty-state h4 { margin: 0 0 6px; color: var(--text); font-size: 15px; }
.empty-state p { margin: 0 0 16px; font-size: 13px; }

/* ---- Cart drawer ---- */
.cart-item { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.cart-item .thumb { width: 56px; height: 56px; border-radius: 10px; background: var(--surface-2); flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 20px; }
.cart-item .body { flex: 1; min-width: 0; }
.cart-item .name { font-size: 13.5px; font-weight: 600; margin-bottom: 4px; }
.cart-item .row-bottom { display: flex; align-items: center; justify-content: space-between; }
.cart-summary-row { display: flex; justify-content: space-between; font-size: 13.5px; padding: 5px 0; color: var(--text-muted); }
.cart-summary-row.total { font-size: 16px; font-weight: 800; color: var(--text); border-top: 1px dashed var(--border); margin-top: 6px; padding-top: 10px; }

/* ---- Auth demo access panel ---- */
.demo-access {
  background: var(--surface-2); border-left: 3px solid var(--primary); border-radius: 10px;
  padding: 12px 14px; margin-top: 10px;
}
.demo-access b { font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--text-muted); font-weight: 700; }
.demo-cred-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 5px 0; font-size: 12px; }
.demo-cred-row .role-name { color: var(--text-muted); font-weight: 600; flex-shrink: 0; }
.demo-cred-row .cred-value { font-family: var(--font-mono); color: var(--text); font-size: 11.5px; text-align: right; }

/* ---- Role select (segmented cards) ---- */
.role-select-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.role-card {
  display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 10px 6px; border-radius: 12px;
  border: 1.5px solid var(--border); background: var(--bg-alt); color: var(--text-muted); font-size: 10.5px; font-weight: 700;
  transition: all .15s ease;
}
.role-card:hover { border-color: color-mix(in srgb, var(--primary) 40%, var(--border)); }
.role-card.active { border-color: var(--primary); background: var(--primary-light); color: var(--primary-dark); }
[data-theme="dark"] .role-card.active { color: var(--primary); }

/* ---- Password field with show/hide toggle ---- */
.password-field { position: relative; }
.password-field input { padding-right: 42px; }
.password-toggle {
  position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; border-radius: 8px;
  border: none; background: transparent; color: var(--text-faint); display: flex; align-items: center; justify-content: center;
}
.password-toggle.active { color: var(--primary); }

/* ---- Demo mode toggle ---- */
.demo-toggle {
  display: flex; align-items: center; gap: 6px; background: none; border: none; color: var(--text-faint);
  font-size: 11.5px; font-weight: 600; margin-top: 14px; padding: 4px 0;
}
.demo-toggle svg { transition: transform .2s ease; }
.demo-toggle.open svg { transform: rotate(180deg); }

/* ---- Order status timeline ---- */
.status-timeline { display: flex; flex-wrap: wrap; gap: 0; margin: 16px 0; }
.status-step { flex: 1; min-width: 90px; text-align: center; position: relative; padding-top: 20px; }
.status-step::before { content: ''; position: absolute; top: 6px; left: -50%; width: 100%; height: 2px; background: var(--border); z-index: 0; }
.status-step:first-child::before { display: none; }
.status-step .dot { width: 12px; height: 12px; border-radius: 50%; background: var(--border); margin: 0 auto 6px; position: relative; z-index: 1; }
.status-step.done .dot { background: var(--primary); }
.status-step.done::before { background: var(--primary); }
.status-step span { font-size: 10.5px; color: var(--text-muted); }
.status-step.done span { color: var(--text); font-weight: 600; }

/* ---- Checkout step indicator ---- */
.checkout-steps { display: flex; align-items: center; margin: 4px 0 20px; }
.checkout-steps .cstep { display: flex; flex-direction: column; align-items: center; gap: 5px; flex: 1; position: relative; }
.checkout-steps .cstep .num {
  width: 26px; height: 26px; border-radius: 50%; background: var(--surface-2); color: var(--text-faint);
  display: flex; align-items: center; justify-content: center; font-size: 11.5px; font-weight: 800; font-family: var(--font-mono);
  border: 1.5px solid var(--border); z-index: 1; transition: all .2s ease;
}
.checkout-steps .cstep.done .num { background: var(--primary); border-color: var(--primary); color: #fff; }
.checkout-steps .cstep.active .num { background: var(--surface); border-color: var(--primary); color: var(--primary); box-shadow: 0 0 0 3px var(--primary-light); }
.checkout-steps .cstep span { font-size: 10px; color: var(--text-faint); font-weight: 700; }
.checkout-steps .cstep.done span, .checkout-steps .cstep.active span { color: var(--text); }
.checkout-steps .cstep-line { flex: 1; height: 2px; background: var(--border); margin: 0 -2px; margin-bottom: 15px; position: relative; top: -13px; }
.checkout-steps .cstep-line.done { background: var(--primary); }
.success-check-circle {
  width: 64px; height: 64px; border-radius: 50%; background: var(--primary-light); color: var(--primary);
  display: flex; align-items: center; justify-content: center; margin: 0 auto 14px; animation: success-pop .4s ease;
}
@keyframes success-pop { 0% { transform: scale(.5); opacity: 0; } 60% { transform: scale(1.08); } 100% { transform: scale(1); opacity: 1; } }

/* ---- Utility ---- */
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.text-muted { color: var(--text-muted); }
.text-faint { color: var(--text-faint); }
.text-sm { font-size: 12.5px; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mb-16 { margin-bottom: 16px; }
.hidden { display: none !important; }
.skeleton { background: linear-gradient(90deg, var(--surface-2) 25%, var(--border) 37%, var(--surface-2) 63%); background-size: 400% 100%; animation: skeleton-loading 1.4s ease infinite; border-radius: 8px; }
@keyframes skeleton-loading { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

/* ---- Logo secret click feedback ---- */
.brand { position: relative; }
.brand.clicking .brand-mark { animation: pulse-click .3s ease; }
@keyframes pulse-click { 0% { transform: scale(1); } 50% { transform: scale(1.15); } 100% { transform: scale(1); } }
