:root {
    --bg: #f4f5f7;
    --surface: rgba(255, 255, 255, 0.9);
    --surface-strong: #ffffff;
    --surface-soft: #f8f9fb;
    --text: #10233f;
    --muted: #66778f;
    --line: rgba(150, 168, 192, 0.24);
    --accent: #335c9b;
    --accent-dark: #27497d;
    --accent-soft: rgba(51, 92, 155, 0.08);
    --success: #147a4f;
    --error: #c33e58;
    --shadow: 0 18px 48px rgba(15, 23, 42, 0.08);
    --shadow-soft: 0 10px 24px rgba(15, 23, 42, 0.06);
    --radius-xl: 28px;
    --radius-lg: 22px;
    --radius-md: 16px;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background:
        radial-gradient(circle at top left, rgba(37, 86, 246, 0.09), transparent 28%),
        radial-gradient(circle at top right, rgba(16, 185, 129, 0.07), transparent 20%),
        var(--bg);
    color: var(--text);
}
body.modal-open { overflow: hidden; }

.page-shell {
    display: grid;
    grid-template-columns: 420px minmax(0, 1fr);
    gap: 28px;
    min-height: 100vh;
    padding: 24px;
}

.sidebar, .content {
    min-width: 0;
}

.sidebar-inner {
    display: grid;
    gap: 20px;
    position: sticky;
    top: 24px;
}

.hero-card,
.panel,
.topbar-card,
.pagination-box,
.status-box,
.meta-pill,
.product-card,
.modal-card,
.attribute-card,
.catalog-item,
.filter-group {
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.brand-box,
.panel,
.topbar-card,
.raw-panel,
.product-card,
.modal-card {
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.brand-box,
.panel,
.product-card,
.modal-card,
.status-box,
.topbar-card,
.pagination-box,
.meta-pill,
.attribute-card,
.catalog-item,
.filter-group,
.empty-state,
pre {
    border-radius: var(--radius-lg);
}

.brand-box {
    padding: 24px;
    position: relative;
    overflow: hidden;
}

.hero-glow {
    position: absolute;
    inset: auto -70px -90px auto;
    width: 220px;
    height: 220px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(37, 86, 246, 0.22), rgba(37, 86, 246, 0));
    pointer-events: none;
}

.brand-topbar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    position: relative;
    z-index: 1;
}

.brand-box h1,
.panel-header h2,
.topbar h2 {
    margin: 0;
    line-height: 1.1;
}

