/* ==========================================================================
   product-content.css
   یکدست‌سازی ظاهر «متن توضیحی» صفحات محصول
   (از زیر بخش «مزایا» تا بالای «سایر محصولات»)

   همه‌ی قواعد زیر فقط داخل .bp-pc کار می‌کنند (کلاس روی <section> اصلی هر صفحه).
   برای تغییر فاصله‌ها، رنگ‌ها یا اندازه‌ها فقط متغیرهای بلوک :root.bp-pc / .bp-pc را عوض کنید.
   ========================================================================== */

.bp-pc {
  /* --- رنگ‌ها: آبی (اصلی) + نارنجی (تأکید کم) --- */
  --bp-navy: #12204c;
  --bp-blue: #1f4fc9;
  --bp-blue-soft: #f1f5ff;
  --bp-blue-line: #d6e1fb;
  --bp-text: #36405f;
  --bp-muted: #5b6585;
  --bp-orange: #ffad06;
  --bp-orange-deep: #b45f06;
  --bp-orange-soft: #fff7e5;
  --bp-orange-line: #ffe2a6;

  /* --- فاصله‌های استاندارد --- */
  --bp-h2-top: 52px;      /* بالای تیتر اصلی */
  --bp-h2-bottom: 18px;   /* زیر تیتر اصلی تا متن */
  --bp-h3-top: 30px;      /* بالای تیتر فرعی (وقتی داخل کارت نیست) */
  --bp-h3-bottom: 12px;   /* زیر تیتر فرعی تا متن */
  --bp-p-gap: 16px;       /* بین دو پاراگراف پشت‌سرهم */
  --bp-block-gap: 28px;   /* بین پاراگراف و کارت/جدول/عکس/لیست */
  --bp-grid-gap: 16px;    /* بین کارت‌های کنار هم */
  --bp-card-pad: 22px;
  --bp-radius: 18px;

  color: var(--bp-text);
  margin-top: 48px !important;
  padding-top: 0 !important;
  border-top: 0 !important;
}

/* ---------- ریست حاشیه‌های پراکنده‌ی Tailwind داخل متن ---------- */
.bp-pc h2, .bp-pc h3, .bp-pc p, .bp-pc ul, .bp-pc ol,
.bp-pc figure, .bp-pc table, .bp-pc details, .bp-pc section, .bp-pc article,
.bp-pc div[class*="mt-"], .bp-pc div[class*="mb-"],
.bp-pc a[class*="mt-"] { margin: 0 !important; }
.bp-pc section, .bp-pc article { padding-top: 0 !important; border-top: 0 !important; }

/* ---------- جداکننده‌ی نارنجی بالای بخش ---------- */
.bp-pc .bp-divider { display: flex; align-items: center; gap: 12px; margin: 0 0 36px !important; }
.bp-pc .bp-divider span { flex: 1; height: 3px; border-radius: 99px; background: linear-gradient(90deg, var(--bp-orange), rgba(255,173,6,.25)); }
.bp-pc .bp-divider span:last-child { background: linear-gradient(270deg, var(--bp-orange), rgba(255,173,6,.25)); }
.bp-pc .bp-divider i { width: 10px; height: 10px; border-radius: 50%; background: var(--bp-blue); box-shadow: 0 0 0 4px var(--bp-blue-soft); flex: none; }

