:root {
  --trang-black: #0c0c0c;
  --trang-yellow: #f2e54d;
  --trang-blue: #4db8ff;
  --trang-muted: #6f7b74;
  --trang-bg: #f7fbf5;
  --trang-surface: #ffffff;
  --trang-text: #1f2a24;
  --trang-accent: #7fbf6a;
}

body.theme-buyer {
  background: var(--trang-bg);
  color: var(--trang-text);
  font-family: "Montserrat", "Segoe UI", system-ui, sans-serif;
}

body.theme-buyer .organic-wave {
  position: fixed;
  top: -120px;
  left: -80px;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle at 30% 30%, #dff1d6, rgba(223, 241, 214, 0.25) 55%, transparent 70%);
  filter: blur(2px);
  z-index: 0;
  pointer-events: none;
}

body.theme-buyer .page-wrap {
  position: relative;
  z-index: 1;
}

body.theme-buyer .navbar-buyer {
  background: rgba(255, 255, 255, 0.95) !important;
  border-bottom: 1px solid rgba(127, 191, 106, 0.35);
}

body.theme-buyer .navbar-buyer .nav-link {
  color: #32523d !important;
}

body.theme-buyer .navbar-buyer .nav-link:hover {
  color: #5f9f4f !important;
}

body.theme-buyer .navbar-buyer .navbar-toggler {
  border-color: rgba(95, 159, 79, 0.35);
}

body.theme-buyer .navbar-buyer .navbar-toggler-icon {
  filter: invert(32%) sepia(19%) saturate(932%) hue-rotate(83deg) brightness(95%) contrast(90%);
}

body.theme-buyer .brand-mark {
  font-family: "Pacifico", "Segoe Script", cursive;
  color: #5f9f4f;
  letter-spacing: 0.02em;
}

