/* ===========================
   🎡 Carousel Section (Owl Carousel)
   🎡 بخش کاروسل (Owl Carousel)
   🎡 قسم الكاروسيل (Owl Carousel)
   =========================== */
.owl-carousel {
  display: block;
  width: 100%;
}
.owl-carousel .owl-item {
  float: left;
  width: auto; /* JS controls width | جاوااسکریپت عرض آیتم‌ها را کنترل می‌کند | جافاسكريبت يتحكم بعرض العناصر */
}
.owl-carousel .item {
  display: flex;
  justify-content: center;
  align-items: stretch;
}
/* Cards in carousel | کارت‌ها در کاروسل | البطاقات في الكاروسيل */
.owl-carousel .owl-item .company-card {
  margin: 0 10px;
  max-width: 280px;
  min-height: 200px;
}

/* کارت‌های فروشگاه، محصول، مقاله و سرمایه‌گذاری یک اندازه */
.company-card {
  width: 260px;        /* عرض ثابت */
  height: 320px;       /* ارتفاع ثابت */
  margin: 0 10px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
/* کارت سرمایه‌گذاری هم مثل بقیه شود */
.cardH {
  width: 260px;       /* عرض ثابت مثل بقیه */
  height: 320px;      /* ارتفاع ثابت */
  margin: 0 10px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  background: #fff;
}

.card-img-invest {
  width: 100%;        /* تصویر تمام عرض کارت */
  height: 160px;      /* ارتفاع ثابت برای تصویر */
  object-fit: cover;  /* تصویر بریده نشود */
  border-radius: 12px 12px 0 0;
}



/* ===========================
   🛒 Shop Grid
   🛒 گرید فروشگاه‌ها
   🛒 شبكة المتاجر
   =========================== */
.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 20px;
  width: 100%;
}

/* ===========================
   🎠 General Carousel Wrapper
   🎠 بخش کاروسل عمومی
   🎠 قسم الكاروسيل العام
   =========================== */
.carousel-wrapper {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 1.5rem;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 25px 50px -12px rgba(59, 130, 246, 0.25),
              0 0 0 1px rgba(59, 130, 246, 0.1);
  overflow: hidden;
  width: 100%;
}

/* ===========================
   📱 Responsive
   📱 ریسپانسیو
   📱 استجابة
   =========================== */
@media (max-width: 200px) {
  #main-panel { margin: 0; border-radius: 1.5rem; padding: 1rem; }
  .shop-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 15px; }
  .section-title { font-size: 1.5rem; }
  .owl-carousel .owl-item .company-card { margin: 0 5px; }
  .slider-wrapper { padding: 0 10px; }
}
@media (min-width: 769px) and (max-width: 1024px) {
  .shop-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
}
@media (min-width: 1025px) {
  .more-btn { display: none; }
}

/* ===========================
   📰 News Section
   📰 بخش اخبار
   📰 قسم الأخبار
   =========================== */
