/* Add custom CSS styles below */ 
:root {
  --main-color: #341A08;
  --second-color: #000;
  --third-color: #fff;
}

/* =========================
   Loading Screen
========================= */
body{
  background-color: white;
}
body:after {
  content: "";
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  position: fixed;
  z-index: 999999;
  background:
    url("https://cdn.files.salla.network/homepage/1526620611/d0ab6b08-c266-45e8-8839-d1016f67a320-original.webp")
    center / 160px no-repeat #fff;
  animation-name: fade-in;
  animation-duration: 2s;
  animation-fill-mode: forwards;
}

@keyframes fade-in {
  0%,
  50% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    visibility: hidden;
  }
}


/* =========================
   Header & Main Navigation
========================= */

.header-btn__icon,
body:after {
  border: none;
}

#mainnav,
.s-block--categories .swiper-wrapper a {
  background-color: var(--third-color);
}

.header-btn__icon,
.main-menu,
.s-button-primary-outline,
.s-cart-summary-total,
.s-slider-block__title,
.slide--cat-entry i,
.store-footer h3 {
  color: var(--main-color);
}

.main-menu li a:hover,
.sicon-user-circle:hover::before,
.slide--cat-entry h4 {
  color: var(--second-color);
}


/* =========================
   Section Titles
========================= */

.s-block__title,
.s-products-slider-slider .s-slider-block__title {
  color: #000 !important;
  border-right: 11px solid var(--main-color);
  border-radius: 9px;
  padding-right: 15px;
  padding-top: 7px;
  padding-bottom: 9px;
  margin-right: 12px;
}


/* =========================
   Mobile Menu
========================= */

@media only screen and (max-width: 1024px) {
  .mm-spn.mm-spn--light {
    color: var(--main-color);
    background: var(--third-color);
  }
}

@media (max-width: 1024px) {
  salla-slider.photos-slider
    .swiper:where([dir="rtl"], [dir="rtl"] *) {
    padding-right: 0;
  }
}


/* =========================
   Photos Slider
========================= */

.s-block--photos-slider {
  margin-top: 0 !important;
}

.swiper {
  padding-left: 0 !important;
}

salla-slider.photos-slider .swiper-slide {
  position: relative;
  height: auto;
  width: 100%;
  overflow: hidden;
  padding-left: 0;
  padding-right: 0;
}

.flex.items-center.m-0,
.swiper-pagination {
  display: none;
}


/* =========================
   Banners
========================= */

.two-row .banner-entry:first-child {
  grid-column: span 1 / span 1;
  grid-row: span 1;
}

.banner-entry {
  background-color: transparent;
}

.banner--fixed img,
.store-footer__inner {
  background-color: transparent !important;
}


/* =========================
   Categories
========================= */

.slide--cat-entry i {
  content: "\ec0b";
}


/* =========================
   Contacts & Social
========================= */

.s-contacts-icon,
.s-social-link a,
.store-footer i {
  color: var(--main-color);
  border-color: var(--main-color);
}

.s-contacts-item {
  justify-content: center;
}


/* =========================
   Product Cards
========================= */

.s-product-card-entry {
  border: 2px solid var(--main-color);
  padding: 7px;
  border-radius: 17px;
  box-shadow: 0 0 10px #ddd;
}

.s-block--features__item h4,
.s-product-card-price {
  color: var(--main-color);
}

.s-product-card-content-footer .s-button-btn {
  border-radius: 30px !important;
  font-size: 13px;
  background: var(--main-color);
  box-shadow: 0 0 10px #ddd;
  color: #fff;
}

@media only screen and (max-width: 600px) {
  .s-product-card-content-footer .s-button-btn {
    font-size: 10px;
  }
}


/* =========================
   Features & Footer Text
========================= */

.footer-list,
.s-block--features__item p,
.store-footer a,
.store-footer h3:hover,
.store-footer__inner .max-w-sm {
  color: var(--second-color);
}


/* =========================
   Grid
========================= */

.grid-flow-row {
  grid-auto-flow: column;
}

@media only screen and (min-width: 600px) {
  .lg\:grid-cols-6 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .lg\:col-span-2 {
    grid-column: span 1 / span 1;
  }
}


/* =========================
   Footer
========================= */

.store-footer {
  padding: 30px;
  font-size: 14px;
  border-top-left-radius: 125px;
  border-top-right-radius: 125px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
}

