/**
 * Evabiz default site shell — shared chrome + typography for ALL pages
 * except homepage (eb-social-home) and article (eb-social-article).
 *
 * Tokens aligned with home (evabiz-social-home.css) for visual consistency.
 * v3
 */

body.eb-site-shell {
  /* Match home palette */
  --n-bg: #f0ebe4;
  --n-surface: #ffffff;
  --n-ink: #1c1410;
  --n-soft: #3d342e;
  --n-muted: #7a7068;
  --n-faint: #a39a90;
  --n-line: rgba(28, 20, 16, 0.08);
  --n-plum: #3d2a32;
  --n-plum-deep: #2a1c22;
  --n-coral: #e07a5f;
  --n-coral-hot: #d4654a;
  --n-font: "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --n-display: "Source Serif 4", "Georgia", "Times New Roman", serif;
  --n-max: 1180px;
  --n-nav-h: 56px;

  /* aliases used by site chrome */
  --s-bg: var(--n-bg);
  --s-surface: var(--n-surface);
  --s-ink: var(--n-ink);
  --s-muted: var(--n-muted);
  --s-line: var(--n-line);
  --s-plum: var(--n-plum);
  --s-plum-deep: var(--n-plum-deep);
  --s-coral: var(--n-coral);
  --s-coral-hot: var(--n-coral-hot);
  --s-font: var(--n-font);
  --s-nav-h: var(--n-nav-h);
  --s-max: 1120px;

  background: var(--n-bg) !important;
  color: var(--n-ink) !important;
  font-family: var(--n-font) !important;
  font-size: 15px !important;
  line-height: 1.5 !important;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

/* Global font sync (like home) */
body.eb-site-shell,
body.eb-site-shell h1,
body.eb-site-shell h2,
body.eb-site-shell h3,
body.eb-site-shell h4,
body.eb-site-shell h5,
body.eb-site-shell h6,
body.eb-site-shell p,
body.eb-site-shell a,
body.eb-site-shell span,
body.eb-site-shell li,
body.eb-site-shell button,
body.eb-site-shell input,
body.eb-site-shell textarea,
body.eb-site-shell select,
body.eb-site-shell label,
body.eb-site-shell td,
body.eb-site-shell th {
  font-family: var(--n-font) !important;
}

body.eb-site-shell #app {
  background: transparent !important;
  min-height: 50vh;
  overflow: visible !important;
}

/* Hide legacy theme header chrome */
body.eb-site-shell .header-wrap,
body.eb-site-shell .login-form-side,
body.eb-site-shell .woodmart-close-side,
body.eb-site-shell .promotion-sticky,
body.eb-site-shell .pc-sticky-left {
  display: none !important;
}

/* Theme container dark bg kill */
body.eb-site-shell .container,
body.eb-site-shell .container-fluid {
  background: transparent !important;
  background-color: transparent !important;
}

body.eb-site-shell .footer {
  margin-top: 2rem;
  border-top: 1px solid var(--n-line);
  background: var(--n-surface);
}

body.eb-site-shell .footer .container {
  max-width: var(--s-max);
}

/* —— Top nav —— */
.eb-site-nav {
  position: sticky;
  top: 0;
  z-index: 1100;
  background: rgba(42, 28, 34, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  min-height: var(--s-nav-h);
}

.eb-site-nav-inner {
  max-width: var(--s-max);
  margin: 0 auto;
  min-height: var(--s-nav-h);
  padding: 0 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.eb-site-logo {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  line-height: 0;
}

.eb-site-logo img {
  display: block;
  height: 40px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
}

.eb-site-search {
  flex: 1 1 auto;
  max-width: 420px;
  position: relative;
  margin: 0 auto 0 0.5rem;
}

.eb-site-search i {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.85rem;
  pointer-events: none;
}

.eb-site-search input {
  width: 100%;
  height: 38px;
  border: 0;
  border-radius: 999px;
  padding: 0 1rem 0 2.25rem;
  background: rgba(255, 255, 255, 0.1);
  color: #faf6f1 !important;
  font-size: 0.9rem !important;
  font-family: var(--n-font) !important;
  outline: none;
}

.eb-site-search input::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.eb-site-search input:focus {
  background: rgba(255, 255, 255, 0.16);
}

.eb-site-nav-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-left: auto;
  flex: 0 0 auto;
}

.eb-site-btn-write {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  height: 36px;
  padding: 0 0.9rem;
  border-radius: 999px;
  background: var(--n-coral);
  color: #fff !important;
  font-size: 0.85rem !important;
  font-weight: 650 !important;
  text-decoration: none !important;
  white-space: nowrap;
}

.eb-site-btn-write:hover {
  background: var(--n-coral-hot);
  color: #fff !important;
}

.eb-site-btn-ghost {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #faf6f1 !important;
  font-size: 0.85rem !important;
  font-weight: 600 !important;
  text-decoration: none !important;
}

.eb-site-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
}

.eb-site-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.25);
  display: block;
  flex-shrink: 0;
}

.eb-site-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* —— Content pages (login, register, legal, category, …) —— */
body.eb-site-shell .section-content {
  background: transparent !important;
  padding-top: 0 !important;
}

