/* RTL + Arabic tweaks for the template without rewriting all CSS */

/* خلفية البانر: من CSS حتى تظهر حتى قبل تشغيل JS، مع لون احتياطي إذا فشل تحميل الصورة */
.banner-area.banner-bg {
  background-color: #0f1419;
  background-image: url("../img/banner/banner_bg01.jpg");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}
@media (max-width: 767.98px) {
  .banner-area.banner-bg {
    background-image: url("../img/banner/banner_bg01_mobile.jpg");
  }
}

/* خلفية قسم «ليش تختارنا» و«النشرة» من CSS حتى تظهر حتى قبل تشغيل JS */
.services-area.services-bg {
  background-color: #0f1419;
  background-image: url("../img/bg/services_bg.jpg");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}
.newsletter-area.newsletter-bg {
  background-color: #0f1419;
  background-image: url("../img/bg/newsletter_bg.jpg");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}

html[dir="rtl"] body {
  direction: rtl;
  text-align: right;
  font-family: "Cairo", system-ui, -apple-system, "Segoe UI", Tahoma, Arial, sans-serif;
}

/* Arabic friendly defaults */
html[dir="rtl"] .btn,
html[dir="rtl"] .download-btn,
html[dir="rtl"] input,
html[dir="rtl"] select,
html[dir="rtl"] textarea {
  font-family: inherit;
  letter-spacing: 0 !important;
  text-transform: none !important;
}

/* Arabic section subtitles (template was uppercase + letter-spacing) */
html[dir="rtl"] .section-title .sub-title,
html[dir="rtl"] .title-style-two .sub-title {
  letter-spacing: 0 !important;
  text-transform: none !important;
}

html[dir="rtl"] .section-title,
html[dir="rtl"] .banner-content,
html[dir="rtl"] .movie-content,
html[dir="rtl"] .services-content-wrap,
html[dir="rtl"] .newsletter-content,
html[dir="rtl"] .copyright-text {
  text-align: right;
}

html[dir="rtl"] .navbar-wrap .navigation {
  justify-content: flex-start; /* because RTL flips the flow */
}

html[dir="rtl"] .header-action ul {
  flex-direction: row-reverse;
}

html[dir="rtl"] .header-action ul li {
  margin-left: 0;
  margin-right: 20px;
}

html[dir="rtl"] .header-action ul li:first-child {
  margin-right: 0;
}

html[dir="rtl"] .banner-meta ul {
  justify-content: flex-start;
}

html[dir="rtl"] .banner-meta ul li + li {
  margin-left: 0;
  margin-right: 15px;
}

/* Fix "download-btn" (was designed for EN uppercase + rotated label) */
html[dir="rtl"] .services-img-wrap .download-btn {
  text-transform: none !important;
  letter-spacing: 0 !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  padding: 14px 18px !important;
  right: 20px !important;
  left: auto !important;
  bottom: 20px !important;
  transform: none !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
}

html[dir="rtl"] .services-img-wrap .download-btn img {
  transform: none !important;
}
/* قسم ليش تختارنا: نفس ترتيب سابق، مع ترتيب النصوص فقط */
html[dir="rtl"] .services-row-rtl {
  direction: rtl;
}
html[dir="rtl"] .services-row-rtl .services-content-wrap {
  text-align: right;
}
/* ترتيب النصوص: مسافات ووضوح دون تغيير ترتيب العناصر */
html[dir="rtl"] .services-row-rtl .services-content-wrap .section-title .sub-title {
  display: block;
  margin-bottom: 0.35rem;
}
html[dir="rtl"] .services-row-rtl .services-content-wrap .section-title .title {
  margin-bottom: 0.75rem;
}
html[dir="rtl"] .services-row-rtl .services-content-wrap > p,
html[dir="rtl"] .services-row-rtl .services-content-wrap .services-desc {
  margin-bottom: 1.5rem;
  line-height: 1.75;
}
html[dir="rtl"] .services-row-rtl .services-list ul li .content h5 {
  margin-bottom: 0.25rem;
}
html[dir="rtl"] .services-row-rtl .services-list ul li .content p {
  line-height: 1.55;
}

