/* =========================
   THEME TOKO SPAREPART
   Modern • Soft • Not Kontras
========================= */
:root{
  --bg: #ffffff;
  --bg-soft: #f5f7fb;
  --bg-card: #ffffff;
  --text: #2b2f36;
  --muted: #6b7280;

  --primary: #111827;     /* charcoal */
  --accent: #2563eb;      /* soft blue */
  --success: #16a34a;

  --border: rgba(17,24,39,.10);
  --shadow: 0 10px 30px rgba(17,24,39,.08);
  --shadow-2: 0 18px 40px rgba(17,24,39,.12);
  --radius: 1.25rem;

  --ring: 0 0 0 4px rgba(37,99,235,.15);
}

html{ scroll-behavior: smooth; }

body{
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--text);
  background: radial-gradient(1000px 600px at 20% 0%, rgba(37,99,235,.06), transparent 60%),
              radial-gradient(900px 500px at 90% 20%, rgba(22,163,74,.05), transparent 65%),
              var(--bg);
}

/* soft section */
.section-soft{
  background: linear-gradient(180deg, rgba(245,247,251,.9), rgba(245,247,251,.65));
}

/* link style */
.link-soft{
  color: var(--primary);
  text-decoration: none;
  border-bottom: 1px dashed rgba(17,24,39,.25);
  transition: all .2s ease;
}
.link-soft:hover{
  color: var(--accent);
  border-bottom-color: rgba(37,99,235,.55);
}

/* brand */
.brand-dot{
  display:inline-block;
  width:10px; height:10px;
  border-radius:999px;
  background: var(--accent);
  margin-right:.45rem;
  box-shadow: 0 0 0 4px rgba(37,99,235,.12);
  transform: translateY(-1px);
}

/* =========================
   NAVBAR lebih elegan
========================= */
.nav-soft{
  background: rgba(255,255,255,.78);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  transition: all .25s ease;
}
.nav-soft.nav-scrolled{
  background: rgba(255,255,255,.92);
  box-shadow: var(--shadow);
}
.navbar .nav-link{
  color: rgba(17,24,39,.78);
  border-radius: 999px;
  padding: .45rem .75rem;
  transition: all .2s ease;
}
.navbar .nav-link:hover{
  background: rgba(37,99,235,.08);
  color: var(--accent);
}
.navbar .nav-link.active{
  background: rgba(17,24,39,.08);
  color: var(--primary);
}

/* =========================
   CARD & elemen umum
========================= */
.card{
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.shadow-soft{ box-shadow: var(--shadow); }

.rounded-4{ border-radius: var(--radius) !important; }

.hero-img{
  height: 320px;
  object-fit: cover;
  filter: saturate(1.03) contrast(1.02);
}
.about-img{
  height: 260px;
  object-fit: cover;
  filter: saturate(1.03);
}
.product-img{
  /* Biar gambar tidak kepotong tetapi tetap rapi */
  width: 100%;
  height: auto;
  max-height: 220px;
  object-fit: contain;
  background-color: #f3f4f6; /* sedikit abu-abu muda supaya area kosong tidak aneh */
  transition: transform .35s ease, filter .35s ease;
}
.card:hover .product-img{
  transform: scale(1.035);
  filter: saturate(1.06) contrast(1.03);
}

/* tombol lebih premium */
.btn{
  border-radius: 999px;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
}
.btn:active{ transform: translateY(1px); }
.btn-dark{
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 10px 25px rgba(17,24,39,.18);
}
.btn-dark:hover{
  box-shadow: 0 14px 35px rgba(17,24,39,.22);
}
.btn-outline-dark:hover{
  background: rgba(17,24,39,.08);
}

/* input lebih halus */
.form-control, .form-select, .input-group-text{
  border-radius: 999px !important;
  border: 1px solid var(--border);
}
.form-control:focus, .form-select:focus{
  border-color: rgba(37,99,235,.45);
  box-shadow: var(--ring);
}

/* table */
.table{
  border-color: var(--border);
}

/* badge lebih soft */
.badge{
  border-radius: 999px;
}

/* accordion */
.accordion-item{
  border: 0;
  border-bottom: 1px solid var(--border);
}
.accordion-button{
  background: var(--bg-card);
}
.accordion-button:focus{
  box-shadow: var(--ring);
}

/* toast */
.toast{
  border-radius: 1rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-2);
}

/* =========================
   Reveal animation
========================= */
.reveal{
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.show{
  opacity: 1;
  transform: translateY(0);
}

/* =========================
   Floating Back-to-top
========================= */
.fab-top{
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 1050;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity .25s ease, transform .25s ease;
}
.fab-top.show{
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* =========================
   Dark Mode (soft)
========================= */
body.dark-mode{
  --bg: #0b1220;
  --bg-soft: #0f172a;
  --bg-card: #0c1426;
  --text: #e5e7eb;
  --muted: #9ca3af;
  --primary: #e5e7eb;
  --border: rgba(229,231,235,.10);
  --shadow: 0 12px 30px rgba(0,0,0,.35);
  --shadow-2: 0 18px 45px rgba(0,0,0,.45);
  background: radial-gradient(900px 500px at 20% 0%, rgba(37,99,235,.10), transparent 60%),
              radial-gradient(900px 500px at 90% 20%, rgba(22,163,74,.08), transparent 65%),
              var(--bg);
}
body.dark-mode,
body.dark-mode p,
body.dark-mode li,
body.dark-mode .breadcrumb-item,
body.dark-mode .navbar .nav-link{
  color: var(--text);
}
body.dark-mode .text-muted,
body.dark-mode .text-body-secondary,
body.dark-mode .form-text{
  color: var(--muted) !important;
}
body.dark-mode .nav-soft{
  background: rgba(11,18,32,.72);
}
body.dark-mode .nav-soft.nav-scrolled{
  background: rgba(11,18,32,.92);
}
body.dark-mode .alert{
  background: rgba(12,20,38,.85) !important;
  color: var(--text);
  border-color: var(--border) !important;
}
body.dark-mode .link-soft{
  color: var(--text);
  border-bottom-color: rgba(229,231,235,.25);
}
body.dark-mode .link-soft:hover{
  color: #93c5fd;
  border-bottom-color: rgba(147,197,253,.55);
}
body.dark-mode .accordion-button{
  color: var(--text);
}
body.dark-mode .table-light{
  --bs-table-bg: rgba(255,255,255,.05);
}

/* section & card surface */
body.dark-mode .section-soft{
  background: linear-gradient(180deg, rgba(15,23,42,.96), rgba(15,23,42,.9));
}
body.dark-mode .card,
body.dark-mode .modal-content,
body.dark-mode .offcanvas,
body.dark-mode .dropdown-menu{
  background-color: var(--bg-card);
  border-color: var(--border);
}

/* form & input */
body.dark-mode .form-control,
body.dark-mode .form-select,
body.dark-mode .input-group-text{
  background-color: #020617;
  color: var(--text);
  border-color: rgba(148,163,184,.4);
}
body.dark-mode .form-control::placeholder,
body.dark-mode .form-select,
body.dark-mode .form-text{
  color: var(--muted);
}

/* list, table, footer */
body.dark-mode .list-group-item,
body.dark-mode .accordion-item{
  background-color: var(--bg-card);
  border-color: var(--border);
}
body.dark-mode table{
  color: var(--text);
}
body.dark-mode footer{
  background-color: #020617;
  border-top-color: var(--border);
}