:root {
    --shop-ink: #0f172a;
    --shop-rail: #111c2f;
    --shop-rail-soft: #1c2a40;
    --shop-amber: #f5b51b;
    --shop-paper: #f5f7fa;
    --shop-line: #dfe5ec;
    --shop-muted: #64748b;
}

* { box-sizing: border-box; }

body.shop-app,
body.shop-tech-app {
    margin: 0;
    background: var(--shop-paper);
    color: var(--shop-ink);
    font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

.shop-app-shell { min-height: 100vh; }
.shop-rail {
    background: var(--shop-rail);
    bottom: 0;
    color: #fff;
    display: flex;
    flex-direction: column;
    left: 0;
    padding: 18px 12px;
    position: fixed;
    top: 0;
    width: 232px;
    z-index: 40;
}

.shop-brand {
    align-items: center;
    color: inherit;
    display: flex;
    gap: 10px;
    padding: 4px 8px 17px;
    text-decoration: none;
}
.shop-brand:hover { color: inherit; }
.shop-brand-mark {
    align-items: center;
    background: var(--shop-amber);
    border-radius: 10px;
    display: flex;
    height: 40px;
    justify-content: center;
    overflow: hidden;
    width: 40px;
}
.shop-brand-mark img { height: 31px; max-width: 34px; object-fit: contain; }
.shop-brand strong { display: block; font-size: 16px; letter-spacing: .02em; }
.shop-brand small {
    color: #a8b3c3;
    display: block;
    font-size: 10px;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.shop-nav {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 3px;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.shop-nav::-webkit-scrollbar { display: none; height: 0; width: 0; }
.shop-nav-label {
    color: #74839a;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .14em;
    margin: 18px 10px 5px;
    text-transform: uppercase;
}
.shop-nav a {
    align-items: center;
    border-left: 2px solid transparent;
    border-radius: 7px;
    color: #aeb9c8;
    display: flex;
    font-size: 13px;
    font-weight: 650;
    gap: 10px;
    padding: 9px 11px;
    text-decoration: none;
}
.shop-nav a span { color: #78889e; font-size: 17px; width: 18px; }
.shop-nav a:hover { background: var(--shop-rail-soft); color: #fff; }
.shop-nav a.active {
    background: var(--shop-rail-soft);
    border-left-color: var(--shop-amber);
    color: #fff;
}
.shop-nav a.active span { color: var(--shop-amber); }

.shop-rail-footer { border-top: 1px solid #2b394e; flex: 0 0 auto; padding: 14px 8px 0; }
.shop-user { align-items: center; display: flex; gap: 9px; margin-bottom: 10px; min-width: 0; }
.shop-user > span:last-child { min-width: 0; }
.shop-user strong, .shop-user small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shop-user strong { font-size: 11px; }
.shop-user small { color: #8997aa; font-size: 9px; }
.shop-avatar {
    align-items: center;
    background: var(--shop-amber);
    border-radius: 50%;
    color: var(--shop-ink);
    display: flex;
    flex: 0 0 30px;
    font-size: 12px;
    font-weight: 900;
    height: 30px;
    justify-content: center;
}
.shop-rail-footer button,
.shop-rail-footer > a {
    background: transparent;
    border: 0;
    color: #8997aa;
    display: block;
    font-size: 10px;
    padding: 3px 0;
    text-decoration: none;
}
.shop-rail-footer button:hover, .shop-rail-footer > a:hover { color: #fff; }

.shop-workspace { margin-left: 232px; min-width: 0; }
.shop-content { min-height: 100vh; }
.shop-mobile-bar, .shop-mobile-nav { display: none; }

.tech-shell-header {
    align-items: center;
    background: var(--shop-rail);
    color: #fff;
    display: flex;
    justify-content: space-between;
    min-height: 62px;
    padding: 7px max(16px, calc((100% - 700px) / 2));
    position: sticky;
    top: 0;
    z-index: 30;
}
.tech-shell-header .shop-brand { padding: 0; }
.tech-shell-header .shop-brand-mark { height: 36px; width: 36px; }
.tech-shell-header > a:last-child { color: #aeb9c8; font-size: 12px; text-decoration: none; }
.tech-bottom-nav { display: none; }

@media (max-width: 860px) {
    .shop-rail { display: none; }
    .shop-workspace { margin-left: 0; }
    .shop-mobile-bar {
        align-items: center;
        background: var(--shop-rail);
        color: #fff;
        display: flex;
        justify-content: space-between;
        min-height: 60px;
        padding: 7px 13px;
    }
    .shop-mobile-bar .shop-brand { padding: 0; }
    .shop-mobile-bar .shop-brand-mark { height: 36px; width: 36px; }
    .shop-mobile-bar > a:last-child { color: #aeb9c8; font-size: 12px; }
    .shop-mobile-nav {
        background: #fff;
        border-bottom: 1px solid var(--shop-line);
        display: flex;
        gap: 4px;
        overflow-x: auto;
        padding: 7px 10px;
    }
    .shop-mobile-nav a {
        color: #475569;
        flex: 0 0 auto;
        font-size: 11px;
        font-weight: 750;
        padding: 6px 9px;
        text-decoration: none;
    }
}

@media (max-width: 700px) {
    body.shop-tech-app:not(.shop-tech-login) main { padding-bottom: 66px; }
    .tech-bottom-nav {
        background: #fff;
        border-top: 1px solid var(--shop-line);
        bottom: 0;
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        left: 0;
        position: fixed;
        right: 0;
        z-index: 40;
    }
    .tech-bottom-nav a {
        align-items: center;
        color: #7b8796;
        display: flex;
        flex-direction: column;
        font-size: 9px;
        font-weight: 700;
        gap: 1px;
        padding: 8px 4px 7px;
        text-decoration: none;
    }
    .tech-bottom-nav a:first-child { color: #b77900; }
    .tech-bottom-nav span { font-size: 18px; line-height: 20px; }
}