html[dir="rtl"] .movie-item .movie-content .top {
  direction: rtl;
}

html[dir="rtl"] .footer-social ul,
html[dir="rtl"] .quick-link-list ul {
  justify-content: flex-start;
}

/* Title style two: flip the decorative line to the right */
html[dir="rtl"] .title-style-two .sub-title {
  padding-left: 0 !important;
  padding-right: 53px !important;
}

html[dir="rtl"] .title-style-two .sub-title::before {
  left: auto !important;
  right: 0 !important;
}

/* كروت القضايا — ترتيب ثابت: صورة فوق ثم العنوان ثم التفاصيل ثم الزر */
.movie-item.case-card {
  display: flex;
  flex-direction: column;
  text-align: right;
}
.case-card .movie-poster {
  position: relative;
  order: 1;
  flex-shrink: 0;
}
.case-card .movie-content {
  order: 2;
  display: flex;
  flex-direction: column;
}
.case-card .movie-content .top {
  order: 1;
}
.case-card .movie-content > p {
  order: 2;
}
.case-card .movie-content .bottom {
  order: 3;
}
.case-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #e4d804;
  color: #0b0e13;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
}
html[dir="rtl"] .case-badge {
  right: auto;
  left: 12px;
}
/* نوع العرض على الكرت نفسه: قضايا جديدة | الأكثر طلباً | عروض */
.case-tab-label {
  position: absolute;
  bottom: 10px;
  right: 10px;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.75);
  color: #e4d804;
  border: 1px solid rgba(228, 216, 4, 0.35);
}
html[dir="rtl"] .case-tab-label {
  right: auto;
  left: 10px;
}
.case-tab-label.case-tab-best {
  color: #c8b8ff;
  border-color: rgba(200, 184, 255, 0.4);
}
.case-tab-label.case-tab-offer {
  color: #7dd3fc;
  border-color: rgba(125, 211, 252, 0.4);
}
.case-teaser {
  font-size: 13px;
  color: #d0d0d0;
  margin: 6px 0 10px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
/* ترتيب أسفل الكارت: تاغ + ملف كامل + زر واحد واضح */
.case-card .movie-content .bottom.case-card-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.case-card .movie-content .bottom.case-card-bottom ul {
  display: none;
}
.case-card .case-tag {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.1);
  color: #c8c8c8;
  border: 1px solid rgba(255, 255, 255, 0.15);
}
.case-card .case-tag-new {
  background: rgba(228, 216, 4, 0.2);
  color: #e4d804;
  border-color: rgba(228, 216, 4, 0.4);
}
.case-card .case-tag-offer {
  background: rgba(228, 216, 4, 0.15);
  color: #e4d804;
  border-color: rgba(228, 216, 4, 0.35);
}
/* السعر والتخفيض على الكارت */
.case-price-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-bottom: 10px;
}
/* السعر داخل أسفل الكارت (فوق زر «اطلب ملف القضية») */
.case-card .case-price-in-card {
  width: 100%;
  margin-top: 4px;
  margin-bottom: 8px;
}
.case-card .case-price-in-card .case-price-wrap {
  margin-bottom: 0;
}
.case-price {
  font-size: 1.1rem;
  font-weight: 700;
  color: #e4d804;
}
.case-price-old {
  font-size: 0.9rem;
  color: #888;
  text-decoration: line-through;
}
.case-discount-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(228, 216, 4, 0.2);
  color: #e4d804;
}
/* صفحة تفاصيل القضية — خلفية: لون داكن أو صورة (من data-background) مع طبقة داكنة فوقها */
.ucm-area.case-detail-page {
  padding-top: 7rem;
  padding-bottom: 4rem;
  min-height: 60vh;
  background-color: #0b0e13;
  background-size: cover;
  background-position: center;
  position: relative;
}
/* طبقة داكنة شفافة فوق الصورة لبقاء النص واضحاً (مثل القالب) */
.ucm-area.case-detail-page::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(11, 14, 19, 0.98);
  z-index: 0;
  pointer-events: none;
}
.ucm-area.case-detail-page .container {
  position: relative;
  z-index: 1;
}
.case-detail-text-col {
  padding-top: 2rem;
}
@media (min-width: 992px) {
  .case-detail-text-col {
    padding-top: 2.5rem;
    padding-inline-start: 1.5rem;
  }
}
#caseDetailContent .row {
  margin-top: 0.5rem;
}
/* جسم صفحة التفاصيل داكن (case.html) */
body.page-case-detail {
  background-color: #0b0e13;
}
.case-detail-poster-wrap {
  margin-top: 0;
  background: #12151a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  overflow: hidden;
}
.case-detail-poster-wrap img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}
.case-detail-section-label {
  color: #e4d804;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}
.case-detail-title {
  color: #fff;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.5rem;
}
.case-detail-meta {
  font-size: 1.05rem;
  color: #b0b0b0;
}
.case-detail-heading {
  color: #e4d804;
  font-weight: 700;
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}
.case-detail-desc-text {
  color: #d8d8d8;
  font-size: 1.15rem;
  line-height: 1.85;
}
.case-detail-body-text {
  color: #d8d8d8;
  font-size: 1.15rem;
  line-height: 1.9;
}
.case-detail-body-text p {
  margin-bottom: 1rem;
}
.case-detail-body-text p:last-child {
  margin-bottom: 0;
}
.case-detail-desc {
  margin-bottom: 1.5rem !important;
}
.case-detail-desc .case-detail-desc-text.case-detail-placeholder {
  color: #888;
  font-style: italic;
  font-size: 1.1rem;
}
.case-cta-btn {
  background: #e4d804 !important;
  color: #0b0e13 !important;
  font-weight: 700;
  border: none;
  padding: 10px 24px;
  border-radius: 8px;
}
.case-cta-btn:hover {
  background: #f0e64d !important;
  color: #0b0e13 !important;
}
.case-detail-label {
  color: #b0b0b0;
  display: block;
  margin-bottom: 6px;
}
.case-detail-input {
  background: #12151a;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  border-radius: 8px;
  max-width: 100%;
}
.case-detail-input:focus {
  border-color: rgba(228, 216, 4, 0.5);
  outline: none;
}
.case-detail-comments,
.case-detail-rate,
.case-detail-others {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.case-detail-page .case-rating-stars {
  display: inline-flex;
  gap: 2px;
}
.case-detail-page .case-rating-stars i {
  font-size: 1.1rem;
}
/* زر النجمة: النجمة في منتصف الزر (ليست في منتصف دائرة) */
.case-rating-star-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0 !important;
  margin: 0 !important;
  color: rgba(255, 255, 255, 0.5) !important;
  transition: color 0.2s;
}
.case-rating-star-btn i {
  font-size: 1.35rem;
  margin: 0 !important;
}
.case-rating-star-btn:hover {
  color: #e4d804 !important;
}
.case-rating-star-btn.text-warning {
  color: #e4d804 !important;
}
.case-rating-star-btn.text-warning i,
.case-rating-star-btn:hover i {
  font-weight: 900;
}
.case-detail-price-block {
  font-size: 1.2rem;
}
.case-detail-price-label {
  color: #e4d804;
  font-weight: 700;
  margin-left: 0.25rem;
}
.case-detail-page .case-detail-price-block .case-price {
  font-size: 1.35rem;
}
.case-price-none {
  font-size: 1rem;
}
.case-card .case-meta {
  font-size: 13px;
  color: #b0b0b0;
  margin-inline-end: auto;
}
.case-card .case-meta i {
  margin-left: 5px;
  color: #e4d804;
}
.case-card .case-cta {
  font-size: 14px;
  padding: 10px 18px;
  background: #e4d804;
  color: #0b0e13;
  border: none;
  border-radius: 8px;
  font-weight: 800;
  transition: background 0.2s, transform 0.15s;
  box-shadow: 0 2px 12px rgba(228, 216, 4, 0.25);
}
.case-card .case-cta:hover {
  background: #f0e64d;
  color: #0b0e13;
  transform: translateY(-1px);
}
/* تفاصيل الكارت واضحة — عنوان وتاريخ ووصف مقروءة */
.case-card .movie-content .top .title {
  margin-bottom: 6px;
  font-size: 1.1rem;
}
.case-card .movie-content .top .title a {
  color: #ffffff;
  font-weight: 800;
  text-decoration: none;
  text-shadow: 0 0 20px rgba(0,0,0,0.3);
}
.case-card .movie-content .top .title a:hover {
  color: #e4d804;
}
.case-card .movie-content .top .date {
  font-size: 13px;
  color: #b8b8b8;
  font-weight: 500;
}
/* منطقة الصورة = مكان إعلانكم — تظهر دائماً ولا تكون صندوق فارغ */
.case-card .movie-poster a {
  display: block;
  background: #0f1420;
  min-height: 200px;
}
.case-card .movie-poster img {
  width: 100%;
  height: auto;
  display: block;
  min-height: 200px;
  object-fit: cover;
  background: #0f1420;
  vertical-align: middle;
}
.case-card .movie-poster .ad-slot-label {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  color: rgba(228, 216, 4, 0.8);
  background: rgba(0,0,0,0.6);
  padding: 2px 8px;
  border-radius: 4px;
  white-space: nowrap;
}

/* لوحة المتصدرين — نافذة وحيدة تظهر عند الضغط */
.leaderboard-modal-content {
  background: #0b0e13;
  border: 1px solid rgba(228, 216, 4, 0.25);
  border-radius: 12px;
  color: #fff;
}
.leaderboard-modal-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1rem 1.25rem;
}
.leaderboard-modal-header .leaderboard-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  margin: 0;
}
.leaderboard-modal-header .close {
  color: #fff;
  opacity: 0.9;
  text-shadow: none;
}
.leaderboard-modal-body {
  padding: 1rem 1.25rem 1.5rem;
  text-align: right;
}
.leaderboard-modal-body .leaderboard-desc {
  font-size: 0.95rem;
  color: #b8b8b8;
  margin-bottom: 1.25rem;
  text-align: center;
  line-height: 1.5;
}
/* تبويبات لوحة المتصدرين حسب القضية */
.leaderboard-case-tabs {
  border: none;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 6px;
  display: flex;
  justify-content: center;
}
.leaderboard-case-tabs .nav-link {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ccc;
  font-size: 0.9rem;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.leaderboard-case-tabs .nav-link:hover {
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}
.leaderboard-case-tabs .nav-link.active {
  border-color: #e4d804;
  background: rgba(228, 216, 4, 0.15);
  color: #e4d804;
}
.leaderboard-modal-body .tab-content {
  padding-top: 0;
}
.leaderboard-modal-body .leaderboard-table-wrap {
  overflow-x: auto;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.leaderboard-modal-body .leaderboard-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  text-align: right;
}
.leaderboard-modal-body .leaderboard-table thead {
  background: rgba(228, 216, 4, 0.12);
  color: #e4d804;
}
.leaderboard-modal-body .leaderboard-table th {
  padding: 10px 12px;
  font-weight: 700;
  border-bottom: 2px solid rgba(228, 216, 4, 0.3);
}
.leaderboard-modal-body .leaderboard-table td {
  padding: 10px 12px;
  color: #e0e0e0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.leaderboard-modal-body .leaderboard-table tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.02);
}
.leaderboard-modal-body .leaderboard-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.05);
}
.leaderboard-modal-body .leaderboard-table tbody td:first-child {
  color: #e4d804;
  font-weight: 700;
  width: 2.5rem;
}
.leaderboard-modal-body .leaderboard-link-cell {
  white-space: nowrap;
}
.leaderboard-modal-body .leaderboard-video-link {
  color: #e4d804;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  transition: opacity 0.2s;
}
.leaderboard-modal-body .leaderboard-video-link:hover {
  color: #f0e64d;
  opacity: 0.9;
  text-decoration: underline;
}
.leaderboard-modal-body .leaderboard-video-link .fab.fa-youtube {
  color: #ff0000;
}
@media (max-width: 575px) {
  .leaderboard-modal-body .leaderboard-table {
    font-size: 0.85rem;
  }
  .leaderboard-modal-body .leaderboard-table th,
  .leaderboard-modal-body .leaderboard-table td {
    padding: 8px 6px;
  }
}

