/*
Theme Name: Hello Elementor Child
Description: Hello Elementor Child Theme
Author: Your Name
Template: hello-elementor
Version: 1.0.0
*/

/* ====================================
   فونت‌ها
==================================== */
@font-face {
  font-family: "MyClinicFont";
  src: url("/wp-content/themes/hello-theme-child-master/fonts/DanaFaNum-Regular.woff2")
    format("woff2");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "MyClinicFont";
  src: url("/wp-content/themes/hello-theme-child-master/fonts/DanaFaNum-ExtraBold.woff2")
    format("woff2");
  font-weight: bold;
  font-style: normal;
}
@font-face {
  font-family: "MyClinicFont";
  src: url("/wp-content/themes/hello-theme-child-master/fonts/DanaFaNum-Regular.ttf")
    format("ttf");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "MyClinicFont";
  src: url("/wp-content/themes/hello-theme-child-master/fonts/DanaFaNum-ExtraBold.ttf")
    format("ttf");
  font-weight: bold;
  font-style: normal;
}
/* اعمال فونت */
body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
a,
span,
li,
button,
input,
textarea,
div,
.elementor {
  font-family: "MyClinicFont" !important;
}
/* ====================================
   متغیرها و تنظیمات پایه
==================================== */
:root {
  --primary-navy: #1a2b48;
  --primary-red: #c51d25;
  --accent-ochre: #d4a373;
  --bg-cream: #f9f7f2;
  --text-dark: #333333;
  --text-light: #f4f4f4;
}

body {
  margin: 0;
  padding: 0;
  padding-top: 48px; /* جلوگیری از رفتن محتوا زیر هدر شیشه‌ای ثابت */
  font-family:
    "MyClinicFont"; /* اعمال فونت دانا روی کل سایت */
  background-color: var(--bg-cream);
  direction: rtl;
  text-align: right;
}

* {
  box-sizing: border-box;
}

/* ====================================
   تنظیمات هدر مدرن (V2)
==================================== */
/* ====================================
   پایه و متغیرها
==================================== */
.hidden-checkbox {
  display: none !important;
}

/* ====================================
   هدر تمام‌عرض مینیمال
==================================== */
.delojan-header-solid {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100px;
  background-color: #ffffff; /* رنگ سفید خالص و مات */
  border-bottom: 1px solid rgba(0, 0, 0, 0.06); /* خط جداکننده بسیار ظریف */
  z-index: 999;
}

.header-fullwidth-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  height: 100%;
  padding: 0 40px; /* فاصله از طرفین مانیتور */
}

/* لوگو */
.main-svg-logo {
  max-width: 100px;
  width: auto;
  display: block;
}

/* منوی دسکتاپ */
.delojan-menu-list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 35px;
}

