:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-soft: #eff6ff;
    --teal: #0f766e;
    --teal-soft: #e8f7f5;
    --amber: #b7791f;
    --amber-soft: #fff7df;
    --ink: #0f172a;
    --text: #24324a;
    --muted: #64748b;
    --line: #dbe5f1;
    --surface: #ffffff;
    --canvas: #f5f8fc;
    --success: #0f8a5f;
    --error: #b42318;
    --error-soft: #fff1f0;
    --shadow: 0 18px 52px rgba(37, 99, 235, .11);
    --shadow-light: 0 12px 34px rgba(15, 23, 42, .08);
    font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
    box-sizing: border-box;
}

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

body {
    margin: 0;
    color: var(--text);
    background:
        radial-gradient(circle at 10% 6%, rgba(37, 99, 235, .10), transparent 30%),
        radial-gradient(circle at 92% 12%, rgba(15, 118, 110, .10), transparent 28%),
        linear-gradient(135deg, #eef5ff 0%, #f8fbff 45%, #eef3ff 100%);
    font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

button:disabled {
    cursor: default;
    opacity: .72;
}

.marketplace-page {
    width: min(1220px, calc(100% - 40px));
    min-height: 100vh;
    margin: 0 auto;
    padding: 24px 0 54px;
}

.marketplace-shell {
    min-height: 100vh;
    padding: 24px 0 0;
}

.marketplace-shell .marketplace-page {
    min-height: auto;
    padding-top: 0;
}

.marketplace-shell > .app-header {
    width: min(1220px, calc(100% - 40px));
    margin: 0 auto 22px;
}

.marketplace-header {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-height: 70px;
    margin-bottom: 22px;
    padding: 10px 14px;
    border: 1px solid rgba(255, 255, 255, .78);
    border-radius: 24px;
    background: rgba(255, 255, 255, .82);
    box-shadow: 0 14px 42px rgba(37, 99, 235, .09);
    backdrop-filter: blur(18px);
}

.marketplace-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.brand-dot {
    width: 42px;
    height: 42px;
    position: relative;
    flex: 0 0 auto;
    border-radius: 14px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    box-shadow: 0 14px 30px rgba(37, 99, 235, .22);
}

.brand-dot::after {
    content: "";
    position: absolute;
    inset: 12px;
    border-radius: 50%;
    background: #ffffff;
}

.marketplace-brand strong,
.marketplace-brand small {
    display: block;
    line-height: 1.05;
}

.marketplace-brand strong {
    color: var(--ink);
    font-size: 1.02rem;
    font-weight: 850;
}

.marketplace-brand small {
    margin-top: 3px;
    color: var(--muted);
    font-size: .82rem;
    font-weight: 750;
}

.header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    color: #37516e;
    font-size: .9rem;
    font-weight: 750;
}

.header-actions a,
.header-actions button {
    white-space: nowrap;
}

.header-actions a,
.orders-menu summary {
    padding: 10px 12px;
    border-radius: 999px;
}

.header-actions a:hover,
.orders-menu summary:hover {
    color: var(--primary-dark);
    background: var(--primary-soft);
}

.orders-menu {
    position: relative;
}

.orders-menu summary {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    cursor: pointer;
    list-style: none;
}

.orders-menu summary::-webkit-details-marker {
    display: none;
}

.orders-menu summary::after {
    content: "";
    width: 7px;
    height: 7px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
    transition: transform .18s ease;
}

.orders-menu[open] summary {
    color: var(--primary-dark);
    background: var(--primary-soft);
}

.orders-menu[open] summary::after {
    transform: rotate(225deg) translate(-2px, -1px);
}

.orders-menu-panel {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 30;
    min-width: 220px;
    padding: 8px;
    border: 1px solid rgba(37, 99, 235, .16);
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 18px 46px rgba(15, 23, 42, .16);
}

.orders-menu-panel a {
    display: block;
    border-radius: 12px;
    color: var(--ink);
    font-weight: 850;
}

.orders-menu-panel a:hover {
    color: var(--primary-dark);
    background: #eff6ff;
}

.notification-center {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.notification-bell {
    position: relative;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(37, 99, 235, .18);
    border-radius: 14px;
    color: #1d4ed8;
    background: #ffffff;
    box-shadow: 0 10px 28px rgba(15, 23, 42, .07);
    transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.notification-bell:hover,
.notification-bell.has-unread {
    border-color: rgba(37, 99, 235, .38);
    background: #eff6ff;
    transform: translateY(-1px);
}

.bell-icon {
    position: relative;
    width: 16px;
    height: 18px;
    border: 2px solid currentColor;
    border-bottom: 0;
    border-radius: 9px 9px 5px 5px;
}

.bell-icon::before {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -5px;
    width: 20px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    transform: translateX(-50%);
}

.bell-icon::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -10px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: currentColor;
    transform: translateX(-50%);
}

.notification-count {
    position: absolute;
    top: -6px;
    right: -7px;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #ffffff;
    border-radius: 999px;
    color: #ffffff;
    background: #dc2626;
    font-size: .68rem;
    font-weight: 950;
}

.notification-panel {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    z-index: 40;
    width: min(380px, calc(100vw - 28px));
    overflow: hidden;
    border: 1px solid rgba(37, 99, 235, .16);
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 22px 56px rgba(15, 23, 42, .18);
}

.notification-panel header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px;
    border-bottom: 1px solid #e2e8f0;
    background: linear-gradient(180deg, #ffffff, #f8fbff);
}

.notification-panel header strong,
.notification-panel header span {
    display: block;
}

.notification-panel header strong {
    color: var(--ink);
    font-size: .95rem;
    font-weight: 950;
}

.notification-panel header span {
    margin-top: 2px;
    color: var(--muted);
    font-size: .74rem;
    font-weight: 750;
}

.notification-panel header button {
    min-height: 34px;
    padding: 0 10px;
    border: 1px solid #dbeafe;
    border-radius: 999px;
    color: #1d4ed8;
    background: #eff6ff;
    font-size: .76rem;
    font-weight: 900;
}

.notification-panel header button:disabled {
    color: #94a3b8;
    background: #f8fafc;
}

.notification-list {
    max-height: 430px;
    overflow: auto;
    padding: 8px;
}

.notification-item {
    width: 100%;
    display: grid;
    gap: 4px;
    margin-bottom: 7px;
    padding: 11px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    text-align: left;
    background: #ffffff;
}

.notification-item.unread {
    border-color: #bfdbfe;
    background: #f8fbff;
}

.notification-item:hover {
    border-color: #93c5fd;
    background: #eff6ff;
}

.notification-type {
    color: #1d4ed8;
    font-size: .68rem;
    font-weight: 950;
    text-transform: uppercase;
}

.notification-item strong {
    color: var(--ink);
    font-size: .86rem;
    font-weight: 950;
}

.notification-item span:not(.notification-type),
.notification-item time {
    color: #64748b;
    font-size: .76rem;
    font-weight: 700;
}

.notification-empty {
    padding: 24px 14px;
    color: #64748b;
    text-align: center;
    font-weight: 800;
}

.user-chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    max-width: 300px;
    padding: 6px 10px 6px 6px;
    border: 1px solid rgba(37, 99, 235, .18);
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 10px 28px rgba(15, 23, 42, .07);
}

.user-chip > span {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
    border-radius: 12px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--teal), var(--primary));
    font-size: .78rem;
    font-weight: 900;
}

.user-chip div {
    min-width: 0;
}

.user-chip strong,
.user-chip small {
    display: block;
    max-width: 210px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.1;
}

.user-chip strong {
    color: var(--ink);
    font-size: .85rem;
    font-weight: 850;
}

.user-chip small {
    margin-top: 3px;
    color: var(--muted);
    font-size: .74rem;
    font-weight: 650;
}

.section-kicker {
    margin: 0 0 9px;
    color: var(--primary);
    font-size: .75rem;
    font-weight: 850;
    letter-spacing: 0;
    text-transform: uppercase;
}

.market-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.04fr) minmax(360px, .72fr);
    align-items: center;
    gap: 28px;
    min-height: 390px;
    margin-bottom: 20px;
    padding: 34px;
    border: 1px solid rgba(255, 255, 255, .78);
    border-radius: 30px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, .90), rgba(255, 255, 255, .72)),
        linear-gradient(135deg, rgba(37, 99, 235, .09), rgba(15, 118, 110, .07));
    box-shadow: var(--shadow);
    overflow: hidden;
}

.hero-copy h1 {
    max-width: 720px;
    margin: 0;
    color: var(--ink);
    font-size: clamp(2.2rem, 5vw, 4.8rem);
    line-height: 1;
    font-weight: 900;
    letter-spacing: 0;
}

.hero-copy p:not(.section-kicker) {
    max-width: 620px;
    margin: 18px 0 0;
    color: var(--muted);
    font-size: 1.04rem;
    line-height: 1.65;
    font-weight: 600;
}

.hero-panel {
    display: grid;
    gap: 14px;
}

.hero-card {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 14px;
    min-height: 82px;
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, .86);
    border-radius: 22px;
    background: rgba(255, 255, 255, .82);
    box-shadow: var(--shadow-light);
}

.hero-card.active {
    transform: translateX(-18px);
}

.hero-card.compact {
    grid-template-columns: 1fr;
    gap: 5px;
    width: min(100%, 330px);
    margin-left: auto;
    color: #315072;
    background: var(--primary-soft);
}

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

.hero-card strong {
    color: var(--ink);
    font-weight: 850;
}

.hero-card small,
.hero-card span {
    color: var(--muted);
    font-weight: 650;
}

.hero-card em,
.company-cover em {
    padding: 7px 10px;
    border-radius: 999px;
    color: var(--success);
    background: #eaf8f0;
    font-size: .74rem;
    font-style: normal;
    font-weight: 850;
}

.mini-logo,
.company-logo,
.profile-logo {
    display: grid;
    place-items: center;
    color: #ffffff;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    font-weight: 900;
}

.mini-logo {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    font-size: .92rem;
    overflow: hidden;
}

.mini-logo img,
.company-logo img,
.profile-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mini-logo.soft {
    color: var(--teal);
    background: var(--teal-soft);
}

.search-band {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(230px, 300px) auto;
    gap: 12px;
    margin: 8px 0 20px;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, .76);
    border-radius: 24px;
    background: rgba(255, 255, 255, .84);
    box-shadow: 0 16px 40px rgba(15, 23, 42, .07);
    backdrop-filter: blur(18px);
}

.search-box {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 56px;
    padding: 0 16px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #ffffff;
}

.search-box input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: none;
    color: var(--ink);
    font-weight: 650;
}

.search-box input::placeholder {
    color: #8ba0b9;
}

.search-icon {
    width: 20px;
    height: 20px;
    position: relative;
    flex: 0 0 auto;
    border: 2px solid var(--primary);
    border-radius: 50%;
}

.search-icon::after {
    content: "";
    position: absolute;
    width: 9px;
    height: 2px;
    right: -7px;
    bottom: -4px;
    border-radius: 999px;
    background: var(--primary);
    transform: rotate(45deg);
}

.filter-select {
    min-height: 56px;
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 0 14px;
    color: var(--ink);
    background: #ffffff;
    outline: none;
    font-weight: 750;
}

.clear-filter {
    min-height: 56px;
    border: 1px solid rgba(37, 99, 235, .22);
    border-radius: 18px;
    padding: 0 18px;
    color: var(--primary-dark);
    background: var(--primary-soft);
    font-weight: 850;
}

.category-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 30px;
}

.category-pill {
    min-height: 92px;
    display: grid;
    align-content: center;
    gap: 6px;
    border: 1px solid rgba(255, 255, 255, .78);
    border-radius: 22px;
    padding: 14px;
    text-align: left;
    color: var(--text);
    background: rgba(255, 255, 255, .74);
    box-shadow: 0 10px 30px rgba(37, 99, 235, .07);
}

.category-pill strong,
.category-pill span {
    display: block;
}

.category-pill strong {
    color: var(--ink);
    font-size: .96rem;
    line-height: 1.25;
}

.category-pill span {
    color: var(--muted);
    font-size: .82rem;
    font-weight: 700;
}

.category-pill.active,
.category-pill:hover {
    border-color: rgba(37, 99, 235, .34);
    background: #ffffff;
}

.market-section {
    margin-top: 34px;
}

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

.section-heading h2 {
    margin: 0;
    color: var(--ink);
    font-size: clamp(1.55rem, 3vw, 2rem);
    font-weight: 900;
    letter-spacing: 0;
}

.section-heading > span {
    color: var(--muted);
    font-size: .9rem;
    font-weight: 800;
}

.company-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

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

.company-card,
.product-card,
.similar-card {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .82);
    border-radius: 22px;
    background: rgba(255, 255, 255, .90);
    box-shadow: 0 14px 34px rgba(37, 99, 235, .08);
}

.company-card,
.product-card {
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.company-card:hover,
.product-card:hover,
.similar-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 42px rgba(37, 99, 235, .13);
}

.company-cover {
    min-height: 128px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 14px;
}

