/* open-sans-300 - latin_latin-ext */
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: "Open Sans";
    font-style: normal;
    font-weight: 300;
    src: url("../fonts/open-sans-v44-latin_latin-ext-300-wSGqYsF.woff2") format("woff2"); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* open-sans-300italic - latin_latin-ext */
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: "Open Sans";
    font-style: italic;
    font-weight: 300;
    src: url("../fonts/open-sans-v44-latin_latin-ext-300italic-TfgkLB8.woff2")
        format("woff2"); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* open-sans-regular - latin_latin-ext */
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: "Open Sans";
    font-style: normal;
    font-weight: 400;
    src: url("../fonts/open-sans-v44-latin_latin-ext-regular-ZHojRm7.woff2")
        format("woff2"); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* open-sans-italic - latin_latin-ext */
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: "Open Sans";
    font-style: italic;
    font-weight: 400;
    src: url("../fonts/open-sans-v44-latin_latin-ext-italic-J-QCUO0.woff2")
        format("woff2"); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* open-sans-500 - latin_latin-ext */
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: "Open Sans";
    font-style: normal;
    font-weight: 500;
    src: url("../fonts/open-sans-v44-latin_latin-ext-500-pwR9OPJ.woff2") format("woff2"); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* open-sans-500italic - latin_latin-ext */
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: "Open Sans";
    font-style: italic;
    font-weight: 500;
    src: url("../fonts/open-sans-v44-latin_latin-ext-500italic-2U7b52k.woff2")
        format("woff2"); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* open-sans-600 - latin_latin-ext */
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: "Open Sans";
    font-style: normal;
    font-weight: 600;
    src: url("../fonts/open-sans-v44-latin_latin-ext-600-ajg8NCh.woff2") format("woff2"); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* open-sans-600italic - latin_latin-ext */
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: "Open Sans";
    font-style: italic;
    font-weight: 600;
    src: url("../fonts/open-sans-v44-latin_latin-ext-600italic-e5ynwGf.woff2")
        format("woff2"); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* open-sans-700 - latin_latin-ext */
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: "Open Sans";
    font-style: normal;
    font-weight: 700;
    src: url("../fonts/open-sans-v44-latin_latin-ext-700-zU30bHN.woff2") format("woff2"); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* open-sans-700italic - latin_latin-ext */
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: "Open Sans";
    font-style: italic;
    font-weight: 700;
    src: url("../fonts/open-sans-v44-latin_latin-ext-700italic-fM5gwfr.woff2")
        format("woff2"); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* open-sans-800 - latin_latin-ext */
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: "Open Sans";
    font-style: normal;
    font-weight: 800;
    src: url("../fonts/open-sans-v44-latin_latin-ext-800-49jteKK.woff2") format("woff2"); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* open-sans-800italic - latin_latin-ext */
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: "Open Sans";
    font-style: italic;
    font-weight: 800;
    src: url("../fonts/open-sans-v44-latin_latin-ext-800italic-ZCufS51.woff2")
        format("woff2"); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

html,
body {
    margin: 0;
    padding: 0;
    min-height: 100%;
}

body {
    font-family: "Open Sans";
    color: #0f172a;
    background: #ffffff;
}
* {
    font-family: "Open Sans";
}

.app-layout {
    min-height: 100dvh;
    display: grid;
    grid-template-columns: 246px minmax(0, 1fr);
    background: #f6f7f9;
}

.app-sidebar {
    background: #eef1f4;
    border-right: 1px solid #e0e3e8;
    padding: 18px 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.app-sidebar__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 4px 8px 10px;
}

.app-sidebar__brand {
    font-size: 30px;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #1a1a1a;
}

.app-sidebar__toggle {
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #475569;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.app-sidebar__toggle svg {
    width: 14px;
    height: 14px;
}

.app-sidebar__nav {
    display: grid;
    gap: 4px;
}

.app-sidebar__link {
    display: flex;
    align-items: center;
    gap: 10px;
    border-radius: 8px;
    padding: 9px 10px;
    color: #1a1a1a;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition:
        background-color 0.15s ease,
        color 0.15s ease,
        box-shadow 0.15s ease;
}

.app-sidebar__link:hover {
    background: #e5f0ff;
    color: #006aff;
}

.app-sidebar__link.is-active {
    background: #d9e8ff;
    color: #006aff;
    font-weight: 600;
}

.app-sidebar__icon {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    opacity: 0.95;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.app-sidebar__icon svg {
    width: 14px;
    height: 14px;
}

.app-sidebar__icon--small {
    width: 12px;
    height: 12px;
}

.app-sidebar__icon--small svg {
    width: 12px;
    height: 12px;
}

.app-sidebar__subnav {
    margin-top: auto;
    display: grid;
    gap: 2px;
    padding-top: 10px;
}

.app-sidebar__sublink {
    display: flex;
    align-items: center;
    gap: 8px;
    border-radius: 8px;
    padding: 8px 10px;
    color: #1a1a1a;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
}

.app-sidebar__sublink:hover {
    background: rgba(26, 26, 26, 0.08);
}

.app-sidebar__badge {
    margin-left: auto;
    min-width: 18px;
    height: 18px;
    border-radius: 999px;
    background: #f24646;
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
    padding: 0 4px;
}

.app-sidebar__footer {
    border-top: 1px solid #e0e3e8;
    padding: 12px 8px 4px;
}

.app-sidebar__return-session {
    display: block;
    margin-bottom: 10px;
    border: 1px solid #dbeafe;
    border-radius: 10px;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    padding: 10px 12px;
}

.app-sidebar__return-session:hover {
    background: #dbeafe;
}

.app-sidebar__profile {
    display: flex;
    align-items: center;
    gap: 10px;
}

.app-sidebar__avatar {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background: #006aff;
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.app-sidebar__profile-meta {
    min-width: 0;
}

.app-sidebar__profile-name {
    font-size: 12px;
    color: #111827;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.app-sidebar__profile-id {
    color: #94a3b8;
    font-size: 11px;
    margin-top: 1px;
    line-height: 1.2;
}

.app-sidebar__logout {
    margin-left: auto;
    width: 22px;
    height: 22px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #1a1a1a;
    text-decoration: none;
    flex-shrink: 0;
}

.app-sidebar__logout:hover {
    background: rgba(26, 26, 26, 0.08);
}

.app-sidebar__logout svg {
    width: 12px;
    height: 12px;
}

.app-main {
    padding: 32px;
    max-width: none;
}

/* Seller support: edge-to-edge inbox layout (no app-main gutter) */
.app-main:has(.support-page) {
    padding: 0;
}

.app-main:has(.support-page) > .app-flash {
    margin: 12px 16px 0;
}

body.sidebar-collapsed .app-layout {
    grid-template-columns: 79px minmax(0, 1fr);
}

body.sidebar-collapsed .app-sidebar__header {
    justify-content: center;
    padding: 4px 0 10px;
}

body.sidebar-collapsed .app-sidebar__brand {
    display: none;
}

body.sidebar-collapsed .app-sidebar__toggle {
    width: 32px;
    height: 32px;
    border: 1px solid #cbd0d6;
    background: #ffffff;
    color: #1a1a1a;
}

body.sidebar-collapsed .app-sidebar__link,
body.sidebar-collapsed .app-sidebar__sublink {
    justify-content: center;
    gap: 0;
}

body.sidebar-collapsed .app-sidebar__link > span:last-child,
body.sidebar-collapsed
    .app-sidebar__sublink
    > span:not(.app-sidebar__icon):not(.app-sidebar__badge),
body.sidebar-collapsed .app-sidebar__profile-meta {
    display: none;
}

body.sidebar-collapsed .app-sidebar__badge {
    position: absolute;
    top: 3px;
    right: 3px;
    min-width: 12px;
    height: 12px;
    line-height: 12px;
    font-size: 8px;
    padding: 0 2px;
}

body.sidebar-collapsed .app-sidebar__sublink {
    position: relative;
}

body.sidebar-collapsed .app-sidebar__profile {
    justify-content: center;
}

.login-topbar {
    height: 48px;
    border-bottom: 1px solid #e0e3e8;
    background: #ffffff;
    display: flex;
    align-items: center;
    padding: 0 18px;
    box-sizing: border-box;
}

.login-topbar__brand {
    display: grid;
    gap: 1px;
    line-height: 1;
}

.login-topbar__line {
    display: inline-flex;
    align-items: baseline;
    gap: 8px;
}

.login-topbar__zelto {
    font-size: 32px;
    font-weight: 800;
    color: #1a1a1a;
    letter-spacing: 0.02em;
}

.login-topbar__recommerce {
    font-size: 14px;
    font-weight: 700;
    color: #006aff;
    letter-spacing: 0.06em;
}

.login-topbar__marketplace {
    font-size: 8px;
    font-weight: 600;
    color: #9ca1a8;
    letter-spacing: 0.34em;
}

.login-page {
    min-height: calc(100dvh - 48px);
    padding: 48px 26px;
    box-sizing: border-box;
    background: #eef1f4;
    color: #1a1a1a;
}

.login-shell {
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(650px, 1fr) 390px;
    gap: 36px;
    align-items: start;
}

.login-features {
    padding-top: 70px;
    display: grid;
    gap: 14px;
}

.login-feature-card {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 74px;
    border-radius: 10px;
    background: #f6f7f9;
    border: 1px solid #e0e3e8;
    padding: 0 16px;
}

.login-feature-icon {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #006aff;
    background: #e5f0ff;
    flex-shrink: 0;
}

.login-feature-icon svg {
    width: 15px;
    height: 15px;
}

.login-feature-card h2 {
    margin: 0;
    font-size: 16px;
    line-height: 1.2;
    font-weight: 700;
    color: #1a1a1a;
}

.login-feature-card p {
    margin: 2px 0 0;
    font-size: 13px;
    color: #8c8c8c;
}

.login-card {
    margin-top: 70px;
    background: #ffffff;
    border: 1px solid #e0e3e8;
    border-radius: 14px;
    padding: 20px 24px 24px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}

.login-tabs {
    display: flex;
    gap: 16px;
    border-bottom: 1px solid #e0e3e8;
    margin-bottom: 18px;
}

.login-tabs__item {
    border: 0;
    background: transparent;
    padding: 0 0 10px;
    font-size: 16px;
    font-weight: 600;
    color: #8c8c8c;
    cursor: pointer;
}

.login-tabs__item.is-active {
    color: #006aff;
    border-bottom: 2px solid #006aff;
}

.login-form {
    width: 100%;
}

.login-field {
    display: block;
    margin-bottom: 12px;
    position: relative;
}

.login-input {
    width: 100%;
    height: 44px;
    border: 1px solid #e0e3e8;
    border-radius: 12px;
    background: #f6f7f9;
    padding: 0 38px 0 36px;
    font-size: 16px;
    color: #1a1a1a;
    box-sizing: border-box;
    outline: none;
}

.login-input::placeholder {
    color: #9ca1a8;
}

.login-input-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    color: #9ca1a8;
    pointer-events: none;
}

.login-input-icon svg {
    width: 16px;
    height: 16px;
}

.login-input:focus {
    border-color: #006aff;
    background: #ffffff;
}

.login-eye-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
    border: 0;
    padding: 0;
    background: transparent;
    color: #9ca1a8;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.login-eye-btn svg {
    width: 15px;
    height: 15px;
}

.login-eye-btn__closed {
    display: none;
}

.login-eye-btn.is-visible .login-eye-btn__open {
    display: none;
}

.login-eye-btn.is-visible .login-eye-btn__closed {
    display: block;
}

.login-forgot-wrap {
    display: flex;
    justify-content: flex-end;
    margin: 0 0 12px;
}

.login-forgot {
    color: #006aff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}

.login-btn {
    width: 100%;
    height: 44px;
    border: 0;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    background: #006aff;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 106, 255, 0.25);
}

.login-btn:hover {
    background: #0057d9;
}

.login-divider {
    margin: 10px 0;
    text-align: center;
    font-size: 16px;
    color: #9ca1a8;
    font-weight: 600;
}

.login-google-btn {
    width: 100%;
    height: 44px;
    border-radius: 12px;
    border: 1px solid #e0e3e8;
    background: #ffffff;
    color: #1a1a1a;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.login-google-btn:hover {
    background: #f6f7f9;
}

.login-google-icon {
    display: inline-flex;
    width: 18px;
    height: 18px;
    align-items: center;
    justify-content: center;
}

.login-google-icon svg {
    width: 18px;
    height: 18px;
}

.login-alert {
    margin-bottom: 12px;
    border-radius: 10px;
    border: 1px solid #f9dede;
    background: #fff6f6;
    color: #f24646;
    padding: 8px 10px;
    font-size: 13px;
}

.login-logged {
    margin-bottom: 12px;
    border-radius: 10px;
    border: 1px solid #d9e8ff;
    background: #eff6ff;
    color: #006aff;
    padding: 8px 10px;
    font-size: 13px;
}

.login-logged a {
    color: #006aff;
    font-weight: 700;
    text-decoration: none;
}

.dashboard-center {
    min-height: 100dvh;
    display: grid;
    place-items: center;
    margin: 0;
    background: #ffffff;
    color: #0f172a;
}

.dashboard-center .dashboard-card {
    background: #fff;
    border: 1px solid #e9eef7;
    border-radius: 16px;
    padding: 28px 32px;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
    max-width: 680px;
    width: calc(100% - 32px);
}

.dashboard-title {
    margin: 0 0 10px;
    font-size: 30px;
    line-height: 1.2;
}

.dashboard-text {
    margin: 0;
    color: #475569;
    line-height: 1.6;
}

.list-page {
    display: grid;
    gap: 16px;
}

.list-page__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.list-page__title {
    margin: 0;
    font-size: 30px;
    line-height: 1.2;
}

.list-page__create {
    border-radius: 10px;
    padding: 10px 14px;
    color: #ffffff;
    background: #0d6efd;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}

.table-card {
    background: #ffffff;
    border: 1px solid #e9eef7;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.table-actions {
    display: inline-flex;
    gap: 8px;
}

.table-link {
    color: #0d6efd;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
}

.table-link:hover {
    text-decoration: underline;
}

.tabulator {
    border: 0;
    font-size: 14px;
    background: #ffffff;
    color: #1a1a1a;
}

.tabulator .tabulator-header {
    border-bottom: 1px solid #e0e3e8;
    background: #eef1f4;
}

.tabulator .tabulator-header .tabulator-col {
    background: transparent;
    border-right: 1px solid #e0e3e8;
}

.tabulator .tabulator-header .tabulator-col .tabulator-col-content {
    padding: 10px 12px;
}

.tabulator .tabulator-header .tabulator-col-title {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
}

.tabulator .tabulator-row {
    border-bottom: 1px solid #e0e3e8;
    min-height: 44px;
}

.tabulator .tabulator-row .tabulator-cell {
    padding: 10px 12px;
    border-right: 1px solid #f1f2f5;
    color: #1a1a1a;
    display: inline-flex;
    align-items: center;
}

.tabulator .tabulator-row:hover {
    background: #f6f7f9;
}

.tabulator .tabulator-header .tabulator-col .tabulator-header-filter input {
    height: 30px;
    border: 1px solid #cbd0d6;
    border-radius: 8px;
    padding: 0 8px;
    font-size: 12px;
    color: #1a1a1a;
    background: #ffffff;
}

.tabulator .tabulator-footer {
    border-top: 1px solid #e0e3e8;
    background: #ffffff;
    padding: 6px 8px;
}

.tabulator .tabulator-footer .tabulator-page {
    border: 1px solid #cbd0d6;
    background: #ffffff;
    color: #1a1a1a;
    border-radius: 8px;
    min-width: 28px;
    height: 28px;
    line-height: 26px;
    font-size: 12px;
}

.tabulator .tabulator-footer .tabulator-page.active {
    border-color: #006aff;
    background: #d9e8ff;
    color: #006aff;
}

.tabulator .tabulator-footer .tabulator-page-size {
    border: 1px solid #cbd0d6;
    border-radius: 8px;
    background: #ffffff;
    color: #1a1a1a;
    height: 28px;
    font-size: 12px;
}

.detail-page {
    display: grid;
    gap: 16px;
}

.detail-page__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.detail-page__title {
    margin: 0;
    font-size: 30px;
    line-height: 1.2;
}

.detail-page__actions {
    display: inline-flex;
    gap: 8px;
    flex-wrap: wrap;
}

.detail-btn {
    border-radius: 10px;
    padding: 10px 14px;
    color: #ffffff;
    background: #0d6efd;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}

.detail-btn--muted {
    color: #334155;
    background: #e2e8f0;
}

.detail-card {
    background: #ffffff;
    border: 1px solid #e9eef7;
    border-radius: 16px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
    overflow: hidden;
}

.detail-row {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    border-bottom: 1px solid #f1f5f9;
}

.detail-row:last-child {
    border-bottom: 0;
}

.detail-label {
    padding: 14px 16px;
    background: #f8fafc;
    color: #334155;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.detail-value {
    padding: 14px 16px;
    color: #0f172a;
    font-size: 14px;
}

.detail-role-list {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.detail-role-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    border: 1px solid #d9e6ff;
    background: #eaf1ff;
    color: #1d4ed8;
    font-size: 12px;
    font-weight: 700;
    padding: 5px 10px;
    line-height: 1;
}

.detail-empty {
    color: #64748b;
}

.detail-delete form {
    margin: 0;
}

.entity-form-card {
    background: #ffffff;
    border: 1px solid #e9eef7;
    border-radius: 16px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
    padding: 18px;
    display: grid;
    gap: 14px;
}

.entity-form-grid {
    display: grid;
    gap: 12px;
}

.entity-form-card .form-label,
.entity-form-card label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 6px;
}

.entity-form-card input[type="email"],
.entity-form-card input[type="password"],
.entity-form-card input[type="text"],
.entity-form-card textarea,
.entity-form-card select {
    width: 100%;
    border: 1px solid #dbe4f1;
    border-radius: 12px;
    padding: 10px 12px;
    font-size: 14px;
    color: #0f172a;
    box-sizing: border-box;
}

.entity-form-card input:focus,
.entity-form-card textarea:focus,
.entity-form-card select:focus {
    outline: none;
    border-color: #0d6efd;
    box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.14);
}

.entity-form-card .form-text {
    font-size: 12px;
    color: #64748b;
}

.entity-form-card .form-error-message,
.entity-form-card .invalid-feedback {
    color: #b91c1c;
    font-size: 12px;
    margin-top: 4px;
}

.category-form-card {
    margin-top: 12px;
}

.category-form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.category-form-grid > div:last-child {
    grid-column: 1 / -1;
}

.category-form-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.category-form-card__head h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
}