.delojan-menu-list li a {
  text-decoration: none;
  color: var(--primary-navy, #1a2b48);
  font-size: 15px;
  font-weight: 600;
  transition: color 0.2s ease;
}

.delojan-menu-list li a:hover {
  color: var(--primary-red, #c51d25);
}

/* آیکون‌ها و دکمه‌ها */
.header-actions-group {
  display: flex;
  align-items: center;
  gap: 20px;
}

.action-btn-svg {
  position: relative;
  cursor: pointer;
  display: flex;
  align-items: center;
  color: var(--primary-navy, #1a2b48);
}

.cart-counter-badge {
  position: absolute;
  top: -6px;
  right: -8px;
  background: var(--primary-red, #c51d25);
  color: #fff;
  font-size: 10px;
  font-weight: bold;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-family: sans-serif;
}

/* استایل دکمه‌های ورود */
.btn-solid-red {
  background-color: var(--primary-red, #c51d25);
  color: #ffffff;
  padding: 8px 22px;
  border-radius: 6px; /* گوشه‌های کمی نرم به جای کاملا گرد */
  text-decoration: none;
  font-weight: bold;
  font-size: 13px;
  transition: background 0.3s;
}
.btn-solid-red:hover {
  background-color: #a0151c;
  color: #fff;
}

.btn-outline-navy {
  background-color: transparent;
  color: var(--primary-navy, #1a2b48);
  border: 1px solid var(--primary-navy, #1a2b48);
  padding: 8px 22px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  font-size: 13px;
  transition: all 0.3s;
}
.btn-outline-navy:hover {
  background-color: var(--bg-cream, #f9f7f2);
}

.mobile-hamburger-btn {
  cursor: pointer;
  display: none; /* در دسکتاپ مخفی است */
  align-items: center;
}

.mobile-cart-btn {
  display: none;
}
/* ====================================
   پنل جستجوی بازشونده (Slide Down Search)
==================================== */
.full-width-search-bar {
  position: fixed;
  top: 100px; /* دقیقاً زیر ارتفاع هدر شما */
  left: 0;
  width: 100%;
  background-color: #ffffff;
  border-bottom: 2px solid var(--accent-ochre);
  z-index: 998;
  height: 0; /* در حالت عادی مخفی */
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

/* نمایش پنل وقتی چک‌باکس فعال می‌شود */
#search-bar-toggle:checked ~ .full-width-search-bar {
  height: 80px; /* ارتفاع پنل جستجو */
}

.search-container-inner {
  max-width: 1200px;
  margin: 0 auto;
  height: 100%;
  padding: 0 20px;
  display: flex;
  align-items: center;
}

.search-form-header {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 15px;
}

.search-field-input {
  flex-grow: 1;
  border: none;
  background: var(--bg-cream);
  padding: 12px 20px;
  border-radius: 8px;
  font-family: "MyClinicFont";
  font-size: 16px;
  color: var(--primary-navy);
  outline: none;
}

.search-submit-btn {
  background-color: var(--primary-navy);
  color: #fff;
  border: none;
  padding: 12px 25px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.3s;
}

.search-submit-btn:hover {
  background-color: var(--primary-red);
}

.close-search-btn {
  font-size: 30px;
  color: #999;
  cursor: pointer;
  line-height: 1;
  margin-right: 10px;
}

/* رسپانسیو برای موبایل */
@media (max-width: 992px) {
  .full-width-search-bar {
    top: 100px; /* هماهنگ با ارتفاع هدر موبایل */
  }
  #search-bar-toggle:checked ~ .full-width-search-bar {
    height: 120px; /* ارتفاع بیشتر برای موبایل */
  }
  .search-form-header {
    flex-wrap: wrap;
    justify-content: center;
    padding: 10px 0;
  }
  .search-submit-btn {
    width: 70%;
  }
}
/* ====================================
   سایدبارهای کشویی (CSS-Only Logic)
==================================== */
.fullscreen-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.side-drawer {
  position: fixed;
  top: 0;
  height: 100vh;
  width: 320px;
  background: #fff;
  z-index: 1001;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
}

/* منو از راست باز می‌شود */
.nav-drawer {
  right: 0;
  transform: translateX(100%);
}
#mobile-menu-toggle:checked ~ .nav-drawer {
  transform: translateX(0);
}
#mobile-menu-toggle:checked ~ .fullscreen-overlay:not(.cart-overlay) {
  opacity: 1;
  visibility: visible;
}

/* سبد خرید از چپ باز می‌شود (برای تمایز بهتر) */
.cart-drawer {
  left: 0;
  transform: translateX(-100%);
}
#cart-sidebar-toggle:checked ~ .cart-drawer {
  transform: translateX(0);
}
#cart-sidebar-toggle:checked ~ .cart-overlay {
  opacity: 1;
  visibility: visible;
}
/* مخفی کردن کلمه Shipment */
.woocommerce-shipping-totals.shipping th {
    font-size: 0 !important; 
}

/* تزریق کلمه فارسی */
.woocommerce-shipping-totals.shipping th::before {
    content: "حمل و نقل"; 
    font-size: 15px !important; /* اندازه فونت را متناسب با قالب خود تنظیم کنید */
    display: inline-block;
    color: var(--primary-navy, #1a2b48); /* می‌توانید رنگ را تغییر دهید */
    font-weight: bold;
}
/* داخل سایدبارها */
.drawer-header-box {
  display: flex !important;
  margin-right: 20px !important;
  align-items: center !important;
  border-bottom: 1px solid #e2e8f0 !important;
  padding-bottom: 15px !important;
  margin-top:50px !important;
  margin-bottom: 20px !important;
}
.drawer-header-box .drawer-title {
  font-size: 18px !important;
  font-weight: 900 !important;
  text-align: center !important;
  color: var(--primary-navy, #102c57) !important;
}
.drawer-header-box .close-drawer-btn {
  background: transparent !important; /* حذف پس‌زمینه مربعی قبلی */
  width: 24px !important;
  height: 24px !important;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0 !important;
  filter: brightness(0); /* رنگ آیکون را کاملاً مشکی می‌کند */
}
.drawer-header-box .close-drawer-btn:hover {
  transform: rotate(90deg) !important;
  background: #fecdd3 !important;
}
/* ==================================================
   منوی کشویی (Dropdown) حرفه‌ای برای زیرمنوها
   این بلوک را به انتهای style.css اضافه کن.
   فقط نمایش زیرمنوها را زیبا می‌کند؛ به استایل کلی صفحه کاری ندارد.
   ارتفاع هدر = 100px (هماهنگ با CSS فعلی).
================================================== */

/* هر آیتم منو که زیرمنو دارد، مرجع موقعیت زیرمنو می‌شود */
.delojan-menu-list li {
  position: relative;
}

/* فلش کوچک کنار آیتم‌هایی که زیرمنو دارند */
.delojan-menu-list li.menu-item-has-children > a::after {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 6px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg) translateY(-2px);
  transition: transform 0.3s ease;
  opacity: 0.6;
}
.delojan-menu-list li.menu-item-has-children:hover > a::after {
  transform: rotate(135deg) translateY(0);
  opacity: 1;
}

/* خود زیرمنو (پنل کشویی) */
.delojan-menu-list .sub-menu {
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 220px;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(16, 44, 87, 0.06);
  border-radius: 16px;
  box-shadow: 0 15px 40px rgba(16, 44, 87, 0.12);
  list-style: none;
  margin: 0;
  padding: 10px;
  /* حالت بسته */
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
  z-index: 1000;
}

/* پل نامرئی تا موقع حرکت موس به زیرمنو، بسته نشود */
.delojan-menu-list li.menu-item-has-children::before {
  content: "";
  position: absolute;
  top: 100%;
  right: 0;
  width: 100%;
  height: 18px;
  background: transparent;
}

/* باز شدن زیرمنو با هاور */
.delojan-menu-list li:hover > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(8px);
}

/* آیتم‌های داخل زیرمنو */
.delojan-menu-list .sub-menu li {
  margin: 0;
}
.delojan-menu-list .sub-menu li a {
  display: block;
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--primary-navy, #1a2b48);
  white-space: nowrap;
  transition: background 0.25s ease, color 0.25s ease, padding 0.25s ease;
}
.delojan-menu-list .sub-menu li a:hover {
  background: rgba(197, 29, 37, 0.07);
  color: var(--primary-red, #c51d25);
  padding-right: 22px;
}

/* در دسکتاپ، فلش زیرمنو در زیرمنوهای تودرتو سمت چپ‌چین شود */
.delojan-menu-list .sub-menu li.menu-item-has-children > a::after {
  float: left;
  margin-top: 6px;
}

/* زیرمنوی سطح دوم (تودرتو) کنار والد باز شود */
.delojan-menu-list .sub-menu .sub-menu {
  top: 0;
  right: 100%;
  margin-right: 8px;
}

/* در موبایل/تبلت این dropdown غیرفعال است (منوی موبایل جدا دارد) */
@media (max-width: 1060px) {
  .delojan-menu-list .sub-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: transparent;
    border: none;
    padding: 0;
    backdrop-filter: none;
  }
}
/* ==================================================
   مگامنوی چندستونه‌ی محصولات (خودکار از دسته‌بندی ووکامرس)
   به انتهای style.css اضافه کن. ارتفاع هدر = 100px.
================================================== */

/* آیتمی که مگامنو دارد، مرجع موقعیت می‌شود */
.delojan-menu-list li.menu-item-has-megamenu {
  position: static; /* static تا مگامنو نسبت به کل هدر تمام‌عرض شود */
}

/* فلش کوچک کنار «محصولات» */
.delojan-menu-list li.menu-item-has-megamenu > a::after {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 6px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg) translateY(-2px);
  transition: transform 0.3s ease;
  opacity: 0.6;
}
.delojan-menu-list li.menu-item-has-megamenu:hover > a::after {
  transform: rotate(135deg);
  opacity: 1;
}

/* پنل مگامنو (تمام‌عرض، زیر هدر) */
.delojan-megamenu {
  position: absolute;
  top: 100px; /* دقیقاً زیر هدر */
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(16, 44, 87, 0.06);
  box-shadow: 0 20px 40px rgba(16, 44, 87, 0.1);
  /* حالت بسته */
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
  z-index: 998;
}

/* باز شدن با هاور روی آیتم محصولات */
.delojan-menu-list li.menu-item-has-megamenu:hover .delojan-megamenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* محتوای داخلی مگامنو: گرید ستون‌ها */
.delojan-megamenu-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 30px;
}

/* هر ستون = یک دسته‌ی اصلی */
.megamenu-col-title {
  display: block;
  color: var(--primary-navy, #102c57);
  font-size: 16px;
  font-weight: 900;
  text-decoration: none;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid rgba(197, 29, 37, 0.15);
  transition: color 0.3s ease;
}
.megamenu-col-title:hover {
  color: var(--primary-red, #c51d25);
}

/* لیست زیرشاخه‌ها */
.megamenu-sub-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.megamenu-sub-list li {
  margin-bottom: 8px;
}
.megamenu-sub-list li a {
  display: block;
  color: #64748b;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  padding: 4px 0;
  transition: color 0.25s ease, padding 0.25s ease;
}
.megamenu-sub-list li a:hover {
  color: var(--primary-red, #c51d25);
  padding-right: 6px;
}

/* در موبایل/تبلت مگامنوی دسکتاپ مخفی (منوی موبایل جدا دارد) */
@media (max-width: 992px) {
  .delojan-megamenu {
    display: none !important;
  }
}
/* ==================================================
   آکاردئون دسته‌بندی محصولات در منوی موبایل
   به انتهای style.css اضافه کن.
================================================== */

/* هدر آیتم محصولات (لینک + فلش) */
.mobile-products-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #f1f5f9;
}
.mobile-products-header a {
  color: var(--primary-navy, #1a2b48);
  text-decoration: none;
  font-weight: bold;
  font-size: 15px;
}
.mobile-products-toggle {
  cursor: pointer;
  font-size: 12px;
  color: #94a3b8;
  transition: transform 0.3s ease;
  padding: 5px 10px;
}
.mobile-products-parent.open .mobile-products-toggle {
  transform: rotate(180deg);
  color: var(--primary-red, #c51d25);
}

/* لیست دسته‌های اصلی (بسته در حالت عادی) */
.mobile-products-children {
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}
.mobile-products-parent.open .mobile-products-children {
  max-height: 2000px; /* عدد بزرگ تا محتوا جا شود */
}

/* آیتم هر دسته‌ی اصلی */
.mobile-cat-item {
  padding-right: 15px;
  border-bottom: 1px solid rgba(241, 245, 249, 0.6);
}
.mobile-cat-item > a {
  display: block;
  padding: 10px 0;
  color: var(--primary-navy, #1a2b48);
  text-decoration: none;
  font-weight: 800;
  font-size: 14px;
  transition: color 0.3s;
}
.mobile-cat-item > a:hover {
  color: var(--primary-red, #c51d25);
}

/* زیرشاخه‌ها */
.mobile-cat-subs {
  list-style: none;
  padding: 0 15px 8px 0;
  margin: 0;
}
.mobile-cat-subs li a {
  display: block;
  padding: 6px 0;
  color: #64748b;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.25s, padding 0.25s;
}
.mobile-cat-subs li a:hover {
  color: var(--primary-red, #c51d25);
  padding-right: 5px;
}

/*--------------------*/
/* ۲. لیست محصولات داخل سبد */
ul.woocommerce-mini-cart {
  padding: 0 !important;
  margin: 0 !important;
  list-style: none !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 15px !important;
  max-height: calc(
    100vh - 280px
  ) !important; /* ایجاد اسکرول برای زمانی که محصول زیاد است */
  overflow-y: auto !important;
  overflow-x: hidden !important;
  padding-left: 10px !important; /* جا باز کردن برای اسکرول‌بار */
}

/* اسکرول‌بار اختصاصی برای لیست محصولات */
ul.woocommerce-mini-cart::-webkit-scrollbar {
  width: 6px;
}
ul.woocommerce-mini-cart::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 10px;
}

/* کارت هر محصول */
ul.woocommerce-mini-cart li.woocommerce-mini-cart-item {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important; /* تراز کردن عمودی متن‌ها با عکس */
  justify-content: flex-start !important; /* شروع از سمت راست */
  gap: 15px !important; /* فاصله بین نام محصول و قیمت */
  flex-wrap: nowrap !important;
}

ul.woocommerce-mini-cart li.woocommerce-mini-cart-item:hover {
  border-color: var(--accent-ochre, #d4a373) !important;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03) !important;
}

/* عکس محصول */
ul.woocommerce-mini-cart li.woocommerce-mini-cart-item img {
  position: static !important; /* حذف ترازبندی مطلق قبلی */
  transform: none !important;
  width: 60px !important;
  height: 60px !important;
  border-radius: 12px !important;
  border: 1px solid #f1f5f9 !important;
  margin: 0 !important; /* حذف مارجین‌های پیش‌فرض */
}
/* ۴. عنوان محصول */
.mini-cart-item-title {
  margin-right: 0 !important; /* حذف مارجین راست قبلی */
  padding-right: 0 !important; /* حذف پدینگ راست قبلی */
}
/* نام محصول */
ul.woocommerce-mini-cart li.woocommerce-mini-cart-item a:not(.remove) {
  display: inline-block !important;
  margin-bottom: 0 !important; /* حذف فاصله پایینی که باعث شکست خط می‌شد */
  white-space: nowrap !important; /* جلوگیری از دو خط شدن اسم */
  overflow: hidden !important;
  text-overflow: ellipsis !important; /* اگر اسم خیلی طولانی بود سه نقطه می‌شود */
  max-width: 55% !important; /* محدود کردن عرض برای جا دادن قیمت */
}
/* ۲. کانتینر جدید برای جزئیات متن (عنوان و قیمت) */
.mini-cart-details {
  flex-grow: 1 !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  padding-right: 15px !important; /* فاصله متن از عکس سمت راست */
}
/* تعداد و قیمت */
ul.woocommerce-mini-cart li.woocommerce-mini-cart-item .quantity {
  display: inline-block !important;
  margin-top: 0 !important;
  white-space: nowrap !important;
}
ul.woocommerce-mini-cart li.woocommerce-mini-cart-item .quantity .amount {
  color: var(--primary-red, #c51d25) !important;
  font-weight: 900 !important;
}

/* ۳. دکمه حذف محصول (تبدیل به یک نشان قرمز کوچک) */
ul.woocommerce-mini-cart li.woocommerce-mini-cart-item a.remove {
  background: transparent !important; /* حذف پس‌زمینه مربعی قبلی */
  border: none !important;
  width: 20px !important;
  height: 20px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  left: 10px !important; /* قرارگیری در سمت چپ کارت */
  color: var(--primary-red, #c51d25) !important; /* رنگ قرمز برای نشان حذف */
}

ul.woocommerce-mini-cart li.woocommerce-mini-cart-item a.remove:hover {
  color: #a0151c !important;
  transform: translateY(-50%) scale(1.1) !important;
}

/* ۴. بخش جمع کل */
.woocommerce-mini-cart__total.total {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  padding: 20px 0 !important;
  margin: 20px 0 !important;
  border-top: 1px dashed #cbd5e1 !important;
  border-bottom: 1px dashed #cbd5e1 !important;
}

.woocommerce-mini-cart__total.total strong {
  font-size: 15px !important;
  color: #64748b !important;
  font-weight: 800 !important;
}

.woocommerce-mini-cart__total.total .amount {
  font-size: 18px !important;
  color: var(--primary-navy, #102c57) !important;
  font-weight: 900 !important;
}

/* ۵. دکمه‌های پایین سبد خرید */
.woocommerce-mini-cart__buttons.buttons {
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
  margin: 0 !important;
}

/* دکمه مشاهده سبد خرید (دکمه فرعی) */
.woocommerce-mini-cart__buttons.buttons a.button:not(.checkout) {
  background: var(--bg-cream, #f9f7f2) !important;
  color: var(--primary-navy, #102c57) !important;
  border: 1px solid #cbd5e1 !important;
  padding: 12px !important;
  border-radius: 12px !important;
  text-align: center !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  text-decoration: none !important;
  transition: 0.3s ease !important;
  display: block !important;
}

.woocommerce-mini-cart__buttons.buttons a.button:not(.checkout):hover {
  background: #e2e8f0 !important;
}

/* دکمه تسویه حساب (دکمه اصلی) */
.woocommerce-mini-cart__buttons.buttons a.button.checkout {
  background: var(--primary-red, #c51d25) !important;
  color: #ffffff !important;
  padding: 15px !important;
  border-radius: 14px !important;
  text-align: center !important;
  font-size: 16px !important;
  font-weight: 900 !important;
  text-decoration: none !important;
  transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
  display: block !important;
  box-shadow: 0 5px 15px rgba(197, 29, 37, 0.2) !important;
}

.woocommerce-mini-cart__buttons.buttons a.button.checkout:hover {
  background: #a0151c !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 20px rgba(197, 29, 37, 0.3) !important;
}
.drawer-body {
  padding: 15px;
  overflow-y: auto;
  flex-grow: 1;
  display: grid;
  align-content: space-between;
}
/* حذف دکمه تسویه‌حساب از سبد خرید کشویی Elementor */
.elementor-menu-cart__footer-buttons .elementor-button--checkout {
  display: none !important;
}

/* دکمه مشاهده سبد خرید تمام‌عرض شود */
.elementor-menu-cart__footer-buttons .elementor-button--view-cart {
  width: 100%;
  justify-content: center;
}
.elementor-button.elementor-size-md{
    color: #fff;
    background: #C51D25;
}
.elementor-menu-cart__product-name .product-name{
    color: #C51D25;
}
.mobile-nav-list {
  list-style: none;
  padding: 0;
  margin: 0 0 30px 0;
}
.mobile-nav-list li a {
  display: block;
  padding: 12px 0;
  border-bottom: 1px solid #f5f5f5;
  color: var(--text-dark);
  text-decoration: none;
  font-weight: bold;
}

.mobile-bottom-actions {
  display: flex;
  flex-direction: column;
  gap: 15px;
  border-top: 1px solid #eee;
  padding-top: 20px;
}
.full-width {
  text-align: center;
  display: block;
}

/* ====================================
   رسپانسیو (موبایل و تبلت)
==================================== */
@media (max-width: 1062px) {
  .desktop-main-nav,
  .desktop-auth,
  .desktop-cart-btn {
    display: none !important;
  }
  .mobile-hamburger-btn,
  .mobile-cart-btn {
    display: flex;
  }
  .header-fullwidth-container {
    padding: 0 20px;
  }
  .delojan-header-solid {
    height: 100px;
  }
  .site-main {
    margin-top: 20px !important;
  }
  .main-svg-logo {
    max-width: 10% !important;
  }
}

/* ====================================
   فوتر تمام‌عرض (Footer)
==================================== */
.site-footer {
  background-color: var(--primary-navy);
  color: var(--text-light);
  padding: 60px 40px 20px;
  width: 100%;
  margin-top: 50px;
  border-radius: 16px;
}
.footer-container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 30px;
  width: 100%;
}

.footer-column {
  flex: 1;
  min-width: 220px;
}

.footer-column h3,
.footer-column h4 {
  color: var(--primary-navy);
  font-size: 1.3rem;
  margin-bottom: 20px;
  border-bottom: 2px solid rgba(212, 163, 115, 0.2);
  padding-bottom: 10px;
  display: inline-block;
}

.footer-column p {
  line-height: 1.8;
  color: var(--primary-navy);
}

.footer-links-list {
  list-style: none;
  padding: 0;
}
.footer-links-list li {
  margin-bottom: 10px;
}
.footer-links-list a {
  color: var(--primary-navy);
  text-decoration: none;
  transition: color 0.3s;
}
.footer-links-list a:hover {
  color: var(--accent-ochre);
}

.social-icons {
  gap: 15px;
  margin-top: 25px;
  text-align: center;
  color: var(--primary-navy);
}
.footer-icon {
  width: 30px !important;
  height: 30px !important; /* تعیین ارتفاع برای جلوگیری از به هم ریختگی */
  object-fit: contain;
  /* یک ترانزیشن فنری و نرم برای حرکت */
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.27) !important;
  filter: drop-shadow(
    0 2px 4px rgba(0, 0, 0, 0.1)
  ); /* سایه نامحسوس در حالت عادی */
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit; /* رنگ را از فوتر به ارث می‌برد */
  transition: color 0.3s ease;
}

.social-link:hover {
  color: var(--primary-red, #c51d25) !important;
}
.social-link:hover .footer-icon {
  /* پرش به بالا، کمی بزرگ‌نمایی و یک چرخش بسیار ریز */
  transform: translateY(-5px) scale(1.15) rotate(-5deg);
  /* ایجاد یک هاله رنگی درخشان (Glow) زیر آیکون */
  filter: drop-shadow(0 8px 12px rgba(197, 29, 37, 0.35));
}
.footer-bottom {
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 40px;
  padding-top: 20px;
  width: 100%;
  color: var(--primary-navy);
}
/* حذف فاصله‌های اضافی که المنتور به بدنه سایت می‌دهد */
html,
body {
  margin: 0 !important;
  overflow-x: hidden !important; /* جلوگیری از اسکرول افقی */
}

body {
  padding-top: 48px !important; /* حفظ فضای هدر شیشه‌ای */
}

/* رفع باگ چسبیدن فوتر در المنتور */
.site-footer {
  margin-bottom: 50px !important;
  box-sizing: border-box !important;
}
/* ==================================================
   نوار چسبان شبکه‌های اجتماعی دل‌وجان
================================================== */
.delojan-sticky-sidebar {
  position: fixed;
  left: 15px; /* قرارگیری در سمت چپ تا مزاحم اسکرول‌بار مرورگر نشود */
  top: 50%;
  transform: translateY(-50%); /* وسط‌چین کردن دقیق عمودی */
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 9999; /* قرارگیری روی تمام عناصر سایت */
}

/* استایل دکمه‌ها */
.sticky-social-link {
  position: relative;
  width: 45px;
  height: 45px;
  background-color: #ffffff;
  border-radius: 50%; /* دکمه‌های کاملا گرد */
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  border: 1px solid #e2e8f0;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.27);
  text-decoration: none;
}

/* استایل تصاویر آیکون */
.sticky-icon {
  width: 22px !important;
  height: 22px !important;
  object-fit: contain;
  transition: transform 0.3s ease;
}

/* افکت هاور روی دکمه‌ها */
.sticky-social-link:hover {
  transform: scale(1.15) translateX(5px); /* کمی بزرگ شدن و حرکت به سمت راست */
  box-shadow: 0 8px 25px rgba(197, 29, 37, 0.25); /* سایه قرمز رنگ */
  border-color: var(--primary-red, #c51d25);
}

.sticky-social-link:hover .sticky-icon {
  transform: rotate(-10deg);
}

/* ==================================================
   تولتیپ (متن راهنما که با هاور ظاهر می‌شود)
================================================== */
.social-tooltip {
  position: absolute;
  left: 60px; /* فاصله از سمت چپ دکمه */
  background-color: var(--primary-navy, #1a2b48);
  color: #ffffff;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-10px); /* نقطه شروع انیمیشن */
  transition: all 0.3s ease;
  pointer-events: none;
}

/* مثلث کوچک کنار تولتیپ */
.social-tooltip::before {
  content: "";
  position: absolute;
  left: -5px;
  top: 50%;
  transform: translateY(-50%);
  border-width: 5px 5px 5px 0;
  border-style: solid;
  border-color: transparent var(--primary-navy, #1a2b48) transparent transparent;
}

/* ظاهر شدن تولتیپ با هاور */
.sticky-social-link:hover .social-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

/* ==================================================
   رسپانسیو (در موبایل نوار را کمی کوچکتر می‌کنیم)
================================================== */
@media (max-width: 768px) {
  .footer-column {
    text-align: center;
  }
  .site-footer {
    display: flexbox;
    padding: 20px 20px;
  }
}
@media (max-width: 768px) {
  .delojan-sticky-sidebar {
    left: 10px;
  }
  .sticky-social-link {
    width: 40px;
    height: 40px;
  }
  .sticky-icon {
    width: 18px !important;
    height: 18px !important;
  }
  /* در موبایل تولتیپ‌ها را مخفی می‌کنیم تا صفحه شلوغ نشود */
  .social-tooltip {
    display: none !important;
  }
}
/* ==================================================
   ۱. استایل پایه‌ای کانتینر صفحه فروشگاه (گلس‌مورفیسم)
================================================== */
.glass-shop-page {
  position: relative;
  background: transparent !important;
  padding: 60px 20px;
  direction: rtl;
  z-index: 1;
}

/* گرید اصلی (ستون راست محتوا، ستون چپ سایدبار) */
.glass-blog-container {
  max-width: 1140px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 40px;
  align-items: start;
}

/* کارت‌های شیشه‌ای پایه */
.glass-card {
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 24px;
  box-shadow: 0 15px 35px rgba(16, 44, 87, 0.04);
  padding: 40px;
}

/* ==================================================
   ۲. هدر صفحه آرشیو (تایتل)
================================================== */
.glass-archive-header {
  margin-bottom: 40px;
  text-align: center;
}

.glass-archive-title {
  font-size: 32px;
  font-weight: 900;
  margin: 0 0 15px 0;
}

.glass-archive-description {
  color: #475569;
  font-size: 15px;
  line-height: 1.8;
}

/* ==================================================
   ۳. شبکه محصولات (Product Grid)
================================================== */
/* تنظیم کانتینر اصلی به عنوان شبکه (Grid) */
.glass-product-grid,
.glass-product-grid ul.products {
  display: grid !important;
  grid-template-columns: repeat(
    2,
    1fr
  ) !important; /* دقیقاً 2 ستون با عرض مساوی */
  gap: 30px !important; /* فاصله بین کارت‌ها */
  padding: 0 !important;
  margin: 0 !important;
  list-style: none !important;
  width: 100% !important;
}
/* حذف کدهای مزاحم Before/After ووکامرس در لیست‌ها */
.glass-product-grid::before,
.glass-product-grid::after,
.glass-product-grid ul.products::before,
.glass-product-grid ul.products::after {
  display: none !important;
}
.glass-product-grid ul.products {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important; /* دو محصول در هر ردیف */
  gap: 30px !important;
  padding: 0 !important;
  margin: 0 !important;
  list-style: none !important;
}

/* حذف استایل‌های مزاحم پیش‌فرض ووکامرس */
.glass-product-grid ul.products::before,
.glass-product-grid ul.products::after {
  display: none !important;
}

/* کارت هر محصول هنری */
.glass-product-grid ul.products li.product {
  background: rgba(255, 255, 255, 0.6) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.9) !important;
  border-radius: 24px !important;
  padding: 20px !important;
  margin: 0 !important;
  width: 100% !important;
  transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
  text-align: center;
}

.glass-product-grid ul.products li.product:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(16, 44, 87, 0.08);
  background: rgba(255, 255, 255, 0.9) !important;
}

/* تصویر محصول */
.glass-product-grid ul.products li.product img {
  border-radius: 18px !important;
  margin-bottom: 15px !important;
  transition: 0.4s ease !important;
  width: 100% !important;
  height: auto !important;
  object-fit: cover !important;
}
.woocommerce-page img {
  border-radius: 15px !important;
}
.glass-product-grid ul.products li.product:hover img {
  transform: scale(1.05);
}

/* عنوان و قیمت محصول */
.woocommerce-loop-product__title {
  color: #102c57 !important;
  font-size: 18px !important;
  font-weight: 900 !important;
  margin-bottom: 10px !important;
}

.glass-product-grid .price {
  color: #475569 !important;
  font-family: "MyClinicFont";
  font-weight: 800 !important;
  font-size: 16px !important;
  margin-bottom: 20px !important;
  display: block !important;
}

.glass-product-grid .price ins {
  text-decoration: none !important;
  color: #c51d25 !important; /* قیمت با تخفیف به رنگ قرمز */
}

/* دکمه افزودن به سبد خرید در کارت */
.add_to_cart_button,
.product_type_variable {
  background: rgba(248, 87, 30, 0.1) !important;
  color: #f8571e !important;
  padding: 10px 24px !important;
  border-radius: 12px !important;
  font-weight: 800 !important;
  font-size: 14px !important;
  text-decoration: none !important;
  transition: 0.3s !important;
  display: inline-block !important;
}

.add_to_cart_button:hover,
.product_type_variable:hover {
  background: #102c57 !important;
  color: #fff !important;
  transform: translateY(-2px);
}

/* ==================================================
   ۴. سایدبار شیشه‌ای
================================================== */
.glass-sidebar {
  display: flex;
  flex-direction: column;
  gap: 30px;
  position: sticky;
  top: 40px; /* ثابت ماندن سایدبار موقع اسکرول */
}

.glass-widget {
  padding: 30px !important;
}

/* هاور شدن لینک دسته‌بندی‌ها */
.categories-list ul li a:hover {
  color: #f8571e !important;
  padding-right: 5px; /* یک حرکت ریز به سمت چپ موقع هاور */
}
.promo-widget .glass-btn {
  padding: 10px 15px !important;
  border-radius: 15px !important;
}

/* هاور دکمه مشاوره رایگان */
.promo-widget .glass-btn:hover {
  background: #f8571e !important;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(248, 87, 30, 0.2);
}

/* ==================================================
   ۵. صفحه‌بندی (Pagination)
================================================== */
.glass-pagination {
  margin-top: 50px;
  text-align: center;
}

.glass-pagination .nav-links {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.glass-pagination .page-numbers {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.8);
  color: #102c57;
  font-weight: 800;
  text-decoration: none;
  transition: 0.3s;
}

.glass-pagination .page-numbers:hover {
  background: rgba(255, 255, 255, 0.9);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(16, 44, 87, 0.05);
}

.glass-pagination .page-numbers.current {
  background: #102c57;
  color: #fff;
  border-color: #102c57;
}

/* ==================================================
   ۶. ریسپانسیو (موبایل و تبلت)
================================================== */
@media (max-width: 992px) {
  /* سایدبار می‌افتد زیر محصولات */
  .glass-blog-container {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .glass-sidebar {
    position: static;
  }
}

@media (max-width: 768px) {
  /* محصولات در موبایل تک‌ستونه می‌شوند */
  .glass-product-grid ul.products {
    grid-template-columns: 1fr !important;
    justify-items: center;
  }
  .glass-product-grid ul.products li.product {
    max-width: 380px; /* جلوگیری از کشیدگی بیش از حد عکس در موبایل */
  }
}
/* ==================================================
   استایل‌های جایگزین شده از فایل PHP آرشیو محصولات
================================================== */

/* عنوان آرشیو */
.glass-archive-title {
  color: var(--primary-navy, #102c57);
}

/* بخش عدم وجود محصول */
.no-results {
  text-align: center;
  padding: 40px;
}

.no-results h2 {
  color: var(--primary-red, #f8571e);
  margin-bottom: 15px;
}

.no-results p {
  color: #64748b;
}

/* ویجت دسته‌بندی‌ها */
.category-widget .widget-title {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--primary-navy, #102c57);
  border-bottom: 1px solid rgba(16, 44, 87, 0.1);
  padding-bottom: 15px;
  margin-bottom: 15px;
}

/* رنگ آیکون SVG در تایتل ویجت */
.category-widget .widget-title svg {
  stroke: var(--primary-navy, #102c57);
}

.categories-list ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.categories-list ul li {
  margin-bottom: 10px;
}

.categories-list ul li a {
  color: #475569;
  text-decoration: none;
  transition: 0.3s;
}

/* ویجت پروموشن (راهنمای خرید) */
.promo-widget {
  text-align: center;
}

.promo-widget .promo-title {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  color: var(--primary-red, #f8571e);
  border: none;
  margin-bottom: 10px;
}

.promo-widget .promo-title svg {
  stroke: var(--primary-red, #f8571e);
}

.promo-widget .promo-desc {
  color: #64748b;
  font-size: 14px;
  margin-bottom: 20px;
  line-height: 1.6;
}

/* دکمه اختصاصی ویجت پروموشن */
.glass-btn.promo-btn {
  background: var(--primary-navy, #102c57);
  color: #fff;
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  display: inline-block;
  font-weight: bold;
  transition: 0.3s;
}

.glass-btn.promo-btn:hover {
  background: #0f172a; /* سرمه‌ای تیره‌تر در حالت هاور */
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(16, 44, 87, 0.2);
}
/* ==================================================
   استایل دکمه "مشاهده سبد خرید" (بعد از افزودن محصول در آرشیو)
================================================== */
a.added_to_cart.wc-forward {
  display: none;
}
.cart_totals{
    width: 100% !important;
}
.cart_totals .calculated_shipping h2 {
    display: none !importnat;
}
.woocommerce-message{
  background: #fff;
  border: 1px dashed var(--accent-ochre);
  padding: 15px 20px;
  border-radius: 14px;
  cursor: pointer;
  color: var(--primary-navy);
  font-weight: 400;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 50px;
}
.woocommerce-message::before{
    display: none !important;
}
@media (max-width: 576px){
    .woocommerce-message{
        margin-top: 10px;
    }
    .woocommerce{
        margin-top: 0 !important;
    }
}
a.added_to_cart.wc-forward:hover {
  background: var(--primary-red, #f8571e) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 5px 15px rgba(248, 87, 30, 0.2) !important;
}
/* ==================================================
   استایل‌های پایه و گرید صفحه تک‌محصول گالری (نسخه نهایی)
================================================== */

/* ۱. کانتینر اصلی صفحه */
.glass-product-container {
  width: 100%;
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 15px;
  display: flex;
  flex-direction: column;
  gap: 40px;
  direction: rtl; /* راست‌چین استاندارد */
}

/* ۲. گرید اصلی بالا (عکس در راست، اطلاعات در چپ) */
.product-hero-grid {
  display: grid !important;
  grid-template-columns: 45% 1fr !important; /* عکس 45 درصد، اطلاعات بقیه فضا */
  gap: 40px !important;
  align-items: start !important; /* تراز شدن ستون‌ها از بالاترین نقطه */
}

/* ۳. استایل شیشه‌ای مشترک برای تمام باکس‌ها */
.glass-card {
  background: rgba(255, 255, 255, 0.65) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border: 1px solid rgba(255, 255, 255, 0.9) !important;
  border-radius: 24px !important;
  padding: 40px !important;
  box-shadow: 0 15px 35px rgba(16, 44, 87, 0.04) !important;
}

/* ==================================================
   بخش گالری عکس محصول (ستون راست)
================================================== */
.product-gallery-box {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 30px !important; /* پدینگ ظریف‌تر برای کادر عکس */
}

/* کادر محافظ عکس اصلی (جلوگیری از غول‌پیکر شدن) */
.delojan-main-image {
  width: 100% !important;
  border-radius: 16px;
  overflow: hidden;
  background: #ffffff; /* پس‌زمینه سفید برای آثار هنری که ترنسپرنت هستند */
  box-shadow: 0 5px 20px rgba(16, 44, 87, 0.05);
  border: 1px solid rgba(16, 44, 87, 0.05);
  position: relative;
}

.delojan-main-image img {
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 1 / 1 !important; /* عکس‌ها را مجبور می‌کند در کادر مربعی بی‌نقص بمانند */
  object-fit: contain !important; /* برای آثار هنری contain بهتر است تا هیچ‌کجای اثر بریده نشود */
  display: block !important;
  margin: 0 auto !important;
  transition: opacity 0.3s ease;
}

/* گالری بندانگشتی زیر عکس اصلی */
.delojan-gallery-thumbnails {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 4 عکس کوچک در یک ردیف */
  gap: 12px;
}

.delojan-thumb {
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  opacity: 0.5;
  border: 2px solid transparent;
  transition: all 0.3s ease;
  background: #fff;
}

.delojan-thumb img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block;
}

.delojan-thumb:hover {
  opacity: 0.8;
  transform: translateY(-2px);
}

.delojan-thumb.active {
  opacity: 1;
  border-color: var(--primary-navy, #102c57);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(16, 44, 87, 0.1);
}

/* ==================================================
   ستون اطلاعات محصول (ستون چپ)
================================================== */
.product-info-box {
  display: flex;
  flex-direction: column;
}

.product-title {
  color: var(--primary-navy, #102c57);
  font-size: 30px;
  font-weight: 900;
  margin-bottom: 20px;
  line-height: 1;
}

.product-meta-row {
  display: flex;
  gap: 20px;
  font-size: 14px;
  color: #64748b;
  margin-bottom: 0;
  padding-bottom: 20px;
  border-bottom: 1px dashed rgba(16, 44, 87, 0.1);
}

.product-price-box {
  background: rgba(255, 255, 255, 0.5);
  padding: 20px 25px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  margin-bottom: 0;
}
.product-actions {
  padding: 0 !important;
}
.price-label {
  font-size: 14px;
  color: #475569;
  margin-bottom: 5px;
  display: block;
}

.main-price .amount {
  font-size: 28px !important;
  font-weight: 900 !important;
  color: var(--primary-navy, #102c57) !important;
}

/* ==================================================
   ریسپانسیو (برای تبلت و موبایل)
================================================== */
@media (max-width: 992px) {
  /* در تبلت، گرید شکسته می‌شود و به حالت یک ستونه زیر هم درمی‌آید */
  .product-hero-grid {
    grid-template-columns: 1fr !important;
    gap: 30px !important;
  }

  .product-gallery-box {
    padding: 20px !important;
    max-width: 600px;
    margin: 0 auto; /* در حالت موبایل عکس وسط‌چین می‌شود */
    width: 100%;
  }

  .product-title {
    font-size: 24px;
    text-align: center;
  }
}
@media (max-width: 576px) {
  .product-meta-row {
    flex-wrap: nowrap !important; /* جلوگیری از رفتن به خط بعدی */
    justify-content: center !important; /* وسط‌چین کردن برای زیبایی در موبایل */
    gap: 12px !important; /* کاهش فاصله بین آیتم‌ها تا در موبایل جا شوند */
    font-size: 12px !important; /* کمی کوچکتر کردن فونت */
    white-space: nowrap !important; /* جلوگیری از شکسته شدن خود متن‌ها */
    overflow-x: auto !important; /* اگر متن دسته‌بندی خیلی طولانی بود، امکان اسکرول افقی ملایم داشته باشد */
    -webkit-overflow-scrolling: touch;
  }

  /* اگر متن دسته‌بندی خیلی طولانی بود، به صورت سه نقطه (...) در بیاید */
  .product-meta-row .category {
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 150px; /* حداکثر عرض مجاز در موبایل */
  }
}
@media (max-width: 480px) {
  .delojan-gallery-thumbnails {
    grid-template-columns: repeat(
      3,
      1fr
    ); /* در موبایل ۳ عکس در ردیف زیباتر است */
  }
}
/* ==================================================
   استایل یکپارچه و مدرن نظرات (نورادو - محصولات و وبلاگ)
================================================== */

/* کانتینر اصلی نظرات */
#reviews {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

/* عنوان بخش نظرات */
#reviews h2.woocommerce-Reviews-title {
  color: var(--primary-navy, #102c57);
  font-size: 24px;
  font-weight: 900;
  margin-bottom: 20px;
  border-bottom: 2px solid rgba(16, 44, 87, 0.05);
  padding-bottom: 15px;
}

/* پیام "هیچ دیدگاهی ثبت نشده" */
p.woocommerce-noreviews {
  background: rgba(255, 255, 255, 0.5);
  border: 1px dashed var(--accent-ochre, #d4a373);
  color: #64748b;
  padding: 20px;
  border-radius: 16px;
  text-align: center;
  font-weight: 700;
}

/* باکس اصلی فرم ارسال نظر (گلس‌مورفیسم) */
#review_form_wrapper {
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 24px;
  padding: 35px;
  box-shadow: 0 10px 30px rgba(16, 44, 87, 0.03);
}

/* عنوان فرم "اولین کسی باشید که..." */
#reply-title {
  color: var(--primary-navy, #102c57);
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 25px;
  display: block;
}

/* استایل لیبل‌های فرم (امتیاز و متن دیدگاه) */
.comment-form label {
  display: block;
  color: #475569;
  font-weight: 700;
  margin-bottom: 10px;
  font-size: 14px;
}

/* باکس متنی (Textarea) */
.comment-form-comment textarea {
  width: 100%;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 20px;
  font-family: inherit;
  font-size: 15px;
  color: var(--primary-navy, #102c57);
  resize: vertical;
  min-height: 140px;
  transition: all 0.3s ease;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
}

/* افکت فوکوس روی باکس متن */
.comment-form-comment textarea:focus {
  outline: none;
  border-color: var(--accent-ochre, #d4a373);
  box-shadow: 0 0 0 4px rgba(212, 163, 115, 0.1);
}

/* بخش ستاره‌های امتیازدهی ووکامرس */
.comment-form-rating .stars a {
  color: #cbd5e1;
  transition: 0.3s;
}
.comment-form-rating .stars a:hover,
.comment-form-rating .stars a.active {
  color: #f59e0b; /* رنگ طلایی برای ستاره‌ها */
}

/* دکمه ثبت دیدگاه */
.form-submit {
  margin-top: 20px;
  margin-bottom: 0;
}

.form-submit .submit {
  background: var(--primary-navy, #102c57);
  color: #ffffff;
  padding: 14px 35px;
  border: none;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: inline-block;
}

.form-submit .submit:hover {
  background: var(--primary-red, #c51d25);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(197, 29, 37, 0.2);
}
/* ==================================================
   استایل مدرن بخش افزودن به سبد خرید (نورادو)
================================================== */

/* کانتینر اصلی فرم خرید */
form.cart {
  display: flex !important;
  align-items: center !important;
  gap: 15px !important;
  margin-top: 10px !important;
  margin-bottom: 10px !important;
}

/* ۱. استایل باکس انتخاب تعداد (Quantity) */
form.cart .quantity {
  display: flex !important;
  align-items: center;
  background: #f1f5f9 !important;
  border-radius: 14px !important;
  padding: 5px 10px !important;
  border: 1px solid #e2e8f0 !important;
  height: 54px !important;
}

form.cart .quantity input.qty {
  width: 50px !important;
  background: transparent !important;
  border: none !important;
  text-align: center !important;
  font-size: 18px !important;
  font-weight: 800 !important;
  color: var(--primary-navy, #102c57) !important;
  outline: none !important;
  -moz-appearance: textfield; /* حذف فلش‌های پیش‌فرض در فایرفاکس */
}

/* حذف فلش‌های بالا و پایین در کروم و سافاری */
form.cart .quantity input::-webkit-outer-spin-button,
form.cart .quantity input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* ۲. دکمه اصلی افزودن به سبد خرید */
.single_add_to_cart_button {
  flex-grow: 1; /* دکمه بقیه فضا را پر کند */
  height: 54px !important;
  background: var(--primary-navy, #102c57) !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 14px !important;
  font-size: 16px !important;
  font-weight: 800 !important;
  cursor: pointer !important;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(16, 44, 87, 0.15) !important;
}

/* افکت هاور دکمه */
.single_add_to_cart_button:hover {
  background: var(--primary-red, #c51d25) !important;
  transform: translateY(-3px) !important;
  box-shadow: 0 8px 25px rgba(197, 29, 37, 0.25) !important;
}

/* افکت کلیک (Active) */
.single_add_to_cart_button:active {
  transform: translateY(-1px) !important;
}

/* ۳. ریسپانسیو کردن بخش خرید در موبایل */
@media (max-width: 480px) {
  form.cart {
    flex-direction: row; /* در موبایل هم در یک ردیف باشند بهتر است، اما اگر متن دکمه طولانی بود به column تغییر دهید */
  }

  .single_add_to_cart_button {
    font-size: 14px !important;
  }
}
/* ==================================================
   استایل آیکونی ویژگی‌های خرید (نورادو)
================================================== */
.delojan-guarantee-list {
  margin-top: 20px;
  display: flex !important;
  flex-direction: row !important; /* قرارگیری آیکون‌ها در یک ردیف */
  justify-content: space-around !important; /* توزیع یکنواخت فضا */
  gap: 10px !important;
  padding: 20px 0 !important;
  border-top: 1px solid rgba(16, 44, 87, 0.05); /* یک خط جداکننده بسیار ملایم بالا */
}

.delojan-guarantee-list .guarantee-item {
  display: flex !important;
  flex-direction: column !important; /* آیکون بالا، متن پایین */
  align-items: center !important;
  text-align: center !important;
  flex: 1; /* هر آیتم فضای مساوی بگیرد */
}

/* استایل آیکون‌های متحرک */
.delojan-guarantee-list .guarantee-item object {
  width: 32px !important; /* کمی بزرگتر برای جلب توجه بیشتر */
  height: 32px !important;
  margin-bottom: 10px !important;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.05));
}

/* استایل متن‌های ریز زیر آیکون */
.delojan-guarantee-list .guarantee-item {
  font-size: 10px !important; /* فونت دقیق ۱۰ پیکسل */
  line-height: 1.4 !important;
  color: #94a3b8 !important; /* رنگ طوسی ملایم (Slate-400) */
  font-weight: 700 !important;
  max-width: 90px; /* جلوگیری از کشیده شدن بیش از حد متن */
}

/* ریسپانسیو برای موبایل‌های خیلی کوچک */
@media (max-width: 400px) {
  .delojan-guarantee-list {
    gap: 5px !important;
  }
  .delojan-guarantee-list .guarantee-item {
    font-size: 9px !important;
  }
}
/* ==================================================
   استایل فوق‌مدرن تب‌های توضیحات و نظرات (نورادو)
================================================== */

/* ۱. ریست کردن و ساخت کانتینر شیشه‌ای برای کل تب‌ها */
.woocommerce-tabs ul.tabs {
  display: flex !important;
  flex-direction: row !important;
  justify-content: flex-start !important;
  gap: 10px !important;
  padding: 8px !important;
  margin: 0 0 35px 0 !important;
  border: none !important;
  background: rgba(
    255,
    255,
    255,
    0.5
  ) !important; /* پس‌زمینه شیشه‌ای بسیار ملایم */
  border-radius: 16px !important;
  box-shadow: inset 0 2px 4px rgba(16, 44, 87, 0.02) !important;
  overflow-x: auto; /* امکان اسکرول افقی در موبایل */
  -webkit-overflow-scrolling: touch;
}

/* نابود کردن خطوط و استایل‌های مزاحم پیش‌فرض ووکامرس */
.woocommerce-tabs ul.tabs::before,
.woocommerce-tabs ul.tabs li::before,
.woocommerce-tabs ul.tabs li::after {
  display: none !important;
}

.woocommerce-tabs ul.tabs li {
  list-style: none !important;
  margin: 0 !important;
  border: none !important;
  background: transparent !important;
  padding: 0 !important;
}

/* ۲. استایل دکمه‌های تب (حالت خاموش) */
.woocommerce-tabs ul.tabs li a {
  display: block !important;
  text-decoration: none !important;
  padding: 12px 24px !important;
  color: #64748b !important; /* رنگ طوسی ملایم کلاسیک */
  font-weight: 800 !important;
  font-size: 15px !important;
  border-radius: 12px !important;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
  white-space: nowrap !important; /* جلوگیری از دو خط شدن اسم تب */
}

/* افکت هاور (رفتن موس روی تب‌های خاموش) */
.woocommerce-tabs ul.tabs li:not(.active) a:hover {
  background: rgba(16, 44, 87, 0.06) !important;
  color: var(--primary-navy, #102c57) !important;
  transform: translateY(-2px);
}

/* ۳. استایل تب فعال (روشن شده) */
.woocommerce-tabs ul.tabs li.active {
  border-bottom: none !important; /* حذف خط زشت زیرین */
}

.woocommerce-tabs ul.tabs li.active a {
  background: var(--primary-navy, #102c57) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 15px rgba(16, 44, 87, 0.15) !important;
  transform: translateY(0) !important;
}

/* ۴. انیمیشن نرم برای ظاهر شدن محتوای پایین تب‌ها */
.woocommerce-Tabs-panel {
  animation: fadeUpTabContent 0.4s ease forwards;
}

@keyframes fadeUpTabContent {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ۵. ریسپانسیو (تنظیم ابعاد برای موبایل) */
@media (max-width: 576px) {
  .woocommerce-tabs ul.tabs {
    flex-wrap: nowrap !important;
    padding: 6px !important;
    gap: 6px !important;
  }

  .woocommerce-tabs ul.tabs li a {
    padding: 10px 16px !important;
    font-size: 13px !important;
  }
}
/* ==================================================
   تایپوگرافی و استایل محتوای داخل تب توضیحات
================================================== */

/* ۱. استایل بدنه اصلی توضیحات */
.woocommerce-Tabs-panel {
  padding: 10px 10px !important;
  color: #475569 !important; /* رنگ طوسی استاندارد برای مطالعه طولانی */
  font-size: 16px !important;
  line-height: 2.2 !important; /* فاصله خطوط زیاد برای خوانایی بهتر در فارسی */
}

/* ۲. نابود کردن تیتر تکراری "توضیحات" که ووکامرس می‌سازد */
.woocommerce-Tabs-panel > h2:first-child {
  display: none !important;
}

/* ۳. حذف فاصله‌های خالی و مزاحم ادیتور وردپرس */
.woocommerce-Tabs-panel p:empty,
.woocommerce-Tabs-panel p:has(img:only-child) {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* ۴. استایل پاراگراف‌ها */
.woocommerce-Tabs-panel p {
  margin-bottom: 5px !important;
  text-align: justify !important; /* تراز کردن متن از هر دو طرف */
}

/* ۵. استایل تیترهای داخل متن (H2, H3, H4) */
.woocommerce-Tabs-panel h2,
.woocommerce-Tabs-panel h3,
.woocommerce-Tabs-panel h4 {
  color: var(--primary-navy, #102c57) !important;
  font-weight: 900 !important;
  margin-top: 45px !important;
  margin-bottom: 20px !important;
  line-height: 1.6 !important;
}

/* ۶. استایل اختصاصی برای H2 (با خط تزئینی کنار آن) */
.woocommerce-Tabs-panel h2 {
  font-size: 22px !important;
  position: relative;
  padding-right: 18px; /* جا باز کردن برای خط تزئینی */
}

.woocommerce-Tabs-panel h2::before {
  content: "";
  position: absolute;
  right: 0;
  top: 15%;
  height: 70%;
  width: 4px;
  background: var(--primary-red, #c51d25); /* خط قرمز/نارنجی برند کنار تیتر */
  border-radius: 4px;
}

/* ۷. استایل اختصاصی برای H3 */
.woocommerce-Tabs-panel h3 {
  font-size: 19px !important;
}

/* ۸. استایل لیست‌ها (بولت‌پوینت‌ها) داخل توضیحات */
.woocommerce-Tabs-panel ul {
  list-style: none !important;
  padding-right: 10px !important;
  margin-bottom: 25px !important;
}

.woocommerce-Tabs-panel ul li {
  position: relative !important;
  margin-bottom: 12px !important;
  padding-right: 25px !important;
  line-height: 1.8 !important;
}

/* جایگزین کردن بولت‌های ساده با بولت‌های رنگی و مدرن */
.woocommerce-Tabs-panel ul li::before {
  content: "•";
  color: var(--primary-red, #f8571e);
  font-size: 24px;
  position: absolute;
  right: 0;
  top: -2px;
}
.related-products-row {
  margin-top: 30px !important;
  padding: 30px !important;
}
/* ==================================================
   استایل مدرن جدول توضیحات تکمیلی (نورادو)
================================================== */

/* ۱. پنهان کردن تیتر تکراری "توضیحات تکمیلی" */
.woocommerce-Tabs-panel--additional_information > h2:first-child {
  display: none !important;
}

/* ۲. استایل اصلی کادر جدول */
table.shop_attributes {
  width: 100% !important;
  border-collapse: separate !important;
  border-spacing: 0 12px !important; /* ایجاد فاصله عمودی بین ردیف‌ها */
  border: none !important;
  margin: 0 !important;
}

/* ۳. استایل هر ردیف (تبدیل به کپسول‌های مجزا) */
table.shop_attributes tr {
  background: rgba(255, 255, 255, 0.6) !important;
  transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

table.shop_attributes tr:hover {
  background: #ffffff !important;
  box-shadow: 0 5px 20px rgba(16, 44, 87, 0.04) !important;
  transform: translateY(-2px);
}

/* ۴. استایل عنوان ویژگی (ستون راست: وزن، جنس و...) */
table.shop_attributes th {
  width: 30% !important;
  padding: 16px 20px !important;
  background: rgba(
    16,
    44,
    87,
    0.04
  ) !important; /* پس‌زمینه کمی تیره‌تر برای تمایز */
  color: var(--primary-navy, #102c57) !important;
  font-weight: 900 !important;
  font-size: 14px !important;
  text-align: right !important;
  border: none !important;
  border-radius: 0 14px 14px 0 !important; /* گرد کردن گوشه‌های سمت راست */
}

/* ۵. استایل مقدار ویژگی (ستون چپ: 1 کیلوگرم، چوبی و...) */
table.shop_attributes td {
  padding: 16px 20px !important;
  color: #475569 !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  text-align: right !important;
  border: none !important;
  border-radius: 14px 0 0 14px !important; /* گرد کردن گوشه‌های سمت چپ */
}

/* ۶. خنثی کردن پاراگراف‌های مزاحمی که ووکامرس داخل جدول می‌سازد */
table.shop_attributes td p {
  margin: 0 !important;
  padding: 0 !important;
  display: inline-block !important;
  color: inherit !important;
}

/* ریسپانسیو (برای موبایل) */
@media (max-width: 480px) {
  table.shop_attributes th {
    width: 40% !important;
    padding: 12px 15px !important;
  }
  table.shop_attributes td {
    padding: 12px 15px !important;
  }
}
/* ==================================================
   استایل نوار مسیر شیشه‌ای (Breadcrumb - نورادو)
================================================== */
.delojan-breadcrumb-wrapper {
  width: 100%;
  margin-bottom: -15px; /* کمی نوار را به عکس و اطلاعات پایینش نزدیک‌تر می‌کند */
  z-index: 10;
}

.woocommerce-breadcrumb {
  display: inline-flex !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  background: rgba(255, 255, 255, 0.6) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  padding: 12px 24px !important;
  border-radius: 50px !important; /* ظاهر قرصی‌شکل و گرد */
  border: 1px solid rgba(255, 255, 255, 0.9) !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  color: #64748b !important; /* رنگ طوسی برای نام محصول فعلی */
  box-shadow: 0 8px 20px rgba(16, 44, 87, 0.03) !important;
  margin: 0 !important;
}

/* استایل لینک‌ها (خانه، دسته‌بندی‌ها) */
.woocommerce-breadcrumb a {
  color: var(--primary-navy, #102c57) !important;
  text-decoration: none !important;
  transition: 0.3s ease !important;
  font-weight: 800 !important;
}

.woocommerce-breadcrumb a:hover {
  color: var(--primary-red, #c51d25) !important;
}

/* استایل جداکننده (آیکون فلش) */
.woocommerce-breadcrumb .delojan-divider {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 12px !important;
  color: #cbd5e1 !important; /* رنگ طوسی بسیار روشن و ملایم برای فلش‌ها */
}

/* ریسپانسیو (در موبایل نوار کمی جمع‌وجورتر می‌شود) */
@media (max-width: 576px) {
  .woocommerce-breadcrumb {
    padding: 10px 18px !important;
    font-size: 11px !important;
    border-radius: 14px !important; /* در موبایل به جای قرص کامل، گوشه‌ها گرد می‌شود */
  }

  .woocommerce-breadcrumb .delojan-divider {
    margin: 0 8px !important;
  }

  .woocommerce-breadcrumb svg {
    width: 12px !important;
    height: 12px !important;
  }
}
/* ==================================================
   استایل اختصاصی صفحه 404 (گالری دل‌وجان)
================================================== */
.glass-404-wrapper {
  min-height: 75vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 15px;
}

.glass-404-container {
  width: 100%;
  max-width: 700px; /* عرض کنترل‌شده برای تمرکز چشم کاربر */
}

.error-404-card {
  text-align: center;
  padding: 60px 40px !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow: hidden;
}

/* هاله نوری محو و قرمز در بک‌گراند عدد 404 */
.error-404-card::before {
  content: "";
  position: absolute;
  top: -50px;
  left: 50%;
  transform: translateX(-50%);
  width: 250px;
  height: 250px;
  background: radial-gradient(
    circle,
    rgba(197, 29, 37, 0.08) 0%,
    transparent 70%
  );
  z-index: 0;
  pointer-events: none;
}

.error-code {
  font-size: 130px;
  font-weight: 900;
  background: linear-gradient(
    135deg,
    var(--primary-navy, #102c57) 0%,
    var(--primary-red, #c51d25) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  margin-bottom: 20px;
  z-index: 1;
  text-shadow: 0 10px 30px rgba(16, 44, 87, 0.1);
}

.error-title {
  color: var(--primary-navy, #102c57);
  font-size: 28px;
  font-weight: 900;
  margin-bottom: 15px;
  z-index: 1;
}

.error-description {
  color: #475569;
  font-size: 16px;
  line-height: 2;
  max-width: 500px;
  margin: 0 auto 35px auto;
  z-index: 1;
}

/* تراز کردن باکس سرچ */
.error-search {
  width: 100%;
  max-width: 450px;
  margin-bottom: 40px;
  z-index: 1;
}

/* دکمه‌های هدایت */
.error-actions {
  display: flex;
  gap: 15px;
  justify-content: center;
  z-index: 1;
}

.error-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.glass-btn {
  background: var(--primary-navy, #102c57);
  color: #ffffff !important;
  box-shadow: 0 5px 15px rgba(16, 44, 87, 0.15);
  border-radius: 15px !important;
}

.glass-btn:hover {
  background: var(--primary-red, #c51d25);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(197, 29, 37, 0.25);
}

.glass-btn-outline {
  background: rgba(255, 255, 255, 0.5);
  color: var(--primary-navy, #102c57) !important;
  border: 2px solid rgba(16, 44, 87, 0.1);
}

.glass-btn-outline:hover {
  background: rgba(255, 255, 255, 0.9);
  border-color: var(--primary-navy, #102c57);
  transform: translateY(-3px);
}

/* ریسپانسیو (موبایل) */
@media (max-width: 576px) {
  .error-code {
    font-size: 100px;
  }
  .error-title {
    font-size: 22px;
  }
  .error-actions {
    flex-direction: column;
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
  }
  .error-actions a {
    width: 100%;
  }
}
/* ==================================================
   استایل باکس پروموشن در سایدبار مقالات
================================================== */
.promo-widget {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.promo-widget-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  font-size: 18px !important;
  color: var(--primary-navy, #102c57);
  font-weight: 900;
  margin-bottom: 15px;
  border: none !important; /* حذف خط زیرین پیش‌فرض سایدبار */
  padding-bottom: 0 !important;
}

.promo-widget-title svg {
  filter: drop-shadow(0 4px 6px rgba(248, 87, 30, 0.2));
  margin-bottom: 5px;
}

.promo-widget .promo-desc {
  font-size: 14px;
  color: #64748b;
  line-height: 1.8;
  margin-bottom: 20px;
}

.promo-widget .glass-btn {
  width: 100%; /* دکمه کل عرض باکس را بگیرد */
  text-align: center;
}
/* ==================================================
   استایل‌های اختصاصی و مستقل صفحه تک نوشته (نورادو)
================================================== */

.delojan-blog-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto 50px auto;
  padding: 0 15px;
}

/* ساختار شبکه (گرید) */
.delojan-blog-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
  align-items: start;
  width: 100%;
  direction: rtl;
}

/* افکت شیشه‌ای مشترک برای مقاله و ویجت‌های سایدبار */
.delojan-article-box,
.delojan-widget-box {
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 24px;
  box-shadow: 0 15px 35px rgba(16, 44, 87, 0.04);
  text-align: right; /* تضمین راست‌چین بودن */
}

/* ==================================================
   بخش مقاله (ستون راست)
================================================== */
.delojan-article-box {
  padding: 40px;
}

.delojan-post-thumbnail {
  width: 100%;
  margin-bottom: 25px;
  border-radius: 16px;
  overflow: hidden;
}

.delojan-post-thumbnail img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

.delojan-post-title {
  color: var(--primary-navy, #102c57);
  font-size: 32px;
  font-weight: 900;
  line-height: 1.5;
  margin-bottom: 20px;
}

.delojan-post-meta {
  display: flex;
  gap: 25px;
  margin-bottom: 35px;
  padding-bottom: 20px;
  border-bottom: 1px dashed rgba(16, 44, 87, 0.1);
}

.delojan-meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #64748b;
  font-size: 13px;
  font-weight: 700;
}

.delojan-post-content {
  font-size: 16px;
  line-height: 2.2;
  color: #475569;
  text-align: justify;
}

.delojan-post-comments {
  margin-top: 50px;
  border-top: 1px dashed rgba(16, 44, 87, 0.1);
  padding-top: 20px;
}

/* ==================================================
   بخش سایدبار (ستون چپ)
================================================== */
.delojan-sidebar-area {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.delojan-widget-box {
  padding: 30px;
}

.delojan-widget-title {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--primary-navy, #102c57);
  font-size: 18px;
  font-weight: 900;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 2px solid rgba(16, 44, 87, 0.05);
}

/* استایل لیست دسته‌بندی‌ها در سایدبار */
.delojan-widget-content ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.delojan-widget-content ul li {
  margin-bottom: 12px;
}

.delojan-widget-content ul li a {
  color: #64748b;
  text-decoration: none;
  font-weight: 700;
  transition: 0.3s;
}

.delojan-widget-content ul li a:hover {
  color: var(--primary-red, #c51d25);
  padding-right: 5px;
}

/* ریسپانسیو موبایل */
@media (max-width: 992px) {
  .delojan-blog-layout {
    grid-template-columns: 1fr;
  }
  .delojan-article-box {
    padding: 25px;
  }
}
/* ==================================================
   لایه بابل‌های متحرک و شیشه‌ای (نورادو - سراسری)
================================================== */

/* ۱. کانتینر اصلی پس‌زمینه (ثابت پشت کل محتوا) */
.delojan-bg-blob-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: -2; /* عقب‌تر از همه چیز، حتی سکشن‌ها */
  overflow: hidden;
  background-color: #f8fafc; /* رنگ پایه کرم/آبی خیلی روشن */
  pointer-events: none; /* جلوگیری از اختلال در کلیک‌ها */
}

/* ۲. استایل عمومی هر بابل (blob) */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px); /* پخش کردن رنگ برای حالت ابر-مانند */
  opacity: 0.15; /* خیلی ملایم و محو، تا "ناز" بماند */
  animation: floatBlobs infinite alternate ease-in-out;
}

/* ۳. رنگ‌بندی و پوزیشن اختصاصی هر بابل (بر اساس پالت دل‌وجان) */

/* بابل ۱: سرمه‌ای (Navy) تیره - بالا راست */
.blob-1 {
  top: -10%;
  right: 10%;
  width: 500px;
  height: 500px;
  background-color: var(--primary-navy, #102c57);
  animation-duration: 25s;
}

/* بابل ۲: قرمز هنری (Red) - پایین چپ */
.blob-2 {
  bottom: -15%;
  left: 5%;
  width: 600px;
  height: 600px;
  background-color: var(--primary-red, #c51d25);
  animation-duration: 30s;
  animation-delay: -5s;
}

/* بابل ۳: اخرایی/کرم (Ochre) تزئینی - وسط راست */
.blob-3 {
  top: 40%;
  right: -10%;
  width: 400px;
  height: 400px;
  background-color: var(--accent-ochre, #d4a373);
  animation-duration: 20s;
  animation-delay: -10s;
}

/* بابل ۴: بنفش زنده و کهکشانی (Purple) - پایین راست */
.blob-4 {
  bottom: 0%;
  right: 15%;
  width: 550px; /* بزرگ‌تر کردم تا پخش رنگ بهتری داشته باشد */
  height: 550px;
  background-color: #7c3aed; /* بنفش ویولتِ بسیار مدرن و شفاف */
  animation-duration: 35s;
  animation-delay: -15s;
}

/* ۴. انیمیشن شناور شدن نرم (Keyframes) */
@keyframes floatBlobs {
  0% {
    transform: translate(0, 0) scale(1) rotate(0deg);
  }
  33% {
    transform: translate(50px, 30px) scale(1.1) rotate(10deg);
  }
  66% {
    transform: translate(-30px, 50px) scale(0.9) rotate(-10deg);
  }
  100% {
    transform: translate(0, 0) scale(1) rotate(0deg);
  }
}

/* ==================================================
   الزامات سراسری برای گلس‌مورفیسم (شیشه‌ای)
================================================== */
/* باید مطمئن شویم هدر و فوتر شما هم شفاف هستند */
header,
footer,
.elementor-location-header,
.elementor-location-footer {
  background: rgba(255, 255, 255, 0.65) !important;
  backdrop-filter: blur(15px) !important;
  -webkit-backdrop-filter: blur(15px) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.5) !important;
}

/* هر تگ body که داریم باید بک‌گراند شفاف داشته باشد تا بابل‌ها دیده شوند */
body {
  background: transparent !important;
}
/* ==================================================
   استایل‌های اختصاصی صفحه آرشیو مقالات (نورادو)
================================================== */

/* گرید نمایش کارت‌های مقاله در آرشیو */
.delojan-post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

/* اصلاح کارت مقاله در حالت آرشیو */
.delojan-post-card {
  display: flex;
  flex-direction: column;
  padding: 20px !important;
  transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.delojan-post-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(16, 44, 87, 0.08);
}

/* کادر تصویر در آرشیو */
.delojan-card-img {
  display: block;
  margin-bottom: 20px;
  border-radius: 14px;
  overflow: hidden;
}

.delojan-card-img img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  transition: 0.4s;
}

.delojan-post-card:hover .delojan-card-img img {
  transform: scale(1.05);
}

/* تیتر مقاله با افکت هاور */
.delojan-post-card .delojan-post-title a:hover {
  color: var(--primary-red, #c51d25);
}

/* فوتر کارت (تاریخ و دکمه مطالعه) */
.delojan-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px dashed rgba(16, 44, 87, 0.1);
  padding-top: 15px;
  margin-top: auto; /* دکمه و تاریخ را همیشه به پایین کادر می‌چسباند */
}

/* استایل مدرن صفحه‌بندی (Pagination) */
.delojan-pagination {
  margin-top: 50px;
}

.delojan-pagination .nav-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.delojan-pagination .page-numbers {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 45px;
  height: 45px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  color: var(--primary-navy, #102c57);
  font-weight: 800;
  text-decoration: none;
  transition: 0.3s;
  box-shadow: 0 5px 15px rgba(16, 44, 87, 0.03);
}

.delojan-pagination .page-numbers:hover {
  transform: translateY(-3px);
  background: #ffffff;
  color: var(--primary-red, #c51d25);
}

.delojan-pagination .page-numbers.current {
  background: var(--primary-navy, #102c57);
  color: #ffffff;
  border-color: var(--primary-navy, #102c57);
}

.delojan-pagination .prev,
.delojan-pagination .next {
  width: auto;
  padding: 0 20px;
}

/* ریسپانسیو آرشیو */
@media (max-width: 576px) {
  .delojan-post-grid {
    grid-template-columns: 1fr;
  }
}
/* ==================================================
   رفع تداخل لندینگ با CSS قالب (دل‌وجان)
   این بلوک را در Additional CSS قالب یا انتهای style.css بگذار.
   هدف: گلوله‌ها پشت لایه بابل‌های قالب گم نشوند و کانواس ارتفاع بگیرد.
================================================== */

/* ۱. کانتینر هیرو باید یک stacking-context مستقل و ارتفاع‌دار باشد */
.delo-hero-with-bg-container {
  position: relative !important;
  z-index: 1 !important;        /* بالاتر از بابل‌های قالب که z-index: -2 دارند */
  min-height: 100vh !important; /* تضمین ارتفاع، وگرنه کانواس صفر می‌شود */
  isolation: isolate !important; /* ساخت context جدا تا z-indexهای داخلی مستقل بمانند */
  overflow: visible !important;  /* خنثی‌کردن overflow ارثی از قالب */
}

/* ۲. کانواس گلوله‌ها حتماً دیده شود (روی پس‌زمینه، زیر محتوا) */
.delo-background-canvas {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  z-index: 1 !important;        /* داخل context هیرو، پایین‌ترین لایه */
  pointer-events: none !important;
  display: block !important;
}

/* ۳. محتوای هیرو روی گلوله‌ها */
.delo-ui-hero-wrap {
  position: relative !important;
  z-index: 2 !important;
}

/* ۴. اگر بابل‌های سراسری قالب روی گلوله‌ها افتاده‌اند،
   مطمئن شو پشت کانتینر هیرو می‌مانند (بدون نیاز به تغییر قالب) */
.delojan-bg-blob-container {
  z-index: -2 !important;
}

/* ۵. گاهی overflow-x: hidden روی html/body جلوی محاسبه درست را می‌گیرد.
   اگر مشکل ادامه داشت، این دو خط را هم امتحان کن (کامنت را بردار): */
/*
html { overflow-x: clip !important; }
body { overflow-x: clip !important; }
*/

/* =============================================
   تصاویر بندانگشتی مگامنوی دسته‌بندی دل‌وجان
   این کد را به انتهای style.css تم اضافه کنید
   ============================================= */

/* --- تصویر بندانگشتی هر ستون --- */
.megamenu-col-thumb {
    display: block;
    margin-bottom: 12px;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
}

.megamenu-col-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    transition: transform 0.35s ease, filter 0.35s ease;
}

.megamenu-col:hover .megamenu-col-thumb img {
    transform: scale(1.06);
    filter: brightness(1.05);
}

/* --- ریسپانسیو: تبلت --- */
@media (max-width: 1024px) {
    .delojan-megamenu-inner {
        flex-wrap: wrap;
    }

    .megamenu-col {
        flex: 0 0 calc(50% - 16px);
    }

    .megamenu-col-thumb {
        aspect-ratio: 16 / 9;
    }
}

/* --- ریسپانسیو: موبایل --- */
@media (max-width: 768px) {
    /* مگامنوی دسکتاپ در موبایل مخفی است
       (اگر با CSS قبلی مخفی نمی‌شود، این خط را فعال کنید) */
    /* .delojan-megamenu { display: none !important; } */

    .megamenu-col {
        flex: 0 0 100%;
    }
}
/* =============================================
   مگامنوی دل‌وجان — نسخه ۲
   زیردسته‌ها با هاور + تصاویر بندانگشتی
   این کد را به انتهای style.css تم اضافه کنید
   ============================================= */

/* ---------- ستون‌های والد ---------- */
.megamenu-col {
    position: relative;
}

.megamenu-col-title {
    display: flex;
    align-items: center;
    gap: 6px;
    justify-content: center;
}

/* چرخش شورون موقع هاور */
.megamenu-chevron {
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.megamenu-col:hover .megamenu-chevron {
    transform: rotate(180deg);
}

/* خط زیر عنوان هنگام هاور */
.megamenu-col.has-subcats .megamenu-col-title::after {
    content: '';
    position: absolute;
    bottom: -4px;
    right: 0;
    left: 0;
    height: 2px;
    border-radius: 1px;
    background: currentColor;
    opacity: 0;
    transform: scaleX(0);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.megamenu-col.has-subcats:hover .megamenu-col-title::after {
    opacity: 0.25;
    transform: scaleX(1);
}


/* ---------- پنل زیردسته (مخفی تا هاور) ---------- */
.megamenu-sub-panel {
    position: absolute;
    top: 100%;
    right: 50%;
    transform: translateX(50%);
    min-width: 280px;
    padding-top: 12px;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    z-index: 100;
}

.megamenu-col:hover > .megamenu-sub-panel {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* ---------- گرید کارت‌های زیردسته ---------- */
.megamenu-sub-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 16px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.10), 0 1px 4px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

/* ---------- هر کارت زیردسته ---------- */
.megamenu-sub-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 10px 8px;
    border-radius: 10px;
    text-decoration: none !important;
    transition: background 0.2s ease, transform 0.2s ease;
}

.megamenu-sub-card:hover {
    background: #f8f6f4;
    transform: translateY(-2px);
}

/* ---------- تصویر بندانگشتی ---------- */
.megamenu-sub-thumb {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    border-radius: 10px;
    overflow: hidden;
    background: #f4f2ef;
    flex-shrink: 0;
}

.megamenu-sub-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.megamenu-sub-card:hover .megamenu-sub-thumb img {
    transform: scale(1.08);
}

/* پلیس‌هولدر وقتی تصویری آپلود نشده */
.megamenu-sub-thumb--empty {
    color: #c0b8ad;
}

/* ---------- نام زیردسته ---------- */
.megamenu-sub-name {
    font-size: 13px;
    font-weight: 500;
    color: #2d2d2d;
    text-align: center;
    line-height: 1.4;
}

.megamenu-sub-card:hover .megamenu-sub-name {
    color: #b22a2a; /* رنگ اصلی سایت — تغییر بده اگر فرق داره */
}


/* ==================================================
   ریسپانسیو: تبلت (≤ 1024px)
   ================================================== */
@media (max-width: 1024px) {
    .megamenu-sub-panel {
        min-width: 220px;
    }

    .megamenu-sub-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        padding: 12px;
    }

    .megamenu-sub-thumb {
        width: 56px;
        height: 56px;
    }

    .megamenu-sub-name {
        font-size: 12px;
    }
}


/* ==================================================
   منوی موبایل — تصاویر بندانگشتی زیردسته
   ================================================== */

/* هر آیتم زیردسته در موبایل */
.mobile-sub-with-thumb a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
    text-decoration: none !important;
}

/* تصویر کوچک موبایل */
.mobile-sub-thumb {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
    background: #f4f2ef;
}

/* ---------- ساید‌بار دسته‌بندی با تصویر ---------- */
.sidebar-cat-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sidebar-cat-item a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 10px;
    text-decoration: none !important;
    transition: background 0.2s ease;
}

.sidebar-cat-item a:hover {
    background: #f8f6f4;
}

.sidebar-cat-thumb {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
    background: #f4f2ef;
}

.sidebar-cat-item span {
    font-size: 14px;
    font-weight: 500;
    color: #2d2d2d;
}

.sidebar-cat-item a:hover span {
    color: #b22a2a;
}

/* استایل‌های محفظه اصلی (ایزوله شده تا با المنتور تداخل نکند) */
        .clinic-auth-wrapper {
            width: 100%; 
            max-width: 450px; 
            margin: 0 auto;
            background: #fff;
            border-radius: 16px; 
            box-shadow: 0 4px 20px rgba(0,0,0,0.08);
            overflow: hidden; 
            border: 1px solid #e2e8f0;
            font-family: inherit;
            /*height: 80vh !important;*/
            margin-bottom: 40px !important;
        }

        .clinic-auth-wrapper * {
            box-sizing: border-box;
        }

        .auth-tabs { 
            display: flex; 
            border-bottom: 1px solid #e2e8f0; 
        }
        
        .auth-tab-btn {
            flex: 1; 
            padding: 15px; 
            border: none; 
            background: #f1f5f9;
            cursor: pointer; 
            font-size: 0.95rem; 
            color: #64748b;
            font-weight: bold; 
            font-family: inherit; 
            transition: 0.3s;
            outline: none;
        }
        
        .auth-tab-btn.active {
            background: #fff; 
            color: #4f46e5; 
            border-bottom: 3px solid #4f46e5;
        }

        .auth-content { 
            padding: 30px; 
            display: none; 
        }
        
        .auth-content.active { 
            display: block; 
            animation: fadeIn 0.3s ease; 
        }
        
        @keyframes fadeIn { 
            from { opacity: 0; transform: translateY(5px); } 
            to { opacity: 1; transform: translateY(0); } 
        }

        .auth-form-group { margin-bottom: 15px; text-align: right; }
        .auth-form-group label { display: block; margin-bottom: 8px; font-size: 0.85rem; color: #475569; font-weight: bold; }
        
        .auth-inp {
            width: 100%; padding: 12px; border-radius: 8px; border: 1px solid #cbd5e1;
            font-family: inherit; text-align: left; direction: ltr; outline: none; transition: 0.2s;
            background: #fff; color: #1e293b;
        }
        .auth-inp:focus { border-color: #4f46e5; box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1); }
        
        .auth-btn {
            width: 100%; padding: 12px; border: none; border-radius: 8px;
            background: #4f46e5; color: #fff; font-size: 1rem; cursor: pointer;
            font-family: inherit; font-weight: bold; margin-top: 15px; transition: 0.2s;
        }
        .auth-btn:hover { background: #4338ca; }
        
        .auth-toggle { text-align: center; margin-top: 20px; font-size: 0.85rem; color: #64748b; }
        .auth-toggle a { color: #4f46e5; cursor: pointer; text-decoration: none; font-weight: bold; }
        
        #auth-msg { margin-top: 15px; padding: 12px; border-radius: 8px; display: none; font-size: 0.85rem; text-align: center; font-weight: bold; }

        @media screen and (max-width: 480px) {
            .auth-content { padding: 20px 15px; }
            .auth-tab-btn { font-size: 0.85rem; padding: 12px 5px; }
        }
