:root { color-scheme: light; --navy:#111d34; --blue:#0866e8; --blue-dark:#054caf; --muted:#687386; --line:#e4e9f1; --surface:#fff; --soft:#f6f8fb; --green:#078a52; --red:#cf3c48; --orange:#c97817; --purple:#7357df; --shadow:0 12px 40px rgba(24,39,75,.08); }
* { box-sizing:border-box; }
body { margin:0; min-width:320px; background:#f7f9fc; color:var(--navy); font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; }
button,input,select,textarea { font:inherit; }
a { color:inherit; }
.topbar { position:sticky; top:0; z-index:20; display:grid; grid-template-columns:minmax(260px,1fr) auto minmax(260px,1fr); align-items:center; min-height:76px; padding:0 28px; border-bottom:1px solid var(--line); background:rgba(255,255,255,.96); backdrop-filter:blur(14px); }
.brand { display:inline-flex; align-items:center; gap:12px; text-decoration:none; font-size:1.12rem; }
.brand em { margin-left:5px; font-style:normal; font-weight:500; }
.brand-mark,.login-logo { display:grid; place-items:center; width:40px; height:40px; border-radius:10px; background:linear-gradient(145deg,#0d7bff,#0446ad); color:#fff; font-size:1.45rem; font-weight:950; clip-path:polygon(50% 0,94% 24%,94% 76%,50% 100%,6% 76%,6% 24%); }
.main-nav { display:flex; align-self:stretch; align-items:center; gap:34px; }
.main-nav a { position:relative; display:flex; align-items:center; height:100%; text-decoration:none; font-size:.9rem; font-weight:700; }
.main-nav a.active { color:var(--blue); }
.main-nav a.active::after { content:""; position:absolute; left:0; right:0; bottom:0; height:3px; border-radius:3px; background:var(--blue); }
.account-chip { justify-self:end; display:flex; align-items:center; gap:10px; }
.account-chip > span:last-child { display:grid; gap:2px; }
.account-chip small { color:var(--muted); font-size:.72rem; }
.account-icon { display:grid; place-items:center; width:34px; height:34px; border-radius:50%; background:#eef2f8; }
.wholesale-shell { width:min(1480px,calc(100% - 42px)); margin:30px auto 60px; }
.page-title-row { display:grid; grid-template-columns:auto 1fr auto; align-items:center; gap:18px; margin-bottom:20px; }
.page-title-icon { display:grid; place-items:center; width:56px; height:56px; border:1px solid #d9e1ed; border-radius:50%; background:#f1f5fa; font-size:1.55rem; }
h1 { margin:0 0 5px; font-size:2rem; letter-spacing:-.045em; }
.page-title-row p { margin:0; color:var(--muted); }
.pricing-profile { min-width:180px; border:1px solid #6da4ff; border-radius:10px; padding:10px 14px; background:#f9fbff; }
.pricing-profile span { display:block; color:var(--blue); font-size:.72rem; font-weight:750; }
.pricing-profile strong { color:var(--blue); font-size:1.2rem; }
.summary-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:16px; margin-bottom:16px; }
.summary-grid article { display:flex; align-items:center; gap:16px; min-height:90px; padding:18px; border:1px solid var(--line); border-radius:12px; background:#fff; box-shadow:0 4px 14px rgba(24,39,75,.03); }
.summary-grid article div { display:grid; gap:4px; }
.summary-grid strong { font-size:1.24rem; }
.summary-grid small { color:var(--muted); }
.summary-icon { display:grid; place-items:center; width:40px; height:40px; border-radius:10px; font-weight:900; }
.summary-icon.blue { background:#eaf3ff; color:var(--blue); }.summary-icon.purple { background:#f1edff; color:var(--purple); }.summary-icon.green { background:#eaf9f0; color:var(--green); }
.markup-notice { margin-bottom:16px; border:1px solid #bed8ff; border-radius:10px; padding:11px 16px; background:#f1f7ff; color:#2260be; font-size:.84rem; font-weight:650; }
.catalog-layout { display:grid; grid-template-columns:minmax(0,1fr) 350px; gap:18px; align-items:start; }
.catalog-card,.request-card,.source-footer { border:1px solid var(--line); border-radius:12px; background:#fff; box-shadow:var(--shadow); }
.catalog-controls { display:grid; grid-template-columns:minmax(260px,1.25fr) repeat(2,minmax(150px,.8fr)) minmax(120px,.5fr) minmax(190px,.8fr); gap:13px; align-items:end; padding:18px 18px 14px; }
.catalog-controls label:not(.toggle-control) { display:grid; gap:7px; color:#344054; font-size:.76rem; font-weight:700; }
.catalog-controls input,.catalog-controls select,.request-form input,.request-form textarea { width:100%; min-height:42px; border:1px solid #d7dee9; border-radius:9px; outline:none; background:#fff; padding:0 11px; color:var(--navy); }
.catalog-controls input:focus,.catalog-controls select:focus,.request-form input:focus,.request-form textarea:focus { border-color:#79aaff; box-shadow:0 0 0 3px rgba(8,102,232,.09); }
.search-control { align-self:end; }
.toggle-control { display:grid; grid-template-columns:1fr auto; align-items:center; gap:8px; min-height:42px; color:#344054; font-size:.76rem; font-weight:700; }
.toggle-control input { position:absolute; opacity:0; pointer-events:none; }
.toggle-control i { position:relative; width:38px; height:22px; border-radius:999px; background:#cbd3df; transition:.15s; }
.toggle-control i::after { content:""; position:absolute; width:16px; height:16px; top:3px; left:3px; border-radius:50%; background:#fff; box-shadow:0 1px 4px rgba(0,0,0,.2); transition:.15s; }
.toggle-control input:checked + i { background:var(--blue); }.toggle-control input:checked + i::after { transform:translateX(16px); }
.category-chips { display:flex; flex-wrap:wrap; gap:9px; padding:0 18px 15px; border-bottom:1px solid var(--line); }
.category-chip { min-height:30px; border:1px solid #afd0ff; border-radius:999px; background:#fff; color:var(--blue); padding:0 14px; cursor:pointer; font-size:.72rem; font-weight:750; }
.category-chip.active { border-color:var(--blue); background:var(--blue); color:#fff; }
.table-scroll { overflow:auto; }
.inventory-table { width:100%; border-collapse:collapse; min-width:900px; }
.inventory-table th,.inventory-table td { border-bottom:1px solid var(--line); padding:13px 12px; text-align:left; vertical-align:middle; }
.inventory-table th { position:sticky; top:0; z-index:2; background:#fbfcfe; color:#26354b; font-size:.7rem; font-weight:800; white-space:nowrap; }
.inventory-table th small { display:block; margin-top:2px; color:#8992a2; font-size:.62rem; font-weight:600; }
.product-cell { display:flex; align-items:center; gap:11px; min-width:260px; }
.product-thumb { display:grid; place-items:center; flex:0 0 42px; width:42px; height:48px; border-radius:7px; background:linear-gradient(145deg,#edf2f8,#dbe5f1); color:#66778b; font-size:.64rem; font-weight:900; }
.product-cell div:last-child { display:grid; gap:3px; }.product-cell strong { font-size:.78rem; line-height:1.3; }.product-cell small { color:var(--muted); font-size:.66rem; }
.category-pill { display:inline-flex; border-radius:6px; padding:5px 8px; background:#edf4ff; color:#2864c8; font-size:.66rem; font-weight:750; }
.price-cell { white-space:nowrap; font-weight:800; }
.qty-badge { display:inline-flex; min-width:34px; justify-content:center; border-radius:5px; padding:5px 7px; background:#eaf8ef; color:#16814f; font-size:.7rem; font-weight:800; }.qty-badge.zero { background:#fff0f1; color:#cc4450; }
.request-qty { display:inline-grid; grid-template-columns:28px 38px 28px; height:32px; border:1px solid #d9e0ea; border-radius:7px; overflow:hidden; }
.request-qty button { border:0; background:#fff; color:#4c5b6e; cursor:pointer; }.request-qty input { width:100%; border:0; border-left:1px solid #e8edf3; border-right:1px solid #e8edf3; text-align:center; outline:none; }
.add-button,.primary-button { border:0; border-radius:8px; background:var(--blue); color:#fff; cursor:pointer; font-weight:800; }.add-button { min-height:34px; padding:0 14px; }.add-button:hover,.primary-button:hover { background:var(--blue-dark); }
.empty-row { padding:44px !important; color:var(--muted); text-align:center !important; }
.table-footer { display:grid; grid-template-columns:auto 1fr auto; align-items:center; gap:16px; padding:14px 18px; font-size:.74rem; color:#536174; }
.page-size-control { display:flex; align-items:center; gap:7px; }.page-size-control select { min-height:34px; border:1px solid #d7dee9; border-radius:7px; background:#fff; padding:0 24px 0 10px; }
#pagination-summary { justify-self:center; }.pagination { display:flex; gap:5px; }.page-button { min-width:32px; height:32px; border:1px solid #dce3ed; border-radius:7px; background:#fff; cursor:pointer; color:#425269; }.page-button.active { border-color:var(--blue); background:var(--blue); color:#fff; }.page-button:disabled { opacity:.45; cursor:default; }
.request-card { position:sticky; top:94px; overflow:hidden; }
.request-card header { display:flex; justify-content:space-between; align-items:center; min-height:56px; padding:0 16px; border-bottom:1px solid var(--line); }.request-card header > div { display:flex; align-items:center; gap:9px; }.request-card h2 { margin:0; font-size:1rem; }.request-card header > strong { display:grid; place-items:center; width:25px; height:25px; border-radius:50%; background:var(--blue); color:#fff; font-size:.72rem; }
.cart-items { max-height:330px; overflow:auto; padding:0 16px; }.cart-empty { margin:28px 0; color:var(--muted); text-align:center; font-size:.78rem; }
.cart-row { display:grid; grid-template-columns:1fr auto auto; gap:8px; align-items:center; padding:12px 0; border-bottom:1px solid var(--line); }.cart-row strong { display:block; font-size:.72rem; line-height:1.3; }.cart-row small { color:var(--muted); font-size:.64rem; }.cart-row .cart-row-price { font-size:.75rem; font-weight:800; white-space:nowrap; }.cart-remove { border:1px solid #dfe5ed; border-radius:6px; background:#fff; cursor:pointer; }
.cart-quantity { display:flex; align-items:center; gap:5px; margin-top:4px; }.cart-quantity button { width:22px; height:22px; border:1px solid #dce3ec; border-radius:5px; background:#fff; cursor:pointer; }.cart-quantity span { min-width:20px; text-align:center; font-size:.7rem; }
.cart-total { display:grid; grid-template-columns:1fr auto; gap:6px 12px; padding:12px 16px; border-bottom:1px solid var(--line); font-size:.75rem; }.cart-total strong { text-align:right; }
.request-form { display:grid; gap:10px; padding:14px 16px; }.request-form label { display:grid; gap:5px; }.request-form label span { font-size:.7rem; font-weight:750; }.request-form textarea { min-height:76px; padding:10px; resize:vertical; }.primary-button { min-height:42px; padding:0 18px; }.form-status { min-height:1.2em; margin:0; color:var(--muted); font-size:.72rem; }.form-status.error { color:var(--red); }.form-status.success { color:var(--green); }
.request-disclaimer { display:flex; gap:9px; margin:0 16px 16px; border-radius:8px; padding:11px; background:#edf5ff; color:#2461bb; font-size:.7rem; line-height:1.45; }
.source-footer { display:grid; grid-template-columns:1.7fr .8fr; gap:20px; margin-top:16px; padding:16px 18px; box-shadow:none; }.source-footer > div { display:flex; align-items:center; gap:13px; }.source-footer > div + div { border-left:1px solid var(--line); padding-left:22px; }.source-footer p { margin:4px 0 0; color:var(--muted); font-size:.72rem; }.source-footer small { display:block; color:var(--muted); }.source-icon { color:var(--green); font-size:1.5rem; }.source-icon.gray { color:#8492a5; }
.login-dialog { width:100%; height:100%; max-width:none; max-height:none; border:0; background:rgba(14,25,43,.72); padding:0; }.login-dialog::backdrop { background:transparent; }.login-panel { position:absolute; left:50%; top:50%; transform:translate(-50%,-50%); width:min(410px,calc(100% - 30px)); display:grid; gap:14px; border-radius:18px; padding:30px; background:#fff; box-shadow:0 30px 100px rgba(0,0,0,.3); }.login-logo { margin-bottom:3px; }.login-eyebrow { margin:0; color:var(--blue); font-size:.7rem; font-weight:850; letter-spacing:.13em; text-transform:uppercase; }.login-panel h2 { margin:0; font-size:1.7rem; }.login-panel > p:not(.login-eyebrow):not(.form-status) { margin:0; color:var(--muted); line-height:1.55; }.login-panel label { display:grid; gap:7px; font-size:.74rem; font-weight:750; }.login-panel input { min-height:44px; border:1px solid #d6dee9; border-radius:9px; padding:0 11px; }.login-panel > a { color:var(--blue); text-align:center; font-size:.76rem; text-decoration:none; }.sr-only { position:absolute!important; width:1px!important; height:1px!important; padding:0!important; margin:-1px!important; overflow:hidden!important; clip:rect(0,0,0,0)!important; white-space:nowrap!important; border:0!important; }.muted { color:var(--muted); }
@media (max-width:1150px) { .topbar { grid-template-columns:1fr auto; }.main-nav { order:3; grid-column:1/-1; justify-content:center; min-height:46px; }.account-chip { grid-column:2; grid-row:1; }.catalog-layout { grid-template-columns:1fr; }.request-card { position:static; }.summary-grid { grid-template-columns:repeat(2,1fr); }.catalog-controls { grid-template-columns:repeat(2,1fr); }.search-control { grid-column:1/-1; }.source-footer { grid-template-columns:1fr; }.source-footer > div + div { border-left:0; padding-left:0; } }
@media (max-width:720px) { .topbar { padding:0 15px; }.brand em { display:none; }.account-chip span:last-child { display:none; }.main-nav { gap:18px; overflow:auto; justify-content:flex-start; }.wholesale-shell { width:calc(100% - 20px); margin-top:18px; }.page-title-row { grid-template-columns:auto 1fr; }.pricing-profile { grid-column:1/-1; }.summary-grid { grid-template-columns:1fr 1fr; gap:9px; }.summary-grid article { min-height:76px; padding:12px; }.catalog-controls { grid-template-columns:1fr; }.search-control { grid-column:auto; }.table-footer { grid-template-columns:1fr; }.table-footer > * { justify-self:start!important; }.source-footer { padding:14px; } }