.category-spec-fields {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 12px;
}

.category-spec-fields__item {
    border: 1px solid #e0e3e8;
    border-radius: 12px;
    padding: 12px;
    display: grid;
    gap: 10px;
}

.category-spec-fields__item-body > div {
    display: grid;
    gap: 10px;
}

.category-form-actions {
    margin-top: 14px;
}

.products-page {
    --p-green-tag: #d1efdb;
    --p-green: #19c56c;
    --p-red: #f24646;
    --p-red-bg: #f9dede;
    --p-yellow: #f7c84d;
    --p-orange: #e59a2f;
    --p-orange-tag: #f6deba;
    --p-blue: #006aff;
    --p-blue-tag: #d9e8ff;
    --p-blue-bg: #e5f0ff;
    --p-text-primary: #1a1a1a;
    --p-text-secondary: #8c8c8c;
    --p-gray-bg-light: #f6f7f9;
    --p-gray-bg-dark: #eef1f4;
    --p-gray-divider: #e0e3e8;
    --p-gray-input: #cbd0d6;
    --p-gray-button: #9ca1a8;
    --p-white: #ffffff;
    --p-yellow-tag: #ffe4ab;
    --p-neutral-tag: #e6e3da;
    --p-blue-hover: #0057d9;
    --p-green-hover: #16b05f;
    --p-red-hover: #c93434;
    --p-black-bg: #333333;
    /* AI score dots (drawer cards + tabulator column) */
    --p-ai-dot-high: #16a34a;
    --p-ai-dot-mid: #ca8a04;
    --p-ai-dot-low: #ea580c;
    --p-ai-dot-very-low: #dc2626;
    --p-condition-tag-bg: #f4d9d4;
    --p-active-filters-bg: #f8f8f8;
    --p-active-filters-border: #e0e0e0;
    --p-active-filter-chip-bg: #4a4a4a;
    --p-active-filter-chip-hover: #3d3d3d;
    --p-clear-all-muted: #888888;
    display: grid;
    gap: 14px;
}

/* Product edit/new: full width inside app-main padding */
.products-page--form {
    width: 100%;
    max-width: none;
    margin-left: -32px;
    margin-right: -32px;
    padding-left: 32px;
    padding-right: 32px;
    box-sizing: border-box;
}

.products-page__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.products-page__title {
    margin: 0;
    color: var(--p-text-primary);
    font-size: 24px;
    font-weight: 700;
    line-height: 1.2;
}

.products-page__subtitle {
    margin: 4px 0 0;
    color: var(--p-text-primary);
    font-size: 14px;
}

.products-page__top-actions {
    display: inline-flex;
    gap: 8px;
}

.products-btn {
    border: 1px solid transparent;
    border-radius: 9px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    background: var(--p-white);
    color: var(--p-text-primary);
    cursor: pointer;
    text-decoration: none;
}

.products-toolbar__actions button span {
    font-weight: 100;
}

.products-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.products-btn--muted {
    background: var(--p-gray-bg-light);
    border-color: var(--p-gray-input);
}

.products-btn--ghost {
    background: var(--p-white);
    border-color: var(--p-gray-input);
    color: var(--p-text-primary);
}

.products-btn--primary {
    background: var(--p-blue);
    border-color: var(--p-blue);
    color: var(--p-white);
}

.products-btn--danger {
    background: var(--p-white);
    border-color: var(--p-red);
    color: var(--p-red);
}

.products-card {
    background: var(--p-white);
    border: 1px solid var(--p-gray-divider);
    border-radius: 12px;
    padding: 16px;
    display: grid;
    gap: 14px;
    box-shadow: 0 1px 0 rgba(16, 24, 40, 0.02);
}

.products-page--form .products-page__subtitle {
    max-width: 560px;
}

.products-editor {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 310px;
    gap: 18px;
    align-items: start;
}

.products-editor__main {
    display: grid;
    gap: 14px;
}

.products-editor__aside {
    display: grid;
    gap: 12px;
    position: sticky;
    top: 12px;
}

.products-form-card {
    background: #ffffff;
    border: 1px solid #e0e3e8;
    border-radius: 14px;
    padding: 18px;
    display: grid;
    gap: 16px;
}

.products-form-card__header h2 {
    margin: 0;
    color: #1a1a1a;
    font-size: 16px;
    font-weight: 700;
}

.products-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.products-form-group {
    min-width: 0;
}

.products-form-group--full {
    grid-column: 1 / -1;
}

.products-form-card label {
    display: block;
    margin-bottom: 6px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #8c8c8c;
}

.products-form-card input,
.products-form-card select,
.products-form-card textarea {
    width: 100%;
    border: 1px solid #cbd0d6;
    border-radius: 8px;
    padding: 9px 10px;
    background: #ffffff;
    color: #1a1a1a;
    box-sizing: border-box;
    font-size: 14px;
}

.products-form-card textarea {
    resize: vertical;
    min-height: 84px;
}

.products-form-card .form-error-message,
.products-form-card .invalid-feedback {
    color: #b91c1c;
    font-size: 12px;
    margin-top: 4px;
}

.products-form-delete {
    display: flex;
    justify-content: flex-end;
}

.products-form-footer {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding-top: 4px;
}

.products-upload-placeholder {
    border: 1px dashed #cbd0d6;
    border-radius: 10px;
    min-height: 96px;
    display: grid;
    place-items: center;
    gap: 8px;
    padding: 12px;
    background: #fafbfc;
    text-align: center;
}

.products-upload-placeholder p {
    margin: 0;
    color: #8c8c8c;
    font-size: 12px;
}

.products-preview-card {
    border: 1px solid #e0e3e8;
    border-radius: 12px;
    background: #ffffff;
    overflow: hidden;
}

.products-preview-card__header {
    padding: 10px 12px;
    border-bottom: 1px solid #e0e3e8;
    color: #1a1a1a;
    font-size: 13px;
}

.products-preview-card__body {
    padding: 12px;
    color: #8c8c8c;
    font-size: 12px;
    line-height: 1.45;
}

.products-checklist {
    margin: 0;
    padding: 10px 12px 12px 28px;
    display: grid;
    gap: 8px;
    color: #1a1a1a;
    font-size: 12px;
}

.product-form__layout {
    display: grid;
    /* Figma @1440 (sidebar collapsed): middle 864px, right 496px "including gap" */
    grid-template-columns: minmax(0, 1264px) minmax(0, 480px);
    gap: 16px;
    align-items: start;
    width: 100%;
}

@media (max-width: 1540px) {
    .product-form__layout {
        grid-template-columns: minmax(0, 1fr) 420px;
    }
}

@media (max-width: 1360px) {
    .product-form__layout {
        grid-template-columns: minmax(0, 1fr) 360px;
    }
}

.product-form__main,
.product-form__main form {
    display: grid;
    gap: 24px;
    min-width: 0;
}

.product-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px 16px;
    flex-wrap: wrap;
    width: 100%;
}

.product-form-top {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.product-top__lead {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    min-width: 0;
    flex: 1 1 200px;
}

.product-top__actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.product-top__action-form {
    margin: 0;
    display: inline;
}

.product-top__action-btn.products-btn--icon {
    gap: 8px;
}

.product-top__back {
    width: 32px;
    height: 32px;
    color: #1a1a1a;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
}

.product-top__back-icon {
    width: 16px;
    height: 16px;
    display: block;
    object-fit: contain;
}

.product-top__title {
    margin: 0;
    font-size: 24px;
    line-height: 1.2;
    color: #1a1a1a;
    font-weight: 700;
}

.product-top__meta {
    margin-top: 8px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.product-pill {
    height: 20px;
    border-radius: 999px;
    background: #e6e3da;
    color: #1a1a1a;
    font-size: 14px;
    font-weight: 400;
    padding: 4px 14px;
    display: inline-flex;
    align-items: center;
}

.product-meta {
    color: #8c8c8c;
    font-size: 14px;
}

.product-score {
    height: 26px;
    border-radius: 999px;
    border: 1px solid #d5dae1;
    color: #1a1a1a;
    font-size: 14px;
    font-weight: 400;
    padding: 0 10px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #ffffff;
}

.product-score__value {
    font-weight: 700;
}

.product-score__dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #9ca1a8;
    flex-shrink: 0;
}

.product-score.is-high .product-score__dot {
    background: #19c56c;
}

.product-score.is-medium .product-score__dot {
    background: #f59e0b;
}

.product-score.is-low .product-score__dot {
    background: #ef4444;
}

.product__aside {
    display: grid;
    gap: 10px;
    position: sticky;
    top: 10px;
    min-width: 0;
}

.product-card {
    background: #ffffff;
    border: 1px solid #e0e3e8;
    border-radius: 10px;
    padding: 32px;
    display: grid;
    gap: 10px;
}

.product-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.product-card__head h2 {
    margin: 0;
    font-size: 18px;
    color: #1a1a1a;
    font-weight: 600;
}

.product-card__head span,
.product-card__head a {
    font-size: 11px;
    color: #8c8c8c;
    text-decoration: none;
}

.product-card__head a {
    color: #006aff;
    font-weight: 600;
}

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

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

.product-field--full {
    grid-column: 1 / -1;
}

/* Visual separator between "Product title" and EAN/Category row */
.product-grid--basic > .product-field--full {
    padding-bottom: 16px;
    margin-bottom: 16px;
    border-bottom: 1px solid #e0e3e8;
}

.product-field label {
    display: block;
    margin-bottom: 4px;
    font-size: 14px;
    font-weight: 400;
    text-transform: none;
    color: #8c8c8c;
}

.product-field input,
.product-field select,
.product-field textarea {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #cbd0d6;
    border-radius: 7px;
    background: #ffffff;
    color: #1a1a1a;
    padding: 7px 9px;
    font-size: 14px;
    min-height: 40px;
}

.product-field textarea {
    min-height: 120px;
    resize: vertical;
}

.product-grid--price {
    gap: 10px;
}

.product-field--price label {
    margin-bottom: 6px;
}

.product-price-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 6px;
}

.product-price-head label {
    margin-bottom: 0;
}

.product-price-input {
    position: relative;
}

.product-price-input__prefix {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    line-height: 1;
    color: #4b5563;
    pointer-events: none;
}

.product-price-input input {
    padding-left: 32px;
}

.product-price-help {
    margin: 6px 0 0;
    font-size: 12px;
    color: #111827;
}

.product-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(168px, 168px));
    gap: 8px;
    padding: 8px;
    border: 1px dashed #cbd0d6;
    border-radius: 8px;
    background: #fcfcfd;
}

.product-gallery--small {
    grid-template-columns: repeat(auto-fill, minmax(168px, 168px));
}

.product-gallery__item {
    width: 168px;
    height: 168px;
    aspect-ratio: auto;
    border: 1px dashed #d7dde6;
    border-radius: 6px;
    background: #ffffff;
    position: relative;
    overflow: hidden;
}

.product-gallery__item--filled {
    border-style: solid;
    border-color: #d5dae1;
    background: #f6f7f9;
}

.product-gallery__add {
    width: 168px;
    height: 168px;
    aspect-ratio: auto;
    border: 1px dashed #99b7e8;
    border-radius: 6px;
    background: #ffffff;
    color: #006aff;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.product-gallery__thumb {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    -webkit-user-drag: none;
    user-drag: none;
}

.product-gallery__remove,
.product-gallery__refresh {
    position: absolute;
    width: 18px;
    height: 18px;
    border-radius: 999px;
    border: 1px solid #d5dae1;
    background: rgba(255, 255, 255, 0.96);
    color: #1a1a1a;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    line-height: 1;
    cursor: pointer;
    z-index: 2;
}

.product-gallery__reorder {
    position: absolute;
    top: 6px;
    left: 6px;
    width: 22px;
    height: 22px;
    border-radius: 4px;
    border: 1px solid #d5dae1;
    background: rgba(255, 255, 255, 0.96);
    color: #5b6573;
    font-size: 11px;
    line-height: 1;
    letter-spacing: -2px;
    cursor: grab;
    touch-action: none;
    user-select: none;
    -webkit-user-drag: element;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    padding: 0;
}

.product-gallery__reorder:active {
    cursor: grabbing;
}

.product-gallery__item.is-dragging {
    opacity: 0.55;
}

.product-gallery__item.is-drop-target {
    outline: 2px solid #006aff;
    outline-offset: 2px;
}

.product-gallery__remove {
    top: 6px;
    right: 6px;
}

.product-gallery__refresh {
    right: 6px;
    bottom: 6px;
}

.product-gallery__label {
    position: absolute;
    left: 6px;
    bottom: 6px;
    height: 18px;
    padding: 0 6px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid #d5dae1;
    color: #1a1a1a;
    font-size: 10px;
    font-weight: 600;
    line-height: 16px;
}

.product-gallery__item:not(.is-main) .product-gallery__label {
    display: none;
}

.product-help {
    margin: 0;
    border-radius: 6px;
    background: #f6f7f9;
    color: #64748b;
    padding: 6px 8px;
    font-size: 11px;
}

.product-help--callout {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 10px 0 0;
    padding: 12px 14px;
    border-radius: 8px;
    background: #e1edff;
    color: #1a1a1a;
    font-size: 12px;
    box-sizing: border-box;
}

.product-help--callout__icon {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    object-fit: contain;
    display: block;
}

.product-help--callout__body {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.product-help--callout__primary {
    margin: 0;
    font-size: 13px;
    line-height: 1.35;
    color: #1a1a1a;
}

.product-help--callout__note {
    margin: 0;
    font-size: 11px;
    line-height: 1.4;
    color: #334155;
}

.product-help--callout__link {
    color: #006aff;
    font-weight: 600;
    text-decoration: none;
}

.product-help--callout__link:hover {
    text-decoration: underline;
}

.product-card__subsection {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #e8ebef;
}

.product-card__head--sub {
    margin-bottom: 4px;
}

.product-card__subhead {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
}

.product-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.product-tag {
    border: 1px solid #d5dae1;
    background: #ffffff;
    color: #4b5563;
    border-radius: 6px;
    min-height: 40px;
    height: 40px;
    padding: 5px 10px;
    font-size: 14px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-align: left;
}

.product-tag.is-active {
    border-color: #bde3cb;
    background: #ebf8ef;
    color: #166534;
}

.product-tag::before {
    content: "";
    width: 12px;
    height: 12px;
    border-radius: 999px;
    border: 1px solid #cbd0d6;
    background: #ffffff;
    flex-shrink: 0;
    box-sizing: border-box;
}

.product-tag.is-active::before {
    border-color: #18c56c;
    background: radial-gradient(circle at center, #18c56c 0 3px, #ffffff 3px);
}

.product-tag span {
    font-size: 14px;
}

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

.product-package {
    border: 1px solid #d5dae1;
    border-radius: 8px;
    background: #ffffff;
    min-height: 70px;
    display: grid;
    gap: 5px;
    padding: 10px 10px 10px 28px;
    position: relative;
    text-align: left;
    cursor: pointer;
}

.product-package::before {
    content: "";
    position: absolute;
    left: 10px;
    top: 12px;
    width: 12px;
    height: 12px;
    border-radius: 999px;
    border: 1px solid #cbd0d6;
    background: #ffffff;
    box-sizing: border-box;
}

.product-package.is-active {
    border-color: #bde3cb;
    background: #ebf8ef;
}

.product-package.is-active::before {
    border-color: #18c56c;
    background: radial-gradient(circle at center, #18c56c 0 3px, #ffffff 3px);
}

.product-package strong {
    font-size: 14px;
    color: #1a1a1a;
    line-height: 1.2;
    font-weight: 400;
}

.product-package span {
    font-size: 12px;
    color: #64748b;
    line-height: 1.3;
}

.product-status-list {
    display: grid;
    gap: 0;
}

.product-status-row {
    display: grid;
    gap: 8px;
}

/* Add separators only between status rows, never at the end */
.product-status-row + .product-status-row {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e0e3e8;
}

.product-status-row__head {
    display: flex;
    align-items: center;
    gap: 8px;
}

.product-status-row__icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.product-status-row__label {
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #1a1a1a;
}

.product-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.product-actions__btn {
    height: 40px;
    border-radius: 8px;
    padding: 0 10px;
    font-size: 14px;
}

.product-side-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    padding: 20px;
    display: grid;
    gap: 12px;
    font-family: "Open Sans", sans-serif;
    color: #0f172a;
}

.product-side-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.product-side-card__head strong {
    font-family: "Open Sans", sans-serif;
    font-weight: 600;
    font-size: 16px;
    color: #0f172a;
}

.product-side-card__head--toggle {
    cursor: pointer;
}

.product-side-card__chevron {
    font-size: 13px;
    color: #6b7280;
    transition: transform 0.16s ease;
}

.product-side-card__head--toggle[aria-expanded="true"]
    .product-side-card__chevron {
    transform: rotate(180deg);
}

.product-side-card__info {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 1px solid #d1d5db;
    color: #9ca3af;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: "Open Sans", sans-serif;
    font-size: 12px;
    font-weight: 600;
}

.product-checklist {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 8px;
}

.product-checklist__item {
    border: 1px solid #e5e7eb;
    background: #ffffff;
    border-radius: 10px;
    padding: 12px 14px;
    box-sizing: border-box;
}

.product-checklist__title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.product-checklist__title {
    font-family: "Open Sans", sans-serif;
    font-weight: 600;
    font-size: 14px;
    color: #0f172a;
}

.product-checklist__check {
    color: #22c55e;
    font-size: 18px;
    line-height: 1;
    display: none;
}

.product-checklist__desc {
    display: none;
    margin: 4px 0 0;
    font-family: "Open Sans", sans-serif;
    font-size: 12px;
    color: #6b7280;
}

.product-checklist__item.is-complete {
    border-color: #bbf7d0;
    background: #f0fdf4;
}

.product-checklist__item.is-complete .product-checklist__check {
    display: inline-block;
}

.product-checklist__item.is-complete .product-checklist__desc {
    display: block;
}

.product-checklist__item--no-desc .product-checklist__desc {
    display: none !important;
}

.product-side-card__btn {
    width: 100%;
    border-radius: 10px;
    padding: 14px;
    font-family: "Open Sans", sans-serif;
    font-size: 15px;
    box-sizing: border-box;
    cursor: pointer;
}

.product-side-card__btn--publish {
    border: 0;
    background: #22c55e;
    color: #ffffff;
    font-weight: 600;
}

.product-side-card__btn--publish:hover:not(:disabled) {
    background: #16a34a;
}

.product-side-card__btn--publish:disabled {
    background: #22c55e;
    opacity: 0.35;
    cursor: not-allowed;
}

.product-side-card__btn--draft {
    margin-top: 8px;
    border: 1.5px solid #e5e7eb;
    background: #ffffff;
    color: #374151;
    font-weight: 500;
}

.product-side-card__btn--draft:hover {
    background: #f9fafb;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.product-form-errors {
    border: 1px solid #f0a8a8;
    background: #fff5f5;
    color: #9b1c1c;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 12px;
    margin-bottom: 12px;
}

.product-form-errors .alert,
.product-form-errors ul {
    margin: 0;
    padding-left: 1.1em;
}

.product-card__head--spread {
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.product-card--condition > .product-card__head--spread,
.product-card__subsection .product-card__head--spread {
    margin-bottom: 14px;
}

.product-card__head-title {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    min-width: 0;
}

.product-card__head-title h2 {
    margin: 0;
}

.product-card__head-tools {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 11px;
    flex-shrink: 0;
}

.product-info-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 1px solid #c5cad3;
    color: #64748b;
    font-size: 10px;
    font-weight: 700;
    font-style: italic;
    cursor: default;
}

.product-info-icon-img {
    display: block;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    object-fit: contain;
    cursor: pointer;
}

.product-info-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.product-info-modal-overlay {
    /* Modal is outside .products-page — define tokens here so buttons work */
    --p-blue: #006aff;
    --p-blue-hover: #0057d9;
    --p-white: #ffffff;
    --p-text-primary: #1a1a1a;
    --p-text-secondary: #8c8c8c;
    --p-blue-tag: #d9e8ff;
    --p-gray-divider: #e0e3e8;
    --p-gray-bg-light: #f6f7f9;
    --p-red: #f24646;
    --p-red-bg: #f9dede;
    position: fixed;
    inset: 0;
    z-index: 2200;
    background: rgba(17, 24, 39, 0.65);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.product-info-modal-overlay[hidden] {
    display: none !important;
}

.product-info-modal {
    width: min(760px, calc(100vw - 32px));
    max-height: min(88vh, 760px);
    background: #f2f4f7;
    border: 1px solid #d0d6df;
    border-radius: 14px;
    overflow: hidden;
    display: grid;
    grid-template-rows: auto 1fr;
}

.product-info-modal__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border-bottom: 1px solid #d0d6df;
}

.product-info-modal__head h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #202329;
}

.product-info-modal__close {
    border: 0;
    background: transparent;
    color: #202329;
    font-size: 40px;
    line-height: 1;
    padding: 0;
    cursor: pointer;
}

.product-info-modal__body {
    overflow: auto;
    padding: 14px 18px 18px;
    color: #2a2a2a;
}

.product-info-modal__item {
    margin-bottom: 14px;
}

.product-info-modal__item-title {
    font-weight: 600;
    font-size: 14px;
    line-height: 1.22;
}

.product-info-modal__item-desc {
    font-size: 14px;
    line-height: 1.25;
}

.product-info-modal__group {
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #d0d6df;
}

.product-info-modal__group:last-child {
    border-bottom: 0;
    margin-bottom: 0;
    padding-bottom: 0;
}

.product-info-modal__group-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #202329;
}

