/* Trang chủ landing — tham khảo phong cách sofoso.org / sofoso.vn: sạch, nhiều khoảng trắng, xanh thương hiệu */
:root {
  --landing-brand: #3e7c44;
  --landing-brand-hover: #326838;
  --landing-bg: #fafafa;
  --landing-surface: #ffffff;
  --landing-text: #1a1a1a;
  --landing-muted: #5c5c5c;
  --landing-border: #e8ebe8;
  --landing-radius: 12px;
  --landing-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  --landing-shadow-lg: 0 12px 40px rgba(62, 124, 68, 0.08);
}

body.landing-page {
  background: var(--landing-bg);
  color: var(--landing-text);
  font-family: "Inter", system-ui, -apple-system, sans-serif;
}

body.landing-page #wrapper {
  background: var(--landing-bg);
}

/* Header — ghi đè theme Canvas (full-header thường tối) */
.landing-page #header.landing-header,
.landing-page #header.full-header.landing-header {
  background: var(--landing-surface) !important;
  border-bottom: 1px solid var(--landing-border) !important;
}

.landing-header {
  background: var(--landing-surface);
  border-bottom: 1px solid var(--landing-border);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.landing-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 72px;
  flex-wrap: wrap;
}

.landing-brand {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  text-decoration: none;
  color: var(--landing-text);
}

.landing-brand:hover {
  color: var(--landing-brand);
}

.landing-brand__mark {
  width: 48px;
  height: 48px;
  object-fit: contain;
  flex-shrink: 0;
}

.landing-brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.landing-brand__title {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.landing-brand__subtitle {
  font-size: 0.8rem;
  color: var(--landing-muted);
  font-weight: 400;
}

.landing-shop-pill {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  max-width: 220px;
}

.landing-shop-pill img {
  width: 36px;
  height: 36px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--landing-border);
}

.landing-shop-pill span {
  font-size: 0.85rem;
  color: var(--landing-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Nav (reuse primary-menu structure) */
.landing-header .primary-menu .menu-link {
  color: var(--landing-text) !important;
  font-weight: 500;
  font-size: 0.9rem;
  padding: 0.5rem 0.75rem !important;
  border-radius: 8px;
}

.landing-header .primary-menu .menu-link:hover {
  color: var(--landing-brand) !important;
  background: rgba(62, 124, 68, 0.08);
}

.landing-header .menu-container {
  gap: 0.25rem;
}

.landing-header .primary-menu-trigger .cnvs-hamburger-inner,
.landing-header .primary-menu-trigger .cnvs-hamburger-inner::before,
.landing-header .primary-menu-trigger .cnvs-hamburger-inner::after {
  background-color: var(--landing-text);
}

/* Hero */
.landing-hero {
  background: linear-gradient(180deg, #f0f5f1 0%, var(--landing-bg) 100%);
  border-bottom: 1px solid var(--landing-border);
  padding: 2.5rem 0 2rem;
}

.landing-hero h1 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--landing-text);
  margin-bottom: 0.75rem;
  line-height: 1.25;
}

.landing-hero .lead {
  font-size: 1.05rem;
  color: var(--landing-muted);
  max-width: 42rem;
  margin-bottom: 1.25rem;
}

.landing-hero .lead a {
  color: var(--landing-brand);
  font-weight: 600;
  text-decoration: none;
}

.landing-hero .lead a:hover {
  text-decoration: underline;
}

.landing-hero-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.btn-landing-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.35rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: #fff !important;
  background: var(--landing-brand);
  border: none;
  border-radius: 999px;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
  box-shadow: var(--landing-shadow);
}

.btn-landing-primary:hover {
  background: var(--landing-brand-hover);
  color: #fff !important;
  transform: translateY(-1px);
}

.landing-hero-note {
  font-size: 0.9rem;
  color: var(--landing-muted);
}

/* Content */
.landing-page #content .content-wrap {
  padding-top: 2rem;
  padding-bottom: 4rem;
}

