/* Pills + product shelf (apteka-like skeleton, Elmet palette) */

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 11px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
}
.pill.stock.ok,
.pill.stock.wait {
  gap: 6px;
  background: #fff;
  color: var(--elmet-ink, #1c5d68);
  border: 1px solid rgba(28, 93, 104, 0.14);
  border-radius: 999px;
  padding: 3px 10px 3px 4px;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.02em;
  box-shadow: 0 1px 6px rgba(20, 58, 66, 0.2);
}
.pill.stock .stock-mark {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  flex: none;
  display: block;
  object-fit: cover;
}
.pill.stock.wait { color: #5a6e72; }
.pill.price,
.nameplate {
  position: relative;
  background: #fff;
  color: var(--ink, #1c5d68);
  border: 1px solid var(--elmet-aqua-deep, #3ea0b0);
  border-radius: 0;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 0 100%);
  font-family: "Source Serif 4", serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 7px 14px 10px 12px;
  box-shadow: none;
}
.pill.price::after,
.nameplate::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 12px;
  bottom: 5px;
  height: 1.5px;
  background: var(--elmet-red);
}
.pill.ghost {
  background: #fff;
  border: 1px solid var(--line);
  color: #111;
  font-weight: 600;
}
.pills { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 12px; }
.price-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.price-pills s { color: var(--muted); font-size: 13px; }
.price-pills.lg .pill.price { font-size: 22px; padding: 8px 18px; }

.shelf {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding-bottom: 28px;
}
.tile {
  background: #fff;
  border-radius: 16px;
  padding: 12px 12px 14px;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  box-shadow: 0 1px 0 rgba(0,0,0,.04);
}
.tile:hover { box-shadow: 0 8px 24px rgba(0,0,0,.08); }
.tile .pic {
  position: relative;
  display: block;
  height: 168px;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 10px;
}
.tile .pic.is-dark,
.stock-rail .tile-rail .pic.is-dark,
.cat-mini .pic.is-dark,
.cart-line .pic.is-dark {
  background: #f4f4f4;
}
.tile .pill.stock {
  position: absolute;
  left: 8px;
  top: 8px;
  z-index: 2;
  width: max-content;
  max-width: calc(100% - 16px);
  background: #fff;
  border-radius: 999px;
}
.tile .ttl {
  font-weight: 650;
  line-height: 1.3;
  font-size: 14px;
  min-height: 2.6em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.tile:hover .ttl { text-decoration: underline; text-decoration-color: var(--elmet-red); text-underline-offset: 3px; }
.tile .spec {
  font-size: 12px;
  color: var(--muted);
  margin: 6px 0 10px;
}
.tile .price-pills { margin-top: auto; }
.tile .buy-row { margin-top: auto; }
.tile .acts {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.stock-now { padding: 10px 0 8px; }
.stock-rail {
  margin: 0 0 22px;
}
.rail-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}
.rail-head h3 {
  font-family: "Source Serif 4", serif;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--elmet-ink, #1c5d68);
}
.rail-head p {
  margin-top: 2px;
  font-size: 13px;
  color: var(--muted);
}
.rail-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
}
.rail-more {
  font-size: 13px;
  font-weight: 650;
  color: var(--elmet-ink, #1c5d68);
  margin-right: 6px;
}
.rail-more:hover { color: var(--elmet-red); }
.rail-arr {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: var(--elmet-ink, #1c5d68);
  box-shadow: inset 0 0 0 1px rgba(28, 93, 104, 0.22);
  cursor: pointer;
  font: inherit;
  font-size: 18px;
  line-height: 1;
  display: grid;
  place-items: center;
}
.rail-arr:hover { box-shadow: inset 0 0 0 1px var(--elmet-ink, #1c5d68); }
.stock-rail.is-start [data-rail-prev],
.stock-rail.is-end [data-rail-next],
.stock-rail.is-plain .rail-arr,
[data-rail].is-start [data-rail-prev],
[data-rail].is-end [data-rail-next],
[data-rail].is-plain .rail-arr {
  opacity: 0.35;
  pointer-events: none;
}
.rail-track {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 2px 2px 8px;
}
.rail-track::-webkit-scrollbar { display: none; }
.stock-rail .tile-rail {
  flex: 0 0 calc((100% - 70px) / 6);
  min-width: 168px;
  scroll-snap-align: start;
  background: #fff;
  border-radius: 12px;
  padding: 10px 10px 12px;
  box-shadow: inset 0 0 0 1px rgba(28, 93, 104, 0.08);
}
.stock-rail .tile-rail:hover {
  box-shadow: inset 0 0 0 1px rgba(28, 93, 104, 0.22);
}
.stock-rail .tile-rail .pic {
  height: 118px;
  background: #fff;
  border-radius: 8px;
  margin-bottom: 8px;
}
.stock-rail .tile-rail .ttl {
  font-size: 12.5px;
  font-weight: 650;
  min-height: 2.5em;
}
.stock-rail .tile-rail:hover .ttl { text-decoration: none; color: var(--elmet-ink, #1c5d68); }
.stock-rail .tile-rail .spec {
  font-size: 11px;
  margin: 4px 0 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.stock-rail .buy-row { gap: 6px; }
.stock-rail .buy-row .sum {
  font-size: 16px;
  padding-bottom: 0;
  box-shadow: none;
}
.stock-rail .qty button { width: 24px; padding: 5px 0 7px; font-size: 14px; }
.stock-rail .qty input { width: 26px; font-size: 13px; padding: 5px 0 7px; }
.stock-rail .nameplate.add {
  min-width: 0;
  flex: 1;
  font-size: 12px;
  padding: 4px 2px;
}
.rail-meter {
  position: relative;
  height: 16px;
  margin: 4px 0 0;
  cursor: pointer;
}
.rail-meter::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: rgba(28, 93, 104, 0.14);
}
.rail-thumb {
  position: absolute;
  top: 50%;
  height: 2px;
  margin-top: -1px;
  left: 0;
  width: 22%;
  border-radius: 99px;
  background: var(--elmet-ink, #1c5d68);
  pointer-events: none;
}
.rail-thumb::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 7px;
  height: 7px;
  margin: -3.5px 0 0 -3.5px;
  border-radius: 50%;
  background: var(--elmet-ink, #1c5d68);
  box-shadow: 0 0 0 2px #fff;
}
.rail-meter:hover .rail-thumb { height: 3px; margin-top: -1.5px; }
.stock-rail.is-plain .rail-thumb { width: 100%; }
.stock-rail.is-plain .rail-thumb::after { display: none; }

@media (max-width: 1100px) {
  .stock-rail .tile-rail { flex-basis: calc((100% - 42px) / 4); }
}
@media (max-width: 900px) {
  .stock-rail .tile-rail { flex-basis: calc((100% - 14px) / 2.2); }
  .rail-head { align-items: center; }
  .rail-head p { display: none; }
}

.buy-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
}
.buy-row .sum {
  flex: 1 1 100%;
  font-family: "Source Serif 4", serif;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink, #1c5d68);
  width: fit-content;
  padding: 0;
  box-shadow: none;
}
.buy-row.lg .sum { font-size: 28px; }
.qty {
  display: inline-flex;
  align-items: stretch;
  background: transparent;
  border: 0;
  clip-path: none;
  flex: none;
}
.qty button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--ink, #1c5d68);
  width: 30px;
  padding: 8px 0 10px;
  font: inherit;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}
.qty input {
  width: 32px;
  border: 0;
  border-left: 0;
  border-right: 0;
  background: transparent;
  text-align: center;
  color: var(--ink, #1c5d68);
  font-family: "Source Serif 4", serif;
  font-weight: 600;
  font-size: 15px;
  padding: 8px 0 10px;
}
.qty input:focus { outline: none; }
.nameplate.add {
  flex: 1;
  min-width: 108px;
  cursor: pointer;
  font: inherit;
  font-family: "Source Serif 4", serif;
  font-weight: 600;
  background: transparent;
  border: 0;
  clip-path: none;
  box-shadow: none;
  padding: 4px 2px;
  transform-origin: center;
  transition: transform .22s cubic-bezier(.2, .8, .2, 1), font-weight .18s ease, letter-spacing .18s ease, -webkit-text-stroke .18s ease;
}
.nameplate.add::after { content: none; }
.nameplate.add:hover,
.nameplate.add:focus-visible {
  transform: scale(1.08);
  font-weight: 800;
  letter-spacing: 0.01em;
  -webkit-text-stroke: 0.35px currentColor;
}
.buy-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.buy-acts .nameplate { padding: 10px 18px 12px; cursor: pointer; font: inherit; }
.buy-acts .nameplate.ghost {
  background: transparent;
  border: 0;
  clip-path: none;
  box-shadow: none;
  padding: 2px 0;
}
.buy-acts .nameplate.ghost::after { content: none; }
.rec-now { padding-bottom: 28px; }
.rec-rail .rail-head h2 {
  font-family: "Source Serif 4", serif;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--elmet-ink, #1c5d68);
  margin: 0;
}
.rec-rail .tile-rail .pic { position: relative; }
.icon-round {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
  flex: none;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  min-height: 0;
  padding: 0;
  line-height: 1;
}
.quick .marquee-wrap {
  display: block;
  min-height: 0;
  padding: 4px 0 6px;
}
.marquee {
  overflow: hidden;
  height: 26px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 28px, #000 calc(100% - 28px), transparent);
  mask-image: linear-gradient(90deg, transparent, #000 28px, #000 calc(100% - 28px), transparent);
}
.marquee-track {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  height: 26px;
  width: max-content;
  will-change: transform;
  backface-visibility: hidden;
}
.marquee-set {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 4px;
  padding-right: 4px;
  flex: none;
}
button.chip {
  appearance: none;
  font: inherit;
  cursor: pointer;
  color: inherit;
}
.chip {
  border-radius: 999px;
  clip-path: none;
  padding: 5px 12px;
  background: rgba(255, 255, 255, 0.45);
  border: 0;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  flex: none;
  white-space: nowrap;
  text-decoration: none;
  position: relative;
  color: var(--elmet-ink, #1c5d68);
  transition: background 0.2s ease;
}
.chip:hover,
.chip:focus-visible {
  background: rgba(255, 255, 255, 0.78);
  transform: none;
}
.chip.accent {
  background: rgba(255, 255, 255, 0.62);
  color: var(--elmet-ink, #1c5d68);
  border: 0;
  box-shadow: none;
  font-family: "Source Serif 4", serif;
}
.chip.accent::after { content: none; }
.marquee.is-static {
  -webkit-mask-image: none;
  mask-image: none;
}
.marquee.is-static .marquee-track {
  min-width: 100%;
  justify-content: center;
}
@media (prefers-reduced-motion: reduce) {
  .marquee {
    -webkit-mask-image: none;
    mask-image: none;
  }
  .marquee-track { transform: none !important; }
}

.buybox {
  background: #fff;
  border-radius: 20px;
  padding: 22px 24px;
  height: fit-content;
}
.buybox h1 { font-size: clamp(22px, 3vw, 30px) !important; letter-spacing: -.02em; }
.buybox .sku { font-size: 13px; color: var(--muted); }
.buybox .lead { max-width: none; }
.demo-note { display: block; color: var(--muted); font-size: 12px; margin: 8px 0 14px; }
.buy-acts { display: flex; flex-wrap: wrap; gap: 8px; }

.cat-boards { display: grid; gap: 16px; padding-bottom: 36px; }
.cat-hub .sec-h { margin-top: 8px; }
.cat-hub h1 { font-size: clamp(22px, 2.6vw, 30px); }
.cat-seo-lead { color: var(--muted); line-height: 1.5; margin: 0 0 18px; }
.home-seo { padding: 22px 0 28px; }
.home-seo-h { font-size: 18px; margin: 0 0 8px; }
.home-seo p { color: var(--muted); line-height: 1.55; margin: 0; }
.cat-seo { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line, #e6e4de); }
.cat-seo > p { color: var(--muted); line-height: 1.55; margin: 0; }
.cat-faq { margin: 16px 0 0; display: grid; gap: 12px; }
.cat-faq dt { font-weight: 600; font-size: 14px; }
.cat-faq dd { margin: 4px 0 0; color: var(--muted); font-size: 14px; line-height: 1.45; }
.cat-also { margin: 16px 0 0; font-size: 14px; }
.cat-also a { text-decoration: underline; text-underline-offset: 2px; }
.cat-board {
  height: auto;
  min-height: 0;
  padding: 8px;
  border-radius: 18px;
  background: transparent;
}
.cat-board .cat-frost {
  height: auto;
  min-height: 0;
  gap: 14px;
  padding: 16px 18px 18px;
  border-radius: 12px;
}
.cat-board .cat-top {
  margin: 0;
  padding: 0;
  background: transparent;
  border-radius: 0;
}
.cat-board .cat-foot {
  margin: 0;
  padding: 0;
  background: transparent;
  border-radius: 0;
  gap: 18px;
}
.cat-board .cat-go { font-size: 14px; }
.cat-board .cat-count { font-size: 13px; }
.cat-board-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  position: relative;
  z-index: 1;
}
.cat-board-top h2 { font-size: 22px; letter-spacing: -.02em; }
.cat-board-top p {
  color: #06181c;
  font-size: 13px;
  margin-top: 8px;
  max-width: 62ch;
  opacity: .82;
}
.cat-board-rail {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 40px;
  align-items: center;
  gap: 8px;
  position: relative;
  z-index: 1;
}
.cat-board-arr {
  position: static;
  transform: none;
  z-index: 3;
  width: 40px;
  height: 40px;
  font-size: 22px;
  justify-self: center;
  background: #fff;
  color: var(--elmet-ink, #1c5d68);
  box-shadow: 0 4px 16px rgba(28, 93, 104, 0.28), inset 0 0 0 1px rgba(28, 93, 104, 0.28);
}
.cat-board-previews {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 60px) / 6.5);
  gap: 10px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
  min-width: 0;
  position: relative;
  z-index: 1;
}
.cat-board-previews::-webkit-scrollbar { display: none; }
.cat-board-previews .cat-mini {
  min-width: 0;
  max-width: none;
  width: auto;
  scroll-snap-align: start;
}
.cat-mini {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px;
  background: rgba(255, 255, 255, .9);
  border-radius: 12px;
  min-width: 0;
}
.cat-mini .pic {
  height: 88px;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
}
.cat-mini .pic img, .cat-mini .pic svg { width: 100%; height: 100%; object-fit: contain; }
.cat-mini .ttl {
  font-size: 13px;
  line-height: 1.3;
  font-weight: 650;
  color: #06181c;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.5em;
}
.cat-mini .buy-row { gap: 6px; margin-top: auto; }
.cat-mini .buy-row .sum {
  font-size: 16px;
  padding-bottom: 0;
}
.cat-mini .qty button { width: 24px; padding: 5px 0 7px; font-size: 14px; }
.cat-mini .qty input { width: 26px; font-size: 13px; padding: 5px 0 7px; }
.cat-mini .nameplate.add {
  min-width: 0;
  flex: 1;
  font-size: 12px;
  padding: 4px 2px;
}
.cat-mini .pill.price { font-size: 12px; padding: 4px 10px; width: fit-content; }
.cat-empty { color: var(--muted); font-size: 14px; padding: 12px 0; }

.tz-block { padding: 8px 0 0; }
.tz-card {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 28px;
  background: #111;
  color: #fff;
  border-radius: 24px;
  padding: 0 0 0 32px;
  box-shadow: inset 0 -3px 0 var(--elmet-red);
  overflow: hidden;
  position: relative;
}
.tz-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("img/applique-warehouse.png") center / cover no-repeat;
  pointer-events: none;
  z-index: 0;
}
.tz-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(62, 160, 176, 0.88) 0%, rgba(62, 160, 176, 0.52) 42%, rgba(28, 93, 104, 0.2) 100%);
  pointer-events: none;
  z-index: 0;
}
.tz-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
  position: relative;
  z-index: 1;
  padding: 28px 12px 0 0;
}
.tz-copy .kicker { color: #fff; border-bottom-color: var(--elmet-red); }
.tz-copy h2 { font-size: clamp(26px, 4vw, 40px); letter-spacing: -.03em; margin: 10px 0 12px; }
.tz-copy p { color: #cfcfcf; max-width: 42ch; line-height: 1.45; }
.tz-person {
  margin: 12px 0 0;
  max-width: 260px;
  background: none;
}
.tz-person img {
  width: 100%;
  height: auto;
  display: block;
  background: none;
  border-radius: 0;
}
.tz-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: minmax(148px, 1fr) auto auto auto auto;
  gap: 12px;
  align-items: stretch;
  align-self: stretch;
  position: relative;
  z-index: 1;
  isolation: isolate;
  overflow: hidden;
  margin: 18px 18px 18px 8px;
  padding: 24px 24px 22px;
  background: rgba(255, 255, 255, 0.22);
  border-radius: 24px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.32);
}
.tz-form::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  backdrop-filter: blur(22px) saturate(1.15);
  -webkit-backdrop-filter: blur(22px) saturate(1.15);
}
.tz-form .field-full { grid-column: 1 / -1; min-height: 0; display: grid; grid-template-rows: auto 1fr; }
.tz-form .field-full textarea { min-height: 148px; height: 100%; }
.sheet-form .btn,
.tz-form .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 14px 22px;
  border: 0;
  border-radius: 999px;
  font-family: Manrope, sans-serif;
  font-size: 16px;
  font-weight: 750;
  letter-spacing: .02em;
  cursor: pointer;
  transition: transform .18s cubic-bezier(.2, .8, .2, 1), box-shadow .18s ease, background .18s ease;
}
.sheet-form .btn {
  width: 100%;
  background: var(--elmet-ink, #1c5d68);
  color: #fff;
  box-shadow: 0 8px 18px rgba(28, 93, 104, .22);
}
.sheet-form .btn:hover,
.sheet-form .btn:focus-visible {
  background: var(--elmet-aqua-deep, #3ea0b0);
  color: #fff;
  transform: scale(1.02);
  box-shadow: 0 10px 22px rgba(28, 93, 104, .28);
}
.tz-form .btn {
  grid-column: 1 / -1;
  justify-self: start;
  min-width: min(100%, 280px);
  background: #fff;
  color: var(--elmet-ink, #1c5d68);
  box-shadow: 0 8px 18px rgba(0, 0, 0, .18);
}
.tz-form .btn:hover,
.tz-form .btn:focus-visible {
  background: #f3fbfd;
  color: var(--elmet-ink, #1c5d68);
  transform: scale(1.02);
  box-shadow: 0 10px 22px rgba(0, 0, 0, .22);
}
.tz-form .form-ok { grid-column: 1 / -1; color: #f3e2b0; }

.field { display: grid; gap: 6px; font-size: 12px; font-weight: 650; }
.field span { letter-spacing: .04em; }
.field input, .field textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  color: #111;
  padding: 11px 12px;
  border-radius: 12px;
  font: inherit;
  font-weight: 500;
}
.tz-form .field span { color: #ddd; }
.field-row { display: flex; align-items: center; gap: 8px; }
.field-row input { flex: 1; }
.lamp {
  width: 12.8px;
  height: 12.8px;
  border-radius: 50%;
  flex: none;
  pointer-events: none;
  background: radial-gradient(circle at 35% 32%, #fff8e0, #e4c04a 62%, #c4921a);
  box-shadow: 0 0 8px 1.6px rgba(228, 192, 74, .75);
  transition: background .2s, box-shadow .2s;
}
.lamp.on {
  background: radial-gradient(circle at 35% 32%, #eaffea, #3ecf4a 62%, #1a9a2a);
  box-shadow: 0 0 8px 1.6px rgba(62, 207, 74, .7);
}
.form-ok { font-size: 14px; margin-top: 8px; }
.form-err { font-size: 14px; margin-top: 8px; color: var(--elmet-red); }
.form-err a { text-decoration: underline; }
.form-id { font-weight: 500; opacity: .75; }
.hp {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  opacity: 0;
  pointer-events: none;
}
.tz-form, .sheet-form { position: relative; }
.sheet-form {
  grid-template-columns: 1fr 1fr;
  align-items: end;
}
.sheet-form .field:first-of-type,
.sheet-form .field-full,
.sheet-form .btn,
.sheet-form [data-form-ok],
.sheet-form .form-ok,
.sheet-form .form-err { grid-column: 1 / -1; }
.sheet-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.page-cta { margin-top: 22px; }
.cart-list { display: grid; gap: 10px; max-height: 36vh; overflow: auto; padding-right: 2px; }
.cart-line {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto auto 28px;
  gap: 8px;
  align-items: center;
}
.cart-line .pic {
  width: 52px;
  height: 52px;
  background: #fff;
  border-radius: 10px;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.cart-line .pic img, .cart-line .pic svg { width: 100%; height: 48px; object-fit: contain; }
.cart-line .meta { min-width: 0; }
.cart-line .ttl { display: block; font-size: 13px; font-weight: 650; line-height: 1.25; }
.cart-line .spec { font-size: 11px; color: var(--muted); }
.cart-line .sum {
  font-family: "Source Serif 4", serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--elmet-ink, #1c5d68);
  white-space: nowrap;
}
.cart-del {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  padding: 4px;
}
.cart-del:hover { color: var(--elmet-red); }
.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 8px 0 2px;
  border-top: 1px solid var(--line);
  font-size: 13px;
}
.cart-total b {
  font-family: "Source Serif 4", serif;
  font-size: 22px;
  font-weight: 600;
  color: var(--elmet-ink, #1c5d68);
}
.shake { animation: formshake .4s ease; }
@keyframes formshake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

.pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0 36px;
}
.pager a, .pager-nums a, .pager i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 650;
}
.pager > a { border: 1px solid var(--line); background: #fff; }
.pager > a:hover { border-color: #111; }
.pager-nums { display: flex; gap: 4px; flex-wrap: wrap; justify-content: center; }
.pager-nums a.on { background: #111; color: #fff; }
.pager-nums i { color: var(--muted); }
.filters a i {
  font-style: normal;
  color: var(--muted);
  font-weight: 600;
  font-size: 11px;
  margin-left: 0;
  flex: none;
}
.filter-note { font-size: 11px; color: var(--muted); margin: 10px 0 0; }
@media (max-width: 1100px) {
  .shelf { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .shelf { grid-template-columns: repeat(2, 1fr); }
  .tile .pic { height: 132px; }
  .tz-card, .tz-form, .sheet-form { grid-template-columns: 1fr; }
  .tz-card { padding: 16px 0 0; }
  .tz-copy { padding: 16px 16px 0 0; }
  .tz-person { display: none; }
  .tz-form {
    margin: 12px 16px 16px;
    padding: 16px;
    gap: 10px;
    grid-template-rows: none;
    align-self: start;
  }
  .tz-form .field-full textarea { min-height: 88px; height: auto; }
  .cart-line {
    grid-template-columns: 44px minmax(0, 1fr) auto 24px;
    grid-template-rows: auto auto;
  }
  .cart-line .pic { grid-row: 1 / 3; }
  .cart-line .meta { grid-column: 2 / 4; }
  .cart-line .qty { grid-column: 2; justify-self: start; }
  .cart-line .sum { grid-column: 3; }
  .cart-del { grid-column: 4; grid-row: 1 / 3; }
  .cat-board-previews { grid-auto-columns: calc((100% - 30px) / 3.5); }
  .cat-board-top { flex-direction: column; align-items: flex-start; }
  .cat-layout .filters a {
    flex: 0 0 auto;
    display: inline-flex;
    width: auto;
    white-space: nowrap;
    padding: 5px 10px;
    border-bottom: 0;
    border-radius: 999px;
    background: rgba(28, 93, 104, 0.08);
  }
  .cat-layout .filters a:hover,
  .cat-layout .filters a.on {
    border-bottom: 0;
    background: var(--elmet-ink, #1c5d68);
    color: #fff;
  }
}
