:root {
    --bg: #fff;
    --header-bg: #fff;
    --header-color: #000;
    --feat-bg: #fff;
    --feat-color: #000;
    --footer-bg: #1E1210;
}

body {
    background-color: var(--bg) !important;
}

@media (min-width: 1280px) {
    .container {
        max-width: 1400px;
    }
}

.topnav-is-dark .top-navbar {
    background-color: var(--color-primary);
}

/* Floating Navbar */
.header-search { padding: 12px; order: -1; display: flex; align-items: center; width: 100%; }
salla-search { width: 100%; }
.main-nav-container .inner .container>div:first-child { flex-wrap: wrap!important; }
.main-nav-container .inner .container>div:first-child>div:first-child { order: -1; }
@media(max-width:768px) { .header-search { order: 2!important; } }
.navbar-brand img {
    max-height: 5rem;
    max-width: 70px;
}

.main-nav-container.fixed-pinned .navbar-brand img {
    max-height: 70px;
}

/* Carousel */
.s-block:nth-of-type(1) {
    margin-top: 0 !important;
}

.s-block--photos-slider .s-slider-block__title-nav {
    display: none !important;
}

.s-block--photos-slider * {
    margin: 0 !important;
    padding: 0 !important;
    height: auto;
    border-radius: 0 !important;
}

.s-block--photos-slider .swiper-slide {
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100% !important;
}

/* Categories */
.s-block--banners .grid {
    grid-template-columns: repeat(auto-fit, minmax(0px, 1fr));
}
.s-block--banners .lazy__bg {
    background-size: contain;
    background-repeat: no-repeat;
}
.s-block--banners .banner-entry {
    height: 300px;
}
@media (max-width: 992px) {
    .s-block--banners .banner-entry {
        height: 200px;
    }
}
@media (max-width: 480px) {
    .s-block--banners .banner-entry {
        height: 100px;
    }
}
@media (min-width: 640px) {
    .two-row .banner-entry:first-child {
        grid-row: span 1 / span 1;
    }
}

@media (min-width: 768px) {
    .square-photos-grid--featured-3, .square-photos-grid--featured-5 {
        grid-auto-rows: unset;
    }
   .square-photos-grid--featured-3>.banner-entry:first-child, .square-photos-grid--featured-5>.banner-entry:first-child {
        grid-row: unset;
    }
}

.s-block--categories .swiper-slide a { border: none!important; }
.s-block--categories .swiper-slide img { width: 13rem; height: 13rem; }
.s-block--categories .swiper-wrapper { justify-content: center; }
.banner-entry.square-photos { background: transparent!important; }
@media (max-width: 767px) {
    .s-block--categories .swiper-wrapper {
        justify-content: right; 
    }
}

.s-slider-block__title-left {
    margin-right: auto !important;
}

/* Transparent Banner */
.banner-entry,
.banner--fixed img {
    background-color: transparent !important;
}

/* Products */
@media (min-width: 640px) {
    .s-product-card-content {
        padding: 1.25rem 0.5rem;
    }
}

