@font-face {
  font-family: Inter;
  src: url("original/Inter-Regular.qvK65rjz.woff2");
}
@font-face {
  font-family: Inter;
  src: url("original/Inter-Bold.rHWffXx5.woff2");
  font-weight: 700;
}
@font-face {
  font-family: Oswald;
  src: url("original/Oswald-SemiBold.CCw5DFnt.woff2");
  font-weight: 600;
}
:root {
  --red: #d71920;
  --ink: #222;
  --muted: #999;
  --line: #ddd;
  --bg: #fafafa;
  --dc-color-white-100: #fff;
  --dc-color-black-100: #222;
  --dc-color-primary-60: #d71920;
  --dc-color-primary-10: #fff5f5;
  --dc-color-accent-60: #f9ce4d;
  --font-size-sm: 12px;
  font-family: Inter, Arial, sans-serif;
  background: #fafafa;
}
body {
  font-family: Inter, Arial, sans-serif;
}
h1,
h2 {
  font-family: Oswald, Arial, sans-serif;
  font-weight: 600;
  letter-spacing: 0;
}
h1 {
  font-size: 30px;
}
h2 {
  font-size: 24px;
}
.primary {
  background: var(--red);
  border-color: var(--red);
}
.primary:hover {
  background: #bb1119;
}
.preview-bar {
  min-height: 24px;
  padding: 3px 24px;
  font-size: 11px;
  background: #f2f2f2;
  color: #666;
}
.preview-bar button {
  font-size: 11px;
  color: #666;
  padding: 0;
}
.original-header {
  height: 70px;
  padding: 10px 32px;
  display: flex;
  gap: 20px;
  background: white;
  border-bottom: 1px solid #eee;
  position: relative;
  top: auto;
  z-index: 12;
}
.original-logo {
  width: 72px;
  flex-shrink: 0;
}
.original-logo img {
  width: 100%;
  height: 52px;
}
.original-header .search {
  flex: 1;
  min-width: 180px;
  max-width: none;
  height: 44px;
  margin: 0;
  background: #fafafa;
}
.original-header .search input {
  width: 100%;
  background: transparent;
}
.original-header .search button {
  font-size: 25px;
  color: #888;
}
.catalog-button {
  font-size: 18px;
  white-space: nowrap;
}
.company-link {
  background: #fdf5f5;
  min-width: 140px;
  padding: 8px;
  font-size: 12px;
  max-width: 180px;
}
.company-link small {
  display: block;
  color: #999;
  margin-top: 4px;
}
.price-select {
  min-width: 155px;
}
.price-select label {
  font-size: 10px;
}
.price-select select {
  padding: 5px;
  max-width: 170px;
}
.header-cart {
  width: 30px;
  color: var(--red);
}
svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
main {
  max-width: none;
  padding: 24px 32px 140px;
  min-height: calc(100vh - 150px);
}
main:has(.original-catalog) {
  padding: 0 0 120px;
}
footer {
  display: none;
}
.original-catalog {
  background: #fafafa;
}
.category-navigation {
  padding: 16px 26px;
  display: flex;
  gap: 20px;
  align-items: flex-end;
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 10;
}
.categories {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0;
  flex: 1;
}
.chip {
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 6px 12px;
  font-size: 16px;
  line-height: 20px;
  white-space: nowrap;
}
.chip.selected {
  background: var(--red);
  color: white;
  border-color: var(--red);
}
.density-controls {
  display: flex;
  gap: 12px;
}
.density-controls button {
  padding: 3px;
  width: 36px;
  height: 36px;
  border: 1px solid #ddd;
  border-radius: 4px;
}
.density-controls button.active {
  border-color: var(--red);
}
.density-icon {
  display: grid;
  gap: 2px;
  width: 26px;
  height: 26px;
}
.density-icon i {
  background: #d4d4d4;
  border-radius: 1px;
}
.active .density-icon i {
  background: var(--red);
}
.d2 {
  grid-template-columns: repeat(2, 1fr);
}
.d4 {
  grid-template-columns: repeat(2, 1fr);
}
.d9 {
  grid-template-columns: repeat(3, 1fr);
}
.catalog-content {
  padding: 20px 32px;
}
.filter-toggle {
  background: transparent;
  border: 1px solid #222;
  border-radius: 4px;
  font-size: 16px;
}
.original-filters {
  background: white;
  padding: 16px;
  margin-bottom: 20px;
}
.original-filters[hidden] {
  display: none;
}
.facet-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.facet {
  position: relative;
}
.facet summary {
  padding: 10px 12px;
  border: 1px solid #222;
  border-radius: 4px;
  font-size: 16px;
  list-style: none;
  cursor: pointer;
  min-width: 120px;
}
.facet[open] summary {
  background: #222;
  color: #fff;
}
.facet-options {
  position: absolute;
  top: 100%;
  left: 0;
  width: 260px;
  max-height: 300px;
  overflow: auto;
  background: #fff;
  box-shadow: 0 4px 20px #0002;
  z-index: 15;
  padding: 10px;
}
.facet-options label {
  display: flex;
  gap: 10px;
  padding: 9px;
  align-items: center;
}
.facet-options small {
  margin-left: auto;
}
.facet-flags {
  display: flex;
  gap: 28px;
  padding-top: 16px;
}
.facet-flags label {
  display: flex;
  align-items: center;
  gap: 8px;
}
input[type="checkbox"] {
  accent-color: var(--red);
  width: 20px;
  height: 20px;
}
.catalog-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 42px 0 35px;
}
.catalog-heading span {
  color: #999;
}
.group-heading {
  background: #fff;
  box-shadow: 0 0 25px #0002;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px;
  margin: 20px 0;
  font-size: 14px;
}
.group-heading > span {
  text-transform: uppercase;
}
.group-heading button {
  border: 0;
  padding: 4px;
}
.group-totals {
  margin-left: auto;
  display: flex;
  gap: 12px;
  font-size: 12px;
}
.original-grid {
  display: grid;
  gap: 4px;
  grid-template-columns: repeat(9, minmax(0, 1fr));
}
.original-grid[hidden] {
  display: none;
}
.density-1 {
  grid-template-columns: 1fr;
  max-width: 700px;
}
.density-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.density-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.c-catalog-item {
  font-size: 12px;
  min-width: 0;
  text-decoration: none;
}
.c-catalog-item__body {
  min-height: 0;
}
.c-catalog-item__image {
  height: 100%;
  min-height: 0;
}
.c-catalog-item__footer {
  font-size: 11px;
  gap: 2px;
}
.c-catalog-item__footer > span {
  overflow: hidden;
  white-space: nowrap;
}
.c-catalog-item__price {
  white-space: nowrap;
}
.pop-marker {
  position: absolute;
  top: 4px;
  left: 4px;
  background: #f7d968;
  font-size: 11px;
  padding: 3px 5px;
  color: #222;
}
.pop-marker.inline {
  position: static;
  display: inline-block;
}
.no-photo {
  margin: auto;
  color: #aaa;
}
.order-dock {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 20;
  background: #fff;
  box-shadow: 0 -4px 24px #0001;
  padding: 14px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  min-height: 100px;
}
.order-dock h2 {
  display: inline;
  margin: 0 18px 0 0;
}
.dock-totals {
  display: inline-flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}
