:root {
  --mnt-blue: #0b3d63;
  --mnt-blue-dark: #082a46;
  --mnt-green: #17a679;
  --mnt-green-dark: #128a63;
  --mnt-bg: #f4f7f9;
  --mnt-accent: #ffb703;
}

body {
  background: var(--mnt-bg);
  font-family: "Sarabun", "Segoe UI", Tahoma, sans-serif;
  color: #1f2d3a;
}

a { text-decoration: none; }

.navbar-mnt {
  background: linear-gradient(90deg, var(--mnt-blue) 0%, var(--mnt-blue-dark) 100%);
}
.navbar-mnt .navbar-brand {
  font-weight: 700;
  color: #fff !important;
  font-size: 1.4rem;
  white-space: normal;
  max-width: 100%;
}
.navbar-mnt .navbar-brand small {
  display: block;
  font-size: 0.65rem;
  font-weight: 400;
  color: #cfe3ee;
  white-space: normal;
  line-height: 1.3;
}
@media (max-width: 575.98px) {
  .navbar-mnt .navbar-brand small { display: none; }
}
.navbar-mnt .nav-link {
  color: #e7f1f7 !important;
}
.navbar-mnt .nav-link:hover,
.navbar-mnt .nav-link.active {
  color: var(--mnt-accent) !important;
}
.cart-badge {
  position: relative;
  top: -8px;
  right: 4px;
}
.topbar {
  background: var(--mnt-blue-dark);
  color: #cfe3ee;
  font-size: 0.85rem;
}
.topbar a { color: #cfe3ee; }

.hero {
  background: linear-gradient(120deg, var(--mnt-blue) 0%, var(--mnt-green-dark) 100%);
  color: #fff;
  padding: 3.5rem 0;
}

.banner-slide {
  background: var(--mnt-blue-dark);
}
.banner-slide-img {
  height: 260px;
  width: 100%;
  object-fit: contain;
}
@media (min-width: 768px) {
  .banner-slide-img { height: 380px; }
}
@media (min-width: 1200px) {
  .banner-slide-img { height: 500px; }
}
.hero h1 { font-weight: 700; }
.hero .btn-accent {
  background: var(--mnt-accent);
  border-color: var(--mnt-accent);
  color: #2b2100;
  font-weight: 600;
}
.hero .btn-accent:hover { filter: brightness(0.95); }

.category-card {
  border: none;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(11,61,99,0.08);
  transition: transform .15s ease;
  height: 100%;
}
.category-card:hover { transform: translateY(-4px); }
.category-card .icon-wrap {
  background: linear-gradient(135deg, var(--mnt-green) 0%, var(--mnt-blue) 100%);
  color: #fff;
  width: 56px; height: 56px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  margin: 0 auto 0.75rem;
}

.product-card {
  border: 1px solid #e6ebef;
  border-radius: 12px;
  overflow: hidden;
  height: 100%;
  transition: box-shadow .15s ease, transform .15s ease;
  background: #fff;
}
.product-card:hover {
  box-shadow: 0 8px 24px rgba(11,61,99,0.12);
  transform: translateY(-3px);
}
.product-card .product-thumb {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  background: #eef2f5;
}
.product-card .card-body { display: flex; flex-direction: column; }
.product-card .price {
  color: var(--mnt-green-dark);
  font-weight: 700;
  font-size: 1.15rem;
}
.product-card .compare-price {
  color: #9aa7b1;
  text-decoration: line-through;
  font-size: 0.9rem;
}
.badge-featured {
  background: var(--mnt-accent);
  color: #2b2100;
}

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

.btn-outline-mnt {
  border-color: var(--mnt-blue);
  color: var(--mnt-blue);
}
.btn-outline-mnt:hover { background: var(--mnt-blue); color: #fff; }

.section-title {
  border-left: 5px solid var(--mnt-green);
  padding-left: 0.75rem;
  font-weight: 700;
  color: var(--mnt-blue-dark);
}

footer.site-footer {
  background: var(--mnt-blue-dark);
  color: #cfe3ee;
  margin-top: 3rem;
}
footer.site-footer a { color: #cfe3ee; }
footer.site-footer a:hover { color: var(--mnt-accent); }
footer.site-footer h6 { color: #fff; font-weight: 700; }

.breadcrumb-bar { background: #fff; border-bottom: 1px solid #e6ebef; }

.thumb-gallery img {
  width: 70px; height: 70px; object-fit: cover; border-radius: 8px;
  border: 2px solid transparent; cursor: pointer;
}
.thumb-gallery img.active { border-color: var(--mnt-green); }

.status-badge-pending { background: #6c757d; }
.status-badge-payment_review { background: #fd7e14; }
.status-badge-confirmed { background: #0d6efd; }
.status-badge-shipped { background: #6f42c1; }
.status-badge-completed { background: #198754; }
.status-badge-cancelled { background: #dc3545; }

.admin-topbar {
  background: linear-gradient(90deg, var(--mnt-blue) 0%, var(--mnt-blue-dark) 100%);
}
.admin-sidebar {
  background: var(--mnt-blue-dark);
  min-height: 100vh;
  color: #cfe3ee;
}
@media (min-width: 992px) {
  .admin-sidebar { flex-shrink: 0; }
}
.admin-sidebar a {
  color: #cfe3ee;
  display: block;
  padding: 0.6rem 1rem;
  border-radius: 8px;
}
.admin-sidebar a:hover, .admin-sidebar a.active {
  background: rgba(255,255,255,0.1);
  color: #fff;
}
