/* 7watch storefront — identity on Faraz tokens */
:root {
  --nm-ink: #141820;
  --nm-muted: #5c6068;
  --nm-line: #e4e2dc;
  --nm-soft: #f5f4f0;
  --nm-accent: #c4a265;
  --nm-accent-2: #141820;
  --nm-accent-soft: rgba(196, 162, 101, 0.12);
  --nm-shadow: 0 2px 8px rgba(20, 24, 32, 0.06);
  --nm-radius: 8px;
  --nm-font: "Vazirmatn", Tahoma, sans-serif;
}

html { scroll-behavior: smooth; }
body.nm-store,
body.nm-auth {
  font-family: var(--nm-font) !important;
  background: #fff;
  color: var(--nm-ink);
  -webkit-font-smoothing: antialiased;
}

.nm-page {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding-bottom: 72px;
}
@media (min-width: 1024px) {
  .nm-page { padding-bottom: 0; }
}

.nm-container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 16px;
}
@media (min-width: 768px) {
  .nm-container { padding: 0 28px; }
}
@media (min-width: 1280px) {
  .nm-container { padding: 0 32px; }
}

.nm-main { flex: 1; }
.nm-main-inner { padding: 20px 16px 40px; }
@media (min-width: 768px) {
  .nm-main-inner { padding: 28px 24px 56px; }
}
/* جلوگیری از padding افقی دوگانه وقتی هر دو کلاس با هم هستند */
.nm-container.nm-main-inner {
  padding-inline: 16px;
  padding-block: 20px 40px;
}
@media (min-width: 768px) {
  .nm-container.nm-main-inner {
    padding-inline: 28px;
    padding-block: 28px 56px;
  }
}
@media (min-width: 1280px) {
  .nm-container.nm-main-inner {
    padding-inline: 32px;
  }
}

.nm-flash {
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 16px;
  font-size: 0.9rem;
}
.nm-flash-ok {
  background: rgba(13,148,136,.1);
  color: #0f766e;
  border: 1px solid rgba(13,148,136,.25);
}
.nm-flash-err {
  background: rgba(225,29,72,.08);
  color: #be123c;
  border: 1px solid rgba(225,29,72,.2);
}

/* Header */
.nm-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: #fff;
  border-bottom: 1px solid var(--nm-line);
}
.nm-header-top {
  background: var(--nm-ink);
  color: #fff;
  font-size: 0.78rem;
}
.nm-header-top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 34px;
}
.nm-header-promo { opacity: .95; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nm-header-top-links { display: flex; gap: 14px; flex-shrink: 0; }
.nm-header-top-links a { color: #fff; text-decoration: none; opacity: .9; }
.nm-header-top-links a:hover { opacity: 1; text-decoration: underline; }

.nm-header-main-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  min-height: 72px;
}
@media (max-width: 767px) {
  .nm-header-main-inner {
    grid-template-columns: 1fr auto;
    grid-template-areas: "logo actions" "search search";
    padding: 10px 0;
    min-height: auto;
  }
  .nm-logo { grid-area: logo; }
  .nm-search { grid-area: search; }
  .nm-header-actions { grid-area: actions; }
}

.nm-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}
.nm-logo-mark {
  width: auto;
  height: 38px;
  max-width: 130px;
  border-radius: 0;
  display: block;
  flex-shrink: 0;
  overflow: hidden;
  background: transparent;
}
.nm-logo-mark img {
  width: auto;
  height: 100%;
  max-width: 130px;
  object-fit: contain;
  object-position: center;
  display: block;
}
.nm-logo-text { display: flex; flex-direction: column; line-height: 1.15; }
.nm-logo-text strong { display: none; }
.nm-logo-text small { font-size: 0.72rem; color: var(--nm-muted); margin-top: 2px; }

.nm-search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--nm-soft);
  border: 1px solid var(--nm-line);
  border-radius: var(--nm-radius);
  padding: 6px 6px 6px 14px;
  transition: border-color .18s;
}
.nm-search:focus-within {
  border-color: var(--nm-ink);
  box-shadow: none;
  background: #fff;
}
.nm-search-ico { width: 18px; height: 18px; color: var(--nm-muted); flex-shrink: 0; }
.nm-search input {
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  font: inherit;
  font-size: 0.92rem;
  min-width: 0;
  color: var(--nm-ink);
}
.nm-search-btn {
  border: 0;
  border-radius: 6px;
  background: var(--nm-ink);
  color: #fff;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 8px 14px;
  cursor: pointer;
}
@media (max-width: 480px) {
  .nm-search-btn { display: none; }
}

