.header-bg{
    background-color: #263238;
}
.bg-dark-bc{
    background: 
    radial-gradient(circle at top, rgba(139, 92, 246, 0.08), transparent 25%),
    linear-gradient(180deg, #0d1020, #0b0d16) !important;
color: #ffffff !important;
}
/* ═══════════════════════════════════════════════════════════ */
/* Mega Menu Styles                                          */
/* ═══════════════════════════════════════════════════════════ */
/* Parent li - position static برای dropdown */
/* Dropdown menu - عرض کامل */
/* ستون‌های مگا منو */
.mega-menu-dropdown .col-md-4 {
    padding: 0 20px;
}
.mega-menu-dropdown .col-md-4:first-child {
    border-left: none;
}
/* عنوان دسته */
.mega-menu-dropdown h6 a {
    font-size: 1.05rem;
    transition: color 0.2s;
}
.mega-menu-dropdown h6 a:hover {
    color: #fff !important;
}
/* لینک‌های زیردسته */
.mega-menu-dropdown ul li a {
    display: block;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s;
}
.mega-menu-dropdown ul li a:hover {
    color: #fff !important;
    padding-right: 12px;
}
/* Responsive - در موبایل مگا منو نمایش داده نمی‌شود */
@media (max-width: 991.98px) {
}
/* ═══════════════════════════════════════════════════════════ */
/*                        شروع استایل برند                    */
/* ═══════════════════════════════════════════════════════════ */
.brand-neon {
    color: #6a1b9a !important;
    font-weight: 850; /* فوق‌العاده بولد و توپر */
    letter-spacing: 0.5px;
    text-decoration: none !important;
    /* تقویت هاله سفید متناسب با ضخامت بیشتر فونت */
    text-shadow: 
      -1.5px -1.5px 0 #fff,  
       1.5px -1.5px 0 #fff,
      -1.5px  1.5px 0 #fff,
       1.5px  1.5px 0 #fff;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }
  .brand-neon:hover,
  .brand-neon:focus {
    color: #4a148c !important; /* بنفش تیره و لوکس هنگام هاور */
    transform: translateY(-1px);
    /* حفظ هاله سفید در حالت هاور */
    text-shadow: 
      -1.5px -1.5px 0 #fff,  
       1.5px -1.5px 0 #fff,
      -1.5px  1.5px 0 #fff,
       1.5px  1.5px 0 #fff;
  }
/* ═══════════════════════════════════════════════════════════ */
/*                        پایان استایل برند                    */
/* ═══════════════════════════════════════════════════════════ */
/* ═══════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════ */
/* ═══════════════════════════════════════════════════════════ */
/*                        شروع استایل سرچ                    */
/* ═══════════════════════════════════════════════════════════ */
  /* کل پکیج سرچ باکس */
/* باکس ورودی متن */
.search-input-brand {
    border: 1.5px solid #e0e0e0 !important;
    border-radius: 0 8px 8px 0 !important; /* گرد کردن گوشه‌های راست (RTL) */
    font-size: 0.95rem;
    transition: all 0.25s ease-in-out !important;
}
/* افکت فوکوس روی باکس ورودی */
.search-input-brand:focus {
    border-color: #6a1b9a !important;
    box-shadow: 0 0 0 0.2rem rgba(106, 27, 154, 0.15) !important;
    outline: 0;
}
/* دکمه جستجو */
.btn-search-brand {
    background-color: #6a1b9a !important;
    border: 1.5px solid #6a1b9a !important;
    color: #ffffff !important;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 0.375rem 1.25rem;
    border-radius: 8px 0 0 8px !important; /* گرد کردن گوشه‌های چپ (RTL) */
    transition: all 0.25s ease-in-out !important;
}
/* افکت هاور روی دکمه */
.btn-search-brand:hover,
.btn-search-brand:focus {
    background-color: #4a148c !important; /* بنفش عمیق‌تر هماهنگ با هاور لوگو */
    border-color: #4a148c !important;
    color: #ffffff !important;
    box-shadow: 0 2px 6px rgba(74, 20, 140, 0.2) !important;
}
/* افکت کلیک روی دکمه */
.btn-search-brand:active {
    transform: scale(0.98);
}
/* ═══════════════════════════════════════════════════════════ */
/*                        پایان استایل سرچ                    */
/* ═══════════════════════════════════════════════════════════ */
/* ═══════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════ */
/* ═══════════════════════════════════════════════════════════ */
/*                        شروع استایل منو                    */
/* ═══════════════════════════════════════════════════════════ */
/* خط جداکننده بالای منو (متناسب با تم تیره) */
.nav-link-brand {
    position: relative;
    color: #e0e0e0 !important;
    font-weight: 600;
    padding: 0.55rem 1rem !important;
    transition: color 0.25s ease, text-shadow 0.25s ease;
  }
  /* خط متحرک زیر منوها */

  .nav-link-brand:hover,
  .nav-link-brand:focus {
    color: #ba68c8 !important;
    text-shadow: 0 0 8px rgba(186, 104, 200, 0.3);
  }
  .nav-link-brand:hover::after,
  .nav-link-brand:focus::after,
  .nav-link-brand.active::after {
    transform: scaleX(1);
  }
/* ═══════════════════════════════════════════════════════════ */
/*                        پایان استایل منو                    */
/* ═══════════════════════════════════════════════════════════ */
/* ═══════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════ */
/* ═══════════════════════════════════════════════════════════ */
/*                 شروع استایل مگا منو دسکاپ                 */
/* ═══════════════════════════════════════════════════════════ */
/* ===== مگا منو ===== */
  /* حذف ظاهر پیش‌فرض dropdown بوت‌استرپ */
  /* فاصله بهتر ستون‌ها */
  .mega-menu-column {
    height: 100%;
  }
  /* عنوان دسته اصلی */
  .mega-menu-title {
    margin-bottom: 0.85rem;
    font-size: 0.98rem;
    font-weight: 700;
    line-height: 1.8;
  }
  /* لینک دسته اصلی */
  .mega-parent-link {
    color: #ffffff !important;
    text-decoration: none !important;
    transition: color 0.25s ease, text-shadow 0.25s ease;
  }
  .mega-parent-link:hover {
    color: #ba68c8 !important;
    text-shadow: 0 0 8px rgba(186, 104, 200, 0.35);
  }
  /* لیست زیر دسته‌ها */
  .mega-submenu-list {
    margin: 0;
    padding: 0;
  }
  /* آیتم‌های زیر دسته */
  .mega-submenu-list li {
    margin-bottom: 0.45rem;
  }
  /* لینک‌های زیر دسته */
  .mega-child-link {
    display: inline-block;
    color: #cfd8dc !important;
    text-decoration: none !important;
    font-size: 0.92rem;
    line-height: 1.9;
    transition: color 0.25s ease, transform 0.25s ease, text-shadow 0.25s ease;
  }
  .mega-child-link:hover {
    color: #ba68c8 !important;
    transform: translateX(-3px);
    text-shadow: 0 0 8px rgba(186, 104, 200, 0.28);
  }
  /* فلش dropdown */
  .mega-toggle-brand.dropdown-toggle::after {
    margin-right: 0.25rem;
    vertical-align: middle;
    border-top-color: #e0e0e0;
    transition: transform 0.25s ease, border-top-color 0.25s ease;
  }
  .mega-menu-wrapper.show .mega-toggle-brand.dropdown-toggle::after,
  .mega-toggle-brand.dropdown-toggle[aria-expanded="true"]::after {
    transform: rotate(180deg);
    border-top-color: #ba68c8;
  }
  /* هاور روی خود لینک دسته‌بندی‌ها */
  .mega-toggle-brand:hover,
  .mega-toggle-brand:focus {
    color: #ba68c8 !important;
    text-shadow: 0 0 8px rgba(186, 104, 200, 0.3);
  }
  /* برای اینکه با نسخه 3 هماهنگ بماند */
  .mega-toggle-brand::after {
    box-shadow: none;
  }
/* ═══════════════════════════════════════════════════════════ */
/*                 پایان استایل مگا منو دسکاپ                 */
/* ═══════════════════════════════════════════════════════════ */
/* ═══════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════ */
/* ═══════════════════════════════════════════════════════════ */
/*                 شروع استایل منو همبرگری گوشی              */
/* ═══════════════════════════════════════════════════════════ */
  /* دکمه همبرگری موبایل */
.btn-mobile-menu-brand {
    background-color: rgba(186, 104, 200, 0.08) !important; /* پس‌زمینه بسیار ملایم بنفش */
    border: 1.5px solid rgba(186, 104, 200, 0.4) !important; /* حاشیه بنفش نیمه‌شفاف */
    color: #ba68c8 !important; /* رنگ متن و آیکون بنفش روشن و خوانا */
    font-weight: 700;
    font-size: 0.95rem;
    padding: 0.55rem 1rem !important;
    border-radius: 10px !important;
    transition: all 0.25s ease-in-out !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
  }
  /* افکت هاور و فوکوس (هنگام لمس یا کلیک) */
  .btn-mobile-menu-brand:hover,
  .btn-mobile-menu-brand:focus,
  .btn-mobile-menu-brand:active {
    background-color: #6a1b9a !important; /* بنفش اصلی برند */
    border-color: #6a1b9a !important;
    color: #ffffff !important; /* متن سفید برای خوانایی کامل روی بنفش تیره */
    box-shadow: 0 4px 12px rgba(106, 27, 154, 0.45) !important;
    transform: translateY(-1px);
  }
  /* افکت لحظه لمس/فشرده شدن دکمه */
  .btn-mobile-menu-brand:active {
    transform: scale(0.98) !important;
  }
  /* آیکون سه خط (همبرگری) */
  .btn-mobile-menu-brand span {
    font-size: 1.1rem;
    vertical-align: middle;
    line-height: 1;
  }
/* ═══════════════════════════════════════════════════════════ */
/*                 پایان استایل منو همبرگری گوشی             */
/* ═══════════════════════════════════════════════════════════ */
/* ═══════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════ */
/* ═══════════════════════════════════════════════════════════ */
/*                    شروع استایل منو گوشی                    */
/* ═══════════════════════════════════════════════════════════ */  
  /* استایل کلی پنل Offcanvas منوی موبایل */
/* هدر منوی موبایل */
.mobile-offcanvas-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    padding: 1.25rem 1rem !important;
}
/* استایل لیست‌ها و آیتم‌های منو */
.mobile-menu-list, .mobile-submenu-list {
    background-color: transparent !important;
}
.mobile-menu-item {
    background-color: transparent !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
}
/* لینک‌های اصلی منو */
.mobile-menu-link {
    color: #cfd8dc !important;
    text-decoration: none !important;
    display: block;
    transition: all 0.25s ease;
}
.mobile-menu-link:hover, .mobile-menu-link:focus {
    color: #ba68c8 !important; /* بنفش روشن‌تر روی پس‌زمینه تیره */
    background-color: rgba(186, 104, 200, 0.05) !important;
    padding-right: 8px; /* افکت کشویی ملایم در هاور */
}
/* فلش منوی دسته‌بندی‌ها */
/* دسته‌بندی‌های زیر مجموعه */
.mobile-submenu-item {
    background-color: rgba(0, 0, 0, 0.12) !important; /* تیره کردن بخش زیردسته‌ها برای تفکیک بهتر */
    border-bottom: 1px solid rgba(255, 255, 255, 0.03) !important;
}
/* دسته‌بندی پدر (اصلی) */
.mobile-parent-link {
    color: #ba68c8 !important; /* رنگ بنفش برند */
    text-decoration: none !important;
    display: block;
    transition: all 0.25s ease;
}
.mobile-parent-link:hover {
    color: #e1bee7 !important;
    padding-right: 6px;
}
/* زیر دسته‌های فرزند */
.mobile-child-link {
    color: #b0bec5 !important;
    text-decoration: none !important;
    display: block;
    position: relative;
    padding-right: 1.5rem !important; /* ایجاد فضای تورفتگی مناسب بدون نیاز به بولت و ایموجی */
    transition: all 0.2s ease;
}
/* ایجاد نشانگر خطی زیبا قبل از زیر دسته‌ها */

.mobile-child-link:hover {
    color: #ffffff !important;
    background-color: rgba(255, 255, 255, 0.02);
}
.mobile-child-link:hover::before {
    background-color: #ba68c8; /* روشن شدن نشانگر هنگام هاور */
}
/* ═══════════════════════════════════════════════════════════ */
/*                    پایان استایل منو گوشی                  */
/* ═══════════════════════════════════════════════════════════ */ 
/* ═══════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════ */
/* ═══════════════════════════════════════════════════════════ */
/*               شروع استایل قسمت اول صفحه خانه              */
/* ═══════════════════════════════════════════════════════════ */  
/* بخش هیرو اصلی */
.hero-section-brand {
    padding: 2rem 1rem 1rem 1rem;
}
.hero-title-brand {
    color: #ffffff !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
    font-size: 2.5rem;
    letter-spacing: -0.5px;
}
.hero-subtitle-brand {
    color: #b0bec5 !important; /* رنگ روشن و خوانا روی پس‌زمینه بدنه */
    font-size: 1.15rem;
    margin-top: 0.8rem;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}
/* کارت‌های اعتمادسازی */
.trust-features-container {
    margin-top: 1.5rem;
}
.trust-card {
    background-color: #263238 !important; /* هماهنگ با رنگ پس‌زمینه هدر */
    border: 1px solid rgba(186, 104, 200, 0.15) !important; /* مرز بنفش بسیار ملایم */
    border-radius: 16px;
    padding: 2rem 1.5rem;
    height: 100%;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.trust-card:hover {
    transform: translateY(-5px);
    border-color: rgba(186, 104, 200, 0.5) !important; /* روشن‌تر شدن مرز بنفش در هاور */
    box-shadow: 
        0 12px 30px rgba(0, 0, 0, 0.22),
        0 0 15px rgba(186, 104, 200, 0.1);
}
/* آیکون باکس بالا کارت */
/* آیکون اموجی‌ها (شبیه‌سازی آیکون گرافیکی) */
.trust-icon {
    font-size: 1.6rem;
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.2));
}
/* عنوان ویژگی */
/* توضیحات ویژگی */
.trust-desc {
    color: #b0bec5 !important;
    font-size: 0.92rem;
    line-height: 1.6;
    margin-bottom: 0;
}
/* ═══════════════════════════════════════════════════════════ */
/*               پایان استایل قسمت اول صفحه خانه             */
/* ═══════════════════════════════════════════════════════════ */  
/* ═══════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════ */
/* ═══════════════════════════════════════════════════════════ */
/*        شروع استایل کارت های دسته بندی  صفحه خانه         */
/* ═══════════════════════════════════════════════════════════ */  
/* استایل بخش و عنوان دسته‌بندی‌ها */
.product-section-brand {
    position: relative;
}
/* خط تزیینی کنار عنوان دسته‌بندی */

