/* ==========================================================================
   لیزر درمان — لایهٔ طراحی. پالت از لوگو:
   صورتی #E83078 (CTA: #DB2870 برای کنتراست AA) · زغالی #404040 · پس‌زمینه #FFF9FB
   ========================================================================== */
:root {
  --zd-wa-fab: #25D366;      /* رنگ شناخته‌شدهٔ واتساپ فقط برای دکمهٔ شناور */
  --zd-wa-fab-dark: #128C4A;
}

/* ---------- Typography: charcoal headings, pink accents (like the wordmark) ---------- */
h1, h2, h3, h4,
.zd-sechead h2, .zd-profiles__title, .zd-phero__title { color: var(--zd-ink); }
.zd-accent { color: var(--zd-magenta); }
.zd-title__a { color: var(--zd-ink); }
.zd-title__b { color: var(--zd-magenta); display: inline-block; }
.zd-nav a, .zd-nav button { color: var(--zd-ink) !important; }
.zd-nav a:hover { color: var(--zd-magenta) !important; }
.zd-drawer nav a, .zd-drawer nav button, .zd-drawer__link { color: var(--zd-ink) !important; }
.zd-drawer nav a:hover, .zd-drawer nav button:hover { color: var(--zd-magenta) !important; }

/* ---------- Header / brand ---------- */
.zd-brand__logo { height: 52px; width: auto; aspect-ratio: auto; max-width: 190px; object-fit: contain; }
.zd-brand__slogan { display: none !important; }
@media (max-width: 1023.98px) { .zd-brand__logo { height: 40px !important; max-width: 150px !important; } }
@media (max-width: 380px) { .zd-brand__logo { height: 34px !important; max-width: 124px !important; } }
.zd-drawer__logo { height: 44px; width: auto; }

