/* Add custom CSS styles below */
/* ============================= RTL Fix ============================== */
:root {
    --color-primary: #0B4177;
    --color-primary-dark: #0B4177;
    --color-primary-light: #0B4177;
    --color-primary-reverse: #ffffff;
}

.s-contacts-topnav-link:last-child:where([dir="rtl"], [dir="rtl"] *) {
    display: none;
}

.s-slider-block__title h2:where([dir="rtl"], [dir="rtl"] *) {
    padding-bottom: 12px !important;
    color: #0B4177;
    border-bottom: solid 2px #E6C76A;
}

/* ============================= General ============================== */
body {
    background-color: #FFF;
}

/* ============================= Navbar ============================== */
.navbar-brand img {
    max-height: 4rem;
    width: auto;
    max-width: 100px;
}

.main-nav-container {
    min-height: 84px;
    background: #ffffff;
    color: #000000;
}

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

.top-navbar {
    background: #0B4177;
    color: white;
}

.top-navbar .s-search-input {
    border-style: none;
    background-color: #fff;
}

/* ============================= Slider - Photos ============================== */
section.s-block.s-block--photos-slider salla-slider.photos-slider .swiper-slide {
    width: 100%;
}

section.s-block.s-block--photos-slider .carousel-slider .swiper-wrapper > div {
    padding: 0 !important;
}

section:first-of-type.s-block.s-block--photos-slider {
    margin-top: 0;
}

[dir="rtl"] salla-slider.photos-slider .swiper {
    padding: 0;
}

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

/* ============================= Header Buttons ============================== */
.header-btn__icon {
    background-color: #0B4177;
    color: #ffffff !important;
    border: 1;
}

.s-cart-summary-total {
    color: #0B4177;
}

/* ============================= Categories ============================== */
.slide--cat-entry {
    background-color: transparent;
    border-color: transparent;
    height: 21rem;
    padding: 0;
}

.rounded-full {
    border-radius: 0;
}

.w-16 {
    width: 16rem;
}

.h-16 {
    height: auto;
}

.sm\:py-16 {
    background: #fff;
}

/* ============================= Responsive ============================== */
@media (min-width: 1024px) {
    salla-slider .slide--one-sixth {
        width: 21.666667%;
    }
    .lg\:grid-cols-6 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

/* ============================= Swiper ============================== */
.swiper-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    z-index: 1;
    display: flex;
    justify-content: space-evenly;
    box-sizing: content-box;
}

.s-slider-block__title {
    display: flex;
    justify-content: center;
}

.s-slider-v-centered .s-slider-block__title-nav button {
    display: none;
}

/* ============================= Buttons ============================== */
button.tab-trigger.is-active.s-button-element.s-button-btn.s-button-outline.s-button-primary-outline.s-button-loader-after {
    background: #0B4177;
    color: #ffffff;
    font-weight: var(--fw-medium);
    border-radius: 12px;
    border: solid 2px #0B4177;
}

button.undefined.s-button-element.s-button-btn.s-button-outline.s-button-wide.s-button-primary-outline.s-button-loader-center {
    background: #0B4177;
    color: #fff;
    border-color: #0B4177;
    border-radius: 16px ;
    font-weight: var(--fw-bold);
}

/* ============================= Product Cards ============================== */
.s-product-card-vertical {
    flex-direction: column;
    border: 0px solid #0B4177;
    border-radius: 16px;
}

.s-product-card-content-title a {
    display: -webkit-box;
    -webkit-line-clamp: 2; /* عدد السطور */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
    max-height: calc(1.4em * 2);
    min-height: calc(1.4em * 2);
    display: flex;
    justify-content: center;
    font-weight: var(--fw-medium);
    font-size: 14px;
}

.s-product-card-price,
.s-product-card-starting-price h4 {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.25rem;
}

/* ============================= Features ============================== */
.s-block--features__item .feature-icon {
    box-shadow: 0px 0px 0 8px #0B4177;
    border-radius: 999px;
    BACKGROUND: #FFF;
}

.s-block--features__item .feature-icon i {
    font-size: 24px;
    color: #0B4177;
    border-radius: 20px;
}