.brand-box h1 {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.hero-copy {
    margin: 12px 0 0;
    max-width: 36ch;
    color: var(--muted);
    line-height: 1.6;
}

.eyebrow,
.panel-kicker,
.language-switcher-label,
.attribute-title,
.product-brand {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 11px;
    font-weight: 800;
}

.eyebrow,
.panel-kicker,
.product-brand,
.attribute-title {
    color: var(--accent);
}

.eyebrow,
.panel-kicker { margin-bottom: 8px; }

.language-card {
    min-width: 160px;
    display: grid;
    gap: 8px;
    padding: 14px;
    border: 0px solid rgba(37, 86, 246, 0.12);
    border-radius: 18px;
    background: transparent;
    box-shadow: transparent;
}

.language-card-inline {
    min-width: 168px;
    padding: 0px 2px;
}

.language-switcher-label {
    color: var(--muted);
    margin: 0;
}

.language-switcher-shell {
    position: relative;
}

.language-switcher-shell::after {
    content: '⌄';
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
    pointer-events: none;
    font-size: 14px;
}

.language-switcher {
    appearance: none;
    border: 1px solid rgba(37, 86, 246, 0.14);
    border-radius: 999px;
    padding: 12px 40px 12px 14px;
    background: linear-gradient(180deg, #ffffff 0%, #f6f9ff 100%);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.85);
    font-weight: 700;
    color: var(--text);
}

.panel {
    overflow: hidden;
}

.panel-soft {
    background: rgba(255,255,255,0.88);
}

.panel-header {
    padding: 20px 22px;
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.panel-header-space {
    align-items: flex-start;
}

.panel-body {
    padding: 22px;
}

.control-stack,
.stack-actions {
    display: grid;
    gap: 12px;
}

.panel-actions,
.product-actions,
.inline-form,
.pagination-box,
.results-meta,
.swatch-list,
.size-badge-list {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.inline-form {
    align-items: stretch;
}

.inline-form input {
    flex: 1;
}

.inline-form-search .btn {
    min-width: 120px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 700;
    color: #314760;
}

input[type="text"],
select,
textarea {
    width: 100%;
    border: 1px solid rgba(150, 168, 192, 0.28);
    border-radius: 14px;
    padding: 13px 14px;
    font: inherit;
    color: var(--text);
    background: #fff;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

input[type="text"]:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: rgba(37, 86, 246, 0.38);
    box-shadow: 0 0 0 4px rgba(37, 86, 246, 0.12);
}

.btn {
    border: 0;
    border-radius: 14px;
    padding: 12px 16px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), #4a7bff);
    color: #fff;
    box-shadow: 0 12px 24px rgba(37, 86, 246, 0.2);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--accent-dark), #3566f6);
}

.btn-light {
    background: #eef4ff;
    color: var(--text);
}

.btn-light:hover {
    background: #e5efff;
}

.btn-small {
    padding: 10px 12px;
    font-size: 13px;
}

.btn-full {
    width: 100%;
}

.hint {
    margin-top: 12px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
}

.hint-compact {
    margin-top: 14px;
}


.advanced-color-panel {
    margin-top: 18px;
    display: grid;
    gap: 14px;
}

.advanced-filter-head h3 {
    margin: 0;
    font-size: 1rem;
}

.advanced-filter-grid {
    display: grid;
    gap: 12px;
}

.advanced-filter-card {
    display: grid;
    gap: 10px;
    padding: 14px;
    border: 1px solid rgba(150, 168, 192, 0.18);
    border-radius: 18px;
    background: rgba(248, 250, 253, 0.95);
}

.color-picker-row,
.pantone-row {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
}

.pantone-row {
    grid-template-columns: minmax(0, 1fr) auto;
}

input[type="color"] {
    width: 52px;
    height: 46px;
    border: 1px solid rgba(150, 168, 192, 0.28);
    border-radius: 14px;
    padding: 4px;
    background: #fff;
    cursor: pointer;
}

.filter-chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border: 1px solid rgba(150, 168, 192, 0.2);
    border-radius: 999px;
    background: #fff;
    color: var(--text);
    font: inherit;
    box-shadow: var(--shadow-soft);
}

.filter-chip-text {
    background: rgba(255,255,255,0.92);
}

.chip-swatch {
    width: 16px;
    height: 16px;
    border-radius: 999px;
    border: 1px solid rgba(16,35,63,0.12);
    flex: 0 0 16px;
}

.chip-remove {
    display: inline-grid;
    place-items: center;
    width: 18px;
    height: 18px;
    border-radius: 999px;
    background: rgba(16,35,63,0.06);
    color: #5c6c83;
    cursor: pointer;
    font-weight: 700;
    line-height: 1;
}

.results-bulk-actions {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 16px;
}

.empty-inline {
    color: var(--muted);
    font-size: 13px;
}

.filter-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 40vh;
    overflow: auto;
    padding-right: 4px;
    margin-top: 14px;
}

.filter-group {
    border: 1px solid var(--line);
    background: rgba(248, 251, 255, 0.95);
}

.filter-group-toggle {
    width: 100%;
    border: 0;
    padding: 15px 16px;
    background: transparent;
    font-weight: 700;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    color: var(--text);
}

.filter-group-values {
    display: none;
    padding: 0 14px 14px;
    border-top: 1px solid var(--line);
    max-height: 260px;
    overflow: auto;
}

