/* =====================================================
TOP BAR
===================================================== */

.ts-topbar{
    background:#000;
    color:#fff;
    height:40px;
}

.ts-topbar-inner{
    display:flex;
    align-items:center;
    justify-content:space-between;
    height:40px;
}

.ts-topbar a{
    color:#fff;
    text-decoration:none;
}

.ts-topbar-left{
    display:flex;
    gap:18px;
}

/* =====================================================
MAIN HEADER
===================================================== */

.ts-main-header{
    background:#2155ff;
    padding:2px 0;
    min-height:46px;
}

/* =====================================================
LOGO
===================================================== */
.ts-logo{
    position:relative;
    right:-80px;
}

.ts-logo a{
    text-decoration:none;
}

.ts-site-name{
    display:block;
    font-size:38px;
    font-weight:800;
    line-height:1;
    color:#fff;
    letter-spacing:-1px;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
    padding-right:100px;
}

.ts-logo-image{
    display:block;
    max-width:220px;
    max-height:52px;
    width:auto;
    height:auto;
}

/* =====================================================
HEADER ACTIONS ICONS
===================================================== */
.ts-header-actions .fa-bell{
    font-size:18px;
}
/* =====================================================
LOCATION BUTTON
===================================================== */

.ts-location{
    width:100%;
    color:#fff;
    font-weight:700;
    cursor:pointer;
    display:flex;
    align-items:center;
    gap:8px;
    padding:10px 14px;
    border-radius:12px;
    transition:.25s;
    white-space:nowrap;
    transform:translateX(100px);
}

.ts-location-text{
    display:inline-flex;
    align-items:center;
    gap:4px;
    white-space:nowrap;
}
    
.ts-location:hover{
    background:rgba(255,255,255,.12);
}

#tsowq-current-city{
    display:block;
    max-width:220px;
    overflow:hidden;
    white-space:nowrap;
    text-overflow:ellipsis;
    font-size:14px;
    font-weight:600;
    color:#fff;
}

/* =====================================================
SEARCH BAR
===================================================== */
.ts-search-form{
    display:flex;
    align-items:center;
    width:110%; /* عرض السيرش بار بالكامل - زوده أو قلله */
    margin:5px auto; /* 20px فوق + 20px تحت داخل الهيدر الأزرق */
    transform:translateX(110px); /* مسافة من اليمين */
}

.ts-search-form input{
    flex:1;
    height:48px; /* ارتفاع مربع البحث */
    border:none;
    outline:none;
    padding:0 20px; /* مسافة النص داخل مربع البحث */
    background:#fff;
    font-size:15px;
    border-radius:0 10px 10px 0;
}

.ts-search-form button{
    width:48px;
    height:48px;
    border:none;
    background:#f07426;
    color:#fff;
    border-radius:10px 0 0 10px;
    transition:all .25s ease;
}

.ts-search-form button:hover{
    background:#15399e;
}
/* =====================================================
HEADER ACTIONS
===================================================== */

.ts-header-actions{
    display:flex;
    align-items:center;
    justify-content:flex-start;
    gap:18px;
    transform:translateX(70px);
}

.ts-header-actions a{
    color:#fff;
    text-decoration:none;
}

.ts-action-link{
    display:flex;
    align-items:center;
    gap:5px;
    height:42px;
    padding:0 1px;
    white-space:nowrap;
    border-radius:10px;
    color:#fff;
    text-decoration:none;
    transition:all .25s ease;
}


.ts-action-link:hover{
    background:rgba(255,255,255,.12);

}.ts-action-link{
    position:relative;
    display:flex;
    align-items:center;
    gap:6px;
}

.ts-header-count{
    position:absolute;

    top:-4px;
    right:-10px;

    min-width:20px;
    height:20px;

    padding:0 4px;

    display:flex;
    align-items:center;
    justify-content:center;

    background:#ff3b30;
    color:#fff;

    border-radius:50%;

    font-size:11px;
    font-weight:700;

    line-height:1;

    box-shadow:0 2px 8px rgba(0,0,0,.25);

    
}
/* =====================================================
COUNTRY / LANGUAGE BUTTON
===================================================== */

