/* هوية متجر تروك السوداء والذهبية — نسخة موحدة لثيم رائد
   يستبدل هذا الملف الكود السابق بالكامل.
   صور المنتجات ذات الخلفية البيضاء تحتاج إزالة خلفيتها من ملف الصورة.
*/

/* الألوان الأساسية */
body.theme-raed {
  --color-primary: #c9a063;
  --color-primary-dark: #a77c3f;
  --color-primary-light: #e8c990;
  --trook-bg: #0b0b0b;
  --trook-panel: #171715;
  --trook-gold: #c9a063;
  --trook-text: #f5f2ec;
  --trook-muted: #bdb7aa;
  --trook-border: rgba(201, 160, 99, .30);
  background: var(--trook-bg);
  color: var(--trook-text);
}

/* رأس المتجر والبحث والسلة */
body.theme-raed .store-header .top-navbar,
body.theme-raed .store-header .main-nav-container {
  background: #10100f !important;
  color: var(--trook-text) !important;
  border-bottom: 1px solid var(--trook-border);
}
body.theme-raed .store-header a,
body.theme-raed .store-header .header-btn__icon,
body.theme-raed .store-header .s-menu-topnav-item,
body.theme-raed .store-header .s-cart-summary-content,
body.theme-raed .store-header .s-cart-summary-total {
  color: var(--trook-text) !important;
}
body.theme-raed .store-header a:hover,
body.theme-raed .store-header a:focus-visible {
  color: var(--trook-gold) !important;
}
body.theme-raed .store-header .s-search-input-wrapper {
  background: #1d1b18 !important;
  border: 1px solid var(--trook-border);
  color: var(--trook-text);
}

/* مقدمة الصفحة */
body.theme-raed .s-block--hero-slider,
body.theme-raed .s-block--hero-slider .swiper-slide {
  background: var(--trook-bg);
}
body.theme-raed .s-block--hero-slider .home-slider__content {
  justify-content: flex-end !important;
  position: relative;
  z-index: 2;
}
body.theme-raed .s-block--hero-slider .home-slider__content > div {
  text-align: right !important;
  color: var(--trook-text) !important;
  text-shadow: 0 2px 14px rgba(0, 0, 0, .50);
}
body.theme-raed .s-block--hero-slider .home-slider__content h2 {
  color: var(--trook-text) !important;
  line-height: 1.24;
}

/* أقسام الرئيسية والتصنيفات */
body.theme-raed.index main,
body.theme-raed .s-block--features,
body.theme-raed .s-block--categories,
body.theme-raed .s-block--banners,
body.theme-raed .s-block--logos-slider,
body.theme-raed .s-block--slider-with-bg,
body.theme-raed .s-block--tabs-produtcs {
  background-color: var(--trook-bg) !important;
  color: var(--trook-text);
}
body.theme-raed .s-block--categories .slide--cat-entry,
body.theme-raed .s-block--features__item {
  background: var(--trook-panel) !important;
  border: 1px solid var(--trook-border) !important;
  border-radius: 12px;
  color: var(--trook-text) !important;
}
body.theme-raed .slide--cat-entry h2,
body.theme-raed .s-block--features__item h2,
body.theme-raed .s-block--features__item p,
body.theme-raed .s-block h2 {
  color: var(--trook-text) !important;
}
body.theme-raed .slide--cat-entry i,
body.theme-raed .s-block--features__item .feature-icon {
  color: var(--trook-gold) !important;
}
body.theme-raed .s-block--features__item .feature-icon {
  background: rgba(201, 160, 99, .12) !important;
  border: 1px solid var(--trook-border);
}
body.theme-raed .slide--cat-entry:hover {
  border-color: var(--trook-gold) !important;
}

/* بطاقات المنتجات */
body.theme-raed .s-product-card-entry {
  background: var(--trook-panel) !important;
  border: 1px solid var(--trook-border) !important;
  border-radius: 12px !important;
  overflow: hidden;
  color: var(--trook-text);
}
body.theme-raed .s-product-card-content,
body.theme-raed .s-product-card-content-main {
  background: var(--trook-panel) !important;
}
body.theme-raed .s-product-card-content-title,
body.theme-raed .s-product-card-content-title a {
  color: var(--trook-text) !important;
}
body.theme-raed .s-product-card-price,
body.theme-raed .s-product-card-sale-price,
body.theme-raed .s-product-card-starting-price h4 {
  color: var(--color-primary-light) !important;
}
body.theme-raed .s-product-card-content-sub {
  color: var(--trook-muted) !important;
}
body.theme-raed .s-product-card-content-footer .s-button-primary-outline {
  background: transparent !important;
  border-color: var(--trook-gold) !important;
  color: var(--trook-gold) !important;
}
body.theme-raed .s-product-card-content-footer .s-button-primary-outline:hover {
  background: var(--trook-gold) !important;
  color: var(--trook-bg) !important;
}