.footer-is-light .store-footer .store-footer__inner {
  background-color: transparent;
}

.store-footer__inner {
  text-align: center;
}

.store-footer__inner .flex {
  justify-content: center;
}

.store-footer__inner .max-w-sm {
  margin: auto;
}

.store-footer h3 {
  font-size: 1.3rem;
}

.store-footer h3:hover {
  opacity: 1;
  cursor: pointer;
}


/* =========================
   Footer Logo
========================= */

.footer-is-light
.store-footer__inner
.grid > div:first-child
p:nth-child(2):before {
  content: "";
  width: 100%;
  height: 5rem;
  display: block;
  margin: auto auto 0.5rem;
  background-image: url("https://cdn.salla.sa/cdn-cgi/image/fit=scale-down,width=400,height=400,onerror=redirect,format=auto/OqElxq/Rns3095Q1tUmx0P7I8cqH9rPYPdzewc9rv16ZKSy.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}


/* =========================
   Reviews
========================= */

.s-reviews-container
.swiper-slide-active
.s-reviews-testimonial__inner {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 30px;
  text-align: center;
}

.s-reviews-container
.swiper-slide-active
.s-reviews-testimonial__avatar:where(
  [dir="rtl"],
  [dir="rtl"] *
) {
  margin-left: 0;
}

.s-reviews-testimonial__name_wrapper {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.s-reviews-testimonial__rating {
  margin-left: 0;
  margin-top: 15px;
}

.s-reviews-testimonial__text {
  flex: 1 1 0%;
  display: flex;
  flex-direction: column-reverse;
}

.s-reviews-container
.swiper-slide-active
.s-reviews-testimonial:where(
  [dir="rtl"],
  [dir="rtl"] *
) {
  background-color: transparent;
}



/* =========================
   Header - Brown Background
========================= */

#mainnav,
#mainnav .inner {
  background-color: #341A08 !important;
}

/* جميع النصوص والروابط داخل الهيدر */
#mainnav,
#mainnav a,
#mainnav span,
#mainnav p,
#mainnav b,
#mainnav .main-menu,
#mainnav .main-menu li a,
#mainnav .main-menu li a span,
#mainnav .offers-link,
#mainnav .blog-link,
#mainnav .brands-link,
#mainnav .s-cart-summary-total,
#mainnav .s-cart-summary-count {
  color: #fff !important;
}

/* جميع الأيقونات */
#mainnav i,
#mainnav .header-btn__icon,
#mainnav .sicon-menu,
#mainnav .sicon-shopping-bag,
#mainnav .s-user-menu-login-btn {
  color: #fff !important;
}

/* أيقونة الحساب SVG */
#mainnav .s-user-menu-login-btn svg,
#mainnav .s-user-menu-login-btn svg path {
  fill: #fff !important;
  color: #fff !important;
}

/* أيقونات SVG داخل الهيدر */
#mainnav svg,
#mainnav svg path {
  fill: #fff !important;
  color: #fff !important;
}

/* لون الروابط عند الـ Hover */
#mainnav .main-menu li a:hover,
#mainnav .main-menu li a:hover span,
#mainnav a:hover,
#mainnav i:hover {
  color: #fff !important;b 
}

/* الحفاظ على اللوجو كما هو بدون تغيير ألوانه */
#mainnav .navbar-brand img {
  filter: none !important;
}

/* البانر الثابت بعرض الشاشة بالكامل */
section[data-testid="store-home-fixed-banner"] {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* إلغاء الـ container */
section[data-testid="store-home-fixed-banner"] .container {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* رابط البانر */
section[data-testid="store-home-fixed-banner"] .banner--fixed {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
}

/* الصورة */
section[data-testid="store-home-fixed-banner"] picture {
    display: block !important;
    width: 100% !important;
}

section[data-testid="store-home-fixed-banner"] img {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    object-fit: cover !important;
}

@media (min-width: 640px) {
    .s-block {
         margin-top: 1.5rem; 
    }
}

@media (max-width: 640px) {
    .s-block {
         margin-top: 0rem; 
    }
}


@media (max-width: 767px) {
  #best-offers-3-slider {
    margin-top: 1rem;
  }
}

a.banner.banner--fixed[href="https://salla.sa/mthaq-albun/-/c308591242"] {
    display: block !important;
    margin-top: 3rem !important;
}

@media (max-width: 767px) {
  #best-offers-5-slider {
    margin-top: 1rem !important;
  }
}

