:root {
    color-scheme: dark;
    --portal-bg: #080c13;
    --portal-sidebar: #0d131d;
    --portal-surface: #111925;
    --portal-surface-soft: #172231;
    --portal-line: #293548;
    --portal-text: #f7f8fa;
    --portal-muted: #a6b1c1;
    --portal-gold: #d4a84c;
    --portal-gold-soft: #f3d894;
    --portal-green: #71d3a4;
    --portal-red: #ff8e8e;
    --portal-yellow: #f2cc73;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: var(--portal-bg);
}

body {
    min-height: 100vh;
    margin: 0;
    background:
        radial-gradient(
            circle at 82% 0%,
            rgba(212, 168, 76, .11),
            transparent 30%
        ),
        var(--portal-bg);
    color: var(--portal-text);
    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
}

a {
    color: inherit;
}

button,
input,
select,
textarea {
    font: inherit;
}

.portal-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
}

.portal-sidebar {
    position: sticky;
    top: 0;
    min-height: 100vh;
    align-self: start;
    display: flex;
    flex-direction: column;
    padding: 28px 22px;
    border-right: 1px solid var(--portal-line);
    background: rgba(13, 19, 29, .96);
}

.portal-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--portal-text);
    text-decoration: none;
}

.portal-brand-mark {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border: 1px solid var(--portal-gold);
    background: var(--portal-gold);
    color: #11151d;
    font-weight: 950;
    font-size: 20px;
}

.portal-brand strong,
.portal-brand small {
    display: block;
}

.portal-brand strong {
    font-size: 17px;
    letter-spacing: -.02em;
}

.portal-brand small {
    margin-top: 3px;
    color: var(--portal-muted);
    font-size: 12px;
}

.portal-nav {
    display: grid;
    gap: 7px;
    margin-top: 42px;
}

.portal-nav a {
    display: flex;
    align-items: center;
    min-height: 46px;
    padding: 0 14px;
    border: 1px solid transparent;
    color: var(--portal-muted);
    text-decoration: none;
    font-weight: 750;
}

.portal-nav a:hover,
.portal-nav a.active {
    border-color: var(--portal-line);
    background: var(--portal-surface-soft);
    color: var(--portal-text);
}

.portal-nav a.active {
    border-left-color: var(--portal-gold);
}

.portal-environment {
    margin-top: auto;
    padding-top: 24px;
    border-top: 1px solid var(--portal-line);
}

.portal-environment span,
.portal-environment strong,
.portal-environment small {
    display: block;
}