.cover-blue {
    background: linear-gradient(135deg, #2563eb, #93c5fd);
}

.cover-teal {
    background: linear-gradient(135deg, #0f766e, #99f6e4);
}

.cover-indigo {
    background: linear-gradient(135deg, #4338ca, #a5b4fc);
}

.cover-amber {
    background: linear-gradient(135deg, #b7791f, #fde68a);
}

.company-logo {
    width: 58px;
    height: 58px;
    border: 3px solid rgba(255, 255, 255, .72);
    border-radius: 20px;
    font-size: 1.05rem;
}

.company-body,
.product-body {
    display: grid;
    gap: 10px;
    padding: 16px 16px 12px;
}

.card-title-link {
    color: var(--ink);
    font-size: 1rem;
    font-weight: 900;
    line-height: 1.25;
}

.card-title-link:hover,
.seller-link:hover,
.seller-panel a:hover {
    color: var(--primary-dark);
}

.company-body p,
.product-body p {
    min-height: 58px;
    margin: 0;
    color: var(--muted);
    font-size: .9rem;
    font-weight: 600;
    line-height: 1.55;
}

.card-meta,
.product-codes {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.card-meta span,
.product-codes span {
    padding: 6px 9px;
    border-radius: 999px;
    color: #315072;
    background: #f1f6fd;
    font-size: .75rem;
    font-weight: 800;
}

.company-footer,
.product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: auto;
    padding: 14px 16px 16px;
}

.company-footer span,
.seller-link {
    color: var(--muted);
    font-size: .84rem;
    font-weight: 800;
}

.product-media,
.detail-media {
    display: grid;
    place-items: end start;
    color: #ffffff;
    background-size: 140% 140%;
}

.product-media {
    min-height: 170px;
    padding: 14px;
    position: relative;
    overflow: hidden;
}

.product-media img,
.detail-media img,
.similar-media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-media span,
.detail-media span {
    position: relative;
    z-index: 1;
}

.product-media span,
.detail-media span {
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(15, 23, 42, .24);
    color: #ffffff;
    font-size: .75rem;
    font-weight: 850;
    backdrop-filter: blur(8px);
}

.product-tool {
    background: linear-gradient(135deg, #1d4ed8, #60a5fa 55%, #dbeafe);
}

.product-material {
    background: linear-gradient(135deg, #475569, #94a3b8 55%, #e2e8f0);
}

.product-safety {
    background: linear-gradient(135deg, #b7791f, #f59e0b 55%, #fef3c7);
}

.product-bearing {
    background: linear-gradient(135deg, #334155, #64748b 55%, #cbd5e1);
}

.product-network {
    background: linear-gradient(135deg, #4338ca, #818cf8 55%, #e0e7ff);
}

.product-service {
    background: linear-gradient(135deg, #0f766e, #2dd4bf 55%, #ccfbf1);
}

.product-logistics {
    background: linear-gradient(135deg, #075985, #38bdf8 55%, #e0f2fe);
}

.product-warehouse {
    background: linear-gradient(135deg, #7c2d12, #fb923c 55%, #ffedd5);
}

.product-footer strong {
    color: var(--ink);
    font-size: 1.02rem;
    font-weight: 950;
}

.primary-action,
.ghost-action,
.outline-action,
.primary-link-button {
    min-height: 50px;
    border-radius: 16px;
    padding: 0 18px;
    font-weight: 900;
    white-space: nowrap;
}

.primary-action,
.primary-link-button {
    border: 0;
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    box-shadow: 0 14px 30px rgba(37, 99, 235, .24);
}

.primary-action.small,
.ghost-action.small,
.outline-action {
    min-height: 40px;
    border-radius: 13px;
    padding: 0 13px;
    font-size: .82rem;
}

.primary-action.fit,
.outline-action.fit {
    width: fit-content;
}

.ghost-action,
.outline-action {
    border: 1px solid rgba(37, 99, 235, .24);
    color: var(--primary-dark);
    background: var(--primary-soft);
}

.outline-action {
    background: #ffffff;
}

.primary-link-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.company-profile {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .82);
    border-radius: 30px;
    background: rgba(255, 255, 255, .90);
    box-shadow: var(--shadow);
}

.company-catalog-page .company-profile {
    margin-bottom: 24px;
}

.company-products-toolbar {
    margin-top: 0;
}

.profile-cover {
    min-height: 230px;
}

.profile-content {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 22px;
    padding: 0 28px 30px;
}

.profile-logo {
    width: 118px;
    height: 118px;
    margin-top: -58px;
    border: 5px solid #ffffff;
    border-radius: 32px;
    font-size: 1.7rem;
    box-shadow: 0 16px 36px rgba(15, 23, 42, .16);
    overflow: hidden;
}

.profile-main {
    min-width: 0;
    padding-top: 24px;
}

.profile-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.profile-title-row h1,
.product-info-panel h1,
.empty-state h1 {
    margin: 0;
    color: var(--ink);
    font-size: clamp(2rem, 4vw, 3.4rem);
    font-weight: 950;
    line-height: 1.05;
    letter-spacing: 0;
}

.verified-badge {
    flex: 0 0 auto;
    padding: 9px 12px;
    border-radius: 999px;
    color: var(--success);
    background: #eaf8f0;
    font-size: .82rem;
    font-weight: 900;
}

.profile-main > p,
.product-info-panel > p {
    max-width: 760px;
    margin: 14px 0 0;
    color: var(--muted);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.65;
}

.profile-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin: 18px 0;
}

.profile-facts span {
    padding: 8px 11px;
    border-radius: 999px;
    color: #315072;
    background: #f1f6fd;
    font-size: .82rem;
    font-weight: 850;
}

.profile-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.company-service-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.company-service-actions.compact {
    gap: 8px;
}

.seller-panel + .company-service-actions {
    margin-top: -8px;
    margin-bottom: 18px;
}

.quote-company > .company-service-actions {
    padding: 10px 18px;
    border-bottom: 1px solid var(--line);
    background: #ffffff;
}

.company-service-loading {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    padding: 0 12px;
    color: #64748b;
    background: #f8fafc;
    font-size: .8rem;
    font-weight: 850;
}

.company-schedule-empty {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    border: 1px dashed #cbd5e1;
    border-radius: 999px;
    padding: 0 14px;
    color: #64748b;
    background: #f8fafc;
    font-size: .84rem;
    font-weight: 900;
}

.company-schedule-trigger {
    border-color: rgba(14, 165, 233, .28);
    color: #075985;
    background: #f0f9ff;
}

.company-warranty-trigger {
    border-color: rgba(22, 163, 74, .28);
    color: #166534;
    background: #f0fdf4;
}

.seller-profile-action.company-info,
.quote-company-contact.company-info {
    min-height: 36px;
    font-size: .78rem;
}

.company-schedule-modal {
    width: min(760px, 94vw);
}

.company-warranty-modal {
    width: min(820px, 94vw);
}

.company-warranty-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 16px 0 12px;
}

.company-warranty-meta span {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    border-radius: 999px;
    padding: 0 11px;
    color: #315072;
    background: #f1f6fd;
    font-size: .78rem;
    font-weight: 900;
}

.company-warranty-content {
    max-height: min(62vh, 560px);
    overflow-y: auto;
    border: 1px solid #dbe4f0;
    border-radius: 18px;
    padding: 18px;
    color: #334155;
    background: #ffffff;
    font-size: .96rem;
    font-weight: 650;
    line-height: 1.65;
    white-space: pre-wrap;
}

.company-schedule-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 18px 0 14px;
}

.company-schedule-summary div {
    border: 1px solid #dbe4f0;
    border-radius: 16px;
    padding: 12px;
    background: #f8fafc;
}

.company-schedule-summary span {
    display: block;
    color: var(--muted);
    font-size: .74rem;
    font-weight: 900;
    text-transform: uppercase;
}

.company-schedule-summary strong {
    display: block;
    margin-top: 4px;
    color: var(--ink);
    font-size: 1rem;
    font-weight: 950;
}

.company-schedule-table-wrap {
    overflow: auto;
    border: 1px solid #dbe4f0;
    border-radius: 18px;
}

.company-schedule-table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
}

.company-schedule-table th,
.company-schedule-table td {
    padding: 13px 14px;
    border-bottom: 1px solid #edf2f7;
    text-align: left;
}

.company-schedule-table th {
    color: #334155;
    background: #f8fafc;
    font-size: .76rem;
    font-weight: 950;
    text-transform: uppercase;
}

.company-schedule-table tr:last-child td {
    border-bottom: 0;
}

.company-schedule-table td {
    color: #475569;
    font-size: .9rem;
    font-weight: 780;
}

.company-schedule-table td strong {
    color: var(--ink);
    font-weight: 950;
}

.company-schedule-pill {
    display: inline-flex;
    border-radius: 999px;
    padding: 6px 10px;
    color: #075985;
    background: #e0f2fe;
    font-size: .82rem;
    font-weight: 950;
}

.company-rating-panel {
    display: grid;
    grid-template-columns: minmax(260px, .9fr) minmax(280px, 1fr);
    gap: 14px;
    max-width: 900px;
    margin: 20px 0;
    padding: 16px;
    border: 1px solid rgba(35, 83, 124, .12);
    border-radius: 20px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    box-shadow: 0 12px 30px rgba(15, 23, 42, .08);
}

.company-rating-summary,
.company-vote-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.company-rating-label,
.company-vote-panel span {
    display: block;
    color: var(--muted);
    font-size: .82rem;
    font-weight: 800;
}

.company-rating-stars {
    display: flex;
    gap: 3px;
    margin-top: 5px;
    color: #d6dee8;
    font-size: 1.45rem;
    line-height: 1;
}

.company-rating-stars .filled {
    color: #f5a524;
    text-shadow: 0 4px 10px rgba(245, 165, 36, .18);
}

.company-rating-score {
    text-align: right;
}

.company-rating-score strong {
    display: block;
    color: var(--ink);
    font-size: 1.45rem;
    font-weight: 950;
    line-height: 1;
}

.company-rating-score span {
    display: block;
    margin-top: 5px;
    color: var(--muted);
    font-size: .78rem;
    font-weight: 800;
}

.company-vote-panel {
    flex-wrap: wrap;
    padding-left: 14px;
    border-left: 1px solid #e6edf5;
}

.company-vote-panel strong {
    display: block;
    color: var(--ink);
    font-size: .95rem;
    font-weight: 900;
}

.company-vote-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.company-vote-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 40px;
    padding: 0 12px;
    border: 1px solid #d9e3ef;
    border-radius: 999px;
    background: #ffffff;
    color: #365575;
    font-size: .84rem;
    font-weight: 900;
    transition: .18s ease;
}

.company-vote-button:hover:not(:disabled),
.company-vote-button.selected {
    border-color: rgba(13, 110, 253, .28);
    background: #eef6ff;
    color: #0d5fd8;
    transform: translateY(-1px);
}

.company-vote-button.negative:hover:not(:disabled),
.company-vote-button.negative.selected {
    border-color: rgba(180, 35, 24, .18);
    background: #fff1f0;
    color: var(--error);
}

.company-vote-button:disabled {
    cursor: wait;
    opacity: .7;
}

.company-rating-status {
    grid-column: 1 / -1;
    margin: 0;
    border-radius: 14px;
    font-size: .86rem;
}

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

.product-gallery,
.product-info-panel {
    border: 1px solid rgba(255, 255, 255, .82);
    border-radius: 30px;
    background: rgba(255, 255, 255, .90);
    box-shadow: var(--shadow);
}

.product-gallery {
    overflow: hidden;
    padding: 16px;
}

.detail-media {
    min-height: 470px;
    padding: 20px;
    border-radius: 24px;
    position: relative;
    overflow: hidden;
}

.thumbnail-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 12px;
}

.thumbnail-row span {
    min-height: 76px;
    border-radius: 18px;
    background-size: cover;
    background-position: center;
}

.product-info-panel {
    padding: 30px;
}

.detail-specs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 22px 0;
}

.detail-specs div {
    min-height: 82px;
    display: grid;
    align-content: center;
    gap: 6px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fbfdff;
}

.detail-specs span,
.seller-panel span {
    color: var(--muted);
    font-size: .78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.detail-specs strong {
    color: var(--ink);
    font-weight: 900;
}

.seller-panel {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-bottom: 18px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: #ffffff;
}

.seller-panel > div {
    min-width: 0;
    flex: 1 1 auto;
}

.seller-panel a {
    display: block;
    margin-top: 3px;
    color: var(--ink);
    font-weight: 900;
}

.seller-profile-action {
    flex: 0 0 auto;
    min-height: 40px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    margin-top: 0 !important;
    border: 1px solid rgba(37, 99, 235, .24);
    border-radius: 999px;
    padding: 0 14px;
    color: var(--primary-dark) !important;
    background: #eff6ff;
    font-size: .84rem;
    font-weight: 950;
    white-space: nowrap;
}

.seller-action-group {
    display: inline-flex;
    flex: 0 0 auto;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.seller-profile-action.contact,
.quote-company-contact {
    border-color: rgba(14, 165, 233, .28);
    color: #075985 !important;
    background: #f0f9ff;
}

.seller-profile-action:hover {
    border-color: #93c5fd;
    color: #1d4ed8 !important;
    background: #dbeafe;
}

.buy-panel {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 11px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}

.buy-panel > strong {
    width: 100%;
    color: var(--ink);
    font-size: 2rem;
    font-weight: 950;
}

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

.product-detail-topline .section-kicker {
    margin: 0;
}

.product-detail-cart {
    display: grid;
    width: min(100%, 420px);
    gap: 14px;
}

.product-detail-cart .qty-block-pro {
    width: 100%;
    padding: 16px;
    border-radius: 20px;
}

.product-detail-cart .btn-add-cart-pro,
.btn-go-quote-detail {
    min-height: 50px;
    width: 100%;
    font-size: .95rem;
}

.btn-go-quote-detail {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(37, 99, 235, .32);
    border-radius: 16px;
    color: #ffffff;
    background: linear-gradient(135deg, #1d4ed8, #2563eb);
    box-shadow: 0 14px 28px rgba(37, 99, 235, .22);
    font-weight: 950;
}

.btn-go-quote-detail:hover {
    background: linear-gradient(135deg, #1e40af, #1d4ed8);
    box-shadow: 0 18px 34px rgba(37, 99, 235, .28);
    transform: translateY(-1px);
}

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

.similar-card {
    display: grid;
    gap: 8px;
    padding: 12px;
}

.similar-media {
    min-height: 118px;
    border-radius: 18px;
    position: relative;
    overflow: hidden;
}

.similar-card strong {
    color: var(--ink);
    font-size: .94rem;
    font-weight: 900;
    line-height: 1.3;
}

.similar-card small {
    color: var(--muted);
    font-weight: 750;
}

.quote-page main {
    padding-top: 24px;
}

.quote-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 380px);
    gap: 20px;
    align-items: start;
}

.quote-main,
.quote-sidebar {
    min-width: 0;
}

.quote-heading,
.quote-summary,
.quote-company {
    border: 1px solid rgba(255, 255, 255, .82);
    border-radius: 24px;
    background: rgba(255, 255, 255, .92);
    box-shadow: var(--shadow);
}

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

.quote-heading h1,
.quote-summary h2 {
    margin: 0;
    color: var(--ink);
    font-weight: 950;
    letter-spacing: 0;
}

.quote-heading h1 {
    font-size: 2rem;
}

.quote-groups {
    display: grid;
    gap: 14px;
}

.quote-company {
    overflow: hidden;
}

.quote-company-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px;
    border-bottom: 1px solid var(--line);
    background: #fbfdff;
}

.quote-company-header-actions {
    display: inline-flex;
    flex: 0 0 auto;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
}

.quote-company-header span,
.quote-item-actions label {
    display: block;
    color: var(--muted);
    font-size: .76rem;
    font-weight: 850;
    text-transform: uppercase;
}

.quote-company-header strong {
    display: block;
    margin-top: 3px;
    color: var(--ink);
    font-size: 1.05rem;
    font-weight: 950;
}

.quote-company-header small {
    flex: 0 0 auto;
    color: #315072;
    font-weight: 850;
}

.quote-company-contact {
    min-height: 36px;
    border: 1px solid rgba(14, 165, 233, .28);
    border-radius: 999px;
    padding: 0 12px;
    font-size: .8rem;
    font-weight: 950;
    white-space: nowrap;
}

.quote-company-contact:hover,
.seller-profile-action.contact:hover {
    border-color: #7dd3fc;
    color: #0369a1 !important;
    background: #e0f2fe;
}

.quote-items {
    display: grid;
    gap: 12px;
    padding: 14px;
}

.quote-item {
    display: grid;
    grid-template-columns: 128px minmax(0, 1fr) 160px;
    gap: 14px;
    align-items: center;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #ffffff;
}

.quote-item-media {
    position: relative;
    min-height: 112px;
    overflow: hidden;
    display: grid;
    place-items: end start;
    padding: 10px;
    border-radius: 14px;
    background-size: 140% 140%;
}

.quote-item-media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.quote-item-media span {
    position: relative;
    z-index: 1;
    padding: 6px 9px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(15, 23, 42, .42);
    font-size: .72rem;
    font-weight: 850;
}

.quote-item-body a {
    display: block;
    color: var(--ink);
    font-size: 1rem;
    font-weight: 950;
    line-height: 1.3;
}

.quote-item-body p {
    margin: 7px 0 0;
    color: var(--muted);
    font-size: .86rem;
    font-weight: 650;
    line-height: 1.45;
}

.quote-item-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 10px;
}

.quote-item-meta span {
    padding: 6px 9px;
    border-radius: 999px;
    color: #315072;
    background: #f1f6fd;
    font-size: .73rem;
    font-weight: 800;
}

.quote-item-actions {
    display: grid;
    gap: 8px;
}

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

.qty-group-pro.compact {
    grid-template-columns: 36px 1fr 36px;
}

.qty-group-pro.compact input {
    width: 100%;
    min-width: 0;
    height: 38px;
}

.quote-view-product,
.quote-remove {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #fecaca;
    border-radius: 999px;
    font-size: .82rem;
    text-align: center;
    font-weight: 850;
}

.quote-view-product {
    border-color: rgba(37, 99, 235, .24);
    color: var(--primary-dark);
    background: #ffffff;
}

.quote-view-product:hover {
    border-color: #93c5fd;
    color: #1d4ed8;
    background: #eff6ff;
}

.quote-remove {
    color: #b91c1c;
    background: #fff5f5;
}

.quote-sidebar {
    position: sticky;
    top: 88px;
}

.quote-summary {
    display: grid;
    gap: 16px;
    padding: 18px;
}

.quote-summary h2 {
    font-size: 1.25rem;
}

.quote-observation textarea {
    min-height: 150px;
    resize: vertical;
}

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

    .quote-sidebar {
        position: static;
    }
}

@media (max-width: 760px) {
    .quote-heading,
    .quote-company-header {
        align-items: stretch;
        flex-direction: column;
    }

    .quote-item {
        grid-template-columns: 1fr;
    }

    .quote-item-media {
        min-height: 180px;
    }
}

.danger-action {
    min-height: 40px;
    width: fit-content;
    border: 1px solid #fecaca;
    border-radius: 13px;
    padding: 0 13px;
    color: #b91c1c;
    background: #fff5f5;
    font-size: .82rem;
    font-weight: 900;
    white-space: nowrap;
}

.danger-action:disabled,
.primary-action:disabled,
.outline-action:disabled {
    cursor: not-allowed;
    opacity: .55;
}

.quotes-page main {
    padding-top: 24px;
}

.quotes-header,
.quotes-toolbar,
.quote-card,
.quote-detail-modal {
    border: 1px solid rgba(255, 255, 255, .82);
    border-radius: 24px;
    background: rgba(255, 255, 255, .92);
    box-shadow: var(--shadow);
}

.quotes-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
    padding: 20px;
}

.quotes-header h1 {
    margin: 0;
    color: var(--ink);
    font-size: 2rem;
    font-weight: 950;
    letter-spacing: 0;
}

.quotes-toolbar {
    display: grid;
    gap: 12px;
    margin-bottom: 16px;
    padding: 16px;
}

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

.quote-card {
    overflow: hidden;
}

.quote-card-header {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid var(--line);
    background: #fbfdff;
}

.quote-company-logo {
    width: 56px;
    height: 56px;
    overflow: hidden;
    display: grid;
    place-items: center;
    border-radius: 16px;
    color: #ffffff;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    font-weight: 950;
}

.quote-company-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.quote-card-header h2 {
    margin: 0;
    overflow: hidden;
    color: var(--ink);
    font-size: 1rem;
    font-weight: 950;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.quote-card-header p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: .8rem;
    font-weight: 750;
}

.quote-status {
    padding: 7px 10px;
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 900;
}

.status-pending {
    color: #92400e;
    background: #fef3c7;
}

.status-approved {
    color: #15803d;
    background: #dcfce7;
}

.status-cancelled {
    color: #b91c1c;
    background: #fee2e2;
}

.status-neutral {
    color: #334155;
    background: #e2e8f0;
}

.quote-card-body {
    display: grid;
    gap: 12px;
    padding: 16px;
}

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

.quote-metrics div {
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #f8fafc;
}

.quote-metrics span {
    display: block;
    color: var(--muted);
    font-size: .7rem;
    font-weight: 850;
    text-transform: uppercase;
}

.quote-metrics strong {
    display: block;
    margin-top: 4px;
    color: var(--ink);
    font-weight: 950;
}

.quote-note {
    min-height: 74px;
    color: var(--muted);
    font-size: .88rem;
    font-weight: 650;
    line-height: 1.5;
}

.quote-card-actions,
.quote-detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0 16px 16px;
}

.quote-detail-actions {
    justify-content: flex-end;
    padding: 0;
    border-top: 1px solid var(--line);
    padding-top: 16px;
}

.quote-detail-modal {
    width: min(960px, 94vw);
    max-height: 88vh;
    overflow: auto;
    padding: 22px;
}

.detail-modal-heading {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
    padding-right: 44px;
}

.detail-modal-heading h2 {
    margin: 0;
    color: var(--ink);
    font-size: 1.7rem;
    font-weight: 950;
}

.detail-modal-heading p:not(.section-kicker) {
    margin: 7px 0 0;
    color: var(--muted);
    font-weight: 700;
}

.quote-detail-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin: 18px 0 12px;
}