body.eb-site-shell .page-title {
  background: linear-gradient(125deg, var(--n-plum-deep) 0%, var(--n-plum) 55%, #4a3038 100%) !important;
  padding: 1.75rem 0 1.5rem !important;
  margin: 0 0 1.25rem !important;
  border: 0 !important;
}

body.eb-site-shell .page-title .page-title-text,
body.eb-site-shell .page-title h1 {
  font-family: var(--n-font) !important;
  font-size: clamp(1.35rem, 2.5vw, 1.75rem) !important;
  font-weight: 650 !important;
  color: #faf6f1 !important;
  text-indent: 0 !important;
  letter-spacing: -0.02em;
}

body.eb-site-shell .page-title p,
body.eb-site-shell .page-title .text-white-50 {
  color: rgba(250, 246, 241, 0.7) !important;
  font-size: 0.95rem !important;
}

body.eb-site-shell .box,
body.eb-site-shell .card,
body.eb-site-shell .bg-white.shadow-sm,
body.eb-site-shell .bg-white.box {
  background: var(--n-surface) !important;
  border: 1px solid var(--n-line) !important;
  border-radius: 14px !important;
  box-shadow: 0 1px 2px rgba(28, 20, 16, 0.04) !important;
}

body.eb-site-shell .form-control,
body.eb-site-shell input[type="text"],
body.eb-site-shell input[type="email"],
body.eb-site-shell input[type="password"],
body.eb-site-shell input[type="search"],
body.eb-site-shell textarea,
body.eb-site-shell select {
  border-radius: 10px !important;
  border: 1px solid var(--n-line) !important;
  font-family: var(--n-font) !important;
  font-size: 0.95rem !important;
  color: var(--n-ink) !important;
  background: #fff !important;
}

body.eb-site-shell .form-control:focus,
body.eb-site-shell input:focus,
body.eb-site-shell textarea:focus {
  border-color: rgba(224, 122, 95, 0.45) !important;
  box-shadow: 0 0 0 3px rgba(224, 122, 95, 0.15) !important;
  outline: none !important;
}

body.eb-site-shell .btn-primary,
body.eb-site-shell .btn.btn-primary,
body.eb-site-shell button[type="submit"].btn-primary,
body.eb-site-shell button[type="submit"].btn-block,
body.eb-site-shell button[type="submit"].btn,
body.eb-site-shell #submit-button,
body.eb-site-shell .btn-block#submit-button {
  background: var(--n-coral) !important;
  border-color: var(--n-coral) !important;
  color: #fff !important;
  border-radius: 999px !important;
  font-weight: 650 !important;
  font-family: var(--n-font) !important;
  padding: 0.65rem 1.25rem !important;
  font-size: 0.98rem !important;
  box-shadow: none !important;
}

body.eb-site-shell .btn-primary:hover,
body.eb-site-shell #submit-button:hover,
body.eb-site-shell button[type="submit"].btn:hover {
  background: var(--n-coral-hot) !important;
  border-color: var(--n-coral-hot) !important;
  color: #fff !important;
}

body.eb-site-shell .btn-secondary {
  border-radius: 999px !important;
  font-family: var(--n-font) !important;
  font-weight: 600 !important;
}

/* Auth forms (login / register) */
body.eb-site-shell .forgot-password {
  color: var(--n-coral-hot) !important;
  font-weight: 600 !important;
  font-size: 0.9rem !important;
}

body.eb-site-shell .py-4.page-title {
  background: linear-gradient(125deg, var(--n-plum-deep) 0%, var(--n-plum) 55%, #4a3038 100%) !important;
}

body.eb-site-shell a:not(.eb-site-btn-write):not(.eb-site-btn-ghost):not(.eb-site-logo):not(.nang-btn-coral) {
  color: var(--n-coral-hot);
}

body.eb-site-shell .alert {
  border-radius: 12px !important;
  font-family: var(--n-font) !important;
}

/* Category / listing content */
body.eb-site-shell .wraper-content,
body.eb-site-shell .col-main,
body.eb-site-shell .col-side {
  font-family: var(--n-font) !important;
}

body.eb-site-shell .item-news .title a,
body.eb-site-shell .article-title a,
body.eb-site-shell h3.title-news a {
  font-family: var(--n-font) !important;
  color: var(--n-ink) !important;
  font-weight: 650 !important;
}

body.eb-site-shell main {
  border-top: 0 !important;
  background: transparent !important;
}

/* Legal / static pages */
body.eb-site-shell .article-content,
body.eb-site-shell .page-content,
body.eb-site-shell .content-detail {
  font-size: 1.02rem !important;
  line-height: 1.7 !important;
  color: var(--n-ink) !important;
}

body.eb-site-shell .article-content h1,
body.eb-site-shell .article-content h2,
body.eb-site-shell .page-content h1,
body.eb-site-shell .page-content h2 {
  font-family: var(--n-font) !important;
  font-weight: 700 !important;
  color: var(--n-ink) !important;
  letter-spacing: -0.02em;
}

@media (max-width: 575.98px) {
  .eb-site-search {
    display: none;
  }

  .eb-site-btn-write span {
    display: none;
  }

  .eb-site-btn-write {
    width: 36px;
    padding: 0;
    justify-content: center;
  }

  body.eb-site-shell .page-title {
    padding: 1.25rem 0 1.1rem !important;
  }
}