/* ---------- تیترها ---------- */
.bp-pc h2 {
  font-size: 21px !important; line-height: 1.8 !important; font-weight: 900 !important;
  color: var(--bp-navy) !important; letter-spacing: -.01em;
  margin-top: var(--bp-h2-top) !important; margin-bottom: var(--bp-h2-bottom) !important;
  display: flex; align-items: flex-start; gap: 12px;
}
.bp-pc h2::before {
  content: ""; flex: none; width: 6px; height: 26px; margin-top: 7px; border-radius: 4px;
  background: linear-gradient(180deg, var(--bp-orange), #ff8a00);
}
.bp-pc h2.bp-first { margin-top: 0 !important; }
.bp-pc h3 {
  font-size: 15.5px !important; line-height: 1.9 !important; font-weight: 800 !important;
  color: var(--bp-blue) !important; margin-bottom: var(--bp-h3-bottom) !important;
}
.bp-pc * + h3 { margin-top: var(--bp-h3-top) !important; }
.bp-pc h3:first-child { margin-top: 0 !important; }

/* ---------- متن ---------- */
.bp-pc p, .bp-pc li, .bp-pc td, .bp-pc th, .bp-pc summary + * {
  color: var(--bp-text) !important;
}
.bp-pc p {
  font-size: 14px !important; line-height: 2.1 !important;
  text-align: justify !important; text-justify: inter-word;
}
.bp-pc strong { color: var(--bp-blue) !important; font-weight: 800; }
.bp-pc a:not([class*="rounded"]) { color: var(--bp-blue); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--bp-orange); }
.bp-pc a:not([class*="rounded"]):hover { color: var(--bp-orange-deep); }

/* ---------- ریتم عمودی: بین بلوک‌ها (قاعده‌ی مشترک) ---------- */
.bp-pc.bp-pc :where(section, article, div, details):where(:not([class*="grid"]):not([class*="flex"])) > :is(p, ul, ol, figure, table, details, div, section, a, blockquote) + :is(p, ul, ol, figure, table, details, div, section, a, blockquote) {
  margin-top: var(--bp-block-gap) !important;
}
.bp-pc.bp-pc :where(section, article, div, details):where(:not([class*="grid"]):not([class*="flex"])) > p + p { margin-top: var(--bp-p-gap) !important; }
.bp-pc.bp-pc :where(section, article, div):where(:not([class*="grid"]):not([class*="flex"])) > p + .bp-case,
.bp-pc.bp-pc :where(section, article, div):where(:not([class*="grid"]):not([class*="flex"])) > .bp-case + p { margin-top: var(--bp-p-gap) !important; }
.bp-pc.bp-pc details + details { margin-top: 12px !important; }
.bp-pc.bp-pc .bp-case + .bp-case { margin-top: 12px !important; }
.bp-pc.bp-pc h2 + *, .bp-pc.bp-pc h3 + * { margin-top: 0 !important; }

/* ---------- شبکه‌ی کارت‌ها ---------- */
.bp-pc .grid { gap: var(--bp-grid-gap) !important; }
.bp-pc .grid > * { margin: 0 !important; }

/* ---------- کارت‌ها ---------- */
.bp-pc .bp-card {
  background: #fff; border: 1px solid var(--bp-blue-line) !important; border-radius: var(--bp-radius) !important;
  padding: var(--bp-card-pad) !important; box-shadow: 0 1px 2px rgba(18,32,76,.04);
}
.bp-pc .bp-card.bp-soft { background: var(--bp-blue-soft); }
.bp-pc .bp-card.bp-warm { background: var(--bp-orange-soft); border-color: var(--bp-orange-line) !important; }
.bp-pc .bp-card p { font-size: 13.4px !important; line-height: 2 !important; }
.bp-pc .bp-card > * + p, .bp-pc .bp-card p + p { margin-top: 12px !important; }
.bp-pc .bp-card > .bp-ct, .bp-pc .bp-card > div.font-black {
  color: var(--bp-blue); font-size: 14px !important; font-weight: 800; line-height: 1.9; margin-bottom: 6px !important;
  display: flex; align-items: center; gap: 8px;
}
.bp-pc .bp-card > .bp-ct + p, .bp-pc .bp-card > div.font-black + p { margin-top: 0 !important; }
.bp-pc .bp-card > .bp-ct::before, .bp-pc .bp-card > div.font-black::before {
  content: ""; flex: none; width: 8px; height: 8px; border-radius: 2px; background: var(--bp-orange); transform: rotate(45deg);
}
.bp-pc .bp-card h3 { color: var(--bp-blue) !important; }
.bp-pc .bp-card > h3:first-child { padding-bottom: 10px; border-bottom: 1px dashed var(--bp-blue-line); margin-bottom: var(--bp-h3-bottom) !important; }