/* ============================= Footer ============================== */
.footer-is-light .store-footer .store-footer__inner {
    background: linear-gradient(45deg, #0B4177, #0B4177);
    border-radius: 999px !important;
    color: #fff;
}

.store-footer__inner {
    padding: 5rem;
}

.footer-is-light .store-footer {
    background: linear-gradient(45deg, #0B4177, #0B4177);
    border-radius: 0px 0px 0px 0px;
}

.copyright-text p {
    color: #ffffff;
}

.s-slider-block__title-right {
    padding: 0 !important;
}

footer .flex.items-center.m-0 {
    position: relative;
}

.carousel-slider .swiper-wrapper > div {
    padding: 0.625rem;
}

.s-slider-block__title-left {
    display: none;
}

.s-product-card-content-sub {
    justify-content: center;
    gap: 0.75rem;
    display: flex;
}

.s-reviews-testimonial {
    box-shadow: 0px 0px 4px 0px #0B4177!important;
    padding: 3rem;
    border-radius: 14px;
}

.s-reviews-container .swiper-slide {
    padding: 15px;
}

.hover\:text-primary:hover {
    color: #8a1b15;
}

@media (max-width: 767px) {
    salla-slider .slide--one-sixth {
        width: 60%;
    }
}

.s-button-btn,
.s-price-range-number-input {
    border-radius: 0.75rem;
}

.store-footer a h3:nth-child(1) {
    display: none;
}

.s-reviews-header {
    margin-right: auto;
    margin-left: auto;
}

a.flex.items-center.m-0:after {
    content: '';
    display: flex ;
    justify-content: center;
    background-repeat: no-repeat;
    padding: 0;
    background-image: url(https://cdn.salla.sa/form-builder/5PQvrmTUf4k7WxFqMHCnA3yMT9ZCkPXTKq6HslfW.png);
    background-position: center;
    background-size: contain;
    width: 160px;
    height: 80px;
    align-items: center;
    border-radius: 6px;
}

.s-social-list {
    display: flex ;
    gap: 0.625rem;
    justify-content: center;
}

footer .flex.items-center.m-0 {
    position: relative;
    display: flex ;
    justify-content: center;
}

/* انتقال ناعم */
.h-16 {
    display: inline-block; /* أو block حسب العنصر */
    transition: transform .3s ease;
    transform-origin: center;
    will-change: transform;
}

/* الزوم عند الهوفر */
.h-16:hover {
    transform: scale(1.06);
}

.slide--cat-entry:hover {
    background: unset;
    box-shadow: unset;
}

.slide--cat-entry h2 {
    display: none;
}

.s-block--features__item {
    padding-left: 2rem;
    padding-right: 2rem;
    BACKGROUND: UNSET !IMPORTANT;
}

.s-slider-block__title h2:where([dir="rtl"], [dir="rtl"] *) {
    padding-left: 0rem !important;
    color: #0B4177;
}

.store-footer__inner {
    padding: 5rem;
    background: linear-gradient(45deg, #0B4177, #0B4177);
    color: #000;
}

.store-footer {
    background: linear-gradient(45deg, #0B4177, #0B4177);
}

.topnav-is-dark .top-navbar {
    background-color: rgb(198 166 73);
    color: #000;
}

/* ============================= Fixed Media Queries ============================== */
@media only screen and (min-width: 1024px) {
    .main-menu li>a {
        font-size: 16px;
    }
}

/* للموبايل */
@media (max-width: 767px) {
    button.s-product-card-wishlist-btn.animated.not-added.un-favorited.s-button-element.s-button-icon.s-button-outline.s-button-light-outline.s-button-loader-center {
        margin-top: 117px !important;
    }
}

/* للديسكتوب */
@media (min-width: 768px) {
    button.s-product-card-wishlist-btn.animated.not-added.un-favorited.s-button-element.s-button-icon.s-button-outline.s-button-light-outline.s-button-loader-center {
        margin-top: 179px !important;
    }
}

/* اختفاء رابط التخفيضات على أي جهاز */
a[href*="offers"],
#offers > a,
.main-menu > li > a[href*="offer"] {
    display: none !important;
}

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