:root {
  --steel-950: #0b0f14;
  --steel-900: #12181f;
  --steel-850: #171e27;
  --steel-800: #1c2430;
  --steel-700: #2a3544;
  --steel-600: #3d4b5c;
  --steel-400: #8b9bb0;
  --steel-300: #a8b5c4;
  --steel-200: #c5ced8;
  --steel-100: #e8edf2;
  --amber-500: #f5a623;
  --amber-400: #ffb800;
  --amber-600: #e09000;
  --amber-glow: rgba(245, 166, 35, 0.16);
  --amber-line: rgba(245, 166, 35, 0.35);
  --success: #22c55e;
  --danger: #ef4444;
  --warning: #f59e0b;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  --font-display: "Barlow Condensed", "Segoe UI", sans-serif;
  --font-body: "DM Sans", "Segoe UI", sans-serif;
  --header-h: 64px;
  --bottom-nav-h: 68px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--steel-100);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(245, 166, 35, 0.08), transparent 55%),
    radial-gradient(900px 500px at 100% 0%, rgba(42, 53, 68, 0.45), transparent 50%),
    linear-gradient(180deg, var(--steel-950) 0%, var(--steel-900) 40%, #0e1319 100%);
  min-height: 100vh;
  padding-bottom: calc(var(--bottom-nav-h) + 12px);
}

@media (min-width: 992px) {
  body {
    padding-bottom: 0;
  }
}

h1, h2, h3, h4, h5, .brand-font {
  font-family: var(--font-display);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 700;
}

a {
  color: var(--amber-400);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--amber-500);
}

img {
  max-width: 100%;
  height: auto;
}

/* ——— Header ——— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: rgba(11, 15, 20, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  min-height: var(--header-h);
}

.site-header .navbar {
  min-height: var(--header-h);
}

.site-header .navbar-brand {
  font-family: var(--font-display);
  font-size: 1.55rem;
  letter-spacing: 0.08em;
  color: #fff !important;
  font-weight: 700;
}

.site-header .navbar-brand span {
  color: var(--amber-400);
}

.site-header .nav-link {
  color: rgba(255, 255, 255, 0.78) !important;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  padding: 0.55rem 0.85rem !important;
}

.site-header .nav-link:hover,
.site-header .nav-link.active {
  color: var(--amber-400) !important;
}

.site-header .navbar-toggler {
  border-color: rgba(255, 255, 255, 0.2);
  padding: 0.35rem 0.55rem;
}

.site-header .navbar-toggler:focus {
  box-shadow: 0 0 0 0.2rem var(--amber-glow);
}

.cart-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.25rem;
  height: 1.25rem;
  background: var(--amber-500);
  color: var(--steel-950);
  border-radius: 999px;
  font-size: 0.68rem;
  padding: 0 0.35rem;
  margin-left: 0.2rem;
  font-weight: 800;
}

/* ——— Buttons ——— */
.btn {
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.btn-amber {
  background: linear-gradient(135deg, var(--amber-400), var(--amber-600));
  border: none;
  color: var(--steel-950) !important;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  box-shadow: 0 8px 24px rgba(245, 166, 35, 0.25);
}

.btn-amber:hover,
.btn-amber:focus {
  background: linear-gradient(135deg, #ffc933, var(--amber-500));
  color: var(--steel-950) !important;
  filter: brightness(1.05);
}

.btn-steel {
  background: var(--steel-700);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #fff !important;
  font-weight: 600;
}

.btn-steel:hover {
  background: var(--steel-600);
  color: #fff !important;
}

.btn-outline-light {
  border-width: 1.5px;
  color: #fff !important;
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--amber-400) !important;
  border-color: var(--amber-400);
}

.btn-outline-amber {
  background: transparent;
  border: 1.5px solid var(--amber-500);
  color: var(--amber-400) !important;
}

.btn-outline-amber:hover {
  background: var(--amber-glow);
  color: var(--amber-400) !important;
}

/* ——— Main shell ——— */
main.site-main {
  padding-top: 0.5rem;
  padding-bottom: 2rem;
}

main.site-main > .container,
.flash-wrap {
  max-width: 1140px;
}

.flash-wrap {
  margin-top: 1rem;
}

.alert {
  border: none;
  border-radius: var(--radius-sm);
  background: var(--steel-800);
  color: var(--steel-100);
  border-left: 3px solid var(--amber-500);
}

.alert-success { border-left-color: var(--success); }
.alert-danger { border-left-color: var(--danger); }
.alert-warning { border-left-color: var(--warning); color: #fff; }

/* ——— Hero full-bleed ——— */
.hero-bleed {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  min-height: min(78vh, 640px);
  display: flex;
  align-items: flex-end;
  color: #fff;
  overflow: hidden;
  background:
    linear-gradient(115deg, rgba(11, 15, 20, 0.96) 0%, rgba(18, 24, 31, 0.88) 45%, rgba(28, 36, 48, 0.72) 100%),
    repeating-linear-gradient(
      -35deg,
      transparent,
      transparent 18px,
      rgba(245, 166, 35, 0.03) 18px,
      rgba(245, 166, 35, 0.03) 19px
    ),
    radial-gradient(ellipse at 80% 20%, rgba(245, 166, 35, 0.18), transparent 45%);
  animation: heroIn 0.8s ease both;
}

.hero-bleed::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 120px;
  background: linear-gradient(to top, var(--steel-950), transparent);
  pointer-events: none;
}

.hero-bleed .hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 4.5rem 1.25rem 3.5rem;
}