.nm-header-actions { display: flex; align-items: center; gap: 6px; }
.nm-h-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: var(--nm-ink);
  padding: 8px 10px;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 600;
  position: relative;
}
.nm-h-action svg { width: 20px; height: 20px; }
.nm-h-action:hover { background: var(--nm-soft); }
.nm-btn-login {
  background: var(--nm-ink);
  color: #fff !important;
  text-decoration: none;
  border-radius: var(--nm-radius);
  padding: 9px 16px;
  font-size: 0.85rem;
  font-weight: 700;
}
.nm-btn-login:hover { opacity: .92; }
.nm-cart-badge {
  position: absolute;
  top: 2px;
  left: 2px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--nm-accent-2);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  display: grid;
  place-items: center;
}
.nm-cart-badge.is-empty { display: none; }
@media (max-width: 767px) {
  .nm-h-action-desk span,
  .nm-h-action-desk:not(.nm-cart-btn) { display: none; }
  .nm-btn-login.nm-h-action-desk { display: none; }
}

.nm-cats {
  border-top: 1px solid var(--nm-line);
  background: #fff;
}
.nm-cats-inner {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 10px 0;
  scrollbar-width: none;
}
.nm-cats-inner::-webkit-scrollbar { display: none; }
.nm-cat {
  flex-shrink: 0;
  text-decoration: none;
  color: var(--nm-muted);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 7px 12px;
  border-radius: var(--nm-radius);
  background: var(--nm-soft);
  border: 1px solid transparent;
}
.nm-cat:hover,
.nm-cat.is-on {
  color: var(--nm-ink);
  border-color: var(--nm-line);
  background: #fff;
  box-shadow: inset 0 -2px 0 var(--nm-accent);
}

/* Hero */
.nm-hero {
  position: relative;
  overflow: hidden;
  border-radius: var(--nm-radius);
  padding: 36px 24px;
  margin-bottom: 28px;
  background: var(--nm-ink);
  color: #fff;
  border: 1px solid var(--nm-line);
}
@media (min-width: 768px) {
  .nm-hero { padding: 56px 48px; }
}
.nm-hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 999px;
  padding: 6px 12px;
  margin-bottom: 16px;
}
.nm-hero-kicker i {
  width: 8px; height: 8px; border-radius: 50%;
  background: #fb923c; display: inline-block;
  box-shadow: 0 0 0 4px rgba(251,146,60,.25);
}
.nm-hero h1 {
  font-size: clamp(1.7rem, 4vw, 2.7rem);
  font-weight: 800;
  line-height: 1.25;
  margin: 0 0 12px;
  max-width: 16ch;
}
.nm-hero p {
  margin: 0;
  max-width: 38ch;
  opacity: .9;
  font-size: 0.98rem;
  line-height: 1.8;
}
.nm-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.nm-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  border-radius: 999px;
  padding: 12px 20px;
  font-weight: 800;
  font-size: 0.92rem;
}
.nm-cta-primary { background: #fff; color: #0f172a; }
.nm-cta-ghost { background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.22); }
.nm-hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.15);
}
.nm-hero-stats div strong { display: block; font-size: 1.15rem; font-weight: 800; }
.nm-hero-stats div span { font-size: 0.78rem; opacity: .75; }

.nm-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}
.nm-section-head h2 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--nm-ink);
}
.nm-section-head p {
  margin: 4px 0 0;
  color: var(--nm-muted);
  font-size: 0.85rem;
}
.nm-section-head a {
  color: var(--nm-accent);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.88rem;
  white-space: nowrap;
}

.nm-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 28px;
}
@media (min-width: 768px) {
  .nm-features { grid-template-columns: repeat(4, 1fr); gap: 12px; }
}
.nm-feature {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  background: #fff;
  border: 1px solid var(--nm-line);
  border-radius: 14px;
  padding: 14px 14px 15px;
  transition: border-color .2s ease;
}
.nm-feature:hover {
  border-color: rgba(13, 148, 136, 0.4);
}
.nm-feature-ico {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: var(--nm-accent-soft);
  color: var(--nm-accent);
  margin-bottom: 0.15rem;
}
.nm-feature-ico svg {
  width: 16px;
  height: 16px;
}
.nm-feature strong { display: block; font-size: 0.88rem; font-weight: 800; color: var(--nm-ink); }
.nm-feature span { font-size: 0.76rem; color: var(--nm-muted); line-height: 1.55; }