/* بديل نصي للوجو عند غياب أو فشل تحميل الصورة — لا يظهر موقع آخر */
.logo-text-fallback {
  color: #e4d804;
  font-weight: 700;
  font-size: 1.35rem;
  white-space: nowrap;
}
.logo-link img {
  display: block;
}

/* صفحة المتجر — هيدر واضح وبدون تكرار */
.page-shop .menu-area {
  background: #0b0e13 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.page-shop .menu-area .logo a,
.page-shop .menu-area .navigation a {
  color: #fff;
}
.page-shop .menu-area .navigation .active a {
  color: #e4d804;
}

/* صفحة المتجر الكاملة — لوحة كامل مرتب بتقسيم واضح */
.shop-full-page {
  min-height: 100vh;
  padding-bottom: 2rem;
  background: #0b0e13;
}
.shop-page-section {
  padding: 2rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.shop-page-section:last-of-type {
  border-bottom: none;
}
.shop-page-header {
  padding-top: 2.5rem;
  padding-bottom: 1.25rem;
}
.shop-page-header .sub-title {
  color: #e4d804;
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}
.shop-page-header .title {
  margin-bottom: 0;
  font-size: 1.75rem;
  color: #fff;
  font-weight: 800;
}
.shop-page-tabs {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

/* كتلة الأقسام — واضحة وقوية */
.cases-filter-block {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  margin-bottom: 1.25rem;
  background: #12151a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
}
.cases-filter-label {
  font-weight: 700;
  font-size: 1rem;
  color: #e4d804;
  margin-left: 0.5rem;
}
.cases-category-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.cases-pill {
  padding: 0.5rem 1rem;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: inherit;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: #c0c0c0;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}
.cases-pill:hover {
  border-color: rgba(228, 216, 4, 0.5);
  color: #fff;
  background: rgba(228, 216, 4, 0.08);
}
.cases-pill.active {
  border-color: #e4d804;
  background: rgba(228, 216, 4, 0.15);
  color: #e4d804;
}
#shop .shop-header-row .cases-filter-block,
.ucm-area .shop-header-row .cases-filter-block {
  margin-left: 0;
  margin-right: 0;
}

.shop-page-content.ucm-bg::before {
  display: none !important;
}
.shop-page-content.ucm-bg {
  background-color: #0b0e13;
  padding: 2rem 0 3rem;
  flex: 1;
}
@media (max-width: 991px) {
  .shop-full-page {
    padding-top: 0;
  }
  .shop-page-header {
    padding-top: 1.75rem;
  }
  .shop-page-section {
    padding: 1.25rem 0;
  }
}

/* كروت المتجر — مرتبة وواضحة: صورة ثم عنوان ثم تفاصيل ثم زر */
#shop .case-card,
.shop-page-content .case-card {
  background: #12151a;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0;
  transition: border-color 0.2s, box-shadow 0.2s;
}
#shop .case-card:hover,
.shop-page-content .case-card:hover {
  border-color: rgba(228, 216, 4, 0.25);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}
#shop .case-card .movie-poster,
.shop-page-content .case-card .movie-poster {
  margin-bottom: 0;
  border-radius: 12px 12px 0 0;
  overflow: hidden;
}
#shop .case-card .movie-poster img,
.shop-page-content .case-card .movie-poster img {
  border-radius: 12px 12px 0 0;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  min-height: 0;
}
#shop .case-card .movie-content,
.shop-page-content .case-card .movie-content {
  padding: 1.15rem 1.25rem 1.25rem;
  padding-right: 1.25rem;
  background: #12151a;
}
#shop .case-card .movie-content .top,
.shop-page-content .case-card .movie-content .top {
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}
#shop .case-card .movie-content .top .title,
.shop-page-content .case-card .movie-content .top .title {
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
  width: 100%;
}
#shop .case-card .movie-content .top .date,
.shop-page-content .case-card .movie-content .top .date {
  margin-left: 0;
  width: 100%;
  font-size: 12px;
}
#shop .case-cards-grid,
.shop-page-content .case-cards-grid {
  gap: 1.5rem;
}
#shop .case-cards-grid .movie-item,
.shop-page-content .case-cards-grid .movie-item {
  margin-bottom: 0;
}
@media (max-width: 575px) {
  #shop .case-card .movie-poster img,
  .shop-page-content .case-card .movie-poster img {
    aspect-ratio: 4 / 3;
  }
}

/* منطقة المتجر: إزالة الطبقة اللي تغطي النص (كانت تخفي التفاصيل) */
#shop.ucm-bg::before {
  display: none !important;
}
#shop.ucm-bg {
  background-image: none !important;
  background-color: #0b0e13;
}
/* صف عنوان المتجر: العنوان فوق ثم التبويبات تحته بشكل مرتب */
#shop .shop-header-row .row:first-child {
  margin-bottom: 1.25rem;
}
#shop .shop-section-title {
  margin-bottom: 0;
  text-align: center;
}
#shop .shop-section-title .sub-title {
  display: inline-block;
  margin-bottom: 6px;
}
#shop .shop-section-title .title {
  margin-bottom: 0;
}
#shop .shop-nav-wrap {
  display: flex;
  justify-content: center;
}
#shop .shop-nav-wrap .nav-tabs {
  display: flex;
  border: none;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}
