html[dir="rtl"] {
    direction: rtl;
}

html[dir="rtl"] body {
    direction: rtl;
    text-align: right;
    font-family: 'Cairo', sans-serif;
}

html[dir="rtl"] .pull-left {
    float: right !important;
}

html[dir="rtl"] .pull-right {
    float: left !important;
}

html[dir="rtl"] .navbar-nav > li {
    float: right;
}

.shop-body h3 {
    font-size:20px;
}


.news-ticker{
    width:100%;
    background:#d10024;
    color:#fff;
    overflow:hidden;
    padding:12px 0;
    position:relative;
    z-index:99;
    border-top:2px solid rgba(255,255,255,.15);
    border-bottom:2px solid rgba(255,255,255,.15);
}

.ticker-wrap{
    width:100%;
    overflow:hidden;
}

.ticker{
    display:flex;
    align-items:center;
    white-space:nowrap;
    animation:ticker 30s linear infinite;
}

.ticker span{
    display:flex;
    align-items:center;
    gap:8px;
    margin:0 45px;
    font-size:17px;
    font-weight:700;
    font-family:'Cairo',sans-serif;
}

.ticker span::after{
    content:"•";
    color:#ffd54f;
    margin-right:35px;
    font-size:20px;
}

.ticker span:last-child::after{
    display:none;
}

@keyframes ticker{
    from{
        transform:translateX(100%);
    }
    to{
        transform:translateX(-100%);
    }
}

.news-ticker:hover .ticker{
    animation-play-state:paused;
}

@media(max-width:768px){
    .ticker span{
        font-size:15px;
        margin:0 25px;
    }
}

/*=========================================================
    CATEGORY SHOP - DREAM STORE
===========================================================*/

.shop{
    position:relative;
    overflow:hidden;
    background:#fff;
    border-radius:18px;
    height:240px;
    margin-bottom:30px;
    box-shadow:0 8px 25px rgba(0,0,0,.08);
    transition:.4s ease;
}

.shop:hover{
    transform:translateY(-8px);
    box-shadow:0 18px 45px rgba(0,0,0,.18);
}

.shop-img{
    width:100%;
    height:100%;
    background:#fff;
}

.shop-img img{
    width:100%;
    height:100%;
    object-fit:contain;
    transition:.5s;
}

.shop:hover .shop-img img{
    transform:scale(1.08);
}

/* الطبقة السوداء */
.shop::before{
    content:"";
    position:absolute;
    inset:0;
    background:linear-gradient(to left,
        rgba(0,0,0,.65),
        rgba(0,0,0,.15),
        transparent 70%);
    z-index:1;
}

/* الشريط الأحمر */
.shop::after{
    content:"";
    position:absolute;
    top:0;
    right:0;
    width:90px;
    height:100%;
    background:#d10024;
    clip-path:polygon(100% 0,100% 100%,0 0);
    opacity:.95;
    z-index:2;
}

.shop-body{
    position:absolute;
    top:50%;
    right:18px;
    transform:translateY(-50%);
    z-index:3;
    text-align:right;
    color:#fff;
    width:45%;
}

.shop-body h3{
    font-size:28px;
    font-weight:800;
    line-height:1.3;
    margin-bottom:18px;
    color:#fff;
    text-shadow:0 3px 8px rgba(0,0,0,.35);
}

.shop-body .cta-btn{
    display:inline-block;
    background:#fff;
    color:#d10024;
    padding:8px 18px;
    border-radius:30px;
    font-size:13px;
    font-weight:700;
    text-decoration:none;
    transition:.3s;
}

.shop-body .cta-btn:hover{
    background:#d10024;
    color:#fff;
}

/* لمعان */
.shop:hover::before{
    background:linear-gradient(to left,
        rgba(209,0,36,.55),
        rgba(0,0,0,.25),
        transparent 75%);
}

/* Responsive */

@media (max-width:767px){

.shop{
    height:170px;
    margin-bottom:15px;
}

.shop-body{
    right:12px;
    width:48%;
}

.shop-body h3{
    font-size:18px;
    margin-bottom:10px;
}

.shop-body .cta-btn{
    padding:6px 12px;
    font-size:11px;
}

}

/*=========================================*/
/**** 2  diplay two sections ==============*/