.ts-country-dropdown{
    position:relative;
   
}

.ts-country-btn{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:5px;
    min-width:140px;
    height:48px;
    padding:0 18px;
    border-radius:12px;
    color:#fff;
    cursor:pointer;
    transition:.25s;
}

.ts-country-btn:hover{
    background:rgba(255,255,255,.18);
    border-color:rgba(255,255,255,.25);
}

#ts-header-flag{
    font-size:24px;
    line-height:1;
    display:flex;
    align-items:center;
    justify-content:center;
}

#ts-header-language{
    font-size:15px;
    font-weight:700;
    white-space:nowrap;
}

.ts-country-btn .fa-chevron-down{
    font-size:11px;
    opacity:.8;
}

/* =====================================================
SETTINGS POPUP
===================================================== */

.ts-settings-modal{
    position:fixed;
    inset:0;
    display:none;
    z-index:999999;
}

.ts-settings-modal.show{
    display:block;
}

.ts-settings-overlay{
    position:absolute;
    inset:0;
    background:rgba(0,0,0,.55);
    backdrop-filter:blur(4px);
}

.ts-settings-box{
    position:absolute;
    top:50%;
    left:50%;

    transform:translate(-50%,-50%);

    width:620px;
    max-width:95%;

    background:#fff;

    border-radius:24px;

    padding:35px;

    box-shadow:
    0 20px 60px rgba(0,0,0,.25);
}

.ts-settings-header{
    display:flex;
    align-items:center;
    justify-content:space-between;

    margin-bottom:30px;
}

.ts-settings-header h3{
    margin:0;
    font-size:32px;
    font-weight:800;
    color:#111827;
}

.ts-settings-header button{
    background:none;
    border:none;
    font-size:34px;
    cursor:pointer;
    color:#111827;
}

/* =====================================================
SECTIONS
===================================================== */

.ts-settings-section{
    margin-bottom:30px;
}

.ts-settings-section h4{
    margin-bottom:18px;
    font-size:22px;
    font-weight:700;
    line-height:1.8;
    color:#111827;
}

/* =====================================================
LANGUAGE RADIO
===================================================== */

.ts-radio-option{
    display:flex;
    align-items:center;

    gap:10px;

    margin-bottom:14px;

    font-size:18px;
    font-weight:600;

    cursor:pointer;
}

.ts-radio-option input{
    width:20px;
    height:20px;
}

/* =====================================================
COUNTRY SELECT
===================================================== */

.ts-country-select{
    width:100%;
    height:56px;

    border:1px solid #dbe1ea;
    border-radius:14px;

    padding:0 15px;

    font-size:16px;
    font-weight:600;

    background:#fff;
    color:#111827;

    outline:none;
}

.ts-country-select:focus{
    border-color:#2563eb;
}

/* =====================================================
SAVE BUTTON
===================================================== */

.ts-save-settings{
    width:100%;
    height:58px;

    border:none;
    border-radius:14px;

    background:#2563eb;

    color:#fff;

    font-size:18px;
    font-weight:700;

    cursor:pointer;

    transition:.25s;
}

.ts-save-settings:hover{
    background:#1d4ed8;
}
/* =====================================================
NAVIGATION
===================================================== */

.ts-navbar{
    background:#fff;
    border-bottom:1px solid #eee;
    position:relative;
    z-index:100;
}

.ts-nav-menu{
    display:flex;
    justify-content:center;
    align-items:center;
    gap:30px;
    padding:12px 0;
    margin:0;
    list-style:none;
}

.ts-nav-menu > li{
    position:relative;
}

.ts-nav-menu > li > a{
    color:#222;
    text-decoration:none;
    font-weight:600;
    display:block;
    padding:8px 0;
}

