/* ============================================================
   KUBIGA STORE — store.css  (TEMA GUNDAM RX-78)
   Palette: Putih (#f5f5f7) + Biru EFSF (#1a3a8f) + Merah (#d8232a) + Kuning (#ffc20e)
   ============================================================ */

:root {
  /* Gundam Theme RX-78 (Vibrant + Eye-Friendly) */
  --gundam-white:      #f5f6f9;
  --gundam-blue:       #1a3a8f;
  --gundam-blue-light: #2b5fd9;
  --gundam-red:        #d8232a;
  --gundam-yellow:     #ffc20e;
  --armor-dark:        #1c2333;
  --armor-line:        #0f1320;

  --bg:        #eef1f7;
  --surface:   #ffffff;
  --surface-2: #f0f3fa;
  --border:    #d9deeb;
  --text:      #1a1f2e;
  --text-2:    #38405a;
  --text-muted:#6b7388;
  --text-faint:#9aa1b5;

  --primary:      var(--gundam-blue);
  --primary-2:    var(--gundam-blue-light);
  --primary-grad: linear-gradient(135deg, #1a3a8f 0%, #2b5fd9 100%);
  --hero-grad:    linear-gradient(135deg, #1a3a8f 0%, #d8232a 130%);
  --primary-soft: rgba(26,58,143,0.10);
  --primary-soft-2: rgba(43,95,217,0.10);

  --success:      #1f9d57;
  --success-soft: rgba(31,157,87,0.12);
  --warn:         #e8920c;
  --warn-soft:    rgba(232,146,12,0.14);
  --danger:       var(--gundam-red);
  --danger-soft:  rgba(216,35,42,0.12);

  --radius:    16px;
  --radius-sm: 10px;
  --radius-xs: 6px;
  --shadow:      0 2px 12px rgba(45,90,156,0.06), 0 1px 3px rgba(0,0,0,0.03);
  --shadow-card: 0 4px 20px rgba(45,90,156,0.08), 0 1px 4px rgba(0,0,0,0.04);
  --shadow-hover:0 12px 32px rgba(45,90,156,0.12), 0 2px 8px rgba(200,58,63,0.06);

  --font:         'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-display: 'Orbitron', 'Plus Jakarta Sans', sans-serif;
  --mono:         'JetBrains Mono', 'Fira Mono', monospace;

  --nav-h: 66px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  letter-spacing: 0.3px;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; transition: color 0.3s ease; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: var(--font); border: none; background: none; transition: all 0.3s ease; }

/* Smooth transitions untuk semua elemen */
* { transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease; }
*:focus { outline: none; } /* Custom focus handling */

/* ===================== TICKER ===================== */
.ticker-wrap {
  background: var(--primary);
  color: #fff;
  padding: 8px 20px;
  font-size: 13px;
  font-weight: 500;
  text-align: center;
  position: relative;
  z-index: 100;
}
.ticker-inner { display: flex; align-items: center; justify-content: center; gap: 10px; }
.ticker-live {
  background: rgba(255,255,255,0.25); border-radius: 999px;
  padding: 2px 10px; font-size: 11px; font-weight: 700; letter-spacing: 0.05em;
  animation: pulse-live 2s ease-in-out infinite;
}
@keyframes pulse-live { 0%,100%{opacity:1} 50%{opacity:0.6} }

/* ===================== NAVBAR ===================== */
.navbar {
  position: sticky; top: 0; z-index: 90;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  border-top: 4px solid transparent;
  border-image: linear-gradient(90deg,
    var(--gundam-blue) 0%, var(--gundam-blue) 33%,
    var(--gundam-red) 33%, var(--gundam-red) 66%,
    var(--gundam-yellow) 66%, var(--gundam-yellow) 100%) 1;
  height: var(--nav-h);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  height: 100%; display: flex; align-items: center; gap: 16px;
}
.brand-logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 800; font-size: 16px;
  letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--gundam-blue); white-space: nowrap; flex-shrink: 0;
}
.brand-icon {
  width: 38px; height: 38px;
  background: var(--hero-grad); border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  font-size: 19px;
  border: 2px solid var(--gundam-yellow);
  box-shadow: 0 2px 8px rgba(216,35,42,0.25);
  overflow: hidden;
}
.brand-icon img { width: 100%; height: 100%; object-fit: cover; }
.nav-center { flex: 1; max-width: 440px; position: relative; }
.search-box {
  display: flex; align-items: center; gap: 8px;
  background: var(--surface-2); border: 1.5px solid var(--border);
  border-radius: 999px; padding: 8px 16px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.search-box:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.search-ic { font-size: 14px; }
.search-box input {
  border: none; background: transparent; outline: none;
  width: 100%; font-size: 14px; font-family: var(--font); color: var(--text);
}
.search-box input::placeholder { color: var(--text-faint); }
.search-results {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); box-shadow: var(--shadow-card);
  max-height: 320px; overflow-y: auto; z-index: 99; display: none;
}
.search-results.open { display: block; }
.sr-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; cursor: pointer; transition: background 0.1s;
}
.sr-item:hover { background: var(--surface-2); }
.sr-item .sr-thumb {
  width: 36px; height: 36px; border-radius: 8px;
  background: var(--primary-soft); display: flex; align-items: center; justify-content: center;
  font-size: 18px; flex-shrink: 0; overflow: hidden;
}
.sr-item .sr-thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; }
.sr-item .sr-name { font-weight: 600; font-size: 13px; }
.sr-item .sr-price { font-size: 12px; color: var(--primary); font-weight: 700; }
.nav-right { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.nav-ops {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; color: var(--text-muted); font-weight: 500;
}
.ops-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--success); box-shadow: 0 0 8px var(--success);
  animation: pulse-live 2s infinite;
}
.nav-cart-btn {
  display: flex; align-items: center; gap: 6px;
  background: var(--primary-grad); color: #fff; border-radius: 999px;
  padding: 8px 16px; font-size: 14px; font-weight: 700;
  transition: filter 0.15s, transform 0.1s; position: relative;
  border: none;
}
.nav-cart-btn:hover { filter: brightness(1.1); transform: translateY(-1px); }
.cart-count {
  background: #fff; color: var(--primary);
  border-radius: 999px; padding: 0 6px;
  font-size: 11px; font-weight: 800; min-width: 18px; text-align: center;
}

