/*
Theme Name: Hello Elementor Child
Theme URI: https://www.neurado.ir/
Description: پوسته فرزند هلو المنتور
Author: Neurado Team
Template: hello-elementor
Version: 2.1.0
Text Domain: hello-elementor-child
*/

/* تعریف فونت معمولی */
@font-face {
  font-family: "MyClinicFont";
  /* اصلاح شد: فقط یک woff2 دارد */
  src: url("https://clinic-adhd.com/wp-content/themes/hello-theme-child-master/fonts/DanaFaNum-Regular.woff2")
    format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* تعریف فونت ضخیم */
@font-face {
  font-family: "MyClinicFont";
  /* اصلاح شد: فقط یک woff2 دارد */
  src: url("https://clinic-adhd.com/wp-content/themes/hello-theme-child-master/fonts/DanaFaNum-ExtraBold.woff2")
    format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* اعمال فونت */
body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
a,
span,
li,
button,
input,
textarea,
div,
.elementor {
  font-family: "MyClinicFont", sans-serif !important;
}
.clinic-modern-list .elementor-icon-list-item {
  position: relative;
  padding: 12px 15px;
  margin-bottom: 10px;
  background-color: #fff;
  border-radius: 12px;
  border: 1px solid rgba(149, 163, 179, 0.2);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  cursor: pointer;
  overflow: hidden;
}
.clinic-modern-list .elementor-icon-list-text {
  color: #4b4e6d;
  font-weight: 500;
  font-size: 15px;
  transition: color 0.3s ease;
  padding-right: 0;
}
.clinic-modern-list .elementor-icon-list-item::before {
  content: "←";
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%) translateX(10px);
  color: #95a3b3;
  font-size: 18px;
  opacity: 0;
  transition: all 0.3s ease;
}
.clinic-modern-list .elementor-icon-list-item:hover {
  background-color: #f9fbfd;
  border-color: #4b4e6d;
  transform: translateX(-5px);
  box-shadow: 0 5px 15px rgba(75, 78, 109, 0.1);
}
.clinic-modern-list .elementor-icon-list-item:hover .elementor-icon-list-text {
  font-weight: 700;
  color: #222;
}
.clinic-modern-list .elementor-icon-list-item:hover::before {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
  color: #4b4e6d;
}
.clinic-modern-list .elementor-icon-list-icon {
  display: none !important;
}
/*چسباندن فوتر به انتهای صفحه */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
main#content,
.site-main,
.elementor-location-archive,
.elementor-location-single {
  flex-grow: 1;
}
/* ۱. ساخت هاله‌های نورانی در کانتینر مادر */
.hero-glowing-bg {
  position: relative;
  overflow: hidden; /* جلوگیری از بیرون زدن نورها از صفحه */
  background-color: #fcfcfc; /* رنگ پس‌زمینه خیلی روشن سایت */
}

/* هاله نور اول (بالا سمت راست - طوسی/آبی روشن) */
.hero-glowing-bg::before {
  content: "";
  position: absolute;
  top: -10%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: #95a3b3;
  border-radius: 50%;
  filter: blur(100px); /* شدت محو شدگی */
  opacity: 0.5;
  z-index: 0;
}

/* هاله نور دوم (پایین سمت چپ - آبی تیره برند) */
.hero-glowing-bg::after {
  content: "";
  position: absolute;
  bottom: -15%;
  left: -10%;
  width: 350px;
  height: 350px;
  background: #4b4e6d;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.3; /* شفافیت کمتر که چشم را اذیت نکند */
  z-index: 0;
}

/* ۲. ساخت کانتینر شیشه‌ای (لایه رویی) */
.glass-card {
  position: relative;
  z-index: 2 !important; /* حتما روی هاله‌های نور قرار بگیرد */
  background: rgba(255, 255, 255, 0.45) !important; /* سفید نیمه‌شفاف */

  /* افکت مات کننده شیشه */
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);

  /* ظاهر شیشه‌ای (بردر براق و سایه نرم) */
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 24px;
  padding: 40px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05);
}

/* اطمینان از اینکه متن‌ها و دکمه‌های داخل شیشه خوانا می‌مانند */
.glass-card > * {
  position: relative;
  z-index: 3;
}
/* ============================================================
   ۱. یکپارچه‌سازی پس‌زمینه کل صفحه (هدر + محتوا + فوتر)
   ============================================================ */

/* نابود کردن تمام فاصله‌های سفید مزاحم Hello Elementor */
body.single-post,
body.single-post .site-main,
body.single-post #content {
  margin: 0 !important;
  padding: 0 !important;
  background-color: transparent !important;
}