/* القائمة الفرعية */

.ts-nav-menu .sub-menu{

    position:absolute;
    top:100%;
    right:0;

    min-width:250px;

    background:#fff;

    border-radius:12px;

    padding:10px 0;

    list-style:none;

    box-shadow:0 10px 30px rgba(0,0,0,.08);

    opacity:0;
visibility:hidden;

transform:
translateY(20px)
scale(.95);

transition:
all .35s ease;

    z-index:9999;
}

.ts-nav-menu li:hover > .sub-menu{

    opacity:1;
    visibility:visible;

    transform:translateY(0)scale(1);
}

.ts-nav-menu .sub-menu li{
    position:relative;
}

.ts-nav-menu .sub-menu a{

    display:block;

    padding:12px 18px;

    color:#222;

    text-decoration:none;
}

.ts-nav-menu .sub-menu a:hover{
transform:translateX(-3px);
    background:#f5f5f5;
}

/* =====================================================
LOCATION MODAL
===================================================== */

.tsowq-location-modal{
    display:none;
    position:fixed;
    inset:0;
    z-index:999999;
    align-items:center;
    justify-content:center;
}

.tsowq-location-overlay{
    position:absolute;
    inset:0;
    background:rgba(0,0,0,.55);
    backdrop-filter:blur(6px);
}

.tsowq-location-popup{
    position:absolute;
    top:50%;
    left:50%;
    transform:translate(-50%,-50%);
    width:700px;
    max-width:95%;
    background:#fff;
    border-radius:24px;
    overflow:hidden;
    box-shadow:0 25px 80px rgba(0,0,0,.25);
}
.ts-nav-menu > li > a{
    position:relative;
    color:#222;
    text-decoration:none;
    font-weight:600;
    display:block;
    padding:8px 0;
}

.ts-nav-menu > li > a::after{

    content:"";

    position:absolute;

    bottom:-14px;

    right:0;

    width:0;

    height:3px;

    background:#000;

    transition:.3s;
}

.ts-nav-menu > li:hover > a::after{

    width:100%;
}

/* =====================================================
LOCATION HEADER
===================================================== */

.tsowq-location-header{
    position:relative;
    padding:22px 24px 18px;
}

.tsowq-location-header h3{
    margin:0;
    font-size:20px;
    font-weight:700;
    color:#111;
    text-align:right;
}

#tsowq-close-location{
    position:absolute;
    top:18px;
    left:18px;
    width:34px;
    height:34px;
    border:none;
    background:none;
    font-size:24px;
    color:#666;
    cursor:pointer;
}

/* =====================================================
TOP SEARCH AREA
===================================================== */

.tsowq-location-top{
    display:flex;
    flex-direction:row-reverse;
    align-items:center;
    gap:12px;
    padding:0 24px 20px;
}

.tsowq-search-box{
    flex:1;
    position:relative;
}

.tsowq-search-box input{
    width:100%;
    height:58px;
    border:1px solid #e5e7eb;
    border-radius:16px;
    background:#fff;
    padding-right:18px;
    padding-left:50px;
    font-size:15px;
    color:#222;
}

.tsowq-search-box input:focus{
    outline:none;
    border-color:#2155ff;
}

.tsowq-search-box i{
    position:absolute;
    left:18px;
    top:50%;
    transform:translateY(-50%);
    font-size:18px;
    color:#666;
    pointer-events:none;
}

.tsowq-current-location-btn{
    height:58px;
    min-width:180px;
    padding:0 18px;
    border:none;
    border-radius:16px;
    background:#eef3ff;
    color:#2155ff;
    font-size:15px;
    font-weight:700;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    cursor:pointer;
    white-space:nowrap;
}

.tsowq-current-location-btn:hover{
    background:#e3ebff;
}
/* =====================================================
LOCATION SEARCH INPUT
===================================================== */

