.shop-shell {
    width: min(1200px, calc(100vw - 32px));
    margin: 0 auto;
    padding: 16px 0 48px;
}

.shop-page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

.shop-page-title {
    margin: 0;
    font-size: clamp(1.4rem, 2vw, 1.9rem);
    font-weight: 800;
    letter-spacing: -0.02em;
}

.shop-page-subtitle {
    margin: 6px 0 0;
    color: var(--text-sub);
    font-size: 0.9rem;
}

.shop-alert {
    margin-bottom: 14px;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid transparent;
    font-size: 0.88rem;
}

.shop-alert-error {
    border-color: rgba(239, 68, 68, 0.45);
    background: rgba(127, 29, 29, 0.26);
    color: #fecaca;
}

.shop-card {
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 16px;
}

.shop-card + .shop-card {
    margin-top: 14px;
}

.shop-card-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.shop-card-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
}

.shop-muted {
    margin: 0;
    color: var(--text-sub);
    font-size: 0.82rem;
    line-height: 1.45;
}

.shop-tabs,
.shop-subtabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.shop-tabs {
    margin-bottom: 14px;
}

.shop-tab,
.shop-subtab {
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-main);
    border-radius: 12px;
    padding: 8px 12px;
    font-size: 0.84rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: transform 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}

.shop-tab:hover,
.shop-subtab:hover {
    transform: translateY(-1px);
    border-color: color-mix(in srgb, var(--accent) 40%, var(--border));
}

.shop-tab.active,
.shop-subtab.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #ffffff;
}

.shop-panel {
    display: block;
}

.shop-panel.hidden {
    display: none;
}

.shop-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    border-radius: 999px;
    border: 1px solid var(--border);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 9px;
}

.shop-badge.pending {
    color: #f59e0b;
    border-color: rgba(245, 158, 11, 0.45);
    background: rgba(245, 158, 11, 0.15);
}

.shop-badge.active {
    color: #22c55e;
    border-color: rgba(34, 197, 94, 0.45);
    background: rgba(34, 197, 94, 0.15);
}

.shop-badge.rejected,
.shop-badge.hidden {
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.45);
    background: rgba(239, 68, 68, 0.15);
}

.shop-form-grid {
    display: grid;
    gap: 10px;
}

.shop-form-grid.two-col {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.shop-input,
.shop-textarea,
.shop-select {
    width: 100%;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-main);
    padding: 9px 10px;
    font-size: 0.88rem;
}

.shop-input::placeholder,
.shop-textarea::placeholder {
    color: color-mix(in srgb, var(--text-sub) 90%, transparent);
}

.shop-textarea {
    min-height: 84px;
    resize: vertical;
}

.shop-row-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 12px;
}

.shop-table-wrap {
    overflow-x: auto;
}

.shop-table {
    width: 100%;
    min-width: 840px;
    border-collapse: collapse;
    font-size: 0.83rem;
}

.shop-table th,
.shop-table td {
    text-align: left;
    padding: 8px;
    border-bottom: 1px solid var(--border);
    vertical-align: top;
}

.shop-table th {
    color: var(--text-sub);
    font-size: 0.76rem;
    font-weight: 700;
}

.shop-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.03);
}

.shop-empty {
    text-align: center;
    color: var(--text-sub);
    padding: 26px 10px;
}

@media (max-width: 900px) {
    .shop-shell {
        width: min(1200px, calc(100vw - 20px));
    }

    .shop-page-header {
        flex-direction: column;
    }

    .shop-form-grid.two-col {
        grid-template-columns: 1fr;
    }
}
