/* =====================================================
   HEADER
===================================================== */

.site-header{
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #ffffff;
    border-bottom: 1px solid #e9ecef;
    box-shadow: 0 2px 12px rgba(0,0,0,.05);
}

.header-top{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:30px;
    min-height:90px;
}

/* ==========================
   Logo
========================== */

.logo{
    flex:0 0 260px;
}

.logo a{
    display:flex;
    align-items:center;
    gap:15px;
    color:#212529;
}

.logo img{
    width:58px;
    height:58px;
    border-radius:50%;
    object-fit:cover;
    /* border:1px solid #0d6efd; */
}

.logo-text h2{
    font-size:24px;
    margin:0;
    font-weight:700;
}

.logo-text h2 span{
    color:#0d6efd;
}

.logo-text p{
    margin:3px 0 0;
    font-size:13px;
    color:#6c757d;
}

/* ==========================
   Search
========================== */

.search-box{
    flex:1;
}

.search-box form{
    position:relative;
}

.search-box input{
    width:100%;
    height:52px;
    border:1px solid #dee2e6;
    border-radius:14px;
    padding:0 15px 0 20px;
    font-size:15px;
    transition:.3s;
    background:#fff;
}

.search-box input:focus{
    outline:none;
    border-color:#0d6efd;
    box-shadow:0 0 0 .2rem rgba(13,110,253,.15);
}

.search-box button{
    position:absolute;
    left:6px;
    top:6px;

    width:40px;
    height:40px;

    border:none;
    border-radius:10px;

    background:#0d6efd;
    color:#fff;

    transition:.3s;
}

.search-box button:hover{
    background:#0b5ed7;
}

/* ==========================
   Actions
========================== */

.header-buttons{
    display:flex;
    align-items:center;
    gap:12px;
}

/* سبد خرید */

.cart-btn{
    position:relative;

    width:52px;
    height:52px;

    display:flex;
    justify-content:center;
    align-items:center;

    border:1px solid #dee2e6;
    border-radius:14px;

    color:#343a40;
    background:#fff;
}

.cart-btn:hover{
    border-color:#0d6efd;
    color:#0d6efd;
}

.cart-btn span{
    position:absolute;

    top:-5px;
    right:-5px;

    width:22px;
    height:22px;

    border-radius:50%;

    background:#dc3545;
    color:#fff;

    display:flex;
    justify-content:center;
    align-items:center;

    font-size:12px;
}

/* ورود */

.login-btn{
    height:52px;
    padding:0 22px;

    display:flex;
    align-items:center;
    gap:8px;

    border-radius:14px;

    background:#0d6efd;
    color:#fff;

    font-weight:600;
}

.login-btn:hover{
    background:#0b5ed7;
    color:#fff;
}
/*=========================================
    Responsive Header
=========================================*/

@media (max-width: 991.98px){

    .header-top{
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
        padding: 20px 0;
    }

    /* لوگو */

    .logo{
        flex: unset;
        width: 100%;
    }

    .logo a{
        justify-content: center;
    }

    /* جستجو */

    .search-box{
        width: 100%;
    }

    .search-box form{
        width: 100%;
    }

    /* دکمه‌ها */

    .header-buttons{
        width: 100%;
        justify-content: center;
    }

    .login-btn{
        flex: 1;
        justify-content: center;
    }

}

@media (max-width: 576px){

    .logo img{
        width: 48px;
        height: 48px;
    }

    .logo-text h2{
        font-size: 20px;
    }

    .logo-text p{
        font-size: 12px;
    }

    .search-box input{
        height: 46px;
        font-size: 14px;
    }

    .search-box button{
        width: 36px;
        height: 36px;
        top: 5px;
        left: 5px;
    }

    .cart-btn{
        width: 46px;
        height: 46px;
    }

    .login-btn{
        height: 46px;
        font-size: 14px;
    }

}