.portal-environment span {
    color: var(--portal-muted);
    font-size: 11px;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.portal-environment strong {
    margin-top: 8px;
    color: var(--portal-gold-soft);
}

.portal-environment small {
    margin-top: 5px;
    color: var(--portal-muted);
    overflow-wrap: anywhere;
}

.portal-workspace {
    min-width: 0;
}

.portal-topbar {
    min-height: 94px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 20px 34px;
    border-bottom: 1px solid var(--portal-line);
    background: rgba(8, 12, 19, .86);
    backdrop-filter: blur(16px);
}

.portal-topbar h1 {
    margin: 3px 0 0;
    font-size: 25px;
    letter-spacing: -.03em;
}

.portal-eyebrow,
.portal-card-label {
    color: var(--portal-gold-soft);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.portal-account {
    display: flex;
    align-items: center;
    gap: 18px;
}

.portal-account > div strong,
.portal-account > div span {
    display: block;
    text-align: right;
}

.portal-account > div span {
    margin-top: 3px;
    color: var(--portal-muted);
    font-size: 13px;
}

.portal-content {
    width: min(1500px, 100%);
    margin: 0 auto;
    padding: 34px;
}

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

.portal-page-header h2 {
    margin: 8px 0 10px;
    font-size: clamp(30px, 4vw, 50px);
    line-height: 1;
    letter-spacing: -.05em;
}

.portal-page-header p {
    max-width: 820px;
    margin: 0;
    color: var(--portal-muted);
    font-size: 16px;
    line-height: 1.65;
}

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

.portal-host-map,
.portal-environment-card {
    min-width: 300px;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 8px 16px;
    padding: 18px;
    border: 1px solid var(--portal-line);
    background: var(--portal-surface);
}

.portal-host-map span,
.portal-environment-card span {
    color: var(--portal-gold-soft);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .1em;
}

.portal-host-map strong,
.portal-environment-card strong {
    overflow-wrap: anywhere;
    font-size: 13px;
}

.portal-environment-card {
    display: block;
}

.portal-environment-card span,
.portal-environment-card strong,
.portal-environment-card small {
    display: block;
}

.portal-environment-card strong {
    margin-top: 8px;
    color: var(--portal-gold-soft);
    font-size: 18px;
}

.portal-environment-card small {
    margin-top: 5px;
    color: var(--portal-muted);
}

.portal-button {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 17px;
    border: 1px solid var(--portal-line);
    background: transparent;
    color: var(--portal-text);
    text-decoration: none;
    font-weight: 850;
    cursor: pointer;
}

.portal-button:hover {
    border-color: var(--portal-gold);
}

.portal-button-primary {
    border-color: var(--portal-gold);
    background: var(--portal-gold);
    color: #11151d;
}

.portal-button-secondary,
.portal-button-ghost {
    background: var(--portal-surface-soft);
}

.portal-button-full {
    width: 100%;
}

.portal-store-grid,
.portal-domain-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.portal-store-card,
.portal-domain-card,
.portal-panel {
    border: 1px solid var(--portal-line);
    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, .025),
            transparent 38%
        ),
        var(--portal-surface);
}

.portal-store-card,
.portal-domain-card {
    padding: 24px;
}

.portal-store-card > header,
.portal-domain-card > header,
.portal-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
}

.portal-store-card h3,
.portal-domain-card h3,
.portal-panel h3 {
    margin: 7px 0 0;
    font-size: 22px;
    letter-spacing: -.03em;
    overflow-wrap: anywhere;
}

.portal-store-meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    margin: 24px 0;
    background: var(--portal-line);
}

.portal-store-meta > div {
    padding: 15px;
    background: var(--portal-surface-soft);
}

.portal-store-meta span,
.portal-store-meta strong,
.portal-domain-summary span,
.portal-domain-summary strong,
.portal-domain-method span,
.portal-domain-method strong {
    display: block;
}

.portal-store-meta span,
.portal-domain-summary span,
.portal-domain-method span,
.portal-domain-instructions span {
    color: var(--portal-muted);
    font-size: 12px;
}

.portal-store-meta strong,
.portal-domain-summary strong,
.portal-domain-method strong {
    margin-top: 5px;
    overflow-wrap: anywhere;
}

.portal-domain-summary {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr);
    gap: 9px 14px;
    padding-top: 18px;
    border-top: 1px solid var(--portal-line);
}

.portal-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.portal-panel {
    padding: 24px;
}

.portal-scope-note,
.portal-roadmap-note {
    margin-top: 20px;
}

.portal-panel p,
.portal-scope-note p,
.portal-roadmap-note p {
    margin: 10px 0 0;
    color: var(--portal-muted);
    line-height: 1.65;
}

.portal-panel code,
.portal-domain-card code,
.portal-roadmap-note code {
    color: var(--portal-gold-soft);
    overflow-wrap: anywhere;
}

.portal-status {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0 10px;
    border: 1px solid var(--portal-line);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .04em;
    text-transform: uppercase;
    white-space: nowrap;
}

.portal-status-success {
    border-color: rgba(113, 211, 164, .45);
    color: var(--portal-green);
}

.portal-status-warning {
    border-color: rgba(242, 204, 115, .45);
    color: var(--portal-yellow);
}

.portal-status-danger {
    border-color: rgba(255, 142, 142, .45);
    color: var(--portal-red);
}

.portal-status-neutral {
    color: var(--portal-muted);
}

.portal-alert {
    margin-bottom: 18px;
    padding: 15px 17px;
    border: 1px solid var(--portal-line);
    background: var(--portal-surface-soft);
    line-height: 1.55;
}