/* التدرج خلف صور المنتجات — لا يغير ألوان المنتج */
body.theme-raed .s-product-card-image {
  background: linear-gradient(145deg, #242420 0%, #141413 55%, #090909 100%) !important;
}
body.theme-raed .s-product-card-image img {
  background-color: transparent !important;
  object-fit: contain !important;
}

/* البنرات */
body.theme-raed .banner-entry {
  background-color: var(--trook-bg) !important;
  border-radius: 12px;
  overflow: hidden;
}
body.theme-raed .banner-entry img {
  background-color: var(--trook-bg) !important;
}
body.theme-raed .banner-entry__text {
  border-color: var(--trook-border) !important;
}

/* ذيل الصفحة: تعريف المتجر في الوسط وفوق الروابط والتواصل */
body.theme-raed .store-footer,
body.theme-raed .store-footer__inner {
  background: #111110 !important;
  color: var(--trook-text) !important;
}
body.theme-raed .store-footer {
  border-top: 1px solid var(--trook-border);
}
body.theme-raed .store-footer__inner {
  text-align: center !important;
}
body.theme-raed .store-footer__inner > .container {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  max-width: 1000px !important;
  margin-inline: auto !important;
  gap: 32px !important;
}
body.theme-raed .store-footer__inner > .container > div {
  grid-column: auto !important;
  padding-inline: 0 !important;
  min-width: 0;
  text-align: center !important;
}
body.theme-raed .store-footer__inner > .container > div:first-child {
  grid-column: 1 / -1 !important;
  width: 100%;
  max-width: 650px;
  margin-inline: auto !important;
}
body.theme-raed .store-footer__inner > .container > div:first-child > a {
  justify-content: center !important;
}
body.theme-raed .store-footer__inner .max-w-sm {
  max-width: 650px !important;
  margin-inline: auto !important;
  line-height: 1.9 !important;
  text-align: center !important;
}
body.theme-raed .store-footer__inner .max-w-sm :is(p, div, h1, h2, h3, h4) {
  text-align: center !important;
}
body.theme-raed .store-footer h3 {
  color: var(--trook-text) !important;
  text-align: center !important;
  margin-bottom: 20px;
}
body.theme-raed .store-footer a {
  color: var(--trook-text) !important;
}
body.theme-raed .store-footer a:hover {
  color: var(--trook-gold) !important;
}
body.theme-raed .store-footer__inner .flex,
body.theme-raed .store-footer__inner .s-social-list,
body.theme-raed .store-footer__inner .s-contacts-list {
  justify-content: center !important;
}
body.theme-raed .store-footer__inner salla-apps-icons {
  grid-column: 1 / -1 !important;
  padding-inline: 0 !important;
}

/* حقوق المتجر ووسائل الدفع */
body.theme-raed .store-footer > .container {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 16px;
  text-align: center !important;
}
body.theme-raed .store-footer .s-payments-list {
  justify-content: center !important;
  flex-wrap: wrap;
}

/* وضوح التنقل بلوحة المفاتيح */
body.theme-raed :is(a, button, input, select):focus-visible {
  outline: 2px solid var(--color-primary-light) !important;
  outline-offset: 2px;
}

/* تنسيق الجوال */
@media (max-width: 767px) {
  body.theme-raed .s-block--hero-slider .home-slider__content {
    justify-content: center !important;
    align-items: flex-start;
    padding-top: 3rem;
  }
  body.theme-raed .s-block--hero-slider .home-slider__content > div {
    width: 100% !important;
    text-align: center !important;
  }
  body.theme-raed .s-block--hero-slider .overlay-bg {
    background-position: center bottom !important;
  }
  body.theme-raed .store-footer__inner > .container {
    grid-template-columns: 1fr !important;
    gap: 28px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.theme-raed .slide--cat-entry {
    transition: none !important;
  }
}
/* خلفية صور المنتجات */
body.theme-raed .s-product-card-image {
  background: linear-gradient(
    145deg,
    #242420 0%,
    #141413 55%,
    #090909 100%
  ) !important;
}

body.theme-raed .s-product-card-image img {
  background: transparent !important;
  object-fit: contain !important;
}
/* ترتيب أقسام أسفل المتجر عموديًا */
body.theme-raed .store-footer__inner > .container {
  grid-template-columns: 1fr !important;
  gap: 28px !important;
}