/* Add custom CSS styles below */ 
body.index {
    background-color: #fff;
}

/*First Banner */
section:first-of-type {
    margin: 0;
}
salla-slider.photos-slider .swiper-slide {
    margin:0;
    width: 100%;
    padding:0;
}
salla-slider.photos-slider .swiper:where([dir=rtl],[dir=rtl] *) {
      padding: 0;
}
.s-slider-v-centered .s-slider-block__title-nav button.swiper-button-disabled{
      visibility: hidden;
}

/*Fixed Banner*/
.banner--fixed img{
    background-color: unset;
}


/*Product slider*/
/*long name fix*/
h3.s-product-card-content-title {
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}
/* title*/
.index  .s-slider-block__title-left{
display:none;
}
.s-slider-block__title h2 {
    font-size: 1.5rem;
}
.s-slider-block__title-right {
    color: var(--color-primary);
}
.s-product-card-fit-height.s-product-card-vertical .s-product-card-image {
    background: unset;
}
.index .s-slider-block__title{
    display: none;
}
.s-button-primary-outline {
    background: var(--color-primary);
    color: white;
}
.s-product-card-entry {
    border: 2px solid  var(--color-primary);
}
salla-add-product-button, img.s-product-card-image-cover.lazy.loaded {
    transition: 0.2s;
}
salla-add-product-button:hover, img.s-product-card-image-cover.lazy.loaded:hover {
    transform: scale(1.1);
}
@media (max-width:767px){
    .s-products-slider-card{
        width: 55%;
        }
    }


/*Category*/
/* cats Title */
.s-block__title h2 {
    font-size: 2rem;
}
section:nth-child(1 of .s-block.s-block--banners.container) .md\:grid-cols-3,
section:nth-child(2 of .s-block.s-block--banners.container) .md\:grid-cols-3{
    grid-template-columns: repeat(5, 1fr);
}
section:nth-child( 3 of .s-block.s-block--banners.container) .md\:grid-cols-3 {
        grid-template-columns: 0.7fr 0.8fr 0.8fr 0.8fr 1.1fr;
    }
.two-row .banner-entry:first-child {
    grid-column: span 1/span 1;
    grid-row: span 1/span 1;
}
.lazy__bg.lazy.entered.loaded {
    background-repeat: no-repeat;
    background-size: contain;
}
.banner-entry {
    height: 150px;
    background-color: unset;
    transition: all .3s ease-in-out;
}
a.banner-entry:hover {
    transform: scale(1.05);
    transition: transform 1s ease;
}
.banner--fixed img {
    background: unset;
}
@media (max-width: 768px){
.s-block__title h2 {
    font-size: 1.5rem;
}
.index .md\:grid-cols-3:not(section:nth-child(3 of .s-block.s-block--banners.container) .md\:grid-cols-3){
    display: grid !important;
    grid-template-columns: repeat(5, 1fr) !important;
    gap: 8px !important;
}

.index .banner-entry:not(section:nth-child(3 of .s-block.s-block--banners.container) .banner-entry){
    width: 100% !important;
    height: 85px;
}
section:nth-child( 2 of .s-block.s-block--banners.container) {
    margin-top: 0.5rem;
}
section:nth-child( 3 of .s-block.s-block--banners.container) .banner-entry {
    height: 60px;
}
}

/*logos*/
section.s-block--logos-slider .md\:grid-cols-4 {
    grid-template-columns: repeat(8, minmax(0, 1fr));
}
section.s-block--logos-slider .sm\:row-span-2 {
        grid-row: span 1 / span 1;
}
.index .brand-item img {
        max-width: 120px;
    }
@media (max-width: 768px){
section.s-block--logos-slider .md\:grid-cols-4{
    grid-template-columns: repeat(4, minmax(0, 1fr));
}
.index .brand-item img {
    max-width: 80px;
}}


footer .map iframe {
    height: 20rem;
}
@media (min-width: 768px){
footer .container.grid>.lg\:col-span-2.rtl\:lg\:pl-20.ltr\:lg\:pr-20 {
    border-bottom: 2px solid #fff;
}}
@media (min-width: 1024px) {
.map.lg\:col-span-6 {
        grid-column: span 3;
    }
}

