/* Add custom CSS styles below */ 
:root {
    --bg: #FEF5FF;
    --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);
}

.main-nav-container {
    background: #FEF5FF;
}

.top-navbar {
    background: #C491FF;
}

/* 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) {
    .s-block--categories .swiper-slide a {
        padding: 16px;
    }
    .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: flex-start !important;
    }
}

.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: column !important;
    }
    .s-product-card-content-main {
        width: 100% !important;
    }
    .s-product-card-content-sub {
        width: 100% !important;
        order: 2 !important;
        margin-bottom: 12px !important;
    }
    .s-product-card-content-footer {
        width: 100% !important;
        order: 3 !important;
    }
}

@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 {
    display: flex;
    justify-content: center;
    align-items: center !important;
    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 {
    background-color: #C491FF !important;
}

.store-footer__inner {
    background-color: #fff !important;
}

.store-footer,
.store-footer p,
.store-footer a,
.store-footer span,
.store-footer b,
.s-trust-badges-label,
.s-trust-badges-number {
    color: #000 !important;
}

.store-footer h3 {
    color: #3806A0 !important;
}

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

footer a.flex.items-center.m-0 h3:after {
    content: '';
    background: url(https://i.ibb.co/gMDqk90Z/Frame-2147227861.png) center center / contain no-repeat;
    height: 160px;
    width: 160px;
    max-height: 200px;
    display: block;
}

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

.copyright-text p,
.copyright-text a {
    color: #000 !important;
}

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

/* Special Heading */
.s-slider-block__title:has(h2),
.s-block__title:has(h2) {
    position: relative !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
    min-height: 60px !important;
    margin-bottom: 40px !important;
}

.s-slider-block__title-right,
.s-block__title-right {
    text-align: center !important;
    width: fit-content !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    margin: 0 auto !important;
    padding: 0 !important;
}

.s-slider-block__title h2,
.s-block__title h2 {
    color: #380b87 !important;
    font-size: 28px !important;
    font-weight: 800 !important;
    position: relative !important;
    display: inline-block !important;
    margin: 0 !important;
    padding: 0 50px !important;
    text-align: center !important;
    line-height: 1.5 !important;
}

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

.s-slider-block__title h2::before,
.s-slider-block__title h2::after,
.s-block__title h2::before,
.s-block__title h2::after {
    content: "";
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 2px;
}

@media (max-width: 1024px) {
    .s-slider-block__title h2::before,
    .s-slider-block__title h2::after,
    .s-block__title h2::before,
    .s-block__title h2::after {
        width: 20px;
    }
}

.s-slider-block__title h2::before,
.s-block__title h2::before {
    right: 0;
    background: linear-gradient(to right, transparent, #380b87);
}

.s-slider-block__title h2::after,
.s-block__title h2::after {
    left: 0;
    background: linear-gradient(to left, transparent, #380b87);
}

.s-slider-block__title-left {
    position: absolute !important;
    left: 15px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    margin: 0 !important;
    display: block !important;
    z-index: 2 !important;
}

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

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

.swiper-android .swiper-slide,
.swiper-ios .swiper-slide {
    justify-content: center;
    transform: translate3d(0px, 0, 0);
}

@media (min-width: 768px) {
    .swiper-wrapper {
        justify-content: center;
    }
}

/* 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-block--categories {
    background-color: transparent !important;
    padding: 40px 0 !important;
    margin-top: 0 !important;
}

.s-slider-swiper-wrapper:has(.slide--cat-entry) .swiper-wrapper {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 15px !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;
}

.slide--cat-entry h2,
.slide--cat-entry h3,
.slide--cat-entry h4,
.slide--cat-entry p,
.slide--cat-entry span {
    display: 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;
    justify-content: center;
}

@media (max-width: 767px) {
    .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"] *) {
        justify-content: flex-start !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: 16px !important;
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 1 / 1 !important;
    object-fit: cover !important;
    margin: 0 !important;
    display: block !important;
    background-color: transparent !important;
}

@media (min-width: 992px) {
    .s-slider-swiper-wrapper:has(.slide--cat-entry) .swiper-slide {
        width: calc(33.333% - 15px) !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% - 15px) !important;
        height: auto !important;
    }
}

@media (max-width: 767px) {
    .s-slider-swiper-wrapper:has(.slide--cat-entry) .swiper-slide {
        width: calc(50% - 10px) !important;
        height: auto !important;
    }
    .s-block--categories .swiper-slide a {
        padding: 0;
    }
}

/* Loading Screen */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 999999 !important;
    width: 100%;
    height: 100%;
    background: #ffffff url('https://i.ibb.co/gMDqk90Z/Frame-2147227861.png') 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;
    }
}

/* Features */
.wa-features-section {
    background-color: transparent;
    padding: 40px 0;
    direction: rtl;
}

.wa-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.wa-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.wa-feature-card {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    background: linear-gradient(#fff, #fff) padding-box, linear-gradient(to left, #3806A0, #f8dfd4) border-box;
    border: 2px solid transparent;
    border-radius: 12px;
    padding: 20px 15px;
}

.wa-feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.wa-feature-icon svg {
    width: 35px;
    height: 35px;
    fill: none;
    stroke: #3806A0;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.wa-feature-text {
    text-align: right;
}

.wa-feature-text h3 {
    margin: 0 0 6px 0;
    font-size: 16px;
    font-weight: 700;
    color: #632a2a;
}

.wa-feature-text p {
    margin: 0;
    font-size: 13px;
    color: #777777;
    font-weight: 500;
}

@media (max-width: 991px) {
    .wa-features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .wa-features-grid {
        grid-template-columns: 1fr;
    }
    
    .wa-feature-card {
        justify-content: flex-start;
        padding: 20px 25px;
    }
}

/* تقليل المسافة بين النبذة وروابط الفوتر */
footer p {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

footer {
  row-gap: 0 !important;
}

footer ul {
  margin-top: 0 !important;
}