/* ===================== HERO ===================== */
.hero {
  background:
    linear-gradient(160deg, rgba(45,90,156,0.04) 0%, rgba(200,58,63,0.03) 60%, var(--bg) 100%),
    repeating-linear-gradient(135deg, transparent 0 38px, rgba(45,90,156,0.02) 38px 40px);
  padding: 72px 24px 64px;
  overflow: hidden; position: relative;
  border-bottom: 2px solid var(--gundam-yellow);
}
.hero::before {
  content: "";
  position: absolute; top: -80px; right: -80px;
  width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(45,90,156,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: linear-gradient(180deg, var(--gundam-red) 0%, var(--gundam-red) 50%, var(--gundam-yellow) 50%, var(--gundam-yellow) 100%);
}
.hero-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr;
  gap: 52px; align-items: center;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--primary-soft); color: var(--primary);
  border: 1.5px solid rgba(45,90,156,0.15); border-radius: 999px;
  padding: 6px 16px; font-size: 13px; font-weight: 700;
  margin-bottom: 24px;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 5.5vw, 52px); font-weight: 800;
  line-height: 1.2; letter-spacing: -0.01em;
  margin-bottom: 20px; text-transform: uppercase;
  color: var(--text);
}
.hero-gradient {
  background: linear-gradient(135deg, var(--gundam-red) 0%, var(--gundam-blue) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero-sub { font-size: 17px; color: var(--text-2); max-width: 540px; margin-bottom: 32px; line-height: 1.7; }
.hero-stats {
  display: flex; align-items: center; gap: 20px;
  margin-bottom: 36px; flex-wrap: wrap;
}
.stat-item { text-align: center; }
.stat-num { font-family: var(--mono); font-size: 24px; font-weight: 700; color: var(--primary); display: block; }
.stat-label { font-size: 13px; color: var(--text-muted); font-weight: 500; margin-top: 3px; }
.stat-sep { color: var(--border); font-size: 20px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-hero-primary {
  background: var(--primary-grad); color: #fff;
  border-radius: 999px; padding: 15px 36px; font-size: 15px; font-weight: 700;
  letter-spacing: 0.3px;
  transition: all 0.3s ease; display: inline-block;
  box-shadow: 0 4px 16px rgba(45,90,156,0.2);
}
.btn-hero-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(45,90,156,0.3);
  filter: brightness(1.05);
}
.btn-hero-primary:active { transform: translateY(0); }

/* ===================== CONTAINER / SECTION ===================== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 56px 0; }
.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 20px; gap: 16px; flex-wrap: wrap;
}
.section-title {
  font-family: var(--font-display);
  font-size: 22px; font-weight: 800; letter-spacing: 0.02em; text-transform: uppercase;
  position: relative; padding-left: 14px;
}
.section-title::before {
  content: ""; position: absolute; left: 0; top: 4px; bottom: 4px; width: 5px;
  background: linear-gradient(180deg, var(--gundam-blue) 0%, var(--gundam-red) 100%);
  border-radius: 2px;
}
.section-count { font-family: var(--mono); font-size: 13px; color: var(--text-muted); font-weight: 500; }

/* ===================== CATEGORIES ===================== */
.cat-bar-section { padding: 32px 0 0; }
.cats-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px;
}
.cat-card {
  background: var(--surface); border: 1.5px solid var(--border);
  border-radius: var(--radius); padding: 16px 14px;
  cursor: pointer; transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
  display: flex; align-items: center; gap: 12px;
}
.cat-card:hover, .cat-card.active {
  border-color: var(--primary); box-shadow: 0 4px 16px rgba(26,58,143,0.12);
  transform: translateY(-2px);
}
.cat-card.active { background: var(--primary-soft); }
.cat-icon { font-size: 26px; flex-shrink: 0; }
.cat-info { min-width: 0; }
.cat-name { font-weight: 700; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cat-count { font-size: 11px; color: var(--text-muted); margin-top: 2px; }

/* Filter pills */
.prod-filter-row { display: flex; gap: 8px; flex-wrap: wrap; }
.filter-pill {
  padding: 6px 14px; border-radius: 999px; font-size: 13px; font-weight: 600;
  border: 1.5px solid var(--border); background: var(--surface); color: var(--text-muted);
  cursor: pointer; transition: all 0.15s;
}
.filter-pill:hover, .filter-pill.active {
  background: var(--primary); border-color: var(--primary); color: #fff;
}

/* ===================== SORT BAR ===================== */
.sort-bar {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 14px; flex-wrap: wrap;
}
.sort-bar label { font-size: 13px; font-weight: 600; color: var(--text-muted); }
#sortSelect {
  padding: 7px 12px 7px 10px;
  border-radius: 999px;
  border: 1.5px solid var(--border); background: var(--surface);
  font-size: 13px; font-family: var(--font); color: var(--text);
  cursor: pointer; outline: none; transition: border-color 0.15s;
  -webkit-appearance: none; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b7388' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center;
  padding-right: 30px;
}
#sortSelect:focus { border-color: var(--primary); }

/* ===================== PRODUCT GRID ===================== */
.prod-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.prod-skeleton {
  height: 280px; border-radius: var(--radius);
  background: linear-gradient(90deg, var(--surface-2) 25%, #e8eaf2 50%, var(--surface-2) 75%);
  background-size: 200% 100%; animation: shimmer 1.5s infinite;
}
@keyframes shimmer { 0%{background-position:200% 0} 100%{background-position:-200% 0} }

.prod-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; cursor: pointer;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.2s;
  display: flex; flex-direction: column;
  box-shadow: var(--shadow);
}
.prod-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-card);
  transform: translateY(-3px);
}
.prod-thumb {
  height: 160px;
  background: linear-gradient(135deg, var(--primary-soft) 0%, var(--primary-soft-2) 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 52px; position: relative; overflow: hidden;
}
.prod-thumb img { width: 100%; height: 100%; object-fit: cover; }
.prod-thumb-emoji { font-size: 52px; user-select: none; }
.prod-badges {
  position: absolute; top: 10px; left: 10px;
  display: flex; flex-direction: column; gap: 6px;
}
.prod-badge {
  padding: 4px 10px; border-radius: 999px; font-size: 11px; font-weight: 700;
  display: inline-block; backdrop-filter: blur(12px);
}
.pb-flash { background: rgba(200,58,63,0.85); color: #fff; }
.pb-low   { background: rgba(212,134,10,0.85); color: #fff; }
.pb-new   { background: rgba(45,90,156,0.85); color: #fff; }
.prod-body { padding: 16px; flex: 1; display: flex; flex-direction: column; }
.prod-cat { font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--primary); font-weight: 700; margin-bottom: 6px; }
.prod-name { font-weight: 700; font-size: 15px; margin-bottom: 6px; line-height: 1.4; color: var(--text); }
.prod-desc {
  font-size: 13px; color: var(--text-muted); line-height: 1.6; margin-bottom: 12px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; flex: 1;
}
.prod-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.prod-price-col { display: flex; flex-direction: column; }
.prod-price { font-family: var(--mono); font-size: 16px; font-weight: 700; color: var(--primary); }
.prod-price-orig { font-family: var(--mono); font-size: 11px; color: var(--text-faint); text-decoration: line-through; }
.prod-stock { font-size: 11px; color: var(--text-muted); font-weight: 500; }
.prod-stock.low   { color: var(--warn); font-weight: 700; }
.prod-stock.empty { color: var(--danger); font-weight: 700; }
.prod-actions { display: flex; gap: 6px; align-items: center; flex-shrink: 0; }
.btn-cart-add {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--surface-2); border: 1.5px solid var(--border);
  cursor: pointer; font-size: 14px; transition: all 0.15s;
  display: flex; align-items: center; justify-content: center;
}
.btn-cart-add:hover:not(:disabled) { background: var(--primary-soft); border-color: var(--primary); }
.btn-cart-add:disabled { opacity: 0.4; cursor: not-allowed; }
.btn-order {
  background: var(--primary-grad); color: #fff;
  border-radius: 999px; padding: 7px 14px; font-size: 12px; font-weight: 700;
  border: none; cursor: pointer; transition: filter 0.15s; white-space: nowrap;
}
.btn-order:hover { filter: brightness(1.1); }
.btn-order:disabled { opacity: 0.5; cursor: not-allowed; }

/* ===================== PAGINATION ===================== */
.pagination {
  display: flex; align-items: center; justify-content: center;
  gap: 6px; flex-wrap: wrap; margin-top: 32px; padding: 8px 0;
}
.page-btn {
  min-width: 38px; height: 38px; padding: 0 10px; border-radius: 999px;
  border: 1.5px solid var(--border); background: var(--surface);
  font-size: 14px; font-weight: 600; cursor: pointer; transition: all 0.15s;
  color: var(--text); font-family: var(--font); display: inline-flex; align-items: center; justify-content: center;
}
.page-btn:hover:not(:disabled):not(.active) { border-color: var(--primary); color: var(--primary); }
.page-btn.active { background: var(--primary-grad); border-color: var(--primary); color: #fff; }
.page-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.page-ellipsis { padding: 0 4px; color: var(--text-faint); line-height: 38px; }

/* ===================== MODAL ===================== */
.modal-bg {
  position: fixed; inset: 0; background: rgba(0,0,0,0.45);
  backdrop-filter: blur(4px); z-index: 200;
  display: flex; align-items: center; justify-content: center; padding: 20px;
  animation: fade-in 0.18s ease;
}
@keyframes fade-in { from{opacity:0} to{opacity:1} }
.modal-box {
  background: var(--surface); border-radius: 24px;
  width: 100%; max-width: 560px; max-height: 90vh; overflow-y: auto;
  animation: slide-up 0.22s cubic-bezier(0.34,1.2,0.64,1);
  box-shadow: 0 24px 80px rgba(0,0,0,0.18);
}
@keyframes slide-up { from{transform:translateY(30px);opacity:0} to{transform:translateY(0);opacity:1} }
.modal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px 0; margin-bottom: 20px;
  position: sticky; top: 0; background: var(--surface); z-index: 1;
  border-bottom: 1px solid var(--border); padding-bottom: 16px;
}
.modal-title { font-size: 18px; font-weight: 800; }
.modal-close {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--surface-2); border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center; font-size: 16px;
  transition: background 0.15s; color: var(--text-muted); flex-shrink: 0;
}
.modal-close:hover { background: var(--border); }

/* Product detail modal */
.md-thumb {
  margin: 0 24px 16px; border-radius: var(--radius); overflow: hidden;
  height: 160px;
  background: linear-gradient(135deg, var(--primary-soft), var(--primary-soft-2));
  display: flex; align-items: center; justify-content: center; font-size: 64px;
}
.md-thumb img { width: 100%; height: 100%; object-fit: cover; }
.md-body { padding: 0 24px 24px; }
.md-cat { font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--primary); font-weight: 700; margin-bottom: 4px; }
.md-name { font-size: 20px; font-weight: 800; margin-bottom: 8px; }
.md-price-row { display: flex; align-items: baseline; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.md-price { font-family: var(--mono); font-size: 26px; font-weight: 700; color: var(--primary); }
.md-price-orig { font-family: var(--mono); font-size: 14px; color: var(--text-faint); text-decoration: line-through; }
.md-flash-badge { background: var(--danger-soft); color: var(--danger); border-radius: 999px; padding: 3px 10px; font-size: 12px; font-weight: 700; }
.md-desc { font-size: 14px; color: var(--text-muted); line-height: 1.65; margin-bottom: 16px; white-space: pre-line; }
.md-divider { border: none; border-top: 1px solid var(--border); margin: 16px 0; }
.md-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); margin-bottom: 8px; }
.md-stock-info { font-size: 12px; color: var(--text-muted); }

