/* ============================================================
   آتی دُر — atd-base.css   (ساخته‌شده از atd-core.css و atd-page.css زنده، 2026-12-02)
   محتوا: پایه سراسری: توکن‌ها، فونت، فرم، دکمه‌های تماس/واتس‌اپ، بردکرامب، تیترها
   بارگذاری: همه صفحه‌ها — توسط اسنیپت لودر atd-assets
   قانون: :root فقط در atd-base.css. کلاس جدید را در فایل همان بخش اضافه کنید.
   ============================================================ */

/* ---------- توکن‌های اصلی (منتقل از atd-product-card.css) — منبع واحد رنگ‌ها (برند نهایی: آبی #0D4A8B / نارنجی #F5871F) ---------- */
:root {
  /* — رنگ برند — */
  --atd-ink:          #0e1c30;
  --atd-blue:         #0D4A8B;
  --atd-blue-deep:    #11407e;
  --atd-blue-tint:    #eef4fd;
  --atd-orange:       #F5871F;
  --atd-orange-deep:  #d95f04;
  --atd-orange-tint:  #fff3e8;
  --atd-gray:         #5b6b80;
  --atd-mist:         #f6f9fd;
  --atd-line:         #EDF1F5;

  /* — رنگ‌های صفحه محصول (قبلاً در atd-product.css) — */
  --atd-navy:         #0A3D6E;
  --atd-orange-dark:  #C4691A;

  /* — رنگ وضعیت — */
  --atd-ok:           #128a5a;
  --atd-no:           #b03a63;

  /* — شکل — */
  --atd-r:            16px;
  --atd-r-sm:         10px;
  --atd-sh:           0 1px 2px rgba(14,28,48,.05), 0 10px 30px rgba(14,28,48,.07);
  --atd-sh-lg:        0 2px 4px rgba(14,28,48,.06), 0 18px 44px rgba(14,28,48,.12);

  /* — اسلات‌های ثابت کارت محصول (تضمین هم‌اندازگی) — */
  --atd-title-h:      3.4em;
  --atd-spec-h:       26px;
  --atd-star-h:       20px;
  --atd-price-h:      30px;
  --atd-stock-h:      20px;

  /* — توکن‌های منو/متن (از atd-header) — */
  --atd-blue-dark: #093868;
  --atd-muted: #5A6472;
  --atd-border: #E3E8EF;
  --atd-tint: #F7FAFD;
}


/* الیاس‌های سازگاری با نام‌گذاری قدیمِ atd-shop.css نسخه ۷
   (اگر جایی --atdc-* استفاده شده باشد، همچنان کار می‌کند.
    برای کدهای جدید فقط از --atd-* استفاده کنید.) */

:root {
  --atdc-b:    var(--atd-blue);
  --atdc-bd:   var(--atd-blue-deep);
  --atdc-bt:   var(--atd-blue-tint);
  --atdc-o:    var(--atd-orange);
  --atdc-od:   var(--atd-orange-deep);
  --atdc-ot:   var(--atd-orange-tint);
  --atdc-ink:  var(--atd-ink);
  --atdc-g:    var(--atd-gray);
  --atdc-line: var(--atd-line);
  --atdc-mist: var(--atd-mist);
  --atdc-r:    var(--atd-r);
  --atdc-rs:   var(--atd-r-sm);
  --atdc-sh:   var(--atd-sh);
  --atdc-shl:  var(--atd-sh-lg);
  --atdc-ok:   var(--atd-ok);
  --atdc-no:   var(--atd-no);
}

/* ════════════════════════════════════════════════════════════
   ۱) پایه سراسری   (منبع: atd-custom.css)
   ════════════════════════════════════════════════════════════ */

/* ---------- فونت ---------- */

