/* المحتوى الرابع — نظام ألوان الهوية */
body { background-image:none !important; background-color:#FFFFFF !important; }

/* إخفاء الشريط العلوي — ومعه الإيميل */
.top-navbar { display:none !important; }

/* الشريط الرئيسي — بلون الشعار */
#mainnav, .main-nav-container, #mainnav .inner { background-color:#C5B6F1 !important; }
#mainnav a, .main-nav-container a, #mainnav .sicon-menu, #mainnav i { color:#1A1A32 !important; }
#mainnav a:hover, .main-nav-container a:hover { color:#301A2F !important; }
#mainnav .btn--rounded-gray, #mainnav button { background-color:#FFFFFF !important; color:#1A1A32 !important; border-color:rgba(26,26,50,.18) !important; }
#mainnav .main-nav-container a { font-size:15px; font-weight:700; }

/* البحث بعد آخر قسم */
#mainnav .header-search {
  background:transparent !important; border:0 !important; box-shadow:none !important;
  padding:0 !important; margin-inline-end:14px; flex:0 0 auto !important; width:260px;
}
#mainnav .header-search salla-search { background:transparent !important; border:0 !important; padding:0 !important; }
@media (max-width:1023px){ #mainnav .header-search { flex:1 1 auto !important; width:auto; min-width:0; margin-inline:10px; } }

/* الشعار — بلا أي قيد على المقاس */
.navbar-brand, .navbar-brand img { background:transparent !important; }
.navbar-brand { padding-block:6px; max-width:none !important; }
.navbar-brand img {
  height:72px !important; width:auto !important;
  max-height:none !important; max-width:none !important; object-fit:contain !important;
}
@media (max-width:767px){ .navbar-brand img { height:54px !important; } }

/* الشريط المتحرك — بلون القائمة */
.store-header::before { content:none !important; }
.store-header::after {
  content:"شحن لجميع مدن المملكة · والشحن الدولي متاح";
  display:block; width:100%; background:#C5B6F1; color:#1A1A32;
  font-size:15.5px; font-weight:700; line-height:1.5; text-align:center;
  padding:11px 16px; border-top:1px solid rgba(26,26,50,.12);
  animation:mhr-msgs 18s infinite;
}
@media (min-width:768px){ .store-header::after { font-size:17px; padding:13px 20px; } }
@keyframes mhr-msgs {
  0%,30%    { content:"شحن لجميع مدن المملكة · والشحن الدولي متاح"; }
  33.4%,63% { content:"الدفع بمدى وآبل باي وتمارا"; }
  66.7%,96% { content:"خدمات النشر والتحرير والتدقيق — تصفّح خدماتنا"; }
}

.s-block--fixed-banner, [data-testid="store-home-square-photos"] { display:none !important; }

/* عناوين الأقسام */
.s-block__title, .s-slider-block__title {
  display:flex !important; flex-direction:column !important;
  align-items:center !important; justify-content:center !important; gap:12px;
}
.s-block__title h2, .s-slider-block__title h2 {
  display:inline-block; position:static; background:#C5B6F1 !important; color:#1A1A32 !important;
  font-size:19px; font-weight:900; line-height:1.4; padding:10px 22px; border:0; border-radius:4px;
}
.s-slider-block__title-nav, .s-block__title-nav { margin:0 !important; justify-content:center !important; }
@media (max-width:767px){ .s-block__title h2, .s-slider-block__title h2 { font-size:17px; padding:9px 18px; } }

/* بطاقات الكتب — بيضاء */
.s-product-card-entry, custom-salla-product-card.s-product-card-entry {
  background:#FFFFFF !important; border:1px solid rgba(48,26,47,.20); border-radius:6px;
  padding:10px; overflow:hidden; box-shadow:0 2px 12px rgba(26,26,50,.09);
  transition:transform .25s ease, box-shadow .25s ease;
}
.s-product-card-entry:hover { transform:translateY(-3px); box-shadow:0 12px 28px rgba(26,26,50,.18); }
.s-product-card-content-title a { font-size:15.5px; font-weight:700; color:#1A1A32 !important; }
.s-product-card-content-sub { color:rgba(26,26,50,.65) !important; }
.s-product-card-price, .s-product-card-price span, .s-product-card-starting-price { color:#0E7A41 !important; font-weight:900; }
.s-product-card-sale-price, .s-product-card-sale-price h4, .s-product-card-sale-price span { color:#C0272D !important; font-weight:900; }
.s-product-card-entry:has(.s-product-card-sale-price) .s-product-card-price { color:rgba(26,26,50,.45) !important; text-decoration:line-through; font-weight:400; }

/* الأزرار */
.s-button-btn.s-button-primary, .s-button-btn.s-button-primary-outline {
  background-color:#1A1A32 !important; border-color:#1A1A32 !important; color:#FFFFFF !important; border-radius:4px;
}
.s-button-btn.s-button-primary:hover, .s-button-btn.s-button-primary-outline:hover {
  background-color:#301A2F !important; border-color:#301A2F !important; color:#FFFFFF !important;
}
.s-button-btn { white-space:normal; font-size:14px; line-height:1.3; }

/* سهم الأقسام الداخلية */
#mainnav .main-nav-container a.mhr-has-sub::after {
  content:""; display:inline-block; width:6px; height:6px; margin-inline-start:7px;
  border-right:2px solid #1A1A32; border-bottom:2px solid #1A1A32;
  transform:rotate(45deg) translateY(-2px); vertical-align:middle;
}

/* الجوال — بطاقتان كاملتان */
@media (max-width:767px){
  .s-products-slider-card {
    width:calc((100vw - 24px) / 2) !important; max-width:none !important; min-width:0 !important;
    flex:0 0 calc((100vw - 24px) / 2) !important;
    padding-left:5px !important; padding-right:5px !important;
  }
  .s-product-card-entry { padding:7px; }
  .s-product-card-content-title a { font-size:14px; }
  .s-product-card-content-sub { font-size:11.5px; }
  .s-button-btn { font-size:12.5px; padding:8px 6px; }
}

.lazy__bg.lazy.entered.loaded { background-size:contain; background-repeat:no-repeat; }
img { background:transparent !important; border-radius:0; }