.quote-detail-summary div {
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #f8fafc;
}

.quote-detail-summary span {
    display: block;
    color: var(--muted);
    font-size: .72rem;
    font-weight: 850;
    text-transform: uppercase;
}

.quote-detail-summary strong {
    display: block;
    margin-top: 5px;
    color: var(--ink);
    font-size: 1.05rem;
    font-weight: 950;
}

.quote-detail-note {
    margin-bottom: 14px;
    padding: 13px 14px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #ffffff;
}

.quote-detail-note strong {
    display: block;
    color: var(--ink);
    font-weight: 950;
}

.quote-detail-note p {
    margin: 5px 0 0;
    color: var(--muted);
    font-weight: 650;
    line-height: 1.45;
}

.approval-panel {
    display: grid;
    gap: 14px;
    margin: 16px 0;
    padding: 16px;
    border: 1px solid #bfdbfe;
    border-radius: 16px;
    background: #eff6ff;
}

.approval-panel.compact {
    border-color: var(--line);
    background: #f8fafc;
}

.approval-panel h3 {
    margin: 2px 0 0;
    color: var(--ink);
    font-size: 1.05rem;
    font-weight: 950;
}

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

.approval-grid label,
.approval-note {
    display: grid;
    gap: 6px;
    color: var(--muted);
    font-size: .76rem;
    font-weight: 900;
    text-transform: uppercase;
}

.approval-grid select,
.approval-grid input,
.approval-note textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #ffffff;
    color: var(--ink);
    font: inherit;
    font-size: .9rem;
    font-weight: 700;
    outline: none;
    padding: 11px 12px;
    text-transform: none;
}

.approval-note textarea {
    resize: vertical;
}

.compact-summary {
    margin: 0;
}

.modal-table-wrap {
    overflow: hidden;
    margin: 16px 0;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #ffffff;
}

.quote-table-scroll {
    overflow-x: auto;
}

.quote-detail-table {
    width: 100%;
    min-width: 760px;
    border-collapse: collapse;
}

.quote-detail-table th,
.quote-detail-table td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--line);
    color: var(--ink);
    font-size: .9rem;
}

.quote-detail-table th {
    color: var(--muted);
    background: #f8fafc;
    font-size: .74rem;
    font-weight: 950;
    text-transform: uppercase;
}

.quote-detail-table tbody tr:hover {
    background: #f8fafc;
}

.quote-detail-table tbody tr.row-total-missing td {
    background: #fff1f2;
    color: #7f1d1d;
}

.quote-detail-table tbody tr.row-total-missing:hover td {
    background: #ffe4e6;
}

.quote-total-row td {
    border-bottom: 0;
    background: #f0fdf4;
    color: #166534;
}

.invoice-workspace {
    display: grid;
    grid-template-columns: minmax(280px, 390px) minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.invoice-list-panel,
.invoice-detail-card {
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #ffffff;
    box-shadow: var(--shadow-light);
}

.invoice-list-panel {
    position: sticky;
    top: 96px;
    max-height: calc(100vh - 130px);
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    overflow: hidden;
}

.invoice-search {
    display: grid;
    gap: 9px;
    padding: 16px;
    border-bottom: 1px solid var(--line);
}

.invoice-search label {
    color: var(--primary);
    font-weight: 950;
}

.invoice-list {
    display: grid;
    gap: 8px;
    overflow-y: auto;
    padding: 12px;
}

.invoice-list-item {
    display: grid;
    gap: 4px;
    border: 1px solid transparent;
    border-radius: 14px;
    padding: 13px;
    color: #475569;
    background: #f8fafc;
    text-align: left;
    transition: background .18s ease, border-color .18s ease, transform .18s ease;
}

.invoice-list-item:hover,
.invoice-list-item.active {
    border-color: #bfdbfe;
    background: #eff6ff;
    transform: translateY(-1px);
}

.invoice-list-item.unread {
    border-color: rgba(220, 38, 38, .24);
    background: #fff7f7;
}

.invoice-list-title {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.post-sale-unread-badge {
    flex: 0 0 auto;
    border-radius: 999px;
    padding: 4px 8px;
    color: #b91c1c;
    background: #fee2e2;
    font-size: .68rem !important;
    font-weight: 950 !important;
    text-transform: uppercase;
}

.invoice-list-item span {
    font-size: .8rem;
    font-weight: 800;
}

.invoice-list-item strong,
.invoice-company {
    color: #0f172a;
    font-weight: 950;
}

.invoice-company {
    font-size: .94rem !important;
}

.invoice-detail-panel {
    min-width: 0;
}

.invoice-detail-card {
    display: grid;
    gap: 16px;
    padding: 20px;
}

.invoice-detail-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
}

.invoice-detail-title {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    min-width: 0;
}

.invoice-ticket-action {
    white-space: nowrap;
}

.invoice-detail-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.invoice-detail-header h2 {
    margin: 0;
    color: var(--ink);
    font-size: 1.28rem;
    font-weight: 950;
}

.invoice-detail-header p:not(.section-kicker) {
    margin: 3px 0 0;
    color: var(--muted);
    font-size: .9rem;
    font-weight: 800;
}

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

.invoice-info-grid div {
    display: grid;
    gap: 4px;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 12px;
    background: #f8fafc;
}

.invoice-info-grid span {
    color: var(--muted);
    font-size: .74rem;
    font-weight: 900;
    text-transform: uppercase;
}

.invoice-info-grid strong {
    color: var(--ink);
    font-size: .9rem;
    font-weight: 950;
}

.post-sale-workspace {
    align-items: start;
}

.post-sale-workspace .invoice-list-panel {
    grid-template-rows: auto auto minmax(0, 1fr);
}

.post-sale-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 12px 12px 0;
}

