:root {
  --brand-dark: #1f3d2b;
  --brand-primary: #2e7d4f;
  --brand-accent: #b39b73;
  --brand-cosmetics: #7d7f85;
  --brand-bg: #faf7f2;
}

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

.navbar {
  background: linear-gradient(90deg, var(--brand-dark), var(--brand-primary));
}

.hero {
  background: linear-gradient(120deg, var(--brand-primary), var(--brand-cosmetics));
  color: #fff;
  padding: 60px 0;
  margin-bottom: 40px;
  border-radius: 0 0 24px 24px;
}

.hero h1 { font-weight: 700; }

.hero-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.hero-text {
  text-align: left;
  flex: 1 1 320px;
}
.hero-logo {
  height: 110px;
  width: 110px;
  border-radius: 50%;
  box-shadow: 0 4px 14px rgba(0,0,0,0.25);
  flex-shrink: 0;
}
@media (max-width: 767px) {
  .hero-row { justify-content: center; text-align: center; }
  .hero-text { text-align: center; }
}

.category-card {
  border: none;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0,0,0,0.08);
  transition: transform .2s ease, box-shadow .2s ease;
  text-decoration: none;
  color: inherit;
  display: block;
}
.category-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 22px rgba(0,0,0,0.14);
}
.category-card .cat-banner {
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 14px;
}
.cat-food { background: linear-gradient(135deg, #cbb894, #a68f68); }
.cat-cosmetics { background: linear-gradient(135deg, #9a9ca3, #64666b); }
.cat-banner-logo {
  height: 100%;
  width: 100%;
  max-width: 220px;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.15);
}
.category-card .p-3 {
  background: #fff;
  border-top: 1px solid rgba(0,0,0,0.06);
}

/* Sub-brand banners on category pages */
.brand-banner {
  padding: 34px 0;
  color: #fff;
  margin-bottom: 8px;
}
.brand-banner-row {
  display: flex;
  align-items: center;
  gap: 28px;
  text-align: left;
  flex-wrap: wrap;
}
.brand-banner-text { flex: 1 1 280px; }
.brand-banner-logo {
  height: 110px;
  width: auto;
  max-width: 90%;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.2);
  flex-shrink: 0;
}
.brand-banner h2 {
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}
.brand-banner p {
  font-size: 0.95rem;
  opacity: 0.92;
  max-width: 560px;
  margin: 0;
}
.brand-banner-food { background: linear-gradient(120deg, #a68f68, #cbb894); }
.brand-banner-cosmetics { background: linear-gradient(120deg, #64666b, #9a9ca3); }
.brand-banner-generic { background: linear-gradient(120deg, var(--brand-primary), var(--brand-cosmetics)); }

@media (max-width: 767px) {
  .brand-banner-row { justify-content: center; text-align: center; }
}

.product-card {
  border: none;
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.07);
  height: 100%;
  transition: transform .15s ease;
}
.product-card:hover { transform: translateY(-3px); }
.product-img-wrap {
  height: 180px;
  background: #f0ede7;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px 14px 0 0;
  overflow: hidden;
}
.product-img-wrap img { max-height: 100%; max-width: 100%; object-fit: cover; }
.product-img-wrap i { font-size: 2.5rem; color: #b7ad9d; }

.price-tag {
  font-weight: 700;
  color: var(--brand-primary);
  font-size: 1.1rem;
}

.badge-sub {
  background: #eef4ef;
  color: var(--brand-primary);
  font-size: .75rem;
}

.footer-site {
  background: var(--brand-dark);
  color: #e6e6e6;
}

/* Admin */
.admin-sidebar {
  min-height: 100vh;
  background: var(--brand-dark);
}
.admin-sidebar a {
  color: #d9e6de;
  text-decoration: none;
  display: block;
  padding: 12px 18px;
  border-radius: 8px;
  margin: 3px 10px;
}
.admin-sidebar a:hover, .admin-sidebar a.active {
  background: rgba(255,255,255,0.12);
  color: #fff;
}
.stat-card {
  border: none;
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.07);
}