/* Product card polish */
.nm-store .fz-product {
  border: 1px solid var(--nm-line);
  border-radius: var(--nm-radius);
  overflow: hidden;
  background: #fff;
  transition: border-color .18s, box-shadow .18s;
}
.nm-store .fz-product:hover {
  box-shadow: var(--nm-shadow);
  border-color: var(--nm-border-strong, #cfcbc2);
}
.nm-store .fz-product .fz-product-body {
  border-top: 2px solid transparent;
  transition: border-color 0.18s ease;
}
.nm-store .fz-product:hover .fz-product-body {
  border-top-color: var(--nm-accent);
}
.nm-header-main {
  box-shadow: inset 0 -2px 0 var(--nm-accent);
}
.nm-section-head h2 {
  position: relative;
  padding-inline-end: 12px;
}
.nm-section-head h2::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 1.1em;
  margin-inline-end: 8px;
  vertical-align: -0.15em;
  background: var(--nm-accent);
  border-radius: 1px;
}
.nm-store .fz-product-name { font-family: var(--nm-font); }

/* Footer */
.nm-footer {
  background: #0b1220;
  color: #cbd5e1;
  padding: 48px 0 28px;
  margin-top: auto;
}
.nm-footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}
@media (min-width: 768px) {
  .nm-footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; }
}
.nm-footer .nm-logo-text strong { color: #fff; }
.nm-footer .nm-logo-text small { color: #94a3b8; }
.nm-footer-about {
  margin: 14px 0 0;
  font-size: 0.88rem;
  line-height: 1.8;
  color: #94a3b8;
  max-width: 34ch;
}
.nm-footer-title {
  margin: 0 0 14px;
  color: #fff;
  font-size: 0.92rem;
  font-weight: 800;
  position: relative;
  padding-bottom: 10px;
}
.nm-footer-title::after {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  bottom: 0;
  width: 22px;
  height: 2px;
  background: var(--nm-accent);
  border-radius: 2px;
}
.nm-footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.nm-footer-links a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.88rem;
  transition: color .15s ease, padding-inline-start .15s ease;
}
.nm-footer-links a:hover {
  color: var(--nm-accent);
  padding-inline-start: 2px;
}
.nm-trust { display: grid; gap: 8px; margin-bottom: 14px; }
.nm-trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: #cbd5e1;
}
.nm-trust-ico {
  width: 28px; height: 28px; border-radius: 6px;
  display: grid; place-items: center;
  background: rgba(196, 162, 101, 0.14);
  color: var(--nm-accent);
  flex-shrink: 0;
}
.nm-trust-ico svg {
  width: 14px;
  height: 14px;
}
.nm-trust-badges { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; }
.nm-badge-box {
  width: 72px; height: 72px;
  border-radius: 10px;
  border: 1px solid rgba(148,163,184,.28);
  background: #fff;
  display: grid; place-items: center;
  text-align: center;
  overflow: hidden;
  padding: 4px;
  transition: border-color .2s ease, transform .2s ease;
}
.nm-badge-box:hover {
  border-color: rgba(196, 162, 101, 0.45);
}
.nm-badge-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.nm-footer-bottom {
  margin-top: 32px;
  padding-top: 18px;
  border-top: 1px solid rgba(148,163,184,.18);
  font-size: 0.8rem;
  color: #64748b;
}

/* Bottom nav (app-like) */
.nm-bottom-nav {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  background: #fff;
  border-top: 1px solid var(--nm-line);
  padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
  box-shadow: 0 -2px 8px rgba(20, 24, 32, 0.04);
}
@media (min-width: 1024px) {
  .nm-bottom-nav { display: none; }
}
.nm-bn-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  text-decoration: none;
  color: var(--nm-muted);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 6px 2px;
  border-radius: 12px;
}
.nm-bn-item svg { width: 22px; height: 22px; }
.nm-bn-item.is-on { color: var(--nm-accent); }
.nm-bn-cart-wrap { position: relative; display: inline-flex; }
.nm-bn-dot {
  position: absolute;
  top: -4px; left: -8px;
  min-width: 16px; height: 16px;
  border-radius: 999px;
  background: var(--nm-accent-2);
  color: #fff;
  font-size: 0.62rem;
  font-style: normal;
  font-weight: 800;
  display: grid; place-items: center;
  padding: 0 4px;
}

