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

:root {
  --navy: #08264f;
  --brand: #2f5fe0;
  --brand-dark: #1e3a8a;
  --cyan: #34bce0;
  --ink: #0f172a;
  --muted: #64748b;
  --bg: #f6f8fc;
  --radius: 16px;
}

* { font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif; }
.font-display { font-family: 'Fraunces', Georgia, serif; }

body {
  background: var(--bg);
  color: var(--ink);
}
a { text-decoration: none; }

/* ---------- Utility top bar ---------- */
.topbar {
  background: var(--navy);
  color: rgba(255,255,255,.85);
  font-size: .8rem;
  padding: .5rem 0;
}
.topbar .topbar-badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  margin-right: 1.5rem;
}
.topbar .topbar-badge .bi { color: var(--cyan); }
.topbar a { color: rgba(255,255,255,.85); }
.topbar a:hover { color: #fff; }

/* ---------- Main navbar (white) ---------- */
.site-nav {
  background: #fff;
  box-shadow: 0 2px 12px rgba(15,23,42,.06);
}
.site-nav .navbar-nav .nav-link {
  color: var(--ink);
  font-weight: 600;
  font-size: .95rem;
}
.site-nav .navbar-nav .nav-link:hover,
.site-nav .navbar-nav .nav-link.active { color: var(--brand); }
.brand-logo { height: 40px; display: block; }
.nav-search {
  max-width: 340px;
}
.nav-search .form-control {
  border-radius: 999px 0 0 999px;
  border-right: none;
}
.nav-search .btn {
  border-radius: 0 999px 999px 0;
  border: 1px solid #ced4da;
  border-left: none;
  background: #fff;
}
.btn-cart {
  border-radius: 999px;
  font-weight: 600;
  border: 1.5px solid var(--navy);
  color: var(--navy);
}
.btn-cart:hover { background: var(--navy); color: #fff; }

/* ---------- Login (admin) ---------- */
.login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  padding: 1rem;
}
.login-card {
  max-width: 380px;
  width: 100%;
  border: none;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,.15);
}
.stat-card {
  border: none;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #eef3ff 0%, var(--bg) 100%);
  padding: 3.5rem 0 3rem;
}
.hero h1 {
  font-weight: 600;
  letter-spacing: -.02em;
  font-size: clamp(2.1rem, 4.2vw, 3.1rem);
  color: var(--navy);
  line-height: 1.15;
}
.hero h1 .dot { color: var(--brand); }
.hero .lead {
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 480px;
}
.hero-graphic {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 360px;
}
.hero-carousel { width: min(100%, 520px); }
.hero-carousel .carousel-inner { border-radius: 24px; box-shadow: 0 20px 50px rgba(8,38,79,.18); }
.hero-graphic img { width: 100%; max-width: 340px; opacity: .95; filter: drop-shadow(0 20px 40px rgba(8,38,79,.18)); }
.hero-graphic img.hero-photo {
  max-width: none;
  aspect-ratio: 16/10;
  object-fit: cover;
  border-radius: 24px;
  opacity: 1;
  filter: none;
  box-shadow: none;
}
.hero-carousel .carousel-indicators { margin-bottom: .65rem; }
.hero-carousel .carousel-indicators button { width: 8px; height: 8px; border-radius: 50%; border: 0; }
.hero-chip {
  position: absolute;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(15,23,42,.12);
  padding: .6rem .9rem;
  font-size: .82rem;
  font-weight: 700;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: .5rem;
}
.hero-chip .bi { color: var(--cyan); font-size: 1.1rem; }
.hero-chip-1 { top: 6%; left: -4%; }
.hero-chip-2 { bottom: 8%; right: -2%; }

/* ---------- Section titles ---------- */
.section-title {
  font-weight: 800;
  letter-spacing: -.02em;
  margin-bottom: .25rem;
  color: var(--navy);
}
.section-sub {
  color: var(--muted);
  margin-bottom: 1.5rem;
}

