/* ============================================================
   تم یکپارچهٔ سایت — هم‌راستا با صفحهٔ خانهٔ سامانهٔ یادآور
   روی style.css و reminder.css بارگذاری می‌شود.
   ============================================================ */

:root {
  --bs-primary: #4f46e5;
  --bs-primary-rgb: 79, 70, 229;
  --bs-link-color: #4f46e5;
  --bs-link-hover-color: #3730a3;
  --bs-body-font-family: "Vazirmatn", Tahoma, sans-serif;
  --bs-body-bg: #f6f7fb;
  --bs-body-color: #111827;
  --bs-border-color: #e8eaf2;
  --bs-border-radius: 14px;
  --bs-border-radius-lg: 18px;
}

html { scroll-behavior: smooth; }
body,
body.rm-body {
  font-family: "Vazirmatn", Tahoma, sans-serif;
  background: #f6f7fb;
  color: #111827;
  min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 { font-weight: 800; }
a { text-decoration: none; }

/* ---------------- دکمه‌ها ---------------- */
.btn { border-radius: 12px; font-weight: 700; }
.btn-primary {
  background: linear-gradient(135deg, #4f46e5, #6d28d9);
  border: 0;
  box-shadow: 0 8px 18px rgba(79, 70, 229, .22);
}
.btn-primary:hover, .btn-primary:focus { background: linear-gradient(135deg, #4338ca, #5b21b6); }
.btn-outline-primary { border-color: #c7d2fe; color: #4338ca; }
.btn-outline-primary:hover { background: #eef2ff; border-color: #a5b4fc; color: #3730a3; }
.btn-light { border-radius: 12px; font-weight: 700; }

/* ---------------- کارت‌ها و فرم‌ها ---------------- */
.card {
  border: 1px solid #e8eaf2;
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(24, 24, 64, .05);
  background: #fff;
}
.card-header { background: #fff; border-bottom-color: #eef0f6; border-radius: 18px 18px 0 0 !important; }
.form-control, .form-select {
  border-radius: 12px;
  border-color: #e3e6f0;
  padding: .62rem .85rem;
}
.form-control:focus, .form-select:focus {
  border-color: #a5b4fc;
  box-shadow: 0 0 0 .2rem rgba(79, 70, 229, .12);
}
.form-label { font-weight: 600; font-size: .9rem; }
.alert { border-radius: 14px; }
.table { --bs-table-border-color: #eef0f6; }
.badge { font-weight: 700; }
.dropdown-menu {
  border: 1px solid #e8eaf2;
  border-radius: 14px;
  box-shadow: 0 14px 34px rgba(24, 24, 64, .12);
  padding: .4rem;
}
.dropdown-item { border-radius: 10px; padding: .55rem .7rem; font-size: .92rem; }
.dropdown-item:hover { background: #eef2ff; color: #3730a3; }

/* ---------------- سربرگ یکپارچه ---------------- */
.rm-nav-shop { box-shadow: 0 1px 0 rgba(17, 24, 39, .03); }
.rm-nav-shop .rm-brand small { color: #6b7280 !important; }
.rm-nav-shop .btn-rm-soft { white-space: nowrap; }
@media (max-width: 575.98px) {
  .rm-nav-shop .rm-brand { font-size: 1rem; }
  .rm-nav-shop .rm-brand-icon { width: 36px; height: 36px; font-size: 1rem; }
  .rm-nav-shop .rm-brand small { display: none !important; }
}

/* ---------------- صفحهٔ خانهٔ فروشگاه ---------------- */
.home-page { background: #f6f7fb; }
.hero-fallback {
  background:
    radial-gradient(900px 380px at 85% -10%, rgba(124, 58, 237, .18), transparent 60%),
    radial-gradient(700px 320px at -10% 20%, rgba(13, 148, 136, .14), transparent 60%),
    linear-gradient(180deg, #fbfbff, #f6f7fb);
  color: #111827;
  padding: 4rem 0 3rem;
}
.hero-fallback .hero-title { font-weight: 900; font-size: clamp(1.8rem, 4vw, 2.8rem); line-height: 1.55; }
.hero-fallback .hero-desc { color: #4b5563; line-height: 2; }
.hero-fallback .hero-eyebrow {
  display: inline-block; color: #4f46e5; font-weight: 700; font-size: .85rem;
  background: #eef2ff; border-radius: 999px; padding: .35rem .8rem; margin-bottom: .8rem;
}
.hero-fallback .hero-product-wrap { display: none; }
.hero-fallback .btn-light { background: #4f46e5; color: #fff; border: 0; }
.hero-fallback .btn-outline-light { border-color: #c7d2fe; color: #4338ca; }
.feature-strip { background: #fff; border-top: 1px solid #e8eaf2; border-bottom: 1px solid #e8eaf2; }
.feature-item { padding: 1.4rem 1rem; display: flex; gap: .8rem; align-items: center; }
.feature-icon {
  width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center;
  background: #eef2ff; color: #4f46e5; font-size: 1.2rem; flex: 0 0 auto;
}
.feature-title { font-weight: 800; font-size: .95rem; }
.feature-sub { color: #6b7280; font-size: .8rem; }
.home-sections { padding: 2.5rem 1rem 3.5rem; }
.home-section { margin-bottom: 3rem; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.1rem; }
.section-head h2 { font-size: 1.25rem; margin: 0; }
.section-head p { color: #6b7280; font-size: .88rem; margin: .25rem 0 0; }
.section-link { color: #4f46e5; font-weight: 700; font-size: .88rem; }
.cat-chips { display: flex; gap: .5rem; overflow-x: auto; padding-bottom: .8rem; margin-bottom: 1.6rem; }
.cat-chip {
  white-space: nowrap; padding: .5rem .9rem; border-radius: 999px;
  background: #fff; border: 1px solid #e8eaf2; color: #374151; font-weight: 600; font-size: .85rem;
}
.cat-chip.active, .cat-chip:hover { background: #eef2ff; border-color: #c7d2fe; color: #4338ca; }
.promo-banner {
  background: linear-gradient(135deg, #4f46e5, #0d9488);
  color: #fff; border-radius: 20px; padding: 2rem; margin-bottom: 3rem; position: relative; overflow: hidden;
}
.promo-banner h2 { color: #fff; }
.newsletter-strip { background: #fff; border: 1px solid #e8eaf2; border-radius: 20px; padding: 2rem; }
.site-footer, footer.site-footer { background: #111827 !important; }

/* ---------------- فروشگاه: کارت محصول ---------------- */
.product-card, .product-card .card { border-radius: 18px; }
.product-card:hover { transform: translateY(-2px); transition: transform .2s ease; box-shadow: 0 14px 30px rgba(24, 24, 64, .1); }
.price, .product-price { color: #4f46e5; font-weight: 800; }

/* ---------------- صفحات ورود/ثبت‌نام ---------------- */
main.py-5 > .container > .row > [class*="col"] > .card,
main.py-5 .card.shadow-sm {
  border-radius: 20px;
  box-shadow: 0 18px 40px rgba(24, 24, 64, .08) !important;
}
main.py-5 h1 { font-weight: 900; }

/* ---------------- پنل ادمین ---------------- */
.admin-topbar {
  background: linear-gradient(135deg, #312e81, #4f46e5) !important;
  box-shadow: 0 6px 18px rgba(49, 46, 129, .2);
}
.admin-topbar .navbar-brand span { font-weight: 700; }
.sidebar {
  background: #fff !important;
  border-left: 1px solid #e8eaf2;
  min-height: calc(100vh - 56px);
}
.sidebar-title { color: #6b7280 !important; font-size: .72rem; letter-spacing: .02em; }
.sidebar .nav-link { color: #374151; border-radius: 10px; font-weight: 600; font-size: .9rem; }
.sidebar .nav-link:hover { background: #f3f4f6; color: #111827; }
.sidebar .nav-link.active { background: #eef2ff; color: #4338ca; }
.admin-nav-overlay { background: #fff; }
.admin-nav-overlay .nav-link { border-radius: 10px; color: #374151; }
.admin-nav-overlay .nav-link.active { background: #eef2ff; color: #4338ca; }
main h1, main .h1, main h2, main .h2 { letter-spacing: -.01em; }
.stat-card, .dashboard-card { border-radius: 18px; }

/* ---------------- واکنش‌گرایی ---------------- */
@media (max-width: 767.98px) {
  .home-sections { padding: 1.5rem .5rem 2.5rem; }
  .section-head { align-items: start; flex-direction: column; gap: .35rem; }
  .feature-item { padding: .9rem .5rem; }
}