.product-info-modal__group-line {
    margin-bottom: 6px;
    font-size: 14px;
}

.product-info-modal__group-line strong {
    font-weight: 800;
}

.product-info-modal__group-line span {
    margin-left: 6px;
}

.product-info-modal__foot {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    align-items: center;
    padding: 12px 18px;
    border-top: 1px solid #d0d6df;
    background: #f2f4f7;
}

.product-info-modal--add.product-info-modal {
    max-height: min(92vh, 640px);
    border-radius: 12px;
}

.product-info-modal--add .product-info-modal__head {
    padding: 16px 18px;
}

.product-info-modal--add .product-info-modal__head h3 {
    font-size: 24px;
    font-weight: 600;
    line-height: 1.1;
}

.product-add-modal__title-dots {
    display: inline-block;
    width: 1.1em;
    text-align: left;
}

.product-add-modal__title-dots[hidden] {
    display: none;
}

.product-add-modal__title-dots span {
    display: inline-block;
    animation: product-add-modal-title-dot 1.2s ease-in-out infinite;
    opacity: 0.25;
}

.product-add-modal__title-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.product-add-modal__title-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes product-add-modal-title-dot {
    0%,
    60%,
    100% {
        opacity: 0.2;
        transform: translateY(0);
    }
    30% {
        opacity: 1;
        transform: translateY(-2px);
    }
}

.product-info-modal--add .product-info-modal__close {
    width: 32px;
    height: 32px;
    font-size: 34px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.product-info-modal--add .product-info-modal__body {
    padding: 16px 18px 20px;
    background-color: white;
}

.product-add-modal__pane[hidden] {
    display: none !important;
}

.product-add-modal__processing[hidden],
.product-add-modal__error-wrap[hidden],
.product-add-modal__empty[hidden],
[data-product-add-confirm-content][hidden] {
    display: none !important;
}

.product-add-modal__hint {
    margin: 0;
    font-size: 12px;
    line-height: 1.35;
    color: #6b7280;
}

.product-add-modal__next {
    margin: 0;
    padding: 14px;
    border-radius: 8px;
    background: #f2f4f7;
    border: 1px solid #e5e7eb;
}

.product-add-modal__next-title {
    margin: 0 0 12px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    color: #2f343b;
}

.product-add-modal__next-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 12px;
}

.product-add-modal__next-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.product-add-modal__next-num {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--p-blue);
    color: var(--p-white);
    font-size: 12px;
    font-weight: 700;
    line-height: 22px;
    text-align: center;
}

.product-add-modal__next-body {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.product-add-modal__next-label {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    color: #2f343b;
}

.product-add-modal__next-desc {
    margin: 0;
    font-size: 12px;
    line-height: 1.4;
    color: #6b7280;
}

.product-info-modal--add .product-add-modal__search.products-btn--icon img {
    filter: brightness(0) invert(1);
}

.product-add-modal__intro {
    margin: 0 0 14px;
    font-size: 14px;
    line-height: 1.4;
    color: #2a2a2a;
}

.product-add-modal__form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.product-add-modal__field {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.product-info-modal--add .product-add-modal__field .product-label {
    font-size: 15px;
    font-weight: 500;
    color: #2f343b;
}

.product-info-modal--add .products-input {
    min-height: 48px;
    border-radius: 8px;
    border: 1px solid #c9cfd8;
    background: white;
    font-size: 18px;
    font-weight: bold;
}

.product-add-modal__ean-row {
    margin-top: 0;
}

.product-add-modal__divider {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 2px 0 0;
    color: #6b7280;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.product-add-modal__divider::before,
.product-add-modal__divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #d0d6df;
}

.product-add-modal__error {
    margin: 0;
    align-self: center;
    max-width: 100%;
    padding: 8px 14px;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.4;
    text-align: center;
    color: #f24646;
    background: #fff6f6;
    border: 1px solid #f9dede;
    border-radius: 999px;
}

.product-add-modal__actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 2px;
}

.product-add-modal__actions--stack {
    flex-direction: column;
    align-items: stretch;
    margin-top: 12px;
}

.product-add-modal__preview .product-add-modal__actions--stack {
    margin-top: 4px;
}

.product-info-modal--add
    .product-add-modal__preview
    .product-add-modal__choose.products-btn--primary {
    background: #006aff;
    border-color: #006aff;
    color: #ffffff;
    width: 100%;
    min-height: 40px;
    border-radius: 8px;
}

.product-info-modal--add
    .product-add-modal__preview
    .product-add-modal__choose.products-btn--primary:hover {
    background: #0057d9;
    border-color: #0057d9;
    color: #ffffff;
}

.product-add-modal__actions--secondary {
    margin-top: 0;
}

.product-add-modal__search {
    width: 100%;
    min-height: 40px;
    border-radius: 8px;
}

.product-add-modal__manual {
    width: 100%;
    min-height: 40px;
    border-radius: 8px;
}

.product-add-modal__processing {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    min-height: 320px;
}

.product-add-modal__processing-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 8px 0 20px;
    text-align: center;
}

.product-add-modal__processing-icon {
    position: relative;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 4px;
}

.product-add-modal__processing-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 3px solid #e5e7eb;
    border-top-color: var(--p-blue);
    animation: product-add-modal-spin 0.9s linear infinite;
}

.product-add-modal__processing-icon-img {
    position: relative;
    z-index: 1;
    width: 18px;
    height: 18px;
    object-fit: contain;
}

.product-add-modal__processing-step {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    padding: 5px 12px;
    border-radius: 999px;
    background: #d9e8ff;
    background: var(--p-blue-tag);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
    color: var(--p-blue);
}

.product-add-modal__processing-step img {
    width: 14px;
    height: 14px;
    object-fit: contain;
}

.product-add-modal__processing-copy {
    width: 100%;
    max-width: 300px;
    min-height: 58px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin-top: 4px;
}

.product-add-modal__processing-title {
    margin: 0;
    max-width: 280px;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.3;
    color: #1a1a1a;
    transition: opacity 0.4s ease;
}

.product-add-modal__processing-subtitle {
    margin: 0;
    max-width: 280px;
    font-size: 14px;
    line-height: 1.4;
    color: #6b7280;
    max-height: 1.5em;
    overflow: hidden;
    opacity: 1;
    transition:
        opacity 0.4s ease,
        max-height 0.4s ease;
}

.product-add-modal__processing-subtitle.is-collapsed {
    max-height: 0;
    opacity: 0;
}

.product-add-modal__processing-copy.is-text-fading
    .product-add-modal__processing-title,
.product-add-modal__processing-copy.is-text-fading
    .product-add-modal__processing-subtitle {
    opacity: 0;
}

.product-add-modal__processing-ean {
    margin: 6px 0 0;
    padding: 8px 14px;
    border-radius: 999px;
    background: #f2f4f7;
    border: 1px solid #e5e7eb;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    color: #2f343b;
    letter-spacing: 0.02em;
}

.product-add-modal__processing-ean:empty {
    display: none;
}

.product-add-modal__processing-foot {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding-top: 8px;
}

.product-add-modal__progress-bar {
    height: 4px;
    border-radius: 999px;
    background: #e5e7eb;
    overflow: hidden;
}

.product-add-modal__progress-bar-fill {
    display: block;
    width: var(--progress-pct, 0%);
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(
        90deg,
        var(--p-blue) 0%,
        #3d8bff 55%,
        var(--p-blue) 100%
    );
    background-size: 200% 100%;
    transition: width 0.85s cubic-bezier(0.33, 1, 0.68, 1);
    animation: product-add-modal-progress-shine 2.2s ease-in-out infinite;
}

@keyframes product-add-modal-progress-shine {
    0% {
        background-position: 100% 0;
    }
    100% {
        background-position: -100% 0;
    }
}

.product-add-modal__step-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.product-add-modal__step-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #006aff;
    background-color: var(--p-blue);
    transform: scale(0.85);
}

/* Primary dots — smooth wave, one peak per third (no overlap) */
.product-add-modal__step-dots.is-animating .product-add-modal__step-dot {
    animation: product-add-modal-dot-wave 1.85s ease-in-out infinite;
}

.product-add-modal__step-dots.is-animating
    .product-add-modal__step-dot:nth-child(2) {
    animation-delay: 0.617s;
}

.product-add-modal__step-dots.is-animating
    .product-add-modal__step-dot:nth-child(3) {
    animation-delay: 1.233s;
}

@keyframes product-add-modal-dot-wave {
    0%,
    33.333%,
    100% {
        transform: scale(0.85);
    }
    9% {
        transform: scale(1.12);
    }
    18% {
        transform: scale(1.3);
    }
    27% {
        transform: scale(1.12);
    }
}

@keyframes product-add-modal-spin {
    to {
        transform: rotate(360deg);
    }
}

.product-add-modal__error-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    min-height: 120px;
    text-align: center;
}

.product-add-modal__error-msg {
    margin: 0;
    font-size: 14px;
    color: #b42318;
}

.product-add-modal__empty-text {
    margin: 0 0 8px;
    font-size: 14px;
    line-height: 1.4;
    color: #2a2a2a;
    text-align: center;
}

.product-add-modal__results-intro,
.product-add-modal__preview-intro {
    margin: 0 0 12px;
    font-size: 14px;
    line-height: 1.4;
    color: #2a2a2a;
}

.product-add-modal__preview {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 14px;
    margin-bottom: 12px;
    background: #fff;
    border: 1px solid #d0d6df;
    border-radius: 10px;
}

.product-add-modal__preview-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
}

.product-add-modal__preview-title {
    margin: 0;
    flex: 1 1 auto;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
    color: #1a1a1a;
    color: var(--p-text-primary);
}

.product-add-modal__preview-layout {
    display: grid;
    grid-template-columns: minmax(140px, 320px) minmax(0, 1fr);
    gap: 14px;
    align-items: start;
}

@media (max-width: 560px) {
    .product-add-modal__preview-layout {
        grid-template-columns: 1fr;
    }
}

.product-add-modal__preview-media {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 8px;
    min-width: 0;
    align-items: start;
}

.product-add-modal__preview-media--empty {
    grid-template-columns: 1fr;
    min-height: 160px;
    background: #f6f7f9;
    background: var(--p-gray-bg-light);
    border: 1px solid #e0e3e8;
    border: 1px solid var(--p-gray-divider);
    border-radius: 8px;
}

.product-add-modal__preview-main {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    width: 100%;
    aspect-ratio: 1 / 1;
    background: transparent;
    border-radius: 8px;
    overflow: hidden;
}

.product-add-modal__preview-main-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-add-modal__preview-thumbs {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 56px;
}

.product-add-modal__preview-thumb {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    width: 56px;
    height: 56px;
    flex: 0 0 56px;
    background: #f6f7f9;
    background: var(--p-gray-bg-light);
    border: 2px solid #e0e3e8;
    border: 2px solid var(--p-gray-divider);
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
}

.product-add-modal__preview-thumb.is-active {
    border-color: #006aff;
    border-color: var(--p-blue);
}

.product-add-modal__preview-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none;
}

.product-add-modal__preview-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
}

.product-add-modal__preview-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 12px;
}

.product-add-modal__preview-field {
    display: flex;
    flex-direction: column;
    gap: 0;
    min-width: 0;
    overflow: hidden;
    border: 1px solid #e0e3e8;
    border: 1px solid var(--p-gray-divider);
    border-radius: 8px;
}

.product-add-modal__preview-field-label {
    font-size: 11px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #8c8c8c;
    color: var(--p-text-secondary);
    padding: 8px 12px;
    background: #f6f7f9;
    background: var(--p-gray-bg-light);
}

.product-add-modal__preview-field-value {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.3;
    color: #1a1a1a;
    color: var(--p-text-primary);
    word-break: break-word;
    padding: 10px 12px;
    background: #ffffff;
    background: var(--p-white);
}

.product-add-modal__preview-confidence {
    flex: 0 0 auto;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.4;
    text-transform: capitalize;
    color: #374151;
    background: #f3f4f6;
    border-radius: 999px;
}

.product-add-modal__preview-confidence--high {
    color: #166534;
    background: #dcfce7;
}

.product-add-modal__preview-confidence--medium {
    color: #92400e;
    background: #fef3c7;
}

.product-add-modal__preview-confidence--low {
    color: #991b1b;
    background: #fee2e2;
}

.product-add-modal__preview-spec-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.product-add-modal__preview-spec-badge {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    max-width: 100%;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.35;
    color: #1a1a1a;
    color: var(--p-text-primary);
    background: #d9e8ff;
    background: var(--p-blue-tag);
    border-radius: 999px;
}

.product-add-modal__preview-spec-badge-label {
    font-weight: 600;
    color: #8c8c8c;
    color: var(--p-text-secondary);
}

.product-add-modal__preview-desc {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
    color: #1a1a1a;
    color: var(--p-text-primary);
}

.product-add-modal__preview-missing {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.product-add-modal__preview-missing-label {
    font-size: 11px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #8c8c8c;
    color: var(--p-text-secondary);
}

.product-add-modal__preview-missing-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.product-add-modal__preview-missing-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.35;
    color: #c93434;
    color: var(--p-red-hover, #c93434);
    background: #f9dede;
    background: var(--p-red-bg);
    border: 1px solid #f24646;
    border: 1px solid var(--p-red);
    border-radius: 999px;
}

.product-add-modal__results {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 12px;
}

@media (max-width: 900px) {
    .product-add-modal__results {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 520px) {
    .product-add-modal__results {
        grid-template-columns: 1fr;
    }
}

.product-add-modal__card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 10px;
    background: #fff;
    border: 1px solid #d0d6df;
    border-radius: 10px;
    min-width: 0;
}

.product-add-modal__card-media {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100px;
    background: #e8eaef;
    border-radius: 8px;
    overflow: hidden;
}

.product-add-modal__card-img {
    display: block;
    width: 100%;
    max-height: 120px;
    object-fit: contain;
}

.product-add-modal__card-img--placeholder {
    width: 100%;
    min-height: 100px;
    background: linear-gradient(135deg, #e5e7eb, #f3f4f6);
}

.product-add-modal__card-title {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.25;
    color: #202329;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-add-modal__card-ean {
    margin: 0;
    font-size: 12px;
    color: #6b7280;
}

.product-add-modal__choose-form {
    margin-top: auto;
}

.product-add-modal__choose {
    width: 100%;
}

.product-add-modal__none {
    width: 100%;
    margin-top: 4px;
}

.product-ai-modal-missing-list {
    margin: 0;
    padding-left: 20px;
}

.product-ai-modal-confirm-text,
.product-ai-modal-loading,
.product-ai-modal-error {
    margin: 0;
    font-size: 14px;
    line-height: 1.4;
    color: #2a2a2a;
}

.product-ai-modal-error {
    color: #b42318;
}

.product-ai-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 0;
    background: transparent;
    padding: 0;
    cursor: pointer;
    color: #006aff;
    text-decoration: none;
    font-weight: 600;
    font-size: 12px;
}

.product-ai-link__icon {
    display: block;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    object-fit: contain;
}

.product-form-notice {
    border: 1px solid #d4dbe5;
    background: #f8fafc;
}

.product-form-notice[data-level="error"] {
    border-color: #f0a8a8;
    background: #fff5f5;
    color: #9b1c1c;
}

.product-form-notice[data-level="warning"] {
    border-color: #facc15;
    background: #fffbeb;
    color: #854d0e;
}

.product-form-notice[data-level="info"] {
    border-color: #bfdbfe;
    background: #eff6ff;
    color: #1e3a8a;
}

.product-ai-link:hover {
    text-decoration: underline;
    color: #0052cc;
}

.product-card__head-note {
    font-size: 11px;
    color: #64748b;
    font-weight: 400;
}

.product-gallery-hint--defect {
    margin-bottom: 8px;
}

.product-gallery-hint {
    margin: 0 0 8px;
    font-size: 11px;
    color: #64748b;
}

.product-ean-row {
    position: relative;
    display: block;
}

.product-ean-row__input {
    width: 100%;
    min-width: 0;
    padding-right: 44px;
}

.product-ean-scan {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    border: 0;
    background: #f2f4f7;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.product-ean-scan:hover {
    border-color: #18c56c;
    background: #ebf8ef;
}

.product-ean-scan__icon {
    font-size: 16px;
    line-height: 1;
    img {
        padding-top: 1px;
    }
}

.product-category-specs-mount {
    display: grid;
    gap: 10px;
}

.product-category-specs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 16px;
}

