/* Add custom CSS styles below */ 
/* تغيير لون النصوص في ذيل الصفحة فقط */
footer,
footer * {
    color: #fff !important;
}

/* استهداف كامل شريط التنقل */
.s-header__content,
.s-header__nav *,
.s-navbar *,
.s-header nav {
    background: #6a0dad !important;
}

/* إطار/* تغيير لون النصوص في ذيل الصفحة فقط */
footer,
footer * {
    color: #fff !important;
}

/* استهداف كامل شريط التنقل */
.s-header__content,
.s-header__nav *,
.s-navbar *,
.s-header nav {
    background: #6a0dad !important;
}

/* إطار ازرق سماوي حول المنتجات */
.s-product-card-entry,
.product-entry,
.product-block,
salla-product-card {
    border: 2px solid #8e1aa8 !important;
    border-radius: 14px !important;
    overflow: hidden;
    transition: border-color .3s ease;
    height: auto !important;
    min-height: 0 !important;
    background: #fff !important;
}

/* الصور */
.s-product-card-image img,
.product-image img,
.banner img {
    border-radius: 12px !important;
}

/* تابي أخضر */
.s-product-card-badge[class*="tabby"],
.promotion-badge[class*="tabby"],
.s-product-card-badge[data-type="tabby"],
[class*="tabby-badge"],
[class*="badge"][class*="tabby"],
.tabby-badge,
salla-product-card .badge--tabby {
    background-color: #3dbf6e !important;
    background: #3dbf6e !important;
    color: #fff !important;
    border-color: #2ea85c !important;
}

/* ===================================== */
/* الجوال */
/* ===================================== */
@media (max-width: 768px) {

    .s-grid,
    .products-grid,
    salla-products-list .s-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
        padding: 8px !important;
    }

    .s-product-card-image,
    .product-image,
    salla-product-card a.s-product-card-image,
    salla-product-card .image-wrapper {
        position: relative !important;
        width: 100% !important;
        aspect-ratio: 1 / 1 !important;
        min-height: 0 !important;
        height: auto !important;
        padding: 0 !important;
        margin: 0 !important;
        display: block !important;
        overflow: hidden !important;
    }

    .s-product-card-image img,
    .product-image img,
    salla-product-card img {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        object-position: center !important;
        border-radius: 12px 12px 0 0 !important;
    }

    .s-product-card-content,
    salla-product-card .content {
        padding: 8px !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
        gap: 0 !important;
    }

    .s-product-card-title,
    .product-title,
    .s-product-card-content h3,
    salla-product-card h3 {
        font-size: 13px !important;
        line-height: 1.5 !important;
        margin: 4px 0 !important;
        font-weight: bold !important;
        white-space: normal !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
        min-height: calc(13px * 1.5 * 2) !important;
    }

    .s-product-card-subtitle,
    .product-subtitle,
    .s-product-card-content p {
        font-size: 10px !important;
        margin: 0 0 2px 0 !important;
        color: #777 !important;
    }

    .s-product-card-price,
    .product-price {
        font-size: 13px !important;
        margin: 2px 0 6px 0 !important;
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 4px !important;
    }

    .s-product-card-button,
    salla-button.btn--add-to-cart {
        padding: 6px !important;
        font-size: 12px !important;
        min-height: 32px !important;
        height: auto !important;
        margin-top: 2px !important;
        width: 100% !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
    }

    .s-product-card-badge,
    .promotion-badge {
        font-size: 10px !important;
        padding: 2px 6px !important;
        top: 6px !important;
        right: 6px !important;
        z-index: 9 !important;
    }

    salla-products-slider .swiper-slide,
    salla-products-slider .swiper-wrapper > div,
    .s-block .swiper-slide,
    salla-products-list[horizontal] .s-grid > * {
        width: 48% !important;
        min-width: 48% !important;
    }
}

/* تكبير البنر وإزالة الفراغات */
img[alt*="تقنية تراعهم"]{
    width: 100% !important;
    height: auto !important;
    transform: scale(1.08);
    display: block;
}

.banner,
.banner img{
    overflow: hidden !important;
}

/* ========================= */
/* جديدنا سماوي */
/* ========================= */
.s-product-card-badge:not([class*="tabby"]),
.promotion-badge:not([class*="tabby"]) {
    background: #00c8ff !important;
    color: #ffffff !important;
    border: none !important;
}

.s-product-card-badge:not([class*="tabby"]) *,
.promotion-badge:not([class*="tabby"]) * {
    color: #ffffff !important;
} حول المنتجات */
.s-product-card-entry,
.product-entry,
.product-block,
salla-product-card {
    border: 2px solid #8e1aa8 !important;
    border-radius: 14px !important;
    overflow: hidden;
    transition: border-color .3s ease;
    height: auto !important;
    min-height: 0 !important;
    background: #fff !important;
}

/* الصور */
.s-product-card-image img,
.product-image img,
.banner img {
    border-radius: 12px !important;
}

/* تابي أخضر */
.s-product-card-badge[class*="tabby"],
.promotion-badge[class*="tabby"],
.s-product-card-badge[data-type="tabby"],
[class*="tabby-badge"],
[class*="badge"][class*="tabby"],
.tabby-badge,
salla-product-card .badge--tabby {
    background-color: #3dbf6e !important;
    background: #3dbf6e !important;
    color: #fff !important;
    border-color: #2ea85c !important;
}