.portal-alert-success {
    border-color: rgba(113, 211, 164, .45);
    color: var(--portal-green);
}

.portal-alert-warning {
    border-color: rgba(242, 204, 115, .45);
    color: var(--portal-yellow);
}

.portal-alert-danger {
    border-color: rgba(255, 142, 142, .45);
    color: var(--portal-red);
}

.portal-breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 22px;
    color: var(--portal-muted);
    font-size: 13px;
}

.portal-breadcrumbs a {
    color: var(--portal-gold-soft);
    text-decoration: none;
}

.portal-role-chip {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    padding: 0 14px;
    border: 1px solid var(--portal-line);
    color: var(--portal-muted);
    font-size: 13px;
    font-weight: 800;
}

.portal-domain-method {
    margin: 20px 0;
    padding: 16px;
    border: 1px solid var(--portal-line);
    background: var(--portal-surface-soft);
}

.portal-domain-status-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.portal-domain-status-grid > div {
    min-width: 0;
    padding: 14px;
    border: 1px solid var(--portal-line);
}

.portal-domain-status-grid > div > span:first-child {
    display: block;
    margin-bottom: 9px;
    color: var(--portal-muted);
    font-size: 11px;
    text-transform: uppercase;
}

.portal-domain-instructions {
    display: grid;
    grid-template-columns: 130px minmax(0, 1fr);
    gap: 9px 14px;
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--portal-line);
}

.portal-error-text,
.portal-field-error {
    color: var(--portal-red);
}

.portal-method-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(180px, 1fr));
    gap: 12px;
    margin-top: 18px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.portal-method-card {
    position: relative;
    min-width: 190px;
    cursor: pointer;
}

.portal-method-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.portal-method-card-body {
    height: 100%;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    padding: 18px;
    border: 1px solid var(--portal-line);
    background: var(--portal-surface-soft);
}

.portal-method-card input:checked + .portal-method-card-body {
    border-color: var(--portal-gold);
    box-shadow: inset 0 3px 0 var(--portal-gold);
}

.portal-method-card-body strong {
    font-size: 16px;
}

.portal-method-card-body > span {
    margin-top: 12px;
    color: var(--portal-muted);
    line-height: 1.5;
}

.portal-method-card-body small {
    margin-top: auto;
    padding-top: 18px;
    color: var(--portal-gold-soft);
    font-weight: 800;
}

.portal-method-card-body em {
    margin-top: 8px;
    color: var(--portal-muted);
    font-size: 11px;
    font-style: normal;
    line-height: 1.45;
}

.portal-onboarding-form {
    display: grid;
    gap: 18px;
}

.portal-form-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, .7fr);
    gap: 18px;
    margin-top: 18px;
}

.portal-form-field {
    display: grid;
    gap: 9px;
    margin-top: 18px;
}

.portal-form-field label,
.portal-form label {
    font-weight: 850;
}

.portal-form-field input,
.portal-form input {
    width: 100%;
    min-height: 48px;
    padding: 0 14px;
    border: 1px solid var(--portal-line);
    outline: none;
    background: #0b111a;
    color: var(--portal-text);
}

.portal-form-field input:focus,
.portal-form input:focus {
    border-color: var(--portal-gold);
}

.portal-form-field small {
    color: var(--portal-muted);
    line-height: 1.5;
}

.portal-preview-box {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 18px;
    border: 1px solid var(--portal-line);
    background: var(--portal-surface-soft);
}

.portal-preview-box span,
.portal-preview-box code,
.portal-preview-box small {
    display: block;
}

.portal-preview-box span {
    color: var(--portal-muted);
    font-size: 12px;
}

.portal-preview-box code {
    margin-top: 9px;
    color: var(--portal-gold-soft);
    font-size: 17px;
    font-weight: 900;
    overflow-wrap: anywhere;
}

.portal-preview-box small {
    margin-top: 10px;
    color: var(--portal-muted);
    line-height: 1.45;
}

.portal-safety-box ul {
    margin: 14px 0 0;
    padding-left: 20px;
    color: var(--portal-muted);
    line-height: 1.8;
}

