/* =========================================================
   TRUE STORE - CLEAN GAMING THEME (نسخة منظّفة)
   ========================================================= */

:root {
  --purple: #8A0EDD;
  --purple-light: #B84DFF;
  --blue: #00BFFF;

  --bg: #080014;
  --bg-2: #120020;
  --card: #160B21;
  --card-2: #21102F;

  --white: #FFFFFF;
  --muted: #C8B8D8;
  --border: rgba(184, 77, 255, .28);
}

/* =========================
   GLOBAL
   ========================= */

html,
body,
main {
  background: var(--bg) !important;
  color: var(--white) !important;
}

body {
  overflow-x: hidden;
}

.s-block,
.s-block-container,
.s-block-content,
section {
  background: transparent !important;
  color: var(--white) !important;
}

/* =========================
   HEADER
   ========================= */

header,
.s-header,
.s-header-main,
.s-header-container {
  background: #080014 !important;
  color: var(--white) !important;
  border-bottom: 1px solid var(--border) !important;
  box-shadow: 0 8px 25px rgba(138, 14, 221, .20) !important;
}

header .container,
header .s-container,
header *:not(svg, path, img) {
  background-color: transparent !important;
}

header {
  background: #080014 !important;
}

/* Header text & icons */

header a,
header button,
header span,
header p {
  color: var(--white) !important;
}

header svg {
  color: var(--white) !important;
  stroke: var(--white) !important;
}

header button:hover svg,
header a:hover svg {
  color: var(--purple-light) !important;
  stroke: var(--purple-light) !important;
}

/* =========================
   LOGO (بدون توهج)
   ========================= */

header img {
  max-width: 150px !important;
  max-height: 65px !important;
  width: auto !important;
  object-fit: contain !important;
  margin-inline-start: auto;
}

/* =========================
   CART / ACCOUNT BUTTONS
   ========================= */

.sicon-cart:before {
  color: var(--purple-light) !important;
}

header salla-cart-summary button,
header salla-user-menu button {
  width: 48px !important;
  height: 48px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 50% !important;
  background: var(--card) !important;
  color: var(--white) !important;
  border: 1px solid rgba(184, 77, 255, .45) !important;
}

header salla-cart-summary button:hover,
header salla-user-menu button:hover {
  border-color: var(--purple-light) !important;
  box-shadow: 0 0 15px rgba(184, 77, 255, .30) !important;
}

header [class*="badge"],
header [class*="count"] {
  background: var(--purple) !important;
  color: var(--white) !important;
  border: 2px solid var(--bg) !important;
}

/* =========================
   SEARCH (تم إخفاء صف البحث بالكامل من الهيدر)
   ========================= */

header form,
header form[role="search"],
header .s-header-search,
header .s-header-search-bar,
header .s-header-search-form,
header .s-search-form,
header .s-header-mobile-search,
header [class*="search-bar"],
header [class*="search-form"],
header salla-search-input,
salla-search-input,
header input[type="search"],
header input[type="search"]:not(.sicon-search) {
  display: none !important;
}

/* =========================
   NAVBAR
   ========================= */

header nav,
.s-header nav,
.s-header-navbar {
  background: #0A0710 !important;
  color: var(--white) !important;
  border: 1px solid var(--border) !important;
  border-radius: 40px !important;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .35) !important;
  margin: 10px auto !important;
  padding: 8px 14px !important;
  width: calc(100% - 40px) !important;
}

header nav a,
.s-header nav a {
  color: var(--white) !important;
  border-radius: 12px !important;
  transition: .2s ease;
}

header nav a:hover,
header nav a.active {
  color: var(--purple-light) !important;
  background: rgba(138, 14, 221, .10) !important;
}

/* =========================
   HERO / البانر الرئيسي — محصور داخل قسم البانر فقط
   ========================= */

/* الشريحة: ارتفاع بنسبة 3:2 (البانر 1350×900) */
.s-block--hero-slider .swiper-slide {
  position: relative !important;
  display: block !important;
  width: 100% !important;
  height: 0 !important;
  padding-bottom: 66.66% !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow: hidden !important;
  background-color: #080014 !important;
  aspect-ratio: auto !important;
}

/* صورة البانر (background-image على div.bg-cover) */
.s-block--hero-slider .swiper-slide > div.bg-cover,
.s-block--hero-slider .swiper-slide [class*="bg-cover"] {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  min-width: 100% !important;
  max-width: none !important;
  height: 100% !important;
  margin: 0 !important;
  transform: none !important;
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
}