@media (max-width: 640px) {
    .product-category-specs {
        grid-template-columns: 1fr;
    }
}

.product-category-specs__row {
    display: grid;
    gap: 4px;
}

.product-req {
    color: #c02626;
}

.product-category-specs__multi {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 12px;
}

@media (max-width: 640px) {
    .product-category-specs__multi {
        grid-template-columns: 1fr;
    }
}

.product-checkbox-label {
    font-size: 12px;
    color: #334155;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

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

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

@media (max-width: 520px) {
    .product-condition-grid {
        grid-template-columns: 1fr;
    }
}

.product-condition-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    text-align: left;
    min-height: 40px;
    height: 40px;
    padding: 6px 12px;
    border-radius: 10px;
    border: 1px solid #e0e3e8;
    background: #ffffff;
    cursor: pointer;
    font: inherit;
    color: #1a1a1a;
    transition:
        border-color 0.15s ease,
        background 0.15s ease;
}

.product-condition-card:hover {
    border-color: #c5cad3;
}

.product-condition-card.is-active {
    border-color: #7dd3a0;
    background: #ebf8ef;
}

.product-condition-card__radio {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin-top: 2px;
    border-radius: 50%;
    border: 2px solid #b8bec8;
    box-sizing: border-box;
    position: relative;
}

.product-condition-card.is-active .product-condition-card__radio {
    border-color: #18c56c;
}

.product-condition-card.is-active .product-condition-card__radio::after {
    content: "";
    position: absolute;
    inset: 3px;
    border-radius: 50%;
    background: #18c56c;
}

.product-condition-card__label {
    font-size: 14px;
    line-height: 1.1;
    color: #1a1a1a;
}

.product-condition-card.is-disabled {
    opacity: 0.35;
    cursor: not-allowed;
    pointer-events: none;
}

.product-condition-card.is-disabled:hover {
    border-color: #e0e3e8;
    background: #ffffff;
}

.product-condition-card.is-locked {
    border-color: #bbf7d0;
    background: #f0fdf4;
    cursor: default;
}

.product-condition-card.is-locked:hover {
    border-color: #bbf7d0;
    background: #f0fdf4;
}

.product-status-rule-notice {
    border: 1px solid #bbf7d0;
    background: #f0fdf4;
    color: #166534;
    border-radius: 8px;
    padding: 8px 10px;
    font-size: 12px;
    font-weight: 600;
    opacity: 0;
    transform: translateY(-4px);
    transition:
        opacity 0.2s ease,
        transform 0.2s ease;
}

.product-status-rule-notice.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.product-actions .products-btn--primary {
    background: #19c56c;
    border-color: #19c56c;
    color: #ffffff;
}

.product-tag:focus-visible,
.product-package:focus-visible,
.product-condition-card:focus-visible,
.product-gallery__remove:focus-visible,
.product-gallery__refresh:focus-visible,
.product-gallery__add:focus-visible,
.product-ean-scan:focus-visible,
.product-ai-link:focus-visible {
    outline: 2px solid #006aff;
    outline-offset: 2px;
}

.product-actions .products-btn--primary:hover {
    background: #16b05f;
    border-color: #16b05f;
}

@media (max-width: 1200px) {
    .product-form__layout {
        grid-template-columns: 1fr;
    }

    .product__aside {
        position: static;
    }
}

.products-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 12px;
    padding-bottom: 2px;
}

/* Equal flexible columns; min-width:0 prevents overlap / “under” neighbors in flex */
.products-filters__field-wrap,
.products-filters > .products-input-icon {
    flex: 1 1 14rem;
    min-width: 0;
    max-width: 100%;
}

.products-filters__field-wrap {
    position: relative;
}

.products-filters__field-wrap .products-input,
.products-filters__field-wrap select.products-input {
    width: 100%;
    min-width: 0;
    max-width: 100%;
}

.products-filters__field-wrap--category .products-category-filter {
    position: relative;
    width: 100%;
    min-width: 0;
    max-width: 100%;
}

.products-category-filter__trigger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    min-height: 40px;
    text-align: left;
    justify-content: flex-start;
    cursor: pointer;
    box-sizing: border-box;
}

.products-category-filter__trigger-label {
    flex: 1;
    min-width: 0;
    text-align: left;
}

.products-category-filter__trigger-chevron {
    flex-shrink: 0;
    opacity: 0.55;
    transition: transform 0.2s ease;
}

.products-category-filter__trigger[aria-expanded="true"]
    .products-category-filter__trigger-chevron {
    transform: rotate(180deg);
}

.products-category-filter__panel {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    min-width: min(100%, 320px);
    width: max(100%, 280px);
    max-width: min(400px, 96vw);
    max-height: 360px;
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 8px 0 6px;
    background: var(--p-white);
    border: 1px solid var(--p-gray-divider);
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(16, 24, 40, 0.14);
    z-index: 1250;
}

.products-category-filter__panel[hidden] {
    display: none !important;
}

.products-category-filter__search {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 10px 8px;
    padding: 0 10px;
    border: 1px solid var(--p-gray-input);
    border-radius: 9px;
    background: var(--p-white);
}

.products-category-filter__search-icon {
    flex-shrink: 0;
    opacity: 0.65;
}

.products-category-filter__search-input {
    flex: 1;
    min-width: 0;
    border: 0;
    padding: 9px 0;
    font-size: 13px;
    font-family: inherit;
    outline: none;
    background: transparent;
}

.products-category-filter__scroller {
    flex: 1;
    min-height: 0;
    overflow: auto;
    max-height: 280px;
    padding: 2px 6px 6px;
}

.products-category-filter__row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 8px 7px 0;
    border-radius: 8px;
    cursor: pointer;
    min-width: 0;
}

.products-category-filter__row:hover {
    background: var(--p-gray-bg-light);
}

.products-category-filter__cb {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    accent-color: var(--p-blue);
    cursor: pointer;
    /* Clicks go to the row handler only — avoids native checkbox toggle racing programmatic sync. */
    pointer-events: none;
}

.products-category-filter__label {
    flex: 1;
    min-width: 0;
    font-size: 13px;
    font-weight: 400;
    color: var(--p-text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.products-category-filter__label.is-parent {
    font-weight: 700;
}

.product-category-picker__native {
    display: none !important;
}

.product-field .products-category-filter {
    position: relative;
    width: 100%;
    min-width: 0;
    z-index: 20;
}

.product-field .products-category-filter__trigger {
    color: #1a1a1a;
}

.product-field .products-category-filter__trigger-label,
.product-field .products-category-filter__label {
    color: #1a1a1a;
}

.product-field .products-category-filter__panel {
    z-index: 1300;
}

/* Form label/input defaults override dropdown search internals; restore intended inline search row */
.product-field .products-category-filter__search {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 10px 8px;
    padding: 0 10px;
}

.product-field .products-category-filter__search-icon {
    width: 16px;
    height: 16px;
}

.product-field .products-category-filter__search-input {
    width: auto;
    min-height: 0;
    border: 0;
    border-radius: 0;
    padding: 9px 0;
    font-size: 13px;
    background: transparent;
}

/* Override broad .product-field input styles for tree checkbox rows */
.product-field .products-category-filter__cb {
    width: 18px;
    min-width: 18px;
    max-width: 18px;
    min-height: 18px;
    height: 18px;
    margin: 0;
    padding: 0;
    border: 1px solid #c5c9d4;
    border-radius: 5px;
    background: var(--p-white);
    box-sizing: border-box;
}

.products-filters__field-clear {
    position: absolute;
    top: 50%;
    right: 8px;
    transform: translateY(-50%);
    width: 26px;
    height: 26px;
    padding: 0;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--p-text-secondary);
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* `display: flex` above wins over the HTML hidden attribute otherwise */
.products-filters__field-clear[hidden] {
    display: none !important;
}

.products-filters__field-clear:hover {
    background: var(--p-gray-bg-light);
    color: var(--p-text-primary);
}

.products-filters__field-clear--in-icon {
    right: 6px;
}

.products-input--has-clear {
    padding-right: 36px;
}

.products-input-icon--clearable .products-input--with-icon {
    padding-right: 40px;
}

.products-filters__actions {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
    margin-left: auto;
    align-self: center;
}

@media (max-width: 1100px) {
    .products-filters__actions {
        flex: 1 1 100%;
        margin-left: 0;
        justify-content: flex-start;
    }
}

.products-filters__actions-divider {
    width: 1px;
    align-self: stretch;
    min-height: 24px;
    margin: 0 2px;
    background: var(--p-gray-divider);
    flex-shrink: 0;
}

.products-filters__more-wrap {
    position: relative;
    display: inline-flex;
}

.products-filters__more-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--p-red);
    color: var(--p-white);
    font-size: 11px;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
    box-sizing: border-box;
    pointer-events: none;
}

.products-filters__active-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 15px;
    box-sizing: border-box;
    background: var(--p-active-filters-bg);
    border: 1px solid var(--p-active-filters-border);
    border-radius: 10px;
}

/* Author `display: flex` must not override the HTML hidden attribute */
.products-filters__active-row[hidden] {
    display: none !important;
}

.products-filters__clear-all[hidden] {
    display: none !important;
}

.products-filters__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    flex: 1;
    min-width: 0;
}

.products-filters__chip {
    border: 0;
    border-radius: 999px;
    padding: 5px 6px 5px 12px;
    font-size: 12px;
    font-weight: 600;
    color: var(--p-white);
    background: var(--p-active-filter-chip-bg);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    max-width: 100%;
}

.products-filters__chip:hover {
    background: var(--p-active-filter-chip-hover);
}

.products-filters__chip-x {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    line-height: 0;
    pointer-events: none;
}

.products-filters__chip-x img {
    width: 16px;
    height: 16px;
    display: block;
    object-fit: contain;
}

.products-filters__clear-all {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    padding: 4px 0 4px 12px;
    border: 0;
    border-left: 1px solid #dddddd;
    background: transparent;
    font-size: 13px;
    font-weight: 500;
    color: var(--p-clear-all-muted);
    cursor: pointer;
    text-decoration: none;
    flex-shrink: 0;
}

.products-filters__clear-all:hover {
    color: #666666;
}

.products-filters__clear-all-x {
    font-size: 16px;
    font-weight: 600;
    line-height: 1;
    color: inherit;
}

.products-more-filters-overlay {
    position: fixed;
    inset: 0;
    background: rgba(17, 24, 39, 0.55);
    z-index: 1100;
}

.products-more-filters {
    position: fixed;
    top: 0;
    right: 0;
    width: min(540px, 92vw);
    height: 100vh;
    background: var(--p-white);
    border-left: 1px solid var(--p-gray-divider);
    box-shadow: -8px 0 30px rgba(0, 0, 0, 0.12);
    display: grid;
    grid-template-rows: auto 1fr auto;
    transform: translateX(100%);
    transition: transform 0.22s ease;
    z-index: 1110;
}

.products-more-filters.is-open {
    transform: translateX(0);
}

.products-more-filters__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid var(--p-gray-divider);
    background: var(--p-gray-bg-light);
}

.products-more-filters__head strong {
    font-size: 20px;
    line-height: 1;
    margin: 0;
}

.products-more-filters__close {
    border: 0;
    background: transparent;
    font-size: 28px;
    line-height: 1;
    color: var(--p-text-secondary);
    cursor: pointer;
}

.products-more-filters__body {
    padding: 14px 16px;
    overflow: auto;
    display: grid;
    gap: 0;
}

.products-more-filters__group {
    display: grid;
    gap: 8px;
    padding-bottom: 14px;
    margin-bottom: 14px;
    border-bottom: 1px solid var(--p-gray-divider);
}

.products-more-filters__group:last-of-type {
    border-bottom: 0;
    margin-bottom: 0;
    padding-bottom: 0;
}

.products-more-filters .product-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--p-text-primary);
    margin: 0;
}

.products-more-filters__chips--ai,
.products-more-filters__market-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.products-more-filters__ai-label,
.products-more-filters__market-label {
    border: 1px solid var(--p-gray-divider);
    border-radius: 8px;
    box-sizing: border-box;
    cursor: pointer;
    margin: 0;
}

.products-more-filters__ai-label {
    min-height: 48px;
    padding: 8px 10px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 12px;
    font-weight: 400;
    color: #1f2937;
    overflow: hidden;
}

.products-more-filters__ai-label:has(input:checked),
.products-more-filters__market-label:has(input:checked) {
    border-color: var(--p-blue);
}

.products-more-filters__ai-label:focus-within {
    outline: 2px solid rgba(0, 106, 255, 0.35);
    outline-offset: 1px;
}

.products-more-filters__ai-label input {
    margin-top: 3px;
    flex-shrink: 0;
}

.products-more-filters__ai-option {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    min-width: 0;
    flex: 1;
    overflow: hidden;
    border-radius: 6px;
}

.products-more-filters__ai-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.products-more-filters__ai-range {
    font-size: 12px;
    font-weight: 600;
    color: var(--p-text-primary);
}

.products-more-filters__ai-hint {
    font-size: 11px;
    font-weight: 400;
    color: var(--p-text-secondary);
    line-height: 1.25;
}

.products-more-filters__ai-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 3px;
    margin-left: auto;
}

.products-more-filters__ai-dot--high {
    background: var(--p-ai-dot-high);
}

.products-more-filters__ai-dot--mid {
    background: var(--p-ai-dot-mid);
}

.products-more-filters__ai-dot--low {
    background: var(--p-ai-dot-low);
}

.products-more-filters__ai-dot--very-low {
    background: var(--p-ai-dot-very-low);
}

.products-more-filters__market-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 400;
    color: #1f2937;
    min-height: 36px;
    padding: 6px 8px;
}

.products-more-filters__market-label--span2 {
    grid-column: 1 / -1;
}

.products-more-filters__custom-market {
    grid-column: 1 / -1;
    margin-top: 4px;
}

.products-more-filters__custom-hint {
    margin: 0 0 8px;
    font-size: 11px;
    color: var(--p-text-secondary);
    line-height: 1.35;
}

.products-more-filters__date-row {
    display: grid;
    grid-template-columns: auto 1fr auto 1fr;
    gap: 8px 10px;
    align-items: center;
}

.products-more-filters__date-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--p-text-primary);
}

.products-more-filters__select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("../icons/product-form/arrow-down-01-sharp-E0HFJnl.svg");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 14px 14px;
    padding-right: 32px;
}

.products-more-filters__price-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.products-more-filters__price-grid--sep {
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 8px;
}

.products-more-filters__price-sep {
    font-size: 14px;
    font-weight: 500;
    color: var(--p-text-secondary);
    line-height: 1;
    user-select: none;
}

.products-more-filters__foot {
    border-top: 1px solid var(--p-gray-divider);
    padding: 12px 16px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    background: var(--p-gray-bg-light);
}

body.products-more-filters-open {
    overflow: hidden;
}

.products-input {
    height: 38px;
    border: 1px solid var(--p-gray-input);
    border-radius: 8px;
    padding: 0 11px;
    font-size: 13px;
    color: var(--p-text-primary);
    background: var(--p-white);
    box-sizing: border-box;
}

.products-input-icon {
    position: relative;
    display: block;
}

.products-input-icon__svg {
    position: absolute;
    left: 11px;
    top: 50%;
    width: 16px;
    height: 16px;
    transform: translateY(-50%);
    pointer-events: none;
    opacity: 0.72;
}

.products-input--with-icon {
    width: 100%;
    padding-left: 34px;
}

.products-input::placeholder {
    color: var(--p-text-secondary);
}

.products-input--compact {
    min-width: 140px;
    width: auto;
}

.products-btn--icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.products-btn--icon img {
    width: 16px;
    height: 16px;
    object-fit: contain;
    display: block;
}

.products-filters__active-row:not([hidden]) + .products-tabs {
    border-top: 0;
}

.products-tabs {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    gap: 18px;
    align-items: flex-end;
    border-top: 1px solid var(--p-gray-divider);
    border-bottom: 1px solid var(--p-gray-divider);
    padding: 10px 0 0;
    box-sizing: border-box;
    position: relative;
}

.products-tab {
    border: 0;
    border-radius: 0;
    min-height: 30px;
    padding: 0 0 10px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    color: var(--p-text-secondary);
    font-size: 14px;
    font-weight: 400;
    cursor: pointer;
    position: relative;
}

.products-tab::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 1px;
    background: var(--p-gray-divider);
    z-index: 0;
}

.products-tab.is-active {
    color: var(--p-blue);
    background: transparent;
}

.products-tab.is-active::after {
    height: 3px;
    background: var(--p-blue);
    z-index: 1;
    border-radius: 2px 2px 0 0;
}

.products-tab__count {
    background: var(--p-gray-divider);
    color: var(--p-text-secondary);
    border-radius: 999px;
    min-width: 22px;
    height: 20px;
    line-height: 20px;
    font-size: 11px;
    font-weight: 700;
    text-align: center;
    padding: 0 6px;
}

.products-tab.is-active .products-tab__count {
    background: var(--p-blue);
    color: var(--p-white);
}

.products-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    padding: 10px 0;
    margin-top: 4px;
    border-top: 1px solid var(--p-gray-divider);
    border-bottom: 1px solid var(--p-gray-divider);
}