.portal-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.portal-empty-state {
    text-align: center;
    padding: 56px 24px;
}

.portal-login-body {
    display: grid;
    place-items: center;
    padding: 32px;
}

.portal-login-shell {
    width: min(1180px, 100%);
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(380px, .65fr);
    border: 1px solid var(--portal-line);
    background: var(--portal-surface);
}

.portal-login-copy,
.portal-login-card {
    padding: clamp(34px, 6vw, 72px);
}

.portal-login-copy {
    border-right: 1px solid var(--portal-line);
    background:
        radial-gradient(
            circle at 20% 10%,
            rgba(212, 168, 76, .16),
            transparent 36%
        ),
        var(--portal-sidebar);
}

.portal-brand-login {
    margin-bottom: 72px;
}

.portal-login-copy h1 {
    margin: 16px 0 24px;
    font-size: clamp(42px, 6vw, 82px);
    line-height: .98;
    letter-spacing: -.065em;
}

.portal-login-copy > p,
.portal-login-card > p {
    color: var(--portal-muted);
    line-height: 1.7;
}

.portal-live-note {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 8px 14px;
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid var(--portal-line);
}

.portal-live-note strong {
    color: var(--portal-gold-soft);
    font-size: 12px;
}

.portal-live-note span {
    color: var(--portal-muted);
    overflow-wrap: anywhere;
    font-size: 13px;
}

.portal-login-card h2 {
    margin: 9px 0 8px;
    font-size: 34px;
    letter-spacing: -.04em;
}

.portal-form {
    display: grid;
    gap: 10px;
    margin-top: 28px;
}

.portal-form label:not(:first-of-type) {
    margin-top: 8px;
}

.portal-form button {
    margin-top: 12px;
}

.portal-login-security {
    display: block;
    margin-top: 20px;
    color: var(--portal-muted);
    line-height: 1.5;
}

@media (max-width: 1180px) {
    .portal-store-grid,
    .portal-domain-grid {
        grid-template-columns: 1fr;
    }

    .portal-method-grid {
        grid-template-columns: repeat(5, 210px);
    }
}

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

    .portal-sidebar {
        position: static;
        min-height: auto;
        border-right: 0;
        border-bottom: 1px solid var(--portal-line);
    }

    .portal-nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        margin-top: 24px;
    }

    .portal-environment {
        margin-top: 22px;
    }

    .portal-page-header,
    .portal-topbar {
        align-items: stretch;
        flex-direction: column;
    }

    .portal-account {
        justify-content: space-between;
    }

    .portal-account > div strong,
    .portal-account > div span {
        text-align: left;
    }

    .portal-login-shell {
        grid-template-columns: 1fr;
    }

    .portal-login-copy {
        border-right: 0;
        border-bottom: 1px solid var(--portal-line);
    }

    .portal-brand-login {
        margin-bottom: 42px;
    }
}

@media (max-width: 640px) {
    .portal-content,
    .portal-topbar,
    .portal-sidebar {
        padding-left: 18px;
        padding-right: 18px;
    }

    .portal-content {
        padding-top: 24px;
        padding-bottom: 24px;
    }

    .portal-account,
    .portal-page-actions,
    .portal-card-actions,
    .portal-form-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .portal-button {
        width: 100%;
    }

    .portal-host-map,
    .portal-environment-card {
        min-width: 0;
        width: 100%;
    }

    .portal-store-meta,
    .portal-domain-status-grid,
    .portal-form-grid {
        grid-template-columns: 1fr;
    }

    .portal-domain-summary,
    .portal-domain-instructions {
        grid-template-columns: 1fr;
    }

    .portal-login-body {
        padding: 0;
    }

    .portal-login-shell {
        border-left: 0;
        border-right: 0;
    }

    .portal-login-copy,
    .portal-login-card {
        padding: 30px 20px;
    }
}


/* 10.A.21A V4 MERCHANT APP SSO */
.portal-admin-handoff-form {
    display: inline-flex;
    margin: 0;
}