/* دکمه مشاهده همه */
.btn-view-all-brand:hover {
    color: #ffffff !important;
    background-color: #6a1b9a !important;
    border-color: #6a1b9a !important;
    box-shadow: 0 0 10px rgba(186, 104, 200, 0.3);
}
/* کارت محصول */
.product-card-brand:hover {
    transform: translateY(-4px);
    border-color: rgba(186, 104, 200, 0.3) !important;
    box-shadow: 
        0 10px 22px rgba(0, 0, 0, 0.25),
        0 0 12px rgba(186, 104, 200, 0.1);
}
/* تصویر محصول */
/* بدنه کارت */
/* عنوان کتاب */
/* توضیحات کتاب */
/* دکمه مشاهده جزئیات محصول */
.btn-product-details-brand:hover {
    color: #ffffff !important;
    background-color: #6a1b9a !important; /* بنفش تیره برند */
    border-color: #ba68c8 !important;
    box-shadow: 0 4px 12px rgba(106, 27, 154, 0.3);
}
/* کانتینر اسلایدر برای نمایش منظم */
.slider-container-brand {
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(186, 104, 200, 0.3) transparent;
}
@media (max-width: 575.98px) {
}
/* ═══════════════════════════════════════════════════════════ */
/*        پایان استایل کارت های دسته بندی  صفحه خانه         */
/* ═══════════════════════════════════════════════════════════ */  
/* ═══════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════ */
/* ═══════════════════════════════════════════════════════════ */
/*            شروع استایل بخش اول دسته بندی پدر              */
/* ═══════════════════════════════════════════════════════════ */ 
/* کانتینر اصلی هدر دسته‌بندی */
/* افکت تصویر دسته‌بندی */
/* تصویر پیش‌فرض (Placeholder) */
.text-light-muted {
    color: #b0bec5 !important;
}
/* عنوان دسته‌بندی */

