/* ===========================================================
   Design tokens — marketplace visual pattern (generic, not a
   copy of any specific brand's logo/assets)
   =========================================================== */
:root {
  --brand-blue-900: #002a5c;
  --brand-blue-700: #0057b8;
  --brand-blue-600: #0068d6;
  --brand-blue-100: #e7f1fc;
  --brand-orange-600: #ff6a00;
  --brand-orange-500: #ff8a3d;
  --ink-900: #1a1a2e;
  --ink-600: #5c6270;
  --surface-0: #ffffff;
  --surface-100: #f4f6fb;
  --surface-200: #e9ecf3;
  --radius-md: 10px;
  --radius-lg: 16px;
  --shadow-card: 0 1px 3px rgba(16, 24, 64, 0.08), 0 1px 2px rgba(16, 24, 64, 0.06);
  --shadow-card-hover: 0 8px 20px rgba(16, 24, 64, 0.12);
}

body {
  background-color: var(--surface-100);
  color: var(--ink-900);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

h1, h2, h3, h4, h5, h6, .font-display {
  font-family: "Poppins", "Inter", sans-serif;
  font-weight: 600;
}

a { text-decoration: none; }

/* ---- Main navbar ---- */
.navbar-marketplace {
  padding-top: .75rem;
  padding-bottom: 0;
}
.navbar-gradient {
  background: linear-gradient(90deg, var(--brand-blue-600) 0%, var(--brand-blue-900) 100%);
}
.navbar-marketplace .navbar-brand {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  color: #fff !important;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.navbar-marketplace .navbar-brand span { color: var(--brand-orange-500); }
.navbar-logo-img {
  max-height: 40px;
  max-width: 200px;
  object-fit: contain;
  vertical-align: middle;
}

.nav-search-pill {
  border-radius: 999px;
  overflow: hidden;
  max-width: 560px;
  background: #fff;
  padding: 3px;
}
.nav-search-pill input {
  border: none;
  padding: .55rem 1.1rem;
  background: transparent;
}
.nav-search-pill input:focus { box-shadow: none; }
.nav-search-pill button {
  background: var(--brand-blue-700);
  border: none;
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.nav-search-pill button:hover { background: var(--brand-blue-900); }

.nav-icon-link {
  color: #eaf2fe;
  font-size: .85rem;
  text-align: center;
}
.nav-icon-link:hover { color: #fff; }
.nav-icon-badge {
  background: #ff3b3b;
  color: #fff;
  border-radius: 999px;
  font-size: .65rem;
  padding: .05rem .4rem;
  position: relative;
  top: -8px;
  right: 4px;
}

.btn-pill {
  border-radius: 999px;
  padding: .45rem 1.3rem;
  font-weight: 600;
  font-size: .88rem;
  white-space: nowrap;
}
.btn-pill-outline {
  border: 1.5px solid #fff;
  color: #fff;
  background: transparent;
}
.btn-pill-outline:hover { background: rgba(255,255,255,0.12); color: #fff; }
.btn-pill-solid {
  background: #fff;
  color: var(--brand-blue-700);
  border: 1.5px solid #fff;
}
.btn-pill-solid:hover { background: var(--surface-100); color: var(--brand-blue-900); }
.btn-pill-xl {
  padding: .9rem 2.6rem;
  font-size: 1.76rem;
}

/* ---- Category strip (inside navbar, below search row) ---- */
.category-strip-inner {
  padding: .5rem 0;
  font-size: .85rem;
  gap: 1.25rem;
}
.btn-kategori {
  background: rgba(255,255,255,0.12);
  border: none;
  color: #fff;
  border-radius: 8px;
  padding: .4rem .9rem;
  font-size: .85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: .4rem;
  white-space: nowrap;
}
.btn-kategori:hover { background: rgba(255,255,255,0.22); }
.grid-icon { font-size: 1rem; }
.category-links {
  display: flex;
  gap: 1.1rem;
  overflow-x: auto;
  flex-wrap: nowrap;
}
.category-links a {
  color: #eaf2fe;
  white-space: nowrap;
}
.category-links a:hover { color: #fff; text-decoration: underline; }


/* ---- Hero ---- */
.hero-banner {
  background: linear-gradient(120deg, var(--brand-blue-700) 0%, var(--brand-blue-900) 100%);
  border-radius: var(--radius-lg);
  color: #fff;
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
}
.hero-banner::after {
  content: "";
  position: absolute;
  right: -60px; top: -60px;
  width: 260px; height: 260px;
  background: rgba(255, 138, 61, 0.25);
  border-radius: 50%;
}
.hero-banner h1 { font-size: 2.1rem; margin-bottom: .5rem; }
.hero-banner p { color: #d6e6fb; max-width: 520px; }

/* ---- Section headers ---- */
.section-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 1rem;
}
.section-title h2 { font-size: 1.15rem; margin: 0; }
.section-title a { font-size: .85rem; color: var(--brand-blue-700); font-weight: 600; }

/* ---- Cards ---- */
.card {
  border: none;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  transition: box-shadow .15s ease, transform .15s ease;
  overflow: hidden;
}
.card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
}
.product-card .card-body { padding: .85rem; }
.product-card .price { color: var(--brand-orange-600); font-weight: 700; }
.product-card .store-name { color: var(--ink-600); font-size: .78rem; }
.product-card .rating { color: #f2a900; font-size: .78rem; }
.product-card .product-name {
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  min-height: 2.4em;
  font-size: .92rem;
}

.product-card-img-wrap {
  position: relative;
  width: 100%;
  padding-top: 100%;
  background: var(--surface-200);
  overflow: hidden;
}
.product-card-img-wrap img {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.product-card-img-placeholder {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-600);
  font-size: .75rem;
  text-align: center;
  padding: .5rem;
}
.product-card-discount-badge {
  position: absolute;
  top: .5rem; left: .5rem;
}

.badge-discount {
  background: var(--brand-orange-600);
  color: #fff;
  font-size: .7rem;
  font-weight: 600;
}

.category-pill {
  border: 1px solid var(--surface-200);
  border-radius: 999px;
  background: var(--surface-0);
  padding: .5rem 1rem;
  font-size: .85rem;
  color: var(--ink-900);
}
.category-pill:hover { border-color: var(--brand-blue-700); color: var(--brand-blue-700); }

/* ---- Dashboard shell (admin/seller) ---- */
.dashboard-shell { display: flex; min-height: calc(100vh - 140px); }
.dashboard-sidebar {
  width: 240px;
  background: var(--surface-0);
  border-right: 1px solid var(--surface-200);
  padding: 1.25rem 0;
  flex-shrink: 0;
}
.dashboard-sidebar .side-heading {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--ink-600);
  padding: .4rem 1.25rem;
  margin-top: .5rem;
}
.dashboard-sidebar a {
  display: block;
  padding: .55rem 1.25rem;
  color: var(--ink-900);
  font-size: .9rem;
  border-left: 3px solid transparent;
}
.dashboard-sidebar a:hover { background: var(--brand-blue-100); }
.dashboard-sidebar a.active {
  border-left-color: var(--brand-orange-600);
  background: var(--brand-blue-100);
  color: var(--brand-blue-700);
  font-weight: 600;
}
.dashboard-sidebar a .soon-tag {
  font-size: .65rem;
  background: var(--surface-200);
  color: var(--ink-600);
  border-radius: 4px;
  padding: .05rem .35rem;
  margin-left: .4rem;
}
.dashboard-main { flex: 1; padding: 1.75rem; }

footer.site-footer {
  background: var(--brand-blue-900);
}

/* ---- Buttons ---- */
.btn {
  border-radius: var(--radius-md);
  font-weight: 600;
  padding: .5rem 1.1rem;
  transition: transform .12s ease, box-shadow .12s ease, filter .12s ease;
  border-width: 1.5px;
}
.btn-sm { padding: .3rem .75rem; border-radius: 8px; }
.btn-lg { padding: .7rem 1.6rem; border-radius: var(--radius-lg); font-size: 1.05rem; }

.btn-primary {
  background: var(--brand-blue-700);
  border-color: var(--brand-blue-700);
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--brand-blue-900);
  border-color: var(--brand-blue-900);
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0, 87, 184, 0.25);
}

.btn-outline-primary {
  color: var(--brand-blue-700);
  border-color: var(--brand-blue-700);
}
.btn-outline-primary:hover {
  background: var(--brand-blue-700);
  border-color: var(--brand-blue-700);
  transform: translateY(-1px);
}

.btn-outline-secondary:hover,
.btn-outline-danger:hover,
.btn-outline-success:hover,
.btn-success:hover,
.btn-danger:hover {
  transform: translateY(-1px);
  filter: brightness(0.95);
}

.btn:active { transform: translateY(0) !important; }

.btn:disabled, .btn.disabled {
  transform: none;
  box-shadow: none;
  opacity: .55;
  cursor: not-allowed;
}

.btn:focus-visible {
  outline: 2px solid var(--brand-orange-500);
  outline-offset: 2px;
}

/* ---- Promo banners (homepage) ---- */
.promo-banner-row {
  overflow-x: auto;
}
.promo-banner-item {
  flex-shrink: 0;
  width: 320px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform .15s ease, box-shadow .15s ease;
}
.promo-banner-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card-hover);
}
.promo-banner-item img {
  width: 100%;
  height: 130px;
  object-fit: cover;
  display: block;
}