/*footer*/
.footer-is-light .store-footer .store-footer__inner {
    background: var(--color-primary);
    color: #fff;
    border: none;
}
.footer-is-light .store-footer .store-footer__inner *{
    border-color: #ffffff61;
}
footer span.unicode {
    text-wrap-mode: nowrap;
}
@media (max-width: 767px) {
    footer .grid {
        grid-template-columns: 1fr;
    }
    footer *:not(li.s-social-link):not(.map)  {
        margin-right: auto;
        margin-left: auto;
        text-align: center;
    }
footer .s-social-list{
    justify-content: center;
}
    salla-payments.s-payments-list.hydrated li {
    margin-left: 0;
    margin-right: 0;
}
}
@media (min-width: 1024px) {
footer .lg\:grid-cols-6 {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

/*Product page*/
salla-add-product-button:hover {
    transform: scale(1.06) !important;
}

/*loading logo page*/
body.index::before {
    content: "";
    top: 0;
    background: #fff url("https://cdn.salla.sa/cdn-cgi/image/fit=scale-down,width=400,height=400,onerror=redirect,format=auto/ryvXB/CA9AKRvUji9jzvr3YLLq83gvydnL6XLZ9Hlcw0u2.png");
    background-size: 250px !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    width: 100%;
    height: 100vh !important;
    transform: scale(0);
    position: fixed;
    left: 0;
    z-index: 9999999 !important;
    animation: scale-out-vertical 0.5s cubic-bezier(0.550, 0.085, 0.680, 0.530) 1.3s both;
}

@keyframes scale-out-vertical {
    0% {
        -webkit-transform: scaleY(1);
        transform: scaleY(1);
        opacity: 1;
    }

    100% {
        -webkit-transform: scaleY(0);
        transform: scaleY(0);
        opacity: 1;
    }
}
/* إخفاء المربعات الرمادية (العناصر الشبح) */
a.banner-entry.square-photos {
    display: none !important;
}
/* ===========================
   Marine Stuff Product Cards
   =========================== */

/* الكرت */
.s-product-card-entry{
    border:none!important;
    border-radius:18px!important;
    box-shadow:none!important;
    background:#fff;
    overflow:hidden;
    transition:.25s ease;
    display:flex;
    flex-direction:column;
    height:100%;
}

.s-product-card-entry:hover{
    transform:translateY(-6px);
}

/* الصورة */
.s-product-card-image{
    background:#fafafa;
    padding:22px;
}

.s-product-card-image-cover{
    width:100%;
    aspect-ratio:1/1;
    object-fit:contain;
    transition:.35s;
}

.s-product-card-entry:hover .s-product-card-image-cover{
    transform:scale(1.05);
}

/* محتوى الكرت */
.s-product-card-content{
    padding:16px 18px 18px;
    display:flex;
    flex-direction:column;
    flex:1;
}

/* إخفاء الوصف */
.s-product-card-content-subtitle{
    display:none!important;
}

/* اسم المنتج */
.s-product-card-content-title{
    margin:0;
}

.s-product-card-content-title a{
    font-size:20px;
    font-weight:600;
    color:#111;
    line-height:1.5;
    display:-webkit-box;
    -webkit-line-clamp:2;
    -webkit-box-orient:vertical;
    overflow:hidden;
    min-height:46px;
    text-decoration:none;
}
/* السعر */
.s-product-card-price{
    font-size:18px !important;
    font-weight:700 !important;
    color:#16a34a !important; /* أخضر */
    margin:6px 0 12px !important;
    line-height:1.4;
}

.s-product-card-price i{
    font-size:13px !important;
    color:#16a34a !important;
}
}

/* دفع الزر للأسفل */
.s-product-card-content-footer{
    margin-top:auto;
    justify-content:flex-end;
}

/* زر السلة */
.s-product-card-content-footer .s-button-element{
    width:46px!important;
    height:46px!important;
    min-width:46px!important;
    padding:0!important;
    border-radius:12px!important;
    background:#F96B2A!important;
    border:none!important;
    color:#fff!important; /* برتقالي */
}/* نقل زر السلة إلى اليسار */
.s-product-card-content-footer{
    display: flex !important;
    justify-content: flex-start !important;
    align-items: center;
}

/* إخفاء كلمة إضافة للسلة */
.s-product-card-content-footer .s-button-text span{
    display:none!important;
}

/* تكبير أيقونة السلة */
.s-product-card-content-footer i{
    font-size:19px!important;
}

/* إخفاء إطار الزر */
.s-product-card-content-footer .s-button-outline{
    border:none!important;
}

/* المفضلة */
.s-product-card-wishlist-btn{
    border-radius:50%!important;
    backdrop-filter:blur(10px);
}

/* شارة القطعة الأخيرة */
.s-product-card-promotion-title{
    border-radius:20px;
    font-size:12px;
    font-weight:600;
    padding:6px 12px;
}
/* زر "أعلمني عند التوفر" باللون الرمادي */
button.s-button-element.s-button-btn.s-button-solid.s-button-wide.s-button-primary {
    background: #9ca3af !important;
    border-color: #9ca3af !important;
    color: #fff !important;
}
/* الشريط الإعلاني المتحرك - ثيم رائد */
.s-advertisement {
    overflow: hidden;
}

.s-advertisement-content {
    display: flex;
    align-items: center;
}

.s-advertisement-content-main {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    animation: adsMove 15s linear infinite;
}

@keyframes adsMove {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(-100%);
    }
}