.products-toolbar__left {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.products-toolbar__bulk-wrap {
    position: relative;
    flex-shrink: 0;
}

.products-toolbar__bulk {
    display: inline-flex;
    align-items: stretch;
    overflow: hidden;
    background: var(--p-white);
    flex-shrink: 0;
}

.products-toolbar__select-all {
    width: 18px;
    height: 18px;
    margin: 9px 0 9px 10px;
    cursor: pointer;
    flex-shrink: 0;
    appearance: none;
    border: 1px solid #c5c9d4;
    border-radius: 5px;
    background: var(--p-white);
    position: relative;
    transition:
        border-color 0.15s ease,
        background 0.15s ease,
        box-shadow 0.15s ease;
}

.products-toolbar__select-all:checked {
    background: #19c56c;
    border-color: #19c56c;
    box-shadow: 0 1px 2px rgba(25, 197, 108, 0.35);
}

.products-toolbar__select-all:checked::after {
    content: "";
    position: absolute;
    left: 4px;
    top: 1px;
    width: 5px;
    height: 9px;
    border: solid var(--p-white);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.products-toolbar__select-all:indeterminate {
    background: #e8f9ef;
    border-color: #19c56c;
}

.products-toolbar__select-all:indeterminate::after {
    content: "";
    position: absolute;
    left: 3px;
    right: 3px;
    top: 50%;
    height: 2px;
    margin-top: -1px;
    background: #19c56c;
    border-radius: 1px;
}

.products-toolbar__bulk-chevron {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
    border: 0;
    background: var(--p-white);
    cursor: pointer;
    color: var(--p-text-secondary);
}

.products-toolbar__meta {
    font-size: 14px;
    font-weight: 400;
    color: var(--p-text-primary);
}

.products-toolbar__meta strong {
    font-weight: 700;
}

.products-toolbar__per-wrap {
    font-weight: 400;
    color: var(--p-text-secondary);
}

.products-toolbar__actions {
    display: inline-flex;
    gap: 10px;
    align-items: center;
}

.products-toolbar__status-wrap {
    position: relative;
}

.products-toolbar__status-menu {
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    min-width: 180px;
    padding: 6px;
    background: var(--p-white);
    border: 1px solid var(--p-gray-divider);
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(16, 24, 40, 0.12);
    z-index: 1250;
}

.products-toolbar__select-menu {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    min-width: 220px;
    padding: 6px;
    background: var(--p-white);
    border: 1px solid var(--p-gray-divider);
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(16, 24, 40, 0.12);
    z-index: 1250;
}

.products-toolbar__select-item {
    display: block;
    width: 100%;
    text-align: left;
    border: 0;
    border-radius: 8px;
    padding: 9px 12px;
    font-size: 14px;
    font-weight: 400;
    color: var(--p-text-primary);
    background: transparent;
    cursor: pointer;
}

.products-toolbar__select-item:hover {
    background: var(--p-gray-bg-light);
}

.products-toolbar__status-item {
    display: block;
    width: 100%;
    text-align: left;
    border: 0;
    border-radius: 8px;
    padding: 9px 12px;
    font-size: 14px;
    font-weight: 400;
    color: var(--p-text-primary);
    background: transparent;
    cursor: pointer;
}

.products-toolbar__bulk-chevron:hover,
.products-toolbar__status-item:hover {
    background: var(--p-gray-bg-light);
}

.products-delete-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(17, 24, 39, 0.55);
}

.products-delete-modal-overlay[hidden] {
    display: none !important;
}

.products-delete-modal {
    position: relative;
    width: min(400px, 100%);
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 24px 48px rgba(16, 24, 40, 0.18);
    padding: 24px 24px 20px;
    z-index: 1210;
}

.products-delete-modal__close {
    position: absolute;
    top: 12px;
    right: 14px;
    border: 0;
    background: transparent;
    font-size: 26px;
    line-height: 1;
    color: var(--p-text-secondary);
    cursor: pointer;
    padding: 4px;
}

.products-delete-modal__warn {
    display: flex;
    align-items: flex-start;
    gap: 0;
    padding: 12px 14px;
    margin: -8px -8px 16px;
    background: #fdecef;
    border: 1px solid #f9c6d0;
    border-radius: 12px;
}

.products-delete-modal__warn[hidden] {
    display: none !important;
}

.products-delete-modal__warn-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.products-delete-modal__warn-rule {
    width: 1px;
    align-self: stretch;
    min-height: 40px;
    margin: 0 12px;
    background: #f5b5c4;
    flex-shrink: 0;
}

.products-delete-modal__warn-copy {
    min-width: 0;
    flex: 1;
}

.products-delete-modal__warn-title {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #b4233c;
    margin: 0 0 4px;
}

.products-delete-modal__warn-text {
    margin: 0;
    font-size: 13px;
    line-height: 1.4;
    color: #9f2d47;
}

.products-delete-modal__body {
    text-align: center;
    padding: 8px 0 4px;
}

.products-delete-modal__icon {
    display: block;
    margin: 0 auto 16px;
}

.products-delete-modal__title {
    font-size: 18px;
    font-weight: 700;
    color: var(--p-text-primary);
    margin: 0 0 8px;
    line-height: 1.3;
}

.products-delete-modal__subtitle {
    font-size: 14px;
    color: var(--p-text-secondary);
    margin: 0;
    line-height: 1.4;
}

.products-delete-modal__actions {
    display: flex;
    gap: 12px;
    margin-top: 22px;
}

.products-delete-modal__btn {
    flex: 1;
    justify-content: center;
    min-height: 44px;
}

.products-toast-mount {
    position: fixed;
    left: 50%;
    top: 28px;
    transform: translateX(-50%);
    z-index: 1220;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    pointer-events: none;
    max-width: min(560px, calc(100vw - 32px));
}

.products-toast {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    border-radius: 999px;
    box-shadow: 0 12px 32px rgba(16, 24, 40, 0.2);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
    color: var(--p-white);
    pointer-events: auto;
    cursor: pointer;
    opacity: 0;
    transform: translateY(8px);
    transition:
        opacity 0.2s ease,
        transform 0.2s ease;
}

.products-toast.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.products-toast--error {
    background: #f24646;
}

.products-toast--success {
    background: #19c56c;
}

.products-toast__text {
    text-align: left;
}

.products-table.tabulator {
    border: 1px solid var(--p-gray-divider);
    border-radius: 14px;
    overflow: hidden;
    background: var(--p-white);
    color: var(--p-text-primary);
    font-size: 13px;
}

.products-table.tabulator .tabulator-header {
    background: var(--p-gray-bg-light);
    border-bottom: 1px solid var(--p-gray-divider);
}

.products-table.tabulator .tabulator-header .tabulator-col {
    border-right: 0;
    background: transparent;
    min-height: 38px;
    display: inline-flex;
    align-items: center;
}

.products-table.tabulator .tabulator-header .tabulator-col-title {
    color: var(--p-text-primary);
    font-weight: 600;
    font-size: 14px;
}

.products-table.tabulator .tabulator-row {
    background: var(--p-white);
}

.products-table.tabulator .tabulator-row.tabulator-row-even {
    background: var(--p-white);
}

.products-table.tabulator .tabulator-row .tabulator-cell {
    vertical-align: top;
    padding: 11px 12px;
    border-right: 0;
    border-bottom: 1px solid var(--p-gray-divider);
    display: inline-flex;
    align-items: flex-start;
}

/* Row-selection column: centered like toolbar bulk checkbox; same 18px green tile styling */
.products-table.tabulator
    .tabulator-header
    .tabulator-col:first-child
    .tabulator-col-content {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-left: 6px;
    padding-right: 6px;
}

.products-table.tabulator .tabulator-row .tabulator-cell:first-child {
    justify-content: center;
    align-items: center;
    padding: 11px 6px;
}

.products-table.tabulator
    .tabulator-row
    .tabulator-cell
    input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
    flex-shrink: 0;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    border: 1px solid #c5c9d4;
    border-radius: 5px;
    background: var(--p-white);
    position: relative;
    transition:
        border-color 0.15s ease,
        background 0.15s ease,
        box-shadow 0.15s ease;
}

.products-table.tabulator
    .tabulator-row
    .tabulator-cell
    input[type="checkbox"]:checked {
    background: #19c56c;
    border-color: #19c56c;
    box-shadow: 0 1px 2px rgba(25, 197, 108, 0.35);
}

.products-table.tabulator
    .tabulator-row
    .tabulator-cell
    input[type="checkbox"]:checked::after {
    content: "";
    position: absolute;
    left: 4px;
    top: 1px;
    width: 5px;
    height: 9px;
    border: solid var(--p-white);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.products-table.tabulator .tabulator-row:last-child .tabulator-cell {
    border-bottom: 0;
}

.products-table.tabulator .tabulator-row.tabulator-selected {
    background: var(--p-blue-bg);
}

.products-table.tabulator .tabulator-row:hover {
    background: var(--p-gray-bg-light);
}

.products-table.tabulator .tabulator-footer {
    border-top: 1px solid var(--p-gray-divider);
    background: var(--p-white);
    padding: 8px 10px;
}

.products-table.tabulator .tabulator-footer .tabulator-page-size,
.products-table.tabulator .tabulator-footer .tabulator-page {
    border: 1px solid var(--p-gray-input);
    border-radius: 7px;
    background: var(--p-white);
    font-size: 12px;
}

.products-table.tabulator .tabulator-footer .tabulator-page-size {
    height: 28px;
    color: var(--p-text-primary);
}

.products-table.tabulator .tabulator-footer .tabulator-page {
    min-width: 26px;
    height: 26px;
    line-height: 24px;
    color: var(--p-text-secondary);
}

.products-table.tabulator .tabulator-footer .tabulator-page.active {
    border-color: var(--p-blue);
    background: var(--p-blue-tag);
    color: var(--p-blue);
}

.products-table.tabulator .tabulator-placeholder {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--p-white);
    color: var(--p-text-secondary);
    font-size: 14px;
    font-weight: 600;
}

.products-table__product {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.products-table__image {
    width: 119px;
    height: 119px;
    object-fit: contain;
    border-radius: 8px;
    border: 1px solid #e0e3e8;
    flex-shrink: 0;
}

.products-table__image--placeholder {
    background: #f6f7f9;
}

.products-table__title {
    color: var(--p-blue);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 3px;
}

.products-table__title a,
.products-table__title a:visited,
.products-table__title a:hover,
.products-table__title a:active {
    color: inherit;
    text-decoration: none;
}

.products-table__meta {
    color: var(--p-text-primary);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.57;
}

.products-table__meta-value {
    font-weight: 700;
}

.products-table__condition-tag {
    display: inline-flex;
    align-items: center;
    margin-top: 6px;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    background: var(--p-condition-tag-bg);
    color: #000;
    border: 1px solid transparent;
    max-width: 100%;
}

.products-table__ai-score {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 500;
    color: var(--p-text-primary);
}

.products-ai-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.products-ai-dot--high {
    background: var(--p-ai-dot-high);
}

.products-ai-dot--mid {
    background: var(--p-ai-dot-mid);
}

.products-ai-dot--low {
    background: var(--p-ai-dot-low);
}

.products-ai-dot--very-low {
    background: var(--p-ai-dot-very-low);
}

.products-table__price-pill {
    display: inline-block;
    min-width: 3.5em;
    padding: 4px 10px;
    border-radius: 8px;
    border: 1px solid var(--p-gray-input);
    background: var(--p-gray-bg-light);
    font-size: 13px;
    font-weight: 500;
    color: var(--p-text-primary);
    text-align: right;
    box-sizing: border-box;
}

.products-table__diff--negative {
    color: #dc2626;
    border-color: #fca5a5;
    background: #fff1f2;
}

/* Custom Sale price editor: keep same pill look while editing */
.products-table.tabulator
    .tabulator-row
    .tabulator-cell[tabulator-field="salePrice"].tabulator-editing {
    background: transparent;
    border: 0;
    padding: 11px 12px;
}

.products-table__price-pill--editing {
    display: inline-flex;
    align-items: center;
    min-width: 3.5em;
    height: 28px;
    padding: 0 8px;
    border-radius: 8px;
    border: 1px solid var(--p-gray-input);
    background: var(--p-gray-bg-light);
    box-sizing: border-box;
}

.products-table__price-inline-input {
    width: 58px;
    border: 0;
    background: transparent;
    color: var(--p-text-primary);
    font-size: 13px;
    font-weight: 500;
    font-family: "Open Sans", sans-serif;
    line-height: 1;
    text-align: right;
    outline: none;
}

.products-status-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 3px 11px;
    font-size: 12px;
    font-weight: 500;
    border: 1px solid transparent;
}

.products-status-badge--draft {
    background: var(--p-neutral-tag);
    color: var(--p-text-primary);
}

.products-status-badge--preparing {
    background: var(--p-yellow-tag);
    color: var(--p-text-primary);
}

.products-status-badge--active {
    background: var(--p-green-tag);
    color: var(--p-text-primary);
}

.products-status-badge--suspended {
    background: var(--p-red-bg);
    color: var(--p-text-primary);
}

.products-status-badge--sold {
    background: var(--p-blue-tag);
    color: var(--p-text-primary);
}

.products-page__top-actions .products-btn--muted {
    background: var(--p-black-bg);
    border-color: var(--p-black-bg);
    color: var(--p-white);
}

.products-filters .products-btn--muted,
.products-toolbar__actions .products-btn--muted {
    background: var(--p-gray-bg-light);
    border-color: var(--p-gray-input);
    color: var(--p-text-primary);
}

/* Toolbar bulk actions: subtler corners than default .products-btn */
.products-toolbar__actions .products-btn {
    border-radius: 5px;
    padding: 6px 12px;
    border: 2px solid #e0e3e8;
}

.products-toolbar__actions .products-btn span {
    font-weight: 600;
}

.products-input:focus,
.products-btn:focus,
.products-tab:focus {
    outline: none;
}

.products-input:focus-visible,
.products-btn:focus-visible,
.products-tab:focus-visible {
    border-color: var(--p-blue);
    box-shadow: 0 0 0 3px rgba(0, 106, 255, 0.18);
}

.products-table.tabulator
    .tabulator-col:is(
        [tabulator-field="aiScore"],
        [tabulator-field="originalPrice"],
        [tabulator-field="salePrice"],
        [tabulator-field="marketSince"],
        [tabulator-field="status"],
        [tabulator-field="sellerLabel"],
        [tabulator-field="listingType"],
        [tabulator-field="actions"]
    )
    .tabulator-col-title {
    width: 100%;
    text-align: center;
}

.products-table.tabulator
    .tabulator-row
    .tabulator-cell:is(
        [tabulator-field="aiScore"],
        [tabulator-field="originalPrice"],
        [tabulator-field="salePrice"],
        [tabulator-field="marketSince"],
        [tabulator-field="status"],
        [tabulator-field="sellerLabel"],
        [tabulator-field="listingType"],
        [tabulator-field="actions"]
    ) {
    justify-content: center;
    text-align: center;
    align-items: center;
}

.products-table.tabulator .tabulator-loader {
    background: rgba(255, 255, 255, 0.74);
}

.products-table.tabulator .tabulator-loader-msg {
    border: 1px solid var(--p-gray-divider);
    border-radius: 8px;
    background: var(--p-white);
    color: var(--p-text-primary);
}

.products-btn--primary:hover {
    background: var(--p-blue-hover);
    border-color: var(--p-blue-hover);
}

.products-btn--danger:hover {
    color: var(--p-red-hover);
    border-color: var(--p-red-hover);
}

.products-page__top-actions .products-btn--muted:hover {
    background: var(--p-text-primary);
    border-color: var(--p-text-primary);
}

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

    .detail-label {
        border-bottom: 1px solid #f1f5f9;
    }

    .products-page__header {
        flex-direction: column;
    }

    .products-page__title {
        font-size: 24px;
    }

    .products-page__top-actions {
        width: 100%;
    }

    .products-page__top-actions .products-btn {
        flex: 1;
        text-align: center;
    }

    .products-filters {
        flex-direction: column;
        align-items: stretch;
    }

    .products-filters__field-wrap,
    .products-filters > .products-input-icon {
        flex: 1 1 auto;
        max-width: none;
    }

    .products-filters__actions {
        flex: 0 0 auto;
        width: 100%;
        margin-left: 0;
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .products-form-grid {
        grid-template-columns: 1fr;
    }

    .products-editor {
        grid-template-columns: 1fr;
    }

    .products-editor__aside {
        position: static;
    }

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

    .product__aside {
        position: static;
    }

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

    .product-gallery {
        grid-template-columns: repeat(auto-fill, minmax(120px, 120px));
    }

    .product-gallery__item,
    .product-gallery__add {
        width: 120px;
        height: 120px;
    }

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

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

    .products-form-footer {
        flex-direction: column;
    }

    .products-form-footer .products-btn {
        width: 100%;
    }

    .products-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .products-toolbar__actions {
        flex-wrap: wrap;
    }

    .products-toolbar__actions .products-btn,
    .products-toolbar__actions .products-input {
        flex: 1;
        min-width: 140px;
    }
}

@media (max-width: 920px) {
    .login-shell {
        grid-template-columns: 1fr;
        max-width: 760px;
        gap: 18px;
    }

    .login-features,
    .login-card {
        margin-top: 0;
        padding-top: 0;
    }

    .login-features {
        gap: 10px;
    }

    .login-feature-card h2 {
        font-size: 14px;
    }

    .login-feature-card p {
        font-size: 11px;
    }
}

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

    .app-sidebar {
        border-right: 0;
        border-bottom: 1px solid #e9eef7;
    }

    .app-main {
        padding: 16px;
    }

    .app-main:has(.support-page) {
        padding: 0;
    }
}

@media (max-width: 600px) {
    .login-topbar {
        padding: 0 12px;
    }

    .login-topbar__zelto {
        font-size: 14px;
    }

    .login-page {
        padding: 16px 10px;
    }

    .login-feature-card {
        min-height: 56px;
        padding: 10px 12px;
    }

    .login-feature-card h2 {
        font-size: 13px;
    }

    .login-feature-card p {
        font-size: 10px;
    }

    .login-card {
        padding: 14px 12px;
    }
}

