:root {
  --brand: #4f46e5;
  --brand-dark: #4338ca;
  --brand-light: #eef2ff;
}

body {
  background-color: #f8fafc;
  color: #1e293b;
}

a {
  text-decoration: none;
}

.navbar-brand-custom {
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--brand) !important;
}

.btn-brand {
  background-color: var(--brand);
  border-color: var(--brand);
  color: #fff;
}
.btn-brand:hover {
  background-color: var(--brand-dark);
  border-color: var(--brand-dark);
  color: #fff;
}

.text-brand { color: var(--brand) !important; }
.bg-brand { background-color: var(--brand) !important; }
.bg-brand-light { background-color: var(--brand-light) !important; }

.top-bar {
  background-color: var(--brand-dark);
  color: #e0e7ff;
  font-size: 0.85rem;
}

.category-nav {
  background-color: #fff;
  border-bottom: 1px solid #e2e8f0;
}
.category-nav .nav-link {
  color: #334155;
  font-weight: 500;
  padding: 0.5rem 0.9rem;
}
.category-nav .nav-link:hover {
  color: var(--brand);
}

.product-card {
  background: #fff;
  border-radius: 0.75rem;
  overflow: hidden;
  border: 1px solid #eef2f7;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  box-shadow: 0 10px 25px rgba(79, 70, 229, 0.12);
  transform: translateY(-3px);
}
.product-card .product-img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  background: #f1f5f9;
}
.product-card .card-body {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}
.product-card .price-sale {
  color: #dc2626;
  font-weight: 700;
}
.product-card .price-original {
  color: #94a3b8;
  text-decoration: line-through;
  font-size: 0.85rem;
}
.badge-sale {
  background-color: #dc2626;
}
.wishlist-btn {
  border: none;
  background: rgba(255,255,255,0.9);
  border-radius: 50%;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.wishlist-btn.active {
  color: #dc2626;
}

.hero-banner {
  border-radius: 1rem;
  overflow: hidden;
  position: relative;
  color: #fff;
  min-height: 280px;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
}
.hero-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(30,27,75,0.75), rgba(30,27,75,0.25));
}
.hero-banner .hero-content {
  position: relative;
  z-index: 1;
  padding: 2.5rem;
}

.section-title {
  font-weight: 800;
  font-size: 1.5rem;
  border-left: 5px solid var(--brand);
  padding-left: 0.75rem;
  margin-bottom: 1.25rem;
}

.footer-custom {
  background-color: #1e1b4b;
  color: #c7d2fe;
}
.footer-custom a {
  color: #c7d2fe;
}
.footer-custom a:hover {
  color: #fff;
}

.star-rating .bi-star-fill,
.star-rating .bi-star-half {
  color: #f59e0b;
}
.star-rating .bi-star {
  color: #cbd5e1;
}

.qty-input {
  width: 70px;
}

.admin-sidebar {
  background: #1e1b4b;
  min-height: calc(100vh - 60px);
}
.admin-sidebar a {
  color: #c7d2fe;
  display: block;
  padding: 0.65rem 1.25rem;
  border-radius: 0.4rem;
}
.admin-sidebar a:hover, .admin-sidebar a.active {
  background: rgba(255,255,255,0.1);
  color: #fff;
}

.table-responsive-card table {
  vertical-align: middle;
}