/* اختصاص رنگ پایه به کل بدنه سایت */
body.single-post {
  background-color: #f8fafc !important;
  position: relative;
}

/* هاله‌های نوری (ثابت در پس‌زمینه کل سایت - بدون لگ) */
body.single-post::before,
body.single-post::after {
  content: "";
  position: fixed; /* با اسکرول ثابت می‌مانند تا کل صفحه را پوشش دهند */
  z-index: -999; /* کاملاً زیر تمام المان‌های هدر، فوتر و محتوا */
  pointer-events: none; /* جلوگیری از مزاحمت برای کلیک‌های کاربر */
}

body.single-post::before {
  top: -15%;
  right: -10%;
  width: 650px;
  height: 650px;
  background: radial-gradient(
    circle,
    rgba(01, 197, 233, 0.3) 0%,
    rgba(146, 248, 30, 0.158) 70%
  );
}

body.single-post::after {
  bottom: -15%;
  left: -10%;
  width: 650px;
  height: 650px;
  background: radial-gradient(
    circle,
    rgba(01, 197, 233, 0.2) 0%,
    rgba(146, 248, 30, 0.158) 70%
  );
}

/* ============================================================
   ۲. کانتینر اصلی مقاله (نامرئی شدن برای نمایش پس‌زمینه)
   ============================================================ */
.glass-blog-wrapper {
  position: relative;
  background: transparent !important; /* پس‌زمینه حذف شد تا هاله‌های بدنه دیده شوند */
  padding: 60px 20px;
  overflow: visible !important; /* اجازه ترکیب شدن با هدر و فوتر */
  direction: rtl;
  z-index: 1;
}

/* مخفی کردن هاله‌های قدیمی داخل HTML */
.glass-blog-wrapper .glass-blob {
  display: none !important;
}

/* ۳. گرید حرفه‌ای */
.glass-blog-container {
  max-width: 1140px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 40px;
  align-items: start;
}

/* ۴. کارت‌های شیشه‌ای (Glass Card) */
.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-post-header {
  margin-bottom: 30px;
  border-bottom: 1px dashed rgba(16, 44, 87, 0.15);
  padding-bottom: 25px;
}

.glass-post-thumbnail img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 16px;
  margin-bottom: 30px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
}

.glass-post-title {
  color: #102c57;
  font-size: 32px;
  font-weight: 900;
  margin-bottom: 20px;
  line-height: 1.5;
}

.glass-post-meta {
  display: flex;
  gap: 15px;
  margin-bottom: 30px;
  border-bottom: 1px solid rgba(16, 44, 87, 0.08);
  padding-bottom: 25px;
}
.glass-post-meta .meta-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  padding: 8px 16px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 800;
  color: #475569;
  border: 1px solid rgba(16, 44, 87, 0.05);
}

.glass-post-body {
  color: #334155;
  font-size: 17px;
  line-height: 2.1;
  font-weight: 500;
}
.glass-post-body h2 {
  color: #102c57;
  margin: 40px 0 20px;
  font-weight: 900;
  font-size: 24px;
  position: relative;
  padding-right: 15px;
}
.glass-post-body h2::before {
  content: "";
  position: absolute;
  right: 0;
  top: 10%;
  height: 80%;
  width: 4px;
  background: #00b4d8;
  border-radius: 4px;
}
.glass-post-body img {
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
  margin: 25px 0;
}

/* ============================================================
   ۶. سایدبار و ویجت‌ها
   ============================================================ */
.glass-sidebar {
  display: flex;
  flex-direction: column;
  gap: 30px;
  position: sticky;
  top: 100px;
}
.glass-widget {
  padding: 30px !important;
}
.glass-widget .widget-title {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #102c57;
  font-size: 18px;
  font-weight: 900;
  margin-bottom: 20px;
  border-bottom: 2px solid rgba(16, 44, 87, 0.05);
  padding-bottom: 15px;
}

/* لیست دسته‌بندی‌ها (بولت SVG) */
.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;
  font-weight: bold;
  display: flex;
  align-items: center;
  transition: 0.3s;
}
.categories-list ul li a::before {
  content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23f8571e' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='9 18 15 12 9 6'%3E%3C/polyline%3E%3C/svg%3E");
  margin-left: 8px;
  display: flex;
  align-items: center;
  transition: 0.3s;
}
.categories-list ul li a:hover {
  color: #00b4d8;
  transform: translateX(-5px);
}