/* حاويات البانر */
.s-block--hero-slider,
.s-block--hero-slider salla-slider,
.s-block--hero-slider .swiper,
.s-block--hero-slider .swiper-wrapper {
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

/* إخفاء النص فوق البانر */
.s-block--hero-slider .swiper-slide h2,
.s-block--hero-slider .swiper-slide p.description,
.s-block--hero-slider .swiper-slide .flex-center.container {
  display: none !important;
}

/* الجوال: الصورة كاملة بدون قص */
@media (max-width: 768px) {
  .s-block--hero-slider .swiper-slide > div.bg-cover,
  .s-block--hero-slider .swiper-slide [class*="bg-cover"] {
    background-size: contain !important;
  }
}

/* =========================
   TITLES
   ========================= */

h1, h2, h3, h4, h5, h6,
.s-block-title,
.s-block__title,
.section-title {
  color: var(--white) !important;
}

/* =========================
   PRODUCT CARDS
   ========================= */

.s-product-card-entry,
.s-product-card,
custom-salla-product-card {
  background: linear-gradient(145deg, var(--card), var(--card-2)) !important;
  color: var(--white) !important;
  border: 1px solid rgba(184, 77, 255, .20) !important;
  border-radius: 18px !important;
  box-shadow: 0 10px 25px rgba(0, 0, 0, .3) !important;
  overflow: hidden !important;
  transition: .25s ease !important;
}

.s-product-card-entry:hover,
.s-product-card:hover {
  transform: translateY(-5px) !important;
  border-color: rgba(184, 77, 255, .6) !important;
  box-shadow: 0 15px 30px rgba(138, 14, 221, .22) !important;
}

.s-product-card-entry h3,
.s-product-card-entry h4,
.s-product-card-entry a,
.s-product-card-content,
.s-product-card-content * {
  color: var(--white) !important;
}

.product-price,
.product-price *,
.s-product-card-price,
.s-product-card-price * {
  color: var(--purple-light) !important;
  font-weight: 800 !important;
}

.s-product-card-entry button,
.s-product-card button,
.s-product-card-add-to-cart,
.s-button-primary {
  background: linear-gradient(135deg, var(--purple), var(--purple-light)) !important;
  color: var(--white) !important;
  border: none !important;
  border-radius: 12px !important;
}


/* =========================
   كروت أقسام السلايدر — نفس ستايل "احدث المنتجات"
   ========================= */

/* عرض الشريحة: 4 كروت سطح المكتب */
.s-block--best-offers .swiper-slide {
  width: calc(25% - 12px) !important;
  height: auto !important;
  aspect-ratio: auto !important;
  flex: 0 0 auto !important;
}

/* الكارد: عمودي بارتفاع متساوٍ */
.s-block--best-offers .swiper-slide .s-product-card-entry,
.s-block--best-offers .swiper-slide custom-salla-product-card,
.s-block--best-offers .swiper-slide salla-product-card {
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
  height: 100% !important;
}

/* صورة الكارد مربعة */
.s-block--best-offers .swiper-slide .s-product-card-image img,
.s-block--best-offers .swiper-slide .s-product-card-entry img {
  width: 100% !important;
  aspect-ratio: 1 / 1 !important;
  object-fit: cover !important;
}

/* اسم المنتج: سطران */
.s-block--best-offers .swiper-slide .s-product-card-content-title {
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  min-height: 2.6em !important;
  font-size: 15px !important;
  line-height: 1.3 !important;
}

/* زر السلة أسفل الكارد */
.s-block--best-offers .swiper-slide salla-add-product-button,
.s-block--best-offers .swiper-slide .s-button-element {
  margin-top: auto !important;
  width: 100% !important;
}

/* محاذاة ارتفاع الشرائح */
.s-block--best-offers .swiper-wrapper {
  align-items: stretch !important;
}

/* الجوال: كارتان بالصف */
@media (max-width: 768px) {
  .s-block--best-offers .swiper-slide {
    width: calc(50% - 8px) !important;
  }
  .s-block--best-offers .swiper-slide .s-product-card-content-title {
    font-size: 14px !important;
  }
}

/* =========================
   FEATURES
   ========================= */

[class*="features"],
[class*="benefits"] {
  background: linear-gradient(180deg, #090013, #120020) !important;
  color: var(--white) !important;
}

[class*="feature"] .item,
[class*="benefit"] .item {
  background: linear-gradient(145deg, var(--card), var(--card-2)) !important;
  color: var(--white) !important;
  border: 1px solid var(--border) !important;
  border-radius: 18px !important;
}

[class*="feature"] h3,
[class*="feature"] h4,
[class*="feature"] p,
[class*="benefit"] h3,
[class*="benefit"] h4,
[class*="benefit"] p {
  color: var(--white) !important;
}

[class*="feature"] svg,
[class*="benefit"] svg {
  color: var(--purple-light) !important;
  stroke: var(--purple-light) !important;
}

/* =========================
   REVIEWS
   ========================= */

[class*="testimonial"],
[class*="review"] {
  background: var(--bg) !important;
  color: var(--white) !important;
}

[class*="testimonial"] > div {
  background: linear-gradient(145deg, var(--card), var(--card-2)) !important;
  color: var(--white) !important;
  border: 1px solid var(--border) !important;
  border-radius: 18px !important;
}

.sicon-star,
.sicon-star2,
[class*="star"] {
  color: #FFD400 !important;
}

/* =========================
   FOOTER
   ========================= */

footer,
.store-footer,
.site-footer,
.footer {
  background: linear-gradient(135deg, #05000A, #10001D, #05000A) !important;
  color: var(--white) !important;
  border-top: 1px solid var(--border) !important;
}

footer *,
.store-footer *,
.site-footer *,
.footer * {
  background: transparent !important;
  color: var(--white) !important;
}

footer a:hover {
  color: var(--purple-light) !important;
}

/* =========================
   PAYMENT
   ========================= */

[class*="payment"],
.payment-methods {
  background: var(--bg) !important;
}

/* =========================
   MOBILE
   ========================= */

@media (max-width: 768px) {
  header img {
    max-width: 105px !important;
    max-height: 55px !important;
  }

  header nav {
    width: calc(100% - 20px) !important;
    margin: 8px 10px !important;
    border-radius: 22px !important;
  }

  .s-product-card-entry,
  .s-product-card {
    border-radius: 14px !important;
  }
}