/* Shared marketplace layout shell */
body { background: #f5f5f5; }

.market-layout {
    --bg: #f5f5f5;
    --bg-secondary: #ffffff;
    --bg-tertiary: #ebebeb;
    --text: #1a1a1a;
    --text-muted: #888;
    --border: #ddd;
    --accent: #6d78d5;
    --accent-hover: #5b64b5;
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
    background: var(--bg);
    color: var(--text);
    width: 100%;
}

.market-header {
    padding: 0 24px 0 12px;
    border-bottom: 1px solid var(--border);
    background: var(--bg-secondary);
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
    height: 56px;
}

.market-header .logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    justify-self: start;
    line-height: 0;
}

.market-header .logo img {
    width: 28px;
    height: 28px;
    display: block;
}

.market-header-nav {
    display: flex;
    align-items: stretch;
    justify-content: center;
    height: 100%;
    gap: 28px;
}

.market-header-nav a {
    display: inline-flex;
    align-items: center;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: color 0.15s, border-color 0.15s;
}

.market-header-nav a:hover {
    color: var(--text);
}

.market-header-nav a.is-active {
    color: #111;
    font-weight: 600;
    border-bottom-color: #111;
}

.market-nav-label-short {
    display: none;
}

.market-header-right {
    display: flex;
    align-items: center;
    justify-self: end;
    gap: 10px;
}

.market-header-right a {
    color: var(--text);
    font-size: 13px;
    text-decoration: none;
}

.market-header-login {
    color: var(--text) !important;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    padding: 8px 4px;
}

.market-header-login:hover {
    color: var(--accent) !important;
}

.market-header-add-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 32px;
    padding: 0 12px;
    background: var(--accent);
    color: #fff !important;
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    line-height: 1;
    border-radius: 6px;
    border: none;
    white-space: nowrap;
    cursor: pointer;
    transition: background 0.15s;
}

.market-header-add-btn:hover {
    background: var(--accent-hover);
}

.market-body {
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: row;
}

.market-sidebar {
    width: 200px;
    flex-shrink: 0;
    border-right: 1px solid var(--border);
    background: var(--bg-secondary);
    padding: 16px 12px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.sidebar-btn {
    display: block;
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    font-family: inherit;
    font-size: 13px;
    padding: 7px 10px;
    margin-bottom: 2px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.15s;
    color: var(--text-muted);
    text-decoration: none;
}

.sidebar-btn:hover {
    background: var(--bg-tertiary);
    color: var(--text);
}

.sidebar-btn.active {
    background: var(--bg-tertiary);
    color: var(--text);
    font-weight: 600;
}

.sidebar-nav-btn {
    font-size: 13px;
    font-weight: 500;
    color: var(--text);
}

.sidebar-nav-btn.active { color: var(--accent); }

.sidebar-sep {
    height: 32px;
    flex-shrink: 0;
}

.market-content {
    flex: 1;
    overflow-y: auto;
    padding: 24px 32px;
}

@media (max-width: 768px) {
    .market-header {
        display: flex;
        padding: 0 12px 0 10px;
        height: 52px;
        gap: 8px;
    }

    .market-header .logo {
        flex-shrink: 0;
    }

    .market-header-nav {
        flex: 1;
        min-width: 0;
        justify-content: center;
        gap: 16px;
    }

    .market-header-right {
        flex-shrink: 0;
        margin-left: 0;
        justify-self: auto;
    }

    .market-header-add-btn {
        height: 36px;
        padding: 0 12px;
        font-size: 13px;
    }

    .market-nav-label-full {
        display: none;
    }

    .market-nav-label-short {
        display: inline;
    }

    .market-content {
        padding: 16px 12px;
    }
}