.post-sale-tabs button {
    min-height: 38px;
    border: 1px solid #dbe4f0;
    border-radius: 12px;
    color: #36506f;
    background: #ffffff;
    font-size: .8rem;
    font-weight: 900;
}

.post-sale-tabs button.active,
.post-sale-tabs button:hover {
    border-color: rgba(37, 99, 235, .34);
    color: var(--primary-dark);
    background: var(--primary-soft);
}

.post-sale-detail-card,
.post-sale-timeline,
.post-sale-reply,
.post-sale-create-form {
    display: grid;
    gap: 13px;
}

.post-sale-section-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.post-sale-section-header h3 {
    margin: 0;
    color: var(--ink);
    font-size: 1rem;
    font-weight: 950;
}

.post-sale-message {
    display: grid;
    gap: 8px;
    max-width: 86%;
    padding: 12px 14px;
    border: 1px solid #dbe4f0;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 8px 20px rgba(15, 23, 42, .06);
}

.post-sale-message-scroll {
    display: grid;
    gap: 10px;
    max-height: min(52vh, 520px);
    overflow-y: auto;
    padding: 2px 6px 2px 2px;
    overscroll-behavior: contain;
}

.post-sale-message.mine {
    justify-self: end;
    border-color: rgba(37, 99, 235, .18);
    background: #eff6ff;
}

.post-sale-message.theirs {
    justify-self: start;
}

.post-sale-message header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.post-sale-message strong {
    color: var(--ink);
    font-size: .88rem;
    font-weight: 950;
}

.post-sale-message time {
    color: var(--muted);
    font-size: .74rem;
    font-weight: 800;
}

.post-sale-message p {
    margin: 0;
    color: #334155;
    font-size: .92rem;
    font-weight: 650;
    line-height: 1.5;
    white-space: pre-wrap;
}

.post-sale-attachments,
.selected-files {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.post-sale-attachments a,
.selected-files span {
    padding: 7px 9px;
    border-radius: 999px;
    color: var(--primary-dark);
    background: #ffffff;
    font-size: .76rem;
    font-weight: 850;
}

.post-sale-reply label,
.post-sale-file-box {
    display: grid;
    gap: 7px;
    color: var(--ink);
    font-size: .82rem;
    font-weight: 900;
}

.post-sale-reply textarea,
.post-sale-create-form textarea {
    width: 100%;
    resize: vertical;
    border: 1px solid #dbe4f0;
    border-radius: 16px;
    padding: 11px 12px;
    color: var(--ink);
    outline: none;
    font-weight: 700;
}

.post-sale-reply textarea:focus,
.post-sale-create-form textarea:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, .12);
}

.post-sale-modal {
    max-width: 880px;
}

.post-sale-product-picker {
    display: grid;
    gap: 10px;
    padding: 12px;
    border: 1px solid #dbe4f0;
    border-radius: 18px;
    background: #f8fbff;
}

.post-sale-product-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) 92px;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border: 1px solid #e6edf5;
    border-radius: 14px;
    background: #ffffff;
}

.post-sale-product-row span {
    min-width: 0;
    display: grid;
    gap: 3px;
}

.post-sale-product-row strong,
.post-sale-product-row small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.post-sale-product-row strong {
    color: var(--ink);
    font-size: .88rem;
    font-weight: 950;
}

.post-sale-product-row small,
.post-sale-file-box small {
    color: var(--muted);
    font-size: .76rem;
    font-weight: 750;
}

.post-sale-quantity {
    min-height: 38px;
    width: 100%;
    border: 1px solid #dbe4f0;
    border-radius: 12px;
    padding: 0 10px;
    color: var(--ink);
    font-weight: 850;
}

.text-end {
    text-align: right;
}

.fw-semibold {
    font-weight: 850;
}

.fw-bold {
    font-weight: 950;
}

.advertising-page,
.advertising-detail-page {
    padding-top: 24px;
}

.advertising-header,
.advertising-detail-header {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: flex-start;
    margin-bottom: 18px;
}

.advertising-header h1 {
    max-width: 820px;
    margin: 0;
    color: var(--ink);
    font-size: 2rem;
    font-weight: 950;
    line-height: 1.08;
}

.advertising-header p:not(.section-kicker) {
    max-width: 760px;
    margin: 8px 0 0;
    color: var(--muted);
    font-weight: 700;
    line-height: 1.5;
}

.advertising-toolbar {
    display: grid;
    gap: 12px;
    margin-bottom: 14px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #ffffff;
}

.advertising-filters {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.advertising-filters label {
    display: grid;
    gap: 6px;
    color: var(--muted);
    font-size: .76rem;
    font-weight: 900;
    text-transform: uppercase;
}

.advertising-filters select {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 12px;
    color: var(--ink);
    background: #f8fafc;
    font: inherit;
    font-size: .9rem;
    font-weight: 750;
    padding: 10px 12px;
    text-transform: none;
}

.advertising-stats {
    margin-bottom: 16px;
}

.ads-group {
    margin-top: 18px;
}

.ads-group-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.ads-group-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 13px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--primary-dark);
    background: rgba(37, 99, 235, .08);
    font-size: .9rem;
    font-weight: 950;
}

.ads-group-count {
    color: var(--muted);
    font-size: .9rem;
    font-weight: 900;
}

.pill-alta {
    color: #0f766e;
    border-color: rgba(16, 185, 129, .22);
    background: rgba(16, 185, 129, .12);
}

.pill-media {
    color: #1d4ed8;
    border-color: rgba(59, 130, 246, .22);
    background: rgba(59, 130, 246, .12);
}

.pill-baja {
    color: #92400e;
    border-color: rgba(245, 158, 11, .24);
    background: rgba(245, 158, 11, .14);
}

.pill-ninguna {
    color: #374151;
    border-color: rgba(107, 114, 128, .18);
    background: rgba(107, 114, 128, .1);
}

.marketplace-ad-carousel {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 14px 34px rgba(15, 23, 42, .08);
}

.carousel-box {
    position: relative;
    overflow: hidden;
    min-height: 380px;
    cursor: pointer;
    background: #0b1220;
}

.carousel-box img {
    width: 100%;
    height: 380px;
    display: block;
    object-fit: contain;
    object-position: center;
}

.carousel-caption-custom {
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 14px;
    z-index: 4;
    padding: 12px 14px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 14px;
    color: #ffffff;
    background: rgba(15, 23, 42, .64);
    backdrop-filter: blur(8px);
}

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

.cc-brand,
.cc-title {
    font-weight: 950;
}

.cc-brand {
    font-size: .9rem;
}

.cc-title {
    margin-top: 3px;
    font-size: 1.1rem;
}

.cc-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.carousel-action {
    min-height: 36px;
    border: 0;
    border-radius: 12px;
    color: #ffffff;
    background: var(--primary);
    font: inherit;
    font-size: .84rem;
    font-weight: 900;
    padding: 8px 12px;
}

.carousel-action.danger {
    background: #dc2626;
}

.carousel-nav {
    position: absolute;
    top: 50%;
    z-index: 5;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .24);
    border-radius: 999px;
    color: #ffffff;
    background: rgba(15, 23, 42, .6);
    font-size: 2rem;
    line-height: 1;
    transform: translateY(-50%);
}

.carousel-nav.prev {
    left: 14px;
}

.carousel-nav.next {
    right: 14px;
}

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

.ad-card {
    overflow: hidden;
    display: grid;
    grid-template-rows: 180px auto;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, .07);
    transition: transform .15s ease, box-shadow .15s ease;
}

.ad-card:hover,
.thumb-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 38px rgba(15, 23, 42, .12);
}

.ad-card.featured {
    grid-column: span 3;
    grid-template-columns: 360px 1fr;
    grid-template-rows: auto;
    min-height: 260px;
}

.ad-card.featured .ad-media {
    height: 100%;
    min-height: 260px;
}

.ad-media,
.thumb-media {
    position: relative;
    overflow: hidden;
    background: #f1f5f9;
    cursor: pointer;
}

.ad-media img,
.thumb-media img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.ad-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 13px 13px 15px;
}

.ad-brand {
    color: var(--primary-dark);
    font-size: .95rem;
    font-weight: 950;
}

.ad-title {
    color: var(--ink);
    font-weight: 950;
    line-height: 1.2;
}

.ad-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.ad-desc {
    min-height: 3.8em;
    overflow: hidden;
    display: -webkit-box;
    color: var(--muted);
    font-size: .92rem;
    font-weight: 650;
    line-height: 1.45;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.ad-foot {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: auto;
    padding-top: 8px;
    border-top: 1px dashed var(--line);
}

.ad-date {
    color: var(--muted);
    font-size: .84rem;
    font-weight: 750;
}

.ad-actions {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px;
}

.sc-btn-success,
.sc-btn-info,
.sc-btn-secondary,
.sc-btn-danger,
.sc-btn-outline-primary {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    border-radius: 12px;
    font: inherit;
    font-size: .78rem;
    font-weight: 900;
    line-height: 1.1;
    padding: 8px 10px;
    text-decoration: none;
    transition: transform .12s ease, box-shadow .12s ease, filter .12s ease;
}

.sc-btn-success:hover,
.sc-btn-info:hover,
.sc-btn-secondary:hover,
.sc-btn-danger:hover,
.sc-btn-outline-primary:hover {
    filter: brightness(.97);
    transform: translateY(-1px);
}

.sc-btn-success {
    color: #ffffff;
    background: #16a34a;
}

.sc-btn-info {
    color: #ffffff;
    background: #0ea5e9;
}

.sc-btn-secondary {
    color: #ffffff;
    background: var(--primary-dark);
}

.sc-btn-danger {
    color: #ffffff;
    background: #dc2626;
}

.sc-btn-outline-primary {
    color: var(--primary-dark);
    border-color: rgba(37, 99, 235, .28);
    background: #ffffff;
}

.sc-btn-outline-primary.full {
    width: 100%;
    margin-top: 10px;
}

.ad-status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-top: 8px;
    border-top: 1px dashed var(--line);
}

.badge-soft {
    display: inline-flex;
    align-items: center;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: .74rem;
    font-weight: 900;
    line-height: 1;
    padding: 7px 10px;
    white-space: nowrap;
}

.soft-blue {
    color: #1d4ed8;
    border-color: rgba(59, 130, 246, .2);
    background: rgba(59, 130, 246, .12);
}

.soft-blue-strong {
    color: #ffffff;
    border-color: rgba(37, 99, 235, .25);
    background: var(--primary-dark);
}

.soft-lilac {
    color: #6b21a8;
    border-color: rgba(168, 85, 247, .22);
    background: rgba(168, 85, 247, .12);
}

.soft-orange {
    color: #92400e;
    border-color: rgba(245, 158, 11, .24);
    background: rgba(245, 158, 11, .14);
}

.soft-green {
    color: #065f46;
    border-color: rgba(16, 185, 129, .22);
    background: rgba(16, 185, 129, .14);
}

.thumbs-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
}

.thumb-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, .06);
    transition: transform .15s ease, box-shadow .15s ease;
}

.thumb-media {
    height: 110px;
}

.thumb-body {
    padding: 10px 10px 12px;
}