/* برچسب‌های کپسولی */
.tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.glass-tag {
  background: #ffffff;
  color: #102c57;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  border: 1px solid rgba(16, 44, 87, 0.05);
  transition: 0.3s;
}
.glass-tag:hover {
  background: #102c57;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 15px rgba(16, 44, 87, 0.15);
}

/* دکمه پروموشن */
.glass-btn {
  display: block;
  width: 100%;
  text-align: center;
  background: linear-gradient(135deg, #00b4d8 0%, #018ba7 100%);
  color: #fff;
  padding: 14px;
  border-radius: 14px;
  font-weight: 900;
  text-decoration: none;
  font-size: 15px;
  transition: 0.3s;
  box-shadow: 0 8px 20px rgba(0, 197, 203, 0.25);
  margin-top: 15px;
}
.glass-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 25px rgba(0, 197, 203, 0.35);
  color: #ffffffb2;
}

/* ============================================================
   ۷. ریسپانسیو موبایل
   ============================================================ */
@media (max-width: 992px) {
  .glass-blog-container {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .glass-sidebar {
    position: static;
  }
  .glass-card {
    padding: 25px;
    border-radius: 20px;
  }
  .glass-post-title {
    font-size: 24px;
  }
  .glass-post-thumbnail img {
    height: 250px;
    margin-bottom: 20px;
  }
}
/* ============================================================
   ۸. حل مشکل سفیدی پشت و اطراف فوتر
   ============================================================ */

/* حذف بک‌گراند سفید پیش‌فرض از تمام لایه‌های فوتر */
body.single-post .site-footer,
body.single-post footer,
body.single-post .elementor-location-footer,
body.single-post .elementor-location-footer .elementor-section {
  background-color: transparent !important;
  margin-bottom: 0 !important;
}

/* حذف فاصله‌های خالی بین محتوا و فوتر */
body.single-post .site-main,
body.single-post #content {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

/* ============================================================
   استایل‌های اختصاصی صفحه آرشیو (لیست مقالات)
   ============================================================ */

body.single-post,
body.archive,
body.blog,
body.search,
body.single-post .site-main,
body.archive .site-main,
body.blog .site-main,
body.search .site-main {
  margin: 0 !important;
  padding: 0 !important;
  background-color: transparent !important;
}

body.single-post,
body.archive,
body.blog,
body.search {
  background-color: #f8fafc !important;
  position: relative;
}

body.single-post::before,
body.archive::before,
body.blog::before,
body.search::before,
body.single-post::after,
body.archive::after,
body.blog::after,
body.search::after {
  content: "";
  position: fixed;
  z-index: -999;
  pointer-events: none;
}
body.single-post::before,
body.archive::before,
body.blog::before,
body.search::before {
  top: -15%;
  right: -10%;
  width: 650px;
  height: 650px;
  background: radial-gradient(
    circle,
    rgba(0, 197, 203, 0.3) 0%,
    rgba(0, 197, 203, 0) 70%
  );
}
body.single-post::after,
body.archive::after,
body.blog::after,
body.search::after {
  bottom: -15%;
  left: -10%;
  width: 650px;
  height: 650px;
  background: radial-gradient(
    circle,
    rgba(30, 117, 248, 0.2) 0%,
    rgba(30, 248, 219, 0) 70%
  );
}
/* حذف فوتر و هدر اضافه المنتور در آرشیو */
body.archive .site-footer,
body.archive footer,
body.archive .elementor-location-footer,
body.blog .site-footer,
body.blog footer,
body.blog .elementor-location-footer {
  background-color: transparent !important;
  margin-bottom: 0 !important;
}

/* هدر صفحه آرشیو (تایتل دسته‌بندی) */
.glass-archive-header {
  margin-bottom: 40px;
  padding: 30px 40px;
  text-align: center;
}
.glass-archive-title {
  color: #102c57;
  font-size: 28px;
  font-weight: 900;
  margin: 0;
}
.glass-archive-title span {
  color: #00b4d8;
} /* رنگی شدن کلمه "Category:" */
.glass-archive-description {
  color: #fff;
  margin-top: 10px;
  font-size: 15px;
}

/* گرید کارت‌های مقالات */
.glass-post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

/* استایل داخلی هر کارت مقاله */
.glass-post-card {
  display: flex;
  flex-direction: column;
  padding: 20px;
  border-radius: 20px;
  height: 100%;
}
.glass-post-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(16, 44, 87, 0.08);
}

.glass-card-img {
  display: block;
  margin-bottom: 20px;
  overflow: hidden;
  border-radius: 14px;
}
.glass-card-img img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: 0.4s;
}
.glass-post-card:hover .glass-card-img img {
  transform: scale(1.05);
}