.filter-option {
    display: grid;
    grid-template-columns: 20px 1fr auto;
    gap: 10px;
    align-items: start;
    padding: 10px 0;
    border-bottom: 1px dashed #e7edf6;
    font-weight: 500;
}

.filter-option:last-child { border-bottom: 0; }
.filter-count { color: var(--muted); font-size: 12px; }

.content {
    padding: 2px 0 0;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 16px;
}

.topbar-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    flex-wrap: wrap;
}

.topbar-card {
    padding: 22px 24px;
}

.pagination-box {
    align-items: center;
    background: rgba(255,255,255,0.78);
    border: 1px solid var(--line);
    padding: 10px 12px;
    box-shadow: var(--shadow-soft);
}

#page-info {
    font-weight: 700;
    color: #2d4562;
}

.status-box {
    padding: 16px 18px;
    background: rgba(237, 244, 255, 0.9);
    border: 1px solid rgba(37, 86, 246, 0.12);
    margin-bottom: 18px;
    font-weight: 700;
}

.status-box.success {
    background: rgba(236, 253, 243, 0.95);
    border-color: rgba(20, 122, 79, 0.18);
    color: var(--success);
}

.status-box.error {
    background: rgba(255, 241, 243, 0.96);
    border-color: rgba(195, 62, 88, 0.16);
    color: var(--error);
}

.status-box.muted {
    background: rgba(248, 250, 252, 0.96);
    border-color: rgba(148, 163, 184, 0.18);
    color: var(--muted);
}

.results-meta {
    margin-bottom: 18px;
}

.meta-pill {
    padding: 10px 14px;
    background: rgba(255,255,255,0.86);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-soft);
    font-size: 13px;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 18px;
}

.product-card {
    overflow: hidden;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.12);
}

.product-image-wrap {
    aspect-ratio: 4 / 3;
    background: #FFF;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--line);
    padding: 16px;
}

.product-image,
.catalog-item-thumb img {
    width: auto;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

.product-body {
    padding: 18px;
}

.product-body h3 {
    margin: 0 0 12px;
    font-size: 18px;
    line-height: 1.35;
    letter-spacing: -0.02em;
}

.product-meta {
    display: grid;
    gap: 6px;
    color: #334155;
    font-size: 14px;
}

.product-actions {
    margin-top: 1rem;
}

.raw-panel {
    margin-top: 24px;
    display: none;
}

.raw-panel-body {
    padding-top: 0;
}

pre {
    padding: 18px;
    background: #0f172a;
    color: #e2e8f0;
    overflow: auto;
    font-size: 12px;
    line-height: 1.65;
}

.empty-state {
    padding: 18px;
    border: 1px dashed rgba(148, 163, 184, 0.35);
    text-align: center;
    color: var(--muted);
    background: rgba(255,255,255,0.66);
}

.empty-state.small {
    padding: 14px;
    font-size: 13px;
}

.catalog-list {
    display: grid;
    gap: 16px;
    margin-top: 18px;
}

.catalog-item {
    position: relative;
    display: grid;
    grid-template-columns: 108px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
    padding: 18px;
    border: 1px solid rgba(150, 168, 192, 0.2);
    background:
        linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(247,250,255,0.92) 100%);
    box-shadow:
        0 14px 34px rgba(15, 23, 42, 0.08),
        inset 0 1px 0 rgba(255,255,255,0.72);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    overflow: hidden;
}

.catalog-item::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 0px;
    background: linear-gradient(180deg, var(--accent) 0%, #66a3ff 100%);
    opacity: 0.95;
}

.catalog-item:hover {
    transform: translateY(-2px);
    box-shadow:
        0 22px 44px rgba(15, 23, 42, 0.12),
        inset 0 1px 0 rgba(255,255,255,0.9);
    border-color: rgba(37, 86, 246, 0.16);
}