/* Select2 — match products / entity form controls */
.select2-container--default .select2-selection--single {
    height: 38px;
    min-height: 38px;
    border: 1px solid var(--p-gray-input, #d5dae1);
    border-radius: 8px;
    background: var(--p-white, #ffffff);
    box-sizing: border-box;
}

.select2-container--default
    .select2-selection--single
    .select2-selection__rendered {
    line-height: 40px;
    padding-left: 11px;
    padding-right: 28px;
    font-size: 13px;
    color: var(--p-text-primary, #1a1a1a);
    box-sizing: border-box;
}

.select2-container--default
    .select2-selection--single
    .select2-selection__arrow {
    width: 16px;
    height: 16px;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: url("../icons/product-form/select2-arrow-down-E0HFJnl.svg") center/16px
        16px no-repeat;
    pointer-events: none;
}

.select2-container--default
    .select2-selection--single
    .select2-selection__arrow
    b {
    display: none;
}

.select2-container--default
    .select2-selection--single
    .select2-selection__clear {
    color: transparent;
    width: 14px;
    height: 14px;
    margin-top: 11px;
    background: url("../icons/product-form/select2-elements-fVY3P3H.svg") center/10px
        10px no-repeat;
}

.select2-container--default
    .select2-selection--single
    .select2-selection__placeholder {
    color: var(--p-text-secondary, #64748b);
}

.select2-container--default.select2-container--focus .select2-selection--single,
.select2-container--default.select2-container--open .select2-selection--single {
    border-color: var(--p-blue, #006aff);
    outline: 2px solid rgba(0, 106, 255, 0.12);
    outline-offset: 0;
}

.select2-dropdown {
    border: 1px solid var(--p-gray-input, #d5dae1);
    border-radius: 8px;
    font-size: 13px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.select2-container--default
    .select2-results__option--highlighted[aria-selected] {
    background-color: var(--p-blue, #006aff);
}

.select2-container--default .select2-search--dropdown .select2-search__field {
    border-radius: 6px;
    border-color: var(--p-gray-input, #d5dae1);
    font-size: 13px;
}

.product-form .select2-container,
.products-page .select2-container,
.offers-page .select2-container,
.entity-form-card .select2-container,
.category-form-card .select2-container {
    width: 100% !important;
    max-width: 100%;
    display: block;
}

.app-flash {
    margin: 12px 16px 0;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 14px;
}

.app-flash--danger {
    background: #fde8e8;
    color: #9b1c1c;
    border: 1px solid #f8b4b4;
}

.app-flash--success {
    background: #e8f5e9;
    color: #1b5e20;
    border: 1px solid #a5d6a7;
}

[data-select2-tag-confirm-overlay] {
    z-index: 5000;
}

[data-select2-tag-confirm-overlay] .products-delete-modal {
    z-index: 5010;
}

/* Select2 tags: dark shell with chips like provided reference */
.select2-container--default .select2-selection--multiple {
    min-height: 40px;
    border: 1px solid #d5dae1;
    border-radius: 8px;
    padding: 0px 46px 0px 6px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    position: relative;
}

.select2-container--default.select2-container--focus
    .select2-selection--multiple {
    border-color: #006aff;
    outline: 2px solid rgba(0, 106, 255, 0.16);
    outline-offset: 0;
}

.select2-container--default
    .select2-selection--multiple
    .select2-selection__rendered {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0;
    padding: 0;
    width: 100%;
}

.select2-container--default
    .select2-selection--multiple
    .select2-selection__choice {
    margin: 0;
    border: 1px solid #8c8c8c;
    border-radius: 999px;
    background: #8c8c8c;
    color: #ffffff;
    font-size: 12px;
    line-height: 1;
    padding: 3px 8px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.select2-container--default
    .select2-selection--multiple
    .select2-selection__choice__remove {
    order: 2;
    color: transparent;
    width: 16px;
    height: 16px;
    margin-right: 0;
    border: 0;
    border-radius: 50%;
    background: url("../icons/product-form/select2-cancel-circle-3T8XcW0.svg")
        center/16px 16px no-repeat;
    display: inline-block;
}

.select2-container--default
    .select2-selection--multiple
    .select2-search--inline
    .select2-search__field {
    margin: 0;
    color: #ffffff;
    font-size: 12px;
}

.select2-container--default
    .select2-selection--multiple
    .select2-search--inline
    .select2-search__field::placeholder {
    color: #9ca3af;
}

.select2-container--default .select2-selection--multiple::after {
    content: "";
    position: absolute;
    right: 8px;
    top: 50%;
    width: 16px;
    height: 16px;
    transform: translateY(-50%);
    background: url("../icons/product-form/select2-arrow-down-E0HFJnl.svg") center/16px
        16px no-repeat;
    pointer-events: none;
}

.select2-container--default
    .select2-selection--multiple
    .select2-selection__clear {
    position: absolute;
    right: 26px;
    top: 50%;
    transform: translateY(-50%);
    color: transparent;
    width: 14px;
    height: 14px;
    margin: 0;
    background: url("../icons/product-form/select2-elements-fVY3P3H.svg") center/10px
        10px no-repeat;
}

/* --- Orders (seller/admin) --- */
.order-detail-page .order-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    flex-wrap: wrap;
}

.order-detail-header__back {
    margin: 0 0 0.5rem;
}

.order-detail-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.order-detail-main,
.order-detail-aside {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.order-detail-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 1rem;
    align-items: start;
}

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

.order-status-card__title {
    margin: 0 0 1rem;
}

.order-status-card .order-pipeline {
    margin: 0;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
}

.order-pipeline {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin: 1rem 0 1.5rem;
    padding: 1rem;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
}

.order-pipeline__step {
    flex: 1 1 120px;
    text-align: center;
    min-width: 0;
}

.order-pipeline__circle {
    width: 36px;
    height: 36px;
    margin: 0 auto 0.35rem;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    border: 2px solid #cbd5e1;
    background: #fff;
    color: #64748b;
}

.order-pipeline__step--done .order-pipeline__circle,
.order-pipeline__circle--done {
    border-color: #16a34a;
    background: #dcfce7;
    color: #166534;
    font-size: 16px;
    line-height: 1;
}

.order-pipeline__step--active .order-pipeline__circle {
    border-color: #2563eb;
    background: #dbeafe;
    color: #1d4ed8;
}

.order-pipeline__step--idle .order-pipeline__circle {
    opacity: 0.85;
}

.order-pipeline__label {
    font-size: 13px;
    font-weight: 600;
    color: #0f172a;
}

.order-pipeline__time {
    font-size: 12px;
    color: #64748b;
    margin-top: 0.15rem;
}

.order-pipeline__line {
    align-self: center;
    flex: 0 0 24px;
    height: 2px;
    background: linear-gradient(90deg, #e2e8f0, #cbd5e1);
    margin-top: 18px;
}

@media (max-width: 720px) {
    .order-pipeline__line {
        display: none;
    }
}

.order-banner--cancelled {
    margin: 0 0 1rem;
    padding: 12px 14px;
    border-radius: 10px;
    background: #fde8e8;
    color: #9b1c1c;
    border: 1px solid #f8b4b4;
}

.order-banner--cancelled p {
    margin: 0.35rem 0 0;
}

.order-incident__title {
    margin: 0 0 0.75rem;
    font-size: 1.1rem;
}

.order-shipments-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 0.75rem;
    font-size: 14px;
}

.order-shipments-table th,
.order-shipments-table td {
    text-align: left;
    padding: 8px 10px;
    border-bottom: 1px solid #e5e7eb;
}

.order-shipments-table th {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: #64748b;
}

.order-items-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.25rem;
}

.order-items-card__head .product-label {
    margin: 0;
}

.order-items-card__count {
    font-size: 13px;
    color: #64748b;
    font-weight: 500;
}

.order-items-row {
    margin-top: 1rem;
    padding-top: 1rem;
}

.order-items-row--bordered {
    border-top: 1px solid #e5e7eb;
}

.order-items-row .products-table__product {
    align-items: flex-start;
}

.order-items-row .products-table__title a {
    color: #006aff;
    text-decoration: none;
}

.order-items-row .products-table__title a:hover {
    text-decoration: underline;
}

.order-totals {
    margin-top: 1.5rem;
    text-align: right;
    font-size: 14px;
    color: #334155;
}

.order-totals__row {
    margin-bottom: 0.25rem;
}

.order-totals__row strong {
    color: #0f172a;
}

.order-payout {
    margin-top: 0.35rem;
    font-size: 15px;
}

.order-payout strong {
    color: #16a34a;
}

.order-shipments-actions {
    display: flex;
    gap: 0.5rem;
    align-items: flex-end;
    flex-wrap: wrap;
    margin: 0.5rem 0;
}

.order-shipments-actions label {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.order-shipments-actions input[data-order-parcel-count] {
    width: 5rem;
}

.order-shipments-actions--footer {
    margin-top: 1rem;
}

.order-shipments-actions__btn {
    margin-top: 1rem;
}

.order-customer-card__divider {
    border: 0;
    border-top: 1px solid #e5e7eb;
    margin: 1rem 0;
}

.order-delivery-heading {
    margin: 0 0 0.75rem;
    font-size: 14px;
    font-weight: 600;
    color: #0f172a;
}

.order-customer-list {
    margin: 0.5rem 0 0;
}

.order-customer-list__name {
    margin: 0 0 0.35rem;
}

.order-customer-list__row {
    margin: 0 0 0.25rem;
    font-size: 14px;
    color: #334155;
}

.order-delivery-dl {
    margin: 0;
    font-size: 14px;
}

.order-delivery-dl__row {
    display: grid;
    grid-template-columns: 88px 1fr;
    gap: 0.5rem 1rem;
    margin-bottom: 0.35rem;
}

.order-delivery-dl__row dt {
    margin: 0;
    color: #64748b;
    font-weight: 500;
}

.order-delivery-dl__row dd {
    margin: 0;
    color: #0f172a;
}

.order-incident__actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

/* --- Seller dashboard --- */
.dashboard-seller {
    width: 100%;
    max-width: none;
    box-sizing: border-box;
}

.dashboard-seller__header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.dashboard-seller .dashboard-card {
    width: 100%;
    max-width: none;
    box-sizing: border-box;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 1.75rem 2rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

.dashboard-seller .dashboard-card__title {
    margin: 0 0 1.25rem;
    font-size: 1.25rem;
    font-weight: 700;
}

.dashboard-recommended__row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}

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

.dashboard-recommended__card {
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 1.35rem 1.35rem 1rem;
    min-height: 0;
}

.dashboard-recommended__head {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    gap: 0.35rem 0.5rem;
    align-items: start;
    margin-bottom: 0.75rem;
}

.dashboard-recommended__icon {
    grid-row: span 2;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: #eff6ff;
    color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dashboard-recommended__icon svg {
    width: 26px;
    height: 26px;
}

.dashboard-recommended__title {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
}

.dashboard-recommended__total {
    grid-column: 2;
    font-size: 13px;
    color: #64748b;
    line-height: 1.35;
}

.dashboard-recommended__rows {
    list-style: none;
    margin: 0;
    padding: 0;
}

.dashboard-recommended__rows li {
    border-top: 1px solid #f1f5f9;
}

.dashboard-recommended__rows a {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.75rem;
    padding: 0.65rem 0;
    font-size: 15px;
    color: #2563eb;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.dashboard-recommended__rows a span {
    color: #334155;
    text-decoration: underline;
}

.dashboard-recommended__rows a b {
    font-weight: 700;
    color: #0f172a;
    text-decoration: none;
}

.dashboard-statistics__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.dashboard-statistics__title {
    margin-bottom: 0;
}

.dashboard-range-wrap {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.6rem;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
}

.dashboard-range-wrap__icon {
    color: #64748b;
    display: flex;
}

.dashboard-range-wrap__icon svg {
    width: 16px;
    height: 16px;
}

.dashboard-range {
    appearance: none;
    border: none;
    background: transparent;
    font-size: 13px;
    color: #334155;
    font-weight: 500;
    padding-right: 1.25rem;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M3 4.5l3 3 3-3'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right center;
}

.dashboard-zelto-strip {
    display: grid;
    grid-template-columns: 112px repeat(5, minmax(0, 1fr));
    gap: 0;
    margin: 1.25rem 0 1.5rem;
    padding: 0;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    overflow: hidden;
}

@media (max-width: 1100px) {
    .dashboard-zelto-strip {
        grid-template-columns: 80px repeat(2, 1fr);
    }

    .dashboard-zelto-strip__brand {
        grid-row: span 2;
    }
}

.dashboard-zelto-strip__brand {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 14px;
    letter-spacing: 0.06em;
    color: #2563eb;
    background: #eff6ff;
    border-right: 1px solid #e5e7eb;
}

.dashboard-zelto-strip__col {
    padding: 1rem 0.85rem;
    text-align: center;
    border-right: 1px solid #e5e7eb;
    font-size: 13px;
    color: #64748b;
}

.dashboard-zelto-strip__col:last-child {
    border-right: none;
}

.dashboard-zelto-strip__col b {
    display: block;
    font-size: 1.35rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.25rem;
}

.dashboard-charts-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}

@media (max-width: 960px) {
    .dashboard-charts-row {
        grid-template-columns: 1fr;
    }
}

.dashboard-chart-card {
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 1.1rem 1.25rem 1.25rem;
    min-width: 0;
}

.dashboard-chart-card__top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.dashboard-chart-card__glyph {
    width: 28px;
    height: 28px;
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.dashboard-chart-card__glyph svg {
    width: 20px;
    height: 20px;
}

.dashboard-chart-card__title-row {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex-wrap: wrap;
    flex: 1;
    min-width: 0;
}

.dashboard-chart-card__name {
    font-size: 14px;
    font-weight: 600;
    color: #334155;
}

.dashboard-info {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 1px solid #cbd5e1;
    font-size: 11px;
    font-weight: 700;
    font-style: normal;
    color: #64748b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    cursor: help;
    flex-shrink: 0;
}

.dashboard-chart-card__metric {
    font-size: 1.2rem;
    font-weight: 700;
    color: #0f172a;
    text-align: right;
    margin-left: auto;
    flex-shrink: 0;
}

.dashboard-chart-card__canvas-wrap {
    position: relative;
    height: min(220px, 28vw);
    min-height: 160px;
    width: 100%;
}

.dashboard-chart-card__canvas-wrap canvas {
    width: 100% !important;
    height: 100% !important;
}

.dashboard-sales__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.dashboard-sales__head .dashboard-card__title {
    margin-bottom: 0;
}

.dashboard-sales__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}

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

.dashboard-sales__card {
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 1.35rem 1.5rem;
    min-width: 0;
}

.dashboard-sales__card-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.5rem;
    margin-bottom: 0.85rem;
}

.dashboard-sales__glyph {
    color: #64748b;
    display: flex;
}

.dashboard-sales__glyph svg {
    width: 22px;
    height: 22px;
}

.dashboard-sales__heading {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    flex: 1;
    min-width: 0;
}

.dashboard-sales__rows {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.dashboard-sales__rows > div {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.75rem;
    font-size: 15px;
}

.dashboard-sales__rows dt {
    margin: 0;
    color: #64748b;
    font-weight: 400;
}

.dashboard-sales__rows dd {
    margin: 0;
    font-weight: 700;
    color: #0f172a;
    text-align: right;
}

.dashboard-trend {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    font-size: 13px;
    font-weight: 600;
    margin-left: auto;
}

.dashboard-trend__arrow {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
}

.dashboard-trend--up {
    color: #15803d;
}

.dashboard-trend--down {
    color: #b91c1c;
}

.dashboard-trend--muted {
    color: #64748b;
}

/* --- Finance --- */
.finance-summary-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1rem;
}

@media (max-width: 960px) {
    .finance-summary-row {
        grid-template-columns: 1fr;
    }
}

.finance-summary-card {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1rem;
    background: #fff;
}

.finance-summary-card__label {
    font-size: 12px;
    color: #64748b;
}

.finance-summary-card__value {
    font-size: 1.35rem;
    font-weight: 700;
}

.finance-summary-card__meta {
    font-size: 13px;
    color: #64748b;
}

.finance-tabs .products-tab.is-active {
    background: #dbeafe;
    border-color: #93c5fd;
}

.finance-type-pill {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}

.finance-type-pill--revenue {
    background: #dbeafe;
    color: #1d4ed8;
}

.finance-type-pill--returns {
    background: #e0e7ff;
    color: #4338ca;
}

.finance-status-pill {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}

.finance-status-pill--waiting {
    background: #fef3c7;
    color: #b45309;
}

.finance-status-pill--paid {
    background: #dcfce7;
    color: #166534;
}

.finance-status-pill--refunded {
    background: #ffedd5;
    color: #c2410c;
}

.products-filters__field-wrap--grow {
    flex: 1 1 200px;
}

.products-filters__field-wrap--inline {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.products-filters__actions--end {
    margin-left: auto;
}

/* Seller/Admin portal shared UI */
.portal-stack {
    display: grid;
    gap: 16px;
}
.portal-section-title {
    margin: 0 0 8px;
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
}
.portal-note {
    margin: 0;
    font-size: 13px;
    color: #6b7280;
}
.portal-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}
.portal-kpi {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #f9fafb;
    padding: 12px;
}
.portal-kpi__label {
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 4px;
}
.portal-kpi__value {
    font-size: 15px;
    font-weight: 700;
    color: #111827;
}
.portal-toggle-list {
    display: grid;
    gap: 10px;
}
.portal-toggle-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
}
.portal-main-grid {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 16px;
}
.portal-thread-list {
    list-style: none;
    margin: 12px 0 0;
    padding: 0;
    display: grid;
    gap: 6px;
}
.portal-thread-item a {
    display: block;
    padding: 10px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    color: #1f2937;
    text-decoration: none;
}
.portal-thread-item a:hover {
    border-color: #cfd8e5;
    background: #f8fafc;
}
.portal-chat-log {
    display: grid;
    gap: 10px;
    margin: 14px 0;
}
.portal-chat-bubble {
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    background: #fff;
    padding: 10px 12px;
}
.portal-chat-bubble--admin {
    border-color: #c7d2fe;
    background: #eef2ff;
}
.portal-chat-bubble__meta {
    font-size: 12px;
    color: #6b7280;
    margin-top: 4px;
}
.portal-status-pill {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    background: #e5e7eb;
    color: #374151;
}
.portal-status-pill--open {
    background: #dbeafe;
    color: #1d4ed8;
}
.portal-status-pill--waiting {
    background: #fef3c7;
    color: #92400e;
}
.portal-status-pill--resolved {
    background: #d1fae5;
    color: #065f46;
}
.portal-table-wrap {
    overflow: auto;
}
.portal-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 760px;
}
.portal-table th,
.portal-table td {
    border-bottom: 1px solid #e5e7eb;
    padding: 10px 12px;
    text-align: left;
    vertical-align: top;
    font-size: 13px;
}
.portal-table th {
    font-size: 12px;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 700;
    background: #f9fafb;
}

@media (max-width: 1024px) {
    .portal-main-grid {
        grid-template-columns: 1fr;
    }
    .portal-kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 640px) {
    .portal-kpi-grid {
        grid-template-columns: 1fr;
    }
}

/* Seller footer dropdown parity */
.seller-drop {
    position: relative;
}
.seller-drop__btn {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #f9fafb;
    padding: 10px 12px;
    cursor: pointer;
}
.seller-drop__avatar {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: #3b5bdb;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 800;
}
.seller-drop__meta {
    display: grid;
    text-align: left;
    min-width: 0;
    flex: 1;
}
.seller-drop__name {
    font-size: 12px;
    font-weight: 700;
    color: #1f2937;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.seller-drop__id {
    font-size: 11px;
    color: #9ca3af;
}
.seller-drop__chevron {
    color: #9ca3af;
    font-size: 14px;
}
.seller-drop__menu {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    bottom: calc(100% + 6px);
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    z-index: 30;
}
.seller-drop__menu.is-open {
    display: block;
}
.seller-drop__item {
    display: block;
    padding: 11px 14px;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    text-decoration: none;
    border-bottom: 1px solid #f3f4f6;
}
.seller-drop__item:last-child {
    border-bottom: 0;
}
.seller-drop__item:hover {
    background: #f9fafb;
}
.seller-drop__item--danger {
    color: #ef4444;
}

/* Account page parity */
.seller-tabs {
    display: flex;
    border-bottom: 2px solid #e5e7eb;
    margin-bottom: 24px;
    overflow: auto;
}
.seller-tab {
    border: 0;
    background: transparent;
    padding: 10px 20px;
    cursor: pointer;
    color: #6b7280;
    font-size: 13px;
    font-weight: 600;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
}
.seller-tab.is-active {
    color: #3b5bdb;
    border-bottom-color: #3b5bdb;
}
.seller-tabpane {
    display: none;
}
.seller-tabpane.is-active {
    display: block;
}
.seller-section {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    margin-bottom: 16px;
    overflow: hidden;
}
.seller-section__hdr {
    padding: 16px 20px;
    border-bottom: 1px solid #f3f4f6;
    font-size: 13px;
    font-weight: 700;
    color: #374151;
    background: #fafafa;
}
.seller-section__body {
    padding: 20px;
}
.seller-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
.seller-form-grid--spaced {
    margin-top: 12px;
}
.seller-fg label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 5px;
}
.seller-fg input,
.seller-fg select,
.seller-fg textarea {
    width: 100%;
    border: 1px solid #e5e7eb;
    border-radius: 7px;
    padding: 9px 11px;
    font-size: 13px;
}
.seller-fg input[readonly] {
    background: #f9fafb;
    color: #6b7280;
}
.seller-help {
    margin-top: 4px;
    font-size: 11px;
    color: #9ca3af;
}
.seller-opt-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.seller-opt-card {
    border: 1px solid #e5e7eb;
    border-radius: 9px;
    padding: 16px;
    cursor: pointer;
}
.seller-opt-card.is-active {
    border-color: #3b5bdb;
    background: #eef2ff;
}
.seller-opt-card input[type="radio"] {
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 999px;
    border: 2px solid #cbd5e1;
    margin: 0 8px 0 0;
    position: relative;
    top: 2px;
}
.seller-opt-card input[type="radio"]:checked {
    border-color: #3b5bdb;
    background: radial-gradient(circle, #3b5bdb 0 4px, transparent 5px);
}
.seller-opt-card__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 4px;
}
.seller-opt-card__badge {
    font-size: 10px;
    font-weight: 700;
    border-radius: 999px;
    padding: 2px 7px;
    background: #f3f4f6;
    color: #6b7280;
}
.seller-opt-card__badge--good {
    background: #d1fae5;
    color: #065f46;
}
.seller-opt-card__badge--mid {
    background: #dbeafe;
    color: #1d4ed8;
}
.seller-opt-card__badge--fast {
    background: #fef3c7;
    color: #92400e;
}
.seller-switch-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 0;
    border-bottom: 1px solid #f3f4f6;
}
.seller-switch-row:last-child {
    border-bottom: 0;
}
.seller-switch-row input[type="checkbox"] {
    appearance: none;
    width: 38px;
    height: 20px;
    border-radius: 999px;
    background: #d1d5db;
    position: relative;
    cursor: pointer;
}
.seller-switch-row input[type="checkbox"]::after {
    content: "";
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #fff;
    position: absolute;
    top: 3px;
    left: 3px;
    transition: left 0.2s;
}
.seller-switch-row input[type="checkbox"]:checked {
    background: #3b5bdb;
}
.seller-switch-row input[type="checkbox"]:checked::after {
    left: 21px;
}
.seller-switch {
    width: 38px;
    height: 20px;
    border-radius: 10px;
    background: #d1d5db;
    position: relative;
    cursor: pointer;
}
.seller-switch::after {
    content: "";
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #fff;
    position: absolute;
    top: 3px;
    left: 3px;
    transition: left 0.2s;
}
.seller-switch.is-on {
    background: #3b5bdb;
}
.seller-switch.is-on::after {
    left: 21px;
}
.seller-savebar {
    position: fixed;
    left: 246px;
    right: 0;
    bottom: 0;
    background: #fff;
    border-top: 1px solid #e5e7eb;
    padding: 14px 40px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    z-index: 10;
}
.seller-preview-box {
    margin-top: 12px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 10px 12px;
    background: #f9fafb;
    font-size: 12px;
}
.seller-holiday-box {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 12px;
}

/* Support parity */
.support-layout {
    display: flex;
    min-height: calc(100vh - 220px);
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
}
.support-list {
    width: 300px;
    border-right: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
}
.support-list__head {
    padding: 18px 16px 12px;
    border-bottom: 1px solid #f3f4f6;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.support-search {
    padding: 10px 12px;
    border-bottom: 1px solid #f3f4f6;
}
.support-search input {
    width: 100%;
    border: 1px solid #e5e7eb;
    border-radius: 7px;
    padding: 7px 10px;
    font-size: 12px;
}
.support-filters {
    padding: 8px 12px;
    border-bottom: 1px solid #f3f4f6;
    display: flex;
    gap: 6px;
}
.support-filter {
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    background: #fff;
    color: #6b7280;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    cursor: pointer;
}
.support-filter.is-on {
    border-color: #3b5bdb;
    background: #eef2ff;
    color: #3b5bdb;
}
.support-items {
    overflow: auto;
    flex: 1;
}
.support-item {
    border-bottom: 1px solid #f9fafb;
    padding: 12px;
    cursor: pointer;
}
.support-item.is-active {
    background: #eef2ff;
}
.support-chat {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: #f9fafb;
}
.support-chat__head {
    padding: 14px 24px;
    border-bottom: 1px solid #e5e7eb;
    background: #fff;
}
.support-chat__messages {
    flex: 1;
    overflow: auto;
    padding: 20px 24px;
    display: grid;
    gap: 12px;
}
.support-msg {
    max-width: 520px;
    padding: 10px 14px;
    border-radius: 12px;
    line-height: 1.6;
    font-size: 13px;
}
.support-msg--seller {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-bottom-left-radius: 3px;
}
.support-msg--admin {
    margin-left: auto;
    background: #3b5bdb;
    color: #fff;
    border-bottom-right-radius: 3px;
}
.support-composer {
    background: #fff;
    border-top: 1px solid #e5e7eb;
    padding: 14px 24px;
}

/* Feedback parity */
.feedback-type-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}
.feedback-type-btn {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    padding: 9px 16px;
    font-size: 13px;
    font-weight: 600;
    color: #6b7280;
    cursor: pointer;
}
.feedback-type-btn:hover {
    border-color: #3b5bdb;
    color: #3b5bdb;
    background: #f5f7ff;
}
.feedback-type-btn.is-active {
    border-color: #3b5bdb;
    background: #eef2ff;
    color: #3b5bdb;
}
.feedback-chip-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}
.feedback-chip {
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    background: #fff;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    cursor: pointer;
}
.feedback-chip:hover {
    border-color: #3b5bdb;
    color: #3b5bdb;
}
.feedback-chip.is-on {
    border-color: #3b5bdb;
    color: #3b5bdb;
    background: #eef2ff;
}
.feedback-stars {
    display: flex;
    gap: 6px;
    margin-bottom: 20px;
}
.feedback-star {
    border: 0;
    background: transparent;
    appearance: none;
    box-shadow: none;
    padding: 0;
    margin: 0;
    min-width: 0;
    min-height: 0;
    line-height: 1;
    font-size: 22px;
    opacity: 0.25;
    cursor: pointer;
    user-select: none;
    display: inline-block;
}
.feedback-star.is-on {
    opacity: 1;
}
.feedback-dropzone {
    border: 1.5px dashed #d1d5db;
    border-radius: 8px;
    padding: 24px;
    text-align: center;
    background: #fafafa;
    cursor: pointer;
}
.feedback-dropzone:hover {
    border-color: #3b5bdb;
    background: #f5f7ff;
}
.feedback-dropzone.is-over {
    border-color: #3b5bdb;
    background: #eef2ff;
}
.feedback-drop-main {
    font-size: 13px;
    color: #9ca3af;
}
.feedback-drop-main strong {
    color: #3b5bdb;
    font-weight: 700;
}
.feedback-opt-note {
    text-transform: none;
    font-weight: 400;
    color: #9ca3af;
}
.feedback-previews {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 10px;
}
.feedback-thumb {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
}
.feedback-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid #f3f4f6;
}
.feedback-switch {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}
.feedback-switch input {
    display: none;
}
.feedback-switch__slider {
    width: 38px;
    height: 20px;
    border-radius: 10px;
    background: #d1d5db;
    position: relative;
}
.feedback-switch__slider::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #fff;
    transition: left 0.2s;
}
.feedback-switch input:checked + .feedback-switch__slider {
    background: #3b5bdb;
}
.feedback-switch input:checked + .feedback-switch__slider::after {
    left: 21px;
}
.feedback-toast {
    position: fixed;
    right: 20px;
    bottom: 88px;
    background: #111827;
    color: #fff;
    border-radius: 8px;
    font-size: 12px;
    padding: 10px 12px;
    opacity: 0;
    transform: translateY(8px);
    transition: all 0.2s;
    pointer-events: none;
}
.feedback-toast.is-show {
    opacity: 1;
    transform: translateY(0);
}