.glass-card-title {
  font-size: 18px;
  font-weight: 900;
  margin-bottom: 12px;
  line-height: 1.5;
}
.glass-card-title a {
  color: #102c57;
  text-decoration: none;
  transition: 0.3s;
}
.glass-card-title a:hover {
  color: #00b4d8;
}

.glass-card-excerpt {
  color: #475569;
  font-size: 14px;
  line-height: 1.8;
  flex-grow: 1;
  margin-bottom: 20px;
}

/* بخش پایین کارت (تاریخ و دکمه) */
.glass-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(16, 44, 87, 0.05);
  padding-top: 15px;
}
.glass-card-date {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: bold;
  color: #64748b;
}
.glass-card-btn {
  background: rgba(0, 197, 203, 0.1);
  color: #00b4d8;
  padding: 6px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: bold;
  text-decoration: none;
  transition: 0.3s;
}
.glass-card-btn:hover {
  background: #00b4d8a4;
  color: #fff;
}

/* صفحه‌بندی (Pagination) گلس‌مورفیسم */
.glass-pagination {
  margin-top: 40px;
}
.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: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  color: #102c57;
  font-weight: bold;
  text-decoration: none;
  transition: 0.3s;
}
.glass-pagination .page-numbers:hover {
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transform: translateY(-2px);
}
.glass-pagination .page-numbers.current {
  background: #102c57;
  color: #fff;
  border-color: #102c57;
}
.glass-pagination .prev,
.glass-pagination .next {
  width: auto;
  padding: 0 15px;
}

/* ریسپانسیو آرشیو */
@media (max-width: 768px) {
  .glass-post-grid {
    grid-template-columns: 1fr;
  }
  .glass-archive-header {
    padding: 20px;
  }
}

/* ============================================================
   استایل اختصاصی صفحه نتایج جستجو
   ============================================================ */

/* استایل باکس پیدا نشدن نتیجه */
.no-results {
  text-align: center;
  padding: 80px 40px !important;
}
.no-results-icon {
  font-size: 60px;
  margin-bottom: 20px;
}
.no-results h2 {
  color: #102c57;
  margin-bottom: 15px;
  font-weight: 900;
}
.no-results p {
  color: #64748b;
  margin-bottom: 30px;
}

/* استایل فرم جستجو داخل کارت گلس‌مورف */
.glass-search-form form {
  display: flex;
  max-width: 500px;
  margin: 0 auto;
  gap: 10px;
  justify-content: center;
}
.glass-search-form input[type="search"] {
  flex-grow: 1;
  padding: 12px 20px;
  border-radius: 12px;
  border: 1px solid rgba(16, 44, 87, 0.1);
  background: rgba(255, 255, 255, 0.8);
  font-family: inherit;
}
.glass-search-form input[type="submit"] {
  background: #102c57;
  color: #fff;
  border: none;
  padding: 0 25px;
  border-radius: 12px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}
.glass-search-form input[type="submit"]:hover {
  background: #00b4d8d2;
}

/* هماهنگی کارت‌های جستجو با آرشیو */
body.search .glass-post-card {
  transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* ============================================================
   استایل‌های پایه و دسکتاپ (گلس‌مورفیسم صفحه محصول)
   ============================================================ */

/* کانتینر اصلی */
.glass-product-container {
  width: 100%;
  max-width: 1200px;
  margin: 40px auto;
  padding: 0;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  gap: 40px;
}

/* گرید اصلی (عکس و اطلاعات) */
.product-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
/* استایل گالری تصویر محصول*/
.product-gallery-box.glass-card {
  padding: 0 !important;
  border-radius: 18px;
  overflow: hidden;
  line-height: 0; /* برای حذف هرگونه فضای اضافی احتمالی زیر عکس */
}
.product-gallery-box.glass-card .glass-product-img img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 18;
}
/* اصلاح فیلد تعداد (فاصله از پایین) */
input.qty {
  margin-bottom: 20px !important;
}

/* تب‌های توضیحات */
.woocommerce-tabs ul.tabs {
  display: flex;
  flex-direction: row;
  gap: 20px;
  padding: 0;
  margin: 0 0 30px 0;
  border: none;
}

/* حذف بولت‌های کنار تب‌ها */
.woocommerce-tabs ul.tabs li {
  list-style-type: none !important;
  margin: 0;
}

/* استایل دکمه‌های تب */
.woocommerce-tabs ul.tabs li a {
  text-decoration: none;
  padding: 10px 20px;
  background: rgba(0, 197, 203, 0.2);
  border-radius: 10px;
  color: #102c57; /* رنگ متن خود را اینجا تنظیم کنید */
  transition: all 0.3s ease;
}