/* ---------- بخش‌های «موردی» (پاراگراف‌هایی که با یک عنوان پررنگ شروع می‌شوند) ---------- */
.bp-pc .bp-case {
  background: var(--bp-blue-soft); border: 1px solid var(--bp-blue-line);
  border-inline-start: 4px solid var(--bp-orange); border-radius: 14px;
  padding: 14px 18px; display: block;
}
.bp-pc .bp-case > strong:first-child { color: var(--bp-navy) !important; }
.bp-pc .bp-card .bp-case, .bp-pc .bp-dark .bp-case { background: #fff; }

/* ---------- لیست‌ها ---------- */
.bp-pc ul, .bp-pc ol { list-style: none !important; padding: 0 !important; counter-reset: bpli; }
.bp-pc li { position: relative; padding-inline-start: 26px; font-size: 13.8px; line-height: 2; text-align: start; }
.bp-pc li + li { margin-top: 8px !important; }
.bp-pc ul > li::before { content: ""; position: absolute; inset-inline-start: 4px; top: 13px; width: 8px; height: 8px; border-radius: 50%; background: var(--bp-orange); box-shadow: 0 0 0 3px var(--bp-orange-soft); }
.bp-pc ol > li { counter-increment: bpli; }
.bp-pc ol > li::before { content: counter(bpli, persian); position: absolute; inset-inline-start: 0; top: 6px; width: 20px; height: 20px; border-radius: 50%; background: var(--bp-blue); color: #fff; font-size: 11px; font-weight: 800; display: grid; place-items: center; line-height: 1; }
.bp-pc :is(ul, ol):not(.bp-bare) { background: var(--bp-blue-soft); border: 1px solid var(--bp-blue-line); border-radius: 16px; padding: 18px 22px !important; }
.bp-pc .bp-card :is(ul, ol):not(.bp-bare) { background: transparent; border: 0; padding: 0 !important; }

/* ---------- جعبه‌ی تیره (جمع‌بندی / اطلاعات موردنیاز) ---------- */
.bp-pc .bp-dark {
  background: linear-gradient(135deg, #12204c 0%, #1b3377 100%) !important; color: #e8eeff;
  border: 0 !important; border-radius: 22px !important; padding: 28px 30px !important; position: relative; overflow: hidden;
}
.bp-pc .bp-dark::after { content: ""; position: absolute; inset-inline-end: 0; top: 0; width: 120px; height: 4px; background: var(--bp-orange); border-radius: 0 0 0 6px; }
.bp-pc .bp-dark h2 { color: #fff !important; margin-top: 0 !important; }
.bp-pc .bp-dark h3 { color: #ffd067 !important; }
.bp-pc .bp-dark p, .bp-pc .bp-dark div, .bp-pc .bp-dark li { color: #dfe7ff !important; }
.bp-pc .bp-dark strong { color: #ffd067 !important; }
.bp-pc .bp-dark .grid > div { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); border-radius: 12px; padding: 10px 14px; }

/* ---------- جدول‌ها ---------- */
.bp-pc .overflow-x-auto { border: 1px solid var(--bp-blue-line); border-radius: 16px; background: #fff; }
.bp-pc table { border-collapse: separate !important; border-spacing: 0; width: 100%; font-size: 13px !important; border-radius: 0 !important; }
.bp-pc th { background: var(--bp-navy) !important; color: #fff !important; font-weight: 800; padding: 13px 16px !important; text-align: right; border: 0 !important; border-bottom: 3px solid var(--bp-orange) !important; line-height: 1.8; }
.bp-pc td { padding: 12px 16px !important; border: 0 !important; border-bottom: 1px solid var(--bp-blue-line) !important; line-height: 1.95; vertical-align: top; }
.bp-pc tbody tr:nth-child(even) td { background: var(--bp-blue-soft); }
.bp-pc tbody tr:last-child td { border-bottom: 0 !important; }
.bp-pc td:first-child { color: var(--bp-navy) !important; font-weight: 800; }

/* ---------- عکس‌ها و زیرنویس ---------- */
.bp-pc .bp-fig { border: 1px solid var(--bp-blue-line) !important; border-radius: 22px !important; overflow: hidden; background: #fff; }
.bp-pc .bp-fig img { display: block; width: 100%; }
.bp-pc .bp-cap {
  padding: 12px 18px !important; font-size: 12.5px !important; line-height: 1.95 !important; color: var(--bp-muted) !important;
  background: var(--bp-blue-soft) !important; border-top: 1px solid var(--bp-blue-line); text-align: start !important;
}

/* ---------- سؤالات متداول ---------- */
.bp-pc details { background: #fff; border: 1px solid var(--bp-blue-line) !important; border-radius: 14px !important; padding: 0 !important; overflow: hidden; }
.bp-pc details > summary { padding: 15px 20px; font-size: 14px !important; font-weight: 800; color: var(--bp-navy); line-height: 1.9; cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.bp-pc details > summary::-webkit-details-marker { display: none; }
.bp-pc details > summary > span { color: var(--bp-orange-deep) !important; transition: transform .2s ease; flex: none; }
.bp-pc details[open] { border-color: #aebff0 !important; }
.bp-pc details[open] > summary { background: var(--bp-blue-soft); color: var(--bp-blue); border-bottom: 1px dashed var(--bp-blue-line); }
.bp-pc details[open] > summary > span { transform: rotate(180deg); }
.bp-pc details > p { padding: 14px 20px 18px !important; font-size: 13.6px !important; }

/* ---------- دکمه/لینک دعوت به اقدام ---------- */
.bp-pc a.rounded-full { background: var(--bp-navy) !important; color: #fff !important; text-decoration: none !important; border-bottom: 3px solid var(--bp-orange); transition: background .2s ease; }
.bp-pc a.rounded-full:hover { background: var(--bp-blue) !important; }

/* ---------- موبایل ---------- */
@media (max-width: 640px) {
  .bp-pc { --bp-h2-top: 40px; --bp-block-gap: 22px; --bp-card-pad: 18px; }
  .bp-pc h2 { font-size: 18.5px !important; }
  .bp-pc p { font-size: 13.6px !important; line-height: 2 !important; }
  .bp-pc .bp-dark { padding: 22px 20px !important; }
  .bp-pc details > summary { padding: 13px 16px; }
}

/* ---------- اصلاحات تکمیلی ---------- */
.bp-pc .max-w-4xl, .bp-pc .max-w-none { max-width: none !important; }
.bp-pc .grid > :only-child { grid-column: 1 / -1; }

/* جداکننده‌ها/پدینگ‌های داخلی قدیمی حذف می‌شوند؛ فاصله فقط از ریتم استاندارد می‌آید */
.bp-pc div.border-t { border-top: 0 !important; }
.bp-pc div[class*="pt-"]:not(.bp-card):not(.bp-dark) { padding-top: 0 !important; }
/* جعبه‌هایی که با تیتر شروع می‌شوند، خودشان «بخش جدید» حساب می‌شوند */
.bp-pc.bp-pc .bp-dark, .bp-pc.bp-pc .bp-card:has(> h2:first-child) { margin-top: var(--bp-h2-top) !important; }
.bp-pc .bp-card > h2:first-child { margin-top: 0 !important; }

/* ---------- عکس کنار متن (columns / villa) ---------- */
.bp-pc { --bp-media-w: 320px; --bp-media-img-h: 300px; }
.bp-pc .bp-media { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; align-items: start; }
.bp-pc.bp-pc .bp-media > * { margin-top: 0 !important; }
.bp-pc .bp-media > figure { width: 100%; }
.bp-pc .bp-media .bp-media-img { height: var(--bp-media-img-h); object-fit: cover; }
.bp-pc .bp-media-text > h2 { margin-top: var(--bp-h2-top) !important; }
@media (min-width: 1024px) {
  .bp-pc .bp-media { grid-template-columns: var(--bp-media-w) minmax(0, 1fr); gap: 28px; }
}