body.theme-buyer .btn-trang {
  background: linear-gradient(135deg, #7fbf6a, #9dd789);
  color: #12301d;
  border: 1px solid #72b35d;
  font-weight: 600;
  box-shadow: 0 8px 18px rgba(95, 159, 79, 0.22);
}

body.theme-buyer .btn-trang:hover {
  filter: brightness(1.02);
  color: #0e2617;
  transform: translateY(-1px);
}

body.theme-buyer .btn-outline-trang {
  border: 2px solid #7fbf6a;
  color: #4f8f42;
  background: #f8fff4;
}

body.theme-buyer .btn-outline-trang:hover {
  background: #edf9e7;
  color: #3f7f33;
}

/* CTA (navbar + trang Đặt món): override Bootstrap .btn */
body.theme-buyer a.btn.btn-nav-cta,
body.theme-buyer .btn.btn-nav-cta {
  --bs-btn-color: #fff;
  --bs-btn-bg: #3d8b32;
  --bs-btn-border-color: #2f6d27;
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: #357a2b;
  --bs-btn-hover-border-color: #2a6023;
  --bs-btn-focus-shadow-rgb: 95, 159, 79;
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: #2f6d27;
  --bs-btn-active-border-color: #265520;
  background: linear-gradient(180deg, #52a844 0%, #3d8b32 100%);
  border: 1px solid #2f6d27;
  color: #fff !important;
  border-radius: 999px;
  padding: 0.55rem 1.15rem;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  box-shadow: 0 4px 14px rgba(61, 139, 50, 0.45);
  line-height: 1.25;
  white-space: nowrap;
}

body.theme-buyer a.btn.btn-nav-cta:hover,
body.theme-buyer .btn.btn-nav-cta:hover {
  color: #fff !important;
  filter: brightness(1.06);
  box-shadow: 0 6px 18px rgba(61, 139, 50, 0.55);
}

body.theme-buyer a.btn.btn-nav-cta:focus-visible,
body.theme-buyer .btn.btn-nav-cta:focus-visible {
  color: #fff !important;
  outline: 2px solid #7fbf6a;
  outline-offset: 2px;
}

body.theme-buyer .hero {
  padding: 3rem 0 2rem;
}

body.theme-buyer .hero h1 {
  color: #24402e;
}

body.theme-buyer .hero .tagline {
  color: var(--trang-muted);
  max-width: 36rem;
}

body.theme-buyer .text-hero-title {
  color: #24402e !important;
}

body.theme-buyer .text-accent {
  color: #5f9f4f !important;
}

body.theme-buyer .card-buyer {
  background: var(--trang-surface);
  border: 1px solid rgba(127, 191, 106, 0.28);
  color: var(--trang-text);
  box-shadow: 0 6px 16px rgba(36, 64, 46, 0.06);
}

body.theme-buyer .card-buyer .text-muted {
  color: var(--trang-muted) !important;
}

/* Catalog: filter pills + readable text on light cards */
body.theme-buyer .catalog-filters .nav-link {
  color: #32523d;
  background: rgba(127, 191, 106, 0.14);
}

body.theme-buyer .catalog-filters .nav-link:hover {
  color: #24402e;
  background: rgba(127, 191, 106, 0.22);
}

body.theme-buyer .catalog-filters .nav-link.active {
  background: #5f9f4f;
  color: #fff !important;
}

body.theme-buyer .price-table {
  border-color: rgba(127, 191, 106, 0.45) !important;
  background: #fff;
}

body.theme-buyer .price-table thead th {
  color: #38663f;
  border-color: rgba(127, 191, 106, 0.45) !important;
  background: #f3faef;
}

body.theme-buyer .price-table td {
  border-color: rgba(127, 191, 106, 0.25) !important;
}

body.theme-buyer .table-striped > tbody > tr:nth-of-type(odd) > * {
  --bs-table-accent-bg: #fbfef9;
  color: #1f2a24;
}

body.theme-buyer footer {
  color: var(--trang-muted);
  border-top: 1px solid rgba(127, 191, 106, 0.28);
}

body.theme-buyer .product-description-html img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}

body.theme-buyer .product-description-html p:last-child {
  margin-bottom: 0;
}

/* Trang chủ — khối bento (dùng chung style msn-feed) */
body.theme-buyer .home-featured-feed {
  padding-top: 0.5rem;
}

/* Đặt món — bảng giống Menu/Details */
body.theme-buyer .product-order-table .product-order-name {
  min-width: 10rem;
}

body.theme-buyer .product-order-qty-input {
  max-width: 4.5rem;
  min-width: 3.25rem;
}

body.theme-buyer .product-order-details summary {
  cursor: pointer;
  list-style: none;
}

body.theme-buyer .product-order-details summary::-webkit-details-marker {
  display: none;
}

body.theme-buyer .product-order-details[open] summary {
  color: #5f9f4f;
}

body.theme-buyer .product-catalog-card .product-description-clamp {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

body.theme-buyer .product-price-lines > div + div {
  margin-top: 0.15rem;
}

@media (max-width: 991.98px) {
  body.theme-buyer .product-order-table thead {
    display: none;
  }

  body.theme-buyer .product-order-table tbody tr.product-order-row {
    display: block;
    border-bottom: 1px solid rgba(127, 191, 106, 0.35);
    padding: 0.75rem 0;
  }

  body.theme-buyer .product-order-table tbody tr.product-order-row > td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    border: none;
    padding: 0.35rem 0.75rem;
  }

  body.theme-buyer .product-order-table tbody tr.product-order-row > td.product-order-name {
    display: block;
    padding-bottom: 0.5rem;
  }

  body.theme-buyer .product-order-table tbody tr.product-order-row > td[data-label]:not([data-label=""])::before {
    content: attr(data-label);
    font-weight: 600;
    color: #38663f;
    font-size: 0.8rem;
    flex-shrink: 0;
  }

  body.theme-buyer .product-order-table tbody tr.product-order-row > td.product-order-action {
    justify-content: flex-end;
    padding-top: 0.5rem;
  }
}
