/* ============================================
   TokoIDS — Global Styles
   Tema 2 warna: Primary Orange + Secondary Navy
   ============================================ */
:root {
  --primary: #f97316;          /* orange-500 */
  --primary-dark: #ea580c;     /* orange-600 */
  --primary-darker: #c2410c;   /* orange-700 */
  --primary-light: #fff7ed;    /* orange-50  */
  --primary-soft: #ffedd5;     /* orange-100 */

  --secondary: #1a1a2e;        /* navy gelap */
  --secondary-2: #16213e;
  --secondary-soft: #2a2a44;

  --bg: #f7f8fa;
  --surface: #ffffff;
  --border: #eceef1;
  --text: #1f2433;
  --muted: #6b7280;
  --star: #fbbf24;

  --shadow-sm: 0 1px 3px rgba(16, 24, 40, .06), 0 1px 2px rgba(16, 24, 40, .04);
  --shadow-md: 0 6px 18px rgba(16, 24, 40, .08);
  --shadow-lg: 0 14px 40px rgba(16, 24, 40, .12);
  --radius: 14px;
}

* { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
}

/* ---------- Buttons ---------- */
.btn { border-radius: 10px; font-weight: 600; transition: all .18s ease; }

/* btn-warning dipakai sebagai CTA utama => jadikan oranye solid */
.btn-warning {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.btn-warning:hover, .btn-warning:focus {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: #fff;
  box-shadow: 0 6px 16px rgba(249, 115, 22, .32);
}
.btn-outline-warning {
  color: var(--primary-dark);
  border-color: var(--primary);
}
.btn-outline-warning:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.btn-dark {
  background: var(--secondary);
  border-color: var(--secondary);
}
.btn-dark:hover { background: #0f1020; border-color: #0f1020; }
.btn-outline-dark { border-color: #d3d7df; color: var(--text); }
.btn-outline-dark:hover { background: var(--secondary); border-color: var(--secondary); }
.text-warning, .text-primary-c { color: var(--primary-dark) !important; }

/* ---------- Navbar ---------- */
.navbar.bg-dark { background: var(--secondary) !important; box-shadow: var(--shadow-sm); }
.navbar-brand { letter-spacing: .3px; }
.navbar .nav-link { font-weight: 500; opacity: .85; transition: opacity .15s, color .15s; }
.navbar .nav-link:hover { opacity: 1; color: var(--primary) !important; }
.navbar { overflow: visible !important; }
.navbar .dropdown-menu { z-index: 1056; position: absolute !important; }

/* ---------- Cards ---------- */
.card { border-radius: var(--radius); }
.product-card {
  transition: transform .2s ease, box-shadow .2s ease;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}
.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg) !important;
}
.product-thumb {
  height: 190px;
  overflow: hidden;
  background: #f1f3f6;
  display: flex; align-items: center; justify-content: center;
}
.product-thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .35s ease;
}
.product-card:hover .product-thumb img { transform: scale(1.06); }

.price-tag { color: var(--primary-dark); font-weight: 800; }

/* ---------- Hero ---------- */
.hero-section { min-height: 440px; display: flex; align-items: center; position: relative; overflow: hidden; }

/* ---------- Breadcrumb modern ---------- */
.breadcrumb-modern {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: .5rem 1.1rem;
  display: inline-flex;
  box-shadow: var(--shadow-sm);
}
.breadcrumb-modern .breadcrumb { margin: 0; }
.breadcrumb-modern .breadcrumb-item a {
  color: var(--muted); text-decoration: none; font-weight: 500;
}
.breadcrumb-modern .breadcrumb-item a:hover { color: var(--primary-dark); }
.breadcrumb-modern .breadcrumb-item.active { color: var(--secondary); font-weight: 600; }
.breadcrumb-modern .breadcrumb-item + .breadcrumb-item::before { content: "›"; color: #c2c6cf; }

/* ---------- Stars ---------- */
.stars { color: var(--star); letter-spacing: 1px; display: inline-flex; gap: 1px; }
.stars .empty { color: #d8dbe0; }

/* ---------- Category chips ---------- */
.cat-chip {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  border-radius: 999px;
  padding: .32rem .8rem;
  font-weight: 600;
  font-size: .8rem;
  text-decoration: none;
  transition: all .15s ease;
  box-shadow: var(--shadow-sm);
}
.cat-chip:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  transform: translateY(-2px);
}

/* ---------- Variant selector ---------- */
.variant-group { margin-bottom: 1rem; }
.variant-label { font-size: .8rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin-bottom: .5rem; }
.variant-chip {
  display: inline-flex; align-items: center;
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--text);
  border-radius: 10px;
  padding: .45rem .9rem;
  margin: 0 .5rem .5rem 0;
  font-size: .88rem; font-weight: 600;
  cursor: pointer;
  transition: all .15s ease;
}
.variant-chip:hover { border-color: var(--primary); color: var(--primary-dark); }
.variant-chip.active {
  border-color: var(--primary);
  background: var(--primary-light);
  color: var(--primary-darker);
  box-shadow: inset 0 0 0 1px var(--primary);
}

/* ---------- Detail gallery ---------- */
.gallery-main {
  border-radius: var(--radius);
  overflow: hidden;
  background: #f1f3f6;
  aspect-ratio: 1 / 1;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border);
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: flex; gap: .5rem; margin-top: .65rem; }
.gallery-thumbs .thumb {
  width: 64px; height: 64px; border-radius: 10px; overflow: hidden;
  border: 2px solid var(--border); cursor: pointer; background: #f1f3f6;
}
.gallery-thumbs .thumb.active { border-color: var(--primary); }
.gallery-thumbs .thumb img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Tabs ---------- */
.nav-tabs { border-bottom: 2px solid var(--border); }
.nav-tabs .nav-link {
  border: none; color: var(--muted); font-weight: 600;
  padding: .75rem 1.1rem; border-bottom: 2px solid transparent; margin-bottom: -2px;
}
.nav-tabs .nav-link:hover { color: var(--primary-dark); border-color: transparent; }
.nav-tabs .nav-link.active {
  color: var(--primary-dark); background: transparent;
  border-bottom: 2px solid var(--primary);
}

/* ---------- Spec table ---------- */
.spec-table th {
  width: 38%; color: var(--muted); font-weight: 600;
  background: var(--bg); white-space: nowrap;
}
.spec-table td, .spec-table th { padding: .65rem .9rem; border-color: var(--border); vertical-align: top; }

/* ---------- Review item ---------- */
.review-item { border-bottom: 1px solid var(--border); padding: 1rem 0; }
.review-item:last-child { border-bottom: none; }
.review-avatar {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--primary-soft); color: var(--primary-darker);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; flex-shrink: 0;
}

/* ---------- Misc ---------- */
.loading-center { display: flex; justify-content: center; align-items: center; min-height: 220px; }
.spinner-border.text-warning { color: var(--primary) !important; }
.section-title { font-weight: 800; letter-spacing: -.01em; }
.soft-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); }

.table-admin th { background: #f8f9fa; font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; }
.form-control:focus, .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 .2rem rgba(249, 115, 22, .18);
}

.badge-pending { background: #fef3c7; color: #92400e; }
.badge-paid    { background: #d1fae5; color: #065f46; }
.badge-failed  { background: #fee2e2; color: #991b1b; }
.badge-soft-primary { background: var(--primary-light); color: var(--primary-darker); border: 1px solid var(--primary-soft); }

footer { margin-top: auto; }
