/* =========================================================
   SmartShop
   Top Bar + Header
   ========================================================= */

.topbar{
    background:#0f172a;
    color:#fff;
    font-size:14px;
    border-bottom:1px solid rgba(255,255,255,.08);
}

.topbar .container{
    max-width:1400px;
    margin:0 auto;
    padding:0 20px;
    height:42px;
    display:flex;
    align-items:center;
    justify-content:space-between;
}

.topbar-right,
.topbar-left{
    display:flex;
    align-items:center;
}

.topbar-left > *{
    position:relative;
    padding-left:18px;
    margin-left:18px;
}

.topbar-left > *:not(:last-child)::after{
    content:"";
    position:absolute;
    left:0;
    top:50%;
    transform:translateY(-50%);
    width:1px;
    height:18px;
    background:rgba(255,255,255,.35);
}

.topbar a{
    color:#ffffff;
    text-decoration:none;
    transition:.25s;
}

.topbar a:hover{
    color:#f6c344;
}

.topbar-location{
    display:flex;
    align-items:center;
    gap:8px;
    font-weight:500;
}

.topbar-location img{
    width:16px;
    height:16px;
}

.topbar-seller a{
    display:flex;
    align-items:center;
    gap:6px;
}

.topbar-seller img{
    width:12px;
    height:12px;
}

.site-header{
    background:#ffffff;
    border-bottom:1px solid #ececec;
}

.site-header .container{
    max-width:1400px;
    margin:auto;
    padding:18px 20px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:70px;
}

.header-logo{
    flex:0 0 auto;
}

.header-logo img{
    height:62px;
    display:block;
}

.header-search{
    flex:1;
}

.header-search form{
    display:flex;
    align-items:center;
    height:52px;
    border:1px solid #E8E8E8;
    box-shadow:0 8px 20px rgba(0,0,0,.05);
    border-radius:10px;
    overflow:hidden;
    background:#fff;
}

.header-search input{
    flex:1;
    height:100%;
    border:0;
    outline:none;
    background:none;
    padding:0 18px;
    font-size:15px;
}

.header-search input::placeholder{
    color:#999;
}

.search-category{
    display:flex;
    align-items:center;
    gap:8px;
    padding:0 16px;
    border-right:1px solid #ececec;
    background:#fafafa;
}

.search-category select{
    border:0;
    background:none;
    outline:none;
    font-size:14px;
    cursor:pointer;
}

.search-category img{
    width:12px;
    height:12px;
}

.header-search button{
    width:60px;
    height:52px;
    border:0;
    cursor:pointer;
    background:#0B1F4D;
    display:flex;
    align-items:center;
    justify-content:center;
}

.header-search button img{
    width:20px;
    height:20px;
}

.header-actions{
    display:flex;
    align-items:center;
    gap:15px;
}

.create-store-btn{
    display:flex;
    align-items:center;
    gap:10px;
    text-decoration:none;
    color:#ffffff;
    background:#F5B223;
    padding:10px 12px;
    border-radius:8px;
    transition:.25s;
    font-weight:600;
    font-size:14px;
}

.create-store-btn:hover{
    background:#0B1F4D;
    color:#fff;
}

.create-store-btn img{
    width:20px;
    height:20px;
}

.header-account{
    display:flex;
    align-items:center;
    gap:12px;
    color:#111;
    text-decoration:none;
}

.header-account img{
    width:24px;
    height:24px;
}

.header-account strong{
    display:block;
    font-size:14px;
    line-height:18px;
}

.header-account span{
    display:block;
    font-size:12px;
    color:#777;
}

.header-icon,
.header-cart{
    position:relative;
    display:flex;
    align-items:center;
    justify-content:center;
    text-decoration:none;
    color:#111;
    font-size:13px;
}

.header-icon img,
.header-cart img{
    width:24px;
    height:24px;
}

.badge{
    position:absolute;
    top:-6px;
    left:-6px;
    width:18px;
    height:18px;
    background:#F5B223;
    color:#fff;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:11px;
    font-weight:700;
    line-height:1;
}

.header-cart{
    display:flex;
    align-items:center;
    gap:10px;
}

/* إخفاء إجمالي السلة من الـHeader.
   العداد فقط يبقى ظاهرًا، أما المجموع فيظهر داخل السلة. */
.cart-total{
    display:none !important;
}

.header-icon:hover img,
.header-account:hover img,
.create-store-btn:hover img{
    opacity:.85;
}

.topbar a,
.header-account,
.header-icon,
.header-cart,
.create-store-btn,
.header-search button{
    transition:.25s ease;
}

.header-icon + .header-icon,
.header-icon + .header-account{
    position:relative;
    padding-right:15px;
}

.header-icon + .header-icon::before,
.header-icon + .header-account::before{
    content:"";
    position:absolute;
    right:0;
    top:50%;
    transform:translateY(-50%);
    width:1px;
    height:24px;
    background:#E8E8E8;
}

.topbar-currency{
    color:#f6c344 !important;
    font-weight:700;
    width:60px;
}

.topbar-currency::after{

    margin:0 14px;
    color:rgba(255,255,255,.25);
}

.topbar-currency-wrap{text-align:left;position:relative}.topbar-currency-wrap>summary{list-style:none;cursor:pointer}.topbar-currency-wrap>summary::-webkit-details-marker{display:none}.topbar-currency-menu{position:absolute;top:calc(100% + 10px);right:0;min-width:220px;background:#fff;border:1px solid #e7e7e7;border-radius:10px;box-shadow:0 14px 30px rgba(0,0,0,.12);padding:6px;z-index:10000}.topbar-currency-menu a{display:flex!important;justify-content:space-between;gap:14px;padding:9px 10px;color:#1d1d1d!important;border-radius:7px;margin:0!important}.topbar-currency-menu a:hover,.topbar-currency-menu a.active{background:#f6f8fc;color:#0b1f4d!important}.topbar-currency-menu span{font-size:11px;color:#7a8190}