.landing-card {
  background: var(--landing-surface);
  border: 1px solid var(--landing-border);
  border-radius: var(--landing-radius);
  box-shadow: var(--landing-shadow-lg);
}

.landing-card .card-body {
  padding: 1.75rem;
}

@media (min-width: 768px) {
  .landing-card .card-body {
    padding: 2.25rem 2.5rem;
  }
}

.landing-page .form-label {
  font-weight: 600;
  color: var(--landing-text);
}

.landing-page .form-control {
  border-radius: 10px;
  border-color: var(--landing-border);
  padding: 0.65rem 1rem;
}

.landing-page .form-control:focus {
  border-color: var(--landing-brand);
  box-shadow: 0 0 0 3px rgba(62, 124, 68, 0.15);
}

.landing-page .btn-primary,
.landing-page .btn-lg.btn-primary {
  background: var(--landing-brand) !important;
  border-color: var(--landing-brand) !important;
  border-radius: 999px;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
}

.landing-page .btn-primary:hover {
  background: var(--landing-brand-hover) !important;
  border-color: var(--landing-brand-hover) !important;
}

.landing-footnote {
  font-size: 0.875rem;
  color: var(--landing-muted);
}

/* Alerts */
.landing-page .alert-warning {
  border-radius: var(--landing-radius);
  border: 1px solid #e8d48b;
  background: #fffbeb;
}

/* Section titles (reward / products) */
.landing-section-title {
  text-align: center;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--landing-text);
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--landing-brand);
  display: inline-block;
  width: 100%;
}

.landing-page .divider.divider-center {
  border: none;
}

.landing-page .divider.divider-center h3 {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--landing-text);
}

.landing-page #reward_list {
  margin-top: 3rem;
}

/* Rewards table */
.landing-page #reward_list .table {
  border-radius: var(--landing-radius);
  overflow: hidden;
  border: 1px solid var(--landing-border);
}

.landing-page #reward_list .table thead {
  background: rgba(62, 124, 68, 0.1);
  color: var(--landing-text);
}

.landing-page #reward_list .table-bordered {
  border-color: var(--landing-border);
}

.landing-page #reward_list .table a {
  color: var(--landing-brand);
  font-weight: 500;
}

/* Product grid — Sofoso-like cards */
.landing-page .landing-product-section {
  margin-top: 2.5rem;
}

.landing-page .landing-product-section .grid-inner {
  background: var(--landing-surface);
  border: 1px solid var(--landing-border);
  border-radius: var(--landing-radius);
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
}

.landing-page .landing-product-section .grid-inner:hover {
  box-shadow: var(--landing-shadow-lg);
  transform: translateY(-2px);
}

.landing-page .landing-product-section .product-image {
  background: #f5f5f5;
}

.landing-page .landing-product-section .product-image img {
  aspect-ratio: 1;
  object-fit: cover;
}

.landing-page .landing-product-section .bg-overlay {
  display: none;
}

.landing-page .landing-product-section .product-title h3 {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.35;
}

.landing-page .landing-product-section .product-title a {
  color: var(--landing-text);
  text-decoration: none;
}

.landing-page .landing-product-section .product-title a:hover {
  color: var(--landing-brand);
}

.landing-page .landing-product-section .product-price ins {
  color: var(--landing-brand);
  font-weight: 700;
  text-decoration: none;
}

/* Footer */
#footer.landing-footer {
  background: var(--landing-surface) !important;
  border-top: 1px solid var(--landing-border);
  color: var(--landing-muted);
}

#footer.landing-footer #copyrights {
  background: transparent !important;
  padding: 1.75rem 0;
}

#footer.landing-footer a {
  color: var(--landing-brand);
}

/* Hide default Canvas page-title when using landing hero */
.landing-page .page-title.bg-transparent {
  display: none;
}

/* Go to top — match brand */
.landing-page #gotoTop {
  background: var(--landing-brand) !important;
}
