/* 
salla
raed theme
https://mooonlady.com/
 */

:root {
  --main: 238, 201, 201;
  --secondary: 167, 141, 141;
  --secondary-dark: 137, 111, 111;
  --light: 255, 245, 245;
  --bg: #f3f4f6;
  /*   --secondary: 238, 201, 201; */
}

/* الخلفية */
body {
  background-color: var(--bg);
}

/*  splash screen */
body:before {
  content: '';
  width: 80%;
  height: 10%;
  background: rgba(var(--light), 0.95);
  position: fixed;
  z-index: 999999;
  transform: scale(0);
  animation-name: popup;
  animation-duration: 4s;
  background-position: center !important;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  top: 45%;
  right: 10%;
  border-radius: 25px;
  border-radius: 0;
  width: 100%;
  height: 100%;
  top: 0;
  right: 0;
}

@keyframes popup {
  0% {
    transform: scale(1);
  }
  18% {
    transform: scale(1);
  }
  80% {
    transform: scale(1);
  }
  100% {
    transform: scale(0);
  }
}

body:after {
  content: '';
  font-size: 2rem;
  width: 100%;
  height: 100%;
  top: 0;
  position: fixed;
  z-index: 999999;
  background: url(https://cdn.salla.sa/cdn-cgi/image/fit=scale-down,width=400,height=400,onerror=redirect,format=auto/qoRVm/KHUw7sPy1Q1pvB4sfT2k32D0voyD82Skj745qFL5.png) !important;
  left: 0;
  font-family: sky;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: 250px !important;
  transform: scale(0);
  animation: pulse 1s 3 ease-in-out;
  /*   animation-duration: 5s; */
  color: var(--bg);

  display: flex;
  align-items: flex-end;
  justify-content: center;
}
@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.7;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}
@keyframes popup_logo {
  0% {
    transform: scale(0);
  }
  18% {
    transform: scale(1);
  }
  75% {
    transform: scale(1);
  }
  95% {
    transform: scale(0);
  }
  100% {
    transform: scale(0);
  }
}

/* الهيدر */
.s-search-input {
  color: rgb(var(--secondary)) !important;
  text-align: center;
  border: 1px solid rgb(var(--secondary)) !important;
}

header {
  box-shadow: rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(0, 0, 0, 0) 0px 0px 0px 0px,
    rgba(43, 45, 52, 0.05) 5px 10px 30px 0px;
  border-bottom: 1px solid rgb(240, 240, 240);
}

header,
.top-navbar,
#mainnav {
  background-color: rgb(var(--light)) !important;
  color: rgb(var(--secondary-dark)) !important;
  font-size: 1.2rem;
  box-shadow: none;
}

/* أيقونات الهيدر */
#mainnav .sicon-menu.text-primary.text-2xl,
#mainnav .flex.items-center.justify-end .s-cart-summary-total,
#mainnav .flex.items-center.justify-end i {
  border: none;
  color: rgb(var(--secondary-dark)) !important;
}

/* قوئم الهيدر */
#mainnav a {
  font-size: 1.05rem;
}
#mainnav a:hover {
  color: rgb(var(--secondary-dark));
  opacity: 0.7;
}

/* السلايدر الرئيسي */
.s-block.s-block--photos-slider
  salla-slider
  .s-slider-container
  .swiper-wrapper
  .swiper-slide {
  opacity: 0;
}
.s-block.s-block--photos-slider
  salla-slider
  .s-slider-container
  .swiper-wrapper
  .swiper-slide-active {
  opacity: 1;
}

/* الأقسام */
.s-block.s-block--banners .grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.s-block.s-block--banners .banner-entry:first-child {
  grid-column: unset !important;
  grid-row: unset !important;
}

.s-block.s-block--banners .banner-entry.square-photos {
  min-height: 270px;
}

@media only screen and (max-width: 600px) {
  .s-block.s-block--banners .grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .s-block.s-block--banners .banner-entry.square-photos {
    width: 120px;
    height: 120px;
    aspect-ratio: 1/1.1;
    min-height: unset;

    place-self: center;
  }
}

/* بطاقة المنتج */
custom-salla-product-card {
  border-radius: 25px;
  box-shadow: 0 0 5px 2px rgba(100, 100, 100, 0.5);
}

custom-salla-product-card button {
  background-color: rgb(var(--secondary));
  color: rgb(var(--main)) !important;
  border: none !important;
}