.woocommerce-tabs ul.tabs li.active a,
.woocommerce-tabs ul.tabs li a:hover {
  background: #102c57;
  color: #fff;
}

/* فونت‌های پایه */
.product-title {
  font-size: 32px;
  margin-bottom: 15px;
}

.main-price {
  font-size: 28px;
  font-weight: bold;
  margin-bottom: 25px;
}

/* ۱. نابود کردن استایل‌های زشت و پیش‌فرض جدول ووکامرس */
.woocommerce-product-attributes {
  width: 100% !important;
  border: none !important;
  border-collapse: separate !important;
  border-spacing: 0 15px !important; /* ایجاد فاصله بین ردیف‌ها */
}

/* ۲. تبدیل هر ردیف به یک کارت شیشه‌ای */
.woocommerce-product-attributes-item {
  display: flex !important;
  align-items: center;
  background: rgba(255, 255, 255, 0.4) !important; /* شیشه‌ای کمرنگ */
  border: 1px solid rgba(255, 255, 255, 0.7) !important;
  border-radius: 16px;
  padding: 20px 25px !important;
  transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
  box-shadow: 0 5px 15px rgba(16, 44, 87, 0.03);
}

/* افکت هاور کارت‌ها */
.woocommerce-product-attributes-item:hover {
  background: rgba(255, 255, 255, 0.8) !important;
  transform: translateX(-5px); /* حرکت ظریف به سمت چپ در فارسی */
  box-shadow: 0 10px 25px rgba(16, 44, 87, 0.08);
  border-color: #00b4d8 !important; /* رنگ برند */
}

/* ۳. استایل ستون عنوان (سمت راست) */
.woocommerce-product-attributes-item__label {
  flex: 0 0 220px; /* عرض ثابت برای عنوان‌ها تا همه در یک خط باشند */
  border: none !important;
  background: transparent !important;
  padding: 0 0 0 20px !important;
  color: #102c57 !important;
  font-size: 16px !important;
  font-weight: 900 !important;
  position: relative;
  display: flex;
  align-items: center;
}

/* نقطه نورانی (Accent) کنار عنوان */
.woocommerce-product-attributes-item__label::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  background: linear-gradient(135deg, #00b4d8, #0085a0); /* نارنجی برند */
  border-radius: 50%;
  margin-left: 12px;
  box-shadow: 0 0 10px rgba(248, 87, 30, 0.5);
}

/* ۴. استایل ستون توضیحات (سمت چپ) */
.woocommerce-product-attributes-item__value {
  flex: 1;
  border: none !important;
  background: transparent !important;
  padding: 0 !important;
}

.woocommerce-product-attributes-item__value p {
  margin: 0 !important;
  color: #475569 !important;
  font-size: 15px !important;
  line-height: 1.8 !important;
  font-weight: 600 !important;
}

/* باکس اطلاعات خرید */
.product-info-box {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
ul.tabs.wc-tabs {
  list-style-type: none !important;
  margin-bottom: 20px;
  padding: 0;
}

ul.tabs.wc-tabs li {
  list-style-type: none !important;
  text-align: justify;
}
#tab-description p {
  text-align: justify;
}
#tab-description h1,
h3,
h4,
h5 {
  text-align: justify;
}
#tab-description h2 {
  display: none !important;
}
#tab-additional_information h2 {
  display: none !important;
}
.product-title {
  color: #102c57;
  font-size: 32px;
  font-weight: 900;
  margin-bottom: 10px;
}
.product-meta-row {
  font-size: 13px;
  color: #64748b;
  margin-bottom: 30px;
  display: flex;
  gap: 20px;
}

