/* ==========================================================================
   Sentra Besi Nusantara — Toko Sentral Besi & Baja
   Style: "IronSpec Command" (Tech Spec Powerhouse archetype, zona Publik)
          + Administration Command Center (zona Administrasi, pola baru)
   Palet: "Steel Spectrum" — cobalt blue + safety orange + hazard amber
   ========================================================================== */

:root {
  --primary: #0b5fa5;
  --primary-light: #1878c7;
  --secondary: #ff6b1a;
  --secondary-light: #ff9a5c;
  --accent: #ffc107;
  --bg: #f4f6f9;
  --surface: #ffffff;
  --border: #e1e7ef;
  --text: #1b2430;
  --text-muted: #5b6675;
  --success: #2e9e5b;
  --warning: #f2b705;
  --danger: #e23636;
  --info: #12a0c4;
  --radius: 10px;
  --shadow: 0 4px 16px rgba(11, 95, 165, 0.1);
  --shadow-lg: 0 12px 32px rgba(11, 95, 165, 0.18);
  --font-head: 'Barlow Semi Condensed', Arial, sans-serif;
  --font-body: 'Inter', Arial, sans-serif;
  /* Admin sidebar tetap gelap terlepas dari tema, pola umum dashboard admin */
  --admin-sidebar-bg: #0f1b2d;
  --admin-sidebar-text: #c7d2e0;
  --admin-sidebar-border: #1c2c42;
}