/* Auth */
.nm-auth-wrap {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 1fr;
}
@media (min-width: 1024px) {
  .nm-auth-wrap { grid-template-columns: 1fr 1fr; }
}
.nm-auth-form-side {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
}
.nm-auth-form-top { padding: 18px 20px; }
.nm-auth-form-body {
  flex: 1;
  display: grid;
  place-items: center;
  padding: 24px 16px;
}
.nm-auth-card {
  width: 100%;
  max-width: 400px;
  background: #fff;
  border: 1px solid var(--nm-line);
  border-radius: 22px;
  padding: 28px 24px;
  box-shadow: var(--nm-shadow);
}
.nm-auth-form-foot {
  text-align: center;
  font-size: 0.75rem;
  color: var(--nm-muted);
  padding: 0 16px 20px;
}
.nm-auth-visual {
  display: none;
  background: #0b3d38;
  color: #fff;
  position: relative;
  overflow: hidden;
}
@media (min-width: 1024px) {
  .nm-auth-visual { display: grid; place-items: center; }
}
.nm-auth-visual-inner {
  max-width: 420px;
  padding: 40px;
  text-align: center;
}
.nm-auth-pill {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  font-size: 0.8rem;
  margin-bottom: 16px;
}
.nm-auth-visual h2 {
  font-size: 1.7rem;
  font-weight: 800;
  line-height: 1.45;
  margin: 0 0 12px;
}
.nm-auth-visual p { margin: 0; opacity: .88; line-height: 1.8; }

/* Force readable Persian everywhere in store */
.nm-store,
.nm-store *,
.nm-auth,
.nm-auth * {
  font-family: var(--nm-font) !important;
}

/* ——— Theme toggle: minimal teal switch ——— */
.nm-theme-toggle {
  width: 52px;
  height: 30px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  flex-shrink: 0;
  border-radius: 999px;
}
.nm-theme-track {
  display: block;
  width: 52px;
  height: 30px;
  border-radius: 999px;
  background: #e8f5f2;
  border: 1px solid rgba(13, 148, 136, 0.28);
  position: relative;
  transition: background .35s ease, border-color .35s ease;
}
.nm-theme-knob {
  position: absolute;
  top: 2px;
  inset-inline-start: 2px;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: #fff;
  color: #0d9488;
  display: grid;
  place-items: center;
  box-shadow: 0 2px 8px rgba(15, 118, 110, 0.18);
  transition: inset-inline-start .4s cubic-bezier(.22,1,.36,1), background .35s ease, color .35s ease, box-shadow .35s ease;
}
.nm-theme-knob svg {
  width: 13px;
  height: 13px;
  position: absolute;
  transition: opacity .28s ease, transform .4s cubic-bezier(.22,1,.36,1);
}
.nm-theme-sun {
  opacity: 1;
  transform: rotate(0) scale(1);
}
.nm-theme-moon {
  opacity: 0;
  transform: rotate(-70deg) scale(0.5);
}
.nm-theme-toggle:hover .nm-theme-track {
  border-color: rgba(13, 148, 136, 0.5);
}
.nm-theme-toggle:hover .nm-theme-knob {
  box-shadow: 0 3px 12px rgba(13, 148, 136, 0.28);
}

html.dark .nm-theme-track {
  background: #12352f;
  border-color: rgba(45, 212, 191, 0.35);
}
html.dark .nm-theme-knob {
  inset-inline-start: calc(100% - 26px);
  background: #0d9488;
  color: #ecfdf5;
  box-shadow: 0 2px 10px rgba(45, 212, 191, 0.35);
}
html.dark .nm-theme-sun {
  opacity: 0;
  transform: rotate(70deg) scale(0.5);
}
html.dark .nm-theme-moon {
  opacity: 1;
  transform: rotate(0) scale(1);
}

@media (prefers-reduced-motion: reduce) {
  .nm-theme-knob,
  .nm-theme-knob svg,
  .nm-theme-track {
    transition: none !important;
  }
}

/* ——— Luxury dark storefront ——— */
html.dark {
  --nm-ink: #f3efe6;
  --nm-muted: #9aa3b2;
  --nm-line: rgba(212, 175, 110, 0.14);
  --nm-soft: #141a22;
  --nm-accent: #2dd4bf;
  --nm-accent-2: #e3a93d;
  --nm-accent-soft: rgba(45, 212, 191, 0.12);
  --nm-shadow: 0 18px 48px rgba(0, 0, 0, 0.45);
}