.thumb-title {
    min-height: 2.2em;
    overflow: hidden;
    display: -webkit-box;
    color: var(--ink);
    font-size: .85rem;
    font-weight: 950;
    line-height: 1.15;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.thumb-brand {
    overflow: hidden;
    margin-top: 5px;
    color: var(--primary-dark);
    font-size: .78rem;
    font-weight: 850;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.advertising-featured {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 14px;
    margin-bottom: 18px;
}

.ad-feature-card,
.ad-public-card,
.ad-detail-shell,
.ad-detail-grid article,
.related-ad-card {
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 14px 34px rgba(15, 23, 42, .07);
}

.ad-feature-card {
    overflow: hidden;
    cursor: pointer;
}

.ad-feature-card:first-child {
    display: grid;
    grid-template-columns: 1.08fr .92fr;
    grid-column: span 1;
}

.ad-feature-media,
.ad-public-media,
.ad-detail-media,
.related-ad-card > div {
    position: relative;
    overflow: hidden;
    background: #e2e8f0;
}

.ad-feature-media {
    height: 240px;
}

.ad-feature-card:first-child .ad-feature-media {
    height: 100%;
    min-height: 260px;
}

.ad-feature-media img,
.ad-public-media img,
.ad-detail-media img,
.related-ad-card img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.ad-feature-body,
.ad-public-body,
.ad-detail-info {
    display: grid;
    gap: 10px;
    padding: 16px;
}

.ad-feature-body h2,
.ad-public-body h2,
.ad-detail-info h1 {
    margin: 0;
    color: var(--ink);
    font-weight: 950;
    line-height: 1.14;
}

.ad-feature-body h2 {
    font-size: 1.15rem;
}

.ad-detail-info h1 {
    font-size: 2.2rem;
}

.ad-feature-body p,
.ad-public-body p,
.ad-detail-info p {
    margin: 0;
    color: var(--muted);
    font-weight: 650;
    line-height: 1.5;
}

.ad-feature-body strong,
.ad-public-body strong {
    color: var(--primary-dark);
    font-weight: 950;
}

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

.ad-public-card {
    overflow: hidden;
    display: grid;
    grid-template-rows: 210px auto;
}

.ad-public-media {
    cursor: pointer;
}

.ad-public-title,
.ad-public-meta,
.ad-public-actions,
.ad-detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.ad-public-meta span {
    padding: 6px 9px;
    border-radius: 999px;
    color: #475569;
    background: #f1f5f9;
    font-size: .76rem;
    font-weight: 850;
}

.ad-badge,
.ad-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    font: inherit;
    font-size: .78rem;
    font-weight: 900;
    text-decoration: none;
    white-space: nowrap;
}

.ad-badge {
    padding: 7px 10px;
}

.ad-badge.high {
    color: #065f46;
    background: #d1fae5;
}

.ad-badge.medium {
    color: #1d4ed8;
    background: #dbeafe;
}

.ad-badge.low {
    color: #92400e;
    background: #fef3c7;
}

.ad-badge.neutral {
    color: #334155;
    background: #e2e8f0;
}

.ad-action {
    min-height: 36px;
    padding: 8px 12px;
    color: #ffffff;
}

.ad-action.whatsapp {
    background: #16a34a;
}

.ad-action.messenger {
    background: #2563eb;
}

.ad-action.web {
    background: #475569;
}

.ad-action.detail-request {
    background: #dc2626;
}

.ad-placeholder {
    height: 100%;
    display: grid;
    place-items: center;
    color: var(--muted);
    font-weight: 950;
}

.ad-play {
    position: absolute;
    inset: 50% auto auto 50%;
    transform: translate(-50%, -50%);
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(15, 23, 42, .72);
    font-size: .78rem;
    font-weight: 950;
}

.ad-detail-shell {
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(360px, .9fr);
    margin-bottom: 18px;
}

.ad-detail-media {
    min-height: 440px;
    cursor: pointer;
}

.ad-detail-info {
    align-content: center;
    padding: 26px;
}

.ad-detail-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.ad-detail-grid article {
    padding: 16px;
}

.ad-detail-grid h2 {
    margin: 0 0 12px;
    color: var(--ink);
    font-size: 1rem;
    font-weight: 950;
}

.company-inline {
    display: flex;
    gap: 12px;
    align-items: center;
}

.company-inline-logo {
    width: 64px;
    height: 64px;
    overflow: hidden;
    display: grid;
    place-items: center;
    border-radius: 16px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary), var(--teal));
    font-weight: 950;
}

.company-inline-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.company-inline strong,
.company-inline span {
    display: block;
}

.company-inline strong {
    color: var(--ink);
    font-weight: 950;
}

.company-inline span {
    margin-top: 4px;
    color: var(--muted);
    font-weight: 700;
}

.ad-kv {
    display: grid;
    gap: 10px;
    margin: 0;
}

.ad-kv div {
    display: grid;
    gap: 2px;
}

.ad-kv dt {
    color: var(--muted);
    font-size: .74rem;
    font-weight: 900;
    text-transform: uppercase;
}

.ad-kv dd {
    margin: 0;
    color: var(--ink);
    font-weight: 800;
}

.related-ads-section {
    margin-top: 22px;
}

.related-ads-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.related-ad-card {
    overflow: hidden;
    cursor: pointer;
}

.related-ad-card > div {
    height: 145px;
}

.related-ad-card h3,
.related-ad-card p {
    margin: 0;
    padding: 0 12px;
}

.related-ad-card h3 {
    padding-top: 12px;
    color: var(--ink);
    font-size: .95rem;
    font-weight: 950;
    line-height: 1.25;
}

.related-ad-card p {
    padding-bottom: 12px;
    color: var(--muted);
    font-size: .84rem;
    font-weight: 750;
}

.media-preview-modal {
    position: relative;
    width: min(980px, 94vw);
    max-height: 88vh;
    overflow: hidden;
    padding: 14px;
    border-radius: 18px;
    background: #ffffff;
}

.media-preview-modal img,
.media-preview-modal iframe {
    width: 100%;
    height: min(72vh, 620px);
    border: 0;
    border-radius: 14px;
    object-fit: contain;
    background: #000000;
}

.floating-status {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 80;
    max-width: min(420px, calc(100vw - 32px));
}

.detail-products-list {
    display: grid;
    gap: 10px;
    margin: 18px 0;
}

.detail-product-row {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr) 120px;
    gap: 12px;
    align-items: center;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #ffffff;
}

.detail-product-media {
    width: 72px;
    height: 72px;
    overflow: hidden;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: #ffffff;
    background: linear-gradient(135deg, #0f766e, #2dd4bf);
    font-weight: 950;
}

.detail-product-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-product-row strong {
    color: var(--ink);
    font-weight: 950;
}

.detail-product-row p,
.detail-product-row small {
    margin: 4px 0 0;
    color: var(--muted);
    font-weight: 700;
}

.detail-qty {
    text-align: right;
}

.detail-qty span {
    display: block;
    color: var(--muted);
    font-size: .72rem;
    font-weight: 850;
    text-transform: uppercase;
}

.detail-qty strong {
    display: block;
    font-size: 1.35rem;
}

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

    .advertising-grid,
    .ads-grid,
    .ad-detail-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ad-card.featured {
        grid-column: span 2;
        grid-template-columns: 320px 1fr;
    }

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

    .advertising-featured,
    .ad-detail-shell {
        grid-template-columns: 1fr;
    }

    .ad-feature-card:first-child {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 760px) {
    .quotes-header {
        align-items: stretch;
        flex-direction: column;
    }

    .quote-card-actions,
    .quote-detail-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .detail-modal-heading {
        flex-direction: column;
        padding-right: 44px;
    }

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

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

    .advertising-header,
    .advertising-detail-header {
        flex-direction: column;
    }

    .advertising-filters,
    .advertising-grid,
    .ads-grid,
    .ad-detail-grid,
    .related-ads-grid,
    .thumbs-grid {
        grid-template-columns: 1fr;
    }

    .ad-card.featured {
        grid-column: auto;
        grid-template-columns: 1fr;
        grid-template-rows: 210px auto;
    }

    .carousel-box,
    .carousel-box img {
        height: 260px;
        min-height: 260px;
    }

    .carousel-caption-custom {
        position: static;
        border-radius: 0;
        background: #0f172a;
    }

    .carousel-nav {
        top: 130px;
    }

    .ad-detail-media {
        min-height: 280px;
    }

    .ad-detail-info h1 {
        font-size: 1.6rem;
    }

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

    .quote-card-header,
    .detail-product-row {
        grid-template-columns: 1fr;
    }

    .detail-qty {
        text-align: left;
    }
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(15, 23, 42, .42);
    backdrop-filter: blur(10px);
}

.auth-modal {
    width: min(520px, 100%);
    max-height: min(760px, calc(100vh - 40px));
    overflow: auto;
    position: relative;
    padding: 28px;
    border: 1px solid rgba(255, 255, 255, .82);
    border-radius: 28px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 28px 80px rgba(15, 23, 42, .24);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 14px;
    color: #42526b;
    background: #f1f6fd;
    font-size: .82rem;
    font-weight: 900;
}

.auth-modal-heading {
    padding-right: 44px;
}

.auth-modal-heading h2 {
    margin: 0;
    color: var(--ink);
    font-size: 1.7rem;
    font-weight: 950;
    line-height: 1.12;
}

.auth-modal-heading p:not(.section-kicker) {
    margin: 10px 0 18px;
    color: var(--muted);
    font-weight: 650;
    line-height: 1.55;
}

.segmented-control {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    padding: 5px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #f1f6fd;
}

.modal-tabs {
    margin-bottom: 16px;
}

.segmented-control button {
    min-height: 42px;
    border: 0;
    border-radius: 12px;
    color: var(--muted);
    background: transparent;
    font-weight: 900;
}

.segmented-control button.active {
    color: var(--primary-dark);
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(37, 99, 235, .12);
}

.auth-form {
    display: grid;
    gap: 14px;
}

.auth-form.compact {
    gap: 13px;
}

.field-grid {
    display: grid;
    gap: 12px;
}

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

.form-field {
    display: grid;
    gap: 7px;
    margin: 0;
    color: #334155;
    font-size: .84rem;
    font-weight: 850;
}

.form-field input,
.form-field select,
.selector-input {
    width: 100%;
    min-height: 50px;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 0 14px;
    color: var(--ink);
    background: #ffffff;
    outline: none;
}

.form-field input:focus,
.form-field select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, .12);
}

.form-field input:disabled {
    color: var(--muted);
    background: #f4f7fb;
}

.account-page {
    display: grid;
    gap: 18px;
}

.panel-state,
.account-hero-panel,
.account-card {
    border: 1px solid rgba(255, 255, 255, .78);
    border-radius: 24px;
    background: rgba(255, 255, 255, .88);
    box-shadow: var(--shadow-light);
}

.panel-state {
    display: grid;
    gap: 12px;
    min-height: 260px;
    align-content: center;
    padding: 34px;
}

.panel-state h1,
.account-hero-panel h1,
.account-card h2 {
    margin: 0;
    color: var(--ink);
    letter-spacing: 0;
}

.panel-state p:not(.section-kicker),
.account-hero-panel p:not(.section-kicker) {
    margin: 0;
    color: var(--muted);
    font-weight: 650;
}

.account-hero-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(420px, .9fr);
    gap: 24px;
    align-items: center;
    padding: 28px;
}

.account-hero-panel h1 {
    font-size: clamp(1.7rem, 4vw, 3rem);
    font-weight: 950;
}

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

.account-status-grid div {
    min-height: 76px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #f8fbff;
}

.account-status-grid span,
.data-list dt {
    display: block;
    color: var(--muted);
    font-size: .76rem;
    font-weight: 800;
    text-transform: uppercase;
}

.account-status-grid strong,
.data-list dd {
    display: block;
    margin: 7px 0 0;
    color: var(--ink);
    font-weight: 850;
}

.account-grid {
    display: grid;
    grid-template-columns: minmax(280px, .72fr) minmax(420px, 1fr);
    gap: 18px;
}

.account-settings-layout {
    display: grid;
    grid-template-columns: minmax(280px, 340px) minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.account-settings-sidebar {
    position: sticky;
    top: 96px;
    display: grid;
    gap: 14px;
}

.account-identity-panel,
.account-settings-panel {
    border: 1px solid rgba(255, 255, 255, .78);
    border-radius: 24px;
    background: rgba(255, 255, 255, .9);
    box-shadow: var(--shadow-light);
}

.account-identity-panel {
    display: grid;
    gap: 16px;
    padding: 20px;
}

.account-identity-panel h2 {
    margin: 0;
    color: var(--ink);
    font-size: 1.1rem;
    font-weight: 950;
}

.data-list.compact {
    gap: 0;
}

.data-list.compact div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
}

.data-list.compact dd {
    margin: 0;
    text-align: right;
}

.account-settings-nav {
    display: grid;
    gap: 9px;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, .78);
    border-radius: 22px;
    background: rgba(255, 255, 255, .82);
    box-shadow: var(--shadow-light);
}

.account-nav-item {
    min-height: 62px;
    display: grid;
    gap: 3px;
    border: 1px solid transparent;
    border-radius: 16px;
    padding: 11px 13px;
    color: #334155;
    background: transparent;
    text-align: left;
    transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}

.account-nav-item span,
.account-nav-item small {
    display: block;
}

.account-nav-item span {
    font-size: .94rem;
    font-weight: 950;
}

.account-nav-item small {
    color: #64748b;
    font-size: .76rem;
    font-weight: 850;
}

.account-nav-item:hover:not(:disabled),
.account-nav-item.active {
    border-color: #bfdbfe;
    color: #0d5fd8;
    background: #eff6ff;
    transform: translateY(-1px);
}

.account-nav-item.active small {
    color: #1d4ed8;
}

.account-nav-item.future {
    cursor: not-allowed;
    opacity: .58;
}

.account-settings-content {
    min-width: 0;
}

.account-settings-panel {
    min-height: 520px;
}

.account-card {
    padding: 22px;
}

.account-card.wide {
    grid-column: 1 / -1;
}

.account-card-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