/* Qty */
.qty-row { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.qty-ctrl { display: flex; align-items: center; border: 1.5px solid var(--border); border-radius: 999px; overflow: hidden; }
.qty-ctrl button {
  width: 36px; height: 36px; border: none; background: var(--surface-2);
  color: var(--text); font-size: 18px; cursor: pointer; transition: background 0.15s;
}
.qty-ctrl button:hover { background: var(--primary-soft); color: var(--primary); }
.qty-ctrl span { width: 40px; text-align: center; font-weight: 700; font-size: 15px; font-family: var(--mono); }
.qty-total { font-family: var(--mono); font-weight: 700; color: var(--primary); font-size: 16px; margin-left: auto; }

/* Order form */
.form-group { margin-bottom: 14px; }
.form-label { display: block; font-size: 11px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 6px; }
.form-input {
  width: 100%; padding: 11px 14px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--border); background: var(--surface-2);
  font-size: 14px; font-family: var(--font); color: var(--text);
  transition: border-color 0.15s, box-shadow 0.15s; outline: none;
  -webkit-appearance: none;
}
.form-input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); background: var(--surface); }
.form-hint { font-size: 12px; color: var(--text-faint); margin-top: 5px; }
.voucher-row { display: flex; gap: 8px; }
.voucher-row .form-input { border-radius: 999px; }
.btn-apply {
  background: var(--surface-2); border: 1.5px solid var(--border); border-radius: 999px;
  padding: 10px 16px; font-size: 13px; font-weight: 700; cursor: pointer;
  white-space: nowrap; transition: all 0.15s;
}
.btn-apply:hover { border-color: var(--primary); color: var(--primary); }
.voucher-ok  { font-size: 12px; color: var(--success); font-weight: 600; margin-top: 4px; }
.voucher-err { font-size: 12px; color: var(--danger); margin-top: 4px; }

