html,
body {
    overflow-x: hidden;
    background: var(--theme-page-bg, #edf3f7);
}

/* Use the same Poppins typography as the Otomotiv login screen everywhere. */
body,
body button,
body input,
body select,
body textarea,
body table {
    font-family: "Poppins", sans-serif !important;
}

.layout-header__desktop .topbar {
    height: 34px;
    display: flex;
    align-items: center;
    background: var(--theme-topbar-bg, #f4f4f5) !important;
    color: var(--theme-topbar-text, #0f172a) !important;
    font-size: 12px;
}

.topbar__row,
.header-middle__container,
.nav-main__list,
.footer-inner {
    max-width: 1326px;
    margin: 0 auto;
}

.topbar__row {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 0 0;
}

.topbar__item:first-child {
    max-width: 560px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.topbar__spring {
    flex: 1;
}

.topbar__item--link {
    color: inherit;
    text-decoration: none;
}

.topbar__item strong {
    color: #00844f;
}

.header-middle {
    min-height: 116px;
    display: flex;
    align-items: center;
    background: var(--theme-header-bg, #fff) !important;
    color: var(--theme-header-text, #111827) !important;
}

.header-middle__container {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 246px 150px;
    align-items: center;
    gap: 24px;
}

.site-header__logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--theme-header-text, #111827);
    text-decoration: none;
}

.site-header__logo img {
    display: block;
    width: var(--theme-logo-width, 245px);
    max-height: var(--theme-logo-height, 76px);
    object-fit: contain;
}

.heder-middle__center {
    min-width: 0;
}

.search__body {
    display: flex;
    width: 100%;
    border: 1px solid #d7dbe3;
    background: var(--theme-surface-bg, #fff);
}

.search__input {
    flex: 1;
    min-width: 0;
    height: 44px;
    border: 0;
    padding: 0 14px;
}

.search__button {
    min-width: 92px;
    border: 0;
    font-weight: 700;
}

.site-header__sepet_actions {
    display: flex;
    justify-content: flex-end;
    background: transparent !important;
    padding:0px;
}

.indicator__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-width: 146px;
    height: 88px;
    padding: 0 18px;
    border: 1px solid #d6dde8;
    border-radius: 10px;
    background: var(--theme-header-bg, #fff);
    color: var(--theme-header-text, #111827) !important;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 10px 20px rgba(17, 24, 39, .06);
}

.indicator__button:hover {
    color: var(--theme-header-text, #111827) !important;
}

.indicator__area {
    display: grid;
    line-height: 1.2;
}

.indicator__area small {
    color: #64748b;
    font-weight: 500;
}

.cart-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 8px;
    background: #f4f6f8;
    color: var(--theme-header-text, #111827);
    font-size: 20px;
}

.cart-icon em {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 22px;
    height: 22px;
    border-radius: 999px;
    background: var(--theme-filter-button-bg, #2f64dc);
    color: var(--theme-filter-button-text, #fff);
    font-size: 12px;
    font-style: normal;
    line-height: 22px;
    text-align: center;
}

.header-agent-card {
    display: grid;
    align-content: center;
    height: 88px;
    padding: 8px 14px;
    border-radius: 10px;
    background: var(--theme-info-card-bg, #ffad17);
    color: var(--theme-info-card-text, #121826);
    font-size: 13px;
    line-height: 1.25;
}

.header-agent-card strong,
.header-agent-card span {
    font-weight: 800;
}

.header-agent-card small {
    font-size: 13px;
}

/* Keep representative details inside the fixed header column. */
.header-middle__container > .header-agent-card {
    width: 246px;
    min-width: 0;
    overflow: hidden;
    padding: 10px 14px;
    line-height: 1.25;
}

.header-middle__container > .header-agent-card strong,
.header-middle__container > .header-agent-card span,
.header-middle__container > .header-agent-card small {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.header-middle__container > .header-agent-card strong { margin-bottom: 2px; }
.header-middle__container > .header-agent-card span { margin-bottom: 2px; }
.header-middle__container > .header-agent-card small { font-size: 12px; }

.nav-main {
    min-height: 74px;
    background: var(--theme-menu-bg, #181818) !important;
}

.nav-main__list {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0;
    padding: 0;
    list-style: none;
}

.nav-main__link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-width: 104px;
    height: 74px;
    padding: 0 10px;
    color: var(--theme-menu-text, #fff);
    font-weight: 700;
    text-decoration: none;
}

.nav-main__link i {
    font-size: 20px;
}

.nav-main__link:hover {
    color: var(--theme-menu-text, #fff);
    background: rgba(255, 255, 255, .08);
}

.nav-main__item {
    position: relative;
}

.store-submenu {
    position: absolute;
    left: 0;
    top: 100%;
    z-index: 50;
    min-width: 210px;
    display: none;
    padding: 10px 0;
    border-radius: 0 0 10px 10px;
    background: var(--theme-surface-bg, #fff);
    box-shadow: 0 18px 34px rgba(17, 24, 39, .16);
}

.store-submenu a {
    display: block;
    padding: 12px 20px;
    color: #394150;
    text-decoration: none;
    white-space: nowrap;
}

.store-submenu a:hover {
    background: #f3f5f8;
    color: #111827;
}

.nav-main__item:hover .store-submenu,
.nav-main__item:focus-within .store-submenu {
    display: block;
}

.site__body > .container.mt-3 {
    max-width: 1320px;
}

.page-header {
    max-width: 1320px;
    margin: 24px auto 0;
    padding: 0;
    background: var(--theme-surface-bg, #fff);
    border-radius: 10px 10px 0 0;
    padding: 28px 16px 0;
}

.page-header__title h3 {
    margin: 0;
    font-size: 28px;
    font-weight: 800;
}

.urunler-list-page-filter-section .container,
.shop-layout,
.block > .container,
.container {
    max-width: 1320px;
}

.new-filter-panel {
    padding: 18px 0 14px;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.new-filter-panel label {
    font-weight: 600;
}

.products-view__options {
    margin: 8px 0 18px;
}

.products-list__body {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.products-list__item,
.products-list[data-layout] .products-list__item {
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
}

.product-card {
    height: 100%;
    min-height: 360px;
    display: flex;
    flex-direction: column;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    background: var(--theme-surface-bg, #fff);
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(17, 24, 39, .06);
}

.product-card__image {
    height: 170px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px;
    background: #f8fafc;
}

.product-card__image a,
.product-card__image img {
    display: block;
    max-width: 100%;
    max-height: 100%;
}

.product-card__image img {
    width: auto;
    height: auto;
    object-fit: contain;
}

.product-card__info {
    flex: 1;
    padding: 14px 16px 8px;
}

.product-card__name {
    min-height: 44px;
    font-weight: 800;
    line-height: 1.35;
}

.product-card__name a {
    color: #111827;
    text-decoration: none;
}

.product-card__features-list {
    margin: 10px 0 0;
    padding: 0;
    list-style: none;
    color: #64748b;
    font-size: 13px;
}

.product-card__actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 16px 16px;
}

.product-card__prices {
    color: #1f2937;
    font-size: 17px;
    font-weight: 800;
    white-space: nowrap;
}

.product-card__buttons {
    margin: 0;
}

.sepete-ekle-btn-color,
.urun-ara-btn-color {
    background: var(--theme-filter-button-bg, #3764c9) !important;
    color: var(--theme-filter-button-text, #fff) !important;
    border-color: var(--theme-filter-button-bg, #3764c9) !important;
}

.pagination .page-link {
    color: #111827;
}

.site-footer {
    margin-top: 40px;
    padding: 38px 0;
    background: var(--theme-footer-bg, #030303) !important;
    color: var(--theme-footer-text, #fff);
}

.footer-inner {
    width: 100%;
}

.site-footer {
    margin-top: 56px;
    padding: 52px 0 0;
    background: linear-gradient(135deg, #111827 0%, #172b4d 100%) !important;
    color: #dbe5f2;
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(180px, 1fr) minmax(180px, 1fr);
    gap: 64px;
    padding: 0 16px 46px;
}

.footer-brand__name {
    margin-bottom: 14px;
    color: #fff;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -.02em;
}

.footer-brand p {
    max-width: 390px;
    margin: 0;
    color: #aebed2;
    font-size: 13px;
    line-height: 1.7;
}

.footer-brand__rule {
    display: block;
    width: 42px;
    height: 3px;
    margin: 22px 0 12px;
    border-radius: 999px;
    background: #3d78dc;
}

.footer-brand small {
    color: #8fa5c0;
    font-size: 12px;
}

.footer-column h2 {
    margin: 2px 0 18px;
    color: #fff;
    font-size: 14px;
    font-weight: 800;
}

.footer-column a {
    display: block;
    margin-bottom: 12px;
    color: #b6c6da;
    font-size: 13px;
    text-decoration: none;
    transition: color .15s ease, transform .15s ease;
}

.footer-column a:hover {
    color: #fff;
    transform: translateX(3px);
}

.footer-column a i {
    width: 18px;
    margin-right: 6px;
    color: #6ea0ed;
    text-align: center;
}

.footer-column .footer-menu a { margin-bottom: 12px; }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 17px 16px;
    border-top: 1px solid rgba(255,255,255,.12);
    color: #91a6c0;
    font-size: 11px;
}

@media (max-width: 720px) {
    .site-footer { margin-top: 36px; padding-top: 36px; }
    .footer-grid { grid-template-columns: 1fr; gap: 30px; padding-bottom: 32px; }
    .footer-bottom { flex-direction: column; gap: 7px; }
}

.store-home {
    min-height: 660px;
    padding: 26px 0 80px;
}

.home-banner-card {
    width: 990px;
    max-width: calc(100vw - 32px);
    margin: 0 auto;
    padding: 32px 22px;
    border-radius: 10px;
    background: var(--theme-surface-bg, #fff);
    box-shadow: 0 16px 40px rgba(17, 24, 39, .06);
}

.home-banner-card img {
    display: block;
    width: 100%;
    height: 210px;
    object-fit: cover;
}

.legacy-product-page {
    width: 1326px;
    max-width: calc(100vw - 32px);
    margin: 24px auto 0;
}

.legacy-product-shell {
    padding: 22px 16px 20px;
    border-radius: 10px;
    background: var(--theme-surface-bg, #fff);
    box-shadow: 0 16px 40px rgba(17, 24, 39, .06);
}

.legacy-product-shell h1 {
    margin: 0 0 12px;
    color: #111827;
    font-size: 32px;
    font-weight: 900;
}

.legacy-product-filter {
    width: 630px;
    max-width: 100%;
    border: 1px solid #d8dde4;
    border-bottom: 0;
    background: var(--theme-surface-bg, #fff);
}

.filter-row {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    min-height: 41px;
    border-bottom: 1px solid #d8dde4;
}

.filter-row label,
.filter-actions strong {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0 12px;
    background: var(--theme-secondary-button-bg, #30363d);
    color: var(--theme-secondary-button-text, #fff);
    font-weight: 800;
    font-size: 13px;
}

.filter-row input,
.filter-row select {
    width: 100%;
    border: 0;
    padding: 0 14px;
    color: #64748b;
    outline: 0;
}

.filter-checks {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    padding: 14px 12px 18px;
    border-bottom: 1px solid #d8dde4;
}

.filter-checks label {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin: 0;
}

.filter-actions {
    display: grid;
    grid-template-columns: 150px 144px 166px 1fr;
    min-height: 33px;
    margin-top: 46px;
}

.filter-actions button,
.filter-actions a {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: var(--theme-secondary-button-bg, #30363d);
    color: var(--theme-secondary-button-text, #fff);
    font-weight: 800;
    text-decoration: none;
}

.filter-actions a {
    background: var(--theme-danger-button-bg, #ff1111);
    color: var(--theme-danger-button-text, #fff);
}

.legacy-product-count {
    margin: 14px 0;
    color: #64748b;
    font-size: 13px;
}

.legacy-product-table-wrap {
    overflow-x: auto;
    border: 1px solid #d8dde4;
}

.legacy-product-table {
    width: 100%;
    min-width: 1320px;
    border-collapse: collapse;
    font-size: 12px;
}

.legacy-product-table th {
    height: 35px;
    padding: 8px 10px;
    border-right: 1px solid #d8dde4;
    background: var(--theme-table-header-bg, #777e82);
    color: var(--theme-table-header-text, #fff);
    font-weight: 800;
    text-align: center;
}

.legacy-product-table th:nth-child(10) {
    background: var(--theme-secondary-button-bg, #050505);
}

.legacy-product-table td {
    padding: 10px 9px;
    border-right: 1px solid #d8dde4;
    border-bottom: 1px solid #d8dde4;
    color: #2f3640;
    vertical-align: middle;
}

.legacy-product-table td:first-child {
    width: 215px;
}

.legacy-product-table td a {
    color: #2f3640;
    text-decoration: none;
}

.legacy-product-table td small {
    display: block;
    margin-top: 5px;
    color: #6b7280;
}

/* Desktop catalog: use the available viewport instead of forcing table scroll. */
@media (min-width: 1200px) {
    .legacy-product-page {
        width: min(1720px, calc(100vw - 32px));
        max-width: none;
    }

    .site__body > .container.mt-3:has(.legacy-product-table-wrap),
    .urunler-list-page-filter-section .container:has(.legacy-product-table-wrap) {
        width: min(1720px, calc(100% - 48px));
        max-width: none;
    }

    .legacy-product-table-wrap {
        overflow-x: hidden;
    }

    .legacy-product-table {
        width: 100%;
        min-width: 0;
        table-layout: fixed;
    }

    .legacy-product-table td:first-child {
        width: 17%;
    }

    .legacy-product-table th,
    .legacy-product-table td {
        overflow-wrap: anywhere;
    }

    .legacy-product-table th:nth-child(1),
    .legacy-product-table td:nth-child(1) { width: 18%; }
    .legacy-product-table th:nth-child(2),
    .legacy-product-table td:nth-child(2) { width: 9%; }
    .legacy-product-table th:nth-child(3),
    .legacy-product-table td:nth-child(3) { width: 7%; }
    .legacy-product-table th:nth-child(4),
    .legacy-product-table td:nth-child(4) { width: 8%; }
    .legacy-product-table th:nth-child(5),
    .legacy-product-table td:nth-child(5) { width: 8%; }
    .legacy-product-table th:nth-child(6),
    .legacy-product-table td:nth-child(6) { width: 8%; }
    .legacy-product-table th:nth-child(7),
    .legacy-product-table td:nth-child(7) { width: 8%; }
    .legacy-product-table th:nth-child(8),
    .legacy-product-table td:nth-child(8) { width: 12%; }
    .legacy-product-table th:nth-child(9),
    .legacy-product-table td:nth-child(9) { width: 9%; }
    .legacy-product-table th:nth-child(10),
    .legacy-product-table td:nth-child(10) { width: 7%; }
    .legacy-product-table th:nth-child(11),
    .legacy-product-table td:nth-child(11) { width: 6%; }
}

/* Professional catalog refresh for the Otomotiv theme. */
.legacy-product-shell {
    padding: 28px 24px 24px;
    border: 1px solid #e5eaf1;
    border-radius: 14px;
    box-shadow: 0 18px 44px rgba(15, 23, 42, .07);
}

.legacy-product-shell h1 {
    margin-bottom: 20px;
    font-size: 30px;
    letter-spacing: -.03em;
}

.legacy-product-filter {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    padding: 14px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
    box-shadow: 0 8px 20px rgba(15, 23, 42, .04);
}

.legacy-product-filter .filter-row {
    min-height: 46px;
    border: 1px solid #dbe3ef;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

.legacy-product-filter .filter-row label {
    padding: 0 13px;
    background: #334155;
    font-size: 12px;
    letter-spacing: .01em;
}

.legacy-product-filter .filter-row input,
.legacy-product-filter .filter-row select {
    background: #fff;
    font-size: 13px;
}

.legacy-product-filter .filter-row input:focus,
.legacy-product-filter .filter-row select:focus {
    box-shadow: inset 0 0 0 2px rgba(37, 99, 235, .18);
}

.legacy-product-filter .filter-checks {
    grid-column: 1 / -1;
    gap: 18px;
    padding: 4px 2px 2px;
    border: 0;
    color: #334155;
    font-size: 13px;
}

.legacy-product-filter .filter-checks label {
    font-weight: 600;
}

.legacy-product-filter .filter-actions {
    grid-column: 1 / -1;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    min-height: 44px;
    margin-top: 2px;
    overflow: hidden;
    border-radius: 8px;
}

.legacy-product-filter .filter-actions button,
.legacy-product-filter .filter-actions a {
    transition: background-color .18s ease, transform .18s ease;
}

.legacy-product-filter .filter-actions button:hover,
.legacy-product-filter .filter-actions a:hover {
    filter: brightness(1.08);
}

.legacy-product-count {
    margin: 18px 2px 10px;
    color: #64748b;
    font-size: 13px;
    font-weight: 600;
}

.legacy-product-table-wrap {
    overflow: hidden;
    border: 1px solid #dbe3ef;
    border-radius: 12px;
    box-shadow: 0 10px 26px rgba(15, 23, 42, .05);
}

.legacy-product-table {
    font-size: 12px;
}

.legacy-product-table thead th {
    height: 48px !important;
    padding: 6px 9px !important;
    border-color: rgba(255, 255, 255, .18);
    background: #334155;
    letter-spacing: .045em;
}

.legacy-product-table thead th:nth-child(10) {
    background: #172033;
}

.legacy-product-table tbody tr {
    transition: background-color .16s ease;
}

.legacy-product-table tbody tr:hover td {
    background: #f8fbff;
}

.legacy-product-table td {
    padding: 11px 10px;
    border-color: #dbe3ef;
}

.legacy-product-table .qty-box {
    display: inline-flex;
    align-items: stretch;
    height: 34px;
    overflow: hidden;
    border: 1px solid #cbd5e1;
    border-radius: 7px;
    background: #fff;
}

.legacy-product-table .qty-box button,
.legacy-product-table .qty-box input {
    height: 32px;
    border: 0;
}

.legacy-product-table .qty-box button {
    width: 30px;
    background: #172033;
    color: #fff;
    font-weight: 800;
}

.legacy-product-table .qty-box button:hover {
    background: #2563eb;
}

.legacy-product-table .qty-box input {
    width: 38px;
    padding: 0 3px;
    color: #172033;
    text-align: center;
}

.legacy-product-table .cart-table-btn,
.legacy-product-table .view-table-btn {
    width: 42px;
    height: 38px;
    border-radius: 7px;
}

.legacy-product-table .cart-table-btn {
    background: #172033;
}

.legacy-product-table .cart-table-btn:hover {
    background: #2563eb;
}

@media (max-width: 899px) {
    .legacy-product-filter {
        grid-template-columns: 1fr;
    }

    .legacy-product-filter .filter-checks,
    .legacy-product-filter .filter-actions {
        grid-column: auto;
    }
}

@media (max-width: 600px) {
    .legacy-product-shell {
        padding: 20px 12px 16px;
        border-radius: 10px;
    }

    .legacy-product-filter {
        padding: 10px;
    }

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

/* Professional orders page for the Otomotiv theme. */
.legacy-orders-page {
    width: min(1720px, calc(100vw - 48px));
    margin: 34px auto 70px;
}

.legacy-orders-shell {
    padding: 30px 32px 34px;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 18px 44px rgba(15, 23, 42, .07);
}

.legacy-orders-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 26px;
}

.legacy-orders-kicker {
    display: block;
    margin-bottom: 6px;
    color: #2563eb;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.legacy-orders-heading h1 {
    margin: 0;
    color: #172033;
    font-size: 32px;
    font-weight: 900;
    letter-spacing: -.035em;
}

.legacy-orders-heading p {
    margin: 7px 0 0;
    color: #64748b;
    font-size: 13px;
}

.legacy-orders-heading-icon {
    display: grid;
    width: 58px;
    height: 58px;
    flex: 0 0 58px;
    place-items: center;
    border-radius: 14px;
    background: #eff6ff;
    color: #2563eb;
    font-size: 24px;
}

.legacy-orders-page .order-filter {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 120px 190px;
    gap: 10px;
    margin-bottom: 24px;
    padding: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 11px;
    background: #f8fafc;
}

.order-search-field {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    height: 44px;
    padding: 0 14px;
    border: 1px solid #dbe3ef;
    border-radius: 8px;
    background: #fff;
    color: #94a3b8;
}

.order-search-field input {
    width: 100%;
    min-width: 0;
    height: 100%;
    border: 0;
    outline: 0;
    color: #172033;
    font: inherit;
}

.legacy-orders-page .order-filter button,
.legacy-orders-page .order-filter a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 44px;
    border: 0;
    border-radius: 8px;
    font-weight: 800;
    text-decoration: none;
}

.legacy-orders-page .order-filter button {
    background: #2563eb;
}

.legacy-orders-page .order-products-link {
    border: 1px solid #cbd5e1 !important;
    background: #fff;
    color: #334155;
}

.legacy-orders-page .order-filter button:hover,
.legacy-orders-page .order-products-link:hover {
    transform: translateY(-1px);
}

.legacy-orders-page .legacy-table-shell {
    overflow: hidden;
    border: 1px solid #dbe3ef;
    border-radius: 12px;
    box-shadow: 0 10px 26px rgba(15, 23, 42, .05);
}

.legacy-orders-page .legacy-table {
    width: 100%;
    font-size: 13px;
}

.legacy-orders-page .legacy-table th {
    height: 48px;
    padding: 8px 14px;
    border: 0;
    background: #334155;
    color: #fff;
    font-size: 11px;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.legacy-orders-page .legacy-table td {
    padding: 16px 14px;
    border-color: #e2e8f0;
    color: #334155;
}

.legacy-orders-page .legacy-table tbody tr:hover td {
    background: #f8fbff;
}

.legacy-orders-page .legacy-table td:last-child,
.legacy-orders-page .legacy-table th:last-child {
    text-align: right;
}

.legacy-orders-page .legacy-table td:last-child .btn {
    border: 1px solid #cbd5e1;
    border-radius: 7px;
    background: #fff;
    color: #2563eb;
    font-weight: 700;
}

.orders-empty-state {
    height: 250px;
    text-align: center !important;
}

.orders-empty-state > * {
    display: block;
    margin-right: auto;
    margin-left: auto;
}

.orders-empty-icon {
    display: grid !important;
    width: 52px;
    height: 52px;
    margin-bottom: 12px !important;
    place-items: center;
    border-radius: 50%;
    background: #eff6ff;
    color: #2563eb;
    font-size: 21px;
}

.orders-empty-state strong {
    color: #172033;
    font-size: 15px;
}

.orders-empty-state small {
    margin-top: 6px !important;
    color: #64748b;
    font-size: 13px;
}

.orders-empty-state .btn {
    width: fit-content;
    margin-top: 16px !important;
    border-radius: 7px;
    background: #2563eb;
    color: #fff;
    font-weight: 800;
}

.legacy-orders-page .pagination {
    gap: 6px;
    margin-top: 22px !important;
}

.legacy-orders-page .pagination .page-link {
    border: 1px solid #dbe3ef;
    border-radius: 7px;
    color: #475569;
}

@media (max-width: 760px) {
    .legacy-orders-page {
        width: calc(100vw - 24px);
        margin-top: 20px;
    }

    .legacy-orders-shell {
        padding: 22px 14px 24px;
        border-radius: 11px;
    }

    .legacy-orders-heading h1 {
        font-size: 26px;
    }

    .legacy-orders-heading-icon {
        width: 48px;
        height: 48px;
        flex-basis: 48px;
    }

    .legacy-orders-page .order-filter {
        grid-template-columns: 1fr;
    }

    .legacy-orders-page .legacy-table-shell {
        overflow-x: auto;
    }

    .legacy-orders-page .legacy-table {
        min-width: 760px;
    }
}

/* Professional current-account page for the Otomotiv theme. */
.account-page {
    width: min(1720px, calc(100vw - 48px));
    min-height: 0;
    margin: 34px auto 70px;
    padding: 30px 32px 34px;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 18px 44px rgba(15, 23, 42, .07);
}

.account-page-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 14px;
}

.account-page-kicker {
    display: block;
    margin-bottom: 6px;
    color: #2563eb;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.account-page-heading h1 {
    margin: 0;
    color: #172033;
    font-size: 32px;
    font-weight: 900;
    letter-spacing: -.035em;
}

.account-page-heading p {
    margin: 7px 0 0;
    color: #64748b;
    font-size: 13px;
}

.account-page-heading-icon {
    display: grid;
    width: 58px;
    height: 58px;
    flex: 0 0 58px;
    place-items: center;
    border-radius: 14px;
    background: #eff6ff;
    color: #2563eb;
    font-size: 24px;
}

.account-page-actions {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 18px;
}

.account-page .account-action-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    padding: 0 14px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #fff;
    color: #2563eb;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
}

.account-summary-grid {
    gap: 14px;
    margin: 0 0 22px;
}

.account-summary-grid article {
    position: relative;
    min-height: 112px;
    gap: 7px;
    padding: 20px 22px 18px 66px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
    box-shadow: none;
}

.account-summary-grid article > i {
    position: absolute;
    top: 20px;
    left: 20px;
    display: grid;
    width: 32px;
    height: 32px;
    place-items: center;
    border-radius: 9px;
    background: #dbeafe;
    color: #2563eb;
}

.account-summary-grid article:nth-child(2) > i {
    background: #ffedd5;
    color: #ea580c;
}

.account-summary-grid article:nth-child(3) > i {
    background: #dcfce7;
    color: #16a34a;
}

.account-summary-grid span {
    color: #64748b;
    font-size: 13px;
}

.account-summary-grid strong {
    color: #172033;
    font-size: 22px;
}

.account-page .cart-report-filter {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 190px 112px;
    gap: 12px;
    margin-bottom: 18px;
    padding: 14px;
    border: 1px solid #e2e8f0;
    border-radius: 11px;
    background: #f8fafc;
}

.account-page .cart-report-filter label {
    gap: 7px;
    color: #475569;
    font-size: 12px;
    font-weight: 700;
}

.account-page .cart-report-filter input,
.account-page .cart-report-filter select {
    min-height: 42px;
    border: 1px solid #cbd5e1;
    border-radius: 7px;
    background: #fff;
    color: #334155;
}

.account-page .cart-report-filter button {
    min-height: 42px;
    border-radius: 7px;
    background: #2563eb;
}

.account-report-table-shell {
    overflow: hidden;
    border: 1px solid #dbe3ef;
    border-radius: 12px;
    box-shadow: 0 10px 26px rgba(15, 23, 42, .05);
}

.account-page .report-table {
    border-spacing: 0;
    font-size: 13px;
}

.account-page .report-table th {
    height: 48px;
    padding: 8px 12px;
    border: 0;
    background: #334155;
    color: #fff;
    font-size: 11px;
    letter-spacing: .045em;
    white-space: nowrap;
}

.account-page .report-table td {
    padding: 14px 12px;
    border-right: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
    background: #fff;
    color: #334155;
}

.account-page .report-table tr:nth-child(even) td,
.account-page .report-table tbody tr:hover td {
    background: #f8fbff;
}

.account-page .report-table td a {
    color: #2563eb;
    font-weight: 700;
    text-decoration: none;
}

@media (max-width: 900px) {
    .account-page {
        width: calc(100vw - 24px);
        margin-top: 20px;
        padding: 22px 14px 24px;
        border-radius: 11px;
    }

    .account-page-heading h1 {
        font-size: 26px;
    }

    .account-summary-grid {
        grid-template-columns: 1fr;
    }

    .account-page .cart-report-filter {
        grid-template-columns: 1fr 1fr;
    }

    .account-report-table-shell {
        overflow-x: auto;
    }

    .account-page .report-table {
        min-width: 920px;
    }
}

/* Professional payments page for the Otomotiv theme. */
.payments-list-page {
    width: min(1720px, calc(100vw - 48px));
    max-width: none;
    margin: 24px auto 70px;
}

.payments-list-page .legacy-breadcrumb {
    margin-bottom: 18px;
    color: #64748b;
}

.payments-list-shell {
    margin: 0;
    padding: 30px 32px 28px;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 18px 44px rgba(15, 23, 42, .07);
}

.payments-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
}

.payments-kicker {
    display: block;
    margin-bottom: 6px;
    color: #2563eb;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.payments-list-shell h1 {
    margin: 0;
    color: #172033;
    font-size: 32px;
    letter-spacing: -.035em;
}

.payments-heading p {
    margin: 7px 0 0;
    color: #64748b;
    font-size: 13px;
}

.payments-heading-icon {
    display: grid;
    width: 58px;
    height: 58px;
    flex: 0 0 58px;
    place-items: center;
    border-radius: 14px;
    background: #eff6ff;
    color: #2563eb;
    font-size: 24px;
}

.payments-table-wrap {
    overflow: hidden;
    border: 1px solid #dbe3ef;
    border-radius: 12px;
    box-shadow: 0 10px 26px rgba(15, 23, 42, .05);
}

.payments-table {
    min-width: 0;
    font-size: 13px;
}

.payments-table th {
    height: 48px;
    padding: 8px 12px;
    border: 0;
    background: #334155;
    font-size: 11px;
    letter-spacing: .045em;
    white-space: nowrap;
}

.payments-table td {
    padding: 14px 12px;
    border-right: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
    background: #fff;
}

.payments-table tbody tr:hover td {
    background: #f8fbff;
}

.payments-table td a {
    color: #2563eb;
    font-weight: 800;
    text-decoration: none;
}

.payment-status {
    min-height: 26px;
    padding: 0 9px;
    border-radius: 999px;
    background: #dcfce7;
    color: #15803d;
}

.payments-empty-state {
    height: 220px;
    text-align: center !important;
}

.payments-empty-state > * {
    display: block;
    margin-right: auto;
    margin-left: auto;
}

.payments-empty-state span {
    display: grid !important;
    width: 52px;
    height: 52px;
    margin-bottom: 12px;
    place-items: center;
    border-radius: 50%;
    background: #eff6ff;
    color: #2563eb;
    font-size: 21px;
}

.payments-empty-state strong {
    color: #172033;
    font-size: 15px;
}

.payments-empty-state small {
    margin-top: 6px;
    color: #64748b;
    font-size: 13px;
}

.payments-footer {
    margin-top: 16px;
    color: #64748b;
    font-size: 13px;
}

.payments-footer label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.payments-footer select {
    min-height: 36px;
    border: 1px solid #cbd5e1;
    border-radius: 7px;
}

.payments-footer nav {
    gap: 10px;
}

.payments-footer nav span {
    padding: 8px 11px;
    border: 1px solid #dbe3ef;
    border-radius: 7px;
    color: #475569;
    font-weight: 700;
}

.payments-footer nav .is-disabled {
    color: #94a3b8;
}

@media (max-width: 900px) {
    .payments-list-page {
        width: calc(100vw - 24px);
        margin-top: 20px;
    }

    .payments-list-shell {
        padding: 22px 14px 24px;
        border-radius: 11px;
    }

    .payments-list-shell h1 {
        font-size: 26px;
    }

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

    .payments-table {
        min-width: 1160px;
    }
}

@media (max-width: 560px) {
    .account-page .cart-report-filter {
        grid-template-columns: 1fr;
    }
}

/* Restore the compact, stacked catalog search layout. */
.legacy-product-filter {
    display: block;
    width: 630px;
    max-width: 100%;
    padding: 0;
    border: 1px solid #d8dde4;
    border-bottom: 0;
    border-radius: 0;
    background: #fff;
    box-shadow: none;
}

.legacy-product-filter .filter-row {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    min-height: 41px;
    border: 0;
    border-bottom: 1px solid #d8dde4;
    border-radius: 0;
}

.legacy-product-filter .filter-row label {
    padding: 0 12px;
    background: #30363d;
    font-size: 13px;
}

.legacy-product-filter .filter-row input,
.legacy-product-filter .filter-row select {
    border: 0;
    border-radius: 0;
    box-shadow: none;
    padding: 0 14px;
}

.legacy-product-filter .filter-checks {
    gap: 16px;
    padding: 14px 12px 18px;
    border-bottom: 1px solid #d8dde4;
}

.legacy-product-filter .filter-actions {
    grid-template-columns: 150px 144px 166px 1fr;
    min-height: 33px;
    margin-top: 46px;
    border-radius: 0;
}

/* Avoid a framed panel around already-framed cart cards. */
.legacy-cart-shell {
    border: 0;
    box-shadow: none;
}

/* Otomotiv cart: fields controlled by the sales-representative permissions. */
.legacy-cart-shell .cart-restricted-field input[readonly] {
    background: #f1f5f9;
    color: #64748b;
    cursor: not-allowed;
}

.legacy-cart-shell .cart-restricted-field {
    position: relative;
}

.legacy-cart-shell .cart-restricted-field::after {
    content: "Kilitli";
    display: block;
    margin-top: 4px;
    color: #94a3b8;
    font-size: 10px;
    font-weight: 600;
    line-height: 1;
}

/* When KDV permission is absent, remove the complete KDV column from the card. */
.legacy-cart-shell .legacy-cart-table.cart-no-vat tbody td:nth-child(5) { grid-area: list; }
.legacy-cart-shell .legacy-cart-table.cart-no-vat tbody td:nth-child(6) { grid-area: discount; }
.legacy-cart-shell .legacy-cart-table.cart-no-vat tbody td:nth-child(7) { grid-area: price; }
.legacy-cart-shell .legacy-cart-table.cart-no-vat tbody td:nth-child(8) { grid-area: total; }
.legacy-cart-shell .legacy-cart-table.cart-no-vat tbody td:nth-child(9) { grid-area: remove; align-self: start; }

.legacy-cart-shell .legacy-cart-table.cart-no-vat tbody td:nth-child(5)::before { content: "Liste FiyatÄ±"; }
.legacy-cart-shell .legacy-cart-table.cart-no-vat tbody td:nth-child(6)::before { content: "Ä°skonto"; }
.legacy-cart-shell .legacy-cart-table.cart-no-vat tbody td:nth-child(7)::before { content: "Net Fiyat"; }
.legacy-cart-shell .legacy-cart-table.cart-no-vat tbody td:nth-child(8)::before { content: "Tutar"; }

.legacy-cart-shell .legacy-cart-table.cart-no-vat tbody td:nth-child(5),
.legacy-cart-shell .legacy-cart-table.cart-no-vat tbody td:nth-child(7),
.legacy-cart-shell .legacy-cart-table.cart-no-vat tbody td:nth-child(8) {
    color: #172033;
    font-weight: 800;
}

.legacy-cart-shell .legacy-cart-table.cart-no-vat tbody td:nth-child(5) input,
.legacy-cart-shell .legacy-cart-table.cart-no-vat tbody td:nth-child(6) input,
.legacy-cart-shell .legacy-cart-table.cart-no-vat tbody td:nth-child(7) input {
    width: 100%;
    max-width: 140px;
}

@media (max-width: 700px) {
    .legacy-cart-shell .legacy-cart-table.cart-no-vat tbody tr:not(:has(.legacy-empty-cart-cell)) {
        grid-template-areas:
            "check image product remove"
            "quantity list discount price"
            "total total total total";
    }
}

@media (min-width: 1100px) {
    .legacy-cart-shell .legacy-cart-table.cart-no-vat tbody tr:not(:has(.legacy-empty-cart-cell)) {
        grid-template-columns: 32px 72px minmax(220px, 1fr) 76px 112px 96px 112px 112px 48px;
        grid-template-areas:
            "check image product product product product product product remove"
            "check image quantity list discount price total total remove";
    }
}

.legacy-page-breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 18px;
    color: #94a3b8;
    font-size: 13px;
}

.legacy-page-breadcrumb a {
    color: #64748b;
    text-decoration: none;
}

.legacy-page-breadcrumb a:hover {
    color: #2563eb;
}

.legacy-page-breadcrumb span {
    color: #cbd5e1;
    font-size: 18px;
    line-height: 1;
}

.legacy-page-breadcrumb strong {
    color: #334155;
    font-weight: 700;
}

.account-page .legacy-page-breadcrumb {
    margin-right: 0;
    margin-left: 0;
}

.page-breadcrumb-container {
    width: min(1720px, calc(100vw - 48px));
    margin: 24px auto 0;
}

.legacy-product-page > .legacy-page-breadcrumb {
    margin-bottom: 18px;
}

/* Professional returns page for the Otomotiv theme. */
.legacy-returns-page {
    width: min(1720px, calc(100vw - 48px));
    margin: 34px auto 70px;
}

.legacy-returns-shell {
    padding: 30px 32px 34px;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 18px 44px rgba(15, 23, 42, .07);
}

.legacy-returns-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 26px;
}

.legacy-returns-kicker {
    display: block;
    margin-bottom: 6px;
    color: #2563eb;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.legacy-returns-heading h1 {
    margin: 0;
    color: #172033;
    font-size: 32px;
    font-weight: 900;
    letter-spacing: -.035em;
}

.legacy-returns-heading p {
    margin: 7px 0 0;
    color: #64748b;
    font-size: 13px;
}

.legacy-returns-heading-icon {
    display: grid;
    width: 58px;
    height: 58px;
    flex: 0 0 58px;
    place-items: center;
    border-radius: 14px;
    background: #fff7ed;
    color: #ea580c;
    font-size: 24px;
}

.returns-empty-state {
    display: flex;
    min-height: 270px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 34px 20px;
    border: 1px solid #fed7aa;
    border-radius: 12px;
    background: linear-gradient(145deg, #fffaf5, #fff7ed);
    text-align: center;
}

.returns-empty-icon {
    display: grid;
    width: 58px;
    height: 58px;
    margin-bottom: 14px;
    place-items: center;
    border-radius: 50%;
    background: #ffedd5;
    color: #ea580c;
    font-size: 23px;
}

.returns-empty-state strong {
    color: #172033;
    font-size: 17px;
}

.returns-empty-state p {
    max-width: 520px;
    margin: 8px 0 18px;
    color: #64748b;
    font-size: 13px;
}

.returns-empty-state .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 18px;
    border-radius: 8px;
    background: #ea580c;
    color: #fff;
    font-weight: 800;
    text-decoration: none;
}

.legacy-returns-page .legacy-table-shell {
    overflow: hidden;
    border: 1px solid #dbe3ef;
    border-radius: 12px;
    box-shadow: 0 10px 26px rgba(15, 23, 42, .05);
}

.legacy-returns-page .legacy-table {
    width: 100%;
    margin: 0;
    font-size: 13px;
}

.legacy-returns-page .legacy-table th {
    height: 48px;
    padding: 8px 14px;
    border: 0;
    background: #334155;
    color: #fff;
    font-size: 11px;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.legacy-returns-page .legacy-table td {
    padding: 16px 14px;
    border-color: #e2e8f0;
    color: #334155;
}

.legacy-returns-page .legacy-table tbody tr:hover td {
    background: #fffaf5;
}

@media (max-width: 760px) {
    .legacy-returns-page {
        width: calc(100vw - 24px);
        margin-top: 20px;
    }

    .legacy-returns-shell {
        padding: 22px 14px 24px;
        border-radius: 11px;
    }

    .legacy-returns-heading h1 {
        font-size: 26px;
    }

    .legacy-returns-heading-icon {
        width: 48px;
        height: 48px;
        flex-basis: 48px;
    }

    .legacy-returns-page .legacy-table-shell {
        overflow-x: auto;
    }

    .legacy-returns-page .legacy-table {
        min-width: 620px;
    }
}

/* Professional offers page for the Otomotiv theme. */
.legacy-offers-page {
    width: min(1720px, calc(100vw - 48px));
    margin: 34px auto 70px;
}

.legacy-offers-shell {
    padding: 30px 32px 34px;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 18px 44px rgba(15, 23, 42, .07);
}

.legacy-offers-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 26px;
}

.legacy-offers-kicker {
    display: block;
    margin-bottom: 6px;
    color: #2563eb;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.legacy-offers-heading h1 {
    margin: 0;
    color: #172033;
    font-size: 32px;
    font-weight: 900;
    letter-spacing: -.035em;
}

.legacy-offers-heading p {
    margin: 7px 0 0;
    color: #64748b;
    font-size: 13px;
}

.legacy-offers-heading-icon {
    display: grid;
    width: 58px;
    height: 58px;
    flex: 0 0 58px;
    place-items: center;
    border-radius: 14px;
    background: #eff6ff;
    color: #2563eb;
    font-size: 24px;
}

.offers-empty-state {
    display: flex;
    min-height: 270px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 34px 20px;
    border: 1px solid #dbeafe;
    border-radius: 12px;
    background: linear-gradient(145deg, #f8fbff, #eff6ff);
    text-align: center;
}

.offers-empty-icon {
    display: grid;
    width: 58px;
    height: 58px;
    margin-bottom: 14px;
    place-items: center;
    border-radius: 50%;
    background: #dbeafe;
    color: #2563eb;
    font-size: 23px;
}

.offers-empty-state strong {
    color: #172033;
    font-size: 17px;
}

.offers-empty-state p {
    max-width: 520px;
    margin: 8px 0 18px;
    color: #64748b;
    font-size: 13px;
}

.offers-empty-state .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 18px;
    border-radius: 8px;
    background: #2563eb;
    color: #fff;
    font-weight: 800;
    text-decoration: none;
}

.legacy-offers-page .legacy-table-shell {
    overflow: hidden;
    border: 1px solid #dbe3ef;
    border-radius: 12px;
    box-shadow: 0 10px 26px rgba(15, 23, 42, .05);
}

.legacy-offers-page .legacy-table {
    width: 100%;
    margin: 0;
    font-size: 13px;
}

.legacy-offers-page .legacy-table th {
    height: 48px;
    padding: 8px 14px;
    border: 0;
    background: #334155;
    color: #fff;
    font-size: 11px;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.legacy-offers-page .legacy-table td {
    padding: 16px 14px;
    border-color: #e2e8f0;
    color: #334155;
}

.legacy-offers-page .legacy-table tbody tr:hover td {
    background: #f8fbff;
}

.legacy-offers-page .legacy-table td a {
    color: #2563eb;
    font-weight: 800;
    text-decoration: none;
}

@media (max-width: 760px) {
    .legacy-offers-page {
        width: calc(100vw - 24px);
        margin-top: 20px;
    }

    .legacy-offers-shell {
        padding: 22px 14px 24px;
        border-radius: 11px;
    }

    .legacy-offers-heading h1 {
        font-size: 26px;
    }

    .legacy-offers-heading-icon {
        width: 48px;
        height: 48px;
        flex-basis: 48px;
    }

    .legacy-offers-page .legacy-table-shell {
        overflow-x: auto;
    }

    .legacy-offers-page .legacy-table {
        min-width: 650px;
    }
}

.past-purchases-link {
    display: block;
    margin-top: 5px;
    color: #6b7280 !important;
    font-size: 12px;
}

.stock-dot {
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: 999px;
    background: var(--theme-stock-available, #29bd11);
}

.stock-dot.is-incoming {
    background: var(--theme-stock-incoming, #f4b400);
}

.stock-dot.is-empty {
    background: var(--theme-stock-empty, #dc3545);
}

.stock-badge {
    min-height: 22px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0 8px;
    border-radius: 999px;
    background: #e9f9ed;
    color: #167a28;
    font-size: 11px;
    font-weight: 900;
    white-space: nowrap;
}

.stock-badge.is-incoming {
    background: #fff5d6;
    color: #8a6100;
}

.stock-badge.is-empty {
    background: #fde7ea;
    color: #b42334;
}

.product-flag {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
}

.product-flag.is-campaign {
    background: #fef3c7;
    color: #92400e;
}

.product-flag.is-discount {
    background: #dcfce7;
    color: #166534;
}

.table-product-flags,
.detail-product-flags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
}

.legacy-tooltip-trigger {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.legacy-tooltip {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 10px);
    z-index: 90;
    display: none;
    min-width: 220px;
    padding: 10px 12px;
    border: 1px solid #cfd6df;
    border-radius: 4px;
    background: #fff;
    color: #1f2937;
    box-shadow: 0 12px 28px rgba(17, 24, 39, .18);
    transform: translateX(-50%);
}

.legacy-tooltip::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 100%;
    width: 12px;
    height: 12px;
    border-right: 1px solid #cfd6df;
    border-bottom: 1px solid #cfd6df;
    background: #fff;
    transform: translate(-50%, -6px) rotate(45deg);
}

.legacy-tooltip-trigger:hover .legacy-tooltip,
.legacy-tooltip-trigger:focus-within .legacy-tooltip {
    display: block;
}

.legacy-tooltip strong {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
}

.legacy-tooltip span {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 18px;
    padding: 5px 0;
    border-top: 1px solid #e5e7eb;
    font-size: 13px;
}

.legacy-tooltip em {
    font-style: normal;
}

.price-tooltip {
    left: 0;
    min-width: 210px;
    transform: translateX(-75%);
}

.depot-tooltip {
    left: 0;
    min-width: 240px;
    transform: translateX(8px);
}

.info-dot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background: #263039;
    color: #fff;
    font-size: 9px;
    font-weight: 800;
}

.table-product-image {
    width: 34px;
    height: 34px;
    object-fit: contain;
}

.table-image-cell {
    display: grid;
    justify-items: center;
    gap: 5px;
}

.table-image-cell .stock-badge {
    max-width: 88px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.price-box {
    display: grid;
    gap: 4px;
    min-width: 116px;
    padding: 7px 9px;
    border: 1px solid #dfe5ee;
    border-radius: 5px;
    color: #64748b;
}

.catalog-toolbar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin: 26px 0;
}

.catalog-toolbar select {
    height: 34px;
    border: 1px solid #cfd6df;
    padding: 0 10px;
    background: #fff;
}

.catalog-product-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.catalog-product-card {
    display: grid;
    grid-template-rows: 360px 28px auto auto auto;
    min-height: 610px;
    padding: 14px;
    border: 1px solid #edf0f5;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 4px 14px rgba(17, 24, 39, .04);
}

.catalog-product-image {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #edf0f5;
    border-radius: 10px;
    overflow: hidden;
}

.catalog-product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.catalog-product-badges {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    margin-top: 8px;
    overflow: hidden;
}

.catalog-product-badges .stock-badge {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

.catalog-product-card h2 {
    margin: 22px 0 14px;
    min-height: 42px;
    color: #111827;
    font-size: 17px;
    font-weight: 900;
    line-height: 1.25;
}

.catalog-product-card dl {
    display: grid;
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 7px 10px;
    margin: 0 0 14px;
    font-size: 12px;
}

.catalog-product-card dt,
.catalog-product-card dd {
    margin: 0;
}

.catalog-product-card dt {
    color: #4b5563;
    font-weight: 800;
}

.catalog-card-price {
    display: grid;
    gap: 4px;
    margin-top: auto;
    padding: 10px;
    border: 1px solid #dfe5ee;
    border-radius: 6px;
}

.catalog-card-actions {
    display: grid;
    grid-template-columns: 58px 1fr;
    gap: 8px;
    margin-top: 12px;
}

.catalog-card-actions input,
.catalog-card-actions button {
    height: 36px;
    border: 0;
}

.catalog-card-actions input {
    border: 1px solid #d8dde4;
    text-align: center;
}

.catalog-card-actions button {
    background: var(--theme-add-to-cart-bg, #030303);
    color: var(--theme-add-to-cart-text, #fff);
    font-weight: 900;
}

.payment-shell,
.contact-page-modern,
.collection-page {
    width: 990px;
    max-width: calc(100vw - 32px);
    margin: 0 auto;
    padding: 24px 0 80px;
}

.payment-panel {
    display: none;
}

.payment-panel.active {
    display: block;
}

.payment-grid,
.collection-form-grid,
.contact-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 22px;
}

.payment-grid label,
.collection-form-grid label,
.contact-form-grid label {
    display: grid;
    gap: 7px;
    font-size: 13px;
}

.payment-grid input,
.collection-form-grid input,
.collection-form-grid select,
.collection-form-grid textarea,
.contact-form-grid input,
.contact-form-grid textarea {
    width: 100%;
    border: 1px solid #cfd6df;
    padding: 9px 10px;
}

.payment-grid .wide,
.collection-form-grid .wide,
.contact-form-grid .wide {
    grid-column: 1 / -1;
}

.payment-panel footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.installment-list {
    display: grid;
    gap: 10px;
    margin: 20px 0;
}

.installment-list label {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid #e5e7eb;
    padding: 10px;
}

.payment-success {
    margin-top: 14px;
    padding: 12px 14px;
    border: 1px solid #47b388;
    background: #65d3b5;
}

.collection-card,
.contact-card-modern {
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 16px 40px rgba(17, 24, 39, .06);
}

.collection-card {
    padding: 28px 30px;
}

.collection-form-card,
.collection-list-card {
    margin-top: 16px;
    padding: 22px 24px;
    border: 1px solid #edf0f5;
}

.collection-tabs {
    display: flex;
    border-bottom: 1px solid #d8dde4;
    margin-bottom: 16px;
}

.collection-tabs button {
    border: 1px solid transparent;
    border-bottom: 0;
    background: #fff;
    padding: 9px 18px;
}

.collection-tabs .active {
    border-color: #d8dde4;
}

.collection-save,
.contact-form-modern button {
    margin-top: 18px;
    border: 0;
    background: #3764c9;
    color: #fff;
    padding: 9px 22px;
    font-weight: 800;
}

.status-pill.success {
    display: inline-block;
    padding: 4px 10px;
    background: #28a745;
    color: #fff;
    font-weight: 800;
}

.table-action-info,
.table-action-pdf {
    width: 34px;
    height: 28px;
    border: 0;
    color: #fff;
}

.table-action-info {
    background: #17a2b8;
}

.table-action-pdf {
    margin-left: 6px;
    background: #dc3545;
}

.contact-card-modern {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    padding: 32px 22px 18px;
}

.contact-card-modern h1,
.contact-form-modern h2 {
    margin-bottom: 30px;
    font-weight: 900;
}

.price-box span {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.price-box strong {
    color: #111827;
}

.qty-box {
    display: grid;
    grid-template-columns: 32px 38px 32px;
}

.qty-box button,
.qty-box input {
    height: 32px;
    border: 0;
    text-align: center;
}

.qty-box button {
    background: var(--theme-add-to-cart-bg, #121a1d);
    color: var(--theme-add-to-cart-text, #fff);
    font-weight: 800;
}

.qty-box input {
    border-top: 1px solid #d8dde4;
    border-bottom: 1px solid #d8dde4;
}

.cart-table-btn {
    width: 52px;
    height: 32px;
    border: 0;
    border-radius: 4px;
    background: var(--theme-add-to-cart-bg, #030303);
    color: var(--theme-add-to-cart-text, #fff);
    font-size: 16px;
}

.view-table-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 32px;
    border-radius: 0;
    background: var(--theme-filter-button-bg, #ff7417);
    color: var(--theme-filter-button-text, #fff) !important;
    font-size: 16px;
}

.product--layout--standard {
    margin-top: 18px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(17, 24, 39, .06);
}

.product__content {
    display: grid;
    grid-template-columns: 360px minmax(0, 1fr) 240px;
    gap: 28px;
    padding: 26px;
}

.product__gallery,
.product-gallery__featured {
    min-width: 0;
}

.product-gallery__featured {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    border: 1px solid #edf0f5;
    border-radius: 6px;
    background: #f8fafc;
}

.product-image__body {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.productDetailBgImageSrc {
    max-width: 100%;
    max-height: 280px;
    object-fit: contain;
}

.product__name {
    font-size: 28px;
    line-height: 1.25;
    font-weight: 800;
}

.brand__name {
    display: inline-block;
    margin-top: 8px;
    color: #3764c9;
    font-weight: 700;
}

.product__description {
    margin-top: 18px;
    color: #475569;
    line-height: 1.6;
}

.product__meta {
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
    color: #64748b;
}

.product__sidebar {
    padding: 18px;
    border: 1px solid #edf0f5;
    border-radius: 6px;
    background: #fbfdff;
    align-self: start;
}

.product__prices {
    margin-bottom: 18px;
    color: #111827;
    font-size: 24px;
    font-weight: 800;
}

.product__actions {
    display: grid;
    gap: 12px;
}

.product__actions-item input {
    height: 42px;
}

.card-table .table {
    margin: 0;
}

.cart {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 24px;
    align-items: start;
}

.cart__table {
    grid-column: 1 / 2;
    overflow-x: auto;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(17, 24, 39, .05);
}

.cart-table__table {
    width: 100%;
    border-collapse: collapse;
}

.cart-table__column {
    padding: 14px 16px;
    border-bottom: 1px solid #edf0f5;
    text-align: left;
    vertical-align: middle;
}

.cart-table__head .cart-table__column {
    background: #f8fafc;
    color: #475569;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
}

.cart-table__product-name {
    color: #111827;
    font-weight: 800;
    text-decoration: none;
}

.cart-table__product-meta {
    margin-top: 4px;
    color: #64748b;
    font-size: 13px;
}

.cart__actions {
    grid-column: 1 / 2;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.cart__totals {
    grid-column: 2 / 3;
    grid-row: 1 / 3;
}

.cart__totals .card {
    border: 1px solid #e5e7eb;
    box-shadow: 0 8px 24px rgba(17, 24, 39, .05);
}

.cart__totals-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 18px 0;
    font-size: 16px;
}

.siparis-tamamlama-btn-color {
    background: #d48a12 !important;
    border-color: #d48a12 !important;
    color: #fff !important;
}

.cart-quantity-form {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cart-quantity-form input {
    width: 86px;
}

.cart-clear-form {
    margin: 0;
}

.order-filter {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 140px;
    gap: 12px;
    margin-bottom: 18px;
}

.legacy-table-shell {
    overflow-x: auto;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(17, 24, 39, .05);
}

.legacy-table {
    margin: 0;
}

.legacy-table th {
    background: #f8fafc;
    color: #475569;
    font-size: 13px;
    text-transform: uppercase;
}

.legacy-table th,
.legacy-table td {
    padding: 13px 15px;
    border-bottom: 1px solid #edf0f5;
    vertical-align: middle;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 3px 10px;
    border-radius: 999px;
    background: #e8f0ff;
    color: #2451b2;
    font-size: 12px;
    font-weight: 800;
}

.order-detail-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
    padding: 18px 22px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    background: #fff;
}

.order-detail-head h3 {
    margin: 0 0 4px;
    font-weight: 800;
}

.order-detail-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 18px;
}

.order-panel {
    padding: 18px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(17, 24, 39, .04);
}

.order-panel h5 {
    margin-bottom: 12px;
    font-weight: 800;
}

.order-panel p {
    margin: 8px 0;
    color: #64748b;
}

.order-panel-wide {
    grid-column: span 2;
}

.order-total-row,
.order-history-row {
    padding: 10px 0;
    border-top: 1px solid #edf0f5;
}

.order-total-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.order-history-row span {
    display: block;
    color: #64748b;
    font-size: 13px;
}

.legacy-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
}

.legacy-modal:target {
    display: block;
}

.legacy-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .55);
}

.legacy-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(1140px, calc(100vw - 80px));
    max-height: calc(100vh - 96px);
    margin: 96px auto 0;
    overflow: hidden;
    border-radius: 2px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(0, 0, 0, .32);
}

.legacy-modal__dialog header {
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    border-bottom: 1px solid #dfe3ea;
}

.legacy-modal__dialog h2 {
    margin: 0;
    color: #111827;
    font-size: 22px;
    font-weight: 800;
}

.legacy-modal__dialog header a {
    color: #686f78;
    font-size: 30px;
    font-weight: 800;
    text-decoration: none;
}

.legacy-modal__body {
    max-height: calc(100vh - 160px);
    overflow: auto;
    padding: 26px 16px 16px;
}

.past-legend {
    display: flex;
    gap: 34px;
    margin-bottom: 24px;
}

.past-legend span {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.dot {
    width: 16px;
    height: 16px;
    display: inline-block;
    border-radius: 50%;
}

.dot.black {
    background: #2d3033;
}

.dot.green {
    background: #27aa3c;
}

.past-table-wrap {
    overflow: auto;
    border: 1px solid #d8dde4;
}

.past-table {
    width: 100%;
    min-width: 1080px;
    border-collapse: collapse;
    font-size: 12px;
}

.past-table th {
    padding: 12px;
    border-right: 1px solid #d8dde4;
    background: var(--theme-table-header-bg, #777e82);
    color: var(--theme-table-header-text, #fff);
    text-align: center;
}

.past-table td {
    padding: 14px 12px;
    border-right: 1px solid #d8dde4;
    border-bottom: 1px solid #d8dde4;
    background: var(--theme-surface-bg, #fff);
}

.past-table tr:nth-child(odd) td {
    background: var(--theme-table-row-alt-bg, #efefef);
}

.product-detail-legacy {
    margin-top: 26px;
    padding: 28px 30px 70px;
    border-radius: 10px 10px 0 0;
    background: var(--theme-surface-bg, #fff);
    box-shadow: 0 16px 40px rgba(17, 24, 39, .06);
}

.product-detail-legacy .legacy-breadcrumb {
    margin: 10px 10px 62px;
}

.product-detail-legacy .legacy-breadcrumb a {
    color: #777f87;
    text-decoration: none;
}

.legacy-detail-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 610px;
    gap: 40px;
    min-height: 430px;
}

.legacy-detail-gallery {
    position: relative;
    min-height: 360px;
}

.gallery-line {
    position: absolute;
    left: 0;
    right: 30px;
    top: 64px;
    border-top: 3px solid #eceff3;
}

.gallery-zoom {
    position: absolute;
    right: 10px;
    top: 70px;
    color: #c6cbd2;
    font-size: 24px;
}

.legacy-detail-info h1 {
    margin: 0 0 2px;
    color: #4a4f55;
    font-size: 18px;
    font-weight: 800;
}

.legacy-detail-info {
    padding-right: 4px;
}

.detail-stock-row {
    display: flex;
    align-items: center;
    gap: 28px;
    margin-top: 30px;
    padding: 12px 0 26px;
    border-top: 1px solid #e2e6ed;
    border-bottom: 1px solid #d8dde5;
}

.detail-stock-dot {
    width: 32px;
    height: 32px;
    display: inline-block;
    border-radius: 50%;
    background: var(--theme-stock-available, #2dbc12);
}

.detail-stock-dot.is-incoming {
    background: var(--theme-stock-incoming, #f4b400);
}

.detail-stock-dot.is-empty {
    background: var(--theme-stock-empty, #dc3545);
}

.detail-price-list {
    display: grid;
    grid-template-columns: 110px 1fr;
    margin: 0;
}

.detail-price-list dt,
.detail-price-list dd {
    min-height: 46px;
    margin: 0;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #d8dde5;
}

.detail-price-list dt::after {
    content: ":";
    margin-left: auto;
    padding-right: 22px;
}

.detail-price-list input {
    width: 100%;
    height: 24px;
    border: 1px solid #747b85;
    padding: 0 6px;
}

.detail-history-link {
    display: inline-block;
    margin: 12px 0 28px;
    color: #3768cf;
    text-decoration: none;
}

.detail-cart-row {
    display: flex;
    align-items: center;
    gap: 0;
}

.detail-cart-row > button:not(.detail-add-cart):not(.detail-fav),
.detail-cart-row > input {
    width: 34px;
    height: 39px;
    border: 0;
    text-align: center;
}

.detail-cart-row > button:not(.detail-add-cart):not(.detail-fav) {
    background: var(--theme-filter-button-bg, #13a7bd);
    color: var(--theme-filter-button-text, #fff);
    font-weight: 800;
}

.detail-cart-row > input {
    width: 100px;
    border-top: 1px solid #d8dde4;
    border-bottom: 1px solid #d8dde4;
}

.detail-add-cart {
    height: 39px;
    margin-left: 14px;
    padding: 0 28px;
    border: 0;
    background: var(--theme-add-to-cart-bg, #020202);
    color: var(--theme-add-to-cart-text, #fff);
    font-weight: 900;
}

.detail-fav {
    width: 38px;
    height: 39px;
    margin-left: 8px;
    border: 0;
    background: #f2f4f7;
    color: #344054;
}

.detail-overview {
    margin-top: 44px;
    border: 1px solid #d8dde4;
    background: var(--theme-surface-bg, #fff);
}

.detail-tab-title {
    display: inline-flex;
    align-items: center;
    min-height: 35px;
    margin-top: -37px;
    padding: 0 14px;
    background: var(--theme-secondary-button-bg, #30363d);
    color: var(--theme-secondary-button-text, #fff);
    font-weight: 800;
}

.detail-overview table {
    width: 100%;
    border-collapse: collapse;
}

.detail-overview th,
.detail-overview td {
    height: 46px;
    padding: 0 12px;
    border: 1px solid #d8dde4;
    background: #f3f3f3;
    text-align: left;
}

.detail-overview th {
    width: 360px;
}

.detail-overview td:nth-child(2) {
    width: 150px;
    font-weight: 800;
}

.detail-overview td:last-child {
    font-weight: 800;
}

@media (max-width: 1199px) {
    .products-list__body {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 991px) {
    .products-list__body {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .product__content,
    .cart,
    .order-detail-grid {
        grid-template-columns: 1fr;
    }

    .order-panel-wide {
        grid-column: auto;
    }

    .cart__table,
    .cart__actions,
    .cart__totals {
        grid-column: auto;
        grid-row: auto;
    }
}

@media (max-width: 575px) {
    .products-list__body {
        grid-template-columns: 1fr;
    }

    .page-header,
    .urunler-list-page-filter-section .container,
    .shop-layout {
        padding-left: 12px;
        padding-right: 12px;
    }
}

.legacy-breadcrumb {
    margin: 16px auto 24px;
    color: #777f87;
    font-size: 15px;
}

.legacy-breadcrumb span {
    margin: 0 10px;
    color: #c5cbd3;
}

.legacy-cart-shell,
.payment-shell {
    padding: 16px;
    border-radius: 10px 10px 0 0;
    background: var(--theme-surface-bg, #fff);
    box-shadow: 0 16px 40px rgba(17, 24, 39, .06);
}

.legacy-cart-shell h1,
.payment-shell h1,
.cart-report-page h1 {
    margin: 10px 0 18px;
    color: #303942;
    font-size: 30px;
    font-weight: 800;
}

.legacy-blue-title {
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 11px;
    background: var(--theme-filter-button-bg, #3768cf);
    color: var(--theme-filter-button-text, #fff);
    font-weight: 800;
}

.legacy-blue-title a {
    color: var(--theme-filter-button-text, #fff);
    font-size: 13px;
}

.legacy-blue-title .legacy-add-address-button {
    border: 0;
    padding: 0;
    background: transparent;
    color: #fff;
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    text-decoration: underline;
    cursor: pointer;
}

.legacy-address-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: grid;
    place-items: center;
    padding: 24px;
    visibility: hidden;
    opacity: 0;
    transition: opacity .2s ease, visibility .2s ease;
}

.legacy-address-modal[aria-hidden="false"] {
    visibility: visible;
    opacity: 1;
}

.legacy-address-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, .62);
}

.legacy-address-modal__dialog {
    position: relative;
    width: min(720px, 100%);
    max-height: min(820px, calc(100vh - 48px));
    overflow-y: auto;
    border: 1px solid #dbe3ef;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(15, 23, 42, .28);
    transform: translateY(10px);
    transition: transform .2s ease;
}

.legacy-address-modal[aria-hidden="false"] .legacy-address-modal__dialog {
    transform: translateY(0);
}

.legacy-address-modal__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 22px 24px 18px;
    border-bottom: 1px solid #e8edf3;
}

.legacy-address-modal__eyebrow {
    display: block;
    margin-bottom: 5px;
    color: #3474dc;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.legacy-address-modal__header h2 {
    margin: 0;
    color: #172033;
    font-size: 24px;
}

.legacy-address-modal__close {
    border: 0;
    background: transparent;
    color: #64748b;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

.legacy-address-form {
    padding: 22px 24px 24px;
}

.legacy-address-form__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.legacy-address-form label {
    display: grid;
    gap: 7px;
    color: #334155;
    font-size: 13px;
    font-weight: 800;
}

.legacy-address-form input:not([type="checkbox"]),
.legacy-address-form textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 11px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background: #fff;
    color: #172033;
    font: inherit;
    font-weight: 500;
    outline: none;
}

.legacy-address-form input:not([type="checkbox"]):focus,
.legacy-address-form textarea:focus {
    border-color: #3474dc;
    box-shadow: 0 0 0 3px rgba(52, 116, 220, .14);
}

.legacy-address-form__full {
    grid-column: 1 / -1;
}

.legacy-address-form__default {
    display: flex !important;
    grid-template-columns: none;
    align-items: center;
    gap: 8px !important;
    margin-top: 18px;
    font-weight: 600 !important;
}

.legacy-address-form__actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 22px;
}

.legacy-address-form__actions button {
    min-height: 40px;
    padding: 0 18px;
    border-radius: 7px;
    font-weight: 800;
    cursor: pointer;
}

.legacy-address-modal__cancel {
    border: 1px solid #cbd5e1;
    background: #fff;
    color: #475569;
}

.legacy-address-modal__save {
    border: 1px solid #2864d7;
    background: #2864d7;
    color: #fff;
}

body.address-modal-open {
    overflow: hidden;
}

@media (max-width: 600px) {
    .legacy-address-modal {
        padding: 12px;
    }

    .legacy-address-form__grid {
        grid-template-columns: 1fr;
    }

    .legacy-address-form__full {
        grid-column: auto;
    }

    .legacy-address-modal__header,
    .legacy-address-form {
        padding-left: 18px;
        padding-right: 18px;
    }
}

.legacy-cart-tabs {
    display: flex;
    gap: 10px;
    margin: 14px 0 18px;
}

.legacy-cart-tabs button {
    min-width: 88px;
    min-height: 35px;
    border: 1px solid #cdd7e5;
    border-radius: 8px;
    background: #f7f9fc;
    color: #46515c;
    font-weight: 800;
}

.legacy-cart-tabs .active {
    background: var(--theme-filter-button-bg, #3658ff);
    color: var(--theme-filter-button-text, #fff);
}

.legacy-cart-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 410px;
    gap: 30px;
}

.legacy-cart-table-wrap,
.legacy-blue-panel,
.legacy-summary {
    border: 1px solid #d8dde4;
    background: var(--theme-surface-bg, #fff);
}

.legacy-cart-table {
    width: 100%;
    min-width: 980px;
    border-collapse: collapse;
    font-size: 12px;
}

.legacy-cart-table th,
.legacy-cart-table td {
    padding: 10px;
    border-right: 1px solid #d8dde4;
    border-bottom: 1px solid #d8dde4;
    vertical-align: middle;
}

.legacy-cart-table th {
    background: var(--theme-table-header-bg, #777e82);
    color: var(--theme-table-header-text, #fff);
    text-align: center;
}

.legacy-cart-table input {
    max-width: 120px;
    height: 26px;
    border: 1px solid #aeb6c1;
}

.legacy-cart-table small {
    display: block;
    margin-top: 5px;
}

.cart-thumb {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    background: #e5e7eb;
    color: #7a828b;
    font-size: 10px;
}

.delete-btn {
    min-width: 38px;
    min-height: 32px;
    border: 0;
    border-radius: 4px;
    background: var(--theme-danger-button-bg, #e3344f);
    color: var(--theme-danger-button-text, #fff);
}

.legacy-blue-panel {
    margin-top: 16px;
}

.legacy-blue-panel table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.legacy-blue-panel th {
    background: var(--theme-table-header-bg, #777e82);
    color: var(--theme-table-header-text, #fff);
}

.legacy-blue-panel th,
.legacy-blue-panel td {
    padding: 10px;
    border-right: 1px solid #d8dde4;
    border-bottom: 1px solid #d8dde4;
}

.legacy-blue-panel label {
    display: grid;
    grid-template-columns: 60px 1fr 140px;
    align-items: center;
    min-height: 38px;
    padding: 0 10px;
    border-bottom: 1px solid #e5e7eb;
}

.cart-note {
    width: 100%;
    min-height: 90px;
    margin-top: 16px;
    padding: 14px;
    border: 1px solid #e5e7eb;
    resize: vertical;
}

.legacy-summary dl {
    margin: 0;
    padding: 12px 20px;
}

.legacy-summary dt,
.legacy-summary dd {
    display: inline-block;
    width: 49%;
    margin: 0;
    padding: 8px 0;
    border-bottom: 1px solid #e5e7eb;
}

.legacy-summary dd {
    text-align: right;
}

.legacy-summary p {
    margin: 14px 20px 0;
}

.legacy-summary button {
    width: calc(100% - 24px);
    margin: 10px 12px;
    min-height: 32px;
    border: 0;
    background: var(--theme-secondary-button-bg, #646d78);
    color: var(--theme-secondary-button-text, #fff);
    font-weight: 800;
}

.checkout-sticky {
    position: sticky;
    bottom: 0;
    z-index: 20;
    display: grid;
    grid-template-columns: 1fr 1fr 300px;
    align-items: center;
    gap: 20px;
    min-height: 52px;
    padding: 8px calc((100vw - 1320px) / 2 + 16px);
    background: #f5f5f5;
    box-shadow: 0 -6px 16px rgba(17, 24, 39, .06);
}

.checkout-sticky button {
    height: 32px;
    border: 0;
    background: var(--theme-add-to-cart-bg, #020202);
    color: var(--theme-add-to-cart-text, #fff);
    font-weight: 800;
}

.payment-shell {
    min-height: 690px;
}

.payment-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin: 36px 0 40px;
    border-top: 4px solid #d6d8dc;
}

.payment-steps div {
    display: grid;
    justify-items: center;
    gap: 10px;
    transform: translateY(-16px);
}

.payment-steps b {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border: 4px solid #fff;
    border-radius: 999px;
    background: #d7d7d7;
    color: #66707b;
    box-shadow: 0 1px 4px rgba(0,0,0,.28);
    font-size: 20px;
}

.payment-steps span {
    padding: 8px 12px;
    border-radius: 4px;
    background: #d2d2d2;
}

.payment-steps .active b,
.payment-steps .active span {
    background: var(--theme-secondary-button-bg, #303030);
    color: var(--theme-secondary-button-text, #fff);
}

.payment-panel {
    overflow: hidden;
    border-radius: 6px;
    background: var(--theme-surface-bg, #fff);
    box-shadow: 0 8px 18px rgba(17, 24, 39, .12);
}

.payment-panel h2,
.payment-panel footer {
    margin: 0;
    padding: 18px 30px;
    background: var(--theme-secondary-button-bg, #303030);
    color: var(--theme-secondary-button-text, #fff);
    text-align: center;
    font-size: 20px;
}

.payment-row {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 20px;
    align-items: center;
    padding: 26px 30px 40px;
}

.payment-row input {
    height: 44px;
    padding: 0 12px;
    border: 1px solid #bfc5cc;
    text-align: right;
    font-weight: 800;
}

.payment-panel footer {
    display: flex;
    justify-content: flex-end;
}

.payment-panel button {
    min-width: 64px;
    min-height: 40px;
    border: 0;
    border-radius: 4px;
    background: var(--theme-add-to-cart-bg, #050505);
    color: var(--theme-add-to-cart-text, #fff);
    font-weight: 800;
}

.sales-page,
.cart-report-page {
    padding: 10px;
    background: #eef0f3;
}

.sales-search,
.sales-select,
.sales-filter-line {
    width: 100%;
    margin-bottom: 10px;
    border: 1px solid #d9dee8;
    border-radius: 8px;
    background: #fff;
}

.sales-search {
    display: grid;
    grid-template-columns: 1fr 90px;
}

.sales-search input,
.sales-search button,
.sales-select,
.sales-filter-line input {
    min-height: 44px;
    border: 0;
    padding: 0 14px;
    background: transparent;
}

.sales-filter-line {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 12px;
}

.sales-table,
.report-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 10px;
}

.sales-table th,
.report-table th {
    padding: 18px 20px;
    text-align: left;
    background: #eef0f3;
    color: #111827;
}

.sales-table td {
    padding: 18px 20px;
    background: #fff;
}

.sales-table tr td:first-child {
    border-radius: 10px 0 0 10px;
}

.sales-table tr td:last-child {
    border-radius: 0 10px 10px 0;
}

.sales-table small {
    display: block;
    margin-top: 5px;
}

.sales-table button,
.cart-state {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 13px;
    border: 0;
    border-radius: 999px;
    background: #f2f4f7;
    color: #344054;
}

.customer-select-form {
    margin: 0;
}

.sales-table button.selected {
    border: 1px solid var(--theme-add-to-cart-bg, #111827);
    background: var(--theme-add-to-cart-bg, #111827);
    color: var(--theme-add-to-cart-text, #fff);
}

.selected-customer-row td {
    box-shadow: inset 0 0 0 999px rgba(55, 104, 207, .05);
}

.sales-notice {
    margin-bottom: 10px;
    padding: 12px 16px;
    border: 1px solid #6ee7b7;
    border-radius: 8px;
    background: #d1fae5;
    color: #065f46;
    font-weight: 800;
}

.cart-state.full {
    background: #ddffea;
    color: #008a37;
    font-weight: 800;
}

.cart-report-filter {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 90px;
    gap: 30px;
    align-items: end;
    padding: 16px 20px;
    background: #e6e8eb;
}

.cart-report-filter label {
    display: grid;
    gap: 6px;
    margin: 0;
    font-size: 12px;
}

.cart-report-filter input,
.cart-report-filter select {
    min-height: 32px;
    border: 1px solid #ccd3dd;
    padding: 0 12px;
}

.cart-report-filter button {
    min-height: 32px;
    border: 0;
    background: var(--theme-filter-button-bg, #16a4b8);
    color: var(--theme-filter-button-text, #fff);
    font-weight: 800;
}

.page-size {
    margin: 26px 10px 12px;
    min-width: 62px;
    min-height: 30px;
}

.report-table {
    border-spacing: 0;
    font-size: 12px;
}

.report-table th {
    background: var(--theme-table-header-bg, #777e82);
    color: var(--theme-table-header-text, #fff);
}

.report-table td {
    padding: 14px 12px;
    border-right: 1px solid #d8dde4;
    background: var(--theme-table-row-bg, #d4d6d8);
}

.report-table tr:nth-child(even) td {
    background: var(--theme-table-row-alt-bg, #eef0f3);
}

.report-image {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    background: var(--theme-surface-bg, #fff);
    color: #aaa;
}

.account-page {
    min-height: 620px;
}

.account-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin: 0 10px 20px;
}

.account-summary-grid article {
    min-height: 92px;
    display: grid;
    align-content: center;
    gap: 8px;
    padding: 18px 22px;
    border-radius: 8px;
    background: var(--theme-surface-bg, #fff);
    box-shadow: 0 8px 24px rgba(17, 24, 39, .06);
}

.account-summary-grid span {
    color: #667085;
}

.account-summary-grid strong {
    color: #111827;
    font-size: 22px;
}

.report-cards {
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

.report-shortcuts {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin: 18px 10px;
}

.report-shortcuts a {
    min-height: 54px;
    display: grid;
    place-items: center;
    border-radius: 6px;
    background: var(--theme-menu-bg, #181818);
    color: var(--theme-menu-text, #fff);
    font-weight: 800;
    text-decoration: none;
}

.contact-page {
    margin-top: 24px;
}

.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 28px;
}

.contact-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.contact-form label {
    display: grid;
    gap: 7px;
    color: #404854;
    font-weight: 700;
}

.contact-form input,
.contact-form textarea {
    min-height: 40px;
    border: 1px solid #ccd3dd;
    padding: 0 12px;
}

.contact-form textarea {
    min-height: 130px;
    padding-top: 10px;
}

.contact-form .wide {
    grid-column: 1 / -1;
}

.contact-form button {
    width: 170px;
    min-height: 40px;
    border: 0;
    background: var(--theme-filter-button-bg, #3768cf);
    color: var(--theme-filter-button-text, #fff);
    font-weight: 800;
}

.contact-info {
    padding: 22px;
    border-radius: 8px;
    background: var(--theme-info-card-bg, #ffad17);
    color: var(--theme-info-card-text, #111827);
    align-self: start;
}

.contact-info h2 {
    margin-top: 0;
    font-size: 22px;
}

.auth-page {
    min-height: 100vh;
    margin: 0;
    overflow: hidden;
    background: #e8edf2;
    font-family: Arial, sans-serif;
}

.auth-placeholder {
    position: fixed;
    left: 14%;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(0,0,0,.28);
    font-size: 102px;
    font-weight: 800;
}

.auth-toast {
    position: fixed;
    right: 14px;
    top: 100px;
    width: 298px;
    padding: 18px 20px 18px 50px;
    background: #4fc3a5;
    color: #fff;
    box-shadow: 0 3px 8px rgba(0,0,0,.22);
}

.auth-toast b,
.auth-toast span {
    display: block;
}

.auth-toast a {
    display: block;
    margin-top: 10px;
    color: #fff;
    font-weight: 800;
}

.auth-panel {
    position: fixed;
    right: 64px;
    top: 290px;
    width: 448px;
    display: grid;
    gap: 26px;
}

.register-panel {
    top: 112px;
    gap: 18px;
}

.reset-panel {
    top: 260px;
}

.auth-panel img {
    max-width: 310px;
    justify-self: center;
    margin-bottom: 10px;
}

.auth-panel label {
    display: grid;
    gap: 8px;
    color: #404954;
    font-weight: 700;
}

.auth-validation {
    display: block;
    color: #b42318;
    font-size: 13px;
    font-weight: 700;
}

.auth-panel input,
.auth-panel textarea,
.auth-panel select {
    width: 100%;
    min-height: 44px;
    border: 1px solid #c3cbd5;
    padding: 0 12px;
    background: #eaf2ff;
}

.auth-panel textarea {
    min-height: 130px;
    padding-top: 10px;
}

.auth-options,
.radio-line,
.two-cols {
    display: flex;
    align-items: center;
    gap: 10px;
}

.auth-options {
    justify-content: space-between;
    margin-top: -8px;
}

.auth-options label,
.radio-line label {
    display: inline-flex;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 6px;
}

.auth-options input,
.radio-line input {
    width: auto;
    min-height: auto;
}

.two-cols label {
    flex: 1;
}

.auth-panel button,
.auth-panel .secondary {
    min-height: 38px;
    display: grid;
    place-items: center;
    border: 1px solid #6b7785;
    text-decoration: none;
    font-weight: 800;
}

.auth-panel .primary {
    border: 0;
    background: var(--theme-filter-button-bg, #3869d1);
    color: var(--theme-filter-button-text, #fff);
}

.auth-panel .secondary {
    color: #6b7280;
}

.auth-panel .desktop {
    border: 0;
    background: var(--theme-success-badge-bg, #28a745);
    color: var(--theme-success-badge-text, #fff);
}

.auth-powered {
    margin-top: 80px;
    color: #dc2626;
    text-align: center;
    font-size: 34px;
    font-weight: 900;
}

.payments-list-page {
    margin-top: 18px;
}

.payments-list-shell {
    margin: 24px 0 120px;
    padding: 28px 16px 34px;
    border-radius: 10px;
    background: var(--theme-surface-bg, #fff);
    box-shadow: 0 18px 40px rgba(31, 41, 55, .08);
}

.payments-list-shell h1 {
    margin: 0 0 16px;
    color: #404954;
    font-size: 30px;
    font-weight: 900;
}

.payments-table-wrap {
    overflow-x: auto;
}

.payments-table {
    width: 100%;
    min-width: 1160px;
    border-collapse: collapse;
    font-size: 12px;
}

.payments-table th,
.payments-table td {
    border: 1px solid #d7dde5;
    padding: 15px 12px;
    text-align: left;
    vertical-align: middle;
}

.payments-table th {
    background: var(--theme-table-header-bg, #777e82);
    color: var(--theme-table-header-text, #fff);
    font-weight: 900;
}

.payments-table td {
    background: var(--theme-table-row-bg, #e7e7e7);
}

.payment-status {
    display: inline-flex;
    min-height: 22px;
    align-items: center;
    padding: 0 7px;
    background: var(--theme-success-badge-bg, #008c14);
    color: var(--theme-success-badge-text, #fff);
    font-size: 11px;
    font-weight: 900;
}

.payments-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 16px;
}

.payments-footer select {
    width: 58px;
    min-height: 30px;
    border: 1px solid #d6dce4;
    border-radius: 6px;
    background: var(--theme-surface-bg, #fff);
}

.payments-footer nav {
    display: flex;
    gap: 34px;
    color: #b6b6b6;
    font-weight: 900;
}

.legacy-store-page {
    margin-top: 18px;
}

.legacy-store-shell {
    margin-bottom: 80px;
    padding: 16px;
    border-radius: 10px;
    background: var(--theme-surface-bg, #fff);
    box-shadow: 0 18px 40px rgba(31, 41, 55, .08);
}

.legacy-store-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.legacy-store-heading h1 {
    margin: 0;
    color: #303942;
    font-size: 30px;
    font-weight: 900;
}

.legacy-store-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.legacy-store-btn,
.legacy-store-submit {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    border: 0;
    background: var(--theme-filter-button-bg, #3768cf);
    color: var(--theme-filter-button-text, #fff) !important;
    font-size: 13px;
    font-weight: 900;
    text-decoration: none;
}

.legacy-store-btn.secondary {
    background: var(--theme-secondary-button-bg, #30363d);
    color: var(--theme-secondary-button-text, #fff) !important;
}

.legacy-store-filter {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.5fr) minmax(0, 1fr) 100px;
    gap: 30px;
    align-items: end;
    margin-bottom: 26px;
    padding: 16px 20px;
    background: #e6e8eb;
}

.legacy-store-filter label {
    display: grid;
    gap: 6px;
    margin: 0;
    color: #111827;
    font-size: 12px;
}

.legacy-store-filter input,
.legacy-store-filter select,
.legacy-store-form input,
.legacy-store-form select,
.legacy-store-form textarea {
    width: 100%;
    min-height: 40px;
    border: 1px solid #ccd3dd;
    padding: 0 12px;
    background: var(--theme-surface-bg, #fff);
}

.legacy-store-filter button {
    min-height: 32px;
    border: 0;
    background: var(--theme-filter-button-bg, #16a4b8);
    color: var(--theme-filter-button-text, #fff);
    font-weight: 900;
}

.legacy-store-toolbar {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}

.legacy-store-toolbar select,
.legacy-store-toolbar button {
    min-height: 34px;
    border: 1px solid #bfc7d1;
    background: #f7f7f7;
    color: #1f2937;
    padding: 0 12px;
}

.legacy-store-table-wrap {
    overflow-x: auto;
    border: 1px solid #d8dde4;
}

.legacy-store-table {
    width: 100%;
    min-width: 1120px;
    border-collapse: collapse;
    font-size: 12px;
}

.legacy-store-table th {
    padding: 12px;
    border-right: 1px solid #d8dde4;
    background: var(--theme-table-header-bg, #777e82);
    color: var(--theme-table-header-text, #fff);
    text-align: left;
}

.legacy-store-table td {
    padding: 14px 12px;
    border-right: 1px solid #d8dde4;
    border-bottom: 1px solid #d8dde4;
    background: var(--theme-table-row-bg, #d4d6d8);
    color: #1f2937;
    vertical-align: middle;
}

.legacy-store-table tr:nth-child(even) td {
    background: var(--theme-table-row-alt-bg, #eef0f3);
}

.legacy-eye {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 54px;
    min-height: 30px;
    background: var(--theme-secondary-button-bg, #ff8a00);
    color: var(--theme-secondary-button-text, #fff) !important;
    font-weight: 900;
    text-decoration: none;
}

.legacy-store-count {
    margin: 14px 0 0;
    color: #4b5563;
    font-size: 13px;
}

.legacy-store-empty,
.legacy-store-note {
    padding: 18px 20px;
    border: 1px solid #cde9df;
    background: #d8f5ec;
    color: #103b31;
}

.legacy-store-empty h2 {
    margin: 0 0 8px;
    font-size: 20px;
}

.legacy-store-empty p {
    margin: 6px 0;
}

.legacy-store-tabs {
    display: flex;
    gap: 0;
    margin-top: 22px;
}

.legacy-store-tabs button {
    min-height: 34px;
    padding: 0 12px;
    border: 1px solid #d7dce4;
    background: #f2f4f7;
    color: #596273;
}

.legacy-store-tabs .active {
    border-top: 4px solid #df4357;
    border-bottom-color: #fff;
    background: #fff;
    color: #df4357;
}

.legacy-store-form-box {
    display: grid;
    grid-template-columns: minmax(0, 570px);
    gap: 20px;
    min-height: 430px;
    padding: 20px 14px 34px;
    border: 1px solid #d7dce4;
}

.legacy-store-form label {
    display: grid;
    gap: 8px;
    margin: 0;
    color: #404854;
    font-size: 12px;
}

.legacy-store-form textarea {
    min-height: 130px;
    padding-top: 10px;
    resize: vertical;
}

.legacy-store-submit {
    min-width: 96px;
    margin: 22px auto 0;
    background: #9b73df;
}

/* The header menu is rendered by the database-backed menu component. */
.legacy-static-menu { display: none !important; }

/* Final topbar alignment pass. */
.layout-header__desktop .topbar {
    height: 34px;
    min-height: 34px;
}

.layout-header__desktop .topbar__container,
.layout-header__desktop .topbar__row {
    width: 100%;
    min-width: 0;
}

.layout-header__desktop .topbar__row {
    height: 34px;
    gap: 20px;
    padding: 0 16px;
}

.layout-header__desktop .topbar__item {
    min-width: 0;
    line-height: 34px;
    white-space: nowrap;
}

.layout-header__desktop .topbar__item:first-child {
    flex: 0 1 560px;
    max-width: 560px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.layout-header__desktop .topbar__spring {
    flex: 1 1 auto;
    min-width: 16px;
}

.layout-header__desktop .topbar__item--link {
    flex: 0 0 auto;
    padding: 0 6px;
    border-radius: 4px;
    transition: background-color .15s ease, color .15s ease;
}

@media (max-width: 1180px) and (min-width: 992px) {
    .layout-header__desktop .topbar__row { gap: 10px; padding-inline: 12px; }
    .layout-header__desktop .topbar__item:first-child { flex-basis: 360px; }
    .layout-header__desktop .topbar__item--link { padding-inline: 3px; font-size: 11px !important; }
}

.module-page-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin: 18px 10px;
}

.module-page-heading h1,
.module-page-heading p {
    margin: 0;
}

.module-page-heading p {
    margin-top: 6px;
    color: #667085;
}

.module-page-heading > a,
.module-search > a,
.module-pagination a {
    display: inline-flex;
    min-height: 36px;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    background: var(--theme-secondary-button-bg, #30363d);
    color: var(--theme-secondary-button-text, #fff) !important;
    font-weight: 800;
    text-decoration: none;
}

.module-search {
    grid-template-columns: minmax(0, 1fr) 110px auto;
}

.module-empty-state {
    margin: 18px 10px;
    padding: 36px;
    border: 1px dashed #c8d0dc;
    border-radius: 8px;
    background: var(--theme-surface-bg, #fff);
    text-align: center;
}

.module-empty-state h2 {
    margin-top: 0;
}

.set-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin: 18px 10px 60px;
}

.set-card {
    overflow: hidden;
    border-radius: 8px;
    background: var(--theme-surface-bg, #fff);
    box-shadow: 0 8px 24px rgba(17, 24, 39, .08);
}

.set-card img {
    width: 100%;
    height: 190px;
    object-fit: cover;
}

.set-card > div {
    display: grid;
    gap: 7px;
    padding: 18px;
}

.set-card h2,
.set-card p {
    margin: 0;
}

.set-card span,
.set-card small {
    color: #667085;
}

.report-table-wrap {
    margin: 0 10px;
    overflow-x: auto;
}

.product-reminder-table {
    min-width: 920px;
}

.reminder-product {
    display: flex;
    align-items: center;
    gap: 12px;
}

.reminder-product img {
    width: 52px;
    height: 52px;
    border-radius: 4px;
    object-fit: cover;
    background: #fff;
}

.status-badge {
    display: inline-flex;
    min-height: 26px;
    align-items: center;
    padding: 0 10px;
    border-radius: 999px;
    font-weight: 800;
}

.status-badge.is-active {
    background: var(--theme-success-badge-bg, #d8f5df);
    color: var(--theme-success-badge-text, #166534);
}

.status-badge.is-passive {
    background: #e6e8ec;
    color: #596273;
}

.product-reminder-table button,
.detail-reminder-panel button {
    min-height: 34px;
    border: 0;
    padding: 0 12px;
    background: var(--theme-filter-button-bg, #3768cf);
    color: var(--theme-filter-button-text, #fff);
    font-weight: 800;
}

.product-reminder-table .module-danger-button {
    background: var(--theme-danger-button-bg, #d64545);
    color: var(--theme-danger-button-text, #fff);
}

.module-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin: 22px 10px 60px;
}

.detail-reminder-panel {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
    padding: 12px;
    border: 1px solid #f0c36c;
    background: #fff8df;
}

.detail-reminder-panel > span {
    flex: 1 1 230px;
    font-weight: 800;
}

@media (max-width: 991px) {
    .legacy-cart-grid,
    .cart-report-filter,
    .checkout-sticky,
    .legacy-store-filter {
        grid-template-columns: 1fr;
    }

    .auth-panel {
        position: static;
        width: auto;
        margin: 80px 24px;
    }

    .auth-placeholder {
        display: none;
    }

    .account-summary-grid,
    .report-cards,
    .report-shortcuts,
    .contact-grid,
    .contact-form,
    .set-card-grid {
        grid-template-columns: 1fr;
    }

    .module-page-heading {
        align-items: flex-start;
        flex-direction: column;
    }
}
.auth-page {
    min-height: 100vh;
    min-height: 100dvh;
    box-sizing: border-box;
    display: grid;
    place-items: center;
    overflow-x: hidden;
    overflow-y: auto;
    padding: clamp(24px, 5vw, 72px);
    background:
        radial-gradient(circle at 18% 20%, rgba(53, 119, 255, .28), transparent 34%),
        linear-gradient(135deg, #071b3d 0%, #0b63f6 58%, #5aa6f7 100%);
    font-family: Arial, sans-serif;
}

.auth-placeholder,
.auth-powered {
    display: none !important;
}

.auth-page > .auth-panel {
    position: relative;
    inset: auto;
    box-sizing: border-box;
    width: min(460px, 100%);
    margin: 0;
    padding: 38px 40px 34px;
    border: 1px solid rgba(255, 255, 255, .6);
    border-radius: 22px;
    background: rgba(255, 255, 255, .98);
    box-shadow: 0 28px 80px rgba(2, 18, 47, .34);
}

.auth-brand {
    display: grid;
    min-height: 70px;
    place-items: center;
    margin-bottom: 24px;
}

.auth-brand img {
    display: block;
    width: auto;
    max-width: 250px;
    max-height: 70px;
    margin: 0;
    object-fit: contain;
}

.auth-heading {
    margin-bottom: 24px;
    text-align: center;
}

.auth-heading h1 {
    margin: 0 0 8px;
    color: #071b3d;
    font-size: 24px;
    line-height: 1.2;
}

.auth-heading p {
    margin: 0;
    color: #71819c;
    font-size: 13px;
    line-height: 1.5;
}

.auth-page > .auth-panel form {
    display: grid;
    gap: 15px;
}

.auth-page > .auth-panel label {
    display: grid;
    gap: 8px;
    color: #14284b;
    font-size: 13px;
    font-weight: 700;
}

.auth-page > .auth-panel input:not([type="checkbox"]) {
    box-sizing: border-box;
    width: 100%;
    min-height: 48px;
    border: 1px solid #d7e2f1;
    border-radius: 9px;
    background: #f8fbff;
    color: #14284b;
    padding: 0 14px;
}

.auth-page > .auth-panel input:not([type="checkbox"]):focus {
    border-color: #0b63f6;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(11, 99, 246, .13);
    outline: 0;
}

.auth-page > .auth-panel .auth-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: -2px;
    color: #586b87;
    font-size: 12px;
}

.auth-page > .auth-panel .auth-options label {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
}

.auth-page > .auth-panel .auth-options input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin: 0;
}

.auth-page > .auth-panel .auth-options a {
    color: #0b63f6;
    font-weight: 700;
}

.auth-page > .auth-panel button.primary,
.auth-page > .auth-panel a.secondary,
.auth-page > .auth-panel button.desktop {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 100%;
    min-height: 48px;
    border-radius: 9px;
    font-weight: 800;
    text-decoration: none;
}

.auth-page > .auth-panel button.primary {
    border: 0;
    background: #0b63f6;
    color: #fff;
    box-shadow: 0 9px 20px rgba(11, 99, 246, .22);
}

.auth-page > .auth-panel a.secondary,
.auth-page > .auth-panel button.desktop {
    margin-top: 12px;
    border: 1px solid #cfdbeb;
    background: #fff;
    color: #253a5f;
}

@media (max-width: 560px) {
    .auth-page { padding: 16px 12px; }
    .auth-page > .auth-panel { padding: 28px 22px 24px; }
    .auth-page > .auth-panel .auth-options { align-items: flex-start; flex-wrap: wrap; }
}

/* Otomotiv menu refinement: keep dropdown arrows on the right of the label. */
@media (min-width: 992px) {
    .nav-main {
        min-height: 70px;
        border-top: 1px solid rgba(255, 255, 255, .08);
        border-bottom: 1px solid rgba(0, 0, 0, .28);
    }

    .nav-main__list {
        gap: 4px;
        padding: 0 8px;
    }

    .nav-main__link {
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        gap: 10px;
        min-width: 118px;
        height: 70px;
        padding: 0 15px;
        border-radius: 0;
        color: rgba(255, 255, 255, .9);
        font-size: 14px;
        letter-spacing: .01em;
        transition: background .2s ease, color .2s ease, transform .2s ease;
    }

    .nav-main__link > i:first-child {
        flex: 0 0 20px;
        width: 20px;
        color: #fff;
        font-size: 18px;
        text-align: center;
    }

    .nav-main__link > span {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .nav-main__link > .nav-main__caret {
        flex: 0 0 auto;
        width: auto;
        margin-left: auto;
        color: rgba(255, 255, 255, .72);
        font-size: 11px;
        transition: transform .2s ease, color .2s ease;
    }

    .nav-main__link:hover,
    .nav-main__link.is-active {
        background: #2864d7;
        color: #fff;
        transform: translateY(-1px);
    }

    .nav-main__item:hover > .nav-main__link .nav-main__caret,
    .nav-main__item:focus-within > .nav-main__link .nav-main__caret {
        color: #fff;
        transform: rotate(180deg);
    }

    .store-submenu {
        top: calc(100% - 2px);
        min-width: 230px;
        padding: 8px;
        border: 1px solid #e2e8f0;
        border-radius: 0 0 10px 10px;
    }

    .store-submenu a {
        display: flex;
        align-items: center;
        gap: 10px;
        border-radius: 0;
        padding: 11px 13px;
        font-size: 13px;
        font-weight: 700;
    }

    .store-submenu a i {
        width: 18px;
        color: #2864d7;
        text-align: center;
    }
}

/* Otomotiv account strip refinement. */
@media (min-width: 992px) {
    .layout-header__desktop .topbar {
        height: 46px;
        min-height: 46px;
        border-bottom: 1px solid #e2e8f0;
        background: linear-gradient(90deg, #f8fafc 0%, #eef4fb 100%) !important;
        color: #475569 !important;
        font-size: 12px;
    }

    .layout-header__desktop .topbar__row {
        width: min(1720px, calc(100% - 48px));
        max-width: none;
        height: 46px;
        gap: 10px;
        padding: 0;
    }

    .layout-header__desktop .topbar__item:first-child {
        display: flex;
        align-items: center;
        flex: 0 1 600px;
        max-width: 600px;
        min-height: 30px;
        padding: 0 13px;
        border: 1px solid #dbe5f1;
        border-radius: 7px;
        background: rgba(255, 255, 255, .72);
        color: #1e293b;
        font-weight: 700;
    }

    .layout-header__desktop .topbar__item--link {
        display: inline-flex;
        align-items: center;
        min-height: 32px;
        padding: 0 13px;
        border-left: 1px solid #dbe5f1;
        border-radius: 7px;
        color: #475569;
        font-weight: 600;
        transition: background .2s ease, color .2s ease;
    }

    .layout-header__desktop .topbar__item--link:hover {
        background: #fff;
        color: #1d4ed8;
    }

    .layout-header__desktop .topbar__item--link strong {
        margin: 0 4px;
        padding: 3px 7px;
        border-radius: 5px;
        background: #dcfce7;
        color: #15803d;
        font-weight: 900;
    }

    .layout-header__desktop .topbar__item--link > i {
        flex: 0 0 auto;
        margin-right: 7px;
        color: #64748b;
        font-size: 12px;
    }

    .layout-header__desktop .topbar__item--link:first-of-type > i {
        color: #2864d7;
    }

}

@media (min-width: 992px) {
    .layout-header__desktop .header-middle__container,
    .layout-header__desktop .nav-main__list {
        width: min(1720px, calc(100% - 48px));
        max-width: none;
    }

    .layout-header__desktop .header-middle__left {
        padding-left: 16px;
    }
}

@media (min-width: 1200px) {
    .layout-header__desktop .topbar__row,
    .layout-header__desktop .header-middle__container,
    .layout-header__desktop .nav-main__list,
    .site__body .store-home,
    .site__body .legacy-product-page,
    .site__body .legacy-breadcrumb.container,
    .site__body .legacy-cart-shell.container {
        width: min(1720px, calc(100vw - 48px));
        max-width: none;
        box-sizing: border-box;
        padding-left: 0;
        padding-right: 0;
    }

    .layout-header__desktop .header-middle__container {
        width: min(1720px, calc(100% - 186px));
        margin-left: auto;
        margin-right: auto;
        grid-template-columns: minmax(0, 1fr) 246px 210px;
    }

    .layout-header__desktop .header-agent-card,
    .layout-header__desktop .site-header__sepet_actions,
    .layout-header__desktop .indicator__button {
        box-sizing: border-box;
    }

    .layout-header__desktop .header-agent-card {
        width: 246px;
    }

    .layout-header__desktop .indicator__button {
        width: 100%;
        min-width: 0;
    }

    .layout-header__desktop .topbar__item:first-child,
    .layout-header__desktop .topbar__item--link,
    .layout-header__desktop .topbar__item--link strong {
        border-radius: 0 !important;
    }

    .layout-header__desktop .nav-main__list {
        gap: 4px;
    }
}

/* Stock status is already available in the Depolar column. */
.legacy-product-table .table-image-cell .stock-badge,
.legacy-product-table .table-image-cell .stock-badge.is-incoming {
    display: none !important;
}

/* Tighten catalog spacing after removing the redundant stock badge. */
.legacy-product-shell {
    padding-top: 16px;
    padding-bottom: 16px;
}

.legacy-product-filter .filter-actions {
    margin-top: 16px;
}

.legacy-product-count {
    margin: 10px 0;
}

.legacy-product-table .table-image-cell {
    gap: 0;
}

.legacy-product-table thead tr,
.legacy-product-table thead th {
    height: 44px !important;
}

.legacy-product-table thead th {
    box-sizing: border-box;
    padding: 5px 8px !important;
    line-height: 1.15;
    white-space: nowrap;
    vertical-align: middle;
}

.legacy-product-table td {
    padding-top: 8px;
    padding-bottom: 8px;
}

@media (min-width: 1200px) {
    .site__body > .container,
    .site__body .container,
    .legacy-product-page,
    .legacy-breadcrumb.container,
    .legacy-cart-shell.container {
        width: min(1720px, calc(100vw - 48px));
        max-width: none;
    }

    .legacy-breadcrumb.container,
    .legacy-cart-shell.container {
        width: min(1720px, calc(100vw - 48px));
        max-width: none;
    }

    .legacy-cart-table-wrap {
        overflow-x: hidden;
    }

    .legacy-cart-table {
        width: 100%;
        min-width: 0;
        table-layout: fixed;
    }
}

/* Keep the first-row warehouse tooltip inside the catalog content. */
.legacy-product-table .depot-tooltip {
    top: calc(100% + 9px);
    bottom: auto;
    z-index: 120;
}

.legacy-product-table .depot-tooltip::after {
    top: auto;
    bottom: 100%;
    border-top: 1px solid #cfd6df;
    border-left: 1px solid #cfd6df;
    border-right: 0;
    border-bottom: 0;
    transform: translate(-50%, 6px) rotate(45deg);
}

.legacy-product-table .depot-tooltip strong {
    white-space: nowrap;
}

/* Otomotiv cart refresh: scoped to the legacy cart page only. */
.legacy-cart-shell {
    margin-bottom: 32px;
    padding: 24px;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 18px 45px rgba(15, 35, 65, .08);
}

.legacy-cart-shell h1 {
    margin: 0 0 22px;
    color: #172033;
    font-size: 32px;
    letter-spacing: -.02em;
}

.legacy-blue-title {
    min-height: 46px;
    padding: 0 16px;
    border-radius: 8px 8px 0 0;
    background: linear-gradient(135deg, #2864d7, #3d7be4);
    font-size: 16px;
}

.legacy-cart-tabs {
    gap: 8px;
    margin: 16px 0 20px;
}

.legacy-cart-tabs button {
    min-width: 96px;
    border-radius: 7px;
    transition: background .2s ease, color .2s ease, border-color .2s ease;
}

.legacy-cart-grid {
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 22px;
    align-items: start;
}

.legacy-cart-table-wrap,
.legacy-blue-panel,
.legacy-summary {
    overflow: hidden;
    border: 1px solid #dbe3ef;
    border-radius: 10px;
    box-shadow: 0 8px 22px rgba(15, 35, 65, .045);
}

.legacy-cart-table-wrap {
    overflow-x: auto;
}

.legacy-cart-table {
    min-width: 940px;
    font-size: 13px;
}

.legacy-cart-table th {
    height: 48px;
    padding: 10px 12px;
    background: #334155;
    letter-spacing: .02em;
    white-space: nowrap;
}

.legacy-cart-table td {
    min-height: 112px;
    padding: 14px 12px;
    color: #334155;
    background: #fff;
}

.legacy-cart-table tbody tr:hover td {
    background: #f8fbff;
}

.legacy-cart-table td:nth-child(3) {
    min-width: 210px;
}

.legacy-cart-table td:nth-child(3) strong {
    display: block;
    margin-bottom: 8px;
    color: #172033;
    font-size: 14px;
    line-height: 1.35;
}

.legacy-cart-table small {
    color: #64748b;
    line-height: 1.35;
}

.legacy-cart-table input:not([type="checkbox"]),
.cart-note {
    box-sizing: border-box;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background: #fff;
    color: #172033;
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.legacy-cart-table input:not([type="checkbox"]):focus,
.cart-note:focus {
    border-color: #3474dc;
    box-shadow: 0 0 0 3px rgba(52, 116, 220, .14);
}

.legacy-cart-table input:not([type="checkbox"]) {
    width: 100%;
    max-width: 118px;
    height: 34px;
    padding: 0 9px;
}

.cart-thumb {
    width: 72px;
    height: 72px;
    border-radius: 8px;
    background: #f1f5f9;
    color: #94a3b8;
    font-weight: 700;
}

.legacy-empty-cart-cell {
    height: 220px;
    padding: 0 !important;
}

.legacy-empty-cart {
    display: grid;
    justify-items: center;
    gap: 9px;
    padding: 34px 20px;
    color: #64748b;
    text-align: center;
}

.legacy-empty-cart__icon {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #eff6ff;
    color: #2864d7;
    font-size: 22px;
}

.legacy-empty-cart strong {
    color: #172033;
    font-size: 18px;
}

.legacy-empty-cart a {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    margin-top: 5px;
    padding: 0 18px;
    border-radius: 7px;
    background: #2864d7;
    color: #fff;
    font-weight: 800;
    text-decoration: none;
}

.legacy-empty-cart-hidden {
    display: none !important;
}

.legacy-empty-cart-page {
    display: grid;
    justify-items: center;
    gap: 12px;
    width: min(620px, calc(100% - 32px));
    margin: 72px auto;
    padding: 56px 28px;
    border: 1px solid #dbe3ef;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 18px 45px rgba(15, 35, 65, .08);
    color: #64748b;
    text-align: center;
}

.legacy-empty-cart-page__icon {
    display: grid;
    place-items: center;
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background: #eff6ff;
    color: #2864d7;
    font-size: 32px;
}

.legacy-empty-cart-page h1 {
    margin: 4px 0 0;
    color: #172033;
    font-size: 28px;
}

.legacy-empty-cart-page p {
    margin: 0;
}

.legacy-empty-cart-page a {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    margin-top: 6px;
    padding: 0 22px;
    border-radius: 7px;
    background: #2864d7;
    color: #fff;
    font-weight: 800;
    text-decoration: none;
}

.delete-btn {
    min-width: 48px;
    min-height: 34px;
    border-radius: 6px;
    background: #fff1f2;
    color: #be123c;
    font-weight: 800;
}

.delete-btn:hover {
    background: #ffe4e6;
}

.legacy-blue-panel {
    margin-top: 18px;
}

.legacy-blue-panel table {
    min-width: 720px;
}

.legacy-blue-panel > table {
    display: block;
    overflow-x: auto;
}

.legacy-blue-panel th {
    padding: 11px 12px;
    background: #64748b;
    white-space: nowrap;
}

.legacy-blue-panel td {
    padding: 12px;
    color: #334155;
}

.legacy-blue-panel label {
    min-height: 48px;
    padding: 0 16px;
    color: #334155;
}

.cart-note {
    min-height: 108px;
    margin-top: 18px;
    padding: 13px 14px;
    font: inherit;
    resize: vertical;
}

.legacy-summary {
    position: sticky;
    top: 18px;
    padding-bottom: 10px;
}

.legacy-summary .legacy-blue-title {
    margin: -1px -1px 0;
    padding: 0 16px;
}

.legacy-summary p {
    margin: 18px 20px 4px;
    color: #64748b;
    font-size: 14px;
}

.legacy-summary dl {
    margin: 0;
    padding: 8px 20px 14px;
}

.legacy-summary dt,
.legacy-summary dd {
    box-sizing: border-box;
    padding: 11px 0;
    border-bottom: 1px solid #e8edf3;
    color: #475569;
}

.legacy-summary dd {
    color: #172033;
    font-weight: 700;
}

.legacy-summary dt:last-of-type,
.legacy-summary dd:last-of-type {
    border-bottom: 0;
    color: #0f4fbf;
    font-size: 16px;
    font-weight: 900;
}

.legacy-summary form button {
    min-height: 40px;
    margin: 7px 16px;
    width: calc(100% - 32px);
    border-radius: 7px;
    transition: transform .2s ease, filter .2s ease;
}

.legacy-summary form button:hover,
.checkout-sticky button:hover {
    filter: brightness(.96);
    transform: translateY(-1px);
}

.checkout-sticky {
    display: none !important;
}

/* The checkout bar is intentionally removed from the Otomotiv cart view. */
.legacy-cart-shell ~ .checkout-sticky {
    display: none !important;
}

.legacy-checkout-panel {
    margin: 18px 16px 8px;
    padding-top: 16px;
    border-top: 1px solid #e8edf3;
}

.legacy-payment-options {
    display: grid;
    gap: 9px;
    color: #475569;
    font-size: 14px;
}

.legacy-payment-options > span {
    color: #172033;
    font-weight: 800;
}

.legacy-payment-options label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-weight: 600;
}

.legacy-checkout-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid #e8edf3;
    color: #475569;
}

.legacy-checkout-total strong {
    color: #0f4fbf;
    font-size: 18px;
}

.legacy-checkout-panel .legacy-complete-button {
    width: 100%;
    min-height: 44px;
    margin: 16px 0 0;
    border-radius: 7px;
    background: #172033;
    color: #fff;
    font-size: 15px;
}

/* Keep the legacy declaration below harmless if another bundle reintroduces it. */
.checkout-sticky--disabled {
    grid-template-columns: minmax(220px, 1fr) minmax(220px, 1fr) 260px;
    min-height: 64px;
    padding-top: 10px;
    padding-bottom: 10px;
    background: rgba(255, 255, 255, .96);
    border-top: 1px solid #dbe3ef;
    box-shadow: 0 -10px 28px rgba(15, 35, 65, .12);
    backdrop-filter: blur(8px);
}

.checkout-sticky button {
    min-height: 42px;
    border-radius: 7px;
    background: #172033;
}

@media (max-width: 1199px) {
    .legacy-cart-grid {
        grid-template-columns: minmax(0, 1fr) 320px;
    }
}

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

    .legacy-summary {
        position: static;
        grid-row: 1;
    }
}

@media (max-width: 767px) {
    .legacy-cart-shell {
        width: calc(100% - 24px);
        margin-top: 16px;
        padding: 16px;
    }

    .legacy-cart-shell h1 {
        font-size: 26px;
    }

    .checkout-sticky {
        grid-template-columns: 1fr;
        gap: 6px;
        padding: 8px 12px;
    }

    .checkout-sticky > span:nth-child(2) {
        display: none;
    }
}

@media (min-width: 1200px) {
    .legacy-breadcrumb.container,
    .legacy-cart-shell.container {
        width: min(1720px, calc(100vw - 48px));
        max-width: none;
    }

    .legacy-cart-shell .legacy-cart-table-wrap {
        overflow-x: hidden;
    }

    .legacy-cart-shell .legacy-cart-table {
        width: 100%;
        min-width: 0;
        table-layout: fixed;
    }

    .site__body .store-home {
        width: min(1720px, calc(100vw - 48px));
        max-width: none;
        margin-left: auto;
        margin-right: auto;
    }

    .site__body .home-banner-card {
        width: 100%;
        max-width: none;
        box-sizing: border-box;
    }
}

/* Otomotiv cart products: replace the dense table with responsive product cards. */
.legacy-cart-shell .legacy-cart-table-wrap {
    overflow: visible;
    border: 0;
    background: transparent;
}

.legacy-cart-shell .legacy-cart-table {
    display: block;
    width: 100%;
    min-width: 0;
    border-collapse: separate;
}

.legacy-cart-shell .legacy-cart-table thead {
    display: none;
}

.legacy-cart-shell .legacy-cart-table tbody {
    display: grid;
    gap: 14px;
}

.legacy-cart-shell .legacy-cart-table tbody tr:not(:has(.legacy-empty-cart-cell)) {
    display: grid;
    grid-template-columns: 38px 88px minmax(0, 1fr) 42px;
    grid-template-areas:
        "check image product remove"
        "quantity vat list discount"
        "price total total total";
    gap: 12px 14px;
    padding: 18px;
    border: 1px solid #dbe3ef;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(15, 35, 65, .055);
    transition: border-color .2s ease, box-shadow .2s ease;
}

.legacy-cart-shell .legacy-cart-table tbody tr:not(:has(.legacy-empty-cart-cell)):hover {
    border-color: #a9c7f5;
    box-shadow: 0 12px 28px rgba(15, 35, 65, .09);
}

.legacy-cart-shell .legacy-cart-table tbody tr:not(:has(.legacy-empty-cart-cell)) > td {
    min-width: 0;
    padding: 0;
    border: 0;
    background: transparent;
}

.legacy-cart-shell .legacy-cart-table tbody td:nth-child(1) { grid-area: check; align-self: center; }
.legacy-cart-shell .legacy-cart-table tbody td:nth-child(2) { grid-area: image; align-self: start; }
.legacy-cart-shell .legacy-cart-table tbody td:nth-child(3) { grid-area: product; align-self: start; }
.legacy-cart-shell .legacy-cart-table tbody td:nth-child(4) { grid-area: quantity; }
.legacy-cart-shell .legacy-cart-table tbody td:nth-child(5) { grid-area: vat; }
.legacy-cart-shell .legacy-cart-table tbody td:nth-child(6) { grid-area: list; }
.legacy-cart-shell .legacy-cart-table tbody td:nth-child(7) { grid-area: discount; }
.legacy-cart-shell .legacy-cart-table tbody td:nth-child(8) { grid-area: price; }
.legacy-cart-shell .legacy-cart-table tbody td:nth-child(9) { grid-area: total; }
.legacy-cart-shell .legacy-cart-table tbody td:nth-child(10) { grid-area: remove; align-self: start; }

.legacy-cart-shell .legacy-cart-table tbody td:nth-child(3) strong {
    display: block;
    margin-bottom: 7px;
    color: #172033;
    font-size: 15px;
    line-height: 1.35;
}

.legacy-cart-shell .legacy-cart-table tbody td:nth-child(3) small {
    margin-top: 4px;
}

.legacy-cart-shell .legacy-cart-table tbody td:nth-child(4)::before,
.legacy-cart-shell .legacy-cart-table tbody td:nth-child(5)::before,
.legacy-cart-shell .legacy-cart-table tbody td:nth-child(6)::before,
.legacy-cart-shell .legacy-cart-table tbody td:nth-child(7)::before,
.legacy-cart-shell .legacy-cart-table tbody td:nth-child(8)::before,
.legacy-cart-shell .legacy-cart-table tbody td:nth-child(9)::before {
    display: block;
    margin-bottom: 6px;
    color: #64748b;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.legacy-cart-shell .legacy-cart-table tbody td:nth-child(4)::before { content: "Miktar"; }
.legacy-cart-shell .legacy-cart-table tbody td:nth-child(5)::before { content: "KDV"; }
.legacy-cart-shell .legacy-cart-table tbody td:nth-child(6)::before { content: "Liste Fiyatı"; }
.legacy-cart-shell .legacy-cart-table tbody td:nth-child(7)::before { content: "İskonto"; }
.legacy-cart-shell .legacy-cart-table tbody td:nth-child(8)::before { content: "Net Fiyat"; }
.legacy-cart-shell .legacy-cart-table tbody td:nth-child(9)::before { content: "Tutar"; }

.legacy-cart-shell .legacy-cart-table tbody td:nth-child(6),
.legacy-cart-shell .legacy-cart-table tbody td:nth-child(8),
.legacy-cart-shell .legacy-cart-table tbody td:nth-child(9) {
    color: #172033;
    font-weight: 800;
}

.legacy-cart-shell .legacy-cart-table tbody td:nth-child(4) input,
.legacy-cart-shell .legacy-cart-table tbody td:nth-child(5) input,
.legacy-cart-shell .legacy-cart-table tbody td:nth-child(7) input,
.legacy-cart-shell .legacy-cart-table tbody td:nth-child(8) input {
    width: 100%;
    max-width: 140px;
}

@media (max-width: 700px) {
    .legacy-cart-shell .legacy-cart-table tbody tr:not(:has(.legacy-empty-cart-cell)) {
        grid-template-columns: 34px 70px minmax(0, 1fr) 36px;
        gap: 10px;
        padding: 14px;
    }

    .legacy-cart-shell .legacy-cart-table tbody td:nth-child(3) strong {
        font-size: 14px;
    }
}

/* Final cart layout correction: keep product data readable on desktop. */
@media (min-width: 1100px) {
    .legacy-cart-shell {
        padding: 28px;
    }

    .legacy-cart-grid {
        grid-template-columns: minmax(0, 1fr) 320px;
        gap: 24px;
    }

    .legacy-cart-shell .legacy-cart-table tbody tr:not(:has(.legacy-empty-cart-cell)) {
        grid-template-columns: 32px 72px minmax(220px, 1fr) 76px 76px 112px 96px 112px 112px 48px;
        grid-template-areas:
            "check image product product product product product product product remove"
            "check image quantity vat list discount price total total remove";
        gap: 16px 10px;
        padding: 18px 14px;
    }

    .legacy-cart-shell .legacy-cart-table tbody td:nth-child(3) strong {
        font-size: 14px;
    }

    .legacy-cart-shell .legacy-cart-table tbody td:nth-child(4)::before,
    .legacy-cart-shell .legacy-cart-table tbody td:nth-child(5)::before,
    .legacy-cart-shell .legacy-cart-table tbody td:nth-child(6)::before,
    .legacy-cart-shell .legacy-cart-table tbody td:nth-child(7)::before,
    .legacy-cart-shell .legacy-cart-table tbody td:nth-child(8)::before,
    .legacy-cart-shell .legacy-cart-table tbody td:nth-child(9)::before {
        margin-bottom: 5px;
        font-size: 10px;
    }

    .legacy-cart-shell .legacy-cart-table tbody td:nth-child(4) input,
    .legacy-cart-shell .legacy-cart-table tbody td:nth-child(5) input,
    .legacy-cart-shell .legacy-cart-table tbody td:nth-child(7) input,
    .legacy-cart-shell .legacy-cart-table tbody td:nth-child(8) input {
        max-width: 100%;
    }
}

.legacy-cart-shell .legacy-summary {
    position: sticky;
    top: 18px;
    align-self: start;
    background: #fff;
}

.legacy-cart-shell .legacy-summary dl {
    margin: 0;
}

.legacy-cart-shell .legacy-summary dt,
.legacy-cart-shell .legacy-summary dd {
    padding: 11px 16px;
    border-bottom: 1px solid #e2e8f0;
}

.legacy-cart-shell .legacy-summary dd {
    color: #172033;
    font-weight: 800;
}

.legacy-cart-shell .legacy-summary dt:last-of-type,
.legacy-cart-shell .legacy-summary dd:last-of-type {
    border-bottom: 0;
}

.legacy-cart-shell .legacy-summary form button {
    min-height: 40px;
    border-radius: 7px;
}

.legacy-cart-shell .legacy-blue-panel {
    margin-top: 18px;
}

/* Professional collection page for the Otomotiv theme. */
.collection-page {
    width: min(1320px, calc(100vw - 48px));
    max-width: none;
    margin: 24px auto 70px;
    padding: 0 0 34px;
}

.collection-page .legacy-page-breadcrumb {
    margin-bottom: 18px;
}

.collection-card {
    padding: 30px 32px 34px;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 18px 44px rgba(15, 23, 42, .07);
}

.collection-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
}

.collection-kicker {
    display: block;
    margin-bottom: 6px;
    color: #2563eb;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.collection-card h1 {
    margin: 0;
    color: #172033;
    font-size: 32px;
    letter-spacing: -.035em;
}

.collection-heading p {
    margin: 7px 0 0;
    color: #64748b;
    font-size: 13px;
}

.collection-heading-icon {
    display: grid;
    width: 58px;
    height: 58px;
    flex: 0 0 58px;
    place-items: center;
    border-radius: 14px;
    background: #ecfdf5;
    color: #059669;
    font-size: 24px;
}

.collection-form-card,
.collection-list-card {
    margin-top: 14px;
    padding: 22px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
}

.collection-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 20px;
    padding: 0 0 14px;
    border-bottom: 1px solid #dbe3ef;
}

.collection-tabs label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 36px;
    padding: 0 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #fff;
    color: #475569;
    font-size: 13px;
    font-weight: 700;
}

.collection-form-grid {
    gap: 16px;
}

.collection-form-grid label {
    gap: 7px;
    color: #475569;
    font-size: 12px;
    font-weight: 700;
}

.collection-form-grid input,
.collection-form-grid select,
.collection-form-grid textarea {
    min-height: 42px;
    border: 1px solid #cbd5e1;
    border-radius: 7px;
    background: #fff;
}

.collection-form-grid textarea {
    min-height: 96px;
}

.collection-save {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    margin-top: 20px;
    padding: 0 18px;
    border-radius: 8px;
    background: #059669;
}

.collection-list-card {
    background: #fff;
}

.collection-list-card h2 {
    margin: 0 0 16px;
    color: #172033;
    font-size: 21px;
}

.collection-table-shell {
    overflow: hidden;
    border: 1px solid #dbe3ef;
    border-radius: 10px;
}

.collection-list-card .report-table {
    border-spacing: 0;
    font-size: 13px;
}

.collection-list-card .report-table th {
    height: 46px;
    padding: 8px 11px;
    border: 0;
    background: #334155;
    color: #fff;
    font-size: 11px;
    letter-spacing: .04em;
    white-space: nowrap;
}

.collection-list-card .report-table td {
    padding: 13px 11px;
    border-right: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
    background: #fff;
}

.collection-list-card .report-table tbody tr:hover td {
    background: #f8fbff;
}

@media (max-width: 760px) {
    .collection-page {
        width: calc(100vw - 24px);
        margin-top: 20px;
    }

    .collection-card {
        padding: 22px 14px 24px;
        border-radius: 11px;
    }

    .collection-card h1 {
        font-size: 26px;
    }

    .collection-form-card,
    .collection-list-card {
        padding: 16px;
    }

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

    .collection-table-shell {
        overflow-x: auto;
    }

    .collection-list-card .report-table {
        min-width: 980px;
    }
}

/* Professional cart report page for the Otomotiv theme. */
.cart-report-page {
    width: min(1720px, calc(100vw - 48px));
    min-height: 0;
    margin: 24px auto 70px;
    padding: 0 0 34px;
    background: transparent;
}

.cart-report-page > .legacy-page-breadcrumb {
    margin-bottom: 18px;
}

.report-page-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
    padding: 26px 28px;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, .05);
}

.report-page-kicker {
    display: block;
    margin-bottom: 6px;
    color: #2563eb;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.cart-report-page h1 {
    margin: 0;
    color: #172033;
    font-size: 32px;
    letter-spacing: -.035em;
}

.report-page-heading p {
    margin: 7px 0 0;
    color: #64748b;
    font-size: 13px;
}

.report-page-heading-icon {
    display: grid;
    width: 58px;
    height: 58px;
    flex: 0 0 58px;
    place-items: center;
    border-radius: 14px;
    background: #eff6ff;
    color: #2563eb;
    font-size: 24px;
}

.cart-report-page .cart-report-filter {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 220px 112px;
    gap: 12px;
    margin-bottom: 14px;
    padding: 14px;
    border: 1px solid #e2e8f0;
    border-radius: 11px;
    background: #f8fafc;
}

.cart-report-page .cart-report-filter label {
    gap: 7px;
    color: #475569;
    font-size: 12px;
    font-weight: 700;
}

.cart-report-page .cart-report-filter input,
.cart-report-page .cart-report-filter select {
    min-height: 42px;
    border: 1px solid #cbd5e1;
    border-radius: 7px;
    background: #fff;
}

.cart-report-page .cart-report-filter button {
    min-height: 42px;
    border-radius: 7px;
    background: #2563eb;
}

.report-table-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 14px 0 10px;
    color: #64748b;
    font-size: 13px;
}

.report-table-toolbar strong {
    color: #172033;
}

.report-table-toolbar label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.report-table-shell {
    overflow: hidden;
    border: 1px solid #dbe3ef;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 10px 26px rgba(15, 23, 42, .05);
}

.cart-report-page .report-table {
    border-spacing: 0;
    font-size: 13px;
}

.cart-report-page .report-table th {
    height: 48px;
    padding: 8px 12px;
    border: 0;
    background: #334155;
    color: #fff;
    font-size: 11px;
    letter-spacing: .045em;
    white-space: nowrap;
}

.cart-report-page .report-table td {
    padding: 14px 12px;
    border-right: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
    background: #fff;
    color: #334155;
}

.cart-report-page .report-table tbody tr:hover td {
    background: #f8fbff;
}

.cart-report-page .report-image {
    border-radius: 6px;
    background: #f1f5f9;
    color: #64748b;
}

@media (max-width: 900px) {
    .cart-report-page {
        width: calc(100vw - 24px);
        margin-top: 20px;
    }

    .report-page-heading {
        padding: 22px 16px;
    }

    .cart-report-page h1 {
        font-size: 26px;
    }

    .cart-report-page .cart-report-filter {
        grid-template-columns: 1fr 1fr;
    }

    .report-table-shell {
        overflow-x: auto;
    }

    .cart-report-page .report-table {
        min-width: 1280px;
    }
}

@media (max-width: 560px) {
    .cart-report-page .cart-report-filter {
        grid-template-columns: 1fr;
    }
}

/* Keep contact page refinements above legacy contact defaults. */
.contact-page-modern {
    width: min(1320px, calc(100vw - 48px));
    max-width: none;
    margin: 24px auto 70px;
}

.contact-card-modern {
    display: grid;
    grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
    gap: 64px;
    padding: 42px 44px;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 18px 44px rgba(15, 23, 42, .07);
}

.contact-card-modern h1 {
    margin: 0 0 14px;
    color: #172033;
    font-size: 36px;
}

.contact-form-modern {
    padding: 24px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
}

.contact-form-modern h2 {
    margin: 0 0 22px;
    color: #172033;
    font-size: 22px;
}

.contact-form-grid input,
.contact-form-grid textarea {
    min-height: 42px;
    border: 1px solid #cbd5e1;
    border-radius: 7px;
    background: #fff;
}

.contact-form-grid textarea {
    min-height: 112px;
}

.contact-form-modern button {
    min-height: 42px;
    margin-top: 20px;
    padding: 0 20px;
    border-radius: 8px;
    background: #2563eb;
}

@media (max-width: 850px) {
    .contact-page-modern {
        width: calc(100vw - 24px);
        margin-top: 20px;
    }

    .contact-card-modern {
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 26px 16px;
        border-radius: 11px;
    }
}

/* Professional contact page for the Otomotiv theme. */
.contact-page-modern {
    width: min(1320px, calc(100vw - 48px));
    max-width: none;
    margin: 24px auto 70px;
    padding: 0 0 34px;
}

.contact-page-modern .legacy-breadcrumb {
    margin-bottom: 18px;
    color: #64748b;
}

.contact-card-modern {
    display: grid;
    grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
    gap: 64px;
    padding: 42px 44px;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 18px 44px rgba(15, 23, 42, .07);
}

.contact-card-modern h1 {
    margin: 0 0 14px;
    color: #172033;
    font-size: 36px;
    letter-spacing: -.04em;
}

.contact-kicker {
    display: block;
    margin-bottom: 8px;
    color: #2563eb;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.contact-card-modern > div > p {
    max-width: 390px;
    margin: 0;
    color: #64748b;
    font-size: 14px;
    line-height: 1.7;
}

.contact-info-list {
    display: grid;
    gap: 14px;
    margin-top: 30px;
}

.contact-info-list > div {
    display: flex;
    align-items: center;
    gap: 13px;
}

.contact-info-list > div > i {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 9px;
    background: #eff6ff;
    color: #2563eb;
}

.contact-info-list span {
    display: grid;
    gap: 2px;
}

.contact-info-list strong {
    color: #334155;
    font-size: 13px;
}

.contact-info-list small {
    color: #64748b;
    font-size: 12px;
}

.contact-form-modern {
    padding: 24px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
}

.contact-form-modern h2 {
    margin: 0 0 22px;
    color: #172033;
    font-size: 22px;
}

.contact-form-modern h2 i {
    margin-right: 7px;
    color: #2563eb;
}

.contact-form-grid {
    gap: 16px;
}

.contact-form-grid label {
    gap: 7px;
    color: #475569;
    font-size: 12px;
    font-weight: 700;
}

.contact-form-grid input,
.contact-form-grid textarea {
    min-height: 42px;
    border: 1px solid #cbd5e1;
    border-radius: 7px;
    background: #fff;
}

.contact-form-grid textarea {
    min-height: 112px;
    resize: vertical;
}

.contact-form-modern button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    margin-top: 20px;
    padding: 0 20px;
    border-radius: 8px;
    background: #2563eb;
}

@media (max-width: 850px) {
    .contact-page-modern {
        width: calc(100vw - 24px);
        margin-top: 20px;
    }

    .contact-card-modern {
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 26px 16px;
        border-radius: 11px;
    }

    .contact-card-modern h1 {
        font-size: 30px;
    }
}

/* Professional payment flow for the Otomotiv theme. */
.payment-shell {
    width: min(1720px, calc(100vw - 48px));
    min-height: 0;
    margin: 24px auto 70px;
    padding: 28px 32px 34px;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 18px 44px rgba(15, 23, 42, .07);
}

.payment-shell h1 {
    margin: 0 0 24px;
    color: #172033;
    font-size: 32px;
    font-weight: 900;
    letter-spacing: -.035em;
}

.payment-shell .legacy-breadcrumb {
    margin-bottom: 18px;
    color: #64748b;
}

.payment-steps {
    margin: 32px 0 36px;
    border-top: 3px solid #dbe3ef;
}

.payment-steps div {
    gap: 8px;
    transform: translateY(-17px);
}

.payment-steps b {
    width: 46px;
    height: 46px;
    border: 4px solid #fff;
    background: #e2e8f0;
    color: #64748b;
    box-shadow: 0 3px 10px rgba(15, 23, 42, .12);
    font-size: 17px;
}

.payment-steps span {
    padding: 7px 12px;
    border: 1px solid #dbe3ef;
    border-radius: 7px;
    background: #f8fafc;
    color: #64748b;
    font-size: 13px;
    font-weight: 700;
}

.payment-steps .active b,
.payment-steps .active span {
    border-color: #2563eb;
    background: #2563eb;
    color: #fff;
}

.payment-panel {
    border: 1px solid #dbe3ef;
    border-radius: 12px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, .07);
}

.payment-panel h2 {
    padding: 17px 24px;
    background: #334155;
    font-size: 18px;
    text-align: left;
}

.payment-row {
    grid-template-columns: 160px minmax(0, 1fr);
    gap: 16px;
    padding: 28px 24px 34px;
    color: #334155;
}

.payment-row input,
.payment-grid input,
.payment-confirm textarea {
    border: 1px solid #cbd5e1;
    border-radius: 7px;
    background: #fff;
}

.payment-row input {
    height: 46px;
}

.payment-panel footer {
    padding: 16px 24px;
    border-top: 1px solid #e2e8f0;
    background: #f8fafc;
}

.payment-panel button {
    min-height: 42px;
    padding: 0 18px;
    border-radius: 8px;
    background: #2563eb;
}

.payment-panel footer button[data-prev-payment] {
    background: #e2e8f0;
    color: #334155;
}

@media (max-width: 760px) {
    .payment-shell {
        width: calc(100vw - 24px);
        margin-top: 20px;
        padding: 22px 14px 24px;
        border-radius: 11px;
    }

    .payment-shell h1 {
        font-size: 26px;
    }

    .payment-steps span {
        max-width: 90px;
        overflow: hidden;
        padding-right: 6px;
        padding-left: 6px;
        font-size: 11px;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .payment-row {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 22px 16px 28px;
    }
}

/* Keep payment page refinements above legacy payment defaults. */
.payments-list-page {
    width: min(1720px, calc(100vw - 48px));
    max-width: none;
    margin: 24px auto 70px;
}

.payments-list-shell {
    margin: 0;
    padding: 30px 32px 28px;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 18px 44px rgba(15, 23, 42, .07);
}

.payments-list-shell h1 {
    margin: 0;
    color: #172033;
    font-size: 32px;
    letter-spacing: -.035em;
}

.payments-table-wrap {
    overflow: hidden;
    border: 1px solid #dbe3ef;
    border-radius: 12px;
    box-shadow: 0 10px 26px rgba(15, 23, 42, .05);
}

.payments-table {
    min-width: 0;
    font-size: 13px;
}

.payments-table th {
    height: 48px;
    padding: 8px 12px;
    border: 0;
    background: #334155;
    font-size: 11px;
    letter-spacing: .045em;
}

.payments-table td {
    padding: 14px 12px;
    border-right: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
    background: #fff;
}

.payments-table tbody tr:hover td {
    background: #f8fbff;
}

.payment-status {
    min-height: 26px;
    padding: 0 9px;
    border-radius: 999px;
    background: #dcfce7;
    color: #15803d;
}

.payments-footer {
    color: #64748b;
    font-size: 13px;
}

.payments-footer select {
    min-height: 36px;
    border: 1px solid #cbd5e1;
    border-radius: 7px;
}

.payments-footer nav {
    gap: 10px;
}

.payments-footer nav span {
    padding: 8px 11px;
    border: 1px solid #dbe3ef;
    border-radius: 7px;
    color: #475569;
    font-weight: 700;
}

@media (max-width: 900px) {
    .payments-list-page {
        width: calc(100vw - 24px);
        margin-top: 20px;
    }

    .payments-list-shell {
        padding: 22px 14px 24px;
        border-radius: 11px;
    }

    .payments-list-shell h1 {
        font-size: 26px;
    }

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

    .payments-table {
        min-width: 1160px;
    }
}

/* Keep the current-account refresh above the legacy report defaults. */
.account-page {
    width: min(1720px, calc(100vw - 48px));
    min-height: 0;
    margin: 34px auto 70px;
    padding: 30px 32px 34px;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 18px 44px rgba(15, 23, 42, .07);
}

.account-summary-grid {
    gap: 14px;
    margin: 0 0 22px;
}

.account-summary-grid article {
    min-height: 112px;
    padding: 20px 22px 18px 66px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
    box-shadow: none;
}

.account-page .cart-report-filter {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 190px 112px;
    gap: 12px;
    margin-bottom: 18px;
    padding: 14px;
    border: 1px solid #e2e8f0;
    border-radius: 11px;
    background: #f8fafc;
}

.account-page .cart-report-filter input,
.account-page .cart-report-filter select {
    min-height: 42px;
    border: 1px solid #cbd5e1;
    border-radius: 7px;
    background: #fff;
}

.account-page .cart-report-filter button {
    min-height: 42px;
    border-radius: 7px;
    background: #2563eb;
}

.account-report-table-shell {
    overflow: hidden;
    border: 1px solid #dbe3ef;
    border-radius: 12px;
    box-shadow: 0 10px 26px rgba(15, 23, 42, .05);
}

.account-page .report-table {
    border-spacing: 0;
    font-size: 13px;
}

.account-page .report-table th {
    height: 48px;
    padding: 8px 12px;
    border: 0;
    background: #334155;
    color: #fff;
    font-size: 11px;
    letter-spacing: .045em;
}

.account-page .report-table td {
    padding: 14px 12px;
    border-right: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
    background: #fff;
}

.account-page .report-table tr:nth-child(even) td,
.account-page .report-table tbody tr:hover td {
    background: #f8fbff;
}

@media (max-width: 900px) {
    .account-page {
        width: calc(100vw - 24px);
        margin-top: 20px;
        padding: 22px 14px 24px;
        border-radius: 11px;
    }

    .account-summary-grid {
        grid-template-columns: 1fr;
    }

    .account-page .cart-report-filter {
        grid-template-columns: 1fr 1fr;
    }

    .account-report-table-shell {
        overflow-x: auto;
    }

    .account-page .report-table {
        min-width: 920px;
    }
}

@media (max-width: 560px) {
    .account-page .cart-report-filter {
        grid-template-columns: 1fr;
    }
}