/* ---------- WhatsApp button (brand pink + WhatsApp glyph) ---------- */
.zd-wa-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem; flex-shrink: 0;
  height: 44px; padding-inline: 1.125rem; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--zd-magenta); color: #fff !important; font-weight: 700; font-size: .9375rem; line-height: 1; white-space: nowrap;
  text-decoration: none; box-shadow: 0 8px 20px -8px rgba(219,40,112,.65);
  transition: background-color .2s, transform .2s, box-shadow .2s;
}
.zd-wa-btn:hover { background: var(--zd-magenta-dark); transform: translateY(-1px); }
.zd-wa-btn svg { flex-shrink: 0; }
.zd-wa-btn--lg { height: 54px; padding-inline: 1.5rem; font-size: 1.0625rem; }
.zd-wa-btn--block { width: 100%; height: 48px; }
.zd-wa-btn--onpink { background: #fff; color: var(--zd-magenta-dark) !important; box-shadow: 0 10px 24px -10px rgba(43,7,22,.55); }
.zd-wa-btn--onpink:hover { background: var(--zd-mint); }
@media (max-width: 520px) {
  .zd-actions .zd-wa-btn { width: 44px; padding: 0; }
  .zd-actions .zd-wa-btn .zd-wa-btn__text { display: none; }
}
.zd-wa-cta { gap: .5rem; }
.zd-wa-cta svg { flex-shrink: 0; }

/* ---------- Floating WhatsApp ---------- */
.zd-wa-fab {
  position: fixed; z-index: 45; left: 18px; bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  display: inline-flex; align-items: center; gap: .625rem; height: 58px; min-width: 58px; padding: 0 14px; border-radius: 999px;
  background: var(--zd-wa-fab); color: #fff; text-decoration: none; justify-content: center;
  box-shadow: 0 10px 28px -8px rgba(18,140,74,.7), 0 2px 6px rgba(0,0,0,.18);
  transition: transform .2s, background-color .2s;
}
.zd-wa-fab:hover { background: var(--zd-wa-fab-dark); transform: translateY(-2px); }
.zd-wa-fab__label { display: none; font-weight: 700; font-size: .9375rem; white-space: nowrap; }
@media (min-width: 768px) { .zd-wa-fab { padding-inline: 18px 22px; } .zd-wa-fab__label { display: inline; } }
.zd-wa-fab::after { content: ""; position: absolute; inset: 0; border-radius: inherit; border: 2px solid var(--zd-wa-fab); opacity: 0; animation: zd-wa-ring 2.4s ease-out 1.2s 3; pointer-events: none; }
@keyframes zd-wa-ring { 0% { transform: scale(1); opacity: .65; } 100% { transform: scale(1.35); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .zd-wa-fab::after { animation: none; } .zd-wa-btn, .zd-wa-fab { transition: none; } }
body.single-listing .zd-wa-fab { bottom: calc(88px + env(safe-area-inset-bottom, 0px)); }
@media (min-width: 1024px) { body.single-listing .zd-wa-fab { bottom: 18px; } }

/* ---------- Hero ---------- */
.zd-lhero { padding-block: 2.5rem 3rem; background:
  radial-gradient(44rem 30rem at 12% 30%, rgba(245,138,180,.28), transparent 62%),
  radial-gradient(40rem 24rem at 95% -10%, rgba(219,40,112,.10), transparent 60%),
  linear-gradient(180deg, var(--zd-mint) 0%, var(--zd-ivory) 92%); }
.zd-lhero__grid { display: grid; gap: 1.5rem; align-items: center; position: relative; z-index: 1; }
.zd-lhero__copy { max-width: 36rem; }
.zd-lhero .zd-title { margin-top: 0; }
.zd-lhero .zd-hero__cta .btn { min-width: 0; }
.zd-lhero__art { position: relative; justify-self: center; width: min(62vw, 250px); }
.zd-lhero__art::before { content: ""; position: absolute; inset: 6% 4% 4%; border-radius: 50% 50% 46% 54% / 44% 44% 56% 56%;
  background: linear-gradient(160deg, #fff 0%, rgba(255,194,215,.55) 100%); box-shadow: 0 30px 70px -30px rgba(219,40,112,.45); }
.zd-lhero__art img { position: relative; display: block; width: 100%; height: auto; }
@media (min-width: 900px) {
  .zd-lhero { padding-block: 4rem 4.5rem; }
  .zd-lhero__grid { grid-template-columns: 1.1fr .9fr; gap: 3rem; }
  .zd-lhero__art { width: min(100%, 420px); }
}
.zd-lhero .zd-trust li::before { background-color: var(--zd-magenta); }

/* ---------- WhatsApp band ---------- */
.zd-wa-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding: clamp(1.5rem, 4vw, 2.5rem); border-radius: 28px; color: #fff;
  background: linear-gradient(135deg, var(--zd-magenta) 0%, var(--zd-magenta-dark) 100%); box-shadow: 0 24px 50px -28px rgba(219,40,112,.8); }
.zd-wa-band h2 { margin: 0; color: #fff; font-size: clamp(1.25rem, 3vw, 1.75rem); line-height: 1.6; }
.zd-wa-band p { margin: .5rem 0 0; max-width: 34rem; line-height: 1.9; color: rgba(255,255,255,.92); }

/* ---------- Footer logo ---------- */
.zd-footer__logowrap { display: inline-block; padding: .75rem 1.25rem; background: #fff; border-radius: 18px; }
.zd-footer__logo { display: block; width: 230px !important; max-width: 100%; height: auto; }

/* ---------- Focus ---------- */
.zd-wa-btn:focus-visible, .zd-wa-fab:focus-visible { outline: 3px solid var(--zd-ink); outline-offset: 3px; }

/* ─── فیلتر سریع لیزر (۳ ردیف + AJAX) ─── */
.zd-laser-rows .zd-sc { align-items: center; }
.zd-laser-rows .zd-sc__label { font-weight: 800; color: #404040; margin-inline-end: .25rem; }
.zd-laser-rows .zd-sc--sub { padding: .6rem .75rem; background: #FFF1F6; border-radius: 14px; }
.zd-laser-rows .zd-sc__chip { cursor: pointer; }
.zd-laser-rows.is-loading, [data-zd-results].is-loading { opacity: .55; pointer-events: none; transition: opacity .15s; }
[data-zd-results][hidden] { display: none !important; }
.zd-results-home { margin-top: 1.5rem; }
.zd-checks { display: flex; flex-wrap: wrap; gap: .4rem .5rem; }
.zd-check { display: inline-flex; align-items: center; gap: .35rem; padding: .3rem .7rem; border: 1px solid #f0d3df; border-radius: 999px; font-size: .8125rem; cursor: pointer; margin: 0; }
.zd-check input { accent-color: #DB2870; }
@media (max-width: 767.98px) {
  /* موبایل: چیپ‌ها زیر برچسب ردیف بشکنند و همیشه دیده شوند (قبلاً اسکرول افقی بود و چیپ‌ها بیرون از صفحه می‌ماندند) */
  .zd-laser-rows { display: block; width: 100%; }
  .zd-laser-rows .zd-sc { display: flex; flex-wrap: wrap; overflow: visible; padding-bottom: 0; }
  .zd-laser-rows .zd-sc__label { flex: 0 0 100%; width: 100%; }
  .zd-laser-rows .zd-sc__chip { flex: 0 1 auto; white-space: normal; max-width: 100%; }
}

/* بعد از انتخاب یک کلمه، ردیف‌ها بسته می‌شوند؛ با «تغییر فیلتر» دوباره باز می‌شوند */
.zd-laser-rows.is-collapsed .zd-sc { display: none !important; }
.zd-laser-rows.is-collapsed { margin: 0; padding: 0; }
.zd-showrows { display: inline-flex; align-items: center; gap: .35rem; padding: .3rem .9rem; border-radius: 999px; border: 1px solid #DB2870; color: #DB2870; background: #fff; font-weight: 700; font-size: .8125rem; cursor: pointer; }
.zd-showrows:hover { background: #DB2870; color: #fff; }

/* ─── جستجوی سریع: مشکل (اصلی) + دستگاه (فرعی)، تعداد، «نمایش همه» ─── */
#zd-quick { scroll-margin-top: 96px; }
.zd-sc--major .zd-sc__label { font-size: 1rem; }
.zd-sc--major .zd-sc__chip { font-size: .9375rem; padding: .4rem 1rem; }
.zd-sc--minor { opacity: .95; }
.zd-sc--minor .zd-sc__label { font-size: .8125rem; font-weight: 700; color: #6b7280; }
.zd-sc--minor .zd-sc__chip { font-size: .8125rem; padding: .25rem .7rem; background: #fff; }
.zd-sc--minor .zd-sc__chip.is-on { background: #DB2870; }
.zd-sc__n { display: inline-block; min-width: 1.4em; padding: 0 .35em; border-radius: 999px; background: rgba(219,40,112,.12); font-size: .75em; font-weight: 800; text-align: center; }
.zd-sc__chip.is-on .zd-sc__n { background: rgba(255,255,255,.25); }
.zd-more { flex: 1 1 100%; }
.zd-more__sum { list-style: none; width: fit-content; cursor: pointer; background: #fff; border-style: dashed; }
.zd-more__sum::-webkit-details-marker { display: none; }
.zd-more[open] > .zd-more__sum { background: #FFF1F6; }
.zd-more__body { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .6rem; }
@media (max-width: 767.98px) { .zd-sc--major .zd-sc__chip { font-size: 15px; min-height: 44px; } .zd-sc--minor .zd-sc__chip { font-size: 14px; min-height: 40px; } }


/* ==========================================================================
   v4.5 — menu under header · unified page titles · unified box borders
   ========================================================================== */

/* Header: brand + actions on the top row, main menu on its own row beneath */
.zd-header__bar { justify-content: space-between; }
.zd-actions { margin-inline-start: auto !important; }
.zd-header__menu { display: none; border-top: 1px solid var(--zd-line); }
@media (min-width: 1024px) {
  .zd-header__menu { display: block; }
  .zd-header__bar { min-height: 68px; }
}
.zd-header__menu .zd-nav { display: block; flex: none; }
.zd-header__menu .zd-nav__list { justify-content: flex-start; flex-wrap: wrap; gap: .25rem; }
.zd-header__menu .zd-nav a, .zd-header__menu .zd-nav button { padding: .55rem .9rem; }

/* One style for every page title (h1) */
.zd-pagetitle,
.zd-archive-head__title.zd-pagetitle,
.zd-compare-title.zd-pagetitle {
  font-size: clamp(1.5rem, 3.4vw, 2.25rem) !important;
  font-weight: 800 !important;
  line-height: 1.5 !important;
  letter-spacing: -.005em;
  color: var(--zd-emerald) !important;
  background: none !important;
  -webkit-text-fill-color: currentColor !important;
  text-wrap: balance;
}
.zd-pagetitle span, .zd-pagetitle .text-gradient-brand {
  color: inherit !important; background: none !important; -webkit-text-fill-color: currentColor !important;
}

/* Box borders: Tailwind v4 draws `border` / `border-2` without a colour in currentColor (black).
   Give every border the page's own line colour; classes that set a colour still win (utilities layer). */
@layer base {
  *, ::after, ::before, ::backdrop, ::file-selector-button { border-color: var(--zd-line); }
}

/* Link from the blog categories to the matching ad category */
.zd-catlink {
  display: inline-flex; align-items: center; gap: .35rem; font-size: .875rem; font-weight: 700;
  color: var(--zd-emerald); text-decoration: none; white-space: nowrap;
}
.zd-catlink:hover { color: var(--zd-emerald-dark); text-decoration: underline; text-underline-offset: 4px; }

/* v4.5.1 — single title in archive head; area around the box matches the page */
.zd-archive-head .zd-eyebrow { display: none !important; }
.zd-archive-head__title { margin-top: 0 !important; }
body > header.container, main > header.container, #page > header.container,
header.container.pt-10, header.container:has(> .zd-archive-head) {
  background: transparent !important; background-color: transparent !important;
}
.zd-archive-head { background: linear-gradient(180deg, var(--zd-mint) 0%, var(--zd-ivory) 100%) !important; }

.zd-wa-fab{display:none!important}

.zd-eyebrow{display:none!important}
.zd-mobilebar:empty{display:none!important}

/* page header box = page colour */
.container.mb-10 > .bg-primary-50.border { background: var(--zd-ivory) !important; }

/* hide empty boxes */
.container.mb-10 > .bg-primary-50:not(:has(h1,h2,nav,a,p,img,form)),
.zd-mobilebar:empty, .container:empty, section:empty { display: none !important; }
.container.mb-10:has(> .bg-primary-50:not(:has(h1,h2,nav,a,p,img,form))) { display: none !important; }

/* ---------- Footer: rectangular «ثبت مرکز» button ---------- */
.zd-footer a.zd-foot-btn {
  display: flex; align-items: center; justify-content: center; width: 100%; max-width: 15rem; height: 46px; padding-inline: 1.25rem;
  border-radius: 10px; background: var(--zd-magenta); color: #fff !important; font-weight: 700; font-size: .9375rem; text-decoration: none;
  transition: background-color .2s, transform .2s;
}
.zd-footer a.zd-foot-btn:hover { background: var(--zd-magenta-dark); color: #fff !important; transform: translateY(-1px); }

/* ---------- Contact page: advertising / register-center box ---------- */
.zd-ads-box { border: 1px solid var(--zd-magenta); border-radius: 1.5rem; padding: 1.75rem 1.5rem; background: #FFF1F6; }
.zd-ads-box h2 { color: var(--zd-magenta-dark); }
.zd-ads-box a.zd-ads-box__btn {
  display: inline-flex; align-items: center; justify-content: center; height: 46px; padding-inline: 1.5rem; border-radius: 10px;
  background: var(--zd-magenta); color: #fff !important; font-weight: 700; text-decoration: none; transition: background-color .2s;
}
.zd-ads-box a.zd-ads-box__btn:hover { background: var(--zd-magenta-dark); }
