@font-face {
  font-family: Onest;
  src: url("onest-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215;
}

@font-face {
  font-family: Onest;
  src: url("onest-cyrillic.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

:root {
  color-scheme: light;
  --ink: #172733;
  --ink-strong: #101c24;
  --muted: #56636d;
  --brand: #ce251a;
  --brand-dark: #a71a11;
  --brand-tint: #fdf0ee;
  --page: #f5f6f7;
  --white: #fff;
  --edge: #e0e5e8;
  --line: #e9edef;
  --green: #237249;
  --radius: 16px;
  --shell: 1248px;
  font-family: Onest, Arial, sans-serif;
  color: var(--ink);
  background: var(--page);
}
*, *::before, *::after { box-sizing: border-box; }
body { display: flex; flex-direction: column; min-height: 100vh; margin: 0; font-size: 15px; line-height: 1.5; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { color: var(--ink-strong); line-height: 1.13; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 3px solid #285f97; outline-offset: 3px; }
[disabled] { cursor: not-allowed; }
.icon { flex: 0 0 auto; display: inline-block; vertical-align: middle; }
.shell { width: min(var(--shell), calc(100% - 88px)); margin-inline: auto; }
.main { flex: 1; padding-block: 34px 74px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: absolute; z-index: 3; left: 18px; top: -64px; padding: 10px 14px; border-radius: 6px; background: var(--ink); color: var(--white); }
.skip-link:focus { top: 10px; }
.nowrap { white-space: nowrap; }

.site-header { border-bottom: 1px solid var(--edge); background: var(--white); }
.header-inner { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.brand { display: inline-flex; align-items: center; gap: 16px; flex: 0 0 auto; }
.brand img { width: 91px; height: 36px; object-fit: contain; }
.brand > span { border-left: 1px solid var(--edge); padding-left: 16px; color: var(--ink); font-size: 12px; line-height: 1.3; font-weight: 700; }
.site-nav { display: flex; align-items: stretch; align-self: stretch; justify-content: center; gap: clamp(14px, 2.5vw, 37px); }
.site-nav a { position: relative; display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); font-size: 14px; font-weight: 650; white-space: nowrap; }
.site-nav a:hover, .site-nav [aria-current] { color: var(--ink); }
.site-nav [aria-current]::after { position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; border-radius: 2px 2px 0 0; background: var(--brand); content: ""; }
.header-actions { display: flex; align-items: center; flex: none; gap: 8px; }
.header-balance, .header-cart, .icon-button { min-height: 41px; border: 1px solid var(--edge); border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--white); }
.header-balance { padding: 7px 10px; font-size: 14px; font-weight: 750; line-height: 1; }
.header-cart { padding: 7px 11px; font-size: 13px; font-weight: 650; }
.icon-button { width: 41px; padding: 0; color: var(--muted); }
.header-cart:hover, .header-cart[aria-current], .header-balance:hover, .icon-button:hover { border-color: #bac6ce; background: var(--page); color: var(--ink); }
.profile-menu { position: relative; }
.profile-avatar {
  display: grid;
  place-items: center;
  width: 41px;
  height: 41px;
  border: 1px solid #efc3bd;
  border-radius: 50%;
  color: var(--brand-dark);
  background: var(--brand-tint);
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}
.profile-avatar::-webkit-details-marker { display: none; }
.profile-avatar:hover, .profile-menu[open] .profile-avatar { border-color: var(--brand-dark); color: var(--white); background: var(--brand-dark); }
.profile-panel {
  position: absolute;
  z-index: 20;
  top: calc(100% + 10px);
  inset-inline-end: 0;
  width: min(240px, calc(100vw - 28px));
  padding: 6px;
  border: 1px solid var(--edge);
  border-radius: 12px;
  background: var(--white);
  box-shadow: 0 12px 28px rgb(23 39 51 / 14%);
}
.profile-name { padding: 9px 10px 11px; border-bottom: 1px solid var(--line); font-size: 14px; font-weight: 750; overflow-wrap: anywhere; }
.profile-panel nav { margin-block: 4px; }
.profile-panel form { border-top: 1px solid var(--line); padding-top: 4px; }
.profile-link {
  display: flex;
  align-items: center;
  gap: 7px;
  width: 100%;
  min-height: 42px;
  padding: 8px 10px;
  border: 0;
  border-radius: 7px;
  color: var(--ink);
  background: transparent;
  font-size: 14px;
  font-weight: 650;
  text-align: start;
}
.profile-link:hover, .profile-link[aria-current] { color: var(--brand-dark); background: var(--brand-tint); }
.profile-logout { color: var(--muted); }
.profile-logout .icon { width: 16px; height: 16px; }
.coin { display: inline-grid; place-items: center; flex: none; width: 23px; height: 23px; border-radius: 50%; background: var(--brand-tint); color: var(--brand-dark); font-size: 14px; font-weight: 800; line-height: 1; }
.site-footer { border-top: 1px solid var(--edge); color: var(--muted); background: var(--white); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 71px; padding-block: 12px; font-size: 13px; }
.footer-inner a { display: inline-flex; align-items: center; gap: 6px; font-weight: 650; }
.footer-inner a:hover { color: var(--brand-dark); }
.footer-inner .icon { width: 14px; height: 14px; }

.button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 44px; padding: 10px 17px; border: 1px solid transparent; border-radius: 9px; color: inherit; font-size: 14px; font-weight: 720; line-height: 1.35; text-align: center; transition: background-color .18s, border-color .18s, color .18s; }
.button--primary { background: var(--brand); color: var(--white); }
.button--primary:hover:not(:disabled) { background: var(--brand-dark); }
.button--secondary { border-color: #d3dbe0; background: var(--white); color: var(--ink); }
.button--secondary:hover:not(:disabled) { border-color: #a7b5bf; background: #edf2f4; }
.button--light { background: var(--white); color: var(--ink); }
.button--light:hover { background: #e8ebee; }
.button--danger { border-color: #efc3bd; background: var(--brand-tint); color: var(--brand-dark); }
.button--danger:hover:not(:disabled) { background: #f9ded9; }
.button--large { min-height: 52px; padding-inline: 20px; font-size: 15px; }
.button--small { min-height: 38px; padding: 7px 11px; font-size: 13px; }
.button--block { display: flex; width: 100%; }
.button:disabled { border-color: var(--edge); color: #626d75; background: #eff2f4; }
.button .icon { width: 18px; height: 18px; }

.notices { display: grid; gap: 8px; margin-bottom: 20px; }
.notice { padding: 13px 15px; border: 1px solid #cbd9e4; border-radius: 10px; color: #284b65; background: #ecf4fa; font-weight: 600; overflow-wrap: anywhere; }
.notice--success { border-color: #c3ded0; color: #185c38; background: #e9f5ee; }
.notice--error { border-color: #efc3bd; color: #9c2018; background: #fcedeb; }
.notice--warning { border-color: #ead9ac; color: #76540c; background: #fff6db; }

.catalog-hero, .login-visual {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: var(--white);
  background: var(--ink);
}
.catalog-hero {
  min-height: 382px;
  display: flex;
  align-items: center;
  border-radius: 23px;
  background: #172733;
}
.catalog-hero::before, .login-visual::before {
  position: absolute;
  z-index: -2;
  inset: 0;
  content: "";
  background: url("route-map.webp") center / cover no-repeat;
}
.catalog-hero::before { left: 28%; background-position: 52% 56%; }
.catalog-hero::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, #172733 0%, #172733 28%, rgb(23 39 51 / .88) 43%, rgb(23 39 51 / .27) 72%, rgb(18 31 43 / .09) 100%);
}
.hero-content { width: min(100%, 630px); padding: 39px clamp(36px, 5.2vw, 75px) 43px; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; color: var(--brand-dark); font-size: 11px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.eyebrow::before { display: inline-block; width: 16px; height: 2px; background: currentColor; content: ""; }
.eyebrow--light { color: #fff; }
.eyebrow--light::before { background: #fa5c4d; }
.hero-content h1 { margin-block: 15px 15px; color: var(--white); font-size: clamp(47px, 5.6vw, 75px); line-height: .96; letter-spacing: -.055em; font-weight: 800; }
.hero-content p { color: #e9eef2; font-size: clamp(14px, 1.5vw, 17px); line-height: 1.5; }
.hero-content .button { margin-top: 25px; }
.catalog-section { padding-top: 45px; scroll-margin-top: 15px; }
.section-heading, .page-heading--split, .heading-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 15px; }
.section-heading h2 { font-size: clamp(30px, 3.9vw, 46px); letter-spacing: -.05em; font-weight: 770; }
.balance-summary { display: inline-flex; align-items: center; gap: 9px; border: 1px solid var(--edge); border-radius: 10px; padding: 8px 11px; color: var(--muted); background: var(--white); font-size: 13px; }
.balance-summary strong { margin-left: 3px; color: var(--ink); white-space: nowrap; }
.balance-summary:hover { border-color: #b7c3ca; }
.balance-summary .icon { width: 15px; height: 15px; }
.catalog-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 18px; margin-top: 18px; margin-bottom: 19px; }
.category-nav { display: flex; flex-wrap: wrap; gap: 7px; }
.category-nav a { border: 1px solid #d5dde2; border-radius: 50px; padding: 8px 13px; color: var(--muted); background: var(--white); font-size: 13px; font-weight: 700; }
.category-nav a:hover { border-color: #a7b5bf; color: var(--ink); }
.category-nav [aria-current] { border-color: var(--ink); color: var(--white); background: var(--ink); }
.category-nav [aria-current]:hover { color: var(--white); }

.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.product-card { display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--edge); border-radius: 16px; overflow: hidden; background: var(--white); }
.product-card__media { display: grid; place-items: center; aspect-ratio: 1.48; overflow: hidden; background: #ebe8e3; }
.product-card__media img { width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.product-placeholder { display: grid; place-items: center; width: 100%; height: 100%; color: #a9a39e; background: radial-gradient(ellipse at 38% 24%, #f5f3f0, #e6e3dd); }
.product-placeholder .icon { width: 52px; height: 52px; stroke-width: 1.1; }
.product-card__body { display: flex; flex: 1; flex-direction: column; align-items: start; padding: 20px; }
.product-category { margin-bottom: 4px; color: var(--brand-dark); font-size: 11px; font-weight: 780; letter-spacing: .1em; text-transform: uppercase; overflow-wrap: anywhere; }
.product-card h3 { font-size: 24px; font-weight: 750; letter-spacing: -.035em; overflow-wrap: anywhere; }
.product-description { margin-top: 7px; color: var(--muted); font-size: 14px; overflow-wrap: anywhere; }
.product-price { display: flex; align-items: center; gap: 6px; width: 100%; margin-top: auto; padding-top: 15px; color: var(--muted); font-size: 13px; }
.product-price strong { color: var(--ink); font-size: 24px; line-height: 1; letter-spacing: -.048em; }
.product-form { width: 100%; }
.product-form fieldset { min-width: 0; margin: 12px 0 0; padding: 0; border: 0; }
.variant-choices { display: flex; flex-wrap: wrap; gap: 6px; }
.variant-choice { display: inline-flex; position: relative; }
.variant-choice input { position: absolute; inline-size: 1px; block-size: 1px; opacity: 0; }
.variant-choice label { display: grid; place-items: center; min-width: 35px; min-height: 33px; border: 1px solid var(--edge); border-radius: 7px; padding: 4px 8px; color: var(--ink); background: var(--white); cursor: pointer; font-size: 13px; font-weight: 650; }
.variant-choice input:disabled + label { color: #6d777f; background: var(--page); cursor: not-allowed; text-decoration: line-through; }
.variant-choice input:checked + label { border-color: var(--ink); background: var(--ink); color: var(--white); }
.variant-choice input:focus-visible + label { outline: 3px solid #285f97; outline-offset: 2px; }
.stock { min-height: 1.4em; margin-block: 8px 11px; color: var(--green); font-size: 12px; font-weight: 650; }
.stock--empty { color: var(--muted); }
.variant-fallback { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 9px; }
.product-grid__empty { grid-column: 1 / -1; border: 1px solid var(--edge); border-radius: var(--radius); background: var(--white); }

.main--auth { display: flex; flex-direction: column; justify-content: center; min-height: 630px; }
.login-layout { display: grid; grid-template-columns: 1.2fr 1fr; min-height: 530px; overflow: hidden; border: 1px solid var(--edge); border-radius: 23px; background: var(--white); }
.login-visual { display: flex; align-items: end; padding: clamp(25px, 5vw, 63px); }
.login-visual::before { background-position: 59% center; }
.login-visual::after { position: absolute; z-index: -1; inset: 0; content: ""; background: linear-gradient(0deg, #13232f 1%, rgb(19 35 47 / .86) 26%, rgb(19 35 47 / .14) 76%); }
.login-visual-text p { margin-top: 16px; font-size: clamp(33px, 4vw, 57px); font-weight: 800; letter-spacing: -.055em; line-height: 1.02; }
.login-panel { align-self: center; padding: clamp(30px, 5.5vw, 74px); }
.login-panel h1 { margin-block: 10px 13px; font-size: clamp(36px, 4.7vw, 62px); font-weight: 780; letter-spacing: -.064em; }
.login-panel > p { max-width: 34ch; color: var(--muted); font-size: 16px; }
.login-action { margin-top: 25px; }
.demo-actions { margin-top: 24px; padding-top: 15px; border-top: 1px solid var(--edge); }
.demo-actions > p { margin-bottom: 10px; color: var(--muted); font-size: 13px; font-weight: 650; }

.page-heading { margin-bottom: 24px; }
.page-heading h1 { font-size: clamp(34px, 4.6vw, 58px); font-weight: 780; letter-spacing: -.055em; overflow-wrap: anywhere; }
.page-heading p { max-width: 62ch; margin-top: 7px; color: var(--muted); font-size: 16px; }
.heading-row { justify-content: start; }
.back-link { display: inline-flex; align-items: center; gap: 7px; margin-bottom: 14px; color: var(--muted); font-size: 13px; font-weight: 700; }
.back-link:hover, .text-link:hover, .table-link:hover { color: var(--brand-dark); }
.back-link .icon, .pickup-note .icon { width: 17px; height: 17px; }
.panel { min-width: 0; border: 1px solid var(--edge); border-radius: var(--radius); background: var(--white); }
.panel h2 { font-size: 23px; letter-spacing: -.035em; }
.data-panel + .data-panel, .detail-grid + .data-panel { margin-top: 18px; }
.panel-heading, .panel-body, .editable-panel, .checkout-panel { padding: 22px 24px; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 13px; }
.panel-empty { padding: 17px 24px 23px; color: var(--muted); }
.panel-heading + .panel-empty { padding-top: 0; }
.detail-grid { display: grid; align-items: start; grid-template-columns: minmax(0, 1.65fr) minmax(265px, .75fr); gap: 18px; }
.detail-grid--forms { grid-template-columns: minmax(0, 1fr) minmax(270px, .66fr); }
.narrow-panel { max-width: 620px; }
.empty-state { display: grid; justify-items: center; gap: 8px; padding: 48px 23px; text-align: center; }
.empty-state h2, .empty-state h3 { font-size: 27px; letter-spacing: -.04em; }
.empty-state p { max-width: 50ch; color: var(--muted); }
.empty-state a { margin-top: 8px; }
.empty-icon { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 4px; border-radius: 12px; color: var(--brand-dark); background: var(--brand-tint); }
.empty-icon .icon { width: 23px; height: 23px; }

.cart-panel { padding: 0 18px; }
.cart-line { display: grid; align-items: center; grid-template-columns: 76px minmax(96px, 1fr) auto max-content; gap: 13px; padding: 17px 0; }
.cart-line + .cart-line { border-top: 1px solid var(--line); }
.cart-line__media { display: grid; place-items: center; width: 76px; height: 76px; overflow: hidden; border-radius: 10px; color: var(--muted); background: #ebe8e3; }
.cart-line__media img, .thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-line__info h2 { font-size: 17px; overflow-wrap: anywhere; }
.cart-line__info p { margin-top: 4px; color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.cart-line__controls, .quantity-form { display: flex; align-items: center; gap: 7px; }
.quantity-form input { width: 58px; min-height: 38px; padding: 5px 6px; }
.cart-line__controls .icon-button { width: 38px; min-height: 38px; }
.cart-line__amount { text-align: right; white-space: nowrap; }
.cart-line__amount span { display: block; color: var(--muted); font-size: 12px; font-weight: 500; }
.summary-list { display: grid; gap: 10px; margin-block: 16px; }
.summary-list div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 10px; }
.summary-list dt { color: var(--muted); font-size: 14px; }
.summary-list dd { margin: 0; font-weight: 650; overflow-wrap: anywhere; }
.summary-total { margin-top: 3px; padding-top: 13px; border-top: 1px solid var(--line); }
.summary-total dt, .summary-total dd { color: var(--ink); font-size: 17px; font-weight: 780; }
.pickup-note { display: flex; align-items: center; gap: 7px; margin-top: 13px; color: var(--muted); font-size: 13px; }
.checkout-panel > .pickup-note + form { margin-top: 13px; }
.form-message { padding: 10px 12px; border-radius: 8px; color: var(--muted); background: var(--page); overflow-wrap: anywhere; }
.form-message--error { margin-bottom: 12px; color: var(--brand-dark); background: var(--brand-tint); }
.cancel-details { margin-top: 14px; }
.cancel-details summary { color: var(--brand-dark); font-size: 14px; font-weight: 700; cursor: pointer; }
.cancel-details form { display: grid; gap: 8px; margin-top: 11px; }
.cancel-details label { font-size: 13px; font-weight: 650; }

.wallet-card { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 15px; margin-bottom: 18px; padding: 24px 28px; border-radius: var(--radius); color: #e5eef5; background: linear-gradient(120deg, #172733, #2b3f4e); }
.wallet-card h2 { margin-bottom: 7px; color: #f5f8fa; font-size: 15px; font-weight: 650; }
.wallet-card p, .employee-balance { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; }
.wallet-card strong { color: var(--white); font-size: clamp(32px, 5vw, 49px); letter-spacing: -.055em; line-height: 1; }
.employee-balance { margin-top: 13px; color: var(--muted); }
.employee-balance strong { color: var(--ink); font-size: 32px; letter-spacing: -.05em; line-height: 1; }
.role-panel { margin-top: 18px; padding-top: 17px; border-top: 1px solid var(--line); }
.role-panel h3 { margin-bottom: 9px; font-size: 15px; }

.table-wrap { overflow-x: auto; border-radius: inherit; }
table { width: 100%; border-collapse: collapse; text-align: left; }
thead { background: #f8f9fa; }
th, td { padding: 12px 16px; vertical-align: middle; }
th:first-child, td:first-child { padding-left: 24px; }
th:last-child, td:last-child { padding-right: 24px; }
thead th { border-bottom: 1px solid var(--line); color: var(--muted); font-size: 12px; font-weight: 750; white-space: nowrap; }
tbody tr + tr { border-top: 1px solid var(--line); }
tbody td { color: var(--muted); font-size: 14px; }
tbody th { color: var(--ink); font-weight: 700; }
tbody th small { display: block; margin-top: 2px; color: var(--muted); font-size: 13px; font-weight: 500; }
tbody td, tbody th { overflow-wrap: anywhere; }
thead th.column-end, tbody td.column-end { text-align: right; }
.table-link, .text-link { display: inline-flex; align-items: center; gap: 5px; color: var(--ink); font-size: 13px; font-weight: 700; white-space: nowrap; }
.table-link .icon { width: 16px; height: 16px; }
.status { display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px; border-radius: 50px; color: #4b5964; background: #eaf0f3; font-size: 12px; font-weight: 700; white-space: nowrap; }
.status::before { display: block; width: 6px; height: 6px; border-radius: 50%; background: currentColor; content: ""; }
.status--placed { color: #775508; background: #fff2d6; }
.status--issued { color: #216442; background: #e8f4ec; }
.status--cancelled { color: #9c2118; background: #fbecea; }
.ledger-value { color: var(--ink); font-weight: 770; white-space: nowrap; }
.ledger-value--positive { color: var(--green); }
.row-title { display: inline-flex; align-items: center; gap: 9px; }
.row-title:hover, tbody th a:hover { color: var(--brand-dark); }
.thumb { display: grid; place-items: center; flex: none; width: 44px; height: 44px; overflow: hidden; border-radius: 7px; color: var(--muted); background: #ebe8e3; }
.section-nav { display: flex; flex-wrap: wrap; gap: 5px; width: fit-content; margin-bottom: 25px; padding: 4px; border: 1px solid var(--edge); border-radius: 12px; background: var(--white); }
.section-nav a { padding: 7px 12px; border-radius: 8px; color: var(--muted); font-size: 13px; font-weight: 720; }
.section-nav a:hover { color: var(--ink); background: var(--page); }
.section-nav [aria-current] { color: var(--white); background: var(--ink); }
.section-nav [aria-current]:hover { color: var(--white); background: var(--ink); }
.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.metric { position: relative; display: grid; justify-items: start; gap: 6px; min-width: 0; border: 1px solid var(--edge); border-radius: var(--radius); padding: 18px; background: var(--white); }
a.metric:hover { border-color: #9eafb9; }
.metric__icon { display: grid; place-items: center; width: 36px; height: 36px; margin-bottom: 5px; border-radius: 9px; color: var(--brand-dark); background: var(--brand-tint); }
.metric > .icon { position: absolute; top: 18px; right: 18px; width: 17px; height: 17px; color: var(--muted); }
.metric small { color: var(--muted); font-size: 13px; font-weight: 650; }
.metric strong { font-size: clamp(26px, 4vw, 45px); letter-spacing: -.05em; line-height: 1; overflow-wrap: anywhere; }
.metric--balance { color: var(--white); background: var(--ink); }
.metric--balance small { color: #e2ebf1; }

.filters { display: flex; align-items: end; flex-wrap: wrap; gap: 8px; margin-bottom: 15px; }
.catalog-search { margin-bottom: 0; }
.catalog-search .search-field { width: min(230px, 100%); }
.filters > .text-link { align-self: center; margin-inline: 5px; }
.filter-field { display: grid; gap: 4px; }
.filter-field > label { color: var(--muted); font-size: 12px; font-weight: 700; }
input:not([type=hidden], [type=checkbox], [type=radio]), select, textarea { min-width: 0; min-height: 44px; border: 1px solid #d3dbe0; border-radius: 8px; padding: 8px 11px; color: var(--ink); background: var(--white); }
input[type=checkbox] { margin: 0 0 0 4px; accent-color: var(--brand); width: 17px; height: 17px; vertical-align: middle; }
.quantity-form input { width: 63px; min-height: 38px; padding: 5px 6px; text-align: center; }
textarea { width: 100%; resize: vertical; }
select { padding-right: 27px; }
.search-field { position: relative; min-width: 0; }
.search-field .icon { position: absolute; z-index: 1; left: 10px; top: 50%; width: 17px; height: 17px; transform: translateY(-50%); pointer-events: none; color: var(--muted); }
.search-field input { width: 100%; padding-left: 32px; }
.order-filters .search-field { width: min(260px, 100%); }
.editable-panel > h2 + p { margin-top: 6px; }
.editable-panel > p { color: var(--muted); font-size: 14px; }
.editable-panel > p + a { margin-top: 14px; }
.field-form { display: grid; justify-items: start; gap: 13px; }
.editable-panel > h2 + form, .editable-panel > p + form { margin-top: 17px; }
.field-form > div { width: 100%; }
.field-form label { display: inline-block; margin-bottom: 4px; font-size: 13px; font-weight: 700; }
.field-form input:not([type=checkbox], [type=hidden], [type=radio]), .field-form select, .field-form textarea { width: 100%; }
.field-form .helptext { margin-block: 4px; color: var(--muted); font-size: 12px; }
.field-form .errorlist { margin: 0; padding: 6px 9px; border-radius: 6px; list-style: none; color: var(--brand-dark); background: var(--brand-tint); font-size: 13px; }
.field-form [aria-invalid=true] { border-color: #c64035; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.variant-admin-list { display: grid; margin-block: 13px; padding: 0; list-style: none; }
.variant-admin-list li { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.variant-admin-list small { display: block; color: var(--muted); }

@media (max-width: 1000px) {
  .shell { width: calc(100% - 52px); }
  .header-inner { gap: 18px; }
  .brand { gap: 11px; }
  .brand > span { padding-left: 11px; }
  .cart-line { grid-template-columns: 58px minmax(80px, 1fr) max-content; }
  .cart-line__media { width: 58px; height: 58px; }
  .cart-line__controls { grid-column: 2; grid-row: 2; }
  .cart-line__amount { grid-column: 3; grid-row: 1 / span 2; }
}

@media (max-width: 800px) {
  .shell { width: calc(100% - 40px); }
  .header-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 8px; padding-top: 10px; }
  .brand { min-height: 48px; }
  .site-nav { grid-row: 2; grid-column: 1 / -1; justify-content: start; gap: 22px; overflow-x: auto; }
  .site-nav [aria-current]::after { bottom: 0; }
  .header-actions { grid-column: 2; grid-row: 1; }
  .header-inner:has(.brand:only-child) { padding-block: 10px; }
  .main { padding-block: 23px 49px; }
  .catalog-hero { min-height: 328px; }
  .catalog-hero::before { left: 18%; }
  .catalog-hero::after { background: linear-gradient(90deg, #172733 0%, #172733 18%, rgb(23 39 51 / .85) 40%, rgb(23 39 51 / .28) 100%); }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .login-layout { min-height: 460px; grid-template-columns: 1fr 1fr; }
  .main--auth { min-height: 0; }
  .detail-grid { grid-template-columns: minmax(0, 1fr); gap: 13px; }
  .cart-line { grid-template-columns: 65px minmax(96px, 1fr) auto max-content; }
  .cart-line__controls, .cart-line__amount { grid-column: auto; grid-row: auto; }
  .cart-line__media { width: 65px; height: 65px; }
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
}

@media (max-width: 545px) {
  .shell { width: calc(100% - 28px); }
  .header-actions { gap: 4px; }
  .header-balance, .header-cart { min-height: 35px; }
  .header-cart, .header-balance { padding-inline: 7px; }
  .header-cart .icon { width: 17px; height: 17px; }
  .header-cart span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .profile-avatar { width: 36px; height: 36px; }
  .brand { gap: 8px; }
  .brand img { width: 65px; height: 28px; }
  .brand > span { padding-left: 8px; font-size: 9px; }
  .site-nav { gap: 16px; }
  .site-nav a { font-size: 13px; }
  .main { padding-top: 16px; }
  .catalog-hero { min-height: 338px; align-items: end; border-radius: 16px; }
  .catalog-hero::before { inset: 0; background-position: 58% center; }
  .catalog-hero::after { background: linear-gradient(0deg, #172733 0%, rgb(23 39 51 / .94) 27%, rgb(23 39 51 / .62) 70%, rgb(23 39 51 / .32) 100%); }
  .hero-content { padding: 29px 20px; }
  .hero-content h1 { margin-block: 11px; font-size: clamp(43px, 10.1vw, 58px); }
  .hero-content .button { margin-top: 17px; }
  .hero-break { display: none; }
  .catalog-section { padding-top: 28px; }
  .catalog-toolbar { margin-block: 13px; }
  .catalog-search { width: 100%; flex-wrap: nowrap; }
  .catalog-search .search-field { flex: 1 1 auto; }
  .product-card { border-radius: 13px; }
  .product-card__body { padding: 12px; }
  .product-card h3 { font-size: 19px; }
  .product-description { font-size: 12px; }
  .product-card .button { gap: 5px; padding-inline: 6px; font-size: 12px; }
  .product-price { padding-top: 10px; }
  .product-price strong { font-size: 20px; }
  .variant-choice label { min-width: 28px; min-height: 29px; padding-inline: 4px; font-size: 12px; }
  .login-layout { grid-template-columns: 1fr; border-radius: 16px; }
  .login-visual { min-height: 225px; padding: 21px; }
  .login-visual-text p { margin-top: 11px; }
  .login-panel { padding: 24px 21px; }
  .login-panel h1 { margin-block: 6px 9px; }
  .panel-heading, .panel-body, .editable-panel, .checkout-panel, .panel-empty { padding-inline: 16px; }
  th, td { padding-inline: 10px; }
  th:first-child, td:first-child { padding-left: 16px; }
  th:last-child, td:last-child { padding-right: 16px; }
  .wallet-card { padding: 19px 16px; }
  .cart-panel { padding-inline: 13px; }
  .cart-line { grid-template-columns: 52px minmax(0, 1fr) max-content; gap: 8px; }
  .cart-line__media { width: 52px; height: 52px; }
  .cart-line__controls { grid-column: 2 / span 2; grid-row: 2; }
  .cart-line__amount { grid-column: 3; grid-row: 1; }
  .metric { padding: 13px; }
}

@media (max-width: 370px) {
  .product-grid { grid-template-columns: 1fr; }
  .cart-line__amount { font-size: 13px; }
  .brand > span { display: none; }
  .site-nav { gap: 10px; }
  .catalog-search { flex-wrap: wrap; }
  .catalog-search .search-field { flex-basis: 62%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