.catalog-item-thumb {
    width: 108px;
    height: 108px;
    border-radius: 24px;
    background:#FFF;
    border: 1px solid rgba(150, 168, 192, 0.16);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.8),
        0 10px 24px rgba(15, 23, 42, 0.05);
}

.catalog-item-body {
    min-width: 0;
    display: grid;
    gap: 12px;
    padding-right: 52px;
}

.catalog-brand-logo-block {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    max-width: 120px;
    min-height: 34px;
    padding: 6px 10px;
    border-radius: 999px;
    background: #FFF;
    border: 1px solid rgba(37, 86, 246, 0.08);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.8);
}

.catalog-brand-logo {
    max-height: 18px;
    max-width: 100%;
    width: auto;
    display: block;
    object-fit: contain;
    filter: saturate(1.02) contrast(1.04);
}

.catalog-item-title {
    margin: 0;
    font-size: 1.12rem;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.02em;
    color: var(--text);
}

.catalog-item-meta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    width: fit-content;
    padding: 7px 11px;
    border-radius: 999px;
    background: rgba(16, 35, 63, 0.05);
    color: #49607d;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.catalog-item-description {
    color: #425770;
    font-size: 14px;
    line-height: 1.6;
    max-width: 64ch;
}

.catalog-inline-block {
    display: grid;
    gap: 8px;
    padding: 12px 14px;
    background: rgba(248, 251, 255, 0.88);
    border: 1px solid rgba(150, 168, 192, 0.18);
    border-radius: 16px;
}

.catalog-inline-block strong {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #5b6f89;
}