/* KYC parity */
.kyc-info {
    background: #eef2ff;
    border: 1px solid #c7d2fe;
    border-radius: 10px;
    padding: 16px 18px;
    font-size: 13px;
    color: #1e40af;
    margin-bottom: 16px;
}
.kyc-status-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 28px 32px;
    display: flex;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 16px;
}
.kyc-badge {
    display: inline-flex;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 8px;
}
.kyc-badge--active {
    background: #d1fae5;
    color: #065f46;
}
.kyc-badge--pending {
    background: #fef3c7;
    color: #92400e;
}
.kyc-info-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 16px;
}
.kyc-mini-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 18px 20px;
}
.kyc-timeline {
    display: grid;
    gap: 14px;
}
.kyc-timeline__item {
    position: relative;
    padding-left: 24px;
}
.kyc-timeline__dot {
    position: absolute;
    left: 4px;
    top: 5px;
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: #3b5bdb;
    box-shadow: 0 0 0 4px #eef2ff;
}
.kyc-renew-note {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 10px;
    background: #f9fafb;
    font-size: 12px;
    color: #6b7280;
}
.kyc-expire {
    font-size: 20px;
    font-weight: 800;
}
.kyc-form {
    margin-top: 12px;
}
.support-modal {
    max-width: 560px;
}
.support-modal__actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

@media (max-width: 768px) {
    .seller-form-grid,
    .seller-opt-grid,
    .kyc-info-grid {
        grid-template-columns: 1fr;
    }
    .seller-savebar {
        left: 0;
        padding: 12px 16px;
        bottom: 56px;
    }
    .support-layout {
        flex-direction: column;
    }
    .support-list {
        width: 100%;
        border-right: 0;
        border-bottom: 1px solid #e5e7eb;
    }
    .feedback-footer {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    .feedback-star {
        font-size: 28px;
    }
}
body.sidebar-collapsed .seller-savebar {
    left: 79px;
}

.mob-topbar.seller-mob-only,
.mob-bottomnav.seller-mob-only {
    display: none;
}
.mob-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    position: sticky;
    top: 0;
    z-index: 20;
}
.mob-topbar-logo {
    font-weight: 800;
    font-size: 17px;
    letter-spacing: -0.5px;
}
.mob-topbar-user {
    position: relative;
    cursor: pointer;
}
.mob-user-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 160px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}
.mob-user-menu.open {
    display: block;
}
.mob-user-menu a {
    display: block;
    padding: 11px 14px;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    text-decoration: none;
    border-bottom: 1px solid #f3f4f6;
}
.mob-user-menu a:last-child {
    border-bottom: 0;
    color: #ef4444;
}
.mob-bottomnav {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    background: #fff;
    border-top: 1px solid #e5e7eb;
    z-index: 20;
}
.mob-nav-item {
    flex: 1;
    text-align: center;
    font-size: 10px;
    font-weight: 600;
    color: #9ca3af;
    text-decoration: none;
    padding: 10px 4px 12px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}
.mob-nav-item svg {
    width: 20px;
    height: 20px;
}
.mob-nav-item.active {
    color: #3b5bdb;
}
.mob-nav-badge {
    position: absolute;
    top: 6px;
    right: calc(50% - 18px);
    background: #ef4444;
    color: #fff;
    font-size: 9px;
    font-weight: 800;
    border-radius: 8px;
    padding: 1px 4px;
}
@media (max-width: 768px) {
    .mob-topbar.seller-mob-only {
        display: flex;
    }
    .mob-bottomnav.seller-mob-only {
        display: flex;
    }
    .products-page {
        padding-bottom: 80px;
    }
}

.mob-new-btn {
    background: #3b5bdb;
    color: #fff;
    border: 0;
    border-radius: 7px;
    font-size: 12px;
    font-weight: 700;
    padding: 7px 12px;
    cursor: pointer;
}

.support-list__empty {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #9ca3af;
    padding: 42px 18px;
}

.support-item__row {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.support-item__icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: #f3f4f6;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

.support-item__meta {
    min-width: 0;
    flex: 1;
}

.support-item__top {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2px;
    gap: 8px;
}

.support-item__title {
    font-size: 12px;
    font-weight: 700;
    color: #1a1a1a;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.support-item__time {
    font-size: 11px;
    color: #9ca3af;
    flex-shrink: 0;
}

.support-item__preview {
    font-size: 11px;
    color: #6b7280;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.support-item__chips {
    display: flex;
    gap: 4px;
    margin-top: 4px;
}

.support-item__unread {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: #3b5bdb;
    margin-top: 3px;
    flex-shrink: 0;
}

.support-day {
    text-align: center;
    font-size: 11px;
    color: #9ca3af;
}

.support-context {
    max-width: 430px;
    margin: 0 auto;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    padding: 12px 14px;
}

.support-context__label {
    font-size: 10px;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    font-weight: 700;
}

/* Seller 1:1 hardening overrides */
.seller-page.products-page--form {
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
}

.seller-account-page .seller-section {
    border-radius: 12px;
}
.seller-account-page .seller-section__hdr {
    padding: 14px 18px;
    font-size: 12px;
    letter-spacing: 0.2px;
}
.seller-account-page .seller-section__body {
    padding: 18px;
}
.seller-account-page .portal-note {
    font-size: 12px;
    color: #6b7280;
}
.seller-account-page #sellerAccountForm {
    padding-bottom: 92px;
}
.seller-account-page .seller-fg input,
.seller-account-page .seller-fg select {
    height: 40px;
    min-height: 40px;
    padding: 10px 12px;
    font-size: 13px;
    line-height: 18px;
    box-sizing: border-box;
}

.seller-account-page .d-opts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 10px;
}
.seller-account-page .d-opt {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 14px;
    background: #fff;
    cursor: pointer;
}
.seller-account-page .d-opt.on {
    border-color: #3b5bdb;
    background: #eef2ff;
}
.seller-account-page .d-opt-top {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}
.seller-account-page .d-opt .radio {
    width: 16px;
    height: 16px;
    border-radius: 999px;
    border: 2px solid #cbd5e1;
    background: #fff;
}
.seller-account-page .d-opt.on .radio {
    border-color: #3b5bdb;
    background: radial-gradient(circle, #3b5bdb 0 4px, transparent 5px);
}
.seller-account-page .d-opt h4 {
    margin: 0;
    font-size: 13px;
}
.seller-account-page .d-opt p {
    margin: 0;
    font-size: 12px;
    color: #6b7280;
    line-height: 1.45;
}

.seller-account-page .delivery-callout {
    margin-top: 12px;
    background: #eef4ff;
    border: 1px solid #dbe7ff;
    color: #1e40af;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 12px;
}

.seller-account-page .t-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f3f4f6;
}
.seller-account-page .t-row:last-child {
    border-bottom: 0;
}
.seller-account-page .t-row--card {
    margin-top: 10px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 12px;
    border-bottom: 1px solid #e5e7eb;
}
.seller-account-page .t-row-info h4 {
    margin: 0;
    font-size: 13px;
    font-weight: 700;
}
.seller-account-page .t-row-info p {
    margin: 2px 0 0;
    font-size: 12px;
    color: #6b7280;
}

.seller-account-page .t-row input[type="checkbox"] {
    appearance: none;
    width: 38px;
    height: 20px;
    border-radius: 999px;
    background: #d1d5db;
    position: relative;
    cursor: pointer;
}
.seller-account-page .t-row input[type="checkbox"]::after {
    content: "";
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #fff;
    position: absolute;
    left: 3px;
    top: 3px;
    transition: left 0.2s;
}
.seller-account-page .t-row input[type="checkbox"]:checked {
    background: #3b5bdb;
}
.seller-account-page .t-row input[type="checkbox"]:checked::after {
    left: 21px;
}

