:root {
    --orb-bg: #f6f9fc;
    --orb-surface: #ffffff;
    --orb-soft: #eef7ff;
    --orb-line: #d9e7f3;
    --orb-text: #102033;
    --orb-muted: #5f7084;
    --orb-primary: #0ea5e9;
    --orb-primary-dark: #0369a1;
    --orb-green: #138a63;
    --orb-amber: #a16207;
    --orb-red: #dc2626;
    --orb-radius: 14px;
}

body.orb-body {
    margin: 0;
    background: var(--orb-bg);
    color: var(--orb-text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    overflow-x: hidden;
}

.orb-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.orb-container {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.orb-main {
    flex: 1 0 auto;
    padding: 26px 0 56px;
}

.orb-nav {
    position: sticky;
    top: 0;
    z-index: 20;
    border-bottom: 1px solid var(--orb-line);
    background: rgba(255, 255, 255, .94);
    backdrop-filter: blur(10px);
}

.orb-nav-inner {
    min-height: 66px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.orb-brand,
.orb-link,
.orb-button,
.orb-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    font-weight: 750;
}

.orb-brand {
    min-width: 0;
    color: var(--orb-text);
}

.orb-brand img {
    width: 38px;
    height: 38px;
    object-fit: contain;
    border-radius: 10px;
    background: var(--orb-soft);
}

.orb-brand span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.orb-links {
    display: flex;
    align-items: center;
    gap: 10px;
}

.orb-link,
.orb-ghost,
.orb-button {
    min-height: 40px;
    border-radius: 999px;
    border: 1px solid var(--orb-line);
    padding: 8px 14px;
}

.orb-link,
.orb-ghost {
    color: var(--orb-muted);
    background: var(--orb-surface);
}

.orb-link:hover,
.orb-link.active,
.orb-ghost:hover {
    color: var(--orb-primary-dark);
    border-color: var(--orb-primary);
}

.orb-button {
    color: #fff;
    border-color: var(--orb-primary);
    background: var(--orb-primary);
}

.orb-button:hover {
    color: #fff;
    background: var(--orb-primary-dark);
}

.orb-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 18px;
    align-items: stretch;
    margin-bottom: 18px;
}

.orb-card,
.orb-panel,
.orb-list-row,
.orb-alert {
    border: 1px solid var(--orb-line);
    border-radius: var(--orb-radius);
    background: var(--orb-surface);
    box-shadow: 0 12px 32px rgba(15, 56, 92, .07);
}

.orb-card,
.orb-panel {
    padding: 22px;
}

.orb-kicker {
    color: var(--orb-primary-dark);
    font-size: 12px;
    font-weight: 850;
    text-transform: uppercase;
}

.orb-title {
    margin: 10px 0;
    font-size: clamp(28px, 4.5vw, 46px);
    line-height: 1.08;
    letter-spacing: 0;
}

.orb-muted {
    color: var(--orb-muted);
}

.orb-alert {
    padding: 18px;
    overflow-wrap: anywhere;
}

.orb-toolbar {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) auto;
    gap: 12px;
    align-items: center;
    margin-bottom: 14px;
}

.orb-search input,
.orb-input,
.orb-form input,
.orb-form select,
.orb-form textarea {
    width: 100%;
    min-height: 44px;
    box-sizing: border-box;
    border: 1px solid var(--orb-line);
    border-radius: 12px;
    padding: 0 12px;
    color: var(--orb-text);
    background: #fff;
}

.orb-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.orb-tab {
    border: 1px solid var(--orb-line);
    border-radius: 999px;
    padding: 9px 13px;
    color: var(--orb-muted);
    background: #fff;
    cursor: pointer;
}

.orb-tab.is-active {
    color: #fff;
    border-color: var(--orb-primary);
    background: var(--orb-primary);
}

.orb-list {
    display: grid;
    gap: 10px;
}

.orb-list-row {
    display: grid;
    grid-template-columns: 82px minmax(0, 1.25fr) minmax(150px, .6fr) 100px 128px 118px;
    gap: 14px;
    align-items: center;
    padding: 12px;
}

.orb-list-row img {
    width: 82px;
    height: 62px;
    object-fit: cover;
    border-radius: 10px;
    background: var(--orb-soft);
}