custom-salla-product-card button:hover {
  scale: 1.05;
  opacity: 1 !important;
  border-color: rgb(var(--secondary)) !important;
}

custom-salla-product-card button[product-status='out'] {
  background-color: rgb(var(--main));
  color: rgb(var(--secondary)) !important;
  border: none !important;
  opacity: 0.5;
}

.s-products-slider-card {
  margin-bottom: 1rem;
}

salla-button span.s-button-text {
  color: white;
}

/* wish icon */
custom-salla-product-card .s-product-card-wishlist-btn i {
  color: rgb(var(--secondary-dark));
}

/* عنوان البطاقة */
custom-salla-product-card .s-product-card-content-title a {
  max-height: 22px;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  text-align: center !important;
  height: 22px;
  display: block;
}

custom-salla-product-card .s-product-card-content-sub .s-product-card-price {
  width: 100%;
  text-align: center;
}

/* add to card button */
custom-salla-product-card .s-product-card-content {
  overflow: hidden;
  padding: 10px;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center !important;
}

.s-product-card-content-sub {
  width: 30% !important;
  margin-bottom: 0;
}

.s-product-card-content-main {
  width: 95%;
}

custom-salla-product-card .s-button-text span {
  display: none;
}

custom-salla-product-card button[product-status='out'] .s-button-text span {
  display: block;
}

custom-salla-product-card salla-button button {
  padding: 9px !important;
  border-radius: 9px !important;
}

/* الفوتر */

.store-footer {
  border-top: 1px solid rgb(240, 240, 240) !important;
  color: white !important;
}

footer p.text-gray-400 {
  color: white !important;
}

footer,
footer .items-center.justify-between.py-4.container.text-center,
footer .items-center.justify-between.py-4.container.text-center,
.store-footer .store-footer__inner {
  background-color: rgb(var(--light)) !important;
  color: rgb(var(--secondary-dark)) !important;
}

.store-footer li a,
.store-footer a span {
  border: none !important;
}
footer .copyright-text p {
  /*   border:1px solid red; */
  color: rgb(var(--secondary-dark)) !important;
}

footer [class='lg:hidden contact-social'] {
  display: none;
}
/* featured product */
.s-block.s-block-tabs.s-block--tabs-produtcs.s-block--full-bg.as-grid.bg-gray-100.py-8 {
  background-color: rgba(var(--light), 0.7) !important;
}

footer [class='lg:col-span-2 rtl:lg:pl-20 ltr:lg:pr-20'] {
  padding-left: 0 !important;
}

/* remove white space in mobile */
@media only screen and (max-width: 600px) {
  footer salla-contacts h3,
  footer .max-w-sm.leading-6.mb-6 {
    margin-bottom: 0 !important;
  }
  footer a[href="https://mooonlady.com/redirect/pages/24516273"],
  footer div[class="lg:col-span-2 rtl:lg:pl-20 ltr:lg:pr-20"] {
    margin-bottom: 1rem !important;
  }

  footer .store-footer__inner .container {
    gap: 0rem;
  }
  footer salla-social {
    margin-bottom: 7px !important;
  }
}
/* remove mobile number */
footer
  salla-contacts
  .s-contacts-list
  .s-contacts-item[href='tel:+966544251249'] {
  display: none;
}

/* center the page */
footer h3 {
  width: 100%;
}

footer p,
footer h3,
footer a {
  text-align: center;
}

footer salla-social,
footer .s-contacts-item,
footer .flex.space-x-2.items-end {
  justify-content: center;
}

div.m.flaifel,
footer salla-apps-icons {
  display: none !important;
}

footer .container.grid {
  display: flex;
  justify-content: space-around;
}

@media only screen and (max-width: 600px) {
  footer .container.grid {
    flex-direction: column;
  }

  footer .store-footer__inner {
    padding-bottom: 0;
  }
}

/* تكبير البانر الرئيسي في شاشة الجوال */
@media only screen and (max-width: 600px) {
  .s-block.s-block--fixed-banner .container img,
  .s-block.s-block--fixed-banner .container,
  salla-slider .swiper.s-slider-container img,
  salla-slider .swiper.s-slider-container {
    padding: 0 !important;
    min-height: 155px;
  }
  .s-block.s-block--fixed-banner .container img,
  salla-slider .swiper.s-slider-container img {
    object-fit: cover;
  }
}