.order-summary {
  background: var(--surface-2); border-radius: var(--radius-sm);
  padding: 12px 14px; margin-bottom: 14px; font-size: 14px;
}
.os-row { display: flex; justify-content: space-between; padding: 4px 0; }
.os-row.disc  { color: var(--success); font-weight: 600; }
.os-row.total { font-weight: 800; font-size: 15px; padding-top: 10px; border-top: 1px dashed var(--border); margin-top: 8px; }

.btn-pay {
  width: 100%; padding: 15px; border-radius: 999px;
  background: var(--primary-grad); color: #fff; border: none;
  font-size: 15px; font-weight: 800; cursor: pointer; font-family: var(--font);
  transition: filter 0.15s, transform 0.1s;
  box-shadow: 0 4px 20px rgba(26,58,143,0.3);
}
.btn-pay:hover { filter: brightness(1.1); transform: translateY(-1px); }
.btn-pay:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

/* ===================== QRIS ===================== */
.qris-wrap { text-align: center; }
.qris-order {
  font-size: 12px; color: var(--text-faint); font-family: var(--mono);
  display: flex; align-items: center; justify-content: center; gap: 6px;
}
.btn-copy-id {
  background: none; border: none; cursor: pointer; font-size: 14px;
  opacity: 0.7; transition: opacity 0.15s; padding: 2px;
}
.btn-copy-id:hover { opacity: 1; }
.qris-amount { font-family: var(--mono); font-size: 26px; font-weight: 700; color: var(--primary); margin: 10px 0; }
#qrisImg { max-width: 240px; border-radius: 12px; margin: 12px auto; border: 1px solid var(--border); }
.qris-timer { font-family: var(--mono); font-size: 18px; font-weight: 700; margin: 8px 0; }
.qris-checking { font-size: 13px; color: var(--text-muted); animation: pulse-live 1.5s infinite; margin-bottom: 12px; }
.qris-steps {
  text-align: left; background: var(--surface-2); border-radius: var(--radius-sm);
  padding: 12px 14px; margin: 12px 0; list-style-position: inside;
}
.qris-steps li { font-size: 13px; color: var(--text-muted); margin-bottom: 5px; padding-left: 2px; }
.qris-steps li:last-child { margin-bottom: 0; }
.btn-cancel-order {
  width: 100%; margin-top: 10px; padding: 11px;
  border-radius: 999px; border: 1.5px solid var(--danger-soft);
  background: var(--danger-soft); color: var(--danger);
  font-size: 14px; font-weight: 700; cursor: pointer; transition: all 0.15s;
}
.btn-cancel-order:hover { background: var(--danger); color: #fff; border-color: var(--danger); }

/* ===================== SUCCESS ===================== */
.success-wrap { text-align: center; padding: 20px 0; }
.success-ic   { font-size: 54px; margin-bottom: 12px; }
.success-title { font-size: 21px; font-weight: 800; margin-bottom: 8px; }
.success-sub  { font-size: 14px; color: var(--text-muted); margin-bottom: 16px; }
.order-detail-box {
  background: var(--armor-dark); color: #7fffd4; border-radius: var(--radius-sm);
  padding: 14px; text-align: left; font-size: 13px; font-family: var(--mono);
  white-space: pre-wrap; word-break: break-all;
  max-height: 220px; overflow-y: auto; line-height: 1.7;
}
.acct-actions { display: flex; gap: 8px; margin-top: 12px; justify-content: center; flex-wrap: wrap; }

/* ===================== CART DRAWER ===================== */
.cart-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.4);
  z-index: 250; display: none; backdrop-filter: blur(3px);
}
.cart-overlay.open { display: block; }
.cart-drawer {
  position: fixed; right: 0; top: 0; bottom: 0;
  width: min(400px, 100vw);
  background: var(--surface);
  box-shadow: -8px 0 40px rgba(0,0,0,0.15);
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
  z-index: 251;
}
.cart-overlay.open .cart-drawer { transform: translateX(0); }
.cart-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 20px; border-bottom: 1px solid var(--border); flex-shrink: 0;
}
.cart-title { font-size: 17px; font-weight: 800; }
.cart-items { flex: 1; overflow-y: auto; padding: 8px 16px; }
.cart-foot { padding: 14px 16px; border-top: 1px solid var(--border); flex-shrink: 0; }
.cart-empty {
  text-align: center; padding: 48px 20px;
  color: var(--text-muted); font-weight: 600;
}
.cart-item {
  display: grid;
  grid-template-columns: 40px 1fr auto auto auto;
  align-items: center; gap: 8px;
  padding: 10px 0; border-bottom: 1px solid var(--border);
}
.cart-item:last-of-type { border-bottom: none; }
.ci-thumb {
  width: 40px; height: 40px; border-radius: 8px;
  background: var(--primary-soft);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; overflow: hidden; flex-shrink: 0;
}
.ci-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ci-info { min-width: 0; }
.ci-name  { font-weight: 700; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ci-price { font-size: 11px; color: var(--primary); font-weight: 600; }
.ci-warn  { font-size: 10px; color: var(--warn); }
.ci-ctrl  {
  display: flex; align-items: center; gap: 0;
  border: 1px solid var(--border); border-radius: 999px; overflow: hidden; flex-shrink: 0;
}
.ci-btn { width: 26px; height: 26px; border: none; background: var(--surface-2); cursor: pointer; font-size: 13px; transition: background 0.1s; }
.ci-btn:hover { background: var(--primary-soft); }
.ci-qty  { width: 28px; text-align: center; font-size: 12px; font-weight: 700; }
.ci-qty-input {
  width: 40px; height: 26px; text-align: center; font-size: 13px; font-weight: 700;
  border: none; background: var(--surface-2); color: var(--text);
  border-radius: 4px; font-family: var(--mono);
}
.ci-qty-input:focus { outline: none; background: var(--primary-soft); }
.ci-sub  { font-size: 12px; font-weight: 700; color: var(--text); font-family: var(--mono); white-space: nowrap; }
.ci-remove { background: none; border: none; cursor: pointer; font-size: 14px; opacity: 0.45; transition: opacity 0.15s; padding: 4px; }
.ci-remove:hover { opacity: 1; }
.btn-cart-buy {
  width: 100%; padding: 8px; border-radius: 999px;
  background: var(--primary-soft); border: 1.5px solid var(--primary);
  color: var(--primary); font-size: 12px; font-weight: 700;
  cursor: pointer; margin-top: 6px; margin-bottom: 10px;
  transition: all 0.15s;
}
.btn-cart-buy:hover { background: var(--primary); color: #fff; }
.cart-total-row {
  display: flex; justify-content: space-between;
  padding: 10px 0; font-weight: 800; font-size: 15px;
  border-bottom: 1px solid var(--border); margin-bottom: 10px;
}
.cart-total-val { font-family: var(--mono); color: var(--primary); }
.btn-cart-checkout {
  width: 100%; padding: 13px; border-radius: 999px;
  background: var(--primary-grad); color: #fff; border: none;
  font-size: 14px; font-weight: 800; cursor: pointer; margin-bottom: 8px;
  transition: filter 0.15s;
}
.btn-cart-checkout:hover { filter: brightness(1.1); }
.btn-cart-clear {
  width: 100%; padding: 9px; border-radius: 999px;
  background: none; border: 1.5px solid var(--border);
  color: var(--text-muted); font-size: 12px; font-weight: 600; cursor: pointer;
  transition: all 0.15s;
}
.btn-cart-clear:hover { border-color: var(--danger); color: var(--danger); }

/* ===================== FOOTER ===================== */
.footer { background: var(--surface); border-top: 1px solid var(--border); padding: 28px 24px; }
.footer-inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 15px; }
.footer-links { display: flex; gap: 24px; }
.footer-links a { font-size: 14px; color: var(--text-muted); transition: color 0.15s; }
.footer-links a:hover { color: var(--primary); }
.footer-copy { font-size: 13px; color: var(--text-faint); }

/* ===================== TOAST ===================== */
.toast-stack {
  position: fixed; bottom: 24px; right: 24px;
  display: flex; flex-direction: column; gap: 8px; z-index: 999;
  pointer-events: none;
}
.toast {
  background: var(--armor-dark); color: #fff;
  padding: 12px 18px; border-radius: var(--radius-sm);
  font-size: 13px; font-weight: 600; box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  animation: slide-in-r 0.22s ease-out;
  display: flex; align-items: center; gap: 8px; max-width: 300px;
  pointer-events: all;
}
.toast.success { background: var(--success); }
.toast.error   { background: var(--danger); }
@keyframes slide-in-r { from{transform:translateX(20px);opacity:0} to{transform:translateX(0);opacity:1} }

/* ===================== RESPONSIVE — TABLET ===================== */
@media (max-width: 960px) {
  .cats-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
  .prod-grid { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
}

/* ===================== RESPONSIVE — MOBILE ===================== */
@media (max-width: 640px) {
  :root { --nav-h: 54px; }

  /* Navbar */
  .navbar { height: var(--nav-h); }
  .nav-inner { padding: 0 14px; gap: 10px; }
  .brand-logo { font-size: 12px; gap: 7px; }
  .brand-icon { width: 30px; height: 30px; font-size: 15px; }
  .nav-center { display: none; }   /* search bar disembunyikan — ada di halaman */
  .nav-ops { display: none; }
  .nav-cart-btn { padding: 6px 12px; font-size: 13px; }

  /* Hero */
  .hero { padding: 24px 14px 20px; }
  .hero-badge { font-size: 11px; padding: 4px 10px; margin-bottom: 14px; }
  .hero-title { font-size: 24px; margin-bottom: 10px; }
  .hero-sub { font-size: 13px; margin-bottom: 16px; }
  .hero-stats { gap: 10px; margin-bottom: 18px; }
  .stat-num { font-size: 18px; }
  .stat-label { font-size: 11px; }
  .btn-hero-primary { padding: 11px 22px; font-size: 13px; }

  /* Container & section */
  .container { padding: 0 12px; }
  .section { padding: 24px 0; }
  .cat-bar-section { padding: 20px 0 0; }

  /* Categories */
  .cats-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .cat-card { padding: 10px 10px; gap: 8px; border-radius: 10px; }
  .cat-icon { font-size: 20px; }
  .cat-name { font-size: 11px; }
  .cat-count { font-size: 10px; }

  /* Filter pills */
  .prod-filter-row { gap: 6px; margin-top: 10px !important; }
  .filter-pill { padding: 5px 11px; font-size: 12px; }

  /* Sort bar */
  .sort-bar { margin-bottom: 10px; }
  .sort-bar label { font-size: 12px; }
  #sortSelect { font-size: 12px; padding: 6px 28px 6px 10px; }

  /* Section head */
  .section-title { font-size: 17px; }

  /* Product grid: 2 kolom di mobile */
  .prod-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .prod-skeleton { height: 220px; }
  .prod-thumb { height: 105px; font-size: 36px; }
  .prod-thumb-emoji { font-size: 36px; }
  .prod-body { padding: 10px 8px 8px; }
  .prod-cat { font-size: 9px; margin-bottom: 3px; }
  .prod-name { font-size: 12px; margin-bottom: 3px; line-height: 1.25; }
  .prod-desc { font-size: 11px; margin-bottom: 6px; -webkit-line-clamp: 2; }
  .prod-price { font-size: 13px; }
  .prod-price-orig { font-size: 10px; }
  .prod-stock { font-size: 10px; }
  .prod-foot { gap: 4px; }
  .prod-actions { gap: 4px; }
  .btn-order { padding: 6px 10px; font-size: 11px; }
  .btn-cart-add { width: 28px; height: 28px; font-size: 12px; }

  /* Pagination */
  .page-btn { min-width: 34px; height: 34px; font-size: 13px; }
  .pagination { gap: 4px; margin-top: 20px; }

  /* Modal: slide dari bawah */
  .modal-bg { align-items: flex-end; padding: 0; }
  .modal-box {
    border-radius: 20px 20px 0 0; max-height: 92vh;
    animation: slide-up-mobile 0.25s cubic-bezier(0.34,1.1,0.64,1);
  }
  @keyframes slide-up-mobile { from{transform:translateY(50px);opacity:0} to{transform:translateY(0);opacity:1} }
  .modal-head { padding: 14px 16px; margin-bottom: 0; }
  .modal-title { font-size: 16px; }
  .md-thumb { height: 130px; margin: 0 14px 12px; border-radius: 10px; }
  .md-body { padding: 0 16px 20px; }
  .md-name { font-size: 18px; }
  .md-price { font-size: 22px; }
  .md-desc { font-size: 13px; }
  .qty-ctrl button { width: 34px; height: 34px; font-size: 16px; }
  .qty-ctrl span { width: 36px; font-size: 14px; }
  .form-input { font-size: 16px; } /* mencegah iOS zoom saat focus */
  .btn-pay { font-size: 15px; padding: 14px; }

  /* QRIS */
  #qrisImg { max-width: 200px; }
  .qris-amount { font-size: 22px; }
  .qris-timer { font-size: 16px; }

  /* Cart drawer */
  .cart-drawer { width: 100vw; }
  .cart-item { grid-template-columns: 38px 1fr auto auto auto; gap: 6px; }
  .ci-name { font-size: 11px; }

  /* Success */
  .order-detail-box { font-size: 12px; max-height: 160px; }
  .acct-actions { gap: 6px; }
  .btn-apply { padding: 9px 14px; font-size: 12px; }

  /* Footer */
  .footer { padding: 16px 12px; }
  .footer-links { display: none; }
  .footer-inner { justify-content: center; gap: 10px; }

  /* Toast */
  .toast-stack { bottom: 14px; right: 12px; left: 12px; }
  .toast { max-width: none; width: 100%; font-size: 13px; }
}

/* ===================== VERY SMALL (≤380px) ===================== */
@media (max-width: 380px) {
  .prod-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .prod-thumb { height: 90px; }
  .prod-name { font-size: 11px; }
  .prod-price { font-size: 12px; }
  .btn-order { padding: 5px 8px; font-size: 10px; }
  .btn-cart-add { width: 24px; height: 24px; font-size: 11px; }
}

/* ===================== FLOATING CHAT BUBBLE ===================== */
.chat-bubble {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gundam-blue) 0%, var(--gundam-blue-light) 100%);
  box-shadow: 0 4px 16px rgba(26,58,143,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 28px;
  transition: all 0.3s ease;
  z-index: 999;
}
.chat-bubble:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 24px rgba(26,58,143,0.35);
}
.chat-bubble a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  text-decoration: none;
  color: white;
}

