.inapp-auth {
    background: #f8f9fb;
}

.inapp-auth .card {
    max-width: 420px;
    width: 100%;
}

.ec-feedback-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, .46);
    backdrop-filter: blur(2px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .18s ease;
    z-index: 2100;
}

.ec-feedback-backdrop.is-visible {
    opacity: 1;
    pointer-events: auto;
}

.ec-feedback-modal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity .18s ease;
    z-index: 2200;
}

.ec-feedback-modal.is-visible {
    opacity: 1;
    pointer-events: auto;
}

.ec-feedback-modal__dialog {
    position: relative;
    width: min(520px, calc(100vw - 2rem));
    padding: 2rem 1.75rem 1.5rem;
    border: 1px solid var(--ec-card-border);
    border-radius: 1.2rem;
    background: #fff;
    box-shadow: 0 28px 80px rgba(15, 23, 42, .24);
    text-align: center;
}

.ec-feedback-modal__close {
    position: absolute;
    top: .9rem;
    right: .9rem;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 999px;
    background: #f4f6fa;
    color: #667085;
}

.ec-feedback-modal__icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1rem;
    border-radius: 1.3rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.ec-feedback-modal__icon--success {
    color: #0f9f6e;
    background: #e9fbf3;
    box-shadow: inset 0 0 0 1px #c9efd8;
}

.ec-feedback-modal__icon--error {
    color: #dc3545;
    background: #fff0f2;
    box-shadow: inset 0 0 0 1px #f6c5cb;
}

.ec-feedback-modal__title {
    margin: 0 0 .45rem;
    color: #101828;
    font-size: 1.4rem;
    font-weight: 800;
}

.ec-feedback-modal__message {
    margin: 0 auto;
    max-width: 420px;
    color: #667085;
    font-size: 1rem;
    line-height: 1.6;
}

.ec-feedback-modal__actions {
    margin-top: 1.4rem;
    display: flex;
    justify-content: center;
}

.ec-loading-overlay {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity .18s ease;
    z-index: 2600;
}

.ec-loading-overlay.is-visible {
    opacity: 1;
    pointer-events: auto;
}

.ec-loading-overlay__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, .28);
    backdrop-filter: blur(8px);
}

.ec-loading-overlay__dialog {
    position: relative;
    z-index: 1;
    min-width: 260px;
    padding: 1.4rem 1.5rem;
    border: 1px solid rgba(255, 255, 255, .75);
    border-radius: 1.15rem;
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 24px 64px rgba(15, 23, 42, .18);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .45rem;
    text-align: center;
}

.ec-loading-overlay__dialog strong {
    color: #101828;
    font-size: 1.05rem;
    font-weight: 800;
}

.ec-loading-overlay__dialog span:last-child {
    color: #667085;
    font-size: .95rem;
}

.ec-loading-overlay__spinner {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    border: 3px solid rgba(230, 98, 57, .18);
    border-top-color: var(--ec-primary);
    animation: ec-loading-spin .85s linear infinite;
}

body.ec-loading-active #content,
body.ec-loading-active #topbar,
body.ec-loading-active #sidebar {
    filter: blur(2px);
}

@keyframes ec-loading-spin {
    to {
        transform: rotate(360deg);
    }
}

.ec-brand-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    line-height: 1;
    vertical-align: middle;
}

.ec-brand-logo svg {
    display: block;
    width: 100%;
    height: 100%;
    overflow: visible;
}

.ec-brand-logo--xs {
    width: 18px;
    height: 18px;
}

.ec-brand-logo--sm {
    width: 28px;
    height: 18px;
}

.ec-brand-logo--md {
    width: 40px;
    height: 24px;
}

.ec-brand-logo--lg {
    width: 56px;
    height: 32px;
}

.product-kpi-icon .ec-brand-logo {
    width: 28px;
    height: 18px;
}

.btn-icon .ec-brand-logo {
    width: 18px;
    height: 18px;
}

.order-activity-timeline__icon .ec-brand-logo {
    width: 18px;
    height: 18px;
}

.sidebar .nav-link .ec-brand-logo {
    width: 26px;
    height: 16px;
    margin-right: .78rem;
}

