/* Стили для хедера */
.main-header {
    background-color: #212a34;
    height: 80px;
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.main-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Логотип */
.logo {
    margin-right: 20px;
}

.logo img {
    max-height: 50px;
}

/* Кнопка каталога */
.catalog-btn a {
    background-color: #ffcc32;
    color: #212a34;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.catalog-btn a:hover {
    background-color: #ffe283;
}

/* Поиск */
.search-form {
    flex: 1;
    max-width: 400px;
    position: relative;
    margin: 0 20px;
}

.search-form input {
    width: 100%;
    padding: 10px 15px;
    border-radius: 5px;
    border: none;
    font-size: 14px;
}

.search-form button {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #999;
}

/* Избранное и корзина */
.favorites, .cart {
    margin: 0 15px;
    text-align: center;
}

.favorites a, .cart a {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
}

.favorites i, .cart i {
    font-size: 20px;
    margin-bottom: 5px;
}

/* Кнопка авторизации */
.auth-btn a {
    background-color: #ffe283;
    color: #212a34;
    font-weight: 500;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.auth-btn a:hover {
    background-color: #ffcc32;
    transform: translateY(-2px);
}

/* Адаптивность */
@media (max-width: 992px) {
    .search-form {
        max-width: 300px;
    }
}

@media (max-width: 768px) {
    .main-header {
        height: auto;
        padding: 15px 0;
    }
    
    .main-header .container {
        flex-wrap: wrap;
    }
    
    .logo {
        margin-right: 0;
        width: 100%;
        text-align: center;
        margin-bottom: 15px;
    }
    
    .search-form {
        order: 3;
        max-width: 100%;
        margin: 15px 0 0;
    }
    
    .catalog-btn, .favorites, .cart, .auth-btn {
        margin: 0 5px;
    }
}
/* Иконка авторизации в стиле избранного/корзины: иконка + подпись */
.main-header .auth-btn {
    margin: 0 15px;
    text-align: center;
}

/* Убираем «жёлтую кнопку», делаем вертикальный стек как у избранного/корзины */
.main-header .auth-btn a {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: none !important;
    border: 0 !important;
    padding: 0 !important;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    border-radius: 0;
    transition: color 0.3s ease;
}

.main-header .auth-btn i {
    font-size: 20px;
    margin-bottom: 5px;
}

.main-header .auth-btn a:hover {
    color: #ffe283;
    transform: none;
}