.tsowq-location-search{
    width:100%;
    height:48px;
    border:1px solid #e5e7eb;
    border-radius:14px;
    padding:0 18px;
    font-size:14px;
    background:#fff;
    transition:.2s;
}

.tsowq-location-search:focus{
    border-color:#3866ff;
    box-shadow:0 0 0 4px rgba(56,102,255,.12);
    outline:none;
}

.tsowq-location-search input{
    width:100%;
    border:none;
    outline:none;
    font-size:15px;
}

/* =====================================================
DETECT LOCATION BUTTON
===================================================== */

#tsowq-detect-location{
    width:auto;
    min-width:140px;
    margin:0;
    height:54px;
    border:none;
    border-radius:14px;
    background:#f5f7ff;
    color:#2155ff;
    font-weight:700;
    cursor:pointer;
    transition:.3s;
}

#tsowq-detect-location:hover{
    background:#eaf0ff;
}

/* =====================================================
MAP
===================================================== */

.ts-map-wrapper{
    position:relative;
    margin:0 20px;
}

#tsowq-map{
    height:250px;
    border-radius:18px;
    overflow:hidden;
    border:1px solid #eee;
}

/* =====================================================
MAP CENTER PIN
===================================================== */

.ts-map-center-pin{
    position:absolute;
    top:50%;
    left:50%;
    transform:translate(-50%,-100%);
    z-index:999;
    pointer-events:none;
}

.custom-location-marker{
    color:#ff4d4f;
    font-size:48px;
}

/* =====================================================
SELECTED LOCATION CARD
===================================================== */

.ts-current-location-card{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin:14px 20px 18px;
    padding:14px 16px;
    border:1px solid #eee;
    border-radius:12px;
    background:#fafafa;
}

.ts-current-location-card strong{
    display:block;
    font-size:22px;
    font-weight:700;
    color:#222;
}

.ts-current-location-card span{
    color:#777;
    font-size:14px;
}

.tsowq-selected-location-card{
    margin-top:16px;
    padding:18px;
    border:1px solid #eee;
    border-radius:16px;
    background:#fafafa;
}

.tsowq-location-title{
    font-size:13px;
    color:#777;
    margin-bottom:6px;
}

#selected-address{
    font-size:16px;
    font-weight:700;
    color:#222;
}

/* =====================================================
CONFIRM BUTTONS
===================================================== */

.ts-confirm-mini{
    border:none;
    background:#2155ff;
    color:#fff;
    padding:10px 20px;
    border-radius:10px;
    font-weight:700;
    cursor:pointer;
}

.ts-confirm-mini:hover{
    opacity:.9;
}

.tsowq-confirm-btn{
    width:100%;
    height:52px;
    border:none;
    border-radius:16px;
    background:#3866ff;
    color:#fff;
    font-size:17px;
    font-weight:600;
    cursor:pointer;
    transition:.2s;
}

.tsowq-confirm-btn:hover{
    transform:translateY(-1px);
}

#tsowq-confirm-location:hover{
    background:#1948df;
}

/* =====================================================
LOCATION FOOTER
===================================================== */

.tsowq-location-footer{
    display:none;
    padding:20px;
    border-top:1px solid #eee;
}

/* =====================================================
RESPONSIVE
===================================================== */

@media (max-width:768px){

    .tsowq-location-popup{
        width:95%;
    }

    #tsowq-map{
        height:240px;
    }

    .tsowq-location-header h3{
        font-size:22px;
        font-weight:700;
    }

    .ts-current-location-card{
        flex-direction:column;
        align-items:flex-start;
        gap:12px;
    }

    .ts-confirm-mini{
        width:100%;
    }

    #tsowq-detect-location{
        width:100%;
    }

    .ts-header-actions{
        flex-wrap:wrap;
        gap:10px;
    }
}

/* =========================================
TOPBAR SOCIAL media PRO
========================================= */

.ts-topbar-social{
    display:flex;
    align-items:center;
    gap:14px;
}