.product-price-box {
  background: rgba(255, 255, 255, 0.5);
  padding: 20px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  margin-bottom: 30px;
}
.price-label {
  font-size: 14px;
  color: #475569;
  display: block;
  margin-bottom: 5px;
}
.main-price {
  font-size: 28px;
  font-weight: 900;
  color: #102c57;
}
.main-price ins {
  text-decoration: none;
}
.main-price del {
  font-size: 18px;
  opacity: 0.5;
  margin-left: 10px;
}
input.qty {
  margin-bottom: 20px !important;
}
/* هاله‌های نوری برای محصولات */
body.single-product::before,
body.single-product::after {
  content: "";
  position: fixed;
  z-index: -999;
  pointer-events: none;
}
body.single-product::before {
  top: -10%;
  right: -5%;
  width: 600px;
  height: 600px;
  background: radial-gradient(
    circle,
    rgba(0, 197, 223, 0.25) 0%,
    rgba(0, 197, 203, 0) 70%
  );
}
body.single-product::after {
  bottom: -10%;
  left: -5%;
  width: 600px;
  height: 600px;
  background: radial-gradient(
    circle,
    rgba(2, 146, 52, 0.329) 0%,
    rgba(248, 87, 30, 0) 70%
  );
}
/* دکمه افزودن به سبد خرید */
.product-actions .cart .single_add_to_cart_button {
  background: linear-gradient(135deg, #4b4e6d 0%, #272a44 100%) !important;
  color: #fff !important;
  padding: 16px 40px !important;
  border-radius: 14px !important;
  font-weight: 900 !important;
  font-size: 18px !important;
  border: none !important;
  width: 100% !important;
  box-shadow: 0 10px 25px rgba(0, 197, 203, 0.25);
  transition: 0.3s;
  cursor: pointer;
  margin-bottom: 20px;
}
.product-actions .cart .single_add_to_cart_button:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(2, 172, 129, 0.35);
}
/* استایل بخش نظرات محصولات (مدرن و سبک)*/
/* فاصله بین پیام‌ها و فرم نظرات */
#reviews {
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin-top: 10px;
}

/* عنوان بخش نظرات */
#comments h2.woocommerce-Reviews-title {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 15px;
  color: #333;
}

/* پیام "هیچ دیدگاهی نوشته نشده است" */
.woocommerce-noreviews {
  background: rgba(255, 255, 255, 0.3);
  padding: 15px 20px;
  border-radius: 12px;
  border-right: 4px solid #00b4d8; /* رنگ المان‌های تاکیدی (میتوانید تغییر دهید) */
  color: #555;
  font-size: 15px;
}

/* باکس اصلی فرم ارسال نظر */
#review_form_wrapper {
  background: rgba(255, 255, 255, 0.15);
  padding: 30px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
  backdrop-filter: blur(5px);
}

/* عنوان فرم "اولین نفری باشید که..." */
#reply-title {
  display: block;
  font-size: 15px;
  font-weight: 400;
  margin-bottom: 20px;
  color: #222;
  text-align: justify;
}

/* استایل لیبل‌ها (امتیاز شما، دیدگاه شما) */
.comment-form label {
  display: block;
  margin-bottom: 10px;
  font-weight: 500;
  color: #444;
}

/* بخش ستاره‌های امتیازدهی */
.comment-form-rating {
  margin-bottom: 20px;
}

/* فیلد متنی (textarea) */
.comment-form-comment textarea {
  width: 100%;
  padding: 15px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.6);
  font-family: inherit;
  font-size: 15px;
  color: #333;
  transition: all 0.3s ease;
  resize: vertical;
  min-height: 120px;
}

/* افکت هنگام کلیک روی فیلد متن */
.comment-form-comment textarea:focus {
  outline: none;
  border-color: #00b4d8;
  box-shadow: 0 0 0 4px rgba(108, 92, 231, 0.1);
  background: #fff;
}

/* مخفی کردن المان‌های اضافی و تنظیم حاشیه */
p.comment-form-comment {
  margin-bottom: 25px;
}

/* دکمه ثبت نظر */
.form-submit {
  margin: 0;
}

.form-submit .submit {
  background: #102c57; /* رنگ پس‌زمینه دکمه */
  color: #ffffff;
  padding: 12px 35px;
  border: none;
  border-radius: 18px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(108, 92, 231, 0.25);
}

/* افکت هاور دکمه ثبت */
.form-submit .submit:hover {
  background: #00b4d8;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(108, 92, 231, 0.4);
}
/* ============================================================
   تنظیمات ریسپانسیو (تبلت و موبایل) - فقط یک بلاک مدیا
   ============================================================ */