@font-face {
  font-family: 'Vazirmatn';
  src: url('/wp-content/uploads/fonts/Vazirmatn-Regular.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: 'Vazirmatn';
  src: url('/wp-content/uploads/fonts/Vazirmatn-Medium.woff2') format('woff2');
  font-weight: 500;
  font-display: swap;
}

/* ---------- فرم‌ها ---------- */

.form-flat input:not([type="submit"]),
.form-flat textarea,
.form-flat select {
  background-color: rgba(0, 0, 0, .03);
  box-shadow: none;
  border-color: rgba(0, 0, 0, .09);
  color: currentColor !important;
  border-radius: 4px;
  height: 50px;
}

.wpforms-container-full { margin: 0 !important; }

/* ---------- دکمه‌های شناور تماس و واتس‌اپ ---------- */

.telephone-button,
.whatsapp-button {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  position: fixed;
  bottom: 40px;
  z-index: 100;
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
}

.telephone-button { background-color: #ff0000; right: 100px; }

.whatsapp-button { background-color: #008000; right: 25px; }

.telephone-button svg,
.whatsapp-button svg { width: 60%; height: auto; fill: #fff; }

/* ---------- دکمه تماس داخل محتوا ---------- */

.call-button {
  display: inline-block;
  background-color: #fff;
  color: #000;
  padding: 10px 20px;
  border-radius: 30px;
  text-decoration: none;
  transition: all .3s ease;
}

.call-button:hover { background-color: #f5f5f5; }

.phone-icon svg {
  width: 20px;
  height: 20px;
  vertical-align: middle;
  margin-right: 10px;
}

.call-text {
  font-family: 'Vazirmatn', sans-serif;
  font-size: 16px;
  display: inline-block;
  vertical-align: middle;
}

.phone-number {
  font-family: 'Vazirmatn', sans-serif;
  font-size: 14px;
  direction: rtl;
  display: block;
  margin-top: 5px;
}

/* ---------- تصاویر و ویدیوی عمومی ---------- */

.myimg { border-radius: 15px; }

.myvideo,
.myvideo2 {
  box-shadow: 0 3px 6px -4px rgba(0,0,0,.16), 0 3px 6px rgba(0,0,0,.23);
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  min-height: 350px;
}

.myvideo2 {
  width: 75%;
  aspect-ratio: 1/1;
  min-height: 300px;
}

/* ---------- بردکرامب عمومی ---------- */

.rank-math-breadcrumb {
  justify-content: right;
  min-height: 10px;
  background-color: #f1f1f1;
  padding-right: 30px;
  padding-top: 10px;
  display: flex;
  align-items: center;
}

/* استثناء: در آرشیو فروشگاه، atd-shop.css ظاهر خودش را دارد */

/* ---------- مقیاس تیترها ----------
   کلاس‌های .atd-h1/.atd-h2/.atd-h3 در atd-page.css
   عمداً از این مقیاس تبعیت نمی‌کنند. */

.h1,
h1 { font-size: 23px; }

.h2,
h2 { font-size: 21px; }

.h3,
h3 { font-size: 19px; }

.h4,
h4 { font-size: 18px; }

.h5,
h5 { font-size: 16px; }

.h6,
h6 { font-size: 12px; }

/* ---------- مخفی کردن فیلترهای پیش‌فرض ووکامرس ---------- */

.woocommerce-result-count,
.woocommerce-ordering { display: none; }

html { scroll-behavior: smooth; }

/* ===== Design Tokens ===== */

:root {
  --atd-accent: #ff7a30;
  --atd-accent-text: #c9591a;
  --atd-accent-bg: rgba(255, 122, 48, 0.16);
  --atd-text: #2B3440;
  --atd-text-muted: #5b6b7a;
  --atd-text-faint: #9aa7b3;
  --atd-glass-bg: rgba(255, 255, 255, 0.55);
  --atd-glass-bg-hover: rgba(255, 255, 255, 0.75);
  --atd-glass-border: rgba(255, 255, 255, 0.7);
  --atd-gap: 12px;
  --atd-radius-box: 18px;
  --atd-radius-card: 12px;
  --atd-radius-icon: 8px;
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
