/* 优选商城 - 头部样式 */

/* 顶部导航栏 */
.navbar {
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.navbar-brand h1 {
    font-size: 28px;
    color: #667eea;
    font-weight: 700;
    letter-spacing: 1px;
}

.navbar-menu {
    display: flex;
    gap: 30px;
}

.nav-link {
    color: #2d3748;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #667eea;
}

.navbar-user {
    display: flex;
    gap: 20px;
}

.user-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #2d3748;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.user-link:hover {
    color: #667eea;
}

.cart-link {
    position: relative;
}

.cart-badge {
    /*position: absolute;*/
    /*top: 1px;*/
    /*right: -5px;*/
    /*background: #ff6b6b;*/
    /*color: #fff;*/
    /*font-size: 11px;*/
    /*padding: 2px 6px;*/
    /*border-radius: 10px;*/
    /*font-weight: 600;*/
    margin-left: 3px;
    font-weight: 600;
    color: #7c7c7c;
}

/* 导航栏搜索 */
.navbar-search {
    flex: 1;
    max-width: 400px;
    margin: 0 30px;
}

.navbar-search .search-input-wrapper {
    display: flex;
    align-items: center;
    background: #f7fafc;
    border-radius: 25px;
    padding: 5px;
    transition: all 0.3s ease;
}

.navbar-search .search-input-wrapper:focus-within {
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    background: #fff;
}

.navbar-search .search-input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 10px 15px;
    font-size: 14px;
    outline: none;
}

.navbar-search .search-btn {
    background: #667eea;
    color: #fff;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.navbar-search .search-btn:hover {
    background: #764ba2;
}

/* 头部响应式设计 */
@media (max-width: 992px) {
    .navbar .container {
        flex-wrap: wrap;
        height: auto;
        padding: 15px 20px;
    }

    .navbar-menu {
        order: 3;
        width: 100%;
        margin-top: 15px;
        overflow-x: auto;
        padding-bottom: 10px;
    }
}

@media (max-width: 768px) {
    .navbar-brand h1 {
        font-size: 22px;
    }
}

@media (max-width: 576px) {
    .navbar-user {
        gap: 10px;
    }

    .user-link span {
        display: none;
    }
}