/* ---------- Cabang cards ---------- */
.cabang-card {
  background: #fff;
  border: 1px solid #eef1f6;
  border-radius: var(--radius);
  transition: transform .18s ease, box-shadow .18s ease;
  height: 100%;
}
.cabang-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(15,23,42,.1);
}
.cabang-card .brand-logo { height: 34px; margin-bottom: .75rem; }
.cabang-link {
  font-weight: 700;
  color: var(--brand);
  font-size: .85rem;
}
.local-seo-title { color: var(--navy); font-size: clamp(1.55rem, 3vw, 2.15rem); font-weight: 800; letter-spacing: -.025em; }
.local-seo-intro { max-width: 820px; color: var(--muted); line-height: 1.75; }
.local-store-info { display: flex; flex-wrap: wrap; gap: .65rem; margin: 1rem 0; }
.local-store-info > * {
  display: inline-flex; align-items: center; gap: .4rem; padding: .55rem .75rem;
  border-radius: 10px; background: #fff; border: 1px solid #e7ecf4;
  color: var(--navy); font-size: .82rem; font-weight: 600;
}
.local-store-info a { color: #15803d; }

/* ---------- Produk cards ---------- */
.produk-card {
  border: 1px solid #eef1f6;
  border-radius: var(--radius);
  transition: transform .18s ease, box-shadow .18s ease;
  height: 100%;
  overflow: hidden;
  background: #fff;
}
.produk-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 28px rgba(15,23,42,.1);
}
.produk-foto-wrap {
  position: relative;
  background: linear-gradient(160deg, #eef2ff, #e2e8f0);
}
.produk-foto {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
}
.produk-foto-placeholder {
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
}
.produk-foto-placeholder .bi { font-size: 2.4rem; color: #94a3b8; }
.produk-body { padding: .9rem 1rem 1rem; }
.cabang-chip {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  background: #eef3ff;
  color: var(--brand);
  font-weight: 700;
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .03em;
  padding: .2rem .55rem;
  border-radius: 999px;
  margin-bottom: .45rem;
}
.cabang-chip img { height: 12px; width: auto; }
.produk-nama {
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
  font-size: .95rem;
}
.produk-harga {
  color: var(--brand);
  font-weight: 800;
  font-size: 1.05rem;
  margin-top: .15rem;
}
.produk-meta {
  font-size: .76rem;
  color: #16a34a;
  font-weight: 600;
  margin-top: .3rem;
}
.kondisi-badge {
  position: absolute;
  top: .6rem;
  left: .6rem;
  background: rgba(255,255,255,.95);
  color: var(--ink);
  font-weight: 600;
  font-size: .72rem;
  padding: .25rem .6rem;
  border-radius: 999px;
  box-shadow: 0 2px 6px rgba(0,0,0,.1);
}
.badge-stok-habis {
  position: absolute;
  top: .6rem;
  right: .6rem;
  z-index: 2;
}

/* ---------- Trust banner ---------- */
.trust-banner {
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
}
.trust-banner .trust-item { display: flex; align-items: flex-start; gap: .8rem; }
.trust-banner .trust-icon-wrap {
  width: 44px; height: 44px; border-radius: 12px;
  background: rgba(255,255,255,.12);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.trust-banner .trust-icon-wrap .bi { font-size: 1.3rem; color: var(--cyan); }
.trust-banner h6 { font-weight: 700; margin-bottom: .15rem; }
.trust-banner p { color: rgba(255,255,255,.7); font-size: .82rem; margin: 0; }

/* ---------- Katalog / filter sidebar ---------- */
.filter-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 2px 8px rgba(15,23,42,.05);
  padding: 1.1rem;
}
.filter-card h6 {
  font-weight: 700;
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .03em;
  color: var(--navy);
  margin-bottom: .6rem;
}
.filter-card .form-check { margin-bottom: .4rem; }
.filter-card .form-check-label { font-size: .9rem; }
.katalog-toolbar {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(15,23,42,.05);
  padding: .6rem 1rem;
}

/* ---------- Floating WhatsApp widget ---------- */
.wa-float {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 1050;
}
.wa-float-btn {
  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: 0 8px 22px rgba(37,211,102,.45);
  border: none;
  cursor: pointer;
}
.wa-panel {
  position: absolute;
  bottom: 70px;
  right: 0;
  width: 260px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(15,23,42,.22);
  padding: .75rem;
  display: none;
}
.wa-panel.show { display: block; }
.wa-panel .wa-title {
  font-weight: 700;
  font-size: .85rem;
  color: var(--navy);
  padding: .3rem .4rem .3rem;
}
.wa-panel .wa-status {
  display: flex; align-items: center; gap: .35rem;
  font-weight: 500; font-size: .74rem; color: #16a34a;
  margin-top: .2rem; padding-bottom: .3rem;
}
.wa-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #22c55e; display: inline-block; flex-shrink: 0;
  box-shadow: 0 0 0 2px rgba(34,197,94,.2);
}
.wa-panel a.wa-item {
  display: flex; align-items: center; gap: .6rem;
  padding: .5rem .4rem;
  border-radius: 10px;
  color: var(--ink);
  font-size: .87rem;
  font-weight: 600;
}
.wa-panel a.wa-item:hover { background: #f1f5f9; }
.wa-panel a.wa-item .bi { color: #25d366; font-size: 1.2rem; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,.75);
  padding: 3rem 1rem 1.5rem;
  margin-top: 4rem;
}
.site-footer .brand-logo { height: 32px; margin-bottom: .75rem; }
.site-footer h6 {
  color: #fff;
  font-weight: 700;
  margin-bottom: .9rem;
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .03em;
}
.site-footer a { color: rgba(255,255,255,.75); }
.site-footer a:hover { color: #fff; }
.footer-install-btn {
  appearance: none;
  border: 0;
  padding: 0;
  background: transparent;
  color: rgba(255,255,255,.75);
  font: inherit;
}
.footer-install-btn:hover { color: #fff; }
.footer-branch-logos { display: flex; flex-wrap: wrap; gap: .9rem; align-items: center; margin-top: .5rem; }
.footer-branch-logos img { height: 22px; opacity: .85; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  margin-top: 2rem;
  padding-top: 1.25rem;
  text-align: center;
  font-size: .85rem;
  color: rgba(255,255,255,.5);
}

/* ---------- Misc ---------- */
.cabang-pill { border-radius: 999px; }
.breadcrumb { font-size: .9rem; }

@media (max-width: 767.98px) {
  .site-nav .brand-logo { height: 32px; max-width: 180px; object-fit: contain; }
  .hero { padding: 2rem 0 2.25rem; text-align: center; }
  .hero h1 { font-size: clamp(2rem, 10.5vw, 2.8rem); line-height: 1.08; }
  .hero .lead { font-size: .98rem; margin-inline: auto; }
  .hero-graphic { min-height: 0; margin-top: 1.1rem; padding: 0 .35rem; }
  .hero-carousel { width: 100%; }
  .hero-graphic img.hero-photo { aspect-ratio: 4/3; border-radius: 18px; }
  .hero-carousel .carousel-inner { border-radius: 18px; }
  .hero-chip { font-size: .7rem; padding: .45rem .65rem; border-radius: 10px; }
  .hero-chip-1 { top: .7rem; left: -.15rem; }
  .hero-chip-2 { bottom: .7rem; right: -.15rem; }
  .container.py-5 { padding-top: 2rem !important; padding-bottom: 2rem !important; }
  .cabang-card { padding: 1rem !important; }
  .cabang-card .brand-logo { max-width: 100%; object-fit: contain; }
  .produk-body { padding: .75rem; }
  .produk-nama { font-size: .86rem; }
  .produk-harga { font-size: .94rem; }
  .trust-banner { padding: 1.25rem 1rem; }
  .trust-banner .row > * { width: 100%; }
  .site-footer { margin-top: 2rem; }
  .wa-float { right: .85rem; bottom: .85rem; }
  .wa-float-btn { width: 54px; height: 54px; }
  .wa-panel { width: min(290px, calc(100vw - 1.7rem)); }
}

/* ---------- Homepage hero: teks + foto tersinkron dalam 3 slide ---------- */
.hero { padding: 0; background: #f4f7fd; }
.hero-main-carousel { position: relative; }
.hero-main-carousel .carousel-inner { overflow: hidden; }
.hero-main-carousel .carousel-item { min-height: 570px; }
.hero-gradient-premium { background: linear-gradient(120deg, #eef5ff 0%, #ffffff 48%, #eeeaff 100%); }
.hero-gradient-ready { background: linear-gradient(120deg, #f1f6ff 0%, #ffffff 50%, #dcfaff 100%); }
.hero-gradient-near { background: linear-gradient(120deg, #effcff 0%, #ffffff 48%, #dceeff 100%); }
.hero-slide-container { padding-top: 4.25rem; padding-bottom: 5rem; }
.hero-copy { padding-left: 2.2rem; }
.hero-slide-label { display: flex; align-items: center; gap: .55rem; margin-bottom: 1.1rem; color: #53657e; font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.hero-slide-label span { width: 26px; height: 3px; border-radius: 999px; background: var(--brand); }
.hero .hero-slide-title { margin: 0; max-width: 620px; color: var(--navy); font-family: 'Plus Jakarta Sans', system-ui, sans-serif; font-size: clamp(2.45rem, 4.4vw, 4.35rem); font-weight: 800; line-height: 1.06; letter-spacing: -.055em; }
.hero .hero-slide-title .dot { color: var(--brand); }
.hero .lead { max-width: 570px; font-size: 1.05rem; line-height: 1.7; }
.hero-cta { min-height: 54px; display: inline-flex; align-items: center; gap: .55rem; font-weight: 700; }
.hero-inline-trust { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 1.35rem; }
.hero-inline-trust span { display: inline-flex; align-items: center; gap: .45rem; padding: .55rem .75rem; border: 1px solid rgba(47,95,224,.16); border-radius: 12px; background: rgba(255,255,255,.76); color: var(--navy); box-shadow: 0 8px 24px rgba(8,38,79,.06); font-size: .78rem; font-weight: 700; backdrop-filter: blur(8px); }
.hero-inline-trust .bi { color: var(--brand); }
.hero-main-carousel .hero-graphic { min-height: 380px; padding: 0 1rem; }
.hero-photo-link { display: block; width: min(100%, 590px); }
.hero-main-carousel .hero-graphic img.hero-photo { width: 100%; max-width: none; aspect-ratio: 16/10; object-fit: cover; border-radius: 24px; box-shadow: 0 24px 60px rgba(8,38,79,.2); }
.hero-main-indicators { bottom: 1.15rem; margin-bottom: 0; }
.hero-main-indicators [data-bs-target] { box-sizing: border-box; width: 9px; height: 9px; margin-inline: 5px; border: 0; border-radius: 50%; background-color: #94a3b8; }
.hero-main-indicators .active { width: 24px; border-radius: 999px; background-color: var(--brand); }
.hero-main-control { top: 50%; bottom: auto; width: 44px; height: 44px; margin-top: -22px; border: 1px solid #e0e7f1; border-radius: 50%; background: rgba(255,255,255,.92); color: var(--navy); box-shadow: 0 8px 24px rgba(15,23,42,.1); opacity: 1; }
.hero-main-control:hover { color: #fff; background: var(--brand); }
.hero-main-control.carousel-control-prev { left: 1rem; }
.hero-main-control.carousel-control-next { right: 1rem; }
.hero-swipe-hint { position: absolute; left: 0; right: 0; bottom: .55rem; z-index: 3; color: #718096; font-size: .68rem; text-align: center; }

@media (max-width: 991.98px) {
  .hero-main-carousel .carousel-item { min-height: 0; }
  .hero-slide-container { padding-top: 2.2rem; padding-bottom: 4.4rem; }
  .hero-copy { padding-inline: 1.25rem; text-align: left; }
  .hero-slide-label { justify-content: flex-start; margin-bottom: .75rem; }
  .hero .hero-slide-title { font-size: clamp(2.1rem, 9.7vw, 3.2rem); line-height: 1.08; letter-spacing: -.05em; }
  .hero .lead { margin-top: .8rem !important; font-size: .92rem; line-height: 1.55; }
  .hero-cta { width: 100%; justify-content: center; min-height: 50px; margin-top: .35rem !important; }
  .hero-inline-trust { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); margin-top: .8rem; gap: .5rem; }
  .hero-inline-trust span { justify-content: center; padding: .5rem .35rem; font-size: .68rem; text-align: center; }
  .hero-main-carousel .hero-graphic { min-height: 0; margin-top: .25rem; padding: 0 1.25rem; }
  .hero-photo-link { width: 100%; }
  .hero-main-carousel .hero-graphic img.hero-photo { aspect-ratio: 4/3; border-radius: 18px; box-shadow: 0 14px 38px rgba(8,38,79,.16); }
  .hero-main-control { display: none; }
  .hero-main-indicators { bottom: 1.65rem; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-main-carousel .carousel-item { transition: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  .carousel-item { transition: none; }
  .cabang-card, .produk-card { transition: none; }
}

/* ======================================================================
   Admin dashboard (sidebar shell)
   ====================================================================== */
.admin-shell { display: flex; min-height: 100vh; background: var(--bg); }

.admin-sidebar {
  width: 240px;
  flex-shrink: 0;
  background: var(--navy);
  color: rgba(255,255,255,.75);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}
.admin-sidebar .sidebar-brand {
  padding: 1.1rem 1.1rem .9rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.admin-sidebar .sidebar-brand img { height: 34px; }
.admin-sidebar-nav { padding: .75rem .7rem; flex: 1; }
.admin-nav-link {
  display: flex; align-items: center; gap: .65rem;
  padding: .6rem .8rem;
  border-radius: 10px;
  color: rgba(255,255,255,.7);
  font-weight: 600;
  font-size: .9rem;
  margin-bottom: .2rem;
}
.admin-nav-link .bi { font-size: 1.05rem; width: 1.1rem; text-align: center; }
.admin-nav-link:hover { background: rgba(255,255,255,.06); color: #fff; }
.admin-nav-link.active { background: var(--brand); color: #fff; }
.admin-sidebar-foot {
  margin: .75rem;
  padding: .9rem;
  background: rgba(255,255,255,.06);
  border-radius: 12px;
  font-size: .78rem;
}
.admin-sidebar-foot strong { color: #fff; }

.admin-main { flex: 1; min-width: 0; }
.admin-topbar {
  background: #fff;
  border-bottom: 1px solid #eef1f6;
  padding: .7rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  position: sticky;
  top: 0;
  z-index: 20;
}
.admin-topbar .form-control { max-width: 340px; }
.admin-cabang-select {
  border: 1px solid #dbe3f0;
  border-radius: 999px;
  padding: .3rem .8rem;
  font-size: .85rem;
  font-weight: 600;
  color: var(--navy);
  background: #f6f8fc;
}
.admin-bell {
  position: relative;
  color: var(--ink);
  font-size: 1.25rem;
  padding: .3rem;
}
.admin-bell .badge {
  position: absolute; top: -2px; right: -2px;
  font-size: .6rem; padding: .25em .4em;
}
.admin-content { padding: 1.5rem; }

.admin-stat-card {
  background: #fff;
  border: 1px solid #eef1f6;
  border-radius: 14px;
  padding: 1rem 1.1rem;
  display: flex;
  align-items: center;
  gap: .8rem;
  height: 100%;
}
.admin-stat-icon {
  width: 44px; height: 44px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; flex-shrink: 0;
}
.admin-stat-value { font-size: 1.5rem; font-weight: 800; color: var(--ink); line-height: 1.1; }
.admin-stat-label { font-size: .74rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .02em; }

.admin-card {
  background: #fff;
  border: 1px solid #eef1f6;
  border-radius: 14px;
  padding: 1.1rem 1.25rem;
  height: 100%;
}
.admin-card h5 { font-weight: 700; font-size: 1rem; color: var(--navy); }
.admin-card .table { font-size: .88rem; }

.admin-activity-item { display: flex; gap: .7rem; padding: .55rem 0; border-bottom: 1px solid #f1f5f9; }
.admin-activity-item:last-child { border-bottom: none; }
.admin-activity-icon {
  width: 34px; height: 34px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  font-size: .95rem; flex-shrink: 0;
}

/* ---------- Admin products on phones ---------- */
.admin-product-grid { display: grid; gap: 1rem; }
.admin-product-mobile-card {
  background: #fff;
  border: 1px solid #e8edf5;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 5px 18px rgba(15,23,42,.06);
}
.admin-product-photo-wrap {
  display: block;
  aspect-ratio: 16/10;
  background: linear-gradient(145deg, #eef3ff, #e7edf5);
  overflow: hidden;
}
.admin-product-photo-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }
.admin-product-placeholder {
  width: 100%; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: .45rem; color: #94a3b8;
}
.admin-product-placeholder .bi { font-size: 2rem; }
.admin-product-mobile-body { padding: 1rem; }
.admin-product-mobile-body h3 { margin: 0 0 .25rem; font-size: 1.05rem; font-weight: 800; color: var(--ink); }
.admin-product-spec { color: var(--muted); font-size: .78rem; line-height: 1.5; }
.admin-product-price { margin-top: .7rem; color: var(--brand); font-weight: 800; font-size: 1.12rem; }
.admin-edit-photo {
  display: block; width: min(100%, 420px); aspect-ratio: 4/3;
  object-fit: cover; border-radius: 14px; background: #eef2f7;
}
.admin-upload-preview {
  width: min(100%, 420px); aspect-ratio: 4/3; border-radius: 14px;
  border: 2px dashed #cbd5e1; background: #f8fafc; overflow: hidden;
  display: flex; align-items: center; justify-content: center; color: var(--muted);
}
.admin-upload-preview img { width: 100%; height: 100%; object-fit: cover; }
.admin-upload-preview span { display: flex; flex-direction: column; align-items: center; gap: .5rem; }
.admin-upload-preview .bi { font-size: 2rem; }

@media (max-width: 991.98px) {
  .admin-sidebar {
    position: fixed;
    left: -260px;
    top: 0;
    width: 240px;
    z-index: 1040;
    transition: left .2s ease;
  }
  .admin-sidebar.open { left: 0; }
  .admin-sidebar-backdrop {
    display: none;
    position: fixed; inset: 0;
    background: rgba(15,23,42,.4);
    z-index: 1030;
  }
  .admin-sidebar-backdrop.show { display: block; }
  .admin-content { padding: 1rem; }
  .admin-topbar { min-height: 58px; padding: .65rem 1rem; }
  .admin-stat-card { padding: .85rem; gap: .65rem; }
  .admin-stat-icon { width: 40px; height: 40px; }
  .admin-stat-value { font-size: 1.25rem; }
  .admin-card { padding: 1rem; }
}

@media (max-width: 575.98px) {
  .admin-content h2 { font-size: 1.35rem; }
  .admin-content > .d-flex:first-child { margin-bottom: 1rem !important; }
  .admin-stat-card { align-items: flex-start; flex-direction: column; }
  .admin-stat-label { font-size: .68rem; }
  .admin-card { border-radius: 12px; }
  .admin-card .table { font-size: .78rem; }
  .admin-sidebar .sidebar-brand img { max-width: 180px; object-fit: contain; }
}

/* ---------- Admin cabang sederhana: fokus barang saja ---------- */
.admin-staff-simple .admin-sidebar,
.admin-staff-simple .admin-sidebar-backdrop,
.admin-staff-simple #sidebarToggle { display: none !important; }
.admin-staff-simple .admin-main { width: 100%; }
.admin-staff-simple .admin-topbar { padding: .6rem max(1rem, calc((100% - 1040px)/2)); min-height: 72px; }
.admin-staff-simple .admin-content { width: min(100%, 1040px); margin: 0 auto; }
.staff-simple-brand { display: flex; align-items: center; color: var(--navy); text-decoration: none; }
.staff-simple-brand img { width: auto; height: 45px; max-width: 230px; object-fit: contain; }
.staff-simple-brand strong { font-size: .9rem; }

.simple-products-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.15rem; }
.simple-products-head h1 { margin: 0; font-size: 1.75rem; font-weight: 800; color: var(--navy); }
.simple-products-head p { margin: .25rem 0 0; color: var(--muted); }
.simple-add-product { min-height: 48px; padding-inline: 1.25rem; display: inline-flex; align-items: center; justify-content: center; gap: .4rem; font-weight: 700; }
.simple-product-search { height: 52px; display: flex; align-items: center; gap: .7rem; padding: 0 1rem; background: #fff; border: 1px solid #dbe3ee; border-radius: 14px; margin-bottom: .85rem; }
.simple-product-search .bi { color: #64748b; font-size: 1.15rem; }
.simple-product-search input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); }
.simple-product-tabs { display: flex; gap: .55rem; margin-bottom: 1rem; }
.simple-product-tabs a { display: inline-flex; align-items: center; gap: .4rem; padding: .5rem .9rem; border: 1px solid #dbe3ee; border-radius: 999px; color: #64748b; font-weight: 700; text-decoration: none; background: #fff; }
.simple-product-tabs a.active { color: #fff; background: var(--brand); border-color: var(--brand); }
.simple-product-tabs span { min-width: 1.35rem; padding: .05rem .35rem; border-radius: 999px; text-align: center; font-size: .72rem; background: rgba(100,116,139,.12); }
.simple-product-tabs a.active span { background: rgba(255,255,255,.2); }
.simple-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.simple-product-grid .admin-product-mobile-card { display: grid; grid-template-columns: 160px minmax(0, 1fr); }
.simple-product-grid .admin-product-photo-wrap { height: 100%; min-height: 190px; aspect-ratio: auto; }
.simple-product-grid .admin-product-mobile-body { display: flex; flex-direction: column; min-width: 0; }
.simple-product-grid .simple-product-actions { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: auto; padding-top: 1rem; }
.simple-product-actions form { display: contents; }
.simple-product-actions .btn { min-height: 42px; flex: 1 1 110px; display: inline-flex; align-items: center; justify-content: center; gap: .35rem; font-weight: 700; }
.simple-sold-note { margin: 1rem 0 0; padding: .85rem 1rem; border: 1px solid #dbe3ee; border-radius: 12px; color: #64748b; background: #fff; font-size: .86rem; }

@media (max-width: 767.98px) {
  .admin-staff-simple .admin-topbar { min-height: 64px; }
  .staff-simple-brand img { height: 38px; max-width: 205px; }
  .simple-products-head { align-items: stretch; flex-direction: column; }
  .simple-add-product { width: 100%; }
  .simple-product-grid { grid-template-columns: 1fr; gap: .8rem; }
  .simple-product-grid .admin-product-mobile-card { grid-template-columns: 108px minmax(0, 1fr); }
  .simple-product-grid .admin-product-photo-wrap { min-height: 0; height: 108px; margin: .85rem 0 .85rem .85rem; border-radius: 12px; }
  .simple-product-grid .admin-product-mobile-body { padding: .85rem; }
  .simple-product-grid .admin-product-mobile-body h3 { font-size: 1rem; }
  .simple-product-grid .admin-product-price { margin-top: .35rem; }
  .simple-product-grid .simple-product-actions { grid-column: 1 / -1; margin-left: -123px; padding-top: .75rem; }
  .simple-product-actions .btn { min-height: 44px; }
}

/* ---------- Dashboard ringkas khusus admin cabang ---------- */
.staff-branch-dashboard { padding-bottom: 2rem; }
.staff-dashboard-heading { margin-bottom: 1.15rem; }
.staff-dashboard-kicker { color: var(--brand); font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.staff-dashboard-heading h1 { margin: .15rem 0 0; color: var(--navy); font-size: 1.65rem; font-weight: 850; }
.staff-dashboard-heading p { margin: .35rem 0 0; color: var(--muted); }
.staff-quick-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1rem; margin-bottom: 1.35rem; }
.staff-quick-card { position: relative; min-height: 180px; padding: 1.3rem; background: #fff; border: 1px solid #e3eaf4; border-radius: 20px; box-shadow: 0 8px 24px rgba(15,35,75,.07); text-decoration: none; color: var(--navy); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.staff-quick-card:hover { color: var(--brand); transform: translateY(-2px); box-shadow: 0 12px 28px rgba(15,35,75,.11); }
.staff-quick-icon { position: relative; width: 78px; height: 78px; margin-bottom: .85rem; border-radius: 22px; background: #eef4ff; color: var(--brand); display: grid; place-items: center; font-size: 2.15rem; }
.staff-quick-icon .bi-plus-circle-fill { position: absolute; right: 5px; bottom: 5px; font-size: 1.1rem; background: #fff; border-radius: 50%; }
.staff-quick-card strong { font-size: 1.2rem; }
.staff-quick-card small { margin-top: .2rem; color: var(--muted); }
.staff-quick-badge { position: absolute; right: 1rem; top: 1rem; min-width: 30px; height: 30px; padding: 0 .45rem; border-radius: 999px; color: #fff; background: #ef4444; display: grid; place-items: center; font-weight: 800; }
.staff-order-section { background: #fff; border: 1px solid #e3eaf4; border-radius: 20px; padding: 1.2rem; box-shadow: 0 8px 24px rgba(15,35,75,.06); }
.staff-stock-section { margin-bottom: 1.35rem; background: #fff; border: 1px solid #e3eaf4; border-radius: 20px; padding: 1.2rem; box-shadow: 0 8px 24px rgba(15,35,75,.06); }
.staff-stock-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1rem; }
.staff-stock-card { min-width: 0; overflow: hidden; display: grid; grid-template-columns: 145px minmax(0,1fr); border: 1px solid #e4eaf2; border-radius: 17px; background: #fff; }
.staff-stock-photo { min-height: 160px; background: #eef3f8; overflow: hidden; display: grid; place-items: center; color: #94a3b8; text-decoration: none; }
.staff-stock-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.staff-stock-photo span { padding: 1rem; display: flex; flex-direction: column; align-items: center; gap: .35rem; font-size: .75rem; }
.staff-stock-photo .bi { font-size: 1.65rem; }
.staff-stock-body { min-width: 0; padding: .9rem; display: flex; flex-direction: column; align-items: flex-start; }
.staff-stock-status { margin-bottom: .35rem; color: #159447; font-size: .76rem; font-weight: 800; }
.staff-stock-body h3 { width: 100%; margin: 0; color: var(--ink); font-size: 1rem; font-weight: 800; overflow: hidden; text-overflow: ellipsis; }
.staff-stock-body p { width: 100%; margin: .28rem 0; color: var(--muted); font-size: .78rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.staff-stock-body > strong { margin: .15rem 0 .65rem; color: var(--brand); font-size: 1.05rem; }
.staff-stock-body .btn { width: 100%; min-height: 40px; margin-top: auto; display: inline-flex; align-items: center; justify-content: center; gap: .35rem; font-weight: 700; }
.staff-stock-all { width: 100%; min-height: 46px; margin-top: 1rem; display: inline-flex; align-items: center; justify-content: center; gap: .45rem; font-weight: 750; }
.staff-section-head { display: flex; align-items: start; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.staff-section-head h2 { margin: 0; color: var(--navy); font-size: 1.35rem; font-weight: 800; }
.staff-section-head p { margin: .2rem 0 0; color: var(--muted); font-size: .86rem; }
.staff-section-head a { white-space: nowrap; font-size: .86rem; font-weight: 700; }
.staff-order-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1rem; }
.staff-order-card { border: 1px solid #e4eaf2; border-radius: 17px; padding: 1rem; background: #fff; }
.staff-order-main { display: grid; grid-template-columns: 118px minmax(0,1fr); gap: 1rem; align-items: center; }
.staff-order-photo { width: 118px; aspect-ratio: 4/3; border-radius: 14px; background: #eef3f8; overflow: hidden; display: grid; place-items: center; color: #94a3b8; font-size: 2.3rem; }
.staff-order-photo img { width: 100%; height: 100%; object-fit: cover; }
.staff-order-info h3 { margin: 0 0 .35rem; font-size: 1.05rem; font-weight: 800; color: var(--ink); }
.staff-order-customer { color: var(--muted); font-size: .86rem; }
.staff-order-price { margin: .3rem 0; color: var(--brand); font-size: 1.08rem; font-weight: 800; }
.staff-order-code { margin: .85rem 0; padding-top: .75rem; border-top: 1px solid #edf1f5; color: #64748b; font-size: .82rem; }
.staff-order-wa,.staff-order-detail { width: 100%; min-height: 44px; margin-top: .5rem; display: inline-flex; align-items: center; justify-content: center; gap: .4rem; font-weight: 700; }
.staff-empty-order { min-height: 180px; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--muted); text-align: center; }
.staff-empty-order .bi { font-size: 2rem; margin-bottom: .5rem; color: #94a3b8; }
.staff-empty-order strong { color: var(--ink); }

@media (max-width: 767.98px) {
  .staff-dashboard-heading h1 { font-size: 1.3rem; }
  .staff-dashboard-heading p { font-size: .84rem; }
  .staff-quick-grid { gap: .75rem; }
  .staff-quick-card { min-height: 150px; padding: 1rem .65rem; border-radius: 17px; }
  .staff-quick-icon { width: 62px; height: 62px; border-radius: 18px; font-size: 1.7rem; }
  .staff-quick-card strong { font-size: 1rem; }
  .staff-quick-card small { font-size: .72rem; }
  .staff-order-section { margin-inline: -1rem; border-radius: 22px 22px 0 0; border-left: 0; border-right: 0; padding: 1rem; }
  .staff-stock-section { margin-inline: -1rem; border-radius: 22px; border-left: 0; border-right: 0; padding: 1rem; }
  .staff-stock-grid { grid-template-columns: 1fr; }
  .staff-stock-card { grid-template-columns: 112px minmax(0,1fr); }
  .staff-stock-photo { min-height: 135px; }
  .staff-stock-body { padding: .75rem; }
  .staff-stock-body h3 { font-size: .92rem; }
  .staff-section-head p { display: none; }
  .staff-order-list { grid-template-columns: 1fr; }
  .staff-order-main { grid-template-columns: 98px minmax(0,1fr); gap: .8rem; }
  .staff-order-photo { width: 98px; }
}