/* توضیحات دسته‌بندی */
/* ═══════════════════════════════════════════════════════════ */
/*            پایان استایل بخش اول دسته بندی پدر              */
/* ═══════════════════════════════════════════════════════════ */ 
.empty-state-brand {
    background: #263238 !important;
    color: #cfd8dc !important;
    border: 1px solid rgba(186, 104, 200, 0.18) !important;
    border-radius: 14px !important;
    padding: 1.25rem 1rem !important;
    box-shadow: 0 8px 24px rgba(0,0,0,.18) !important;
}
.brand-pagination-wrapper .pagination .page-link.brand-page-link:hover {
    background-color: #6a1b9a !important;
    color: #fff !important;
    border-color: #ba68c8 !important;
}
.brand-pagination-wrapper .pagination .page-item.active .page-link.brand-page-link,
/* ═══════════════════════════════════════════════════════════ */
/* Product Grid Brand - استایل گرید محصولات                 */
/* ═══════════════════════════════════════════════════════════ */
/* ═══════════════════════════════════════════════════════════ */
/* Product Grid Brand - استایل کامل گرید محصولات            */
/* ═══════════════════════════════════════════════════════════ */
/* Responsive */
@media (max-width: 768px) {
}
/* ═══════════════════════════════════════════════════════════ */
/* Product Card - استایل کامل کارت محصول                    */
/* ═══════════════════════════════════════════════════════════ */
.product-grid-brand .product-card-brand:hover {
    transform: translateY(-6px);
    border-color: rgba(196, 181, 253, 0.35);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.3);
}
.product-grid-brand .btn-product-details-brand:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(109, 40, 217, 0.3);
}
/* ═══════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════ */
/* ═══════════════════════════════════════════════════════════ */
/*                     شروع استایل برادکرمپ                  */
/* ═══════════════════════════════════════════════════════════ */ 
/* کانتینر اصلی ناوبری بردکرامب */
.breadcrumb-nav-brand .breadcrumb {
    background-color: #263238 !important; /* پس‌زمینه تیره هماهنگ با هدر */
    border: 1px solid rgba(186, 104, 200, 0.15); /* مرز بسیار باریک بنفش ملایم */
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    font-size: 0.85rem;
}
/* استایل آیتم‌های بردکرامب */
.breadcrumb-item-brand {
    display: flex;
    align-items: center;
    color: #cfd8dc; /* رنگ خاکستری روشن متن */
}
/* جداکننده بین آیتم‌ها (Slash یا Arrow) */
.breadcrumb-item-brand + .breadcrumb-item-brand::before {
    content: "∕" !important; /* استفاده از کاراکتر اسلش ظریف */
    padding: 0 10px;
    color: rgba(186, 104, 200, 0.4) !important; /* رنگ بنفش شفاف برای جداکننده */
    font-weight: bold;
}
/* استایل لینک‌های فعال (قابل کلیک) */
.breadcrumb-link-brand {
    color: #b0bec5;
    text-decoration: none;
    transition: color 0.25s ease, text-shadow 0.25s ease;
}
.breadcrumb-link-brand:hover {
    color: #ba68c8 !important; /* تغییر رنگ به بنفش لایت در هاور */
    text-shadow: 0 0 8px rgba(186, 104, 200, 0.4);
}
/* استایل آیتم فعال/نهایی (صفحه فعلی) */
/* آیکون کتاب در بخش فعال */
/* ═══════════════════════════════════════════════════════════ */
/*                     پایان استایل برادکرمپ                  */
/* ═══════════════════════════════════════════════════════════ */ 
/* ═══════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════ */
/* ═══════════════════════════════════════════════════════════ */
/*                شروع استایل ویژگی های محصول                */
/* ═══════════════════════════════════════════════════════════ */ 
/* کانتینر اصلی بخش جزئیات محصول */
/* نگهدارنده تصویر محصول */
.product-detail-img-container-brand:hover {
    transform: scale(1.02);
}
/* پلیس‌هولدر تصویر */
/* استایل کارت‌های مشخصات (Info Cards) */
.info-card-brand:hover {
    transform: translateY(-3px);
    border-color: rgba(186, 104, 200, 0.4);
    box-shadow: 0 6px 15px rgba(106, 27, 154, 0.15);
}
/* آیکون کارت‌ها */
/* لیبل ویژگی (مثلاً نویسنده) */
/* مقدار ویژگی (مثلاً نام نویسنده) */
/* باکس امتیازدهی */
.rating-box-brand {
    background-color: #1e272c !important;
    border: 1px solid rgba(186, 104, 200, 0.1);
}
/* استایل ستاره‌های امتیازدهی */
.star-rating-brand {
    display: inline-flex;
    flex-direction: row-reverse;
    font-size: 1.6rem;
}
.star-brand:hover,
.star-brand:hover ~ .star-brand,
.star-brand.active,
/* دکمه خرید اصلی (بنفش نئونی و لوکس) */
.btn-checkout-brand:hover {
    background: linear-gradient(135deg, #a235bd 0%, #7b1fa2 100%) !important;
    box-shadow: 0 6px 20px rgba(186, 104, 200, 0.6);
    transform: translateY(-2px);
}
/* دکمه دانلود رایگان (سبز با هاله‌ی ملایم) */
.btn-free-download-brand:hover {
    background: linear-gradient(135deg, #388e3c 0%, #2e7d32 100%) !important;
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.5);
    transform: translateY(-2px);
}
/* دکمه دانلود نمونه (بنفش ملایم با حاشیه بدون رنگ زمینه ثابت) */
.btn-sample-brand:hover {
    background-color: rgba(186, 104, 200, 0.1) !important;
    border-color: #ba68c8 !important;
    color: #ffffff !important;
    transform: translateY(-2px);
}
/* هماهنگ‌سازی متون رنگ پریده در تم تیره */
.text-light-muted {
    color: #b0bec5 !important;
}
/* ═══════════════════════════════════════════════════════════ */
/*                پایان استایل ویژگی های محصول               */
/* ═══════════════════════════════════════════════════════════ */ 
/* ═══════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════ */
/* ═══════════════════════════════════════════════════════════ */
/*                   شروع استایل لینک های لنگ                */
/* ═══════════════════════════════════════════════════════════ */ 
/* کانتینر اصلی ناوبری بخش‌ها */
/* اسکرول‌بار ظریف در موبایل برای تب‌ها */
.product-nav-list-brand::-webkit-scrollbar {
    display: none; /* کروم و سافاری */
}
/* استایل لینک‌های ناوبری */
/* افکت هاور روی لینک‌ها */
.anchor-link-brand:hover {
    color: #ffffff !important;
    background-color: rgba(186, 104, 200, 0.1) !important;
}
/* استایل دکمه فعال (جایی که کاربر اسکرول کرده یا کلیک کرده) */
/* آیکون داخل لینک‌ها */
.anchor-link-brand i {
    font-size: 0.95rem;
    opacity: 0.85;
    transition: transform 0.2s ease;
}
.anchor-link-brand:hover i {
    transform: translateY(-1px);
    opacity: 1;
}
/* ═══════════════════════════════════════════════════════════ */
/*                   پایان استایل لینک های لنگ                */
/* ═══════════════════════════════════════════════════════════ */ 
/* ═══════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════ */
/* ═══════════════════════════════════════════════════════════ */
/*                       شروع استایل توضیحات                  */
/* ═══════════════════════════════════════════════════════════ */ 
/* کانتینر اصلی بخش توضیحات */
/* عنوان اصلی بخش */
/* عناوین فرعی (مثل معرفی کتاب) */
.product-detail-card-brand .subtitle-brand {
    color: #e0e0e0;
}
/* استایل عمومی متن در هر سه بخش */
.main-description-brand {
    color: #cfd8dc;
    line-height: 2.1; /* فاصله خطوط برای خوانایی بهتر */
    text-align: justify; /* تراز کردن متن از دو طرف */
}
.main-description-brand p {
    margin-bottom: 1.2rem;
    text-align: justify;
}
/* بنفش شدن تمام کلمات بولد شده (strong) */
.main-description-brand strong {
    color: #ba68c8 !important; /* رنگ بنفش برند شما */
    font-weight: 700;
}
/* استایل لینک‌های احتمالی داخل متن */
.main-description-brand a {
    color: #ce93d8;
    text-decoration: none;
    border-bottom: 1px dashed rgba(206, 147, 216, 0.4);
}
.main-description-brand a:hover {
    color: #ba68c8;
    border-bottom-style: solid;
}
/* استایل لیست‌ها اگر در توضیحات استفاده شده باشد */
.main-description-brand ul,
.main-description-brand ol {
    padding-right: 1.5rem;
    margin-bottom: 1.5rem;
}
.main-description-brand li {
    margin-bottom: 0.8rem;
    text-align: justify;
}
/* ═══════════════════════════════════════════════════════════ */
/*                       پایان استایل توضیحات                 */
/* ═══════════════════════════════════════════════════════════ */ 
/* ═══════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════ */
/* ═══════════════════════════════════════════════════════════ */
/*                       شروع استایل فهرست                  */
/* ═══════════════════════════════════════════════════════════ */ 
.toc-section-brand {
    background-color: #263238 !important;
    border: 1px solid rgba(186, 104, 200, 0.15);
    border-radius: 16px;
    padding: 1.5rem;
}
.badge-toc-brand {
    background-color: rgba(186, 104, 200, 0.15) !important;
    color: #ba68c8 !important;
    border: 1px solid rgba(186, 104, 200, 0.3);
    font-size: 0.8rem;
    padding: 0.4em 0.8em;
    border-radius: 8px;
}
.toc-content-brand {
    background-color: rgba(17, 24, 39, 0.3) !important;
    border: 1px solid rgba(186, 104, 200, 0.08);
}
.toc-item-brand {
    transition: all 0.2s ease-in-out;
    border-bottom: 1px dashed rgba(207, 216, 220, 0.08) !important;
}
.toc-item-brand:last-child {
    border-bottom: none !important;
}
.toc-item-brand:hover {
    background-color: rgba(186, 104, 200, 0.04) !important;
    padding-right: 6px !important;
}
.toc-number-brand {
    color: #ba68c8 !important;
    font-weight: 700;
    font-size: 1rem;
}
/* ═══════════════════════════════════════════════════════════ */
/*                       پایان استایل فهرست                  */
/* ═══════════════════════════════════════════════════════════ */ 
/* ═══════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════ */
/* ═══════════════════════════════════════════════════════════ */
/*                       شروع استایل عکس ها                  */
/* ═══════════════════════════════════════════════════════════ */ 
/* کانتینر اصلی تصاویر نمونه */
/* متن راهنما */
.description-text-brand {
    color: #cfd8dc;
    font-size: 0.9rem;
}
/* کارت تصویر */
.sample-card-brand {
    background-color: rgba(17, 24, 39, 0.4);
    border: 1px solid rgba(186, 104, 200, 0.1);
    transition: all 0.3s ease;
}
.sample-card-brand:hover {
    border-color: rgba(186, 104, 200, 0.4);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}
/* نگهدارنده تصویر برای افکت زوم */
/* لایه روی تصویر هنگام هاور */
/* لیبل زیر تصویر */
/* ═══════════════════════════════════════════════════════════ */
/*                       پایان استایل عکس ها                  */
/* ═══════════════════════════════════════════════════════════ */ 
/* ═══════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════ */
/* ═══════════════════════════════════════════════════════════ */
/*                       شروع استایل فیلم                  */
/* ═══════════════════════════════════════════════════════════ */ 
/* کانتینر اصلی ویدیو */
.video-wrapper-brand:hover {
    transform: scale(1.01);
}
/* لایه رنگی بنفش */
/* دکمه پخش اختصاصی */
/* انیمیشن تپش دکمه پخش */
@keyframes playPulse {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 0.8; }
    100% { transform: translate(-50%, -50%) scale(2.2); opacity: 0; }
}
/* کپشن روی ویدیو */
/* حالت فعال شدن ویدیو */
.video-active .video-caption-brand,
.video-active .play-button-brand,
/* ═══════════════════════════════════════════════════════════ */
/*                       پایان استایل فیلم                  */
/* ═══════════════════════════════════════════════════════════ */ 
/* ═══════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════ */
/* ═══════════════════════════════════════════════════════════ */
/*                       شروع استایل سوالات                  */
/* ═══════════════════════════════════════════════════════════ */ 
/* کانتینر اصلی ویدیو */
.video-wrapper-brand:hover {
    transform: scale(1.01);
}
/* لایه رنگی بنفش */
/* دکمه پخش اختصاصی */
/* انیمیشن تپش دکمه پخش */
@keyframes playPulse {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 0.8; }
    100% { transform: translate(-50%, -50%) scale(2.2); opacity: 0; }
}
/* کپشن روی ویدیو */
/* حالت فعال شدن ویدیو */
.video-active .video-caption-brand,
.video-active .play-button-brand,
/* ═══════════════════════════════════════════════════════════ */
/*                       پایان استایل سوالات                  */
/* ═══════════════════════════════════════════════════════════ */ 
/* ═══════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════ */
/* ═══════════════════════════════════════════════════════════ */
/*                       شروع استایل نقد و برسی                  */
/* ═══════════════════════════════════════════════════════════ */ 
/* کانتینر اصلی نقل قول‌ها */
/* کارت نقل قول */
.quote-card-brand {
    background: rgba(17, 24, 39, 0.4) !important;
    border: 1px solid rgba(186, 104, 200, 0.12) !important;
    transition: all 0.3s ease-in-out;
}
.quote-card-brand:hover {
    border-color: rgba(186, 104, 200, 0.35) !important;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
}
/* متن نقل قول */
.quote-text-brand {
    color: #e0e0e0;
    font-size: 0.95rem;
    line-height: 1.8;
    text-align: justify;
    font-style: italic;
}
/* آیکون بزرگ پس‌زمینه کارت */
.quote-bg-icon-brand {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 3.5rem;
    color: rgba(186, 104, 200, 0.05); /* بنفش بسیار ملایم شیشه‌ای */
    pointer-events: none;
    z-index: 1;
}
/* فوتر کارت */
.quote-footer-brand {
    border-color: rgba(207, 216, 220, 0.08) !important;
}
/* ایندیکیتورهای پایین اسلایدر (دکمه‌های تعویض اسلاید) */
#quotesCarousel .carousel-indicators [data-bs-target] {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(186, 104, 200, 0.3);
    border: none;
    margin: 0 4px;
    transition: all 0.2s ease;
}
/* کانتینر کارت‌های اصلی */
/* آکاردئون FAQ */
.faq-accordion-brand .faq-button-brand {
    background-color: transparent !important;
    color: #ffffff !important;
    font-weight: 600;
    padding: 1.2rem 0;
}
.faq-accordion-brand .accordion-button:not(.collapsed) {
    color: #ba68c8 !important;
    box-shadow: none;
}
.faq-accordion-brand .accordion-button::after {
    filter: brightness(0) invert(1);
}
/* نظرات و فرم‌ها */
.btn-purple-brand {
    background: linear-gradient(135deg, #ba68c8, #8a3a95);
    color: white !important;
    border: none;
    padding: 8px 25px;
    border-radius: 8px;
    transition: 0.3s;
}
.btn-purple-brand:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(186, 104, 200, 0.4);
}
.border-purple-light-brand { border-color: rgba(186, 104, 200, 0.2) !important; }
.hover-purple-brand:hover { color: #ba68c8 !important; cursor: pointer; transition: 0.3s; }
/* یکپارچه‌سازی محتوا با بخش توضیحات */
.review-body-brand {
    font-size: 1rem;
    line-height: 1.9;
    color: #cfd8dc !important; /* رنگ متن هماهنگ با تم */
    text-align: justify;
}
/* استایل بولدها مشابه توضیحات */
.review-body-brand strong {
    color: #ba68c8 !important; /* بنفش لوکس */
    font-weight: 700;
}
/* مدیریت پاراگراف‌ها برای ظاهر تمیز */
.review-body-brand p {
    margin-bottom: 1.5rem;
}
/* اطمینان از اینکه لیست‌ها در صورت وجود، به هم نمی‌ریزند */
.review-body-brand ul, .review-body-brand ol {
    padding-right: 1.5rem;
    margin-bottom: 1.5rem;
}
.checkout-page-brand {
    background:
        radial-gradient(circle at top, rgba(186, 104, 200, 0.16), transparent 34%),
        linear-gradient(180deg, #0f1115 0%, #151922 100%);
    min-height: 100vh;
}
.checkout-title-brand {
    color: #fff;
    letter-spacing: -0.2px;
}
.checkout-subtitle-brand {
    color: #c9d1d9;
    font-size: 0.95rem;
}
.checkout-summary-brand {
    border: 1px solid rgba(186, 104, 200, 0.14);
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    padding: 16px;
}
.checkout-summary-label-brand {
    color: #9ca3af;
    font-size: 0.92rem;
    white-space: nowrap;
}
.price-brand {
    color: #d9a7ff;
}
.checkout-label-brand {
    color: #e5e7eb;
    font-weight: 600;
    margin-bottom: 0.5rem;
}
.checkout-input-brand {
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(186, 104, 200, 0.18) !important;
    color: #fff !important;
    border-radius: 14px;
    padding: 0.85rem 1rem;
    box-shadow: none !important;
    transition: all 0.25s ease;
}
.checkout-input-brand::placeholder {
    color: #8b94a7;
}
.checkout-input-brand:focus {
    background: rgba(255, 255, 255, 0.06) !important;
    border-color: rgba(186, 104, 200, 0.55) !important;
    box-shadow: 0 0 0 0.2rem rgba(186, 104, 200, 0.15) !important;
}
.checkout-help-brand {
    display: block;
    margin-top: 0.4rem;
    color: #9ca3af;
    font-size: 0.82rem;
}
.btn-checkout-brand:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(186, 104, 200, 0.35);
}
.btn-checkout-brand:active {
    transform: translateY(0);
}
@media (max-width: 576px) {
}
.payment-message-fail-brand {
    color: #d5dbe3;
    line-height: 1.9;
}
.payment-note-brand {
    border: 1px solid rgba(186, 104, 200, 0.14);
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    padding: 18px;
}
.payment-note-title-brand {
    color: #d9a7ff;
    font-weight: 700;
}
.btn-home-brand:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(186, 104, 200, 0.35);
}
.btn-home-brand:active {
    transform: translateY(0);
}
.payment-success-card-brand {
    background: rgba(19, 24, 34, 0.92);
    border: 1px solid rgba(76, 175, 80, 0.18);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(10px);
}
.payment-icon-success-brand {
    width: 92px;
    height: 92px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.18), rgba(186, 104, 200, 0.12));
    color: #7ee081;
    box-shadow: 0 12px 28px rgba(76, 175, 80, 0.18);
}
.payment-title-success-brand {
    color: #fff;
    letter-spacing: -0.2px;
}
.payment-message-success-brand {
    color: #d5dbe3;
    line-height: 1.9;
}
.download-box-brand {
    border: 1px solid rgba(186, 104, 200, 0.14);
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    padding: 18px;
}
.download-box-title-brand {
    color: #d9a7ff;
    font-weight: 700;
}
.btn-download-brand {
    background: linear-gradient(135deg, #ba68c8, #8a3a95);
    color: #fff;
    border: 0;
    border-radius: 14px;
    box-shadow: 0 10px 22px rgba(186, 104, 200, 0.25);
    transition: all 0.25s ease;
}
.btn-download-brand:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(186, 104, 200, 0.35);
}
.btn-download-brand:active {
    transform: translateY(0);
}
.download-note-brand {
    color: #c7ced8;
    line-height: 1.9;
}
.btn-home-brand:hover {
    color: #fff;
    background: rgba(186, 104, 200, 0.12);
    border-color: rgba(186, 104, 200, 0.5);
    transform: translateY(-2px);
}
.download-page-brand {
    background:
        radial-gradient(circle at top, rgba(186, 104, 200, 0.16), transparent 34%),
        linear-gradient(180deg, #0f1115 0%, #151922 100%);
    min-height: 100vh;
}
.download-icon-brand {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ba68c8, #8a3a95);
    color: #fff;
    font-size: 1.5rem;
    box-shadow: 0 10px 25px rgba(186, 104, 200, 0.28);
}
.download-title-brand {
    color: #fff;
    letter-spacing: -0.2px;
}
.download-subtitle-brand {
    color: #c9d1d9;
    font-size: 0.95rem;
}
.download-success-box-brand,
.download-success-box-brand {
    border: 1px solid rgba(76, 175, 80, 0.16);
    background: rgba(255, 255, 255, 0.03);
}
.download-status-title-brand,
.download-status-title-brand {
    color: #7ee081;
}
.download-info-row-brand:first-of-type {
    border-top: 0;
    padding-top: 0;
}
.download-info-label-brand {
    color: #9ca3af;
    white-space: nowrap;
}
.download-error-text-brand {
    color: #c7ced8;
    line-height: 1.9;
}
.btn-download-file-brand {
    background: linear-gradient(135deg, #ba68c8, #8a3a95);
    color: #fff;
    border: 0;
    border-radius: 14px;
    box-shadow: 0 10px 22px rgba(186, 104, 200, 0.25);
    transition: all 0.25s ease;
}
.btn-download-file-brand:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(186, 104, 200, 0.35);
}
.btn-download-file-brand:active {
    transform: translateY(0);
}
.btn-home-brand:hover {
    color: #fff;
    background: rgba(186, 104, 200, 0.12);
    border-color: rgba(186, 104, 200, 0.5);
    transform: translateY(-2px);
}
@media (max-width: 576px) {
}
/* تنظیمات کلی صفحه خطا */
.error-page-brand {
    background: 
        radial-gradient(circle at center, rgba(186, 104, 200, 0.1) 0%, transparent 70%),
        linear-gradient(180deg, #0f1115 0%, #151922 100%);
    min-height: 80vh;
    display: flex;
    align-items: center;
    border-radius: 24px;
    margin: 20px 0;
}
/* عدد 404 با افکت نئونی */
/* دکمه بازگشت به خانه */
.btn-home-brand:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(186, 104, 200, 0.4);
    filter: brightness(1.1);
}
/* انیمیشن درخشش ملایم */
@keyframes pulse-glow-brand {
    0%, 100% { opacity: 0.8; filter: drop-shadow(0 0 10px rgba(186, 104, 200, 0.2)); }
    50% { opacity: 1; filter: drop-shadow(0 0 25px rgba(186, 104, 200, 0.5)); }
}
/* واکنش‌گرا */
@media (max-width: 768px) {
}
.search-page-brand {
    padding: 8px 0 24px;
}
.search-header-card-brand {
    background:
        linear-gradient(135deg, rgba(186, 104, 200, 0.14), rgba(138, 58, 149, 0.08)),
        rgba(19, 24, 34, 0.92);
    border: 1px solid rgba(186, 104, 200, 0.18);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22);
    backdrop-filter: blur(10px);
}
.search-kicker-brand {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(186, 104, 200, 0.12);
    color: #d9a7ff;
    font-size: 0.88rem;
    font-weight: 600;
}
.search-title-brand {
    color: #ffffff;
    line-height: 1.8;
}
.search-query-brand {
    color: #d9a7ff;
}
.search-subtitle-brand {
    color: #aeb7c2;
    font-size: 0.96rem;
}
.search-empty-card-brand {
    background:
        radial-gradient(circle at top, rgba(186, 104, 200, 0.10), transparent 45%),
        rgba(19, 24, 34, 0.94);
    border: 1px solid rgba(186, 104, 200, 0.18);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22);
}
.search-empty-icon-brand {
    width: 78px;
    height: 78px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, #ba68c8, #8a3a95);
    color: #fff;
    font-size: 1.6rem;
    box-shadow: 0 12px 28px rgba(186, 104, 200, 0.28);
}
.search-empty-title-brand {
    color: #ffffff;
}
.search-empty-text-brand {
    color: #b8c0cc;
    line-height: 2;
    max-width: 520px;
    margin-inline: auto;
}
.btn-search-home-brand {
    background: linear-gradient(135deg, #ba68c8, #8a3a95);
    border: 0;
    border-radius: 14px;
    color: #fff;
    font-weight: 700;
    box-shadow: 0 10px 24px rgba(186, 104, 200, 0.24);
    transition: all 0.25s ease;
}
.btn-search-home-brand:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(186, 104, 200, 0.34);
}
.search-results-grid-brand {
    position: relative;
}
.product-card-brand:hover {
    transform: translateY(-6px);
    border-color: rgba(186, 104, 200, 0.35);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.32);
}
.product-image-brand,
.btn-product-brand:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(186, 104, 200, 0.32);
}
.btn-product-brand:active {
    transform: translateY(0);
}
.brand-pagination-wrapper .pagination {
    gap: 8px;
}
.brand-page-link:hover {
    color: #fff;
    background: rgba(186, 104, 200, 0.12);
    border-color: rgba(186, 104, 200, 0.35);
    transform: translateY(-2px);
}
@media (max-width: 767px) {
}
/* هدر دسته‌بندی */
/* دکمه مشاهده همه */
.btn-view-all-brand:hover {
    background: rgba(186, 104, 200, 0.15);
    color: #fff;
    border-color: rgba(186, 104, 200, 0.6);
}
/* اسلایدر افقی */
.slider-container-brand {
    overflow-x: auto;
    padding-bottom: 15px;
    scrollbar-width: thin;
    scrollbar-color: #8a3a95 #151922;
}
/* بهینه‌سازی کارت‌ها در اسلایدر */
/* ظاهر متن عنوان بخش */
/* استایل کلی بخش */
.product-section-brand {
    margin-top: 2rem;
}
:root {
    --bg-page: #0f1220;
    --bg-card: #151a2d;
    --bg-card-2: #1b2240;
    --bg-deep: #101522;
    --text-main: #ffffff;
    --text-soft: #c8cde0;
    --text-muted: #d9ddeb;
    --purple: #8b5cf6;
    --purple-light: #c4b5fd;
    --purple-dark: #6d28d9;
    --border-soft: rgba(255, 255, 255, 0.08);
    --shadow-soft: 0 18px 50px rgba(0, 0, 0, 0.22);
    --shadow-strong: 0 25px 70px rgba(0, 0, 0, 0.35);
    --radius-xl: 24px;
    --radius-lg: 18px;
    --radius-md: 14px;
    --radius-sm: 10px;
}
body {
    background: var(--bg-page);
    color: var(--text-main);
}
.text-purple-brand,
.text-purple-light-brand {
    color: var(--purple-light) !important;
}
.border-purple-light-brand {
    border-color: rgba(139, 92, 246, 0.25) !important;
}
.shadow-lg,
.shadow-sm {
    box-shadow: var(--shadow-soft) !important;
}
.rounded-4 {
    border-radius: var(--radius-xl) !important;
}
.rounded-3 {
    border-radius: var(--radius-md) !important;
}
/* Breadcrumb */
.breadcrumb-nav-brand .breadcrumb {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.14), rgba(255, 255, 255, 0.03));
    border: 1px solid rgba(139, 92, 246, 0.16);
    backdrop-filter: blur(10px);
}
.breadcrumb-item-brand {
    color: var(--text-soft);
    font-size: 0.95rem;
}
.breadcrumb-link-brand {
    color: var(--purple-light);
    text-decoration: none;
    transition: 0.2s ease;
}
.breadcrumb-link-brand:hover {
    color: #ffffff;
    text-decoration: underline;
}
/* Main product card */
.product-detail-img-brand:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}
/* Spec cards */
.info-card-brand:hover {
    transform: translateY(-2px);
    border-color: rgba(139, 92, 246, 0.28);
}
/* Rating */
.rating-box-brand {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.12), rgba(255, 255, 255, 0.03));
    border: 1px solid rgba(139, 92, 246, 0.16);
}
.star-rating-brand {
    user-select: none;
    display: inline-flex;
    gap: 0.15rem;
    direction: rtl;
}
.star-brand:hover {
    transform: scale(1.08);
}
#avgValue {
    color: var(--purple-light);
}
#ratingStatus .badge {
    font-weight: 600;
}
/* Buttons */
.btn-purple-brand,
.btn-buy-premium-brand,
.btn-free-brand,
.btn-purple-brand,
.btn-buy-premium-brand {
    background: linear-gradient(135deg, var(--purple-dark), var(--purple));
    color: #fff;
    border: none;
    box-shadow: 0 12px 28px rgba(109, 40, 217, 0.28);
}
.btn-purple-brand:hover,
.btn-buy-premium-brand:hover {
    transform: translateY(-2px);
    color: #fff;
    box-shadow: 0 16px 34px rgba(109, 40, 217, 0.34);
}
.btn-free-brand {
    background: linear-gradient(135deg, #0f766e, #14b8a6);
    color: #fff;
    border: none;
}
.btn-free-brand:hover {
    transform: translateY(-2px);
    color: #fff;
}
.btn-outline-sample-brand:hover {
    background: rgba(139, 92, 246, 0.16);
    color: #fff;
    transform: translateY(-2px);
}
/* Tabs nav - NOT sticky */
.product-tabs-nav-brand {
    position: static;
    z-index: auto;
}
.product-tabs-nav-brand .nav-pills {
    gap: 0.65rem;
    padding-inline: 0.25rem;
}
.product-tabs-nav-brand .nav-link {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-soft);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 999px;
    padding: 0.7rem 1rem;
    white-space: nowrap;
    transition: 0.2s ease;
}
.product-tabs-nav-brand .nav-link:hover {
    color: #fff;
    background: rgba(139, 92, 246, 0.14);
    border-color: rgba(139, 92, 246, 0.22);
}
/* Section cards */
.subtitle-brand {
    color: #fff;
}
.main-description-brand,
.review-body-brand,
.description-text-brand,
.quote-text-brand,
.text-justify-brand {
    color: var(--text-soft);
    line-height: 2;
    text-align: justify;
}
.main-description-brand strong,
.review-body-brand strong {
    color: #fff;
}
.main-description-brand p {
    margin-bottom: 0;
}
/* TOC */
.toc-section-brand {
    background: linear-gradient(180deg, rgba(21, 26, 45, 0.96), rgba(15, 18, 32, 0.96));
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-xl);
    padding: 1.25rem;
    box-shadow: var(--shadow-soft);
}
.badge-toc-brand {
    background: rgba(139, 92, 246, 0.14);
    color: var(--purple-light);
    border: 1px solid rgba(139, 92, 246, 0.22);
    border-radius: 999px;
    padding: 0.5rem 0.8rem;
}
.toc-content-brand {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
}
.toc-item-brand {
    color: var(--text-soft);
    transition: transform 0.15s ease, color 0.15s ease;
}
.toc-item-brand:hover {
    color: #fff;
    transform: translateX(-2px);
}
.toc-number-brand {
    color: var(--purple-light);
    font-weight: 700;
    min-width: 2rem;
}
.toc-text-brand {
    color: inherit;
}
/* Banner */
.product-banner-brand img {
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: var(--shadow-soft);
}
/* Samples */
.sample-card-brand {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.sample-card-brand:hover {
    transform: translateY(-4px);
    border-color: rgba(139, 92, 246, 0.28);
    box-shadow: 0 18px 35px rgba(0, 0, 0, 0.24);
}
.sample-card-brand:hover .sample-img-brand {
    transform: scale(1.05);
}
.sample-card-brand:hover .sample-overlay-brand {
    opacity: 1;
}
.sample-label-brand {
    background: rgba(139, 92, 246, 0.08);
    color: var(--text-soft);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}
/* Video */
.video-cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.video-overlay-brand {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.55));
    pointer-events: none;
}
.play-button-brand {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}
.play-icon-inner {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    background: rgba(139, 92, 246, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.6rem;
    box-shadow: 0 0 0 10px rgba(139, 92, 246, 0.12);
    position: relative;
    z-index: 2;
}
.play-pulse-1,
.play-pulse-2 {
    animation-delay: 1.1s;
}
.video-active .play-button-brand,
.video-active .video-caption-brand {
    display: none;
}
@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.85;
    }
    100% {
        transform: scale(1.9);
        opacity: 0;
    }
}
/* FAQ */
.faq-accordion-brand .accordion-item {
    background: transparent;
}
.faq-button-brand {
    background: rgba(255, 255, 255, 0.03) !important;
    color: #fff !important;
    border-radius: 14px !important;
    box-shadow: none !important;
    padding: 1rem 1.1rem;
}
.faq-button-brand:not(.collapsed) {
    background: rgba(139, 92, 246, 0.12) !important;
    color: #fff !important;
}
.faq-accordion-brand .accordion-body {
    color: var(--text-soft);
    padding-inline: 0.2rem;
}
/* Quotes */
.quote-card-brand {
    background: linear-gradient(180deg, rgba(27, 34, 64, 0.95), rgba(21, 26, 45, 0.95));
    border: 1px solid rgba(139, 92, 246, 0.12) !important;
}
.quote-bg-icon-brand {
    position: absolute;
    top: 16px;
    left: 16px;
    font-size: 2.2rem;
    color: rgba(196, 181, 253, 0.08);
    z-index: 1;
}
.quote-text-brand {
    position: relative;
    z-index: 2;
    font-size: 1rem;
    margin-bottom: 0;
}
.quote-footer-brand {
    border-top-color: rgba(255, 255, 255, 0.08) !important;
}
.carousel-indicators button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(196, 181, 253, 0.35);
}
/* Related searches */
#related-books {
    border: 1px solid var(--border-soft);
}
#related-books .list-group-item {
    color: var(--text-soft);
    transition: transform 0.15s ease, color 0.15s ease;
}
#related-books .list-group-item:hover {
    color: #fff;
    transform: translateX(-3px);
}
.hover-purple-brand:hover {
    color: var(--purple-light) !important;
}
/* Comments */
.review-item-brand {
    border-bottom-color: rgba(255, 255, 255, 0.06) !important;
}
.review-item-brand p {
    color: var(--text-soft);
}
.form-control.bg-dark {
    background-color: #0f1424 !important;
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 12px;
}
.form-control.bg-dark::placeholder {
    color: rgba(255, 255, 255, 0.38);
}
.form-control.bg-dark:focus {
    background-color: #11182b !important;
    color: #fff !important;
    border-color: rgba(139, 92, 246, 0.35) !important;
    box-shadow: 0 0 0 0.2rem rgba(139, 92, 246, 0.12) !important;
}
.alert.bg-success,
.alert.bg-danger {
    border-radius: 14px;
    box-shadow: var(--shadow-soft);
}
/* Modal */
.modal-content.bg-dark-deep-brand {
    background: linear-gradient(180deg, rgba(21, 26, 45, 0.98), rgba(15, 18, 32, 0.98));
    border-radius: 22px;
}
.modal-header,
.modal-footer {
    border-color: rgba(139, 92, 246, 0.16) !important;
}
.btn-close-white {
    filter: invert(1) grayscale(100%);
    opacity: 0.95;
}
/* Utilities */
.opacity-25 {
    opacity: 0.25 !important;
}
.opacity-50 {
    opacity: 0.5 !important;
}
/* Responsive */
@media (max-width: 991.98px) {
    .product-detail-placeholder-brand {
        min-height: 360px;
    }
    .video-placeholder-brand,
}
@media (max-width: 767.98px) {
    .product-detail-title-brand {
        font-size: 1.6rem;
    }
    .product-tabs-nav-brand .nav-pills {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 0.25rem;
    }
    .toc-section-brand,
    .product-detail-card-brand {
        padding: 1rem !important;
    }
    .review-avatar-brand {
        width: 40px;
        height: 40px;
        min-width: 40px;
    }
    .sample-img-wrapper-brand {
        }
    .video-placeholder-brand,
    .video-no-cover {
        min-height: 260px;
    }
}
@media (max-width: 575.98px) {
    .product-detail-wrapper-brand {
        border-radius: 18px !important;
    }
    .btn-buy-premium-brand,
    .btn-free-brand,
    .btn-outline-sample-brand {
        width: 100%;
    }
    .star-brand {
        font-size: 1.35rem;
    }
    .info-card-brand {
        padding: 0.85rem !important;
    }
    .quote-card-brand .card-body {
        padding: 1rem !important;
    }
    .video-caption-brand h5 {
        font-size: 0.98rem;
    }
}
/* استایل هدر دسته‌بندی */
/* دکمه مشاهده همه */
.btn-outline-purple-brand:hover {
    background: var(--purple);
    color: #fff;
    border-color: var(--purple);
}
/* اسلایدر بهینه شده */
.slider-container-brand .slider-track-brand::-webkit-scrollbar {
    height: 6px;
}
.slider-container-brand .slider-track-brand::-webkit-scrollbar-thumb {
    background: var(--purple);
    border-radius: 10px;
}
/* تنظیمات عمومی پس‌زمینه کل سایت */
/* بخش Hero (عنوان اصلی) */
.hero-section-brand {
    position: relative;
}
.hero-surface-brand {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at top right, rgba(139, 92, 246, 0.22), transparent 32%),
        radial-gradient(circle at bottom left, rgba(196, 181, 253, 0.08), transparent 28%),
        linear-gradient(135deg, #151a2d, #0f1220);
    border: 1px solid rgba(139, 92, 246, 0.18);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.28);
}
.hero-badge-brand {
    position: relative;
    z-index: 1;
    padding: 0.55rem 1rem;
    border-radius: 999px;
    background: rgba(139, 92, 246, 0.12);
    border: 1px solid rgba(196, 181, 253, 0.22);
    color: #c4b5fd;
    font-size: 0.92rem;
    font-weight: 700;
}
.hero-title-brand {
    color: #ffffff;
    line-height: 1.65;
    margin-bottom: 0.9rem;
}
.hero-subtitle-brand {
    color: #c8cde0;
    max-width: 780px;
    margin-inline: auto;
    line-height: 1.95;
}
/* کارت‌های اعتماد (Trust Cards) */
.trust-card {
    height: 100%;
    padding: 1.5rem 1.25rem;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(27, 34, 64, 0.95), rgba(21, 26, 45, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.24);
    transition: all 0.25s ease;
}
.trust-card:hover {
    transform: translateY(-6px);
    border-color: rgba(139, 92, 246, 0.28);
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.3);
}
.trust-icon-box {
    width: 72px;
    height: 72px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(109, 40, 217, 0.12));
    border: 1px solid rgba(196, 181, 253, 0.2);
}
.trust-icon {
    font-size: 1.85rem;
}
.trust-title {
    color: #ffffff;
    font-weight: 700;
    margin-bottom: 0.7rem;
}
.trust-desc {
    color: #c8cde0;
    line-height: 1.8;
    font-size: 0.92rem;
}
/* بخش محصولات (Sections) */
.section-head-brand {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.section-title-brand {
    color: #ffffff;
}
.text-purple-light {
    color: #c4b5fd !important;
}
/* دکمه‌ها */
.btn-view-all-brand {
    border-radius: 12px;
    background: rgba(139, 92, 246, 0.1);
    color: #c4b5fd;
    border: 1px solid rgba(196, 181, 253, 0.24);
    font-weight: 700;
    transition: all 0.2s ease;
}
.btn-view-all-brand:hover {
    background: linear-gradient(135deg, #6d28d9, #8b5cf6);
    color: #ffffff;
    border-color: transparent;
}
.btn-product-details-brand:hover {
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(109, 40, 217, 0.35);
}
/* کارت محصول (Product Card) */
.product-card-brand:hover {
    transform: translateY(-5px);
    border-color: rgba(139, 92, 246, 0.3);
}
/* اسلایدر (Slider) */
.slider-track-brand {
    display: flex;
    gap: 1.2rem;
    overflow-x: auto;
    padding-bottom: 1rem;
    scroll-snap-type: x proximity;
}
.slider-track-brand::-webkit-scrollbar {
    height: 6px;
}
.slider-track-brand::-webkit-scrollbar-thumb {
    background: #6d28d9;
    border-radius: 10px;
}
/* موبایل */
@media (max-width: 768px) {
    .slider-item-brand {
        min-width: 210px;
        flex-basis: 210px;
    }
}
/* کانتینر گرید (اختیاری، فقط برای اسکپ کردن استایل‌ها) */
.product-grid-brand {}
/* کارت محصول - نسخه نهایی (Dark Luxury Purple) */
.product-grid-brand .product-card-brand:hover {
    transform: translateY(-6px);
    border-color: rgba(139, 92, 246, 0.34) !important;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.30) !important;
}
/* تصویر */
/* placeholder وقتی کاور نیست */
.product-grid-brand /* متن‌ها */
/* دکمه */
.product-grid-brand .btn-product-details-brand:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(139, 92, 246, 0.28);
}
/* حل مشکل رفتن کارت‌ها توی هم و بازنشانی عرض ستون‌ها */
/* استایل کارت با تم بنفش لوکس و تیره */
/* هاور کارت */
.product-grid-brand .product-card-brand:hover {
    transform: translateY(-5px);
    border-color: rgba(139, 92, 246, 0.4) !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3) !important;
}
/* بخش تصویر کارت */
/* بدنه کارت و متون */
/* دکمه پایین کارت */
.product-grid-brand .btn-product-details-brand:hover {
    background: linear-gradient(135deg, #7c3aed, #a78bfa) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(139, 92, 246, 0.35);
    color: #ffffff !important;
}
/* استایل تصویر پیش‌فرض (زمانی که محصول کاور ندارد) */
.product-grid-brand .product-img-brand,
.product-grid-brand .product-title-brand,
/* ===== صفحه دسته‌بندی ===== */
/* ===== هدر دسته‌بندی ===== */
/* ===== گرید محصولات ===== */
.product-grid-brand .product-card-brand:hover {
    transform: translateY(-6px);
    border-color: rgba(139, 92, 246, 0.34) !important;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.30) !important;
}
.product-grid-brand .btn-product-details-brand:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(139, 92, 246, 0.28);
}
/* ===== باکس خالی ===== */
/* ===== pagination ===== */
.brand-page-link:hover {
    color: #fff !important;
    background: #1d2236 !important;
}
/* =========================
   Category Page Brand Style
========================= */
/* ===== هدر دسته‌بندی ===== */
.category-header-brand {
    background: linear-gradient(180deg, rgba(24, 29, 52, 0.96), rgba(18, 22, 31, 0.96));
    border: 1px solid rgba(186, 104, 200, 0.14);
    color: #e5e7eb;
}
.cat-img-wrapper-brand {
    max-width: 260px;
}
.cat-img-brand {
    width: 100%;
    height: auto;
    object-fit: cover;
}
.category-title-brand {
    color: #ffffff;
}
.category-desc-brand {
    color: #c8cde0;
    line-height: 2;
}
/* ===== گرید محصولات ===== */
.product-grid-brand .col {
    margin-bottom: 0;
}
.product-card-brand {
    border: 1px solid rgba(186, 104, 200, 0.16);
    border-radius: 18px;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(24, 29, 52, 0.98), rgba(18, 22, 31, 0.98));
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
    transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
    height: 100%;
}
.product-card-brand:hover {
    transform: translateY(-6px);
    border-color: rgba(139, 92, 246, 0.34);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.30);
}
.product-card-brand:hover .product-card-body-brand {
    padding: 1rem;
}
.btn-product-details-brand {
    background: linear-gradient(135deg, #6d28d9, #8b5cf6);
    border: none;
    color: #fff;
    border-radius: 12px;
    font-weight: 700;
    box-shadow: 0 8px 20px rgba(109, 40, 217, 0.22);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn-product-details-brand:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(139, 92, 246, 0.28);
    color: #fff;
}
/* ===== حالت خالی ===== */
/* ===== pagination ===== */
.brand-page-link {
    background: #151827 !important;
    border-color: rgba(186, 104, 200, 0.18) !important;
    color: #d8dcef !important;
}
.brand-page-link:hover {
    color: #fff !important;
    background: #1d2236 !important;
}
.brand-page-link-active {
    background: linear-gradient(135deg, #6d28d9, #8b5cf6) !important;
    border-color: transparent !important;
    color: #fff !important;
}
/* ===== ریسپانسیو ===== */
@media (max-width: 767.98px) {
    .cat-img-wrapper-brand,
    .cat-placeholder-brand {
        width: 220px;
        height: 220px;
        max-width: 220px;
    }
    .product-title-brand {
        min-height: auto;
    }
    .product-desc-brand {
        min-height: auto;
    }
}
/* =========================
   Header Brand Styles
   ========================= */
   .header-bg {
    direction: rtl;
    background: linear-gradient(180deg, rgba(16, 19, 31, 0.98), rgba(21, 25, 40, 0.96));
    border-bottom: 1px solid rgba(186, 104, 200, 0.16);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
    position: sticky;
    top: 0;
    z-index: 1030;
    backdrop-filter: blur(10px);
}
.header-bg .container {
    position: static;
}
/* Brand / Logo */
.brand-neon {
    color: #ffffff !important;
    text-decoration: none;
    letter-spacing: 0.2px;
    text-shadow: 0 0 10px rgba(168, 85, 247, 0.35), 0 0 22px rgba(109, 40, 217, 0.18);
    transition: transform 0.2s ease, text-shadow 0.2s ease, color 0.2s ease;
}
.brand-neon:hover {
    color: #f3e8ff !important;
    transform: translateY(-1px);
    text-shadow: 0 0 12px rgba(168, 85, 247, 0.5), 0 0 26px rgba(109, 40, 217, 0.28);
}
/* Search */
.search-form-brand .input-group {
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
    border: 1px solid rgba(186, 104, 200, 0.18);
    background: rgba(19, 24, 38, 0.96);
}
.search-input-brand {
    background: rgba(19, 24, 38, 0.98) !important;
    color: #e5e7eb !important;
    border: 0 !important;
    box-shadow: none !important;
    padding: 0.8rem 1rem;
}
.search-input-brand::placeholder {
    color: rgba(229, 231, 235, 0.62);
}
.search-input-brand:focus {
    background: rgba(19, 24, 38, 1) !important;
    color: #ffffff !important;
    box-shadow: inset 0 0 0 1px rgba(168, 85, 247, 0.45), 0 0 0 0.2rem rgba(168, 85, 247, 0.14) !important;
}
.btn-search-brand {
    background: linear-gradient(135deg, #6d28d9, #8b5cf6);
    color: #fff;
    border: 0;
    font-weight: 700;
    padding: 0.8rem 1.2rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}
.btn-search-brand:hover {
    color: #fff;
    transform: translateY(-1px);
    filter: brightness(1.05);
    box-shadow: 0 10px 20px rgba(109, 40, 217, 0.24);
}
.btn-search-brand:active {
    transform: translateY(0);
}
/* Desktop nav */
.desktop-nav {
    padding-top: 0.2rem;
    padding-bottom: 0.2rem;
}
.nav-menu-brand {
    gap: 0.35rem;
    align-items: center;
}
.nav-link-brand {
    color: #d9d5e9 !important;
    font-weight: 600;
    border-radius: 12px;
    padding: 0.6rem 0.9rem !important;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.nav-link-brand:hover,
.nav-link-brand:focus {
    color: #ffffff !important;
    background: rgba(139, 92, 246, 0.12);
    transform: translateY(-1px);
}
.nav-link-brand.active {
    color: #ffffff !important;
    background: rgba(139, 92, 246, 0.16);
    box-shadow: inset 0 0 0 1px rgba(186, 104, 200, 0.18);
}
/* Mobile menu button */
.btn-mobile-menu-brand {
    background: linear-gradient(135deg, #6d28d9, #8b5cf6);
    color: #fff;
    border: 0;
    border-radius: 14px;
    font-weight: 700;
    padding: 0.75rem 1rem;
    box-shadow: 0 10px 22px rgba(109, 40, 217, 0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn-mobile-menu-brand:hover {
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(109, 40, 217, 0.26);
}
.btn-mobile-menu-brand:focus {
    box-shadow: 0 0 0 0.2rem rgba(168, 85, 247, 0.18);
}
/* Mobile offcanvas styling */
.offcanvas {
    background: linear-gradient(180deg, rgba(16, 19, 31, 0.99), rgba(21, 25, 40, 0.98));
    color: #e5e7eb;
}
.offcanvas-header {
    border-bottom: 1px solid rgba(186, 104, 200, 0.12);
}
.offcanvas-title {
    color: #fff;
    font-weight: 700;
}
.offcanvas .nav-link {
    color: #e5e7eb !important;
    border-radius: 12px;
    padding: 0.75rem 0.9rem;
    margin-bottom: 0.35rem;
    transition: background-color 0.2s ease, color 0.2s ease;
}
.offcanvas .nav-link:hover,
.offcanvas .nav-link:focus {
    background: rgba(139, 92, 246, 0.12);
    color: #fff !important;
}
/* Responsive tweaks */
@media (max-width: 991.98px) {
    .header-bg .container {
        padding-top: 0.25rem;
        padding-bottom: 0.5rem;
    }
    .search-form-brand {
        width: 100%;
    }
    .search-form-brand .input-group {
        width: 100%;
    }
}
/* =========================
   Footer Brand Styles
   ========================= */
   .footer-brand {
    direction: rtl;
    background: linear-gradient(180deg, #10131f 0%, #151928 100%);
    border-top: 1px solid rgba(186, 104, 200, 0.18);
    color: #c8cde0;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.18);
}
.footer-box-brand {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(186, 104, 200, 0.12);
    border-radius: 18px;
    padding: 1.25rem 1rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.footer-box-brand:hover {
    transform: translateY(-4px);
    border-color: rgba(168, 85, 247, 0.28);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.22);
}
.footer-heading {
    color: #ffffff;
    font-weight: 700;
    position: relative;
    padding-bottom: 0.4rem;
}

.footer-text {
    font-size: 0.9rem;
    line-height: 2;
    color: #b8bfd6;
    margin-bottom: 0;
}
.footer-list li {
    margin-bottom: 0.7rem;
}
.footer-list li:last-child {
    margin-bottom: 0;
}
.footer-list a {
    color: #d8dcef;
    text-decoration: none;
    font-size: 0.92rem;
    transition: color 0.2s ease, transform 0.2s ease;
    display: inline-block;
}
.footer-list a:hover {
    color: #ffffff;
    transform: translateX(-4px);
}
.trust-items-brand {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}
.trust-item-brand {
    background: rgba(139, 92, 246, 0.12);
    color: #ede9fe;
    border: 1px solid rgba(196, 181, 253, 0.16);
    border-radius: 999px;
    padding: 0.45rem 0.85rem;
    font-size: 0.82rem;
    font-weight: 600;
}
.footer-divider {
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.footer-copy {
    color: rgba(255, 255, 255, 0.7);
}
@media (max-width: 991.98px) {
    .footer-box-brand {
        padding: 1rem;
    }
}
@media (max-width: 576px) {
    .footer-text {
        font-size: 0.85rem;
        line-height: 1.9;
    }
    .trust-item-brand {
        font-size: 0.78rem;
        padding: 0.4rem 0.75rem;
    }
}
/* =========================
   Desktop Mega Menu
   ========================= */
.mega-toggle-brand:hover,
.mega-toggle-brand:focus,
.nav-item.dropdown.show .mega-toggle-brand {
    color: #ffffff !important;
    text-shadow: 0 0 12px rgba(168, 85, 247, 0.45);
}
.mega-menu-dropdown {
    right: 0;
    left: 0;
    margin-top: 1rem;
    padding: 1.25rem 1rem;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(18, 22, 38, 0.98), rgba(28, 19, 48, 0.98));
    border: 1px solid rgba(168, 85, 247, 0.2) !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(14px);
}
.mega-menu-column {
    height: 100%;
    padding: 1rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.04);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.mega-menu-column:hover {
    transform: translateY(-4px);
    border-color: rgba(168, 85, 247, 0.25);
    box-shadow: 0 12px 30px rgba(124, 58, 237, 0.12);
}
.mega-menu-title {
    font-size: 0.98rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    position: relative;
}

.mega-parent-link {
    color: #ffffff;
    text-decoration: none;
}
.mega-parent-link:hover {
    color: #d8b4fe;
}
.mega-submenu-list li {
    margin-bottom: 0.45rem;
}
.mega-submenu-list li:last-child {
    margin-bottom: 0;
}
.mega-child-link {
    display: inline-block;
    color: #bfc7dd;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease, transform 0.2s ease;
}
.mega-child-link:hover {
    color: #ffffff;
    transform: translateX(-4px);
}
/* =========================
   Mobile Offcanvas Menu
   ========================= */
.mobile-offcanvas-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.02);
}
.mobile-offcanvas-body {
    color: #d7dcf0;
}
.mobile-menu-list,
.mobile-submenu-list {
    background: transparent;
}
.mobile-menu-item,
.mobile-submenu-item {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.05) !important;
}
.mobile-menu-link {
    display: flex;
    align-items: center;
    width: 100%;
    color: #f3e8ff;
    text-decoration: none;
    padding-right: 1rem;
    padding-left: 1rem;
    transition: background 0.2s ease, color 0.2s ease;
}
.mobile-menu-link:hover {
    background: rgba(168, 85, 247, 0.08);
    color: #ffffff;
}
.category-toggle-arrow {
    font-size: 0.8rem;
    color: #d8b4fe;
    transition: transform 0.25s ease;
}
.mobile-parent-link {
    display: block;
    text-decoration: none;
    color: #ffffff;
    background: rgba(139, 92, 246, 0.08);
    border-right: 3px solid #8b5cf6;
    transition: background 0.2s ease, color 0.2s ease;
}
.mobile-parent-link:hover {
    background: rgba(139, 92, 246, 0.16);
    color: #ffffff;
}
.mobile-children-list li {
    margin-bottom: 0.2rem;
}
.mobile-child-link {
    display: block;
    text-decoration: none;
    color: #bcc5df;
    transition: color 0.2s ease, background 0.2s ease;
    border-radius: 10px;
}
.mobile-child-link:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.04);
}
#mobileCategories.show + * {
    display: block;
}
@media (max-width: 575.98px) {
    
}
/* ==========================================================================
   تم بنفش تیره و لوکس - صفحات اختصاصی (دانلود، خطا و جستجو)
   ========================================================================== */
/* رنگ‌های کلی تم در صورت نیاز به استفاده مجدد */
:root {
    --bg-dark-primary: #0a0d16;
    --bg-dark-secondary: #111524;
    --purple-main: #8b5cf6;
    --purple-light: #c084fc;
    --purple-glow: rgba(139, 92, 246, 0.45);
    --border-light: rgba(186, 104, 200, 0.15);
    --text-muted-gray: #a0a6bd;
}
/* جهت کلی صفحات */
.download-page-brand,
.error-page-brand,
.search-page-brand {
    direction: rtl;
    text-align: right;
    color: #e2e8f0;
}
/* ---------------------------------
   ۱. استایل صفحه دانلود امن (secure.php)
   --------------------------------- */
.download-icon-brand {
    width: 70px;
    height: 70px;
    background: rgba(139, 92, 246, 0.15);
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: 50%;
    color: var(--purple-light);
    font-size: 1.8rem;
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.2);
}
.download-title-brand {
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}
.download-subtitle-brand {
    color: var(--text-muted-gray);
    font-size: 0.9rem;
}
/* باکس موفقیت و اطلاعات فایل */
.download-success-box-brand {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(74, 222, 128, 0.15);
    border-radius: 16px;
    padding: 1.5rem;
}
.download-status-title-brand {
    font-size: 1.05rem;
    font-weight: 700;
    color: #4ade80;
}
.download-info-row-brand {
    font-size: 0.9rem;
    color: #cbd5e1;
}
.border-light-opacity {
    border-color: rgba(255, 255, 255, 0.05) !important;
}
.download-info-label-brand {
    color: var(--text-muted-gray);
}
.download-info-value-brand {
    color: #ffffff;
}
/* دکمه دانلود */
.btn-download-file-brand {
    background: linear-gradient(90deg, #7c3aed, #a855f7);
    color: #ffffff !important;
    border: none;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(124, 58, 237, 0.35);
    transition: all 0.3s ease;
}
.btn-download-file-brand:hover {
    background: linear-gradient(90deg, #6d28d9, #9333ea);
    box-shadow: 0 8px 25px rgba(124, 58, 237, 0.5);
    transform: translateY(-2px);
}
/* باکس خطا */
.download-error-box-brand {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 16px;
    padding: 1.5rem;
}
.download-status-title-error-brand {
    font-size: 1.05rem;
    font-weight: 700;
    color: #ef4444;
}
.download-error-text-brand {
    font-size: 0.92rem;
    color: #fca5a5;
    line-height: 1.7;
}
/* دکمه بازگشت به خانه */
.btn-home-brand:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}
/* ---------------------------------
   ۲. استایل صفحه خطا (404.php)
   --------------------------------- */
.error-content-brand {
    background: linear-gradient(145deg, #111524, #161b2e);
    border: 1px solid var(--border-light);
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35) !important;
}
.error-icon-wrapper-brand {
    opacity: 0.8;
}
.text-purple-brand {
    color: var(--purple-light) !important;
}
.text-light-gray-brand {
    color: var(--text-muted-gray);
}
/* ---------------------------------
   ۳. استایل صفحه جستجو (search.php)
   --------------------------------- */
.search-header-card-brand {
    background: linear-gradient(145deg, #111524, #161b2e);
    border: 1px solid var(--border-light);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
}
.search-kicker-brand {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--purple-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.search-title-brand {
    color: #ffffff;
}
.search-query-brand {
    font-style: normal;
    text-shadow: 0 0 8px rgba(192, 132, 252, 0.3);
}
/* کارت خالی بودن نتایج جستجو */
.search-empty-card-brand {
    background: linear-gradient(145deg, #111524, #161b2e);
    border: 1px solid var(--border-light);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}
.search-empty-icon-brand {
    width: 80px;
    height: 80px;
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.18);
    border-radius: 50%;
    color: #fca5a5;
    font-size: 2.2rem;
}
.search-empty-title-brand {
    color: #ffffff;
}
.search-empty-text-brand {
    font-size: 0.95rem;
    line-height: 1.8;
}
.btn-search-home-brand {
    background: linear-gradient(90deg, #7c3aed, #a855f7);
    color: #ffffff !important;
    border: none;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(124, 58, 237, 0.25);
    transition: all 0.3s ease;
}
.btn-search-home-brand:hover {
    background: linear-gradient(90deg, #6d28d9, #9333ea);
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(124, 58, 237, 0.4);
}
/* واکنش‌گرایی عمومی */
@media (max-width: 767.98px) {
    .error-code-brand {
        font-size: 6rem;
    }
    .download-card-brand {
        padding: 1.5rem !important;
    }
    .search-badge-brand {
        align-self: flex-start;
        font-size: 0.8rem;
        padding: 0.4rem 0.85rem;
    }
}
/* ==========================================================================
   Checkout / Payment صفحات پرداخت و وضعیت
   ========================================================================== */
   :root {
    --brand-bg-1: #0b0f19;
    --brand-bg-2: #121827;
    --brand-card: linear-gradient(145deg, #111524, #171b2d);
    --brand-border: rgba(168, 85, 247, 0.16);
    --brand-border-strong: rgba(168, 85, 247, 0.26);
    --brand-purple: #8b5cf6;
    --brand-purple-2: #a855f7;
    --brand-purple-3: #c084fc;
    --brand-text: #eef2ff;
    --brand-text-soft: #b7bfd6;
    --brand-text-muted: #d9ddeb;
    --brand-success: #4ade80;
    --brand-success-bg: rgba(74, 222, 128, 0.08);
    --brand-danger: #fb7185;
    --brand-danger-bg: rgba(244, 63, 94, 0.08);
    --brand-warning: #fbbf24;
    --brand-shadow: 0 20px 50px rgba(0, 0, 0, 0.34);
}
.checkout-page-brand,
.payment-status-page-brand {
    direction: rtl;
    color: var(--brand-text);
}
/* -----------------------------
   کارت اصلی checkout
   ----------------------------- */
.checkout-card-brand {
    background: var(--brand-card);
    border: 1px solid var(--brand-border);
    box-shadow: var(--brand-shadow) !important;
    position: relative;
    overflow: hidden;
}

.checkout-title-brand {
    color: #ffffff;
    letter-spacing: -0.3px;
}
.checkout-subtitle-brand {
    color: var(--brand-text-muted);
    font-size: 0.92rem;
    line-height: 1.9;
}
/* -----------------------------
   خلاصه سفارش
   ----------------------------- */
.checkout-summary-brand {
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 18px;
    padding: 1rem 1.1rem;
}
.checkout-summary-row-brand:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}
.checkout-summary-row-brand:first-child {
    padding-top: 0;
}
.checkout-summary-label-brand {
    color: var(--brand-text-muted);
    font-size: 0.92rem;
}
.price-brand {
    color: #f5d0fe;
    text-shadow: 0 0 10px rgba(192, 132, 252, 0.22);
}
/* -----------------------------
   فرم checkout
   ----------------------------- */
.checkout-form-brand {
    position: relative;
    z-index: 1;
}
.checkout-label-brand {
    color: #f3f4f6;
    font-weight: 600;
    margin-bottom: 0.5rem;
}
.checkout-input-brand {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #ffffff;
    border-radius: 14px;
    min-height: 52px;
    padding: 0.85rem 1rem;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.checkout-input-brand::placeholder {
    color: #8f99b2;
}
.checkout-input-brand:focus {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(168, 85, 247, 0.42);
    box-shadow: 0 0 0 0.22rem rgba(139, 92, 246, 0.14);
    color: #ffffff;
}
.checkout-help-brand {
    display: inline-block;
    margin-top: 0.45rem;
    color: var(--brand-text-muted);
    font-size: 0.8rem;
    line-height: 1.7;
}
.btn-checkout-brand {
    background: linear-gradient(90deg, #7c3aed, #a855f7);
    border: none;
    color: #ffffff !important;
    border-radius: 14px;
    box-shadow: 0 10px 28px rgba(124, 58, 237, 0.3);
    transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}
.btn-checkout-brand:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 34px rgba(124, 58, 237, 0.38);
    filter: brightness(1.04);
}
/* -----------------------------
   کارت موفقیت پرداخت
   ----------------------------- */

.payment-icon-success-brand,
.payment-icon-success-brand {
    color: var(--brand-success);
    background: var(--brand-success-bg);
    border-color: rgba(74, 222, 128, 0.18);
    box-shadow: 0 0 26px rgba(74, 222, 128, 0.14);
}
.payment-title-success-brand,
.payment-message-success-brand {
    color: #bbf7d0;
    line-height: 1.9;
}
.payment-message-fail-brand {
    color: #fecdd3;
    line-height: 1.9;
}
/* -----------------------------
   باکس لینک دانلود در success
   ----------------------------- */
.download-box-brand {
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(74, 222, 128, 0.16);
    border-radius: 18px;
    padding: 1.2rem;
}
.download-box-title-brand {
    font-weight: 700;
    color: #d1fae5;
    font-size: 0.96rem;
}
.btn-download-brand {
    background: linear-gradient(90deg, #059669, #10b981);
    color: #ffffff !important;
    border: none;
    border-radius: 14px;
    box-shadow: 0 10px 26px rgba(16, 185, 129, 0.24);
    transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}
.btn-download-brand:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 34px rgba(16, 185, 129, 0.34);
    filter: brightness(1.03);
}
.download-note-brand {
    color: var(--brand-text-muted);
    line-height: 1.8;
}
/* -----------------------------
   باکس توضیح failed
   ----------------------------- */
.payment-note-brand {
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(251, 191, 36, 0.16);
    border-radius: 18px;
    padding: 1.15rem 1.2rem;
}
.payment-note-title-brand {
    color: #fde68a;
    font-weight: 700;
    font-size: 0.95rem;
}
/* -----------------------------
   دکمه بازگشت خانه
   ----------------------------- */
.btn-home-brand:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.18);
    transform: translateY(-2px);
}
/* -----------------------------
   ریسپانسیو
   ----------------------------- */
@media (max-width: 767.98px) {
    .checkout-card-brand,
    .payment-success-card-brand,
    .payment-fail-card-brand {
        padding: 1.4rem !important;
        border-radius: 22px !important;
    }
    .checkout-icon-brand {
        width: 68px;
        height: 68px;
        font-size: 1.7rem;
    }
    .payment-icon-success-brand,
    .payment-icon-fail-brand {
        width: 92px;
        height: 92px;
    }
    .payment-icon-success-brand svg,
    .payment-icon-fail-brand svg {
        width: 72px;
        height: 72px;
    }
    .checkout-summary-row-brand {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
    .checkout-summary-value-brand {
        text-align: right;
    }
}
@media (max-width: 575.98px) {
    .checkout-title-brand,
    .payment-title-success-brand,
    .payment-title-fail-brand {
        font-size: 1.2rem !important;
    }
    .checkout-subtitle-brand,
    .payment-message-success-brand,
    .payment-message-fail-brand,
    .payment-note-text-brand {
        font-size: 0.9rem;
    }
    .btn-checkout-brand,
    .btn-download-brand,
    .btn-home-brand {
        padding-top: 0.9rem !important;
        padding-bottom: 0.9rem !important;
    }
}
/* ═══ Merged from inline-styles.css ═══ */
/**
 * Inline Styles Extracted to External CSS
 * این فایل به صورت خودکار از inline style ها استخراج شده است.
 * تاریخ: 7/6/2026 1:13:30 PM
 */

/* ═══════════════════════════════════════════════════════════ */
/* Mobile Fixes - اصلاحات موبایل                             */
/* ═══════════════════════════════════════════════════════════ */

/* ═══ رفع اسکرول افقی ═══ */
* {
    box-sizing: border-box;
}

img, video, iframe {
    max-width: 100% !important;
    height: auto !important;
}

.container, .container-fluid {
    padding-left: 15px !important;
    padding-right: 15px !important;
    overflow-x: hidden !important;
}

/* ═══ عنوان کوچک‌تر در موبایل ═══ */
@media (max-width: 767.98px) {
    .display-5 {
        font-size: 1.75rem !important;
        line-height: 1.3 !important;
    }
    
    .hero-title-brand {
        font-size: 1.5rem !important;
    }
    
    h1.h2, .h2 {
        font-size: 1.5rem !important;
    }
}

/* ═══ کارت‌های ۱ ستونه در موبایل ═══ */
@media (max-width: 767.98px) {
    .row.row-cols-2 {
        --bs-columns: 1 !important;
    }
    
    .row-cols-2 > .col {
        flex: 0 0 100% !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .product-grid-brand.row-cols-2 > .col {
        flex: 0 0 100% !important;
        width: 100% !important;
    }
}

/* ═══ Breadcrumb کوچک‌تر ═══ */
@media (max-width: 767.98px) {
    .breadcrumb {
        font-size: 0.8rem !important;
        padding: 8px 10px !important;
    }
    
    .breadcrumb-item-brand {
        font-size: 0.8rem !important;
    }
    
    .breadcrumb-link-brand {
        font-size: 0.8rem !important;
    }
}

/* ═══ Nav Pills کوچک‌تر ═══ */
@media (max-width: 767.98px) {
    .product-tabs-nav-brand .nav-link {
        font-size: 0.8rem !important;
        padding: 6px 10px !important;
    }
    
    .product-tabs-nav-brand {
        margin-bottom: 1rem !important;
    }
}

/* ═══ المان‌ها زیر هم در موبایل ═══ */
@media (max-width: 767.98px) {
    .category-header-brand .col-md-4,
    .category-header-brand .col-md-8 {
        text-align: center !important;
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
    }
    
    .category-header-brand {
        text-align: center !important;
    }
    
    .cat-img-wrapper-brand {
        margin: 0 auto !important;
        max-width: 200px !important;
    }
    
    .category-title-brand {
        text-align: center !important;
    }
    
    .category-desc-brand {
        text-align: center !important;
    }
}

/* ═══ منوی موبایل ═══ */
@media (max-width: 991.98px) {
    
    
    .mobile-menu-link {
        padding: 12px 15px !important;
        font-size: 0.95rem !important;
    }
    
    .mobile-submenu-list {
        padding-right: 15px !important;
    }
    
    .mobile-child-link {
        font-size: 0.85rem !important;
        padding: 8px 15px !important;
    }
}

/* ═══ فاصله‌ها در موبایل ═══ */
@media (max-width: 767.98px) {
    .product-detail-wrapper-brand {
        padding: 1rem !important;
    }
    
    .product-detail-card-brand {
        padding: 1rem !important;
    }
    
    .trust-card {
        padding: 1rem !important;
    }
    
    .section-title-brand {
        font-size: 1.2rem !important;
    }
}

/* ═══ Slider در موبایل ═══ */
@media (max-width: 767.98px) {
    .slider-container-brand {
        overflow: hidden !important;
        width: 100% !important;
    }
    
    .slider-track-brand {
        display: flex !important;
        overflow-x: auto !important;
        scroll-snap-type: x mandatory !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none !important;
    }
    
    .slider-track-brand::-webkit-scrollbar {
        display: none !important;
    }
    
    .slider-item-brand {
        flex: 0 0 100% !important;
        width: 100% !important;
        scroll-snap-align: start !important;
    }
}

/* ═══ Auto Slider ═══ */
25%, 45% { transform: translateX(-100%); }
    50%, 70% { transform: translateX(-200%); }
    75%, 95% { transform: translateX(-300%); }
    100% { transform: translateX(0); }
}

@media (max-width: 767.98px) {
    .slider-track-brand.auto-slide {
        animation: autoSlide 16s infinite !important;
    }
    
    .slider-track-brand.auto-slide:hover {
        animation-play-state: paused !important;
    }
}

/* ═══════════════════════════════════════════════════════════ */
/* Mobile Fixes - اصلاحات موبایل (درست)                      */
/* ═══════════════════════════════════════════════════════════ */

/* ═══ رفع اسکرول افقی ═══ */
img, video, iframe {
    max-width: 100% !important;
    height: auto !important;
}

/* ═══ عنوان کوچک‌تر در موبایل ═══ */
@media (max-width: 767.98px) {
    .display-5 {
        font-size: 1.75rem !important;
        line-height: 1.3 !important;
    }
    
    .hero-title-brand {
        font-size: 1.5rem !important;
    }
    
    h1.h2, .h2 {
        font-size: 1.5rem !important;
    }
}

/* ═══ Breadcrumb کوچک‌تر ═══ */
@media (max-width: 767.98px) {
    .breadcrumb {
        font-size: 0.8rem !important;
        padding: 8px 10px !important;
    }
    
    .breadcrumb-item-brand {
        font-size: 0.8rem !important;
    }
}

/* ═══ Nav Pills کوچک‌تر ═══ */
@media (max-width: 767.98px) {
    .product-tabs-nav-brand .nav-link {
        font-size: 0.8rem !important;
        padding: 6px 10px !important;
    }
}

/* ═══ المان‌ها زیر هم در موبایل ═══ */
@media (max-width: 767.98px) {
    .category-header-brand .col-md-4,
    .category-header-brand .col-md-8 {
        text-align: center !important;
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
    }
    
    .category-header-brand {
        text-align: center !important;
    }
    
    .cat-img-wrapper-brand {
        margin: 0 auto !important;
        max-width: 200px !important;
    }
}

/* ═══ فاصله‌ها در موبایل ═══ */
@media (max-width: 767.98px) {
    .product-detail-wrapper-brand {
        padding: 1rem !important;
    }
    
    .product-detail-card-brand {
        padding: 1rem !important;
    }
    
    .section-title-brand {
        font-size: 1.2rem !important;
    }
}


/* ═══ منوی موبایل ═══ */
@media (max-width: 991.98px) {
    
    
    .mobile-menu-link {
        padding: 12px 15px !important;
        font-size: 0.95rem !important;
        display: block !important;
    }
    
    .mobile-submenu-list {
        padding-right: 15px !important;
        display: block !important;
    }
    
    .mobile-child-link {
        font-size: 0.85rem !important;
        padding: 8px 15px !important;
        display: block !important;
    }
    
    .mobile-parent-link {
        display: block !important;
    }
}

/* ═══ فاصله کناری ═══ */
.container {
    padding-left: 15px;
    padding-right: 15px;
}

@media (min-width: 768px) {
    .container {
        padding-left: 30px;
        padding-right: 30px;
    }
}

@media (min-width: 992px) {
    .container {
        padding-left: 40px;
        padding-right: 40px;
    }
}

/* ═══ منوی موبایل Full-Screen ═══ */
@media (max-width: 991.98px) {
    .mobile-offcanvas-brand {
        width: 100% !important;
        max-width: 100% !important;
        height: 100vh !important;
        top: 0 !important;
        right: 0 !important;
        left: 0 !important;
        bottom: 0 !important;
    }
    
    .mobile-offcanvas-brand .offcanvas-body {
        padding: 1rem !important;
        overflow-y: auto !important;
    }
    
    .mobile-menu-link {
        padding: 15px 20px !important;
        font-size: 1.1rem !important;
        display: block !important;
    }
    
    .mobile-submenu-list {
        padding-right: 20px !important;
        display: block !important;
    }
    
    .mobile-child-link {
        font-size: 1rem !important;
        padding: 12px 20px !important;
        display: block !important;
    }
    
    .mobile-parent-link {
        display: block !important;
        font-size: 1.05rem !important;
        padding: 12px 15px !important;
    }
}


/* ═══════════════════════════════════════════════════════════ */
/* Mobile Fixes - اصلاحات موبایل (نهایی)                     */
/* ═══════════════════════════════════════════════════════════ */

/* ═══ رفع اسکرول افقی ═══ */
html, body {
    overflow-x: hidden !important;
}

* {
    box-sizing: border-box;
}

img, video, iframe {
    max-width: 100% !important;
    height: auto !important;
}

/* ═══ عنوان کوچک‌تر در موبایل ═══ */
@media (max-width: 767.98px) {
    .display-5 {
        font-size: 1.75rem !important;
        line-height: 1.3 !important;
    }
    
    .hero-title-brand {
        font-size: 1.5rem !important;
    }
    
    h1.h2, .h2 {
        font-size: 1.5rem !important;
    }
}

/* ═══ Breadcrumb کوچک‌تر ═══ */
@media (max-width: 767.98px) {
    .breadcrumb {
        font-size: 0.8rem !important;
        padding: 8px 10px !important;
    }
    
    .breadcrumb-item-brand {
        font-size: 0.8rem !important;
    }
    
    .breadcrumb-link-brand {
        font-size: 0.8rem !important;
    }
}

/* ═══ Nav Pills کوچک‌تر ═══ */
@media (max-width: 767.98px) {
    .product-tabs-nav-brand .nav-link {
        font-size: 0.8rem !important;
        padding: 6px 10px !important;
    }
    
    .product-tabs-nav-brand {
        margin-bottom: 1rem !important;
    }
}

/* ═══ المان‌ها زیر هم در موبایل ═══ */
@media (max-width: 767.98px) {
    .category-header-brand .col-md-4,
    .category-header-brand .col-md-8 {
        text-align: center !important;
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
    }
    
    .category-header-brand {
        text-align: center !important;
    }
    
    .cat-img-wrapper-brand {
        margin: 0 auto !important;
        max-width: 200px !important;
    }
    
    .category-title-brand {
        text-align: center !important;
    }
    
    .category-desc-brand {
        text-align: center !important;
    }
}

/* ═══ فاصله‌ها در موبایل ═══ */
@media (max-width: 767.98px) {
    .product-detail-wrapper-brand {
        padding: 1rem !important;
    }
    
    .product-detail-card-brand {
        padding: 1rem !important;
    }
    
    .trust-card {
        padding: 1rem !important;
    }
    
    .section-title-brand {
        font-size: 1.2rem !important;
    }
}

/* ═══ Slider در موبایل ═══ */
@media (max-width: 767.98px) {
    .slider-container-brand {
        overflow: hidden !important;
        width: 100% !important;
    }
    
    .slider-track-brand {
        display: flex !important;
        overflow-x: auto !important;
        scroll-snap-type: x mandatory !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none !important;
    }
    
    .slider-track-brand::-webkit-scrollbar {
        display: none !important;
    }
    
    .slider-item-brand {
        flex: 0 0 100% !important;
        width: 100% !important;
        scroll-snap-align: start !important;
    }
}

/* ═══ Auto Slider ═══ */
25%, 45% { transform: translateX(-100%); }
    50%, 70% { transform: translateX(-200%); }
    75%, 95% { transform: translateX(-300%); }
    100% { transform: translateX(0); }
}

@media (max-width: 767.98px) {
    .slider-track-brand.auto-slide {
        animation: autoSlide 16s infinite !important;
    }
    
    .slider-track-brand.auto-slide:hover {
        animation-play-state: paused !important;
    }
}

/* ═══ فاصله کناری ═══ */
.container {
    padding-left: 15px;
    padding-right: 15px;
}

@media (min-width: 768px) {
    .container {
        padding-left: 30px;
        padding-right: 30px;
    }
}

@media (min-width: 992px) {
    .container {
        padding-left: 40px;
        padding-right: 40px;
    }
}


/* ═══════════════════════════════════════════════════════════ */
/* Mega Menu Fix - اصلاح مگا منو                             */
/* ═══════════════════════════════════════════════════════════ */

/* ═══ Position درست ═══ */
.nav-item.dropdown {
    position: static !important;
}

/* ═══ جلوگیری از اسکرول ═══ */
.mega-menu-dropdown {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    margin-top: 0.5rem !important;
    z-index: 1050 !important;
    transform: none !important;
    will-change: auto !important;
}

/* ═══ Header بدون overflow ═══ */
header {
    position: relative !important;
    overflow: visible !important;
    z-index: 1000 !important;
}

header .container {
    position: relative !important;
    overflow: visible !important;
}

/* ═══ Navbar بدون overflow ═══ */
.navbar,
.navbar-collapse,
.navbar-nav {
    overflow: visible !important;
}

/* ═══ Dropdown Toggle ═══ */
.mega-toggle-brand {
    position: relative !important;
    cursor: pointer !important;
}

.mega-toggle-brand::after {
    margin-right: 0.5rem;
    transition: transform 0.3s ease;
}

.mega-toggle-brand[aria-expanded="true"]::after {
    transform: rotate(180deg);
}

/* ═══ انیمیشن باز شدن ═══ */
.mega-menu-dropdown {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mega-menu-dropdown.show {
    opacity: 1;
    visibility: visible;
}


/* ═══════════════════════════════════════════════════════════ */
/* Product Slider - اسلایدر محصولات                          */
/* ═══════════════════════════════════════════════════════════ */

/* ═══ Wrapper ═══ */
/* ═══ Track ═══ */
/* ═══ Items ═══ */
/* ═══ Dots ═══ */
/* ═══ Responsive - موبایل ═══ */
@media (max-width: 767.98px) {
    }

/* ═══ Responsive - تبلت ═══ */
@media (min-width: 768px) and (max-width: 991.98px) {
    }

/* ═══ Responsive - دسکتاپ ═══ */
@media (min-width: 992px) {
    }


/* ═══════════════════════════════════════════════════════════ */
/* Product Slider - اسلایدر محصولات (اصلاح شده)              */
/* ═══════════════════════════════════════════════════════════ */

.product-slider-item .card {
    max-width: 100%;
}

/* ═══ Responsive ═══ */
@media (max-width: 767.98px) {
    }

/* ═══════════════════════════════════════════════════════════ */
/* Product Slider - اسلایدر محصولات (ساده و ظریف)            */
/* ═══════════════════════════════════════════════════════════ */

.product-slider-wrapper {
    position: relative;
    width: 100%;
    margin-bottom: 1rem;
}

.product-slider-track {
    position: relative;
    width: 100%;
}

.product-slider-item {
    display: none;
    width: 100%;
}

.product-slider-item.active {
    display: block;
}

.product-slider-item .card {
    margin: 0 auto;
}

.product-slider-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 1rem;
}

.product-slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(186, 104, 200, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.product-slider-dot:hover {
    background-color: rgba(186, 104, 200, 0.6);
}

.product-slider-dot.active {
    background-color: #ba68c8;
    width: 30px;
    border-radius: 5px;
}

@media (max-width: 767.98px) {
    .product-slider-wrapper {
        width: 90%;
        margin-left: auto;
        margin-right: auto;
    }
}

/* ═══════════════════════════════════════════════════════════ */
/* Product Carousel - اسلایدر Carousel                       */
/* ═══════════════════════════════════════════════════════════ */

@media (min-width: 768px) {
    @media (min-width: 992px) {
    

/* ═══════════════════════════════════════════════════════════ */
/* Professional RTL Carousel                                 */
/* ═══════════════════════════════════════════════════════════ */

@media (min-width: 768px) {
    }

@media (min-width: 992px) {
    }

/* ═══════════════════════════════════════════════════════════ */
/* Professional RTL Carousel - Direction Fix                 */
/* ═══════════════════════════════════════════════════════════ */

@media (min-width: 768px) {
    }

@media (min-width: 992px) {
    }

/* ═══════════════════════════════════════════════════════════ */
/* Professional RTL Carousel - Final Version                 */
/* ═══════════════════════════════════════════════════════════ */

@media (min-width: 768px) {
    }

@media (min-width: 992px) {
    }

/* ═══════════════════════════════════════════════════════════ */
/* Professional RTL Carousel - RTL Aligned                   */
/* ═══════════════════════════════════════════════════════════ */

@media (min-width: 768px) {
    }

@media (min-width: 992px) {
    }

/* ═══════════════════════════════════════════════════════════ */
/* Professional RTL Carousel - RTL Aligned (Fixed)           */
/* ═══════════════════════════════════════════════════════════ */

@media (min-width: 768px) {
    }

@media (min-width: 992px) {
    }


/* ═══════════════════════════════════════════════════════════ */
/* Carousel - Final Clean Version (Only One Definition)      */
/* ═══════════════════════════════════════════════════════════ */

.pro-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.pro-carousel-viewport {
    overflow: hidden;
    width: 100%;
}

.pro-carousel-track {
    display: flex;
    flex-direction: row-reverse; /* RTL: محصولات از راست به چپ */
    flex-wrap: nowrap;
    transition: transform 0.5s ease;
}

.pro-carousel-item {
    flex: 0 0 100%;
    padding: 0 10px;
    box-sizing: border-box;
}

@media (min-width: 768px) {
    .pro-carousel-item {
        flex: 0 0 33.333%;
    }
}

@media (min-width: 992px) {
    .pro-carousel-item {
        flex: 0 0 25%;
    }
}

.pro-carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 1.5rem;
}

.pro-carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(186, 104, 200, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.pro-carousel-dot:hover {
    background-color: rgba(186, 104, 200, 0.6);
}

.pro-carousel-dot.active {
    background-color: #ba68c8;
    width: 30px;
    border-radius: 5px;
}


/* ═══════════════════════════════════════════════════════════ */
/* Optimized Image Sizes - اندازه‌های بهینه تصاویر         */
/* ═══════════════════════════════════════════════════════════ */


.cat-img-wrapper-brand {
    position: relative;
    width: 100%;
    max-width: 400px;
    aspect-ratio: 3 / 2;
    overflow: hidden;
}

.cat-img-brand {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


.product-banner-brand {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 5; 
    overflow: hidden;
    border-radius: 16px;
}

.product-banner-brand img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}


.sample-img-wrapper-brand {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 2;
    overflow: hidden;
}

.sample-img-wrapper-brand img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* ═══════════════════════════════════════════════════════════ */
/* Optimized Image Sizes - اندازه‌های بهینه تصاویر         */
/* ═══════════════════════════════════════════════════════════ */

/* کارت محصول: aspect-ratio 1:1 */
/* تصویر اصلی محصول: aspect-ratio 1:1 */

/* ═══════════════════════════════════════════════════════════ */
/* Product Detail Image - Fixed for 300x400 Book Covers      */
/* ═══════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════ */
/* Product Card Image - Fixed for 300x400 Book Covers        */
/* ═══════════════════════════════════════════════════════════ */

.product-img-wrapper-brand {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4; /* نسبت دقیق 300 به 400 برای کاور کتاب */
    overflow: hidden;
    background: #0d1020;
    border-radius: 12px;
}

.product-img-brand {
    width: 100%;
    height: 100%;
    object-fit: contain; /* نمایش کامل تصویر بدون هیچ برش‌خوردگی */
    display: block;
}


/* ═══════════════════════════════════════════════════════════ */
/* Product Detail Image - Mobile CLS Fix                     */
/* ═══════════════════════════════════════════════════════════ */

.product-detail-img-container-brand {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4;
    margin: 0 auto;
    overflow: hidden;
    background: #0d1020;
    border-radius: 16px;
    contain: layout style; /* جلوگیری از CLS */
}

.product-detail-img-brand {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* موبایل: تصویر کامل عرض */
@media (max-width: 767.98px) {
    .product-detail-img-container-brand {
        max-width: 100%; /* حذف max-width در موبایل */
        width: 280px; /* عرض ثابت برای جلوگیری از CLS */
    }
}

/* تبلت و دسکتاپ */
@media (min-width: 768px) {
    .product-detail-img-container-brand {
        max-width: 300px;
    }
}


/* ═══════════════════════════════════════════════════════════ */
/* CLS Fix - جلوگیری از Layout Shift                         */
/* ═══════════════════════════════════════════════════════════ */

main.container.my-4 {
    /* min-height حذف شد */
}

div#description.toc-section-brand {
    /* min-height حذف شد */
}

ul.nav.nav-pills.justify-content-start {
    /* min-height حذف شد */
}

li.nav-item {
    /* min-width حذف شد */
}


/* ═══════════════════════════════════════════════════════════ */
/* CLS Fix - contain: layout style paint                     */
/* ═══════════════════════════════════════════════════════════ */

main.container.my-4 {
    contain: layout style paint;
}

div#description.toc-section-brand {
    contain: layout style paint;
}

ul.nav.nav-pills.justify-content-start {
    contain: layout style paint;
}

.toc-section-brand {
    contain: layout style paint;
}


/* ═══════════════════════════════════════════════════════════ */
/* Info Cards - چیدمان افقی (آیکون + متن کنار هم)            */
/* ═══════════════════════════════════════════════════════════ */


/* ═══════════════════════════════════════════════════════════ */
/* Info Cards - چیدمان افقی در همه سایزها (موبایل + دسکتاپ) */
/* ═══════════════════════════════════════════════════════════ */

.toc-section-brand.h-100.p-2.rounded-3 {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 0.75rem !important;
    flex-wrap: nowrap !important;
}

/* ═══ موبایل ═══ */
@media (max-width: 767.98px) {
    .toc-section-brand.h-100.p-2.rounded-3 {
        padding: 0.5rem !important;
        gap: 0.5rem !important;
    }
    
    }

/* ═══ تبلت ═══ */
@media (min-width: 768px) and (max-width: 991.98px) {
    }

/* ═══ دسکتاپ ═══ */
@media (min-width: 992px) {
    }


/* ═══════════════════════════════════════════════════════════ */
/* Info Cards Horizontal - چیدمان افقی قطعی                  */
/* ═══════════════════════════════════════════════════════════ */

body .info-card-horizontal-brand,
main .info-card-horizontal-brand,
.info-card-horizontal-brand {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 0.75rem !important;
    flex-wrap: nowrap !important;
    padding: 0.5rem !important;
    background: rgba(139, 92, 246, 0.08) !important;
    border-radius: 0.5rem !important;
    height: 100% !important;
}

body .info-card-icon-brand,
main .info-card-icon-brand,
i.info-card-icon-brand {
    color: #c084fc !important;
    font-size: 1.5rem !important;
    flex-shrink: 0 !important;
    margin: 0 !important;
    display: inline-block !important;
    line-height: 1 !important;
}

body .info-card-text-brand,
main .info-card-text-brand,
.info-card-text-brand {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.25rem !important;
    flex: 1 !important;
    min-width: 0 !important;
}

body .info-card-label-brand,
main .info-card-label-brand,
span.info-card-label-brand {
    font-size: 0.75rem !important;
    color: #a0a6bd !important;
    display: block !important;
    line-height: 1.2 !important;
    margin: 0 !important;
}

body .info-card-value-brand,
main .info-card-value-brand,
strong.info-card-value-brand {
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    color: #ffffff !important;
    line-height: 1.2 !important;
    margin: 0 !important;
}

@media (max-width: 767.98px) {
    .info-card-horizontal-brand {
        gap: 0.5rem !important;
        padding: 0.4rem !important;
    }
    
    i.info-card-icon-brand {
        font-size: 1.25rem !important;
    }
    
    span.info-card-label-brand {
        font-size: 0.7rem !important;
    }
    
    strong.info-card-value-brand {
        font-size: 0.8rem !important;
    }
}


/* ═══════════════════════════════════════════════════════════ */
/* Video - رفع Overflow در موبایل                            */
/* ═══════════════════════════════════════════════════════════ */

.video-wrapper-brand {
    position: relative;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.video-placeholder-brand {
    position: relative;
    width: 100%;
    max-width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    cursor: pointer;
}

.video-wrapper-brand iframe {
    width: 100% !important;
    max-width: 100% !important;
    height: 100% !important;
    aspect-ratio: 16 / 9 !important;
    border: none !important;
    display: block !important;
}

.video-cover-img {
    width: 100% !important;
    max-width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

@media (max-width: 767.98px) {
    .video-wrapper-brand {
        width: 100% !important;
        max-width: 100% !important;
        overflow: hidden !important;
    }
    
    .video-placeholder-brand {
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .video-wrapper-brand iframe {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        aspect-ratio: 16 / 9 !important;
    }
}

/* ═══════════════════════════════════════════════════════════ */
/* Fix Modal Freeze - جلوگیری از فریز شدن مودال خرید        */
/* ═══════════════════════════════════════════════════════════ */
#checkoutModal {
    z-index: 9999 !important;
}

#checkoutModal .modal-content {
    z-index: 10000 !important;
    pointer-events: auto !important; /* تضمین قابل کلیک بودن فیلدها */
}

#checkoutModal .modal-backdrop {
    z-index: 9998 !important;
}