@media (max-width: 768px) {
  /* تنظیم کانتینر اصلی */
  .glass-product-container {
    width: 100%;
    padding: 0;
    gap: 20px;
    margin: 20px auto;
  }

  /* تک‌ستونه کردن گرید اصلی */
  .product-hero-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

  /* مرتب‌سازی تب‌ها به صورت عمودی */
  .woocommerce-tabs ul.tabs {
    flex-direction: column;
    gap: 15px;
    margin-bottom: 25px !important;
  }

  .woocommerce-tabs ul.tabs li a {
    text-align: center;
    display: block;
  }

  /* تنظیم سایز فونت‌ها برای موبایل */
  .product-title {
    font-size: 24px;
  }

  .main-price {
    font-size: 22px;
  }

  .product-actions .cart .single_add_to_cart_button {
    width: 100%; /* دکمه خرید تمام‌عرض در موبایل */
    padding: 14px 20px !important;
    font-size: 16px !important;
  }
  /* ۵. ریسپانسیو برای موبایل (قرار گرفتن عنوان و متن زیر هم) */
  .woocommerce-product-attributes-item {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 10px;
    padding: 15px 20px !important;
  }
  #tab-description h3 {
    font-size: 30px;
    font-weight: 600;
    line-height: 45px;
  }

  .woocommerce-product-attributes-item__label {
    flex: none;
    width: 100%;
    padding-left: 0 !important;
    border-bottom: 1px dashed rgba(16, 44, 87, 0.1) !important;
    padding-bottom: 10px !important;
  }
  /* ریسپانسیو فرم برای موبایل */
  #review_form_wrapper {
    padding: 20px;
  }
  .form-submit .submit {
    width: 100%;
    padding: 14px 20px;
  }
}

/* ============================================================
   استایل اختصاصی آرشیو محصولات (Shop Glassmorphism)
   ============================================================ */

/* تعمیم پس‌زمینه به صفحات فروشگاه */
body.post-type-archive-product,
body.tax-product_cat,
body.tax-product_tag {
  background-color: #f8fafc !important;
}

/* تبدیل لیست محصولات ووکامرس به گرید گلس‌مورف */
.glass-product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* ایجاد دو ستون با عرض مساوی */
  gap: 25px; /* فاصله بین محصولات */
  padding: 0;
  margin: 0;
  list-style: none; /* حذف بولت‌های احتمالی اگر تگ ul است */
}
.glass-product-grid ul.products {
  display: grid !important; /* فعال‌سازی چیدمان گریدی */
  gap: 25px !important; /* فاصله 25 پیکسلی بین هر محصول */
  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 {
  width: 38% !important;
  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: auto !important;
  float: none !important;
  transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
  text-align: center;
  clear: none !important;
}

.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.8) !important;
}

/* عکس محصول در آرشیو */
.attachment-woocommerce_thumbnail {
  border-radius: 18px !important;
  margin-bottom: 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;
}

.price {
  color: #475569 !important;
  font-weight: 800 !important;
  font-size: 16px !important;
  margin-bottom: 20px !important;
  display: block !important;
}

.price ins {
  text-decoration: none !important;
  color: #102c57 !important;
}

/* دکمه خرید در آرشیو */
.add_to_cart_button,
.product_type_variable {
  background: rgba(0, 215, 247, 0.1) !important;
  color: #00b4d8 !important;
  padding: 10px 20px !important;
  border-radius: 12px !important;
  font-weight: 900 !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: #4b4e6d !important;
  color: #fff !important;
}

/* حذف بج (Sale) زشت پیش‌فرض */
.onsale {
  background: #003a55a4 !important;
  font-family: inherit !important;
  color: #fff !important;
  font-weight: 900 !important;
  border-radius: 10px !important;
  top: 10px !important;
  right: 10px !important;
}

/* ریسپانسیو فروشگاه */
@media (max-width: 425px) {
  .glass-product-grid {
    grid-template-columns: 1fr;
    justify-items: center;
  }
  .glass-product-grid ul.products {
    grid-template-columns: 1fr !important;
  }
}

/* ============================================================
   استایل اختصاصی صفحه 404 (Glassmorphism Error Page)
   ============================================================ */

/* فعال‌سازی پس‌زمینه و هاله‌های نوری برای صفحه 404 */
body.error404 {
  margin: 0 !important;
  padding: 0 !important;
  background-color: #f8fafc !important;
  position: relative;
}

body.error404::before,
body.error404::after {
  content: "";
  position: fixed;
  z-index: -999;
  pointer-events: none;
}
body.error404::before {
  top: -15%;
  right: -10%;
  width: 650px;
  height: 650px;
  background: radial-gradient(
    circle,
    rgba(0, 197, 203, 0.3) 0%,
    rgba(0, 197, 203, 0) 70%
  );
}
body.error404::after {
  bottom: -15%;
  left: -10%;
  width: 650px;
  height: 650px;
  background: radial-gradient(
    circle,
    rgba(0, 105, 203, 0.2) 0%,
    rgba(248, 87, 30, 0) 70%
  );
}
body.error404 .site-footer,
body.error404 footer,
body.error404 .elementor-location-footer {
  background-color: transparent !important;
  margin-top: 0 !important;
}