/* ===================================== */
/* الجوال */
/* ===================================== */
@media (max-width: 768px) {

    .s-grid,
    .products-grid,
    salla-products-list .s-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
        padding: 8px !important;
    }

    .s-product-card-image,
    .product-image,
    salla-product-card a.s-product-card-image,
    salla-product-card .image-wrapper {
        position: relative !important;
        width: 100% !important;
        aspect-ratio: 1 / 1 !important;
        min-height: 0 !important;
        height: auto !important;
        padding: 0 !important;
        margin: 0 !important;
        display: block !important;
        overflow: hidden !important;
    }

    .s-product-card-image img,
    .product-image img,
    salla-product-card img {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        object-position: center !important;
        border-radius: 12px 12px 0 0 !important;
    }

    .s-product-card-content,
    salla-product-card .content {
        padding: 8px !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
        gap: 0 !important;
    }

    .s-product-card-title,
    .product-title,
    .s-product-card-content h3,
    salla-product-card h3 {
        font-size: 13px !important;
        line-height: 1.5 !important;
        margin: 4px 0 !important;
        font-weight: bold !important;
        white-space: normal !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
        min-height: calc(13px * 1.5 * 2) !important;
    }

    .s-product-card-subtitle,
    .product-subtitle,
    .s-product-card-content p {
        font-size: 10px !important;
        margin: 0 0 2px 0 !important;
        color: #777 !important;
    }

    .s-product-card-price,
    .product-price {
        font-size: 13px !important;
        margin: 2px 0 6px 0 !important;
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 4px !important;
    }

    .s-product-card-button,
    salla-button.btn--add-to-cart {
        padding: 6px !important;
        font-size: 12px !important;
        min-height: 32px !important;
        height: auto !important;
        margin-top: 2px !important;
        width: 100% !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
    }

    .s-product-card-badge,
    .promotion-badge {
        font-size: 10px !important;
        padding: 2px 6px !important;
        top: 6px !important;
        right: 6px !important;
        z-index: 9 !important;
    }

    salla-products-slider .swiper-slide,
    salla-products-slider .swiper-wrapper > div,
    .s-block .swiper-slide,
    salla-products-list[horizontal] .s-grid > * {
        width: 48% !important;
        min-width: 48% !important;
    }
}

/* تكبير البنر وإزالة الفراغات */
img[alt*="تقنية تراعهم"]{
    width: 100% !important;
    height: auto !important;
    transform: scale(1.08);
    display: block;
}

.banner,
.banner img{
    overflow: hidden !important;
}

/* ========================= */
/* جديدنا سماوي */
/* ========================= */
.s-product-card-badge:not([class*="tabby"]),
.promotion-badge:not([class*="tabby"]) {
    background: #00c8ff !important;
    color: #ffffff !important;
    border: none !important;
}

.s-product-card-badge:not([class*="tabby"]) *,
.promotion-badge:not([class*="tabby"]) * {
    color: #ffffff !important;
}
/* إطار بنفسجي حول المنتجات */
.s-product-card-entry,
.product-entry,
.product-block,
salla-product-card {
    border: 2px solid #8e1aa8 !important;
    border-radius: 14px !important;
    overflow: hidden;
    transition: border-color .3s ease;
    height: auto !important;
    min-height: 0 !important;
    background: #fff !important;
}
/* إطار أزرق مطابق لهوية المتجر */
.s-product-card-entry,
.product-entry,
.product-block,
salla-product-card {
    border: 1px solid #2D7CFF !important;
    border-radius: 16px !important;
    overflow: hidden;
    transition: all .3s ease !important;
    height: auto !important;
    min-height: 0 !important;
    background: #fff !important;
    box-shadow: 0 4px 12px rgba(45,124,255,.08) !important;
}

.s-product-card-entry:hover,
.product-entry:hover,
.product-block:hover,
salla-product-card:hover {
    border-color: #005BFF !important;
    box-shadow: 0 10px 25px rgba(45,124,255,.18) !important;
    transform: translateY(-4px);
}
/* إطار أزرق فاخر وواضح */
.s-product-card-entry,
.product-entry,
.product-block,
salla-product-card {
    border: 1.5px solid #1E6FFF !important;
    border-radius: 16px !important;
    overflow: hidden;
    background: #fff !important;
    box-shadow: 0 6px 16px rgba(30,111,255,.14) !important;
    transition: all .3s ease !important;
}

.s-product-card-entry:hover,
.product-entry:hover,
.product-block:hover,
salla-product-card:hover {
    border-color: #0056E8 !important;
    box-shadow: 0 12px 30px rgba(30,111,255,.25) !important;
    transform: translateY(-4px);
/* تحسين بطاقات تقييم العملاء */
.testimonials .testimonial-item,
.testimonial-item,
.review-card {
    min-height: 260px !important;
    padding: 20px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    border-radius: 16px !important;
}

/* ترتيب نص التقييم */
.testimonial-item p,
.review-card p,
.testimonial-item .content,
.review-card .content {
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: unset !important;
    line-height: 1.9 !important;
    text-align: right !important;
}

/* اسم العميل */
.testimonial-item .name,
.review-card .name {
    font-weight: 700 !important;
    margin-top: 12px !important;
}

/* النجوم */
.testimonial-item .stars,
.review-card .stars {
    margin-top: 10px !important;
}