.hero-bleed .hero-kicker {
  display: inline-block;
  color: var(--amber-400);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 0.85rem;
}

.hero-bleed h1 {
  font-size: clamp(2.6rem, 9vw, 5rem);
  line-height: 0.95;
  margin: 0 0 0.85rem;
  max-width: 12ch;
  animation: riseIn 0.75s 0.1s ease both;
}

.hero-bleed .hero-lead {
  color: var(--steel-300);
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  max-width: 28rem;
  margin: 0 0 1.5rem;
  line-height: 1.55;
  animation: riseIn 0.75s 0.2s ease both;
}

.hero-bleed .hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  animation: riseIn 0.75s 0.3s ease both;
}

.hero-bleed .hero-cta .btn {
  padding: 0.7rem 1.4rem;
}

@keyframes heroIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes riseIn {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ——— Sections ——— */
.section-block {
  margin-top: 2.5rem;
  margin-bottom: 2.5rem;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.section-title {
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  margin: 0;
  position: relative;
  padding-bottom: 0.45rem;
}

.section-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 2.75rem;
  height: 3px;
  background: var(--amber-500);
  border-radius: 2px;
}

.section-link {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.muted {
  color: var(--steel-400) !important;
}

/* ——— Product cards ——— */
.product-card {
  background: var(--steel-850);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

@media (hover: hover) {
  .product-card:hover {
    transform: translateY(-4px);
    border-color: var(--amber-line);
    box-shadow: var(--shadow);
  }
}

.product-card .thumb {
  aspect-ratio: 1 / 1;
  background: var(--steel-800);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.product-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

@media (hover: hover) {
  .product-card:hover .thumb img {
    transform: scale(1.04);
  }
}

.product-card .thumb .placeholder {
  color: var(--steel-400);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.product-card .body {
  padding: 0.9rem 0.95rem 1rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-card .product-name {
  color: #fff !important;
  font-weight: 600;
  font-family: var(--font-body) !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  font-size: 0.95rem;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card .price,
.price {
  color: var(--amber-400);
  font-weight: 800;
  font-size: 1.05rem;
  font-family: var(--font-display);
  letter-spacing: 0.03em;
}

.product-card .btn {
  margin-top: auto;
  border-radius: 999px;
}

/* ——— Panels / forms ——— */
.panel {
  background: rgba(28, 36, 48, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius);
  padding: 1.25rem;
  backdrop-filter: blur(8px);
}

.panel-dark {
  background: var(--steel-900);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.form-label {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--steel-200);
}

.form-control,
.form-select {
  background: var(--steel-900);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  border-radius: var(--radius-sm);
  padding: 0.7rem 0.9rem;
}

.form-control:focus,
.form-select:focus {
  background: var(--steel-900);
  border-color: var(--amber-500);
  color: #fff;
  box-shadow: 0 0 0 0.2rem var(--amber-glow);
}

.form-control::placeholder {
  color: var(--steel-600);
}

.form-select option {
  background: var(--steel-900);
  color: #fff;
}

.breadcrumb {
  --bs-breadcrumb-divider-color: var(--steel-600);
  background: transparent;
  padding: 0;
}

.breadcrumb-item,
.breadcrumb-item a {
  color: var(--steel-400);
  font-size: 0.85rem;
}

.breadcrumb-item.active {
  color: var(--steel-200);
}

/* ——— Service tiles ——— */
.service-tile {
  display: block;
  background: linear-gradient(145deg, var(--steel-800), var(--steel-850));
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius);
  padding: 1.5rem 1.35rem;
  height: 100%;
  color: inherit !important;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  min-height: 140px;
}

.service-tile:hover {
  border-color: var(--amber-line);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  color: inherit !important;
}

.service-tile h3 {
  color: #fff;
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
}

.service-tile p {
  color: var(--steel-400);
  margin: 0;
  font-size: 0.95rem;
}

/* ——— Checkout steps ——— */
.checkout-steps {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin: 1rem 0 1.25rem;
}

.checkout-steps .step {
  flex: 1;
  min-width: 90px;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--steel-400);
  padding: 0.55rem 0.4rem;
  border-radius: 999px;
  background: var(--steel-850);
  border: 1px solid transparent;
}

.checkout-steps .step.active {
  color: var(--steel-950);
  background: var(--amber-400);
}

.checkout-steps .step.done {
  color: var(--amber-400);
  border-color: var(--amber-line);
}

.bank-box {
  background: var(--amber-glow);
  border: 1px dashed var(--amber-500);
  border-radius: var(--radius);
  padding: 1.1rem;
}

.bank-box strong {
  color: var(--amber-400);
}

/* ——— Tables ——— */
.table-store {
  --bs-table-color: var(--steel-100);
  --bs-table-bg: transparent;
  --bs-table-striped-color: var(--steel-100);
  --bs-table-striped-bg: rgba(255, 255, 255, 0.03);
  --bs-table-hover-color: #fff;
  --bs-table-hover-bg: rgba(245, 166, 35, 0.06);
  --bs-table-border-color: rgba(255, 255, 255, 0.08);
  --bs-table-active-color: #fff;
  color: var(--steel-100) !important;
}

.table-store > :not(caption) > * > * {
  color: inherit;
  background-color: transparent;
}

.table-store th {
  background: rgba(0, 0, 0, 0.25) !important;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--steel-300) !important;
  border-color: rgba(255, 255, 255, 0.08);
}

.table-store td {
  border-color: rgba(255, 255, 255, 0.06);
  vertical-align: middle;
  color: var(--steel-100) !important;
}

.table-store td .price,
.table-store .fw-semibold {
  color: var(--amber-400) !important;
}

/* ——— Auth ——— */
.auth-shell {
  min-height: calc(100vh - var(--header-h) - 120px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 0 2rem;
}

.auth-card {
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  background: rgba(28, 36, 48, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  box-shadow: var(--shadow);
}

.auth-card .auth-brand {
  font-family: var(--font-display);
  font-size: 2rem;
  letter-spacing: 0.06em;
  margin-bottom: 0.25rem;
}

.auth-card .auth-brand span {
  color: var(--amber-400);
}

/* ——— Product detail sticky CTA ——— */
.product-gallery {
  background: var(--steel-850);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.product-gallery .main-shot {
  aspect-ratio: 1 / 1;
  background: var(--steel-800);
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-gallery .main-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-gallery .thumbs {
  display: flex;
  gap: 0.5rem;
  padding: 0.65rem;
  flex-wrap: wrap;
}

.product-gallery .thumbs img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.detail-cta-bar {
  position: sticky;
  bottom: calc(var(--bottom-nav-h) + 8px);
  z-index: 20;
  background: rgba(18, 24, 31, 0.94);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 0.85rem;
  margin-top: 1rem;
  box-shadow: var(--shadow);
}

@media (min-width: 992px) {
  .detail-cta-bar {
    position: static;
    background: transparent;
    border: none;
    box-shadow: none;
    backdrop-filter: none;
    padding: 0;
  }
}

/* ——— Badges ——— */
.badge-status,
.badge-new {
  display: inline-block;
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.badge-new {
  background: var(--amber-500);
  color: var(--steel-950);
}

.badge-pending_payment,
.badge-unpaid,
.badge-menunggu { background: rgba(245, 158, 11, 0.2); color: #fbbf24; }

.badge-waiting_verification { background: rgba(59, 130, 246, 0.2); color: #93c5fd; }

.badge-paid,
.badge-processing,
.badge-dikonfirmasi { background: rgba(34, 197, 94, 0.18); color: #86efac; }

.badge-shipped { background: rgba(56, 189, 248, 0.18); color: #7dd3fc; }

.badge-completed,
.badge-selesai { background: rgba(16, 185, 129, 0.2); color: #6ee7b7; }

.badge-cancelled,
.badge-failed,
.badge-batal { background: rgba(239, 68, 68, 0.2); color: #fca5a5; }

.wa-cta {
  background: #25d366 !important;
  color: #fff !important;
  font-weight: 700;
  border: none;
}

.wa-cta:hover {
  background: #1ebe57 !important;
  color: #fff !important;
}

.page-content p,
.page-content li {
  line-height: 1.7;
  color: var(--steel-300);
}

.page-title {
  margin: 1.25rem 0 1rem;
  font-size: clamp(1.5rem, 4vw, 2rem);
}

/* ——— Pagination ——— */
.pagination .page-link {
  background: var(--steel-850);
  border-color: rgba(255, 255, 255, 0.08);
  color: var(--steel-200);
}

.pagination .page-item.active .page-link {
  background: var(--amber-500);
  border-color: var(--amber-500);
  color: var(--steel-950);
}

.pagination .page-link:hover {
  background: var(--steel-700);
  color: #fff;
}

/* ——— Footer ——— */
.site-footer {
  background: #070a0e;
  color: var(--steel-400);
  margin-top: 3rem;
  padding: 2.75rem 0 calc(1.5rem + var(--bottom-nav-h));
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

@media (min-width: 992px) {
  .site-footer {
    padding-bottom: 1.75rem;
  }
}

.site-footer a {
  color: var(--steel-300);
}

.site-footer a:hover {
  color: var(--amber-400);
}

.site-footer h5 {
  color: #fff;
  font-size: 0.95rem;
  margin-bottom: 0.85rem;
}

.site-footer .footer-brand {
  font-size: 1.5rem;
  color: #fff;
}

.site-footer .footer-brand span {
  color: var(--amber-400);
}

.site-footer hr {
  border-color: rgba(255, 255, 255, 0.08) !important;
  opacity: 1;
}

/* ——— Bottom nav (mobile) ——— */
.bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1040;
  height: var(--bottom-nav-h);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  background: rgba(11, 15, 20, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.35rem 0.25rem calc(0.35rem + env(safe-area-inset-bottom));
}

.bottom-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  color: var(--steel-400);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  position: relative;
  padding: 0.25rem;
}

.bottom-nav a svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
}

.bottom-nav a.active,
.bottom-nav a:hover {
  color: var(--amber-400);
}

.bottom-nav .nav-dot {
  position: absolute;
  top: 2px;
  right: calc(50% - 18px);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--amber-500);
}

@media (min-width: 992px) {
  .bottom-nav {
    display: none;
  }
}

/* Text utilities override for dark theme */
.text-muted {
  color: var(--steel-400) !important;
}

.text-dark {
  color: #fff !important;
}

.bg-warning {
  background-color: var(--amber-500) !important;
}

/* List group / misc Bootstrap overrides */
.list-group-item {
  background: transparent !important;
}

hr {
  border-color: rgba(255, 255, 255, 0.1);
  opacity: 1;
}

@media (max-width: 575.98px) {
  .hero-bleed {
    min-height: 72vh;
  }

  .hero-bleed .hero-inner {
    padding: 3.25rem 1.1rem 2.75rem;
  }

  .product-card .body {
    padding: 0.75rem;
  }

  .product-card .product-name {
    font-size: 0.88rem;
  }
}