@media (max-width: 640px) {
  .chat-bubble {
    bottom: 16px;
    right: 16px;
    width: 48px;
    height: 48px;
    font-size: 24px;
  }
}

/* ===================== FLASH TICKER — sticky di bawah navbar ===================== */
.ftk-bar {
  position: sticky;
  top: var(--nav-h);
  z-index: 89;
  height: 44px;
  background: linear-gradient(90deg, #080e1f 0%, #0d1a3a 40%, #3a0808 100%);
  border-bottom: 2px solid rgba(255,194,14,0.4);
  display: flex;
  align-items: center;
  overflow: hidden;
  box-shadow: 0 3px 12px rgba(0,0,0,0.35);
}
.ftk-prefix {
  flex-shrink: 0;
  padding: 0 16px;
  height: 100%;
  display: flex;
  align-items: center;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.1em;
  color: var(--gundam-yellow);
  border-right: 2px solid rgba(255,194,14,0.35);
  background: #080e1f;
  white-space: nowrap;
  animation: zap-pulse 0.9s ease-in-out infinite alternate;
}
.ftk-scroll {
  flex: 1;
  overflow: hidden;
  height: 100%;
  position: relative;
}
/* Fade edges */
.ftk-scroll::before,
.ftk-scroll::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  width: 32px;
  z-index: 1;
  pointer-events: none;
}
.ftk-scroll::before { left: 0;  background: linear-gradient(90deg, #080e1f, transparent); }
.ftk-scroll::after  { right: 0; background: linear-gradient(-90deg, #3a0808, transparent); }

.ftk-track {
  display: inline-flex;
  align-items: center;
  height: 100%;
  white-space: nowrap;
  animation: ftk-scroll 30s linear infinite;
  cursor: pointer;
}
.ftk-track:hover { animation-play-state: paused; }
@keyframes ftk-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.ftk-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 20px;
  height: 100%;
  border-right: 1px solid rgba(255,255,255,0.07);
  transition: background 0.15s;
}
.ftk-chip:hover { background: rgba(255,194,14,0.1); }
.ftk-disc {
  background: var(--gundam-red);
  color: #fff;
  font-size: 9px;
  font-weight: 900;
  border-radius: 3px;
  padding: 2px 6px;
  font-family: var(--mono);
  flex-shrink: 0;
}
.ftk-name  { font-size: 13px; font-weight: 700; color: rgba(255,255,255,0.9); }
.ftk-orig  { font-family: var(--mono); font-size: 11px; color: rgba(255,255,255,0.3); text-decoration: line-through; }
.ftk-price { font-family: var(--mono); font-size: 13px; font-weight: 800; color: var(--gundam-yellow); }
.ftk-sep   { color: rgba(255,194,14,0.3); font-size: 16px; }

@media (max-width: 640px) {
  .ftk-bar { height: 38px; }
  .ftk-prefix { font-size: 9px; padding: 0 10px; }
  .ftk-name { font-size: 12px; }
  .ftk-price { font-size: 12px; }
}

/* ===================== GUNDAM ENHANCEMENTS ===================== */

/* Body — subtle diagonal armor-panel lines */
body {
  background-image:
    repeating-linear-gradient(135deg, transparent 0 60px, rgba(26,58,143,0.018) 60px 62px),
    repeating-linear-gradient(45deg,  transparent 0 80px, rgba(216,35,42,0.012)  80px 82px);
}

/* Hero — tricolor stripe bottom border + stronger diagonal armor lines */
.hero {
  background:
    linear-gradient(160deg, rgba(26,58,143,0.07) 0%, rgba(216,35,42,0.04) 60%, var(--bg) 100%),
    repeating-linear-gradient(135deg, transparent 0 34px, rgba(26,58,143,0.03) 34px 36px),
    repeating-linear-gradient(45deg,  transparent 0 68px, rgba(255,194,14,0.02) 68px 70px) !important;
  border-bottom: none !important;
  border-bottom: 4px solid transparent !important;
  border-image: linear-gradient(90deg,
    var(--gundam-blue)   0%  33%,
    var(--gundam-yellow) 33% 66%,
    var(--gundam-red)    66% 100%) 1 !important;
}

/* Section title — tricolor accent bar */
.section-title::before {
  background: linear-gradient(180deg,
    var(--gundam-blue)   0%   40%,
    var(--gundam-red)    40%  75%,
    var(--gundam-yellow) 75% 100%) !important;
  width: 6px !important;
}

/* Product card — armor corner clip (kuning) + stronger hover border */
.prod-card { position: relative; overflow: hidden; }
.prod-card::after {
  content: "";
  position: absolute; top: 0; right: 0;
  width: 0; height: 0;
  border-style: solid;
  border-width: 0 22px 22px 0;
  border-color: transparent var(--gundam-yellow) transparent transparent;
  opacity: 0;
  transition: opacity 0.2s;
  z-index: 2;
}
.prod-card:hover::after { opacity: 0.85; }
.prod-card:hover {
  border-color: var(--gundam-blue) !important;
  box-shadow: 0 0 0 2px rgba(26,58,143,0.15), 0 8px 28px rgba(26,58,143,0.12), inset 0 0 0 1px rgba(255,194,14,0.12) !important;
}

/* Filter pill active — Gundam red accent */
.filter-pill.active {
  background: linear-gradient(135deg, var(--gundam-blue) 0%, var(--gundam-blue-light) 100%) !important;
  border-color: var(--gundam-blue) !important;
  box-shadow: 0 2px 8px rgba(26,58,143,0.25);
}

/* Navbar tricolor top stripe + subtle Gundam armor background */
.navbar {
  border-top: 4px solid transparent !important;
  border-image: linear-gradient(90deg,
    var(--gundam-blue)   0%  33%,
    var(--gundam-red)    33% 66%,
    var(--gundam-yellow) 66% 100%) 1 !important;
  background:
    repeating-linear-gradient(135deg, transparent 0 28px, rgba(26,58,143,0.028) 28px 30px),
    repeating-linear-gradient(45deg,  transparent 0 56px, rgba(216,35,42,0.016) 56px 58px),
    rgba(255,255,255,0.92) !important;
}

/* ===================== FLASH SALE — full-width cards ===================== */
.flash-section {
  background: linear-gradient(135deg, #0b1630 0%, #1a2a6c 55%, #6b0d10 100%);
  padding: 20px 0 22px;
  position: relative; overflow: hidden;
  border-top: 3px solid rgba(255,194,14,0.3);
  border-bottom: 3px solid rgba(255,194,14,0.3);
}
.flash-section::before {
  content: "";
  position: absolute; inset: 0;
  background: repeating-linear-gradient(-45deg,
    transparent 0 16px, rgba(255,194,14,0.035) 16px 18px);
  pointer-events: none;
}
.flash-section::after {
  content: "";
  position: absolute; bottom: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg,
    var(--gundam-blue) 0%, var(--gundam-yellow) 50%, var(--gundam-red) 100%);
}

/* Header flash sale — centered container */
.flash-head-wrap {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px; flex-wrap: wrap; gap: 8px;
}
.flash-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px; flex-wrap: wrap; gap: 8px;
}
.flash-label {
  font-family: var(--font-display);
  font-size: 17px; font-weight: 900; letter-spacing: 0.08em; text-transform: uppercase;
  color: #fff; display: flex; align-items: center; gap: 10px;
}
.flash-zap {
  color: var(--gundam-yellow);
  display: inline-block;
  animation: zap-pulse 0.9s ease-in-out infinite alternate;
}
@keyframes zap-pulse { from{opacity:1;transform:scale(1)} to{opacity:0.5;transform:scale(1.3)} }

.flash-live-badge {
  background: var(--gundam-red); color: #fff;
  font-size: 10px; font-weight: 800; letter-spacing: 0.1em;
  padding: 3px 9px; border-radius: 4px; font-family: var(--mono);
  animation: blink-badge 1.3s ease-in-out infinite alternate;
}
@keyframes blink-badge { from{background:var(--gundam-red);opacity:1} to{background:#ff2233;opacity:0.75} }

.flash-nav-row { display: flex; gap: 6px; }
.flash-nav-btn {
  width: 30px; height: 30px; border-radius: 50%;
  background: rgba(255,255,255,0.1); border: 1.5px solid rgba(255,255,255,0.25);
  color: #fff; font-size: 12px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s, border-color 0.15s;
}
.flash-nav-btn:hover {
  background: rgba(255,194,14,0.2); border-color: var(--gundam-yellow);
}

/* Track full-width — tidak dibatasi container */
.flash-track {
  display: flex; gap: 14px;
  overflow-x: auto; scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  padding: 4px 24px 10px;
  -ms-overflow-style: none; scrollbar-width: none;
  width: 100%;
}
.flash-track::-webkit-scrollbar { display: none; }

.flash-card {
  flex: 0 0 180px; width: 180px;
  background: rgba(255,255,255,0.07);
  border: 1.5px solid rgba(255,194,14,0.22);
  border-radius: 14px; padding: 13px;
  cursor: pointer; position: relative; overflow: hidden;
  scroll-snap-align: start;
  transition: border-color 0.15s, transform 0.2s, background 0.15s;
}
.flash-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2.5px;
  background: linear-gradient(90deg, var(--gundam-yellow) 0%, var(--gundam-red) 100%);
}
.flash-card:hover {
  border-color: var(--gundam-yellow);
  background: rgba(255,255,255,0.13);
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3), 0 0 12px rgba(255,194,14,0.15);
}

.flash-card-thumb {
  height: 92px; border-radius: 10px; overflow: hidden;
  background: rgba(255,255,255,0.07);
  display: flex; align-items: center; justify-content: center; font-size: 38px;
  margin-bottom: 10px;
}
.flash-card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.flash-card-cat {
  font-size: 9px; text-transform: uppercase; letter-spacing: 0.07em;
  color: rgba(255,194,14,0.8); font-weight: 700; margin-bottom: 3px;
}
.flash-card-name {
  font-size: 11px; font-weight: 700; color: rgba(255,255,255,0.92);
  line-height: 1.35; margin-bottom: 7px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.flash-card-orig {
  font-family: var(--mono); font-size: 10px;
  color: rgba(255,255,255,0.32); text-decoration: line-through; margin-bottom: 2px;
}
.flash-card-now {
  font-family: var(--mono); font-size: 14px; font-weight: 800;
  color: var(--gundam-yellow);
}
.flash-discount-badge {
  position: absolute; top: 8px; right: 8px;
  background: var(--gundam-red); color: #fff;
  font-size: 9px; font-weight: 900; border-radius: 4px;
  padding: 2px 6px; font-family: var(--mono);
}

/* Responsive Flash */
@media (max-width: 640px) {
  .flash-card { flex: 0 0 148px; width: 148px; padding: 10px; }
  .flash-card-thumb { height: 70px; font-size: 28px; }
  .flash-card-name { font-size: 10px; }
  .flash-card-now { font-size: 13px; }
  .flash-label { font-size: 14px; }
  .flash-head-wrap { padding: 0 14px; }
  .flash-track { padding: 4px 14px 10px; gap: 10px; }
}

/* ===================== REDUCED MOTION ===================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
