/* =========================================================
   1. SLIDER HOME PAGE DESIGN (SPLIDE.JS)
   ========================================================= */
.custom-splide-wrapper,
.custom-splide-wrapper * {
    box-sizing: border-box;
}

.custom-splide-wrapper {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.custom-splide-wrapper .splide,
.custom-splide-wrapper .splide__track,
.custom-splide-wrapper .splide__list {
    overflow: visible !important;
}

.custom-splide-wrapper ul,
.custom-splide-wrapper li {
    margin: 0;
    padding: 0;
    list-style: none;
}

.custom-splide-wrapper .splide__slide {
    opacity: 0.7;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.custom-splide-wrapper .splide__slide.is-active {
    opacity: 1;
    z-index: 2;
}

.custom-splide-wrapper .splide__slide img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 20px;
}

/* Splide Arrows (Centered) */
.custom-splide-wrapper .splide__arrows {
    position: absolute;
    top: 50%;
    width: 100%;
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 20;
}

.custom-splide-wrapper .splide__arrow {
    pointer-events: all;
    width: 45px;
    height: 45px;
    border-radius: 50%;
}

.custom-splide-wrapper .splide__arrow--prev {
    left: 15%;
}

.custom-splide-wrapper .splide__arrow--next {
    right: 15%;
}

/* Splide Pagination */
.custom-splide-wrapper .splide__pagination {
    position: relative;
    margin-top: 20px;
}

.custom-splide-wrapper .splide__pagination__page {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #cfd4da;
    transition: all 0.3s ease;
}

.custom-splide-wrapper .splide__pagination__page.is-active {
    width: 16px;
    border-radius: 999px;
    background: #005be4;
}

/* =========================================================
   2. CATEGORY SLIDER (BLUE BOX & CIRCLES)
   ========================================================= */
.tp-product-category {
    margin: 50px;
    /* إضافة مسافة يمين ويسار لمنع تداخل الأسهم مع الدوائر */
    padding-left: 60px !important; 
    padding-right: 60px !important;
    background: #cfd8e3 !important;
    border-radius: 30px;
    position: relative;
}

.tp-product-category-item {
    text-align: center;
}

/* الدوائر */
.tp-product-category-thumb {
    width: 90px;
    height: 90px;
    border: 2px solid #444;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: auto;
    transition: .3s;
}

.tp-product-category-thumb a {
    width:90px;
    height:86px;
    object-fit: contain;
}

/* إخفاء نصوص الأقسام */
.tp-product-category-title {
    display: none !important;
}

/* =========================================================
   3. CUSTOM ARROWS FOR CATEGORY SLIDER (JS ADDED)
   ========================================================= */
.custom-slider-arrow {
    position: absolute;
    top: 35%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    /* background-color: #ccc; */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15); 
    cursor: pointer;
    z-index: 100;
    transition: all 0.3s ease;
    /* border: 1px solid #eaeaea; */
}

.custom-slider-arrow:hover {
    background-color: #eae8e8;
    /* box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25); */
}

/* توجيه الأسهم في المنتصف داخل المسافة الفارغة (60px) */
html[dir="rtl"] .custom-slider-arrow.custom-next,
body[dir="rtl"] .custom-slider-arrow.custom-next,
.custom-slider-arrow.custom-next {
    left: -20px; 
}

html[dir="rtl"] .custom-slider-arrow.custom-prev,
body[dir="rtl"] .custom-slider-arrow.custom-prev,
.custom-slider-arrow.custom-prev {
    right: -20px; 
}

/* =========================================================
   4. BRAND AREA SLIDER
   ========================================================= */
.tp-brand-area {
    background: #cfd8e3;
    border-radius: 30px;
    margin: 40px;
}

.tp-brand-item {
    width: 90px;
    border: none !important;
    background: transparent !important;
}

.tp-brand-slider .swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
}

.tp-brand-item img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border-radius: 50%;
    border: 2px solid #444;
    padding: 12px;
    background: #fff;
    transition: .3s;
}

.tp-brand-item img:hover {
    transform: scale(1.08);
}

.tp-brand-slider-button-prev,
.tp-brand-slider-button-next {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, .15);
    display: flex;
    align-items: center;
    justify-content: center;
}

.tp-brand-slider-button-prev { left: -25px; }
.tp-brand-slider-button-next { right: -25px; }
.tp-brand-slider-arrow svg { width: 10px; height: 16px; }

/* =========================================================
   5. MOBILE RESPONSIVE ADJUSTMENTS
   ========================================================= */
@media (max-width: 768px) {
    .custom-slider-arrow {
        display: none !important;
    }
    
    .tp-product-category {
        margin: 20px 10px;
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    .tp-brand-area {
        margin: 20px 10px;
    }
}

/*---------- Section Banners -------------*/
.section-banner img{
    border-radius: 10px;
 }

/*------------footer design---------------*/
.tp-footer-social a {
    border-radius: 50px;
}

.tp-footer-talk h4 {
    direction: ltr;
    text-align: end;
}

.tp-footer-payment img {
    max-height: 45px;
}