/* Noonvachi Theme 1.1 — Brand layer: aligned with the reference amber design system.
   All visual tokens come from legacy-components.css (the ported design.css of the reference site).
   This file only neutralizes the old green overrides and keeps the body baseline. */
:root {
  --noonvachi-font: 'Vazirmatn', 'Segoe UI', Tahoma, Arial, sans-serif;
  --noonvachi-green: #3c291e;   /* حالت برند عمومی — هم‌رنگ متن مرجع */
  --noonvachi-coral: #e78c08;   /* کهربایی مرجع */
  --noonvachi-max: 1280px;
}
* { box-sizing: border-box; }
body.noonvachi-site {
  font-family: var(--noonvachi-font);
  background: var(--nv-bg, #fdfaf4);
  color: var(--nv-fg, #3c291e);
  margin: 0;
  line-height: 1.6;
}
body.noonvachi-site button, body.noonvachi-site input, body.noonvachi-site textarea, body.noonvachi-site select { font-family: inherit; }
body.noonvachi-site h1, body.noonvachi-site h2, body.noonvachi-site h3, body.noonvachi-site h4 {
  font-family: inherit; letter-spacing: -.015em; line-height: 1.6;
}

/* Noonvachi Account links */
.nv-account-links { display: inline-flex; align-items: center; gap: .35rem; }
.nv-account-links--desktop { display: none; }
@media (min-width: 1024px) {
  .nv-account-links--desktop { display: inline-flex; flex: none; margin-inline: .35rem; }
}
@media (min-width: 1024px) and (max-width: 1199px) {
  .nv-header-inner:has(.nv-account-links--desktop) { gap: .5rem; padding-inline: 1.25rem; }
  .nv-header-inner:has(.nv-account-links--desktop) .nv-desktop-nav .nv-nav-link { padding-inline: .45rem; }
  .nv-header-inner:has(.nv-account-links--desktop) .nv-hdr-surprise { padding-inline: .7rem; }
}
.nv-account-links .nv-account-link {
  display: inline-flex; align-items: center; justify-content: center; gap: .35rem;
  min-height: 2.25rem; padding: .35rem .6rem; border: 1px solid var(--nv-border, #e6ddce);
  border-radius: .75rem; background: transparent; color: var(--nv-fg, #3c291e);
  text-decoration: none; font-size: .8125rem; font-weight: 700; line-height: 1.35;
  transition: background-color .15s, border-color .15s, color .15s;
}
.nv-account-links .nv-account-link--accent {
  background: var(--nv-secondary, #f8efe0); color: var(--nv-action-fg, #924008);
}
.nv-account-links .nv-account-link:hover {
  background: var(--nv-muted, #f4eee5); color: var(--nv-action-fg, #924008);
  border-color: var(--nv-primary, #e78c08);
}
.nv-account-links .nv-account-link:focus-visible {
  outline: 2px solid var(--nv-ring, #e78c08); outline-offset: 2px;
}
.nv-account-link .nv-i { width: .95rem; height: .95rem; flex: none; }
.nv-account-links--desktop .nv-account-link { white-space: nowrap; }
.nv-account-name { min-width: 0; overflow-wrap: anywhere; }
.nv-account-links--desktop .nv-account-name { max-width: 6.5rem; overflow: hidden; text-overflow: ellipsis; }
.nv-account-links--mobile { display: flex; gap: .5rem; }
.nv-account-links--mobile .nv-account-link { flex: 1 1 0; min-height: 2.75rem; }
.nv-sheet-cta > .nv-account-links--mobile + [data-nv-surprise] { margin-top: .65rem; }
.nv-account-links--favorites { margin-top: .75rem; }

.noonvachi-content { width: 100%; min-height: 50vh; }
.noonvachi-skip { position: absolute; inset-inline-start: 1rem; top: -100px; background: #fff; color: #3c291e; padding: .5rem 1rem; z-index: 99999; }
.noonvachi-skip:focus { top: .4rem; }
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .noonvachi-site * { transition-duration: .001ms !important; animation-duration: .001ms !important; }
}

/* ---------- Fallback header/footer (بدون افزونه) — ساختار مرجع ---------- */
.nv-fallback-header {
  position: sticky; inset-block-start: 0; z-index: 50;
  background: var(--nv-bg, #fffcf6); border-bottom: 1px solid var(--nv-border, #e6ddce);
  box-shadow: 0 4px 22px rgba(60, 41, 30, .04);
}
.nv-fallback-bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.25rem; }
.nv-fallback-brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; color: #3c291e; }
.nv-fallback-brand .nv-logo-box { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 14px;
  background: linear-gradient(135deg, #f59e0b, #b45309); color: #fff; }
.noonvachi-site .nv-logo .nv-header-logo {
  padding: 0; overflow: hidden; background: transparent; box-shadow: none;
}
.noonvachi-site .nv-logo .nv-header-logo img {
  display: block; inline-size: 100%; block-size: 100%; object-fit: contain;
}
.nv-fallback-brand b { font-size: 1.4rem; font-weight: 900; display: block; line-height: 1.2; }
.nv-fallback-brand small { color: #796456; display: block; font-size: .65rem; }
.nv-fallback-nav { display: flex; gap: .25rem; }
.nv-fallback-nav a { padding: .6rem .9rem; border-radius: 10px; color: #3c291e; text-decoration: none; font-weight: 600; font-size: .95rem; }
.nv-fallback-nav a:hover { background: #f8efe0; color: #b45309; }
@media (max-width: 900px) { .nv-fallback-nav { display: none; } }
.nv-fallback-footer { background: #231409; color: #fff; margin-top: 3rem; padding: 3.5rem 0 1.5rem; }
.nv-fallback-footer .nv-fgrid { display: grid; gap: 2rem; }
@media (min-width: 768px) { .nv-fallback-footer .nv-fgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .nv-fallback-footer .nv-fgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.nv-fallback-footer p { color: rgba(255, 255, 255, .7); font-size: .875rem; line-height: 1.8; }
.nv-fallback-footer b { color: #fff; }
.nv-fallback-footer .nv-logo-text b { color: #f5ede0; }
.nv-fallback-footer .nv-logo-text small { color: rgba(255, 255, 255, .6); }
.nv-fallback-footer .nv-logo-box { background: linear-gradient(135deg, #f59e0b, #b45309); color: #fff; }
.nv-fallback-footer ul { list-style: none; margin: 0; padding: 0; }
.nv-fallback-footer a { color: rgba(255, 255, 255, .75); text-decoration: none; font-size: .875rem; }
.nv-fallback-footer a:hover { color: #fbbf24; }
.nv-fallback-base { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 2rem; padding: 1.25rem 0; font-size: .75rem; color: rgba(255, 255, 255, .5); text-align: center; }
.nv-fallback-news { display: flex; gap: .5rem; margin-top: 1rem; }
.nv-fallback-news input { flex: 1; min-width: 0; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .18);
  color: #fff; border-radius: .75rem; padding: .625rem .875rem; font: inherit; font-size: .875rem; }
.nv-fallback-news button { background: #f59e0b; color: #fff; border: 0; border-radius: .75rem; padding: .625rem 1rem; font: inherit;
  font-weight: 700; cursor: pointer; }
.nv-fallback-news button:hover { background: #fbbf24; }