html.dark body.nm-store {
  background:
    radial-gradient(1200px 500px at 10% -10%, rgba(45, 212, 191, 0.08), transparent 55%),
    radial-gradient(900px 420px at 90% 0%, rgba(227, 169, 61, 0.07), transparent 50%),
    #080b10;
  color: var(--nm-ink);
}

html.dark .nm-header {
  background: rgba(10, 14, 20, 0.88);
  border-bottom-color: rgba(212, 175, 110, 0.12);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
}

html.dark .nm-header-top {
  background:
    linear-gradient(90deg, rgba(255,255,255,.06), transparent 35%, transparent 65%, rgba(255,255,255,.05)),
    linear-gradient(90deg, #064e4a 0%, #0f766e 42%, #92400e 100%);
}

html.dark .nm-logo-text strong { color: #f8f4eb; }
html.dark .nm-logo-text small { color: #8b95a5; }
html.dark .nm-logo-mark {
  background: transparent;
  border: none;
}

html.dark .nm-search {
  background: #10161f;
  border-color: rgba(212, 175, 110, 0.16);
}
html.dark .nm-search:focus-within {
  border-color: rgba(45, 212, 191, 0.45);
  box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.12);
}
html.dark .nm-search input { color: #f3efe6; }
html.dark .nm-search-btn {
  background: linear-gradient(135deg, #0d9488, #0f766e);
}

html.dark .nm-h-action {
  color: #d7dde8;
}
html.dark .nm-h-action:hover {
  background: rgba(45, 212, 191, 0.1);
  color: #5eead4;
}
html.dark .nm-btn-login {
  background: linear-gradient(135deg, #2dd4bf, #0d9488);
  color: #042f2e;
  border: none;
}
html.dark .nm-cats {
  background: rgba(8, 11, 16, 0.92);
  border-bottom-color: rgba(212, 175, 110, 0.1);
}
html.dark .nm-cat {
  background: #121820;
  border-color: rgba(212, 175, 110, 0.12);
  color: #c5cdd9;
}
html.dark .nm-cat:hover {
  border-color: rgba(45, 212, 191, 0.35);
  color: #5eead4;
}
html.dark .nm-cat.is-on {
  background: linear-gradient(135deg, rgba(45, 212, 191, 0.2), rgba(15, 118, 110, 0.35));
  border-color: rgba(45, 212, 191, 0.45);
  color: #99f6e4;
}

html.dark .nm-feature {
  background: linear-gradient(165deg, #121820 0%, #0e131a 100%);
  border-color: rgba(212, 175, 110, 0.12);
}
html.dark .nm-feature:hover {
  border-color: rgba(45, 212, 191, 0.35);
}
html.dark .nm-feature strong { color: #f3efe6; }
html.dark .nm-feature span { color: #8b95a5; }
html.dark .nm-feature-ico {
  background: rgba(45, 212, 191, 0.12);
  color: #5eead4;
}

html.dark .nm-section-head h2 { color: #f8f4eb; }
html.dark .nm-section-head p { color: #8b95a5; }
html.dark .nm-section-head a { color: #5eead4; }

html.dark .nm-store .fz-product {
  background: linear-gradient(180deg, #141b24 0%, #0f141c 100%);
  border-color: rgba(212, 175, 110, 0.12);
}
html.dark .nm-store .fz-product:hover {
  border-color: rgba(227, 169, 61, 0.35);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(227, 169, 61, 0.12);
}
html.dark .fz-product-media {
  background: linear-gradient(160deg, #1a222d 0%, #121820 100%);
}
html.dark .fz-btn-product {
  color: #5eead4;
  border-color: rgba(45, 212, 191, 0.35);
}
html.dark .fz-btn-product:hover {
  background: linear-gradient(135deg, #2dd4bf, #0f766e);
  color: #042f2e;
  border-color: transparent;
}

html.dark .nm-footer {
  background:
    radial-gradient(700px 240px at 80% 0%, rgba(227, 169, 61, 0.08), transparent 55%),
    #05070b;
  border-top: 1px solid rgba(212, 175, 110, 0.12);
}
html.dark .nm-footer-title::after {
  background: linear-gradient(90deg, #e3a93d, #2dd4bf);
}
html.dark .nm-footer-links a:hover { color: #f0d78c; }
html.dark .nm-trust-ico {
  background: rgba(227, 169, 61, 0.12);
  color: #f0d78c;
}
html.dark .nm-badge-box {
  background: #fff;
  border-color: rgba(212, 175, 110, 0.22);
}

html.dark .nm-bottom-nav {
  background: rgba(10, 14, 20, 0.94);
  border-top-color: rgba(212, 175, 110, 0.12);
}
html.dark .nm-bn-item { color: #8b95a5; }
html.dark .nm-bn-item.is-on { color: #f0d78c; }

/* ---------- ParaCake storefront palette ---------- */
:root {
  --nm-ink: #2e123c;
  --nm-muted: #705d78;
  --nm-line: #ead8f0;
  --nm-soft: #fbf7fc;
  --nm-accent: #87449f;
  --nm-accent-2: #5a2870;
  --nm-accent-soft: rgba(135, 68, 159, 0.12);
  --nm-shadow: 0 2px 8px rgba(90, 40, 112, 0.08);
}

body.nm-store,
body.nm-auth {
  background: #fff;
  color: var(--nm-ink);
}

.nm-header,
.nm-cats,
.nm-bottom-nav { background: #fff; }
.nm-header { border-bottom-color: var(--nm-line); }
.nm-header-main { box-shadow: inset 0 -2px 0 var(--nm-accent); }
.nm-search:focus-within { border-color: var(--nm-accent); background: #fff; }
.nm-search-btn,
.nm-btn-login { background: linear-gradient(135deg, #87449f, #5a2870); }
.nm-h-action:hover { background: var(--nm-soft); color: var(--nm-accent-2); }
.nm-cat:hover,
.nm-cat.is-on { color: var(--nm-accent-2); box-shadow: inset 0 -2px 0 var(--nm-accent); }
.nm-section-head a,
.nm-footer-links a:hover { color: var(--nm-accent); }
.nm-feature:hover { border-color: rgba(135, 68, 159, 0.4); }
.nm-feature-ico { color: var(--nm-accent); }
.nm-store .fz-product:hover .fz-product-body { border-top-color: var(--nm-accent); }
.nm-theme-track { background: #f4eafa; border-color: rgba(135, 68, 159, 0.3); }
.nm-theme-knob { color: #87449f; box-shadow: 0 2px 8px rgba(90, 40, 112, 0.2); }
.nm-theme-toggle:hover .nm-theme-track { border-color: rgba(135, 68, 159, 0.55); }
.nm-theme-toggle:hover .nm-theme-knob { box-shadow: 0 3px 12px rgba(135, 68, 159, 0.3); }
.nm-footer-title::after { background: linear-gradient(90deg, #b47ac7, #713489); }
.nm-trust-ico { background: rgba(180, 122, 199, 0.14); color: #b47ac7; }
.nm-badge-box:hover { border-color: rgba(180, 122, 199, 0.45); }
.nm-bn-item.is-on { color: var(--nm-accent); }

html.dark {
  --nm-ink: #f8effb;
  --nm-muted: #bba8c1;
  --nm-line: rgba(214, 168, 228, 0.18);
  --nm-soft: #1d1323;
  --nm-accent: #d6a8e4;
  --nm-accent-2: #b879ca;
  --nm-accent-soft: rgba(214, 168, 228, 0.14);
  --nm-shadow: 0 18px 48px rgba(20, 7, 28, 0.5);
}

html.dark body.nm-store {
  background:
    radial-gradient(1200px 500px at 10% -10%, rgba(135, 68, 159, 0.17), transparent 55%),
    radial-gradient(900px 420px at 90% 0%, rgba(180, 122, 199, 0.11), transparent 50%),
    #120b17;
  color: var(--nm-ink);
}
html.dark .nm-header { background: rgba(22, 12, 28, 0.9); border-bottom-color: rgba(214, 168, 228, 0.16); }
html.dark .nm-header-top { background: linear-gradient(90deg, #2e123c 0%, #713489 55%, #431d54 100%); }
html.dark .nm-search { background: #1d1323; border-color: rgba(214, 168, 228, 0.18); }
html.dark .nm-search:focus-within { border-color: rgba(214, 168, 228, 0.55); box-shadow: 0 0 0 3px rgba(214, 168, 228, 0.12); }
html.dark .nm-search-btn,
html.dark .nm-btn-login { background: linear-gradient(135deg, #d6a8e4, #87449f); color: #2e123c; }
html.dark .nm-h-action:hover { background: rgba(214, 168, 228, 0.1); color: #e2b8ed; }
html.dark .nm-cats { background: rgba(18, 11, 23, 0.94); }
html.dark .nm-cat { background: #201526; border-color: rgba(214, 168, 228, 0.14); color: #d5c7da; }
html.dark .nm-cat:hover { border-color: rgba(214, 168, 228, 0.4); color: #e2b8ed; }
html.dark .nm-cat.is-on { background: linear-gradient(135deg, rgba(214, 168, 228, 0.18), rgba(90, 40, 112, 0.35)); border-color: rgba(214, 168, 228, 0.45); color: #f0dff5; }
html.dark .nm-feature { background: linear-gradient(165deg, #201526 0%, #17101d 100%); border-color: rgba(214, 168, 228, 0.14); }
html.dark .nm-feature:hover { border-color: rgba(214, 168, 228, 0.4); }
html.dark .nm-feature-ico { background: rgba(214, 168, 228, 0.14); color: #e2b8ed; }
html.dark .nm-section-head a { color: #e2b8ed; }
html.dark .nm-store .fz-product { background: linear-gradient(180deg, #211528 0%, #17101d 100%); border-color: rgba(214, 168, 228, 0.14); }
html.dark .nm-store .fz-product:hover { border-color: rgba(214, 168, 228, 0.42); box-shadow: 0 18px 40px rgba(20, 7, 28, 0.58), 0 0 0 1px rgba(214, 168, 228, 0.14); }
html.dark .fz-btn-product { color: #e2b8ed; border-color: rgba(214, 168, 228, 0.4); }
html.dark .fz-btn-product:hover { background: linear-gradient(135deg, #d6a8e4, #87449f); color: #2e123c; }
html.dark .nm-theme-track { background: #30203a; border-color: rgba(214, 168, 228, 0.4); }
html.dark .nm-theme-knob { background: #87449f; color: #f8effb; box-shadow: 0 2px 10px rgba(214, 168, 228, 0.35); }
html.dark .nm-footer { background: radial-gradient(700px 240px at 80% 0%, rgba(180, 122, 199, 0.12), transparent 55%), #0d0711; border-top-color: rgba(214, 168, 228, 0.14); }
html.dark .nm-footer-links a:hover { color: #e2b8ed; }
html.dark .nm-trust-ico { background: rgba(180, 122, 199, 0.15); color: #e2b8ed; }
html.dark .nm-bottom-nav { background: rgba(22, 12, 28, 0.96); border-top-color: rgba(214, 168, 228, 0.16); }
html.dark .nm-bn-item.is-on { color: #e2b8ed; }

/* Remaining storefront accents kept in the logo family */
.nm-flash-ok { background: rgba(135, 68, 159, .1); color: #713489; border-color: rgba(135, 68, 159, .25); }
.nm-hero-kicker i { background: #d6a8e4; box-shadow: 0 0 0 4px rgba(214, 168, 228, .25); }
.nm-auth-visual { background: linear-gradient(145deg, #2e123c, #713489 58%, #431d54); }
html.dark .nm-flash-ok { background: rgba(214, 168, 228, .12); color: #e2b8ed; border-color: rgba(214, 168, 228, .28); }




/* مخفی کردن آیکون سبد خرید هدر در موبایل */
@media (max-width: 768px) {
  .nm-header-actions .nm-cart-badge,
  .nm-header-actions a[href="cart.html"] {
    display: none !important;
  }
}

.nm-bn-cart-wrap {
  position: relative;
  display: inline-flex; /* برای اینکه فلت و متمرکز باشه */
  align-items: center;
  justify-content: center;
}

.nm-bn-cart-wrap .nm-cart-badge {
  position: absolute;
  top: -4px;
  right: -8px;
  background-color: #7c3aed; /* بنفش پاراکیک */
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  /* ابعاد ثابت برای حفظ شکل دایره‌ای */
  width: 18px !important;
  height: 18px !important;
  min-width: 18px !important;
  max-width: 18px !important;
  padding: 0 !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  line-height: 1;
}

/* اگر کلاس is-empty فعال شد واقعا مخفی‌اش کن */
.nm-bn-cart-wrap .nm-cart-badge.is-empty {
  display: none !important;
}