section.s-block--fixed-banner:has(a[href="https://salla.sa/mthaq-albun/-/c43890243"]) {
    margin-top: 3rem !important;
}

@media (max-width: 767px) {
  #best-offers-7-slider {
    margin-top: 1rem !important;
  }
}

/* Footer Background */
.store-footer,
.store-footer__inner {
    background-color: #341A08 !important;
}

/* كل النصوص والروابط أبيض */
.store-footer,
.store-footer h1,
.store-footer h2,
.store-footer h3,
.store-footer h4,
.store-footer p,
.store-footer span,
.store-footer a,
.store-footer .s-menu-footer-item,
.store-footer .s-contacts-title,
.store-footer .s-contacts-item,
.store-footer .copyright-text,
.store-footer .copyright-text p {
    color: #ffffff !important;
}

/* أيقونات SVG مثل انستجرام - تيك توك - واتساب - الجوال */
.store-footer svg,
.store-footer svg path {
    fill: #ffffff !important;
    color: #ffffff !important;
}

/* أيقونات التواصل */
.store-footer .s-social-icon,
.store-footer .s-contacts-icon {
    color: #ffffff !important;
}

/* الحفاظ على اللون الأبيض عند الـ Hover */
.store-footer a:hover,
.store-footer .s-menu-footer-item:hover,
.store-footer .s-contacts-item:hover {
    color: #ffffff !important;
}

.s-social-list {
    justify-content: center;
}

.store-footer__inner {
    border-radius: 40px;
}

/* إظهار لوجو الفوتر بدون تعديل أي كود قديم */
.store-footer .grid > div:first-child > a.flex.items-center.m-0 {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
}

.store-footer .grid > div:first-child > a.flex.items-center.m-0::before {
    content: "";
    display: block !important;

    width: 110px !important;
    height: 45px !important;
    margin: 0 auto 10px;

    background-image: url("https://cdn.files.salla.network/theme/1526620611/d29070d4-33e4-481b-aae7-3b3048e53247-original.webp");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}
.store-footer .grid > div:first-child > a.flex.items-center.m-0 h3 {
    display: none !important;
}


/* شكل أزرار السلايدر */
.s-slider-block__title-nav .s-slider-nav-arrow {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid #341A08;
    background-color: #fff;
    color: #341A08;
    transition: all 0.25s ease;
}

/* الأيقونة داخل الزر غير النشط */
.s-slider-block__title-nav .s-slider-nav-arrow svg,
.s-slider-block__title-nav .s-slider-nav-arrow svg path {
    fill: #341A08;
    color: #341A08;
}

/* الزر Active */
.s-slider-block__title-nav .s-slider-nav-arrow:not([aria-disabled="true"]) {
    background-color: #341A08;
    border-color: #341A08;
    color: #fff;
}

/* أيقونة الزر Active */
.s-slider-block__title-nav .s-slider-nav-arrow:not([aria-disabled="true"]) svg,
.s-slider-block__title-nav .s-slider-nav-arrow:not([aria-disabled="true"]) svg path {
    fill: #fff;
    color: #fff;
}

/* الزر غير Active / Disabled */
.s-slider-block__title-nav .s-slider-nav-arrow[aria-disabled="true"] {
    background-color: #f5f5f5;
    border-color: #d8d8d8;
    color: #aaa;
    opacity: 1;
    cursor: default;
}

/* أيقونة الزر غير Active */
.s-slider-block__title-nav .s-slider-nav-arrow[aria-disabled="true"] svg,
.s-slider-block__title-nav .s-slider-nav-arrow[aria-disabled="true"] svg path {
    fill: #aaa;
    color: #aaa;
}

/* Hover للزر المتاح */
.s-slider-block__title-nav .s-slider-nav-arrow:not([aria-disabled="true"]):hover {
    background-color: #341A08;
    transform: scale(1.05);
}

nav#mobile-menu {
    margin-top: 10px !important;
}


.s-product-card-image {
    background-color: rgb(255 255 255);
}

section[data-testid="store-home-fixed-banner"]:has(a[href*="c43890243"]),
section[data-testid="store-home-fixed-banner"]:has(a[href*="c308591242"]) {
    margin-top: 3rem !important;
}