.dock-totals > span:nth-child(-n + 2) {
  color: #999;
}
.order-dock .primary {
  min-width: 160px;
}
.detail-open {
  overflow: hidden;
}
.product-overlay {
  position: fixed;
  inset: 0;
  background: #0007;
  z-index: 40;
  overflow: auto;
  padding: 36px 20px;
}
.original-detail {
  position: relative;
  background: #fff;
  min-height: calc(100vh - 72px);
  padding: 24px 36px 32px 0;
  display: grid;
  grid-template-columns: 36% 38% 26%;
  gap: 0;
  border-radius: 3px;
  box-shadow: 0 8px 30px #0002;
}
.close-detail {
  position: absolute;
  top: 8px;
  right: 8px;
  border: 0;
  background: white;
  font-size: 28px;
  line-height: 22px;
  padding: 0;
  z-index: 4;
  color: #888;
}
.photo-gallery {
  padding: 0 24px 0 0;
}
.main-photo {
  display: block;
  border: 1px solid #ddd;
  border-radius: 2px;
  padding: 0;
  width: 100%;
  aspect-ratio: 1;
  background: #fff;
  cursor: zoom-in;
}
.main-photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.gallery-navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 10px 0;
}
.gallery-navigation button {
  border: 0;
}
.photo-thumbnails {
  display: flex;
  gap: 8px;
  overflow: auto;
  padding: 6px;
}
.photo-thumbnails button {
  padding: 2px;
  width: 64px;
  min-width: 64px;
  height: 64px;
  border: 1px solid #ddd;
}
.photo-thumbnails button[aria-pressed="true"] {
  border-color: var(--red);
}
.photo-thumbnails img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.photo-gallery.zoomed {
  position: fixed;
  inset: 20px;
  background: white;
  z-index: 50;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 0 0 50px #0008;
}
.zoomed .main-photo {
  height: calc(100vh - 180px);
  width: 100%;
  border: 0;
  cursor: crosshair;
}
.zoomed .gallery-navigation {
  width: 100%;
  max-width: 700px;
}
.zoomed:after {
  content: "Наведите на фото для увеличения · Esc — закрыть";
  font-size: 12px;
  color: #777;
}
.product-information {
  padding-right: 32px;
}
.product-information .article {
  font-size: 16px;
  color: #999;
  margin: 4px 0 20px;
}
.product-information h1 {
  font-size: 25px;
  margin: 0 0 24px;
}
.product-information .price-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  background: #fafafa;
  margin-bottom: 24px;
}
.price-option {
  padding: 12px 8px;
  border: 1px solid transparent;
  border-radius: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-start;
  text-align: left;
}
.price-option.active {
  border-color: var(--red);
  background: #fff7f7;
}
.price-option small {
  font-size: 11px;
  color: #999;
}
.price-option strong {
  font-size: 15px;
}
.price-option span {
  font-size: 11px;
  color: #999;
}
.specs {
  margin: 0;
  border: 0;
}
.specs > div {
  display: flex;
  gap: 8px;
  padding: 5px 0;
  border: 0;
}
.specs small {
  min-width: 80px;
  font-size: 14px;
  color: #999;
}
.specs span {
  font-size: 14px;
}
.product-sizes {
  padding-left: 0;
}
.size-table {
  width: 100%;
  margin: 0;
}
.size-table th {
  font-size: 10px;
  color: #999;
  padding: 4px;
  text-align: left;
}
.size-table td {
  padding: 5px 4px;
  height: 41px;
  border-bottom: 1px solid #eee;
}
.quantity-stepper {
  display: flex;
  align-items: center;
  background: #f7f7f7;
  max-width: 116px;
}
.quantity-stepper button {
  border: 0;
  padding: 2px 6px;
  background: transparent;
  font-size: 23px;
  width: 32px;
  height: 30px;
}
.quantity-stepper input {
  width: 42px;
  min-width: 0;
  border: 0;
  background: transparent;
  text-align: center;
  padding: 0;
  height: 30px;
  appearance: textfield;
  -moz-appearance: textfield;
}
.quantity-stepper input::-webkit-inner-spin-button {
  appearance: none;
}
.clear-sizes {
  display: block;
  margin-left: auto;
  border: 0;
  color: var(--red);
  font-size: 11px;
  padding: 8px 0;
}
.detail-total {
  border: 1px solid #ddd;
  border-radius: 3px;
  padding: 14px 12px;
  margin: 10px 0;
  font-size: 14px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
}
.manager-note {
  font-size: 11px;
  line-height: 1.5;
  color: #999;
}
.collection-label {
  color: #999;
  font-size: 12px;
}
.original-basket {
  padding: 0 32px;
}
.original-basket > h1 {
  margin: 25px 0;
}
.category-summary {
  background: white;
  margin-bottom: 36px;
}
.category-summary th,
.category-summary td {
  padding: 22px 16px;
  border: 0;
}
.category-summary thead {
  border-bottom: 1px solid #222;
}
.category-summary tfoot {
  border: 1px solid #ddd;
}
.original-basket textarea {
  max-width: 680px;
  height: 80px;
}
.original-basket .notice {
  max-width: 680px;
}
.order-product {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr 1fr 1fr;
  gap: 24px;
  background: #fff;
  margin-top: 24px;
  padding: 24px;
}
.order-product > div:first-child img {
  width: 100px;
  float: left;
  margin-right: 16px;
}
.order-product p {
  color: #999;
  font-size: 12px;
}
.basket-size {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 4px 0;
}
.basket-size b {
  min-width: 35px;
}
.basket-size input {
  width: 65px;
}
.account-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 48px;
}
.account-layout aside a {
  display: block;
  padding: 24px 18px;
  color: #999;
  font-weight: 700;
}
.account-layout aside a.active {
  background: white;
  border-left: 3px solid var(--red);
  color: #222;
}
.account-layout section {
  background: white;
  padding: 32px;
}
.list {
  background: #fff;
}
.list td,
.list th {
  border-color: #fafafa;
}
.list td {
  padding: 22px 16px;
}
.pagination {
  padding: 24px;
}
.original-detail .wide {
  width: 100%;
}
@media (max-width: 1100px) {
  .original-header {
    gap: 12px;
    padding: 10px 20px;
  }
  .company-link {
    min-width: 100px;
  }
  .original-grid.density-9 {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
  .group-totals {
    display: none;
  }
  .original-detail {
    grid-template-columns: 32% 36% 32%;
    padding-right: 24px;
  }
  .product-information {
    padding-right: 20px;
  }
  .dock-totals {
    font-size: 12px;
  }
  .order-dock h2 {
    font-size: 22px;
  }
  .category-navigation {
    flex-wrap: wrap;
  }
  .account-layout {
    grid-template-columns: 220px 1fr;
  }
}
@media (max-width: 720px) {
  .original-header {
    height: auto;
    flex-wrap: wrap;
    padding: 8px 16px;
    gap: 8px;
  }
  .original-logo {
    width: 48px;
  }
  .original-logo img {
    height: 36px;
  }
  .catalog-button {
    font-size: 14px;
    padding: 8px;
  }
  .original-header .search {
    order: 5;
    flex-basis: 100%;
  }
  .price-select {
    margin-left: auto;
    min-width: 130px;
  }
  .company-link {
    display: none;
  }
  .category-navigation {
    position: relative;
    padding: 12px 16px;
  }
  .chip {
    font-size: 12px;
    padding: 4px 8px;
  }
  .categories {
    gap: 6px;
  }
  .catalog-content {
    padding: 16px;
  }
  .catalog-heading {
    margin: 24px 0;
  }
  .original-grid.density-9 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .original-grid.density-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .c-catalog-item__footer {
    font-size: 9px;
  }
  .order-dock {
    padding: 10px 16px;
    gap: 8px;
  }
  .order-dock h2 {
    display: block;
    font-size: 18px;
  }
  .dock-totals {
    gap: 4px 8px;
    font-size: 10px;
  }
  .order-dock .primary {
    min-width: 110px;
    padding: 10px;
    font-size: 12px;
  }
  .facet-flags {
    flex-wrap: wrap;
  }
  .product-overlay {
    padding: 12px;
  }
  .original-detail {
    grid-template-columns: 1fr;
    padding: 24px 16px;
    gap: 20px;
  }
  .photo-gallery {
    padding: 0;
  }
  .main-photo {
    max-height: 320px;
  }
  .product-information {
    padding: 0;
  }
  .product-sizes {
    max-width: 100%;
  }
  .quantity-stepper {
    margin-left: auto;
  }
  .size-table td:last-child {
    text-align: right;
  }
  .product-information .price-options {
    grid-template-columns: repeat(2, 1fr);
  }
  .account-layout {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .account-layout aside {
    display: flex;
  }
  .account-layout aside a {
    padding: 12px;
  }
  .original-basket {
    padding: 0;
  }
  .order-product {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
  .order-product > div:first-child {
    grid-column: 1/-1;
  }
  main {
    padding: 20px 16px 140px;
  }
  .preview-bar span {
    max-width: 75%;
  }
  .group-heading {
    font-size: 12px;
  }
  .group-heading > span {
    font-size: 10px;
  }
  .category-summary td,
  .category-summary th {
    padding: 12px;
    font-size: 12px;
  }
}
.tile-wrap {
  position: relative;
  min-width: 0;
}
.favorite-heart {
  position: absolute;
  left: 2px;
  bottom: 24px;
  z-index: 2;
  width: 24px;
  height: 24px;
  background: #fff5f5;
  border: 0;
  padding: 0;
  border-radius: 4px;
  font-size: 21px;
  color: #222;
}
.favorite-heart.saved {
  color: var(--red);
}
.header-favorite {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 12px;
  gap: 2px;
}
.header-favorite > span {
  font-size: 27px;
  line-height: 28px;
  color: var(--red);
}
.original-filters .facet-flags {
  flex-wrap: wrap;
}
.order-dock:has(.category-dock) {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
}
.category-dock {
  border-right: 1px solid #ecdada;
  padding-right: 20px;
}
.category-dock .dock-totals {
  display: flex;
}
.account-layout .table-wrap {
  margin: 0;
}
.account-layout .list td {
  border-bottom: 8px solid #fafafa;
}
.original-header .search {
  border: 1px solid #ddd;
  border-radius: 3px;
}
.original-header .search input {
  border: 0;
}
.original-header .search button {
  border: 0;
}
.density-9 .tile-wrap {
  min-width: 0;
}
@media (max-width: 720px) {
  .header-favorite {
    font-size: 10px;
  }
  .header-favorite small {
    display: none;
  }
  .order-dock:has(.category-dock) {
    display: flex;
  }
  .category-dock {
    display: none;
  }
  .header-cart {
    width: 22px;
  }
  .company-link {
    display: none;
  }
}
.product-information .specs,
.account-layout .specs {
  display: block;
}
.account-orders {
  padding: 0 !important;
}
.detail-total strong {
  font-size: 16px;
}
.product-information .specs small {
  min-width: 85px;
}
.product-information .specs span {
  overflow-wrap: anywhere;
}
.original-login {
  max-width: 440px;
  margin: 70px auto;
  padding: 24px;
  text-align: center;
}
.original-login > img {
  width: 90px;
}
.original-login h1 {
  font-family: Inter, Arial, sans-serif;
  font-size: 30px;
}
.original-login .login-options {
  text-align: left;
}
.original-login > p {
  font-size: 12px;
  line-height: 1.6;
}
.original-login #real-login {
  display: grid;
  gap: 18px;
  margin-top: 28px;
  text-align: left;
}
.original-login #real-login label {
  display: grid;
  gap: 7px;
  font-size: 14px;
}
.original-login #real-login input {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  height: 46px;
  padding: 10px 12px;
  border: 1px solid #d5d5d5;
  border-radius: 5px;
  background: white;
  font: inherit;
}
.original-login #real-login button { width: 100%; min-height: 46px; }
.original-login [data-login-error] { margin: 0; color: #d71920; font-size: 14px; }
/* Match the preorder catalog's selected states and compact controls. */
.quick-cart {
  position: absolute;
  right: 2px;
  bottom: 24px;
  width: 24px;
  height: 24px;
  z-index: 3;
  background: var(--red);
  color: #fff;
  border: 0;
  border-radius: 4px;
  padding: 2px;
}
.quick-cart:hover {
  background: #b5121b;
}
.basket-counter {
  position: absolute;
  top: -9px;
  left: -10px;
  background: #222;
  color: #fff;
  border-radius: 12px;
  padding: 1px 5px;
  font-size: 11px;
}
.c-catalog-item--favorite {
  box-shadow: inset 0 0 0 2px var(--red);
}
.c-catalog-item--basket .c-catalog-item__footer {
  background: #222;
  color: white;
}
.all-categories {
  border: 0;
  background: transparent;
  color: var(--red);
  padding: 4px 0;
  font-size: 13px;
}
.load-more {
  padding: 32px;
  text-align: center;
  color: #888;
  min-height: 80px;
}
.product-information .compact-prices {
  display: flex;
  flex-direction: column;
  gap: 0;
  background: #fafafa;
  max-width: 440px;
  margin-bottom: 22px;
}
.compact-prices .price-option {
  display: grid;
  grid-template-columns: minmax(130px, 1fr) auto 44px;
  gap: 12px;
  align-items: center;
  min-height: 0;
  padding: 7px 10px;
  border: 0;
  border-bottom: 1px solid #e8e8e8;
  width: 100%;
  background: transparent;
}
.compact-prices .price-option.active {
  background: #fff0f1;
  box-shadow: inset 3px 0 var(--red);
  border-color: #e8e8e8;
}
.compact-prices .price-option small {
  font-size: 12px;
  color: #777;
}
.compact-prices .price-option strong {
  font-size: 14px;
  text-align: right;
  white-space: nowrap;
}
.compact-prices .price-option span {
  font-size: 11px;
  color: #999;
  text-align: right;
}
.repeat-sizes {
  background: none;
  border: 0;
  color: var(--red);
  font-size: 12px;
  padding: 9px 0;
  display: block;
}
.summary-open {
  overflow: hidden;
}
.summary-overlay {
  position: fixed;
  inset: 0;
  background: #0006;
  z-index: 60;
  overflow: auto;
  padding: 50px 30px;
}
.category-dialog {
  position: relative;
  background: #fff;
  max-width: 1400px;
  margin: auto;
  padding: 30px 40px;
}
.category-dialog .category-summary {
  margin-bottom: 10px;
}
.category-dialog .actions {
  justify-content: flex-end;
}
.category-dialog h2 {
  margin-top: 0;
}
.category-dialog .table-wrap {
  border: 0;
}
.category-dialog .list td,
.category-dialog .list th {
  padding: 18px 12px;
}
.category-dialog .close-detail {
  top: 12px;
  right: 12px;
}
@media (max-width: 720px) {
  .summary-overlay {
    padding: 12px;
  }
  .category-dialog {
    padding: 30px 12px;
  }
  .compact-prices .price-option {
    grid-template-columns: minmax(100px, 1fr) auto 38px;
  }
  .order-dock .all-categories {
    font-size: 11px;
  }
  .order-dock:has(.category-dock) .category-dock {
    display: block;
    font-size: 10px;
  }
  .category-dock h2,
  .category-dock .dock-totals {
    display: none;
  }
  .order-dock:has(.category-dock) {
    flex-wrap: wrap;
  }
}
.original-catalog {
  overflow-anchor: none;
}
.load-more {
  overflow-anchor: none;
  min-height: 80px;
}
.summary-section {
  display: block;
  border: 0;
  background: none;
  color: var(--red);
  padding: 4px 0;
  font-size: 11px;
}
.repeat-preview {
  border: 1px solid #ddd;
  background: #fafafa;
  padding: 12px;
  margin: 4px 0 12px;
}
.repeat-preview h3 {
  font-size: 14px;
  margin: 0 0 8px;
}
.repeat-preview p {
  font-size: 11px;
  color: #777;
  line-height: 1.5;
}
.repeat-preview table {
  width: 100%;
  font-size: 12px;
  border-collapse: collapse;
}
.repeat-preview th,
.repeat-preview td {
  padding: 7px 4px;
  border-bottom: 1px solid #e5e5e5;
  text-align: left;
}
.repeat-preview th {
  font-size: 10px;
  color: #888;
}
.repeat-preview small {
  display: block;
  font-size: 10px;
  color: #ad1830;
}
.repeat-preview .actions {
  gap: 8px;
  margin: 8px 0 0;
}
.repeat-preview button {
  padding: 7px 12px;
  font-size: 12px;
}
@media (min-width: 1000px) {
  .product-overlay {
    padding: 16px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .original-detail {
    width: 100%;
    height: calc(100dvh - 32px);
    min-height: 0;
    max-height: 900px;
    padding: 24px 28px 20px 16px;
    grid-template-columns: 34% 38% 28%;
    overflow: hidden;
  }
  .photo-gallery:not(.zoomed) {
    min-height: 0;
    padding-right: 22px;
    display: flex;
    flex-direction: column;
  }
  .photo-gallery:not(.zoomed) .main-photo {
    min-height: 0;
    flex: 1;
    aspect-ratio: auto;
    width: 100%;
    height: auto;
    max-height: 100%;
    overflow: hidden;
  }
  .photo-gallery:not(.zoomed) .main-photo img {
    height: 100%;
    max-height: 100%;
    object-fit: contain;
  }
  .photo-thumbnails {
    flex-shrink: 0;
  }
  .gallery-navigation {
    flex-shrink: 0;
    margin: 5px 0;
  }
  .product-information {
    min-height: 0;
    overflow: auto;
    padding-right: 22px;
  }
  .product-information h1 {
    font-size: 23px;
    line-height: 1.25;
    margin-bottom: 16px;
  }
  .product-information .article {
    margin: 0 0 12px;
    font-size: 14px;
  }
  .product-information .compact-prices {
    margin-bottom: 14px;
  }
  .product-information .specs > div {
    padding: 4px 0;
  }
  .product-information .specs small,
  .product-information .specs span {
    font-size: 12px;
    line-height: 1.45;
  }
  .product-sizes {
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: auto;
  }
  .product-sizes form {
    display: flex;
    flex-direction: column;
    min-height: 0;
  }
  .size-list {
    overflow: auto;
    min-height: 60px;
    flex: 1;
  }
  .size-table td {
    height: 34px;
    padding: 3px 4px;
  }
  .size-table thead {
    position: sticky;
    top: 0;
    background: #fafafa;
    z-index: 1;
  }
  .repeat-sizes,
  .clear-sizes {
    padding: 7px 0;
    flex-shrink: 0;
  }
  .detail-total {
    padding: 10px;
    margin: 7px 0;
    flex-shrink: 0;
  }
  .product-sizes .primary {
    padding: 10px;
    flex-shrink: 0;
  }
  .manager-note {
    margin: 8px 0 0;
    flex-shrink: 0;
    font-size: 10px;
  }
  .product-sizes:has(.repeat-preview) .size-list {
    display: block;
    flex: 0 0 auto;
    max-height: 32vh;
  }
  .repeat-preview {
    overflow: auto;
    min-height: 0;
  }
  .repeat-preview p {
    margin: 6px 0;
  }
  .original-detail .close-detail {
    top: 6px;
    right: 6px;
  }
  .product-information::-webkit-scrollbar,
  .size-list::-webkit-scrollbar,
  .product-sizes::-webkit-scrollbar {
    width: 5px;
  }
}
.sport-order {
  max-width: 650px;
  padding: 0;
  list-style: none;
}
.sport-order li {
  display: flex;
  align-items: center;
  gap: 14px;
  background: white;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 12px 16px;
  margin: 7px 0;
  cursor: grab;
}
.sport-order strong {
  flex: 1;
}
.sort-grip {
  font-size: 25px;
  color: #999;
}
.sport-order li.dragging {
  opacity: 0.45;
  border-color: var(--red);
}
.sport-order button {
  padding: 5px 10px;
}
.sport-order.saving {
  opacity: 0.6;
  pointer-events: none;
}
.product-sizes:has(.repeat-preview) form {
  flex-shrink: 0;
}
.product-sizes:has(.repeat-preview) .repeat-preview {
  flex-shrink: 0;
}
.order-editors {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  max-width: 1250px;
}
.order-editors section {
  min-width: 0;
}
.order-editors select {
  display: block;
  min-width: 220px;
  margin: 8px 0 18px;
}
.order-editors .sport-order {
  max-width: none;
}
.order-editors h2 {
  font-size: 22px;
}
@media (max-width: 800px) {
  .order-editors {
    grid-template-columns: 1fr;
  }
}
/* Even catalogue scale steps; card headings remain separated from neighbours. */
.original-grid.density-1 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: none;
}
.original-grid.density-2 {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
.original-grid.density-4 {
  grid-template-columns: repeat(7, minmax(0, 1fr));
}
.original-grid {
  gap: 8px;
}
.original-grid .c-catalog-item__header {
  padding: 4px 10px;
  min-width: 0;
}
.original-grid .c-catalog-item__header-name {
  display: block;
  width: 100%;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
}
@media (max-width: 1100px) {
  .original-grid.density-1 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .original-grid.density-2 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .original-grid.density-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (max-width: 720px) {
  .original-grid.density-1 {
    grid-template-columns: 1fr;
  }
  .original-grid.density-2,
  .original-grid.density-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.original-grid .c-catalog-item__header {
  height: 34px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.original-grid .c-catalog-item__header-name {
  line-height: 1.15;
  overflow-wrap: anywhere;
}
.category-summary .summary-merged {
  vertical-align: top;
  font-weight: 600;
  color: #222;
  background: #fafafa;
  border-right: 1px solid #eee;
}
.category-summary .summary-sport {
  font-weight: 400;
  background: white;
}
.category-summary .summary-section-start > * {
  border-top: 2px solid #ddd;
}
.category-summary td:nth-last-child(-n + 4) {
  white-space: nowrap;
}
.original-header .search {
  display: flex;
  align-items: stretch;
  gap: 0;
  border: 1px solid #d5d5d5;
  border-radius: 4px;
  background: #fff;
  padding: 0;
}
.original-header .search:focus-within {
  outline: 2px solid #333;
  outline-offset: 1px;
}
.original-header .search input {
  flex: 1;
  width: 0;
  min-width: 0;
  border: 0;
  outline: none;
  box-shadow: none;
  background: transparent;
  padding: 12px 14px;
}
.original-header .search input:focus {
  outline: none;
  box-shadow: none;
}
.original-header .search button {
  flex: 0 0 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent;
  color: #777;
}
.original-header .search button:hover {
  color: #e41020;
}
.original-header .search button:focus-visible {
  outline: 2px solid #333;
  outline-offset: -4px;
}
.original-header .search {
  position: relative;
}
.search-suggestions {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 70;
  max-height: min(480px, 65vh);
  overflow-y: auto;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 8px 24px #0002;
}
.search-suggestions a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  text-decoration: none;
  color: #222;
  border-bottom: 1px solid #eee;
}
.search-suggestions a:hover,
.search-suggestions a[aria-selected="true"] {
  background: #fff1f2;
}
.search-suggestions img,
.search-no-photo {
  width: 44px;
  height: 54px;
  object-fit: contain;
  flex-shrink: 0;
}
.search-suggestions a > span:not(.search-no-photo) {
  flex: 1;
  min-width: 0;
}
.search-suggestions strong,
.search-suggestions small {
  display: block;
  font-size: 13px;
  white-space: normal;
}
.search-suggestions small {
  margin-top: 4px;
  color: #666;
}
.search-suggestions b {
  font-size: 12px;
  white-space: nowrap;
}
.search-suggestions p {
  padding: 12px;
  margin: 0;
  font-size: 12px;
  color: #777;
}
/* The original card reserves a 20px row; two-line names may overlap its image. */
.original-grid .c-catalog-item__header {
  position: relative;
  z-index: 2;
  background: rgba(255, 255, 255, 0.96);
  overflow: visible;
  border-radius: 4px 4px 0 0;
}
.original-grid .c-catalog-item__body {
  z-index: 0;
}
.order-dock .grand-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-width: 0;
}
.order-dock .grand-total h2 {
  display: block;
  margin: 0 0 5px;
  white-space: nowrap;
}
.dock-price-table {
  border-collapse: collapse;
  min-width: 255px;
  font-size: 12px;
  line-height: 1.25;
}
.dock-price-table th,
.dock-price-table td {
  padding: 5px 10px;
  border-bottom: 1px solid #e8e8e8;
  background: #fafafa;
}
.dock-price-table th {
  font-weight: 400;
  text-align: left;
  color: #777;
}
.dock-price-table td {
  font-weight: 600;
  text-align: right;
  white-space: nowrap;
}
.dock-price-table tr.selected > * {
  background: #fff0f2;
  color: #222;
}
.dock-price-table tr.selected th {
  box-shadow: inset 3px 0 #e41020;
}
.original-catalog,
.original-basket {
  padding-bottom: 180px;
}
@media (max-width: 1100px) {
  .order-dock .grand-total {
    gap: 10px;
  }
  .order-dock .grand-total h2 {
    font-size: 20px;
  }
  .dock-price-table {
    min-width: 220px;
  }
}
@media (max-width: 720px) {
  .order-dock,
  .order-dock:has(.category-dock) {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }
  .order-dock .grand-total {
    flex-basis: 100%;
  }
  .order-dock .grand-total h2 {
    font-size: 17px;
    white-space: normal;
  }
  .dock-price-table {
    min-width: 195px;
    font-size: 11px;
  }
  .dock-price-table th,
  .dock-price-table td {
    padding: 4px 6px;
  }
  .original-catalog,
  .original-basket {
    padding-bottom: 240px;
  }
}
/* Compact order totals without hiding payment alternatives. */
.order-dock {
  min-height: 0;
  padding: 6px 24px;
  gap: 14px;
}
.order-dock h2,
.order-dock .grand-total h2 {
  font-size: 21px;
  line-height: 1.15;
  margin: 0 0 3px;
}
.order-dock .grand-total {
  gap: 14px;
}
.order-dock .dock-totals {
  font-size: 12px;
  gap: 8px;
  line-height: 1.3;
}
.order-dock .all-categories {
  font-size: 12px;
  padding: 2px 0;
}
.order-dock .primary {
  min-height: 36px;
  padding: 9px 16px;
  font-size: 13px;
}
.dock-price-table {
  min-width: 235px;
  line-height: 1.15;
  margin: 0;
}
.dock-price-table th,
.dock-price-table td {
  padding: 2px 8px;
}
.original-catalog,
.original-basket {
  padding-bottom: 110px;
}
@media (max-width: 720px) {
  .order-dock,
  .order-dock:has(.category-dock) {
    padding: 5px 12px;
    gap: 4px 10px;
  }
  .order-dock h2,
  .order-dock .grand-total h2 {
    font-size: 16px;
  }
  .order-dock .grand-total {
    gap: 8px;
  }
  .dock-price-table {
    min-width: 190px;
  }
  .dock-price-table th,
  .dock-price-table td {
    padding: 2px 6px;
  }
  .order-dock .primary {
    min-height: 30px;
    padding: 6px 12px;
  }
  .original-catalog,
  .original-basket {
    padding-bottom: 150px;
  }
}
/* Keep the favourite outline above the title background and photo. */
.original-grid button.c-catalog-item--favorite {
  box-shadow: none;
}
.original-grid .c-catalog-item--favorite::after {
  content: "";
  position: absolute;
  inset: 0;
  box-sizing: border-box;
  border: 2px solid #e41020;
  border-radius: 4px;
  z-index: 3;
  pointer-events: none;
}
/* Feedback must remain visible above product dialogs and the order dock. */
#toast {
  z-index: 1000;
  top: 18px;
  bottom: auto;
}
.size-save-status {
  min-height: 20px;
  margin: 8px 0 0;
  font-size: 12px;
  color: #666;
}
.order-dock .category-dock {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-width: 0;
}
.order-dock .category-dock h2 {
  display: block;
}
.order-dock .category-dock .all-categories {
  display: block;
}
@media (max-width: 1100px) and (min-width: 721px) {
  .order-dock .category-dock,
  .order-dock .grand-total {
    gap: 8px;
  }
  .order-dock:has(.category-dock) {
    grid-template-columns: 1fr 1fr;
  }
  .order-dock:has(.category-dock) > .primary {
    grid-column: 2;
    justify-self: end;
  }
}
@media (max-width: 720px) {
  .order-dock:has(.category-dock) .category-dock {
    display: flex;
    flex-basis: 100%;
    border-right: 0;
    padding-right: 0;
  }
  .order-dock .category-dock h2,
  .order-dock .category-dock .dock-totals {
    display: block;
  }
  .original-catalog:has(.category-dock),
  .original-basket:has(.category-dock) {
    padding-bottom: 230px;
  }
}
/* Align rubles independently of optional kopecks in both footer tables. */
.dock-money { display:inline-grid; grid-template-columns:auto 2.6ch 1.3ch; align-items:baseline; font-variant-numeric:tabular-nums; white-space:nowrap; }
.dock-money > :first-child { text-align:right; }
.dock-money .dock-kopecks { text-align:left; }
.dock-money .dock-currency { text-align:right; }
/* Denser category totals, retaining section grouping and readable type. */
.category-dialog .category-summary td,
.category-dialog .category-summary th { padding:7px 12px; line-height:1.3; }
.category-dialog .category-summary .summary-section { margin-top:2px; padding:0; line-height:1.3; }
.category-dialog h2 { margin-bottom:16px; }
/* Compact basket summary and product rows. */
.original-basket .category-summary td,
.original-basket .category-summary th { padding:7px 12px; line-height:1.3; }
.original-basket .category-summary { margin-bottom:16px; }
.original-basket > h1 { margin-top:18px; margin-bottom:18px; }
.original-basket > h2,.original-basket #checkout h2 { margin-top:16px; margin-bottom:12px; }
.original-basket .order-product { gap:14px; margin-top:12px; padding:14px 16px; }
.original-basket .order-product > div:first-child img { width:76px; max-height:100px; object-fit:contain; margin-right:12px; }
.original-basket .order-product h3 { margin:5px 0; font-size:15px; line-height:1.3; }
.original-basket .order-product p { margin:0 0 6px; }
.original-basket .basket-size { gap:8px; padding:2px 0; }
.original-basket .basket-size input { padding:5px 8px; min-height:32px; }
.original-basket .basket-size button { padding:5px 8px; min-height:32px; }
.original-basket textarea { height:64px; min-height:64px; }
.original-basket #comment-help { margin:6px 0; }
.original-basket .notice { padding:10px 12px; margin:10px 0; }
@media(max-width:720px) {
 .original-basket .order-product { padding:12px; gap:12px; }
}
/* Card title extends 14px into the original photo row; keep POP below it. */
.original-grid .c-catalog-item__body .pop-marker { top:18px; }
/* Applied filter state remains visible when dropdowns or the panel are closed. */
.original-filters .facet:has(input:checked) > summary,
.original-filters .facet[open]:has(input:checked) > summary,
.filter-toggle:has(+ .original-filters input:checked) {
  background:#e41020;
  border-color:#e41020;
  color:#fff;
}
.original-filters .facet-options label:has(input:checked),
.original-filters .facet-flags label:has(input:checked) {
  color:#c90d1b;
  font-weight:600;
}
.original-grid button.c-catalog-item { padding:0; border:0; color:inherit; font-family:inherit; font-weight:400; text-align:left; }
.original-grid button.c-catalog-item:focus-visible { outline:2px solid #222; outline-offset:2px; }
/* Reset generic button layout: each card owns three bounded grid rows. */
.original-grid button.c-catalog-item {
  display:grid;
  grid-template-columns:minmax(0,1fr);
  grid-template-rows:34px minmax(0,1fr) 22px;
  gap:0;
  align-items:stretch;
  justify-items:stretch;
  align-content:stretch;
  justify-content:stretch;
  aspect-ratio:1 / 1;
  min-height:0;
  overflow:hidden;
  appearance:none;
}
.original-grid button.c-catalog-item .c-catalog-item__body { min-height:0; height:100%; overflow:hidden; }
.original-grid button.c-catalog-item .c-catalog-item__image { position:absolute; inset:3px; width:calc(100% - 6px); height:calc(100% - 6px); object-fit:contain; }
.original-grid button.c-catalog-item .c-catalog-item__footer { position:relative; z-index:1; min-width:0; height:22px; }
.original-grid button.c-catalog-item .pop-marker { top:4px; }
/* Initial dialog focus should not visually select the close button. */
.original-detail:focus { outline:none; }
/* Basket items: compact thumbnails and size controls arranged across the row. */
.original-basket .order-product { grid-template-columns:minmax(220px,2fr) minmax(100px,.8fr) minmax(260px,2fr) minmax(110px,.8fr) minmax(120px,.9fr); gap:12px; padding:10px 14px; margin-top:8px; align-items:start; }
.original-basket .order-product > div { min-width:0; }
.original-basket .order-product > div:first-child img { width:56px; height:70px; margin-right:10px; }
.original-basket .order-product h3 { font-size:14px; margin:3px 0; line-height:1.25; }
.original-basket .order-product > div:first-child > span { font-size:12px; color:#777; }
.original-basket .order-product > div:nth-child(3) { display:grid; grid-template-columns:repeat(auto-fit,minmax(125px,1fr)); gap:4px 10px; }
.original-basket .order-product > div:nth-child(3) > p { grid-column:1/-1; margin-bottom:2px; }
.original-basket .basket-size { flex-wrap:nowrap; gap:5px; padding:0; margin:0; }
.original-basket .basket-size b { min-width:26px; font-size:12px; }
.original-basket .basket-size input { width:54px; height:30px; min-height:30px; padding:4px 6px; }
.original-basket .basket-size button { padding:3px 5px; min-height:30px; }
.original-basket .basket-size:has(.danger) { flex-wrap:wrap; }
@media(max-width:1100px) {
 .original-basket .order-product { grid-template-columns:minmax(180px,1.5fr) minmax(90px,.7fr) minmax(240px,2fr); }
}
@media(max-width:720px) {
 .original-basket .order-product { grid-template-columns:1fr 1fr; gap:8px 12px; padding:10px 12px; }
 .original-basket .order-product > div:nth-child(3) { grid-column:1/-1; grid-row:3; }
}
.checkout-payment { display:inline-flex; align-items:center; flex-wrap:wrap; gap:6px; padding:8px 12px; margin:0 0 8px; border-left:3px solid #e41020; background:#fff0f2; font-size:14px; }
.checkout-payment strong { color:#c90d1b; }
.original-basket .category-summary thead tr > :last-child { background:#e41020; color:#fff; font-weight:600; }
.original-basket .category-summary tbody tr > :last-child,
.original-basket .category-summary tfoot tr > :last-child { background:#fff0f2; font-weight:600; }
/* Keep basket sizes in one vertical list at every screen width. */
.original-basket .order-product > div:nth-child(3) { display:flex; flex-direction:column; align-items:flex-start; gap:3px; }
.original-basket .basket-size { flex-wrap:nowrap; }
.original-basket .basket-size:has(.danger) { flex-wrap:wrap; }
.photo-loupe { position:fixed; z-index:100; display:block; pointer-events:none; border:2px solid #999; border-radius:50%; background-color:white; background-repeat:no-repeat; box-shadow:0 3px 16px #0004; }
.close-photo-zoom { display:none; }
.zoomed .close-photo-zoom { display:block; position:absolute; top:4px; right:8px; padding:4px 10px; border:0; background:white; color:#555; font-size:30px; z-index:101; }
.original-header button.header-favorite { border:0; background:transparent; padding:0; font-weight:400; }
.original-header button.header-favorite[aria-pressed="true"] { color:var(--red); }
.original-header button.header-favorite[aria-pressed="true"] small { font-weight:700; }
.order-stock-problem { background:#fff1f2; }
.order-stock-problem .order-stock-cell { color:#c20b1c; }
.order-stock-cell small { display:block; margin-top:4px; }

.amendment-banner {border-left:3px solid #e41020;margin:12px 24px;padding:10px 14px;background:#fff4f4}.amendment-banner p {margin:4px 0}.amendment-banner button,.amendment-banner a {margin-right:12px}

.warehouse-tree {margin:8px 0 16px;max-width:1100px;border:1px solid #ddd;border-radius:4px;padding:4px 8px;background:#fff;font-size:14px;}
.warehouse-group {margin:2px 0;padding:0;border:0;}
.warehouse-group summary {padding:5px 8px;font-weight:600;cursor:pointer;background:#f1f2f3;border-radius:3px;line-height:20px;}
.warehouse-group summary small {margin-left:10px;font-size:11px;font-weight:400;color:#777;}
.warehouse-children {margin-left:14px;padding-left:10px;border-left:2px solid #c8cdd2;}
.warehouse-row {position:relative;display:grid;grid-template-columns:minmax(0,1fr) 90px;align-items:center;gap:12px;min-height:30px;padding:3px 8px;border-bottom:1px solid #eee;line-height:20px;}
.warehouse-children>.warehouse-row:before {content:'';position:absolute;left:-10px;top:15px;width:8px;border-top:1px solid #c8cdd2;}
.warehouse-row label {display:flex;align-items:center;gap:7px;margin:0;font-size:14px;cursor:pointer;}
.warehouse-row label:last-child {white-space:nowrap;font-size:12px;color:#666;}
.warehouse-row input {width:16px;height:16px;flex:none;margin:0;accent-color:#e20e1a;}
.warehouse-row:has(input[name="warehouse"]:checked) {background:#fff0f2;}
.warehouse-row:has(input[data-main-warehouse]:checked) {box-shadow:inset 3px 0 #e20e1a;}
.warehouse-row[hidden],.warehouse-group[hidden] {display:none;}
.warehouse-tree-tools {display:flex;gap:8px;margin-top:8px;}
.warehouse-tree-tools button {padding:5px 10px;font-size:12px;}
#warehouse-search {width:min(100%,480px);height:38px;padding:7px 10px;border:1px solid #ccc;border-radius:4px;}

.availability-hint {display:block}

#matrix-edit[hidden] {display:none}

.order-detail-products {display:grid;gap:10px;margin:20px 0}
.order-detail-product {display:grid;grid-template-columns:minmax(230px,2fr) minmax(130px,.8fr) minmax(260px,1.6fr) minmax(145px,.8fr);gap:20px;padding:14px 18px;background:#fff;border:1px solid #eee;border-radius:4px;align-items:start}
.order-product-identity {display:flex;gap:14px;min-width:0;align-items:flex-start}
.order-product-identity img,.order-photo-missing {width:78px;height:104px;object-fit:contain;flex-shrink:0}
.order-product-photo {flex-shrink:0}.order-photo-missing {display:grid;place-items:center;background:#f7f7f7;font-size:12px;color:#888}
.order-product-identity h3 {font-family:inherit;font-size:15px;line-height:1.35;margin:5px 0;overflow-wrap:anywhere}
.order-product-identity small {font-size:12px;color:#777}
.order-detail-product p {color:#888;font-size:12px;margin:0 0 6px}
.order-product-price small,.order-product-sizes small {display:block;color:#888;font-size:12px;margin-top:4px}
.order-product-price strong,.order-product-totals strong {font-size:15px;white-space:nowrap}
.order-product-totals p:not(:first-child) {margin-top:16px}
.order-product-sizes {min-width:0;overflow-x:auto}
.order-product-sizes table {width:100%;border-collapse:collapse}
.order-product-sizes th,.order-product-sizes td {padding:6px 8px;text-align:left;border-bottom:1px solid #eee;font-size:13px}
.order-product-sizes thead th {font-size:12px;color:#888;font-weight:400;padding-top:0;white-space:nowrap}
.order-product-sizes input {width:68px;padding:5px 8px;height:32px;min-height:32px}
.order-product-sizes .order-stock-problem small {color:#c20b1c}
@media(max-width:1100px) {.order-detail-product {grid-template-columns:minmax(190px,1.3fr) minmax(240px,1.6fr) minmax(130px,.8fr);gap:12px}.order-product-price {grid-column:1;grid-row:2}.order-product-sizes {grid-column:2;grid-row:1/span 2}.order-product-totals {grid-column:3;grid-row:1/span 2}}
@media(max-width:680px) {.order-detail-product {grid-template-columns:1fr 1fr;padding:12px}.order-product-identity {grid-column:1/-1}.order-product-price {grid-column:1;grid-row:2}.order-product-totals {grid-column:2;grid-row:2}.order-product-sizes {grid-column:1/-1;grid-row:3}}

.client-filters{display:grid;grid-template-columns:minmax(220px,2fr) minmax(180px,1.4fr) 150px 150px auto;gap:12px;align-items:end}.client-filters label{display:grid;gap:6px;color:#777}.client-filters input,.client-filters select{width:100%;min-width:0;height:42px;border:1px solid #ddd;border-radius:4px;background:#fff;padding:8px 12px;color:#222}.client-filters button{height:42px}@media(max-width:1000px){.client-filters{grid-template-columns:repeat(2,minmax(0,1fr))}}

.client-organizations{min-width:190px;max-width:300px;overflow-wrap:anywhere}.client-organizations div+div{margin-top:8px}.client-organizations small{display:block;margin-top:3px}

.ut-fixed-field{display:block;min-height:42px;box-sizing:border-box;padding:10px 12px;border:1px solid #ddd;border-radius:4px;background:#f7f7f7;color:#222;line-height:1.4}.ut-shipping{margin:20px 0}.ut-shipping label{min-width:min(100%,420px)}.employee-manager{display:flex;gap:10px;align-items:center}.employee-manager select{max-width:420px;width:100%;min-height:42px;padding:8px;border:1px solid #ddd;border-radius:4px}
.ut-shipment-preview{margin:24px 0}.ut-shipment-preview h4{margin-bottom:12px}.ut-shipments{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,320px),1fr));gap:12px;padding:0;list-style:none}.ut-shipment{min-width:0;padding:16px;border:1px solid #d9dde2;border-radius:6px;background:#fafbfc;overflow-wrap:anywhere}.ut-shipment h5{margin:0 0 12px;font-size:16px}.ut-shipment p{margin:8px 0}.ut-shipment ul{margin:8px 0;padding-left:20px}.ut-shipment li+li{margin-top:5px}

/* Keep the photograph area unchanged and add one 22px row above the article. */
.original-grid .tile-wrap::before { content:""; display:block; padding-top:calc(100% + 22px); }
.original-grid button.c-catalog-item { position:absolute; inset:0; width:100%; height:100%; aspect-ratio:auto; grid-template-rows:34px minmax(0,1fr) 22px 22px; }
.original-grid .catalog-card-sizes { height:22px; line-height:22px; padding:0 4px; box-sizing:border-box; font-size:11px; color:#666; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.original-grid .favorite-heart, .original-grid .quick-cart { bottom:46px; }

.original-grid .catalog-card-sizes { display:flex; align-items:center; gap:3px; color:#333; text-overflow:clip; }
.catalog-size-chip, .catalog-size-more { flex:0 0 auto; display:inline-block; padding:0 3px; border-radius:3px; background:#f0f1f3; font-size:11px; font-weight:500; line-height:17px; font-variant-numeric:tabular-nums; }
.catalog-size-more { background:#e4e6e9; color:#555; }
.catalog-size-chip[hidden], .catalog-size-more[hidden] { display:none; }

.catalog-size-chip.in-basket { background:#fff0f2; color:#db1021; box-shadow:inset 0 0 0 1px #e20e1a; font-weight:600; }
.catalog-sizes-popup { position:fixed; z-index:1200; width:260px; max-width:calc(100vw - 16px); box-sizing:border-box; padding:14px; border:1px solid #e7e7e7; border-radius:10px; background:#fff; color:#222; box-shadow:0 6px 24px #0002; text-align:left; }
.catalog-sizes-popup > strong { display:block; font-size:13px; margin-bottom:10px; }
.catalog-sizes-popup-list { display:flex; flex-wrap:wrap; gap:6px; }
.catalog-sizes-popup .catalog-size-chip { font-size:13px; line-height:26px; padding:0 7px; border-radius:5px; }
.catalog-sizes-popup .catalog-size-chip small { font-size:11px; }
.catalog-sizes-popup p { font-size:11px; line-height:1.4; color:#777; margin:10px 0 0; }

.catalog-size-chip.in-basket { background:#f5eeee; color:#795657; box-shadow:inset 0 0 0 1px #d3babb; font-weight:500; }
.catalog-sizes-popup { width:184px; padding:10px; border-radius:8px; max-height:calc(100vh - 16px); overflow-y:auto; }
.catalog-sizes-popup > strong { font-size:12px; margin-bottom:7px; }
.catalog-sizes-popup-list { display:flex; flex-direction:column; flex-wrap:nowrap; gap:3px; }
.catalog-sizes-popup .catalog-size-chip { display:flex; align-items:center; justify-content:space-between; padding:0 7px; font-size:12px; line-height:22px; border-radius:3px; }
.catalog-sizes-popup .catalog-size-chip small { font-size:11px; font-weight:400; }
.catalog-sizes-popup p { margin-top:7px; font-size:10px; }

.catalog-sizes-popup { pointer-events:none; }
.catalog-sizes-popup-heading { display:flex; align-items:center; justify-content:space-between; gap:8px; margin-bottom:7px; font-size:12px; }
.catalog-sizes-popup-heading > span { display:flex; align-items:center; gap:4px; font-size:10px; color:#777; }
.catalog-sizes-popup-heading svg { width:14px; height:14px; }

.size-mode-control { position: sticky; top: -10px; z-index: 1; background: #fff; padding: 4px 0 10px; border-bottom: 1px solid #eee; }
.size-mode-buttons { display: flex; gap: 4px; padding: 3px; background: #f3f3f4; border-radius: 6px; }
.size-mode-buttons button { flex: 1; min-width: 0; padding: 7px 5px; border: 1px solid transparent; border-radius: 4px; background: transparent; color: #555; font-size: 12px; line-height: 1.35; cursor: pointer; }
.size-mode-buttons button[aria-pressed="true"] { background: #fff; border-color: #d3babb; color: #795657; box-shadow: 0 1px 3px #0001; font-weight: 600; }
.size-mode-buttons button:focus-visible { outline: 2px solid #795657; outline-offset: 1px; }
.size-mode-control p { margin: 8px 2px 0; font-size: 12px; line-height: 1.4; color: #555; }
.size-mode-control .size-count-help { color: #888; font-size: 11px; }

.order-comparison { margin: 24px 0; }
.comparison-scroll { overflow-x: auto; border: 1px solid #ddd; border-radius: 6px; background: white; }
.order-comparison table { width: 100%; min-width: 1250px; border-collapse: collapse; font-size: 13px; }
.order-comparison th, .order-comparison td { padding: 10px; border-bottom: 1px solid #e5e5e5; vertical-align: top; text-align: left; }
.order-comparison thead th { background: #f3f4f5; white-space: nowrap; color: #555; }
.order-comparison thead th[colspan] { text-align: center; border-left: 1px solid #ddd; font-weight: 600; }
.order-comparison td small { display: block; color: #888; margin-top: 4px; font-size: 11px; }
.order-comparison td.comparison-identity { min-width: 230px; }
.comparison-identity img { width: 42px; height: 56px; object-fit: contain; float: left; margin-right: 10px; }
.comparison-identity strong { display: block; font-size: 12px; margin-top: 4px; }
.comparison-change { display: inline-block; font-size: 11px; color: #876427; margin-top: 5px; }
.comparison-changed, .comparison-removed { background: #fffbf2; }
.comparison-added { background: #f2faf7; }
.comparison-status { min-width: 175px; }
.comparison-totals { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 32px; padding: 18px 0; }

.facet.facet-disabled > summary { background: #f3f3f4; color: #aaa; border-color: #ddd; cursor: default; }

.ut-working { display: inline-flex; align-items: center; gap: 10px; cursor: wait; }
.ut-working::before { content: ""; width: 16px; height: 16px; flex-shrink: 0; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: ut-spin .8s linear infinite; }
.ut-progress { margin: 12px 0 0; color: #666; font-size: 14px; }
@keyframes ut-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .ut-working::before { animation: none; } }

.facet summary { display: flex; align-items: center; gap: 5px; }
.facet summary .facet-clear { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; min-width: 24px; padding: 0; margin-left: 5px; border: 0; border-radius: 4px; background: transparent; color: inherit; font-size: 22px; line-height: 1; cursor: pointer; }
.facet summary .facet-clear:hover { background: #0002; }
.facet summary .facet-clear:focus-visible { outline: 2px solid currentColor; outline-offset: 1px; }

.customer-order-table table { min-width: 1000px; }
.customer-row-cancelled { background: #fafafa; color: #888; }
.customer-row-added { background: #f1f8f4; }
.customer-row-changed { background: #fffaf0; }
.customer-line-status { font-size: 12px; white-space: nowrap; }
.comparison-identity a { color: inherit; text-decoration: none; }
.comparison-identity a:hover strong { text-decoration: underline; }

.password-reset-dialog { max-width: 520px; width: calc(100% - 40px); padding: 28px; border: 1px solid #ddd; border-radius: 10px; }
.password-reset-dialog::backdrop { background: #0006; }
.password-reset-dialog [role="alert"] { color: #b11226; }

.staff-view-switch{display:flex;gap:3px;padding:3px;background:#f3f3f4;border:1px solid #ddd;border-radius:7px;white-space:nowrap}
.staff-view-switch a{padding:8px 12px;border-radius:4px;text-decoration:none;color:#656565;font-size:14px}
.staff-view-switch a.selected{background:#fff;color:#222;box-shadow:0 1px 4px #0002;font-weight:600}
.staff-catalog-search{display:flex;align-items:center;gap:24px;padding:16px 40px;background:#fff;border-bottom:1px solid #eee}
.staff-catalog-search .search{flex:1;max-width:900px}.staff-catalog-search>span{color:#777;font-size:14px}
header:has(.staff-view-switch){flex-wrap:wrap;height:auto;min-height:82px;padding-top:12px;padding-bottom:12px;row-gap:12px}header:has(.staff-view-switch) .header-right{margin-left:auto}
@media(max-width:700px){.staff-catalog-search{padding:12px 16px;flex-wrap:wrap;gap:8px}.staff-catalog-search .search{min-width:100%}}

.sync-run-detail{border-top:1px solid #e4e4e4;padding:12px 0}.sync-run-detail>summary{cursor:pointer;line-height:1.6}.sync-run-body{padding:12px 0}.sync-run-body .table-scroll{overflow:auto}.sync-run-body td{vertical-align:top}.sync-run-body .actions{margin-top:12px}

.basket-dock-actions { display:flex; align-items:center; justify-content:flex-end; gap:20px; flex-shrink:0; }
.basket-dock-actions [data-action="clear-basket"] { color:#777; white-space:nowrap; }
.basket-dock-actions [data-action="clear-basket"]:hover { color:var(--red); }
@media(max-width:720px) { .basket-dock-actions { flex-wrap:wrap; gap:8px 16px; } }

.staff-catalog-search .search {
  display: flex;
  align-items: stretch;
  gap: 0;
  border: 1px solid #d5d5d5;
  border-radius: 4px;
  background: #fff;
  padding: 0;
}
.staff-catalog-search .search:focus-within {
  outline: 2px solid #333;
  outline-offset: 1px;
}
.staff-catalog-search .search input {
  flex: 1;
  width: 0;
  min-width: 0;
  border: 0;
  outline: none;
  box-shadow: none;
  background: transparent;
  padding: 12px 14px;
}
.staff-catalog-search .search input:focus {
  outline: none;
  box-shadow: none;
}
.staff-catalog-search .search button {
  flex: 0 0 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent;
  color: #777;
}
.staff-catalog-search .search button:hover {
  color: #e41020;
}
.staff-catalog-search .search button:focus-visible {
  outline: 2px solid #333;
  outline-offset: -4px;
}
.staff-catalog-search .search {
  position: relative;
}

.staff-catalog-search .search { min-height:44px; }
.sync-run-body .table-scroll { overflow-x:auto; margin:16px 0; border:1px solid #e1e3e6; border-radius:6px; }
.sync-log-table { width:100%; min-width:720px; border-collapse:collapse; font-size:14px; }
.sync-log-table th { text-align:left; background:#f3f4f6; color:#555; padding:12px 16px; }
.sync-log-table td { padding:12px 16px; border-top:1px solid #e5e7eb; vertical-align:top; line-height:1.5; white-space:pre-line; }
.sync-log-table tbody tr:nth-child(even) { background:#fafafa; }
.sync-log-table th:nth-last-child(-n+2),.sync-log-table td:nth-last-child(-n+2) { min-width:100px; border-left:1px solid #e5e7eb; }
.sync-log-table .sync-product-link { padding:0; border:0; background:none; text-align:left; color:inherit; font:inherit; }
.sync-log-table .sync-product-link:hover { color:var(--red); text-decoration:underline; }
.sync-log-table .sync-product-link small { display:block; color:#777; }

.order-editors label:has(#subcategory-sport) { display:flex; flex-direction:column; gap:8px; color:#777; font-size:14px; }
.order-editors #subcategory-sport { box-sizing:border-box; width:100%; min-width:0; height:44px; border:1px solid #d5d5d5; border-radius:4px; padding:10px 36px 10px 14px; background-color:#fff; color:#222; font:inherit; font-size:16px; appearance:none; background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%23555' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat:no-repeat; background-position:right 12px center; cursor:pointer; }
.order-editors #subcategory-sport:focus-visible { outline:2px solid #333; outline-offset:2px; }

.orders-filters { display:flex; flex-wrap:wrap; align-items:end; gap:12px; margin:0 0 20px; }
.orders-filters label { display:flex; flex-direction:column; gap:7px; color:#777; font-size:14px; flex:1 1 150px; }
.orders-filters .order-query { flex:3 1 310px; }
.orders-filters input,.orders-filters select { box-sizing:border-box; width:100%; height:44px; min-width:0; padding:10px 12px; border:1px solid #d5d5d5; border-radius:4px; background:white; color:#222; font:inherit; }
.orders-filters > button { min-height:44px; }

.client-last-login{white-space:nowrap}

.sync-history-filter{display:flex;align-items:center;gap:8px;margin:16px 0;width:fit-content}

/* Discount worksheet */
#matrix-sheet-form{background:#fff;border:1px solid #e1e3e6;border-radius:10px;box-shadow:0 4px 20px #20242c05;overflow:hidden}
.matrix-sheet-wrap{overflow-x:auto;background:#fff}
.matrix-sheet{width:100%;min-width:1180px;border-collapse:separate;border-spacing:0;table-layout:fixed;font-size:13px;color:#24272c;font-variant-numeric:tabular-nums}
.matrix-sheet th,.matrix-sheet td{box-sizing:border-box;text-align:center;border:0;border-bottom:1px solid #eceef1;padding:3px;vertical-align:middle}
.matrix-sheet thead th{position:static;background:#f7f8fa;color:#737983;font-weight:500;padding:12px 4px;font-size:12px}
.matrix-sheet thead tr:first-child th{border-bottom:1px solid #e2e5e9}
.matrix-sheet thead .matrix-tier{color:#393e46;border-left:1px solid #e2e5e9;font-size:12px}
.matrix-sheet .matrix-tier span{display:inline-flex;align-items:center;justify-content:center;min-width:27px;height:26px;padding:0 5px;margin-left:5px;background:#fff;border:1px solid #e0e3e7;border-radius:5px;font-size:13px;font-weight:700;color:#24272c}
.matrix-sheet thead th:first-child[rowspan]{width:190px;text-align:left;padding-left:18px}
.matrix-sheet thead th:nth-child(2)[rowspan]{width:58px}
.matrix-sheet thead tr:nth-child(2) th{font-size:11px;padding:9px 2px;color:#7b8088}
.matrix-sheet thead tr:nth-child(2) th:nth-child(3n+1),.matrix-sheet .matrix-tier-start{border-left:1px solid #e1e4e8}
.matrix-sheet .matrix-kind{text-align:left;padding:18px;background:#fbfbfc;font-size:13px;line-height:1.55;font-weight:600;border-right:1px solid #e9ebee;border-left:3px solid #df1020}
.matrix-sheet .matrix-group{background:#fff;font-weight:500}
.matrix-sheet .matrix-group span{display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;background:#f2f3f5;border-radius:5px;color:#666d77;font-size:12px}
.matrix-sheet input{box-sizing:border-box;width:100%;height:32px;min-width:0;min-height:0;border:1px solid transparent;border-radius:5px;background:transparent;text-align:center;padding:5px 1px;font:inherit;line-height:20px;font-weight:500;color:#252a31;appearance:textfield;transition:background .12s,border-color .12s}
.matrix-sheet input::-webkit-inner-spin-button,.matrix-sheet input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}
.matrix-sheet tbody tr:hover td:not(.matrix-unavailable):not(.matrix-fixed){background:#fdf7f7}
.matrix-sheet input:hover{border-color:#e2c9cc;background:#fff}
.matrix-sheet input:focus{outline:2px solid #df1020;outline-offset:-2px;background:#fff}
.matrix-sheet input.matrix-edited{background:#fff3cf;border-color:#e2b94a}
.matrix-sheet .matrix-unavailable{background:#f7f8fa;color:#b7bdc5}
.matrix-sheet .matrix-fixed{background:#fafbfc;color:#979eaa;border-left:1px solid #e1e4e8}
.matrix-sheet .matrix-block-start:not(:first-child)>*{border-top:2px solid #dce0e5}
.matrix-sheet tbody tr:last-child>*{border-bottom:0}
.matrix-toolbar{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:16px 20px;margin:0;border-top:1px solid #e3e5e8;background:#fbfbfc}
.matrix-toolbar [data-matrix-dirty]{color:#818791;font-size:13px}
.matrix-toolbar button{min-height:42px;border-radius:6px;padding:10px 20px;font-size:14px}
.matrix-toolbar button:disabled{background:#eceef1;color:#9298a2;border-color:#eceef1;opacity:1}
.matrix-history-entry{margin:20px 0;padding:18px 20px;background:#fff;border:1px solid #e3e5e8;border-radius:8px}
.matrix-history-entry>p{margin:0 0 14px;color:#7c838d;font-size:13px}.matrix-history-entry>p strong{color:#30353b}
@media(max-width:700px){.matrix-toolbar{align-items:flex-start;flex-direction:column;gap:10px}}

/* Neutral category styling shared by A+ through E. */
.matrix-sheet{min-width:1400px}
.matrix-sheet thead .matrix-tier-e{width:132px;white-space:nowrap}
.matrix-sheet thead th{background:#f4f5f7;color:#626975}
.matrix-sheet thead .matrix-tier{color:#343942;font-weight:600}
.matrix-sheet .matrix-tier span{background:#fff;border-color:#d9dde3;color:#303641;box-shadow:none}
.matrix-sheet thead tr:nth-child(2) th{background:#fafbfc;color:#656c77}
.matrix-sheet .matrix-e-label{border-left:1px solid #e1e4e8}
.matrix-sheet .matrix-kind{background:#f8f9fa;border-left:3px solid #c5cbd3;color:#303641}
.matrix-sheet .matrix-group span{background:#edf0f3;color:#525b69;font-weight:600}
.matrix-sheet .matrix-fixed{background:#f5f7f9;color:#56616f;font-weight:600}
.matrix-sheet .matrix-unavailable{background:#f7f8fa;color:#b1b8c1}
.matrix-sheet tbody tr:hover td:not(.matrix-unavailable):not(.matrix-fixed){background:#f4f6f8}
.matrix-sheet input:hover{border-color:#ccd2da;background:#fff}
.matrix-toolbar{background:#fafbfc;border-top-color:#e3e5e8}
.matrix-toolbar [data-matrix-dirty]{color:#737b87}

/* Single-payment category needs room for its full name. */
.matrix-sheet{min-width:1560px}
.matrix-sheet thead .matrix-tier:not([colspan]):not(.matrix-tier-e){width:190px;white-space:nowrap;padding:14px 10px}
.matrix-sheet thead .matrix-tier:not([colspan]):not(.matrix-tier-e) span{margin-left:7px;white-space:nowrap}
.matrix-sheet thead tr:first-child th{height:66px}

/* Basket spreadsheet: shared size columns and independent horizontal scrolling. */
.basket-sheet-help{color:#667085;font-size:14px;margin:24px 0 12px}
.basket-sheet-scroll{overflow:auto;max-width:100%;border:1px solid #dfe3e8;border-radius:10px;background:#fff;margin-bottom:24px}
.basket-sheet{border-collapse:separate;border-spacing:0;width:100%;font-size:13px}
.basket-sheet th,.basket-sheet td{padding:12px 8px;border-right:1px solid #e8ebef;border-bottom:1px solid #e8ebef;vertical-align:middle}
.basket-sheet th{background:#f3f5f7;color:#596574;font-weight:600;text-align:center;white-space:nowrap}
.basket-sheet tr:last-child td{border-bottom:0}.basket-sheet tr:nth-child(even) td{background-color:#fafbfc}
.basket-sheet .basket-identity{min-width:245px;max-width:300px}.basket-identity a{color:inherit;text-decoration:none}.basket-identity a>small{display:block;margin-bottom:7px;color:#596574}.basket-identity a>div{display:flex;gap:10px;align-items:center}.basket-identity img{width:42px;height:60px;object-fit:contain}.basket-identity b{display:block;line-height:1.35}.basket-identity span small{display:block;color:#85909d;margin-top:6px}
.basket-sheet .basket-money{white-space:nowrap;text-align:right;min-width:88px;font-variant-numeric:tabular-nums}
.basket-sheet .basket-size-cell{min-width:110px;text-align:center;position:relative}.basket-size-cell>small{display:block;font-size:11px;max-width:120px;margin:auto}
.basket-sheet .basket-stepper{display:flex;align-items:center;justify-content:center;margin:5px 0;gap:0}.basket-sheet button{cursor:pointer;border:1px solid #dfe3e8;border-radius:5px;background:white;color:#283442;padding:0;min-width:28px;height:30px;font-size:18px}.basket-sheet button:disabled{opacity:.3;cursor:default}.basket-sheet button:hover:not(:disabled){background:#edf1f5}.basket-sheet .basket-stepper input{box-sizing:border-box;width:40px;min-width:0;height:30px;padding:2px;text-align:center;border:1px solid #dfe3e8;border-radius:0;font-size:14px;appearance:textfield;-moz-appearance:textfield}.basket-stepper input::-webkit-inner-spin-button,.basket-stepper input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}
.basket-sheet .basket-reset{border:0;color:#7b8794;height:24px}.basket-sheet .basket-delete{color:#bd2433;width:32px}.basket-sheet .unavailable{background:#f1f3f5!important;color:#99a1ac}.crossed-size{display:inline-block;position:relative;color:#9aa2ad}.crossed-size:before,.crossed-size:after{content:'';position:absolute;left:-3px;right:-3px;top:50%;height:1px;background:#9aa2ad;transform:rotate(25deg)}.crossed-size:after{transform:rotate(-25deg)}
.basket-row-order{text-align:center;min-width:62px}.basket-sheet .basket-drag{border:0;cursor:grab;touch-action:none;font-size:24px;width:46px}.basket-row-order>div{display:flex;gap:4px;margin-top:8px}.basket-sheet tr.is-dragging td{background:#e8f0fa!important;box-shadow:inset 0 2px #9db5d3,inset 0 -2px #9db5d3}
@media(max-width:1100px){.basket-sheet .basket-size-cell{min-width:135px}.basket-sheet .basket-stepper button,.basket-sheet .basket-reset,.basket-sheet .basket-delete,.basket-sheet .basket-drag{min-width:40px;height:42px}.basket-sheet .basket-stepper input{height:42px;width:46px}.basket-sheet .basket-identity{min-width:190px}.basket-sheet-help{font-size:12px}}

/* Separate size charts, fitting the viewport without horizontal scrolling. */
.basket-section{margin:24px 0 32px}.basket-section-title{display:flex;align-items:center;gap:16px;margin-bottom:12px}.basket-section-title h2{margin:0;font-size:24px}.basket-section-title span{font-size:13px;color:#87909c}
.basket-sections .basket-sheet-scroll{overflow:visible;outline:none}.basket-sections .basket-sheet-scroll:focus-visible{outline:2px solid #a4b7cb;outline-offset:3px}
.basket-sections .basket-sheet{table-layout:fixed;width:100%}.basket-sections .basket-sheet th,.basket-sections .basket-sheet td{padding:10px 3px;min-width:0;overflow-wrap:anywhere}
.basket-sections .order-heading{width:34px}.basket-sections .identity-heading{width:220px;text-align:left;padding-left:10px}.basket-sections .price-heading{width:78px}.basket-sections .quantity-heading{width:36px}.basket-sections .amount-heading{width:96px}.basket-sections .delete-heading{width:32px}
.basket-sections .basket-identity{min-width:0;max-width:none;padding:10px!important}.basket-sections .basket-identity img{width:36px;height:52px}.basket-sections .basket-identity b{font-size:12px}.basket-sections .basket-identity small{font-size:11px}.basket-sections .basket-money{min-width:0;font-size:12px;white-space:normal}.basket-sections .basket-row-order{min-width:0}.basket-sections .basket-row-order>div{flex-direction:column;gap:2px;align-items:center;margin-top:2px}.basket-sections .basket-row-order button{min-width:24px;width:24px;height:24px;font-size:15px}.basket-sections .basket-drag{width:28px!important;height:28px!important;font-size:22px!important}
.basket-sections .basket-size-cell{min-width:0}.basket-sections .basket-stepper{display:grid;grid-template-columns:1fr 1fr;gap:2px;max-width:48px;margin:3px auto}.basket-sections .basket-stepper input{grid-column:1/-1;grid-row:1;width:100%;height:28px;border-radius:4px}.basket-sections .basket-stepper button{min-width:0;width:100%;height:23px;font-size:16px}.basket-sections .basket-reset{height:20px;min-width:24px;font-size:16px}.basket-sections .size-label{display:none}.basket-sections .crossed-size{font-size:11px}.basket-sections .basket-delete{min-width:24px;width:24px;height:28px}.basket-sections .basket-size-heading{font-size:12px}.basket-sections .basket-size-cell>small{font-size:10px}.basket-sections tr:hover td:not(.unavailable){background:#f2f6fa}
@media(min-width:1600px){.basket-sections .identity-heading{width:270px}.basket-sections .basket-identity b{font-size:14px}.basket-sections .basket-money{font-size:13px}.basket-sections .basket-stepper{max-width:60px}}
@media(max-width:1100px){
 .basket-sections .basket-sheet,.basket-sections .basket-sheet tbody{display:block}.basket-sections .basket-sheet thead{display:none}.basket-sections .basket-sheet tr{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));border-bottom:1px solid #dfe3e8}.basket-sections .basket-sheet td{display:block;border:0;max-width:none;padding:8px 4px}.basket-sections .basket-row-order{grid-column:1;grid-row:1;align-content:center}.basket-sections .basket-row-order>div{flex-direction:row;justify-content:center}.basket-sections .basket-identity{grid-column:2/-2;grid-row:1}.basket-sections .basket-delete-cell{grid-column:-2/-1;grid-row:1;align-content:center;text-align:center}.basket-sections .basket-unit-price{grid-column:1/-1;grid-row:2;text-align:left;background:#f5f7f9!important}.basket-sections .basket-unit-price:before{content:'Цена за штуку: ';color:#7e8794}.basket-sections .basket-size-cell{border-right:1px solid #e8ebef!important;border-bottom:1px solid #e8ebef!important}.basket-sections .size-label{display:block;font-size:12px}.basket-sections .basket-stepper{max-width:58px}.basket-sections .basket-stepper button{height:30px}.basket-sections .basket-stepper input{height:34px}.basket-sections .basket-reset{height:28px}.basket-sections .basket-line-qty{grid-column:1/5;border-top:1px solid #dfe3e8!important;text-align:left;padding:12px!important}.basket-sections .basket-line-amount{grid-column:5/-1;border-top:1px solid #dfe3e8!important;padding:12px!important}.basket-sections .basket-line-qty:before{content:'Всего, шт.: ';color:#7e8794}.basket-sections .basket-line-amount:before{content:'Сумма: ';color:#7e8794}
}
@media(max-width:600px){.basket-sections .basket-sheet tr{grid-template-columns:repeat(5,minmax(0,1fr))}.basket-sections .basket-line-qty{grid-column:1/3}.basket-sections .basket-line-amount{grid-column:3/-1}.basket-sections .basket-section-title h2{font-size:22px}.basket-sections .basket-identity{padding:10px 4px!important}.basket-sections .basket-identity b{font-size:12px}.basket-sections .basket-sheet .basket-row-order button,.basket-sections .basket-delete{height:32px}.basket-sections .basket-stepper button{height:32px}}

/* Stock and inline quantity controls. */
.basket-section-title{flex-wrap:wrap}.basket-section-total{margin-left:auto;font-size:18px;font-variant-numeric:tabular-nums;white-space:nowrap}
.basket-sections .basket-size-cell .basket-stock{color:#738091;font-size:10px;line-height:16px;margin:0 auto 4px;white-space:nowrap}.basket-sections .unavailable .basket-stock{color:#a0a8b2}
.basket-sections .basket-stepper{display:grid;grid-template-columns:minmax(0,16px) minmax(0,1fr) minmax(0,16px);gap:1px;max-width:72px;width:100%;align-items:center}
.basket-sections .basket-stepper input{grid-column:auto;grid-row:auto;width:100%;min-width:0;height:28px;font-size:12px;padding:1px;border-radius:4px}
.basket-sections .basket-stepper button{height:22px;min-width:0;width:100%;padding:0;font-size:14px;border:0;background:transparent}
@media(max-width:1100px){.basket-sections .basket-stepper{grid-template-columns:minmax(0,18px) minmax(0,1fr) minmax(0,18px);max-width:78px}.basket-sections .basket-stepper button{height:28px}.basket-sections .basket-stepper input{height:32px}.basket-section-total{font-size:16px}}
.basket-sections .basket-sheet .empty-size{background-image:linear-gradient(to top right,transparent calc(50% - .5px),#d4dbe3 50%,transparent calc(50% + .5px)),linear-gradient(to bottom right,transparent calc(50% - .5px),#d4dbe3 50%,transparent calc(50% + .5px))!important;background-color:#f1f3f5!important}.basket-sections .empty-size .crossed-size:before,.basket-sections .empty-size .crossed-size:after{display:none}.basket-sections .empty-size .crossed-size,.basket-sections .empty-size .basket-stock{position:relative;z-index:1;background:#f1f3f5;width:max-content;padding:0 3px}

/* Make ordered quantities immediately distinguishable from empty sizes. */
.basket-sections .basket-stepper input{color:#929baa;font-variant-numeric:tabular-nums}
.basket-sections .basket-sheet td.has-quantity{background-color:#eaf2fb!important;box-shadow:inset 0 3px 0 #7c9dbc}
.basket-sections .has-quantity .basket-stepper input{background:#244766;color:#fff;border-color:#244766;font-weight:750;font-size:14px;box-shadow:0 1px 3px #24476626}
.basket-sections .has-quantity .basket-stepper button:not(:disabled){color:#244766;font-weight:700}
.basket-sections .has-quantity .basket-stock{color:#536b82}
.basket-sections .has-quantity .basket-stepper input:focus{outline:2px solid #7c9dbc;outline-offset:2px}
.basket-sections .basket-sheet td.has-quantity.unavailable{background-color:#fff4e7!important;box-shadow:inset 0 3px 0 #d5a45c}
.basket-sections .basket-stepper{grid-template-columns:minmax(0,18fr) minmax(0,64fr) minmax(0,18fr);gap:0}
/* Keep each unit price together, including the currency sign. */
.basket-sections .basket-sheet .price-heading{width:100px}
.basket-sections .basket-sheet .basket-unit-price{white-space:nowrap;overflow-wrap:normal;word-break:normal}
@media(min-width:1600px){.basket-sections .basket-sheet .price-heading{width:110px}}

/* A shortage overrides the blue selected-quantity styling. */
.basket-sections .basket-sheet td.stock-shortage{background:#fff0f1!important;box-shadow:inset 0 0 0 2px #cf263b!important}
.basket-sections .stock-shortage .basket-stepper input{background:#b91c32;color:#fff;border-color:#b91c32}
.basket-sections .stock-shortage .basket-stock,.basket-sections .stock-shortage .danger{color:#ac1830;font-weight:700;display:block;white-space:normal;line-height:1.3}
.basket-sections .stock-shortage [data-reduce-sku]{font-size:11px;padding:5px;margin-top:5px;color:#ac1830;border:1px solid #e4a0aa;border-radius:4px;background:white}
.basket-dock-actions{position:relative}
.basket-block-reason{position:absolute;bottom:calc(100% + 8px);right:0;max-width:320px;padding:7px 10px;border:1px solid #e4a0aa;border-radius:5px;background:#fff0f1;color:#ac1830;font-size:12px;line-height:1.3}
.basket-block-reason button{font:inherit;color:inherit;background:none;border:0;padding:0;text-decoration:underline;cursor:pointer}

/* Each basket section keeps its own size headings visible while scrolling. */
@media(min-width:1101px){
 .basket-sections .basket-sheet thead{position:sticky;top:0;z-index:5}
 .basket-sections .basket-sheet thead th{background:#f3f5f7;box-shadow:0 2px 0 #dfe3e8,0 4px 6px #2030400c}
}