/* کانتینر اصلی صفحه 404 (تراز در مرکز) */
.glass-404-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 75vh; /* ارتفاع مناسب برای قرارگیری در مرکز مانیتور */
  padding: 40px 20px;
  background: transparent !important;
}

.glass-404-container {
  width: 100%;
  max-width: 700px;
}

/* کارت شیشه‌ای ارور 404 */
.error-404-card {
  text-align: center;
  padding: 60px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* عدد بزرگ 404 با افکت گرادیانت متنی */
.error-code {
  font-size: 120px;
  font-weight: 900;
  line-height: 1;
  background: linear-gradient(135deg, #102c57 0%, #00b4d8 50%, #f8a11e 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 10px 20px rgba(0, 197, 203, 0.2));
}

.error-title {
  color: #102c57;
  font-size: 28px;
  font-weight: 900;
  margin-bottom: 15px;
}

.error-description {
  color: #475569;
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 35px;
  max-width: 500px;
}

/* فرم جستجو داخل کارت 404 */
.error-search {
  width: 100%;
  max-width: 450px;
  margin-bottom: 35px;
}

/* دکمه‌های اکشن */
.error-actions {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

/* دکمه توخالی (Outline) برای پنل کاربری */
.glass-btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.5);
  color: #102c57;
  padding: 12px 25px;
  border-radius: 12px;
  font-weight: 900;
  text-decoration: none;
  border: 2px solid #102c57;
  transition: 0.3s;
}

.glass-btn-outline:hover {
  background: #102c57;
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(16, 44, 87, 0.15);
}

/* اصلاح دکمه اصلی (پر شده) برای هماهنگی آیکون */
.glass-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 0; /* ریست کردن مارجین قبلی */
  border: 2px solid transparent;
}

/* ریسپانسیو موبایل */
@media (max-width: 576px) {
  .error-code {
    font-size: 80px;
  }
  .error-title {
    font-size: 22px;
  }
  .error-actions {
    flex-direction: column;
    width: 100%;
  }
  .glass-btn,
  .glass-btn-outline {
    width: 100%;
    justify-content: center;
  }
}
/* ============================================================
   استایل اختصاصی فاکتور نهایی (Thank You Page)
   ============================================================ */

/* هماهنگی پس‌زمینه نوری برای صفحه تشکر */
body.woocommerce-checkout .site-main {
  background-color: transparent !important;
}

.thankyou-card {
  text-align: center;
  max-width: 800px;
  margin: 40px auto;
  padding: 60px 40px !important;
}

.status-icon {
  font-size: 60px;
  margin-bottom: 20px;
  filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.1));
}

.thankyou-title {
  color: #102c57;
  font-size: 28px;
  font-weight: 900;
  margin-bottom: 15px;
}

.thankyou-desc {
  color: #64748b;
  margin-bottom: 40px;
  font-size: 16px;
}

/* شبکه جزئیات فاکتور */
.order-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
  list-style: none;
  padding: 25px !important;
  margin: 0 0 40px 0 !important;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 16px;
  border: 1px solid rgba(16, 44, 87, 0.05);
}

.summary-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-left: 1px solid rgba(16, 44, 87, 0.1);
}

.summary-item:last-child {
  border-left: none;
}

.summary-item span {
  font-size: 13px;
  color: #94a3b8;
  font-weight: 700;
}

.summary-item strong {
  font-size: 16px;
  color: #102c57;
}

.thankyou-actions {
  display: flex;
  gap: 15px;
  justify-content: center;
}

/* ریسپانسیو */
@media (max-width: 768px) {
  .order-summary-grid {
    grid-template-columns: 1fr;
    text-align: right;
  }
  .summary-item {
    border-left: none;
    border-bottom: 1px solid rgba(16, 44, 87, 0.1);
    padding-bottom: 10px;
  }
  .summary-item:last-child {
    border-bottom: none;
  }
  .thankyou-actions {
    flex-direction: column;
  }
}
/* ============================================================
   تراز کردن فاکتور دقیقاً در مرکز صفحه (فقط برای دسکتاپ و تبلت)
   ============================================================ */
@media (min-width: 769px) {
  .glass-thankyou-page {
    display: flex;
    align-items: center; /* تراز دقیق عمودی */
    justify-content: center; /* تراز دقیق افقی */
    min-height: 75vh; /* اختصاص ارتفاع کل صفحه به کانتینر */
  }

  .glass-thankyou-page .glass-blog-container {
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .thankyou-card {
    margin: 0 auto !important; /* حذف فاصله‌های اضافی بالا و پایین */
    width: 100%;
  }
}
