:root {
  --ink: #161616;
  --muted: #5e5e5e;
  --line: #e5e5e5;
  --bg: #f4f4f4;
  --paper: #fff;
  --orange: #e4570e;
  --header: #111;
  --ok: #0f6b3c;
  --danger: #9f1239;
  --shadow: 0 1px 2px rgba(0, 0, 0, .04);
  --empire: #5b3a8c;
  --rebel: #b42318;
  --republic: #b45309;
  --separatist: #1d4e89;
  --mercenary: #8a6a2f;
  --neutral: #444;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font: 15px/1.55 "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}
body:not(.is-admin) {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
body:not(.is-admin) main { flex: 1 0 auto; }
a { color: inherit; }
img { max-width: 100%; display: block; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: 32px; line-height: 1.2; letter-spacing: -0.02em; }
h2 { font-size: 18px; }
button, input, select, textarea { font: inherit; color: inherit; }
.wrap { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.muted { color: var(--muted); font-size: 13px; }
.lead { font-size: 16px; color: #333; }

.head { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.head-inner {
  display: grid;
  grid-template-columns: auto minmax(220px, 1fr) auto;
  align-items: center;
  gap: 20px;
  min-height: 76px;
}
.brand { text-decoration: none; display: flex; flex-direction: row; align-items: center; gap: 12px; min-width: 0; }
.brand span { display: flex; flex-direction: column; }
.brand-mark { height: 46px; width: auto; display: block; }
.brand strong { font-size: 18px; letter-spacing: 0.04em; }
.brand em { font-style: normal; color: var(--muted); font-size: 12px; }
.search { display: flex; min-width: 0; width: 100%; }
.search input,
.stack input, .stack textarea, .stack select,
.form-grid input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.form-grid textarea, .form-grid select,
.inline-search input, .inline-search select,
.filter-bar input, .filter-bar select,
.qty-form input, .buy input, .status-form select, .toolbar select {
  width: 100%;
  height: 40px;
  border: 1px solid #ccc;
  background: #fff;
  border-radius: 2px;
  padding: 0 12px;
}
.form-grid input[type="checkbox"],
.form-grid input[type="radio"],
.product-form input[type="checkbox"],
.product-form input[type="radio"] {
  width: 16px;
  height: 16px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  accent-color: #18181b;
  flex: none;
}
.stack textarea, .form-grid textarea { height: auto; min-height: 96px; padding: 10px 12px; }
.search input { border-right: 0; width: auto; flex: 1; min-width: 0; }
.search button, .btn {
  white-space: nowrap;
  flex: none;
  border: 1px solid #111;
  background: #fff;
  height: 40px;
  padding: 0 14px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.btn-primary, .search button { background: #111; color: #fff; }
.btn-primary:hover, .search button:hover, .btn:hover { background: var(--orange); border-color: var(--orange); color: #fff; }
.head-nav { display: flex; align-items: center; gap: 16px; white-space: nowrap; }
.head-nav a, .head-nav .text-btn { text-decoration: none; font-size: 15px; }
.head-nav form { display: flex; align-items: center; margin: 0; }
.who { color: var(--muted); font-size: 15px; }
.head:has(.cart-open) .head-inner { padding-right: 210px; }
.cart-open {
  position: absolute;
  top: 11px;
  right: max(16px, calc((100% - 1180px) / 2));
  z-index: 6;
  min-width: 195px;
  height: 54px;
  margin: 0;
  padding: 5px 10px;
  border: 0;
  border-radius: 50px;
  background: #ffbc00;
  color: #09090b;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-weight: 700;
}
.cart-sum {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin: 0 30px 0 10px;
  line-height: normal;
  white-space: nowrap;
}
.cart-sum-label { font-size: 10px; letter-spacing: 0.5px; line-height: 1.2; }
.cart-sum [data-cart-total] { font-size: 12px; line-height: 1.2; font-variant-numeric: tabular-nums; }
.cart-mark {
  position: relative;
  flex: none;
  width: 45px;
  height: 43px;
  border-radius: 50%;
  background: #fff;
  color: #ffbc00;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.cart-mark svg { display: block; width: 20px; height: 20px; }
.cart-mark b {
  position: absolute;
  top: -5px;
  right: -5px;
  z-index: 1;
  min-width: 19px;
  height: 19px;
  padding: 0 4px;
  border-radius: 50%;
  background: #946c00;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 19px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.text-btn { border: 0; background: none; padding: 0; cursor: pointer; text-decoration: underline; color: inherit; }
.danger { color: var(--danger); }

.flashes { padding-top: 16px; }
.flash { margin: 8px 0; padding: 10px 12px; background: #fff; border-left: 4px solid var(--orange); }
.flash-ok { border-color: var(--ok); }
.flash-error { border-color: var(--danger); }

.collection, .product, .narrow, .checkout, .login { padding: 28px 0 48px; }
.collection { background: #fff; }
.collection-wrap { width: min(1360px, calc(100% - 32px)); }
.crumb { color: #000; font-size: 13px; }
.crumb a { color: inherit; }
.collection-head { margin: 8px 0 18px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.collection-head h1 { margin: 0; color: #2e2e2e; font-size: 34px; font-weight: 700; }
.collection-head p { color: #2e2e2e; font-size: 14px; line-height: 1.5; margin: 0; }
.hero { display: grid; grid-template-columns: 1.4fr .8fr; gap: 28px; align-items: center; background: #fff; border: 1px solid var(--line); padding: 22px; }
.hero img { height: 220px; width: 100%; object-fit: cover; object-position: center; background: #111; }
.hero-path img { background: #efe7dc; }
.catalog { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 36px; }
.filters { position: sticky; top: 92px; align-self: start; }
.filter-block { margin-bottom: 26px; }
.filter-block h2 { font-size: 16px; font-weight: 700; color: #2e2e2e; margin: 0 0 10px; padding-bottom: 8px; border-bottom: 1px solid #ebebeb; }
.filters a { display: block; padding: 5px 0; color: #2e2e2e; text-decoration: none; font-size: 14px; }
.filters a.check { display: flex; align-items: center; gap: 8px; }
.filters a.check::before {
  content: "";
  width: 16px;
  height: 16px;
  flex: none;
  border: 1px solid #18181b;
  background: #fff;
}
.filters a.check.on::before { background: #ffbc00; box-shadow: inset 0 0 0 3px #fff; }
.clear { color: #2e2e2e; font-size: 13px; text-decoration: underline; }
.price-range { display: flex; align-items: center; gap: 8px; }
.price-range input {
  width: 100%;
  min-width: 0;
  height: 36px;
  border: 1px solid #d5d5d5;
  border-radius: 8px;
  padding: 0 10px;
  background: #fff;
  color: #2e2e2e;
}
.price-range span { color: #2e2e2e; }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; min-height: 40px; }
.toolbar p { margin: 0; color: #2e2e2e; font-size: 14px; }
.toolbar-tools { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.toolbar form { display: flex; align-items: center; gap: 10px; }
.toolbar form label { color: #2e2e2e; font-size: 14px; font-weight: 700; }
.choice {
  position: relative;
  display: inline-block;
  vertical-align: middle;
  max-width: 100%;
}
.choice.is-faction { width: 148px; }
.choice.is-category { width: 124px; }
.choice.is-sort { width: 140px; }
.choice.is-city { width: 168px; }
#dealer-dialog .choice.is-city { width: 100%; }
#dealer-dialog .choice-menu { max-height: 240px; overflow-y: auto; }
#dealer-dialog,
#dealer-dialog form { overflow: visible; max-height: none; }
.choice-native {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  opacity: 0;
  pointer-events: none;
  overflow: hidden;
}
.choice-trigger {
  width: 100%;
  height: 40px;
  margin: 0;
  border: 1px solid #18181b;
  border-radius: 20px;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1.2 1.4 6 6.2 10.8 1.4' fill='none' stroke='%2318181b' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding: 0 36px 0 16px;
  color: #2e2e2e;
  font-size: 14px;
  font-weight: 700;
  line-height: 40px;
  text-align: left;
  cursor: pointer;
  box-shadow: 2px 4px 0 #e4e4e7;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.choice.is-open .choice-trigger {
  border-radius: 20px 20px 0 0;
  border-bottom-color: transparent;
  background-color: #fff8e1;
  box-shadow: none;
  position: relative;
  z-index: 41;
}
.choice-trigger:focus {
  outline: none;
}
.choice-menu {
  position: absolute;
  top: calc(100% - 1px);
  left: 0;
  z-index: 40;
  min-width: 100%;
  margin: 0;
  padding: 4px 6px 8px;
  list-style: none;
  border: 1px solid #18181b;
  border-radius: 0 0 20px 20px;
  background: #fff8e1;
  box-shadow: 2px 5px 0 #18181b;
}
.choice-menu[hidden] { display: none; }
.choice-option {
  display: block;
  width: 100%;
  margin: 0;
  padding: 8px 12px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: #2e2e2e;
  font-size: 14px;
  font-weight: 700;
  text-align: left;
  white-space: nowrap;
  cursor: pointer;
}
.choice-option:hover,
.choice-option.is-active {
  background: #ffbc00;
  color: #09090b;
}
.layout-switch { display: flex; align-items: center; gap: 6px; }
.layout-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid #ebebeb;
  background: transparent;
  color: #2e2e2e;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.layout-btn.is-selected { background: #fff; border-color: transparent; box-shadow: 0 2px 3px 1px #ebebeb; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px 16px; }
.pcard {
  background: #fff;
  color: #2e2e2e;
  border: 1px solid #18181b;
  border-radius: 20px;
  box-shadow: 2px 5px 0 #2e2e2e;
  padding: 20px;
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 460px;
  overflow: hidden;
}
.pcard-media {
  position: relative;
  height: 210px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  text-decoration: none;
}
.pcard-media img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  min-width: 0;
  min-height: 0;
  object-fit: contain;
}
.pcard-info { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.pcard-title {
  color: #2e2e2e;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.35;
  text-decoration: none;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  height: 2.7em;
  margin: 0;
}
.pcard-desc {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  height: 4.5em;
  margin: 8px 0 0;
  color: #2e2e2e;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
}
.grid.view-list { grid-template-columns: 1fr; }
.grid.view-list .pcard { flex-direction: row; align-items: stretch; gap: 28px; height: 248px; }
.grid.view-list .pcard:has(.manage) { height: auto; min-height: 248px; }
.grid.view-list .pcard-media { width: 30%; height: 100%; min-height: 0; margin: 0; flex: none; }
.grid.view-list .pcard-info { width: 70%; }
.grid.view-list .cart-hit { max-width: 400px; }
.shot { position: relative; padding: 12px 12px 0; }
.frame {
  height: 248px;
  border-radius: 16px;
  background: #f3f3f3;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 18px;
  text-decoration: none;
  color: inherit;
}
.frame img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  min-width: 0;
  min-height: 0;
  object-fit: contain;
}
.frame:has(.ph) { padding: 0; }
.frame .ph { width: 100%; height: 100%; }
.flag {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  min-width: 72px;
  padding: 5px 12px;
  border-radius: 20px;
  background: #fff;
  border: 1px solid #6e757c;
  color: #6e757c;
  font-size: 13px;
  font-weight: 400;
  line-height: 1;
  text-align: center;
}
.flag-pre { border-color: #18181b; color: #18181b; }
.cart-hit {
  width: 100%;
  min-height: 44px;
  margin-top: 10px;
  border-radius: 25px;
  border: 1px solid #18181b;
  background: #ffbc00;
  color: #09090b;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.4;
  box-shadow: 2px 5px 0 #09090b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  cursor: pointer;
  text-decoration: none;
}
.cart-hit.is-out,
.cart-hit:disabled { cursor: not-allowed; }
.cart-hit svg { display: block; flex: none; }
.product .cart-hit { width: 100%; margin-top: 12px; }
.ph {
  height: 100%;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #fff;
  background:
    linear-gradient(160deg, rgba(255,255,255,.14), transparent 42%),
    var(--faction, #333);
}
.ph span { font-size: 12px; letter-spacing: .12em; opacity: .8; }
.ph strong { font-size: 20px; line-height: 1.3; margin: 8px 0; }
.ph em { font-style: normal; letter-spacing: .08em; font-size: 12px; opacity: .85; }
.f-empire { --faction: var(--empire); }
.f-rebel { --faction: var(--rebel); }
.f-republic { --faction: var(--republic); }
.f-separatist { --faction: var(--separatist); }
.f-mercenary { --faction: var(--mercenary); }
.f-neutral { --faction: var(--neutral); }
.pcard-media .ph {
  height: auto;
  padding: 8px 10px;
  color: #2e2e2e;
  background: #f3f3f3;
  border-radius: 8px;
  font-size: 13px;
  letter-spacing: .04em;
}
.meta { color: var(--muted); font-size: 12px; display: flex; gap: 6px; align-items: center; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--faction, #999); display: inline-block; }
.price { font-size: 14px; font-weight: 700; line-height: 1.35; margin: 8px 0 0; color: #2e2e2e; }
.product .price { font-size: 16px; font-weight: 700; margin: 8px 0; }
.price small { display: block; margin-top: 2px; }
.price small, .sku-line, .en { color: var(--muted); font-weight: 400; font-size: 12px; }
.price-lock { color: #2e2e2e; font-weight: 700; text-decoration: none; }
.empty { background: #fff; border: 1px dashed #ccc; padding: 28px; }

.product-layout, .checkout-grid, .login { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.product-layout { align-items: start; gap: 40px; }
.product h1 { margin: 0 0 8px; font-size: 20px; font-weight: 700; line-height: 1.3; color: #2e2e2e; }
.product .sku-line { margin: 0 0 8px; font-size: 13px; letter-spacing: .04em; color: #6e757c; }
.product .en { margin: 0 0 4px; }
.product .release { margin: 8px 0 0; color: #2e2e2e; font-size: 14px; }
.product .shot { padding: 0; }
.product .frame { height: 520px; background: #f6f6f6; border-radius: 16px; }
.product-buy { margin-top: 16px; }
.product-buy .qty-label { margin: 0 0 8px; font-size: 13px; font-weight: 700; color: #2e2e2e; }
.product-buy .stepper { margin: 0; }
.wish-hit {
  width: 100%;
  min-height: 48px;
  margin-top: 10px;
  border: 0;
  border-radius: 25px;
  background: #000;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  cursor: pointer;
  text-decoration: none;
}
.wish-hit svg { display: block; }
.wish-hit path { fill: none; stroke: currentColor; stroke-width: 1.2; }
.wish-hit.is-on path { fill: currentColor; }
.product-copy { margin-top: 22px; color: #2e2e2e; font-size: 14px; line-height: 1.65; }
.product-copy h2 { margin: 22px 0 8px; font-size: 16px; font-weight: 700; }
.product-copy p { margin: 0 0 12px; }
.specs { margin: 0; }
.specs div { display: grid; grid-template-columns: 88px 1fr; gap: 8px; padding: 10px 0; border-bottom: 1px solid #eee; }
.specs dt { color: #6e757c; }
.specs dd { margin: 0; }
.also { margin-top: 48px; }
.also h2 { margin: 0 0 16px; font-size: 22px; font-weight: 700; color: #2e2e2e; }
.also-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.also-card { min-width: 0; }
.also-media {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 180px;
  margin-bottom: 10px;
  background: #f6f6f6;
  border-radius: 12px;
  overflow: hidden;
}
.also-media img { max-width: 100%; max-height: 100%; object-fit: contain; }
.also-title {
  display: -webkit-box;
  height: 2.7em;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  color: #2e2e2e;
  font-size: 15px;
  line-height: 1.35;
  text-decoration: none;
}
.wish-list { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 16px; }
.wish-list li {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 18px;
  padding: 16px;
  background: #fff;
  border: 1px solid #18181b;
  border-radius: 20px;
  box-shadow: 2px 5px 0 #2e2e2e;
}
.wish-shot {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 140px;
  background: #f6f6f6;
  border-radius: 12px;
  overflow: hidden;
}
.wish-shot img { max-width: 100%; max-height: 100%; object-fit: contain; }
.wish-title { color: #2e2e2e; font-size: 16px; font-weight: 700; text-decoration: none; }
.wish-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 10px; }
.wish-actions .cart-hit { width: auto; min-width: 180px; margin-top: 0; }
.facts, .facts-dl { padding: 0; list-style: none; }
.facts li { padding: 4px 0; }
.facts-dl { display: grid; gap: 8px; }
.facts-dl div { display: grid; grid-template-columns: 72px 1fr; gap: 8px; }
.facts-dl dt { color: var(--muted); }
.facts-dl dd { margin: 0; }
.buy, .status-form, .qty-form, .stepper { display: flex; gap: 8px; align-items: center; margin-top: 16px; }
.stepper { margin-top: 8px; }
.stepper input { width: 88px; height: 36px; text-align: center; padding: 0; }
.stepper input::-webkit-outer-spin-button,
.stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper input[type="number"] { -moz-appearance: textfield; appearance: textfield; }
.stepper > button {
  width: 36px;
  height: 36px;
  border: 1px solid #ccc;
  background: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.stepper .text-btn { width: auto; border: 0; margin-left: 4px; }
.table .qty-form, .table .stepper { margin-top: 0; }
.drawer { position: fixed; inset: 0; z-index: 40; }
.drawer[hidden] { display: none; }
.drawer-backdrop { position: absolute; inset: 0; border: 0; padding: 0; background: rgba(0, 0, 0, .45); cursor: pointer; }
.drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(400px, 100%);
  background: #fff;
  display: flex;
  flex-direction: column;
}
.drawer-head { position: relative; padding: 20px 15px; }
.drawer-head h2 { margin: 0; padding-right: 30px; font-size: 22px; font-weight: 700; line-height: 27px; color: #2e2e2e; }
.drawer-close {
  position: absolute;
  top: 16px;
  right: 10px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: none;
  padding: 0;
  cursor: pointer;
  color: #2e2e2e;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.drawer-close svg { display: block; flex: none; }
.drawer-close, .drawer-remove { line-height: 0; }
.drawer-note { margin: 0 15px 8px; padding: 10px 12px; background: #fff4f4; color: var(--danger); border-radius: 12px; }
.drawer-note[hidden] { display: none; }
#cart-drawer-body { flex: 1; min-height: 0; overflow: hidden; display: flex; flex-direction: column; }
.drawer-lines { list-style: none; margin: 0; padding: 0 0 8px; flex: 1; min-height: 0; overflow: auto; }
.drawer-lines li { position: relative; display: flex; gap: 0; margin: 20px 0 0; padding: 0 15px 20px; border-bottom: 1px solid #ebebeb; }
.drawer-shot { width: 95px; max-width: 95px; flex: none; display: flex; align-items: center; justify-content: center; }
.drawer-shot img { max-width: 100%; max-height: 100px; width: auto; height: auto; object-fit: contain; }
.drawer-shot .ph { width: 100%; height: 80px; padding: 0; }
.drawer-info { min-width: 0; flex: 1; padding-left: 15px; }
.drawer-title { color: #2e2e2e; font-weight: 700; text-decoration: none; display: block; padding-right: 28px; margin-bottom: 6px; }
.drawer-meta { margin: 0 0 10px; color: #6e757c; font-size: 13px; }
.drawer-actions { display: flex; align-items: center; gap: 18px; }
.drawer-actions strong { font-size: 14px; font-weight: 600; color: #2e2e2e; }
#cart-drawer .stepper { margin: 0; gap: 8px; align-items: center; }
#cart-drawer .stepper > button {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid #d0d0d0;
  background: #fff;
  color: #6e757c;
  padding: 0;
}
#cart-drawer .stepper > button svg { display: block; }
#cart-drawer .stepper input {
  width: 84px;
  height: 32px;
  margin: 0;
  border: 0;
  border-radius: 16px;
  background: #f4f4f4;
  padding: 0;
  text-align: center;
  line-height: 32px;
  font-size: 14px;
  font-weight: 600;
  color: #2e2e2e;
}
.drawer-remove {
  position: absolute;
  top: 0;
  right: 15px;
  width: 24px;
  height: 24px;
  border: 1px solid #d0d0d0;
  border-radius: 50%;
  background: #fff;
  color: #6e757c;
  padding: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.drawer-remove svg { display: block; }
.drawer-foot { margin-top: auto; padding: 20px 15px 30px; display: block; }
.drawer-total { margin: 0 0 12px; color: #2e2e2e; font-size: 16px; }
.drawer-foot .cart-hit { width: 100%; }
.drawer-empty { margin: 64px 15px 0; text-align: center; }
.drawer-empty span {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  background: #f4f4f4;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: #2e2e2e;
}
.drawer-empty p { color: #2e2e2e; margin-bottom: 24px; }
.drawer-empty .cart-hit { width: 100%; }
body.drawer-open { overflow: hidden; }
.buy input, .qty-form input { width: 108px; }
.prose { margin-top: 28px; background: #fff; border: 1px solid var(--line); padding: 20px; }
.banner { background: #fff4e8; padding: 8px 10px; }
.sku-line { letter-spacing: .06em; }

.login { align-items: stretch; }
.login-visual { background: #2b2b2b; display: grid; place-items: center; min-height: 420px; padding: 28px; }
.login-visual img { width: min(100%, 420px); }
.login-panel { background: #fff; padding: 28px; border: 1px solid var(--line); display: flex; flex-direction: column; justify-content: center; }
.stack, .form-grid { display: grid; gap: 8px; }
.demo { margin-top: 22px; border-top: 1px solid var(--line); padding-top: 14px; }
.cred { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
code { background: #f3f3f3; padding: 2px 6px; }

.table-scroll { width: 100%; max-width: 100%; overflow-x: auto; background: #fff; border: 1px solid var(--line); }
.table { width: 100%; border-collapse: collapse; background: #fff; table-layout: fixed; }
.table.wide { min-width: 920px; }
.table th, .table td { border-bottom: 1px solid var(--line); text-align: left; padding: 12px 10px; vertical-align: middle; overflow: hidden; }
.cols-dealers th:nth-child(1) { width: 10%; }
.cols-dealers th:nth-child(2) { width: 32%; }
.cols-dealers th:nth-child(3) { width: 13%; }
.cols-dealers th:nth-child(4) { width: 13%; }
.cols-dealers th:nth-child(5) { width: 7%; }
.cols-dealers th:nth-child(6) { width: 6%; }
.cols-dealers th:nth-child(7) { width: 19%; }
.cols-products th:nth-child(1) { width: 11%; }
.cols-products th:nth-child(2) { width: 26%; }
.cols-products th:nth-child(3) { width: 13%; }
.cols-products th:nth-child(4) { width: 11%; }
.cols-products th:nth-child(5) { width: 10%; }
.cols-products th:nth-child(6) { width: 8%; }
.cols-products th:nth-child(7) { width: 13%; }
.cols-products th:nth-child(8) { width: 8%; }
.cols-orders th:nth-child(1) { width: 24%; }
.cols-orders th:nth-child(2) { width: 18%; }
.cols-orders th:nth-child(3) { width: 30%; }
.cols-orders th:nth-child(4) { width: 14%; }
.cols-orders th:nth-child(5) { width: 14%; }
.cols-inquiries th:nth-child(1) { width: 15%; }
.cols-inquiries th:nth-child(2) { width: 16%; }
.cols-inquiries th:nth-child(3) { width: 12%; }
.cols-inquiries th:nth-child(4) { width: 31%; }
.cols-inquiries th:nth-child(5) { width: 10%; }
.cols-inquiries th:nth-child(6) { width: 16%; }
.cols-history th:nth-child(1) { width: 20%; }
.cols-history th:nth-child(2) { width: 12%; }
.cols-history th:nth-child(3) { width: 52%; }
.cols-history th:nth-child(4) { width: 16%; }
.cols-lines th:nth-child(1) { width: 16%; }
.cols-lines th:nth-child(2) { width: 40%; }
.cols-lines th:nth-child(3) { width: 16%; }
.cols-lines th:nth-child(4) { width: 12%; }
.cols-lines th:nth-child(5) { width: 16%; }
.cols-short th:nth-child(1) { width: 14%; }
.cols-short th:nth-child(2) { width: 26%; }
.cols-short th:nth-child(3) { width: 12%; }
.cols-short th:nth-child(4) { width: 14%; }
.cols-short th:nth-child(5) { width: 34%; }
.cols-order th:nth-child(1) { width: 14%; }
.cols-order th:nth-child(2) { width: 30%; }
.cols-order th:nth-child(3) { width: 14%; }
.cols-order th:nth-child(4) { width: 12%; }
.cols-order th:nth-child(5) { width: 14%; }
.cols-order th:nth-child(6) { width: 16%; }
.cols-myorders th:nth-child(1) { width: 36%; }
.cols-myorders th:nth-child(2) { width: 26%; }
.cols-myorders th:nth-child(3) { width: 18%; }
.cols-myorders th:nth-child(4) { width: 20%; }
.cols-cart th:nth-child(1) { width: 38%; }
.cols-cart th:nth-child(2) { width: 14%; }
.cols-cart th:nth-child(3) { width: 24%; }
.cols-cart th:nth-child(4) { width: 14%; }
.cols-cart th:nth-child(5) { width: 10%; }
.table th { font-size: 13px; color: var(--muted); font-weight: 600; white-space: nowrap; background: #fafafa; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.table .nowrap, .status { white-space: nowrap; text-overflow: ellipsis; }
.sort-link { color: inherit; text-decoration: none; display: inline-flex; align-items: center; gap: 4px; }
.sort-link.on { color: var(--ink); }
.sort-link i { font-style: normal; color: var(--orange); }
.summary { margin-top: 16px; background: #fff; border: 1px solid var(--line); padding: 16px; }
.checkout-grid { align-items: stretch; }
.checkout-grid > .stack, .checkout-grid > .summary { margin-top: 0; background: #fff; border: 1px solid var(--line); padding: 20px; }
.cart-total { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.cart-total p, .cart-total .btn { margin: 0; }
.summary ul { list-style: none; padding: 0; }
.summary li { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.narrow { width: min(920px, calc(100% - 32px)); }
.status { display: inline-block; padding: 2px 8px; border-radius: 99px; background: #eee; font-size: 12px; }
.s-pending { background: #fff1e6; color: #9a3412; }
.s-confirmed, .s-fulfilling { background: #e0f2fe; color: #075985; }
.s-shipped, .s-completed { background: #e8f6ee; color: var(--ok); }
.s-cancelled { background: #fde8ee; color: var(--danger); }

.paths { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 18px; }
.path { background: #fff; border-top: 4px solid var(--faction); padding: 14px; }
.path ol { list-style: none; padding: 0; margin: 0; }
.path a { display: flex; gap: 8px; text-decoration: none; padding: 8px 0; border-bottom: 1px solid var(--line); }
.path span:first-child { color: var(--orange); font-weight: 700; }
.path em { display: block; font-style: normal; color: var(--muted); font-size: 12px; }

.manage { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; min-height: 44px; align-items: stretch; }
.manage form { margin: 0; min-width: 0; }
.manage button {
  width: 100%;
  height: 44px;
  border-radius: 18px;
  border: 1px solid #18181b;
  background: #fff;
  color: #18181b;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
}
.manage .is-danger { color: #9f1239; }
.manage-note { margin: 8px 0 0; font-size: 13px; }
.manage-dialog,
.confirm-dialog {
  margin: auto;
  padding: 0;
  border: 1px solid #18181b;
  border-radius: 20px;
  box-shadow: 2px 5px 0 #2e2e2e;
  color: #2e2e2e;
}
.manage-dialog { width: min(720px, calc(100% - 32px)); max-height: calc(100vh - 48px); overflow: hidden; overscroll-behavior: contain; }
.confirm-dialog { width: min(420px, calc(100% - 32px)); }
.manage-dialog::backdrop,
.confirm-dialog::backdrop { background: rgba(24, 24, 27, .48); }
html.dialog-open,
html.dialog-open body { overflow: hidden; overscroll-behavior: none; }
.manage-dialog form {
  max-height: calc(100vh - 48px);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0 24px 24px 14px;
  box-sizing: border-box;
}
.manage-dialog .form-grid,
.product-form {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 14px 12px;
  align-items: center;
  border: 0;
  margin: 0;
  padding: 0;
  max-width: none;
  width: 100%;
  min-width: 0;
  background: transparent;
  box-sizing: border-box;
}
.admin-main .product-form {
  background: #fff;
  border: 1px solid #18181b;
  border-radius: 20px;
  box-shadow: 2px 5px 0 #2e2e2e;
  padding: 24px 24px 24px 14px;
  margin: 16px 0 20px;
  max-width: 760px;
  overflow-x: hidden;
}
.manage-dialog .form-grid .image-field,
.product-form .image-field { grid-column: 2; min-width: 0; }
.manage-dialog .form-grid .form-actions,
.product-form .form-actions { grid-column: 1 / -1; min-width: 0; }
.manage-dialog .form-grid .check-panel,
.product-form .check-panel { grid-column: 2; min-width: 0; }
.manage-dialog .form-grid > label:not(.check),
.product-form > label:not(.check) {
  margin: 0;
  color: #2e2e2e;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  text-align: left;
}
.manage-dialog .form-grid > label[for*="summary"],
.manage-dialog .form-grid > label[for*="description"],
.manage-dialog .form-grid > label[for*="image"],
.product-form > label[for*="summary"],
.product-form > label[for*="description"],
.product-form > label[for*="image"] {
  align-self: start;
  padding-top: 10px;
}
.manage-dialog .form-grid textarea,
.product-form textarea { align-self: stretch; min-height: 88px; resize: vertical; }
.manage-dialog .form-grid textarea[name="description"],
.product-form textarea[name="description"] { min-height: 320px; }
.manage-dialog .form-grid input:not([type="checkbox"]):not([type="file"]):not(.image-input),
.manage-dialog .form-grid textarea,
.product-form input:not([type="checkbox"]):not([type="file"]):not(.image-input),
.product-form textarea {
  border: 1px solid #18181b;
  border-radius: 12px;
  background: #fff;
  color: #2e2e2e;
  padding: 0 14px;
  box-sizing: border-box;
  max-width: 100%;
}
.manage-dialog .form-grid input:not([type="checkbox"]):not([type="file"]):not(.field-num):not(.image-input),
.manage-dialog .form-grid textarea,
.product-form input:not([type="checkbox"]):not([type="file"]):not(.field-num):not(.image-input),
.product-form textarea {
  width: 100%;
  min-width: 0;
}
.manage-dialog .form-grid textarea,
.product-form textarea { padding: 12px 14px; }
.manage-dialog .form-grid input.field-num,
.product-form input.field-num,
.form-grid input.field-num { width: 132px; max-width: 100%; }
.form-grid .choice,
.product-form .choice { justify-self: start; }
.image-field {
  display: grid;
  gap: 12px;
  justify-items: start;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}
.image-frame {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(220px, 100%);
  aspect-ratio: 1;
  margin: 0;
  padding: 10px;
  border: 1px solid #18181b;
  border-radius: 18px;
  background: #fafafa;
  box-shadow: 2px 4px 0 #e4e4e7;
  cursor: pointer;
  overflow: hidden;
  box-sizing: border-box;
}
.image-frame:hover { background: #fff8e1; }
.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 10px;
}
.image-placeholder {
  display: grid;
  gap: 6px;
  justify-items: center;
  color: #71717a;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
}
.image-placeholder[hidden],
.image-frame img[hidden] { display: none !important; }
.image-placeholder span {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #a1a1aa;
}
.image-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-width: 0;
}
.image-toolbar .btn {
  min-width: 0;
  height: 36px;
  border-radius: 25px;
  font-weight: 700;
}
.image-toolbar [data-image-name] {
  flex: 1 1 120px;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
}
.image-input { display: none !important; }
.manage-dialog .form-actions,
.product-form .form-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 8px;
  padding-top: 16px;
  border-top: 0;
}
.manage-dialog .form-actions .btn,
.product-form .form-actions .btn {
  min-width: 108px;
  border-radius: 25px;
  font-weight: 700;
}
.manage-dialog .form-actions .btn-primary,
.product-form .form-actions .btn-primary {
  background: #ffbc00;
  color: #09090b;
  border-color: #09090b;
  box-shadow: 2px 5px 0 #09090b;
}
.manage-dialog .form-actions .btn-primary:hover,
.product-form .form-actions .btn-primary:hover {
  background: #ffbc00;
  color: #09090b;
  border-color: #09090b;
}
.manage-dialog .check-panel,
.product-form .check-panel {
  display: grid;
  gap: 4px;
  margin-top: 4px;
  padding: 4px 0 8px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.manage-dialog .check-panel .check,
.product-form .check-panel .check {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: 100%;
  min-height: 48px;
  margin: 0;
  padding: 10px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #2e2e2e;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  overflow-wrap: anywhere;
  cursor: pointer;
  box-sizing: border-box;
}
.manage-dialog .check-panel .check input,
.product-form .check-panel .check input {
  appearance: auto;
  -webkit-appearance: auto;
  width: 16px;
  height: 16px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  flex: none;
  accent-color: #18181b;
  cursor: pointer;
}
.manage-dialog .check-panel .check-text,
.product-form .check-panel .check-text {
  min-width: 0;
  flex: 1;
}
.manage-dialog-head {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 -10px 16px 0;
  padding: 22px 10px 14px 0;
  border-bottom: 0;
  background: #fff;
}
.manage-dialog-head h2 { margin: 0; font-size: 22px; font-weight: 700; color: #2e2e2e; }
.admin-main .page-sticky {
  position: sticky;
  top: 0;
  z-index: 15;
  margin: -28px -28px 16px;
  padding: 28px 28px 14px;
  background: #f3f3f3;
  border-bottom: 0;
}
.admin-main .page-sticky h1 { margin: 0; }
.admin-main .page-sticky .muted { margin: 8px 0 0; }
.manage-dialog-head button {
  width: 36px;
  height: 36px;
  border: 1px solid #18181b;
  border-radius: 50%;
  background: #fff;
  color: #18181b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex: none;
}
.confirm-box { padding: 28px 24px 24px; text-align: center; }
.confirm-box h2 { margin: 0 0 10px; font-size: 22px; font-weight: 700; color: #2e2e2e; }
.confirm-box p { margin: 0 0 22px; color: #2e2e2e; font-size: 15px; line-height: 1.55; }
.confirm-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.confirm-actions .btn { width: 100%; border-radius: 25px; font-weight: 700; }
.btn-danger { background: #9f1239; color: #fff; border-color: #9f1239; }
.btn-danger:hover { background: #881337; color: #fff; border-color: #881337; }
.admin-main .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.toolbar-tools .btn-new {
  height: 40px;
  padding: 0 18px;
  border: 1px solid #09090b;
  border-radius: 25px;
  background: #ffbc00;
  color: #09090b;
  font-weight: 700;
  box-shadow: 2px 5px 0 #09090b;
}
.toolbar-tools .btn-new:hover { background: #ffbc00; color: #09090b; border-color: #09090b; }

.foot { border-top: 1px solid var(--line); background: #fff; color: var(--muted); font-size: 12px; padding: 22px 0; margin-top: auto; }
.foot-brand { display: flex; align-items: center; gap: 12px; margin: 0; color: var(--ink, #222); }
.foot-brand img { height: 32px; width: auto; display: block; }
.foot-beian { margin: 10px 0 0; }
.foot-beian a { color: inherit; text-decoration: none; }
.foot-beian a:hover { text-decoration: underline; }

.is-admin { background: #f3f3f3; }
.admin-shell { display: grid; grid-template-columns: 220px minmax(0, 1fr); min-height: 100vh; }
.side { background: #161616; color: #eee; padding: 22px 16px; display: flex; flex-direction: column; gap: 18px; }
.side a { color: #eee; text-decoration: none; display: block; padding: 8px 10px; }
.side a.on { background: #2a2a2a; color: #fff; }
.side-brand { font-weight: 700; letter-spacing: .04em; }
.side-brand img { width: 148px; height: auto; display: block; margin-bottom: 8px; }
.side .text-btn { color: #bbb; text-align: left; padding: 8px 10px; }
.admin-main { padding: 28px; min-width: 0; }
.stats, .admin-cols { display: grid; gap: 12px; }
.stats { grid-template-columns: repeat(4, 1fr); margin: 16px 0 22px; }
.admin-cols { grid-template-columns: .8fr 1.2fr; }
.stats article { background: #fff; border: 1px solid var(--line); padding: 16px; min-height: 96px; }
.stats span { color: var(--muted); font-size: 13px; }
.stats strong { display: block; font-size: 26px; line-height: 1.15; margin-top: 8px; }
.overview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 20px;
}
.overview a {
  display: flex;
  flex-direction: column;
  min-height: 176px;
  padding: 20px 18px 16px;
  background: #fff;
  border: 1px solid #18181b;
  border-radius: 20px;
  box-shadow: 2px 5px 0 #2e2e2e;
  color: #2e2e2e;
  text-decoration: none;
  box-sizing: border-box;
}
.overview a:hover { background: #fff8e1; }
.overview span { font-size: 14px; font-weight: 700; }
.overview strong {
  display: block;
  margin-top: 12px;
  font-size: 32px;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.overview em {
  margin-top: auto;
  padding-top: 14px;
  font-style: normal;
  color: #71717a;
  font-size: 13px;
  line-height: 1.45;
}
.page-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.head-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin-left: auto; }
.head-actions form { margin: 0; }
.head-actions .btn,
.page-head .btn-new {
  height: 40px;
  border-radius: 25px;
  font-weight: 700;
}
.page-head .btn-new {
  padding: 0 18px;
  border: 1px solid #09090b;
  background: #ffbc00;
  color: #09090b;
  box-shadow: 2px 5px 0 #09090b;
}
.page-head .btn-new:hover { background: #ffbc00; color: #09090b; border-color: #09090b; }
.dealer-prefix {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding-top: 14px;
  border-top: 1px solid #ebebeb;
}
.dealer-prefix label { font-size: 14px; font-weight: 700; }
.dealer-prefix input { width: 140px; height: 40px; }
.dealer-section { margin-top: 28px; }
.dealer-section h2 { margin: 0 0 4px; font-size: 20px; font-weight: 700; }
.dealer-section > .muted { margin: 0 0 12px; }
.dealer-message { white-space: normal; max-width: 560px; }
.order-card { margin: 0 0 16px; }
.order-card h3 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 700;
}
.order-card h3 a { color: inherit; }
.page-head h1 { margin-bottom: 0; }
.page-head .muted { margin: 4px 0 0; }
.inline-search, .filter-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 16px 0; }
.inline-search input, .inline-search select, .filter-bar input, .filter-bar select { width: auto; flex: 1 1 160px; max-width: 220px; }
.filter-bar .btn, .inline-search .btn { flex: none; }
.form-grid { background: #fff; border: 1px solid var(--line); padding: 16px; margin: 12px 0 20px; max-width: 720px; }
.form-actions { display: flex; gap: 8px; }
.check { display: flex; gap: 8px; align-items: center; }
.stock-low { color: #9a3412; font-weight: 700; }
.stock-out { color: var(--danger); font-weight: 700; }
.issued { background: #fff8f1; border: 1px solid #f0c9a0; padding: 12px; margin-bottom: 12px; }
.secret-cell, .row-actions { white-space: nowrap; }
.row-actions form { display: inline; }
.secret-cell [data-secret] {
  display: inline-block;
  width: 13ch;
  overflow: hidden;
  vertical-align: middle;
  font-family: ui-monospace, Consolas, monospace;
  font-size: 13px;
  line-height: 1.2;
}
.secret-cell button {
  box-sizing: border-box;
  width: 4.6em;
  margin-left: 4px;
  padding: 0 2px;
  text-align: center;
  vertical-align: middle;
}
.issued button, .cred button { margin-left: 4px; }

@media (min-width: 1280px) {
  .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .grid.view-list { grid-template-columns: 1fr; }
}
@media (max-width: 980px) {
  .head-inner {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "brand nav" "search search";
  }
  .brand { grid-area: brand; }
  .head-nav { grid-area: nav; justify-content: flex-end; flex-wrap: wrap; white-space: normal; row-gap: 4px; }
  .search { grid-area: search; }
  .filters { position: static; }
  .hero, .product-layout, .checkout-grid, .login { grid-template-columns: 1fr; }
  .also-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid, .admin-main .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid.view-list { grid-template-columns: 1fr; }
  .paths, .stats, .admin-cols, .overview { grid-template-columns: 1fr 1fr; }
  .hero img { height: 180px; }
}
@media (max-width: 760px) {
  .catalog, .admin-shell, .paths, .stats, .admin-cols { display: block; }
  .side { display: flex; flex-direction: row; flex-wrap: wrap; }
  .admin-main { padding: 16px; }
  .admin-main .page-sticky {
    margin: -16px -16px 12px;
    padding: 16px 16px 12px;
  }
  .filters { position: static; }
}
@media (max-width: 680px) {
  .cart-open { min-width: 168px; padding-right: 6px; }
  .cart-sum { margin-right: 12px; }
  .head:has(.cart-open) .head-inner { padding-right: 180px; }
  .grid, .grid.view-list, .admin-main .grid, .paths, .stats, .overview, .also-grid { grid-template-columns: 1fr; }
  .wish-list li { grid-template-columns: 1fr; }
  .grid.view-list .pcard { flex-direction: column; height: 460px; }
  .grid.view-list .pcard:has(.manage) { height: auto; min-height: 460px; }
  .grid.view-list .pcard-media, .grid.view-list .pcard-info { width: 100%; }
  .grid.view-list .pcard-media { height: 210px; margin-bottom: 14px; }
  .head-nav { flex-wrap: wrap; }
  .brand-mark, .foot-brand img { height: 36px; }
  .table { display: block; overflow-x: auto; }
}