.account-card h2 {
    font-size: 1.25rem;
    font-weight: 900;
}

.data-list {
    display: grid;
    gap: 10px;
    margin: 0;
}

.data-list div {
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
}

.data-list div:last-child {
    border-bottom: 0;
}

.account-form {
    display: grid;
    gap: 14px;
}

.selector-input {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    text-align: left;
}

.selector-input span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.selector-input strong {
    flex: 0 0 auto;
    border-radius: 999px;
    padding: 7px 10px;
    color: #ffffff;
    background: var(--primary);
    font-size: .76rem;
    font-weight: 900;
}

.location-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.location-actions span {
    color: var(--muted);
    font-size: .88rem;
    font-weight: 700;
}

.map-panel {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #eef4fb;
}

#mapaCliente {
    width: 100%;
    min-height: 340px;
}

.market-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 45;
    background: rgba(15, 23, 42, .46);
    backdrop-filter: blur(4px);
}

.market-select-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    z-index: 55;
    width: min(820px, calc(100% - 32px));
    max-height: min(760px, calc(100vh - 36px));
    overflow: hidden;
    transform: translate(-50%, -50%);
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 24px 70px rgba(15, 23, 42, .24);
}

.market-select-modal header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 20px;
    color: #ffffff;
    background: var(--ink);
}

.market-select-modal h2,
.market-select-modal p {
    margin: 0;
}

.market-select-modal h2 {
    font-size: 1.1rem;
    font-weight: 900;
}

.market-select-modal p {
    margin-top: 4px;
    color: rgba(255, 255, 255, .72);
    font-size: .88rem;
    font-weight: 650;
}

.market-select-modal header button {
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 12px;
    color: #ffffff;
    background: rgba(255, 255, 255, .14);
    font-weight: 900;
}

.select-modal-body {
    display: grid;
    gap: 14px;
    padding: 18px;
}

.select-table-wrap {
    max-height: 430px;
    overflow: auto;
    border: 1px solid var(--line);
    border-radius: 16px;
}

.select-table {
    width: 100%;
    border-collapse: collapse;
}

.select-table th,
.select-table td {
    padding: 13px 14px;
    border-bottom: 1px solid var(--line);
    text-align: left;
}

.select-table th {
    position: sticky;
    top: 0;
    z-index: 1;
    color: var(--muted);
    background: #f8fbff;
    font-size: .76rem;
    font-weight: 900;
    text-transform: uppercase;
}

.select-table td {
    color: var(--text);
    font-weight: 700;
}

.select-table tbody tr {
    cursor: pointer;
}

.select-table tbody tr:hover,
.select-table tbody tr.selected {
    background: var(--primary-soft);
}

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

.terms-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    color: var(--muted);
    font-size: .88rem;
    font-weight: 750;
    line-height: 1.35;
}

.terms-row input {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    accent-color: var(--primary);
}

.status-message,
.validation-summary-errors {
    margin-bottom: 14px;
    padding: 12px 14px;
    border: 1px solid rgba(183, 121, 31, .22);
    border-radius: 16px;
    color: var(--amber);
    background: var(--amber-soft);
    font-size: .9rem;
    font-weight: 750;
}

.status-message.success {
    color: var(--success);
    background: #eaf8f0;
    border-color: rgba(15, 138, 95, .2);
}

.status-message.error,
.validation-summary-errors {
    color: var(--error);
    background: var(--error-soft);
    border-color: rgba(180, 35, 24, .18);
}

.validation-summary-errors ul {
    margin: 0;
    padding-left: 18px;
}

.empty-state {
    min-height: calc(100vh - 120px);
    display: grid;
    place-items: center;
    align-content: center;
    gap: 18px;
    text-align: center;
}

.empty-state p {
    max-width: 460px;
    margin: 0;
    color: var(--muted);
    font-weight: 650;
    line-height: 1.6;
}

.marketplace-loader {
    min-height: 260px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 14px;
    padding: 34px 22px;
    border: 1px solid #dbe4f0;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(15, 23, 42, .06);
    text-align: center;
}

.marketplace-loader.compact {
    min-height: 170px;
    padding: 24px 18px;
}

.marketplace-loader.boot-loader {
    min-height: 100vh;
    border: 0;
    border-radius: 0;
    background:
        radial-gradient(circle at 20% 12%, rgba(22, 163, 74, .08), transparent 32%),
        linear-gradient(180deg, #f8fbff 0%, #eef5ff 100%);
    box-shadow: none;
}

.marketplace-loader h2 {
    margin: 0;
    color: #0f172a;
    font-size: 1.2rem;
    font-weight: 950;
    letter-spacing: 0;
}

.marketplace-loader p {
    max-width: 460px;
    margin: 0;
    color: #64748b;
    font-weight: 650;
    line-height: 1.55;
}

.cart-loader-track {
    width: min(240px, 72vw);
    height: 72px;
    position: relative;
    overflow: hidden;
    border: 1px solid #dbe4f0;
    border-radius: 999px;
    background: linear-gradient(180deg, #f8fafc 0%, #eef6ff 100%);
}

.cart-loader-track::after {
    content: "";
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 18px;
    height: 3px;
    border-radius: 999px;
    background: repeating-linear-gradient(90deg, rgba(37, 99, 235, .18) 0 16px, transparent 16px 26px);
}

.cart-loader {
    width: 58px;
    height: 44px;
    position: absolute;
    left: 0;
    top: 13px;
    animation: cartDrive 1.55s ease-in-out infinite;
}

.cart-loader-basket {
    position: absolute;
    left: 10px;
    top: 12px;
    width: 38px;
    height: 21px;
    border: 3px solid #2563eb;
    border-top: 0;
    border-radius: 3px 3px 8px 8px;
    transform: skewX(-9deg);
    background: linear-gradient(135deg, rgba(37, 99, 235, .16), rgba(34, 197, 94, .18));
}

.cart-loader-basket::before,
.cart-loader-basket::after {
    content: "";
    position: absolute;
    top: 3px;
    bottom: 4px;
    width: 3px;
    border-radius: 999px;
    background: rgba(37, 99, 235, .7);
}

.cart-loader-basket::before {
    left: 10px;
}

.cart-loader-basket::after {
    right: 10px;
}

.cart-loader-handle {
    position: absolute;
    left: 4px;
    top: 6px;
    width: 20px;
    height: 14px;
    border-left: 3px solid #2563eb;
    border-top: 3px solid #2563eb;
    border-radius: 12px 0 0 0;
    transform: rotate(-10deg);
}

.cart-loader-wheel {
    position: absolute;
    bottom: 1px;
    width: 11px;
    height: 11px;
    border: 3px solid #0f172a;
    border-radius: 999px;
    background: #ffffff;
    animation: cartWheel 1.55s linear infinite;
}

.cart-loader-wheel-left {
    left: 17px;
}

.cart-loader-wheel-right {
    right: 8px;
}

#blazor-error-ui {
    display: none;
}

.catalog-page {
    width: min(1600px, calc(100% - 32px));
}

.catalog-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, .78fr);
    gap: 16px;
    margin-bottom: 18px;
    padding: 16px;
    border: 1px solid #dbe4f0;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(15, 23, 42, .06);
}

.toolbar-actions {
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
    gap: 10px;
}

.toolbar-button,
.cart-button {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 999px;
    padding: 0 18px;
    font-weight: 850;
}

.toolbar-button {
    border: 1px solid #dbe4f0;
    color: #0f172a;
    background: #ffffff;
    box-shadow: 0 8px 20px rgba(15, 23, 42, .06);
}

.toolbar-button:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

.cart-button {
    border: 0;
    color: #ffffff;
    background: linear-gradient(135deg, #16a34a, #22c55e);
    box-shadow: 0 12px 24px rgba(22, 163, 74, .2);
}

.cart-button span,
.floating-cart-pro span {
    min-width: 26px;
    height: 26px;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    color: #166534;
    background: #ffffff;
    font-size: .78rem;
    font-weight: 950;
}

.catalog-search {
    display: grid;
    gap: 8px;
}

.catalog-search label {
    color: #012970;
    font-size: .94rem;
    font-weight: 900;
}

.search-pro {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 48px;
    border: 1px solid #dbe4f0;
    border-radius: 999px;
    background: #ffffff;
}

.search-pro .search-icon {
    margin-left: 16px;
}

.search-pro input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: none;
    padding: 0 16px;
    color: var(--ink);
    background: transparent;
    font-weight: 650;
}

.catalog-stats {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.catalog-stats span {
    padding: 8px 13px;
    border: 1px solid #dbeafe;
    border-radius: 999px;
    color: #1d4ed8;
    background: #eff6ff;
    font-size: .84rem;
    font-weight: 850;
}

.chips-row {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.chip-pro {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 12px;
    border: 1px solid #dbeafe;
    border-radius: 999px;
    color: #1d4ed8;
    background: #eff6ff;
    font-size: .78rem;
    font-weight: 850;
}

.chip-pro button {
    border: 0;
    padding: 0;
    color: #64748b;
    background: transparent;
    font-size: .72rem;
    font-weight: 950;
}

.catalog-layout {
    display: grid;
    grid-template-columns: 310px minmax(0, 1fr);
    gap: 20px;
    align-items: start;
}

.catalog-layout.filters-collapsed {
    grid-template-columns: minmax(0, 1fr);
}

.catalog-layout.filters-collapsed .products-panel {
    grid-column: 1 / -1;
}

.filters-panel {
    position: sticky;
    top: 96px;
    overflow: hidden;
    border: 1px solid #dbe4f0;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 12px 35px rgba(15, 23, 42, .08);
}

.filters-hidden {
    display: none;
}

.filters-header {
    padding: 16px;
    border-bottom: 1px solid #eef2f7;
    background: linear-gradient(180deg, #ffffff, #f8fbff);
}

.filters-header h2 {
    margin: 0;
    color: #0f172a;
    font-size: 1rem;
    font-weight: 950;
}

.filters-header p {
    margin: 4px 0 0;
    color: #64748b;
    font-size: .85rem;
    font-weight: 650;
    line-height: 1.4;
}

.filters-body {
    display: grid;
    gap: 13px;
    padding: 16px;
}

.filter-card {
    overflow: hidden;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    background: #f8fbff;
}

.filter-card summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 13px 15px;
    color: #012970;
    cursor: pointer;
    font-weight: 900;
    list-style: none;
}

.filter-card summary::-webkit-details-marker {
    display: none;
}

.filter-count {
    min-width: 24px;
    height: 24px;
    display: inline-grid;
    place-items: center;
    border: 1px solid #bfdbfe;
    border-radius: 999px;
    color: #1d4ed8;
    background: #dbeafe;
    font-size: .75rem;
    font-weight: 950;
}

.filter-search-box {
    position: relative;
    padding: 10px 15px;
    border-top: 1px solid #e2e8f0;
    background: #ffffff;
}

.filter-search-box .search-icon {
    position: absolute;
    left: 27px;
    top: 50%;
    width: 13px;
    height: 13px;
    transform: translateY(-50%);
    border: 2px solid #94a3b8;
    border-radius: 999px;
    pointer-events: none;
}

.filter-search-box .search-icon::after {
    content: "";
    position: absolute;
    right: -5px;
    bottom: -4px;
    width: 7px;
    height: 2px;
    border-radius: 999px;
    background: #94a3b8;
    transform: rotate(45deg);
}

.filter-search-box input {
    width: 100%;
    min-height: 38px;
    border: 1px solid #d9e3ef;
    border-radius: 12px;
    padding: 0 12px 0 36px;
    color: #0f172a;
    background: #f8fbff;
    font-size: .84rem;
    font-weight: 750;
    outline: none;
}

.filter-search-box input:focus {
    border-color: #93c5fd;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, .12);
    background: #ffffff;
}

.filter-options {
    max-height: 240px;
    overflow-y: auto;
    padding: 0 15px 12px;
    border-top: 1px solid #e2e8f0;
    background: #ffffff;
}

.filter-search-box + .filter-options {
    border-top: 0;
}

.filter-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 9px 0;
    border-bottom: 1px dashed #edf2f7;
    color: #334155;
    font-size: .92rem;
    font-weight: 650;
}

.filter-check:last-child {
    border-bottom: 0;
}

.filter-check input {
    margin-top: 3px;
    accent-color: var(--primary);
}

.filter-empty {
    padding: 14px 0 4px;
    color: #64748b;
    font-size: .83rem;
    font-weight: 800;
    text-align: center;
}

.products-panel {
    min-width: 0;
}

.products-control {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
    padding: 16px;
    border: 1px solid #dbe4f0;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(15, 23, 42, .06);
}

.products-control h1 {
    margin: 0;
    color: #0f172a;
    font-size: 1.45rem;
    font-weight: 950;
    line-height: 1.1;
}

.page-size-control {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #012970;
    font-weight: 850;
}

.page-size-control select {
    min-height: 40px;
    border: 1px solid #dbe4f0;
    border-radius: 12px;
    padding: 0 10px;
    color: #012970;
    background: #ffffff;
    font-weight: 850;
}

.products-grid-pro {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.product-card-pro {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 100%;
    border: 1px solid #dbe4f0;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 12px 35px rgba(15, 23, 42, .08);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.product-card-pro:hover {
    transform: translateY(-5px);
    border-color: #bfdbfe;
    box-shadow: 0 20px 44px rgba(15, 23, 42, .13);
}

.product-card-pro:has(.modal-backdrop),
.product-card-pro:has(.auth-modal) {
    transform: none !important;
    z-index: 50;
}

.product-media-pro {
    position: relative;
    min-height: 190px;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    padding: 14px;
    border-bottom: 1px solid #e2e8f0;
    background-size: 140% 140%;
    overflow: hidden;
}

.product-media-pro img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-media-pro::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, .05), rgba(15, 23, 42, .32));
    pointer-events: none;
}