.catalog-inline-block label {
    margin: 0;
    color: #4a5f79;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.catalog-price-input,
.catalog-note-input,
.catalog-image-select {
    width: 100%;
    border: 1px solid rgba(150, 168, 192, 0.24) !important;
    border-radius: 14px !important;
    background: rgba(255,255,255,0.96) !important;
    color: var(--text);
    font: inherit;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.catalog-price-input {
    min-height: 46px;
    padding: 12px 14px !important;
    font-weight: 600;
}

.catalog-image-select {
    min-height: 46px;
    padding: 12px 14px !important;
    font-weight: 600;
    appearance: auto;
}

.catalog-note-input {
    min-height: 96px;
    padding: 12px 14px !important;
    line-height: 1.5;
    resize: vertical;
}

.catalog-price-input:focus,
.catalog-note-input:focus,
.catalog-image-select:focus {
    outline: none;
    border-color: rgba(37, 86, 246, 0.38) !important;
    box-shadow: 0 0 0 4px rgba(37, 86, 246, 0.12);
    background: #fff !important;
}

.swatch-list {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.swatch-item.compact {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    padding: 0;
    border: 1px solid rgba(16, 35, 63, 0.1);
    background: #fff;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.9),
        0 4px 10px rgba(15, 23, 42, 0.06);
}

.swatch-circle {
    display: block;
    width: 18px;
    height: 18px;
    border-radius: 999px;
    border: 1px solid rgba(16, 35, 63, 0.08);
}

.catalog-remove {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 999px;
    background: rgba(255,255,255,0.78);
    color: #7d8da4;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    box-shadow:
        0 8px 18px rgba(15, 23, 42, 0.08),
        inset 0 1px 0 rgba(255,255,255,0.8);
    transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.catalog-remove:hover {
    transform: scale(1.06);
    background: rgba(255, 241, 243, 0.98);
    color: var(--error);
    box-shadow:
        0 12px 22px rgba(195, 62, 88, 0.12),
        inset 0 1px 0 rgba(255,255,255,0.92);
}

.catalog-item-subtitle {
    color: var(--muted);
    font-size: 13px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.modal.hidden {
    display: none;
}

.modal {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: grid;
    place-items: center;
    padding: 24px;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.48);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.modal-card {
    position: relative;
    z-index: 1;
    width: min(1120px, calc(100vw - 32px));
    max-height: calc(100vh - 48px);
    overflow: auto;
    padding: 28px;
}

.modal-close {
    position: sticky;
    top: 0;
    margin-left: auto;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    border: 0;
    background: rgba(15, 23, 42, 0.06);
    color: var(--text);
    font-size: 28px;
    cursor: pointer;
}

.detail-content {
    display: grid;
    gap: 22px;
}

.detail-hero-card {
    border: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(247,250,255,0.96) 100%);
    border-radius: 24px;
    padding: 24px;
    box-shadow: var(--shadow-soft);
}

.detail-hero-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 20px;
}

.detail-heading-block h2 {
    margin: 0;
    font-size: clamp(1.8rem, 1.2rem + 1.2vw, 2.35rem);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.detail-subline {
    margin-top: 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.detail-subline-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(16, 35, 63, 0.05);
    color: #48607a;
    font-size: 13px;
    font-weight: 700;
}

.detail-primary-action {
    flex-shrink: 0;
}

.detail-main-grid {
    display: grid;
    grid-template-columns: minmax(320px, 460px) minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

.detail-main-media,
.detail-main-content {
    min-width: 0;
}

.detail-visuals {
    display: grid;
    gap: 12px;
}

.detail-stage {
    aspect-ratio: 1 / 1;
    border-radius: 24px;
    border: 1px solid var(--line);
    background: linear-gradient(180deg, #ffffff 0%, #f3f7fc 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    overflow: hidden;
}

.detail-stage-image {
    width: auto;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

.detail-gallery-strip {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(68px, 1fr));
    gap: 10px;
}

.detail-gallery-thumb {
    border: 1px solid rgba(150, 168, 192, 0.24);
    background: #fff;
    border-radius: 16px;
    aspect-ratio: 1 / 1;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.detail-gallery-thumb:hover,
.detail-gallery-thumb.is-active {
    border-color: rgba(37, 86, 246, 0.34);
    box-shadow: 0 10px 20px rgba(37, 86, 246, 0.10);
    transform: translateY(-1px);
}

.detail-gallery-thumb img {
    width: auto;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.detail-main-content {
    display: grid;
    gap: 14px;
}

.detail-card-block {
    border: 1px solid rgba(150, 168, 192, 0.18);
    background: rgba(255,255,255,0.84);
    border-radius: 20px;
    padding: 18px;
}

.detail-card-heading {
    margin-bottom: 10px;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #60738d;
}

.detail-description {
    color: #334a62;
    line-height: 1.7;
}

.detail-description-card {
    font-size: 14px;
}

.detail-section {
    margin-bottom: 0;
}

.detail-section-tight h3,
.detail-section-muted h3 {
    margin: 0 0 12px;
    font-size: 15px;
}

.detail-facts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}

.detail-fact-card {
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 14px 16px;
    background: rgba(255,255,255,0.86);
}

.detail-fact-label {
    margin-bottom: 6px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #6a7c94;
}

.detail-fact-value {
    color: var(--text);
    line-height: 1.5;
    font-weight: 600;
}

.attribute-grid.attribute-grid-compact {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
}

.attribute-card {
    border: 1px solid var(--line);
    padding: 14px;
    background: rgba(251, 253, 255, 0.95);
}

.attribute-title {
    margin-bottom: 6px;
}

.attribute-value {
    color: #334a62;
    line-height: 1.5;
}

@media (max-width: 960px) {
    .detail-main-grid {
        grid-template-columns: 1fr;
    }

    .detail-stage {
        aspect-ratio: 4 / 3;
    }
}

@media (max-width: 820px) {
    .detail-hero-card {
        padding: 18px;
    }

    .detail-primary-action {
        width: 100%;
    }
}

@media (max-width: 1180px) {
    .page-shell {
        grid-template-columns: 1fr;
    }

    .sidebar-inner {
        position: static;
    }
}

@media (max-width: 980px) {
    .topbar {
        align-items: stretch;
        flex-direction: column;
    }

    .topbar-actions {
        justify-content: space-between;
    }

    .catalog-item {
        grid-template-columns: 88px minmax(0, 1fr);
    }

    .catalog-item-thumb {
        width: 88px;
        height: 88px;
        border-radius: 20px;
    }
}

@media (max-width: 820px) {
    .page-shell {
        padding: 16px;
        gap: 18px;
    }

    .brand-topbar,
    .topbar,
    .detail-hero-top,
    .product-actions,
    .panel-header,
    .panel-header-space,
    .inline-form {
        flex-direction: column;
        align-items: stretch;
    }

    .pagination-box {
        justify-content: space-between;
    }

    .catalog-item {
        grid-template-columns: 1fr;
        gap: 14px;
        padding: 16px;
    }

    .catalog-item-thumb {
        width: 100%;
        height: 180px;
        border-radius: 20px;
    }

    .catalog-item-body {
        padding-right: 0;
    }

    .catalog-remove {
        top: 12px;
        right: 12px;
    }

    .catalog-inline-block {
        padding: 12px;
    }
}

@media (max-width: 720px) {
    .topbar-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .pagination-box,
    .language-card-inline {
        width: 100%;
    }

    .catalog-item-description {
        font-size: 13px;
    }

    .catalog-item-meta {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 720px) {
    .color-picker-row,
    .pantone-row {
        grid-template-columns: 1fr;
    }

    .results-bulk-actions .btn {
        width: 100%;
    }
}


.pantone-row-select {
    align-items: stretch;
}

.pantone-preview-box {
    margin-top: 12px;
    min-height: 52px;
    display: flex;
    align-items: center;
    padding: 10px 12px;
    border: 1px solid rgba(150, 168, 192, 0.18);
    border-radius: 16px;
    background: rgba(248, 251, 255, 0.8);
}

.pantone-preview-empty {
    color: var(--muted);
    font-size: 13px;
}

.pantone-preview-chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    padding: 8px 10px;
    border-radius: 999px;
    background: rgba(255,255,255,0.92);
    border: 1px solid rgba(150, 168, 192, 0.18);
}

.pantone-preview-swatch {
    width: 18px;
    height: 18px;
    border-radius: 999px;
    border: 1px solid rgba(16, 35, 63, 0.08);
    flex-shrink: 0;
}

.pantone-preview-name {
    font-weight: 700;
    color: var(--text);
}

.pantone-preview-hex {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.03em;
}

@media (max-width: 820px) {
    .pantone-preview-chip {
        width: 100%;
        border-radius: 16px;
    }
}


body {
    background:
        radial-gradient(circle at top left, rgba(51, 92, 155, 0.06), transparent 28%),
        radial-gradient(circle at top right, rgba(15, 23, 42, 0.03), transparent 22%),
        var(--bg);
}

.hero-glow,
.raw-panel { display: none; }

.brand-topbar-stacked {
    align-items: center;
}

.brand-lockup {
    display: flex;
    align-items: center;
    gap: 18px;
}

.brand-logo-slot {
    width: 72px;
    height: 72px;
    border-radius: 20px;
    border: 1px solid var(--line);
    background: linear-gradient(180deg, #ffffff 0%, #f1f4f8 100%);
    display: grid;
    place-items: center;
    overflow: hidden;
    flex-shrink: 0;
}

.brand-logo-slot.has-image .brand-logo-fallback { display: none; }
.brand-logo-slot.is-empty .brand-logo-image { display: none; }
.brand-logo-fallback {
    font-weight: 800;
    color: var(--accent);
    letter-spacing: 0.06em;
}
.brand-logo-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.guide-panel .panel-body { display: grid; gap: 18px; }
.workflow-mini-list { display: grid; gap: 10px; }
.workflow-mini-item,
.workflow-step {
    width: 100%;
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 18px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    text-align: left;
    cursor: pointer;
    transition: 0.18s ease;
}
.workflow-mini-item:hover,
.workflow-step:hover {
    border-color: rgba(51, 92, 155, 0.26);
    transform: translateY(-1px);
}
.workflow-mini-item strong,
.workflow-step strong { display: block; font-size: 15px; }
.workflow-mini-item small,
.workflow-step small { display: block; margin-top: 4px; color: var(--muted); line-height: 1.45; }
.workflow-mini-number,
.workflow-step-number {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent);
    display: grid;
    place-items: center;
    font-weight: 800;
    flex-shrink: 0;
}
.workflow-mini-item.is-active,
.workflow-step.is-active {
    border-color: rgba(51, 92, 155, 0.32);
    background: linear-gradient(180deg, #ffffff 0%, #f5f8fc 100%);
    box-shadow: var(--shadow-soft);
}
.workflow-step.is-active .workflow-step-number,
.workflow-mini-item.is-active .workflow-mini-number {
    background: var(--accent);
    color: #fff;
}
.workflow-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}
.summary-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
    font-weight: 700;
}
.summary-value {
    margin-top: 6px;
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}
.workspace-summary-card {
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 18px;
    background: #fff;
    display: grid;
    gap: 16px;
}
.workspace-summary-card.compact { gap: 14px; }
.summary-actions {
    display: grid;
    gap: 10px;
}
.workspace-panel { margin-bottom: 0; }
.step-panel { display: none; }
.step-panel.is-active { display: block; }
.step-explainer {
    padding: 14px 16px;
    border-radius: 16px;
    background: #f7f8fa;
    border: 1px solid rgba(150,168,192,0.18);
    color: #40546c;
    margin-bottom: 18px;
    line-height: 1.55;
}
.panel-actions-tight { align-items: center; }
.results-stage-body { padding-top: 18px; }
.results-bulk-actions { margin-bottom: 16px; }
.results-bulk-actions .btn { min-width: 280px; }
.workspace-grid.two-columns {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 18px;
}
.export-checklist {
    display: grid;
    gap: 12px;
    margin-bottom: 18px;
}
.export-check-item {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    color: #41566f;
}
.check-dot {
    width: 10px;
    height: 10px;
    margin-top: 6px;
    border-radius: 999px;
    background: var(--accent);
    flex-shrink: 0;
}
.topbar-card {
    background: rgba(255,255,255,0.94);
    margin-bottom: 18px;
}
.pagination-box {
    background: #fff;
}
.catalog-list { gap: 14px; }
.catalog-item {
    border-radius: 20px;
    background: rgba(255,255,255,0.95);
    border: 1px solid rgba(150,168,192,0.18);
}
.catalog-item-body {
    min-width: 0;
    display: grid;
    gap: 10px;
}
.catalog-inline-block {
    display: grid;
    gap: 8px;
    padding: 12px 14px;
    background: #f8fafc;
    border: 1px solid rgba(150,168,192,0.18);
    border-radius: 14px;
}
.catalog-inline-block label { margin: 0; }
.catalog-price-input,
.catalog-note-input,
.catalog-image-select {
    width: 100%;
    border: 1px solid rgba(150, 168, 192, 0.28) !important;
    border-radius: 12px !important;
    padding: 11px 12px !important;
    font: inherit;
    background: #fff !important;
}
.catalog-remove {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    border: 0;
    background: #f3f4f6;
    color: #607184;
    cursor: pointer;
}
.workflow-step-copy { min-width: 0; }
@media (max-width: 1180px) {
    .workflow-steps,
    .workspace-grid.two-columns { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
    .brand-lockup { align-items: flex-start; }
    .workflow-mini-item,
    .workflow-step { padding: 12px 14px; }
    .workflow-steps { gap: 10px; }
    .results-bulk-actions .btn { width: 100%; min-width: 0; }
}
@media (max-width: 720px) {
    .workflow-steps { grid-template-columns: 1fr; }
}