.marquee-main {
  width: fit-content;
  padding: 15px 0;
  white-space: nowrap;
  animation: scroll 60s linear infinite;
  font-size: 1.1rem;
  color: #667eea;
}
@keyframes scroll {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}
.btn-news {
  display: inline-block;
  background: linear-gradient(135deg, #FF8C42, #FF6A00);
  color: #fff;
  font-weight: bold;
  font-size: 0.95rem;
  padding: 8px 16px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  box-shadow: 0 6px 6px rgba(0,0,0,0.6);
  transition: all 0.3s ease;
  width: fit-content;
}
.btn-news:hover {
  background: linear-gradient(135deg, #0056b3, #003f7f);
  transform: translateY(-2px);
}
.news-box {
  background: white;
  border-radius: 12px;
  padding: 16px;
  margin: 0 auto;
  box-shadow: 0 0 25px rgba(59, 130, 246, 0.3),
              0 0 50px rgba(59, 130, 246, 0.15);
}

/* ===========================
   📂 Buttons & Categories
   📂 دکمه‌ها و دسته‌بندی‌ها
   📂 الأزرار والتصنيفات
   =========================== */
.shopcat-btn {
  display: inline-block;
  background: linear-gradient(135deg, #42A5F5, #1E88E5);
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 10px 14px;
  margin: 6px 4px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.28);
  transition: transform 0.2s ease, box-shadow 0.3s ease, background 0.2s ease;
  width: 100%;
  text-align: center;
}
.shopcat-btn:hover {
  background: linear-gradient(135deg, #FB8C00, #EF6C00);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.22);
}

.carousel-btn {
  display: block;
  width: 100%;
  text-align: center;
  background: linear-gradient(135deg, #0056b3, #003f7f);
  color: #fff !important;
  font-weight: 700;
  font-size: 1rem;
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 3px 8px rgba(0,0,0,0.25);
  transition: all 0.3s ease;
  margin-bottom: 12px;
}

/* Category Sidebar Card | کارت بک‌گراند دسته‌بندی‌ها | بطاقة خلفية التصنيفات */
.category-wrapper .category-sidebar {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 1.5rem;
  padding: 20px;
  box-shadow: 0 25px 50px -12px rgba(59, 130, 246, 0.25),
              0 0 0 1px rgba(59, 130, 246, 0.1);
}

/* Special Shops Card | کارت بک‌گراند فروشگاه‌های ویژه | بطاقة خلفية المتاجر المميزة */
.special-shops-wrapper {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 1.5rem;
  padding: 20px;
  box-shadow: 0 25px 50px -12px rgba(59, 130, 246, 0.25),
              0 0 0 1px rgba(59, 130, 246, 0.1);
}

/* ===========================
   📱 Mobile Category Button
   📱 دکمه دسته‌بندی موبایل
   📱 زر التصنيفات للموبايل
   =========================== */
.vertical-btn {
  background: linear-gradient(135deg, #FF8C42, #FF6A00);
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: 0 12px 12px 0;
  font-weight: bold;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  cursor: pointer;
  transition: all 0.5s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}
.vertical-btn .btn-text {
  transition: opacity 0.5s ease, transform 0.5s ease;
}
/* Shrink state | حالت کوچک‌شده | حالة مصغرة */
.vertical-btn.shrink {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  padding: 0;
  justify-content: center;
  box-shadow: 0 12px 28px rgba(0,0,0,0.28);
}
/* Hide text | متن محو شود | إخفاء النص */
.vertical-btn.shrink .btn-text {
  opacity: 0;
  transform: scale(0);
  display: none;
}
/* Icon remains | آیکن باقی بماند | يبقى الأيقون */
.vertical-btn.shrink i {
  transform: scale(1.2);
}
/* Only show on mobile | فقط در موبایل نمایش داده شود | يظهر فقط على الموبايل */
@media (min-width: 992px) {
  .vertical-sidebar-toggle,
  #categorySidebarPanel {
    display: none !important;
  }
}
.vertical-sidebar-toggle {
  position: fixed;
  top: 40%;
  left: 0;
  z-index: 2000;
  display: block;
}

/* ===========================
   📂 Mobile Category Panel
   📂 پنل دسته‌بندی موبایل
   📂 لوحة التصنيفات للموبايل
   =========================== */
.category-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(0,0,0,0.3);
  z-index: 2999;
  display: none;
}
.category-overlay.show { display: block; }

.category-btn {
  display: block;
  width: 100%;
  height: 48px;
  box-sizing: border-box;
  padding: 12px 16px;
  margin-bottom: 10px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  border: none;
  border-radius: 10px;
  color: white !important;
  text-decoration: none;
  font-weight: bold;
  font-size: 1rem;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
  transition: background 0.3s ease, transform 0.2s ease;
}

.category-sidebar-panel {
  position: fixed;
  top: 0; 
  left: -280px;
  width: 280px; 
  height: 100vh;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  box-shadow: 4px 0 12px rgba(0,0,0,0.15);
  transition: left 0.3s ease;
  z-index: 2000;
  padding: 16px;
  border-radius: 0 12px 12px 0;
}
.category-sidebar-panel.show { left: 0; }

/* Panel header | سربرگ پنل | رأس اللوحة */
.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: bold;
  margin-bottom: 12px;
}

/* ===========================
   💡 Main Card with Backlight
   💡 کارت اصلی با افکت بک‌لایت
   💡 البطاقة الرئيسية مع إضاءة خلفية
   =========================== */
.card-wrapper {
  position: relative;
  display: inline-block;
  width: 100%;
}

#main-panel {
  position: relative;
  background: #fff;
  border-radius: 2rem;
  padding: 2rem;
  max-width: 1600px;
  box-shadow: 0 0 25px rgba(0,0,203,0.3),
              0 0 50px rgba(0,0,203,0.15);
  z-index: 1;
}

.backlight {
  position: absolute;
  top: -40px;
  left: -40px;
  right: -40px;
  bottom: -40px;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.7;
  z-index: 0;
  transition: all 1s ease;
}


/* دکمه‌های ناوبری Owl Carousel */
.owl-nav {
  position: absolute;
  top: 50%;
  width: 101%;
  display: flex;
  justify-content: space-between; /* یکی چپ، یکی راست */
  transform: translateY(-54%);
  pointer-events: none; /* برای اینکه کلیک فقط روی دکمه‌ها باشد */
}

.owl-nav button {
  background: rgba(0,0,0,0.4);
  color: #fff;
  border: none;
  font-size: 12rem;
  padding: 6px 12px;
  border-radius: 50%;
  cursor: pointer;
  pointer-events: auto; /* فعال کردن کلیک */
  transition: background 0.3s ease;
}

.owl-nav button:hover {
  background: rgba(0,0,0,0.9);
}