.ts-topbar-social a{
    width:38px;
    height:38px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:50%;
    background:rgba(255,255,255,.08);
    border:1px solid rgba(255,255,255,.15);
    color:#ffffff;
    font-size:18px;
    transition:all .35s ease;
    position:relative;
    overflow:hidden;

}

.ts-topbar-social a::before{
    content:'';
    position:absolute;
    top:0;
    left:-100%;
    width:100%;
    height:100%;
    background:linear-gradient(
        120deg,
        transparent,
        rgba(255,255,255,.35),
        transparent
    );

    transition:.5s;

}

.ts-topbar-social a:hover::before{
    left:100%;

}

.ts-topbar-social a:hover{
    background:#ffffff;
    color:#2563eb;
    transform:translateY(-4px) scale(1.08);
    box-shadow:
    0 10px 25px rgba(255,255,255,.25);

}

.ts-topbar-social a:hover i{
    transform:rotate(-8deg);

}

.ts-topbar-social i{
    transition:.35s;

}

/* Facebook */
.ts-topbar-social a:hover .fa-facebook-f{
    color:#1877f2;

}

/* Instagram */
.ts-topbar-social a:hover .fa-instagram{
    color:#e1306c;

}

/* X */
.ts-topbar-social a:hover .fa-x-twitter{
    color:#000000;

}

/* LinkedIn */
.ts-topbar-social a:hover .fa-linkedin-in{
    color:#0a66c2;

}

/* Snapchat */
.ts-topbar-social a:hover .fa-snapchat{
    color:#fffc00;

}

/* Threads */
.ts-topbar-social a:hover .fa-threads{
    color:#000000;

}

/* =========================================
RESPONSIVE
========================================= */
@media(max-width:992px){
    .ts-search-form{
        width:100%;
        transform:none;
    }

    .ts-location{
        transform:none;
    }

    .ts-header-actions{
        transform:none;
        flex-wrap:wrap;
        gap:12px;
    }

    .ts-logo{
        right:0;
    }
}

@media(max-width:768px){

    .ts-topbar{
        display:none;
    }
    .ts-search-form{
        width:100%;
    }
    .ts-location{
        display:none;
    }
}

@media(max-width:768px){
    .ts-topbar{
        display:none;
    }

    .ts-nav-menu{
        overflow-x:auto;
        justify-content:flex-start;
        white-space:nowrap;
        gap:24px;
    }

}

/* =========================================
HEADER BADGES
========================================= */

.ts-header-badge{
    position:absolute;
    top:-6px;
    left:-8px;

    min-width:20px;
    height:20px;

    padding:0 5px;

    border-radius:999px;

    background:#ff3b30;

    color:#fff;

    font-size:11px;
    font-weight:700;

    display:flex;
    align-items:center;
    justify-content:center;

    box-shadow:
    0 3px 8px rgba(0,0,0,.25);
}

/* =========================================
WISHLIST BUTTON
========================================= */

.ts-product-wishlist{
    position:absolute;
    top:12px;
    left:12px;

    width:42px;
    height:42px;

    border:none;
    border-radius:50%;

    background:#fff;

    cursor:pointer;

    z-index:20;

    display:flex;
    align-items:center;
    justify-content:center;

    box-shadow:
    0 8px 20px rgba(0,0,0,.12);
}

.ts-product-wishlist.active{
    background:#ffebee;
}

.ts-product-wishlist.active i{
    color:#ff3b30;
}

.ts-product-wishlist i{
    font-size:18px;
}
/* =================================
STICKY HEADER
================================= */

.ts-header,
.site-header,
header{

    position:sticky;

    top:0;

    z-index:99999;
}

/* =========================================
ADD TO CART EFFECT
========================================= */

.ts-cart-bounce{
    animation:tsBounce .35s ease;
}

@keyframes tsBounce{

    0%{
        transform:scale(1);
    }

    50%{
        transform:scale(1.3);
    }

    100%{
        transform:scale(1);
    }

}