.product-company-badge {
    position: absolute;
    z-index: 1;
    top: 12px;
    right: 12px;
    max-width: 72%;
    overflow: hidden;
    padding: 7px 11px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(15, 23, 42, .82);
    backdrop-filter: blur(6px);
    font-size: .74rem;
    font-weight: 850;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.product-category-badge {
    position: relative;
    z-index: 1;
    padding: 7px 11px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(15, 23, 42, .28);
    backdrop-filter: blur(8px);
    font-size: .75rem;
    font-weight: 850;
}

.product-quote-badge {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    max-width: 92%;
    padding: 7px 11px;
    border: 1px solid #bbf7d0;
    border-radius: 999px;
    color: #166534;
    background: #f0fdf4;
    box-shadow: 0 10px 24px rgba(22, 101, 52, .16);
    font-size: .75rem;
    font-weight: 950;
}

.product-quote-badge strong {
    min-width: 22px;
    height: 22px;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    color: #ffffff;
    background: #16a34a;
    font-size: .72rem;
}

.product-body-pro {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 16px;
}

.product-title-pro {
    display: block;
    min-height: 42px;
    color: #0f172a;
    font-size: 1rem;
    font-weight: 950;
    line-height: 1.3;
}

.product-meta-stack {
    display: grid;
    gap: 8px;
    margin-top: 12px;
}

.product-code-pro,
.product-brand-pro {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 11px;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: #f8fafc;
}

.product-code-pro span,
.product-brand-pro span {
    color: #64748b;
    font-size: .72rem;
    font-weight: 900;
    text-transform: uppercase;
}

.product-code-pro strong,
.product-brand-pro strong {
    min-width: 0;
    color: #0f172a;
    font-size: .86rem;
    font-weight: 900;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.product-cart-status {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 9px;
    border: 1px solid #bbf7d0;
    border-radius: 999px;
    padding: 6px 10px;
    color: #166534;
    background: #f0fdf4;
    font-size: .78rem;
    font-weight: 950;
}

.product-cart-status span {
    min-width: 22px;
    height: 22px;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    color: #ffffff;
    background: #16a34a;
    font-size: .72rem;
}

.product-cart-status.detail {
    width: 100%;
    justify-content: space-between;
    border-radius: 16px;
    padding: 11px 13px;
    font-size: .9rem;
}

.product-info-grid {
    display: grid;
    gap: 9px;
}

.info-box-pro {
    padding: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    background: #f8fafc;
}

.info-label-pro {
    margin-bottom: 4px;
    color: #64748b;
    font-size: .72rem;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

.info-value-pro {
    color: #0f172a;
    font-size: .9rem;
    font-weight: 850;
    line-height: 1.3;
}

.product-actions-stack {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: auto;
}

.product-rating-widget {
    display: grid;
    gap: 10px;
    margin-top: 14px;
    padding: 13px;
    border: 1px solid #e4edf7;
    border-radius: 16px;
    background: #f9fcff;
}

.product-rating-widget.compact {
    gap: 8px;
    margin-top: 10px;
    padding: 10px;
    border-radius: 14px;
}

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

.product-rating-stars {
    display: flex;
    gap: 2px;
    color: #d7e0ea;
    font-size: 1.1rem;
    line-height: 1;
}

.product-rating-stars .filled {
    color: #f5a524;
    text-shadow: 0 3px 8px rgba(245, 165, 36, .18);
}

.product-rating-copy {
    min-width: 0;
    text-align: right;
}

.product-rating-copy strong,
.product-rating-copy span {
    display: block;
}

.product-rating-copy strong {
    color: var(--ink);
    font-size: .92rem;
    font-weight: 950;
}

.product-rating-copy span {
    color: var(--muted);
    font-size: .72rem;
    font-weight: 800;
}

.product-rating-vote {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.product-rating-vote-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 34px;
    padding: 0 10px;
    border: 1px solid #d9e3ef;
    border-radius: 999px;
    background: #ffffff;
    color: #365575;
    font-size: .78rem;
    font-weight: 900;
    transition: .18s ease;
}

.product-rating-vote-button:hover:not(:disabled),
.product-rating-vote-button.selected {
    border-color: rgba(13, 110, 253, .28);
    background: #eef6ff;
    color: #0d5fd8;
    transform: translateY(-1px);
}

.product-rating-vote-button.negative:hover:not(:disabled),
.product-rating-vote-button.negative.selected {
    border-color: rgba(180, 35, 24, .18);
    background: #fff1f0;
    color: var(--error);
}

.product-rating-vote-button:disabled {
    cursor: wait;
    opacity: .7;
}

.product-rating-status {
    margin: 0;
    padding: 9px 10px;
    border-radius: 12px;
    font-size: .78rem;
}

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

.btn-application-pro {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(37, 99, 235, .24);
    border-radius: 999px;
    color: var(--primary-dark);
    background: #ffffff;
    font-size: .86rem;
    font-weight: 900;
    text-align: center;
}

.btn-application-pro:hover,
.product-title-pro:hover {
    color: #1d4ed8;
    border-color: #93c5fd;
    background: #eff6ff;
}

.qty-block-pro {
    padding: 13px;
    border: 1px solid #dbe4f0;
    border-radius: 18px;
    background: #f8fbff;
}

.qty-label-pro {
    margin-bottom: 9px;
    color: #012970;
    font-size: .9rem;
    font-weight: 900;
}

.qty-group-pro {
    display: grid;
    grid-template-columns: 42px 1fr 42px;
    overflow: hidden;
    margin-bottom: 10px;
    border: 1px solid #bfdbfe;
    border-radius: 999px;
    background: #ffffff;
}

.qty-group-pro button {
    height: 42px;
    border: 0;
    color: #1d4ed8;
    background: #eff6ff;
    font-weight: 950;
}

.qty-group-pro input {
    width: 100%;
    border: 0;
    color: #012970;
    background: transparent;
    text-align: center;
    font-weight: 900;
}

.btn-add-cart-pro {
    width: 100%;
    min-height: 44px;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, #16a34a, #22c55e);
    font-weight: 900;
}

.empty-state-pro,
.pagination-panel {
    border: 1px solid #dbe4f0;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(15, 23, 42, .06);
}

.empty-state-pro {
    padding: 32px 20px;
    text-align: center;
}

.empty-state-pro h2 {
    margin: 0 0 8px;
    color: #0f172a;
    font-size: 1.2rem;
    font-weight: 950;
}

.empty-state-pro p {
    margin: 0;
    color: #64748b;
    font-weight: 650;
}

.pagination-panel {
    display: grid;
    gap: 12px;
    margin-top: 16px;
    padding: 16px;
    color: #012970;
    text-align: center;
    font-weight: 850;
}

.pagination-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.pagination-actions button,
.pagination-actions span {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 0 12px;
    font-size: .84rem;
    font-weight: 850;
}

.pagination-actions button {
    border: 1px solid rgba(37, 99, 235, .24);
    color: var(--primary-dark);
    background: #ffffff;
}

.pagination-actions span {
    color: #ffffff;
    background: var(--primary);
}

.floating-actions-pro {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 20;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.floating-cart-pro,
.floating-clear-pro {
    border: 0;
    box-shadow: 0 16px 38px rgba(15, 23, 42, .18);
    font-weight: 950;
}

.floating-cart-pro {
    min-height: 54px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border-radius: 999px;
    padding: 0 18px;
    color: #ffffff;
    background: linear-gradient(135deg, #16a34a, #22c55e);
}

.floating-clear-pro {
    width: 46px;
    height: 46px;
    align-self: flex-end;
    border-radius: 16px;
    color: #ffffff;
    background: #ef4444;
    font-size: .78rem;
}

.product-showcase-page {
    width: min(1600px, calc(100% - 32px));
}

.product-showcase-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, .78fr);
    gap: 18px;
    margin-bottom: 20px;
    padding: 22px;
    border: 1px solid #dbe4f0;
    border-radius: 26px;
    background:
        linear-gradient(135deg, rgba(239, 246, 255, .92), rgba(240, 253, 244, .86)),
        #ffffff;
    box-shadow: 0 16px 45px rgba(15, 23, 42, .08);
}

.showcase-hero-copy {
    display: grid;
    align-content: center;
    gap: 10px;
}

.showcase-hero-copy h1 {
    margin: 0;
    color: #0f172a;
    font-size: clamp(2rem, 3vw, 3.4rem);
    font-weight: 950;
    line-height: 1;
}

.showcase-hero-copy p:not(.section-kicker) {
    max-width: 780px;
    margin: 0;
    color: #475569;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.55;
}

.showcase-search-panel {
    display: grid;
    align-content: center;
    gap: 12px;
    padding: 16px;
    border: 1px solid #dbe4f0;
    border-radius: 22px;
    background: rgba(255, 255, 255, .86);
    box-shadow: 0 12px 30px rgba(15, 23, 42, .07);
}

.showcase-search-panel label {
    color: #012970;
    font-size: .92rem;
    font-weight: 950;
}

.showcase-search {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    min-height: 50px;
    border: 1px solid #dbe4f0;
    border-radius: 999px;
    background: #ffffff;
}

.showcase-search .search-icon {
    margin-left: 16px;
}

.showcase-search input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: none;
    padding: 0 12px;
    color: #0f172a;
    background: transparent;
    font-weight: 750;
}

.showcase-search button,
.showcase-quick-actions button,
.category-rail-header button {
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: #2563eb;
    font-weight: 900;
}

.showcase-search button {
    min-height: 42px;
    margin-right: 4px;
    padding: 0 18px;
}

.showcase-quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.showcase-quick-actions button {
    min-height: 38px;
    padding: 0 13px;
    color: #1d4ed8;
    background: #eff6ff;
}

.showcase-section {
    margin-top: 20px;
}

.showcase-section-header,
.category-rail-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
}

.showcase-section-header h2,
.category-rail-header h3 {
    margin: 0;
    color: #0f172a;
    font-weight: 950;
    line-height: 1.15;
}

.showcase-section-header h2 {
    font-size: 1.45rem;
}

.category-rail-header h3 {
    font-size: 1.08rem;
}

.showcase-product-rail {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(280px, 340px);
    gap: 16px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    padding: 2px 2px 14px;
    scroll-snap-type: inline mandatory;
}

.showcase-product-rail > .product-card-pro {
    scroll-snap-align: start;
}

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

.recommended-category-card {
    display: grid;
    gap: 7px;
    min-height: 88px;
    border: 1px solid #dbe4f0;
    border-radius: 18px;
    padding: 14px;
    color: #0f172a;
    background: #ffffff;
    box-shadow: 0 10px 26px rgba(15, 23, 42, .06);
    text-align: left;
}

.recommended-category-card span {
    font-size: .96rem;
    font-weight: 950;
}

.recommended-category-card strong {
    color: #2563eb;
    font-size: .82rem;
    font-weight: 900;
}

.recommended-category-card:hover {
    border-color: #bfdbfe;
    background: #f8fbff;
}

.category-rail {
    margin-top: 18px;
}

.category-rail-header button {
    min-height: 36px;
    padding: 0 13px;
    background: #0f172a;
}

.empty-state-pro.compact {
    padding: 22px 16px;
}

.amazon-home-page {
    width: min(1680px, calc(100% - 28px));
    padding-top: 6px;
}

.amazon-home-page main {
    display: grid;
    gap: 18px;
}

.amazon-home-page .product-showcase-hero {
    margin-bottom: 2px;
}

.amazon-hero-band {
    min-height: 230px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(420px, .72fr);
    gap: 18px;
    align-items: start;
    padding: 22px;
    color: #ffffff;
    background:
        linear-gradient(135deg, rgba(15, 23, 42, .88), rgba(37, 99, 235, .62)),
        linear-gradient(45deg, #0f172a, #2563eb 48%, #16a34a);
    border-radius: 0 0 22px 22px;
    box-shadow: 0 20px 46px rgba(15, 23, 42, .16);
}

.amazon-hero-band .section-kicker {
    color: #bfdbfe;
}

.amazon-hero-band h1 {
    max-width: 820px;
    margin: 0;
    color: #ffffff;
    font-size: clamp(2rem, 3vw, 3.6rem);
    font-weight: 950;
    line-height: 1;
}

.amazon-search-shell {
    display: grid;
    gap: 10px;
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 18px;
    background: rgba(255, 255, 255, .14);
    backdrop-filter: blur(10px);
}

.amazon-search-shell label {
    color: #ffffff;
    font-size: .9rem;
    font-weight: 950;
}

.amazon-search-box {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    min-height: 48px;
    overflow: hidden;
    border-radius: 999px;
    background: #ffffff;
}

.amazon-search-box input {
    min-width: 0;
    border: 0;
    outline: 0;
    padding: 0 18px;
    color: #0f172a;
    font-weight: 800;
}

.amazon-search-box button {
    min-width: 118px;
    border: 0;
    color: #0f172a;
    background: #facc15;
    font-weight: 950;
}

.amazon-card-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-top: 0;
    position: relative;
    z-index: 1;
}

.amazon-card-grid.featured {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.amazon-card-grid.lower {
    margin-top: 0;
}

.amazon-quadrant-card {
    min-height: 338px;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    gap: 12px;
    padding: 18px;
    border: 1px solid #e2e8f0;
    border-radius: 2px;
    background: #ffffff;
    box-shadow: 0 8px 18px rgba(15, 23, 42, .08);
}

.amazon-quadrant-card h2 {
    margin: 0;
    color: #0f172a;
    font-size: 1.2rem;
    font-weight: 950;
    line-height: 1.18;
}

.amazon-mini-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 14px;
    align-content: start;
}

.amazon-mini-tile {
    display: grid;
    gap: 6px;
    min-width: 0;
    border: 0;
    padding: 0;
    color: #334155;
    background: transparent;
    text-align: left;
    font-size: .78rem;
    font-weight: 750;
    line-height: 1.22;
}

.amazon-mini-tile:hover {
    color: #0d5fd8;
}

.amazon-mini-tile.as-button {
    cursor: pointer;
}

.amazon-thumb {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 1.24 / 1;
    overflow: hidden;
    background-size: 150% 150%;
}

.amazon-thumb::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, .08);
}

