/* ==========================================================================
   دیار چاپ (Diyar Chap) - موتور استایل نسل جدید
   ========================================================================== */

/* 1. مخفی‌سازی کامل هدر، فوتر، اسلایدرها و عناصر پیش‌فرض چاپیروس */
body > header:not(.diyar-header),
body > .header:not(.diyar-header),
body > .main-header:not(.diyar-header),
body > footer:not(.diyar-footer),
body > .footer:not(.diyar-footer),
body > #slider,
body > .slider,
body > .owl-carousel,
body > .home-slider,
body > .carousel,
.powered-by,
.chapiroos-footer {
  display: none !important;
}

/* 2. مدیریت صفحات: در صفحه اصلی عناصر زائد چاپیروس مخفی و در صفحات داخلی محتوا درون قالب تمیز لود شود */
body.is-home #main,
body.is-home .main-content > .container > .row:first-child:not(#diyar-master-app) {
  display: none !important;
}

body.is-inner-page #diyar-home-layout {
  display: none !important;
}

body.is-inner-page .container,
body.is-inner-page .main-content,
body.is-inner-page #main {
  background-color: #f8fafc !important;
  border-radius: 20px;
  padding: 30px 20px;
  margin-top: 25px !important;
  margin-bottom: 40px !important;
}

/* فونت و رنگ‌بندی عمومی */
html, body, #diyar-master-app, * {
  font-family: 'Vazirmatn', -apple-system, sans-serif !important;
  box-sizing: border-box;
}

body {
  background-color: #f8fafc !important;
  color: #1e293b !important;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

.diyar-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}

/* 3. نوار بالای سایت و شماره‌های تماس */
.diyar-topbar {
  background: #090d16;
  color: #94a3b8;
  font-size: 13px;
  padding: 8px 0;
  border-bottom: 1px solid #1e293b;
}

.topbar-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.badge-live {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  margin-left: 8px;
}

.topbar-left {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.phone-link {
  color: #38bdf8 !important;
  font-weight: 700;
  text-decoration: none;
  font-size: 12.5px;
}

.phone-link:hover { color: #60a5fa !important; }
.sep { color: #334155; }

/* 4. هدر مدرن و استایل لوگو */
.diyar-header {
  background: #ffffff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  padding: 10px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-logo-wrap {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
}

.diyar-official-logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-text h2 { margin: 0; font-size: 19px; font-weight: 900; color: #0f172a; }
.brand-text span { font-size: 11px; color: #64748b; display: block; }

.diyar-nav { display: flex; align-items: center; gap: 6px; }

.diyar-nav a {
  text-decoration: none;
  color: #334155;
  font-weight: 700;
  font-size: 13.5px;
  padding: 8px 14px;
  border-radius: 10px;
  transition: all 0.2s;
}

.diyar-nav a:hover { background: #eff6ff; color: #2563eb; }

/* دکمه اختصاصی لیست محصولات در منو */
.diyar-nav a.nav-highlight {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.diyar-nav a.nav-highlight:hover {
  background: linear-gradient(135deg, #1d4ed8, #1e40af);
  transform: translateY(-2px);
}

.diyar-header-actions { display: flex; gap: 10px; }

.btn-action {
  border: 1px solid #e2e8f0;
  background: #ffffff;
  padding: 8px 16px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 13.5px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
}

.btn-action:hover { background: #2563eb; color: #fff; border-color: #2563eb; }

/* 5. هیرو سکشن با لوگوی مرکزی و 3 شماره تماس */
.diyar-hero {
  background: radial-gradient(100% 100% at 50% 0%, #1e293b 0%, #090d16 100%);
  color: #ffffff;
  padding: 50px 0 70px;
  text-align: center;
  border-radius: 0 0 36px 36px;
}

.hero-logo-badge {
  width: 90px;
  height: 90px;
  margin: 0 auto 20px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(37, 99, 235, 0.3);
  border: 2px solid rgba(255, 255, 255, 0.1);
}

.hero-logo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(37, 99, 235, 0.2);
  border: 1px solid rgba(59, 130, 246, 0.4);
  color: #60a5fa;
  padding: 6px 18px;
  border-radius: 30px;
  font-size: 13px;
  margin-bottom: 20px;
}

.diyar-hero h1 { font-size: 36px; font-weight: 900; margin: 0 0 15px; }
.diyar-hero h1 span {
  background: linear-gradient(135deg, #60a5fa, #38bdf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.diyar-hero p { color: #94a3b8; font-size: 15.5px; max-width: 680px; margin: 0 auto 30px; line-height: 1.8; }

.hero-buttons { display: flex; justify-content: center; gap: 15px; flex-wrap: wrap; margin-bottom: 35px; }

.btn-catalog-hero {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #fff !important;
  text-decoration: none;
  font-weight: 800;
  font-size: 15px;
  padding: 14px 30px;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.45);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.25s;
}

.btn-catalog-hero:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.6);
}

.btn-secondary-hero {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff !important;
  text-decoration: none;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: 12px;
  transition: all 0.2s;
}

.btn-secondary-hero:hover { background: rgba(255, 255, 255, 0.18); }

/* نوار تماس با 3 شماره در هیرو */
.hero-phones-bar {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 16px 20px;
  max-width: 820px;
  margin: 0 auto;
}

.phones-title {
  display: block;
  font-size: 13.5px;
  color: #94a3b8;
  margin-bottom: 12px;
}

.phones-list {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.phone-chip {
  background: rgba(37, 99, 235, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.3);
  color: #fff !important;
  text-decoration: none;
  font-weight: 700;
  font-size: 13px;
  padding: 8px 16px;
  border-radius: 10px;
  transition: all 0.2s;
}

.phone-chip:hover {
  background: #2563eb;
  transform: translateY(-2px);
}

/* 6. فوتر دیار چاپ و لوگو */
.diyar-footer {
  background: #090d16;
  color: #94a3b8;
  padding: 60px 0 0;
  border-top: 1px solid #1e293b;
  margin-top: 50px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  font-size: 20px;
  font-weight: 900;
  margin-bottom: 15px;
}

.footer-logo-img {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: cover;
}

.footer-contacts div {
  margin-bottom: 10px;
  font-size: 13.5px;
  color: #cbd5e1;
}

.footer-contacts strong { color: #38bdf8; }

.footer-links h4 { color: #fff; font-size: 16px; margin-bottom: 18px; }
.footer-links ul { list-style: none; padding: 0; margin: 0; }
.footer-links ul li { margin-bottom: 10px; }
.footer-links ul a { color: #94a3b8; text-decoration: none; font-size: 13.5px; }
.footer-links ul a:hover { color: #38bdf8; }

.footer-socials { display: flex; gap: 10px; margin-top: 15px; }
.footer-socials a {
  width: 40px;
  height: 40px;
  background: #1e293b;
  color: #fff;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.footer-bottom {
  border-top: 1px solid #1e293b;
  padding: 20px 0;
  text-align: center;
  font-size: 13px;
}

/* صفحات داخلی چاپیروس */
body.is-inner-page select,
body.is-inner-page input,
body.is-inner-page .form-control {
  border-radius: 12px !important;
  border: 1.5px solid #cbd5e1 !important;
  padding: 9px 14px !important;
}

body.is-inner-page table {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
}

@media (max-width: 850px) {
  .diyar-nav { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .diyar-hero h1 { font-size: 26px; }
  .phones-list { flex-direction: column; }
}