:root {
  --navy-950: #061f35;
  --navy-900: #0b3557;
  --navy-800: #124d72;
  --blue-100: #e8f2f7;
  --blue-50: #f4f8fa;
  --surface: #fff;
  --canvas: #f3f6f8;
  --text: #102b40;
  --muted: #647786;
  --line: #dce5ea;
  --orange: #e97817;
  --orange-dark: #c85f08;
  --orange-soft: #fff2e7;
  --success: #17785b;
  --success-soft: #e9f7f1;
  --danger: #b93647;
  --danger-soft: #fff0f2;
  --warning: #926100;
  --warning-soft: #fff8df;
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 4px 14px rgba(6, 31, 53, .06);
  --shadow: 0 12px 34px rgba(6, 31, 53, .09);
  --shadow-lg: 0 28px 70px rgba(6, 31, 53, .16);
  --transition: 180ms ease;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { min-height: 100%; font-size: 16px; scroll-behavior: smooth; }
body { min-height: 100vh; margin: 0; color: var(--text); background: var(--canvas); font-family: Tahoma, "Segoe UI", Arial, sans-serif; line-height: 1.6; -webkit-font-smoothing: antialiased; }
body.is-authenticated { padding-bottom: 0; }
body.cart-is-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }
img { max-width: 100%; }
h1, h2, h3, h4, p { overflow-wrap: anywhere; }
button:focus-visible, a:focus-visible, input:focus-visible, summary:focus-visible, [tabindex]:focus-visible { outline: 3px solid rgba(233, 120, 23, .45); outline-offset: 3px; }
input[type="number"] { direction: ltr; text-align: center; }
.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip-link { position: fixed; z-index: 200; inset: 8px auto auto 50%; transform: translate(-50%, -150%); padding: 9px 16px; border-radius: 8px; color: #fff; background: var(--navy-950); transition: transform var(--transition); }
.skip-link:focus { transform: translate(-50%, 0); }
.app-container { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.app-shell { padding-block: 32px 72px; }
.is-guest .app-shell { padding-bottom: 32px; }

.app-header { position: sticky; z-index: 40; top: 0; color: #fff; background: linear-gradient(120deg, var(--navy-950), var(--navy-800)); box-shadow: 0 3px 18px rgba(6, 31, 53, .2); }
.app-header__inner { min-height: 76px; display: flex; align-items: center; gap: 32px; }
.brand { display: inline-flex; align-items: center; gap: 11px; flex: 0 0 auto; color: #fff; }
.brand:hover { color: #fff; }
.brand__mark { width: 42px; height: 42px; display: grid; place-items: center; border: 2px solid rgba(255,255,255,.85); border-radius: 12px; font: 800 1.1rem Arial, sans-serif; box-shadow: inset 0 0 0 3px rgba(255,255,255,.08); }
.brand__text { display: grid; font-size: 1.18rem; font-weight: 800; line-height: 1.1; }
.brand__text small { margin-top: 4px; color: rgba(255,255,255,.58); font: 600 .64rem Arial, sans-serif; letter-spacing: .04em; }
.desktop-nav { align-self: stretch; display: flex; align-items: stretch; gap: 4px; }
.desktop-nav a { position: relative; display: flex; align-items: center; gap: 8px; padding-inline: 14px; color: rgba(255,255,255,.7); font-size: .9rem; font-weight: 700; transition: color var(--transition), background var(--transition); }
.desktop-nav a::after { content: ""; position: absolute; inset: auto 14px 0; height: 3px; border-radius: 3px 3px 0 0; background: var(--orange); transform: scaleX(0); transition: transform var(--transition); }
.desktop-nav a:hover, .desktop-nav a.is-active { color: #fff; background: rgba(255,255,255,.05); }
.desktop-nav a.is-active::after { transform: scaleX(1); }
.desktop-nav svg, .header-actions svg, .mobile-nav svg, .text-link svg, .breadcrumb-nav svg, .remove-button svg, .empty-icon svg, .icon-button svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
#icon-home { fill: currentColor; stroke: none; }
.header-actions { margin-inline-start: auto; display: flex; align-items: center; gap: 10px; }
.cart-trigger { min-height: 42px; display: flex; align-items: center; gap: 8px; border: 1px solid rgba(255,255,255,.2); border-radius: 12px; padding: 7px 10px; color: #fff; background: rgba(255,255,255,.08); transition: background var(--transition); }
.cart-trigger:hover { background: rgba(255,255,255,.15); }
.cart-trigger__label { font-weight: 700; }
.cart-trigger__total { color: rgba(255,255,255,.7); font-size: .76rem; }
.cart-count { min-width: 21px; height: 21px; display: inline-grid; place-items: center; padding-inline: 5px; border-radius: 999px; color: var(--navy-950); background: #ffd5ae; font: 800 .72rem Arial, sans-serif; }
.account-menu { position: relative; }
.account-menu summary { min-height: 42px; max-width: 220px; display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 12px; list-style: none; color: #fff; cursor: pointer; }
.account-menu summary::-webkit-details-marker { display: none; }
.account-menu summary span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: .85rem; }
.account-menu[open] summary { background: rgba(255,255,255,.1); }
.account-menu__panel { position: absolute; inset: calc(100% + 12px) auto auto 0; width: 240px; padding: 10px; border: 1px solid var(--line); border-radius: 14px; color: var(--text); background: #fff; box-shadow: var(--shadow-lg); }
.account-menu__panel::before { content: ""; position: absolute; inset: -6px auto auto 18px; width: 12px; height: 12px; rotate: 45deg; background: #fff; }
.account-menu__client { display: grid; gap: 2px; padding: 8px 10px 12px; border-bottom: 1px solid var(--line); }
.account-menu__client small { color: var(--muted); }
.account-menu__panel form { margin: 4px 0 0; }
.account-menu__panel button { width: 100%; border: 0; border-radius: 9px; padding: 10px; text-align: right; color: var(--text); background: transparent; }
.account-menu__panel button:hover { background: var(--blue-50); }
.account-menu__panel .account-menu__logout { color: var(--danger); }
.account-menu__link { display: block; margin-top: 4px; border-radius: 9px; padding: 10px; font-size: .88rem; }
.account-menu__link:hover { color: var(--text); background: var(--blue-50); }

.button, .primary-button { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 11px; padding: 10px 18px; font-weight: 800; transition: transform var(--transition), box-shadow var(--transition), background var(--transition); }
.button--primary, .primary-button { color: #fff; background: var(--orange); box-shadow: 0 8px 18px rgba(233,120,23,.2); }
.button--primary:hover, .primary-button:hover { color: #fff; background: var(--orange-dark); transform: translateY(-1px); }
.button--wide { width: 100%; }
.text-link { display: inline-flex; align-items: center; gap: 6px; border: 0; padding: 8px 0; color: var(--navy-800); background: transparent; font-weight: 800; }
.text-link svg { width: 17px; height: 17px; }
.app-alert { margin-bottom: 18px; padding: 13px 16px; border: 1px solid transparent; border-radius: 12px; font-size: .9rem; box-shadow: var(--shadow-sm); }
.app-alert--success { color: var(--success); border-color: #b9e4d5; background: var(--success-soft); }
.app-alert--danger { color: var(--danger); border-color: #edc3ca; background: var(--danger-soft); }
.app-alert--warning { color: var(--warning); border-color: #ead996; background: var(--warning-soft); }
.toast-region .app-alert.is-transient { position: fixed; z-index: 100; inset: 90px 50% auto auto; transform: translateX(50%); width: min(420px, calc(100% - 28px)); animation: toast-in .2s ease-out; }
@keyframes toast-in { from { opacity: 0; transform: translate(50%, -10px); } }

.eyebrow { display: inline-block; color: var(--orange); font-size: .78rem; font-weight: 800; letter-spacing: .025em; }
.page-title { min-height: 88px; display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.page-title h1 { margin: 4px 0 0; font-size: clamp(1.7rem, 3vw, 2.35rem); font-weight: 800; line-height: 1.3; }
.page-title p { margin: 6px 0 0; color: var(--muted); font-size: .92rem; }
.section-block { margin-block: 32px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 16px; }
.section-heading h2 { margin: 0; font-size: 1.35rem; font-weight: 800; }
.section-heading > span { color: var(--muted); font-size: .86rem; }
.content-card { padding: 28px; border: 1px solid rgba(220,229,234,.8); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); }
.prose { max-width: 800px; }
.prose h2 { margin: 0 0 8px; font-size: 1.2rem; }
.prose p { color: var(--muted); }
.prose h2:not(:first-child) { margin-top: 26px; }

.login-page { min-height: calc(100vh - 140px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(410px, .82fr); overflow: hidden; margin-inline: auto; border: 1px solid rgba(220,229,234,.7); border-radius: 26px; background: #fff; box-shadow: var(--shadow-lg); }
.login-intro { position: relative; display: flex; flex-direction: column; justify-content: center; overflow: hidden; padding: clamp(42px, 7vw, 84px); color: #fff; background: linear-gradient(145deg, var(--navy-950), var(--navy-800)); }
.login-intro::before, .login-intro::after { content: ""; position: absolute; border: 1px solid rgba(255,255,255,.1); border-radius: 50%; }
.login-intro::before { width: 380px; height: 380px; inset: -190px auto auto -100px; }
.login-intro::after { width: 280px; height: 280px; inset: auto -100px -130px auto; background: rgba(255,255,255,.03); }
.login-intro > * { position: relative; z-index: 1; }
.login-intro__eyebrow { width: fit-content; margin-bottom: 18px; padding: 6px 12px; border: 1px solid rgba(255,255,255,.2); border-radius: 999px; color: #ffd2ad; background: rgba(255,255,255,.06); font-size: .76rem; font-weight: 800; }
.login-intro h1 { max-width: 560px; margin: 0 0 18px; font-size: clamp(2rem, 4vw, 3.15rem); line-height: 1.25; font-weight: 800; }
.login-intro p { max-width: 560px; margin: 0; color: rgba(255,255,255,.76); line-height: 1.9; }
.login-intro__features { display: grid; gap: 12px; margin-top: 32px; }
.login-intro__features span { display: flex; align-items: center; gap: 10px; color: rgba(255,255,255,.9); }
.login-intro__features b { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; color: var(--navy-950); background: #ffd2ad; font-size: .75rem; }
.login-card { display: flex; flex-direction: column; justify-content: center; padding: clamp(34px, 5vw, 64px); }
.login-card__header { display: flex; align-items: center; gap: 14px; margin-bottom: 28px; }
.login-card__mark { width: 52px; height: 52px; display: grid; place-items: center; flex: 0 0 52px; border-radius: 14px; color: #fff; background: linear-gradient(145deg, var(--navy-950), var(--navy-800)); font: 800 1.35rem Arial, sans-serif; box-shadow: var(--shadow); }
.login-card__header span { color: var(--muted); font-size: .85rem; }
.login-card__header h2 { margin: 2px 0 0; font-size: 1.6rem; font-weight: 800; }
.login-form { display: grid; gap: 19px; }
.login-validation { padding: 12px 14px; border: 1px solid #edc3ca; border-radius: 11px; color: var(--danger); background: var(--danger-soft); font-size: .86rem; }
.login-validation:empty, .login-validation.validation-summary-valid { display: none; }
.login-validation ul { margin: 0; padding-right: 20px; }
.login-field { display: grid; gap: 7px; }
.login-field > label { font-weight: 800; font-size: .9rem; }
.login-input-wrap { min-height: 52px; display: flex; align-items: center; overflow: hidden; border: 1px solid #cbd8df; border-radius: 11px; background: #fbfcfd; transition: border var(--transition), box-shadow var(--transition); }
.login-input-wrap:focus-within { border-color: var(--navy-800); background: #fff; box-shadow: 0 0 0 4px rgba(18,77,114,.1); }
.login-input-icon { width: 50px; align-self: stretch; display: grid; place-items: center; flex: 0 0 50px; border-left: 1px solid var(--line); color: var(--navy-800); }
.login-input-wrap input { width: 100%; min-width: 0; align-self: stretch; border: 0; padding-inline: 14px; color: var(--text); background: transparent; outline: 0; }
.login-input-wrap input[dir="ltr"] { text-align: left; }
.login-field small { color: var(--muted); font-size: .76rem; }
.login-field-error { color: var(--danger); font-size: .8rem; }
.login-field-error:empty { display: none; }
.login-remember { width: fit-content; display: flex; align-items: center; gap: 8px; color: var(--muted); cursor: pointer; font-size: .88rem; }
.login-remember input { width: 18px; height: 18px; margin: 0; accent-color: var(--navy-800); }
.login-submit { min-height: 52px; display: flex; align-items: center; justify-content: center; gap: 10px; border: 0; border-radius: 11px; color: #fff; background: var(--orange); font-weight: 800; box-shadow: 0 10px 22px rgba(233,120,23,.22); transition: transform var(--transition), background var(--transition); }
.login-submit:hover { background: var(--orange-dark); transform: translateY(-1px); }
.login-help { margin: -2px 0 0; color: var(--muted); text-align: center; font-size: .77rem; }

.hero-panel, .profile-hero { margin-top: -32px; margin-bottom: 30px; padding: 34px; border-radius: 0 0 var(--radius-lg) var(--radius-lg); color: #fff; background: linear-gradient(120deg, var(--navy-950), var(--navy-800)); }
.hero-panel { display: grid; grid-template-columns: 1fr minmax(320px, 500px); align-items: end; gap: 32px; }
.hero-panel h1, .profile-hero h1 { margin: 4px 0; font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 800; }
.hero-panel p, .profile-hero p { margin: 0; color: rgba(255,255,255,.75); }
.profile-hero { text-align: center; }
.profile-hero form { display: flex; justify-content: center; gap: 9px; margin-top: 22px; }
.profile-filter { width: min(650px, 100%); min-height: 50px; border: 1px solid transparent; border-radius: 11px; padding: 12px 16px; background: #fff; box-shadow: var(--shadow-sm); }
.profile-hero form button { border: 0; border-radius: 11px; padding-inline: 24px; color: #fff; background: var(--orange); font-weight: 800; }
.search-box { min-height: 54px; display: flex; padding: 6px; border: 1px solid rgba(220,229,234,.8); border-radius: 13px; background: #fff; box-shadow: var(--shadow-sm); }
.search-box input { min-width: 0; flex: 1; border: 0; padding-inline: 13px; color: var(--text); background: transparent; outline: none; }
.search-box button { min-width: 48px; border: 0; border-radius: 9px; padding-inline: 17px; color: #fff; background: var(--orange); font-weight: 800; }
.search-box--page { max-width: 760px; margin: -4px 0 32px; }
.inline-filter { width: min(420px, 100%); min-height: 46px; display: flex; align-items: center; gap: 9px; margin: -2px 0 18px; padding-inline: 13px; border: 1px solid var(--line); border-radius: 11px; color: var(--muted); background: #fff; box-shadow: var(--shadow-sm); }
.inline-filter svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.inline-filter input { min-width: 0; flex: 1; align-self: stretch; border: 0; background: transparent; outline: 0; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(195px, 1fr)); gap: 16px; }
.categories-grid { grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); }
.catalog-card, .product-card, .profile-card, .cart-card, .order-card, .order-overview, .product-details { border: 1px solid rgba(220,229,234,.78); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); }
.catalog-card { padding: 16px; text-align: center; transition: transform var(--transition), box-shadow var(--transition), border var(--transition); }
.catalog-card:hover, .order-card:hover { color: var(--text); border-color: #c8d8e1; transform: translateY(-3px); box-shadow: var(--shadow); }
.catalog-card strong { display: block; margin-top: 10px; font-size: 1rem; }
.catalog-card small { display: block; margin-top: 5px; color: var(--muted); font-size: .78rem; }
.image-frame { height: 128px; display: grid; place-items: center; overflow: hidden; border-radius: 11px; background: linear-gradient(145deg, #f9fbfc, #edf3f6); }
.image-frame::before, .cart-line__image::before, .drawer-item__image::before, .cart-company__logo::before, .order-company-logo::before { content: "M"; grid-area: 1 / 1; color: #c5d3da; font: 800 1.3rem Arial, sans-serif; }
.image-frame img, .cart-line__image img, .drawer-item__image img, .cart-company__logo img, .order-company-logo img { grid-area: 1 / 1; position: relative; width: 100%; height: 100%; object-fit: contain; }
.product-card { display: flex; flex-direction: column; padding: 13px; }
.product-card > a { flex: 1; }
.product-card h3 { min-height: 2.7em; margin: 11px 0 4px; font-size: .96rem; line-height: 1.45; }
.price { display: block; margin-bottom: 12px; color: var(--orange-dark); font-weight: 800; }
.price--large { margin-block: 18px; font-size: 1.75rem; }
.add-form { display: grid; grid-template-columns: 58px 1fr; gap: 8px; }
.add-form input { width: 100%; min-height: 42px; border: 1px solid #ccd8df; border-radius: 9px; padding: 8px; }
.add-form button, .checkout-form button, .profile-card button { border: 0; border-radius: 9px; padding: 9px 13px; color: #fff; background: var(--navy-800); font-weight: 800; }
.add-form button[disabled], .js-cart-mutation.is-loading button { opacity: .65; cursor: wait; }
.add-form--large { max-width: 440px; grid-template-columns: 115px 1fr; margin-top: 22px; }
.add-form--large label { display: grid; gap: 5px; color: var(--muted); font-size: .82rem; }
.in-cart-note { width: fit-content; margin: 0 0 14px; padding: 7px 11px; border-radius: 9px; color: var(--success); background: var(--success-soft); font-size: .84rem; font-weight: 800; }
.chip-list { display: flex; flex-wrap: wrap; gap: 9px; }
.chip-list span, .chip-list a { border: 1px solid var(--line); border-radius: 999px; padding: 8px 15px; color: var(--navy-800); background: #fff; font-size: .86rem; }
.chip-list a:hover { border-color: var(--navy-800); background: var(--blue-100); }
.chip-list a.is-active { border-color: var(--navy-800); color: #fff; background: var(--navy-800); font-weight: 800; box-shadow: 0 4px 12px rgba(18, 77, 114, .2); }
.chip-list a.is-active:hover { color: #fff; background: var(--navy-900); }
.product-filters { margin-bottom: 20px; }
.breadcrumb-nav { margin-bottom: 14px; }
.breadcrumb-nav button { display: inline-flex; align-items: center; gap: 5px; border: 0; padding: 6px 0; color: var(--navy-800); background: transparent; font-weight: 800; }
.product-details { display: grid; grid-template-columns: minmax(280px, 44%) 1fr; gap: clamp(28px, 5vw, 54px); padding: clamp(22px, 4vw, 40px); }
.product-details__image { min-height: 380px; display: grid; place-items: center; border-radius: 14px; background: linear-gradient(145deg, #fafcfd, #edf3f6); }
.product-details__image img { max-width: 100%; max-height: 360px; object-fit: contain; }
.product-details__content { align-self: center; }
.product-details h1 { margin: 5px 0 12px; font-size: clamp(1.6rem, 3vw, 2.25rem); font-weight: 800; }
.product-details p:not(.in-cart-note) { color: var(--muted); line-height: 1.9; }

.profile-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(345px, 1fr)); gap: 13px; }
.profile-card { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; padding: 15px; transition: box-shadow var(--transition); }
.profile-card:hover { box-shadow: var(--shadow); }
.profile-avatar { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 15px; color: #fff; background: linear-gradient(145deg, var(--navy-800), #1b6f9d); font-size: 1.4rem; font-weight: 800; }
.profile-card h2 { margin: 0; font-size: 1.02rem; }
.profile-card p, .profile-card small { display: block; margin: 2px 0; color: var(--muted); font-size: .82rem; }
.profile-id { color: var(--navy-800); font-size: .72rem; }
.profile-pagination { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 24px; }
.profile-pagination a, .profile-pagination span { padding: 8px 14px; border: 1px solid var(--line); border-radius: 9px; background: #fff; }
.profile-pagination a { color: var(--navy-800); font-weight: 800; }

.cart-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; overflow: hidden; margin-bottom: 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--line); box-shadow: var(--shadow-sm); }
.cart-summary > div { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 20px; background: #fff; }
.cart-summary span { color: var(--muted); font-size: .84rem; }
.cart-summary strong { font-size: 1.05rem; }
.cart-card { overflow: hidden; margin-bottom: 18px; }
.cart-card > header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 17px 20px; border-bottom: 1px solid var(--line); background: #fbfcfd; }
.cart-card h2 { margin: 0; font-size: 1.12rem; }
.cart-card header span { color: var(--muted); font-size: .78rem; }
.cart-company { display: flex; align-items: center; gap: 11px; }
.cart-company__logo { width: 44px; height: 44px; display: grid; place-items: center; overflow: hidden; border-radius: 10px; background: #fff; }
.cart-line { display: grid; grid-template-columns: 66px minmax(150px, 1fr) 126px 105px 38px; align-items: center; gap: 14px; padding: 15px 20px; border-bottom: 1px solid #edf1f3; }
.cart-line:last-child { border-bottom: 0; }
.cart-line__image { width: 66px; height: 66px; display: grid; place-items: center; overflow: hidden; border-radius: 10px; background: #f5f8fa; }
.cart-line h3 { margin: 0 0 3px; font-size: .94rem; }
.cart-line__info span { color: var(--muted); font-size: .8rem; }
.cart-line__total { text-align: left; white-space: nowrap; }
.quantity-stepper { width: 126px; height: 40px; display: grid; grid-template-columns: 36px 1fr 36px; overflow: hidden; border: 1px solid var(--line); border-radius: 9px; background: #fff; }
.quantity-stepper button { border: 0; color: var(--navy-800); background: var(--blue-50); font-size: 1.05rem; font-weight: 800; }
.quantity-stepper input { width: 100%; min-width: 0; border: 0; border-inline: 1px solid var(--line); color: var(--text); background: #fff; outline: 0; -moz-appearance: textfield; }
.quantity-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; }
.remove-button { width: 36px; height: 36px; display: grid; place-items: center; border: 0; border-radius: 9px; color: var(--danger); background: transparent; }
.remove-button:hover { background: var(--danger-soft); }
.remove-button svg { width: 18px; height: 18px; }
.cart-card__footer { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 16px 20px; border-top: 1px solid var(--line); background: #fbfcfd; }
.minimum-warning, .minimum-ready { display: flex; flex-direction: column; margin: 0; font-size: .83rem; }
.minimum-warning { color: var(--danger); }
.minimum-warning span { color: var(--muted); }
.minimum-ready { flex-direction: row; gap: 7px; color: var(--success); font-weight: 800; }
.checkout-form { margin: 0; }
.checkout-form button { min-width: 190px; min-height: 44px; background: var(--orange); }
.checkout-form button:disabled { opacity: .42; cursor: not-allowed; }

.orders-list { display: grid; gap: 12px; }
.record-tabs { display: flex; gap: 6px; margin-bottom: 20px; padding: 5px; border: 1px solid var(--line); border-radius: 13px; background: #fff; box-shadow: var(--shadow-sm); }
.record-tab { min-width: 130px; display: inline-flex; align-items: center; justify-content: center; border-radius: 9px; padding: 9px 20px; color: var(--muted); font-weight: 800; transition: color var(--transition), background var(--transition), box-shadow var(--transition); }
.record-tab:hover { color: var(--navy-800); background: var(--blue-50); }
.record-tab.is-active { color: #fff; background: var(--navy-800); box-shadow: 0 5px 14px rgba(18,77,114,.2); }
.order-card { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 17px 20px; transition: transform var(--transition), box-shadow var(--transition); }
.order-card__identity { display: flex; align-items: center; gap: 13px; }
.order-company-logo { width: 50px; height: 50px; display: grid; place-items: center; overflow: hidden; border-radius: 12px; background: var(--blue-50); }
.order-card h2 { margin: 2px 0; font-size: 1.05rem; }
.order-card > div:last-child { display: grid; justify-items: end; gap: 8px; }
.order-number, .order-card small { color: var(--muted); font-size: .78rem; }
.status-pill { width: fit-content; display: inline-block; padding: 5px 10px; border-radius: 999px; color: var(--navy-800); background: var(--blue-100); font-size: .78rem; }
.status-pill--success { color: var(--success); background: var(--success-soft); }
.status-pill--warning { color: var(--warning); background: var(--warning-soft); }
.invoice-card__mark { width: 50px; height: 50px; display: grid; place-items: center; flex: 0 0 50px; border-radius: 12px; color: var(--navy-800); background: var(--blue-100); font-size: 1.35rem; font-weight: 800; }
.invoice-delivery-status { color: var(--muted); font-size: .74rem; }
.order-overview.invoice-overview { grid-template-columns: repeat(3, 1fr); }
.order-overview.invoice-overview > div:nth-child(3) { border-inline-end: 0; }
.order-overview.invoice-overview > div:nth-child(-n+3) { border-bottom: 1px solid var(--line); }
.invoice-description { margin-bottom: 28px; padding: 20px; }
.invoice-description h2 { margin: 0 0 6px; font-size: 1rem; }
.invoice-description p { margin: 0; color: var(--muted); }
.invoice-orders-list { display: grid; gap: 14px; }
.invoice-order-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); }
.invoice-order-card__header { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px 18px; border-bottom: 1px solid var(--line); background: #fbfcfd; }
.invoice-order-card__header > div { min-width: 0; display: flex; align-items: baseline; gap: 8px; }
.invoice-order-card__header span { color: var(--muted); font-size: .76rem; }
.invoice-order-card__header strong { overflow-wrap: anywhere; font-size: .96rem; }
.invoice-items { width: 100%; }
.invoice-items__heading, .invoice-item { display: grid; grid-template-columns: minmax(180px, 1fr) 90px 120px 120px; align-items: center; gap: 14px; padding: 11px 18px; }
.invoice-items__heading { color: var(--muted); background: var(--blue-50); font-size: .74rem; font-weight: 800; }
.invoice-item { min-width: 0; border-top: 1px solid #edf1f3; font-size: .84rem; }
.invoice-items__heading + .invoice-item { border-top: 0; }
.invoice-item > * { min-width: 0; }
.invoice-item > span, .invoice-item > strong:last-child { white-space: nowrap; }
.invoice-item > strong:first-child { overflow-wrap: anywhere; }
.invoice-items__empty { margin: 0; padding: 22px 18px; color: var(--muted); text-align: center; font-size: .84rem; }
.order-overview { display: grid; grid-template-columns: repeat(4, 1fr); overflow: hidden; margin-bottom: 18px; }
.order-overview > div { display: flex; flex-direction: column; gap: 4px; padding: 17px 20px; border-inline-end: 1px solid var(--line); }
.order-overview > div:last-child { border: 0; }
.order-overview span { color: var(--muted); font-size: .8rem; }
.order-line { grid-template-columns: 66px minmax(160px, 1fr) 140px 120px; }

.empty-state { padding: 48px 20px; color: var(--muted); text-align: center; }
.empty-state--card { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); }
.empty-state h1, .empty-state h2, .empty-state h3 { margin: 8px 0; color: var(--text); font-weight: 800; }
.empty-state p { max-width: 520px; margin: 0 auto 18px; }
.empty-icon { width: 64px; height: 64px; display: grid; place-items: center; margin: 0 auto 12px; border-radius: 50%; color: var(--navy-800); background: var(--blue-100); }
.empty-icon svg { width: 30px; height: 30px; }
.error-state { max-width: 680px; margin: 40px auto; }
.error-code { display: inline-grid; place-items: center; min-width: 64px; height: 64px; padding-inline: 10px; border-radius: 18px; color: var(--danger); background: var(--danger-soft); font-size: 1.25rem; font-weight: 800; }

.cart-backdrop { position: fixed; z-index: 70; inset: 0; border: 0; padding: 0; background: rgba(5,25,42,.52); opacity: 0; visibility: hidden; transition: opacity var(--transition), visibility var(--transition); }
.cart-drawer { position: fixed; z-index: 80; inset: 0 0 0 auto; width: min(480px, 100%); display: flex; flex-direction: column; color: var(--text); background: var(--canvas); box-shadow: -18px 0 55px rgba(6,31,53,.2); transform: translateX(105%); visibility: hidden; transition: transform 240ms ease; }
.cart-is-open .cart-backdrop { opacity: 1; visibility: visible; }
.cart-is-open .cart-drawer { transform: translateX(0); visibility: visible; }
.cart-drawer__header { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 20px; border-bottom: 1px solid var(--line); background: #fff; }
.cart-drawer__header span { color: var(--muted); font-size: .76rem; }
.cart-drawer__header h2 { margin: 0; font-size: 1.3rem; font-weight: 800; }
.icon-button { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 11px; color: var(--text); background: #fff; }
.cart-drawer__content { min-height: 0; display: flex; flex: 1; flex-direction: column; overflow-y: auto; }
.drawer-loading, .drawer-empty, .drawer-message { min-height: 350px; display: flex; flex: 1; flex-direction: column; align-items: center; justify-content: center; padding: 30px; text-align: center; }
.drawer-loading p, .drawer-empty p, .drawer-message p { color: var(--muted); }
.drawer-empty h3 { margin: 0 0 4px; font-size: 1.2rem; }
.spinner { width: 34px; height: 34px; border: 3px solid var(--line); border-top-color: var(--orange); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { rotate: 360deg; } }
.drawer-message button { border: 0; border-radius: 9px; padding: 9px 15px; color: #fff; background: var(--navy-800); }
.drawer-summary { display: flex; align-items: center; justify-content: space-between; padding: 11px 20px; color: var(--navy-800); background: var(--blue-100); font-size: .86rem; }
.drawer-groups { padding: 12px; }
.drawer-group { overflow: hidden; margin-bottom: 12px; border: 1px solid var(--line); border-radius: 13px; background: #fff; }
.drawer-group > header { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); background: #fbfcfd; }
.drawer-group h3 { margin: 0; font-size: .94rem; }
.drawer-group header small { color: var(--muted); font-size: .72rem; }
.drawer-group header > strong { font-size: .9rem; }
.drawer-item { display: grid; grid-template-columns: 58px minmax(0, 1fr) auto; gap: 11px; padding: 13px; border-bottom: 1px solid #edf1f3; }
.drawer-item:last-child { border-bottom: 0; }
.drawer-item__image { width: 58px; height: 58px; display: grid; place-items: center; overflow: hidden; border-radius: 9px; background: var(--blue-50); }
.drawer-item h4 { margin: 0; font-size: .84rem; line-height: 1.45; }
.drawer-item__details > span { display: block; margin: 2px 0 7px; color: var(--muted); font-size: .73rem; }
.drawer-item .quantity-stepper { width: 108px; height: 33px; grid-template-columns: 31px 1fr 31px; }
.drawer-item__end { display: flex; flex-direction: column; align-items: end; justify-content: space-between; white-space: nowrap; font-size: .82rem; }
.cart-drawer__footer { position: sticky; bottom: 0; display: grid; gap: 11px; margin-top: auto; padding: 15px 20px max(15px, env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: #fff; box-shadow: 0 -8px 20px rgba(6,31,53,.06); }
.cart-drawer__footer > div { display: flex; align-items: center; justify-content: space-between; }
.cart-drawer__footer span { color: var(--muted); }

.mobile-nav { display: none; }

.assignment-layout { display: grid; grid-template-columns: minmax(260px, .7fr) minmax(0, 1.7fr); align-items: start; gap: 20px; }
.assignment-content { position: relative; }
.assignment-content.is-loading { pointer-events: none; }
.assignment-loading { position: fixed; z-index: 55; inset: 94px 50% auto auto; display: none; align-items: center; gap: 12px; width: max-content; max-width: calc(100% - 24px); padding: 11px 17px; transform: translateX(50%); border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; box-shadow: var(--shadow); color: var(--navy-800); font-weight: 800; }
.assignment-content.is-loading .assignment-loading { display: flex; }
.assignment-loading .spinner { width: 25px; height: 25px; flex: 0 0 25px; }
.bulk-assignment-card { margin-bottom: 20px; }
.bulk-assignment-card .section-heading span { display: block; margin-top: 4px; color: var(--muted); font-size: .84rem; }
.bulk-assignment-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.bulk-assignment-step { min-height: 58px; border: 1px solid var(--line); background: var(--blue-50); }
.bulk-assignment-step:hover { color: var(--navy-800); border-color: var(--navy-800); background: var(--blue-100); }
.bulk-assignment-step b { width: 26px; height: 26px; display: grid; place-items: center; flex: 0 0 26px; border-radius: 50%; color: #fff; background: var(--navy-800); font-size: .78rem; }
.bulk-upload-form { display: grid; gap: 8px; }
.bulk-upload-form .bulk-assignment-step { grid-column: 1 / -1; cursor: pointer; }
.bulk-upload-file { min-width: 0; overflow: hidden; padding: 9px 10px; border: 1px solid var(--line); border-radius: 9px; direction: ltr; color: var(--muted); background: #fff; text-align: left; text-overflow: ellipsis; white-space: nowrap; font-size: .76rem; }
.bulk-assignment-help { margin: 16px 0 0; color: var(--muted); font-size: .8rem; }
.bulk-error-card { margin-bottom: 20px; padding: 20px; }
.bulk-error-summary { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.bulk-error-summary span { color: var(--muted); font-size: .8rem; }
.bulk-error-table-wrap { overflow-x: auto; }
.bulk-error-table { width: 100%; border-collapse: collapse; font-size: .8rem; }
.bulk-error-table th, .bulk-error-table td { padding: 10px; border: 1px solid var(--line); text-align: right; vertical-align: top; }
.bulk-error-table th { color: var(--navy-800); background: var(--blue-50); }
.bulk-error-table td[dir="ltr"] { max-width: 280px; overflow-wrap: anywhere; text-align: left; }
.assignment-users, .assignment-profiles { padding: 22px; }
.assignment-users h2, .assignment-profiles h2 { margin: 0; font-size: 1.2rem; }
.assignment-search { display: flex; gap: 8px; margin-block: 16px; }
.assignment-search input { min-width: 0; min-height: 44px; flex: 1; border: 1px solid var(--line); border-radius: 10px; padding-inline: 12px; background: #fff; }
.assignment-search button, .assignment-profile button { border: 0; border-radius: 9px; padding: 9px 14px; color: #fff; background: var(--navy-800); font-weight: 800; }
.assignment-user-list, .assignment-profile-list { display: grid; gap: 9px; }
.assignment-user { display: grid; gap: 2px; padding: 12px; border: 1px solid var(--line); border-radius: 11px; background: var(--blue-50); }
.assignment-user:hover, .assignment-user.is-selected { color: var(--text); border-color: var(--navy-800); background: var(--blue-100); }
.assignment-user__select { display: grid; gap: 2px; }
.assignment-user__select:hover { color: var(--text); }
.assignment-user__select small { color: var(--navy-800); font-size: .72rem; }
.assignment-user__actions { display: flex; gap: 12px; margin-top: 7px; padding-top: 7px; border-top: 1px solid var(--line); }
.assignment-user__actions a { color: var(--navy-800); font-size: .76rem; font-weight: 800; }
.assignment-user span, .assignment-profile span, .assignment-profile small { color: var(--muted); font-size: .78rem; }
.assignment-empty { color: var(--muted); text-align: center; }
.assignment-profile { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; }
.assignment-profile > div { min-width: 0; display: grid; }
.assignment-profile.is-assigned { border-color: #b9e4d5; background: var(--success-soft); }
.assignment-profile .assignment-add { background: var(--success); }
.assignment-profile .assignment-remove { color: var(--danger); background: var(--danger-soft); }
.button--danger { color: #fff; background: var(--danger); }
.button--danger:hover { color: #fff; background: #982638; }
.admin-user-form { max-width: 900px; margin-inline: auto; }
.admin-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.admin-form-grid label { display: grid; gap: 6px; font-weight: 800; }
.admin-form-grid input,
.admin-form-grid select { min-width: 0; min-height: 46px; border: 1px solid var(--line); border-radius: 10px; padding-inline: 12px; font-weight: 400; background-color: #fff; }
.admin-form-grid small { min-height: 20px; color: var(--danger); font-weight: 400; }
.admin-form-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.admin-form-actions .button:not(.button--primary):not(.button--danger) { border: 1px solid var(--line); background: #fff; }
.admin-user-details dl { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; overflow: hidden; margin: 0; border: 1px solid var(--line); border-radius: 12px; background: var(--line); }
.admin-user-details dl > div { padding: 14px; background: #fff; }
.admin-user-details dt { color: var(--muted); font-size: .78rem; }
.admin-user-details dd { margin: 3px 0 0; font-weight: 800; }
.delete-confirmation { max-width: 720px; margin-inline: auto; }

@media (max-width: 920px) {
  body.is-authenticated { padding-bottom: 76px; }
  .app-container { width: min(100% - 28px, 1180px); }
  .app-shell { padding-top: 24px; }
  .desktop-nav { display: none; }
  .brand__text small { display: none; }
  .hero-panel { grid-template-columns: 1fr; }
  .mobile-nav { position: fixed; z-index: 45; inset: auto 0 0; height: calc(70px + env(safe-area-inset-bottom)); display: grid; grid-template-columns: repeat(4, 1fr); align-items: start; padding: 7px 8px env(safe-area-inset-bottom); border-top: 1px solid var(--line); background: rgba(255,255,255,.97); box-shadow: 0 -8px 26px rgba(6,31,53,.1); backdrop-filter: blur(12px); }
  .mobile-nav > a, .mobile-nav > button { min-width: 0; display: grid; place-items: center; gap: 2px; border: 0; padding: 4px; color: var(--muted); background: transparent; font-size: .68rem; }
  .mobile-nav svg { width: 22px; height: 22px; }
  .mobile-nav .is-active { color: var(--navy-800); font-weight: 800; }
  .mobile-nav__cart-icon { position: relative; display: grid; place-items: center; width: 45px; height: 45px; margin-top: -20px; border-radius: 50%; color: #fff; background: var(--navy-800); box-shadow: 0 7px 18px rgba(11,53,87,.3); }
  .mobile-nav__cart-icon .cart-count { position: absolute; inset: -4px auto auto -5px; min-width: 18px; height: 18px; font-size: .64rem; }
  .mobile-nav__cart-icon svg { width: 22px; height: 22px; }
  .login-page { grid-template-columns: 1fr 380px; }
  .assignment-layout { grid-template-columns: 1fr; }
  .bulk-assignment-actions { grid-template-columns: 1fr; }
  .order-overview { grid-template-columns: 1fr 1fr; }
  .order-overview > div:nth-child(2) { border: 0; }
  .order-overview > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .order-overview.invoice-overview { grid-template-columns: 1fr 1fr; }
  .order-overview.invoice-overview > div { border-inline-end: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .order-overview.invoice-overview > div:nth-child(2n) { border-inline-end: 0; }
  .order-overview.invoice-overview > div:nth-last-child(-n+2) { border-bottom: 0; }
}

@media (max-width: 700px) {
  .app-header__inner { min-height: 66px; gap: 10px; }
  .brand__mark { width: 38px; height: 38px; border-radius: 10px; }
  .brand__text { display: none; }
  .account-menu summary span, .cart-trigger__label, .cart-trigger__total { display: none; }
  .account-menu summary, .cart-trigger { width: 40px; min-height: 40px; justify-content: center; padding: 6px; }
  .cart-trigger { position: relative; }
  .cart-trigger .cart-count { position: absolute; inset: -5px auto auto -6px; }
  .account-menu__panel { inset-inline: auto 0; }
  .app-shell { padding-top: 20px; padding-bottom: 34px; }
  .is-guest .app-shell { width: 100%; padding: 0; }
  .page-title { min-height: 0; align-items: flex-start; margin-bottom: 20px; }
  .page-title h1 { font-size: 1.65rem; }
  .page-title p { font-size: .82rem; }
  .page-title .text-link { flex: 0 0 auto; font-size: .8rem; }
  .login-page { min-height: 100vh; display: block; border: 0; border-radius: 0; }
  .login-intro { min-height: 245px; padding: 28px 22px; }
  .login-intro h1 { max-width: 330px; margin-bottom: 10px; font-size: 1.8rem; }
  .login-intro p { max-width: 340px; font-size: .87rem; line-height: 1.75; }
  .login-intro__eyebrow { margin-bottom: 12px; }
  .login-intro__features { display: none; }
  .login-card { padding: 27px 22px 34px; }
  .login-card__header { margin-bottom: 23px; }
  .hero-panel, .profile-hero { margin-top: -20px; margin-inline: -14px; padding: 26px 18px; border-radius: 0 0 20px 20px; }
  .hero-panel { gap: 22px; }
  .profile-hero form { flex-direction: column; }
  .profile-hero form button { min-height: 45px; }
  .inline-filter { width: 100%; }
  .card-grid, .categories-grid, .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .catalog-card, .product-card { padding: 10px; }
  .image-frame { height: 105px; }
  .product-card h3 { font-size: .84rem; }
  .product-card .price { font-size: .88rem; }
  .add-form { grid-template-columns: 48px 1fr; }
  .add-form button { padding-inline: 7px; font-size: .78rem; }
  .profile-grid { grid-template-columns: 1fr; }
  .profile-card { grid-template-columns: auto 1fr; }
  .profile-card form { grid-column: 1 / -1; }
  .profile-card button { width: 100%; }
  .product-details { grid-template-columns: 1fr; gap: 24px; padding: 16px; }
  .product-details__image { min-height: 245px; }
  .product-details__image img { max-height: 235px; }
  .add-form--large { grid-template-columns: 100px 1fr; }
  .cart-summary { grid-template-columns: 1fr; }
  .cart-summary > div { padding: 12px 15px; }
  .cart-card > header { align-items: flex-start; padding: 14px; }
  .cart-line { grid-template-columns: 54px minmax(0, 1fr) 36px; gap: 10px; padding: 13px 14px; }
  .cart-line__image { width: 54px; height: 54px; }
  .cart-line .quantity-stepper { grid-column: 2; width: 118px; }
  .cart-line__total { grid-column: 2; text-align: right; }
  .cart-line > form:last-child { grid-column: 3; grid-row: 1 / 3; align-self: end; }
  .cart-card__footer { align-items: stretch; flex-direction: column; padding: 14px; }
  .checkout-form button { width: 100%; }
  .order-card { align-items: flex-start; padding: 14px; }
  .record-tabs { width: 100%; }
  .record-tab { min-width: 0; flex: 1; }
  .order-company-logo { display: none; }
  .invoice-card__mark { display: none; }
  .order-card > div:last-child { min-width: 95px; }
  .invoice-order-card__header { align-items: flex-start; flex-direction: column; gap: 6px; padding: 13px 14px; }
  .invoice-items__heading { display: none; }
  .invoice-item { grid-template-columns: minmax(0, 1fr) auto; gap: 7px 16px; padding: 13px 14px; }
  .invoice-item > * { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
  .invoice-item > *::before { content: attr(data-label); color: var(--muted); font-size: .72rem; font-weight: 400; }
  .invoice-item > strong:first-child { grid-column: 1 / -1; }
  .invoice-item > strong:first-child::before { display: none; }
  .order-overview { grid-template-columns: 1fr 1fr; }
  .order-overview > div { padding: 13px; }
  .order-line { grid-template-columns: 54px minmax(0, 1fr) auto; }
  .order-line > span { grid-column: 2; }
  .order-line > strong { grid-column: 3; grid-row: 1 / 3; }
  .empty-state { padding: 36px 16px; }
  .assignment-users, .assignment-profiles { padding: 15px; }
  .bulk-assignment-card { padding: 18px; }
  .assignment-profile { align-items: stretch; flex-direction: column; }
  .assignment-profile button { width: 100%; }
  .admin-form-grid, .admin-user-details dl { grid-template-columns: 1fr; }
}

@media (max-width: 380px) {
  .card-grid, .categories-grid, .product-grid { grid-template-columns: 1fr; }
  .image-frame { height: 145px; }
  .page-title { display: block; }
  .page-title .text-link { margin-top: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