#shop .shop-nav-wrap .nav-link {
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  transition: background 0.2s, border-color 0.2s;
}
#shop .shop-nav-wrap .nav-link:hover {
  border-color: rgba(255,255,255,0.4);
  background: rgba(255,255,255,0.06);
}
#shop .shop-nav-wrap .nav-link.active {
  border-color: #e4d804;
  background: rgba(228, 216, 4, 0.15);
  color: #e4d804;
}
/* المحتوى ظاهر بدون طبقة فوقه */
#shop.ucm-bg .container {
  position: relative;
  z-index: 1;
}
#shop .tab-content {
  position: relative;
  z-index: 1;
}
#shop .case-card,
#shop .movie-item.case-card {
  position: relative;
  z-index: 1;
}
/* كروت المتجر: شبكة مربعة ومنتظمة — كل الكروت بنفس الارتفاع تقريباً */
.case-cards-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
  align-items: stretch;
}
.case-cards-grid .movie-item {
  display: flex !important;
  flex-direction: column;
  min-width: 0;
}
.case-cards-grid .movie-item.case-card {
  height: 100%;
}
.case-cards-grid .case-card .movie-poster {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.case-cards-grid .case-card .movie-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.case-cards-grid .case-card .movie-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.case-cards-grid .case-card .movie-content .top .title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 1rem;
}
@media (max-width: 991px) {
  .case-cards-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  }
}
@media (max-width: 575px) {
  .case-cards-grid {
    grid-template-columns: 1fr;
  }
}

