/* AutoB2B 0.17.0 — readable, responsive storefront without changing source entities. */
:root{--ux-focus:#2563eb}
body{font-size:15px;line-height:1.55}
button,input,select,textarea{font-family:inherit}
:where(a,button,input,select,textarea):focus-visible{outline:3px solid var(--ux-focus);outline-offset:2px}
.nav-item{font-size:14px;min-height:44px}
.account-shortcut{min-height:44px;font-size:14px}
.sidebar-header{font-size:12px;letter-spacing:.08em}
/* The chevrons express hierarchy; folder/package icons are redundant. */
.sidebar .side-icon{display:none!important}
.sidebar .side-link{min-height:46px;font-size:14px;line-height:1.4;gap:9px}
.sidebar .side-link.sub-category{padding-left:12px}
.sidebar .side-category-children .side-link{font-size:13px;min-height:42px}
.sidebar .side-count{font-size:12px;font-variant-numeric:tabular-nums}
.sidebar .side-expand-icon{width:40px;min-width:40px;height:44px;cursor:pointer}
.sidebar .side-expand-icon .icon{width:17px;height:17px}
.sidebar .side-category-summary{gap:2px;min-height:44px}
.sidebar .side-category-summary>.side-link{flex:1;min-width:0}
.sidebar .side-category-children{margin-left:10px;padding-left:13px}
.sidebar .side-all-products{margin-bottom:13px;font-weight:800;border-bottom:1px solid #edf1f5}
.catalog-mobile-nav-toggle{display:none}
.catalog-content{min-width:0}
.eyebrow,.overline,.sidebar-header{font-size:12px}
.page-intro p,.page-topline p,.vehicle-intro p,.form-subtitle,.account-heading p,.account-empty p{font-size:14px;line-height:1.65}
.search-wrap input{font-size:14px}
.search-submit,.button,.sort-form select{font-size:14px;min-height:44px}
.search-shortcut{font-size:12px}
.result-count{font-size:13px}
.list-heading h2{font-size:22px;line-height:1.35}
/* Wholesale card density is kept, but crucial details remain readable. */
.cards-grid .product-card .card-body{padding:13px}
.cards-grid .product-card .product-sku,.cards-grid .product-card .product-cat{font-size:12px}
.cards-grid .product-card .product-title{font-size:14px;line-height:1.5;margin:7px 0 8px;min-height:4.5em}
.cards-grid .product-card .price{font-size:16px}
.stock,.cards-grid .product-card-meta .stock{font-size:13px}
.cards-grid .product-card .add-form{gap:8px}
.cards-grid .product-card .add-button{font-size:13px;min-height:44px;padding:10px 8px}
.qty-control{min-height:43px}
.qty-control button{min-width:35px;min-height:35px;font-size:16px}
.qty-control input{font-size:14px!important;min-height:34px}
.table-product-title,.table-category,.product-sku,.price{font-size:13px}
.catalog-table th{font-size:12px}
.catalog-table td{font-size:14px}
.small-add,.view-button{min-width:40px;min-height:40px}
.similar-grid .similar-body strong{font-size:13px;line-height:1.55}
.similar-grid .similar-body .price{font-size:14px}
/* Product details, vehicle selection, account and checkout. */
.detail-data p,.detail-data .detail-description,.detail-data .spec-row,
.detail-breadcrumb,.detail-gallery-meta,.warehouse-row,
.cart-line-name,.checkout-line strong,.checkout-line small,
.stack-form label,.profile-field span,.profile-field strong,
.auth-feature small,.form-footnote,.order-identity small,
.vehicle-combo-trigger,.vehicle-combo-option,.vehicle-combo-search,
.vehicle-combo-hint,.vehicle-generation-details .vehicle-photo-note,
.vehicle-generation-details small,.vehicle-generation-details span,
.select-field label,.select-field select,.vehicle-intro p,
.field-title,.delivery-option small,.delivery-option strong{font-size:13px;line-height:1.55}
.stack-form input:not([type=radio]),.stack-form textarea,
.vehicle-combo-trigger,.vehicle-combo-option,.select-field select{font-size:15px;min-height:46px}
.profile-field strong,.cart-line-name{font-size:14px}
.account-order,.order-identity a{font-size:14px}
.small-outline,.text-action,.back-shopping,.total-row,.checkout-line{font-size:13px}
.info-alert,.compat-pill,.mini-verified{font-size:13px}
.vehicle-panel-title h2{font-size:21px}
.vehicle-generation-details strong{font-size:18px}
.vehicle-product .table-product-title{font-size:14px}
@media(max-width:860px){
  .topbar{padding:11px 14px;gap:8px}
  .main-nav{gap:5px;scrollbar-width:thin;overscroll-behavior-x:contain}
  .nav-item{font-size:13px;min-height:44px;padding:10px 11px;gap:7px}
  .catalog-layout{display:block}
  /* Mobile categories are intentionally collapsed until requested. */
  .sidebar{display:block;padding:12px 14px;background:transparent;border:0}
  .catalog-mobile-nav-toggle{display:flex;width:100%;align-items:center;gap:10px;min-height:50px;border:1px solid #d8e4ef;background:#fff;color:#1f4262;border-radius:12px;padding:9px 14px;text-align:left;font-size:14px;font-weight:750;box-shadow:0 3px 12px #15375508}
  .catalog-mobile-nav-toggle>.icon:first-child{width:20px;height:20px;color:var(--blue)}
  .catalog-mobile-nav-toggle>span{display:flex;gap:6px;flex-wrap:wrap;flex:1;min-width:0}
  .catalog-mobile-nav-toggle>span strong{overflow:hidden;text-overflow:ellipsis;max-width:100%;font-weight:850}
  .catalog-mobile-nav-toggle>.icon:last-child{width:18px;height:18px;transition:transform .15s}
  .sidebar.is-open .catalog-mobile-nav-toggle>.icon:last-child{transform:rotate(90deg)}
  .catalog-side-tree{display:none;margin:8px 0 0;border:1px solid #e0e8f1;background:#fff;border-radius:13px;padding:11px;box-shadow:0 8px 25px #1c374a0d}
  .sidebar.is-open .catalog-side-tree{display:block}
  .sidebar .sidebar-header{display:flex;padding:2px 9px 10px}
  .sidebar .side-link{white-space:normal;width:auto;flex:1;margin-bottom:2px}
  .sidebar .side-count{display:inline-flex}
  .sidebar .side-category-group{margin:0 0 3px}
  .sidebar .side-category-children{position:static;overflow:visible;min-width:0;max-height:none;margin:3px 0 8px 10px;padding:2px 0 2px 10px;border:0;border-left:1px solid #e2eaf2;border-radius:0;box-shadow:none}
  .sidebar .side-category-children .side-category-children{padding-left:10px}
  .sidebar .side-category-group[open]>.side-category-children{display:block}
  .catalog-content{padding:12px 14px 48px}
  .page-intro{padding:18px 20px;margin-bottom:15px}
  .page-intro h1{font-size:25px}
  .page-intro p{font-size:13px}
  .list-heading{margin-top:22px}
}
@media(max-width:650px){
  .wordmark .brand-mark{height:38px;width:38px}
  .header-right{gap:5px}
  .topbar{padding:10px 12px 7px}
  .page-intro{padding:16px;margin-bottom:13px}
  .page-intro h1{font-size:22px;letter-spacing:-.5px}
  .intro-icon{display:none}
  .search-wrap{height:auto;min-height:56px;display:grid;grid-template-columns:22px minmax(0,1fr) auto;grid-template-rows:minmax(44px,auto);gap:7px;padding:6px 8px 6px 11px}
  .search-wrap>.icon{grid-column:1;grid-row:1}
  .search-wrap input[type=search]{grid-column:2;grid-row:1;font-size:16px}
  .search-wrap .search-shortcut{display:none}
  .search-submit{grid-column:3;grid-row:1;align-self:stretch;min-width:74px;padding:10px}
  .list-heading h2{font-size:20px}
  .listing-controls{flex-wrap:wrap;gap:8px}
  .sort-form{flex:1;min-width:0}
  .sort-form select{width:100%;max-width:100%;padding-left:10px;font-size:13px}
  .view-toggle{flex:none}
  .cards-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .cards-grid .product-card .card-body{padding:10px}
  .cards-grid .product-card .product-title{font-size:13px;line-height:1.5;min-height:4.5em;margin:6px 0 8px}
  .cards-grid .product-card .price{font-size:15px}
  .cards-grid .product-card .product-sku{font-size:12px}
  .cards-grid .product-card .product-cat{font-size:12px}
  .cards-grid .product-card .stock{font-size:12px}
  .cards-grid .product-card .add-button{min-height:44px;font-size:13px;padding:8px 5px;gap:5px}
  .cards-grid .product-card .add-button .icon{width:15px;height:15px}
  .cards-grid .product-card .qty-control{min-height:42px}
  .cards-grid .product-card .qty-control button{width:36px;min-width:36px;height:36px}
  .cards-grid .product-card .qty-control input{min-width:25px;width:100%;max-width:100%;font-size:14px!important}
  .similar-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .similar-grid .similar-body strong{font-size:13px}
  .similar-grid .similar-photo{height:auto;aspect-ratio:1}
  .detail-shell,.simple-shell{padding:20px 14px 48px}
  .detail-photo{min-height:260px}
  .detail-photo img{max-height:320px}
  .vehicle-panel{padding:14px}
  .vehicle-generation-details strong{font-size:16px}
  .vehicle-combo-panel{max-height:62vh}
  .vehicle-combo-option{min-height:44px}
  .cart-line-name{font-size:14px}
  .cart-line-right .qty-control button{min-width:34px;width:34px}
  .cart-line-right .qty-control input{min-width:34px;width:36px}
  .footer{font-size:12px}
}
@media(max-width:360px){
  .cards-grid{gap:7px}
  .cards-grid .product-card .card-body{padding:8px}
  .cards-grid .product-card .product-title{font-size:13px}
  .cards-grid .product-card .add-button{font-size:12px}
  .topbar .nav-item{padding:9px}
}
@media(prefers-reduced-motion:reduce){.catalog-mobile-nav-toggle .icon{transition:none}}
@media print{.catalog-mobile-nav-toggle{display:none!important}.catalog-side-tree{display:block!important}}
/* Dense detail sections should remain legible when the user scrolls below the main photo. */
.detail-photo-caption,.detail-sku,.buy-head>div>span,.warehouse-heading,
.detail-info p,.spec-row,.section-head>a,.cart-empty p{font-size:13px;line-height:1.65}
.detail-info h3{font-size:18px}
.detail-data h1{font-size:clamp(22px,2.3vw,29px)}
.detail-add-form .button{min-height:46px;font-size:14px}
.product-gallery-thumb{min-width:56px;min-height:56px}
@media(max-width:550px){.detail-data h1{font-size:22px}.detail-price{font-size:28px}.warehouse-row{gap:12px}.warehouse-row strong{white-space:nowrap}}


/* XENONUFA UX patch 2026-11-22: mobile header without sideways scrolling.
   Keep all storefront destinations available, but fit them inside the viewport. */
@media (max-width: 860px) {
  html, body { max-width: 100%; overflow-x: clip; }
  #app-main, .topbar, .catalog-layout, .catalog-content,
  .detail-shell, .simple-shell, .x-account-page, .x-order-detail {
    max-width: 100%; min-width: 0;
  }
  .topbar .main-nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%; min-width: 0;
    gap: 6px; padding: 0; margin: 0;
    overflow: visible; scrollbar-width: none;
    overscroll-behavior-x: auto;
  }
  .topbar .main-nav > .nav-item {
    min-width: 0; width: 100%;
    min-height: 50px;
    padding: 8px 5px;
    display: flex; align-items: center; justify-content: center;
    flex-wrap: wrap; gap: 5px;
    white-space: normal; overflow-wrap: anywhere;
    text-align: center; font-size: 12px; line-height: 1.3;
  }
  .topbar .main-nav > .nav-item > .icon { flex: none; }
  .topbar .main-nav > .nav-item .cart-counter { flex: none; }
  .topbar .wordmark, .topbar .header-right { min-width: 0; }
}
@media (max-width: 380px) {
  .topbar .main-nav > .nav-item { font-size: 11px; gap: 4px; padding-inline: 3px; }
  .topbar .main-nav > .nav-item .icon { width: 16px; height: 16px; }
}
@supports not (overflow: clip) {
  @media (max-width: 860px) { html, body { overflow-x: hidden; } }
}