.orb-item-title {
    margin: 0 0 6px;
    font-size: 16px;
    font-weight: 850;
    overflow-wrap: anywhere;
}

.orb-item-desc {
    display: -webkit-box;
    margin: 0;
    color: var(--orb-muted);
    font-size: 13px;
    line-height: 1.45;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.orb-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.orb-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 4px 8px;
    color: var(--orb-muted);
    background: var(--orb-soft);
    font-size: 12px;
    font-weight: 750;
}

.orb-badge-green {
    color: var(--orb-green);
}

.orb-badge-amber {
    color: var(--orb-amber);
}

.orb-badge-red {
    color: var(--orb-red);
}

.orb-price {
    color: var(--orb-primary-dark);
    font-size: 21px;
    font-weight: 900;
    white-space: nowrap;
}

.orb-old-price {
    display: block;
    color: var(--orb-muted);
    font-size: 12px;
}

.orb-buy-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 18px;
    align-items: start;
}

.orb-cover {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: var(--orb-radius);
    background: var(--orb-soft);
}

.orb-description {
    line-height: 1.78;
    overflow-wrap: anywhere;
}

.orb-sticky {
    position: sticky;
    top: 88px;
}

.orb-form {
    display: grid;
    gap: 13px;
}

.orb-form label,
.orb-label {
    display: block;
    margin-bottom: 6px;
    color: var(--orb-text);
    font-weight: 800;
}

.orb-payways {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.orb-payways label {
    min-height: 42px;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--orb-line);
    border-radius: 12px;
    padding: 8px 10px;
    background: var(--orb-soft);
}

.orb-summary {
    display: grid;
    gap: 0;
}

.orb-summary-row {
    display: grid;
    grid-template-columns: 170px minmax(0, 1fr);
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid var(--orb-line);
    overflow-wrap: anywhere;
}

.orb-summary-row label {
    color: var(--orb-muted);
}

.orb-qr {
    width: min(280px, 100%);
    margin: 18px auto;
    padding: 18px;
    border: 1px solid var(--orb-line);
    border-radius: var(--orb-radius);
    background: #fff;
}

.orb-qr img {
    width: 100%;
    height: auto;
}

.orb-kami {
    width: 100%;
    min-height: 170px;
    border: 1px solid var(--orb-line);
    border-radius: 12px;
    padding: 12px;
    box-sizing: border-box;
    overflow-wrap: anywhere;
}

.orb-empty {
    padding: 30px;
    border: 1px dashed var(--orb-line);
    border-radius: var(--orb-radius);
    color: var(--orb-muted);
    text-align: center;
    background: var(--orb-surface);
}

.orb-footer {
    flex-shrink: 0;
    padding: 26px 0;
    border-top: 1px solid var(--orb-line);
    color: var(--orb-muted);
    background: #fff;
    text-align: center;
}

.orb-footer a {
    color: var(--orb-primary-dark);
}

.orb-body :focus-visible {
    outline: 3px solid rgba(14, 165, 233, .28);
    outline-offset: 2px;
}

@media (max-width: 1040px) {
    .orb-hero,
    .orb-buy-layout {
        grid-template-columns: 1fr;
    }

    .orb-sticky {
        position: static;
    }

    .orb-list-row {
        grid-template-columns: 82px minmax(0, 1fr) 120px;
    }

    .orb-list-row .orb-stock,
    .orb-list-row .orb-action {
        grid-column: 2 / -1;
    }
}

@media (max-width: 640px) {
    .orb-container {
        width: min(100% - 22px, 1180px);
    }

    .orb-nav-inner,
    .orb-links,
    .orb-toolbar {
        align-items: stretch;
        grid-template-columns: 1fr;
        flex-direction: column;
    }

    .orb-link,
    .orb-button,
    .orb-ghost {
        width: 100%;
        box-sizing: border-box;
    }

    .orb-list-row,
    .orb-summary-row,
    .orb-payways {
        grid-template-columns: 1fr;
    }

    .orb-list-row img {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
    }

    .orb-price {
        white-space: normal;
    }
}

@media (prefers-reduced-motion: reduce) {
    .orb-body *,
    .orb-body *::before,
    .orb-body *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}