:root {
    --ec-primary: #E66239;
    --ec-primary-dark: #cc542f;
    --ec-primary-soft: #fae0d7;
    --ec-primary-soft-2: #fff1eb;
    --ec-primary-border: #f5c0b0;
    --ec-primary-shadow: rgba(230, 98, 57, .22);
    --ec-card-border: #e4eaf2;
    --ec-card-border-strong: #d9e2ee;
    --ec-card-shadow: 0 14px 34px rgba(15, 23, 42, .06);
    --ec-card-shadow-soft: 0 8px 22px rgba(15, 23, 42, .04);
    --ec-card-header-bg: linear-gradient(180deg, #fcfdff 0%, #f4f7fb 100%);
    --ec-card-header-line: linear-gradient(90deg, var(--ec-primary) 0%, #f09a7c 100%);
    --ec-card-body-bg: #ffffff;
    --ec-page-soft: #f4f6fa;
}

body.inapp-admin {
    background:
        radial-gradient(circle at top right, rgba(230, 98, 57, .07), transparent 24%),
        linear-gradient(180deg, #f6f8fb 0%, #f1f4f8 100%);
}

.content .card {
    overflow: hidden;
    border: 1px solid var(--ec-card-border);
    border-radius: 1rem !important;
    background: var(--ec-card-body-bg);
    box-shadow: var(--ec-card-shadow-soft);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.content .card:hover {
    border-color: var(--ec-card-border-strong);
    box-shadow: var(--ec-card-shadow);
}

.content .card > .card-header,
.content .card-header.bg-white,
.content .card-header.bg-light {
    position: relative;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #e8eef5;
    background: var(--ec-card-header-bg) !important;
}

.content .card > .card-header::before,
.content .card-header.bg-white::before,
.content .card-header.bg-light::before {
    content: "";
    position: absolute;
    left: 1.25rem;
    right: 1.25rem;
    top: 0;
    height: 3px;
    border-radius: 999px;
    opacity: .95;
}

.content .card > .card-header h2,
.content .card > .card-header h3,
.content .card-header.bg-white h2,
.content .card-header.bg-white h3,
.content .card-header.bg-light h2,
.content .card-header.bg-light h3 {
    color: #101828;
    font-weight: 700;
    letter-spacing: -.015em;
}

.content .card > .card-header p,
.content .card-header.bg-white p,
.content .card-header.bg-light p {
    color: #667085 !important;
}

.content .card > .card-body,
.content .card > .table-responsive,
.content .card > .p-4,
.content .card > section {
    background: #fff;
}

.content .card .table-light,
.content .card thead.table-light {
    --bs-table-bg: #f4f7fb;
    --bs-table-striped-bg: #f4f7fb;
    color: #5f6b7c;
}

.content .card .table > :not(caption) > * > * {
    padding-top: .95rem;
    padding-bottom: .95rem;
    border-bottom-color: #edf2f7;
}

.content .card .table > thead > tr > th {
    padding-top: .95rem;
    padding-bottom: .95rem;
    border-bottom: 1px solid #e1e8f0;
    color: #526072;
    font-size: .76rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .045em;
    white-space: nowrap;
}

.content .card .table > tbody > tr > td {
    vertical-align: middle;
    background: #fff;
}

.content .card .table-responsive {
    border-top: 1px solid #eef2f7;
}

.content .card .table-hover > tbody > tr:hover > * {
    --bs-table-accent-bg: #f9fbfe;
    color: inherit;
}

.order-summary-list {
    display: grid;
    gap: 1rem;
}

.order-summary-list div {
    padding-bottom: 1rem;
    border-bottom: 1px solid #eef2f7;
}

.order-summary-list div:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.order-summary-list dt {
    margin: 0 0 .35rem;
    color: #667085;
    font-size: .82rem;
    font-weight: 700;
}

.order-summary-list dd {
    margin: 0;
    color: #101828;
    font-weight: 600;
}

.order-activity-timeline {
    display: grid;
    gap: 1rem;
}

.order-activity-timeline__item {
    position: relative;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: .9rem;
}

.order-activity-timeline__item:not(:last-child)::after {
    content: "";
    position: absolute;
    left: 20px;
    top: 44px;
    bottom: -12px;
    width: 2px;
    background: linear-gradient(180deg, var(--ec-primary-soft), #e7edf5);
}

.order-activity-timeline__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    background: var(--ec-primary-soft-2);
    color: var(--ec-primary);
    box-shadow: inset 0 0 0 1px var(--ec-primary-border);
    font-size: 1rem;
}

.order-activity-timeline__content {
    padding: .2rem 0 0;
}

.order-activity-timeline__content strong {
    color: #101828;
    font-size: .94rem;
}

.order-activity-timeline__content small {
    color: #667085;
    font-weight: 600;
}

.content .card .card-header.bg-danger-subtle {
    background: linear-gradient(180deg, #fff5f5 0%, #ffe8e8 100%) !important;
    border-bottom-color: #f1c4c4;
}

.field-error {
    color: #dc3545;
    display: block;
    margin-top: .35rem;
}

.field-help {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    margin-left: .25rem;
    border-radius: 999px;
    color: var(--ec-primary);
    background: var(--ec-primary-soft-2);
    font-size: .95rem;
    vertical-align: text-bottom;
    cursor: help;
    flex: 0 0 18px;
}

.field-help::after {
    content: attr(data-help);
    position: absolute;
    left: 50%;
    bottom: calc(100% + 10px);
    z-index: 5000;
    width: min(280px, 80vw);
    padding: .7rem .8rem;
    border-radius: .65rem;
    background: #111827;
    color: #fff;
    font-size: .78rem;
    font-weight: 500;
    line-height: 1.35;
    text-align: left;
    box-shadow: 0 14px 30px rgba(15, 23, 42, .24);
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 6px);
    transition: opacity .15s ease, transform .15s ease;
}

.field-help::before {
    content: "";
    position: absolute;
    left: 50%;
    bottom: calc(100% + 4px);
    z-index: 5001;
    border: 6px solid transparent;
    border-top-color: #111827;
    opacity: 0;
    transform: translateX(-50%);
    transition: opacity .15s ease;
}

.field-help:hover::after,
.field-help:focus::after,
.field-help:hover::before,
.field-help:focus::before {
    opacity: 1;
    transform: translate(-50%, 0);
}

.field-help:hover::before,
.field-help:focus::before {
    transform: translateX(-50%);
}

.entity-form .form-label {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .35rem;
    margin-bottom: .45rem;
}

.entity-form .form-label .field-help {
    margin-left: 0;
}

.alert.success,
.alert.error {
    padding: 1rem;
    border-radius: .5rem;
    margin-bottom: 1rem;
}

.alert.success {
    color: #0f5132;
    background: #d1e7dd;
    border: 1px solid #badbcc;
}

.alert.error {
    color: #842029;
    background: #f8d7da;
    border: 1px solid #f5c2c7;
}

.grid {
    display: grid;
    gap: 1rem;
}

.metrics {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

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

.three-col {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.four-col {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.compact {
    gap: .875rem;
}

.metric strong {
    display: block;
    font-size: 2rem;
}

.metric span {
    color: #6c757d;
}

.action-row,
.form-actions,
.step-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    align-items: center;
}

.button-link,
.store-form button,
.entity-form button,
.publish-form button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: .5rem;
    border: 1px solid transparent;
    padding: .625rem 1rem;
    background: var(--ec-primary);
    color: #fff;
    font-weight: 600;
    text-decoration: none;
}

.button-link.secondary {
    background: #f8f9fa;
    color: #212529;
    border-color: #dee2e6;
}

.danger-button {
    background: #dc3545 !important;
}

.store-form label,
.entity-form label,
.publish-form label {
    display: grid;
    gap: .4rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.store-form input,
.store-form select,
.entity-form input,
.entity-form select,
.entity-form textarea,
.publish-form select {
    width: 100%;
    border: 1px solid #dee2e6;
    border-radius: .5rem;
    padding: .625rem .75rem;
    background: #fff;
}

.store-form select,
.entity-form select,
.publish-form select,
.form-select {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 2.75rem !important;
    border-color: #cfd8e5;
    background-color: #f8fafc;
    background-image:
        linear-gradient(45deg, transparent 50%, var(--ec-primary) 50%),
        linear-gradient(135deg, var(--ec-primary) 50%, transparent 50%),
        linear-gradient(to right, #d8e1ee, #d8e1ee);
    background-position:
        calc(100% - 20px) 50%,
        calc(100% - 14px) 50%,
        calc(100% - 40px) 50%;
    background-size:
        6px 6px,
        6px 6px,
        1px 24px;
    background-repeat: no-repeat;
    cursor: pointer;
}

.store-form select:hover,
.entity-form select:hover,
.publish-form select:hover,
.form-select:hover {
    border-color: #9db9e7;
    background-color: #f4f8ff;
}

.store-form select:focus,
.entity-form select:focus,
.publish-form select:focus,
.form-select:focus {
    border-color: var(--ec-primary);
    box-shadow: 0 0 0 .2rem rgba(230, 98, 57, .14);
}

.store-form select[multiple],
.entity-form select[multiple],
.publish-form select[multiple],
.form-select[multiple] {
    padding-right: .75rem !important;
    background-image: none;
    cursor: default;
}

.checkbox-row {
    display: flex !important;
    grid-template-columns: none !important;
    gap: .5rem !important;
    align-items: center;
}

.checkbox-row input {
    width: auto;
}

.form-section,
.advanced-panel,
.channel-summary-card,
.value-card,
.option-value-row {
    border: 1px solid #e8edf3;
    border-radius: .75rem;
    padding: 1rem;
    background: #fff;
    margin-bottom: 1rem;
}

.section-head,
.list-toolbar,
.option-card-head {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .35rem;
    min-height: 2.6rem;
    padding: .55rem .95rem;
    border-radius: .95rem;
    font-size: .88rem;
    font-weight: 700;
    letter-spacing: -.01em;
    box-shadow: 0 6px 16px rgba(15, 23, 42, .04);
}

.badge.text-bg-success {
    background: linear-gradient(180deg, #17c964 0%, #10b84f 100%) !important;
    color: #fff !important;
}

.badge.text-bg-secondary {
    background: linear-gradient(180deg, #98a2b3 0%, #667085 100%) !important;
    color: #fff !important;
}

.badge.text-bg-light.border,
.badge.border.border-primary-subtle.text-bg-primary-subtle {
    background: #fff !important;
    color: #344054 !important;
    border: 1px solid #dbe4ef !important;
}

.badge.text-bg-light.border.text-secondary {
    color: #667085 !important;
}

.btn.btn-light.border.btn-sm:not(.btn-icon) {
    min-height: 2.9rem;
    padding: .65rem 1rem;
    border-radius: 1rem;
    border-color: #dbe4ef !important;
    background: linear-gradient(180deg, #fff 0%, #fafbfd 100%);
    color: #1f2937;
    font-weight: 700;
    box-shadow: 0 8px 18px rgba(15, 23, 42, .04);
}

.btn.btn-light.border.btn-sm:not(.btn-icon):hover {
    background: #fff;
    border-color: #c8d5e5 !important;
    color: #101828;
}

.channel-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.summary-label {
    display: block;
    color: #6c757d;
    font-size: .8rem;
    margin-bottom: .25rem;
}

.table-thumb {
    width: 52px;
    height: 52px;
    object-fit: cover;
    border-radius: .5rem;
    border: 1px solid #e8edf3;
    background: #f8f9fa;
}

.table-thumb--empty {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: .35rem;
    text-align: center;
    font-size: .62rem;
    line-height: 1.15;
    letter-spacing: .08em;
    font-weight: 800;
    color: #c25731;
    border-style: dashed;
    border-color: #efc0ae;
    background:
        linear-gradient(135deg, rgba(230, 98, 57, .10) 0%, rgba(255, 244, 239, .95) 100%);
}

.product-kpi-card {
    height: 100%;
    display: flex;
    align-items: center;
    gap: .9rem;
    padding: 1rem;
    border: 1px solid #e5ebf3;
    border-radius: 1rem;
    background: linear-gradient(135deg, #fff 0%, #f8fafc 100%);
    box-shadow: 0 10px 24px rgba(15, 23, 42, .04);
}

.product-kpi-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1rem;
}

.product-kpi-card small,
.product-kpi-card strong {
    display: block;
}

.product-kpi-card small {
    color: #667085;
    font-weight: 600;
}

.product-kpi-card strong {
    color: #101828;
    font-size: 1.45rem;
    margin-top: .1rem;
}

.product-kpi-icon {
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 46px;
    border-radius: .95rem;
    font-size: 1.35rem;
}

.product-table-item {
    display: flex;
    align-items: center;
    gap: .85rem;
    min-width: 0;
}

.product-bulk-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 1rem 1.25rem;
    background: linear-gradient(180deg, rgba(248, 250, 252, .9) 0%, #ffffff 100%);
}

.product-bulk-toolbar__left,
.product-bulk-toolbar__right {
    display: flex;
    align-items: center;
    gap: .75rem;
    flex-wrap: wrap;
}

.product-bulk-toolbar__left {
    flex: 1 1 280px;
}

.product-bulk-toolbar__right {
    flex: 2 1 620px;
    justify-content: flex-end;
}

.product-bulk-toolbar__right .form-select {
    min-width: 260px;
    max-width: 320px;
}

.product-select-col {
    width: 52px;
    text-align: center;
}

.products-table {
    width: 100%;
    table-layout: fixed;
}

.products-table th,
.products-table td {
    vertical-align: middle;
}

.products-table th.product-name-col,
.products-table td:nth-child(2) {
    width: 39%;
}

.products-table th.product-price-col,
.products-table td.product-price-col {
    width: 11%;
}

.products-table th.product-stock-col,
.products-table td.product-stock-col {
    width: 12%;
}

.products-table th.product-publish-col,
.products-table td.product-publish-col {
    width: 17%;
}

.products-table th.product-actions-col,
.products-table td.product-actions-col {
    width: 13%;
    white-space: nowrap;
}

.product-table-item > div {
    min-width: 0;
}

.product-table-item strong {
    display: block;
    max-width: 240px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

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

@media (max-width: 767.98px) {
    .product-kpi-grid {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }

    .product-bulk-toolbar {
        align-items: stretch;
    }

    .product-bulk-toolbar__left,
    .product-bulk-toolbar__right {
        width: 100%;
    }

    .product-bulk-toolbar__right {
        justify-content: stretch;
    }

    .product-bulk-toolbar__right .form-select {
        min-width: 100%;
        max-width: none;
    }
}

.category-tree-item {
    position: relative;
    padding-left: calc(var(--category-indent, 0px) + 6px);
}

.category-tree-item::before {
    content: "";
    position: absolute;
    left: calc(var(--category-indent, 0px) - 12px);
    top: 50%;
    width: 16px;
    height: 2px;
    border-radius: 999px;
    background: #c8d4e3;
    transform: translateY(-50%);
}

.category-tree-item::after {
    content: "";
    position: absolute;
    left: calc(var(--category-indent, 0px) - 12px);
    top: 0;
    bottom: 0;
    width: 2px;
    border-radius: 999px;
    background: linear-gradient(180deg, #e5edf6 0%, #cfd9e6 100%);
}

.category-tree-item.depth-0 {
    padding-left: 0;
}

.category-tree-item.depth-0::before,
.category-tree-item.depth-0::after {
    display: none;
}

.category-tree-item .table-thumb,
.category-tree-item .table-thumb--empty {
    box-shadow: 0 0 0 4px #fff;
}

.category-tree-label {
    min-width: 0;
}

.category-tree-label strong {
    max-width: 320px;
}

.price-stack strong,
.price-stack span,
.price-stack small {
    display: block;
}

.price-stack span {
    color: #98a2b3;
    font-size: .85rem;
    text-decoration: line-through;
}

.price-stack small {
    width: fit-content;
    margin-top: .15rem;
    padding: .1rem .45rem;
    border-radius: 999px;
    color: #027a48;
    background: #d1fadf;
    font-weight: 700;
}

.publish-popover {
    position: relative;
    cursor: help;
}

.publish-popover-content {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 10px);
    z-index: 5000;
    width: max-content;
    max-width: 280px;
    padding: .65rem .75rem;
    border-radius: .65rem;
    background: #111827;
    color: #fff;
    font-size: .78rem;
    font-weight: 600;
    line-height: 1.35;
    white-space: normal;
    box-shadow: 0 14px 30px rgba(15, 23, 42, .24);
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 6px);
    transition: opacity .15s ease, transform .15s ease;
}

.publish-popover:hover .publish-popover-content {
    opacity: 1;
    transform: translate(-50%, 0);
}

.connector-download-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.1rem;
    border: 1px solid #d8e4f2;
    border-radius: .95rem;
    background: linear-gradient(135deg, #f8fbff 0%, #eef5ff 100%);
}

.store-setup-actions {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

@media (max-width: 992px) {
    .store-setup-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .connector-download-card {
        flex-direction: column;
        align-items: stretch;
    }

    .store-setup-actions {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 992px) {
    .table-responsive {
        overflow: visible;
    }
}

.publication-section {
    padding: 1rem;
    border: 1px solid #e4ebf5;
    border-radius: 1rem;
    background: #f3f6fb;
}

.publication-action-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 1rem;
    border: 1px solid #e1e8f2;
    border-radius: 1rem;
    background: #fff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, .04);
}

.publication-action-card h4 {
    font-size: 1rem;
    margin: .75rem 0 .25rem;
}

.publication-action-card p {
    min-height: 42px;
    color: #667085;
    font-size: .875rem;
    margin-bottom: 1rem;
}

.publication-action-icon {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: .85rem;
    font-size: 1.25rem;
}

.publication-action-card-danger {
    border-color: #f4c7c7;
}

.pagination {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-top: 1rem;
}

.pagination a {
    min-width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #dee2e6;
    border-radius: .5rem;
    background: #fff;
    color: #212529;
    text-decoration: none;
    padding: 0 .75rem;
}

.pagination a.is-active {
    background: var(--ec-primary);
    border-color: var(--ec-primary);
    color: #fff;
}

.product-wizard-form .tab-content {
    background: #fff;
    border: 1px solid #e7edf5;
    border-radius: 1rem;
    padding: 1rem;
}

.product-wizard-form .card {
    border-color: #e5ebf3;
}

.product-wizard-form .card-header {
    background: #f8fafc !important;
    border-bottom-color: #e8edf3;
}

.product-step-shell {
    background: linear-gradient(135deg, #ffffff 0%, #f6f8fb 100%);
    border-color: #e5ebf3;
}

.product-step-nav {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: .75rem;
}

.product-step-nav .nav-item {
    width: 100%;
}

.product-step-nav .nav-link {
    width: 100%;
    min-height: 82px;
    display: flex !important;
    align-items: center;
    justify-content: flex-start !important;
    gap: .75rem;
    border: 1px solid #e1e8f2 !important;
    border-radius: .9rem !important;
    padding: .9rem !important;
    background: #fff !important;
    color: #344054 !important;
    text-align: left;
    box-shadow: 0 8px 18px rgba(15, 23, 42, .04);
}

.product-step-nav .nav-link small,
.product-step-nav .nav-link strong {
    display: block;
}

.product-step-nav .nav-link small {
    color: #7a8798;
    font-size: .78rem;
    font-weight: 500;
    margin-top: .15rem;
}

.product-step-nav .nav-link .step-number {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 36px;
    border-radius: 999px;
    background: var(--ec-primary-soft-2);
    color: var(--ec-primary);
    font-weight: 800;
}

.product-step-nav .nav-link.active {
    background: linear-gradient(135deg, var(--ec-primary) 0%, var(--ec-primary-dark) 100%) !important;
    border-color: var(--ec-primary) !important;
    color: #fff !important;
    box-shadow: 0 14px 28px var(--ec-primary-shadow);
}

.product-step-nav .nav-link.active small {
    color: rgba(255, 255, 255, .78);
}

.product-step-nav .nav-link.active .step-number {
    background: rgba(255, 255, 255, .2);
    color: #fff;
}

.sidebar .nav-link {
    position: relative;
    margin: 0 12px 4px;
    border: 1px solid transparent;
    border-radius: 14px;
    transition: background-color .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.sidebar .nav-link:hover {
    background: rgba(230, 98, 57, .08);
    border-color: rgba(230, 98, 57, .18);
    color: var(--ec-primary-dark);
    transform: translateX(2px);
}

.sidebar li.active > .nav-link,
.sidebar .nav-link.active {
    background: linear-gradient(135deg, rgba(230, 98, 57, .18) 0%, rgba(230, 98, 57, .1) 100%) !important;
    border-color: rgba(230, 98, 57, .22) !important;
    color: var(--ec-primary-dark) !important;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .32);
}

.sidebar li.active > .nav-link::before,
.sidebar .nav-link.active::before {
    content: "";
    position: absolute;
    top: 10px;
    bottom: 10px;
    left: -1px;
    width: 4px;
    border-radius: 999px;
}

.sidebar li.active > .nav-link i,
.sidebar li.active > .nav-link .nav-text,
.sidebar .nav-link.active i,
.sidebar .nav-link.active .nav-text {
    color: var(--ec-primary-dark) !important;
    font-weight: 600 !important;
}

.selection-box {
    display: grid;
    gap: .5rem;
    max-height: 260px;
    overflow: auto;
    border: 1px solid #e8edf3;
    border-radius: .75rem;
    padding: .75rem;
    background: #fbfcfe;
}

.selection-box-lg {
    max-height: 420px;
}

.selection-row {
    display: flex !important;
    grid-template-columns: none !important;
    align-items: flex-start;
    gap: .65rem;
    padding: .65rem .75rem;
    border: 1px solid #e8edf3;
    border-radius: .6rem;
    background: #fff;
    cursor: pointer;
    margin: 0;
}

.selection-row:hover {
    border-color: #b9d3ff;
    background: #f5f9ff;
}

.selection-row input {
    width: 1rem !important;
    height: 1rem;
    flex: 0 0 1rem;
    margin: .15rem 0 0 !important;
    padding: 0 !important;
}

.selection-row span {
    display: block;
    line-height: 1.25;
}

.selection-row small {
    display: block;
    color: #7a8798;
    font-weight: 500;
    margin-top: .2rem;
}

.entity-form label.form-check,
.store-form label.form-check,
.publish-form label.form-check {
    display: flex !important;
    grid-template-columns: none !important;
    align-items: center;
    gap: .5rem !important;
    font-weight: 600;
    margin-bottom: 0;
}

.entity-form .form-check-input,
.store-form .form-check-input,
.publish-form .form-check-input {
    width: 1rem !important;
    height: 1rem;
    flex: 0 0 1rem;
    margin: 0 !important;
    padding: 0 !important;
}

.entity-form .form-check-label,
.store-form .form-check-label,
.publish-form .form-check-label {
    margin: 0;
}

.ebay-product-form .ebay-step-links .nav-link {
    text-decoration: none;
    cursor: pointer;
}

.ebay-product-form .ebay-step-links .nav-link.active {
    background: linear-gradient(135deg, var(--ec-primary) 0%, #d86a3d 100%) !important;
    border-color: transparent !important;
    color: #fff !important;
    box-shadow: 0 16px 34px rgba(230, 98, 57, .18);
}

.ebay-product-form .ebay-step-links .nav-link.active small,
.ebay-product-form .ebay-step-links .nav-link.active strong {
    color: #fff !important;
}

.ebay-product-form .ebay-step-links .nav-link.active .step-number {
    background: rgba(255, 255, 255, .18);
    color: #fff;
}

.ebay-condition-card {
    display: flex !important;
    align-items: center;
    gap: .75rem;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 1rem 1rem;
    border: 1px solid #e1e8f2;
    border-radius: .95rem;
    background: #fff;
    cursor: pointer;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease, background .2s ease;
}

.ebay-condition-card:hover {
    border-color: rgba(230, 98, 57, .4);
    box-shadow: 0 14px 28px rgba(15, 23, 42, .06);
    transform: translateY(-1px);
}

.ebay-condition-card .form-check-input {
    width: 1.05rem !important;
    height: 1.05rem !important;
    margin: 0 !important;
    flex: 0 0 1.05rem;
    appearance: auto;
    -webkit-appearance: radio;
}

.ebay-condition-card__label {
    display: block;
    font-weight: 700;
    color: #253041;
    line-height: 1.3;
}

.ebay-condition-card:has(.form-check-input:checked) {
    border-color: rgba(230, 98, 57, .72);
    background: linear-gradient(135deg, rgba(230, 98, 57, .08) 0%, rgba(230, 98, 57, .03) 100%);
    box-shadow: 0 16px 32px rgba(230, 98, 57, .12);
}

.category-accordion {
    max-height: 460px;
    overflow: auto;
    display: grid;
    gap: .65rem;
    padding: .75rem;
    border: 1px solid #e2e9f3;
    border-radius: .9rem;
    background: #f6f8fb;
}

.category-accordion .accordion-item {
    border: 1px solid #e1e8f2;
    border-radius: .85rem;
    overflow: hidden;
    background: #fff;
}

.category-accordion .accordion-button {
    display: flex;
    gap: .7rem;
    padding: .85rem 1rem;
    background: #fff;
    color: #344054;
    box-shadow: none;
}

.category-accordion .accordion-button:not(.collapsed) {
    color: #12315f;
    background: #eef5ff;
}

.category-accordion .accordion-button::after {
    margin-left: .65rem;
}

.category-folder-icon {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 34px;
    border-radius: .75rem;
    background: #edf4ff;
    color: #0d6efd;
}

.category-heading-text {
    min-width: 0;
    flex: 1 1 auto;
}

.category-accordion .badge {
    flex: 0 0 auto;
}

.image-upload-panel {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 1rem;
    align-items: center;
    border: 1px solid #e3eaf3;
    border-radius: .9rem;
    padding: .9rem;
    background: #f8fafc;
}

.image-preview-box {
    width: 92px;
    height: 92px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: .85rem;
    border: 1px solid #dbe4ef;
    background: #fff;
    color: #98a2b3;
}

.image-preview-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-preview-box__empty {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .2rem;
    text-align: center;
    padding: .6rem;
    background:
        radial-gradient(circle at top, rgba(230, 98, 57, .10), transparent 58%),
        linear-gradient(180deg, #fff8f4 0%, #fff 100%);
    color: #b25430;
}

.image-preview-box__empty strong,
.image-preview-box__empty small {
    display: block;
}

.image-preview-box__empty strong {
    font-size: .68rem;
    letter-spacing: .08em;
    font-weight: 800;
}

.image-preview-box__empty small {
    color: #9c6a57;
    font-size: .63rem;
    line-height: 1.15;
}

.image-preview-box__empty-icon {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: .9rem;
    background: rgba(230, 98, 57, .12);
    color: #e66239;
    font-size: 1rem;
}

.image-upload-panel input[type="file"] {
    padding: .5rem !important;
    background: #fff;
}

.category-heading-text strong,
.category-heading-text small {
    display: block;
}

.category-heading-text small {
    color: #7a8798;
    font-size: .78rem;
    font-weight: 500;
    margin-top: .15rem;
}

.category-accordion .accordion-body {
    display: grid;
    gap: .5rem;
    background: #fbfcfe;
    padding: .75rem;
}

.category-row.depth-1 {
    margin-left: 1rem;
}

.category-picker-group {
    border: 1px solid #e2e9f3;
    border-radius: .95rem;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 8px 18px rgba(15, 23, 42, .04);
}

.category-picker-group[open] {
    border-color: #d7e4f3;
}

.category-picker-group__summary {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.1rem;
    background: linear-gradient(180deg, #fff 0%, #fbfcfe 100%);
    cursor: pointer;
}

.category-picker-group__summary::-webkit-details-marker {
    display: none;
}

.category-picker-group__summary-main,
.category-picker-group__summary-side {
    display: flex;
    align-items: center;
    gap: .85rem;
}

.category-picker-group__summary-main {
    min-width: 0;
}

.category-picker-group__icon {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 40px;
    border-radius: .95rem;
    background: rgba(230, 98, 57, .10);
    color: #e66239;
    font-size: 1.1rem;
}

.category-picker-group__title {
    min-width: 0;
}

.category-picker-group__title strong,
.category-picker-group__title small {
    display: block;
}

.category-picker-group__title strong {
    color: #1f2937;
    font-size: .96rem;
}

.category-picker-group__title small {
    margin-top: .15rem;
    color: #7a8798;
    font-size: .78rem;
    font-weight: 500;
}

.category-picker-group__caret {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #f3f6fa;
    color: #667085;
    transition: transform .18s ease, background-color .18s ease, color .18s ease;
}

.category-picker-group[open] .category-picker-group__caret {
    transform: rotate(90deg);
    background: rgba(230, 98, 57, .12);
    color: #e66239;
}

.category-picker-tree {
    margin: 0 1rem 1rem;
}

.category-picker-tree__row {
    position: relative;
    padding-left: calc(var(--category-choice-indent, 12px) + 18px);
}

.category-picker-tree__row::before {
    content: "";
    position: absolute;
    left: calc(var(--category-choice-indent, 12px) - 3px);
    top: 50%;
    width: 14px;
    height: 2px;
    border-radius: 999px;
    background: #d2dbe6;
    transform: translateY(-50%);
}

.category-picker-tree__row::after {
    content: "";
    position: absolute;
    left: calc(var(--category-choice-indent, 12px) - 3px);
    top: 0;
    bottom: 0;
    width: 2px;
    border-radius: 999px;
    background: linear-gradient(180deg, #edf2f7 0%, #d7e1ec 100%);
}

.category-picker-tree__row.depth-0 {
    padding-left: .9rem;
}

.category-picker-tree__row.depth-0::before,
.category-picker-tree__row.depth-0::after {
    display: none;
}

.category-row.depth-2 {
    margin-left: 2rem;
}

.category-row.depth-3,
.category-row.depth-4 {
    margin-left: 3rem;
}

.empty-soft-state {
    border: 1px dashed #ccd6e4;
    border-radius: .85rem;
    padding: 1rem;
    color: #667085;
    background: #fff;
}

.sticky-save-bar {
    position: sticky;
    bottom: 16px;
    z-index: 5;
    box-shadow: 0 12px 30px rgba(15, 23, 42, .12);
}

.option-value-row {
    border: 1px solid #e8edf3;
    border-radius: .75rem;
    padding: 1rem;
    background: #fff;
}

.lang-panel {
    display: none;
}

.lang-panel.is-active {
    display: block;
}

.dashboard-quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.dashboard-user-card {
    display: flex;
    align-items: center;
    gap: .85rem;
    padding: .9rem 1rem;
    border: 1px solid #e4e9f1;
    border-radius: .9rem;
    background: linear-gradient(180deg, #ffffff, #f8fafc);
}

.dashboard-list {
    display: grid;
    gap: .75rem;
}

.dashboard-list__item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: .85rem 1rem;
    border: 1px solid #e8edf4;
    border-radius: .85rem;
    background: #fbfcfe;
}

.mini-bars-chart {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    align-items: end;
    gap: 1rem;
    min-height: 260px;
}

.mini-bars-chart--dashboard {
    min-height: 300px;
}

.mini-bars-chart__item {
    display: flex;
    flex-direction: column;
    justify-content: end;
    align-items: center;
    gap: .45rem;
    height: 100%;
}

.mini-bars-chart__bar {
    display: block;
    width: 100%;
    max-width: 48px;
    border-radius: 14px 14px 6px 6px;
    background: linear-gradient(180deg, #f3a286 0%, var(--ec-primary) 100%);
    box-shadow: 0 10px 24px rgba(230, 98, 57, .18);
}

.mini-bars-chart__item strong {
    font-size: .95rem;
    color: #0f172a;
}

.mini-bars-chart__item small {
    color: #7a8798;
    font-size: .78rem;
    font-weight: 600;
}

.status-breakdown {
    display: grid;
    gap: 1rem;
}

.status-breakdown__row strong {
    font-size: .92rem;
    color: #111827;
}

.status-breakdown__track {
    overflow: hidden;
    height: 10px;
    border-radius: 999px;
    background: #edf2f7;
}

.status-breakdown__track span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--ec-primary), #f09271);
}

.order-sync-form {
    min-width: 360px;
}

.order-sync-form__grid {
    display: grid;
    grid-template-columns: minmax(140px, 1.2fr) minmax(150px, 1fr) auto auto;
    gap: .5rem;
    align-items: center;
}

.table-empty-state {
    padding: 2.2rem 1rem !important;
    text-align: center;
    background: linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%) !important;
}

.table-empty-state__inner {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    min-width: 240px;
}

.table-empty-state__icon {
    width: 52px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 1rem;
    background: linear-gradient(180deg, #fff1eb 0%, #fae0d7 100%);
    color: var(--ec-primary);
    font-size: 1.45rem;
    box-shadow: inset 0 0 0 1px var(--ec-primary-border);
}

.btn-primary,
.button-link:not(.secondary),
.content .btn.btn-primary {
    background: linear-gradient(135deg, var(--ec-primary) 0%, var(--ec-primary-dark) 100%) !important;
    border-color: var(--ec-primary) !important;
    color: #fff !important;
    box-shadow: 0 10px 22px rgba(230, 98, 57, .18);
}

.btn-primary:hover,
.button-link:not(.secondary):hover,
.content .btn.btn-primary:hover {
    background: linear-gradient(135deg, #f07248 0%, var(--ec-primary) 100%) !important;
    border-color: #f07248 !important;
    color: #fff !important;
}

.btn-outline-primary,
.content .btn.btn-outline-primary {
    color: var(--ec-primary) !important;
    border-color: var(--ec-primary-border) !important;
    background: #fff !important;
}

.btn-outline-primary:hover,
.content .btn.btn-outline-primary:hover {
    color: #fff !important;
    border-color: var(--ec-primary) !important;
    background: var(--ec-primary) !important;
}

.btn:focus,
.form-control:focus,
.form-check-input:focus,
.btn-primary:focus,
.btn-outline-primary:focus {
    box-shadow: 0 0 0 .2rem rgba(230, 98, 57, .16) !important;
}

.text-primary,
.field-help i,
.content .link-primary {
    color: var(--ec-primary) !important;
}

.bg-primary-subtle,
.text-bg-primary-subtle {
    background-color: var(--ec-primary-soft) !important;
}

.border-primary-subtle {
    border-color: var(--ec-primary-border) !important;
}

.product-kpi-icon.bg-primary-subtle,
.icon-shape.bg-primary {
    background-color: var(--ec-primary) !important;
    color: #fff !important;
}

.table-empty-state__title {
    color: #162033;
    font-size: .98rem;
    font-weight: 700;
}

.table-empty-state__text {
    max-width: 420px;
    color: #7a8798;
    font-size: .87rem;
    line-height: 1.45;
}

@media (max-width: 991px) {
    .metrics,
    .two-col,
    .three-col,
    .four-col,
    .channel-summary {
        grid-template-columns: 1fr;
    }

    .product-step-nav {
        grid-template-columns: 1fr;
    }

    .product-wizard-form .tab-content {
        padding: .75rem;
    }

    .category-row.depth-1,
    .category-row.depth-2,
    .category-row.depth-3,
    .category-row.depth-4 {
        margin-left: 0;
    }

    .mini-bars-chart {
        gap: .65rem;
        min-height: 220px;
    }

    .order-sync-form {
        min-width: 0;
    }

    .order-sync-form__grid {
        grid-template-columns: 1fr;
    }
}
