/* merchant-header.css - header / navbar 专用样式 */

* {
    box-sizing: border-box;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: "Helvetica Neue", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    color: #333;
    background: #fff;
    -webkit-font-smoothing: antialiased;
}

li {
    list-style: none;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

/* ---------- Container / Grid 简单实现 ---------- */
.container {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
}

.site-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px;
    box-sizing: border-box;
}

.row {
    display: flex;
    flex-wrap: wrap;
}

.col {
    padding: 6px;
    flex: 1 0 0%;
    min-width: 0;
}

/* 支持常见 col-md-*：以 992px 断点计算 */
.col-md-1 {
    flex: 0 0 8.333333%;
    max-width: 8.333333%;
}

.col-md-2 {
    flex: 0 0 16.666667%;
    max-width: 16.666667%;
}

.col-md-3 {
    flex: 0 0 25%;
    max-width: 25%;
}

.col-md-4 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
}

.col-md-6 {
    flex: 0 0 50%;
    max-width: 50%;
}

.col-md-9 {
    flex: 0 0 75%;
    max-width: 75%;
}

.col-md-12 {
    flex: 0 0 100%;
    max-width: 100%;
}

/* row-cols-2 / row-cols-md-5 */
.row-cols-2 > .col {
    flex: 0 0 50%;
    max-width: 50%;
}

/* 简单 gutter */
.g-4 {
    gap: 16px;
}

.font-bold {
    font-weight: 700;
}

/* ---------- Header / Navbar ---------- */
.header {
    background: #fff;
    border-bottom: 1px solid #eee;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    display: flex; /* 使用 flex 布局 */
    align-items: center; /* 垂直居中 */
    justify-content: space-between; /* 左右分布 */
    padding: 0 20px; /* 左右内边距 */
    height: 80px; /* 固定高度，方便内容垂直居中 */
    box-sizing: border-box;
}

.header .row {
    align-items: center;
}

.logo {
    width: 100%; /* 确保容器占满列宽 */
    display: flex;
    justify-content: center; /* 水平居中 */
    align-items: center; /* 垂直居中（可选） */
}

.logo img {
    width: 52px;
    height: 52px;
    object-fit: contain;
}

/* Navbar */
.navbar {
    display: flex;
    align-items: center;
    width: 100%;
}

.navbar .navbar-brand {
    font-size: 20px;
    font-weight: 700;
    margin-right: 12px;
    text-decoration: none;
    color: #222;
}

.navbar .navbar-nav {
    display: flex;
    flex-direction: row;
    padding-left: 0;
    margin: 0;
    list-style: none;
}

.navbar .nav-item {
}

.navbar .nav-link {
    text-decoration: none;
    color: #333;
    padding: 8px 12px;
}

.navbar .nav-link.active {
    font-weight: bold;
    color: #FCD535;
}

/* form controls (search) */
.form-control {
    display: inline-block;
    width: 320px;
    padding: 8px 10px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    outline: none;
    font-size: 14px;
}

.form-control:focus {
    border-color: #98c0ea;
    box-shadow: 0 4px 12px rgba(35, 106, 176, 0.06);
}

.form-control-sm {
    height: 36px;
}

/* small search button */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    border-radius: 6px;
    border: 0;
    cursor: pointer;
    font-weight: 600;
}

.btn.btn-secondary {
    background: #6b7280;
    color: #fff;
}

.btn:disabled {
    opacity: .6;
    cursor: not-allowed;
}

@media (max-width: 767.98px) {
    .header {
        height: 60px;
    }

    .logo img {
        width: 40px;
        height: 40px;
    }

    .navbar .navbar-brand {
        display: none;
    }

}
