/* ==========================
   HEADER
========================== */
.container{
    max-width:1400px;
    width:100%;
    margin:0 auto;
    padding:0 20px;
}

.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    transition:.3s;
    height: var(--header-height);
    background: var(--color-dark);
    box-shadow: var(--shadow);
}

.header__wrapper{
    height: var(--header-height);
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:20px;
    padding:0 10px;
}
.icon{
    width: 18px;
    height:18px;
    display:block;
}
.header__search-btn{
    display:flex;
    justify-content:center;
    align-items:center;
    padding:0;
    color:#ffffff;
}

.header__search-btn img{
    width: 22px;
    height:22px;
    display:block;
    
}
/* ==========================
   LOGO
========================== */

.header__logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 330px;
    height: 100%;
    margin-right: 30px;
    flex-shrink: 0;
}

.header__logo img {
    width: 330px;
    height: auto;
    display: block;
    pointer-events: none;
    transform: translateY(8px);
}
/* ==========================
   CATALOG
========================== */

.header__catalog {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 16px;
    border-radius: var(--radius-medium);
    background: var(--color-dark-light);
    color: var(--color-white);
    transition: var(--transition);
}

.header__catalog:hover {
    background: var(--color-primary);
}

/* ==========================
   SEARCH
========================== */

.header__search {
    flex: 1;
    max-width: 45%;
    display: flex;
    background: var(--color-white);
    border-radius: var(--radius-large);
    overflow: hidden;
    transition:.25s;
    position: relative;
}

.header__search-input {
    flex: 1;
    padding: 6px 16px;
}

.header__search-btn {
    width: 60px;
    background: var(--color-primary);
    color: #fff;
    font-size: 12px;
    transition: var(--transition);
}

.header__search-btn:hover {
    background: var(--color-primary-hover);
}

.header__search:focus-within{

box-shadow:0 0 0 4px rgba(249,115,22,.25);

}
/* =========================
SEARCH CLEAR BUTTON
========================= */

.header__search-clear {
    position: absolute;
    right: 80px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    font-size: 8px;
    line-height: 1;
    color: #8994A5;
    cursor: pointer;
    display: none;
    z-index: 2;
}
.header__search-clear:hover {
    color: #1F2937;
}
/* ==========================
   ACTIONS
========================== */

.header__actions {
    display: flex;
    align-items: center;
    gap: 12px;
}
.header__icon {
    position: relative;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: var(--color-dark-light);
    color: var(--color-white);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition);
}
.icon-user{
    width:22px;
    height:22px;
}
.header__icon:hover {
    background: var(--color-primary);
}
.header__badge {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background:#F97316;
    color: white;
    font-size: 11px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.icon-cart{
    width:22px;
    height:22px;
}

/* ==========================
   SELL BUTTON
========================== */

.header__sell {
    padding: 12px 22px;
    border-radius: var(--radius-medium);
    background: var(--color-primary);
    color: white;
    font-weight: 700;
    transition: var(--transition);
    display: none;
}
.header__sell:hover {
    background: var(--color-primary-hover);
}
/* ===========================
   TOP MENU
=========================== */

.top-menu{
    background:#171C27;
    border-top:1px solid rgba(255,255,255,.06);
    border-bottom:1px solid rgba(255,255,255,.06);
}
.top-menu .container{
    max-width:1400px;
    margin:0 auto;
    padding:0 30px;
}

.top-menu__list{
    display:flex;
    justify-content:flex-start;
    align-items:center;
    gap:18px;
    height:52px;
    list-style:none;
    margin-left:30px;
    padding: 8px;
    height:38px;
}

.top-menu__list a{
    color:#F2F4F7;
    text-decoration:none;
    font-size:10px;
    font-weight:500;
    transition:.25s;
}

.top-menu__list a:hover{
    color:#F28C28;
}

.top-menu__list li:first-child a{
    color:#F28C28;
}
/* Верхнее меню должно быть выше логотипа */
.top-menu {
    position: relative;
    z-index: 100;
}
/* =========================
   TOP MENU — CLICK FIX
========================= */

.header {
    position: sticky;
    top: 0;
    z-index: 1001;
}

.top-menu {
    position: relative;
    z-index: 1000;
}

.top-menu__list {
    position: relative;
    z-index: 1001;
}

.top-menu__list a {
    position: relative;
    z-index: 1002;
    pointer-events: auto;
}

/* Логотип не должен перекрывать элементы навигации */
.header__logo img {
    pointer-events: none;
}

.header__logo {
    pointer-events: auto;
}