.amazon-thumb img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.amazon-mini-tile span:not(.amazon-thumb) {
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.amazon-card-link {
    width: fit-content;
    border: 0;
    padding: 0;
    color: #0d5fd8;
    background: transparent;
    font-size: .85rem;
    font-weight: 850;
    text-align: left;
}

.amazon-card-link:hover,
.amazon-rail-header a:hover {
    color: #b45309;
}

.amazon-wide-rail {
    padding: 18px 20px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 2px;
    background: #ffffff;
    box-shadow: 0 8px 18px rgba(15, 23, 42, .07);
}

.amazon-rail-header {
    display: flex;
    align-items: baseline;
    gap: 14px;
    margin-bottom: 10px;
}

.amazon-rail-header h2 {
    margin: 0;
    color: #0f172a;
    font-size: 1.2rem;
    font-weight: 950;
}

.amazon-rail-header a {
    color: #0d5fd8;
    font-size: .85rem;
    font-weight: 850;
}

.amazon-product-strip {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 16px;
    overflow: visible;
    padding: 4px 0 2px;
}

.amazon-strip-product {
    display: grid;
    gap: 8px;
    min-width: 0;
    color: #334155;
}

.amazon-strip-product .amazon-thumb {
    aspect-ratio: 1.45 / 1;
}

.amazon-strip-product span:not(.amazon-thumb) {
    display: -webkit-box;
    overflow: hidden;
    color: #0f172a;
    font-size: .82rem;
    font-weight: 850;
    line-height: 1.25;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.amazon-strip-product:hover span:not(.amazon-thumb) {
    color: #0d5fd8;
}

.marketplace-chat-dock {
    width: min(420px, calc(100vw - 24px));
    max-height: min(680px, calc(100vh - 96px));
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 1200;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    overflow: hidden;
    border: 1px solid rgba(15, 23, 42, .12);
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 28px 70px rgba(15, 23, 42, .22);
}

.marketplace-chat-dock.minimized {
    grid-template-rows: auto;
}

.marketplace-chat-header {
    min-height: 72px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    color: #ffffff;
    background: linear-gradient(135deg, #0f172a 0%, #2563eb 68%, #16a34a 100%);
}

.chat-company-avatar {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, .75);
    border-radius: 16px;
    background: rgba(255, 255, 255, .16);
    font-weight: 950;
}

.chat-company-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.chat-company-title {
    min-width: 0;
    display: grid;
    gap: 2px;
}

.chat-company-title strong,
.chat-company-title span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.chat-company-title strong {
    font-size: .98rem;
    font-weight: 950;
}

.chat-company-title span {
    color: rgba(255, 255, 255, .8);
    font-size: .78rem;
    font-weight: 750;
}

.chat-header-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.chat-header-actions button,
.chat-icon-button {
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 12px;
    font-weight: 950;
}

.chat-header-actions button {
    color: #ffffff;
    background: rgba(255, 255, 255, .16);
}

.marketplace-chat-body {
    min-height: 260px;
    overflow-y: auto;
    padding: 16px;
    background: linear-gradient(180deg, #f8fafc 0%, #eef6ff 100%);
}

.chat-empty-state {
    min-height: 220px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 8px;
    padding: 22px;
    color: #64748b;
    text-align: center;
    font-weight: 700;
}

.chat-empty-state strong {
    color: #0f172a;
    font-size: 1rem;
    font-weight: 950;
}

.chat-empty-state button {
    min-height: 38px;
    margin-top: 8px;
    border: 0;
    border-radius: 999px;
    padding: 0 16px;
    color: #ffffff;
    background: #2563eb;
    font-weight: 900;
}

.chat-message-list {
    display: grid;
    gap: 10px;
}

.chat-message {
    max-width: 82%;
    display: grid;
    gap: 5px;
    padding: 10px 12px;
    border-radius: 16px;
    box-shadow: 0 8px 18px rgba(15, 23, 42, .08);
    overflow-wrap: anywhere;
}

.chat-message.mine {
    justify-self: end;
    border-bottom-right-radius: 5px;
    color: #ffffff;
    background: #2563eb;
}

.chat-message.theirs {
    justify-self: start;
    border-bottom-left-radius: 5px;
    color: #0f172a;
    background: #ffffff;
}

.chat-message div {
    line-height: 1.42;
    white-space: pre-wrap;
}

.chat-message time {
    justify-self: end;
    color: currentColor;
    opacity: .72;
    font-size: .7rem;
    font-weight: 800;
}

.marketplace-chat-compose {
    display: grid;
    gap: 8px;
    padding: 12px;
    border-top: 1px solid #dbe4f0;
    background: #ffffff;
}

.emoji-picker {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 8px;
    border: 1px solid #dbe4f0;
    border-radius: 16px;
    background: #f8fafc;
}

.emoji-picker button {
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 4px 10px rgba(15, 23, 42, .06);
}

.chat-send-status {
    color: #b42318;
    font-size: .8rem;
    font-weight: 850;
}

.chat-compose-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: end;
    gap: 8px;
}

.chat-icon-button {
    color: #2563eb;
    background: #eff6ff;
}

.chat-compose-row textarea {
    min-height: 42px;
    max-height: 120px;
    resize: vertical;
    border: 1px solid #dbe4f0;
    border-radius: 16px;
    padding: 10px 12px;
    color: #0f172a;
    background: #ffffff;
    font-weight: 700;
    outline: none;
}

.chat-compose-row textarea:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, .12);
}

.chat-send-button {
    min-height: 42px;
    border: 0;
    border-radius: 999px;
    padding: 0 16px;
    color: #ffffff;
    background: linear-gradient(135deg, #16a34a, #22c55e);
    font-weight: 950;
}

.chat-send-button:disabled {
    cursor: not-allowed;
    opacity: .55;
}

@keyframes cartDrive {
    0% {
        transform: translateX(-64px) translateY(1px);
    }

    45% {
        transform: translateX(94px) translateY(-2px);
    }

    55% {
        transform: translateX(104px) translateY(-2px);
    }

    100% {
        transform: translateX(246px) translateY(1px);
    }
}

@keyframes cartWheel {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 1120px) {
    .company-grid,
    .product-grid,
    .similar-grid,
    .products-grid-pro {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .account-hero-panel,
    .account-grid,
    .account-settings-layout {
        grid-template-columns: 1fr;
    }

    .account-settings-sidebar {
        position: static;
    }

    .account-settings-nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

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

    .amazon-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        margin-top: 0;
    }

    .amazon-card-grid.featured {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .amazon-hero-band {
        grid-template-columns: 1fr;
    }

    .amazon-product-strip {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .marketplace-page {
        width: min(100% - 28px, 760px);
    }

    .market-hero,
    .product-detail {
        grid-template-columns: 1fr;
    }

    .hero-card.active {
        transform: none;
    }

    .search-band {
        grid-template-columns: 1fr;
    }

    .company-grid,
    .product-grid,
    .similar-grid,
    .products-grid-pro {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .catalog-toolbar,
    .catalog-layout,
    .product-showcase-hero {
        grid-template-columns: 1fr;
    }

    .filters-panel {
        position: static;
    }

    .profile-content {
        grid-template-columns: 1fr;
    }

    .company-rating-panel {
        grid-template-columns: 1fr;
    }

    .company-vote-panel {
        padding-left: 0;
        padding-top: 14px;
        border-left: 0;
        border-top: 1px solid #e6edf5;
    }

    .profile-logo {
        margin-bottom: -8px;
    }
}

@media (max-width: 640px) {
    .marketplace-page {
        width: min(100% - 20px, 520px);
        padding-top: 12px;
    }

    .marketplace-shell {
        padding-top: 12px;
    }

    .marketplace-shell > .app-header {
        width: min(100% - 20px, 520px);
    }

    .marketplace-header,
    .section-heading,
    .profile-title-row,
    .buy-panel {
        align-items: flex-start;
        flex-direction: column;
    }

    .header-actions {
        width: 100%;
        flex-wrap: wrap;
        justify-content: space-between;
        overflow: visible;
    }

    .orders-menu-panel {
        left: 0;
        right: auto;
    }

    .user-chip {
        max-width: 100%;
    }

    .user-chip strong,
    .user-chip small {
        max-width: 150px;
    }

    .market-hero,
    .auth-modal,
    .product-info-panel,
    .account-hero-panel,
    .account-card,
    .panel-state {
        padding: 22px;
    }

    .hero-copy h1 {
        font-size: 2.25rem;
    }

    .category-strip,
    .company-grid,
    .product-grid,
    .similar-grid,
    .products-grid-pro,
    .detail-specs,
    .field-grid.two,
    .field-grid.three,
    .account-status-grid {
        grid-template-columns: 1fr;
    }

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

    .data-list.compact div {
        align-items: flex-start;
        flex-direction: column;
    }

    .data-list.compact dd {
        text-align: left;
    }

    .catalog-page {
        width: min(100% - 20px, 520px);
    }

    .product-showcase-page {
        width: min(100% - 20px, 520px);
    }

    .catalog-toolbar,
    .products-control {
        grid-template-columns: 1fr;
        align-items: flex-start;
    }

    .products-control,
    .page-size-control {
        flex-direction: column;
        align-items: flex-start;
    }

    .toolbar-actions,
    .toolbar-button,
    .cart-button {
        width: 100%;
    }

    .product-showcase-hero {
        padding: 16px;
        border-radius: 20px;
    }

    .showcase-hero-copy h1 {
        font-size: 2.15rem;
    }

    .showcase-search {
        grid-template-columns: auto minmax(0, 1fr);
        border-radius: 18px;
    }

    .showcase-search button {
        grid-column: 1 / -1;
        width: calc(100% - 8px);
        margin: 0 4px 4px;
    }

    .showcase-section-header,
    .category-rail-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .recommended-category-grid {
        grid-template-columns: 1fr;
    }

    .showcase-product-rail {
        grid-auto-columns: minmax(260px, 1fr);
    }

    .amazon-home-page {
        width: min(100% - 20px, 520px);
    }

    .amazon-hero-band {
        min-height: 0;
        padding: 16px;
        border-radius: 0 0 18px 18px;
    }

    .amazon-hero-band h1 {
        font-size: 2.1rem;
    }

    .amazon-search-box {
        grid-template-columns: 1fr;
        border-radius: 16px;
    }

    .amazon-search-box input {
        min-height: 46px;
    }

    .amazon-search-box button {
        min-height: 42px;
    }

    .amazon-card-grid,
    .amazon-card-grid.lower {
        grid-template-columns: 1fr;
        margin-top: 0;
    }

    .amazon-card-grid.featured {
        grid-template-columns: 1fr;
    }

    .amazon-quadrant-card,
    .amazon-wide-rail {
        border-radius: 2px;
        padding: 16px;
    }

    .amazon-product-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .company-body p,
    .product-body p {
        min-height: auto;
    }

    .product-detail {
        gap: 16px;
    }

    .detail-media {
        min-height: 320px;
    }

    .primary-action.fit,
    .outline-action.fit,
    .primary-action.small {
        width: 100%;
    }

    .marketplace-chat-dock {
        width: calc(100vw - 20px);
        right: 10px;
        bottom: 10px;
        max-height: calc(100vh - 24px);
        border-radius: 18px;
    }

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

    .chat-send-button {
        grid-column: 1 / -1;
        width: 100%;
    }

    .invoice-workspace {
        grid-template-columns: 1fr;
    }

    .invoice-list-panel {
        position: static;
        max-height: none;
    }

    .invoice-detail-header,
    .invoice-detail-title {
        grid-template-columns: 1fr;
    }

    .invoice-ticket-action {
        width: 100%;
        justify-content: center;
        white-space: normal;
    }

    .invoice-detail-actions {
        width: 100%;
        justify-content: stretch;
    }

    .invoice-info-grid {
        grid-template-columns: 1fr;
    }

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

    .post-sale-quantity {
        grid-column: 1 / -1;
    }
}