@media (min-width: 992px) {
  .s-product-card-content {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .s-product-card-content-main {
    width: 100% !important;
  }

  .s-product-card-content-footer {
    width: 65% !important;
  }

  .s-product-card-content-sub {
    width: 30% !important;
    order: 3;
  }
  .s-product-card-content-sub {
    margin-bottom: 0;
  }
}
@media (min-width: 768px) {
  .s-product-card-vertical
    .s-product-card-wishlist-btn:where([dir="rtl"], [dir="rtl"] *) {
    right: 0.5rem;
    left: auto !important;
  }
}

.s-product-card-entry {
    background-color: transparent !important;
    border-radius: 0.5rem !important;
    border: 1px solid rgba(0,0,0,0.1);
}
.s-product-card-image {
    background-color: transparent !important;
}
.s-product-card-entry:hover img {
    scale: 1.2;
}
.s-product-card-entry img {
    transition: all 0.3s;
}
.slider-bannars-moving h2,
.s-product-card-content-title {
    text-align: center !important;
}
.s-product-card-content-sub {
    justify-content: center;
    flex-direction: column-reverse;
}
.s-product-card-content-title a {
    color: #000 !important;
}
body:not(body.product-single)
    .s-button-element:not(.s-product-card-wishlist-btn) {
    background: var(--color-primary);
    color: #fff !important;
    border-radius: 0.5rem;
}
.s-product-card-vertical .s-product-card-wishlist-btn button:hover {
    background-color: var(--color-primary) !important;
}
.s-product-card-vertical
    .s-product-card-wishlist-btn
    button:hover
    .sicon-heart {
    color: #fff !important;
}
@media (max-width: 600px) {
    .s-products-slider-card {
        width: 55%;
    }
}

/* Features (Salla native block) */
.s-block--features__item .feature-icon,
.s-block--features__item {
    background-color: transparent;
}

.s-block--features__item .feature-icon i {
    color: var(--feat-color) !important;
}

section.s-block.s-block--features.container {
    background: #F7F3EE;
}

/* Footer */
.store-footer,
.store-footer__inner {
    background-color: #052E61 !important;
}

.store-footer, .store-footer p, .store-footer h3, .store-footer a { color: #fff !important; }

footer a.flex.items-center.m-0 h3 {
  font-size: 0 !important;
}


footer a.flex.items-center.m-0 h3:after {
    max-height:150px ;
}
footer a.flex.items-center.m-0 h3:after {
    content: '';
  background: url(https://cdn.files.salla.network/other/1479434853/b8bdfb1f-0cb1-4723-8df9-ee70f25368f3-original.webp) center center / cover no-repeat;
  height: 100px;
    display: block;
    width: 100px;
}

@media (min-width: 1024px) {
    footer .grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.copyright-text p {
    color: #fff !important;
}

@media (max-width: 769px) {
    footer * {
        margin: 0 auto;
        text-align: center;
    }
}

.s-reviews-header-wrapper {
    display: flex;
    justify-content: center;
}

/* Special Heading */
section.s-block--categories .s-slider-block__title {
  justify-content: center;
}
section.s-block--categories .s-slider-block__title h2 {
  text-align: center;
}
.s-slider-block__title h2,
.s-block__title h2 {
    font-size: 28px !important;
    position: relative;
    color: #0B2540 !important;
}

.s-slider-block__title-right:where([dir="rtl"], [dir="rtl"] *) {
    padding-left: 0;
}
.s-slider-block__title h2:where([dir="rtl"], [dir="rtl"] *) {
    padding-left: 0;
}
.carousel-slider .s-slider-block__title-nav {
    display: none;
}
.s-slider-block__title {
    justify-content: right;
}

@media (max-width: 1024px) {
    .s-slider-block__title h2,
    .s-block__title h2 {
        font-size: 20px !important;
    }
}

.s-block--categories .s-slider-block__title {
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
    min-height: 60px !important;
}

.s-block--categories .s-slider-block__title-right {
    right: 0 !important;
    left: 0 !important;
    transform: translateY(-50%) !important;
    margin: 0 auto !important;
    width: fit-content !important;
    display: flex !important;
    justify-content: center !important;
    z-index: 1 !important;
}

.s-block--categories .s-slider-block__title-right h2 {
    text-align: center !important;
    margin: 0 !important;
    line-height: 1.5 !important;
}

.s-block--categories .s-slider-block__title-left {
    display: block !important;
    margin-right: auto !important;
    z-index: 2 !important;
}

.s-slider-block__display-all {
    color: #061431;
}



/* Hover Effect */
.banner-entry > div {
    background-repeat: no-repeat;
    display: inline-block;
    transition: 0.3s;
}

.banner-entry > div:after {
    content: "";
    position: absolute;
    top: -50%;
    left: -60%;
    width: 20%;
    height: 200%;
    opacity: 0;
    transform: rotate(30deg);
    background: rgba(255, 255, 255, 0.13);
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0.13) 0%,
        rgba(255, 255, 255, 0.13) 77%,
        rgba(255, 255, 255, 0.5) 92%,
        rgba(255, 255, 255, 0) 100%
    );
}

.banner-entry > div:hover:after {
    opacity: 1;
    left: 130%;
    transition-property: left, top, opacity;
    transition-duration: 0.7s, 0.7s, 0.15s;
    transition-timing-function: ease;
}

.banner-entry > div:active:after {
    opacity: 0;
}

/* Quick links */

.s-slider-swiper-wrapper:has(.slide--cat-entry) .swiper-wrapper {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 10px !important;
    transform: none !important; 
    width: 100% !important;
}

.s-slider-swiper-wrapper:has(.slide--cat-entry) .swiper-slide {
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
}

.slide--cat-entry {
    display: block !important;
    height: auto !important;
    width: 100% !important;
    text-decoration: none !important;
}
.s-block--categories salla-slider[type]:not(.hydrated) > div:where([dir="rtl"], [dir="rtl"] *), salla-slider[type]:not(.hydrated) .swiper > div > div:where([dir="rtl"], [dir="rtl"] *), .carousel-slider .swiper:where([dir="rtl"], [dir="rtl"] *){
    padding: 0 !important;
}
section[component-id="1171898776"].s-block--categories .carousel-slider .s-slider-block__title-left{
    position: absolute;
    top: 50%;
    min-width: 100%;
} 
section[component-id="1171898776"].s-block--categories .carousel-slider .s-slider-block__title-nav{
    display: flex !important;
    margin: 0;
    justify-content: space-between;
    width: 100%;
}

.slide--cat-entry img {
    border-radius: 8px !important;
    width: 100% !important;
    height: clamp(7.5rem, 4.8214rem + 11.4286vw, 16.25rem) !important;
    object-fit: contain !important;
    margin: 0 auto 15px auto !important;
    display: block !important;
    background-color: transparent !important;
}

.slide--cat-entry h2 {
    display: block !important;
    margin: 0 0 5px 0 !important;
    color: #14253d !important;
    font-weight: bold !important;
    font-size: 1.2rem !important;
    text-align: center !important;
}

.slide--cat-entry h2::after {
    display: block !important;
    color: #8c95a3 !important;
    font-size: 0.95rem !important;
    font-weight: normal !important;
    margin-top: 5px !important;
    text-align: center !important;
}

.swiper-slide:nth-child(1) .slide--cat-entry h2::after {
    content: "اهتم بنفسك وصحتك" !important;
}

.swiper-slide:nth-child(2) .slide--cat-entry h2::after {
    content: "كل التفاصيل لبيت أكثر راحة" !important;
}

.swiper-slide:nth-child(3) .slide--cat-entry h2::after {
    content: "أحدث التقنيات بين يديك" !important;
}

@media (min-width: 992px) {
    .s-slider-swiper-wrapper:has(.slide--cat-entry) .swiper-slide {
        width: calc(33.333% - 10px) !important; 
        height: auto !important;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .s-slider-swiper-wrapper:has(.slide--cat-entry) .swiper-slide {
        width: calc(50% - 10px) !important;
        height: auto !important;
    }
}

@media (max-width: 767px) {
    .s-slider-swiper-wrapper:has(.slide--cat-entry) .swiper-slide {
        width: 100% !important;
        height: auto !important;
    }
}

/* Loading Screen */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 999999 !important;
  width: 100%;
  height: 100%;
  background: #ffffff url('https://cdn.files.salla.network/other/1479434853/b8bdfb1f-0cb1-4723-8df9-ee70f25368f3-original.webp') no-repeat center / 90px !important;
  animation: logobg 3s forwards;
  pointer-events: none;
}

@keyframes logobg {
    0% {
        opacity: 1;
        visibility: visible;
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        visibility: hidden;
        z-index: -1;
    }
}

/* Store features */

.store-features {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    align-items: center;
    padding: 20px 15px;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    box-sizing: border-box;
    font-family: inherit;
}

.feature-box {
    display: flex;
    align-items: center;
    background-color: #f9f9f9;
    border-radius: 12px;
    padding: 20px;
    width: calc(25% - 11.25px);
    box-sizing: border-box;
}

.feature-icon {
    background-color: #eaf1fa;
    color: #14253d;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    flex-shrink: 0;
    margin-left: 15px;
}

.feature-icon svg {
    width: 22px;
    height: 22px;
}

.feature-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.feature-info h3 {
    margin: 0 0 4px 0;
    color: #14253d;
    font-size: 15px;
    font-weight: 700;
}

.feature-info p {
    margin: 0;
    color: #8c95a3;
    font-size: 12px;
}

@media (max-width: 1024px) {
    .feature-box {
        width: calc(50% - 7.5px);
    }
}

@media (max-width: 576px) {
    .feature-box {
        width: 100%;
    }
}

/* Testimonials */

.testimonials-section {
    background-color: #f8f9fa;
    padding: 60px 15px;
    font-family: inherit;
    text-align: center;
    direction: rtl;
}

.section-title {
    color: #14253d;
    font-size: 26px;
    font-weight: bold;
    position: relative;
    display: inline-block;
    margin-bottom: 50px;
    margin-top: 0;
}

.section-title::after {
    content: "";
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background-color: #ff6b00;
    border-radius: 2px;
}

.testimonials-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-btn {
    background-color: #fff;
    border: 1px solid #eaeaea;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #666;
    flex-shrink: 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}

.testimonials-wrapper {
    display: flex;
    gap: 20px;
    flex-wrap: nowrap;
    width: 100%;
    overflow-x: auto;
}

.testimonial-card {
    background-color: #fff;
    border: 1px solid #eaeaea;
    border-radius: 12px;
    padding: 30px 20px;
    flex: 1;
    min-width: 280px;
    display: flex;
    flex-direction: column;
    text-align: right;
    box-sizing: border-box;
}

.stars {
    display: flex;
    gap: 2px;
    margin-bottom: 20px;
}

.stars svg {
    width: 18px;
    height: 18px;
    fill: #facc15;
}

.review-text {
    color: #4b5563;
    font-size: 15px;
    line-height: 1.7;
    margin: 0 0 35px 0;
    flex-grow: 1;
}

.customer-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.customer-info img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
}

.customer-details {
    display: flex;
    flex-direction: column;
}

.customer-details h4 {
    margin: 0 0 5px 0;
    color: #14253d;
    font-size: 15px;
    font-weight: bold;
}

.customer-details span {
    color: #9ca3af;
    font-size: 13px;
}

@media (max-width: 992px) {
    .testimonials-wrapper {
        flex-wrap: wrap;
        justify-content: center;
    }
    .testimonial-card {
        min-width: calc(50% - 10px);
    }
}

@media (max-width: 768px) {
    .testimonials-container {
        flex-direction: column;
    }
    .nav-btn {
        display: none;
    }
    .testimonials-wrapper {
        flex-direction: column;
        gap: 20px;
    }
    .testimonial-card {
        width: 100%;
    }
}