/* عرض قسمين في الصف على الموبايل */
@media (max-width: 767px) {

    .shop-section .col-xs-6,
    .shop-section .col-sm-6,
    .section .col-xs-6 {
        width: 50% !important;
        float: right;
    }

    .shop{
        margin-bottom:15px;
    }

}



/*==========================================
            HEADER RTL
==========================================*/

#header{
    direction:rtl;
}

/*==========================
        Desktop
==========================*/

.header-logo{
    text-align:right;
    padding:12px 0;
}


header-logo img{
    width:auto;
    max-width:100%;
    max-height:65px;
    display:block;
}
 

.header-ctn{
    display:flex;
    justify-content:flex-start;
    align-items:center;
    gap:20px;
    padding-top:18px;
}

/*==========================
        Mobile
==========================*/

@media only screen and (max-width:767px){

/* الشعار */
.header-logo{
    text-align:center;
    margin:15px 0;
}

.header-logo img{
    max-width:180px;
}

/* البحث */
.header-search{
    margin:15px 0;
}

/* السلة والقائمة */
.header-ctn{
    display:flex;
    justify-content:space-between;
    align-items:center;
    width:100%;
    padding:10px 0;
}

/* القائمة في اليمين */
.menu-toggle{
    order:1;
    margin-left:auto;
    margin-right:0;
}

/* السلة في اليسار */
.dropdown{
    order:2;
    margin-right:auto;
}

/* أيقونة القائمة */
.menu-toggle a{
    display:flex;
    align-items:center;
    font-size:16px;
}

/* شعار فى المنتصف */
.header-logo .logo{
    display:inline-block;
}

}

/*==============================
        Search Bar RTL
==============================*/

.header-search {
    padding: 15px 0;
}

.header-search form {
    display: flex;
    direction: rtl;
    align-items: stretch; /* يجعل جميع العناصر بنفس الارتفاع */
    height: 50px;
}

/* القائمة */
.header-search .input-select {
    width: 190px;
    border: none;
    border-left: 1px solid #e4e7ed;
    border-radius: 0 30px 30px 0;
    padding: 0 20px;
    background: #fff;
    font-size: 15px;
    height: 50px;
}

/* مربع البحث */
.header-search .input {
    flex: 1;
    border: none;
    border-left: 1px solid #e4e7ed;
    padding: 0 20px;
    font-size: 16px;
    text-align: right;
    direction: rtl;
    height: 50px;
}

/* زر البحث */
.header-search .search-btn {
    width: 130px;
    height: 50px;
    background: #D10024;
    color: #fff;
    border: none;
    border-radius: 30px 0 0 30px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all .3s ease;
}

/* Hover */
.header-search .search-btn:hover {
    background: #b8001f;
}

/* إزالة حدود التركيز */
.header-search select:focus,
.header-search input:focus,
.header-search button:focus {
    outline: none;
    box-shadow: none;
}
@media (min-width:992px){

    #header .row{
        display:flex;
        align-items:center;
    }

    #header .row > div:nth-child(1){
        order:3;
    }

    #header .row > div:nth-child(2){
        order:2;
        flex:1;
    }

    #header .row > div:nth-child(3){
        order:1;
    }

    .header-logo{
        display:flex;
        justify-content:flex-end;
    }

    .header-search{
        width:100%;
    }

    .header-ctn{
        display:flex;
        justify-content:flex-start;
        align-items:center;
    }

}



/* ==========================================
   MOBILE HEADER FIX - ELECTRO
========================================== */

@media (max-width:991px){

    #header .row{
        display:flex !important;
        flex-direction:column !important;
    }

    /* إلغاء float الخاص بBootstrap */
    #header .row > [class*="col-"]{
        float:none !important;
        width:100% !important;
        max-width:100%;
    }

    /* Logo */
    #header .row > div:nth-child(3){
        order:1;
    }

    /* Search */
    #header .row > div:nth-child(2){
        order:2;
    }

    /* Cart */
    #header .row > div:nth-child(1){
        order:3;
    }

    .header-logo{
        display:flex !important;
        justify-content:center;
        margin:15px 0;
    }

    .header-search{
        margin:15px 0;
    }

    .header-ctn{
        display:flex !important;
        justify-content:space-between;
        align-items:center;
        width:100%;
    }

}