:root[data-theme="dark"] {
  --primary: #4c9fe0;
  --primary-light: #6fb6ea;
  --secondary: #ff8a4c;
  --secondary-light: #ffb083;
  --accent: #ffd54f;
  --bg: #0a1220;
  --surface: #10192a;
  --border: #223046;
  --text: #e7ecf2;
  --text-muted: #9fb0c3;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --primary: #4c9fe0;
    --primary-light: #6fb6ea;
    --secondary: #ff8a4c;
    --secondary-light: #ffb083;
    --accent: #ffd54f;
    --bg: #0a1220;
    --surface: #10192a;
    --border: #223046;
    --text: #e7ecf2;
    --text-muted: #9fb0c3;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  transition: background 0.3s ease, color 0.3s ease;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-head); margin: 0 0 0.5em; font-weight: 700; }
p { margin: 0 0 1em; }
table { border-collapse: collapse; width: 100%; }
.container { max-width: 1240px; margin: 0 auto; padding: 0 20px; }
.section { padding: 72px 0; }
.section-tight { padding: 44px 0; }
.text-center { text-align: center; }
.eyebrow { display: inline-block; color: var(--secondary); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.8rem; margin-bottom: 10px; }
.section-title { font-size: clamp(1.6rem, 3vw, 2.4rem); }
.section-desc { color: var(--text-muted); max-width: 640px; margin: 0 auto 40px; }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--secondary); color: #fff; padding: 10px 16px; z-index: 2000; }
.skip-link:focus { left: 10px; top: 10px; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; border-radius: 999px; font-weight: 700; cursor: pointer;
  border: 2px solid transparent; font-size: 0.95rem; transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease;
  font-family: var(--font-body);
}
.btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.btn-primary { background: var(--secondary); color: #fff; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-outline { background: transparent; border-color: var(--surface); color: var(--surface); }
.btn-outline-dark { background: transparent; border-color: var(--primary); color: var(--primary); }
.btn-outline-dark:hover { background: var(--primary); color: #fff; }
.btn-accent { background: var(--accent); color: #1b2430; }
.btn-sm { padding: 8px 16px; font-size: 0.85rem; }
.btn-block { width: 100%; }
.btn:disabled, .btn.btn-disabled-look { opacity: 0.5; cursor: not-allowed; pointer-events: none; }

/* ---- Navbar ---- */
.navbar { position: sticky; top: 0; z-index: 900; background: var(--surface); border-bottom: 1px solid var(--border); transition: box-shadow 0.25s ease; }
.navbar.is-scrolled { box-shadow: var(--shadow); }
.navbar-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; max-width: 1240px; margin: 0 auto; gap: 20px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 800; font-size: 1.15rem; color: var(--primary); }
.brand-mark { width: 38px; height: 38px; border-radius: 8px; background: linear-gradient(135deg, var(--primary), var(--secondary)); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1rem; flex-shrink: 0; }
.nav-menu { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-menu > li { position: relative; }
.nav-link { display: flex; align-items: center; gap: 6px; padding: 10px 13px; border-radius: 6px; font-weight: 600; color: var(--text); font-size: 0.93rem; }
.nav-link:hover, .nav-link.active { color: var(--secondary); }
.nav-dropdown { position: absolute; top: 100%; left: 0; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; box-shadow: var(--shadow-lg); min-width: 230px; padding: 10px; opacity: 0; visibility: hidden; transform: translateY(6px); transition: all 0.18s ease; }
.nav-menu > li:hover .nav-dropdown, .nav-menu > li.open .nav-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-dropdown a { display: block; padding: 9px 12px; border-radius: 6px; font-size: 0.88rem; }
.nav-dropdown a:hover { background: var(--bg); color: var(--secondary); }
.nav-dropdown small { display: block; color: var(--text-muted); font-weight: 400; font-size: 0.78rem; margin-top: 2px; }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.theme-toggle, .icon-btn { background: var(--bg); border: 1px solid var(--border); width: 40px; height: 40px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; color: var(--primary); font-size: 1rem; position: relative; }
.icon-btn .cart-count { position: absolute; top: -4px; right: -4px; background: var(--secondary); color: #fff; font-size: 0.65rem; font-weight: 800; min-width: 17px; height: 17px; border-radius: 50%; display: flex; align-items: center; justify-content: center; padding: 0 3px; }
.hamburger { display: none; background: none; border: none; font-size: 1.4rem; cursor: pointer; color: var(--primary); }
#nav-cart-desktop { display: flex; }

@media (max-width: 980px) {
  #nav-cart-desktop { display: none; }
  .nav-menu { position: fixed; inset: 0 0 0 auto; width: min(320px, 85vw); height: 100vh; background: var(--surface); flex-direction: column; align-items: stretch; padding: 90px 20px 20px; transform: translateX(100%); transition: transform 0.28s ease; overflow-y: auto; z-index: 950; box-shadow: var(--shadow-lg); }
  .nav-menu.open { transform: translateX(0); }
  .nav-dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: none; padding: 4px 0 4px 14px; display: none; }
  .nav-menu > li.open .nav-dropdown { display: block; }
  .hamburger { display: block; }
  .nav-menu > li { border-bottom: 1px solid var(--border); }
}

/* ---- Hero ---- */
.hero { background: linear-gradient(120deg, var(--primary) 0%, var(--primary-light) 100%); color: #fff; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(135deg, rgba(255,255,255,0.05) 0 2px, transparent 2px 26px); pointer-events: none; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 40px; align-items: center; padding: 66px 0; position: relative; }
.hero h1 { font-size: clamp(2rem, 4vw, 3.1rem); line-height: 1.15; }
.hero-lead { color: #dbe9f6; max-width: 540px; font-size: 1.05rem; }
.hero-badges { display: flex; gap: 10px; flex-wrap: wrap; margin: 18px 0 28px; }
.hero-badge { background: rgba(255,255,255,0.14); border: 1px solid rgba(255,255,255,0.28); padding: 6px 14px; border-radius: 20px; font-size: 0.8rem; font-weight: 600; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-visual { border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-lg); }
.hero-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-top: 46px; border-top: 1px solid rgba(255,255,255,0.22); padding-top: 26px; }
.hero-stat b { display: block; font-size: 1.8rem; font-family: var(--font-head); }
.hero-stat span { color: #cfe0ea; font-size: 0.85rem; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; padding: 40px 0; } .hero-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---- Marquee / badge row ---- */
.badge-row { background: var(--surface); border-bottom: 1px solid var(--border); padding: 24px 0; }
.badge-track { display: flex; gap: 34px; overflow-x: auto; align-items: center; scrollbar-width: none; }
.badge-track::-webkit-scrollbar { display: none; }
.badge-item { display: flex; align-items: center; gap: 10px; flex-shrink: 0; color: var(--text-muted); font-weight: 700; font-size: 0.85rem; white-space: nowrap; }
.badge-item i { color: var(--secondary); font-size: 1.25rem; }

/* ---- Cards / grid ---- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-8 { grid-template-columns: repeat(8, minmax(0, 1fr)); }
@media (max-width: 980px) { .grid-4, .grid-8 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .grid-2, .grid-3, .grid-4, .grid-8 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) {
  /* Kartu produk (gambar + 2 badge + kategori + nama + harga + 2 tombol) butuh
     lebar minimum lebih besar dari kartu galeri/testimoni — 2 kolom di layar
     sangat sempit membuat tombol "Lihat Detail" membungkus 2 baris dan
     tombol keranjang ikut memanjang mengikutinya (diketahui lewat audit
     computed layout, bukan cuma dugaan visual). */
  #catalog-grid, #home-products { grid-template-columns: 1fr; }
}

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.card-body { padding: 20px; }
.card-tag { display: inline-block; background: var(--bg); color: var(--primary); font-size: 0.7rem; font-weight: 700; padding: 4px 10px; border-radius: 20px; margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.04em; }

/* ---- Kategori spotlight ---- */
.cat-card { text-align: center; padding: 24px 14px; cursor: pointer; }
.cat-card i { font-size: 1.9rem; color: var(--secondary); margin-bottom: 10px; }
.cat-card h4 { font-size: 0.92rem; margin-bottom: 2px; }
.cat-card span { font-size: 0.78rem; color: var(--text-muted); }
.cat-card.active { border-color: var(--secondary); box-shadow: 0 0 0 2px var(--secondary) inset; }

/* ---- Feature matrix ---- */
.feature-matrix { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.feature-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; text-align: center; }
.feature-item i { font-size: 1.6rem; color: var(--primary); margin-bottom: 10px; }
.feature-item h4 { font-size: 0.9rem; }
.feature-item p { font-size: 0.8rem; color: var(--text-muted); margin: 0; }
@media (max-width: 860px) { .feature-matrix { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---- Ikon layanan & daftar checklist (Tentang, Layanan) ---- */
.service-icon { width: 56px; height: 56px; border-radius: 12px; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; margin-bottom: 16px; }
.service-list { list-style: none; padding: 0; margin: 14px 0 0; }
.service-list li { padding: 6px 0 6px 26px; position: relative; font-size: 0.92rem; color: var(--text-muted); }
.service-list li::before { content: "\f00c"; font-family: "Font Awesome 6 Free"; font-weight: 900; position: absolute; left: 0; color: var(--secondary); }

/* ---- Timeline (proses/jejak pertumbuhan) ---- */
.process-timeline { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; position: relative; margin-top: 30px; }
.process-timeline::before { content: ""; position: absolute; top: 50px; left: 6%; right: 6%; height: 3px; background: var(--border); z-index: 0; }
.process-step { position: relative; z-index: 1; text-align: center; }
.process-step img { width: 90px; height: 90px; margin: 0 auto 16px; }
.process-step h4 { font-size: 1rem; }
.process-step p { font-size: 0.85rem; color: var(--text-muted); }
.process-num { position: absolute; top: -6px; right: 32%; background: var(--secondary); color: #fff; width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.8rem; font-weight: 800; }
@media (max-width: 860px) { .process-timeline { grid-template-columns: minmax(0, 1fr); } .process-timeline::before { display: none; } }

/* ---- Search + filter chip ---- */
.catalog-toolbar { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; margin-bottom: 26px; }
.search-box { flex: 1; min-width: 220px; position: relative; }
.search-box input { width: 100%; padding: 12px 16px 12px 42px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font-size: 0.95rem; }
.search-box i { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--text-muted); }
.chip-row { display: flex; gap: 10px; flex-wrap: wrap; }
.chip { border: 1px solid var(--border); background: var(--surface); padding: 8px 16px; border-radius: 20px; font-weight: 600; font-size: 0.83rem; cursor: pointer; }
.chip.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.no-result { text-align: center; padding: 40px 20px; color: var(--text-muted); display: none; }
.no-result.show { display: block; }

/* ---- Product card ---- */
.product-card img { aspect-ratio: 4/3; object-fit: cover; }
.product-card .price { color: var(--primary); font-weight: 800; font-size: 1.05rem; }
.product-card .price small { color: var(--text-muted); font-weight: 500; font-size: 0.75rem; }
.product-card .unit { color: var(--text-muted); font-size: 0.78rem; }
.product-card { position: relative; }
.product-card-overlay { position: absolute; top: 10px; left: 10px; right: 10px; z-index: 1; display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; pointer-events: none; }
.product-card-overlay > * { pointer-events: auto; }
.product-card-overlay .card-tag { margin: 0; background: var(--secondary); color: #fff; }

/* ---- Spec table (sortable) ---- */
.spec-table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); }
.spec-table { min-width: 640px; font-size: 0.88rem; }
.spec-table th, .spec-table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--border); white-space: nowrap; }
.spec-table thead th { background: var(--bg); font-family: var(--font-head); font-weight: 700; cursor: pointer; user-select: none; }
.spec-table thead th i { margin-left: 4px; color: var(--text-muted); font-size: 0.75rem; }
.spec-table tbody tr:hover { background: var(--bg); }
.spec-table tbody tr:last-child td { border-bottom: none; }

/* ---- Tier tabs (perbandingan grade) ---- */
.tier-tabs { display: flex; gap: 10px; margin-bottom: 22px; flex-wrap: wrap; }
.tier-tab-btn { flex: 1; min-width: 140px; padding: 14px; border-radius: var(--radius); border: 2px solid var(--border); background: var(--surface); cursor: pointer; text-align: center; font-weight: 700; }
.tier-tab-btn.active { border-color: var(--secondary); background: rgba(255,107,26,0.08); color: var(--secondary); }
.tier-bar-row { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.tier-bar-label { width: 190px; font-size: 0.85rem; color: var(--text-muted); flex-shrink: 0; }
@media (max-width: 620px) {
  .tier-bar-row { flex-wrap: wrap; row-gap: 4px; }
  .tier-bar-label { width: 100%; }
  .tier-bar-track { flex: 1 1 auto; }
}
.tier-bar-track { flex: 1; height: 12px; background: var(--bg); border-radius: 8px; overflow: hidden; }
.tier-bar-fill { height: 100%; background: linear-gradient(90deg, var(--primary), var(--secondary)); border-radius: 8px; transition: width 0.6s ease; }
.tier-bar-value { width: 60px; text-align: right; font-weight: 700; font-size: 0.85rem; }

/* ---- Before/After slider ---- */
.ba-slider { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 7/5; user-select: none; box-shadow: var(--shadow); }
.ba-slider img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba-slider .ba-after { clip-path: inset(0 0 0 50%); }
.ba-handle { position: absolute; top: 0; bottom: 0; left: 50%; width: 4px; background: #fff; cursor: ew-resize; transform: translateX(-2px); box-shadow: 0 0 0 2px rgba(0,0,0,0.15); }
.ba-handle::after { content: "\f337"; font-family: "Font Awesome 6 Free"; font-weight: 900; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); background: var(--secondary); color: #fff; width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.ba-label { position: absolute; top: 14px; padding: 4px 12px; border-radius: 6px; background: rgba(0,0,0,0.55); color: #fff; font-size: 0.78rem; font-weight: 700; }
.ba-label.left { left: 14px; } .ba-label.right { right: 14px; }
.ba-range { width: 100%; margin-top: 12px; accent-color: var(--secondary); }

/* ---- SKU grid ---- */
.sku-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px,1fr)); gap: 12px; }
.sku-item { border: 2px solid var(--border); border-radius: 8px; padding: 12px; text-align: center; cursor: pointer; font-size: 0.82rem; background: var(--surface); color: var(--text); font-family: var(--font-body); display: block; width: 100%; }
.sku-item.active { border-color: var(--secondary); background: rgba(255,107,26,0.08); }
.sku-item b { display: block; font-family: var(--font-head); font-size: 1rem; }

/* ---- Kalkulator ---- */
.calc-card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 30px; box-shadow: var(--shadow); }
.calc-result { background: var(--bg); border-radius: var(--radius); padding: 20px; margin-top: 18px; border: 1px dashed var(--border); }
.calc-result-row { display: flex; justify-content: space-between; padding: 6px 0; font-size: 0.92rem; }
.calc-result-row b { color: var(--primary); }
.calc-result .total { font-size: 1.3rem; color: var(--secondary); font-family: var(--font-head); font-weight: 800; }

/* ---- Cart / keranjang ---- */
.cart-table th, .cart-table td { padding: 14px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: middle; }
.cart-table thead th { font-family: var(--font-head); font-size: 0.85rem; color: var(--text-muted); }
.cart-item-info { display: flex; gap: 12px; align-items: center; }
.cart-item-info img { width: 64px; height: 64px; border-radius: 8px; object-fit: cover; flex-shrink: 0; }
.qty-stepper { display: inline-flex; align-items: center; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.qty-stepper button { background: var(--bg); border: none; width: 32px; height: 32px; cursor: pointer; font-size: 1rem; }
.qty-stepper input { width: 44px; text-align: center; border: none; background: var(--surface); color: var(--text); font-weight: 700; }
.cart-remove { color: var(--danger); cursor: pointer; background: none; border: none; font-size: 1rem; }
.cart-empty { text-align: center; padding: 60px 20px; color: var(--text-muted); }
.summary-box { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; position: sticky; top: 90px; }
.summary-row { display: flex; justify-content: space-between; padding: 8px 0; font-size: 0.92rem; }
.summary-row.total { border-top: 1px solid var(--border); margin-top: 8px; padding-top: 14px; font-size: 1.15rem; font-weight: 800; color: var(--primary); }

/* ---- Checkout ---- */
.checkout-steps { display: flex; justify-content: center; gap: 8px; margin-bottom: 40px; flex-wrap: wrap; }
.checkout-step { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; color: var(--text-muted); font-weight: 700; }
.checkout-step .num { width: 26px; height: 26px; border-radius: 50%; background: var(--border); color: var(--text); display: flex; align-items: center; justify-content: center; font-size: 0.8rem; }
.checkout-step.active { color: var(--secondary); } .checkout-step.active .num { background: var(--secondary); color: #fff; }
.checkout-step.done .num { background: var(--success); color: #fff; }
.payment-method-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.payment-option { border: 2px solid var(--border); border-radius: var(--radius); padding: 16px; text-align: center; cursor: pointer; background: var(--surface); color: var(--text); font-family: var(--font-body); display: block; width: 100%; }
.payment-option img, .payment-option i { font-size: 1.6rem; color: var(--primary); margin-bottom: 8px; }
.payment-option.active { border-color: var(--secondary); background: rgba(255,107,26,0.06); }
.payment-option small { display: block; color: var(--text-muted); font-size: 0.72rem; margin-top: 4px; }
.demo-banner { background: rgba(242,183,5,0.14); border: 1px dashed var(--warning); color: var(--text); border-radius: var(--radius); padding: 12px 18px; font-size: 0.85rem; display: flex; gap: 10px; align-items: flex-start; margin-bottom: 24px; }
.demo-banner i { color: var(--warning); margin-top: 2px; }
@media (max-width: 720px) { .payment-method-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---- Order success ---- */
.success-box { text-align: center; padding: 60px 20px; max-width: 560px; margin: 0 auto; }
.success-icon { width: 90px; height: 90px; border-radius: 50%; background: rgba(46,158,91,0.12); color: var(--success); display: flex; align-items: center; justify-content: center; font-size: 2.4rem; margin: 0 auto 20px; }
.order-summary-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; text-align: left; margin-top: 20px; }

/* ---- Stat counter ---- */
.stat-band { background: var(--primary); color: #fff; }
.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; text-align: center; }
.stat-grid b { font-size: 2.2rem; font-family: var(--font-head); display: block; }
@media (max-width: 720px) { .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---- FAQ / Tanya Jawab ---- */
.accordion-item { border: 1px solid var(--border); border-radius: 10px; margin-bottom: 12px; overflow: hidden; background: var(--surface); }
.accordion-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px; cursor: pointer; font-weight: 700; }
.accordion-head i { transition: transform 0.25s ease; color: var(--secondary); }
.accordion-item.open .accordion-head i { transform: rotate(45deg); }
.accordion-body { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; color: var(--text-muted); }
.accordion-body-inner { padding: 0 20px 18px; }
.accordion-item.open .accordion-body { max-height: 420px; }

.qa-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; margin-bottom: 16px; }
.qa-question { display: flex; gap: 12px; align-items: flex-start; }
.qa-question i { color: var(--secondary); margin-top: 3px; }
.qa-meta { font-size: 0.78rem; color: var(--text-muted); margin: 4px 0 10px; }
.qa-answer { background: var(--bg); border-radius: 8px; padding: 14px 16px; display: flex; gap: 10px; margin-left: 28px; }
.qa-answer i { color: var(--primary); margin-top: 3px; }
.qa-badge { display: inline-block; background: rgba(46,158,91,0.12); color: var(--success); font-size: 0.72rem; font-weight: 700; padding: 3px 10px; border-radius: 20px; }
.qa-badge.pending { background: rgba(242,183,5,0.15); color: #a06c00; }

/* ---- Gallery ---- */
.gallery-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.gallery-grid figure { margin: 0; border-radius: 10px; overflow: hidden; cursor: zoom-in; position: relative; }
.gallery-grid img { transition: transform 0.3s ease; }
.gallery-grid figure:hover img { transform: scale(1.06); }
@media (max-width: 860px) { .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---- Testimonials ---- */
.testi-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; }
.testi-stars { color: var(--warning); margin-bottom: 10px; }
.testi-who { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.testi-who img { width: 44px; height: 44px; border-radius: 50%; }

/* ---- Forms ---- */
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-weight: 700; margin-bottom: 6px; font-size: 0.9rem; }
.form-control { width: 100%; padding: 12px 14px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font-family: var(--font-body); font-size: 0.95rem; }
.form-control:focus { outline: 2px solid var(--secondary); outline-offset: 1px; }
textarea.form-control { resize: vertical; min-height: 110px; }
.form-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
@media (max-width: 620px) { .form-row { grid-template-columns: 1fr; } }

/* ---- Footer ---- */
footer { background: var(--primary); color: #d9e4ec; padding: 60px 0 24px; margin-top: 40px; }
:root[data-theme="dark"] footer { background: #071019; }
@media (prefers-color-scheme:dark) { :root:not([data-theme="light"]) footer { background: #071019; } }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr); gap: 30px; }
.footer-grid h5 { color: #fff; font-family: var(--font-head); margin-bottom: 14px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 8px; font-size: 0.9rem; }
.footer-grid a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.15); margin-top: 40px; padding-top: 20px; text-align: center; font-size: 0.82rem; color: #a9bfcb; }
.social-icons { display: flex; gap: 10px; margin-top: 14px; }
.social-icons a { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }

/* ---- Floating elements ---- */
.float-wa { position: fixed; bottom: 24px; right: 24px; width: 58px; height: 58px; border-radius: 50%; background: #25D366; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.6rem; box-shadow: var(--shadow-lg); z-index: 500; animation: pulse 2.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(37,211,102,0.5);} 70% { box-shadow: 0 0 0 16px rgba(37,211,102,0);} 100% { box-shadow: 0 0 0 0 rgba(37,211,102,0);} }
.back-to-top { position: fixed; bottom: 24px; right: 92px; width: 48px; height: 48px; border-radius: 50%; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-lg); z-index: 500; opacity: 0; pointer-events: none; transition: opacity 0.25s ease; cursor: pointer; border: none; }
.back-to-top.show { opacity: 1; pointer-events: auto; }

/* ---- Modal ---- */
.modal-overlay { position: fixed; inset: 0; background: rgba(10,20,30,0.55); display: flex; align-items: center; justify-content: center; z-index: 1200; opacity: 0; visibility: hidden; transition: all 0.2s ease; padding: 20px; }
.modal-overlay.open { opacity: 1; visibility: visible; }
.modal-box { background: var(--surface); border-radius: 14px; max-width: 640px; width: 100%; max-height: 88vh; overflow-y: auto; padding: 30px; transform: translateY(20px); transition: transform 0.25s ease; position: relative; }
.modal-overlay.open .modal-box { transform: translateY(0); }
.modal-close { position: absolute; top: 16px; right: 16px; background: var(--bg); border: none; width: 36px; height: 36px; border-radius: 50%; cursor: pointer; font-size: 1rem; }
.modal-box img { border-radius: 10px; margin-bottom: 16px; }

/* ---- Toast ---- */
.toast-wrap { position: fixed; top: 20px; right: 20px; z-index: 1500; display: flex; flex-direction: column; gap: 10px; }
.toast { background: var(--surface); border-left: 4px solid var(--success); box-shadow: var(--shadow-lg); border-radius: 8px; padding: 14px 18px; min-width: 260px; max-width: 340px; display: flex; gap: 10px; align-items: flex-start; transform: translateX(120%); transition: transform 0.3s ease; }
.toast.show { transform: translateX(0); }
.toast i { color: var(--success); margin-top: 2px; }
.toast.error { border-left-color: var(--danger); } .toast.error i { color: var(--danger); }

/* ---- Skeleton loading ---- */
.skeleton { background: linear-gradient(90deg, var(--border) 25%, var(--bg) 50%, var(--border) 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: 8px; }
@keyframes shimmer { 0% { background-position: 200% 0;} 100% { background-position: -200% 0;} }

/* ---- Reveal on scroll ---- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ---- Breadcrumb / page header ---- */
.page-header { background: linear-gradient(120deg, var(--primary), var(--primary-light)); color: #fff; padding: 56px 0 46px; }
.breadcrumb { font-size: 0.85rem; color: #cfe0ea; margin-bottom: 10px; }
.breadcrumb a { color: #fff; font-weight: 600; }

/* ---- CTA band (beranda: "Butuh Material dalam Jumlah Besar?") ---- */
.rfq-band { background: linear-gradient(120deg, var(--primary), var(--primary-light)); color: #fff; border-radius: 16px; padding: 44px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; }
@media (max-width: 860px) { .rfq-band { grid-template-columns: 1fr; padding: 30px; } }

/* ---- Detail split ---- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 46px; align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* Keranjang: tabel 2fr, ringkasan 1fr (bukan 1fr/1fr default .split) —
   dipisah jadi aturan tersendiri (bukan inline style) supaya breakpoint
   mobile .split di atas tetap berlaku dan JS toggle display (renderCartPage)
   tidak perlu menebak nilai grid-template-columns mana yang harus dipulihkan. */
#cart-table-wrap { grid-template-columns: 2fr 1fr; align-items: flex-start; gap: 30px; }
@media (max-width: 860px) { #cart-table-wrap { grid-template-columns: 1fr; } }

/* Varian rasio kolom lain dari .split — pola sama seperti #cart-table-wrap di
   atas: rasio kustom didefinisikan di sini (bukan inline style) supaya
   breakpoint mobile .split (≤860px → 1 kolom) tidak ikut kebajak. Bug ini
   sempat menyebabkan beberapa halaman tidak stack ke 1 kolom di layar HP
   (checkout, kontak, tanya-jawab) — ditemukan & diperbaiki lewat audit layout. */
.checkout-split { grid-template-columns: 1.4fr 1fr; align-items: flex-start; }
.kontak-split { grid-template-columns: 1fr 1.2fr; }
.qa-split { grid-template-columns: 1.6fr 1fr; align-items: flex-start; }
@media (max-width: 860px) { .checkout-split, .kontak-split, .qa-split { grid-template-columns: 1fr; } }

/* ---- Utility ---- */
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.text-accent { color: var(--secondary); }
.bg-surface { background: var(--surface); }
.border-top { border-top: 1px solid var(--border); }
.tag-pill { display: inline-block; background: var(--bg); border: 1px solid var(--border); padding: 4px 12px; border-radius: 20px; font-size: 0.78rem; font-weight: 600; margin: 2px 4px 2px 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* ---- Status badge (dipakai publik & admin: stok/transaksi) ---- */
.badge-status { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 20px; font-size: 0.72rem; font-weight: 700; }
.badge-status.ok { background: rgba(46,158,91,0.14); color: var(--success); }
.badge-status.warn { background: rgba(242,183,5,0.16); color: #a06c00; }
.badge-status.danger { background: rgba(226,54,54,0.13); color: var(--danger); }
.badge-status.info { background: rgba(18,160,196,0.14); color: var(--info); }


/* ==========================================================================
   ZONA ADMINISTRASI — "IronSpec Command Center" (demo/simulasi front-end,
   TIDAK terhubung database sungguhan — lihat disclaimer di tiap halaman admin)
   ========================================================================== */

.admin-demo-ribbon { background: var(--danger); color: #fff; text-align: center; font-size: 0.78rem; font-weight: 700; padding: 7px 10px; letter-spacing: 0.02em; }
.admin-demo-ribbon i { margin-right: 6px; }

.admin-shell { display: grid; grid-template-columns: 260px 1fr; min-height: 100vh; }
.admin-sidebar { background: var(--admin-sidebar-bg); color: var(--admin-sidebar-text); padding: 22px 16px; position: sticky; top: 0; height: 100vh; overflow-y: auto; border-right: 1px solid var(--admin-sidebar-border); }
.admin-brand { display: flex; align-items: center; gap: 10px; color: #fff; font-family: var(--font-head); font-weight: 800; font-size: 1.1rem; padding: 6px 10px 22px; }
.admin-brand .brand-mark { background: linear-gradient(135deg, var(--secondary), var(--accent)); }
.admin-nav { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 3px; }
.admin-nav li + li.admin-nav-group { margin-top: 16px; }
.admin-nav-group-label { text-transform: uppercase; font-size: 0.7rem; letter-spacing: 0.08em; color: #5c6b82; padding: 10px 12px 6px; font-weight: 700; }
.admin-nav-link { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 8px; font-size: 0.9rem; font-weight: 600; color: var(--admin-sidebar-text); }
.admin-nav-link i { width: 18px; text-align: center; color: #7688a0; }
.admin-nav-link:hover { background: rgba(255,255,255,0.06); color: #fff; }
.admin-nav-link.active { background: rgba(255,107,26,0.16); color: #fff; }
.admin-nav-link.active i { color: var(--secondary); }
.admin-sidebar-footer { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--admin-sidebar-border); }

.admin-main { min-width: 0; }
.admin-topbar { position: sticky; top: 0; z-index: 80; background: var(--surface); border-bottom: 1px solid var(--border); padding: 14px 26px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.admin-topbar > div:not(.admin-topbar-actions) { min-width: 0; }
.admin-topbar h1 { font-size: 1.25rem; margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-topbar-meta { font-size: 0.8rem; color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-topbar-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.admin-user-chip { display: flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 999px; background: var(--bg); border: 1px solid var(--border); font-size: 0.84rem; font-weight: 700; }
.admin-user-chip img { width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0; }
@media (max-width: 560px) {
  .admin-topbar-meta { display: none; }
  .admin-user-chip span { display: none; }
  .admin-user-chip { padding: 6px; }
}
.admin-content { padding: 26px; }
.admin-mobile-toggle { display: none; background: var(--bg); border: 1px solid var(--border); width: 38px; height: 38px; border-radius: 8px; cursor: pointer; }

@media (max-width: 980px) {
  .admin-shell { grid-template-columns: 1fr; }
  .admin-sidebar { position: fixed; left: 0; top: 0; width: 260px; z-index: 970; transform: translateX(-100%); transition: transform 0.25s ease; }
  .admin-sidebar.open { transform: translateX(0); }
  .admin-mobile-toggle { display: block; }
}

.stat-card-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-bottom: 24px; }
.stat-card { min-width: 0; }
.stat-card b, .stat-card span { overflow-wrap: break-word; }
.stat-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; display: flex; align-items: center; gap: 14px; }
.stat-card-icon { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.25rem; flex-shrink: 0; color: #fff; }
.stat-card-icon.blue { background: var(--primary); }
.stat-card-icon.orange { background: var(--secondary); }
.stat-card-icon.green { background: var(--success); }
.stat-card-icon.amber { background: var(--accent); color: #6b4a00; }
.stat-card-body { min-width: 0; }
.stat-card b { display: block; font-size: 1.4rem; font-family: var(--font-head); }
.stat-card span { font-size: 0.8rem; color: var(--text-muted); }
@media (max-width: 980px) { .stat-card-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .stat-card-row { grid-template-columns: minmax(0, 1fr); } }

/* ---- Trend badge & stat sublabel (dashboard/keuangan KPI cards) ---- */
.trend-badge { display: inline-flex; align-items: center; gap: 4px; font-size: 0.72rem; font-weight: 700; padding: 2px 8px; border-radius: 20px; margin-top: 5px; white-space: nowrap; }
.trend-badge.up { background: rgba(46,158,91,0.14); color: var(--success); }
.trend-badge.down { background: rgba(226,54,54,0.13); color: var(--danger); }
.trend-badge.neutral { background: var(--bg); color: var(--text-muted); }
.stat-card-note { font-size: 0.72rem; color: var(--text-muted); margin-top: 5px; display: block; }

/* ---- Alert list (mis. "Stok Perlu Perhatian" di dashboard) ---- */
.alert-list { display: flex; flex-direction: column; gap: 16px; }
.alert-item { display: flex; align-items: center; gap: 12px; }
.alert-item-icon { width: 38px; height: 38px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 0.95rem; }
.alert-item-icon.warn { background: rgba(242,183,5,0.15); color: #a06c00; }
.alert-item-icon.danger { background: rgba(226,54,54,0.13); color: var(--danger); }
.alert-item-info { flex: 1; min-width: 0; }
.alert-item-info b { display: block; font-size: 0.88rem; }
.alert-item-info .meta { font-size: 0.76rem; color: var(--text-muted); margin-top: 2px; }
.alert-item-info .progress-bar-track { width: 100%; max-width: 160px; margin-top: 6px; }
.alert-empty { text-align: center; color: var(--text-muted); font-size: 0.88rem; padding: 20px 0; }

.admin-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; margin-bottom: 22px; min-width: 0; }
.admin-card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; gap: 10px; flex-wrap: wrap; }
.admin-card-head h3 { margin: 0; font-size: 1.05rem; }
.admin-grid-2 { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 20px; }
@media (max-width: 980px) { .admin-grid-2 { grid-template-columns: minmax(0, 1fr); } }

.data-table-wrap { overflow-x: auto; }
.data-table { width: 100%; font-size: 0.87rem; min-width: 640px; }
.data-table th, .data-table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--border); }
.data-table thead th { color: var(--text-muted); font-weight: 700; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.03em; cursor: pointer; }
.data-table tbody tr:hover { background: var(--bg); }
.data-table .row-actions { display: flex; gap: 6px; }
.data-table .row-actions button, .data-table .row-actions a { background: var(--bg); border: 1px solid var(--border); width: 30px; height: 30px; border-radius: 6px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; color: var(--text); }
.data-table .row-actions .danger { color: var(--danger); }
.admin-toolbar { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-bottom: 18px; justify-content: space-between; }
.admin-search { position: relative; min-width: 240px; }
.admin-search input { width: 100%; padding: 10px 14px 10px 38px; border-radius: 8px; border: 1px solid var(--border); background: var(--bg); color: var(--text); }
.admin-search i { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--text-muted); font-size: 0.85rem; }

.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--primary), #071a2c); padding: 20px; }
.login-card { background: var(--surface); border-radius: 16px; padding: 40px; max-width: 420px; width: 100%; box-shadow: var(--shadow-lg); }
.login-demo-creds { background: var(--bg); border: 1px dashed var(--border); border-radius: 8px; padding: 14px; font-size: 0.82rem; margin-bottom: 22px; }
.login-demo-creds code { background: var(--surface); padding: 2px 6px; border-radius: 4px; border: 1px solid var(--border); }

.chart-wrap { position: relative; height: 260px; }
.mini-chart-wrap { position: relative; height: 90px; }

.progress-bar-track { width: 100%; height: 8px; background: var(--border); border-radius: 6px; overflow: hidden; }
.progress-bar-fill { height: 100%; border-radius: 6px; background: var(--success); }

.module-accent-stok { color: var(--info); }
.module-accent-pegawai { color: var(--secondary); }
.module-accent-keuangan { color: var(--success); }
.module-accent-pembayaran { color: #a06c00; }

.avatar-sm { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.employee-card { text-align: center; padding: 22px 16px; }
.employee-card img { width: 84px; height: 84px; border-radius: 50%; margin: 0 auto 12px; }
.employee-card .role { color: var(--secondary); font-weight: 700; font-size: 0.78rem; text-transform: uppercase; }

.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
@media (max-width: 720px) { .detail-grid { grid-template-columns: 1fr; } }
.detail-row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px dashed var(--border); font-size: 0.9rem; }
.detail-row b { color: var(--text); }