.seller-account-page .p-opts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 10px;
}
.seller-account-page .p-opt {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 14px;
    cursor: pointer;
    display: grid;
    gap: 5px;
}
.seller-account-page .p-opt.on {
    border-color: #3b5bdb;
    background: #eef2ff;
}
.seller-account-page .p-icon {
    font-size: 24px;
    line-height: 1;
}
.seller-account-page .p-opt h4 {
    margin: 0;
    font-size: 13px;
}
.seller-account-page .p-opt p {
    margin: 0;
    font-size: 12px;
    color: #6b7280;
    min-height: 34px;
}
.seller-account-page .p-badge {
    justify-self: start;
    font-size: 10px;
    font-weight: 700;
    border-radius: 999px;
    padding: 2px 8px;
}
.seller-account-page .pb-g {
    background: #d1fae5;
    color: #065f46;
}
.seller-account-page .pb-b {
    background: #dbeafe;
    color: #1d4ed8;
}
.seller-account-page .pb-y {
    background: #fef3c7;
    color: #92400e;
}

.seller-account-page .ai-est {
    margin-top: 12px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #f9fafb;
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.seller-account-page .ai-price {
    font-size: 24px;
    font-weight: 800;
    color: #1f2937;
}
.seller-account-page .num-inp {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    display: grid;
    grid-template-columns: 34px 1fr 34px;
    overflow: hidden;
}
.seller-account-page .num-inp button {
    border: 0;
    background: #f9fafb;
    font-size: 16px;
    cursor: pointer;
}
.seller-account-page .num-inp input {
    border: 0;
    border-left: 1px solid #f3f4f6;
    border-right: 1px solid #f3f4f6;
    text-align: center;
    font-weight: 700;
    padding: 9px 8px;
    background: #fff;
}
.seller-account-page .preview-box {
    margin-top: 12px;
    border-radius: 8px;
    border: 1px dashed #d1d5db;
    background: #fafafa;
    padding: 11px 12px;
    font-size: 12px;
}

.seller-account-page .seller-savebar {
    left: 246px;
    right: 0;
    padding: 12px 34px;
    min-height: 64px;
    z-index: 25;
}
body.sidebar-collapsed .seller-account-page .seller-savebar {
    left: 79px;
}

.support-item__row {
    text-decoration: none;
    color: inherit;
}

.support-search input {
    padding-left: 30px;
    background: #f9fafb
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='13' height='13' fill='%239CA3AF' viewBox='0 0 16 16'%3E%3Cpath d='M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85zm-5.242 1.656a5.5 5.5 0 1 1 0-11 5.5 5.5 0 0 1 0 11z'/%3E%3C/svg%3E")
        no-repeat 9px center;
}

.support-chat__messages {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.m-time {
    font-size: 11px;
    color: #9ca3af;
    margin-top: 3px;
}

.m-time.r {
    text-align: right;
}

.support-btn {
    border: 1px solid transparent;
    border-radius: 7px;
    padding: 7px 13px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.support-btn--primary {
    background: #3b5bdb;
    border-color: #3b5bdb;
    color: #fff;
}

.support-btn--ghost {
    background: #f9fafb;
    border-color: #e5e7eb;
    color: #374151;
}

.support-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
}
.support-overlay[hidden] {
    display: none !important;
}

.support-modal {
    background: #fff;
    border-radius: 14px;
    padding: 28px;
    width: 520px;
    max-width: 95vw;
    max-height: 90vh;
    overflow-y: auto;
}

.support-modal__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 6px;
}

.support-modal__title {
    margin: 0;
    font-size: 17px;
}

.support-modal__subtitle {
    margin: 2px 0 20px;
    font-size: 12px;
    color: #6b7280;
}

.support-modal__close {
    background: transparent;
    border: 0;
    color: #9ca3af;
    font-size: 18px;
    cursor: pointer;
}

.support-upload-sm {
    border: 1.5px dashed #d1d5db;
    border-radius: 7px;
    padding: 12px;
    text-align: center;
    cursor: pointer;
    font-size: 12px;
    color: #9ca3af;
}

.support-upload-sm:hover {
    border-color: #3b5bdb;
}

.feedback-fg label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 5px;
}

.feedback-fg textarea {
    width: 100%;
    border: 1px solid #e5e7eb;
    border-radius: 7px;
    padding: 10px 12px;
    font-size: 13px;
}

.kyc-badge--rejected {
    background: #fee2e2;
    color: #991b1b;
}

.mob-user-menu a {
    display: flex;
    align-items: center;
    gap: 8px;
}

.mob-user-menu a svg {
    width: 14px;
    height: 14px;
}

@media (max-width: 768px) {
    .seller-account-page #sellerAccountForm {
        padding-bottom: 84px;
    }

    .seller-account-page .d-opts,
    .seller-account-page .p-opts {
        grid-template-columns: 1fr;
    }

    .seller-account-page .ai-est {
        align-items: flex-start;
        flex-direction: column;
    }

    .seller-account-page .seller-savebar {
        left: 0;
        right: 0;
        bottom: 56px;
        padding: 10px 14px;
        min-height: 58px;
    }

    body.sidebar-collapsed .seller-account-page .seller-savebar {
        left: 0;
    }

    .support-list {
        max-height: 45vh;
    }

    .support-chat {
        min-height: 55vh;
    }

    .support-list__head .support-btn {
        display: none;
    }

    .support-composer {
        padding-bottom: 72px;
    }

    .support-overlay {
        align-items: flex-end;
    }

    .support-modal {
        width: 100%;
        max-width: 100%;
        border-radius: 20px 20px 0 0;
        padding: 24px 20px;
        max-height: 90vh;
    }
}

.support-msg-wrap {
    display: flex;
    gap: 8px;
    align-items: flex-end;
}
.support-msg-wrap.is-me {
    flex-direction: row-reverse;
}
.support-msg-avatar {
    width: 24px;
    height: 24px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 800;
    margin-bottom: 2px;
}
.support-msg-avatar--seller {
    background: #eef2ff;
    color: #3b5bdb;
}
.support-msg-avatar--admin {
    background: #3b5bdb;
    color: #fff;
}

.support-composer-box {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
}
.support-composer-box:focus-within {
    border-color: #3b5bdb;
}
.support-composer-box textarea {
    border: 0;
    width: 100%;
    resize: vertical;
    min-height: 44px;
    padding: 10px 14px;
    font-size: 13px;
}
.support-composer-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 10px;
    border-top: 1px solid #f3f4f6;
    background: #f9fafb;
}
.support-tool-btn {
    background: transparent;
    border: 0;
    color: #9ca3af;
    cursor: pointer;
    border-radius: 6px;
    padding: 5px;
}
.support-tool-btn:hover {
    background: #e5e7eb;
    color: #374151;
}

.support-topic-grid {
    display: grid;
    gap: 8px;
    grid-template-columns: 1fr 1fr;
}
.support-topic-card {
    border: 1px solid #e5e7eb;
    border-radius: 9px;
    padding: 12px;
    background: #fff;
    cursor: pointer;
}
.support-topic-card:hover {
    border-color: #3b5bdb;
    background: #f5f7ff;
}
.support-topic-card.is-on {
    border-color: #3b5bdb;
    background: #eef2ff;
}
.support-topic-card h4 {
    font-size: 13px;
    margin: 0 0 2px;
}
.support-topic-card p {
    font-size: 11px;
    color: #6b7280;
    margin: 0;
}
.support-context-wrap {
    display: none;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 14px;
}
.support-context-wrap.is-show {
    display: block;
}

/* Orders list (uses shared .products-page title, card, tabs, inputs) */
.products-filters__field-wrap:has(> .product-label) {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
}

.products-filters__field-wrap > .product-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--p-text-primary);
}

.orders-page .products-filters {
    align-items: flex-end;
}

.orders-page [data-order-orders-section][hidden],
.orders-page [data-order-returns-section][hidden] {
    display: none !important;
}

.orders-chip {
    display: inline-block;
    border-radius: 999px;
    padding: 2px 10px;
    font-size: 12px;
    font-weight: 600;
    background: #f3f4f6;
    color: #374151;
}
.orders-chip--submitted {
    background: #f3f4f6;
    color: #4b5563;
}
.orders-chip--empty {
    background: #fef3c7;
    color: #92400e;
}
.orders-chip--done {
    background: #d1fae5;
    color: #065f46;
}
.orders-chip--confirmed {
    background: #e5e7eb;
    color: #374151;
}
.orders-chip--rejected {
    background: #fee2e2;
    color: #991b1b;
}

.orders-return-actions {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.orders-return-act {
    font-size: 11px;
    color: #6b7280;
    font-weight: 700;
}

/* Offers desktop parity */
.offers-page .products-card {
    border-radius: 12px;
    padding: 16px 18px 10px;
    box-shadow: 0 1px 0 rgba(16, 24, 40, 0.02);
}
.offers-page .products-page__subtitle {
    max-width: none;
    font-size: 14px;
}
.offers-page .products-tabs {
    margin-bottom: 10px;
}
.offers-page .products-filters {
    gap: 10px 12px;
    align-items: center;
}
.offers-page .products-filters__field-wrap {
    flex: 1 1 220px;
    min-width: 200px;
    max-width: none;
}
.offers-page .products-filters__field-wrap--category {
    flex: 1.2 1 280px;
    min-width: 260px;
}
.offers-page .products-filters__field-wrap--select2 {
    flex: 1 1 220px;
    min-width: 200px;
    max-width: none;
}
.offers-page .products-filters > .products-input-icon {
    flex: 1 1 220px;
    min-width: 200px;
    max-width: none;
}
.offers-page .products-filters .products-input,
.offers-page .products-filters .select2-container {
    width: 100%;
}
.offers-page .products-filters__field-wrap--select2 .select2-container {
    width: 100% !important;
}
.offers-page
    .products-filters__field-wrap--select2
    select.products-input[multiple]:not(.select2-hidden-accessible) {
    min-height: 38px;
    max-height: 38px;
    overflow: hidden;
}
.offers-page #offer-filter-market.select2-hidden-accessible {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}
.offers-page .products-input,
.offers-page .products-btn {
    height: 38px;
    border-radius: 8px;
}
.offers-page .products-input {
    font-size: 13px;
}
.offers-page .products-toolbar {
    padding-top: 6px;
    padding-bottom: 8px;
}
.offers-page .products-toolbar__meta {
    font-size: 14px;
}
.offers-page .products-toolbar__actions {
    gap: 8px;
}
.offers-page .products-toolbar__actions .products-btn {
    height: 32px;
    padding: 0 10px;
    font-size: 13px;
}

.offers-switch-wrap {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-left: 14px;
    font-size: 13px;
    color: #374151;
}
.offers-switch-wrap input {
    display: none;
}
.offers-switch-slider {
    width: 38px;
    height: 22px;
    border-radius: 999px;
    background: #9ca3af;
    position: relative;
    transition: background 0.2s;
}
.offers-switch-slider::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #fff;
    transition: left 0.2s;
}
.offers-switch-wrap input:checked + .offers-switch-slider {
    background: #6b7280;
}
.offers-switch-wrap input:checked + .offers-switch-slider::after {
    left: 19px;
}

.offers-page .products-table.tabulator {
    border-radius: 10px;
}
.offers-page .products-table.tabulator .tabulator-header .tabulator-col-title {
    font-size: 13px;
    font-weight: 700;
}
.offers-page .products-table.tabulator .tabulator-row .tabulator-cell {
    font-size: 13px;
}
.offers-page .products-table.tabulator .tabulator-footer {
    padding: 8px 10px;
}
.offers-page .products-table__condition-tag {
    border-radius: 7px;
    padding: 2px 8px;
    font-size: 12px;
}

.offers-price {
    color: #1f2937;
    font-weight: 600;
    font-size: 14px;
}
.offers-diff {
    color: #1f2937;
    font-weight: 600;
    font-size: 14px;
}
.offers-diff--negative {
    color: #ef4444;
}

.offer-table__actions {
    display: inline-flex;
    justify-content: flex-end;
    gap: 4px;
    width: 100%;
}
.offer-table__row-action {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1px solid #e5e7eb;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    cursor: pointer;
}
.offer-table__row-action img {
    width: 14px;
    height: 14px;
    opacity: 0.9;
}

.offers-page .products-table.tabulator .tabulator-placeholder {
    color: #9ca3af;
    font-size: 22px;
    font-weight: 700;
    padding: 36px 0;
}

/* Support 1:1 parity baseline (zinutes2) */
.support-page.products-page--form {
    margin: 0;
    padding: 0;
    width: 100%;
    max-width: none;
}

.support-page .support-layout {
    min-height: calc(100vh - 64px);
    border-radius: 0;
    border: 0;
    background: transparent;
}
.support-page .support-list {
    width: 280px;
    background: #fff;
    border-right: 1px solid #e5e7eb;
}
.support-page .support-list__head {
    padding: 18px 16px 12px;
}
.support-page .support-list__head h2 {
    font-size: 16px;
    font-weight: 700;
}
.support-page .support-btn {
    border-radius: 7px;
    font-size: 12px;
    padding: 7px 13px;
}
.support-page .support-search {
    padding: 10px 12px;
}
.support-page .support-search input {
    padding: 7px 10px 7px 30px;
    font-size: 12px;
    border-radius: 7px;
    background: #f9fafb;
}
.support-page .support-filters {
    padding: 8px 12px;
    gap: 6px;
}
.support-page .support-filter {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
}
.support-page .support-item {
    padding: 12px;
    border-bottom: 1px solid #f9fafb;
}
.support-page .support-item__icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    font-size: 14px;
    background: #f3f4f6;
}
.support-page .support-item__title {
    font-size: 12px;
    font-weight: 700;
    color: #1a1a1a;
}
.support-page .support-item__time {
    font-size: 11px;
    color: #9ca3af;
}
.support-page .support-item__preview {
    font-size: 11px;
    color: #6b7280;
}
.support-page .support-item__chips {
    gap: 4px;
    margin-top: 4px;
}
.support-page .support-chip {
    font-size: 10px;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 4px;
    display: inline-block;
}
.support-page .support-chip--open {
    background: #dbeafe;
    color: #1d4ed8;
}
.support-page .support-chip--waiting {
    background: #fef3c7;
    color: #92400e;
}
.support-page .support-chip--resolved {
    background: #d1fae5;
    color: #065f46;
}
.support-page .support-chip--topic {
    background: #f3f4f6;
    color: #6b7280;
}
.support-page .support-item__unread {
    width: 7px;
    height: 7px;
    margin-top: 3px;
}

.support-page .support-chat {
    background: #f9fafb;
}
.support-page .support-chat__head {
    padding: 14px 24px;
}
.support-page .support-chat__head h3 {
    font-size: 14px;
    font-weight: 700;
    margin: 0;
}
.support-page .support-chat__head p {
    font-size: 12px;
    color: #6b7280;
    margin-top: 1px;
}
.support-page .support-chat__messages {
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.support-page .support-day {
    font-size: 11px;
    color: #9ca3af;
    padding: 4px 0;
}
.support-page .support-context {
    max-width: 420px;
    margin: 0 auto;
    padding: 12px 14px;
    border-radius: 8px;
    font-size: 12px;
}
.support-page .support-context__label {
    font-size: 10px;
}
.support-page .support-msg {
    max-width: 500px;
    padding: 10px 14px;
    font-size: 13px;
    line-height: 1.6;
    border-radius: 12px;
}
.support-page .support-msg--seller {
    border-bottom-left-radius: 3px;
}
.support-page .support-msg--admin {
    border-bottom-right-radius: 3px;
}
.support-page .m-time {
    font-size: 11px;
    margin-top: 3px;
}
.support-page .support-msg-avatar {
    width: 24px;
    height: 24px;
    font-size: 10px;
    margin-bottom: 2px;
}

.support-page .support-composer {
    padding: 14px 24px;
}
.support-page .support-composer-box {
    border-radius: 10px;
}
.support-page .support-composer-box textarea {
    min-height: 44px;
    max-height: 100px;
    resize: none;
    padding: 10px 14px;
    font-size: 13px;
    line-height: 1.5;
}
.support-page .support-composer-actions {
    padding: 6px 10px;
}
.support-page .support-tool-btn {
    padding: 5px;
    border-radius: 5px;
}

.support-page .support-modal {
    width: 520px;
    max-width: 95vw;
    padding: 28px;
    border-radius: 14px;
}
.support-page .support-modal__title {
    font-size: 17px;
}
.support-page .support-modal__subtitle {
    font-size: 12px;
    margin-bottom: 20px;
}
.support-page .support-topic-grid {
    gap: 8px;
    grid-template-columns: 1fr 1fr;
}
.support-page .support-topic-card {
    border-radius: 9px;
    padding: 12px;
}
.support-page .support-topic-card h4 {
    font-size: 13px;
    margin-bottom: 2px;
}
.support-page .support-topic-card p {
    font-size: 11px;
}
.support-page .support-context-wrap {
    padding: 14px;
    border-radius: 8px;
}
.support-page .support-upload-sm {
    border-radius: 7px;
    padding: 12px;
    font-size: 12px;
}

@media (max-width: 768px) {
    .support-page .support-layout {
        flex-direction: column;
        min-height: auto;
    }
    .support-page .support-list {
        width: 100%;
        max-height: 45vh;
        border-right: 0;
        border-bottom: 1px solid #e5e7eb;
    }
    .support-page .support-list__head {
        padding: 12px 14px;
    }
    .support-page .support-list__head h2 {
        font-size: 15px;
    }
    .support-page .support-list__head .support-btn {
        display: none;
    }
    .support-page .support-chat {
        min-height: 55vh;
    }
    .support-page .support-chat__head {
        padding: 12px 14px;
    }
    .support-page .support-chat__messages {
        padding: 14px;
    }
    .support-page .support-msg {
        max-width: 85vw;
    }
    .support-page .support-composer {
        padding: 10px 14px 72px;
    }
    .support-page .support-overlay {
        align-items: flex-end;
    }
    .support-page .support-modal {
        width: 100%;
        max-width: 100%;
        border-radius: 20px 20px 0 0;
        padding: 24px 20px;
        max-height: 90vh;
    }
}

.seller-info-page {
    width: 100%;
    min-height: calc(100vh - 64px);
    padding: 0;
    background: #eef1f4;
}

.seller-info-page__frame {
    width: 100%;
    min-height: calc(100vh - 64px);
    border: 0;
    display: block;
    background: #eef1f4;
}

.products-table__confirm-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.products-table.tabulator
    .tabulator-cell[tabulator-field="sellerLabel"]
    .products-table__title {
    margin-bottom: 2px;
}

.products-table__confirm-actions .products-btn {
    padding: 4px 10px;
    font-size: 12px;
    min-height: 28px;
}