.portal-admin-handoff-form .portal-button {
    appearance: none;
    border: 0;
    cursor: pointer;
    font: inherit;
}

/* 10.A.21B V4 MERCHANT APP PREVIEW ROOT */
.portal-store-switcher {
    display: grid;
    min-width: 260px;
    gap: 4px;
    margin-left: auto;
}

.portal-store-switcher label {
    color: #7a8699;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.portal-store-switcher select {
    min-height: 42px;
    padding: 0 38px 0 13px;
    border: 1px solid #d8e0eb;
    border-radius: 8px;
    background: #fff;
    color: #172033;
    font: inherit;
    font-weight: 700;
}

.portal-store-switcher small {
    color: #7a8699;
    font-size: 11px;
}

.merchant-app-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    padding: 32px;
    border-radius: 14px;
    background:
        linear-gradient(
            135deg,
            #0b2b5c,
            #155eef
        );
    color: #fff;
}

.merchant-app-hero h2 {
    margin: 7px 0 8px;
    color: #fff;
    font-size: clamp(28px, 4vw, 42px);
}

.merchant-app-hero p,
.merchant-app-hero .portal-eyebrow {
    color: rgba(255, 255, 255, .82);
}

.merchant-app-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.merchant-app-kpis {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-top: 18px;
}

.merchant-app-kpis article,
.merchant-app-module {
    padding: 20px;
    border: 1px solid #dde5ef;
    border-radius: 12px;
    background: #fff;
}

.merchant-app-kpis article {
    display: flex;
    min-height: 110px;
    flex-direction: column;
    justify-content: space-between;
}

.merchant-app-kpis article > span:first-child {
    color: #778296;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.merchant-app-section-heading {
    margin: 34px 0 16px;
}

.merchant-app-section-heading h2 {
    margin: 4px 0 0;
}

