* {
    box-sizing: border-box;
}

:root {
    --primary: #050505;
    --secondary: #f3f4f5;
    --accent: #6f7379;
    --success: #3f4448;
    --page-bg: #f3f4f5;
    --header-bg: #ffffff;
    --card-bg: #ffffff;
    --text-main: #050505;
    --hero-image: url("../images/hero-lynx-main-20260719.webp");
    --ink: #111214;
    --muted: #6b7076;
    --line: #dfe2e5;
    --paper: #ffffff;
    --soft: #f7f8f9;
    --shadow: 0 20px 60px rgba(5, 5, 5, 0.12);
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text-main, var(--ink));
    background: var(--page-bg, var(--secondary));
    font-family: Montserrat, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    line-height: 1.5;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

button,
input,
textarea,
select {
    font: inherit;
}

main {
    min-height: 68vh;
}

.topline {
    background: var(--accent);
    color: #fff;
    padding: 9px 20px;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 750;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 22px;
    align-items: center;
    padding: 16px clamp(18px, 4vw, 54px);
    background: var(--header-bg, #ffffff);
    background: color-mix(in srgb, var(--header-bg, #ffffff) 92%, transparent);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(18px);
}

.brand img {
    width: 210px;
    height: 56px;
    object-fit: contain;
    object-position: left center;
}

.site-nav {
    display: flex;
    gap: 18px;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.site-nav a {
    padding: 8px 2px;
}

.site-nav a:hover {
    color: var(--accent);
}

.header-actions,
.hero-actions,
.install-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0;
}

.nav-toggle::before {
    content: "Menu";
    font-size: 0.72rem;
    font-weight: 900;
}

.button {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 10px 16px;
    background: #fff;
    color: var(--ink);
    font-weight: 800;
    cursor: pointer;
    transition: 0.2s ease;
}

.button:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

input:focus,
select:focus,
textarea:focus,
.button:focus-visible,
a:focus-visible {
    outline: 3px solid rgba(199, 24, 40, 0.18);
    outline-offset: 2px;
    border-color: var(--accent);
}

.button.dark {
    border-color: var(--primary);
    background: var(--primary);
    color: #fff;
}

.button.light {
    background: #fff;
    color: #111;
    border-color: #fff;
}

.button.ghost,
.button.ghost-light {
    background: transparent;
}

.button.ghost-light {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.45);
}

.button.whatsapp {
    background: var(--success);
    border-color: var(--success);
    color: #fff;
}

.button.danger {
    border-color: #d72638;
    color: #d72638;
}

.button.small {
    min-height: 34px;
    padding: 7px 11px;
    font-size: 0.86rem;
}

.button.full {
    width: 100%;
}

.icon-link {
    font-weight: 800;
    color: var(--accent);
}

.flash {
    width: min(1120px, calc(100% - 32px));
    margin: 16px auto 0;
    padding: 13px 16px;
    border-radius: 8px;
    background: #fff;
    border-left: 4px solid var(--primary);
}

.flash.success {
    border-color: var(--success);
}

.flash.danger {
    border-color: #d72638;
}

.flash.warning {
    border-color: #c88719;
}

.hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(360px, 0.95fr) minmax(300px, 0.8fr);
    gap: clamp(28px, 5vw, 76px);
    align-items: center;
    min-height: min(760px, calc(100vh - 88px));
    padding: clamp(52px, 6vw, 84px) clamp(22px, 6vw, 88px);
    background:
        linear-gradient(115deg, rgba(8, 8, 9, 0.99) 0%, rgba(23, 24, 26, 0.98) 56%, rgba(120, 18, 27, 0.92) 100%);
    color: #fff;
    overflow: hidden;
}

.hero-copy {
    position: relative;
    z-index: 1;
    max-width: 650px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

.hero .eyebrow {
    color: #fff;
}

.hero h1,
.page-title h1,
.section-head h2,
.about-layout h1,
.contact-layout h1,
.quote-success h1 {
    margin: 0;
    font-size: clamp(2.2rem, 5vw, 5.6rem);
    line-height: 1;
    letter-spacing: 0;
}

.hero h1 {
    max-width: 760px;
    font-size: clamp(2.85rem, 4.55vw, 4.95rem);
    line-height: 1.02;
    text-wrap: balance;
}

.hero p {
    max-width: 560px;
    margin: 22px 0 30px;
    color: rgba(255, 255, 255, 0.76);
    font-size: clamp(1rem, 1.45vw, 1.18rem);
}

.hero-product {
    position: relative;
    display: grid;
    place-items: center;
    align-self: end;
    min-height: clamp(380px, 52vw, 620px);
    isolation: isolate;
}

.hero-product img {
    max-height: min(66vh, 640px);
    width: min(100%, 500px);
    object-fit: contain;
    filter:
        drop-shadow(0 32px 34px rgba(0, 0, 0, 0.58))
        drop-shadow(0 0 18px rgba(255, 255, 255, 0.08));
}

.stats-band {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    background: var(--line);
    border-bottom: 1px solid var(--line);
}

.stats-band div {
    min-height: 118px;
    padding: 24px clamp(18px, 3vw, 34px);
    background: #fff;
}

.stats-band strong {
    display: block;
    font-size: 1.4rem;
}

.stats-band span {
    color: var(--muted);
}

.section-head,
.page-title {
    width: min(1120px, calc(100% - 32px));
    margin: 58px auto 28px;
}

.section-head h2,
.page-title h1 {
    color: var(--ink);
    font-size: clamp(2rem, 4vw, 4rem);
}

.section-head p,
.page-title p {
    max-width: 720px;
    color: var(--muted);
}

.product-grid {
    width: min(1220px, calc(100% - 32px));
    margin: 0 auto 70px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.product-card {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: 0 12px 30px rgba(17, 17, 17, 0.06);
}

.badge {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 2;
    padding: 6px 10px;
    border-radius: 8px;
    background: var(--accent);
    color: #fff;
    font-weight: 900;
}

.product-image {
    display: block;
    height: 300px;
    background:
        linear-gradient(180deg, #fbfbfa 0%, #f0f1ef 100%);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 18px;
    filter: drop-shadow(0 16px 22px rgba(17, 17, 17, 0.12));
}

.product-body {
    padding: 20px;
}

.product-body h3 {
    min-height: 56px;
    margin: 0 0 8px;
    font-size: 1.18rem;
    line-height: 1.2;
}

.product-body p {
    min-height: 72px;
    margin: 0 0 14px;
    color: var(--muted);
    font-size: 0.96rem;
}

.price-row {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 14px;
}

.price-row strong {
    font-size: 1.32rem;
}

.price-row.large strong {
    font-size: clamp(2rem, 4vw, 3.6rem);
}

del {
    color: var(--muted);
}

.metrics,
.detail-metrics,
.quote-summary dl,
.quote-doc-total {
    display: grid;
    gap: 10px;
    margin: 0;
}

.metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.metrics div,
.detail-metrics div,
.quote-summary dl div,
.quote-doc-total div {
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--soft);
}

dt {
    color: var(--muted);
    font-size: 0.78rem;
}

dd {
    margin: 0;
    font-weight: 850;
}

.mini-form {
    display: grid;
    grid-template-columns: 1fr 82px auto;
    gap: 8px;
    align-items: end;
    margin-top: 16px;
}

label span {
    display: block;
    margin-bottom: 6px;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 800;
}

input,
select,
textarea {
    width: 100%;
    min-height: 42px;
    border: 1px solid #d9dce1;
    border-radius: 8px;
    padding: 10px 12px;
    background: #fff;
    color: var(--ink);
}

textarea {
    resize: vertical;
}

.filters {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto 24px;
    display: grid;
    grid-template-columns: 1fr 260px auto;
    gap: 12px;
    align-items: end;
}

.product-detail,
.about-layout,
.contact-layout,
.quote-layout {
    width: min(1180px, calc(100% - 32px));
    margin: 52px auto 76px;
    display: grid;
    grid-template-columns: minmax(280px, 0.95fr) minmax(0, 1.05fr);
    gap: clamp(24px, 5vw, 70px);
    align-items: start;
}

.detail-image,
.contact-panel,
.empty-panel,
.quote-success,
.auth-card,
.install-card,
.admin-panel,
.stat-card {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 16px 36px rgba(17, 17, 17, 0.07);
}

.detail-image {
    padding: 26px;
    background:
        linear-gradient(180deg, #fbfbfa 0%, #f1f2f0 100%);
}

.detail-image img {
    width: 100%;
    max-height: 690px;
    object-fit: contain;
    filter: drop-shadow(0 22px 34px rgba(17, 17, 17, 0.16));
}

.detail-copy h1 {
    margin: 0 0 12px;
    font-size: clamp(2rem, 4vw, 4.2rem);
    line-height: 1;
}

.detail-copy > p {
    color: var(--muted);
}

.detail-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 18px 0;
}

.quote-box,
.stacked-form {
    display: grid;
    gap: 12px;
}

.quote-box {
    grid-template-columns: 1fr 120px auto;
    align-items: end;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.doc-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 14px;
    font-weight: 800;
    color: var(--accent);
}

.quote-table,
.quote-summary {
    display: grid;
    gap: 12px;
}

.quote-row {
    display: grid;
    grid-template-columns: 82px 1fr 88px 120px;
    gap: 12px;
    align-items: center;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.quote-row img {
    width: 82px;
    height: 82px;
    object-fit: contain;
    border-radius: 8px;
    background: var(--soft);
    padding: 6px;
}

.quote-row span {
    color: var(--muted);
}

.quote-summary {
    position: sticky;
    top: 110px;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow);
}

.quote-success,
.empty-panel {
    width: min(850px, calc(100% - 32px));
    margin: 58px auto 78px;
    padding: clamp(24px, 5vw, 48px);
}

.quote-success p,
.empty-panel p,
.contact-panel p {
    color: var(--muted);
}

.legal-layout {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto 76px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.legal-panel {
    display: grid;
    gap: 10px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 14px 32px rgba(17, 17, 17, 0.05);
}

.legal-panel h2 {
    margin: 0;
    font-size: 1.15rem;
}

.legal-panel p {
    margin: 0;
    color: var(--muted);
}

.legal-contact a {
    width: fit-content;
    font-weight: 900;
}

.about-layout img {
    width: 100%;
    max-height: 560px;
    object-fit: contain;
    border-radius: 8px;
    background: #fff;
    border: 1px solid var(--line);
}

.about-layout p {
    font-size: 1.08rem;
    color: var(--muted);
}

.about-points {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 22px;
}

.about-points span {
    padding: 9px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    font-weight: 850;
}

.contact-list {
    display: grid;
    gap: 10px;
    margin-top: 22px;
    font-weight: 850;
}

.contact-panel {
    padding: 28px;
}

.auth-shell {
    display: grid;
    place-items: center;
    padding: clamp(42px, 6vw, 76px) 16px 90px;
    background:
        linear-gradient(130deg, #101112 0%, #242527 48%, #f2f3f5 48%, #f2f3f5 100%);
}

.auth-frame {
    width: min(1180px, 100%);
    display: grid;
    grid-template-columns: minmax(300px, 0.82fr) minmax(380px, 1fr);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 28px 80px rgba(17, 17, 17, 0.22);
}

.auth-aside {
    min-height: 560px;
    display: grid;
    align-content: end;
    gap: 18px;
    padding: clamp(28px, 5vw, 46px);
    background:
        linear-gradient(150deg, rgba(6, 6, 7, 0.98), rgba(36, 37, 39, 0.98) 64%, rgba(199, 24, 40, 0.82));
    color: #fff;
}

.auth-aside img {
    width: 220px;
    height: 70px;
    object-fit: contain;
    object-position: left center;
    align-self: start;
}

.auth-aside span {
    color: rgba(255, 255, 255, 0.68);
    font-weight: 900;
    text-transform: uppercase;
    font-size: 0.78rem;
}

.auth-aside h2 {
    max-width: 460px;
    margin: 0;
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1.02;
}

.auth-aside p {
    max-width: 470px;
    margin: 0;
    color: rgba(255, 255, 255, 0.76);
}

.auth-benefits {
    display: grid;
    gap: 10px;
    margin-top: 10px;
}

.auth-benefits strong {
    width: fit-content;
    padding: 9px 11px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    font-size: 0.9rem;
}

.auth-card {
    width: 100%;
    display: grid;
    align-self: center;
    gap: 16px;
    padding: clamp(28px, 4vw, 46px);
    border: 0;
    box-shadow: none;
}

.auth-card h1,
.install-card h1 {
    margin: 0;
    font-size: 2rem;
}

.auth-card-head {
    display: grid;
    gap: 8px;
    margin-bottom: 8px;
}

.auth-card-head p {
    margin: 0;
    color: var(--muted);
}

.auth-card input {
    min-height: 48px;
    background: #fbfbfa;
}

.auth-card:has(.customer-form-section) {
    align-self: stretch;
    max-height: min(84vh, 980px);
    overflow: auto;
}

.customer-form-section {
    display: grid;
    gap: 12px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f7f8f9;
}

.form-section-head {
    display: grid;
    gap: 3px;
}

.form-section-head strong {
    font-size: 0.95rem;
}

.form-section-head span {
    color: var(--muted);
    font-size: 0.86rem;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.form-grid.compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.address-grid {
    grid-template-columns: minmax(96px, 0.55fr) minmax(180px, 1.4fr) minmax(80px, 0.45fr) minmax(140px, 1fr);
}

.customer-quote-details {
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f7f8f9;
}

.customer-quote-details summary,
.admin-customer-details summary {
    cursor: pointer;
    font-weight: 900;
}

.customer-quote-details .customer-form-section,
.admin-customer-details .customer-form-section {
    margin-top: 12px;
}

.billing-same-check {
    width: fit-content;
    padding: 8px 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.customer-address-section.is-same-as-delivery input:not([data-billing-same]),
.customer-address-section.is-same-as-delivery textarea {
    background: #eceeef;
    color: #565d63;
}

.customer-address-section.is-loading-cep {
    box-shadow: inset 0 0 0 2px rgba(17, 17, 17, 0.08);
}

.auth-switch {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding-top: 6px;
    color: var(--muted);
    font-weight: 800;
}

.auth-switch a {
    color: var(--accent);
}

.muted,
.empty {
    color: var(--muted);
}

.chat-shell {
    width: min(900px, calc(100% - 32px));
    margin: 52px auto 78px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #efe7dc;
    box-shadow: var(--shadow);
}

.chat-header {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px;
    background: var(--primary);
    color: #fff;
}

.chat-header a {
    color: #9df0c0;
    font-weight: 800;
}

.chat-window {
    height: min(58vh, 620px);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 18px;
}

.bubble {
    width: fit-content;
    max-width: min(78%, 620px);
    padding: 10px 12px;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.bubble.client {
    align-self: flex-end;
    background: #d9ffd7;
}

.bubble.admin {
    align-self: flex-start;
}

.bubble span,
.bubble small {
    display: block;
    color: var(--muted);
    font-size: 0.76rem;
}

.chat-form {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.84);
}

.site-footer {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr 0.8fr;
    gap: 32px;
    padding: 44px clamp(18px, 5vw, 70px);
    background: #090909;
    color: #fff;
}

.site-footer a,
.site-footer span {
    display: block;
    margin-top: 8px;
    color: rgba(255, 255, 255, 0.72);
}

.site-footer p {
    color: rgba(255, 255, 255, 0.72);
}

.footer-logo {
    width: 220px;
    height: 60px;
    object-fit: contain;
    object-position: left center;
}

.install-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
    background: var(--secondary);
}

.install-card {
    width: min(720px, 100%);
    padding: 34px;
}

.install-card img {
    width: 240px;
    height: 70px;
    object-fit: contain;
    object-position: left center;
}

.admin-body {
    display: grid;
    grid-template-columns: 280px 1fr;
    min-height: 100vh;
    background: #eef0f2;
}

.admin-sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 22px;
    background:
        linear-gradient(180deg, #080809 0%, #171719 100%);
    color: #fff;
}

.admin-brand img {
    width: 200px;
    height: 64px;
    object-fit: contain;
    object-position: left center;
    margin-bottom: 18px;
}

.admin-nav-label {
    display: block;
    margin: 4px 0 12px;
    color: rgba(255, 255, 255, 0.44);
    font-size: 0.76rem;
    font-weight: 900;
    text-transform: uppercase;
}

.admin-sidebar nav {
    display: grid;
    gap: 8px;
}

.admin-sidebar a {
    padding: 12px 13px;
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.78);
    font-weight: 800;
}

.admin-sidebar a:hover,
.admin-sidebar a.active {
    background: rgba(255, 255, 255, 0.11);
    color: #fff;
}

.admin-sidebar a.active {
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: inset 3px 0 0 var(--accent);
}

.admin-site-link {
    margin-top: auto;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
}

.admin-main {
    padding: clamp(20px, 3vw, 34px);
}

.admin-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
    padding: 20px 22px;
    border-radius: 8px;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: 0 12px 28px rgba(17, 17, 17, 0.05);
}

.admin-topbar span {
    display: block;
    color: var(--muted);
    font-size: 0.82rem;
}

.admin-topbar strong {
    font-size: 1.6rem;
}

.admin-topbar p {
    margin: 4px 0 0;
    color: var(--muted);
}

.admin-view-mercadolivre .admin-topbar {
    display: none;
}

.admin-view-mercadolivre .admin-main {
    padding-top: 12px;
}

.admin-view-mercadolivre .ml-workspace {
    margin-top: 0;
}

.admin-user {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 850;
}

.admin-welcome {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    margin-bottom: 18px;
    padding: clamp(22px, 4vw, 34px);
    border-radius: 8px;
    background:
        linear-gradient(120deg, #111 0%, #242527 62%, #7f1821 100%);
    color: #fff;
    box-shadow: 0 18px 40px rgba(17, 17, 17, 0.14);
}

.admin-welcome h1 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3.6rem);
    line-height: 1.02;
}

.admin-welcome p {
    max-width: 640px;
    margin: 12px 0 0;
    color: rgba(255, 255, 255, 0.76);
}

.admin-welcome-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.admin-grid.stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.stat-card {
    position: relative;
    overflow: hidden;
    padding: 22px;
    border-top: 4px solid var(--accent);
}

.stat-card span {
    color: var(--muted);
    font-weight: 800;
}

.stat-card strong {
    display: block;
    margin-top: 8px;
    font-size: 2.4rem;
}

.stat-card small {
    display: block;
    margin-top: 6px;
    color: var(--muted);
    font-weight: 750;
}

.admin-quick {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.admin-quick a {
    display: grid;
    gap: 5px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 12px 28px rgba(17, 17, 17, 0.05);
}

.admin-quick a:hover {
    border-color: rgba(199, 24, 40, 0.42);
    transform: translateY(-1px);
}

.admin-quick span {
    color: var(--muted);
    font-size: 0.92rem;
}

.admin-panel {
    padding: 22px;
    margin-bottom: 18px;
}

.panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.panel-head h2 {
    margin: 0;
}

.responsive-table {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 12px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: middle;
}

th {
    color: var(--muted);
    font-size: 0.82rem;
    background: #fafafa;
    text-transform: uppercase;
    letter-spacing: 0;
}

tbody tr:hover {
    background: #fcfcfb;
}

td small {
    color: var(--muted);
}

.admin-form {
    display: grid;
    gap: 16px;
}

.admin-form.two-cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.quick-product-bar,
.quick-product-inline {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) auto;
    gap: 12px;
    align-items: end;
}

.quick-product-bar {
    margin-top: 16px;
}

.quick-product-inline {
    margin: 0 0 18px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--soft);
}

.admin-modal {
    position: fixed;
    inset: 50% auto auto 50%;
    z-index: 10000;
    transform: translate(-50%, -50%);
    width: min(940px, calc(100% - 28px));
    max-height: min(86vh, 880px);
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
}

.admin-modal::backdrop {
    background: rgba(5, 5, 5, 0.68);
}

body.modal-open {
    overflow: hidden;
}

.admin-modal-card {
    max-height: min(86vh, 880px);
    overflow: auto;
    padding: clamp(18px, 3vw, 28px);
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.22);
}

.modal-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.quick-prefill-summary {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
    padding: 12px 14px;
    border-left: 4px solid var(--success);
    background: #f7f8f8;
}

.quick-prefill-summary span {
    color: var(--muted);
}

.wide {
    grid-column: 1 / -1;
}

.check {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 800;
}

.check input {
    width: auto;
    min-height: auto;
}

.admin-layout {
    display: grid;
    grid-template-columns: minmax(320px, 0.9fr) minmax(0, 1.1fr);
    gap: 18px;
}

.inline-form,
.menu-form {
    display: flex;
    gap: 10px;
    align-items: end;
    flex-wrap: wrap;
}

.quote-items-admin {
    display: grid;
    gap: 10px;
    margin: 18px 0;
}

.quote-items-admin div,
.total-line {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 11px;
    border-radius: 8px;
    background: var(--soft);
}

.total-line {
    font-size: 1.2rem;
}

.thread-list {
    display: grid;
    gap: 8px;
}

.thread-list a {
    display: grid;
    gap: 3px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.thread-list a.active,
.thread-list a:hover {
    border-color: var(--accent);
}

.thread-list span {
    color: var(--muted);
    font-size: 0.84rem;
}

.admin-chat {
    height: 460px;
    border-radius: 8px;
    background: #efe7dc;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 10px;
    border-radius: 8px;
    background: #f1f2f0;
    color: #373a3f;
    font-size: 0.82rem;
    font-weight: 900;
}

.admin-product-cell {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 260px;
}

.admin-product-cell img {
    width: 58px;
    height: 58px;
    object-fit: contain;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f7f7f5;
    padding: 5px;
}

.admin-product-cell span {
    display: grid;
    gap: 2px;
}

.row-actions {
    display: flex;
    gap: 8px;
}

.hidden-form {
    display: none;
}

.pdf-body {
    background: #d9dce1;
    padding: 28px;
}

.pdf-actions {
    width: min(940px, 100%);
    margin: 0 auto 16px;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.quote-document {
    width: min(940px, 100%);
    margin: 0 auto;
    padding: 34px;
    background: #fff;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.quote-doc-header,
.quote-doc-customer,
.quote-doc-total {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 20px;
    align-items: start;
}

.quote-doc-header {
    padding-bottom: 20px;
    border-bottom: 4px solid var(--primary);
}

.quote-doc-header img {
    width: 230px;
    height: 70px;
    object-fit: contain;
    object-position: left center;
}

.quote-doc-header strong {
    display: block;
    font-size: 3rem;
}

.quote-doc-header span,
.quote-doc-customer span,
.quote-doc-total span {
    color: var(--muted);
    font-weight: 800;
}

.quote-doc-customer {
    margin: 24px 0;
}

.quote-doc-table th,
.quote-doc-table td {
    padding: 12px 8px;
}

.quote-doc-table small {
    display: block;
}

.quote-doc-total {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 24px;
}

.quote-doc-total strong {
    display: block;
    margin-top: 4px;
    font-size: 1.25rem;
}

.quote-doc-note {
    margin-top: 24px;
    padding: 16px;
    border-radius: 8px;
    background: var(--soft);
}

.quote-doc-footer {
    margin-top: 34px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
    color: var(--muted);
}

/* Visual inspirado no site institucional atual da LYNX. */
.site-header {
    background: rgba(5, 5, 5, 0.9);
    border-bottom-color: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.site-nav a,
.icon-link {
    text-transform: uppercase;
    font-size: 0.78rem;
    letter-spacing: 0.02em;
    color: #fff;
}

.site-header .button.dark {
    border-color: rgba(255, 255, 255, 0.82);
    background: transparent;
    color: #fff;
}

.site-header .button:not(.dark) {
    border-color: rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.button {
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.hero {
    min-height: 760px;
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.38) 52%, rgba(0, 0, 0, 0.1) 100%),
        var(--hero-image) center / cover no-repeat;
}

.hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 120px;
    background: linear-gradient(180deg, rgba(5, 5, 5, 0), #080808);
    pointer-events: none;
}

.hero h1 {
    text-transform: uppercase;
    font-weight: 900;
}

.hero-product {
    justify-self: center;
}

.hero-product img {
    width: min(100%, 420px);
    opacity: 0.96;
}

.stats-band {
    background: linear-gradient(180deg, #0d1113, #090909);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.12);
}

.stats-band div {
    background: transparent;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.stats-band div:last-child {
    border-right: 0;
}

.stats-band strong {
    text-transform: uppercase;
    font-size: 0.95rem;
}

.stats-band span {
    color: rgba(255, 255, 255, 0.72);
}

.segments-showcase {
    display: grid;
    grid-template-columns: minmax(260px, 0.32fr) minmax(0, 0.68fr);
    gap: clamp(24px, 4vw, 42px);
    align-items: end;
    padding: 76px clamp(18px, 5vw, 70px) 58px;
    background: radial-gradient(circle at left, #15191b, #060606 58%);
    color: #fff;
}

.segments-copy h2,
.distributor-strip h2 {
    margin: 0 0 18px;
    font-size: clamp(2rem, 4vw, 3.8rem);
    line-height: 1.04;
    text-transform: uppercase;
}

.segments-copy p,
.distributor-strip p {
    margin: 0;
    color: rgba(255, 255, 255, 0.72);
}

.segment-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
}

.segment-card {
    position: relative;
    min-height: 270px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    padding: 22px 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background-position: center;
    background-size: cover;
}

.segment-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.72));
}

.segment-card::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 6px;
    background: #fff;
}

.segment-card strong {
    position: relative;
    z-index: 1;
    color: #fff;
    text-transform: uppercase;
    font-size: 0.95rem;
}

.segment-green::after {
    background: #28a745;
}

.segment-yellow::after {
    background: #ffc107;
}

.segment-gray::after {
    background: #9b9b9b;
}

.segment-blue::after {
    background: #0d6efd;
}

.segment-red::after {
    background: #dc3545;
}

.distributor-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding: 38px clamp(18px, 5vw, 70px);
    background: #060606;
    color: #fff;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.distributor-strip > div {
    max-width: 720px;
}

.auth-aside {
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.76), rgba(0, 0, 0, 0.36)),
        var(--hero-image) center / cover no-repeat;
}

.auth-aside-admin {
    background:
        linear-gradient(135deg, rgba(0, 0, 0, 0.92), rgba(21, 25, 27, 0.92) 58%, rgba(199, 24, 40, 0.72)),
        url("../images/segments/industrial.jpg") center / cover no-repeat;
}

.auth-switch-secondary {
    margin-top: -8px;
    padding-top: 0;
    font-size: 0.9rem;
}

@media (max-width: 980px) {
    .site-header {
        grid-template-columns: auto auto;
    }

    .brand img {
        width: 170px;
    }

    .nav-toggle {
        display: inline-grid;
        place-items: center;
        justify-self: end;
    }

    .site-nav,
    .header-actions {
        grid-column: 1 / -1;
        display: none;
        justify-content: flex-start;
    }

    .site-nav.is-open,
    .header-actions.is-open {
        display: flex;
    }

    .hero,
    .auth-frame,
    .segments-showcase,
    .product-detail,
    .about-layout,
    .contact-layout,
    .quote-layout,
    .admin-layout {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: auto;
    }

    .auth-aside {
        min-height: 360px;
    }

    .stats-band,
    .product-grid,
    .admin-grid.stats,
    .admin-quick,
    .segment-grid,
    .site-footer {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .filters,
    .mini-form,
    .quote-box {
        grid-template-columns: 1fr;
    }

    .admin-body {
        grid-template-columns: 1fr;
    }

    .admin-sidebar {
        position: static;
        height: auto;
    }

    .admin-sidebar nav {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .admin-site-link {
        margin-top: 10px;
    }

    .admin-welcome {
        align-items: flex-start;
        flex-direction: column;
    }

    .admin-welcome-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 680px) {
    .hero h1,
    .page-title h1,
    .section-head h2,
    .about-layout h1,
    .contact-layout h1,
    .quote-success h1 {
        font-size: 2.1rem;
        line-height: 1.05;
    }

    .product-grid,
    .stats-band,
    .admin-grid.stats,
    .admin-quick,
    .segment-grid,
    .legal-layout,
    .site-footer,
    .detail-metrics,
    .metrics,
    .quote-doc-total,
    .quote-doc-header,
    .quote-doc-customer {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: 680px;
        background-position: 65% center;
    }

    .distributor-strip {
        align-items: flex-start;
        flex-direction: column;
    }

    .auth-shell {
        padding: 24px 12px 58px;
        background: #f2f3f5;
    }

    .auth-aside {
        min-height: auto;
        padding: 26px;
    }

    .auth-aside h2 {
        font-size: 2rem;
    }

    .auth-switch,
    .admin-topbar,
    .admin-user {
        align-items: flex-start;
        flex-direction: column;
    }

    .product-image {
        height: 250px;
    }

    .quote-row {
        grid-template-columns: 66px 1fr;
    }

    .quote-row input,
    .quote-row > strong {
        grid-column: 2;
    }

    .admin-form.two-cols {
        grid-template-columns: 1fr;
    }

    .quick-product-bar,
    .quick-product-inline {
        grid-template-columns: 1fr;
    }

    .admin-sidebar nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .chat-form {
        grid-template-columns: 1fr;
    }

    .pdf-body {
        padding: 0;
    }

    .quote-document {
        border-radius: 0;
        padding: 20px;
    }
}

/* LYNX monochrome theme */
.topline {
    background: var(--primary);
    color: #fff;
    border-bottom: 1px solid #2a2c2f;
}

.site-header {
    background: rgba(255, 255, 255, 0.95);
    border-bottom-color: #d7dadf;
    color: var(--ink);
}

.site-header .brand img {
    mix-blend-mode: normal;
}

.site-nav a,
.icon-link,
.site-header .button:not(.dark) {
    color: var(--ink);
}

.site-header .button.dark {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.site-header .button:not(.dark) {
    background: #fff;
    border-color: var(--line);
}

.site-nav a:hover,
.auth-switch a,
.eyebrow {
    color: var(--primary);
}

input:focus,
select:focus,
textarea:focus,
.button:focus-visible,
a:focus-visible {
    outline-color: rgba(10, 10, 10, 0.18);
    border-color: var(--accent);
}

.badge {
    background: var(--accent);
}

.button.dark,
.chat-header,
.site-footer {
    background: var(--primary);
    border-color: var(--primary);
}

.button.whatsapp {
    background: var(--success);
    border-color: var(--success);
    color: #fff;
}

.button.danger {
    color: #17191c;
    border-color: #9da3aa;
}

.flash {
    border-left-color: var(--primary);
}

.flash.success,
.flash.danger,
.flash.warning {
    border-color: var(--accent);
}

.hero {
    background:
        linear-gradient(115deg, rgba(0, 0, 0, 0.86) 0%, rgba(18, 19, 21, 0.76) 48%, rgba(88, 92, 96, 0.42) 100%),
        var(--hero-image) center / cover no-repeat;
}

.hero::after {
    background: linear-gradient(180deg, rgba(5, 5, 5, 0), #0a0a0a);
}

.product-image,
.category-card,
.feature-card,
.quote-card,
.quote-panel,
.admin-panel,
.stat-card,
.contact-panel {
    background: linear-gradient(180deg, #ffffff 0%, #f4f5f6 100%);
}

.product-card,
.category-card,
.feature-card,
.quote-card,
.quote-panel,
.admin-panel,
.stat-card,
.contact-panel,
.thread-list a,
.auth-frame {
    border-color: #dfe2e5;
}

.auth-shell {
    background:
        linear-gradient(130deg, #080808 0%, #242629 48%, #f3f4f5 48%, #f3f4f5 100%);
}

.auth-aside,
.auth-aside-admin {
    background:
        linear-gradient(135deg, rgba(0, 0, 0, 0.9), rgba(22, 24, 26, 0.88) 58%, rgba(92, 97, 102, 0.74)),
        var(--hero-image) center / cover no-repeat;
}

.chat-shell,
.admin-chat {
    background: #eef0f2;
}

.bubble.client {
    background: #e3e5e8;
}

.bubble.admin {
    background: #ffffff;
}

.chat-header a {
    color: #ffffff;
}

.admin-body {
    background: #eef0f2;
}

.admin-sidebar {
    background: linear-gradient(180deg, var(--primary) 0%, #17191c 100%);
}

.admin-sidebar a.active {
    box-shadow: inset 3px 0 0 #c3c7cc;
}

.admin-welcome {
    background: linear-gradient(120deg, var(--primary) 0%, #202225 64%, var(--accent) 100%);
}

.stat-card {
    border-top-color: var(--accent);
}

.thread-list a.active,
.thread-list a:hover {
    border-color: var(--accent);
}

.status-pill {
    background: #e7e9ec;
    color: #262a2e;
}

.stats-band,
.segments-showcase,
.distributor-strip {
    background: linear-gradient(180deg, var(--primary) 0%, #151719 100%);
}

.segment-card::after,
.segment-green::after,
.segment-yellow::after,
.segment-gray::after,
.segment-blue::after,
.segment-red::after {
    background: linear-gradient(90deg, #ffffff 0%, #9da3aa 100%);
}

.segment-card::before {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.78));
}

.quote-document {
    border-bottom-color: var(--primary);
}

.quote-doc-header {
    background: linear-gradient(120deg, var(--primary) 0%, #242629 68%, var(--accent) 100%);
}

.admin-product-cell img,
.quote-row img {
    background: #f1f2f3;
}

.hero-bullets,
.product-tags,
.quote-steps,
.client-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.hero-bullets span,
.product-tags span {
    display: inline-flex;
    min-height: 32px;
    align-items: center;
    padding: 6px 10px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.product-tags {
    margin: 10px 0 4px;
}

.product-tags span {
    border-color: #dfe2e5;
    background: #f1f2f3;
    color: #202225;
}

.category-strip {
    width: min(1220px, calc(100% - 32px));
    margin: 28px auto 42px;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
}

.category-strip a {
    min-height: 104px;
    display: grid;
    align-content: space-between;
    gap: 12px;
    padding: 18px;
    border: 1px solid #dfe2e5;
    border-radius: 8px;
    background: linear-gradient(180deg, #fff, #f4f5f6);
    box-shadow: 0 12px 28px rgba(5, 5, 5, 0.05);
}

.category-strip span {
    font-weight: 900;
}

.category-strip strong {
    color: #6b7076;
    font-size: 0.82rem;
}

.catalog-helper,
.marketing-panel,
.marketplace-panel,
.trust-section,
.client-hero,
.admin-insights {
    width: min(1220px, calc(100% - 32px));
    margin: 0 auto 28px;
}

.catalog-helper {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 16px 18px;
    border: 1px solid #dfe2e5;
    border-radius: 8px;
    background: #fff;
}

.catalog-helper strong {
    text-transform: uppercase;
}

.catalog-helper span {
    color: #6b7076;
}

.filter-check {
    align-self: end;
    min-height: 44px;
    align-items: center;
}

.trust-section {
    display: grid;
    grid-template-columns: minmax(260px, 1.1fr) repeat(4, minmax(0, 1fr));
    gap: 14px;
    align-items: stretch;
    margin-bottom: 64px;
}

.trust-section > div,
.trust-section article {
    padding: 22px;
    border: 1px solid #dfe2e5;
    border-radius: 8px;
    background: #fff;
}

.trust-section > div {
    background: linear-gradient(135deg, var(--primary), #242629);
    color: #fff;
}

.trust-section h2,
.marketing-panel h2,
.marketplace-panel h2,
.client-hero h1 {
    margin: 8px 0 0;
    font-size: clamp(1.8rem, 3vw, 3.2rem);
    line-height: 1.04;
}

.trust-section article {
    display: grid;
    gap: 10px;
}

.trust-section article strong {
    font-size: 1.05rem;
}

.trust-section article span,
.marketing-panel p,
.marketplace-panel p,
.client-hero p {
    color: #6b7076;
}

.marketing-panel,
.marketplace-panel,
.client-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: clamp(26px, 5vw, 44px);
    border-radius: 8px;
    background: linear-gradient(120deg, var(--primary) 0%, #202225 64%, var(--accent) 100%);
    color: #fff;
}

.marketplace-panel {
    background: linear-gradient(120deg, #050505 0%, #202225 70%, #3b3f44 100%);
    border: 1px solid #1f2226;
}

.marketplace-panel .eyebrow {
    color: #ffe600;
}

.button.marketplace {
    border-color: #ffe600;
    background: #ffe600;
    color: #111;
}

.marketing-panel p,
.marketplace-panel p,
.client-hero p {
    max-width: 680px;
    color: rgba(255, 255, 255, 0.72);
}

.coverage-calculator {
    display: grid;
    gap: 10px;
    margin: 18px 0;
    padding: 16px;
    border: 1px solid #dfe2e5;
    border-radius: 8px;
    background: #f4f5f6;
}

.coverage-calculator label {
    display: grid;
    gap: 7px;
}

.coverage-calculator strong {
    color: #111214;
}

.quote-steps {
    width: min(980px, calc(100% - 32px));
    margin: -24px auto 30px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.quote-steps article {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border: 1px solid #dfe2e5;
    background: #fff;
}

.quote-steps strong {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
}

.client-stats {
    width: min(1220px, calc(100% - 32px));
    margin: 22px auto;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.client-stats article,
.client-panel,
.admin-insights article {
    padding: 22px;
    border: 1px solid #dfe2e5;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 12px 28px rgba(5, 5, 5, 0.05);
}

.client-stats span,
.admin-insights span {
    color: #6b7076;
    font-weight: 800;
}

.client-stats strong,
.admin-insights strong {
    display: block;
    margin-top: 6px;
    font-size: 2rem;
}

.client-layout {
    width: min(1220px, calc(100% - 32px));
    margin: 0 auto 78px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 18px;
}

.quote-history {
    display: grid;
    gap: 10px;
}

.quote-history article {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px;
    border: 1px solid #dfe2e5;
    border-radius: 8px;
    background: #f7f8f9;
}

.quote-history span,
.client-data dt,
.admin-list span,
.admin-list small {
    color: #6b7076;
}

.client-data {
    display: grid;
    gap: 12px;
}

.client-data div {
    display: grid;
    gap: 3px;
}

.floating-quote {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 40;
    display: grid;
    min-width: 220px;
    gap: 2px;
    padding: 13px 16px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    background: var(--primary);
    color: #fff;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

.floating-quote span {
    color: rgba(255, 255, 255, 0.66);
    font-size: 0.76rem;
    font-weight: 900;
    text-transform: uppercase;
}

.admin-insights {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.admin-charts {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(320px, 0.85fr);
    gap: 14px;
    margin-bottom: 18px;
}

.chart-panel {
    display: grid;
    gap: 18px;
}

.chart-panel .panel-head {
    margin-bottom: 0;
}

.chart-panel .panel-head span {
    color: var(--muted);
    font-size: 0.86rem;
    font-weight: 750;
}

.monthly-chart {
    position: relative;
    min-height: 252px;
    padding: 18px 14px 6px;
    border: 1px solid #e1e4e8;
    border-radius: 8px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 248, 249, 0.96)),
        repeating-linear-gradient(0deg, transparent 0 47px, rgba(5, 5, 5, 0.06) 48px);
    overflow: visible;
}

.step-chart {
    position: absolute;
    inset: 12px 14px 42px;
    width: calc(100% - 28px);
    height: calc(100% - 54px);
    pointer-events: none;
}

.step-chart-grid,
.step-chart-line {
    fill: none;
    vector-effect: non-scaling-stroke;
}

.step-chart-grid {
    stroke: rgba(5, 5, 5, 0.16);
    stroke-width: 1;
}

.step-chart-line {
    stroke: #050505;
    stroke-width: 3;
    stroke-linejoin: round;
    stroke-linecap: round;
}

.monthly-bars {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    align-items: end;
    gap: 8px;
    min-height: 214px;
}

.monthly-bar {
    position: relative;
    display: grid;
    gap: 8px;
    align-items: end;
    min-width: 0;
    outline: none;
}

.bar-track {
    position: relative;
    height: 178px;
    border-radius: 8px;
    background: rgba(5, 5, 5, 0.06);
    overflow: visible;
}

.bar-value,
.bar-count {
    position: absolute;
    bottom: 0;
    border-radius: 8px 8px 0 0;
}

.bar-value {
    left: 18%;
    width: 64%;
    background: linear-gradient(180deg, #111214, #4b5563);
}

.bar-count {
    right: 12%;
    width: 18%;
    background: #b8bec5;
}

.chart-tooltip {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 10px);
    z-index: 5;
    min-width: 142px;
    padding: 10px 11px;
    border: 1px solid rgba(5, 5, 5, 0.12);
    border-radius: 8px;
    background: #050505;
    color: #fff;
    box-shadow: 0 14px 30px rgba(5, 5, 5, 0.22);
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 6px);
    transition: opacity 0.16s ease, transform 0.16s ease;
}

.chart-tooltip::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -6px;
    width: 12px;
    height: 12px;
    background: #050505;
    transform: translateX(-50%) rotate(45deg);
}

.chart-tooltip b,
.chart-tooltip em,
.chart-tooltip small {
    position: relative;
    z-index: 1;
    display: block;
}

.chart-tooltip b {
    margin-bottom: 4px;
    font-size: 0.76rem;
    text-transform: uppercase;
}

.chart-tooltip em {
    font-style: normal;
    font-size: 1rem;
    font-weight: 900;
}

.chart-tooltip small {
    margin-top: 2px;
    color: rgba(255, 255, 255, 0.68);
    font-weight: 800;
}

.monthly-bar:hover .chart-tooltip,
.monthly-bar:focus .chart-tooltip,
.monthly-bar:focus-within .chart-tooltip {
    opacity: 1;
    transform: translate(-50%, 0);
}

.monthly-bar:hover .bar-track,
.monthly-bar:focus .bar-track {
    background: rgba(5, 5, 5, 0.1);
}

.monthly-bar strong {
    color: #6b7076;
    font-size: 0.72rem;
    text-align: center;
    white-space: nowrap;
}

.chart-legend {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    color: #6b7076;
    font-size: 0.86rem;
    font-weight: 800;
}

.chart-legend span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.chart-legend i,
.donut-list i {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 99px;
}

.legend-total {
    background: #111214;
}

.legend-count {
    background: #b8bec5;
}

.donut-wrap {
    display: grid;
    gap: 18px;
    justify-items: center;
}

.donut-chart {
    position: relative;
    width: min(220px, 72vw);
    aspect-ratio: 1;
    display: grid;
    align-content: center;
    place-items: center;
    border-radius: 50%;
    background: conic-gradient(var(--donut));
    box-shadow: inset 0 0 0 1px rgba(5, 5, 5, 0.06);
}

.donut-chart::after {
    content: "";
    position: absolute;
    inset: 28%;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 0 1px rgba(5, 5, 5, 0.06);
}

.donut-chart strong,
.donut-chart span {
    position: relative;
    z-index: 1;
}

.donut-chart strong {
    margin-top: 4px;
    font-size: 2.45rem;
    line-height: 1;
}

.donut-chart span {
    margin-top: 6px;
    color: #6b7076;
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.donut-list {
    width: 100%;
    display: grid;
    gap: 9px;
}

.donut-list div {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 9px;
    padding: 10px 12px;
    border: 1px solid #e1e4e8;
    border-radius: 8px;
    background: #f7f8f9;
}

.donut-list span {
    overflow: hidden;
    color: #4b5563;
    font-weight: 850;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.donut-list strong {
    font-size: 0.84rem;
}

.admin-list {
    display: grid;
    gap: 10px;
}

.admin-list a,
.admin-list > span {
    display: grid;
    gap: 4px;
    padding: 12px;
    border: 1px solid #dfe2e5;
    border-radius: 8px;
    background: #f7f8f9;
}

.admin-dashboard-lists {
    margin-bottom: 18px;
}

.admin-address-cell {
    min-width: 260px;
    display: grid;
    gap: 8px;
}

.admin-customer-details {
    min-width: min(620px, 78vw);
}

.admin-customer-details .form-grid,
.admin-customer-details .address-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-customer-details .customer-form-section {
    padding: 12px;
}

.admin-address-cell textarea {
    width: 100%;
    min-height: 58px;
    resize: vertical;
}

.quote-admin-note {
    margin: 12px 0;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f7f8f9;
    color: var(--ink);
}

.integration-status-box {
    display: grid;
    gap: 8px;
    margin: 12px 0;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.integration-status-box span,
.integration-status-box small {
    color: var(--muted);
}

.integration-status-box form {
    margin: 0;
}

.cron-url {
    display: block;
    overflow-x: auto;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f7f8f9;
    color: var(--ink);
    white-space: nowrap;
}

.integration-welcome form {
    margin: 0;
}

.integration-note {
    margin-bottom: 18px;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f7f8f9;
}

.integration-note p {
    margin: 6px 0 0;
    color: var(--muted);
}

.ml-oauth-note {
    display: grid;
    gap: 10px;
    border-color: #cfd4da;
    background: linear-gradient(135deg, #fff, #eef1f4);
}

.ml-oauth-note small {
    color: #69717a;
    font-weight: 800;
}

.ml-oauth-note .inline-form {
    margin: 2px 0 0;
}

.ml-event-list {
    display: grid;
    gap: 10px;
}

.ml-event-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px 14px;
    align-items: start;
    padding: 14px;
    border: 1px solid #dfe3e7;
    border-radius: 12px;
    background: #fff;
}

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

.ml-event-card strong {
    color: #050505;
    font-weight: 950;
}

.ml-event-card div span,
.ml-event-card small {
    color: #68707a;
    font-size: 0.84rem;
    overflow-wrap: anywhere;
}

.ml-event-card small {
    grid-column: 1 / -1;
}

.integration-file-form {
    align-items: center;
}

.integration-file-form input[type="file"] {
    min-width: min(100%, 360px);
}

.catalog-manual-form {
    margin-bottom: 16px;
}

.paste-catalog-form {
    margin: 14px 0;
}

.form-actions {
    display: flex;
    align-items: end;
    gap: 10px;
    flex-wrap: wrap;
}

.catalog-table {
    margin-top: 16px;
}

.button:disabled,
button:disabled {
    cursor: not-allowed;
    opacity: 0.48;
    transform: none;
}

.hero {
    grid-template-columns: minmax(0, 780px);
}

.hero-product {
    display: none !important;
}

.link-product-card {
    display: grid;
    grid-template-columns: minmax(220px, 0.6fr) minmax(280px, 1fr);
    gap: 14px;
    align-items: start;
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
}

.link-product-card > div:first-child {
    display: grid;
    gap: 4px;
}

.link-product-card small,
.link-variants span {
    color: var(--muted);
}

.link-product-card label,
.link-variants label {
    display: grid;
    gap: 7px;
}

.link-product-card select {
    width: 100%;
}

.link-variants {
    grid-column: 2;
    display: grid;
    gap: 10px;
}

/* Home 2026-07: banner institucional anexado e Mercado Livre no menu. */
.site-nav a.marketplace-nav {
    position: relative;
    display: inline-flex;
    min-width: 150px;
    min-height: 38px;
    align-items: center;
    justify-content: center;
    padding: 9px 15px;
    border: 1px solid rgba(255, 230, 0, 0.95);
    border-radius: 4px;
    background: #ffe600;
    color: #171717 !important;
    font-weight: 900;
    letter-spacing: 0;
    line-height: 1;
    white-space: nowrap;
    overflow: hidden;
    box-shadow: 0 0 0 rgba(255, 230, 0, 0.34);
    animation: marketplacePulse 1.9s ease-in-out infinite;
}

.site-nav a.marketplace-nav::before {
    content: "";
    position: absolute;
    top: -35%;
    bottom: -35%;
    left: -55%;
    width: 42%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.88), transparent);
    transform: skewX(-18deg);
    animation: marketplaceSweep 2.6s ease-in-out infinite;
}

.site-nav a.marketplace-nav span {
    position: relative;
    z-index: 1;
}

.site-nav a.marketplace-nav:hover {
    color: #000 !important;
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(255, 230, 0, 0.28);
}

@keyframes marketplacePulse {
    0%,
    100% {
        box-shadow: 0 0 0 rgba(255, 230, 0, 0.2);
    }

    50% {
        box-shadow: 0 0 24px rgba(255, 230, 0, 0.38);
    }
}

@keyframes marketplaceSweep {
    0% {
        left: -55%;
    }

    48%,
    100% {
        left: 118%;
    }
}

.hero {
    grid-template-columns: minmax(280px, 560px);
    align-items: center;
    min-height: clamp(480px, calc(100svh - 170px), 620px);
    padding: clamp(34px, 4.4vw, 56px) clamp(20px, 7vw, 96px);
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.99) 0%, rgba(255, 255, 255, 0.96) 30%, rgba(255, 255, 255, 0.68) 47%, rgba(255, 255, 255, 0.16) 68%, rgba(255, 255, 255, 0) 100%),
        var(--hero-image) center right / cover no-repeat;
    color: #080808;
}

.hero::after {
    height: 92px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0), #f3f4f5);
}

.hero-copy {
    max-width: 560px;
}

.hero .eyebrow {
    color: #111214;
}

.hero h1 {
    max-width: 520px;
    color: #050505;
    font-size: clamp(2.15rem, 3.7vw, 4.15rem);
    line-height: 0.98;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.22);
}

.hero p {
    max-width: 520px;
    margin: 16px 0 20px;
    color: #34383d;
    font-size: clamp(0.96rem, 1.14vw, 1.08rem);
    font-weight: 600;
}

.hero-bullets {
    display: flex;
    gap: 9px;
    flex-wrap: wrap;
    margin: 0 0 18px;
}

.hero-bullets span {
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    padding: 8px 12px;
    border-radius: 4px;
    background: rgba(5, 5, 5, 0.9);
    color: #fff;
    font-size: 0.76rem;
    font-weight: 850;
    letter-spacing: 0;
    text-transform: uppercase;
}

.hero .button.light {
    border-color: #050505;
    background: #050505;
    color: #fff;
}

.hero .button.ghost-light {
    border-color: rgba(5, 5, 5, 0.42);
    background: rgba(255, 255, 255, 0.5);
    color: #050505;
}

@media (max-width: 980px) {
    .hero {
        min-height: 620px;
        background:
            linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.9) 42%, rgba(255, 255, 255, 0.2) 78%, rgba(255, 255, 255, 0) 100%),
            var(--hero-image) 66% bottom / cover no-repeat;
    }

    .site-nav a.marketplace-nav {
        align-self: stretch;
        min-width: 0;
        width: 100%;
    }

    .site-nav.is-open {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        width: 100%;
    }

    .site-nav.is-open a {
        width: 100%;
    }
}

@media (max-width: 640px) {
    .hero {
        min-height: 690px;
        padding-top: 42px;
        align-items: start;
        background:
            linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(255, 255, 255, 0.94) 42%, rgba(255, 255, 255, 0.26) 73%, rgba(255, 255, 255, 0) 100%),
            var(--hero-image) 68% bottom / auto 58% no-repeat,
            #f3f4f5;
    }

    .hero h1 {
        font-size: clamp(2rem, 9.2vw, 2.7rem);
    }

    .hero p {
        margin: 16px 0 20px;
        font-size: 0.92rem;
    }

    .hero-bullets {
        gap: 7px;
        margin-bottom: 14px;
    }

    .hero-bullets span {
        min-height: 30px;
        padding: 6px 9px;
        font-size: 0.68rem;
    }
}

.advanced-integration {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 14px;
    background: #fff;
}

.advanced-integration summary {
    cursor: pointer;
    font-weight: 900;
}

.advanced-integration .admin-form {
    margin-top: 14px;
}

@media (max-width: 980px) {
    .category-strip,
    .trust-section,
    .client-layout,
    .admin-insights,
    .quote-steps {
        grid-template-columns: 1fr 1fr;
    }

    .trust-section > div,
    .client-layout .client-panel:first-child {
        grid-column: 1 / -1;
    }

    .marketing-panel,
    .marketplace-panel,
    .client-hero,
    .catalog-helper,
    .quote-history article {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 680px) {
    .category-strip,
    .trust-section,
    .client-stats,
    .client-layout,
    .admin-insights,
    .quote-steps {
        grid-template-columns: 1fr;
    }

    .floating-quote {
        right: 12px;
        bottom: 12px;
        left: 12px;
        min-width: 0;
    }

    .integration-panel {
        padding: 16px;
    }

    .integration-note {
        padding: 12px;
    }

    .integration-file-form {
        display: grid;
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .integration-file-form input[type="file"],
    .integration-file-form button,
    .cron-url {
        width: 100%;
    }

    .cron-url {
        white-space: normal;
        word-break: break-all;
    }

    .link-product-card {
        grid-template-columns: 1fr;
    }

    .link-variants {
        grid-column: auto;
    }
}

/* Refinos 2026-07: cards da home e PDF de orcamento. */
.trust-section {
    grid-template-columns: minmax(280px, 0.9fr) repeat(2, minmax(220px, 1fr));
    gap: 16px;
}

.trust-section > div {
    grid-row: span 2;
    display: grid;
    align-content: center;
    min-height: 320px;
}

.trust-section h2 {
    max-width: 12ch;
    font-size: clamp(2rem, 2.55vw, 3rem);
    line-height: 1.05;
}

.trust-section article {
    min-height: 150px;
    align-content: start;
}

.trust-section article span {
    max-width: 28ch;
}

.marketing-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 28px;
    align-items: center;
    padding: clamp(28px, 4vw, 46px);
    background: linear-gradient(125deg, #050505 0%, #191b1d 58%, #6b7076 100%);
}

.marketing-panel h2 {
    max-width: 760px;
    font-size: clamp(2rem, 3.4vw, 3.75rem);
    line-height: 1.02;
}

.marketing-panel p {
    max-width: 720px;
    color: rgba(255, 255, 255, 0.82);
}

.marketing-panel .eyebrow {
    width: fit-content;
    color: rgba(255, 255, 255, 0.9);
    padding: 3px 8px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
    text-shadow: none;
}

.marketing-panel .button {
    min-width: 230px;
    text-align: left;
}

.quote-doc-header {
    align-items: center;
    padding: 22px 26px;
    border: 0;
    border-radius: 8px;
    background:
        linear-gradient(120deg, rgba(5, 5, 5, 0.95) 0%, rgba(28, 30, 32, 0.94) 60%, rgba(107, 112, 118, 0.92) 100%),
        var(--hero-image) center right / cover no-repeat;
    color: #fff;
}

.quote-doc-header img {
    width: 220px;
    height: 64px;
    object-fit: contain;
    object-position: left center;
}

.quote-doc-header p,
.quote-doc-header span,
.quote-doc-header small {
    color: rgba(255, 255, 255, 0.78);
}

.quote-doc-header strong {
    color: #fff;
}

/* Ajustes finais da home: legibilidade e respiro entre blocos. */
.trust-section > div .eyebrow {
    width: fit-content;
    color: rgba(255, 255, 255, 0.76);
    text-shadow: none;
}

.marketing-panel {
    margin-top: clamp(38px, 5vw, 64px);
    margin-bottom: clamp(38px, 5vw, 64px);
}

@media (max-width: 980px) {
    .trust-section {
        grid-template-columns: 1fr 1fr;
    }

    .trust-section > div {
        grid-column: 1 / -1;
        grid-row: auto;
        min-height: 0;
    }

    .trust-section h2 {
        max-width: 100%;
    }

    .marketing-panel {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 860px) {
    .form-grid,
    .form-grid.compact,
    .address-grid,
    .admin-customer-details .form-grid,
    .admin-customer-details .address-grid {
        grid-template-columns: 1fr;
    }

    .auth-frame {
        grid-template-columns: 1fr;
    }

    .auth-aside {
        min-height: 360px;
    }
}

@media (max-width: 1100px) {
    .admin-charts {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 680px) {
    .monthly-chart {
        padding-top: 58px;
        overflow-x: auto;
    }

    .monthly-bars {
        min-width: 680px;
    }

    .step-chart {
        min-width: 652px;
    }

    .donut-wrap {
        justify-items: stretch;
    }

    .donut-chart {
        justify-self: center;
    }
}

.privacy-check {
    align-items: flex-start;
    gap: 10px;
}

.privacy-check input {
    width: auto;
    min-height: 0;
    margin-top: 3px;
}

.admin-device-block {
    display: grid;
    min-height: 100vh;
    place-items: center;
    padding: 24px;
    background: linear-gradient(135deg, #050505, #202225);
}

.admin-device-block main {
    width: min(100%, 460px);
    padding: 28px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.96);
}

.admin-device-block img {
    width: 180px;
    margin-bottom: 18px;
}

.admin-device-block span {
    display: inline-block;
    margin-bottom: 8px;
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.admin-device-block h1 {
    margin-bottom: 10px;
    font-size: 2rem;
}

.admin-device-block p {
    margin-bottom: 20px;
    color: var(--muted);
}

@media (max-width: 640px) {
    main {
        padding-inline: 12px;
    }

    .topline {
        font-size: 0.72rem;
        text-align: center;
    }

    .site-header {
        top: 0;
        padding: 12px;
        border-radius: 0;
    }

    .brand img {
        width: 146px;
    }

    .product-card,
    .quote-summary,
    .client-panel,
    .empty-panel,
    .customer-form-section {
        border-radius: 8px;
    }

    .quote-layout,
    .client-layout {
        gap: 14px;
    }
}

@media print {
    body {
        background: #fff;
    }

    .no-print {
        display: none !important;
    }

    .pdf-body {
        padding: 0;
    }

    .quote-document {
        width: 100%;
        box-shadow: none;
        border-radius: 0;
        padding: 0;
    }

    .quote-doc-table th,
    .quote-doc-table td {
        font-size: 11px;
    }
}

/* Ajustes finais de alinhamento público e experiência mobile dedicada. */
.topline {
    background: #050505;
}

.site-header {
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
    padding-left: 0;
    padding-right: 0;
}

.hero,
.stats-band,
.category-strip,
.section-head,
.product-grid,
.trust-section,
.segments-showcase,
.marketing-panel,
.distributor-strip,
.page-title,
.filters,
.catalog-helper,
.product-detail,
.about-layout,
.contact-layout,
.quote-layout,
.client-hero,
.client-stats,
.client-layout,
.chat-shell,
.legal-layout,
.quote-success,
.empty-panel,
.site-footer {
    width: min(1200px, calc(100% - 32px));
    margin-left: auto;
    margin-right: auto;
}

.hero {
    min-height: 560px;
    border-bottom: 3px solid #111;
}

.hero-copy {
    max-width: 500px;
}

.hero h1 {
    max-width: 480px;
    font-size: clamp(3.25rem, 5.1vw, 5.7rem);
}

.hero p {
    max-width: 520px;
}

.segments-showcase,
.marketing-panel,
.distributor-strip {
    margin-top: 0;
}

.trust-section {
    align-items: stretch;
}

.trust-section > div .eyebrow,
.marketing-panel .eyebrow {
    color: #fff;
    background: transparent;
    text-shadow: none;
}

.mobile-body {
    min-height: 100vh;
    padding-bottom: 82px;
    background: #f1f2f3;
    color: #111214;
    font-family: Montserrat, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

.mobile-top {
    position: sticky;
    top: 0;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid #dde1e5;
    backdrop-filter: blur(14px);
}

.mobile-top img {
    width: 138px;
    height: 42px;
    object-fit: contain;
    object-position: left center;
}

.mobile-top-action {
    min-height: 36px;
    padding: 8px 12px;
    border-radius: 8px;
    background: #050505;
    color: #fff;
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.mobile-top-action.mobile-marketplace-action {
    border: 1px solid rgba(5, 5, 5, 0.08);
    background: #ffe100;
    color: #050505;
    box-shadow: 0 10px 24px rgba(255, 225, 0, 0.24);
    font-size: 0.72rem;
}

.mobile-shell {
    display: grid;
    gap: 18px;
    width: min(100%, 480px);
    margin: 0 auto;
    padding: 14px;
}

.mobile-hero {
    min-height: 580px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 12px;
    padding: 24px;
    border-radius: 0 0 18px 18px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.7) 33%, rgba(255, 255, 255, 0.98) 62%),
        var(--hero-image) 64% 0 / auto 58% no-repeat,
        #fff;
    box-shadow: 0 18px 42px rgba(17, 17, 17, 0.08);
}

.mobile-hero span,
.mobile-section-head span,
.mobile-cta span {
    font-size: 0.72rem;
    font-weight: 900;
    text-transform: uppercase;
    color: #646a70;
}

.mobile-hero h1,
.mobile-section-head h2,
.mobile-cta h2 {
    margin: 0;
    color: #050505;
    line-height: 0.96;
    letter-spacing: 0;
}

.mobile-hero h1 {
    max-width: 360px;
    font-size: clamp(2.7rem, 14vw, 4.35rem);
}

.mobile-hero p,
.mobile-cta p {
    margin: 0;
    color: #43484d;
    font-size: 0.98rem;
}

.mobile-actions,
.mobile-quick {
    display: grid;
    gap: 10px;
}

.mobile-actions {
    grid-template-columns: 1fr;
    margin-top: 4px;
}

.mobile-actions .button,
.mobile-cta .button {
    width: 100%;
    min-height: 52px;
}

.mobile-quick {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mobile-quick a,
.mobile-section,
.mobile-product,
.mobile-cta {
    border: 1px solid #dfe3e7;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 14px 34px rgba(17, 17, 17, 0.06);
}

.mobile-quick a {
    display: grid;
    gap: 4px;
    min-height: 86px;
    padding: 14px 10px;
}

.mobile-quick strong,
.mobile-product strong {
    font-size: 0.86rem;
    line-height: 1.15;
}

.mobile-quick span,
.mobile-product span,
.mobile-product small {
    color: #6b7076;
    font-size: 0.72rem;
    font-weight: 700;
}

.mobile-section,
.mobile-cta {
    display: grid;
    gap: 14px;
    padding: 18px;
}

.mobile-section-head {
    display: grid;
    gap: 6px;
}

.mobile-section-head h2,
.mobile-cta h2 {
    font-size: 2rem;
}

.mobile-segments {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.mobile-segments a {
    min-height: 74px;
    display: flex;
    align-items: flex-end;
    padding: 12px;
    border-radius: 10px;
    background: linear-gradient(135deg, #050505, #34383d);
    color: #fff;
    font-weight: 900;
}

.mobile-links {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.mobile-links a {
    display: grid;
    min-height: 44px;
    place-items: center;
    border: 1px solid #dfe3e7;
    border-radius: 10px;
    background: #fff;
    font-size: 0.78rem;
    font-weight: 900;
}

.mobile-products {
    display: grid;
    gap: 12px;
}

.mobile-product {
    display: grid;
    grid-template-columns: 92px 1fr;
    column-gap: 12px;
    align-items: center;
    padding: 10px;
}

.mobile-product img {
    grid-row: span 3;
    width: 92px;
    height: 92px;
    object-fit: contain;
    border-radius: 10px;
    background: #f6f7f8;
}

.mobile-cta {
    color: #fff;
    background: linear-gradient(135deg, #050505, #3f4448);
}

.mobile-cta h2,
.mobile-cta p,
.mobile-cta span {
    color: #fff;
}

.mobile-bottom-nav {
    position: fixed;
    right: 12px;
    bottom: 12px;
    left: 12px;
    z-index: 35;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    width: min(456px, calc(100% - 24px));
    margin: 0 auto;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 16px;
    background: rgba(5, 5, 5, 0.94);
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.24);
    backdrop-filter: blur(14px);
}

.mobile-bottom-nav a {
    display: grid;
    min-height: 42px;
    place-items: center;
    border-radius: 10px;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 900;
}

.mobile-bottom-nav a:hover {
    background: rgba(255, 255, 255, 0.12);
}

@media (max-width: 980px) {
    .site-header,
    .hero,
    .stats-band,
    .category-strip,
    .section-head,
    .product-grid,
    .trust-section,
    .segments-showcase,
    .marketing-panel,
    .distributor-strip,
    .page-title,
    .filters,
    .catalog-helper,
    .product-detail,
    .about-layout,
    .contact-layout,
    .quote-layout,
    .client-hero,
    .client-stats,
    .client-layout,
    .chat-shell,
    .legal-layout,
    .quote-success,
    .empty-panel,
    .site-footer {
        width: min(1200px, calc(100% - 24px));
    }
}

@media (max-width: 520px) {
    .mobile-shell {
        padding: 0 12px 14px;
    }

    .mobile-hero {
        margin-right: -12px;
        margin-left: -12px;
        border-radius: 0 0 20px 20px;
    }
}

/* Header compacto: menu em uma linha e alinhado ao logo. */
.site-header {
    grid-template-columns: 150px minmax(0, 1fr) auto;
    min-height: 74px;
    gap: 14px;
    align-items: center;
    padding-top: 10px;
    padding-bottom: 10px;
}

.brand {
    display: flex;
    align-items: center;
    min-width: 0;
}

.brand img {
    width: 150px;
    height: 48px;
    object-fit: contain;
    object-position: left center;
}

.site-nav {
    min-width: 0;
    gap: clamp(9px, 1vw, 15px);
    justify-content: flex-start;
    flex-wrap: nowrap;
}

.site-nav a {
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    padding: 6px 0;
    font-size: clamp(0.66rem, 0.72vw, 0.78rem);
    font-weight: 900;
    line-height: 1;
    white-space: nowrap;
}

.site-nav a.marketplace-nav {
    min-width: 132px;
    min-height: 36px;
    padding: 8px 12px;
    font-size: clamp(0.66rem, 0.72vw, 0.78rem);
}

.header-actions {
    flex-wrap: nowrap;
    gap: 6px;
    align-items: center;
    justify-content: flex-end;
}

.header-actions .icon-link,
.header-actions .button.small {
    min-height: 34px;
    padding: 7px 10px;
    font-size: clamp(0.66rem, 0.72vw, 0.78rem);
    line-height: 1;
    white-space: nowrap;
}

.header-actions .button.dark {
    padding-right: 12px;
    padding-left: 12px;
}

@media (max-width: 1120px) {
    .site-header {
        grid-template-columns: 132px minmax(0, 1fr) auto;
        gap: 10px;
    }

    .brand img {
        width: 132px;
        height: 44px;
    }

    .site-nav {
        gap: 9px;
    }

    .site-nav a,
    .site-nav a.marketplace-nav,
    .header-actions .icon-link,
    .header-actions .button.small {
        font-size: 0.64rem;
    }

    .site-nav a.marketplace-nav {
        min-width: 118px;
    }
}

@media (max-width: 980px) {
    .site-header {
        grid-template-columns: 1fr auto;
    }

    .brand img {
        width: 150px;
    }

    .site-nav.is-open,
    .header-actions.is-open {
        align-items: center;
        flex-wrap: wrap;
    }
}

/* Páginas mobile dedicadas. */
.mobile-page-title {
    display: grid;
    gap: 8px;
    padding: 20px 4px 4px;
}

.mobile-page-title span,
.mobile-product-row span,
.mobile-detail > span {
    color: #6b7076;
    font-size: 0.72rem;
    font-weight: 900;
    text-transform: uppercase;
}

.mobile-page-title h1,
.mobile-detail h1 {
    margin: 0;
    color: #050505;
    font-size: clamp(2rem, 10vw, 3.1rem);
    line-height: 0.98;
}

.mobile-search,
.mobile-card-form {
    display: grid;
    gap: 12px;
    padding: 16px;
    border: 1px solid #dfe3e7;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 14px 34px rgba(17, 17, 17, 0.06);
}

.mobile-search input,
.mobile-search select,
.mobile-card-form input,
.mobile-card-form select,
.mobile-card-form textarea {
    width: 100%;
    min-height: 46px;
    border: 1px solid #d7dce1;
    border-radius: 8px;
    padding: 10px 12px;
    background: #fff;
}

.mobile-card-form label {
    display: grid;
    gap: 6px;
}

.mobile-card-form label > span {
    color: #4f555b;
    font-size: 0.78rem;
    font-weight: 900;
}

.mobile-product-list {
    display: grid;
    gap: 10px;
}

.mobile-product-row {
    display: grid;
    grid-template-columns: 82px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 10px;
    border: 1px solid #dfe3e7;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 10px 26px rgba(17, 17, 17, 0.05);
}

.mobile-product-thumb img,
.mobile-cart-item img {
    width: 82px;
    height: 82px;
    object-fit: contain;
    border-radius: 10px;
    background: #f6f7f8;
}

.mobile-product-row h3 {
    margin: 3px 0;
    font-size: 0.95rem;
    line-height: 1.15;
}

.mobile-product-row small {
    color: #5c6369;
    font-size: 0.72rem;
    font-weight: 700;
}

.mobile-list-action {
    display: grid;
    min-width: 42px;
    min-height: 36px;
    place-items: center;
    border-radius: 8px;
    background: #050505;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 900;
}

.mobile-detail {
    display: grid;
    gap: 14px;
    padding: 16px;
    border: 1px solid #dfe3e7;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 14px 34px rgba(17, 17, 17, 0.06);
}

.mobile-detail > img {
    width: 100%;
    max-height: 310px;
    object-fit: contain;
    border-radius: 12px;
    background: #f6f7f8;
}

.mobile-detail p {
    margin: 0;
    color: #535a60;
}

.mobile-price {
    font-size: 1.8rem;
}

.mobile-metrics,
.mobile-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.mobile-metrics div,
.mobile-summary div {
    display: grid;
    gap: 4px;
    padding: 12px;
    border-radius: 10px;
    background: #f3f4f5;
}

.mobile-metrics span,
.mobile-summary span {
    color: #6b7076;
    font-size: 0.72rem;
    font-weight: 900;
    text-transform: uppercase;
}

.mobile-reviews {
    display: grid;
    gap: 12px;
    padding: 16px;
    border: 1px solid #dfe3e7;
    border-radius: 14px;
    background:
        linear-gradient(135deg, rgba(5, 5, 5, 0.035), transparent 34%),
        #fff;
    box-shadow: 0 14px 34px rgba(17, 17, 17, 0.06);
}

.mobile-reviews .mobile-section-head {
    display: grid;
    gap: 5px;
}

.mobile-reviews .mobile-section-head h2 {
    font-size: clamp(1.45rem, 7vw, 2.1rem);
}

.mobile-review-list {
    display: grid;
    gap: 10px;
    max-height: 560px;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    padding-right: 6px;
    scrollbar-width: thin;
    scrollbar-color: rgba(5, 5, 5, 0.34) transparent;
}

.mobile-review-list::-webkit-scrollbar {
    width: 6px;
}

.mobile-review-list::-webkit-scrollbar-track {
    background: transparent;
}

.mobile-review-list::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(5, 5, 5, 0.28);
}

.mobile-review-card {
    position: relative;
    display: grid;
    gap: 12px;
    min-height: 168px;
    overflow: hidden;
    padding: 15px;
    border: 1px solid #d9dde2;
    border-radius: 16px;
    background: linear-gradient(180deg, #fff 0%, #f8f9fa 100%);
}

.mobile-review-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: #050505;
}

.mobile-review-head {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.mobile-review-head > span {
    display: inline-flex;
    gap: 1px;
    padding: 6px 8px;
    border-radius: 999px;
    background: #050505;
    color: #fff;
    font-size: 0.72rem;
    line-height: 1;
}

.mobile-review-head strong {
    color: #050505;
    font-size: 0.98rem;
    line-height: 1.2;
}

.mobile-review-card p {
    display: -webkit-box;
    overflow: hidden;
    margin: 0;
    color: #24282d;
    font-size: 0.92rem;
    line-height: 1.48;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.mobile-review-author {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr);
    column-gap: 10px;
    align-items: center;
    padding-top: 10px;
    border-top: 1px solid #e3e6ea;
}

.mobile-review-author > span {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    grid-row: span 2;
    border-radius: 50%;
    background: #050505;
    color: #fff;
    font-size: 0.82rem;
    font-weight: 950;
}

.mobile-review-author strong {
    color: #050505;
    font-size: 0.84rem;
    line-height: 1.1;
}

.mobile-review-author small {
    color: #69717a;
    font-size: 0.72rem;
    font-weight: 800;
}

.mobile-review-empty {
    border-style: dashed;
    background: #fafafa;
}

.mobile-review-login {
    display: grid;
    gap: 10px;
    padding: 16px;
    border: 1px solid #dfe3e7;
    border-radius: 16px;
    background: #fff;
}

.mobile-review-login p {
    margin: 0;
    color: #5f666d;
    font-size: 0.9rem;
    line-height: 1.45;
}

.mobile-cart-list {
    display: grid;
    gap: 10px;
}

.mobile-cart-item {
    display: grid;
    grid-template-columns: 82px 1fr;
    gap: 12px;
    align-items: center;
    padding: 10px;
    border: 1px solid #dfe3e7;
    border-radius: 12px;
    background: #fff;
}

.mobile-cart-item div {
    display: grid;
    gap: 6px;
}

.mobile-cart-item span {
    color: #5c6369;
    font-size: 0.76rem;
    font-weight: 700;
}

.mobile-cart-item input {
    width: 92px;
    min-height: 38px;
    border: 1px solid #d7dce1;
    border-radius: 8px;
    padding: 8px;
}

.mobile-details {
    border: 1px solid #dfe3e7;
    border-radius: 10px;
    padding: 12px;
}

.mobile-details summary {
    font-weight: 900;
    cursor: pointer;
}

.mobile-card-form .customer-form-section {
    width: 100%;
    padding: 14px;
    box-shadow: none;
}

.mobile-card-form .form-grid,
.mobile-card-form .form-grid.compact,
.mobile-card-form .form-grid.address-grid {
    grid-template-columns: 1fr;
}

.mobile-empty {
    display: grid;
    gap: 12px;
    padding: 18px;
    border: 1px solid #dfe3e7;
    border-radius: 12px;
    background: #fff;
}

.mobile-history {
    display: grid;
    gap: 10px;
}

.mobile-history article {
    display: grid;
    gap: 8px;
    padding: 12px;
    border: 1px solid #dfe3e7;
    border-radius: 10px;
    background: #f8f9fa;
}

.mobile-history article > div {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.mobile-history a,
.mobile-history button {
    border: 0;
    border-radius: 8px;
    padding: 8px 10px;
    background: #050505;
    color: #fff;
    font-size: 0.78rem;
    font-weight: 900;
}

.mobile-chat {
    display: grid;
    gap: 12px;
    padding: 16px;
    border: 1px solid #dfe3e7;
    border-radius: 12px;
    background: #fff;
}

@media (max-width: 390px) {
    .mobile-product-row {
        grid-template-columns: 72px minmax(0, 1fr);
    }

    .mobile-list-action {
        grid-column: 2;
        width: fit-content;
    }

    .mobile-product-thumb img,
    .mobile-cart-item img {
        width: 72px;
        height: 72px;
    }
}

/* Versao dedicada para cliente em tablet. */
.tablet-body {
    padding-bottom: 98px;
    background:
        linear-gradient(180deg, #eef0f2 0%, #f8f9fa 44%, #e5e8ea 100%);
}

.tablet-body .mobile-top {
    width: min(920px, calc(100% - 28px));
    margin: 0 auto;
    padding: 14px 18px;
    border-right: 1px solid #dde1e5;
    border-left: 1px solid #dde1e5;
    border-radius: 0 0 18px 18px;
    box-shadow: 0 16px 34px rgba(5, 5, 5, 0.07);
}

.tablet-body .mobile-top img {
    width: 168px;
    height: 52px;
}

.tablet-body .mobile-top-action {
    min-height: 42px;
    padding: 10px 16px;
}

.tablet-body .mobile-shell {
    width: min(920px, calc(100% - 28px));
    gap: 22px;
    padding: 20px 0 22px;
}

.tablet-body .mobile-hero {
    min-height: 430px;
    justify-content: center;
    padding: 40px;
    border-radius: 22px;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.99) 0%, rgba(255, 255, 255, 0.94) 42%, rgba(255, 255, 255, 0.28) 68%, rgba(255, 255, 255, 0) 100%),
        var(--hero-image) 92% center / auto 94% no-repeat,
        #fff;
}

.tablet-body .mobile-hero h1 {
    max-width: 500px;
    font-size: clamp(3.2rem, 6.8vw, 5rem);
}

.tablet-body .mobile-hero p {
    max-width: 500px;
    font-size: 1.05rem;
}

.tablet-body .mobile-actions {
    grid-template-columns: repeat(2, minmax(180px, 230px));
}

.tablet-body .mobile-quick,
.tablet-body .mobile-links {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tablet-body .mobile-quick a {
    min-height: 104px;
    padding: 18px;
}

.tablet-body .mobile-section,
.tablet-body .mobile-cta,
.tablet-body .mobile-search,
.tablet-body .mobile-card-form,
.tablet-body .mobile-detail,
.tablet-body .mobile-chat,
.tablet-body .mobile-empty {
    border-radius: 18px;
    box-shadow: 0 18px 42px rgba(5, 5, 5, 0.07);
}

.tablet-body .mobile-section,
.tablet-body .mobile-cta {
    padding: 24px;
}

.tablet-body .mobile-section-head h2,
.tablet-body .mobile-cta h2 {
    font-size: clamp(2.2rem, 4vw, 3.3rem);
}

.tablet-body .mobile-segments {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.tablet-body .mobile-segments a {
    min-height: 96px;
}

.tablet-body .mobile-product-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.tablet-body .mobile-product-row {
    grid-template-columns: 102px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    padding: 14px;
    border-radius: 16px;
}

.tablet-body .mobile-product-thumb img,
.tablet-body .mobile-cart-item img {
    width: 102px;
    height: 102px;
}

.tablet-body .mobile-product-row h3 {
    font-size: 1.05rem;
}

.tablet-body .mobile-list-action {
    grid-column: 2;
    width: fit-content;
    min-width: 68px;
}

.tablet-body .mobile-search {
    grid-template-columns: minmax(0, 1fr) 240px auto;
    align-items: end;
    padding: 18px;
}

.tablet-body .mobile-detail {
    grid-template-columns: minmax(260px, 0.9fr) minmax(0, 1.1fr);
    gap: 22px;
    align-items: start;
    padding: 24px;
}

.tablet-body .mobile-detail > img {
    grid-row: span 7;
    max-height: 440px;
}

.tablet-body .mobile-metrics,
.tablet-body .mobile-summary {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.tablet-body .mobile-card-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    padding: 22px;
}

.tablet-body .mobile-reviews {
    padding: 22px;
}

.tablet-body .mobile-review-list {
    max-height: 590px;
}

.tablet-body .mobile-review-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tablet-body .mobile-review-form label:last-of-type,
.tablet-body .mobile-review-form .button.full {
    grid-column: 1 / -1;
}

.tablet-body .mobile-card-form .customer-form-section,
.tablet-body .mobile-card-form .wide,
.tablet-body .mobile-card-form .button.full,
.tablet-body .mobile-card-form > button {
    grid-column: 1 / -1;
}

.tablet-body .mobile-card-form .form-grid,
.tablet-body .mobile-card-form .form-grid.compact,
.tablet-body .mobile-card-form .form-grid.address-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tablet-body .mobile-cart-item {
    grid-template-columns: 102px minmax(0, 1fr);
    padding: 14px;
    border-radius: 16px;
}

.tablet-body .mobile-history {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tablet-body .mobile-chat .chat-window {
    min-height: 420px;
}

.tablet-body .mobile-bottom-nav {
    width: min(720px, calc(100% - 32px));
    grid-template-columns: repeat(4, minmax(0, 1fr));
    padding: 10px;
    border-radius: 18px;
}

.tablet-body .mobile-bottom-nav a {
    min-height: 48px;
    font-size: 0.78rem;
}

@media (max-width: 760px) {
    .tablet-body .mobile-shell,
    .tablet-body .mobile-top {
        width: min(100%, calc(100% - 20px));
    }

    .tablet-body .mobile-actions,
    .tablet-body .mobile-search,
    .tablet-body .mobile-product-list,
    .tablet-body .mobile-detail,
    .tablet-body .mobile-card-form,
    .tablet-body .mobile-card-form .form-grid,
    .tablet-body .mobile-card-form .form-grid.compact,
    .tablet-body .mobile-card-form .form-grid.address-grid,
    .tablet-body .mobile-metrics,
    .tablet-body .mobile-summary,
    .tablet-body .mobile-history {
        grid-template-columns: 1fr;
    }

    .tablet-body .mobile-detail > img,
    .tablet-body .mobile-card-form .customer-form-section,
    .tablet-body .mobile-card-form .wide,
    .tablet-body .mobile-card-form .button.full,
    .tablet-body .mobile-card-form > button {
        grid-column: auto;
    }

    .tablet-body .mobile-hero {
        min-height: 600px;
        justify-content: flex-end;
        background:
            linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.72) 34%, rgba(255, 255, 255, 0.98) 64%),
            var(--hero-image) 64% 0 / auto 58% no-repeat,
            #fff;
    }
}

/* Repaginacao desktop premium 2026-07-13. */
@media (min-width: 981px) {
    body:not(.admin-body):not(.mobile-body) {
        background:
            radial-gradient(circle at 18% 0%, rgba(255, 255, 255, 0.96), transparent 34%),
            linear-gradient(180deg, #eef0f2 0%, #f8f9fa 38%, #e7e9eb 100%);
    }

    body:not(.admin-body):not(.mobile-body) main {
        padding-bottom: 78px;
        background:
            linear-gradient(180deg, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0) 340px),
            linear-gradient(90deg, rgba(5, 5, 5, 0.04) 0 1px, transparent 1px 100%) 0 0 / 56px 56px;
    }

    body:not(.admin-body):not(.mobile-body) .topline {
        padding: 8px 20px;
        background: #030303;
        color: #fff;
        font-size: 0.78rem;
        font-weight: 900;
        letter-spacing: 0;
    }

    body:not(.admin-body):not(.mobile-body) .site-header {
        width: min(1200px, calc(100% - 32px));
        min-height: 72px;
        margin: 0 auto;
        padding: 10px 14px;
        grid-template-columns: 126px minmax(0, 1fr) auto;
        gap: 12px;
        border: 1px solid rgba(17, 17, 17, 0.09);
        border-top: 0;
        border-radius: 0 0 16px 16px;
        background: rgba(255, 255, 255, 0.95);
        box-shadow: 0 18px 45px rgba(5, 5, 5, 0.08);
        backdrop-filter: blur(18px);
    }

    body:not(.admin-body):not(.mobile-body) .brand {
        display: flex;
        width: 126px;
        min-width: 0;
        overflow: hidden;
    }

    body:not(.admin-body):not(.mobile-body) .brand img {
        width: 126px;
        height: 42px;
        max-width: 100%;
        object-fit: contain;
    }

    body:not(.admin-body):not(.mobile-body) .site-nav {
        min-width: 0;
        gap: clamp(7px, 0.75vw, 12px);
        justify-content: flex-start;
        overflow-x: auto;
        overflow-y: hidden;
        scrollbar-width: none;
    }

    body:not(.admin-body):not(.mobile-body) .site-nav::-webkit-scrollbar {
        display: none;
    }

    body:not(.admin-body):not(.mobile-body) .site-nav a {
        position: relative;
        flex: 0 0 auto;
        min-height: 34px;
        padding: 8px 0;
        color: #111214;
        font-size: clamp(0.58rem, 0.61vw, 0.7rem);
        font-weight: 900;
        line-height: 1;
        text-transform: uppercase;
    }

    body:not(.admin-body):not(.mobile-body) .site-nav a:not(.marketplace-nav)::after {
        content: "";
        position: absolute;
        right: 0;
        bottom: 5px;
        left: 0;
        height: 2px;
        background: #050505;
        transform: scaleX(0);
        transform-origin: left;
        transition: transform 180ms ease;
    }

    body:not(.admin-body):not(.mobile-body) .site-nav a:not(.marketplace-nav):hover::after {
        transform: scaleX(1);
    }

    body:not(.admin-body):not(.mobile-body) .site-nav a.marketplace-nav {
        min-width: 116px;
        min-height: 36px;
        padding: 9px 12px;
        border: 0;
        border-radius: 6px;
        background: #ffe100;
        color: #050505;
        box-shadow: 0 12px 24px rgba(255, 225, 0, 0.24);
    }

    body:not(.admin-body):not(.mobile-body) .header-actions {
        gap: 6px;
        flex-wrap: nowrap;
    }

    body:not(.admin-body):not(.mobile-body) .header-actions .icon-link,
    body:not(.admin-body):not(.mobile-body) .header-actions .button.small {
        min-height: 36px;
        padding: 8px 10px;
        border-radius: 6px;
        font-size: clamp(0.58rem, 0.62vw, 0.72rem);
        white-space: nowrap;
        font-weight: 900;
        text-transform: uppercase;
    }

    body:not(.admin-body):not(.mobile-body) .hero {
        position: relative;
        isolation: isolate;
        width: min(1200px, calc(100% - 48px));
        min-height: 650px;
        margin: 0 auto 28px;
        padding: clamp(58px, 6vw, 86px) clamp(42px, 6vw, 78px);
        border: 1px solid rgba(17, 17, 17, 0.08);
        border-top: 0;
        border-radius: 0 0 28px 28px;
        overflow: hidden;
        background:
            linear-gradient(90deg, rgba(255, 255, 255, 0.99) 0%, rgba(255, 255, 255, 0.96) 34%, rgba(255, 255, 255, 0.78) 47%, rgba(255, 255, 255, 0.1) 66%, rgba(255, 255, 255, 0) 100%),
            radial-gradient(circle at 72% 42%, rgba(255, 255, 255, 0.74), rgba(255, 255, 255, 0) 28%),
            var(--hero-image) center right / cover no-repeat,
            #f7f8f9;
        box-shadow: 0 34px 80px rgba(5, 5, 5, 0.13);
        color: #050505;
    }

    body:not(.admin-body):not(.mobile-body) .hero::before {
        content: "";
        position: absolute;
        inset: auto -8% -28% 52%;
        z-index: -1;
        height: 52%;
        background: linear-gradient(135deg, rgba(5, 5, 5, 0), rgba(5, 5, 5, 0.16));
        transform: skewX(-17deg);
    }

    body:not(.admin-body):not(.mobile-body) .hero::after {
        display: none;
    }

    body:not(.admin-body):not(.mobile-body) .hero-copy {
        max-width: 570px;
    }

    body:not(.admin-body):not(.mobile-body) .hero .eyebrow,
    body:not(.admin-body):not(.mobile-body) .section-head .eyebrow,
    body:not(.admin-body):not(.mobile-body) .segments-copy .eyebrow,
    body:not(.admin-body):not(.mobile-body) .page-title .eyebrow {
        color: #050505;
        font-size: 0.72rem;
        font-weight: 950;
        letter-spacing: 0;
    }

    body:not(.admin-body):not(.mobile-body) .hero h1 {
        max-width: 590px;
        margin: 10px 0 18px;
        color: #050505;
        font-size: clamp(3.55rem, 5vw, 5.45rem);
        font-weight: 950;
        line-height: 0.9;
        letter-spacing: 0;
        text-shadow: none;
    }

    body:not(.admin-body):not(.mobile-body) .hero p {
        max-width: 545px;
        margin: 0 0 22px;
        color: #2d3135;
        font-size: 1.05rem;
        font-weight: 650;
        line-height: 1.55;
    }

    body:not(.admin-body):not(.mobile-body) .hero-bullets {
        gap: 8px;
        margin-bottom: 22px;
    }

    body:not(.admin-body):not(.mobile-body) .hero-bullets span {
        min-height: 34px;
        padding: 8px 12px;
        border: 1px solid rgba(5, 5, 5, 0.12);
        border-radius: 5px;
        background: #050505;
        box-shadow: 0 12px 24px rgba(5, 5, 5, 0.12);
        color: #fff;
        font-size: 0.72rem;
        font-weight: 950;
    }

    body:not(.admin-body):not(.mobile-body) .hero-actions {
        gap: 12px;
    }

    body:not(.admin-body):not(.mobile-body) .hero-actions .button {
        min-height: 48px;
        padding: 13px 20px;
        border-radius: 6px;
        font-weight: 950;
        text-transform: uppercase;
    }

    body:not(.admin-body):not(.mobile-body) .stats-band {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 14px;
        margin: 28px auto 58px;
    }

    body:not(.admin-body):not(.mobile-body) .stats-band div {
        min-height: 126px;
        padding: 24px 20px;
        border: 1px solid rgba(17, 17, 17, 0.08);
        border-radius: 14px;
        background:
            linear-gradient(180deg, #fff 0%, #f6f7f8 100%);
        box-shadow: 0 18px 42px rgba(5, 5, 5, 0.07);
    }

    body:not(.admin-body):not(.mobile-body) .stats-band strong {
        color: #050505;
        font-size: 0.98rem;
    }

    body:not(.admin-body):not(.mobile-body) .stats-band span {
        color: #555b61;
        font-size: 0.84rem;
        line-height: 1.42;
    }

    body:not(.admin-body):not(.mobile-body) .category-strip {
        grid-template-columns: repeat(auto-fit, minmax(165px, 1fr));
        gap: 12px;
        margin: 0 auto 62px;
    }

    body:not(.admin-body):not(.mobile-body) .category-strip a {
        min-height: 96px;
        padding: 18px;
        border: 1px solid rgba(255, 255, 255, 0.09);
        border-radius: 14px;
        background:
            linear-gradient(135deg, #050505 0%, #22262a 100%);
        box-shadow: 0 18px 44px rgba(5, 5, 5, 0.13);
        color: #fff;
        transition: transform 180ms ease, box-shadow 180ms ease;
    }

    body:not(.admin-body):not(.mobile-body) .category-strip a:hover {
        transform: translateY(-4px);
        box-shadow: 0 26px 60px rgba(5, 5, 5, 0.2);
    }

    body:not(.admin-body):not(.mobile-body) .category-strip strong {
        color: rgba(255, 255, 255, 0.72);
    }

    body:not(.admin-body):not(.mobile-body) .section-head {
        display: grid;
        grid-template-columns: minmax(0, 0.7fr) minmax(280px, 0.3fr);
        gap: 24px;
        align-items: end;
        margin: 0 auto 24px;
        padding: 0;
    }

    body:not(.admin-body):not(.mobile-body) .section-head h2,
    body:not(.admin-body):not(.mobile-body) .page-title h1 {
        margin: 8px 0 0;
        color: #050505;
        font-size: clamp(2.2rem, 3.6vw, 4.1rem);
        line-height: 0.98;
        letter-spacing: 0;
    }

    body:not(.admin-body):not(.mobile-body) .section-head p {
        margin: 0;
        color: #575d63;
        font-size: 0.98rem;
        line-height: 1.55;
    }

    body:not(.admin-body):not(.mobile-body) .product-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 22px;
        margin-bottom: 72px;
    }

    body:not(.admin-body):not(.mobile-body) .product-card {
        border: 1px solid rgba(17, 17, 17, 0.08);
        border-radius: 16px;
        background: rgba(255, 255, 255, 0.98);
        box-shadow: 0 22px 50px rgba(5, 5, 5, 0.08);
        transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
    }

    body:not(.admin-body):not(.mobile-body) .product-card:hover {
        transform: translateY(-5px);
        border-color: rgba(5, 5, 5, 0.18);
        box-shadow: 0 32px 70px rgba(5, 5, 5, 0.14);
    }

    body:not(.admin-body):not(.mobile-body) .product-image {
        height: 255px;
        background:
            radial-gradient(circle at 50% 80%, rgba(5, 5, 5, 0.08), transparent 40%),
            linear-gradient(180deg, #fff 0%, #eef0f2 100%);
    }

    body:not(.admin-body):not(.mobile-body) .product-image img {
        padding: 20px;
        filter: drop-shadow(0 20px 28px rgba(5, 5, 5, 0.16));
    }

    body:not(.admin-body):not(.mobile-body) .product-body {
        padding: 22px;
    }

    body:not(.admin-body):not(.mobile-body) .product-body h3 {
        min-height: 50px;
        font-size: 1.08rem;
        line-height: 1.22;
    }

    body:not(.admin-body):not(.mobile-body) .product-body p {
        min-height: 60px;
        color: #5b6167;
        font-size: 0.88rem;
        line-height: 1.45;
    }

    body:not(.admin-body):not(.mobile-body) .price-row {
        padding-top: 12px;
        border-top: 1px solid #e4e7ea;
    }

    body:not(.admin-body):not(.mobile-body) .price-row strong {
        font-size: 1.45rem;
    }

    body:not(.admin-body):not(.mobile-body) .product-tags span {
        border: 1px solid #dfe2e5;
        border-radius: 999px;
        background: #f3f4f5;
        color: #30343a;
    }

    body:not(.admin-body):not(.mobile-body) .metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    body:not(.admin-body):not(.mobile-body) .metrics div,
    body:not(.admin-body):not(.mobile-body) .detail-metrics div,
    body:not(.admin-body):not(.mobile-body) .quote-summary dl div {
        border-color: #e0e4e7;
        border-radius: 10px;
        background: #f6f7f8;
    }

    body:not(.admin-body):not(.mobile-body) .mini-form {
        grid-template-columns: minmax(0, 1fr) 88px;
        gap: 9px;
    }

    body:not(.admin-body):not(.mobile-body) .mini-form .button {
        grid-column: 1 / -1;
        width: 100%;
        border-radius: 8px;
    }

    body:not(.admin-body):not(.mobile-body) input,
    body:not(.admin-body):not(.mobile-body) select,
    body:not(.admin-body):not(.mobile-body) textarea {
        border-color: #d7dce1;
        border-radius: 10px;
        background: #fff;
    }

    body:not(.admin-body):not(.mobile-body) input:focus,
    body:not(.admin-body):not(.mobile-body) select:focus,
    body:not(.admin-body):not(.mobile-body) textarea:focus {
        border-color: #050505;
        outline: 3px solid rgba(5, 5, 5, 0.08);
    }

    body:not(.admin-body):not(.mobile-body) .trust-section {
        grid-template-columns: 1.28fr repeat(4, minmax(0, 1fr));
        gap: 14px;
        margin-bottom: 72px;
    }

    body:not(.admin-body):not(.mobile-body) .trust-section > div,
    body:not(.admin-body):not(.mobile-body) .trust-section article {
        min-height: 305px;
        border: 1px solid rgba(17, 17, 17, 0.08);
        border-radius: 14px;
        box-shadow: 0 20px 48px rgba(5, 5, 5, 0.08);
    }

    body:not(.admin-body):not(.mobile-body) .trust-section > div {
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        padding: 30px;
        background:
            linear-gradient(145deg, #050505 0%, #181b1e 64%, #353a3f 100%);
        color: #fff;
    }

    body:not(.admin-body):not(.mobile-body) .trust-section > div .eyebrow {
        color: rgba(255, 255, 255, 0.74);
        background: transparent;
    }

    body:not(.admin-body):not(.mobile-body) .trust-section h2 {
        margin: 8px 0 0;
        color: #fff;
        font-size: clamp(2.2rem, 2.9vw, 3.35rem);
        line-height: 0.98;
        letter-spacing: 0;
    }

    body:not(.admin-body):not(.mobile-body) .trust-section article {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        padding: 24px 20px;
        background: #fff;
    }

    body:not(.admin-body):not(.mobile-body) .trust-section article strong {
        color: #050505;
        font-size: 0.98rem;
        line-height: 1.25;
    }

    body:not(.admin-body):not(.mobile-body) .trust-section article span {
        color: #5c6268;
        font-size: 0.88rem;
        line-height: 1.45;
    }

    body:not(.admin-body):not(.mobile-body) .segments-showcase {
        display: grid;
        grid-template-columns: 0.95fr 1.45fr;
        gap: 28px;
        align-items: stretch;
        margin-bottom: 72px;
        padding: 34px;
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 18px;
        background:
            linear-gradient(135deg, #050505 0%, #151719 54%, #32373c 100%);
        box-shadow: 0 28px 70px rgba(5, 5, 5, 0.22);
        color: #fff;
    }

    body:not(.admin-body):not(.mobile-body) .segments-copy {
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 12px;
    }

    body:not(.admin-body):not(.mobile-body) .segments-copy .eyebrow {
        color: rgba(255, 255, 255, 0.68);
    }

    body:not(.admin-body):not(.mobile-body) .segments-copy h2 {
        max-width: 420px;
        color: #fff;
        font-size: clamp(2.65rem, 4vw, 4.8rem);
        line-height: 0.94;
        letter-spacing: 0;
    }

    body:not(.admin-body):not(.mobile-body) .segments-copy p {
        max-width: 460px;
        color: rgba(255, 255, 255, 0.78);
        font-weight: 550;
    }

    body:not(.admin-body):not(.mobile-body) .segment-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 12px;
    }

    body:not(.admin-body):not(.mobile-body) .segment-card {
        min-height: 250px;
        border-radius: 12px;
        overflow: hidden;
        box-shadow: inset 0 -80px 70px rgba(0, 0, 0, 0.66);
    }

    body:not(.admin-body):not(.mobile-body) .segment-card strong {
        font-size: 0.82rem;
        line-height: 1;
    }

    body:not(.admin-body):not(.mobile-body) .marketing-panel,
    body:not(.admin-body):not(.mobile-body) .distributor-strip,
    body:not(.admin-body):not(.mobile-body) .client-hero {
        border-radius: 18px;
        box-shadow: 0 28px 70px rgba(5, 5, 5, 0.12);
    }

    body:not(.admin-body):not(.mobile-body) .marketing-panel {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 34px;
        align-items: center;
        margin-bottom: 64px;
        padding: 48px;
        background:
            linear-gradient(110deg, #050505 0%, #171a1d 52%, #555b61 100%);
        color: #fff;
    }

    body:not(.admin-body):not(.mobile-body) .marketing-panel .eyebrow {
        color: rgba(255, 255, 255, 0.72);
        background: transparent;
    }

    body:not(.admin-body):not(.mobile-body) .marketing-panel h2 {
        max-width: 650px;
        color: #fff;
        font-size: clamp(2.35rem, 4vw, 4.5rem);
        line-height: 0.96;
        letter-spacing: 0;
    }

    body:not(.admin-body):not(.mobile-body) .marketing-panel p {
        max-width: 660px;
        color: rgba(255, 255, 255, 0.82);
        font-weight: 550;
    }

    body:not(.admin-body):not(.mobile-body) .marketing-panel .button,
    body:not(.admin-body):not(.mobile-body) .distributor-strip .button {
        min-width: 220px;
        border-radius: 8px;
        font-weight: 950;
        text-transform: uppercase;
    }

    body:not(.admin-body):not(.mobile-body) .distributor-strip {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 30px;
        align-items: center;
        margin-bottom: 72px;
        padding: 38px 42px;
        border: 1px solid rgba(17, 17, 17, 0.08);
        background: #fff;
    }

    body:not(.admin-body):not(.mobile-body) .distributor-strip h2 {
        color: #050505;
        font-size: clamp(2rem, 3vw, 3.4rem);
        line-height: 1;
    }

    body:not(.admin-body):not(.mobile-body) .distributor-strip p {
        color: #555b61;
    }

    body:not(.admin-body):not(.mobile-body) .page-title {
        margin: 58px auto 24px;
        padding: 0 0 18px;
        border-bottom: 1px solid rgba(17, 17, 17, 0.1);
    }

    body:not(.admin-body):not(.mobile-body) .filters,
    body:not(.admin-body):not(.mobile-body) .catalog-helper,
    body:not(.admin-body):not(.mobile-body) .quote-summary,
    body:not(.admin-body):not(.mobile-body) .client-panel,
    body:not(.admin-body):not(.mobile-body) .contact-panel,
    body:not(.admin-body):not(.mobile-body) .empty-panel,
    body:not(.admin-body):not(.mobile-body) .quote-success,
    body:not(.admin-body):not(.mobile-body) .customer-form-section,
    body:not(.admin-body):not(.mobile-body) .chat-shell,
    body:not(.admin-body):not(.mobile-body) .legal-layout {
        border: 1px solid rgba(17, 17, 17, 0.08);
        border-radius: 16px;
        background: rgba(255, 255, 255, 0.98);
        box-shadow: 0 22px 54px rgba(5, 5, 5, 0.08);
    }

    body:not(.admin-body):not(.mobile-body) .filters {
        padding: 18px;
    }

    body:not(.admin-body):not(.mobile-body) .product-detail,
    body:not(.admin-body):not(.mobile-body) .about-layout,
    body:not(.admin-body):not(.mobile-body) .contact-layout,
    body:not(.admin-body):not(.mobile-body) .quote-layout,
    body:not(.admin-body):not(.mobile-body) .client-layout {
        gap: 28px;
    }

    body:not(.admin-body):not(.mobile-body) .detail-image {
        border-radius: 18px;
        background:
            radial-gradient(circle at 52% 72%, rgba(5, 5, 5, 0.09), transparent 40%),
            linear-gradient(180deg, #fff 0%, #eef0f2 100%);
        box-shadow: 0 28px 70px rgba(5, 5, 5, 0.12);
    }

    body:not(.admin-body):not(.mobile-body) .floating-quote {
        right: 28px;
        bottom: 28px;
        border: 1px solid rgba(255, 255, 255, 0.12);
        border-radius: 14px;
        background: rgba(5, 5, 5, 0.94);
        box-shadow: 0 22px 54px rgba(5, 5, 5, 0.28);
        backdrop-filter: blur(14px);
    }

    body:not(.admin-body):not(.mobile-body) .site-footer {
        display: grid;
        grid-template-columns: 1.4fr 0.8fr 1fr;
        gap: 34px;
        margin-bottom: 42px;
        padding: 40px;
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 18px;
        background:
            linear-gradient(135deg, #050505 0%, #171a1d 64%, #34393e 100%);
        box-shadow: 0 28px 70px rgba(5, 5, 5, 0.2);
        color: #fff;
    }

    body:not(.admin-body):not(.mobile-body) .site-footer a,
    body:not(.admin-body):not(.mobile-body) .site-footer span,
    body:not(.admin-body):not(.mobile-body) .site-footer p {
        color: rgba(255, 255, 255, 0.74);
    }

    body:not(.admin-body):not(.mobile-body) .footer-logo {
        width: 170px;
    }
}

/* Painel administrativo compacto e sem rolagem lateral na pagina. */
.admin-body {
    grid-template-columns: 248px minmax(0, 1fr);
    overflow-x: hidden;
    font-size: 15px;
}

.admin-sidebar {
    min-width: 0;
    padding: 18px 14px;
    height: 100vh;
    max-height: 100vh;
    overflow: hidden;
}

.admin-brand img {
    width: 184px;
    height: 58px;
}

.admin-sidebar nav {
    gap: 6px;
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    padding-right: 4px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.34) transparent;
}

.admin-sidebar nav::-webkit-scrollbar {
    width: 6px;
}

.admin-sidebar nav::-webkit-scrollbar-track {
    background: transparent;
}

.admin-sidebar nav::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.28);
}

.admin-sidebar a {
    padding: 10px 12px;
    font-size: 0.92rem;
    line-height: 1.18;
}

.admin-site-link {
    flex: 0 0 auto;
    margin-top: 12px;
}

.admin-main {
    min-width: 0;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    padding: 18px clamp(14px, 2vw, 26px);
}

.admin-topbar {
    min-width: 0;
    padding: 16px 18px;
    border-radius: 12px;
}

.admin-topbar strong {
    font-size: 1.35rem;
}

.admin-topbar p {
    font-size: 0.9rem;
}

.admin-user {
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.admin-panel {
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    padding: 18px;
    border-radius: 14px;
}

.admin-layout,
.admin-grid,
.admin-quick,
.admin-form,
.panel-head {
    min-width: 0;
}

.admin-layout {
    grid-template-columns: minmax(260px, 0.82fr) minmax(0, 1.18fr);
}

.responsive-table {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
}

.responsive-table table {
    min-width: 760px;
}

.responsive-table.compact table {
    min-width: 640px;
}

th,
td {
    padding: 9px 10px;
    font-size: 0.88rem;
    line-height: 1.35;
    vertical-align: top;
    overflow-wrap: anywhere;
}

td input,
td select,
.admin-panel input,
.admin-panel select,
.admin-panel textarea {
    max-width: 100%;
    min-width: 0;
    min-height: 38px;
    padding: 8px 10px;
    font-size: 0.9rem;
}

.admin-product-cell {
    min-width: 0;
}

.users-panel .panel-head {
    align-items: flex-start;
    margin-bottom: 12px;
}

.users-panel .panel-head p {
    margin: 4px 0 0;
}

.admin-user-list {
    display: grid;
    gap: 12px;
}

.admin-user-card {
    display: grid;
    min-width: 0;
    gap: 14px;
    padding: 16px;
    border: 1px solid #dfe3e7;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 14px 32px rgba(5, 5, 5, 0.05);
}

.admin-user-card-head {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
}

.admin-user-avatar {
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    border-radius: 12px;
    background: #050505;
    color: #fff;
    font-size: 0.86rem;
    font-weight: 950;
}

.admin-user-card-head small {
    display: block;
    margin-top: 5px;
    color: #60666c;
    font-weight: 750;
    overflow-wrap: anywhere;
}

.admin-user-card-grid {
    display: grid;
    grid-template-columns: minmax(130px, 0.85fr) 128px minmax(170px, 0.95fr) 124px;
    gap: 10px;
    align-items: end;
}

.admin-checkline {
    display: flex;
    min-height: 38px;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border: 1px solid #d7dce1;
    border-radius: 10px;
    background: #f8f9fa;
    font-size: 0.86rem;
    font-weight: 850;
}

.admin-checkline input {
    width: auto;
    min-height: auto;
}

.admin-user-summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(170px, 0.35fr);
    gap: 10px;
}

.admin-user-summary div {
    min-width: 0;
    padding: 10px 12px;
    border: 1px solid #e1e5e8;
    border-radius: 12px;
    background: #f7f8f9;
}

.admin-user-summary span {
    display: block;
    margin-bottom: 4px;
    color: #666c72;
    font-size: 0.7rem;
    font-weight: 950;
    text-transform: uppercase;
}

.admin-user-summary strong {
    display: block;
    color: #111214;
    font-size: 0.88rem;
    font-weight: 750;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.admin-customer-details {
    min-width: 0;
    padding: 12px;
    border: 1px solid #dfe3e7;
    border-radius: 12px;
    background: #f8f9fa;
}

.admin-customer-details summary {
    cursor: pointer;
    color: #050505;
    font-weight: 950;
}

.admin-customer-details[open] {
    background: #fff;
}

.admin-customer-details .customer-form-section {
    margin-top: 12px;
    padding: 14px;
    border: 1px solid #e2e6e9;
    border-radius: 12px;
    box-shadow: none;
}

.admin-customer-details .form-grid,
.admin-customer-details .form-grid.compact {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.admin-customer-details .form-grid.address-grid {
    grid-template-columns: 120px minmax(180px, 1.3fr) 92px minmax(130px, 0.8fr);
}

.admin-customer-details .wide {
    grid-column: 1 / -1;
}

.admin-user-card-actions {
    display: flex;
    justify-content: flex-end;
}

.admin-user-card-actions .button {
    min-width: 160px;
    border-radius: 8px;
}

@media (max-width: 1180px) {
    .admin-body {
        grid-template-columns: 220px minmax(0, 1fr);
    }

    .admin-brand img {
        width: 164px;
    }

    .admin-user-card-grid,
    .admin-user-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-customer-details .form-grid,
    .admin-customer-details .form-grid.compact,
    .admin-customer-details .form-grid.address-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 980px) {
    .admin-body {
        grid-template-columns: 1fr;
    }

    .admin-sidebar {
        position: static;
        height: auto;
        max-height: none;
        overflow: visible;
    }

    .admin-sidebar nav {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        overflow: visible;
        padding-right: 0;
    }

    .admin-main {
        overflow-x: hidden;
        padding: 14px;
    }

    .admin-layout,
    .admin-user-card-grid,
    .admin-user-summary,
    .admin-customer-details .form-grid,
    .admin-customer-details .form-grid.compact,
    .admin-customer-details .form-grid.address-grid {
        grid-template-columns: 1fr;
    }
}

/* Ajuste visual da home e tela de categorias do painel. */
@media (min-width: 981px) {
    body:not(.admin-body):not(.mobile-body) .stats-band {
        gap: 16px;
        padding: 0;
        border: 0;
        background: transparent;
    }

    body:not(.admin-body):not(.mobile-body) .stats-band div {
        min-height: 116px;
        padding: 24px;
        border: 1px solid #dde2e6;
        border-radius: 16px;
        background:
            linear-gradient(180deg, #ffffff 0%, #f3f5f6 100%);
        box-shadow: 0 18px 46px rgba(5, 5, 5, 0.08);
    }

    body:not(.admin-body):not(.mobile-body) .stats-band div:last-child {
        border-right: 1px solid #dde2e6;
    }

    body:not(.admin-body):not(.mobile-body) .stats-band strong {
        color: #050505;
        font-size: 0.96rem;
        line-height: 1.2;
    }

    body:not(.admin-body):not(.mobile-body) .stats-band span {
        color: #5c6268;
        font-size: 0.84rem;
        line-height: 1.5;
    }
}

.admin-quick {
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.category-form {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) 120px 100px auto;
    gap: 12px;
    align-items: end;
}

.category-admin-list {
    display: grid;
    gap: 12px;
}

.category-admin-card {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) 110px 112px 140px auto;
    gap: 12px;
    align-items: end;
    padding: 14px;
    border: 1px solid #dfe3e7;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 12px 28px rgba(5, 5, 5, 0.05);
}

.category-admin-card.inactive {
    border-style: dashed;
    background: #f7f8f9;
    opacity: 0.72;
}

.category-admin-count {
    min-height: 38px;
    padding: 8px 10px;
    border: 1px solid #d7dce1;
    border-radius: 10px;
    background: #f8f9fa;
}

.category-admin-count span {
    display: block;
    color: #6b7076;
    font-size: 0.68rem;
    font-weight: 950;
    line-height: 1;
    text-transform: uppercase;
}

.category-admin-count strong {
    display: block;
    margin-top: 3px;
    color: #050505;
    font-size: 1rem;
    line-height: 1;
}

.category-admin-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    flex-wrap: nowrap;
}

.category-admin-actions form {
    margin: 0;
}

@media (max-width: 1180px) {
    .category-form,
    .category-admin-card {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .category-admin-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 760px) {
    .category-form,
    .category-admin-card {
        grid-template-columns: 1fr;
    }
}

/* Mercado Livre no painel administrativo. */
.ml-welcome .admin-welcome-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.ml-welcome .admin-welcome-actions form {
    margin: 0;
}

.ml-fetch-form {
    grid-template-columns: minmax(280px, 1fr) auto;
    margin-bottom: 14px;
}

.ml-fetch-form input {
    min-width: 0;
}

.ml-panel > .inline-form .check {
    width: auto;
    min-height: 42px;
    margin: 0;
    padding: 9px 12px;
    border: 1px solid #dfe3e7;
    border-radius: 10px;
    background: #fff;
}

.ml-mapping-panel .panel-head p {
    margin: 6px 0 0;
    color: #68707a;
}

.admin-view-mercadolivre .admin-main,
.admin-view-mercadolivre .ml-workspace,
.admin-view-mercadolivre .ml-tab-panels,
.admin-view-mercadolivre .ml-tab-panel,
.admin-view-mercadolivre .ml-panel,
.admin-view-mercadolivre .ml-mapping-panel,
.admin-view-mercadolivre .ml-links-form {
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

.admin-view-mercadolivre .admin-main {
    overflow-x: hidden;
}

.admin-view-mercadolivre .ml-mapping-panel {
    padding: 16px;
}

.admin-view-mercadolivre .ml-mapping-panel .panel-head {
    margin-bottom: 12px;
}

.admin-view-mercadolivre .ml-mapping-panel .panel-head h2 {
    font-size: 1.25rem;
    line-height: 1.1;
}

.admin-view-mercadolivre .ml-mapping-panel .panel-head p {
    max-width: 760px;
    font-size: 0.86rem;
}

.ml-collapsible {
    width: 100%;
    max-width: 100%;
    margin-bottom: 12px;
    overflow: hidden;
    border: 1px solid #dfe3e7;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 12px 26px rgba(5, 5, 5, 0.045);
}

.ml-collapsible summary {
    display: flex;
    gap: 14px;
    align-items: center;
    justify-content: space-between;
    min-width: 0;
    padding: 13px 15px;
    color: #111214;
    cursor: pointer;
    list-style: none;
}

.ml-collapsible summary::-webkit-details-marker {
    display: none;
}

.ml-collapsible summary::after {
    content: "+";
    display: grid;
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    place-items: center;
    border-radius: 8px;
    background: #050505;
    color: #fff;
    font-weight: 950;
}

.ml-collapsible[open] summary {
    border-bottom: 1px solid #e3e7eb;
    background: #f7f8f9;
}

.ml-collapsible[open] summary::after {
    content: "-";
    background: #ffe100;
    color: #050505;
}

.ml-collapsible summary strong,
.ml-collapsible summary span {
    display: block;
    min-width: 0;
}

.ml-collapsible summary strong {
    font-size: 0.86rem;
    font-weight: 950;
    line-height: 1.15;
    text-transform: uppercase;
}

.ml-collapsible summary span {
    color: #69717a;
    font-size: 0.76rem;
    font-weight: 800;
    line-height: 1.25;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ml-summary-drawer .ml-mapping-summary {
    margin: 0;
    padding: 14px;
}

.ml-summary-drawer .ml-mapping-note {
    margin: 0 14px 14px;
}

.ml-order-summary,
.ml-mapping-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 14px;
}

.ml-order-summary article,
.ml-mapping-summary article {
    display: grid;
    gap: 7px;
    min-height: 100px;
    padding: 16px;
    border: 1px solid #dfe3e7;
    border-radius: 14px;
    background: #fff;
}

.ml-order-summary span,
.ml-order-summary small,
.ml-mapping-summary span,
.ml-mapping-summary small {
    color: #69717a;
    font-size: 0.72rem;
    font-weight: 900;
    text-transform: uppercase;
}

.ml-order-summary strong,
.ml-mapping-summary strong {
    color: #050505;
    font-size: 2rem;
    font-weight: 950;
    line-height: 1;
}

.ml-order-summary {
    margin-bottom: 14px;
}

.ml-order-pull-form,
.ml-orders-toolbar {
    display: flex;
    gap: 10px;
    align-items: end;
    flex-wrap: wrap;
    padding: 14px;
    background: #fff;
}

.ml-order-pull-form label {
    display: grid;
    gap: 6px;
    min-width: 180px;
}

.ml-order-pull-form label span {
    color: #5f6670;
    font-size: 0.68rem;
    font-weight: 950;
    text-transform: uppercase;
}

.ml-order-pull-form input,
.ml-order-pull-form select {
    width: 100%;
    min-height: 42px;
    border: 1px solid #d7dce2;
    border-radius: 10px;
    background: #fff;
    color: #111214;
    font-weight: 850;
}

.ml-order-pull-form small {
    flex: 1 1 280px;
    color: #737b84;
    font-size: 0.78rem;
    font-weight: 750;
    line-height: 1.35;
}

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

.ml-orders-toolbar {
    border: 1px solid #dfe3e7;
    border-radius: 14px;
    box-shadow: 0 12px 26px rgba(5, 5, 5, 0.045);
}

.ml-orders-toolbar .check {
    width: auto;
    min-height: 42px;
    margin: 0;
    padding: 9px 12px;
    border: 1px solid #dfe3e7;
    border-radius: 10px;
    background: #f8f9fa;
}

.ml-order-list {
    display: grid;
    gap: 12px;
}

.ml-order-card {
    display: grid;
    grid-template-columns: auto minmax(240px, 1fr);
    gap: 12px;
    align-items: start;
    padding: 15px;
    border: 1px solid #dfe3e7;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 14px 30px rgba(5, 5, 5, 0.055);
}

.ml-order-card.is-success {
    border-color: rgba(28, 145, 80, 0.24);
}

.ml-order-card.is-danger {
    border-color: rgba(177, 37, 37, 0.24);
}

.ml-order-card.is-pending {
    border-color: rgba(255, 193, 7, 0.52);
}

.ml-order-card.is-selected {
    border-color: #050505;
    box-shadow: 0 18px 38px rgba(5, 5, 5, 0.15);
}

.ml-order-card .ml-card-selector {
    grid-column: 1;
    align-self: start;
}

.ml-order-main,
.ml-order-meta,
.ml-order-card > p,
.ml-order-card .row-actions {
    grid-column: 2;
}

.ml-order-main strong,
.ml-order-main span,
.ml-order-main small {
    display: block;
    overflow-wrap: anywhere;
}

.ml-order-main strong {
    color: #050505;
    font-size: 1rem;
    font-weight: 950;
    line-height: 1.18;
}

.ml-order-main span {
    margin-top: 4px;
    color: #2b3035;
    font-weight: 900;
}

.ml-order-main small {
    margin-top: 3px;
    color: #68707a;
    font-size: 0.78rem;
    font-weight: 750;
}

.ml-order-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.ml-order-meta span {
    padding: 7px 9px;
    border: 1px solid #dfe3e7;
    border-radius: 9px;
    background: #f8f9fa;
    color: #363b40;
    font-size: 0.76rem;
    font-weight: 850;
}

.ml-order-meta span.success {
    border-color: rgba(18, 105, 58, 0.18);
    background: #eaf8f0;
    color: #12693a;
}

.ml-order-meta span.danger {
    border-color: rgba(177, 37, 37, 0.2);
    background: #fff0f0;
    color: #981f1f;
}

.ml-order-meta span.pending {
    border-color: rgba(255, 193, 7, 0.36);
    background: #fff8db;
    color: #594600;
}

.ml-message-summary article:nth-child(2) {
    border-color: rgba(255, 193, 7, 0.42);
}

.ml-message-filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.ml-message-list {
    display: grid;
    gap: 12px;
}

.ml-message-card {
    display: grid;
    gap: 12px;
    min-width: 0;
    padding: 16px;
    border: 1px solid #dfe3e7;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 14px 30px rgba(5, 5, 5, 0.055);
}

.ml-message-card.is-unanswered {
    border-color: rgba(255, 193, 7, 0.58);
}

.ml-message-card.is-answered {
    border-color: rgba(18, 105, 58, 0.22);
}

.ml-message-card header,
.ml-message-context,
.ml-message-reply-form {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    min-width: 0;
}

.ml-message-card header strong,
.ml-message-card header span {
    display: block;
}

.ml-message-card header strong {
    color: #050505;
    font-size: 1rem;
    font-weight: 950;
}

.ml-message-card header span,
.ml-message-context span,
.ml-message-context a,
.ml-message-answer span {
    color: #68707a;
    font-size: 0.76rem;
    font-weight: 850;
}

.ml-message-context {
    justify-content: flex-start;
}

.ml-message-context span,
.ml-message-context a {
    padding: 7px 9px;
    border: 1px solid #dfe3e7;
    border-radius: 9px;
    background: #f8f9fa;
    text-decoration: none;
}

.ml-message-body,
.ml-message-answer {
    min-width: 0;
    padding: 14px;
    border-radius: 14px;
    background: #f6f7f8;
    color: #22272c;
    font-weight: 750;
    line-height: 1.45;
}

.ml-message-body p,
.ml-message-answer p {
    margin: 0;
    overflow-wrap: anywhere;
}

.ml-message-answer {
    border: 1px solid rgba(18, 105, 58, 0.16);
    background: #eef9f2;
}

.ml-message-answer span {
    display: block;
    margin-bottom: 6px;
    color: #12693a;
    text-transform: uppercase;
}

.ml-message-reply-form {
    align-items: end;
    padding-top: 4px;
}

.ml-message-reply-form label {
    display: grid;
    flex: 1 1 420px;
    gap: 6px;
}

.ml-message-reply-form label span {
    color: #5f6670;
    font-size: 0.68rem;
    font-weight: 950;
    text-transform: uppercase;
}

.ml-message-reply-form textarea {
    width: 100%;
    min-height: 86px;
    resize: vertical;
    border: 1px solid #d7dce2;
    border-radius: 12px;
    background: #fff;
    color: #111214;
    font: inherit;
    font-weight: 750;
}

.ml-mapping-note {
    margin-bottom: 12px;
}

.ml-filter-panel {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 10px;
    align-items: end;
    margin-bottom: 14px;
    padding: 14px;
    border: 1px solid #dfe3e7;
    border-radius: 16px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(246, 247, 248, 0.96)),
        #fff;
    box-shadow: 0 18px 36px rgba(5, 5, 5, 0.06);
}

.ml-filter-drawer .ml-filter-panel {
    margin: 0;
    border: 0;
    border-radius: 0;
    background: #fff;
    box-shadow: none;
}

.ml-filter-panel label {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.ml-filter-panel label.wide {
    grid-column: span 2;
}

.ml-filter-panel span {
    color: #5f6670;
    font-size: 0.68rem;
    font-weight: 950;
    letter-spacing: 0;
    text-transform: uppercase;
}

.ml-filter-panel input,
.ml-filter-panel select {
    width: 100%;
    min-height: 42px;
    border: 1px solid #d7dce2;
    border-radius: 10px;
    background: #fff;
    color: #111214;
    font-size: 0.86rem;
    font-weight: 800;
}

.ml-filter-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: flex-end;
}

.ml-mapping-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 16px;
    padding: 12px;
    border: 1px solid #dfe3e7;
    border-radius: 14px;
    background: #f8f9fa;
}

.ml-actions-drawer .ml-mapping-actions {
    margin: 0;
    border: 0;
    border-radius: 0;
    background: #fff;
}

.ml-mapping-actions .check {
    width: auto;
    margin-right: auto;
}

.ml-bulk-toolbar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 10px;
    align-items: end;
    margin: 0;
    padding: 12px;
    border: 0;
    border-radius: 0;
    background: #fff;
    box-shadow: none;
}

.ml-bulk-toolbar .check {
    min-height: 42px;
    margin: 0;
    padding: 9px 12px;
    border: 1px solid #dfe3e7;
    border-radius: 10px;
    background: #f8f9fa;
    width: auto;
}

.ml-bulk-toolbar > label:not(.check) {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.ml-bulk-toolbar span {
    color: #5f6670;
    font-size: 0.68rem;
    font-weight: 950;
    text-transform: uppercase;
}

.ml-bulk-toolbar select,
.ml-bulk-toolbar input {
    width: 100%;
    min-height: 42px;
    border: 1px solid #d7dce2;
    border-radius: 10px;
    background: #fff;
    color: #111214;
    font-weight: 850;
}

.ml-bulk-stock-field small {
    display: block;
    margin-top: 4px;
    color: #737b84;
    font-size: 0.68rem;
    font-weight: 800;
    line-height: 1.25;
}

.ml-family-list {
    display: grid;
    gap: 14px;
    margin-bottom: 18px;
}

.ml-listing-pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    justify-content: center;
    margin: 20px 0 4px;
    padding-top: 18px;
    border-top: 1px solid #d9dee3;
}

.ml-listing-pagination > span {
    color: #747b83;
    font-weight: 800;
}

.ml-listing-pagination .button {
    min-width: 38px;
    justify-content: center;
}

.ml-listing-family {
    overflow: hidden;
    border: 1px solid #d9dee3;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 16px 36px rgba(5, 5, 5, 0.06);
}

.ml-listing-family.is-selected {
    border-color: #111214;
    box-shadow: 0 18px 40px rgba(5, 5, 5, 0.13);
}

.ml-listing-family > summary {
    display: grid;
    grid-template-columns: 22px 28px 58px minmax(220px, 1fr) auto auto;
    gap: 12px;
    align-items: center;
    min-height: 82px;
    padding: 12px 14px;
    list-style: none;
    background: linear-gradient(180deg, #fff, #f5f6f7);
    cursor: pointer;
}

.ml-listing-family > summary::-webkit-details-marker {
    display: none;
}

.ml-family-chevron {
    width: 10px;
    height: 10px;
    border-right: 2px solid #111214;
    border-bottom: 2px solid #111214;
    transform: rotate(-45deg);
    transition: transform 180ms ease;
}

.ml-listing-family[open] .ml-family-chevron {
    transform: rotate(45deg) translate(-2px, -2px);
}

.ml-family-selector {
    display: grid;
    place-items: center;
    width: 28px;
    min-height: 28px;
    margin: 0;
    cursor: pointer;
}

.ml-family-selector input {
    width: 18px;
    min-height: 18px;
    margin: 0;
}

.ml-family-photo {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    overflow: hidden;
    border: 1px solid #dce0e4;
    border-radius: 10px;
    background: #fff;
    color: #111214;
    font-size: 0.78rem;
    font-weight: 950;
}

.ml-family-photo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.ml-family-main {
    min-width: 0;
}

.ml-family-main strong,
.ml-family-main small {
    display: block;
    overflow-wrap: anywhere;
}

.ml-family-main strong {
    color: #090a0b;
    font-size: 1rem;
    font-weight: 950;
    line-height: 1.22;
}

.ml-family-main small {
    margin-top: 4px;
    color: #68717a;
    font-size: 0.75rem;
    font-weight: 800;
}

.ml-family-stats {
    display: flex;
    gap: 7px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.ml-family-stats em {
    padding: 6px 8px;
    border: 1px solid #dce0e4;
    border-radius: 999px;
    background: #fff;
    color: #3b4147;
    font-style: normal;
    font-size: 0.68rem;
    font-weight: 900;
    white-space: nowrap;
}

.ml-family-photo-button {
    white-space: nowrap;
}

.ml-family-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 7px;
}

.ml-family-actions .button {
    white-space: nowrap;
}

.ml-family-body {
    padding: 12px;
    border-top: 1px solid #dfe3e7;
    background: #eef0f2;
}

.ml-family-help {
    display: flex;
    gap: 12px;
    justify-content: space-between;
    margin-bottom: 10px;
    padding: 9px 11px;
    border-radius: 9px;
    background: #111214;
    color: #fff;
    font-size: 0.72rem;
}

.ml-family-help strong {
    color: #fff159;
}

.ml-listing-grid {
    display: grid;
    gap: 14px;
    margin-bottom: 0;
}

.ml-listing-card {
    display: grid;
    grid-template-columns: minmax(240px, 1.2fr) minmax(190px, 0.8fr) minmax(190px, 0.8fr);
    gap: 12px;
    align-items: end;
    padding: 16px;
    border: 1px solid #dfe3e7;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 14px 32px rgba(5, 5, 5, 0.06);
}

.ml-listing-card.is-pending {
    border-color: rgba(255, 193, 7, 0.62);
    box-shadow: 0 14px 32px rgba(255, 193, 7, 0.09);
}

.ml-listing-card.is-mapped {
    border-color: rgba(28, 145, 80, 0.22);
}

.ml-listing-card.is-selected {
    border-color: #111214;
    box-shadow: 0 18px 38px rgba(5, 5, 5, 0.16);
}

.ml-card-selector {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    justify-content: flex-start;
    grid-column: 1 / -1;
    width: fit-content;
    min-height: auto;
    margin: 0;
    padding: 8px 10px;
    border: 1px solid #dfe3e7;
    border-radius: 999px;
    background: #f8f9fa;
    color: #30343a;
    font-size: 0.74rem;
    font-weight: 950;
    text-transform: uppercase;
}

.ml-card-selector input {
    width: auto;
    min-height: auto;
}

.ml-listing-head {
    display: flex;
    gap: 12px;
    justify-content: space-between;
    align-items: flex-start;
    min-width: 0;
    grid-column: 1 / -1;
}

.ml-listing-head strong,
.ml-listing-head span,
.ml-listing-head small {
    display: block;
    overflow-wrap: anywhere;
}

.ml-listing-head strong {
    color: #050505;
    font-size: 1rem;
    font-weight: 950;
    line-height: 1.2;
}

.ml-listing-head span,
.ml-listing-head small {
    margin-top: 3px;
    color: #656b72;
    font-size: 0.78rem;
    font-weight: 750;
}

.ml-listing-head em {
    flex: 0 0 auto;
    padding: 6px 9px;
    border-radius: 999px;
    background: #fff159;
    color: #111214;
    font-style: normal;
    font-size: 0.68rem;
    font-weight: 950;
    text-transform: uppercase;
}

.ml-listing-badges {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.ml-listing-head em.pending {
    background: #ffe8a3;
}

.ml-listing-head em.mapped {
    background: #dff7ea;
    color: #12693a;
}

.ml-listing-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    grid-column: 1 / -1;
}

.ml-listing-meta span {
    padding: 7px 9px;
    border: 1px solid #dfe3e7;
    border-radius: 9px;
    background: #f8f9fa;
    color: #363b40;
    font-size: 0.76rem;
    font-weight: 850;
}

.ml-listing-meta span.good {
    border-color: rgba(18, 105, 58, 0.18);
    background: #eaf8f0;
    color: #12693a;
}

.ml-listing-meta span.danger {
    border-color: rgba(177, 37, 37, 0.2);
    background: #fff0f0;
    color: #981f1f;
}

.ml-search-select {
    display: grid;
    gap: 7px;
    min-width: 0;
}

.ml-search-select [data-ml-product-select] {
    position: absolute;
    width: 1px;
    height: 1px;
    min-height: 0;
    padding: 0;
    opacity: 0;
    pointer-events: none;
}

.ml-search-select input,
.ml-search-select select,
[data-ml-color-select] {
    width: 100%;
    min-width: 0;
}

.ml-search-select input {
    min-height: 38px;
    border: 1px solid #d7dce2;
    border-radius: 10px;
    background: #fff;
    color: #111214;
    font-size: 0.82rem;
    font-weight: 800;
}

.ml-product-trigger,
.ml-variation-trigger {
    width: 100%;
    min-height: 42px;
    padding: 10px 12px;
    border: 1px solid #d7dce2;
    border-radius: 10px;
    background: linear-gradient(180deg, #fff, #f7f8f9);
    color: #111214;
    font-size: 0.8rem;
    font-weight: 950;
    text-align: left;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    cursor: pointer;
}

.ml-product-trigger:hover,
.ml-variation-trigger:hover {
    border-color: #111214;
    box-shadow: 0 10px 24px rgba(5, 5, 5, 0.08);
}

.ml-search-select small,
.ml-variation-picker small {
    color: #717983;
    font-size: 0.68rem;
    font-weight: 750;
}

[data-ml-color-select]:disabled {
    border-style: dashed;
    background: #f4f5f6;
    color: #8a929a;
    cursor: not-allowed;
}

.ml-variation-picker {
    display: grid;
    gap: 7px;
    min-width: 0;
}

.ml-variation-picker [data-ml-color-select] {
    position: absolute;
    width: 1px;
    height: 1px;
    min-height: 0;
    padding: 0;
    opacity: 0;
    pointer-events: none;
}

.ml-variation-trigger:disabled {
    border-style: dashed;
    background: #f4f5f6;
    color: #8a929a;
    cursor: not-allowed;
    box-shadow: none;
}

.ml-product-modal[hidden],
.ml-variation-modal[hidden] {
    display: none;
}

.ml-product-modal,
.ml-variation-modal {
    position: fixed;
    inset: 0;
    z-index: 5000;
    display: grid;
    place-items: center;
    padding: 24px;
}

.ml-product-backdrop,
.ml-variation-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5, 5, 5, 0.58);
    backdrop-filter: blur(4px);
}

.ml-product-dialog,
.ml-variation-dialog {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 14px;
    width: min(720px, calc(100vw - 32px));
    max-height: min(760px, calc(100vh - 44px));
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.28);
}

.ml-product-head,
.ml-variation-head {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    justify-content: space-between;
}

.ml-product-head strong,
.ml-product-head span,
.ml-variation-head strong,
.ml-variation-head span {
    display: block;
}

.ml-product-head strong,
.ml-variation-head strong {
    color: #050505;
    font-size: 1.2rem;
    font-weight: 950;
}

.ml-product-head span,
.ml-variation-head span {
    margin-top: 3px;
    color: #6a727d;
    font-size: 0.8rem;
    font-weight: 800;
}

.ml-product-close,
.ml-variation-close {
    display: inline-grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 1px solid #d7dce2;
    border-radius: 10px;
    background: #050505;
    color: #fff;
    font-size: 1rem;
    font-weight: 950;
    cursor: pointer;
}

.ml-product-dialog input,
.ml-variation-dialog input {
    width: 100%;
    min-height: 46px;
    border: 1px solid #d7dce2;
    border-radius: 12px;
    background: #f8f9fa;
    color: #111214;
    font-size: 0.9rem;
    font-weight: 850;
}

.ml-product-list,
.ml-variation-list {
    display: grid;
    gap: 8px;
    max-height: 430px;
    overflow: auto;
    padding-right: 4px;
}

.ml-product-option,
.ml-variation-option {
    display: grid;
    gap: 4px;
    width: 100%;
    padding: 13px 14px;
    border: 1px solid #dfe3e7;
    border-radius: 12px;
    background: #fff;
    color: #101214;
    text-align: left;
    cursor: pointer;
}

.ml-product-option:hover,
.ml-product-option.is-selected,
.ml-variation-option:hover,
.ml-variation-option.is-selected {
    border-color: #050505;
    background: #f6f7f8;
}

.ml-product-option strong,
.ml-variation-option strong {
    font-size: 0.92rem;
    font-weight: 950;
}

.ml-product-option span,
.ml-product-empty,
.ml-variation-option span,
.ml-variation-empty {
    color: #69717a;
    font-size: 0.78rem;
    font-weight: 800;
}

.is-ml-product-modal-open,
.is-ml-variation-modal-open {
    overflow: hidden;
}

.ml-card-checks {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
    grid-column: 1 / -1;
}

.ml-card-checks label {
    display: inline-flex;
    gap: 6px;
    align-items: center;
    width: auto;
    min-height: auto;
    margin: 0;
    color: #30343a;
    font-size: 0.76rem;
    font-weight: 850;
}

.ml-card-checks input {
    width: auto;
    min-height: auto;
}

.ml-listing-card .row-actions {
    grid-column: 1 / -1;
    justify-content: flex-end;
}

@media (max-width: 1180px) {
    .ml-bulk-toolbar {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ml-filter-panel {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ml-filter-panel label.wide {
        grid-column: 1 / -1;
    }

    .ml-listing-card {
        grid-template-columns: 1fr;
    }

    .ml-listing-family > summary {
        grid-template-columns: 22px 28px 52px minmax(180px, 1fr) auto;
    }

    .ml-family-stats {
        display: none;
    }

    .ml-order-summary,
    .ml-mapping-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

.ml-photo-editor-modal {
    width: min(1080px, calc(100% - 28px));
}

.ml-description-editor-modal {
    width: min(860px, calc(100% - 28px));
}

.ml-description-editor {
    display: grid;
    gap: 16px;
}

.ml-description-guidance {
    display: grid;
    gap: 4px;
    padding: 13px 15px;
    border-left: 4px solid #ffe600;
    border-radius: 6px;
    background: #f4f5f6;
    color: #34383c;
}

.ml-description-guidance strong {
    color: #111;
}

.ml-description-guidance span {
    font-size: 0.84rem;
    line-height: 1.45;
}

.ml-description-field {
    display: grid;
    gap: 7px;
}

.ml-description-field textarea {
    min-height: min(46vh, 430px);
    resize: vertical;
    line-height: 1.55;
}

.ml-description-feedback {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    min-height: 26px;
    color: #68717a;
    font-size: 0.8rem;
}

.ml-description-feedback strong {
    flex: 0 0 auto;
    color: #25292d;
}

.ml-description-editor-modal.is-working .ml-description-field,
.ml-description-editor-modal.is-working .admin-modal-actions {
    opacity: 0.58;
}

.ml-description-editor-modal.is-saved .ml-description-feedback {
    color: #14723d;
}

.ml-family-photo-modal {
    width: min(1180px, calc(100% - 28px));
}

.ml-family-photo-form {
    display: grid;
    gap: 16px;
}

.ml-family-editor-toolbar {
    position: sticky;
    top: -1px;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 12px;
    border: 1px solid #dfe3e7;
    border-radius: 9px;
    background: rgba(247, 248, 249, 0.96);
    box-shadow: 0 10px 22px rgba(10, 12, 14, 0.06);
    backdrop-filter: blur(8px);
}

.ml-family-editor-toolbar span {
    color: #626a72;
    font-size: 0.8rem;
    font-weight: 780;
    text-align: right;
}

.ml-family-variation-list {
    display: grid;
    gap: 14px;
}

.ml-family-shared-photo {
    overflow: hidden;
    border: 1px solid #dfe3e7;
    border-radius: 9px;
    background: #fff;
}

.ml-family-shared-photo > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 13px 15px;
    cursor: pointer;
}

.ml-family-shared-photo > summary span {
    color: #6a7279;
    font-size: 0.76rem;
    font-weight: 750;
}

.ml-family-shared-photo-fields {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) minmax(220px, 0.8fr) 150px auto;
    gap: 10px;
    align-items: end;
    padding: 14px;
    border-top: 1px solid #e2e5e8;
    background: #f7f8f9;
}

.ml-family-shared-photo-fields label {
    display: grid;
    gap: 6px;
}

.ml-family-shared-photo-fields label span {
    font-size: 0.72rem;
    font-weight: 850;
}

.ml-family-shared-photo > small {
    display: block;
    padding: 0 14px 13px;
    background: #f7f8f9;
    color: #687078;
    font-weight: 750;
}

.ml-family-variation-editor {
    min-width: 0;
    padding: 14px;
    border: 1px solid #dfe3e7;
    border-radius: 9px;
    background: #f8f9fa;
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

.ml-family-variation-editor.is-dirty {
    border-color: #111214;
    box-shadow: inset 4px 0 0 #ffe600;
}

.ml-family-variation-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 12px;
}

.ml-family-variation-head h3 {
    margin: 0 0 3px;
    font-size: 0.98rem;
}

.ml-family-variation-head small {
    color: #6a7279;
    font-size: 0.7rem;
    font-weight: 760;
}

.ml-family-editor-photos {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(116px, 1fr));
    gap: 9px;
    min-height: 112px;
}

.ml-family-editor-photo {
    min-width: 0;
    overflow: hidden;
    border: 1px solid #d9dde1;
    border-radius: 8px;
    background: #fff;
}

.ml-family-editor-photo.is-primary {
    border-color: #111214;
    box-shadow: 0 0 0 2px rgba(17, 18, 20, 0.08);
}

.ml-family-editor-photo-image {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    background: #fff;
}

.ml-family-editor-photo-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.ml-family-editor-photo-image span {
    position: absolute;
    top: 6px;
    left: 6px;
    padding: 4px 6px;
    border-radius: 5px;
    background: rgba(5, 5, 5, 0.88);
    color: #fff;
    font-size: 0.58rem;
    font-weight: 950;
    text-transform: uppercase;
}

.ml-family-editor-photo-controls {
    display: grid;
    grid-template-columns: repeat(3, 32px);
    justify-content: center;
    gap: 5px;
    padding: 7px;
    border-top: 1px solid #e5e7e9;
}

.ml-family-editor-photo-controls .icon-button {
    width: 32px;
    min-width: 32px;
    height: 32px;
    min-height: 32px;
    padding: 0;
}

.ml-family-editor-photo-controls .danger {
    color: #a51f1f;
}

.ml-family-editor-photo-controls button:disabled {
    opacity: 0.25;
}

.ml-family-editor-photo.has-error .ml-family-editor-photo-image::after {
    content: "Imagem indisponivel";
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 8px;
    background: #fff1f1;
    color: #9c2020;
    font-size: 0.66rem;
    font-weight: 850;
    text-align: center;
}

.ml-family-editor-add {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    margin-top: 10px;
}

.ml-family-editor-add input {
    min-width: 0;
}

.ml-family-editor-actions {
    position: sticky;
    bottom: -1px;
    z-index: 4;
    margin: 0 -4px -4px;
    padding: 12px;
    border: 1px solid #dfe3e7;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(8px);
}

.ml-family-photo-modal.is-working .ml-family-variation-list {
    opacity: 0.62;
    pointer-events: none;
}

.ml-family-photo-preview {
    display: grid;
    grid-template-columns: repeat(8, minmax(62px, 1fr));
    gap: 8px;
    min-height: 82px;
    padding: 10px;
    overflow-x: auto;
    border: 1px solid #dfe3e7;
    border-radius: 10px;
    background: #f5f6f7;
}

.ml-family-photo-preview img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: contain;
    border: 1px solid #dfe3e7;
    border-radius: 8px;
    background: #fff;
}

.ml-family-photo-preview span {
    grid-column: 1 / -1;
    align-self: center;
    color: #6c747c;
    font-size: 0.8rem;
    font-weight: 800;
}

.ml-family-photo-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
}

.ml-family-upload {
    padding: 12px;
    border: 1px dashed #bcc3ca;
    border-radius: 10px;
    background: #f8f9fa;
}

.ml-family-upload input {
    width: 100%;
    margin-top: 7px;
}

.ml-family-upload small {
    display: block;
    margin-top: 6px;
    color: #69717a;
    font-size: 0.72rem;
    font-weight: 800;
}

.button.danger-outline {
    border-color: rgba(174, 26, 26, 0.38);
    background: #fff;
    color: #a11e1e;
}

.button.danger-outline:hover {
    border-color: #a11e1e;
    background: #fff2f2;
}

.ml-photo-editor {
    display: grid;
    gap: 18px;
}

.ml-photo-editor-tools {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    padding: 12px;
    border: 1px solid #dfe3e7;
    border-radius: 10px;
    background: #f7f8f9;
}

.ml-photo-editor-tools span {
    color: #626970;
    font-size: 0.8rem;
    font-weight: 750;
}

.ml-photo-editor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
    min-height: 120px;
}

.ml-photo-editor-item {
    min-width: 0;
    overflow: hidden;
    border: 1px solid #dfe3e7;
    border-radius: 10px;
    background: #fff;
}

.ml-photo-editor-item.is-primary {
    border-color: #111214;
    box-shadow: 0 0 0 2px rgba(17, 18, 20, 0.08);
}

.ml-photo-editor-image {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    background: #f1f2f3;
}

.ml-photo-editor-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.ml-photo-editor-image span {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 5px 7px;
    border-radius: 6px;
    background: rgba(5, 5, 5, 0.9);
    color: #fff;
    font-size: 0.64rem;
    font-weight: 950;
    text-transform: uppercase;
}

.ml-photo-editor-controls {
    display: grid;
    grid-template-columns: repeat(3, 36px);
    gap: 6px;
    justify-content: center;
    padding: 9px;
    border-top: 1px solid #e5e7e9;
}

.ml-photo-editor-controls .icon-button {
    width: 36px;
    min-width: 36px;
    height: 36px;
    min-height: 36px;
    padding: 0;
}

.ml-photo-editor-controls .icon-button.danger {
    color: #a51f1f;
}

.ml-photo-editor-controls .icon-button:disabled {
    opacity: 0.28;
    cursor: not-allowed;
}

.ml-photo-editor-item.has-error .ml-photo-editor-image::after {
    content: "Imagem indisponível";
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 12px;
    background: #fff0f0;
    color: #9b2020;
    text-align: center;
    font-size: 0.72rem;
    font-weight: 850;
}

.ml-photo-editor-empty {
    grid-column: 1 / -1;
    display: grid;
    min-height: 120px;
    place-items: center;
    padding: 20px;
    border: 1px dashed #cbd0d5;
    border-radius: 10px;
    background: #fafafa;
    color: #687078;
    text-align: center;
    font-weight: 750;
}

.ml-photo-editor textarea {
    width: 100%;
    resize: vertical;
    font-family: Consolas, monospace;
    font-size: 0.78rem;
}

.ml-photo-editor-modal.is-working .ml-photo-editor-grid {
    opacity: 0.58;
    pointer-events: none;
}

@media (max-width: 700px) {
    .ml-listing-family > summary {
        grid-template-columns: 20px 24px 46px minmax(0, 1fr);
        gap: 8px;
        min-height: 70px;
        padding: 10px;
    }

    .ml-family-photo {
        width: 46px;
        height: 46px;
    }

    .ml-family-actions {
        grid-column: 3 / -1;
        width: 100%;
        justify-content: stretch;
    }

    .ml-family-actions .button {
        flex: 1 1 150px;
    }

    .ml-family-help {
        display: grid;
    }

    .ml-family-photo-actions {
        grid-template-columns: 1fr;
    }

    .ml-family-editor-toolbar,
    .ml-family-variation-head {
        align-items: stretch;
        flex-direction: column;
    }

    .ml-family-editor-toolbar span {
        text-align: left;
    }

    .ml-family-editor-photos {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ml-family-editor-add {
        grid-template-columns: 1fr;
    }

    .ml-family-shared-photo > summary {
        align-items: flex-start;
        flex-direction: column;
    }

    .ml-family-shared-photo-fields {
        grid-template-columns: 1fr;
    }

    .ml-family-photo-preview {
        grid-template-columns: repeat(4, minmax(62px, 1fr));
    }

    .ml-photo-editor-tools {
        align-items: stretch;
        flex-direction: column;
    }

    .ml-photo-editor-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .ml-bulk-toolbar {
        grid-template-columns: 1fr;
        position: static;
    }

    .ml-filter-panel {
        grid-template-columns: 1fr;
    }

    .ml-filter-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .ml-order-summary,
    .ml-mapping-summary {
        grid-template-columns: 1fr;
    }

    .ml-order-card {
        grid-template-columns: 1fr;
    }

    .ml-order-card .ml-card-selector,
    .ml-order-main,
    .ml-order-meta,
    .ml-order-card > p,
    .ml-order-card .row-actions {
        grid-column: 1;
    }

    .ml-order-pull-form,
    .ml-orders-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .ml-mapping-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .ml-mapping-actions .check,
    .ml-mapping-actions .button {
        width: 100%;
    }
}

.ml-welcome {
    position: relative;
    overflow: hidden;
    border: 0;
    background:
        linear-gradient(135deg, rgba(5, 5, 5, 0.96), rgba(40, 43, 47, 0.94) 58%, rgba(255, 225, 0, 0.82)),
        #050505;
    color: #fff;
    box-shadow: 0 22px 48px rgba(5, 5, 5, 0.18);
}

.ml-welcome::after {
    content: "";
    position: absolute;
    right: -80px;
    top: -120px;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: rgba(255, 225, 0, 0.24);
    filter: blur(4px);
}

.ml-welcome > * {
    position: relative;
    z-index: 1;
}

.ml-welcome .eyebrow,
.ml-welcome h1,
.ml-welcome p {
    color: #fff;
}

.ml-welcome p {
    max-width: 650px;
    opacity: 0.84;
}

.ml-welcome .button.light {
    border-color: rgba(255, 255, 255, 0.78);
    background: #fff;
    color: #050505;
}

.ml-workspace {
    display: grid;
    gap: 16px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin-top: 16px;
}

.ml-tab-input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.ml-tab-nav {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 10px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    padding: 8px;
    border: 1px solid #dfe3e7;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 18px 42px rgba(5, 5, 5, 0.07);
}

.ml-tab-nav a {
    display: grid;
    gap: 5px;
    min-height: 72px;
    padding: 14px;
    border: 1px solid transparent;
    border-radius: 14px;
    background: #f7f8f9;
    color: #111214;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.ml-tab-nav a:hover {
    transform: translateY(-1px);
    border-color: #cfd5db;
    background: #fff;
}

.ml-tab-nav a strong,
.ml-tab-nav a span {
    display: block;
}

.ml-tab-nav a strong {
    font-size: 0.88rem;
    font-weight: 950;
    line-height: 1.1;
    text-transform: uppercase;
}

.ml-tab-nav a span {
    color: #66707a;
    font-size: 0.73rem;
    font-weight: 800;
    line-height: 1.3;
}

#ml-tab-config:checked ~ .ml-tab-nav label[for="ml-tab-config"],
#ml-tab-create:checked ~ .ml-tab-nav label[for="ml-tab-create"],
#ml-tab-listings:checked ~ .ml-tab-nav label[for="ml-tab-listings"],
#ml-tab-orders:checked ~ .ml-tab-nav label[for="ml-tab-orders"],
#ml-tab-messages:checked ~ .ml-tab-nav label[for="ml-tab-messages"],
#ml-tab-reports:checked ~ .ml-tab-nav label[for="ml-tab-reports"],
#ml-tab-events:checked ~ .ml-tab-nav label[for="ml-tab-events"],
.ml-tab-nav a.is-active {
    border-color: #050505;
    background:
        linear-gradient(135deg, #050505, #24282d),
        #050505;
    color: #fff;
    box-shadow: inset 0 -3px 0 #ffe100;
}

#ml-tab-config:checked ~ .ml-tab-nav label[for="ml-tab-config"] span,
#ml-tab-create:checked ~ .ml-tab-nav label[for="ml-tab-create"] span,
#ml-tab-listings:checked ~ .ml-tab-nav label[for="ml-tab-listings"] span,
#ml-tab-orders:checked ~ .ml-tab-nav label[for="ml-tab-orders"] span,
#ml-tab-messages:checked ~ .ml-tab-nav label[for="ml-tab-messages"] span,
#ml-tab-reports:checked ~ .ml-tab-nav label[for="ml-tab-reports"] span,
#ml-tab-events:checked ~ .ml-tab-nav label[for="ml-tab-events"] span,
.ml-tab-nav a.is-active span {
    color: rgba(255, 255, 255, 0.74);
}

.ml-tab-panel {
    display: none;
    min-width: 0;
    max-width: 100%;
    overflow-x: hidden;
    animation: mlPanelIn 0.2s ease both;
}

.ml-tab-panels {
    min-width: 0;
    max-width: 100%;
    overflow-x: hidden;
}

#ml-tab-config:checked ~ .ml-tab-panels .ml-tab-config-panel,
#ml-tab-create:checked ~ .ml-tab-panels .ml-tab-create-panel,
#ml-tab-listings:checked ~ .ml-tab-panels .ml-tab-listings-panel,
#ml-tab-orders:checked ~ .ml-tab-panels .ml-tab-orders-panel,
#ml-tab-messages:checked ~ .ml-tab-panels .ml-tab-messages-panel,
#ml-tab-reports:checked ~ .ml-tab-panels .ml-tab-reports-panel,
#ml-tab-events:checked ~ .ml-tab-panels .ml-tab-events-panel {
    display: block;
}

@keyframes mlPanelIn {
    from {
        opacity: 0;
        transform: translateY(4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ml-tab-panel > .admin-panel,
.ml-tab-panel > .ml-mapping-panel {
    margin-bottom: 16px;
}

.ml-config-form {
    display: block;
}

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

.ml-config-card {
    display: grid;
    gap: 12px;
    align-content: start;
    padding: 16px;
    border: 1px solid #dfe3e7;
    border-radius: 16px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(247, 248, 249, 0.96)),
        #fff;
    box-shadow: 0 14px 32px rgba(5, 5, 5, 0.055);
}

.ml-config-card h3 {
    margin: 4px 0 0;
    color: #050505;
    font-size: 1.04rem;
    font-weight: 950;
    line-height: 1.15;
}

.ml-config-card > label:not(.check) {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.ml-config-card > label:not(.check) span {
    color: #5f6670;
    font-size: 0.7rem;
    font-weight: 950;
    text-transform: uppercase;
}

.ml-config-card input {
    width: 100%;
    min-width: 0;
}

.ml-config-card .check {
    width: auto;
    min-height: 42px;
    margin: 0;
    padding: 9px 12px;
    border: 1px solid #e0e4e8;
    border-radius: 10px;
    background: #fff;
    color: #252a30;
    font-size: 0.82rem;
    font-weight: 850;
}

.ml-config-card small {
    color: #69717a;
    font-size: 0.78rem;
    font-weight: 750;
    line-height: 1.45;
}

.ml-config-save {
    display: flex;
    justify-content: flex-end;
    margin-top: 14px;
}

.ml-config-save .button {
    min-width: 210px;
}

.ml-cron-panel {
    border-color: #d7dce2;
    background:
        linear-gradient(135deg, #fff, #f3f5f7),
        #fff;
}

.ml-cron-panel .cron-url {
    border-color: #cfd5db;
    background: #050505;
    color: #fff;
}

.ml-create-panel {
    display: grid;
    gap: 16px;
}

.ml-create-source {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) auto;
    gap: 12px;
    align-items: end;
    padding: 14px;
    border: 1px solid #dfe3e7;
    border-radius: 14px;
    background: #f7f8f9;
}

.ml-create-source label,
.ml-create-card label {
    display: grid;
    gap: 6px;
}

.ml-create-source span,
.ml-create-card label > span,
.ml-create-card-head .eyebrow {
    color: #6b7076;
    font-size: 0.72rem;
    font-weight: 950;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.ml-create-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
    gap: 14px;
}

.ml-create-card {
    display: grid;
    gap: 14px;
    padding: 16px;
    border: 1px solid #dfe3e7;
    border-radius: 16px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(247, 248, 249, 0.94)),
        #fff;
}

.ml-create-card-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
}

.ml-create-card-head strong {
    font-size: 1.05rem;
}

.ml-category-suggestions,
.ml-create-variations {
    display: grid;
    gap: 8px;
}

.ml-create-variations.is-disabled {
    opacity: 0.48;
    filter: grayscale(1);
}

.ml-category-suggestions button {
    display: grid;
    gap: 3px;
    padding: 10px 12px;
    border: 1px solid #dfe3e7;
    border-radius: 12px;
    background: #fff;
    color: #050505;
    text-align: left;
    cursor: pointer;
}

.ml-category-suggestions button:hover {
    border-color: #050505;
}

.ml-category-suggestions span,
.ml-category-suggestions em,
.ml-required-attrs span {
    color: #6b7076;
    font-size: 0.78rem;
}

.ml-category-suggestions em {
    font-style: normal;
    color: #8a9096;
}

.ml-category-filter-note {
    margin: 2px 0 0;
    padding: 9px 11px;
    border-left: 3px solid #129447;
    border-radius: 7px;
    background: #f1faf4;
    color: #315d40;
    font-size: 0.76rem;
}

.ml-category-suggestions button {
    position: relative;
    padding-right: 154px;
}

.ml-category-status-badges {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    gap: 5px;
    align-items: center;
}

.ml-category-status-badges i {
    padding: 4px 7px;
    border-radius: 999px;
    font-style: normal;
    font-size: 0.66rem;
    font-weight: 950;
}

.ml-category-status-badges i.ok {
    background: #dff7e8;
    color: #0b7438;
}

.ml-category-status-badges i.warn {
    background: #fff1c9;
    color: #8a5d00;
}

.ml-category-status-badges i.off {
    background: #eceff1;
    color: #6b7279;
}

.ml-category-suggestions small {
    color: #3d7552;
    font-size: 0.7rem;
    font-weight: 750;
}

@media (max-width: 680px) {
    .ml-category-suggestions button {
        padding-right: 12px;
    }

    .ml-category-status-badges {
        position: static;
        margin-top: 4px;
    }
}

/* Credibility upgrade */
body:not(.admin-body):not(.mobile-body):not(.tablet-body) .trust-section-legacy {
    display: none;
}

body.page-inicio:not(.admin-body):not(.mobile-body):not(.tablet-body) .desktop-chat-widget {
    width: min(220px, calc(100vw - 28px));
}

body.page-inicio:not(.admin-body):not(.mobile-body):not(.tablet-body) .floating-quote {
    min-width: 150px;
    max-width: 190px;
}

body:not(.admin-body):not(.mobile-body):not(.tablet-body) .home-company-proof {
    width: min(1200px, calc(100% - 32px));
    margin: 34px auto;
}

body:not(.admin-body):not(.mobile-body):not(.tablet-body) .home-company-main {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(380px, .92fr);
    min-height: 420px;
    overflow: hidden;
    border: 1px solid #d8dce0;
    border-radius: 8px;
    background: #fff;
}

body:not(.admin-body):not(.mobile-body):not(.tablet-body) .home-company-main figure {
    order: 2;
    min-width: 0;
    margin: 0;
    background: #111;
}

body:not(.admin-body):not(.mobile-body):not(.tablet-body) .home-company-main figure img {
    width: 100%;
    height: 100%;
    min-height: 420px;
    object-fit: cover;
}

body:not(.admin-body):not(.mobile-body):not(.tablet-body) .home-company-copy {
    order: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    padding: clamp(32px, 4vw, 54px);
}

body:not(.admin-body):not(.mobile-body):not(.tablet-body) .home-company-copy h2 {
    max-width: 640px;
    margin: 10px 0 16px;
    font-size: clamp(32px, 3.2vw, 44px);
    line-height: 1.02;
}

body:not(.admin-body):not(.mobile-body):not(.tablet-body) .home-company-copy > p {
    max-width: 650px;
    margin: 0;
    color: #4c535a;
    font-size: 17px;
    line-height: 1.6;
}

body:not(.admin-body):not(.mobile-body):not(.tablet-body) .home-company-copy dl {
    display: grid;
    gap: 0;
    margin: 26px 0;
    border-top: 1px solid #dfe2e5;
}

body:not(.admin-body):not(.mobile-body):not(.tablet-body) .home-company-copy dl div {
    display: grid;
    grid-template-columns: 125px minmax(0, 1fr);
    gap: 16px;
    padding: 11px 0;
    border-bottom: 1px solid #dfe2e5;
}

body:not(.admin-body):not(.mobile-body):not(.tablet-body) .home-company-copy dt {
    color: #6b727a;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

body:not(.admin-body):not(.mobile-body):not(.tablet-body) .home-company-copy dd {
    min-width: 0;
    margin: 0;
    color: #111;
    font-weight: 700;
    overflow-wrap: anywhere;
}

body:not(.admin-body):not(.mobile-body):not(.tablet-body) .home-company-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

body:not(.admin-body):not(.mobile-body):not(.tablet-body) .home-proof-facts {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 12px;
    overflow: hidden;
    border: 1px solid #303337;
    border-radius: 8px;
    background: #111315;
}

body:not(.admin-body):not(.mobile-body):not(.tablet-body) .home-proof-facts article {
    display: grid;
    align-content: center;
    gap: 5px;
    min-height: 132px;
    padding: 24px 28px;
    border-right: 1px solid #34383c;
}

body:not(.admin-body):not(.mobile-body):not(.tablet-body) .home-proof-facts article:last-child {
    border-right: 0;
}

body:not(.admin-body):not(.mobile-body):not(.tablet-body) .home-proof-facts strong {
    color: #fff;
    font-size: 28px;
    line-height: 1;
}

body:not(.admin-body):not(.mobile-body):not(.tablet-body) .home-proof-facts span {
    color: #c8ccd0;
    font-size: 13px;
    line-height: 1.35;
}

body:not(.admin-body):not(.mobile-body):not(.tablet-body) .home-proof-reviews {
    margin-top: 20px;
    padding: 38px;
    border-top: 1px solid #d8dce0;
    border-bottom: 1px solid #d8dce0;
    background: #f4f5f6;
}

body:not(.admin-body):not(.mobile-body):not(.tablet-body) .home-proof-review-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 4px 24px;
    align-items: end;
    margin-bottom: 22px;
}

body:not(.admin-body):not(.mobile-body):not(.tablet-body) .home-proof-review-head .eyebrow {
    grid-column: 1 / -1;
}

body:not(.admin-body):not(.mobile-body):not(.tablet-body) .home-proof-review-head h3 {
    margin: 0;
    font-size: 28px;
}

body:not(.admin-body):not(.mobile-body):not(.tablet-body) .home-proof-review-head p {
    margin: 0;
    color: #505860;
}

body:not(.admin-body):not(.mobile-body):not(.tablet-body) .home-review-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

body:not(.admin-body):not(.mobile-body):not(.tablet-body) .home-review-list article {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 220px;
    padding: 22px;
    border: 1px solid #d8dce0;
    border-radius: 6px;
    background: #fff;
}

body:not(.admin-body):not(.mobile-body):not(.tablet-body) .home-review-stars {
    display: flex;
    gap: 2px;
    margin-bottom: 12px;
}

body:not(.admin-body):not(.mobile-body):not(.tablet-body) .home-review-stars span {
    color: #c8ccd0;
}

body:not(.admin-body):not(.mobile-body):not(.tablet-body) .home-review-stars .is-filled {
    color: #111;
}

body:not(.admin-body):not(.mobile-body):not(.tablet-body) .home-review-list article > strong {
    font-size: 18px;
}

body:not(.admin-body):not(.mobile-body):not(.tablet-body) .home-review-list article > p {
    flex: 1;
    color: #525a62;
    line-height: 1.55;
}

body:not(.admin-body):not(.mobile-body):not(.tablet-body) .home-review-list footer {
    display: grid;
    gap: 3px;
    padding-top: 14px;
    border-top: 1px solid #e2e4e6;
    font-size: 12px;
}

body:not(.admin-body):not(.mobile-body):not(.tablet-body) .home-review-list footer span {
    font-weight: 900;
}

body:not(.admin-body):not(.mobile-body):not(.tablet-body) .home-review-list footer a {
    color: #59616a;
}

.mobile-body .mobile-company-proof,
.tablet-body .mobile-company-proof {
    display: grid;
    gap: 16px;
    margin: 14px 0;
    overflow: hidden;
    border: 1px solid #d7dadd;
    border-radius: 8px;
    background: #fff;
}

.mobile-body .mobile-company-proof > img,
.tablet-body .mobile-company-proof > img {
    width: 100%;
    aspect-ratio: 16 / 8;
    object-fit: cover;
    background: #111;
}

.mobile-body .mobile-company-proof > div:not(.mobile-proof-facts):not(.mobile-actions),
.tablet-body .mobile-company-proof > div:not(.mobile-proof-facts):not(.mobile-actions) {
    display: grid;
    gap: 7px;
    padding: 0 18px;
}

.mobile-body .mobile-company-proof > div > span,
.tablet-body .mobile-company-proof > div > span {
    color: #5d646b;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.mobile-body .mobile-company-proof h2,
.tablet-body .mobile-company-proof h2 {
    margin: 0;
    font-size: 25px;
    line-height: 1.05;
}

.mobile-body .mobile-company-proof p,
.tablet-body .mobile-company-proof p {
    margin: 0;
    color: #555d65;
    line-height: 1.5;
}

.mobile-body .mobile-proof-facts,
.tablet-body .mobile-proof-facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 0 18px;
    border: 1px solid #2f3337;
    border-radius: 6px;
    background: #111315;
}

.mobile-body .mobile-proof-facts article,
.tablet-body .mobile-proof-facts article {
    display: grid;
    align-content: center;
    gap: 4px;
    min-width: 0;
    min-height: 86px;
    padding: 12px 10px;
    border-right: 1px solid #34383c;
}

.mobile-body .mobile-proof-facts article:last-child,
.tablet-body .mobile-proof-facts article:last-child {
    border-right: 0;
}

.mobile-body .mobile-proof-facts strong,
.tablet-body .mobile-proof-facts strong {
    color: #fff;
    font-size: 18px;
    overflow-wrap: anywhere;
}

.mobile-body .mobile-proof-facts span,
.tablet-body .mobile-proof-facts span {
    color: #c8ccd0;
    font-size: 10px;
    line-height: 1.25;
}

.mobile-body .mobile-company-proof address,
.tablet-body .mobile-company-proof address {
    margin: 0 18px;
    padding-top: 12px;
    border-top: 1px solid #e0e2e4;
    color: #4f565e;
    font-size: 12px;
    font-style: normal;
    line-height: 1.45;
}

.mobile-body .mobile-company-proof .mobile-actions,
.tablet-body .mobile-company-proof .mobile-actions {
    padding: 0 18px 18px;
}

@media (max-width: 980px) {
    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .home-company-main {
        grid-template-columns: 1fr;
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .home-company-main figure img {
        min-height: 320px;
        max-height: 420px;
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .home-proof-facts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .home-proof-facts article:nth-child(2) {
        border-right: 0;
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .home-review-list {
        grid-template-columns: 1fr;
    }
}

.ml-required-attrs {
    padding: 10px;
    border: 1px dashed #c8ced4;
    border-radius: 12px;
    background: #fff;
}

.ml-required-attrs summary,
.ml-create-preview summary {
    cursor: pointer;
    font-weight: 950;
}

.ml-required-attrs span {
    display: block;
    margin-top: 6px;
}

.ml-category-logistics {
    display: grid;
    gap: 10px;
    padding: 12px;
    border: 1px solid #dfe3e7;
    border-left: 4px solid #8a9096;
    border-radius: 10px;
    background: #fff;
}

.ml-category-logistics-head {
    display: grid;
    grid-template-columns: 12px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
}

.ml-category-logistics-head > div {
    display: grid;
    gap: 3px;
}

.ml-category-logistics-head strong {
    font-size: 0.88rem;
}

.ml-category-logistics-head small {
    color: #697078;
    font-size: 0.75rem;
    line-height: 1.4;
}

.ml-category-logistics-indicator {
    width: 10px;
    height: 10px;
    margin-top: 4px;
    border-radius: 50%;
    background: #8a9096;
    box-shadow: 0 0 0 4px rgba(138, 144, 150, 0.12);
}

.ml-category-logistics.available {
    border-left-color: #129447;
    background: #f4fbf6;
}

.ml-category-logistics.available .ml-category-logistics-indicator {
    background: #129447;
    box-shadow: 0 0 0 4px rgba(18, 148, 71, 0.12);
}

.ml-category-logistics.account_unavailable {
    border-left-color: #d49600;
    background: #fffaf0;
}

.ml-category-logistics.account_unavailable .ml-category-logistics-indicator {
    background: #d49600;
    box-shadow: 0 0 0 4px rgba(212, 150, 0, 0.12);
}

.ml-category-logistics.unavailable,
.ml-category-logistics.error {
    border-left-color: #c93838;
    background: #fff6f6;
}

.ml-category-logistics.unavailable .ml-category-logistics-indicator,
.ml-category-logistics.error .ml-category-logistics-indicator {
    background: #c93838;
    box-shadow: 0 0 0 4px rgba(201, 56, 56, 0.12);
}

.ml-category-logistics.loading .ml-category-logistics-indicator {
    animation: mlLogisticsPulse 0.9s ease-in-out infinite alternate;
}

.ml-category-logistics-details {
    display: grid;
    gap: 5px;
    padding-top: 9px;
    border-top: 1px solid rgba(5, 5, 5, 0.1);
}

.ml-category-logistics-details span {
    color: #606870;
    font-size: 0.73rem;
    line-height: 1.35;
}

.ml-category-logistics-details b {
    color: #17191b;
}

.ml-category-logistics-details i {
    font-style: normal;
}

@keyframes mlLogisticsPulse {
    from { opacity: 0.35; }
    to { opacity: 1; }
}

.ml-create-photos {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(124px, 1fr));
    gap: 10px;
}

.ml-create-photo {
    position: relative;
    overflow: hidden;
    min-height: 142px;
    padding: 8px;
    border: 1px solid #dfe3e7;
    border-radius: 14px;
    background: #fff;
}

.ml-create-photo img {
    width: 100%;
    height: 96px;
    object-fit: contain;
    border-radius: 10px;
    background: #f3f4f5;
}

.ml-create-photo input {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 18px;
    height: 18px;
    accent-color: #050505;
}

.ml-create-photo strong {
    display: block;
    margin-top: 6px;
    color: #050505;
    font-size: 0.68rem;
    font-weight: 950;
    text-transform: uppercase;
}

.ml-create-photo span {
    display: -webkit-box;
    overflow: hidden;
    color: #050505;
    font-size: 0.74rem;
    font-weight: 950;
    text-align: center;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.ml-create-variation-head,
.ml-create-variation-row {
    display: grid;
    grid-template-columns: 54px minmax(180px, 1.2fr) minmax(100px, 0.5fr) minmax(90px, 0.45fr) minmax(130px, 0.7fr) minmax(180px, 1fr);
    gap: 8px;
    align-items: center;
}

.ml-create-variation-head {
    color: #6b7076;
    font-size: 0.68rem;
    font-weight: 950;
    text-transform: uppercase;
}

.ml-create-variation-row {
    padding: 8px;
    border: 1px solid #e4e7ea;
    border-radius: 12px;
    background: #fff;
}

.ml-create-variation-photos {
    grid-column: 1 / -1;
    padding: 10px;
    border: 1px solid #eef0f2;
    border-radius: 12px;
    background: #f7f8f9;
}

.ml-create-variation-photos summary {
    cursor: pointer;
    color: #050505;
    font-weight: 950;
}

.ml-create-autoload-note {
    margin: 10px 0 12px;
    padding: 10px 12px;
    border: 1px solid #dfe3e7;
    border-left: 4px solid #050505;
    border-radius: 10px;
    background: #f8f9fa;
    color: #4f5964;
    font-weight: 800;
    line-height: 1.35;
}

.ml-create-variation-tools {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 10px 0 12px;
    padding: 10px;
    border: 1px dashed #cfd4da;
    border-radius: 10px;
    background: #fff;
}

.ml-create-variation-tools span {
    color: #68727e;
    font-size: 0.86rem;
    font-weight: 750;
}

.ml-create-variation-bulk {
    display: grid;
    grid-template-columns: minmax(150px, 190px) auto auto minmax(180px, 1fr);
    gap: 10px;
    align-items: end;
    margin: 0 0 12px;
    padding: 12px;
    border: 1px solid #d7dce1;
    border-radius: 10px;
    background: #f4f5f6;
}

.ml-create-variation-bulk label {
    display: grid;
    gap: 5px;
}

.ml-create-variation-bulk label span {
    color: #5d6670;
    font-size: 0.68rem;
    font-weight: 950;
    text-transform: uppercase;
}

.ml-create-variation-bulk small {
    align-self: center;
    color: #65707a;
    font-size: 0.76rem;
    line-height: 1.35;
}

.ml-create-variation-bulk.is-working {
    border-color: #050505;
    box-shadow: inset 0 0 0 1px #050505;
}

.ml-generated-variation-preview {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: 10px;
    padding: 9px;
    border: 1px solid #d9dee3;
    border-radius: 8px;
    background: #fff;
}

.ml-generated-variation-preview[hidden] {
    display: none;
}

.ml-generated-variation-preview img {
    width: 76px;
    height: 76px;
    object-fit: cover;
    border: 1px solid #e2e5e8;
    border-radius: 6px;
}

.ml-generated-variation-preview span {
    color: #30363c;
    font-size: 0.76rem;
    font-weight: 850;
}

.ml-variation-photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(74px, 1fr));
    gap: 8px;
    max-height: 230px;
    margin: 10px 0;
    overflow: auto;
    padding-right: 4px;
}

.ml-variation-photo {
    position: relative;
    overflow: hidden;
    min-height: 78px;
    border: 1px solid #dfe3e7;
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
}

.ml-variation-photo input {
    position: absolute;
    z-index: 1;
    top: 6px;
    left: 6px;
    width: 16px;
    height: 16px;
    accent-color: #050505;
}

.ml-variation-photo img {
    width: 100%;
    height: 78px;
    object-fit: contain;
    padding: 6px;
    background: #fff;
}

.ml-variation-photo:has(input:checked) {
    border-color: #050505;
    box-shadow: inset 0 0 0 2px #050505;
}

.ml-create-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.ml-create-preview {
    padding: 14px;
    border: 1px solid #dfe3e7;
    border-radius: 14px;
    background: #fff;
}

.ml-create-preview pre {
    overflow: auto;
    max-height: 420px;
    margin: 12px 0 0;
    padding: 14px;
    border-radius: 12px;
    background: #050505;
    color: #fff;
    font-size: 0.78rem;
    white-space: pre-wrap;
}

.ml-tab-listings-panel #cadastro-anuncio-ml {
    border-color: rgba(255, 225, 0, 0.35);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(255, 249, 209, 0.34)),
        #fff;
}

.ml-tab-listings-panel .ml-mapping-panel {
    border-radius: 18px;
}

.ml-tab-events-panel .ml-event-card {
    border-radius: 14px;
    box-shadow: 0 12px 28px rgba(5, 5, 5, 0.055);
}

.ml-reports-panel {
    display: grid;
    gap: 16px;
}

.ml-report-block {
    display: grid;
    gap: 12px;
    padding: 16px;
    border: 1px solid #dfe3e7;
    border-radius: 16px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(247, 248, 249, 0.96)),
        #fff;
}

.ml-report-title {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
}

.ml-report-title h3 {
    margin: 4px 0 0;
    color: #050505;
    font-size: 1.12rem;
    font-weight: 950;
}

.ml-report-title small {
    color: #69717a;
    font-weight: 850;
}

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

.ml-report-grid article {
    display: grid;
    gap: 6px;
    min-width: 0;
    padding: 14px;
    border: 1px solid #dde2e7;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(5, 5, 5, 0.045);
}

.ml-report-grid span,
.ml-report-grid small {
    color: #69717a;
    font-size: 0.72rem;
    font-weight: 900;
    line-height: 1.3;
    text-transform: uppercase;
}

.ml-report-grid strong {
    color: #050505;
    font-size: clamp(1.2rem, 2.1vw, 1.7rem);
    font-weight: 950;
    letter-spacing: 0;
}

.ml-report-table {
    max-width: 100%;
    overflow-x: auto;
}

.ml-report-table table {
    min-width: 860px;
}

.ml-report-table td strong,
.ml-report-table td small {
    display: block;
}

.ml-report-table td small {
    margin-top: 3px;
    color: #737b84;
    font-size: 0.72rem;
    font-weight: 800;
}

.ml-category-report-list {
    display: grid;
    gap: 10px;
}

.ml-category-report {
    overflow: hidden;
    border: 1px solid #dfe3e7;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(5, 5, 5, 0.04);
}

.ml-collapsible .ml-category-report > summary,
.ml-category-report > summary {
    position: relative;
    display: grid;
    grid-template-columns: minmax(240px, 1fr) minmax(0, 2fr);
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-bottom: 0;
    background: #fff;
    cursor: pointer;
    list-style: none;
}

.ml-collapsible .ml-category-report[open] > summary {
    border-bottom: 1px solid #e5e9ed;
    background: #fafbfc;
}

.ml-category-report > summary::-webkit-details-marker {
    display: none;
}

.ml-collapsible .ml-category-report > summary::after,
.ml-category-report > summary::after {
    content: "+";
    display: grid;
    position: absolute;
    right: 18px;
    width: 28px;
    height: 28px;
    place-items: center;
    border-radius: 8px;
    background: #050505;
    color: #050505;
    font-size: 1rem;
    font-weight: 950;
}

.ml-collapsible .ml-category-report > summary::after {
    color: #fff;
}

.ml-collapsible .ml-category-report[open] > summary::after,
.ml-category-report[open] > summary::after {
    content: "-";
    background: #ffe100;
    color: #050505;
}

.ml-category-title {
    display: grid;
    gap: 5px;
    min-width: 0;
    padding-right: 22px;
}

.ml-category-title strong {
    color: #050505;
    font-size: 1rem;
    font-weight: 950;
    line-height: 1.2;
}

.ml-category-title span,
.ml-category-kpis small {
    color: #6d747d;
    font-size: 0.7rem;
    font-weight: 900;
    line-height: 1.25;
    text-transform: uppercase;
}

.ml-category-kpis {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    padding-right: 22px;
}

.ml-category-kpis span {
    display: grid;
    gap: 3px;
    min-width: 0;
    padding: 10px 12px;
    border: 1px solid #e2e7ec;
    border-radius: 12px;
    background: #f8f9fa;
}

.ml-category-kpis strong {
    overflow: hidden;
    color: #050505;
    font-size: 0.98rem;
    font-weight: 950;
    line-height: 1.1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ml-category-breakdown {
    display: grid;
    gap: 12px;
    padding: 0 16px 16px;
}

.ml-category-mini-grid {
    grid-template-columns: repeat(5, minmax(130px, 1fr));
}

.ml-category-items-table table {
    min-width: 1040px;
}

.ml-category-items-table a {
    color: #050505;
    font-weight: 950;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}

@media (max-width: 980px) {
    .ml-create-variation-bulk {
        grid-template-columns: 1fr 1fr;
    }

    .ml-create-variation-bulk small {
        grid-column: 1 / -1;
    }

    .ml-tab-nav,
    .ml-config-grid,
    .ml-create-grid,
    .ml-create-source {
        grid-template-columns: 1fr;
    }

    .ml-tab-nav a {
        min-height: 62px;
    }

    .ml-report-title {
        align-items: flex-start;
        flex-direction: column;
    }

    .ml-report-grid {
        grid-template-columns: 1fr;
    }

    .ml-category-report > summary,
    .ml-category-kpis,
    .ml-category-mini-grid {
        grid-template-columns: 1fr;
    }

    .ml-create-variation-head {
        display: none;
    }

    .ml-create-variation-row {
        grid-template-columns: 1fr 1fr;
    }

    .ml-create-actions {
        justify-content: stretch;
    }

    .ml-create-actions .button {
        width: 100%;
    }
}

/* Pagina Vinculos: fluxo mais compacto e menos exposto. */
.links-welcome .admin-welcome-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.links-welcome .admin-welcome-actions form {
    margin: 0;
}

.links-insights article strong {
    letter-spacing: 0;
}

.links-catalog-panel .panel-head span,
.links-products-panel .panel-head span {
    display: block;
    margin-top: 4px;
    color: #6b7076;
    font-size: 0.78rem;
    font-weight: 750;
}

.links-quick-code-form {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) auto;
    gap: 12px;
    align-items: end;
    max-width: 780px;
    margin-bottom: 14px;
}

.links-quick-code-form label {
    display: grid;
    gap: 7px;
}

.links-toolbox {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 12px;
}

.links-toolbox .advanced-integration,
.catalog-list-panel {
    border-color: #dfe3e7;
    border-radius: 14px;
    background: #fbfcfd;
}

.links-toolbox .advanced-integration summary,
.catalog-list-panel summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    color: #050505;
    font-size: 0.86rem;
    font-weight: 950;
}

.links-toolbox .advanced-integration summary::after,
.catalog-list-panel summary::after {
    content: "Abrir";
    padding: 6px 9px;
    border-radius: 999px;
    background: #050505;
    color: #fff;
    font-size: 0.66rem;
    font-weight: 950;
    text-transform: uppercase;
}

.links-toolbox .advanced-integration[open] summary::after,
.catalog-list-panel[open] summary::after {
    content: "Fechar";
    background: #3f4448;
}

.catalog-list-panel {
    margin-top: 14px;
}

.catalog-list-panel .catalog-table {
    margin-top: 14px;
}

.links-products-panel {
    scroll-margin-top: 16px;
}

.links-product-list {
    display: grid;
    gap: 10px;
    margin-bottom: 16px;
}

.links-products-panel .link-product-card {
    display: block;
    padding: 0;
    overflow: hidden;
    border: 1px solid #dfe3e7;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 12px 28px rgba(5, 5, 5, 0.05);
}

.links-products-panel .link-product-card[open] {
    border-color: #aeb4ba;
    box-shadow: 0 18px 42px rgba(5, 5, 5, 0.09);
}

.links-products-panel .link-product-summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    padding: 15px 16px;
    cursor: pointer;
    list-style: none;
}

.links-products-panel .link-product-summary::-webkit-details-marker {
    display: none;
}

.links-products-panel .link-product-summary > div:first-child {
    min-width: 0;
    display: grid;
    gap: 4px;
}

.links-products-panel .link-product-summary strong {
    color: #050505;
    font-size: 0.98rem;
    font-weight: 950;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.links-products-panel .link-product-summary small {
    color: #6a7076;
    font-size: 0.76rem;
    font-weight: 750;
    overflow-wrap: anywhere;
}

.link-product-badges {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.link-product-badges span,
.link-product-badges em {
    padding: 7px 9px;
    border: 1px solid #dfe3e7;
    border-radius: 999px;
    background: #f7f8f9;
    color: #3f4448;
    font-size: 0.68rem;
    font-style: normal;
    font-weight: 950;
    line-height: 1;
    text-transform: uppercase;
    white-space: nowrap;
}

.link-product-badges span.ok {
    border-color: #050505;
    background: #050505;
    color: #fff;
}

.link-product-badges span.warn {
    border-color: #c7ccd1;
    background: #fff;
    color: #6a7076;
}

.link-product-badges em {
    background: #fff159;
    border-color: #fff159;
    color: #050505;
}

.links-products-panel .link-product-body {
    display: grid;
    grid-template-columns: minmax(260px, 0.8fr) minmax(300px, 1.2fr);
    gap: 14px;
    padding: 16px;
    border-top: 1px solid #e3e7eb;
    background: #fbfcfd;
}

.links-products-panel .link-product-body label,
.links-products-panel .link-variants label {
    display: grid;
    gap: 7px;
}

.links-products-panel .link-product-body span,
.links-products-panel .link-variants span {
    color: #596068;
    font-size: 0.72rem;
    font-weight: 950;
    text-transform: uppercase;
}

.links-products-panel .link-product-body select {
    width: 100%;
    min-height: 42px;
    border-radius: 10px;
}

.links-products-panel .link-variants {
    grid-column: auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.links-products-panel .integration-link-form > .button {
    min-width: 210px;
}

@media (max-width: 1180px) {
    .links-toolbox,
    .links-products-panel .link-product-body,
    .links-products-panel .link-variants {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .links-quick-code-form,
    .links-products-panel .link-product-summary {
        grid-template-columns: 1fr;
    }

    .link-product-badges {
        justify-content: flex-start;
    }
}

/* Produtos: edicao em massa e detalhe publico mais organizado. */
.product-bulk-form {
    display: grid;
    gap: 14px;
}

.product-search-form {
    display: grid;
    grid-template-columns: minmax(260px, 1.35fr) repeat(4, minmax(150px, 0.72fr)) auto;
    gap: 10px;
    align-items: end;
    margin-bottom: 14px;
    padding: 12px;
    border: 1px solid #dfe3e7;
    border-radius: 14px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(245, 246, 247, 0.95)),
        #fff;
}

.product-search-form label,
.product-search-actions {
    display: grid;
    gap: 6px;
}

.product-search-form span {
    color: #6b7076;
    font-size: 0.7rem;
    font-weight: 950;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.product-search-main input {
    min-height: 44px;
    font-weight: 800;
}

.product-search-actions {
    grid-template-columns: auto auto;
    align-items: end;
}

.empty-search-result {
    display: grid;
    gap: 6px;
    justify-items: center;
    padding: 28px 12px;
    color: #6b7076;
    text-align: center;
}

.empty-search-result strong {
    color: #050505;
    font-size: 1rem;
}

.merchant-hero {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: center;
    padding: 26px;
    color: #fff;
    background:
        radial-gradient(circle at 88% 18%, rgba(255, 218, 0, 0.52), transparent 28%),
        linear-gradient(135deg, #050505, #3f4448);
}

.merchant-hero span,
.merchant-feed-url small {
    font-size: 0.72rem;
    font-weight: 950;
    text-transform: uppercase;
}

.merchant-hero h2 {
    margin: 8px 0;
    color: #fff;
    font-size: clamp(2rem, 5vw, 4.2rem);
    line-height: 0.95;
}

.merchant-hero p {
    max-width: 720px;
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
}

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

.merchant-stats article {
    display: grid;
    gap: 10px;
    padding: 18px;
    border: 1px solid #dfe3e7;
    border-radius: 14px;
    background: #fff;
}

.merchant-stats span {
    color: #6b7076;
    font-size: 0.72rem;
    font-weight: 950;
    text-transform: uppercase;
}

.merchant-stats strong {
    font-size: 2rem;
}

.merchant-layout {
    grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.55fr);
}

.merchant-feed-url {
    display: grid;
    gap: 10px;
    padding: 14px;
    border: 1px solid #dfe3e7;
    border-radius: 12px;
    background: #f7f8f9;
}

.merchant-feed-url code {
    display: block;
    overflow-wrap: anywhere;
    padding: 12px;
    border-radius: 10px;
    background: #050505;
    color: #fff;
    font-size: 0.82rem;
}

.merchant-side {
    align-content: start;
}

.merchant-preview-list {
    display: grid;
    gap: 10px;
}

.merchant-preview-list article {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr) auto auto;
    gap: 12px;
    align-items: center;
    padding: 10px;
    border: 1px solid #dfe3e7;
    border-radius: 12px;
    background: #fff;
}

.merchant-preview-list img {
    width: 58px;
    height: 58px;
    object-fit: contain;
    border-radius: 10px;
    background: #f3f4f5;
}

.merchant-preview-list span,
.merchant-preview-list em {
    color: #6b7076;
    font-size: 0.78rem;
}

.merchant-preview-list em {
    font-style: normal;
    font-weight: 900;
}

.bulk-toolbar {
    display: grid;
    grid-template-columns: auto minmax(240px, 360px) auto;
    align-items: end;
    gap: 12px;
    padding: 12px;
    border: 1px solid #dfe3e7;
    border-radius: 14px;
    background: #f7f8f9;
}

.bulk-toolbar label:not(.check) {
    display: grid;
    gap: 6px;
}

.bulk-toolbar span,
.status-subline {
    color: #6b7076;
    font-size: 0.72rem;
    font-weight: 900;
    text-transform: uppercase;
}

.bulk-select-all {
    min-height: 42px;
    align-items: center;
}

.bulk-hint {
    margin: -4px 2px 0;
    color: #6b7076;
    font-size: 0.82rem;
    font-weight: 750;
}

.bulk-shipping-fields,
.bulk-extra-fields {
    display: grid;
    grid-template-columns: minmax(210px, 1.2fr) repeat(4, minmax(120px, 1fr));
    gap: 12px;
    align-items: end;
    padding: 14px;
    border: 1px solid #dfe3e7;
    border-radius: 14px;
    background:
        linear-gradient(135deg, rgba(5, 5, 5, 0.04), rgba(255, 255, 255, 0.96)),
        #fff;
}

.bulk-extra-fields {
    grid-template-columns: minmax(240px, 1.3fr) repeat(2, minmax(150px, 1fr));
}

.bulk-shipping-fields[hidden],
.bulk-extra-fields[hidden] {
    display: none;
}

.bulk-shipping-fields > div,
.bulk-shipping-fields label,
.bulk-extra-fields > div,
.bulk-extra-fields label {
    display: grid;
    gap: 6px;
}

.bulk-shipping-fields strong,
.bulk-extra-fields strong {
    font-size: 0.95rem;
}

.bulk-shipping-fields span,
.bulk-extra-fields span {
    color: #6b7076;
    font-size: 0.72rem;
    font-weight: 900;
    text-transform: uppercase;
}

.variant-price-editor,
.kit-editor {
    padding: 12px;
    border: 1px solid #dfe3e7;
    border-radius: 14px;
    background: #fff;
}

.variant-price-editor > summary,
.kit-editor > summary {
    cursor: pointer;
    font-weight: 950;
}

.variant-price-editor > summary span,
.kit-editor > summary span {
    display: block;
    margin-top: 4px;
    color: #6b7076;
    font-size: 0.78rem;
    font-weight: 800;
}

.variant-price-grid,
.kit-items-grid {
    display: grid;
    grid-template-columns: minmax(220px, 1.4fr) minmax(140px, 0.8fr) minmax(140px, 0.8fr);
    gap: 10px;
    margin-top: 12px;
}

.kit-items-grid {
    grid-template-columns: minmax(240px, 1.2fr) minmax(240px, 1.2fr) minmax(100px, 0.45fr);
}

.kit-source-status {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: space-between;
    margin-top: 12px;
    padding: 10px 12px;
    border: 1px solid #dfe3e7;
    border-radius: 10px;
    background: #f5f6f7;
}

.kit-source-status strong {
    color: #111214;
    font-size: 0.76rem;
    font-weight: 950;
    text-transform: uppercase;
}

.kit-source-status span {
    color: #626a72;
    font-size: 0.78rem;
    font-weight: 850;
    text-align: right;
}

.kit-editor.is-active-kit .kit-source-status {
    border-color: rgba(17, 18, 20, 0.3);
    background: #fff8c5;
}

.kit-items-grid label.is-kit-variation-source {
    position: relative;
}

.kit-items-grid label.is-kit-variation-source::after {
    content: "Fonte das variações";
    position: absolute;
    top: -7px;
    right: 8px;
    padding: 4px 6px;
    border-radius: 999px;
    background: #111214;
    color: #fff159;
    font-size: 0.58rem;
    font-weight: 950;
    text-transform: uppercase;
}

[data-kit-colors-text][readonly] {
    border-color: #cfd4d9;
    background: #f3f4f5;
    color: #454b52;
    cursor: not-allowed;
}

.variant-price-grid label,
.kit-items-grid label {
    display: grid;
    gap: 6px;
}

.status-subline {
    display: block;
    margin-top: 5px;
    text-transform: none;
}

.product-bulk-form td:first-child,
.product-bulk-form th:first-child {
    width: 38px;
    text-align: center;
}

.product-bulk-form input[type="checkbox"] {
    width: 17px;
    height: 17px;
    accent-color: #050505;
}

.inline-price-field {
    display: grid;
    gap: 4px;
    min-width: 126px;
}

.inline-price-field span {
    color: #6b7076;
    font-size: 0.64rem;
    font-weight: 950;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.inline-price-field input {
    width: 118px;
    min-height: 36px;
    padding: 8px 10px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 900;
}

body:not(.admin-body):not(.mobile-body) .product-detail-desktop {
    max-width: 1200px;
    margin: 22px auto 34px;
    grid-template-columns: minmax(300px, 0.72fr) minmax(0, 1.28fr);
    gap: 20px;
    align-items: start;
    padding: 18px;
    border: 1px solid #dfe3e7;
    border-radius: 18px;
    background: linear-gradient(135deg, #ffffff 0%, #f6f7f8 100%);
    box-shadow: 0 24px 70px rgba(5, 5, 5, 0.08);
}

body:not(.admin-body):not(.mobile-body) .product-detail-desktop .detail-image {
    position: relative;
    min-height: 365px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 16px;
    background:
        radial-gradient(circle at 50% 82%, rgba(5, 5, 5, 0.13), transparent 28%),
        linear-gradient(135deg, #fdfdfd 0%, #e7e9eb 100%);
}

body:not(.admin-body):not(.mobile-body) .product-detail-desktop .detail-image img {
    width: min(86%, 360px);
    max-height: 335px;
    object-fit: contain;
    filter: drop-shadow(0 22px 30px rgba(5, 5, 5, 0.22));
}

.detail-image-badges {
    position: absolute;
    left: 18px;
    bottom: 18px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.detail-image-badges span {
    padding: 8px 11px;
    border-radius: 999px;
    background: #050505;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 950;
    text-transform: uppercase;
}

body:not(.admin-body):not(.mobile-body) .product-detail-desktop .detail-copy {
    display: grid;
    align-content: start;
    gap: 12px;
    padding: 6px;
}

body:not(.admin-body):not(.mobile-body) .product-detail-desktop .detail-copy h1 {
    margin: 0;
    font-size: clamp(1.85rem, 2.65vw, 3.25rem);
    line-height: 1;
    letter-spacing: 0;
}

body:not(.admin-body):not(.mobile-body) .product-detail-desktop .detail-copy > p {
    max-width: 680px;
    color: #3f454b;
    font-size: 0.96rem;
    line-height: 1.48;
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
}

body:not(.admin-body):not(.mobile-body) .product-detail-desktop .price-row.large {
    width: fit-content;
    padding: 11px 15px;
    border-radius: 12px;
    background: #050505;
    color: #fff;
}

body:not(.admin-body):not(.mobile-body) .product-detail-desktop .price-row.large del {
    color: #c7ccd1;
}

body:not(.admin-body):not(.mobile-body) .product-detail-desktop .detail-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

body:not(.admin-body):not(.mobile-body) .product-detail-desktop .detail-metrics div {
    min-height: 74px;
    padding: 10px;
    border: 1px solid #dfe3e7;
    border-radius: 12px;
    background: #fff;
}

body:not(.admin-body):not(.mobile-body) .product-detail-desktop .detail-metrics div:nth-child(3) {
    display: none;
}

body:not(.admin-body):not(.mobile-body) .product-detail-desktop .quote-box {
    grid-template-columns: minmax(180px, 1fr) 96px auto;
    align-items: end;
    padding: 12px;
    border: 1px solid #dfe3e7;
    border-radius: 14px;
    background: #fff;
}

.mobile-detail .mobile-metrics div:nth-child(3) {
    display: none;
}

@media (max-width: 980px) {
    .merchant-hero {
        align-items: flex-start;
        flex-direction: column;
    }

    .merchant-stats,
    .merchant-layout,
    .merchant-preview-list article {
        grid-template-columns: 1fr;
    }

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

    .product-search-main,
    .product-search-actions {
        grid-column: 1 / -1;
    }

    .bulk-toolbar {
        grid-template-columns: 1fr;
    }

    .bulk-shipping-fields,
    .bulk-extra-fields,
    .variant-price-grid,
    .kit-items-grid {
        grid-template-columns: 1fr 1fr;
    }

    body:not(.admin-body):not(.mobile-body) .product-detail-desktop {
        grid-template-columns: 1fr;
    }
}

/* Expansao comercial: favoritos, promocoes, documentos e marketing. */
.favorite-form {
    margin: 0;
}

.favorite-form button {
    min-height: 34px;
    padding: 7px 10px;
    border: 1px solid #d7dce1;
    border-radius: 999px;
    background: #fff;
    color: #050505;
    font-size: 0.72rem;
    font-weight: 950;
    text-transform: uppercase;
    cursor: pointer;
}

.detail-favorite button {
    border-color: #050505;
}

.favorite-list,
.review-list,
.marketing-list,
.documents-list {
    display: grid;
    gap: 10px;
}

.favorite-list article,
.review-list article,
.marketing-list article,
.documents-list article,
.coupon-strip article {
    display: grid;
    gap: 6px;
    padding: 14px;
    border: 1px solid #dfe3e7;
    border-radius: 14px;
    background: #fff;
}

.favorite-list article {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
}

.favorite-list span,
.review-list span,
.documents-list span {
    color: #5f666d;
    font-size: 0.82rem;
    font-weight: 700;
}

.reviews-section,
.calculator-panel,
.coupon-strip,
.documents-list {
    max-width: 1200px;
    margin: 26px auto;
}

.reviews-section {
    padding: 22px;
    border: 1px solid #dfe3e7;
    border-radius: 18px;
    background:
        linear-gradient(135deg, rgba(5, 5, 5, 0.035), transparent 34%),
        #fff;
    box-shadow: 0 18px 48px rgba(5, 5, 5, 0.06);
}

.reviews-section .section-head.compact {
    margin: 0 0 16px;
}

.section-head.compact {
    max-width: 1200px;
    margin: 34px auto 14px;
}

.reviews-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
    gap: 18px;
    align-items: start;
}

.review-form,
.coupon-form {
    display: grid;
    gap: 12px;
    padding: 18px;
    border: 1px solid #dfe3e7;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 16px 38px rgba(5, 5, 5, 0.06);
}

.shipping-box {
    display: grid;
    gap: 12px;
    padding: 16px;
    border: 1px solid #dfe3e7;
    border-radius: 16px;
    background: linear-gradient(180deg, #fff 0%, #f8f9fa 100%);
}

.shipping-head {
    display: grid;
    gap: 2px;
}

.shipping-head strong {
    font-size: 1rem;
}

.shipping-head span,
.shipping-option small {
    color: var(--muted);
    font-size: 0.78rem;
}

.shipping-zip-form,
.mobile-shipping-zip {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: end;
}

.shipping-options,
.mobile-shipping-options {
    display: grid;
    gap: 8px;
}

.shipping-option {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    padding: 11px 12px;
    border: 1px solid #dfe3e7;
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
}

.shipping-option:has(input:checked) {
    border-color: #050505;
    box-shadow: inset 0 0 0 1px #050505;
}

.shipping-option span {
    display: grid;
    gap: 2px;
}

.shipping-option b {
    font-size: 0.96rem;
    white-space: nowrap;
}

.mobile-shipping-card {
    gap: 14px;
}

.mobile-shipping-card > strong {
    font-size: 1.05rem;
}

@media (max-width: 640px) {
    .shipping-zip-form,
    .mobile-shipping-zip {
        grid-template-columns: 1fr;
    }
}

.review-list {
    align-content: start;
    max-height: 620px;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    padding-right: 8px;
    scrollbar-width: thin;
    scrollbar-color: rgba(5, 5, 5, 0.35) transparent;
}

.review-list::-webkit-scrollbar {
    width: 7px;
}

.review-list::-webkit-scrollbar-track {
    background: transparent;
}

.review-list::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(5, 5, 5, 0.28);
}

.review-card {
    position: relative;
    overflow: hidden;
    min-height: 172px;
    padding: 18px;
    border: 1px solid #d9dde2;
    border-radius: 18px;
    background:
        linear-gradient(180deg, #fff 0%, #f8f9fa 100%);
    box-shadow: 0 14px 34px rgba(5, 5, 5, 0.06);
}

.review-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 5px;
    background: #050505;
}

.review-card-head {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-bottom: 14px;
}

.review-card-head strong {
    color: #050505;
    font-size: 1.05rem;
    line-height: 1.2;
}

.review-stars {
    display: inline-flex;
    gap: 2px;
    padding: 6px 8px;
    border-radius: 999px;
    background: #050505;
    color: #fff;
    font-size: 0.76rem;
    letter-spacing: 0;
    line-height: 1;
}

.review-comment {
    margin: 0;
    color: #1f2328;
    font-size: 0.98rem;
    line-height: 1.55;
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.review-author {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid #e3e6ea;
}

.review-avatar {
    display: inline-grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 50%;
    background: #050505;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 950;
}

.review-author > span:last-child {
    display: grid;
    gap: 2px;
}

.review-author strong {
    color: #050505;
    font-size: 0.9rem;
}

.review-author small {
    color: #69717a;
    font-size: 0.76rem;
    font-weight: 800;
}

.review-empty {
    border-style: dashed;
    background: #fafafa;
}

.review-empty p {
    margin: 8px 0 0;
    color: #5f666d;
}

.review-form-head {
    display: grid;
    gap: 4px;
    padding-bottom: 4px;
}

.review-form-head span {
    width: fit-content;
    padding: 5px 8px;
    background: #050505;
    color: #fff;
    font-size: 0.68rem;
    font-weight: 950;
    text-transform: uppercase;
}

.review-form-head strong {
    color: #050505;
    font-size: 1.25rem;
    line-height: 1.1;
}

.review-login-box p {
    margin: 0;
    color: #5f666d;
    font-size: 0.92rem;
    line-height: 1.45;
}

.campaign-grid {
    max-width: 1200px;
    margin: 26px auto;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.campaign-card {
    display: grid;
    gap: 12px;
    padding: 18px;
    border: 1px solid #dfe3e7;
    border-radius: 16px;
    background: #fff;
}

.campaign-card img,
.marketing-list img {
    width: 100%;
    aspect-ratio: 16 / 8;
    object-fit: cover;
    border-radius: 12px;
    background: #edf0f2;
}

.campaign-card span,
.coupon-strip span {
    color: #6b7076;
    font-size: 0.74rem;
    font-weight: 950;
    text-transform: uppercase;
}

.coupon-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.coupon-strip h2 {
    grid-column: 1 / -1;
}

.calculator-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.55fr);
    gap: 18px;
}

.calculator-result {
    display: grid;
    align-content: center;
    gap: 10px;
    padding: 22px;
    border-radius: 16px;
    background: #050505;
    color: #fff;
}

.calculator-result strong {
    font-size: 2.2rem;
}

.marketing-list article {
    grid-template-columns: 120px minmax(0, 1fr) auto;
    align-items: center;
}

.mini-inline {
    display: flex;
    gap: 8px;
    align-items: center;
}

@media (max-width: 900px) {
    .reviews-grid,
    .campaign-grid,
    .coupon-strip,
    .calculator-panel,
    .marketing-list article {
        grid-template-columns: 1fr;
    }

    .review-list {
        max-height: 540px;
    }
}

.contact-map {
    overflow: hidden;
    margin-top: 18px;
    border: 1px solid #dfe3e7;
    border-radius: 14px;
    background: #edf0f2;
}

.contact-map iframe {
    display: block;
    width: 100%;
    min-height: 280px;
    border: 0;
}

.client-data-page {
    max-width: 1200px;
    margin: 28px auto 60px;
    padding: 0 24px;
}

.customer-profile-full {
    padding: 24px;
    border: 1px solid #dfe3e7;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 16px 42px rgba(5, 5, 5, 0.07);
}

.profile-basic-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.seller-nudge {
    position: fixed;
    right: 22px;
    bottom: 104px;
    z-index: 80;
    width: min(340px, calc(100vw - 32px));
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    background: linear-gradient(135deg, #050505, #343a40);
    color: #fff;
    box-shadow: 0 24px 60px rgba(5, 5, 5, 0.28);
    transform: translateY(16px);
    opacity: 0;
    transition: transform 0.22s ease, opacity 0.22s ease;
}

.seller-nudge.is-visible {
    transform: translateY(0);
    opacity: 1;
}

.seller-nudge[hidden] {
    display: none;
}

.seller-nudge > button {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 1.15rem;
    cursor: pointer;
}

.seller-nudge span {
    display: inline-flex;
    width: fit-content;
    margin-bottom: 10px;
    padding: 5px 8px;
    background: #fff;
    color: #050505;
    font-size: 0.68rem;
    font-weight: 950;
    text-transform: uppercase;
}

.seller-nudge strong {
    display: block;
    max-width: 270px;
    font-size: 1.15rem;
    line-height: 1.15;
}

.seller-nudge p {
    margin: 10px 0 14px;
    color: #e5e7eb;
    font-size: 0.9rem;
}

@media (max-width: 900px) {
    .profile-basic-grid {
        grid-template-columns: 1fr;
    }

    .seller-nudge {
        right: 14px;
        bottom: 92px;
    }
}

/* Product catalog final list override 2026-07-19 */
@media (min-width: 981px) {
    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .product-filters {
        margin-top: 34px;
        margin-bottom: 14px;
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .product-catalog-helper {
        display: none;
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .products-results-head {
        margin-bottom: 12px;
        padding: 14px 0 10px;
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .catalog-product-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 12px;
        width: min(1200px, calc(100% - 48px));
        margin-bottom: 72px;
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .catalog-product-grid .product-card {
        display: grid;
        grid-template-columns: 146px minmax(0, 1fr);
        min-height: 190px;
        border-radius: 12px;
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .catalog-product-grid .product-card:hover {
        transform: translateY(-2px);
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .catalog-product-grid .product-image {
        height: 100%;
        min-height: 190px;
        border-right: 1px solid #e3e7eb;
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .catalog-product-grid .product-image img {
        padding: 14px;
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .catalog-product-grid .product-body {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(190px, 230px) minmax(230px, 270px);
        grid-template-areas:
            "top top top"
            "title price form"
            "summary metrics form"
            "tags metrics favorite";
        gap: 9px 18px;
        align-items: start;
        padding: 16px 18px;
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .catalog-product-grid .product-card-kicker {
        grid-area: top;
        margin: 0;
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .catalog-product-grid .product-body h3 {
        grid-area: title;
        margin: 0;
        font-size: 1.02rem;
        line-height: 1.2;
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .catalog-product-grid .product-summary {
        grid-area: summary;
        min-height: 0;
        margin: 0;
        color: #5c646c;
        font-size: 0.84rem;
        line-height: 1.38;
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .catalog-product-grid .product-tags {
        grid-area: tags;
        margin: 0;
        gap: 6px;
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .catalog-product-grid .product-tags span {
        min-height: 24px;
        padding: 4px 7px;
        font-size: 0.62rem;
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .catalog-product-grid .price-row {
        grid-area: price;
        display: grid;
        gap: 2px;
        margin: 0;
        padding: 0;
        border: 0;
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .catalog-product-grid .price-row strong {
        font-size: 1.34rem;
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .catalog-product-grid .profile-price-note {
        grid-column: 2;
        width: 100%;
        margin: 0;
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .catalog-product-grid .metrics {
        grid-area: metrics;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px;
        margin: 0;
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .catalog-product-grid .metrics div {
        min-height: 48px;
        padding: 7px;
        border-radius: 7px;
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .catalog-product-grid .metrics dt {
        font-size: 0.62rem;
        line-height: 1.1;
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .catalog-product-grid .metrics dd {
        font-size: 0.76rem;
        line-height: 1.15;
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .catalog-product-grid .mini-form {
        grid-area: form;
        display: grid;
        grid-template-columns: minmax(0, 1fr) 70px;
        gap: 8px;
        margin: 0;
        padding: 0;
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .catalog-product-grid .mini-form .button {
        grid-column: 1 / -1;
        min-height: 38px;
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .catalog-product-grid .favorite-form {
        grid-area: favorite;
        order: initial;
        margin: 0;
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .catalog-product-grid .favorite-form button {
        width: 100%;
        min-height: 36px;
        border-radius: 8px;
    }
}

@media (min-width: 981px) and (max-width: 1180px) {
    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .catalog-product-grid .product-card {
        grid-template-columns: 128px minmax(0, 1fr);
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .catalog-product-grid .product-body {
        grid-template-columns: minmax(0, 1fr) minmax(220px, 260px);
        grid-template-areas:
            "top top"
            "title price"
            "summary metrics"
            "tags metrics"
            "form form"
            "favorite favorite";
    }
}

/* Product detail final visibility guard 2026-07-19 */
@media (min-width: 981px) {
    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .product-stage .stage-grid,
    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .product-stage::before,
    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .product-stage::after {
        z-index: 0;
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .product-stage > img.is-cutout {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: relative !important;
        z-index: 4 !important;
        width: min(86%, 520px) !important;
        height: auto !important;
        max-height: 560px !important;
        object-fit: contain !important;
        transform: none !important;
        mix-blend-mode: normal !important;
        background: transparent !important;
        filter: drop-shadow(0 34px 44px rgba(5, 5, 5, 0.28)) !important;
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .product-stage .product-code-pill,
    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .product-stage .detail-image-badges {
        z-index: 6;
    }

    body.page-produto:not(.admin-body):not(.mobile-body):not(.tablet-body) .floating-quote {
        display: none;
    }
}

/* Product detail premium rebuild 2026-07-19 */
.product-breadcrumb-premium {
    width: min(1200px, calc(100% - 48px));
    margin: 28px auto 14px;
    padding: 0;
    color: #6b737c;
}

.product-breadcrumb-premium a,
.product-breadcrumb-premium span,
.product-breadcrumb-premium strong {
    font-size: 0.75rem;
    letter-spacing: 0;
}

@media (min-width: 981px) {
    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .product-detail-premium {
        width: min(1200px, calc(100% - 48px));
        max-width: 1200px;
        margin: 0 auto 26px;
        padding: 0;
        display: grid;
        grid-template-columns: minmax(390px, 0.94fr) minmax(0, 1.06fr);
        gap: 24px;
        align-items: stretch;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .product-visual-panel,
    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .product-info-panel {
        min-width: 0;
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .product-visual-panel {
        display: grid;
        grid-template-rows: minmax(540px, 1fr) auto;
        gap: 14px;
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .product-stage {
        position: sticky;
        top: 112px;
        isolation: isolate;
        min-height: 630px;
        display: grid;
        place-items: center;
        overflow: hidden;
        border: 1px solid #d9dee4;
        border-radius: 26px;
        background:
            radial-gradient(circle at 52% 86%, rgba(0, 0, 0, 0.28), transparent 24%),
            linear-gradient(145deg, #ffffff 0%, #f5f6f7 42%, #dfe3e7 100%);
        box-shadow: 0 28px 72px rgba(5, 5, 5, 0.12);
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .product-stage::before {
        content: "";
        position: absolute;
        inset: -28% auto auto -22%;
        width: 70%;
        height: 40%;
        transform: rotate(-18deg);
        background: linear-gradient(90deg, rgba(5, 5, 5, 0.86), rgba(255, 255, 255, 0.22), rgba(5, 5, 5, 0.28));
        opacity: 0.18;
        pointer-events: none;
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .product-stage::after {
        content: "";
        position: absolute;
        right: -18%;
        bottom: -25%;
        width: 62%;
        height: 44%;
        transform: rotate(-24deg);
        background: linear-gradient(90deg, rgba(5, 5, 5, 0.18), rgba(255, 255, 255, 0.52), rgba(5, 5, 5, 0.1));
        pointer-events: none;
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .stage-grid {
        position: absolute;
        inset: 0;
        background-image:
            linear-gradient(rgba(5, 5, 5, 0.045) 1px, transparent 1px),
            linear-gradient(90deg, rgba(5, 5, 5, 0.045) 1px, transparent 1px);
        background-size: 42px 42px;
        mask-image: linear-gradient(180deg, transparent, #000 16%, #000 78%, transparent);
        opacity: 0.5;
        pointer-events: none;
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .product-stage img {
        position: relative;
        z-index: 1;
        width: min(82%, 500px);
        max-height: 560px;
        object-fit: contain;
        filter: drop-shadow(0 32px 42px rgba(5, 5, 5, 0.28));
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .product-stage img.has-flat-bg {
        mix-blend-mode: multiply;
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .product-stage img.is-cutout {
        mix-blend-mode: normal;
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .product-code-pill {
        position: absolute;
        top: 22px;
        left: 22px;
        z-index: 2;
        max-width: calc(100% - 44px);
        padding: 8px 12px;
        border: 1px solid rgba(5, 5, 5, 0.12);
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.86);
        color: #050505;
        font-size: 0.7rem;
        font-weight: 950;
        text-transform: uppercase;
        backdrop-filter: blur(12px);
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .product-stage .detail-image-badges {
        z-index: 2;
        left: 22px;
        right: 22px;
        bottom: 22px;
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .product-stage .detail-image-badges span {
        border: 1px solid rgba(255, 255, 255, 0.2);
        background: #050505;
        box-shadow: 0 10px 24px rgba(5, 5, 5, 0.18);
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .visual-proof-grid {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 10px;
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .visual-proof-grid article {
        min-height: 92px;
        display: grid;
        align-content: space-between;
        gap: 8px;
        padding: 14px;
        border: 1px solid #dde2e7;
        border-radius: 16px;
        background: #fff;
        box-shadow: 0 16px 40px rgba(5, 5, 5, 0.055);
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .visual-proof-grid span,
    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .guidance-card span,
    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .product-quote-module .module-head span {
        color: #666f78;
        font-size: 0.7rem;
        font-weight: 950;
        text-transform: uppercase;
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .visual-proof-grid strong {
        color: #050505;
        font-size: 0.96rem;
        line-height: 1.18;
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .product-info-panel {
        display: grid;
        align-content: start;
        gap: 14px;
        padding: 0;
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .product-title-card,
    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .product-commercial-card,
    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .product-quote-module {
        border: 1px solid #dce1e6;
        border-radius: 22px;
        box-shadow: 0 22px 56px rgba(5, 5, 5, 0.075);
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .product-title-card {
        display: grid;
        gap: 14px;
        padding: 26px;
        background:
            linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(246, 247, 248, 0.98));
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .product-title-card .detail-topline {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 14px;
        margin: 0;
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .product-title-card .eyebrow {
        margin: 0;
        color: #050505;
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .product-title-card .stock-pill {
        flex: 0 0 auto;
        display: inline-flex;
        align-items: center;
        min-height: 34px;
        padding: 7px 10px;
        border: 1px solid #d4dae0;
        border-radius: 999px;
        background: #fff;
        color: #050505;
        font-size: 0.68rem;
        font-weight: 950;
        text-transform: uppercase;
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .product-title-card .stock-pill.is-low {
        background: #f0f1f2;
        color: #33383e;
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .product-title-card h1 {
        max-width: 760px;
        margin: 0;
        color: #050505;
        font-size: clamp(2.75rem, 4.8vw, 5.45rem);
        line-height: 0.9;
        letter-spacing: 0;
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .product-title-card .detail-description {
        max-width: none;
        margin: 0;
        padding: 16px 18px;
        border: 0;
        border-left: 5px solid #050505;
        border-radius: 14px;
        background: #fff;
        color: #30363d;
        font-size: 1rem;
        line-height: 1.58;
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .product-title-card .detail-badges {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .product-title-card .detail-badges span {
        min-height: 31px;
        padding: 7px 10px;
        border: 1px solid #d5dbe1;
        border-radius: 999px;
        background: #fff;
        color: #050505;
        font-size: 0.67rem;
        font-weight: 950;
        text-transform: uppercase;
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .product-commercial-card {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(190px, auto);
        gap: 18px;
        align-items: center;
        padding: 24px;
        overflow: hidden;
        background:
            linear-gradient(135deg, #050505 0%, #1b1f24 58%, #4b5158 100%);
        color: #fff;
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .commercial-price {
        display: grid;
        gap: 6px;
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .commercial-price > span {
        color: rgba(255, 255, 255, 0.72);
        font-size: 0.72rem;
        font-weight: 950;
        text-transform: uppercase;
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .commercial-price strong {
        color: #fff;
        font-size: clamp(2.7rem, 4.35vw, 4.2rem);
        line-height: 0.88;
        letter-spacing: 0;
        white-space: nowrap;
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .commercial-price small {
        color: rgba(255, 255, 255, 0.7);
        font-weight: 750;
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .commercial-price del {
        color: rgba(255, 255, 255, 0.62);
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .commercial-actions {
        display: grid;
        gap: 10px;
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .commercial-actions .button,
    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .commercial-actions .detail-favorite button {
        width: 100%;
        min-height: 44px;
        border-color: rgba(255, 255, 255, 0.34);
        border-radius: 12px;
        text-align: center;
        white-space: nowrap;
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .commercial-actions .detail-favorite button {
        background: #fff;
        color: #050505;
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .product-quote-module {
        display: grid;
        gap: 14px;
        padding: 22px;
        background: #fff;
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .product-quote-module .module-head {
        display: grid;
        gap: 4px;
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .product-quote-module .module-head strong {
        color: #050505;
        font-size: 1.08rem;
        line-height: 1.25;
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .product-detail-premium .quote-box {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 92px;
        gap: 10px;
        padding: 0;
        border: 0;
        background: transparent;
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .product-detail-premium .quote-box button {
        grid-column: 1 / -1;
        min-height: 48px;
        border-radius: 12px;
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .product-specs-premium,
    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .product-guidance-grid,
    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .product-reviews-premium,
    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .related-premium-head,
    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .related-grid-premium {
        width: min(1200px, calc(100% - 48px));
        max-width: 1200px;
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .product-specs-premium {
        margin: 28px auto;
        display: grid;
        grid-template-columns: minmax(260px, 0.42fr) minmax(0, 1fr);
        gap: 20px;
        padding: 26px;
        border: 1px solid #dce1e6;
        border-radius: 24px;
        background: #fff;
        box-shadow: 0 24px 60px rgba(5, 5, 5, 0.07);
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .specs-intro {
        display: grid;
        align-content: start;
        gap: 10px;
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .specs-intro .eyebrow {
        margin: 0;
        color: #050505;
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .specs-intro h2,
    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .reviews-premium-head h2,
    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .guidance-dark h2 {
        margin: 0;
        color: #050505;
        font-size: clamp(1.7rem, 2.7vw, 3rem);
        line-height: 0.98;
        letter-spacing: 0;
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .specs-intro p,
    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .reviews-premium-head p,
    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .guidance-card p {
        margin: 0;
        color: #5f6871;
        line-height: 1.55;
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .product-spec-grid {
        margin: 0;
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 10px;
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .product-spec-grid div,
    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .product-spec-grid div:nth-child(3) {
        display: grid;
        align-content: space-between;
        min-height: 104px;
        padding: 14px;
        border: 1px solid #dde2e7;
        border-radius: 16px;
        background: linear-gradient(180deg, #fff 0%, #f7f8f9 100%);
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .product-spec-grid dt {
        color: #6a737d;
        font-size: 0.7rem;
        font-weight: 950;
        text-transform: uppercase;
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .product-spec-grid dd {
        overflow-wrap: anywhere;
        color: #050505;
        font-size: 0.95rem;
        line-height: 1.22;
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .product-guidance-grid {
        margin: 0 auto 28px;
        display: grid;
        grid-template-columns: minmax(280px, 1.1fr) repeat(3, minmax(0, 0.8fr));
        gap: 14px;
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .product-guidance-grid.without-calculator {
        grid-template-columns: minmax(280px, 1.1fr) repeat(2, minmax(0, 0.9fr));
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .guidance-card {
        min-height: 260px;
        display: grid;
        align-content: space-between;
        gap: 16px;
        padding: 22px;
        border: 1px solid #dce1e6;
        border-radius: 22px;
        background: #fff;
        box-shadow: 0 20px 46px rgba(5, 5, 5, 0.06);
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .guidance-dark {
        background:
            linear-gradient(135deg, #050505 0%, #1d2228 68%, #5b626a 100%);
        color: #fff;
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .guidance-dark .eyebrow,
    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .guidance-dark h2,
    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .guidance-dark p {
        color: #fff;
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .guidance-card strong {
        color: #050505;
        font-size: 1.18rem;
        line-height: 1.18;
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .guidance-dark .button {
        width: fit-content;
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .product-doc-panel .doc-links {
        margin: 0;
        display: grid;
        gap: 8px;
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .product-doc-panel .doc-links a,
    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .product-doc-panel .doc-links span {
        min-height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 8px 10px;
        border: 1px solid #dce1e6;
        border-radius: 12px;
        background: #f6f7f8;
        color: #050505;
        font-size: 0.72rem;
        font-weight: 950;
        text-decoration: none;
        text-transform: uppercase;
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .product-guidance-grid .coverage-calculator {
        margin: 0;
        padding: 22px;
        border-radius: 22px;
        background: #fff;
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .product-guidance-grid .coverage-calculator label {
        gap: 8px;
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .product-reviews-premium {
        margin: 34px auto 30px;
        padding: 24px;
        border: 1px solid #dce1e6;
        border-radius: 24px;
        background: #fff;
        box-shadow: 0 24px 60px rgba(5, 5, 5, 0.07);
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .reviews-premium-head {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 190px;
        gap: 18px;
        align-items: stretch;
        margin-bottom: 18px;
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .review-score-card {
        display: grid;
        align-content: center;
        justify-items: center;
        gap: 4px;
        min-height: 150px;
        border-radius: 20px;
        background: #050505;
        color: #fff;
        text-align: center;
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .review-score-card span {
        color: #fff;
        font-size: 3rem;
        font-weight: 950;
        line-height: 0.95;
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .review-score-card strong,
    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .review-score-card small {
        color: rgba(255, 255, 255, 0.78);
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .product-reviews-premium .reviews-grid {
        grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.72fr);
        gap: 18px;
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .product-reviews-premium .review-list {
        max-height: 520px;
        padding-right: 9px;
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .product-reviews-premium .review-card {
        min-height: 142px;
        border-radius: 18px;
        background: linear-gradient(180deg, #fff 0%, #f8f9fa 100%);
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .related-premium-head {
        margin-top: 34px;
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .related-grid-premium {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        margin-bottom: 84px;
    }
}

@media (min-width: 981px) and (max-width: 1180px) {
    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .product-detail-premium,
    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .product-specs-premium,
    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .product-guidance-grid,
    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .product-reviews-premium {
        width: min(1120px, calc(100% - 36px));
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .product-detail-premium,
    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .product-specs-premium {
        grid-template-columns: 1fr;
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .product-visual-panel {
        grid-template-rows: auto;
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .product-stage {
        position: relative;
        top: auto;
        min-height: 480px;
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .product-spec-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .product-guidance-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .related-grid-premium {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 980px) {
    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .product-detail-premium,
    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .product-specs-premium,
    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .product-guidance-grid,
    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .product-reviews-premium {
        width: min(100% - 24px, 760px);
        margin-left: auto;
        margin-right: auto;
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .product-detail-premium,
    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .product-specs-premium,
    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .product-guidance-grid,
    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .reviews-premium-head {
        display: grid;
        grid-template-columns: 1fr;
        gap: 14px;
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .product-stage,
    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .product-title-card,
    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .product-commercial-card,
    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .product-quote-module,
    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .product-specs-premium,
    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .guidance-card {
        border-radius: 18px;
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .product-stage {
        position: relative;
        min-height: 420px;
        display: grid;
        place-items: center;
        overflow: hidden;
        border: 1px solid #dce1e6;
        background: linear-gradient(145deg, #fff, #e7eaed);
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .product-stage img {
        width: min(78%, 360px);
        max-height: 360px;
        object-fit: contain;
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .product-title-card,
    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .product-commercial-card,
    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .product-quote-module,
    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .product-specs-premium,
    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .guidance-card {
        padding: 18px;
        border: 1px solid #dce1e6;
        background: #fff;
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .product-title-card h1 {
        font-size: clamp(2.2rem, 12vw, 3.6rem);
        line-height: 0.95;
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .product-commercial-card {
        background: #050505;
        color: #fff;
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .product-spec-grid,
    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .visual-proof-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
    }
}

/* Product detail upgrade 2026-07-19 */
.product-breadcrumb {
    width: min(1200px, calc(100% - 48px));
    margin: 30px auto 12px;
    display: flex;
    gap: 8px;
    align-items: center;
    color: #68707a;
    font-size: 0.74rem;
    font-weight: 900;
    text-transform: uppercase;
}

.product-breadcrumb a {
    color: #050505;
    text-decoration: none;
}

.product-breadcrumb strong {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #68707a;
}

.product-empty-panel {
    width: min(760px, calc(100% - 48px));
    margin: 58px auto 86px;
    padding: 34px;
}

@media (min-width: 981px) {
    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .product-detail-upgrade {
        width: min(1200px, calc(100% - 48px));
        max-width: 1200px;
        margin: 0 auto 30px;
        display: grid;
        grid-template-columns: minmax(320px, 0.82fr) minmax(0, 1.18fr);
        gap: 18px;
        padding: 18px;
        border: 1px solid #dde2e7;
        border-radius: 18px;
        background:
            linear-gradient(135deg, rgba(5, 5, 5, 0.04), transparent 32%),
            #fff;
        box-shadow: 0 24px 62px rgba(5, 5, 5, 0.08);
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .product-detail-upgrade .detail-image {
        position: sticky;
        top: 112px;
        min-height: 500px;
        padding: 24px;
        display: grid;
        place-items: center;
        overflow: hidden;
        border-radius: 16px;
        border: 1px solid #e0e4e8;
        background:
            radial-gradient(circle at 50% 83%, rgba(5, 5, 5, 0.16), transparent 28%),
            linear-gradient(135deg, #fff 0%, #eceff2 100%);
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .product-detail-upgrade .detail-image img {
        width: min(88%, 440px);
        max-height: 455px;
        object-fit: contain;
        filter: drop-shadow(0 26px 34px rgba(5, 5, 5, 0.2));
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .product-detail-upgrade .detail-copy {
        display: grid;
        align-content: start;
        gap: 13px;
        padding: 8px 8px 8px 12px;
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .detail-topline {
        display: flex;
        gap: 12px;
        align-items: center;
        justify-content: space-between;
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .product-detail-upgrade .detail-copy h1 {
        max-width: 760px;
        margin: 0;
        font-size: clamp(2.15rem, 3.25vw, 4.05rem);
        line-height: 0.96;
        letter-spacing: 0;
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .detail-badges {
        display: flex;
        flex-wrap: wrap;
        gap: 7px;
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .detail-badges span {
        min-height: 28px;
        display: inline-flex;
        align-items: center;
        padding: 5px 9px;
        border: 1px solid #d8dde2;
        border-radius: 999px;
        background: #fff;
        color: #050505;
        font-size: 0.66rem;
        font-weight: 950;
        text-transform: uppercase;
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .product-detail-upgrade .detail-description {
        margin: 0;
        padding: 15px 16px;
        border-left: 4px solid #050505;
        border-radius: 12px;
        background: #f5f6f7;
        color: #343a40;
        font-size: 0.95rem;
        line-height: 1.5;
        display: block;
        overflow: visible;
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .detail-commerce-head {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 12px;
        align-items: center;
        padding: 14px;
        border-radius: 15px;
        background:
            linear-gradient(135deg, #050505 0%, #30363d 100%);
        color: #fff;
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .detail-commerce-head .price-row.large {
        width: auto;
        margin: 0;
        padding: 0;
        display: grid;
        gap: 2px;
        background: transparent;
        color: #fff;
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .detail-commerce-head .price-row.large > span {
        color: rgba(255, 255, 255, 0.7);
        font-size: 0.7rem;
        font-weight: 950;
        text-transform: uppercase;
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .detail-commerce-head .price-row.large strong {
        color: #fff;
        font-size: clamp(2rem, 3vw, 3rem);
        line-height: 0.96;
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .detail-commerce-head .price-row.large del {
        color: rgba(255, 255, 255, 0.62);
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .detail-commerce-head .detail-favorite button {
        min-height: 40px;
        border-color: rgba(255, 255, 255, 0.3);
        background: #fff;
        color: #050505;
        white-space: nowrap;
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .detail-section-label {
        color: #5e6670;
        font-size: 0.7rem;
        font-weight: 950;
        text-transform: uppercase;
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .product-detail-upgrade .detail-metrics {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
        margin: 0;
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .product-detail-upgrade .detail-metrics div,
    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .product-detail-upgrade .detail-metrics div:nth-child(3) {
        display: block;
        min-height: 72px;
        padding: 11px;
        border: 1px solid #dfe3e7;
        border-radius: 11px;
        background: #f8f9fa;
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .product-detail-upgrade .detail-metrics dt {
        font-size: 0.66rem;
        line-height: 1.15;
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .product-detail-upgrade .detail-metrics dd {
        font-size: 0.9rem;
        line-height: 1.18;
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .product-detail-upgrade .coverage-calculator {
        margin: 0;
        border-radius: 12px;
        background: #fff;
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .detail-action-panel {
        display: grid;
        gap: 10px;
        padding: 14px;
        border: 1px solid #dfe3e7;
        border-radius: 15px;
        background: #fff;
        box-shadow: 0 14px 36px rgba(5, 5, 5, 0.055);
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .product-detail-upgrade .quote-box {
        grid-template-columns: minmax(0, 1fr) 88px auto;
        align-items: end;
        padding: 0;
        border: 0;
        border-radius: 0;
        background: transparent;
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .product-detail-upgrade .quote-box .button {
        min-height: 45px;
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .product-detail-upgrade .doc-links {
        margin: 0;
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .product-detail-upgrade .doc-links a,
    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .product-detail-upgrade .doc-links span {
        min-height: 34px;
        display: inline-flex;
        align-items: center;
        padding: 7px 10px;
        border: 1px solid #dfe3e7;
        border-radius: 999px;
        background: #f7f8f9;
        color: #050505;
        font-size: 0.72rem;
        font-weight: 950;
        text-decoration: none;
        text-transform: uppercase;
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .product-reviews-upgrade {
        width: min(1200px, calc(100% - 48px));
        max-width: 1200px;
        margin: 28px auto;
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .product-reviews-upgrade .review-card {
        min-height: 150px;
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .related-grid {
        width: min(1200px, calc(100% - 48px));
        grid-template-columns: repeat(3, minmax(0, 1fr));
        margin-bottom: 76px;
    }
}

@media (min-width: 981px) and (max-width: 1180px) {
    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .product-detail-upgrade {
        grid-template-columns: 1fr;
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .product-detail-upgrade .detail-image {
        position: relative;
        top: auto;
        min-height: 380px;
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .product-detail-upgrade .detail-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .product-detail-upgrade .quote-box {
        grid-template-columns: minmax(0, 1fr) 88px;
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .product-detail-upgrade .quote-box .button {
        grid-column: 1 / -1;
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .related-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Product catalog list layout 2026-07-19 */
@media (min-width: 981px) {
    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .product-filters {
        margin-top: 34px;
        margin-bottom: 14px;
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .product-catalog-helper {
        display: none;
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .products-results-head {
        margin-bottom: 12px;
        padding: 14px 0 10px;
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .catalog-product-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 12px;
        width: min(1200px, calc(100% - 48px));
        margin-bottom: 72px;
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .catalog-product-grid .product-card {
        display: grid;
        grid-template-columns: 146px minmax(0, 1fr);
        min-height: 190px;
        border-radius: 12px;
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .catalog-product-grid .product-card:hover {
        transform: translateY(-2px);
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .catalog-product-grid .product-image {
        height: 100%;
        min-height: 190px;
        border-right: 1px solid #e3e7eb;
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .catalog-product-grid .product-image img {
        padding: 14px;
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .catalog-product-grid .product-body {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(190px, 230px) minmax(230px, 270px);
        grid-template-areas:
            "top top top"
            "title price form"
            "summary metrics form"
            "tags metrics favorite";
        gap: 9px 18px;
        align-items: start;
        padding: 16px 18px;
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .catalog-product-grid .product-card-kicker {
        grid-area: top;
        margin: 0;
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .catalog-product-grid .product-body h3 {
        grid-area: title;
        margin: 0;
        font-size: 1.02rem;
        line-height: 1.2;
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .catalog-product-grid .product-summary {
        grid-area: summary;
        min-height: 0;
        margin: 0;
        color: #5c646c;
        font-size: 0.84rem;
        line-height: 1.38;
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .catalog-product-grid .product-tags {
        grid-area: tags;
        margin: 0;
        gap: 6px;
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .catalog-product-grid .product-tags span {
        min-height: 24px;
        padding: 4px 7px;
        font-size: 0.62rem;
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .catalog-product-grid .price-row {
        grid-area: price;
        display: grid;
        gap: 2px;
        margin: 0;
        padding: 0;
        border: 0;
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .catalog-product-grid .price-row strong {
        font-size: 1.34rem;
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .catalog-product-grid .profile-price-note {
        grid-column: 2;
        width: 100%;
        margin: 0;
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .catalog-product-grid .metrics {
        grid-area: metrics;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px;
        margin: 0;
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .catalog-product-grid .metrics div {
        min-height: 48px;
        padding: 7px;
        border-radius: 7px;
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .catalog-product-grid .metrics dt {
        font-size: 0.62rem;
        line-height: 1.1;
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .catalog-product-grid .metrics dd {
        font-size: 0.76rem;
        line-height: 1.15;
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .catalog-product-grid .mini-form {
        grid-area: form;
        display: grid;
        grid-template-columns: minmax(0, 1fr) 70px;
        gap: 8px;
        margin: 0;
        padding: 0;
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .catalog-product-grid .mini-form .button {
        grid-column: 1 / -1;
        min-height: 38px;
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .catalog-product-grid .favorite-form {
        grid-area: favorite;
        order: initial;
        margin: 0;
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .catalog-product-grid .favorite-form button {
        width: 100%;
        min-height: 36px;
        border-radius: 8px;
    }
}

@media (min-width: 981px) and (max-width: 1180px) {
    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .catalog-product-grid .product-card {
        grid-template-columns: 128px minmax(0, 1fr);
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .catalog-product-grid .product-body {
        grid-template-columns: minmax(0, 1fr) minmax(220px, 260px);
        grid-template-areas:
            "top top"
            "title price"
            "summary metrics"
            "tags metrics"
            "form form"
            "favorite favorite";
    }
}

/* Product catalog refresh 2026-07-18 */
@media (min-width: 981px) {
    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .products-catalog-hero {
        width: min(1200px, calc(100% - 48px));
        margin: 44px auto 18px;
        padding: 34px;
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
        gap: 28px;
        align-items: stretch;
        border: 1px solid rgba(5, 5, 5, 0.1);
        border-radius: 18px;
        background:
            linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(246, 247, 248, 0.94) 52%, rgba(231, 233, 235, 0.86) 100%);
        box-shadow: 0 28px 70px rgba(5, 5, 5, 0.1);
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .products-catalog-hero .eyebrow {
        color: #545b63;
        background: transparent;
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .products-catalog-hero h1 {
        max-width: 760px;
        margin: 10px 0 14px;
        font-size: clamp(2.7rem, 4.4vw, 5.25rem);
        line-height: 0.92;
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .products-catalog-hero p {
        max-width: 680px;
        margin: 0;
        color: #4f565e;
        font-size: 1rem;
        line-height: 1.58;
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .products-quick-tags {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        margin-top: 22px;
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .products-quick-tags span {
        display: inline-flex;
        min-height: 34px;
        align-items: center;
        padding: 7px 11px;
        border: 1px solid rgba(5, 5, 5, 0.1);
        border-radius: 999px;
        background: #fff;
        color: #111214;
        font-size: 0.74rem;
        font-weight: 950;
        text-transform: uppercase;
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .products-hero-summary {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .products-hero-summary div {
        display: grid;
        align-content: space-between;
        min-height: 112px;
        padding: 18px;
        border: 1px solid rgba(5, 5, 5, 0.1);
        border-radius: 12px;
        background: #fff;
        box-shadow: 0 16px 36px rgba(5, 5, 5, 0.06);
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .products-hero-summary strong {
        color: #050505;
        font-size: 2.15rem;
        font-weight: 950;
        line-height: 1;
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .products-hero-summary span {
        color: #69717a;
        font-size: 0.75rem;
        font-weight: 850;
        line-height: 1.22;
        text-transform: uppercase;
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .product-filters {
        width: min(1200px, calc(100% - 48px));
        margin: 0 auto 16px;
        padding: 16px;
        display: grid;
        grid-template-columns: minmax(240px, 1.25fr) repeat(3, minmax(150px, 0.85fr));
        gap: 12px;
        align-items: end;
        border-radius: 16px;
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .product-filters label span {
        color: #5e6670;
        font-size: 0.74rem;
        letter-spacing: 0;
        text-transform: uppercase;
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .product-filters input,
    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .product-filters select {
        min-height: 46px;
        border-radius: 9px;
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .product-filters .filter-check {
        min-height: 46px;
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 0 12px;
        border: 1px solid #dfe3e7;
        border-radius: 9px;
        background: #fff;
        color: #17191c;
        font-size: 0.82rem;
        font-weight: 900;
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .product-filters .filter-check input {
        width: 16px;
        min-height: 16px;
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .product-filters .button {
        min-height: 46px;
        border-radius: 9px;
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .product-catalog-helper {
        width: min(1200px, calc(100% - 48px));
        margin: 0 auto 22px;
        padding: 16px 18px;
        display: grid;
        grid-template-columns: auto minmax(0, 1fr) auto;
        gap: 16px;
        align-items: center;
        border-radius: 14px;
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .product-catalog-helper strong {
        color: #050505;
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .product-catalog-helper span {
        color: #5b636c;
        font-size: 0.9rem;
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .product-catalog-helper a,
    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .products-results-head a {
        display: inline-flex;
        min-height: 38px;
        align-items: center;
        justify-content: center;
        padding: 8px 13px;
        border: 1px solid #050505;
        border-radius: 8px;
        background: #050505;
        color: #fff;
        font-size: 0.76rem;
        font-weight: 950;
        text-transform: uppercase;
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .products-results-head {
        width: min(1200px, calc(100% - 48px));
        margin: 0 auto 14px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
        padding-top: 18px;
        border-top: 1px solid rgba(5, 5, 5, 0.12);
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .products-results-head div {
        display: grid;
        gap: 4px;
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .products-results-head span {
        color: #717982;
        font-size: 0.75rem;
        font-weight: 900;
        text-transform: uppercase;
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .products-results-head strong {
        color: #050505;
        font-size: 1.2rem;
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .products-results-head a {
        background: #fff;
        color: #050505;
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .catalog-product-grid {
        width: min(1200px, calc(100% - 48px));
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 18px;
        align-items: stretch;
        margin-bottom: 86px;
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .catalog-product-grid .product-card {
        display: flex;
        min-height: 100%;
        flex-direction: column;
        overflow: hidden;
        border-radius: 14px;
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .catalog-product-grid .product-image {
        position: relative;
        height: 218px;
        overflow: hidden;
        background:
            radial-gradient(circle at 50% 86%, rgba(5, 5, 5, 0.12), transparent 36%),
            linear-gradient(180deg, #ffffff 0%, #eef0f2 100%);
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .catalog-product-grid .product-image img {
        padding: 18px 18px 12px;
        transform: scale(0.98);
        transition: transform 180ms ease;
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .catalog-product-grid .product-card:hover .product-image img {
        transform: scale(1.03);
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .product-image-action {
        position: absolute;
        right: 12px;
        bottom: 12px;
        padding: 7px 10px;
        border-radius: 999px;
        background: rgba(5, 5, 5, 0.9);
        color: #fff;
        font-size: 0.68rem;
        font-weight: 950;
        opacity: 0;
        transform: translateY(6px);
        transition: opacity 180ms ease, transform 180ms ease;
        text-transform: uppercase;
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .catalog-product-grid .product-card:hover .product-image-action {
        opacity: 1;
        transform: translateY(0);
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .catalog-product-grid .product-body {
        display: flex;
        flex: 1;
        flex-direction: column;
        padding: 18px;
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .product-card-kicker {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        margin-bottom: 9px;
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .product-card-kicker .eyebrow {
        min-width: 0;
        overflow: hidden;
        color: #656d76;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .stock-pill {
        flex: 0 0 auto;
        max-width: 150px;
        overflow: hidden;
        padding: 5px 8px;
        border: 1px solid #d8dde2;
        border-radius: 999px;
        background: #f5f6f7;
        color: #30363c;
        font-size: 0.66rem;
        font-weight: 950;
        text-overflow: ellipsis;
        text-transform: uppercase;
        white-space: nowrap;
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .stock-pill.is-ready {
        border-color: #bcc5bf;
        background: #f2f6f3;
        color: #26372a;
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .stock-pill.is-low {
        border-color: #dadde1;
        background: #f7f7f7;
        color: #616970;
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .catalog-product-grid .product-body h3 {
        min-height: 0;
        margin-bottom: 9px;
        font-size: 1.05rem;
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .catalog-product-grid .product-summary {
        min-height: 58px;
        margin-bottom: 12px;
        font-size: 0.86rem;
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .catalog-product-grid .favorite-form {
        order: 10;
        margin-top: 12px;
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .catalog-product-grid .favorite-form button {
        width: 100%;
        border-radius: 8px;
        background: #f7f8f9;
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .catalog-product-grid .price-row {
        margin: 0 0 10px;
        padding-top: 12px;
        border-top: 1px solid #e3e7eb;
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .catalog-product-grid .metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 7px;
        margin-top: 4px;
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .catalog-product-grid .metrics div {
        min-height: 56px;
        padding: 9px;
        border-radius: 8px;
        background: #f7f8f9;
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .catalog-product-grid .metrics dt {
        font-size: 0.68rem;
        text-transform: uppercase;
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .catalog-product-grid .metrics dd {
        margin-top: 2px;
        font-size: 0.82rem;
        line-height: 1.2;
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .catalog-product-grid .mini-form {
        margin-top: auto;
        padding-top: 14px;
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .catalog-product-grid .mini-form label span {
        color: #6a727b;
        font-size: 0.68rem;
        text-transform: uppercase;
    }
}

@media (min-width: 981px) and (max-width: 1180px) {
    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .products-catalog-hero,
    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .product-catalog-helper {
        grid-template-columns: 1fr;
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .product-filters {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .catalog-product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 980px) {
    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .home-hero-metrics,
    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .home-process {
        display: grid;
        width: min(100% - 28px, 720px);
        margin-right: auto;
        margin-left: auto;
        gap: 10px;
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .home-hero-metrics {
        grid-template-columns: 1fr;
        margin-top: 16px;
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .home-process {
        grid-template-columns: 1fr;
        margin-top: 18px;
        margin-bottom: 24px;
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .home-hero-metrics article,
    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .home-process article {
        padding: 16px;
        border: 1px solid rgba(5, 5, 5, 0.1);
        border-radius: 12px;
        background: #fff;
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .home-hero-metrics strong,
    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .home-process strong {
        color: #050505;
        font-weight: 950;
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .home-hero-metrics span,
    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .home-process p {
        color: #5d646c;
    }
}

/* Painel Visual */
.settings-panel {
    display: grid;
    gap: 18px;
    overflow: visible;
}

.settings-head {
    align-items: flex-start;
    gap: 16px;
}

.settings-head > div {
    display: grid;
    gap: 4px;
}

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

.settings-section {
    min-width: 0;
    margin: 0;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--card-bg, #fff);
}

.settings-section legend {
    padding: 0 8px;
    color: #050505;
    font-size: 0.86rem;
    font-weight: 950;
    text-transform: uppercase;
}

.settings-section label {
    min-width: 0;
}

.settings-section small {
    display: block;
    margin-top: 6px;
    color: var(--muted);
    font-size: 0.76rem;
    overflow-wrap: anywhere;
}

.settings-color-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
}

.settings-color-grid label {
    display: grid;
    gap: 8px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #f8f9fa;
}

.settings-color-grid input[type="color"] {
    width: 100%;
    min-height: 44px;
    padding: 4px;
}

.admin-panel,
.product-card,
.client-panel,
.quote-panel,
.catalog-helper,
.quote-history article,
.mobile-product-row,
.mobile-card,
.mobile-client-card,
.mobile-review-card {
    background-color: var(--card-bg, #fff);
}

.settings-savebar {
    position: sticky;
    bottom: 14px;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 16px;
    border: 1px solid rgba(5, 5, 5, 0.14);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 18px 44px rgba(5, 5, 5, 0.12);
    backdrop-filter: blur(16px);
}

.settings-savebar span {
    color: var(--muted);
    font-size: 0.86rem;
    font-weight: 700;
}

@media (max-width: 760px) {
    .settings-savebar {
        position: static;
        flex-direction: column;
        align-items: stretch;
    }

    .settings-savebar .button {
        width: 100%;
    }
}

/* Calculadora com busca de produtos */
.calculator-form {
    align-content: start;
}

.calculator-product-picker {
    display: grid;
    gap: 12px;
}

.calculator-search-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: end;
}

.calculator-product-list {
    display: grid;
    gap: 10px;
    max-height: 420px;
    overflow-y: auto;
    padding: 8px;
    border: 1px solid #dfe3e7;
    border-radius: 14px;
    background: #f8f9fa;
    scrollbar-width: thin;
    scrollbar-color: rgba(5, 5, 5, 0.32) transparent;
}

.calculator-product-list::-webkit-scrollbar {
    width: 8px;
}

.calculator-product-list::-webkit-scrollbar-track {
    background: transparent;
}

.calculator-product-list::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(5, 5, 5, 0.26);
}

.calculator-product-option {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    padding: 12px;
    border: 1px solid #dfe3e7;
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.calculator-product-option:hover {
    border-color: #9aa1a9;
    box-shadow: 0 12px 28px rgba(5, 5, 5, 0.08);
    transform: translateY(-1px);
}

.calculator-product-option input {
    width: 18px;
    min-height: 18px;
    margin-top: 3px;
}

.calculator-product-option span {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.calculator-product-option strong {
    color: #050505;
    font-size: 0.96rem;
    line-height: 1.25;
}

.calculator-product-option small {
    color: #68707a;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.35;
}

.calculator-product-option:has(input:checked) {
    border-color: #050505;
    background: linear-gradient(180deg, #fff 0%, #f0f2f4 100%);
    box-shadow: inset 0 0 0 1px #050505;
}

.calculator-empty {
    margin: 0;
    padding: 12px;
    border: 1px dashed #c8ced5;
    border-radius: 12px;
    color: #68707a;
    font-weight: 800;
}

@media (max-width: 720px) {
    .calculator-search-row {
        grid-template-columns: 1fr;
    }

    .calculator-product-list {
        max-height: 360px;
    }
}

/* Menu lateral recolhível configurável */
.site-nav-backdrop {
    display: none;
}

body.site-menu-side:not(.admin-body):not(.mobile-body) .site-header {
    grid-template-columns: auto 150px minmax(0, 1fr) auto;
}

body.site-menu-side:not(.admin-body):not(.mobile-body) .nav-toggle {
    order: 1;
    display: inline-grid;
    place-items: center;
    border-color: #cfd5db;
    background: #050505;
    color: #fff;
}

body.site-menu-side:not(.admin-body):not(.mobile-body) .nav-toggle::before {
    content: "☰";
    color: #fff;
    font-size: 1.2rem;
    line-height: 1;
}

body.site-menu-side:not(.admin-body):not(.mobile-body) .brand {
    order: 2;
}

body.site-menu-side:not(.admin-body):not(.mobile-body) .header-actions {
    order: 4;
}

body.site-menu-side:not(.admin-body):not(.mobile-body) .site-nav {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 90;
    display: flex;
    width: min(342px, calc(100vw - 42px));
    min-width: 0;
    height: 100vh;
    padding: 96px 22px 24px;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    overflow-y: auto;
    border-right: 1px solid rgba(255, 255, 255, 0.14);
    background: linear-gradient(180deg, #050505 0%, #171a1d 100%);
    box-shadow: 28px 0 70px rgba(5, 5, 5, 0.28);
    transform: translateX(-105%);
    transition: transform 220ms ease;
}

body.site-menu-side:not(.admin-body):not(.mobile-body) .site-nav::before {
    content: "Menu LYNX";
    position: absolute;
    top: 28px;
    left: 22px;
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.78rem;
    font-weight: 950;
    text-transform: uppercase;
}

body.site-menu-side:not(.admin-body):not(.mobile-body) .site-nav.is-open {
    transform: translateX(0);
}

body.site-menu-side:not(.admin-body):not(.mobile-body) .site-nav a,
body.site-menu-side:not(.admin-body):not(.mobile-body) .site-nav a.marketplace-nav {
    justify-content: flex-start;
    width: 100%;
    min-height: 46px;
    padding: 12px 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #fff;
    font-size: 0.86rem;
    font-weight: 900;
    line-height: 1.1;
}

body.site-menu-side:not(.admin-body):not(.mobile-body) .site-nav a:not(.marketplace-nav)::after {
    display: none;
}

body.site-menu-side:not(.admin-body):not(.mobile-body) .site-nav a:hover {
    border-color: rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.08);
}

body.site-menu-side:not(.admin-body):not(.mobile-body) .site-nav a.marketplace-nav {
    margin-top: 8px;
    border-color: #ffe100;
    background: #ffe100;
    color: #050505;
}

body.site-menu-side:not(.admin-body):not(.mobile-body) .site-nav-backdrop.is-open {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: block;
    border: 0;
    background: rgba(5, 5, 5, 0.48);
    cursor: pointer;
}

@media (max-width: 980px) {
    body.site-menu-side:not(.admin-body):not(.mobile-body) .site-header {
        grid-template-columns: auto minmax(0, 1fr) auto;
    }

    body.site-menu-side:not(.admin-body):not(.mobile-body) .brand img {
        width: 132px;
    }
}

/* Ajuste final do menu lateral: trilho intencional com atalhos */
.side-menu-rail {
    display: none;
}

body.site-menu-side:not(.admin-body):not(.mobile-body) .side-menu-rail {
    position: fixed;
    top: 30px;
    bottom: 0;
    left: 0;
    z-index: 96;
    display: grid;
    align-content: start;
    gap: 10px;
    width: 58px;
    padding: 14px 8px;
    border-right: 1px solid rgba(255, 255, 255, 0.12);
    background: linear-gradient(180deg, #050505 0%, #111417 100%);
    box-shadow: 18px 0 44px rgba(5, 5, 5, 0.24);
}

body.site-menu-side:not(.admin-body):not(.mobile-body) .side-menu-rail a,
body.site-menu-side:not(.admin-body):not(.mobile-body) .side-menu-rail button {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.035);
    color: #fff;
    font: 950 0.86rem/1 Montserrat, sans-serif;
    text-decoration: none;
    cursor: pointer;
    transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

body.site-menu-side:not(.admin-body):not(.mobile-body) .side-menu-rail a:hover,
body.site-menu-side:not(.admin-body):not(.mobile-body) .side-menu-rail button:hover {
    transform: translateX(2px);
    border-color: rgba(255, 255, 255, 0.42);
    background: rgba(255, 255, 255, 0.12);
}

body.site-menu-side:not(.admin-body):not(.mobile-body) .side-menu-rail .rail-ml {
    border-color: #ffe100;
    background: #ffe100;
    color: #050505;
}

body.site-menu-side:not(.admin-body):not(.mobile-body) .side-menu-rail small {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

@media (min-width: 981px) {
    body.site-menu-side:not(.admin-body):not(.mobile-body) .site-header,
    body.site-menu-side:not(.admin-body):not(.mobile-body) main,
    body.site-menu-side:not(.admin-body):not(.mobile-body) .site-footer {
        width: calc(100% - 58px);
        margin-left: 58px;
    }
}

body.site-menu-side:not(.admin-body):not(.mobile-body) .site-nav {
    left: 58px;
    width: min(330px, calc(100vw - 74px));
    transform: translateX(calc(-100% - 58px));
}

body.site-menu-side:not(.admin-body):not(.mobile-body) .site-nav.is-open {
    transform: translateX(0);
}

body.site-menu-side:not(.admin-body):not(.mobile-body) .site-nav-backdrop.is-open {
    left: 58px;
}

.coupon-admin-form {
    align-items: end;
}

.coupon-badges,
.admin-coupon-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.coupon-badges span,
.coupon-badges em,
.admin-coupon-badges span {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 5px 8px;
    border: 1px solid #dfe3e7;
    border-radius: 999px;
    background: #f5f6f7;
    color: #111417;
    font-size: 0.68rem;
    font-style: normal;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

.coupon-note {
    margin: -2px 0 12px;
    padding: 10px 12px;
    border: 1px solid #d8dde2;
    border-radius: 8px;
    background: #f7f8f9;
    color: #424950;
    font-size: 0.86rem;
    font-weight: 800;
}

/* Desktop responsivo: em notebooks e telas menores, o menu lateral vira topo compacto. */
@media (max-width: 1600px) {
    body.site-menu-side:not(.admin-body):not(.mobile-body) .side-menu-rail {
        display: none;
    }

    body.site-menu-side:not(.admin-body):not(.mobile-body) .site-header,
    body.site-menu-side:not(.admin-body):not(.mobile-body) main,
    body.site-menu-side:not(.admin-body):not(.mobile-body) .site-footer {
        width: auto;
        margin-left: 0;
    }

    body.site-menu-side:not(.admin-body):not(.mobile-body) .site-header {
        width: min(1200px, calc(100% - 24px));
        min-height: 68px;
        margin: 0 auto;
        grid-template-columns: clamp(104px, 14vw, 126px) minmax(0, 1fr) auto;
        gap: clamp(8px, 1vw, 12px);
        padding: 9px 12px;
    }

    body.site-menu-side:not(.admin-body):not(.mobile-body) .brand {
        order: initial;
        width: auto;
        min-width: 0;
    }

    body.site-menu-side:not(.admin-body):not(.mobile-body) .brand img {
        width: clamp(104px, 14vw, 126px);
        height: 42px;
    }

    body.site-menu-side:not(.admin-body):not(.mobile-body) .nav-toggle {
        display: none;
    }

    body.site-menu-side:not(.admin-body):not(.mobile-body) .site-nav,
    body.site-menu-side:not(.admin-body):not(.mobile-body) .site-nav.is-open {
        position: static;
        z-index: auto;
        display: flex;
        width: auto;
        min-width: 0;
        height: auto;
        min-height: 0;
        padding: 0;
        flex-direction: row;
        align-items: center;
        gap: clamp(7px, 0.8vw, 11px);
        overflow-x: auto;
        overflow-y: hidden;
        border: 0;
        background: transparent;
        box-shadow: none;
        transform: none;
        transition: none;
        scrollbar-width: none;
    }

    body.site-menu-side:not(.admin-body):not(.mobile-body) .site-nav::-webkit-scrollbar {
        display: none;
    }

    body.site-menu-side:not(.admin-body):not(.mobile-body) .site-nav::before {
        display: none;
    }

    body.site-menu-side:not(.admin-body):not(.mobile-body) .site-nav a,
    body.site-menu-side:not(.admin-body):not(.mobile-body) .site-nav a.marketplace-nav {
        flex: 0 0 auto;
        justify-content: center;
        width: auto;
        min-height: 34px;
        padding: 8px 0;
        border: 0;
        border-radius: 0;
        background: transparent;
        color: #111214;
        font-size: clamp(0.56rem, 0.68vw, 0.68rem);
        font-weight: 950;
        line-height: 1;
        text-transform: uppercase;
        white-space: nowrap;
    }

    body.site-menu-side:not(.admin-body):not(.mobile-body) .site-nav a.marketplace-nav {
        min-width: max-content;
        margin-top: 0;
        padding: 9px 11px;
        border-radius: 6px;
        background: #ffe100;
        color: #050505;
        box-shadow: 0 10px 22px rgba(255, 225, 0, 0.22);
    }

    body.site-menu-side:not(.admin-body):not(.mobile-body) .header-actions {
        order: initial;
        min-width: max-content;
        gap: 6px;
        flex-wrap: nowrap;
    }

    body.site-menu-side:not(.admin-body):not(.mobile-body) .header-actions .icon-link,
    body.site-menu-side:not(.admin-body):not(.mobile-body) .header-actions .button.small {
        min-height: 34px;
        padding: 8px 9px;
        font-size: clamp(0.56rem, 0.68vw, 0.68rem);
        white-space: nowrap;
    }

    body.site-menu-side:not(.admin-body):not(.mobile-body) .site-nav-backdrop,
    body.site-menu-side:not(.admin-body):not(.mobile-body) .site-nav-backdrop.is-open {
        display: none;
    }
}

@media (max-width: 1120px) {
    body.site-menu-side:not(.admin-body):not(.mobile-body) .site-header {
        grid-template-columns: clamp(96px, 13vw, 116px) minmax(0, 1fr) auto;
    }

    body.site-menu-side:not(.admin-body):not(.mobile-body) .header-actions .icon-link {
        display: none;
    }
}

/* Correção definitiva: cliente desktop sempre em menu superior compacto. */
body.site-menu-side:not(.admin-body):not(.mobile-body) .side-menu-rail {
    display: none !important;
}

body.site-menu-side:not(.admin-body):not(.mobile-body) .site-header,
body.site-menu-side:not(.admin-body):not(.mobile-body) main,
body.site-menu-side:not(.admin-body):not(.mobile-body) .site-footer {
    width: auto !important;
    margin-left: 0 !important;
}

body.site-menu-side:not(.admin-body):not(.mobile-body) .site-header {
    width: min(1200px, calc(100% - 24px)) !important;
    min-height: 68px;
    margin: 0 auto !important;
    grid-template-columns: clamp(96px, 13vw, 126px) minmax(0, 1fr) auto !important;
    gap: clamp(8px, 1vw, 12px);
    padding: 9px 12px;
}

body.site-menu-side:not(.admin-body):not(.mobile-body) .brand {
    order: initial !important;
    width: auto;
    min-width: 0;
}

body.site-menu-side:not(.admin-body):not(.mobile-body) .brand img {
    width: clamp(96px, 13vw, 126px) !important;
    height: 42px;
}

body.site-menu-side:not(.admin-body):not(.mobile-body) .nav-toggle {
    display: none !important;
}

body.site-menu-side:not(.admin-body):not(.mobile-body) .site-nav,
body.site-menu-side:not(.admin-body):not(.mobile-body) .site-nav.is-open {
    position: static !important;
    z-index: auto !important;
    display: flex !important;
    width: auto !important;
    min-width: 0;
    height: auto !important;
    min-height: 0 !important;
    padding: 0 !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: clamp(7px, 0.8vw, 11px) !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    transform: none !important;
    transition: none !important;
    scrollbar-width: none;
}

body.site-menu-side:not(.admin-body):not(.mobile-body) .site-nav::-webkit-scrollbar {
    display: none;
}

body.site-menu-side:not(.admin-body):not(.mobile-body) .site-nav::before {
    display: none !important;
}

body.site-menu-side:not(.admin-body):not(.mobile-body) .site-nav a,
body.site-menu-side:not(.admin-body):not(.mobile-body) .site-nav a.marketplace-nav {
    flex: 0 0 auto !important;
    justify-content: center !important;
    width: auto !important;
    min-height: 34px !important;
    padding: 8px 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: #111214 !important;
    font-size: clamp(0.56rem, 0.68vw, 0.68rem) !important;
    font-weight: 950 !important;
    line-height: 1 !important;
    text-transform: uppercase;
    white-space: nowrap !important;
}

body.site-menu-side:not(.admin-body):not(.mobile-body) .site-nav a.marketplace-nav {
    min-width: max-content !important;
    margin-top: 0 !important;
    padding: 9px 11px !important;
    border-radius: 6px !important;
    background: #ffe100 !important;
    color: #050505 !important;
    box-shadow: 0 10px 22px rgba(255, 225, 0, 0.22) !important;
}

body.site-menu-side:not(.admin-body):not(.mobile-body) .header-actions {
    order: initial !important;
    min-width: max-content;
    gap: 6px;
    flex-wrap: nowrap;
}

body.site-menu-side:not(.admin-body):not(.mobile-body) .header-actions .icon-link,
body.site-menu-side:not(.admin-body):not(.mobile-body) .header-actions .button.small {
    min-height: 34px;
    padding: 8px 9px;
    font-size: clamp(0.56rem, 0.68vw, 0.68rem);
    white-space: nowrap;
}

body.site-menu-side:not(.admin-body):not(.mobile-body) .site-nav-backdrop,
body.site-menu-side:not(.admin-body):not(.mobile-body) .site-nav-backdrop.is-open {
    display: none !important;
}

@media (max-width: 1120px) {
    body.site-menu-side:not(.admin-body):not(.mobile-body) .header-actions .icon-link {
        display: none !important;
    }
}

.profile-price-note {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin: 4px 0 10px;
    padding: 6px 8px;
    border-radius: 5px;
    background: #111214;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 850;
}

.segment-page-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto 40px;
}

.segment-page-card,
.mobile-segments-list a {
    display: grid;
    gap: 10px;
    min-height: 150px;
    padding: 22px;
    border: 1px solid rgba(5, 5, 5, 0.12);
    border-radius: 8px;
    background: linear-gradient(135deg, #fff, #eef0f2);
    color: #050505;
    text-decoration: none;
}

.segment-page-card span,
.mobile-segments-list a strong {
    font-size: 0.78rem;
    font-weight: 950;
    text-transform: uppercase;
}

.segment-page-card strong,
.mobile-segments-list a span {
    color: #4b5563;
    line-height: 1.45;
}

.quote-tracking-box {
    display: grid;
    gap: 5px;
    margin: 12px 0;
    padding: 12px;
    border: 1px solid rgba(5, 5, 5, 0.1);
    border-radius: 8px;
    background: #f5f6f7;
}

.quote-tracking-box small {
    overflow-wrap: anywhere;
    color: #4b5563;
}

.opportunities-layout .admin-panel {
    min-height: 300px;
}

.opportunity-list span,
.opportunity-list a {
    border-radius: 7px;
    background: #f7f8f9;
}

.mobile-segments-list {
    display: grid;
    gap: 10px;
}

.admin-device-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.admin-app-body {
    margin: 0;
    min-height: 100vh;
    min-height: 100dvh;
    background:
        radial-gradient(circle at 20% 0%, rgba(255, 255, 255, 0.14), transparent 28%),
        linear-gradient(145deg, #050505 0%, #161719 58%, #050505 100%);
    color: #fff;
    font-family: Montserrat, Arial, sans-serif;
}

.admin-app-body * {
    box-sizing: border-box;
}

.admin-app-shell {
    width: min(720px, 100%);
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0 auto;
    padding: max(14px, env(safe-area-inset-top)) 14px max(88px, env(safe-area-inset-bottom));
}

.admin-app-login,
.admin-app,
.admin-app-list,
.admin-app-chat {
    display: grid;
    gap: 14px;
}

.admin-app-login {
    align-content: center;
    min-height: calc(100vh - 32px);
    min-height: calc(100dvh - 32px);
}

.admin-app-login img,
.admin-app-top img {
    display: block;
    width: 168px;
    max-width: 58vw;
    padding: 10px;
    border-radius: 8px;
    background: #fff;
}

.admin-app-login span,
.admin-app-hero span,
.admin-app-section-head span {
    color: #b8bdc5;
    font-size: 0.72rem;
    font-weight: 950;
    letter-spacing: 0;
    text-transform: uppercase;
}

.admin-app-login h1,
.admin-app-hero h1,
.admin-app-section-head h2 {
    margin: 0;
    color: #fff;
    letter-spacing: 0;
}

.admin-app-login h1 {
    font-size: clamp(2.2rem, 11vw, 4rem);
    line-height: 0.9;
}

.admin-app-login p,
.admin-app-hero p {
    max-width: 48ch;
    margin: 0;
    color: #d7dbe0;
    line-height: 1.55;
}

.admin-app-login form {
    display: grid;
    gap: 12px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
}

.admin-app-login label {
    display: grid;
    gap: 6px;
    color: #fff;
    font-weight: 850;
}

.admin-app-login input,
.admin-app-reply input {
    width: 100%;
    min-height: 48px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.98);
    color: #050505;
    font: inherit;
}

.admin-app-login .button.full {
    width: 100%;
    justify-content: center;
}

.admin-app-top {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: -14px -14px 0;
    padding: max(12px, env(safe-area-inset-top)) 14px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(5, 5, 5, 0.92);
    backdrop-filter: blur(14px);
}

.admin-app-top > div {
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-app-top img {
    width: 104px;
    padding: 6px;
}

.admin-app-top span {
    color: #c7cbd1;
    font-size: 0.72rem;
    font-weight: 950;
    text-transform: uppercase;
}

.admin-app-top form {
    margin: 0;
}

.admin-app-top button,
.admin-app-reply button {
    min-height: 42px;
    border: 0;
    border-radius: 8px;
    background: #fff;
    color: #050505;
    font-weight: 950;
    text-transform: uppercase;
}

.admin-app-hero {
    display: grid;
    gap: 12px;
    padding: 22px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.03)),
        #111214;
    box-shadow: 0 24px 55px rgba(0, 0, 0, 0.28);
}

.admin-app-hero h1 {
    max-width: 8ch;
    font-size: clamp(2rem, 9vw, 3.4rem);
    line-height: 0.95;
}

.admin-app-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.admin-app-actions .button {
    width: 100%;
    justify-content: center;
}

.admin-app-nav {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.admin-app-nav a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 9px 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 950;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
}

.admin-app-nav a.active {
    background: #fff;
    color: #050505;
}

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

.admin-app-stats article,
.admin-app-list,
.admin-app-chat {
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.07);
}

.admin-app-stats article {
    padding: 16px;
}

.admin-app-stats span {
    display: block;
    color: #b8bdc5;
    font-size: 0.7rem;
    font-weight: 950;
    text-transform: uppercase;
}

.admin-app-stats strong {
    display: block;
    margin-top: 4px;
    color: #fff;
    font-size: 2.2rem;
    line-height: 1;
}

.admin-app-list,
.admin-app-chat {
    padding: 14px;
}

.admin-app-section-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.admin-app-section-head h2 {
    font-size: 1.15rem;
}

.admin-app-row {
    display: grid;
    gap: 6px;
    padding: 14px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    text-decoration: none;
}

.admin-app-row:first-of-type {
    border-top: 0;
}

.admin-app-row.active {
    margin: 0 -8px;
    padding: 14px 8px;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.11);
}

.admin-app-row strong {
    color: #fff;
    font-size: 0.98rem;
}

.admin-app-row span,
.admin-app-row small {
    color: #c7cbd1;
    font-size: 0.82rem;
    line-height: 1.35;
}

.admin-app-row div {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.admin-app-row div a {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 8px 12px;
    border-radius: 8px;
    background: #fff;
    color: #050505;
    font-size: 0.76rem;
    font-weight: 950;
    text-decoration: none;
    text-transform: uppercase;
}

.admin-app-empty {
    margin: 8px 0 0;
    color: #c7cbd1;
}

.admin-app-chat-window {
    display: grid;
    gap: 10px;
    max-height: 52vh;
    overflow-y: auto;
    padding: 10px 2px;
}

.admin-app-bubble {
    display: grid;
    gap: 5px;
    max-width: 88%;
    padding: 11px 12px;
    border-radius: 12px;
    line-height: 1.45;
}

.admin-app-bubble.client {
    justify-self: start;
    background: #fff;
    color: #050505;
}

.admin-app-bubble.admin {
    justify-self: end;
    background: #2f343a;
    color: #fff;
}

.admin-app-bubble small {
    opacity: 0.68;
    font-size: 0.68rem;
}

.admin-app-reply {
    position: sticky;
    bottom: max(8px, env(safe-area-inset-bottom));
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    padding-top: 8px;
    background: rgba(17, 18, 20, 0.94);
}

@media (min-width: 680px) {
    .admin-app-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

/* Admin app visual refresh */
.admin-app-body {
    background: #eef0f3;
    color: #101114;
}

.admin-app-shell {
    width: min(620px, 100%);
    padding: 0 12px max(104px, calc(88px + env(safe-area-inset-bottom)));
}

.admin-app-login {
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0 -12px;
    padding: 18px;
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.16), transparent 32%),
        linear-gradient(145deg, #050505, #191b1f);
    color: #fff;
}

.admin-app {
    gap: 12px;
}

.admin-app-top {
    margin: 0 -12px;
    padding: max(12px, env(safe-area-inset-top)) 14px 12px;
    border: 0;
    border-radius: 0 0 18px 18px;
    background: #050505;
    box-shadow: 0 14px 30px rgba(5, 5, 5, 0.2);
}

.admin-app-brand {
    min-width: 0;
}

.admin-app-brand img,
.admin-app-top img {
    width: 94px;
    padding: 6px;
    border-radius: 7px;
}

.admin-app-brand div {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.admin-app-brand strong {
    color: #fff;
    font-size: 0.9rem;
    line-height: 1;
}

.admin-app-brand span,
.admin-app-top span {
    color: #aeb4bd;
    font-size: 0.66rem;
    line-height: 1;
}

.admin-app-top button {
    min-height: 36px;
    padding: 8px 11px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: #1c1f23;
    color: #fff;
    font-size: 0.72rem;
}

.admin-app-hero,
.admin-app-list,
.admin-app-chat,
.admin-app-stats article,
.admin-app-shortcuts a {
    border: 1px solid rgba(16, 17, 20, 0.08);
    background: #fff;
    color: #101114;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.admin-app-hero {
    margin-top: 12px;
    padding: 16px;
    border-radius: 16px;
}

.admin-app-command {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

.admin-app-hero span,
.admin-app-section-head span,
.admin-app-stats span,
.admin-app-shortcuts span {
    color: #69707b;
}

.admin-app-hero h1,
.admin-app-section-head h2 {
    color: #101114;
}

.admin-app-hero h1 {
    max-width: none;
    font-size: 1.75rem;
    line-height: 1;
}

.admin-app-hero p {
    color: #4b5563;
    font-size: 0.9rem;
}

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

.admin-app-actions .button {
    min-height: 44px;
    border-radius: 9px;
    font-size: 0.72rem;
}

.admin-app-actions .button.dark {
    background: #050505;
    color: #fff;
}

.admin-app-actions .button.ghost-light {
    border: 1px solid rgba(16, 17, 20, 0.14);
    background: #f7f8f9;
    color: #101114;
}

.admin-app-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.admin-app-stats article {
    min-height: 74px;
    padding: 12px 8px;
    border-radius: 14px;
}

.admin-app-stats span {
    overflow: hidden;
    font-size: 0.58rem;
    line-height: 1.1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-app-stats strong {
    color: #101114;
    font-size: 1.65rem;
}

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

.admin-app-shortcuts a {
    display: grid;
    gap: 5px;
    min-height: 76px;
    padding: 12px;
    border-radius: 14px;
    text-decoration: none;
}

.admin-app-shortcuts strong {
    color: #101114;
    font-size: 1.6rem;
    line-height: 1;
}

.admin-app-list,
.admin-app-chat {
    gap: 0;
    padding: 14px;
    border-radius: 16px;
}

.admin-app-section-head {
    align-items: center;
    padding-bottom: 12px;
}

.admin-app-section-head h2 {
    font-size: 1.08rem;
}

.admin-app-section-head em,
.admin-app-pill {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: 24px;
    padding: 5px 8px;
    border-radius: 999px;
    background: #101114;
    color: #fff;
    font-size: 0.62rem;
    font-style: normal;
    font-weight: 950;
    text-transform: uppercase;
}

.admin-app-row {
    padding: 13px 0;
    border-top: 1px solid rgba(16, 17, 20, 0.08);
    color: #101114;
}

.admin-app-row strong {
    color: #101114;
}

.admin-app-row span,
.admin-app-row small {
    color: #68707c;
}

.admin-app-row-chat {
    display: grid;
    grid-template-columns: 42px 1fr;
    align-items: center;
    gap: 10px;
}

.admin-app-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #101114;
    color: #fff !important;
    font-size: 0.95rem !important;
    font-weight: 950;
}

.admin-app-row-compact {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 10px;
}

.admin-app-row-compact b {
    color: #101114;
    font-size: 0.9rem;
    white-space: nowrap;
}

.admin-app-quote-card {
    gap: 12px;
}

.admin-app-row-main {
    display: grid !important;
    gap: 7px !important;
}

.admin-app-quote-total {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    background: #f1f3f5;
}

.admin-app-quote-total strong {
    font-size: 1rem;
}

.admin-app-row-actions {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-app-row-actions a {
    justify-content: center;
    border: 1px solid rgba(16, 17, 20, 0.12);
    background: #101114 !important;
    color: #fff !important;
}

.admin-app-back {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: 36px;
    margin-bottom: 10px;
    padding: 8px 10px;
    border-radius: 8px;
    background: #f1f3f5;
    color: #101114;
    font-size: 0.72rem;
    font-weight: 950;
    text-decoration: none;
    text-transform: uppercase;
}

.admin-app-chat-window {
    max-height: calc(100vh - 300px);
    min-height: 280px;
    padding: 12px 0;
}

.admin-app-bubble.client {
    background: #f1f3f5;
    color: #101114;
}

.admin-app-bubble.admin {
    background: #101114;
    color: #fff;
}

.admin-app-reply {
    bottom: max(84px, calc(72px + env(safe-area-inset-bottom)));
    margin: 0 -6px -6px;
    padding: 8px;
    border: 1px solid rgba(16, 17, 20, 0.08);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.12);
}

.admin-app-reply input {
    border-color: rgba(16, 17, 20, 0.12);
    background: #f7f8f9;
}

.admin-app-reply button {
    background: #101114;
    color: #fff;
}

.admin-app-empty {
    color: #68707c;
}

.admin-app-nav {
    position: fixed;
    right: 12px;
    bottom: max(10px, env(safe-area-inset-bottom));
    left: 12px;
    z-index: 50;
    width: min(596px, calc(100% - 24px));
    margin: 0 auto;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    background: rgba(5, 5, 5, 0.94);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.32);
    backdrop-filter: blur(16px);
}

.admin-app-nav a {
    display: grid;
    gap: 4px;
    min-height: 50px;
    padding: 7px 4px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: #aeb4bd;
}

.admin-app-nav a span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    margin: 0 auto;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    font-size: 0.68rem;
    font-weight: 950;
}

.admin-app-nav a strong {
    font-size: 0.6rem;
    line-height: 1;
}

.admin-app-nav a.active {
    background: #fff;
    color: #050505;
}

.admin-app-nav a.active span {
    background: #050505;
    color: #fff;
}

@media (max-width: 390px) {
    .admin-app-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-app-shortcuts {
        grid-template-columns: 1fr;
    }
}

/* LYNX Admin app command center */
.admin-app-logo-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 172px;
    max-width: 64vw;
    min-height: 58px;
    padding: 8px 10px;
    border-radius: 12px;
    background: #fff;
    color: #050505;
    box-shadow: inset 0 0 0 1px rgba(5, 5, 5, 0.08);
}

.admin-app-logo-mark img,
.admin-app-login .admin-app-logo-mark img,
.admin-app-top .admin-app-logo-mark img {
    display: block;
    width: 100%;
    max-width: none;
    height: auto;
    padding: 0;
    border-radius: 0;
    background: transparent;
    object-fit: contain;
}

.admin-app-logo-mark b {
    display: none;
    color: #050505;
    font-size: 1.55rem;
    font-weight: 950;
    letter-spacing: 0;
}

.admin-app-brand .admin-app-logo-mark {
    flex: 0 0 auto;
    width: 116px;
    min-height: 42px;
    padding: 6px 8px;
    border-radius: 10px;
}

.admin-app-login .admin-app-logo-mark {
    width: min(230px, 68vw);
    min-height: 78px;
}

.admin-app-live {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.admin-app-live a {
    display: grid;
    gap: 3px;
    min-height: 66px;
    padding: 10px 8px;
    border: 1px solid rgba(16, 17, 20, 0.08);
    border-radius: 14px;
    background: #fff;
    color: #101114;
    text-decoration: none;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.07);
}

.admin-app-live span,
.admin-app-shortcuts small,
.admin-app-alert-grid small {
    overflow: hidden;
    color: #69707b;
    font-size: 0.58rem;
    font-weight: 900;
    line-height: 1.15;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.admin-app-live strong {
    color: #101114;
    font-size: 1.25rem;
    line-height: 1;
}

.admin-app-mini-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 8px 10px;
    border-radius: 8px;
    background: #101114;
    color: #fff;
    font-size: 0.68rem;
    font-weight: 950;
    text-decoration: none;
    text-transform: uppercase;
}

.admin-app-search {
    display: grid;
    gap: 6px;
    padding: 10px 0 12px;
    border-top: 1px solid rgba(16, 17, 20, 0.08);
}

.admin-app-search span {
    color: #69707b;
    font-size: 0.68rem;
    font-weight: 950;
    text-transform: uppercase;
}

.admin-app-search input {
    width: 100%;
    min-height: 44px;
    border: 1px solid rgba(16, 17, 20, 0.12);
    border-radius: 10px;
    background: #f7f8f9;
    color: #101114;
    font: inherit;
}

.admin-app-product-card {
    grid-template-columns: 58px 1fr;
    align-items: center;
    gap: 10px;
}

.admin-app-product-thumb {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    margin: 0;
    overflow: hidden;
    border-radius: 12px;
    background: #f1f3f5;
}

.admin-app-product-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.admin-app-product-info,
.admin-app-log-row > div {
    display: grid !important;
    gap: 5px !important;
    min-width: 0;
}

.admin-app-tags {
    display: flex !important;
    flex-wrap: wrap;
    gap: 5px !important;
}

.admin-app-tags span,
.admin-app-dot {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: 22px;
    padding: 4px 7px;
    border-radius: 999px;
    background: #eef0f3;
    color: #101114 !important;
    font-size: 0.58rem !important;
    font-weight: 950;
    text-transform: uppercase;
}

.admin-app-tags span:first-child:last-child {
    background: #101114;
    color: #fff !important;
}

.admin-app-product-meta {
    display: flex !important;
    grid-column: 1 / -1;
    align-items: center;
    justify-content: space-between;
    gap: 8px !important;
    padding: 9px 10px;
    border-radius: 10px;
    background: #f7f8f9;
}

.admin-app-product-meta span {
    color: #101114;
    font-size: 0.92rem;
    font-weight: 950;
}

.admin-app-product-meta small {
    color: #69707b;
    font-weight: 850;
}

.admin-app-product-card .admin-app-row-actions {
    grid-column: 1 / -1;
}

.admin-app-alert-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 2px 0 14px;
}

.admin-app-alert-grid article {
    display: grid;
    gap: 5px;
    min-height: 90px;
    padding: 12px;
    border-radius: 14px;
    background: #f7f8f9;
}

.admin-app-alert-grid span {
    color: #69707b;
    font-size: 0.62rem;
    font-weight: 950;
    text-transform: uppercase;
}

.admin-app-alert-grid strong {
    color: #101114;
    font-size: 1.4rem;
    line-height: 1;
}

.admin-app-section-head.compact {
    margin-top: 12px;
}

.admin-app-inline-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding-bottom: 12px;
}

.admin-app-log-row {
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 10px;
}

.admin-app-dot.danger {
    background: #ffe5e5;
    color: #8a1111 !important;
}

.admin-app-dot.success {
    background: #e8f7ee;
    color: #176235 !important;
}

.admin-app-dot.running {
    background: #fff4d6;
    color: #6b4a00 !important;
}

.admin-app-shortcuts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-app-shortcuts a {
    grid-template-columns: auto 1fr;
    align-items: center;
    min-height: 100px;
}

.admin-app-shortcuts i {
    display: inline-flex;
    grid-row: span 3;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: #101114;
    color: #fff;
    font-size: 0.82rem;
    font-style: normal;
    font-weight: 950;
}

.admin-app-shortcuts span,
.admin-app-shortcuts strong,
.admin-app-shortcuts small {
    min-width: 0;
}

.admin-app-shortcuts small {
    text-transform: none;
    white-space: normal;
}

@media (max-width: 420px) {
    .admin-app-live {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-app-brand .admin-app-logo-mark {
        width: 100px;
    }
}

/* LYNX Admin app focused screens */
.admin-app-body {
    background:
        linear-gradient(180deg, #f4f5f7 0%, #e8eaee 100%);
}

.admin-app {
    gap: 10px;
}

.admin-app-top {
    position: sticky;
    top: 0;
    z-index: 30;
    border-radius: 0 0 20px 20px;
    background:
        linear-gradient(135deg, #050505 0%, #17191d 72%, #2b2f35 100%);
    box-shadow: 0 16px 34px rgba(5, 5, 5, 0.26);
}

.admin-app-top button {
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
}

.admin-app-brand .admin-app-logo-mark {
    width: 108px;
    min-height: 40px;
    border-radius: 12px;
}

.admin-app-brand strong {
    font-size: 0.82rem;
}

.admin-app-brand span {
    max-width: 128px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-app-view-dashboard .admin-app-hero {
    position: relative;
    overflow: hidden;
    margin-top: 12px;
    padding: 18px;
    border: 0;
    background:
        radial-gradient(circle at 88% 16%, rgba(255, 255, 255, 0.18), transparent 28%),
        linear-gradient(135deg, #050505 0%, #1b1e23 62%, #343942 100%);
    color: #fff;
}

.admin-app-view-dashboard .admin-app-hero::after {
    content: "";
    position: absolute;
    right: -18px;
    bottom: -46px;
    width: 130px;
    height: 130px;
    border: 24px solid rgba(255, 255, 255, 0.07);
    border-radius: 50%;
}

.admin-app-view-dashboard .admin-app-hero span,
.admin-app-view-dashboard .admin-app-hero h1,
.admin-app-view-dashboard .admin-app-hero p {
    position: relative;
    z-index: 1;
    color: #fff;
}

.admin-app-view-dashboard .admin-app-hero p {
    color: rgba(255, 255, 255, 0.78);
}

.admin-app-page-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 12px;
    padding: 14px;
    border: 1px solid rgba(16, 17, 20, 0.08);
    border-radius: 18px;
    background: #fff;
    color: #101114;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.admin-app-page-head div {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.admin-app-page-head span {
    overflow: hidden;
    color: #69707b;
    font-size: 0.62rem;
    font-weight: 950;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.admin-app-page-head h1 {
    margin: 0;
    color: #101114;
    font-size: 1.45rem;
    line-height: 1;
}

.admin-app-page-head a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 8px 12px;
    border-radius: 999px;
    background: #101114;
    color: #fff;
    font-size: 0.68rem;
    font-weight: 950;
    text-decoration: none;
    text-transform: uppercase;
}

.admin-app-view-dashboard .admin-app-live a,
.admin-app-view-dashboard .admin-app-stats article,
.admin-app-shortcuts a,
.admin-app-list,
.admin-app-chat {
    border-color: rgba(16, 17, 20, 0.07);
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.075);
}

.admin-app-view-dashboard .admin-app-live a {
    min-height: 74px;
}

.admin-app-view-dashboard .admin-app-stats {
    gap: 8px;
}

.admin-app-view-dashboard .admin-app-stats article {
    background: #101114;
}

.admin-app-view-dashboard .admin-app-stats span {
    color: rgba(255, 255, 255, 0.58);
}

.admin-app-view-dashboard .admin-app-stats strong {
    color: #fff;
}

.admin-app-list,
.admin-app-chat {
    padding: 12px 14px;
    border-radius: 18px;
}

.admin-app-view-chats .admin-app-list,
.admin-app-view-quotes .admin-app-list,
.admin-app-view-users .admin-app-list,
.admin-app-view-products .admin-app-list,
.admin-app-view-alerts .admin-app-list,
.admin-app-view-integration .admin-app-list,
.admin-app-view-chats .admin-app-chat {
    margin-top: 0;
}

.admin-app-section-head {
    min-height: 42px;
}

.admin-app-row {
    min-height: 62px;
}

.admin-app-row:hover {
    background: rgba(16, 17, 20, 0.025);
}

.admin-app-row-chat {
    grid-template-columns: 46px 1fr;
}

.admin-app-avatar {
    width: 46px;
    height: 46px;
    box-shadow: inset 0 -10px 18px rgba(255, 255, 255, 0.08);
}

.admin-app-view-chats .admin-app-chat-window {
    max-height: calc(100dvh - 258px);
    min-height: calc(100dvh - 342px);
}

.admin-app-view-chats .admin-app-chat {
    min-height: calc(100dvh - 170px);
}

.admin-app-bubble {
    border-radius: 16px;
}

.admin-app-bubble.client {
    background: #eef0f3;
}

.admin-app-bubble.admin {
    background: linear-gradient(135deg, #101114, #343942);
}

.admin-app-reply {
    border-radius: 18px;
}

.admin-app-nav {
    border-radius: 22px;
    background: rgba(5, 5, 5, 0.92);
}

.admin-app-nav a {
    min-height: 54px;
}

.admin-app-nav a.active {
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.12);
}

@media (max-width: 380px) {
    .admin-app-page-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .admin-app-page-head a {
        width: 100%;
    }
}

/* LYNX Admin app mobile task pages */
.admin-app-detail {
    display: grid;
    gap: 12px;
    padding-bottom: 98px;
}

.admin-app-summary-card,
.admin-app-client-card,
.admin-app-note-card,
.admin-app-integration-card,
.admin-app-product-hero,
.admin-app-form,
.admin-app-document-actions {
    border: 1px solid rgba(16, 17, 20, 0.08);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.075);
}

.admin-app-summary-card {
    display: grid;
    gap: 6px;
    padding: 18px;
    background: linear-gradient(135deg, #050505 0%, #25282d 100%);
    color: #fff;
}

.admin-app-summary-card span,
.admin-app-product-hero span {
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.68rem;
    font-weight: 950;
    text-transform: uppercase;
}

.admin-app-summary-card h2,
.admin-app-summary-card strong {
    margin: 0;
    color: #fff;
}

.admin-app-summary-card h2 {
    font-size: 1.55rem;
    line-height: 1;
}

.admin-app-summary-card strong {
    font-size: 1.9rem;
}

.admin-app-summary-card small {
    color: rgba(255, 255, 255, 0.7);
}

.admin-app-client-card,
.admin-app-note-card,
.admin-app-integration-card {
    display: grid;
    gap: 6px;
    padding: 16px;
}

.admin-app-client-card h3,
.admin-app-note-card h3,
.admin-app-integration-card h3 {
    margin: 0 0 4px;
    color: #101114;
    font-size: 0.78rem;
    font-weight: 950;
    text-transform: uppercase;
}

.admin-app-client-card strong,
.admin-app-integration-card strong {
    color: #101114;
    font-size: 1rem;
}

.admin-app-client-card span,
.admin-app-client-card small,
.admin-app-integration-card span,
.admin-app-integration-card small,
.admin-app-note-card p {
    margin: 0;
    color: #626a75;
    font-size: 0.86rem;
    line-height: 1.45;
}

.admin-app-status-form {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    align-items: end;
    padding: 12px;
    border: 1px solid rgba(16, 17, 20, 0.08);
    border-radius: 18px;
    background: #fff;
}

.admin-app-status-form label,
.admin-app-form label {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.admin-app-status-form span,
.admin-app-form span {
    color: #606875;
    font-size: 0.66rem;
    font-weight: 950;
    text-transform: uppercase;
}

.admin-app-status-form select,
.admin-app-form input,
.admin-app-form select,
.admin-app-form textarea {
    width: 100%;
    min-height: 44px;
    border: 1px solid #d8dde5;
    border-radius: 12px;
    background: #f8f9fb;
    color: #111318;
    font: inherit;
    padding: 10px 12px;
}

.admin-app-status-form button,
.admin-app-form button,
.admin-app-actions-grid button {
    min-height: 44px;
    border: 0;
    border-radius: 12px;
    background: #050505;
    color: #fff;
    cursor: pointer;
    font-weight: 950;
    text-transform: uppercase;
}

.admin-app-item-list {
    display: grid;
    gap: 8px;
}

.admin-app-item-card {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px 12px;
    align-items: center;
    padding: 13px;
    border: 1px solid rgba(16, 17, 20, 0.08);
    border-radius: 16px;
    background: #fff;
}

.admin-app-item-card div {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.admin-app-item-card strong {
    color: #111318;
    font-size: 0.92rem;
}

.admin-app-item-card small,
.admin-app-item-card span {
    color: #69707b;
    font-size: 0.78rem;
}

.admin-app-item-card b {
    color: #050505;
    font-size: 0.96rem;
}

.admin-app-actions-grid,
.admin-app-doc-actions,
.admin-app-document-actions {
    display: grid;
    gap: 8px;
}

.admin-app-actions-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-app-actions-grid a,
.admin-app-actions-grid button,
.admin-app-doc-card a,
.admin-app-document-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid rgba(16, 17, 20, 0.1);
    border-radius: 12px;
    background: #050505;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 950;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
}

.admin-app-actions-grid form {
    margin: 0;
}

.admin-app-product-hero {
    display: grid;
    grid-template-columns: 92px 1fr;
    gap: 14px;
    align-items: center;
    padding: 14px;
    background: linear-gradient(135deg, #050505, #383c43);
}

.admin-app-product-hero figure {
    aspect-ratio: 1;
    margin: 0;
    overflow: hidden;
    border-radius: 16px;
    background: #fff;
}

.admin-app-product-hero img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.admin-app-product-hero div {
    display: grid;
    gap: 5px;
    min-width: 0;
}

.admin-app-product-hero h2 {
    margin: 0;
    color: #fff;
    font-size: 1.12rem;
    line-height: 1.05;
}

.admin-app-product-hero strong {
    color: #fff;
}

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

.admin-app-form .wide,
.admin-app-form button,
.admin-app-switches {
    grid-column: 1 / -1;
}

.admin-app-switches {
    display: grid;
    gap: 8px;
}

.admin-app-switches label {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 10px 12px;
    border: 1px solid #d8dde5;
    border-radius: 12px;
    background: #f8f9fb;
    color: #111318;
    font-weight: 850;
}

.admin-app-document-actions {
    padding: 12px;
}

.admin-app-document-actions a {
    background: #fff;
    color: #111318;
}

.admin-app-doc-card {
    grid-template-columns: 1fr;
    align-items: stretch;
}

.admin-app-doc-card > div:first-child {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.admin-app-doc-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.admin-app-view-pdfs .admin-app-list,
.admin-app-view-pdf .admin-app-list,
.admin-app-view-quote .admin-app-list,
.admin-app-view-product .admin-app-list {
    margin-top: 0;
}

.admin-app-pdf-viewer {
    padding-bottom: 94px;
}

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

.admin-app-pdf-toolbar a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px;
    border-radius: 12px;
    background: #050505;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 950;
    text-decoration: none;
    text-transform: uppercase;
}

.admin-app-pdf-frame {
    overflow: hidden;
    min-height: calc(100dvh - 270px);
    border: 1px solid rgba(16, 17, 20, 0.1);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.075);
}

.admin-app-pdf-frame iframe {
    display: block;
    width: 100%;
    height: calc(100dvh - 270px);
    min-height: 520px;
    border: 0;
    background: #fff;
}

.admin-app-pdf-fallback {
    margin: 0;
    color: #69707b;
    font-size: 0.78rem;
    line-height: 1.45;
    text-align: center;
}

@media (max-width: 430px) {
    .admin-app-actions-grid,
    .admin-app-form {
        grid-template-columns: 1fr;
    }

    .admin-app-status-form {
        grid-template-columns: 1fr;
    }

    .admin-app-doc-actions {
        grid-template-columns: 1fr;
    }

    .admin-app-pdf-frame,
    .admin-app-pdf-frame iframe {
        min-height: 470px;
    }
}

/* Home desktop refresh 2026-07-18 */
@media (min-width: 981px) {
    body:not(.admin-body):not(.mobile-body):not(.tablet-body) {
        background:
            linear-gradient(90deg, rgba(5, 5, 5, 0.035) 0 1px, transparent 1px 100%) center top / 64px 64px,
            linear-gradient(180deg, #f7f8f9 0%, #eef0f2 48%, #f8f9fa 100%);
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) main {
        background:
            linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 0.55) 360px, rgba(255, 255, 255, 0) 720px);
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .hero,
    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .home-process,
    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .stats-band,
    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .category-strip,
    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .section-head,
    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .product-grid,
    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .trust-section,
    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .segments-showcase,
    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .marketing-panel,
    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .distributor-strip {
        width: min(1200px, calc(100% - 48px));
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .hero {
        display: grid;
        align-items: center;
        min-height: clamp(560px, 49vw, 690px);
        margin: 0 auto 18px;
        padding: clamp(52px, 5vw, 78px);
        border: 1px solid rgba(5, 5, 5, 0.09);
        border-top: 0;
        border-radius: 0 0 26px 26px;
        background:
            linear-gradient(90deg, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0.96) 30%, rgba(255, 255, 255, 0.74) 45%, rgba(255, 255, 255, 0.08) 66%, rgba(255, 255, 255, 0) 100%),
            linear-gradient(180deg, rgba(255, 255, 255, 0) 74%, rgba(5, 5, 5, 0.08) 100%),
            var(--hero-image) center right / cover no-repeat,
            #f4f5f6;
        box-shadow: 0 32px 84px rgba(5, 5, 5, 0.16);
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .hero::before {
        inset: 0;
        z-index: -1;
        height: auto;
        background:
            linear-gradient(120deg, rgba(5, 5, 5, 0.08) 0 1px, transparent 1px 100%) 0 0 / 44px 44px;
        opacity: 0.28;
        transform: none;
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .hero-copy {
        max-width: 540px;
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .hero h1 {
        max-width: 550px;
        margin: 12px 0 18px;
        font-size: clamp(3.15rem, 4.55vw, 5rem);
        line-height: 0.92;
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .hero p {
        max-width: 500px;
        color: #30343a;
        font-size: 1.04rem;
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .hero-actions {
        margin-bottom: 18px;
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .home-hero-metrics {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
        max-width: 520px;
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .home-hero-metrics article {
        min-height: 76px;
        padding: 14px;
        border: 1px solid rgba(5, 5, 5, 0.1);
        border-radius: 10px;
        background: rgba(255, 255, 255, 0.82);
        box-shadow: 0 14px 30px rgba(5, 5, 5, 0.08);
        backdrop-filter: blur(12px);
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .home-hero-metrics strong {
        display: block;
        color: #050505;
        font-size: 1.28rem;
        font-weight: 950;
        line-height: 1;
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .home-hero-metrics span {
        display: block;
        margin-top: 8px;
        color: #535a62;
        font-size: 0.72rem;
        font-weight: 850;
        line-height: 1.22;
        text-transform: uppercase;
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .home-process {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 1px;
        margin: 0 auto 34px;
        overflow: hidden;
        border: 1px solid rgba(5, 5, 5, 0.1);
        border-radius: 16px;
        background: rgba(5, 5, 5, 0.1);
        box-shadow: 0 22px 54px rgba(5, 5, 5, 0.1);
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .home-process article {
        min-height: 150px;
        padding: 22px;
        background: rgba(255, 255, 255, 0.96);
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .home-process span {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 34px;
        height: 34px;
        margin-bottom: 18px;
        border-radius: 50%;
        background: #050505;
        color: #fff;
        font-size: 0.68rem;
        font-weight: 950;
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .home-process strong {
        display: block;
        color: #050505;
        font-size: 1rem;
        line-height: 1.18;
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .home-process p {
        margin: 10px 0 0;
        color: #5d646c;
        font-size: 0.84rem;
        line-height: 1.42;
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .stats-band {
        margin: 0 auto 56px;
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .stats-band div {
        border-radius: 10px;
        background: #101114;
        color: #fff;
        box-shadow: 0 20px 46px rgba(5, 5, 5, 0.13);
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .stats-band strong {
        color: #fff;
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .stats-band span {
        color: rgba(255, 255, 255, 0.7);
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .category-strip {
        margin-bottom: 70px;
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .category-strip a {
        position: relative;
        min-height: 106px;
        overflow: hidden;
        border-radius: 12px;
        background:
            linear-gradient(135deg, #fff 0%, #f3f4f5 100%);
        color: #050505;
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .category-strip a::after {
        content: "";
        position: absolute;
        right: -24px;
        bottom: -30px;
        width: 86px;
        height: 86px;
        border: 18px solid rgba(5, 5, 5, 0.08);
        border-radius: 50%;
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .category-strip strong {
        color: #6a717a;
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .section-head {
        padding-top: 16px;
        border-top: 1px solid rgba(5, 5, 5, 0.12);
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .section-head h2 {
        max-width: 790px;
        font-size: clamp(2.05rem, 3.15vw, 3.65rem);
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .product-grid {
        margin-bottom: 86px;
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .trust-section {
        grid-template-columns: minmax(280px, 1.1fr) repeat(2, minmax(0, 1fr));
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .trust-section article {
        min-height: 190px;
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .trust-section > div {
        grid-row: span 2;
        min-height: 394px;
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .segments-showcase {
        grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1.55fr);
        border-radius: 16px;
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .marketing-panel {
        position: relative;
        overflow: hidden;
        border-radius: 16px;
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .marketing-panel::after {
        content: "";
        position: absolute;
        inset: 0 0 0 auto;
        width: 38%;
        background: var(--hero-image) center right / cover no-repeat;
        opacity: 0.22;
        pointer-events: none;
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .marketing-panel > * {
        position: relative;
        z-index: 1;
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .distributor-strip {
        border-radius: 16px;
    }

    @media (max-width: 1120px) {
        body:not(.admin-body):not(.mobile-body):not(.tablet-body) .hero {
            min-height: 590px;
            padding: 48px;
            background:
                linear-gradient(90deg, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0.96) 35%, rgba(255, 255, 255, 0.78) 56%, rgba(255, 255, 255, 0.22) 100%),
                var(--hero-image) 74% center / cover no-repeat,
                #f4f5f6;
        }

        body:not(.admin-body):not(.mobile-body):not(.tablet-body) .home-process,
        body:not(.admin-body):not(.mobile-body):not(.tablet-body) .stats-band {
            grid-template-columns: repeat(2, minmax(0, 1fr));
        }

        body:not(.admin-body):not(.mobile-body):not(.tablet-body) .trust-section,
        body:not(.admin-body):not(.mobile-body):not(.tablet-body) .segments-showcase,
        body:not(.admin-body):not(.mobile-body):not(.tablet-body) .marketing-panel,
        body:not(.admin-body):not(.mobile-body):not(.tablet-body) .distributor-strip {
            grid-template-columns: 1fr;
        }

        body:not(.admin-body):not(.mobile-body):not(.tablet-body) .trust-section > div {
            grid-row: auto;
            min-height: 260px;
        }
    }
}

/* Admin app redesign */
.admin-app-body {
    min-height: 100dvh;
    background:
        linear-gradient(90deg, rgba(5, 5, 5, 0.035) 0 1px, transparent 1px 100%) center top / 36px 36px,
        linear-gradient(180deg, #f7f8fa 0%, #e9ecef 100%);
    color: #101114;
}

.admin-app-shell {
    width: min(100%, 760px);
    min-height: 100dvh;
    margin: 0 auto;
    padding: 0 clamp(12px, 3vw, 18px) max(112px, calc(94px + env(safe-area-inset-bottom)));
}

.admin-app {
    display: grid;
    gap: 14px;
}

.admin-app-top {
    position: sticky;
    top: 0;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0 calc(clamp(12px, 3vw, 18px) * -1);
    padding: max(12px, env(safe-area-inset-top)) clamp(14px, 4vw, 22px) 14px;
    border-radius: 0 0 24px 24px;
    background: linear-gradient(135deg, #050505 0%, #17191d 64%, #31343a 100%);
    box-shadow: 0 18px 42px rgba(5, 5, 5, 0.28);
}

.admin-app-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.admin-app-logo-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 96px;
    min-width: 96px;
    height: 42px;
    overflow: hidden;
    border-radius: 12px;
    background: #fff;
    box-shadow: inset 0 0 0 1px rgba(5, 5, 5, 0.08);
}

.admin-app-logo-mark img,
.admin-app-login .admin-app-logo-mark img,
.admin-app-top .admin-app-logo-mark img {
    display: block;
    width: 100%;
    height: 100%;
    padding: 6px;
    object-fit: contain;
}

.admin-app-logo-mark b {
    display: none;
    color: #050505;
    font-size: 1.2rem;
    line-height: 1;
}

.admin-app-brand div {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.admin-app-brand strong {
    overflow: hidden;
    color: #fff;
    font-size: 0.9rem;
    line-height: 1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-app-brand span {
    overflow: hidden;
    max-width: 160px;
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.68rem;
    font-weight: 850;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.admin-app-top form {
    margin: 0;
}

.admin-app-top button {
    min-height: 38px;
    padding: 8px 13px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 950;
    letter-spacing: 0;
    text-transform: uppercase;
}

.admin-app-priority-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-top: 2px;
}

.admin-app-priority-strip a {
    display: grid;
    gap: 6px;
    min-height: 72px;
    padding: 12px;
    border: 1px solid rgba(16, 17, 20, 0.08);
    border-radius: 16px;
    background: #fff;
    color: #101114;
    text-decoration: none;
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.07);
}

.admin-app-priority-strip span {
    overflow: hidden;
    color: #69707b;
    font-size: 0.62rem;
    font-weight: 950;
    line-height: 1.15;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.admin-app-priority-strip strong {
    color: #050505;
    font-size: 1.5rem;
    line-height: 1;
}

.admin-app-hero,
.admin-app-list,
.admin-app-chat,
.admin-app-page-head,
.admin-app-summary-card,
.admin-app-client-card,
.admin-app-note-card,
.admin-app-integration-card,
.admin-app-product-hero,
.admin-app-form,
.admin-app-document-actions {
    border: 1px solid rgba(16, 17, 20, 0.08);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.08);
}

.admin-app-hero {
    position: relative;
    overflow: hidden;
    display: grid;
    gap: 16px;
    margin-top: 0;
    padding: 20px;
    background: linear-gradient(135deg, #050505 0%, #17191d 58%, #494e56 100%);
    color: #fff;
}

.admin-app-hero::after {
    content: "";
    position: absolute;
    right: -44px;
    bottom: -58px;
    width: 170px;
    height: 170px;
    border: 28px solid rgba(255, 255, 255, 0.07);
    border-radius: 999px;
}

.admin-app-hero > * {
    position: relative;
    z-index: 1;
}

.admin-app-hero span,
.admin-app-summary-card span {
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.68rem;
    font-weight: 950;
    text-transform: uppercase;
}

.admin-app-hero h1 {
    margin: 0;
    color: #fff;
    font-size: clamp(1.75rem, 8vw, 2.45rem);
    line-height: 0.96;
}

.admin-app-hero p {
    max-width: 34rem;
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.96rem;
    line-height: 1.45;
}

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

.admin-app-hero-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 12px;
    border-radius: 12px;
    background: #fff;
    color: #050505;
    font-size: 0.72rem;
    font-weight: 950;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
}

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

.admin-app-live a,
.admin-app-stats article,
.admin-app-shortcuts a {
    border: 1px solid rgba(16, 17, 20, 0.08);
    border-radius: 18px;
    background: #fff;
    color: #101114;
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.07);
}

.admin-app-live a {
    display: grid;
    gap: 7px;
    min-height: 76px;
    padding: 13px;
    text-decoration: none;
}

.admin-app-live span,
.admin-app-stats span,
.admin-app-shortcuts span,
.admin-app-shortcuts small {
    overflow: hidden;
    color: #69707b;
    font-size: 0.62rem;
    font-weight: 950;
    line-height: 1.15;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.admin-app-live strong,
.admin-app-stats strong,
.admin-app-shortcuts strong {
    color: #050505;
    line-height: 1;
}

.admin-app-live strong {
    font-size: 1.55rem;
}

.admin-app-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.admin-app-stats article {
    display: grid;
    gap: 8px;
    min-height: 76px;
    padding: 12px 8px;
}

.admin-app-stats strong {
    font-size: 1.55rem;
}

.admin-app-nav {
    position: fixed;
    right: max(10px, calc((100vw - 760px) / 2 + 12px));
    bottom: max(10px, env(safe-area-inset-bottom));
    left: max(10px, calc((100vw - 760px) / 2 + 12px));
    z-index: 60;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(64px, 1fr);
    gap: 7px;
    overflow-x: auto;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 22px;
    background: rgba(5, 5, 5, 0.94);
    box-shadow: 0 18px 44px rgba(5, 5, 5, 0.34);
    scrollbar-width: none;
}

.admin-app-nav::-webkit-scrollbar {
    display: none;
}

.admin-app-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-width: 64px;
    min-height: 56px;
    padding: 7px 8px;
    border-radius: 16px;
    color: rgba(255, 255, 255, 0.74);
    text-decoration: none;
}

.admin-app-nav a span,
.admin-app-nav-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 24px;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.09);
    color: #fff;
    font-size: 0.62rem;
    font-weight: 950;
    line-height: 1;
}

.admin-app-nav a strong {
    display: block;
    width: 100%;
    overflow: hidden;
    color: currentColor;
    font-size: 0.59rem;
    font-weight: 950;
    line-height: 1;
    text-align: center;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.admin-app-nav a.active {
    background: #fff;
    color: #050505;
}

.admin-app-nav a.active span,
.admin-app-nav a.active .admin-app-nav-icon {
    background: #050505;
    color: #fff;
}

.admin-app-page-head {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 12px;
    margin-top: 0;
    padding: 16px;
}

.admin-app-page-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 16px;
    background: #050505;
    color: #fff;
}

.admin-app-icon {
    display: block;
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.admin-app-page-icon .admin-app-icon {
    width: 22px;
    height: 22px;
}

.admin-app-icon-text {
    color: currentColor;
    font-size: 0.62rem;
    font-weight: 950;
    line-height: 1;
}

.admin-app-page-head > div:not(.admin-app-page-icon) {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.admin-app-page-head span {
    overflow: hidden;
    color: #69707b;
    font-size: 0.64rem;
    font-weight: 950;
    line-height: 1.2;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.admin-app-page-head h1 {
    margin: 0;
    color: #050505;
    font-size: clamp(1.45rem, 7vw, 2rem);
    line-height: 0.98;
}

.admin-app-mini-link,
.admin-app-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 9px 12px;
    border-radius: 999px;
    background: #050505;
    color: #fff;
    font-size: 0.68rem;
    font-weight: 950;
    text-decoration: none;
    text-transform: uppercase;
}

.admin-app-list,
.admin-app-chat {
    display: grid;
    gap: 10px;
    padding: 14px;
}

.admin-app-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 40px;
    padding-bottom: 4px;
}

.admin-app-section-head div {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.admin-app-section-head h2 {
    margin: 0;
    color: #050505;
    font-size: 1.1rem;
    line-height: 1.05;
}

.admin-app-section-head span {
    overflow: hidden;
    color: #69707b;
    font-size: 0.65rem;
    font-weight: 900;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.admin-app-section-head em,
.admin-app-pill,
.admin-app-dot {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: 24px;
    padding: 5px 8px;
    border-radius: 999px;
    background: #101114;
    color: #fff !important;
    font-size: 0.62rem !important;
    font-style: normal;
    font-weight: 950;
    line-height: 1;
    text-transform: uppercase;
}

.admin-app-row {
    display: grid;
    gap: 8px;
    padding: 12px;
    border: 1px solid rgba(16, 17, 20, 0.08);
    border-radius: 16px;
    background: #f8f9fb;
    color: #101114;
    text-decoration: none;
}

.admin-app-row:first-of-type {
    border-top: 1px solid rgba(16, 17, 20, 0.08);
}

.admin-app-row strong {
    color: #050505;
    font-size: 0.95rem;
    line-height: 1.25;
}

.admin-app-row span,
.admin-app-row small {
    color: #69707b;
    font-size: 0.78rem;
    line-height: 1.35;
}

.admin-app-row-chat,
.admin-app-product-card {
    grid-template-columns: 46px 1fr;
    align-items: center;
}

.admin-app-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 16px;
    background: linear-gradient(135deg, #050505, #363a41);
    color: #fff !important;
    font-size: 0.9rem !important;
    font-weight: 950;
}

.admin-app-row-main,
.admin-app-product-info,
.admin-app-row-chat div,
.admin-app-row-compact div {
    display: grid !important;
    gap: 5px !important;
    min-width: 0;
}

.admin-app-quote-card {
    grid-template-columns: 1fr auto;
    align-items: start;
}

.admin-app-quote-card .admin-app-row-actions,
.admin-app-product-card .admin-app-row-actions {
    grid-column: 1 / -1;
}

.admin-app-quote-total {
    display: grid !important;
    justify-items: end;
    gap: 5px !important;
    min-width: 96px;
}

.admin-app-quote-total span {
    text-transform: uppercase;
}

.admin-app-quote-total strong {
    font-size: 1rem;
    white-space: nowrap;
}

.admin-app-row-actions {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px !important;
}

.admin-app-row-actions a,
.admin-app-row div a,
.admin-app-actions-grid a,
.admin-app-actions-grid button,
.admin-app-doc-card a,
.admin-app-document-actions a,
.admin-app-pdf-toolbar a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 9px 10px;
    border: 0;
    border-radius: 12px;
    background: #050505;
    color: #fff;
    font-size: 0.66rem;
    font-weight: 950;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
}

.admin-app-row-actions a:nth-child(2),
.admin-app-document-actions a,
.admin-app-pdf-toolbar a:nth-child(2) {
    background: #eef0f3;
    color: #101114;
}

.admin-app-product-thumb {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    margin: 0;
    overflow: hidden;
    border-radius: 16px;
    background: #fff;
    box-shadow: inset 0 0 0 1px rgba(16, 17, 20, 0.08);
}

.admin-app-product-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    padding: 4px;
    object-fit: contain;
}

.admin-app-product-meta {
    display: grid !important;
    grid-column: 1 / -1;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 10px !important;
    padding: 10px 12px;
    border-radius: 14px;
    background: #fff;
}

.admin-app-product-meta span {
    color: #050505;
    font-size: 1rem;
    font-weight: 950;
}

.admin-app-tags {
    display: flex !important;
    flex-wrap: wrap;
    gap: 5px !important;
}

.admin-app-tags span {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    padding: 4px 7px;
    border-radius: 999px;
    background: #eef0f3;
    color: #101114 !important;
    font-size: 0.58rem !important;
    font-weight: 950;
    text-transform: uppercase;
}

.admin-app-search {
    display: grid;
    gap: 7px;
    padding: 0 0 4px;
}

.admin-app-search span,
.admin-app-form span,
.admin-app-status-form span {
    color: #69707b;
    font-size: 0.66rem;
    font-weight: 950;
    text-transform: uppercase;
}

.admin-app-search input,
.admin-app-form input,
.admin-app-form select,
.admin-app-form textarea,
.admin-app-status-form select,
.admin-app-reply input {
    width: 100%;
    min-height: 46px;
    padding: 11px 12px;
    border: 1px solid #d9dee5;
    border-radius: 14px;
    background: #fff;
    color: #101114;
    font: inherit;
}

.admin-app-detail {
    display: grid;
    gap: 12px;
}

.admin-app-summary-card {
    display: grid;
    gap: 7px;
    padding: 18px;
    background: linear-gradient(135deg, #050505, #2f333a);
    color: #fff;
}

.admin-app-summary-card h2,
.admin-app-summary-card strong {
    margin: 0;
    color: #fff;
}

.admin-app-summary-card h2 {
    font-size: 1.55rem;
    line-height: 1;
}

.admin-app-summary-card strong {
    font-size: 1.9rem;
}

.admin-app-summary-card small {
    color: rgba(255, 255, 255, 0.72);
}

.admin-app-client-card,
.admin-app-note-card,
.admin-app-integration-card,
.admin-app-document-actions {
    display: grid;
    gap: 7px;
    padding: 16px;
}

.admin-app-client-card h3,
.admin-app-note-card h3,
.admin-app-integration-card h3 {
    margin: 0 0 2px;
    color: #050505;
    font-size: 0.78rem;
    font-weight: 950;
    text-transform: uppercase;
}

.admin-app-client-card span,
.admin-app-client-card small,
.admin-app-integration-card span,
.admin-app-integration-card small,
.admin-app-note-card p {
    margin: 0;
    color: #606875;
    font-size: 0.84rem;
    line-height: 1.45;
}

.admin-app-status-form,
.admin-app-form {
    display: grid;
    gap: 11px;
    padding: 14px;
    border: 1px solid rgba(16, 17, 20, 0.08);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.08);
}

.admin-app-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-app-form .wide,
.admin-app-form button,
.admin-app-switches {
    grid-column: 1 / -1;
}

.admin-app-form label,
.admin-app-status-form label {
    display: grid;
    gap: 6px;
}

.admin-app-form button,
.admin-app-status-form button {
    min-height: 46px;
    border: 0;
    border-radius: 14px;
    background: #050505;
    color: #fff;
    font-weight: 950;
    text-transform: uppercase;
}

.admin-app-switches {
    display: grid;
    gap: 8px;
}

.admin-app-switches label {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid #d9dee5;
    border-radius: 14px;
    background: #f8f9fb;
    color: #101114;
    font-weight: 850;
}

.admin-app-product-hero {
    display: grid;
    grid-template-columns: 96px 1fr;
    gap: 14px;
    align-items: center;
    padding: 14px;
    background: linear-gradient(135deg, #050505, #3c4148);
}

.admin-app-product-hero figure {
    aspect-ratio: 1;
    margin: 0;
    overflow: hidden;
    border-radius: 18px;
    background: #fff;
}

.admin-app-product-hero img {
    width: 100%;
    height: 100%;
    padding: 6px;
    object-fit: contain;
}

.admin-app-product-hero div {
    display: grid;
    gap: 5px;
    min-width: 0;
}

.admin-app-product-hero span {
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.66rem;
    font-weight: 950;
    text-transform: uppercase;
}

.admin-app-product-hero h2 {
    margin: 0;
    color: #fff;
    font-size: 1.15rem;
    line-height: 1.05;
}

.admin-app-product-hero strong {
    color: #fff;
}

.admin-app-item-list {
    display: grid;
    gap: 8px;
}

.admin-app-item-card {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px 12px;
    align-items: center;
    padding: 13px;
    border: 1px solid rgba(16, 17, 20, 0.08);
    border-radius: 16px;
    background: #fff;
}

.admin-app-item-card div {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.admin-app-item-card strong {
    color: #101114;
    font-size: 0.92rem;
}

.admin-app-item-card small,
.admin-app-item-card span {
    color: #69707b;
    font-size: 0.78rem;
}

.admin-app-actions-grid,
.admin-app-doc-actions,
.admin-app-pdf-toolbar {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-app-actions-grid form {
    margin: 0;
}

.admin-app-doc-card {
    grid-template-columns: 1fr;
}

.admin-app-doc-card > div:first-child {
    display: grid;
    gap: 4px;
    min-width: 0;
}

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

.admin-app-alert-grid article {
    display: grid;
    gap: 6px;
    min-height: 96px;
    padding: 13px;
    border: 1px solid rgba(16, 17, 20, 0.08);
    border-radius: 18px;
    background: #f8f9fb;
}

.admin-app-alert-grid span {
    color: #69707b;
    font-size: 0.62rem;
    font-weight: 950;
    text-transform: uppercase;
}

.admin-app-alert-grid strong {
    color: #050505;
    font-size: 1.28rem;
    line-height: 1;
}

.admin-app-alert-grid small {
    color: #69707b;
    font-size: 0.7rem;
    line-height: 1.25;
}

.admin-app-chat-window {
    display: grid;
    gap: 10px;
    max-height: calc(100dvh - 306px);
    min-height: 280px;
    overflow-y: auto;
    padding: 4px 0;
}

.admin-app-bubble {
    display: grid;
    gap: 5px;
    max-width: 86%;
    padding: 12px;
    border-radius: 17px;
    font-size: 0.92rem;
    line-height: 1.4;
}

.admin-app-bubble.client {
    justify-self: start;
    background: #eef0f3;
    color: #101114;
}

.admin-app-bubble.admin {
    justify-self: end;
    background: linear-gradient(135deg, #050505, #343942);
    color: #fff;
}

.admin-app-bubble small {
    opacity: 0.68;
    font-size: 0.68rem;
}

.admin-app-reply {
    position: sticky;
    bottom: max(84px, calc(72px + env(safe-area-inset-bottom)));
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    padding: 10px;
    border: 1px solid rgba(16, 17, 20, 0.08);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.12);
}

.admin-app-reply button {
    min-height: 46px;
    border: 0;
    border-radius: 14px;
    background: #050505;
    color: #fff;
    font-weight: 950;
    text-transform: uppercase;
}

.admin-app-pdf-frame {
    overflow: hidden;
    min-height: calc(100dvh - 278px);
    border: 1px solid rgba(16, 17, 20, 0.1);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.08);
}

.admin-app-pdf-frame iframe {
    display: block;
    width: 100%;
    height: calc(100dvh - 278px);
    min-height: 480px;
    border: 0;
    background: #fff;
}

.admin-app-pdf-fallback,
.admin-app-empty {
    margin: 0;
    color: #69707b;
    font-size: 0.82rem;
    line-height: 1.45;
}

.admin-app-shortcuts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
}

.admin-app-shortcuts a {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 5px 10px;
    min-height: 106px;
    padding: 13px;
    text-decoration: none;
}

.admin-app-shortcuts i {
    display: inline-flex;
    grid-row: span 3;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 14px;
    background: #050505;
    color: #fff;
    font-size: 0.75rem;
    font-style: normal;
    font-weight: 950;
}

.admin-app-shortcuts strong {
    font-size: 1.45rem;
}

.admin-app-login {
    display: grid;
    align-content: center;
    min-height: 100dvh;
    margin: 0 calc(clamp(12px, 3vw, 18px) * -1);
    padding: 26px 18px;
    background: linear-gradient(145deg, #050505, #191b1f 58%, #353942);
    color: #fff;
}

.admin-app-login .admin-app-logo-mark {
    width: 132px;
    min-width: 132px;
    height: 58px;
    margin-bottom: 18px;
}

.admin-app-login h1 {
    margin: 0;
    color: #fff;
    font-size: clamp(2.1rem, 12vw, 3.2rem);
    line-height: 0.94;
}

.admin-app-login p {
    max-width: 26rem;
    margin: 10px 0 22px;
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.45;
}

.admin-app-login form {
    display: grid;
    gap: 12px;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.08);
}

.admin-app-login label {
    display: grid;
    gap: 7px;
}

.admin-app-login label span {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.66rem;
    font-weight: 950;
    text-transform: uppercase;
}

.admin-app-login input {
    min-height: 48px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 14px;
    background: #fff;
    color: #101114;
}

.admin-app-login .button.full {
    min-height: 48px;
    border-radius: 14px;
    background: #fff;
    color: #050505;
}

@media (max-width: 430px) {
    .admin-app-shell {
        padding-inline: 10px;
    }

    .admin-app-top {
        margin-inline: -10px;
    }

    .admin-app-logo-mark {
        width: 88px;
        min-width: 88px;
    }

    .admin-app-brand span {
        max-width: 104px;
    }

    .admin-app-priority-strip,
    .admin-app-stats,
    .admin-app-alert-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-app-priority-strip a:first-child {
        grid-column: 1 / -1;
    }

    .admin-app-quote-card,
    .admin-app-form,
    .admin-app-status-form,
    .admin-app-actions-grid,
    .admin-app-doc-actions,
    .admin-app-pdf-toolbar {
        grid-template-columns: 1fr;
    }

    .admin-app-quote-total {
        justify-items: start;
    }
}

/* Admin app nav alignment and motion */
.admin-app-nav {
    grid-auto-columns: 86px !important;
    align-items: stretch;
    justify-content: start;
    gap: 12px !important;
    padding: 11px !important;
}

.admin-app-nav a {
    position: relative;
    isolation: isolate;
    display: grid !important;
    grid-template-rows: 40px 14px;
    align-items: center !important;
    justify-items: center !important;
    gap: 7px !important;
    width: 86px;
    min-width: 86px !important;
    height: 68px;
    min-height: 68px !important;
    padding: 7px 7px !important;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transform: translateY(0);
    transition:
        background 180ms ease,
        border-color 180ms ease,
        color 180ms ease,
        transform 180ms ease,
        box-shadow 180ms ease;
}

.admin-app-nav a::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.18), transparent 58%);
    opacity: 0;
    transition: opacity 180ms ease;
}

.admin-app-nav a:hover,
.admin-app-nav a:focus-visible {
    border-color: rgba(255, 255, 255, 0.22);
    color: #fff;
    transform: translateY(-2px);
}

.admin-app-nav a:hover::before,
.admin-app-nav a:focus-visible::before {
    opacity: 1;
}

.admin-app-nav a:active {
    transform: translateY(0) scale(0.97);
}

.admin-app-nav a span,
.admin-app-nav-icon {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
    margin: 0 !important;
    border-radius: 15px !important;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    transform: translateZ(0);
    transition:
        background 180ms ease,
        color 180ms ease,
        transform 180ms ease,
        box-shadow 180ms ease;
}

.admin-app-nav .admin-app-icon {
    width: 21px !important;
    height: 21px !important;
    stroke-width: 2;
}

.admin-app-nav a strong {
    display: block !important;
    width: 76px !important;
    max-width: 76px !important;
    height: 14px;
    overflow: hidden;
    color: currentColor;
    font-size: 0.6rem !important;
    font-weight: 950;
    line-height: 14px !important;
    text-align: center;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.admin-app-nav a.active {
    border-color: rgba(255, 255, 255, 0.9);
    background: #fff;
    color: #050505;
    box-shadow:
        0 10px 24px rgba(255, 255, 255, 0.16),
        inset 0 0 0 1px rgba(5, 5, 5, 0.04);
    transform: translateY(-3px);
}

.admin-app-nav a.active::before {
    opacity: 1;
    background: linear-gradient(135deg, rgba(5, 5, 5, 0.08), transparent 62%);
}

.admin-app-nav a.active span,
.admin-app-nav a.active .admin-app-nav-icon {
    background: #050505;
    color: #fff;
    box-shadow: 0 8px 18px rgba(5, 5, 5, 0.26);
}

.admin-app-page-icon {
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 24px rgba(5, 5, 5, 0.18);
}

.admin-app-page-icon::after {
    content: "";
    position: absolute;
    inset: -40% auto auto -40%;
    width: 60%;
    height: 180%;
    background: rgba(255, 255, 255, 0.22);
    transform: rotate(28deg);
    animation: adminAppSheen 3.6s ease-in-out infinite;
}

.admin-app-page-icon .admin-app-icon {
    position: relative;
    z-index: 1;
}

.admin-app-page-head,
.admin-app-priority-strip a,
.admin-app-live a,
.admin-app-row {
    transition:
        transform 180ms ease,
        box-shadow 180ms ease,
        border-color 180ms ease;
}

.admin-app-priority-strip a:active,
.admin-app-live a:active,
.admin-app-row:active {
    transform: scale(0.985);
}

@keyframes adminAppSheen {
    0%,
    62% {
        transform: translateX(0) rotate(28deg);
        opacity: 0;
    }
    72% {
        opacity: 1;
    }
    100% {
        transform: translateX(220%) rotate(28deg);
        opacity: 0;
    }
}

@media (max-width: 390px) {
    .admin-app-nav {
        grid-auto-columns: 78px !important;
        gap: 10px !important;
    }

    .admin-app-nav a {
        width: 78px;
        min-width: 78px !important;
    }

    .admin-app-nav a strong {
        width: 70px !important;
        max-width: 70px !important;
        font-size: 0.56rem !important;
    }
}

/* Product catalog final list override 2026-07-19 */
@media (min-width: 981px) {
    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .product-filters {
        margin-top: 34px;
        margin-bottom: 14px;
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .product-catalog-helper {
        display: none;
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .products-results-head {
        margin-bottom: 12px;
        padding: 14px 0 10px;
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .catalog-product-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 12px;
        width: min(1200px, calc(100% - 48px));
        margin-bottom: 72px;
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .catalog-product-grid .product-card {
        display: grid;
        grid-template-columns: 146px minmax(0, 1fr);
        min-height: 190px;
        border-radius: 12px;
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .catalog-product-grid .product-card:hover {
        transform: translateY(-2px);
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .catalog-product-grid .product-image {
        height: 100%;
        min-height: 190px;
        border-right: 1px solid #e3e7eb;
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .catalog-product-grid .product-image img {
        padding: 14px;
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .catalog-product-grid .product-body {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(190px, 230px) minmax(230px, 270px);
        grid-template-areas:
            "top top top"
            "title price form"
            "summary metrics form"
            "tags metrics favorite";
        gap: 9px 18px;
        align-items: start;
        padding: 16px 18px;
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .catalog-product-grid .product-card-kicker {
        grid-area: top;
        margin: 0;
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .catalog-product-grid .product-body h3 {
        grid-area: title;
        margin: 0;
        font-size: 1.02rem;
        line-height: 1.2;
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .catalog-product-grid .product-summary {
        grid-area: summary;
        min-height: 0;
        margin: 0;
        color: #5c646c;
        font-size: 0.84rem;
        line-height: 1.38;
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .catalog-product-grid .product-tags {
        grid-area: tags;
        margin: 0;
        gap: 6px;
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .catalog-product-grid .product-tags span {
        min-height: 24px;
        padding: 4px 7px;
        font-size: 0.62rem;
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .catalog-product-grid .price-row {
        grid-area: price;
        display: grid;
        gap: 2px;
        margin: 0;
        padding: 0;
        border: 0;
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .catalog-product-grid .price-row strong {
        font-size: 1.34rem;
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .catalog-product-grid .profile-price-note {
        grid-column: 2;
        width: 100%;
        margin: 0;
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .catalog-product-grid .metrics {
        grid-area: metrics;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px;
        margin: 0;
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .catalog-product-grid .metrics div {
        min-height: 48px;
        padding: 7px;
        border-radius: 7px;
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .catalog-product-grid .metrics dt {
        font-size: 0.62rem;
        line-height: 1.1;
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .catalog-product-grid .metrics dd {
        font-size: 0.76rem;
        line-height: 1.15;
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .catalog-product-grid .mini-form {
        grid-area: form;
        display: grid;
        grid-template-columns: minmax(0, 1fr) 70px;
        gap: 8px;
        margin: 0;
        padding: 0;
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .catalog-product-grid .mini-form .button {
        grid-column: 1 / -1;
        min-height: 38px;
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .catalog-product-grid .favorite-form {
        grid-area: favorite;
        order: initial;
        margin: 0;
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .catalog-product-grid .favorite-form button {
        width: 100%;
        min-height: 36px;
        border-radius: 8px;
    }
}

@media (min-width: 981px) and (max-width: 1180px) {
    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .catalog-product-grid .product-card {
        grid-template-columns: 128px minmax(0, 1fr);
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .catalog-product-grid .product-body {
        grid-template-columns: minmax(0, 1fr) minmax(220px, 260px);
        grid-template-areas:
            "top top"
            "title price"
            "summary metrics"
            "tags metrics"
            "form form"
            "favorite favorite";
    }
}

/* Product detail final visibility guard 2026-07-19 */
@media (min-width: 981px) {
    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .product-stage .stage-grid,
    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .product-stage::before,
    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .product-stage::after {
        z-index: 0;
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .product-stage > img.is-cutout {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: relative !important;
        z-index: 4 !important;
        width: min(86%, 520px) !important;
        height: auto !important;
        max-height: 560px !important;
        object-fit: contain !important;
        transform: none !important;
        mix-blend-mode: normal !important;
        background: transparent !important;
        filter: drop-shadow(0 34px 44px rgba(5, 5, 5, 0.28)) !important;
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .product-stage .product-code-pill,
    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .product-stage .detail-image-badges {
        z-index: 6;
    }
}

/* Admin app bottom navigation definitive no-overlap fix */
.admin-app-body .admin-app-nav {
    display: flex !important;
    flex-flow: row nowrap !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    gap: 14px !important;
    width: auto !important;
    max-width: none !important;
    right: max(10px, calc((100vw - 760px) / 2 + 12px)) !important;
    left: max(10px, calc((100vw - 760px) / 2 + 12px)) !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    box-sizing: border-box !important;
    scroll-padding-inline: 12px;
    scroll-snap-type: x proximity;
}

.admin-app-body .admin-app-nav a {
    position: relative !important;
    display: grid !important;
    flex: 0 0 92px !important;
    grid-template-columns: 1fr !important;
    grid-template-rows: 44px 16px !important;
    align-items: center !important;
    justify-items: center !important;
    gap: 8px !important;
    width: 92px !important;
    min-width: 92px !important;
    max-width: 92px !important;
    height: 74px !important;
    min-height: 74px !important;
    max-height: 74px !important;
    padding: 7px 6px !important;
    box-sizing: border-box !important;
    scroll-snap-align: center;
}

.admin-app-body .admin-app-nav a .admin-app-nav-icon,
.admin-app-body .admin-app-nav a > span {
    position: static !important;
    grid-column: 1 !important;
    grid-row: 1 !important;
    display: inline-flex !important;
    align-self: center !important;
    justify-self: center !important;
    width: 44px !important;
    min-width: 44px !important;
    max-width: 44px !important;
    height: 44px !important;
    min-height: 44px !important;
    max-height: 44px !important;
    margin: 0 !important;
    box-sizing: border-box !important;
}

.admin-app-body .admin-app-nav a .admin-app-icon {
    display: block !important;
    width: 22px !important;
    min-width: 22px !important;
    max-width: 22px !important;
    height: 22px !important;
    min-height: 22px !important;
    max-height: 22px !important;
}

.admin-app-body .admin-app-nav a strong {
    position: static !important;
    grid-column: 1 !important;
    grid-row: 2 !important;
    align-self: center !important;
    justify-self: center !important;
    display: block !important;
    width: 82px !important;
    min-width: 0 !important;
    max-width: 82px !important;
    height: 16px !important;
    margin: 0 !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
    font-size: 0.62rem !important;
    line-height: 16px !important;
    text-align: center !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

@media (max-width: 390px) {
    .admin-app-body .admin-app-nav {
        gap: 12px !important;
    }

    .admin-app-body .admin-app-nav a {
        flex-basis: 86px !important;
        width: 86px !important;
        min-width: 86px !important;
        max-width: 86px !important;
    }

    .admin-app-body .admin-app-nav a strong {
        width: 76px !important;
        max-width: 76px !important;
        font-size: 0.58rem !important;
    }
}

/* LYNX client mobile/app refresh */
.mobile-body {
    background:
        radial-gradient(circle at 18% 0%, rgba(255, 255, 255, 0.9), transparent 26%),
        linear-gradient(180deg, #f8f9fa 0%, #eef0f2 52%, #e5e7e9 100%) !important;
    overflow-x: hidden;
}

.client-app-body .mobile-app-install {
    display: none !important;
}

.mobile-body .mobile-top {
    min-height: 66px;
    padding: 10px 14px;
    border-bottom: 1px solid rgba(5, 5, 5, 0.08);
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 12px 34px rgba(5, 5, 5, 0.08);
    gap: 10px;
    overflow: hidden;
}

.mobile-body .mobile-top img {
    width: 132px;
    height: 42px;
    min-width: 132px;
}

.mobile-body .mobile-top-action.mobile-marketplace-action {
    max-width: 146px;
    min-width: 0;
    overflow: hidden;
    padding-right: 10px;
    padding-left: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mobile-body .mobile-shell {
    width: min(100%, 500px);
    max-width: 100vw;
    box-sizing: border-box;
    gap: 14px;
    padding: 12px 12px max(132px, calc(116px + env(safe-area-inset-bottom)));
    overflow: hidden;
}

.mobile-body .mobile-hero {
    position: relative;
    min-height: 620px;
    overflow: hidden;
    justify-content: flex-end;
    padding: 26px 20px 22px;
    border: 1px solid rgba(5, 5, 5, 0.06);
    border-radius: 24px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.4) 30%, rgba(255, 255, 255, 0.98) 67%),
        var(--hero-image) 60% 0 / auto 64% no-repeat,
        #fff !important;
    box-shadow: 0 24px 60px rgba(5, 5, 5, 0.12);
}

.mobile-body .mobile-hero::after {
    content: "";
    position: absolute;
    right: 20px;
    bottom: 218px;
    width: 104px;
    height: 4px;
    border-radius: 999px;
    background: linear-gradient(90deg, transparent, rgba(5, 5, 5, 0.5), transparent);
}

.mobile-body .mobile-hero > * {
    position: relative;
    z-index: 1;
}

.mobile-body .mobile-hero span,
.mobile-body .mobile-section-head span,
.mobile-body .mobile-page-title span {
    color: #111214;
    font-size: 0.68rem;
    letter-spacing: 0;
}

.mobile-body .mobile-hero h1 {
    max-width: 395px;
    font-size: clamp(2.55rem, 11vw, 3.45rem);
    overflow-wrap: anywhere;
}

.mobile-body .mobile-hero p {
    max-width: 360px;
    color: #33383d;
    font-size: 0.96rem;
    line-height: 1.5;
}

.mobile-body .mobile-actions {
    grid-template-columns: 1fr !important;
}

.mobile-body .mobile-actions .button {
    min-width: 0;
    min-height: 50px;
    padding: 12px 10px;
    border-radius: 10px;
    font-size: 0.78rem;
    white-space: normal;
}

.mobile-app-install {
    order: -10;
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
    padding: 14px;
    border: 1px solid rgba(5, 5, 5, 0.1);
    border-radius: 18px;
    background:
        linear-gradient(135deg, rgba(255, 225, 0, 0.18), transparent 42%),
        #fff;
    box-shadow: 0 18px 44px rgba(5, 5, 5, 0.09);
}

.mobile-app-install img {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    box-shadow: 0 10px 22px rgba(5, 5, 5, 0.16);
}

.mobile-app-install div {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.mobile-app-install span {
    color: #5c6369;
    font-size: 0.66rem;
    font-weight: 900;
    text-transform: uppercase;
}

.mobile-app-install strong {
    display: block;
    max-width: 100%;
    color: #050505;
    font-size: 0.92rem;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.mobile-app-install p {
    max-width: 100%;
    margin: 0;
    color: #62686e;
    font-size: 0.78rem;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.mobile-app-install .button {
    grid-column: 1 / -1;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    min-height: 46px;
    border-radius: 12px;
    overflow: hidden;
    white-space: normal;
}

.mobile-body .mobile-quick {
    grid-template-columns: 1fr;
}

.mobile-body .mobile-quick a {
    min-height: 74px;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    padding: 16px;
    border-radius: 16px;
}

.mobile-body .mobile-quick a::after {
    content: ">";
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 999px;
    background: #050505;
    color: #fff;
    font-weight: 900;
}

.mobile-body .mobile-section,
.mobile-body .mobile-cta,
.mobile-body .mobile-card-form,
.mobile-body .mobile-search,
.mobile-body .mobile-detail,
.mobile-body .mobile-reviews {
    border-radius: 18px;
    border-color: rgba(5, 5, 5, 0.1);
    box-shadow: 0 18px 44px rgba(5, 5, 5, 0.08);
}

.mobile-body .mobile-segments a {
    min-height: 88px;
    border-radius: 16px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent),
        linear-gradient(135deg, #050505, #303338);
}

.mobile-body .mobile-product-row {
    grid-template-columns: 76px minmax(0, 1fr);
    position: relative;
    gap: 12px;
    padding: 12px 12px 12px 10px;
    border-radius: 16px;
    background:
        linear-gradient(135deg, rgba(5, 5, 5, 0.025), transparent 42%),
        #fff;
}

.mobile-body .mobile-product-thumb img,
.mobile-body .mobile-cart-item img {
    width: 76px;
    height: 76px;
    border-radius: 14px;
}

.mobile-body .mobile-product-row h3 {
    padding-right: 48px;
    font-size: 0.94rem;
}

.mobile-body .mobile-list-action {
    position: absolute;
    top: 12px;
    right: 12px;
    min-width: 40px;
    min-height: 32px;
    border-radius: 999px;
}

.mobile-body .mobile-bottom-nav {
    right: auto;
    bottom: max(8px, env(safe-area-inset-bottom));
    left: 50%;
    transform: translateX(-50%);
    grid-template-columns: repeat(4, minmax(0, 1fr));
    width: min(456px, calc(100vw - 24px));
    max-width: calc(100vw - 24px);
    box-sizing: border-box;
    gap: 6px;
    margin: 0 auto;
    padding: 7px;
    border-radius: 20px;
}

.mobile-body .mobile-bottom-nav a {
    min-width: 0;
    min-height: 44px;
    padding: 0 4px;
    border-radius: 14px;
    overflow: hidden;
    font-size: 0.66rem;
    line-height: 1.1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mobile-body .mobile-bottom-nav a:active,
.mobile-body .mobile-bottom-nav a:hover {
    background: rgba(255, 255, 255, 0.16);
}

@media (max-width: 360px) {
    .mobile-body .mobile-actions {
        grid-template-columns: 1fr;
    }

    .mobile-body .mobile-hero {
        min-height: 590px;
    }

    .mobile-body .mobile-bottom-nav a {
        font-size: 0.58rem;
    }
}

@media (max-width: 430px) {
    .mobile-body .mobile-actions {
        grid-template-columns: 1fr;
    }

    .mobile-body .mobile-hero {
        min-height: 600px;
    }

    .mobile-body .mobile-top img {
        width: 124px;
        min-width: 124px;
    }

    .mobile-body .mobile-top-action.mobile-marketplace-action {
        max-width: 128px;
        font-size: 0.66rem;
    }
}

/* Client app/mobile final width guard */
body.mobile-body {
    width: 100vw !important;
    max-width: 100vw !important;
    overflow-x: hidden !important;
}

.mobile-body .mobile-shell {
    width: 100vw !important;
    max-width: 100vw !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
}

.mobile-body .mobile-app-install {
    width: calc(100vw - 24px) !important;
    max-width: calc(100vw - 24px) !important;
    min-width: 0 !important;
    margin-right: auto !important;
    margin-left: auto !important;
}

.mobile-body .mobile-app-install > *,
.mobile-body .mobile-app-install div {
    min-width: 0 !important;
    max-width: 100% !important;
}

.mobile-body .mobile-app-install .button {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    padding-right: 8px !important;
    padding-left: 8px !important;
    font-size: 0.84rem !important;
}

.mobile-body .mobile-bottom-nav {
    left: 50% !important;
    right: auto !important;
    width: min(456px, calc(100vw - 24px)) !important;
    max-width: calc(100vw - 24px) !important;
    transform: translateX(-50%) !important;
}

/* Client mobile full refresh 2026-07-19 */
body.mobile-body {
    min-height: 100vh !important;
    background:
        linear-gradient(rgba(5, 5, 5, 0.035) 1px, transparent 1px) 0 0 / 28px 28px,
        linear-gradient(90deg, rgba(5, 5, 5, 0.035) 1px, transparent 1px) 0 0 / 28px 28px,
        radial-gradient(circle at 20% -10%, rgba(255, 255, 255, 0.96), transparent 30%),
        linear-gradient(180deg, #f8f9fa 0%, #eef0f2 48%, #e0e3e6 100%) !important;
    color: #070707 !important;
}

.mobile-body > .mobile-bottom-nav:not(.mobile-bottom-nav-v2) {
    display: none !important;
}

.mobile-body .mobile-top {
    position: sticky !important;
    top: 0 !important;
    z-index: 50 !important;
    display: grid !important;
    grid-template-columns: minmax(112px, 1fr) auto !important;
    align-items: center !important;
    width: 100vw !important;
    min-height: 66px !important;
    padding: max(8px, env(safe-area-inset-top)) 12px 8px !important;
    border: 0 !important;
    border-bottom: 1px solid rgba(5, 5, 5, 0.08) !important;
    background: rgba(255, 255, 255, 0.92) !important;
    box-shadow: 0 18px 46px rgba(5, 5, 5, 0.12) !important;
    backdrop-filter: blur(18px) saturate(130%) !important;
}

.mobile-body .mobile-brand {
    display: inline-flex !important;
    align-items: center !important;
    min-width: 0 !important;
}

.mobile-body .mobile-top img {
    display: block !important;
    width: 130px !important;
    min-width: 130px !important;
    height: auto !important;
    max-height: 44px !important;
    object-fit: contain !important;
}

.mobile-body .mobile-top-actions {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 8px !important;
    min-width: 0 !important;
}

.mobile-body .mobile-top-action {
    display: inline-grid !important;
    min-width: 0 !important;
    min-height: 40px !important;
    place-items: center !important;
    border: 1px solid rgba(5, 5, 5, 0.08) !important;
    border-radius: 13px !important;
    color: #050505 !important;
    font-size: 0.68rem !important;
    font-weight: 950 !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
}

.mobile-body .mobile-cart-action {
    grid-template-columns: 28px minmax(0, 1fr) !important;
    gap: 6px !important;
    width: 112px !important;
    padding: 5px 8px !important;
    background: #050505 !important;
    color: #fff !important;
    box-shadow: 0 12px 26px rgba(5, 5, 5, 0.22) !important;
}

.mobile-body .mobile-cart-action span {
    display: grid !important;
    width: 26px !important;
    height: 26px !important;
    place-items: center !important;
    border-radius: 999px !important;
    background: #fff !important;
    color: #050505 !important;
    font-size: 0.74rem !important;
}

.mobile-body .mobile-cart-action strong {
    display: block !important;
    min-width: 0 !important;
    overflow: hidden !important;
    color: currentColor !important;
    font-size: 0.56rem !important;
    line-height: 1 !important;
    text-align: left !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

.mobile-body .mobile-marketplace-action {
    width: 40px !important;
    height: 40px !important;
    padding: 0 !important;
    background: #ffe100 !important;
    color: #050505 !important;
    box-shadow: 0 12px 26px rgba(255, 225, 0, 0.28) !important;
}

.mobile-body .mobile-shell {
    display: grid !important;
    gap: 14px !important;
    width: 100vw !important;
    max-width: 100vw !important;
    margin: 0 !important;
    padding: 14px 12px max(124px, calc(112px + env(safe-area-inset-bottom))) !important;
    overflow-x: hidden !important;
}

.mobile-body .mobile-app-install {
    order: -20 !important;
    display: grid !important;
    grid-template-columns: 64px minmax(0, 1fr) !important;
    width: calc(100vw - 24px) !important;
    max-width: calc(100vw - 24px) !important;
    min-height: 154px !important;
    padding: 14px !important;
    border: 1px solid rgba(5, 5, 5, 0.08) !important;
    border-radius: 20px !important;
    background:
        linear-gradient(135deg, rgba(255, 225, 0, 0.18), transparent 38%),
        linear-gradient(180deg, #fff, #f8f9fa) !important;
    box-shadow: 0 22px 58px rgba(5, 5, 5, 0.11) !important;
}

.mobile-body .mobile-app-install img {
    width: 64px !important;
    height: 64px !important;
    border-radius: 18px !important;
}

.mobile-body .mobile-app-install span,
.mobile-body .mobile-hero span,
.mobile-body .mobile-section-head span,
.mobile-body .mobile-page-title span {
    color: #111 !important;
    font-size: 0.65rem !important;
    font-weight: 950 !important;
    letter-spacing: 0 !important;
    text-transform: uppercase !important;
}

.mobile-body .mobile-app-install strong {
    color: #050505 !important;
    font-size: 0.95rem !important;
    line-height: 1.18 !important;
}

.mobile-body .mobile-app-install p {
    color: #5e666d !important;
    font-size: 0.78rem !important;
    line-height: 1.35 !important;
}

.mobile-body .mobile-app-install .button {
    min-height: 46px !important;
    border-radius: 14px !important;
    background: #050505 !important;
    color: #fff !important;
    font-size: 0.84rem !important;
}

.mobile-body .mobile-hero {
    min-height: 560px !important;
    display: flex !important;
    position: relative !important;
    justify-content: flex-end !important;
    gap: 12px !important;
    width: calc(100vw - 24px) !important;
    max-width: calc(100vw - 24px) !important;
    overflow: hidden !important;
    padding: 26px 20px 22px !important;
    border: 1px solid rgba(5, 5, 5, 0.08) !important;
    border-radius: 24px !important;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.22) 34%, rgba(255, 255, 255, 0.96) 66%, #fff 100%),
        var(--hero-image) 54% 0 / auto 58% no-repeat,
        #fff !important;
    box-shadow: 0 24px 62px rgba(5, 5, 5, 0.13) !important;
}

.client-app-body .mobile-hero {
    min-height: min(620px, calc(100vh - 92px)) !important;
}

.mobile-body .mobile-hero::before {
    content: "" !important;
    position: absolute !important;
    inset: auto -20% 24% -20% !important;
    height: 120px !important;
    background: radial-gradient(ellipse at center, rgba(5, 5, 5, 0.18), transparent 60%) !important;
    opacity: 0.28 !important;
}

.mobile-body .mobile-hero::after {
    right: 22px !important;
    bottom: 210px !important;
    width: 112px !important;
    opacity: 0.45 !important;
}

.mobile-body .mobile-hero h1 {
    max-width: 100% !important;
    margin: 0 !important;
    color: #050505 !important;
    font-size: clamp(2.34rem, 10.5vw, 3.28rem) !important;
    line-height: 0.96 !important;
    letter-spacing: 0 !important;
}

.mobile-body .mobile-hero p {
    max-width: 100% !important;
    margin: 0 !important;
    color: #273039 !important;
    font-size: 0.94rem !important;
    line-height: 1.48 !important;
}

.mobile-body .mobile-actions {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 10px !important;
    width: 100% !important;
}

.mobile-body .button {
    min-width: 0 !important;
    border-radius: 14px !important;
    font-weight: 950 !important;
    letter-spacing: 0 !important;
    text-transform: uppercase !important;
}

.mobile-body .mobile-actions .button,
.mobile-body .mobile-card-form .button,
.mobile-body .mobile-empty .button,
.mobile-body .mobile-cta .button {
    width: 100% !important;
    min-height: 50px !important;
}

.mobile-body .mobile-quick {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 10px !important;
}

.mobile-body .mobile-quick a {
    position: relative !important;
    min-height: 74px !important;
    padding: 15px 58px 15px 16px !important;
    border: 1px solid rgba(5, 5, 5, 0.08) !important;
    border-radius: 18px !important;
    background: rgba(255, 255, 255, 0.92) !important;
    box-shadow: 0 18px 46px rgba(5, 5, 5, 0.08) !important;
    text-decoration: none !important;
}

.mobile-body .mobile-quick a::after {
    position: absolute !important;
    top: 50% !important;
    right: 14px !important;
    transform: translateY(-50%) !important;
    width: 36px !important;
    height: 36px !important;
    background: #050505 !important;
    color: #fff !important;
}

.mobile-body .mobile-quick strong {
    color: #050505 !important;
    font-size: 1rem !important;
}

.mobile-body .mobile-quick span {
    color: #616970 !important;
    font-size: 0.8rem !important;
}

.mobile-body .mobile-section,
.mobile-body .mobile-page-title,
.mobile-body .mobile-search,
.mobile-body .mobile-empty,
.mobile-body .mobile-detail,
.mobile-body .mobile-reviews,
.mobile-body .mobile-summary,
.mobile-body .mobile-card-form,
.mobile-body .mobile-cart-list {
    width: calc(100vw - 24px) !important;
    max-width: calc(100vw - 24px) !important;
    border: 1px solid rgba(5, 5, 5, 0.08) !important;
    border-radius: 20px !important;
    background: rgba(255, 255, 255, 0.94) !important;
    box-shadow: 0 18px 46px rgba(5, 5, 5, 0.08) !important;
}

.mobile-body .mobile-hero,
.mobile-body .mobile-app-install,
.mobile-body .mobile-section,
.mobile-body .mobile-page-title,
.mobile-body .mobile-search,
.mobile-body .mobile-empty,
.mobile-body .mobile-detail,
.mobile-body .mobile-reviews,
.mobile-body .mobile-summary,
.mobile-body .mobile-card-form,
.mobile-body .mobile-cart-list,
.mobile-body .mobile-links {
    margin-right: auto !important;
    margin-left: auto !important;
}

.mobile-body .mobile-page-title,
.mobile-body .mobile-section {
    padding: 18px !important;
}

.mobile-body .mobile-page-title h1,
.mobile-body .mobile-section-head h2 {
    margin: 5px 0 0 !important;
    color: #050505 !important;
    font-size: clamp(1.65rem, 7vw, 2.28rem) !important;
    line-height: 1 !important;
    letter-spacing: 0 !important;
}

.mobile-body .mobile-links {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 8px !important;
    width: calc(100vw - 24px) !important;
}

.mobile-body .mobile-links a,
.mobile-body .mobile-segments a {
    display: grid !important;
    min-height: 52px !important;
    place-items: center !important;
    border-radius: 16px !important;
    color: #fff !important;
    background: linear-gradient(135deg, #050505, #34383d) !important;
    font-size: 0.72rem !important;
    font-weight: 950 !important;
    text-align: center !important;
    text-decoration: none !important;
    text-transform: uppercase !important;
}

.mobile-body .mobile-segments {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
}

.mobile-body .mobile-segments a {
    min-height: 88px !important;
    padding: 12px !important;
}

.mobile-body .mobile-product-list {
    display: grid !important;
    gap: 10px !important;
    width: 100% !important;
}

.mobile-body .mobile-section > .mobile-product-list {
    width: 100% !important;
}

.mobile-body .mobile-product-row {
    display: grid !important;
    grid-template-columns: 82px minmax(0, 1fr) !important;
    gap: 12px !important;
    min-height: 108px !important;
    padding: 11px 54px 11px 10px !important;
    border: 1px solid rgba(5, 5, 5, 0.08) !important;
    border-radius: 18px !important;
    background: linear-gradient(135deg, #fff, #f7f8f9) !important;
    box-shadow: 0 12px 30px rgba(5, 5, 5, 0.07) !important;
}

.mobile-body .mobile-product-thumb,
.mobile-body .mobile-product-thumb img {
    width: 82px !important;
    height: 82px !important;
    border-radius: 16px !important;
}

.mobile-body .mobile-product-thumb {
    display: grid !important;
    place-items: center !important;
    overflow: hidden !important;
    background: #eef0f2 !important;
}

.mobile-body .mobile-product-thumb img {
    object-fit: contain !important;
    mix-blend-mode: multiply !important;
}

.mobile-body .mobile-product-row span {
    color: #6b737b !important;
    font-size: 0.62rem !important;
    font-weight: 900 !important;
    text-transform: uppercase !important;
}

.mobile-body .mobile-product-row h3 {
    margin: 4px 0 8px !important;
    padding: 0 !important;
    color: #050505 !important;
    font-size: 0.98rem !important;
    line-height: 1.16 !important;
}

.mobile-body .mobile-product-row h3 a {
    color: inherit !important;
    text-decoration: none !important;
}

.mobile-body .mobile-product-row small {
    display: inline-flex !important;
    max-width: 100% !important;
    padding: 6px 8px !important;
    border-radius: 999px !important;
    background: #050505 !important;
    color: #fff !important;
    font-size: 0.66rem !important;
    line-height: 1.15 !important;
}

.mobile-body .mobile-list-action {
    position: absolute !important;
    top: 12px !important;
    right: 12px !important;
    display: grid !important;
    width: 36px !important;
    min-width: 36px !important;
    height: 36px !important;
    min-height: 36px !important;
    place-items: center !important;
    border-radius: 999px !important;
    background: #ffe100 !important;
    color: #050505 !important;
    font-size: 0.68rem !important;
    font-weight: 950 !important;
    text-decoration: none !important;
}

.mobile-body .mobile-search,
.mobile-body .mobile-card-form {
    display: grid !important;
    gap: 10px !important;
    padding: 14px !important;
}

.mobile-body .mobile-search input,
.mobile-body .mobile-search select,
.mobile-body .mobile-card-form input,
.mobile-body .mobile-card-form select,
.mobile-body .mobile-card-form textarea {
    min-height: 48px !important;
    border: 1px solid rgba(5, 5, 5, 0.1) !important;
    border-radius: 14px !important;
    background: #fff !important;
    color: #050505 !important;
    font-size: 0.92rem !important;
}

.mobile-body .mobile-detail {
    display: grid !important;
    gap: 12px !important;
    padding: 16px !important;
    overflow: hidden !important;
}

.mobile-body .mobile-detail > img {
    width: 100% !important;
    height: 270px !important;
    object-fit: contain !important;
    border-radius: 20px !important;
    background:
        radial-gradient(ellipse at center, rgba(5, 5, 5, 0.08), transparent 62%),
        #f1f3f5 !important;
}

.mobile-body .mobile-detail h1 {
    margin: 0 !important;
    color: #050505 !important;
    font-size: clamp(1.75rem, 8vw, 2.5rem) !important;
    line-height: 1 !important;
}

.mobile-body .mobile-detail p {
    margin: 0 !important;
    color: #5d656d !important;
    font-size: 0.9rem !important;
    line-height: 1.48 !important;
}

.mobile-body .mobile-price {
    display: inline-flex !important;
    width: fit-content !important;
    padding: 9px 12px !important;
    border-radius: 999px !important;
    background: #050505 !important;
    color: #fff !important;
    font-size: 1.18rem !important;
}

.mobile-body .mobile-metrics,
.mobile-body .mobile-summary {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
}

.mobile-body .mobile-metrics div,
.mobile-body .mobile-summary div {
    min-height: 74px !important;
    padding: 12px !important;
    border: 1px solid rgba(5, 5, 5, 0.08) !important;
    border-radius: 16px !important;
    background: #f7f8f9 !important;
}

.mobile-body .mobile-metrics span,
.mobile-body .mobile-summary span {
    color: #687079 !important;
    font-size: 0.62rem !important;
    font-weight: 950 !important;
    text-transform: uppercase !important;
}

.mobile-body .mobile-metrics strong,
.mobile-body .mobile-summary strong {
    display: block !important;
    margin-top: 4px !important;
    color: #050505 !important;
    font-size: 0.95rem !important;
}

.mobile-body .mobile-review-list {
    display: grid !important;
    gap: 10px !important;
    max-height: 430px !important;
    overflow-y: auto !important;
    padding-right: 2px !important;
}

.mobile-body .mobile-review-card {
    min-height: 0 !important;
    padding: 14px !important;
    border-radius: 16px !important;
    background: #fff !important;
    box-shadow: 0 12px 30px rgba(5, 5, 5, 0.06) !important;
}

.mobile-body .mobile-payment-title p {
    margin: 8px 0 0 !important;
    color: #5d656d !important;
    line-height: 1.45 !important;
}

.mobile-body .mobile-payment-summary {
    margin-bottom: 12px !important;
}

.mobile-body .mobile-payment-card {
    gap: 12px !important;
}

.mobile-body .mobile-payment-card #paymentBrick_container {
    min-height: 560px !important;
    width: 100% !important;
    padding: 8px !important;
    border-radius: 18px !important;
}

.mobile-body .mobile-payment-card .direct-payment-message {
    min-height: 0 !important;
    padding: 12px !important;
    font-size: 0.86rem !important;
}

.mobile-body .mobile-payment-card .direct-pix-box {
    border-radius: 18px !important;
    padding: 14px !important;
}

.mobile-body .mobile-payment-card .direct-pix-content {
    grid-template-columns: 1fr !important;
}

.mobile-body .mobile-payment-card .direct-pix-content img {
    max-width: 220px !important;
    margin: 0 auto !important;
}

.mobile-body .mobile-payment-card .direct-pix-copy textarea {
    min-height: 112px !important;
    font-size: 0.75rem !important;
}

.mobile-body .mobile-history article div {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    align-items: center !important;
}

.mobile-body .mobile-history article div > a,
.mobile-body .mobile-history article div button {
    min-height: 38px !important;
    padding: 9px 12px !important;
    border: 1px solid rgba(5, 5, 5, 0.12) !important;
    border-radius: 999px !important;
    background: #fff !important;
    color: #050505 !important;
    font-weight: 950 !important;
    text-decoration: none !important;
}

.mobile-bottom-nav-v2 {
    position: fixed !important;
    right: max(10px, env(safe-area-inset-right)) !important;
    bottom: max(8px, env(safe-area-inset-bottom)) !important;
    left: max(10px, env(safe-area-inset-left)) !important;
    z-index: 70 !important;
    display: flex !important;
    flex-flow: row nowrap !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    gap: 12px !important;
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 9px 10px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    border-radius: 22px !important;
    background: rgba(5, 5, 5, 0.96) !important;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.34) !important;
    backdrop-filter: blur(18px) saturate(130%) !important;
    scroll-padding-inline: 12px !important;
    scroll-snap-type: x proximity !important;
    transform: none !important;
}

.mobile-bottom-nav-v2::-webkit-scrollbar {
    display: none !important;
}

.mobile-bottom-nav-v2 .mobile-nav-item {
    position: relative !important;
    display: grid !important;
    flex: 0 0 82px !important;
    grid-template-rows: 40px 15px !important;
    align-items: center !important;
    justify-items: center !important;
    gap: 7px !important;
    width: 82px !important;
    min-width: 82px !important;
    max-width: 82px !important;
    height: 66px !important;
    min-height: 66px !important;
    padding: 6px !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 17px !important;
    color: #fff !important;
    text-decoration: none !important;
    scroll-snap-align: center !important;
    transition: transform 180ms ease, background 180ms ease, color 180ms ease, border-color 180ms ease !important;
}

.mobile-bottom-nav-v2 .mobile-nav-item:active {
    transform: scale(0.96) !important;
}

.mobile-bottom-nav-v2 .mobile-nav-icon {
    display: inline-flex !important;
    width: 40px !important;
    height: 40px !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 15px !important;
    background: rgba(255, 255, 255, 0.1) !important;
    color: currentColor !important;
}

.mobile-bottom-nav-v2 .mobile-nav-svg {
    width: 21px !important;
    height: 21px !important;
    fill: none !important;
    stroke: currentColor !important;
    stroke-width: 2 !important;
    stroke-linecap: round !important;
    stroke-linejoin: round !important;
}

.mobile-bottom-nav-v2 .mobile-nav-item strong {
    display: block !important;
    width: 72px !important;
    max-width: 72px !important;
    overflow: hidden !important;
    color: currentColor !important;
    font-size: 0.58rem !important;
    font-weight: 950 !important;
    line-height: 15px !important;
    text-align: center !important;
    text-overflow: ellipsis !important;
    text-transform: uppercase !important;
    white-space: nowrap !important;
}

.mobile-bottom-nav-v2 .mobile-nav-item.active {
    border-color: #fff !important;
    background: #fff !important;
    color: #050505 !important;
    transform: translateY(-2px) !important;
}

.mobile-bottom-nav-v2 .mobile-nav-item.active .mobile-nav-icon {
    background: #050505 !important;
    color: #fff !important;
    box-shadow: 0 8px 18px rgba(5, 5, 5, 0.24) !important;
}

.mobile-bottom-nav-v2 .mobile-nav-item.external {
    color: #050505 !important;
    background: linear-gradient(135deg, #ffe100, #f4c500) !important;
    border-color: rgba(255, 225, 0, 0.6) !important;
}

.mobile-bottom-nav-v2 .mobile-nav-item.external .mobile-nav-icon {
    background: rgba(5, 5, 5, 0.92) !important;
    color: #ffe100 !important;
}

@media (max-width: 374px) {
    .mobile-body .mobile-cart-action {
        width: 94px !important;
    }

    .mobile-body .mobile-cart-action strong {
        font-size: 0.5rem !important;
    }

    .mobile-bottom-nav-v2 .mobile-nav-item {
        flex-basis: 76px !important;
        width: 76px !important;
        min-width: 76px !important;
        max-width: 76px !important;
    }

    .mobile-bottom-nav-v2 .mobile-nav-item strong {
        width: 66px !important;
        max-width: 66px !important;
        font-size: 0.54rem !important;
    }
}

/* Mobile product price cleanup */
.mobile-body .mobile-product-info {
    display: grid !important;
    min-width: 0 !important;
    gap: 0 !important;
}

.mobile-body .mobile-product-row small {
    display: none !important;
}

.mobile-body .mobile-product-price {
    display: flex !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 7px !important;
    margin-top: 7px !important;
}

.mobile-body .mobile-product-price strong {
    display: inline-flex !important;
    align-items: center !important;
    min-height: 28px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: #050505 !important;
    font-size: 1.02rem !important;
    font-weight: 950 !important;
    line-height: 1 !important;
    white-space: nowrap !important;
}

.mobile-body .mobile-product-price span {
    display: inline-flex !important;
    align-items: center !important;
    min-height: 26px !important;
    padding: 5px 8px !important;
    border: 1px solid rgba(5, 5, 5, 0.08) !important;
    border-radius: 999px !important;
    background: #eef0f2 !important;
    color: #59616a !important;
    font-size: 0.62rem !important;
    font-weight: 950 !important;
    line-height: 1 !important;
    text-transform: uppercase !important;
    white-space: nowrap !important;
}

/* About page factory image */
.about-factory-photo {
    position: relative;
    overflow: hidden;
    margin: 0;
    border: 1px solid rgba(5, 5, 5, 0.12);
    border-radius: 14px;
    background: #080808;
    box-shadow: 0 26px 70px rgba(5, 5, 5, 0.16);
}

.about-layout .about-factory-photo img {
    display: block;
    width: 100%;
    max-height: none;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border: 0;
    border-radius: 0;
    background: #080808;
}

.about-factory-photo figcaption {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 18px;
    width: fit-content;
    max-width: calc(100% - 36px);
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 8px;
    background: rgba(5, 5, 5, 0.72);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 900;
    line-height: 1.35;
    text-transform: uppercase;
}

@media (max-width: 780px) {
    .about-factory-photo figcaption {
        position: static;
        width: 100%;
        max-width: none;
        border-width: 1px 0 0;
        border-radius: 0;
        background: #080808;
    }
}

.mobile-body .mobile-about-section {
    display: grid;
    gap: 16px;
}

.mobile-body .mobile-about-factory {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border: 1px solid rgba(5, 5, 5, 0.12);
    border-radius: 18px;
    box-shadow: 0 18px 45px rgba(5, 5, 5, 0.12);
}

/* Desktop home visual fixes */
@media (min-width: 981px) {
    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .segments-showcase {
        overflow: hidden !important;
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .segments-copy {
        min-width: 0 !important;
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .segments-copy h2 {
        max-width: 100% !important;
        font-size: clamp(2.3rem, 3.25vw, 3.85rem) !important;
        line-height: 0.98 !important;
        overflow-wrap: normal !important;
        text-wrap: balance !important;
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .segment-grid {
        min-width: 0 !important;
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .segment-card {
        min-width: 0 !important;
        min-height: 230px !important;
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .segment-card strong {
        font-size: clamp(0.68rem, 0.78vw, 0.82rem) !important;
        line-height: 1.08 !important;
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .distributor-strip .button {
        border-color: #050505 !important;
        background: #050505 !important;
        color: #fff !important;
        box-shadow: 0 18px 42px rgba(5, 5, 5, 0.16) !important;
    }
}

@media (min-width: 981px) and (max-width: 1240px) {
    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .segments-showcase {
        grid-template-columns: 1fr !important;
        gap: 24px !important;
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .segments-copy {
        max-width: 760px !important;
        justify-content: flex-start !important;
        padding: 6px !important;
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .segments-copy h2 {
        max-width: 680px !important;
        margin-bottom: 14px !important;
        font-size: clamp(2.35rem, 4.4vw, 4rem) !important;
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .segment-card {
        min-height: 210px !important;
    }
}

@media (min-width: 981px) and (max-width: 1120px) {
    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .segment-grid {
        grid-template-columns: repeat(5, minmax(108px, 1fr)) !important;
        overflow-x: auto !important;
        padding-bottom: 4px !important;
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .distributor-strip {
        align-items: flex-start !important;
    }
}

/* Desktop realtime chat widget */
.desktop-chat-widget {
    position: fixed;
    right: 22px;
    bottom: 104px;
    z-index: 1200;
    width: min(390px, calc(100vw - 32px));
    pointer-events: none;
}

.desktop-chat-widget * {
    box-sizing: border-box;
}

.desktop-chat-toggle,
.desktop-chat-panel {
    pointer-events: auto;
}

.desktop-chat-toggle {
    width: 100%;
    min-height: 64px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 12px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    padding: 12px 14px;
    background: #050505;
    color: #fff;
    text-align: left;
    box-shadow: 0 22px 55px rgba(0, 0, 0, 0.28);
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.desktop-chat-toggle:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.32);
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.34);
}

.desktop-chat-toggle strong,
.desktop-chat-toggle small {
    display: block;
}

.desktop-chat-toggle strong {
    font-size: 0.95rem;
    letter-spacing: 0;
}

.desktop-chat-toggle small {
    margin-top: 2px;
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.78rem;
    font-weight: 800;
}

.desktop-chat-toggle em {
    min-width: 26px;
    height: 26px;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    background: #fff;
    color: #050505;
    font-style: normal;
    font-size: 0.78rem;
    font-weight: 900;
}

.desktop-chat-pulse {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #25d366;
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.45);
    animation: lynxChatPulse 1.8s infinite;
}

@keyframes lynxChatPulse {
    70% {
        box-shadow: 0 0 0 12px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

.desktop-chat-panel {
    position: absolute;
    right: 0;
    bottom: 76px;
    width: 100%;
    overflow: hidden;
    border: 1px solid rgba(5, 5, 5, 0.16);
    border-radius: 8px;
    background: #f6f7f8;
    box-shadow: 0 34px 90px rgba(0, 0, 0, 0.32);
}

.desktop-chat-panel header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    background: linear-gradient(135deg, #050505, #3d4145);
    color: #fff;
}

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

.desktop-chat-panel header strong {
    font-size: 0.98rem;
}

.desktop-chat-panel header span {
    margin-top: 2px;
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.76rem;
    font-weight: 800;
}

.desktop-chat-panel header button {
    width: 34px;
    height: 34px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-weight: 900;
    cursor: pointer;
}

.desktop-chat-messages {
    height: 340px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow-y: auto;
    padding: 16px;
    background:
        linear-gradient(rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.92)),
        repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.035) 0 1px, transparent 1px 36px);
}

.desktop-chat-empty,
.desktop-chat-login {
    border: 1px solid rgba(5, 5, 5, 0.08);
    border-radius: 8px;
    padding: 14px;
    background: #fff;
    color: #3f4853;
    font-size: 0.9rem;
    line-height: 1.45;
}

.desktop-chat-login {
    display: grid;
    gap: 10px;
    margin: 14px;
}

.desktop-chat-login strong {
    color: #050505;
}

.desktop-chat-widget .bubble {
    max-width: 84%;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 0.88rem;
    line-height: 1.42;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

.desktop-chat-widget .bubble.admin {
    background: #fff;
    border: 1px solid rgba(5, 5, 5, 0.08);
}

.desktop-chat-widget .bubble.client {
    background: #050505;
    color: #fff;
}

.desktop-chat-widget .bubble.client span,
.desktop-chat-widget .bubble.client small {
    color: rgba(255, 255, 255, 0.68);
}

.desktop-chat-typing,
.admin-chat-typing {
    padding: 8px 16px;
    background: #f6f7f8;
    color: #5f6873;
    font-size: 0.8rem;
    font-weight: 800;
}

.desktop-chat-typing span,
.admin-chat-typing span {
    display: inline-block;
    margin-left: 2px;
    animation: lynxTypingDots 1s infinite steps(2, jump-none);
}

@keyframes lynxTypingDots {
    0% {
        opacity: 0.25;
    }
    100% {
        opacity: 1;
    }
}

.desktop-chat-form {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    padding: 12px;
    border-top: 1px solid rgba(5, 5, 5, 0.08);
    background: #fff;
}

.desktop-chat-form input {
    min-width: 0;
    border: 1px solid rgba(5, 5, 5, 0.14);
    border-radius: 8px;
    padding: 12px;
    font: inherit;
    outline: none;
}

.desktop-chat-form input:focus {
    border-color: #050505;
    box-shadow: 0 0 0 3px rgba(5, 5, 5, 0.08);
}

.desktop-chat-form button {
    border: 0;
    border-radius: 8px;
    padding: 0 16px;
    background: #050505;
    color: #fff;
    font-weight: 900;
    cursor: pointer;
}

.desktop-chat-form.is-sending {
    opacity: 0.72;
    pointer-events: none;
}

.admin-chat-typing {
    border-right: 1px solid var(--line);
    border-left: 1px solid var(--line);
}

.admin-chat .bubble small {
    margin-top: 6px;
}

@media (max-width: 900px) {
    .desktop-chat-widget {
        display: none;
    }
}

/* Mercado Pago checkout */
.quote-checkout-actions {
    display: grid;
    gap: 10px;
}

.payment-page {
    width: min(1200px, calc(100% - 40px));
    margin: 34px auto 80px;
}

.payment-hero {
    border-radius: 8px;
    padding: clamp(28px, 5vw, 54px);
    background:
        linear-gradient(135deg, rgba(5, 5, 5, 0.94), rgba(64, 68, 72, 0.78)),
        var(--hero-image) center/cover;
    color: #fff;
    box-shadow: 0 28px 80px rgba(5, 5, 5, 0.18);
}

.payment-hero h1 {
    max-width: 760px;
    margin: 10px 0;
    font-size: clamp(2.4rem, 5vw, 5rem);
    line-height: 0.95;
}

.payment-hero p {
    max-width: 680px;
    color: rgba(255, 255, 255, 0.78);
    font-weight: 700;
}

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

.payment-card {
    min-height: 150px;
    border: 1px solid rgba(5, 5, 5, 0.1);
    border-radius: 8px;
    padding: 22px;
    background: #fff;
    box-shadow: 0 18px 44px rgba(5, 5, 5, 0.08);
}

.payment-card span,
.payment-card small {
    display: block;
    color: #6b7280;
    font-weight: 800;
}

.payment-card strong {
    display: block;
    margin-top: 8px;
    color: #050505;
    font-size: clamp(1.6rem, 3vw, 2.8rem);
    line-height: 1;
}

.payment-card p {
    color: #4b5563;
    line-height: 1.5;
}

.payment-checkout-card {
    grid-column: 1 / -1;
    display: grid;
    gap: 12px;
}

.payment-checkout-card strong {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
}

#mp-wallet {
    min-height: 62px;
}

.direct-payment-page .payment-layout {
    align-items: start;
}

.direct-checkout-card {
    padding: clamp(18px, 3vw, 30px);
}

.direct-checkout-intro {
    display: grid;
    gap: 8px;
    padding: clamp(18px, 3vw, 28px);
    border: 1px solid rgba(5, 5, 5, 0.08);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(5, 5, 5, 0.94), rgba(48, 52, 56, 0.88)),
        var(--hero-image) center/cover;
    color: #fff;
}

.direct-checkout-intro span {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.direct-checkout-intro strong {
    margin: 0;
    color: #fff;
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    line-height: 1;
}

.direct-checkout-intro p {
    max-width: 720px;
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
}

#paymentBrick_container {
    min-height: 520px;
    padding: clamp(10px, 2vw, 18px);
    border: 1px solid rgba(5, 5, 5, 0.08);
    border-radius: 8px;
    background: #fff;
}

.direct-payment-message {
    min-height: 48px;
    display: flex;
    align-items: center;
    padding: 12px 14px;
    border: 1px solid rgba(5, 5, 5, 0.08);
    border-radius: 8px;
    background: #f8fafc;
    color: #4b5563;
    font-weight: 900;
}

.direct-payment-message[data-type="loading"] {
    border-color: rgba(59, 130, 246, 0.28);
    background: #eff6ff;
    color: #1d4ed8;
}

.direct-payment-message[data-type="success"] {
    border-color: rgba(22, 101, 52, 0.26);
    background: #dcfce7;
    color: #166534;
}

.direct-payment-message[data-type="pending"] {
    border-color: rgba(146, 64, 14, 0.24);
    background: #fef3c7;
    color: #92400e;
}

.direct-payment-message[data-type="error"] {
    border-color: rgba(185, 28, 28, 0.24);
    background: #fee2e2;
    color: #991b1b;
}

.direct-pix-box {
    display: none;
    border: 1px solid rgba(5, 5, 5, 0.1);
    border-radius: 8px;
    padding: clamp(14px, 2.4vw, 20px);
    background: linear-gradient(135deg, #ffffff, #f4f7f8);
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.08);
}

.direct-pix-box.is-visible {
    display: grid;
    gap: 16px;
}

.direct-pix-head span {
    display: block;
    margin-bottom: 4px;
    color: #047857;
    font-size: 0.72rem;
    font-weight: 1000;
    text-transform: uppercase;
}

.direct-pix-head strong {
    display: block;
    color: #050505;
    font-size: clamp(1rem, 2vw, 1.25rem);
}

.direct-pix-content {
    display: grid;
    grid-template-columns: minmax(150px, 190px) minmax(0, 1fr);
    gap: 16px;
    align-items: stretch;
}

.direct-pix-content img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: contain;
    border: 1px solid rgba(5, 5, 5, 0.1);
    border-radius: 8px;
    padding: 10px;
    background: #fff;
}

.direct-pix-copy {
    display: grid;
    gap: 8px;
}

.direct-pix-copy label {
    color: #4b5563;
    font-size: 0.78rem;
    font-weight: 1000;
    text-transform: uppercase;
}

.direct-pix-copy textarea {
    width: 100%;
    min-height: 116px;
    resize: vertical;
    border: 1px solid rgba(5, 5, 5, 0.14);
    border-radius: 8px;
    padding: 12px;
    color: #111827;
    background: #fff;
    font: 800 0.82rem/1.45 ui-monospace, SFMono-Regular, Consolas, monospace;
}

.direct-pix-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.direct-pix-copy small {
    color: #6b7280;
    font-weight: 800;
}

.product-gallery-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(74px, 1fr));
    gap: 10px;
    width: 100%;
}

.product-gallery-strip button,
.mobile-gallery-strip button {
    display: grid;
    place-items: center;
    padding: 6px;
    border: 1px solid rgba(5, 5, 5, 0.12);
    border-radius: 14px;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.product-gallery-strip button.active,
.mobile-gallery-strip button.active {
    border-color: #050505;
    box-shadow: 0 12px 28px rgba(5, 5, 5, 0.16);
}

.product-gallery-strip button:hover,
.mobile-gallery-strip button:hover {
    transform: translateY(-1px);
}

.product-gallery-strip img,
.mobile-gallery-strip img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: contain;
    border-radius: 10px;
    background: #f2f4f6;
}

@media (min-width: 981px) {
    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .product-stage [data-product-gallery-main] {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: relative !important;
        z-index: 4 !important;
        width: min(82%, 500px) !important;
        height: auto !important;
        max-height: 560px !important;
        object-fit: contain !important;
        mix-blend-mode: normal !important;
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .product-stage .product-gallery-strip {
        position: absolute !important;
        z-index: 8 !important;
        left: 22px !important;
        right: 22px !important;
        bottom: 16px !important;
        width: auto !important;
        max-width: calc(100% - 44px) !important;
        display: flex !important;
        flex-direction: row !important;
        gap: 8px !important;
        padding: 6px !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        border: 1px solid rgba(5, 5, 5, 0.1) !important;
        border-radius: 18px !important;
        background: rgba(255, 255, 255, 0.76) !important;
        box-shadow: 0 18px 45px rgba(5, 5, 5, 0.14) !important;
        backdrop-filter: blur(12px);
        scrollbar-width: thin;
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .product-stage.has-product-gallery .detail-image-badges {
        bottom: 108px !important;
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .product-stage .product-gallery-strip button {
        flex: 0 0 62px !important;
        width: 62px !important;
        min-width: 62px !important;
        height: 62px !important;
        min-height: 62px !important;
        padding: 4px !important;
        border-radius: 14px !important;
        background: #fff !important;
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .product-stage .product-gallery-strip img {
        width: 100% !important;
        height: 100% !important;
        aspect-ratio: auto !important;
        object-fit: contain !important;
        border-radius: 10px !important;
        filter: none !important;
        mix-blend-mode: normal !important;
    }
}

.mobile-body .mobile-gallery-strip {
    display: flex !important;
    gap: 8px !important;
    overflow-x: auto !important;
    padding: 0 2px 4px !important;
    scrollbar-width: thin !important;
}

.mobile-body .mobile-gallery-strip button {
    flex: 0 0 64px !important;
    width: 64px !important;
    height: 64px !important;
    min-height: 64px !important;
    border-radius: 14px !important;
}

.product-gallery-admin {
    display: grid;
    gap: 10px;
    padding: 12px;
    border: 1px solid #d7dce2;
    border-radius: 14px;
    background: #f7f8f9;
}

.product-gallery-admin > span {
    color: #5f6872;
    font-size: 0.76rem;
    font-weight: 900;
    text-transform: uppercase;
}

.product-gallery-admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
    gap: 10px;
}

.product-gallery-admin-grid article {
    display: grid;
    gap: 7px;
    padding: 8px;
    border: 1px solid #dce1e6;
    border-radius: 12px;
    background: #fff;
}

.product-gallery-admin-grid img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: contain;
    border-radius: 9px;
    background: #eef1f4;
}

.product-gallery-admin-grid strong,
.product-gallery-admin-grid small,
.product-gallery-admin-grid label {
    font-size: 0.74rem;
}

@media (max-width: 720px) {
    .direct-pix-content {
        grid-template-columns: 1fr;
    }

    .direct-pix-content img {
        max-width: 220px;
        margin: 0 auto;
    }
}

.payment-fallback,
.admin-payment-fallback {
    border: 1px solid rgba(5, 5, 5, 0.1);
    border-radius: 8px;
    padding: 12px 14px;
    background: #f8fafc;
}

.payment-fallback summary,
.admin-payment-fallback summary {
    cursor: pointer;
    font-weight: 900;
    text-transform: uppercase;
}

.admin-payment-fallback {
    margin-top: 10px;
}

.admin-payment-fallback a {
    display: block;
    margin-top: 8px;
    overflow-wrap: anywhere;
    color: #374151;
    font-weight: 800;
}

.payment-status-box form {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.payment-receipt-body {
    min-height: 100vh;
    margin: 0;
    background: #e5e7eb;
}

.payment-receipt-page {
    width: min(980px, calc(100% - 32px));
    margin: 28px auto 64px;
}

.payment-receipt-card {
    overflow: hidden;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 28px 80px rgba(5, 5, 5, 0.16);
}

.payment-receipt-card header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    padding: clamp(26px, 5vw, 48px);
    background:
        linear-gradient(135deg, rgba(5, 5, 5, 0.96), rgba(61, 65, 70, 0.9)),
        var(--hero-image) center/cover;
    color: #fff;
}

.payment-receipt-card header span,
.payment-receipt-card header p {
    display: block;
    margin: 0;
    color: rgba(255, 255, 255, 0.72);
    font-weight: 900;
    text-transform: uppercase;
}

.payment-receipt-card h1 {
    margin: 8px 0;
    color: #fff;
    font-size: clamp(2rem, 5vw, 4.2rem);
    line-height: 0.96;
}

.receipt-paid,
.receipt-pending {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 0 18px;
    border-radius: 999px;
    background: #f8fafc;
    color: #050505;
    font-size: 0.85rem;
    text-transform: uppercase;
}

.receipt-paid {
    background: #dcfce7;
    color: #166534;
}

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

.receipt-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    padding: clamp(20px, 4vw, 34px);
}

.receipt-grid div,
.receipt-customer,
.receipt-alert {
    border: 1px solid rgba(5, 5, 5, 0.1);
    border-radius: 8px;
    background: #f8fafc;
}

.receipt-grid div {
    min-height: 112px;
    padding: 16px;
}

.receipt-grid span,
.receipt-customer span,
.receipt-alert span {
    display: block;
    margin-bottom: 8px;
    color: #6b7280;
    font-size: 0.76rem;
    font-weight: 900;
    text-transform: uppercase;
}

.receipt-grid strong,
.receipt-customer strong,
.receipt-alert strong {
    display: block;
    color: #050505;
    font-size: clamp(1rem, 2vw, 1.5rem);
    line-height: 1.1;
}

.receipt-grid small,
.receipt-customer p,
.receipt-alert p,
.payment-receipt-card footer small {
    color: #6b7280;
    font-weight: 700;
}

.receipt-alert {
    margin: clamp(20px, 4vw, 34px) clamp(20px, 4vw, 34px) 0;
    padding: 18px;
}

.receipt-customer {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin: 0 clamp(20px, 4vw, 34px) clamp(20px, 4vw, 34px);
    padding: 20px;
}

.payment-receipt-card footer {
    padding: 18px clamp(20px, 4vw, 34px) 26px;
    border-top: 1px solid rgba(5, 5, 5, 0.08);
}

@media print {
    .payment-receipt-body {
        background: #fff;
    }

    .payment-receipt-page {
        width: 100%;
        margin: 0;
    }

    .payment-receipt-card {
        box-shadow: none;
    }
}

@media (max-width: 760px) {
    .payment-page {
        width: min(100% - 24px, 560px);
        margin-top: 18px;
    }

    .payment-layout {
        grid-template-columns: 1fr;
    }

    .payment-receipt-card header,
    .receipt-customer {
        flex-direction: column;
    }

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

/* Discreet desktop corner widgets */
body:not(.admin-body):not(.mobile-body):not(.tablet-body) .desktop-chat-widget {
    right: 16px;
    bottom: 78px;
    width: min(274px, calc(100vw - 28px));
}

body:not(.admin-body):not(.mobile-body):not(.tablet-body) .desktop-chat-toggle {
    min-height: 48px;
    gap: 9px;
    padding: 9px 11px;
    border-color: rgba(255, 255, 255, 0.1);
    background: rgba(5, 5, 5, 0.88);
    box-shadow: 0 12px 30px rgba(5, 5, 5, 0.2);
    backdrop-filter: blur(10px);
}

body:not(.admin-body):not(.mobile-body):not(.tablet-body) .desktop-chat-toggle:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 34px rgba(5, 5, 5, 0.24);
}

body:not(.admin-body):not(.mobile-body):not(.tablet-body) .desktop-chat-toggle strong {
    font-size: 0.82rem;
}

body:not(.admin-body):not(.mobile-body):not(.tablet-body) .desktop-chat-toggle small {
    margin-top: 1px;
    font-size: 0.68rem;
}

body:not(.admin-body):not(.mobile-body):not(.tablet-body) .desktop-chat-pulse {
    width: 9px;
    height: 9px;
    animation: none;
    box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.16);
}

body:not(.admin-body):not(.mobile-body):not(.tablet-body) .desktop-chat-toggle em[hidden],
body:not(.admin-body):not(.mobile-body):not(.tablet-body) .desktop-chat-toggle em:empty {
    display: none !important;
}

body:not(.admin-body):not(.mobile-body):not(.tablet-body) .desktop-chat-toggle em {
    min-width: 20px;
    height: 20px;
    font-size: 0.66rem;
}

body:not(.admin-body):not(.mobile-body):not(.tablet-body) .desktop-chat-panel {
    margin-bottom: 8px;
    box-shadow: 0 18px 52px rgba(5, 5, 5, 0.24);
}

body:not(.admin-body):not(.mobile-body):not(.tablet-body) .floating-quote {
    right: 16px;
    bottom: 16px;
    min-width: 172px;
    gap: 1px;
    padding: 10px 12px;
    background: rgba(5, 5, 5, 0.88);
    box-shadow: 0 12px 28px rgba(5, 5, 5, 0.2);
    backdrop-filter: blur(10px);
}

body:not(.admin-body):not(.mobile-body):not(.tablet-body) .floating-quote span {
    font-size: 0.62rem;
}

body:not(.admin-body):not(.mobile-body):not(.tablet-body) .floating-quote strong {
    font-size: 0.9rem;
}

body:not(.admin-body):not(.mobile-body):not(.tablet-body) .seller-nudge {
    right: 16px;
    bottom: 138px;
    width: min(260px, calc(100vw - 28px));
    padding: 14px;
    border-radius: 8px;
    background: rgba(5, 5, 5, 0.86);
    box-shadow: 0 14px 34px rgba(5, 5, 5, 0.18);
    backdrop-filter: blur(10px);
}

body:not(.admin-body):not(.mobile-body):not(.tablet-body) .seller-nudge span {
    margin-bottom: 7px;
    padding: 4px 7px;
    font-size: 0.58rem;
}

body:not(.admin-body):not(.mobile-body):not(.tablet-body) .seller-nudge strong {
    max-width: 210px;
    font-size: 0.9rem;
}

body:not(.admin-body):not(.mobile-body):not(.tablet-body) .seller-nudge p {
    margin: 7px 0 10px;
    font-size: 0.76rem;
}

/* Public credibility upgrade */
body:not(.admin-body):not(.mobile-body):not(.tablet-body) .client-confidence-panel {
    width: min(1200px, calc(100% - 48px));
    margin: 0 auto 54px;
    padding: clamp(20px, 3vw, 34px);
    overflow: hidden;
    border: 1px solid rgba(5, 5, 5, 0.1);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(244, 245, 246, 0.9)),
        linear-gradient(90deg, rgba(5, 5, 5, 0.035) 0 1px, transparent 1px 100%) center / 44px 44px;
    box-shadow: 0 24px 64px rgba(5, 5, 5, 0.1);
}

body:not(.admin-body):not(.mobile-body):not(.tablet-body) .client-confidence-home {
    margin-top: -10px;
}

body:not(.admin-body):not(.mobile-body):not(.tablet-body) .client-confidence-catalog {
    margin-top: 16px;
    margin-bottom: 26px;
}

body:not(.admin-body):not(.mobile-body):not(.tablet-body) .client-confidence-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.52fr);
    gap: 24px;
    align-items: end;
    padding-bottom: 22px;
    border-bottom: 1px solid rgba(5, 5, 5, 0.1);
}

body:not(.admin-body):not(.mobile-body):not(.tablet-body) .client-confidence-head h2 {
    max-width: 760px;
    margin: 8px 0 0;
    color: #050505;
    font-size: clamp(2rem, 3.4vw, 4rem);
    font-weight: 950;
    line-height: 0.98;
    letter-spacing: 0;
}

body:not(.admin-body):not(.mobile-body):not(.tablet-body) .client-confidence-head p {
    margin: 0;
    color: #515861;
    font-size: 0.98rem;
    font-weight: 650;
    line-height: 1.55;
}

body:not(.admin-body):not(.mobile-body):not(.tablet-body) .client-confidence-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 18px;
}

body:not(.admin-body):not(.mobile-body):not(.tablet-body) .client-confidence-grid article {
    display: grid;
    gap: 10px;
    min-height: 184px;
    padding: 18px;
    border: 1px solid rgba(5, 5, 5, 0.1);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 14px 34px rgba(5, 5, 5, 0.07);
}

body:not(.admin-body):not(.mobile-body):not(.tablet-body) .client-confidence-icon {
    display: inline-grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 8px;
    background: #050505;
    color: #fff;
}

body:not(.admin-body):not(.mobile-body):not(.tablet-body) .client-confidence-icon svg {
    width: 23px;
    height: 23px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

body:not(.admin-body):not(.mobile-body):not(.tablet-body) .client-confidence-grid strong {
    display: block;
    color: #050505;
    font-size: 1.03rem;
    font-weight: 950;
    line-height: 1.16;
}

body:not(.admin-body):not(.mobile-body):not(.tablet-body) .client-confidence-grid p {
    margin: 0;
    color: #5d646c;
    font-size: 0.86rem;
    font-weight: 650;
    line-height: 1.45;
}

body:not(.admin-body):not(.mobile-body):not(.tablet-body) .client-confidence-grid a {
    align-self: end;
    color: #050505;
    font-size: 0.72rem;
    font-weight: 950;
    text-decoration: none;
    text-transform: uppercase;
}

body:not(.admin-body):not(.mobile-body):not(.tablet-body) .client-confidence-grid a::after {
    content: ">";
    margin-left: 6px;
}

body:not(.admin-body):not(.mobile-body):not(.tablet-body) .client-confidence-about,
body:not(.admin-body):not(.mobile-body):not(.tablet-body) .client-confidence-contact {
    margin-top: -24px;
}

@media (min-width: 981px) and (max-width: 1120px) {
    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .client-confidence-head,
    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .client-confidence-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 980px) {
    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .client-confidence-panel {
        width: min(100% - 28px, 720px);
        margin-bottom: 24px;
        padding: 18px;
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .client-confidence-head,
    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .client-confidence-grid {
        grid-template-columns: 1fr;
    }

    body:not(.admin-body):not(.mobile-body):not(.tablet-body) .client-confidence-grid article {
        min-height: 0;
    }
}

.mobile-body .mobile-confidence-strip {
    display: grid;
    gap: 12px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
    padding: 16px;
    border: 1px solid rgba(5, 5, 5, 0.1);
    border-radius: 8px;
    background:
        linear-gradient(135deg, #fff, #f3f4f5),
        linear-gradient(90deg, rgba(5, 5, 5, 0.035) 0 1px, transparent 1px 100%) center / 34px 34px;
    box-shadow: 0 16px 40px rgba(5, 5, 5, 0.08);
}

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

.mobile-body .mobile-confidence-list article {
    position: relative;
    min-height: 118px;
    padding: 14px 12px 12px;
    border: 1px solid rgba(5, 5, 5, 0.1);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.92);
}

.mobile-body .mobile-confidence-list article::before {
    content: "";
    display: block;
    width: 22px;
    height: 4px;
    margin-bottom: 12px;
    border-radius: 999px;
    background: #050505;
}

.mobile-body .mobile-confidence-list strong {
    display: block;
    color: #050505;
    font-size: 0.82rem;
    font-weight: 950;
    line-height: 1.16;
}

.mobile-body .mobile-confidence-list span {
    display: block;
    margin-top: 7px;
    color: #5c636b;
    font-size: 0.73rem;
    font-weight: 650;
    line-height: 1.35;
}

.tablet-body .mobile-confidence-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 380px) {
    .mobile-body .mobile-confidence-list {
        grid-template-columns: 1fr;
    }
}
.product-ai-studio {
    display: grid;
    gap: 14px;
    padding: 18px;
    border: 1px solid #cfd3d8;
    border-left: 4px solid #111;
    background: #f4f5f6;
}

.product-ai-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.product-ai-head > div {
    display: grid;
    gap: 3px;
}

.product-ai-head strong {
    font-size: 18px;
}

.product-ai-head small,
.product-ai-result small {
    color: #626a73;
}

.product-ai-head a,
.product-ai-result a {
    color: #111;
    font-weight: 800;
}

.product-ai-kicker {
    color: #59616a;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.product-ai-controls {
    display: grid;
    grid-template-columns: minmax(170px, 1.25fr) minmax(140px, .75fr) auto minmax(170px, 1.1fr) minmax(140px, .8fr) auto;
    align-items: end;
    gap: 10px;
}

.product-ai-controls label {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.product-ai-controls label span {
    font-size: 12px;
    font-weight: 800;
}

.product-ai-controls .button {
    min-height: 44px;
    white-space: nowrap;
}

.product-ai-status {
    min-height: 20px;
    margin: 0;
    color: #555e67;
    font-size: 13px;
    font-weight: 700;
}

.product-ai-status[data-state="success"] {
    color: #087443;
}

.product-ai-status[data-state="error"] {
    color: #a21d28;
}

.product-ai-studio.is-busy {
    opacity: .82;
}

.product-ai-result {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-top: 12px;
    border-top: 1px solid #d8dce0;
}

.product-ai-result[hidden] {
    display: none;
}

.product-ai-result img {
    width: 112px;
    height: 112px;
    object-fit: cover;
    border: 1px solid #cfd3d8;
    background: #fff;
}

.product-ai-result > div {
    display: grid;
    gap: 5px;
}

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

@media (max-width: 680px) {
    .product-ai-head,
    .product-ai-result {
        align-items: stretch;
        flex-direction: column;
    }

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

    .product-ai-result img {
        width: 100%;
        height: auto;
        aspect-ratio: 1;
    }
}
