/* Visual specification measured against the buyer portal on 14 October 2026.
   Locarti assets and truthful commercial copy are intentionally preserved. */
:root { --content-width: 1456px; --account-accent: var(--brand-accent); }
.content-wrap { max-width: var(--content-width); padding: 48px 24px 64px; }
.sidebar nav { gap: 0; }
.sidebar nav a { min-height: 32px; padding: 5px 12px; font-weight: 400; }
.sidebar nav a.active { font-weight: 600; }
.sidebar-user { margin-left: -16px; margin-right: -16px; padding: 16px 24px; min-height: 72px; }
.sidebar-user .user-menu { flex: 0 0 auto; }
.sidebar-user .user-menu>div { left: 0; }
.sidebar-user .avatar { background: #c4cdd4; color: white; font-size: 20px; }
.sidebar-user strong { font-size: 14px; }
.main-header { height: 73px; gap: 32px; }
.searchbox { max-width: 646px; }
.searchbox input { font-size: 15px; }
.header-cart strong { font-size: 14px; font-weight: 600; }
.cart-badge:empty,.cart-badge[data-empty] { display: none; }
h1 { font-size: 24px; line-height: 1.5; }
.page-heading { display: flex; align-items: start; flex-wrap: wrap; gap: 0 20px; margin-bottom: 24px; }
.page-heading h1 { flex-basis: 100%; margin-bottom: 0; }
.page-heading.detail-heading { flex-wrap: nowrap; }
.page-heading.detail-heading h1 { flex-basis: auto; }
.page-heading>p { flex-basis: 100%; margin: 0; font-size: 14px; }
.page-heading .heading-extra { margin-left: auto; margin-top: -32px; }
.customer-context { padding: 12px; gap: 24px; min-height: 64px; }
.customer-identity strong { font-size: 14px; font-weight: 600; }
.context-order { font-size: 13px; }
.context-order:last-child { border-left: 1px dashed var(--line); padding-left: 24px; }
.context-order strong { font-size: 14px; font-weight: 600; }
.category-bar a { padding: 16px 28px; font-size: 14px; max-width: 250px; overflow: hidden; text-overflow: ellipsis; }
.category-bar button { padding: 16px; gap: 32px; }
.hero { min-height: 0; aspect-ratio: 6 / 1; border-radius: 16px; padding: 24px 36px; gap: 32px; margin-bottom: 56px; }
.hero>div:first-child { width: 210px; max-width: 24%; }
.hero h1 { font-size: 18px; font-weight: 500; line-height: 1.4; margin-top: 24px; }
.hero p { display: none; }
.hero img:not(.hero-equipment) { width: 118px; max-height: none; height: 48px; background: white; border-radius: 4px; padding: 6px; }
.hero-offer { min-width: 0; max-width: 210px; padding: 12px 16px; }
.hero-offer strong { font-size: 15px; margin: 2px 0; }
.hero-offer>span { font-size: 13px; letter-spacing: 0; }
.hero-offer a { font-size: 11px; }
.hero-equipment { width: 55%; opacity: 1; }
.hero:after { display: none; }
.section-heading { margin-bottom: 24px; }
.last-orders { margin-bottom: 32px; }
.order-card { padding: 0; border-radius: 12px; }
.order-card>div { position: relative; padding: 16px 16px 0; }
.order-card>div>strong { font-size: 14px; font-weight: 500; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.order-card>small { display: block; padding: 0 16px; font-size: 12px; }
.order-card p { border-top: 1px dashed var(--line); padding: 16px; margin: 16px 0 0; font-size: 14px; }
.order-card p strong { font-weight: 600; }
.status { line-height: 18px; font-size: 12px; padding: 2px 7px; }
.status.pending,.status.open { background: #fff0d3; color: #895000; }
.status.processing { background: #fff7c2; color: #756400; }
.status.paid,.status.delivered { background: #d5efd8; color: #1a6135; }
.status.canceled { background: #ffdadd; color: #9c2636; }
.carousel-controls { min-height: 20px; gap: 8px; margin: 12px 0 24px; align-items: center; }
.carousel-dots { display: flex; align-items: center; gap: 8px; }
.carousel-controls .carousel-dot { background: #c4cdd4; border: 0; border-radius: 8px; width: 6px; height: 6px; padding: 0; min-height: 0; }
.carousel-controls .carousel-dot[aria-current=true] { width: 14px; background: var(--primary); }
.carousel-controls .carousel-arrow { width: 24px; height: 24px; border: 0; padding: 0; background: transparent; }
.carousel-track>.order-card { flex-basis: calc((100% - 32px) / 3); }
.carousel-track>.product-card { flex-basis: calc((100% - 64px) / 5); min-width: 0; display: flex!important; }
.product-card { border-radius: 12px; }
.card-image { height: auto; aspect-ratio: 1 / 1; padding: 8px 16px 0; }
.card-image img { background: #f7f8f9; border-radius: 12px; }
.card-brand { top: 12px; left: 8px; font-size: 11px; }
.share-btn,.product-card .favorite-btn { width: 36px; height: 36px; right: 8px; background: #737373; color: white; }
.share-btn { right: 48px; }
.card-body { padding: 16px; gap: 0; }
.product-name { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 16px; line-height: 24px; min-height: 48px; }
.product-meta { display: flex; gap: 5px; white-space: nowrap; min-width: 0; font-size: 12px; color: #657787; margin: 0; }
.product-meta .meta-part { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.product-meta .meta-part:first-child { flex: 1; }
.product-meta .meta-part:last-child { flex: 1.5; }
.card-body .price { margin: 24px 0 32px; font-size: 16px; font-weight: 600; line-height: 24px; }
.quote-price { font-size: 14px!important; }
.quantity-form { margin-top: auto; }
.quantity-control { height: 42px; border-color: #e5e9ed; border-radius: 8px; }
.quantity-control button { width: 34px; color: var(--brand-primary); font-size: 18px; }
.quantity-control input { font-size: 15px; color: #526675; }
.quantity-control button:disabled { opacity: .35; }
.unit-select { height: 42px; margin-top: 12px; border-color: #e5e9ed; border-radius: 8px; font-size: 15px; background: #f6f7f8; color: #526675; opacity: 1; }
.card-body .quantity-rule { margin-top: auto; margin-bottom: 12px; }
.card-body>.button { min-height: 42px; }
.benefits { margin: 20px 0 36px; padding: 24px 16px; border-radius: 16px; }
.benefits strong { font-size: 16px; font-weight: 600; }
.benefits small { font-size: 14px; }
.catalog-heading { padding-bottom: 0; border: 0; margin-bottom: 24px; }
.catalog-controls .icon-btn { background: transparent; color: #697984; opacity: .5; }
.catalog-controls .icon-btn.selected { opacity: 1; color: var(--primary); }
.filter-count { min-width: 22px; text-align: center; background: var(--primary); color: white; padding: 1px 5px; border-radius: 5px; font-size: 11px; }
.mobile-catalog-options { display: none; position: relative; }
.mobile-catalog-options summary { list-style: none; display: grid; place-items: center; width: 32px; height: 32px; }
.mobile-catalog-options-panel { position: absolute; right: 0; top: 40px; z-index: 30; width: 220px; padding: 16px; background: white; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 8px 24px #0002; }
.mobile-catalog-options-panel>div { display: flex; margin: 12px 0; }
.table-tabs { min-height: 48px; padding: 0 16px; gap: 40px; scrollbar-width: thin; }
.table-tabs a { font-size: 14px; }
.table-tabs span { font-size: 12px; font-weight: 700; background: #e8edf0; }
.table-tabs a.active span { background: var(--primary); color: white; }
.table-tabs a[href*='status=paid'] span,.table-tabs a[href*='status=delivered'] span { background: #d5efd8; color: #1a6135; }
.table-tabs a[href*='status=pending'] span { background: #fff0d3; color: #895000; }
.table-tabs a[href*='status=canceled'] span { background: #ffdadd; color: #9c2636; }
.table-toolbar { padding: 12px 16px 16px; gap: 16px; }
.table-toolbar .table-search { flex: 1 1 320px; max-width: 460px; height: 42px; padding: 0 12px; }
.table-search>.icon { display: none; }
.table-toolbar .toolbar-actions { margin-left: auto; gap: 12px; min-height: 48px; }
.toolbar-actions .text-button { font-size: 13px; font-weight: 600; color: var(--ink); }
.toolbar-actions .icon { width: 20px; height: 20px; }
.toolbar-actions>[data-reload-page] { margin-left: auto; }
.data-table { font-size: 14px; }
.data-table th { font-size: 14px; font-weight: 500; height: 56px; padding: 16px 10px; background: #f4f6f8; }
.data-table td { height: 76px; padding: 16px 10px; border-bottom: 1px dashed var(--line); }
.data-table .table-code { font-weight: 600; color: var(--primary); }
/* Rows grow with the page: an inner scroll box hid orders that fit on the screen. */
.data-panel>.table-scroll { overflow-x: auto; }
.data-table th:last-child,.data-table td:last-child { width: 60px; text-align: center; }
.data-table.compact td { height: 42px; padding: 8px 10px; }
.data-table.spacious td { height: 100px; padding: 28px 10px; }
.table-pagination { padding: 16px 20px; font-size: 13px; gap: 24px; }
.table-pagination select { border: 0; padding: 4px; background: transparent; }
.table-pagination .pagination { margin: 0; }
.columns-panel { display: flex; flex-direction: column; max-width: 240px; border-radius: 8px; margin: 0 16px 12px; box-shadow: 0 8px 28px #0002; border: 1px solid var(--line); padding: 16px; background: white; gap: 12px; }
.density-panel { display: flex; gap: 6px; padding: 8px 16px 16px; flex-wrap: wrap; }
.density-panel button[aria-pressed=true] { background: var(--brand-soft-hover); }
.table-popover { border-radius: 8px; border: 1px solid var(--line); box-shadow: 0 8px 28px #0002; padding: 8px; }
.footer { padding: 24px; font-size: 16px; gap: 28px; border-top: 1px solid var(--line); }
.footer strong { font-size: 18px; font-weight: 600; }
.footer .payment-brands { max-width: 220px; gap: 8px; }
.payment-brands span { min-width: 44px; height: 26px; display: grid; place-items: center; font-size: 10px; background: #f4f6f8; border: 0; }
.payment-brands .brand-visa { background: #1434cb; color: white; font-style: italic; font-size: 14px; }
.payment-brands .brand-mastercard { color: #111; background: #f1f3f5; }
.payment-brands .brand-pix { background: #e7f4f2; color: #177568; }
.footer-legal { padding: 16px; font-size: 13px; }
.footer-legal p { font-size: 12px; }
.floating-chat { background: #20bf36; width: 48px; height: 48px; bottom: 24px; right: 16px; box-shadow: none; }
.mobile-bottom-nav { display: none; }
.auth-page { display: grid; grid-template-columns: minmax(0,1fr) 480px; background: #f9fafb; }
.auth-art { background: #f9fafb; padding: 0; min-height: 100vh; }
.auth-art>* { display: none; }
.auth-main { padding: 40px 32px; min-height: 100vh; background: white; }
.auth-box { width: 100%; max-width: 416px; }
.auth-mobile-logo { display: block; width: 210px; height: 100px; object-fit: contain; margin: 0 auto 48px; }
.auth-box.login-box>h1,.auth-box.login-box>.muted { position: absolute; clip: rect(0,0,0,0); width: 1px; height: 1px; overflow: hidden; }
.auth-box .field { position: relative; margin-bottom: 24px; }
.auth-box .field>label { position: absolute; top: -9px; left: 10px; background: white; padding: 0 5px; font-size: 12px; font-weight: 400; margin: 0; z-index: 1; }
.auth-box .field>input { height: 56px; padding: 12px 48px 12px 14px; border-color: #e5e9ed; font-size: 16px; }
.auth-box .field.checkbox-field>label { position: static; background: transparent; font-size: 13px; }
.auth-box [data-password] { position: absolute; top: 9px; right: 8px; width: 38px; height: 38px; padding: 8px; }
.auth-box .forgot { margin: 0 0 26px; font-size: 14px; }
.auth-box .button { height: 48px; margin: 0; font-size: 14px; }
.auth-switch { font-size: 16px; margin: 24px 0; }
.auth-switch a { text-decoration: none; font-weight: 600; }
.public-link { display: table; margin: 0 auto; border: 1px solid #94a6ab; border-radius: 8px; padding: 5px 8px; font-size: 12px; text-decoration: none; color: var(--ink); font-weight: 600; }
.auth-signature { font-size: 13px; color: #657787; display: block; text-align: center; margin-top: 32px; }
.selection-page { padding: 0 24px 48px; }
.selection-header { height: 72px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; margin: 0 -24px; padding: 8px 28px; }
.selection-header img { max-height: 52px; object-fit: contain; }
.selection-card { max-width: 600px; border: 0; padding: 0; margin: 36px auto; text-align: center; }
.selection-card>.selection-symbol { display: grid; place-items: center; margin: 0 auto 24px; width: 112px; height: 112px; border-radius: 50%; color: #bcc8d0; background: white; box-shadow: 0 16px 40px #6373810d; }
.selection-symbol svg { width: 48px; height: 48px; }
.selection-card h1 { font-size: 20px; color: #637381; margin-bottom: 4px; }
.selection-card>.muted { font-size: 14px; }
.selection-options-panel { width: min(420px,100%); margin: 24px auto; padding: 24px; border: 1px solid #f0f2f4; border-radius: 18px; box-shadow: 0 12px 32px #6373810a; text-align: left; }
.selection-search { margin: 0 0 16px; position: relative; height: 56px; }
.selection-search input { padding: 12px 14px 12px 50px; border-color: #e1e6eb; }
.selection-search button { position: absolute; top: 8px; left: 8px; border: 0; width: 38px; height: 38px; }
.client-options { gap: 8px; margin-bottom: 0; }
.client-option { padding: 16px 24px; border-radius: 8px; gap: 16px; align-items: center; }
.client-option strong { font-size: 14px; font-weight: 500; }
.client-option p { font-size: 14px; margin: 0; }
.client-option small { display: none; }
.selection-card .selection-continue { display: flex; width: min(420px,100%); margin: 0 auto; height: 48px; }
.selection-card .logout-form { margin-top: 12px; }
.detail-heading { display: flex; align-items: center; gap: 16px; margin: 16px 0 40px; }
.detail-heading h1 { margin: 0; }
.order-status-entry { display: flex; gap: 12px; align-items: start; font-size: 12px; }
.order-status-entry:before { content: ''; width: 10px; height: 10px; border-radius: 50%; background: #e3a500; margin-top: 5px; flex: none; box-shadow: 0 0 0 3px #fff3ce; }
.order-status-entry.paid:before,.order-status-entry.delivered:before { background: #237447; box-shadow: 0 0 0 3px #d5efd8; }
.order-status-entry.canceled:before { background: #bc4050; box-shadow: 0 0 0 3px #ffdadd; }
.order-status-entry p { margin: 4px 0 0; color: var(--muted); }
.product-detail { grid-template-columns: minmax(0,5fr) minmax(0,8.5fr); background: transparent; padding: 0; gap: 64px; border: 0; }
.product-gallery-column { min-width: 0; }
.product-detail-actions { display: flex; gap: 16px; align-items: center; margin-bottom: 24px; }
.product-detail-actions .favorite-btn { position: static; background: transparent; color: var(--primary); width: auto; height: auto; display: flex; gap: 8px; box-shadow: none; font-weight: 600; }
.product-detail-actions form { margin: 0; }
.product-gallery { background: white; border-radius: 16px; padding: 16px; position: relative; aspect-ratio: 1; }
.product-gallery img { height: 100%; max-height: none; }
.gallery-position { position: absolute; right: 16px; bottom: 16px; background: #1c252e66; color: white; border-radius: 8px; padding: 6px 12px; font-size: 12px; }
.gallery-thumbs { padding: 0; margin-top: 24px; background: transparent; border: 0; justify-content: center; }
.gallery-thumb { border: 1px solid #d4dce0; }
.gallery-thumb.selected { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary); }
.product-info>.brand { display: table; color: white; background: var(--primary); padding: 2px 7px; border-radius: 4px; font-size: 12px; font-weight: 600; }
.product-info h2 { font-size: 20px; margin: 14px 0 8px; }
.product-info .detail-price { font-size: 20px; margin: 16px 0 24px; }
.product-info .product-meta { font-size: 14px; flex-wrap: wrap; white-space: normal; color: #526675; }
.product-info .quantity-form { padding: 24px; background: white; border: 1px solid var(--line); border-radius: 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 24px; }
.product-info .unit-select { margin: 0; }
.product-info .quantity-control { margin: 0; }
.related-selection-grid { display: flex; gap: 16px; overflow-x: auto; padding-bottom: 8px; }
.related-selection-grid>.related-selection { flex: 1 0 185px; max-width: 25%; flex-direction: column; align-items: stretch; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: white; position: relative; gap: 12px; }
.related-selection-image { width: 100%; height: 150px; object-fit: contain; }
.related-selection-name { font-size: 14px; font-weight: 600; min-height: 42px; }
.related-selection-grid input[type=checkbox] { position: absolute; top: 12px; right: 12px; accent-color: var(--primary); width: 20px; height: 20px; }
.related-selection-grid input[type=number] { width: 100%; padding: 8px; border: 1px solid var(--line); border-radius: 8px; text-align: center; }
.related-total { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 24px; margin: 24px 0 40px; }
.related-total small { display: block; color: var(--muted); }
.related-total strong { font-size: 20px; }
.product-specifications details { border-top: 1px solid var(--line); }
.product-specifications summary { padding: 20px 0; font-size: 16px; font-weight: 600; }
.content-wrap:has(.account-module-header) { max-width: 1144px; padding: 40px 24px 64px; background: #f6f7f9; }
.account-module-header { border: 0; padding: 0 0 12px; border-radius: 0; background: transparent; gap: 12px; }
.account-module-brand { display: flex; gap: 8px; align-items: center; }
.account-module-brand .icon { width: 34px; height: 34px; padding: 7px; color: var(--primary); background: var(--brand-soft); border-radius: 9px; }
.account-module-brand h2 { font-size: 14px; line-height: 18px; }
.account-module-brand small { font-size: 12px; color: var(--muted); }
.account-client { margin-left: auto; padding: 8px 12px; border: 1px solid var(--line); border-radius: 12px; font-size: 13px; background: white; }
.account-module-header .account-cashback { margin: 0; display: flex; align-items: center; gap: 8px; border-radius: 20px; padding: 8px 14px; font-size: 13px; color: var(--brand-accent-foreground); background: var(--account-accent); }
.account-module-nav { border: 0; padding: 0 0 16px; background: transparent; border-radius: 0; margin-bottom: 24px; border-bottom: 1px solid var(--line); gap: 4px; }
.account-module-nav a { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #52616b; padding: 8px 12px; border-radius: 20px; }
.account-module-nav .icon { width: 16px; height: 16px; }
.account-module-nav a[aria-current=page] { background: var(--brand-accent-soft); color: var(--brand-accent-ink); }
.metric-cards { gap: 12px; }
.metric-cards .panel { border: 0; box-shadow: 0 2px 2px #63738114; border-radius: 20px; padding: 20px; display: flex; align-items: center; gap: 12px; }
.metric-cards .metric-icon { flex: none; width: 40px; height: 40px; padding: 10px; border-radius: 12px; background: var(--brand-accent-soft); color: var(--brand-accent-ink); }
.metric-cards strong { font-size: 24px; font-weight: 500; line-height: 30px; margin: 0; }
.account-module-tabs { display: flex; gap: 4px; margin: 24px 0; }
.account-module-tabs a { padding: 8px 14px; border-radius: 12px; color: #52616b; background: #f0f3f9; }
.account-module-tabs a.active { background: white; box-shadow: 0 2px 4px #63738120; }
.account-filter-form { display: flex; gap: 12px; align-items: flex-end; margin: 24px 0; flex-wrap: wrap; }
.account-filter-form label { color: #637381; font-size: 14px; }
.account-filter-form input,.account-filter-form select { display: block; background: white; border: 1px solid #e3e8ee; border-radius: 12px; padding: 9px 12px; margin-top: 6px; }
.account-table { border: 0; border-radius: 20px; box-shadow: 0 2px 2px #63738114; }
.account-table .data-table td,.account-table .data-table th { padding: 16px; }
.faq-controls { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 56px; }
.faq-controls .searchbox { max-width: none; width: 100%; margin: 0; height: 56px; }
.faq-controls select { border: 1px solid #e2e7ec; border-radius: 8px; padding: 14px; height: 56px; background: white; color: var(--muted); width: 100%; }
.faq-entry { border: 0; border-bottom: 1px solid #e2e7ec; border-radius: 0; background: transparent; margin-bottom: 0; }
.faq-entry summary { min-height: 80px; align-items: center; justify-content: flex-start; gap: 8px; padding: 24px 32px; font-size: 14px; }
.faq-entry .faq-category { font-size: 12px; font-weight: 600; background: var(--brand-soft); color: var(--brand-primary); border-radius: 4px; padding: 2px 6px; }
.faq-entry summary>span:first-child { font-size: 14px; color: var(--ink); }
.faq-entry .faq-chevron { margin-left: auto; width: 16px; height: 16px; transform: rotate(90deg); transition: transform .2s; }
.faq-entry[open] .faq-chevron { transform: rotate(-90deg); }
.faq-entry>p { padding: 0 32px 24px; font-size: 14px; }
.profile-editor { padding: 24px; border-radius: 16px; border: 0; box-shadow: 0 4px 12px #63738114; }
.profile-tabs { padding: 0; border: 0; margin-bottom: 24px; }
.profile-tabs button { padding: 0 0 12px; border-radius: 0; font-weight: 500; color: var(--muted); }
.profile-tabs button[aria-pressed=true] { color: var(--ink); border-bottom: 2px solid var(--primary); }
.profile-layout { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.8fr); gap: 24px; align-items: start; }
.profile-photo-panel { border: 1px solid var(--line); border-radius: 16px; padding: 24px; text-align: center; }
.profile-photo-picker { width: 144px; height: 144px; border-radius: 50%; border: 1px dashed #cdd7df; padding: 8px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; background: #f5f7f9; cursor: pointer; margin: 0 auto 20px; color: #526675; font-size: 12px; }
.profile-photo-picker .icon { width: 32px; height: 32px; }
.profile-photo-picker img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.profile-photo-panel:focus-within .profile-photo-picker { outline: 3px solid var(--brand-focus); outline-offset: 3px; }
.profile-photo-panel p { font-size: 12px; color: var(--muted); margin: 0; }
.profile-fields .field { position: relative; margin-bottom: 16px; }
.profile-fields .field>label { position: absolute; top: -9px; left: 10px; font-size: 12px; background: white; padding: 0 5px; font-weight: 400; z-index: 1; }
.profile-fields .field>input { height: 56px; font-size: 15px; border-color: #e3e8ec; }
.profile-fields .field>input[readonly] { background: #f4f6f8; }
.profile-alert { display: flex; gap: 12px; align-items: center; margin: 24px 0 36px; font-size: 14px; }
.profile-alert input { accent-color: var(--primary); width: 18px; height: 18px; }
.profile-alert input[type=checkbox] { appearance: none; width: 34px; height: 20px; border-radius: 20px; position: relative; background: #b9c3ca; margin: 0; flex: none; cursor: pointer; }
.profile-alert input[type=checkbox]:before { content: ''; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: white; transition: transform .15s; }
.profile-alert input[type=checkbox]:checked { background: var(--primary); }
.profile-alert input[type=checkbox]:checked:before { transform: translateX(14px); }
.profile-password-form { max-width: 660px; margin-left: auto; }
.profile-password-form .muted { font-size: 12px; padding-top: 8px; }
.ai-dialog { width: min(900px,calc(100% - 32px)); padding: 0; }
.ai-dialog>.section-heading { padding: 20px 24px; margin: 0; border-bottom: 1px solid var(--line); }
.ai-dialog>.section-heading h2 { font-size: 14px; }
.ai-dialog>p { padding: 12px 24px 0; font-size: 14px; color: var(--muted); margin-bottom: 12px; }
.ai-dialog .ai-input-panel { padding: 0 24px 24px; }
.ai-dialog .ai-input-panel textarea { min-height: 190px; border: 0; background: white; }
.ai-compose { border: 1px solid #c9d1d9; border-radius: 14px; overflow: hidden; background: white; transition: border-color var(--motion-fast), box-shadow var(--motion-fast); }
.ai-compose:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px #25226014; }
.ai-compose-heading { display: flex; justify-content: space-between; gap: 12px; padding: 14px 18px 0; font-size: 13px; color: var(--muted); }
.ai-compose-heading label { font-weight: 600; color: var(--ink); }
.ai-compose textarea { display: block; border: 0!important; border-radius: 0!important; outline: none; padding: 8px 18px 16px; font-size: 15px; line-height: 1.7; }
.ai-compose .ai-input-actions { margin: 0; padding: 10px 12px; gap: 10px; border-top: 1px solid var(--line); background: #fafbfc; }
/* The file input stays focusable; its label is the visible button and shows the keyboard focus. */
.ai-input-actions .ai-attach { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 6px 14px; border: 1px solid var(--brand-line); border-radius: 999px; background: white; color: var(--primary); font-size: 13px; font-weight: 600; cursor: pointer; }
.ai-input-actions .ai-attach:hover { background: var(--brand-soft); }
.ai-input-actions input[type=file]:focus-visible+.ai-attach { outline: 3px solid var(--brand-focus); outline-offset: 2px; }
.ai-file-name:not(:empty) { display: inline-flex; align-items: center; min-height: 28px; padding: 4px 12px; border-radius: 999px; background: var(--brand-soft); color: var(--primary); font-size: 12px; font-weight: 600; overflow-wrap: anywhere; }
.ai-formats { margin-left: auto; font-size: 12px; color: var(--muted); }
.ai-form-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px; margin-top: 20px; }
.ai-form-footer p { margin: 0; font-size: 13px; color: var(--muted); }
.ai-form-footer a { display: inline-flex; align-items: center; gap: 6px; margin-left: 4px; font-weight: 600; }
.ai-form-footer .button { min-height: 46px; padding: 12px 24px; font-size: 14px; }
.ai-input-actions .icon, .ai-form-footer .icon { width: 18px; height: 18px; }
.checkout-commerce-layout { grid-template-columns: minmax(0,3fr) minmax(300px,1fr); }
.checkout-main,.checkout-options { min-width: 0; }
.checkout-options .panel { padding: 24px; border-radius: 16px; }
.checkout-options h2,.cart-notes label { font-size: 12px; text-transform: uppercase; color: #637381; }
.checkout-options h3 { font-size: 13px; margin-top: 24px; }
.checkout-options .summary { position: static; }
.checkout-options .checkout-address { max-width: none; }
.checkout-address-display { display: grid; gap: 4px; padding: 16px 12px; border: 1px solid var(--line); border-radius: 8px; font-size: 12px; }
.checkout-address-display small,.checkout-address-display span { color: var(--muted); font-size: 12px; }
.address-editor { padding-top: 12px; font-size: 12px; }
.address-editor summary { color: var(--primary); font-weight: 600; }
.address-editor form { margin-top: 16px; }
.checkout-address-fields { grid-template-columns: 1fr; }
.checkout-options .field label { font-size: 12px; }
.checkout-options .field { margin-bottom: 12px; }
.checkout-options .field input,.checkout-options .field select { font-size: 14px; }
.checkout-options .checkbox-field { font-size: 12px; }
.cart-items> .section-heading h2 { font-size: 12px; text-transform: uppercase; color: var(--muted); }
.cart-item { padding: 24px 0; }
.cart-item-info strong { font-size: 16px; font-weight: 600; }
.cart-item-info small { font-size: 14px; margin: 8px 0; }
.cart-notes .field { margin: 0; }
.cart-notes textarea { margin-top: 20px; }
.checkout-options .term-choice { font-size: 13px; }
.checkout-options .summary dl { font-size: 14px; }
.checkout-options .summary .total { font-size: 16px; }
.checkout-empty { max-width: 730px; margin: 40px auto 80px; padding: 56px 24px; min-height: 320px; border-radius: 16px; }
.checkout-empty h2 { font-size: 18px; }
.checkout-empty p { font-size: 14px; color: var(--ink); }
@media(min-width:1400px) { .order-list-table th:first-child { width: 36%; } .order-list-table th[data-col=date] { width: 20%; } .finance-table th:first-child { width: 32%; } }
@media(max-width:1390px) {
  .content-wrap { padding: 40px 24px 56px; }
  .hero { gap: 16px; padding: 20px 24px; }
  .hero>div:first-child { max-width: 24%; }
  .hero h1 { font-size: 15px; margin-top: 16px; }
  .hero-offer { max-width: 185px; padding: 10px; }
  .hero-offer strong { font-size: 13px; }
  .context-order { display: flex; }
  .order-card .status { font-size: 10px; }
}
@media(max-width:1100px) {
  .sidebar { width: 280px; }
  .sidebar-user { padding: 16px 20px; }
  .content-wrap { padding: 32px 24px 48px; }
  .hero { aspect-ratio: 6 / 1; }
  .carousel-track>.product-card { flex-basis: calc((100% - 48px) / 4); }
  .product-detail { gap: 32px; }
  .footer { font-size: 14px; }
}
@media(max-width:800px) {
  .checkout-commerce-layout { grid-template-columns: minmax(0,1fr); }
  .checkout-address-fields { grid-template-columns: 1fr 1fr; }
  .main-header { height: var(--header); }
  .content-wrap { padding: 28px 20px 40px; }
  .hero { aspect-ratio: auto; min-height: 170px; }
  .hero>div:first-child { max-width: 32%; width: auto; }
  .hero-equipment { display: block; width: 45%; }
  .hero-offer { margin-left: 0; max-width: 150px; }
  .hero h1 { font-size: 14px; }
  .carousel-track>.product-card { flex-basis: calc((100% - 32px) / 3); }
  .detail-heading { margin: 0 0 24px; }
  .product-detail { grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 24px; }
  .product-info .quantity-form { grid-template-columns: 1fr; padding: 16px; }
  .auth-page { grid-template-columns: minmax(0,1fr) 440px; }
  .auth-main { padding: 32px 24px; }
  .table-tabs { gap: 24px; }
  .table-pagination { gap: 12px; font-size: 12px; }
  .account-module-header .account-client { max-width: 200px; }
  .content-wrap:has(.account-module-header) { padding: 28px 20px 40px; }
}
@media(max-width:540px) {
  .checkout-address-fields { grid-template-columns: 1fr; }
  .checkout-options .panel { padding: 20px 16px; }
  .checkout-empty { padding: 40px 16px; margin: 12px 0 32px; }
  :root { --top: 36px; --header: 106px; }
  .sidebar nav a { min-height: 42px; }
  .content-wrap { padding: 24px 16px 36px; }
  .main-header { padding: 10px 16px; gap: 8px; }
  .main { padding-bottom: 84px; }
  .topbar>span { font-size: 8px; }
  .searchbox input { font-size: 14px; }
  .customer-context { flex-wrap: nowrap; gap: 12px; padding: 10px 12px; }
  .customer-identity { width: auto; }
  .customer-identity>div,.customer-identity>span:last-child { display: none; }
  .customer-context .avatar { width: 36px; height: 36px; }
  .context-order { display: flex!important; flex-direction: column; align-items: flex-start; gap: 0; min-width: 0; }
  .context-order small { font-size: 10px; }
  .context-order strong { font-size: 11px; }
  .context-order:last-child { padding-left: 8px; }
  .category-bar { min-height: 48px; }
  .category-bar button { padding: 12px; gap: 16px; flex: 1 0 100%; justify-content: center; }
  .category-bar a { display: none; }
  .hero { padding: 14px 16px; min-height: 130px; aspect-ratio: auto; gap: 10px; border-radius: 10px; margin-bottom: 36px; }
  .hero>div:first-child { max-width: 50%; flex: 0 1 48%; }
  .hero h1 { font-size: 13px; margin: 10px 0 0; }
  .hero img:not(.hero-equipment) { width: 90px; height: 30px; }
  .hero-equipment { display: block; width: 50%; }
  .hero-offer { display: none; }
  .section-heading h2,.catalog-heading h2 { font-size: 17px; }
  .section-heading { margin-bottom: 20px; }
  .order-card>div { padding: 14px 12px 0; }
  .order-card>small { padding: 0 12px; font-size: 11px; }
  .order-card p { padding: 12px; font-size: 12px; }
  .carousel-track>.order-card { flex: 0 0 100%; min-width: 0; }
  .carousel-track>.product-card { flex: 0 0 calc((100% - 10px) / 2); min-width: 0; }
  .carousel-track { gap: 10px; }
  .card-image { padding: 8px 10px 0; height: auto; aspect-ratio: 1; }
  .card-body { padding: 12px 10px; gap: 0; }
  .product-name { font-size: 13px; line-height: 19px; min-height: 38px; }
  .product-meta { font-size: 10px; gap: 3px; }
  .card-body .price { font-size: 14px; line-height: 22px; margin: 22px 0 28px; }
  .quantity-control { height: 36px; }
  .quantity-control input { font-size: 13px; }
  .quantity-control button { width: 28px; font-size: 16px; }
  .unit-select { height: 36px; font-size: 12px; margin-top: 10px; }
  .share-btn,.product-card .favorite-btn { width: 28px; height: 28px; top: 8px; right: 6px; }
  .share-btn { right: 38px; }
  .card-brand { top: 10px; left: 6px; font-size: 9px; }
  .benefits { grid-template-columns: 1fr; margin: 16px 0 36px; padding: 24px 16px; gap: 24px; }
  .benefits strong { font-size: 14px; }
  .benefits small { font-size: 12px; }
  .catalog-heading { gap: 14px; }
  .catalog-heading>div:first-child { width: auto; }
  .catalog-controls { width: auto; flex: 1; justify-content: flex-end; flex-wrap: wrap; }
  .catalog-controls [data-view],.catalog-controls form { display: none; }
  .mobile-catalog-options { display: block; }
  .mobile-catalog-options .icon-btn { display: inline-flex; }
  .mobile-catalog-options form { display: block; }
  .mobile-catalog-options label { display: block; margin-bottom: 8px; }
  .mobile-catalog-options select { border: 1px solid var(--line); border-radius: 6px; padding: 8px; width: 100%; max-width: none; }
  .catalog-controls [data-filter-toggle] { font-size: 12px; }
  .footer { grid-template-columns: 1fr; gap: 24px; padding: 28px 24px; font-size: 13px; }
  .footer strong { font-size: 14px; margin-bottom: 12px; }
  .footer .payment-brands { max-width: none; }
  .footer-legal { font-size: 11px; }
  .footer-legal a { display: block; margin: 2px; }
  .floating-chat { bottom: 98px; width: 44px; height: 44px; }
  .toast { bottom: 98px; }
  .mobile-bottom-nav { display: flex; position: fixed; bottom: max(16px,env(safe-area-inset-bottom)); left: 12px; right: 12px; z-index: 46; justify-content: space-around; border: 1px solid #e1e7eb; border-radius: 22px; background: #fffffff2; backdrop-filter: blur(12px); padding: 8px 4px; box-shadow: 0 3px 24px #6373812b; }
  .mobile-bottom-nav>a,.mobile-bottom-nav>button { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 10px; padding: 4px 12px; border: 0; border-radius: 16px; background: transparent; color: #526675; }
  .mobile-bottom-nav .icon { width: 18px; height: 18px; }
  .mobile-bottom-nav .active { background: var(--brand-soft); color: var(--primary); }
  .auth-page { display: block; }
  .auth-art { display: none; }
  .auth-main { padding: 40px 24px; }
  .auth-mobile-logo { margin-bottom: 40px; width: 180px; height: 80px; }
  .auth-switch { font-size: 14px; }
  .selection-page { padding: 0 16px 24px; }
  .selection-header { padding: 8px 16px; margin: 0 -16px; }
  .selection-header img { width: 140px; }
  .selection-card { margin-top: 28px; }
  .selection-card h1 { font-size: 18px; }
  .selection-card>.selection-symbol { width: 80px; height: 80px; }
  .selection-options-panel { padding: 16px; }
  .client-option { padding: 16px 12px; }
  .client-option strong,.client-option p { font-size: 13px; }
  .table-toolbar { padding: 12px; }
  .toolbar-actions { gap: 4px!important; }
  .toolbar-actions .text-button { font-size: 11px; padding: 5px; }
  .toolbar-actions .icon { width: 16px; height: 16px; }
  .data-table { font-size: 13px; }
  .data-table td { height: 64px; }
  .table-pagination { padding: 12px; }
  .detail-heading h1 { font-size: 20px; overflow-wrap: anywhere; }
  .product-detail { grid-template-columns: 1fr; gap: 24px; }
  .product-info h2 { font-size: 20px; }
  .product-info .quantity-form { grid-template-columns: 1fr 1fr; gap: 8px; padding: 12px; }
  .product-detail-actions { margin-bottom: 16px; }
  .gallery-thumbs { margin-top: 16px; }
  .related-selection-grid>.related-selection { max-width: none; flex: 0 0 170px; }
  .related-total { justify-content: space-between; gap: 12px; }
  .account-module-header { gap: 10px; }
  .account-module-header .account-client { max-width: none; width: 100%; margin: 0; order: 2; }
  .account-module-header .account-cashback { margin-left: auto; font-size: 11px; }
  .account-module-nav { gap: 4px; scrollbar-width: thin; }
  .account-module-nav a { font-size: 12px; padding: 8px; }
  .metric-cards .panel { padding: 16px; }
  .account-filter-form label { flex: 1 1 120px; }
  .account-filter-form input,.account-filter-form select { width: 100%; min-width: 0; }
  .faq-controls { grid-template-columns: 1fr; gap: 12px; margin-bottom: 28px; }
  .profile-layout { grid-template-columns: 1fr; }
  .profile-editor { padding: 20px 16px; }
  .profile-tabs { gap: 20px; }
  .profile-tabs button { font-size: 12px; }
  .faq-entry summary { flex-wrap: wrap; padding: 20px 12px; min-height: 80px; }
  .faq-entry summary>span:first-child { flex: 1 1 65%; }
  .faq-entry>p { padding: 0 12px 20px; }
  .ai-dialog { padding: 0; }
  .ai-dialog .ai-input-panel { padding: 0 16px 16px; }
  .ai-dialog>.section-heading { padding: 16px; }
  .ai-dialog>p { padding: 12px 16px 0; font-size: 13px; }
  .ai-input-actions .ai-attach { font-size: 12px; }
  .ai-formats { flex-basis: 100%; margin-left: 0; }
}

/* Usability review, 23 October 2026: complete card metadata, explicit
   selection states, readable money and the selected customer on phones. */
.product-card .product-meta { flex-direction: column; gap: 0; }
.product-card .product-meta .meta-part { flex: none; padding: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.product-card .product-meta .meta-sep { display: none; }
.list-view .product-card .product-meta { flex-direction: row; gap: 6px; }
.list-view .product-card .product-meta .meta-part { flex: 0 1 auto; }
.list-view .product-card .product-meta .meta-sep { display: inline; padding: 0; }
.user-menu>summary { position: relative; display: inline-flex; cursor: pointer; }
.notification-dot { position: absolute; top: -2px; right: -2px; width: 12px; height: 12px; border-radius: 50%; background: #d43d51; border: 2px solid white; }
.data-table td.money { white-space: nowrap; }
#checkout-condition-error:not([hidden]) { background: #fff7e6; border: 1px solid #f3dcae; color: #6f4a00; border-radius: 8px; padding: 10px 12px; font-size: 12px; }
.table-sub { display: block; font-size: 12px; color: var(--muted); }
.status.payment_pending { background: #fff0d3; color: #895000; }
.order-status-entry.processing:before,.order-status-entry.shipped:before { background: #2a6fb0; box-shadow: 0 0 0 3px #dceefb; }
.term-choice input,.payment-options input,.checkbox-field input,.client-option input { accent-color: var(--primary); }
.checkbox-field { flex-wrap: nowrap; }
.checkbox-field>span { flex: 1; min-width: 0; }
.quote-dialog .field input,.quote-dialog .field select { min-height: 48px; }
.freight-calculator [data-calculate-freight] { margin: 4px 0 16px; }
.freight-calculator>p { font-size: 13px; }
.cep-status { display: block; margin-top: 6px; font-size: 12px; color: var(--muted); }
.cep-status:empty { display: none; }
.cep-status.error { color: #982f28; }
.checkout-error { background: #fff0ed; border: 1px solid #efc0ba; border-radius: 8px; padding: 10px 12px; }
.checkout-error p { margin: 0; }
.related-heading { margin-top: 40px; }
dl.specifications>div { display: grid; grid-template-columns: minmax(140px,240px) 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
dl.specifications dt { font-weight: 600; }
dl.specifications dd { margin: 0; }
.address-actions { display: flex; align-items: center; gap: 16px; margin-top: 12px; }
.address-actions form { margin: 0; }
.return-order-field { max-width: 420px; margin: 0; }
.module-links a[aria-current=page] { border-color: var(--primary); color: var(--primary); background: var(--brand-soft); font-weight: 600; }
.wizard-steps span[aria-current=step] { color: var(--primary); font-weight: 700; }
.wizard-steps span.done { color: #1a6135; }
.auth-art { background: linear-gradient(135deg,var(--brand-primary-deep),var(--brand-primary)); padding: 56px 64px; justify-content: center; gap: 40px; color: white; }
.auth-art>div,.auth-art>small { display: block; }
.auth-art h1 { font-size: 40px; }
.auth-art span { color: #d7ecef; }
.auth-art small { color: #d4e7e9; }
.auth-art-image { display: block; width: min(100%,340px); height: auto; max-height: 46vh; object-fit: cover; border-radius: 20px; margin-top: 36px; box-shadow: 0 24px 48px #0003; }
@media(min-width:801px) {
  /* Same tracks as the table-view card: image column, then the card body columns. */
  .catalog-table-head { grid-template-columns: 100px 2fr 1fr 1fr 1fr; column-gap: 16px; padding: 14px 17px 14px 0; }
  .catalog-table-head span:first-child { grid-column: span 2; padding-left: 20px; }
}
@media(max-width:1100px) {
  .auth-art { padding: 40px 32px; }
  .auth-art h1 { font-size: 30px; }
}
@media(max-width:800px) {
  .catalog-table-head span:nth-child(2) { display: none; }
}
@media(max-width:540px) {
  /* Signed-in pages: the fixed top bar already links to support and the button covered prices and the bottom bar.
     The public storefront has no bottom bar and keeps the button. */
  body:not(.portal-public) .floating-chat { display: none; }
  .customer-context { flex-wrap: wrap; row-gap: 8px; }
  .customer-context .customer-identity { flex: 1 1 100%; min-width: 0; }
  .customer-context .customer-identity>div { display: block; flex: 1; min-width: 0; }
  .customer-context .customer-identity>span:last-child { display: inline; }
  .customer-context .customer-identity strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 13px; }
  .customer-context .customer-identity small { font-size: 11px; }
  .customer-context .context-order { display: none!important; }
  .checkout-context .context-order:last-child { display: flex!important; border-left: 0; padding-left: 0; margin-left: 48px; }
  dl.specifications>div { grid-template-columns: 1fr; gap: 4px; }
}