.merchant-app-modules {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.merchant-app-module {
    display: flex;
    min-height: 220px;
    flex-direction: column;
    gap: 16px;
}

.merchant-app-module-icon {
    display: inline-flex;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    background: #edf4ff;
    color: #155eef;
    font-weight: 900;
}

.merchant-app-module h3 {
    margin: 0 0 7px;
}

.merchant-app-module p {
    margin: 0;
    color: #6f7b8e;
}

.merchant-app-module form {
    margin-top: auto;
}

.merchant-app-module-action {
    width: 100%;
    min-height: 42px;
    border: 0;
    border-radius: 8px;
    background: #155eef;
    color: #fff;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.merchant-app-migration-note {
    margin-top: 22px;
}

@media (max-width: 1100px) {
    .merchant-app-kpis,
    .merchant-app-modules {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 800px) {
    .merchant-app-hero {
        align-items: stretch;
        flex-direction: column;
    }

    .merchant-app-kpis,
    .merchant-app-modules {
        grid-template-columns: 1fr;
    }

    .portal-store-switcher {
        width: 100%;
        min-width: 0;
        margin-left: 0;
    }
}

/* 10.A.21C.1 V3 — PRODUSE NATIVE */

.merchant-app-module-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
    text-decoration: none;
}

.merchant-products-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    padding: 30px;
    border: 1px solid var(--portal-line);
    background: linear-gradient(135deg, #0b2b5c, #155eef);
}

.merchant-products-hero h2 {
    margin: 7px 0 8px;
    color: #fff;
    font-size: clamp(28px, 4vw, 40px);
}

.merchant-products-hero p,
.merchant-products-hero .portal-eyebrow {
    color: rgba(255, 255, 255, .82);
}

.merchant-products-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.merchant-product-kpis {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 13px;
    margin: 18px 0;
}

.merchant-product-kpis article {
    display: flex;
    min-height: 105px;
    flex-direction: column;
    justify-content: space-between;
    padding: 18px;
    border: 1px solid var(--portal-line);
    background: var(--portal-surface);
}

.merchant-product-kpis span {
    color: var(--portal-muted);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.merchant-product-kpis strong {
    font-size: 27px;
}

.merchant-products-toolbar,
.merchant-products-card,
.merchant-products-pagination {
    border: 1px solid var(--portal-line);
    background: var(--portal-surface);
}

.merchant-products-toolbar {
    padding: 18px;
}

.merchant-products-filters {
    display: grid;
    grid-template-columns:
        minmax(260px, 2fr)
        repeat(4, minmax(145px, 1fr))
        auto;
    align-items: end;
    gap: 12px;
}

.merchant-products-filters label {
    display: block;
    margin-bottom: 7px;
    color: var(--portal-muted);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.merchant-products-filters input,
.merchant-products-filters select {
    width: 100%;
    min-height: 44px;
    padding: 0 12px;
    border: 1px solid var(--portal-line);
    background: var(--portal-surface-soft);
    color: var(--portal-text);
    font: inherit;
}

.merchant-products-filter-actions {
    display: flex;
    gap: 8px;
}

.merchant-products-summary {
    display: flex;
    justify-content: space-between;
    padding: 14px 2px;
    color: var(--portal-muted);
}

.merchant-products-table-wrap {
    overflow-x: auto;
}

.merchant-products-table {
    width: 100%;
    min-width: 1260px;
    border-collapse: collapse;
}

.merchant-products-table th,
.merchant-products-table td {
    padding: 14px;
    border-bottom: 1px solid var(--portal-line);
    text-align: left;
    vertical-align: middle;
}

.merchant-products-table th {
    background: var(--portal-surface-soft);
    color: var(--portal-muted);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.merchant-product-identity {
    display: flex;
    min-width: 310px;
    align-items: center;
    gap: 12px;
}

.merchant-product-identity small,
.merchant-product-secondary {
    display: block;
    margin-top: 5px;
    color: var(--portal-muted);
    font-size: 11px;
}

.merchant-product-image {
    display: inline-flex;
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid var(--portal-line);
    background: var(--portal-surface-soft);
    font-weight: 900;
}

.merchant-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.merchant-product-number,
.merchant-product-old-price {
    white-space: nowrap;
}

.merchant-product-old-price {
    display: block;
    color: var(--portal-muted);
    text-decoration: line-through;
}

.merchant-stock-pill,
.merchant-listing-pill {
    display: inline-flex;
    min-height: 27px;
    align-items: center;
    padding: 0 10px;
    border: 1px solid var(--portal-line);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.merchant-stock-pill.is-ok,
.merchant-listing-pill.is-listed {
    color: var(--portal-green);
}

.merchant-stock-pill.is-low {
    color: var(--portal-yellow);
}

.merchant-stock-pill.is-out,
.merchant-listing-pill.is-unlisted {
    color: var(--portal-red);
}

.merchant-product-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.merchant-product-actions a,
.merchant-product-actions button {
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    padding: 0 11px;
    border: 1px solid var(--portal-line);
    background: var(--portal-surface-soft);
    color: var(--portal-text);
    font: inherit;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
}

.merchant-product-actions form {
    margin: 0;
}

.merchant-products-empty {
    padding: 40px !important;
    color: var(--portal-muted);
    text-align: center !important;
}

.merchant-products-pagination {
    display: flex;
    justify-content: space-between;
    margin-top: 16px;
    padding: 15px 17px;
}

.merchant-products-pagination a {
    color: var(--portal-gold-soft);
    font-weight: 800;
    text-decoration: none;
}

.merchant-products-readonly-note {
    margin-top: 18px;
}

@media (max-width: 1250px) {
    .merchant-product-kpis {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .merchant-products-filters {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .merchant-product-search {
        grid-column: span 2;
    }
}

@media (max-width: 800px) {
    .merchant-products-hero {
        align-items: stretch;
        flex-direction: column;
    }

    .merchant-product-kpis,
    .merchant-products-filters {
        grid-template-columns: 1fr;
    }

    .merchant-product-search {
        grid-column: auto;
    }

    .merchant-products-filter-actions,
    .merchant-products-pagination {
        align-items: stretch;
        flex-direction: column;
    }
}

/* 10.A.21C.2 — VIZUALIZARE PRODUS NATIVĂ */

.merchant-product-view-hero {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 28px;
    padding: 30px;
    border: 1px solid var(--portal-line);
    background: linear-gradient(135deg, #0b2b5c, #155eef);
}

.merchant-product-view-hero h2 {
    max-width: 820px;
    margin: 8px 0 12px;
    color: #fff;
    font-size: clamp(28px, 4vw, 43px);
}

.merchant-product-view-hero .portal-eyebrow {
    color: rgba(255, 255, 255, .72);
}

.merchant-product-back {
    display: inline-flex;
    margin-bottom: 18px;
    color: rgba(255, 255, 255, .84);
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
}

.merchant-product-view-badges,
.merchant-product-view-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
}

.merchant-product-view-actions {
    justify-content: flex-end;
}

.merchant-product-view-actions form {
    margin: 0;
}

.merchant-product-view-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(300px, .75fr);
    gap: 18px;
    margin-top: 18px;
}

.merchant-product-gallery-panel,
.merchant-product-detail-card,
.merchant-product-copy-card,
.merchant-product-seo-card {
    border: 1px solid var(--portal-line);
    background: var(--portal-surface);
}

.merchant-product-gallery-panel,
.merchant-product-detail-card,
.merchant-product-copy-card,
.merchant-product-seo-card {
    padding: 20px;
}

.merchant-product-gallery-panel > header,
.merchant-product-detail-card > header,
.merchant-product-seo-card > header {
    padding-bottom: 16px;
    border-bottom: 1px solid var(--portal-line);
}

.merchant-product-gallery-panel h3,
.merchant-product-detail-card h3,
.merchant-product-copy-card h3,
.merchant-product-seo-card h3 {
    margin: 4px 0 0;
}

.merchant-product-gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 18px;
}

.merchant-product-gallery-item {
    overflow: hidden;
    border: 1px solid var(--portal-line);
    background: var(--portal-surface-soft);
}

.merchant-product-gallery-item > a {
    display: block;
    aspect-ratio: 1 / 1;
}

.merchant-product-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #fff;
}

.merchant-product-gallery-item footer {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 13px;
    border-top: 1px solid var(--portal-line);
}

.merchant-product-gallery-empty,
.merchant-product-image-missing {
    display: flex;
    min-height: 260px;
    align-items: center;
    justify-content: center;
    color: var(--portal-muted);
}

.merchant-product-view-sidebar {
    display: grid;
    align-content: start;
    gap: 14px;
}

.merchant-product-detail-list {
    display: grid;
    margin: 0;
}

.merchant-product-detail-list > div {
    display: grid;
    grid-template-columns: minmax(110px, .75fr) minmax(0, 1.25fr);
    gap: 15px;
    padding: 12px 0;
    border-bottom: 1px solid var(--portal-line);
}

.merchant-product-detail-list > div:last-child {
    border-bottom: 0;
}

.merchant-product-detail-list dt {
    color: var(--portal-muted);
    font-size: 12px;
    font-weight: 800;
}

.merchant-product-detail-list dd {
    margin: 0;
    text-align: right;
}

.merchant-product-break {
    overflow-wrap: anywhere;
}

.merchant-product-copy-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 18px;
}

.merchant-product-copy-card p {
    margin: 14px 0 0;
    color: var(--portal-muted);
    line-height: 1.75;
}

.merchant-product-seo-card,
.merchant-product-view-note {
    margin-top: 18px;
}

@media (max-width: 1100px) {
    .merchant-product-view-layout {
        grid-template-columns: 1fr;
    }

    .merchant-product-view-sidebar {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .merchant-product-detail-list > div {
        grid-template-columns: 1fr;
        gap: 5px;
    }

    .merchant-product-detail-list dd {
        text-align: left;
    }
}

@media (max-width: 800px) {
    .merchant-product-view-hero {
        align-items: stretch;
        flex-direction: column;
    }

    .merchant-product-view-actions {
        justify-content: flex-start;
    }

    .merchant-product-gallery,
    .merchant-product-copy-grid,
    .merchant-product-view-sidebar {
        grid-template-columns: 1fr;
    }
}
