:root {
  --bg: #eef3fb;
  --card: #ffffff;
  --line: #d6deee;
  --text: #0f172a;
  --muted: #64748b;
  --blue: #1f4fd6;
  --blue2: #2f66ee;
  --blueSoft: #e9f0ff;
  --ok: #0f9f56;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: radial-gradient(1200px 520px at 18% -12%, #ffffff 0%, var(--bg) 72%); color: var(--text); font-family: Inter, "Segoe UI", Arial, sans-serif; }
.wrap { max-width: 1410px; margin: 0 auto; padding: 18px; }
.topHeader { display:flex; align-items:center; justify-content:space-between; gap:10px; border:1px solid #cfdaef; border-radius:16px; background:linear-gradient(180deg,#ffffff,#f6f9ff); padding:8px 12px; margin-bottom:12px; box-shadow:0 12px 24px rgba(30,58,138,.08); }
.logoLink { display:inline-flex; align-items:center; }
.logo { width: clamp(180px, 20vw, 300px); height:auto; max-height:56px; object-fit:contain; }
.headBtns { display:flex; align-items:center; gap:8px; }
.headBtns .btn,
.headBtns a.btn {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 8px 14px;
  border: 1px solid #c6d5f4;
  border-radius: 12px;
  background: linear-gradient(180deg,#f9fbff,#edf3ff);
  color: #183370;
  clip-path: none;
  transition: transform .2s ease, background-color .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.headBtns .btn:hover,
.headBtns a.btn:hover { background: linear-gradient(180deg,#eff5ff,#e2ecff); border-color:#9db8ee; transform: translateY(-1px); box-shadow:0 8px 16px rgba(37,99,235,.14); }
.headBtns .btn.primary,
.headBtns a.btn.primary { background: linear-gradient(180deg, var(--blue2), var(--blue)); color:#fff; border-color:#1f4fd6; box-shadow:0 10px 20px rgba(37,99,235,.28); }
.top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.mobileBrowseTools { display: none; }
.mobileBrowseBackdrop { display: none; }
.top #q { flex: 0 1 30%; min-width: 230px !important; max-width: 420px; }
.topFacets { display: flex; align-items: end; gap: 8px; flex-wrap: wrap; }
.facetDrop { position: relative; }
.facetDropBtn { min-width: 112px; justify-content: space-between; font-size: 11px; min-height: 30px; padding: 5px 9px; border-radius: 9px; }
.topFacets > .btn { font-size: 11px; min-height: 30px; padding: 5px 9px; border-radius: 9px; }
.facetSort { font-size: 11px; min-height: 30px; padding: 5px 9px; border-radius: 9px; min-width: 126px; }
.facetDropPanel {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 80;
  width: min(320px, 88vw);
  max-height: 300px;
  overflow: auto;
  border: 1px solid #ccdaf5;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 14px 30px rgba(30, 58, 138, 0.18);
  padding: 8px;
  overscroll-behavior: contain;
}
.facetDrop.open .facetDropPanel { display: grid; gap: 5px; }
.facetItem { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #334155; cursor: pointer; }
.facetItem input { margin: 0; }
.facetItemStandalone { border: 1px solid #d0dbee; background: #fff; border-radius: 12px; padding: 9px 11px; min-height: 18px; }
.facetItemStandalone:hover { border-color: #b4c8f2; background: #f8fbff; }
.facetEmpty { color: #64748b; font-size: 12px; padding: 4px; }
.brand { font-size: 22px; font-weight: 900; margin-right: auto; letter-spacing: .01em; }
.btn, .input, select, textarea { border: 1px solid #d0dbee; background: #fff; color: var(--text); border-radius: 12px; padding: 9px 11px; }
.btn { cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; }
.btn.primary { background: linear-gradient(180deg, var(--blue2), var(--blue)); color: #fff; border-color: #1f4fd6; box-shadow: 0 10px 20px rgba(37,99,235,.24); }
.btn:disabled { opacity:.55; cursor:not-allowed; }
.btn:not(.primary):hover { background: var(--blueSoft); border-color: #b4c8f2; }
.input:focus, select:focus, textarea:focus { outline: none; border-color: #95b2ee; box-shadow: 0 0 0 3px rgba(37,99,235,.12); }
.pantoneSelect { position: relative; width: 100%; }
.pantoneSelectButton {
  width: 100%;
  min-height: 40px;
  border: 1px solid #d0dbee;
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  padding: 8px 10px;
  display: flex;
  align-items: center;
  gap: 9px;
  text-align: left;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.pantoneSelectedSwatch,
.pantoneOptionSwatch {
  width: 22px;
  height: 22px;
  border-radius: 5px;
  border: 1px solid #aab8cb;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.55);
  flex: 0 0 auto;
}
.pantoneSelectedText { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pantoneSlots {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
}
.pantoneSlot { margin: 0; }
.readonlyValue { display: flex; align-items: center; min-height: 42px; }
.pantoneMenu {
  position: absolute;
  z-index: 80;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  border: 1px solid #cfdbea;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 18px 36px rgba(15, 23, 42, .16);
  padding: 8px;
}
.pantoneSearch { margin-bottom: 7px; }
.pantoneResults { max-height: 260px; overflow: auto; display: grid; gap: 4px; }
.pantoneOption {
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #172033;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  padding: 7px;
  text-align: left;
  cursor: pointer;
}
.pantoneOption:hover { background: #eef4ff; }
.pantoneOptionName { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 800; }
.pantoneNoResults { padding: 12px; color: var(--muted); font-size: 12px; }
.layout { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 14px; align-items: start; }
.layout.filters-closed { grid-template-columns: minmax(0, 1fr); }
.layout.filters-closed .sidebar { display: none; }
.sidebar { background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%); border-radius: 16px; padding: 10px; position: sticky; top: 16px; display: grid; grid-template-rows: auto minmax(0, 1fr); gap: 8px; box-shadow: 0 10px 24px rgba(17, 24, 39, 0.06); max-height: calc(100vh - 32px); min-height: 0; overflow: hidden; }
.sideTitle { font-weight: 800; margin-bottom: 2px; letter-spacing: .03em; text-transform: uppercase; font-size: 12px; color: #334155; }
.catList { display: grid; gap: 8px; min-height: 0; max-height: 100%; overflow-y: auto; overflow-x: hidden; padding-right: 4px; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; touch-action: pan-y; align-content: start; }
.catBtn { width: 100%; text-align: left; border: 0; background: transparent; color: #0f172a; padding: 8px 10px; border-radius: 10px; cursor: pointer; font-size: 12px; transition: all .18s ease; box-shadow: none; }
.catBtn:hover { background: #eef4ff; transform: translateY(-1px); }
.catBtn.active { background: linear-gradient(180deg, #eff5ff, #e7f0ff); color: #133ea5; font-weight: 700; box-shadow: 0 8px 18px rgba(37, 99, 235, 0.12); }
.catAll { font-weight: 700; }
.catGroup { display:grid; gap:6px; border-radius: 12px; padding: 6px; background: #fff; box-shadow: inset 0 0 0 1px rgba(148, 163, 184, .18); }
.catParent { width:100%; min-width:0; display:flex; justify-content:space-between; align-items:center; border:0; background:transparent; color:#0f172a; padding:8px 10px; border-radius:10px; cursor:pointer; font-weight:700; font-size: 12px; transition: all .18s ease; box-shadow: none; }
.catParent:hover { background:#eef4ff; }
.catParent.active { background: linear-gradient(180deg, #eff5ff, #e7f0ff); color:#133ea5; }
.catParentLabel { display:block; flex:1 1 auto; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:normal; overflow-wrap:anywhere; line-height:1.2; }
.catParent > span:last-child { flex: 0 0 auto; display: inline-flex; align-items: center; }
.catCount { display:inline-flex; align-items:center; justify-content:center; min-width: 24px; height: 18px; border-radius: 999px; padding: 0 6px; font-size: 10px; font-weight: 800; color: #1e3a8a; background: #e4edff; border:1px solid #c7d7f7; margin-left: 6px; }
.catToggleSign { display:inline-flex; align-items:center; justify-content:center; width: 18px; height: 18px; border-radius: 999px; background: #e2ebff; color: #1e40af; font-size: 13px; font-weight: 900; margin-left: 6px; }
.catChild {
  margin-left: 10px;
  width: calc(100% - 10px);
  margin-top: -2px;
  margin-bottom: -2px;
  border-style: dashed;
  position: relative;
  display: block;
  padding: 5px 10px 5px 32px !important;
  line-height: 1.25;
  color: #475569;
  font-weight: 400;
  background-color: #fbfdff;
  background-image: radial-gradient(circle, #bfd2f8 0 3px, transparent 3.2px);
  background-repeat: no-repeat;
  background-size: 6px 6px;
  background-position: 14px 50%;
  -webkit-appearance: none;
  appearance: none;
}
.catChild.active {
  background-image: radial-gradient(circle, #2563eb 0 3px, transparent 3.2px), linear-gradient(180deg, #eff5ff, #e7f0ff);
  background-repeat: no-repeat, no-repeat;
  background-size: 6px 6px, auto;
  background-position: 14px 50%, 0 0;
  color: #133ea5;
}
.catSubParent {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: -2px;
  margin-bottom: -2px;
  padding-top: 5px !important;
  padding-bottom: 5px !important;
  font-weight: 700;
  padding-left: 16px !important;
  background: #f8fbff;
  border: 1px solid #e0e8f7;
}
.catSubLabel {
  display: block;
  flex: 1 1 auto;
  min-width: 0;
  overflow-wrap: anywhere;
}
.catGrandChild {
  margin-left: 10px;
  width: calc(100% - 10px);
  margin-top: -2px;
  margin-bottom: -2px;
  position: relative;
  display: block;
  padding: 5px 10px 5px 32px !important;
  line-height: 1.25;
  color: #475569;
  background-image: radial-gradient(circle, #bfd2f8 0 3px, transparent 3.2px);
  background-repeat: no-repeat;
  background-size: 6px 6px;
  background-position: 14px 50%;
  border-style: dashed;
}
.catGrandChild.active {
  background-image: radial-gradient(circle, #2563eb 0 3px, transparent 3.2px), linear-gradient(180deg, #eff5ff, #e7f0ff);
  background-repeat: no-repeat, no-repeat;
  background-size: 6px 6px, auto;
  background-position: 14px 50%, 0 0;
}
.content { min-width: 0; }
.promoShortcuts {
  margin-bottom: 12px;
  padding: 12px;
  border: 1px solid #d8e1f1;
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05);
}
.promoShortcutsHead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.promoShortcutsTitle {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: #334155;
}
.topPromoProducts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.promoChip {
  border: 1px solid #cfe0ff;
  border-radius: 999px;
  background: #fff;
  color: #183370;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all .18s ease;
}
.promoChip:hover {
  background: #eef4ff;
  border-color: #a9c4f5;
  transform: translateY(-1px);
}
.promoChip.active {
  background: linear-gradient(180deg, #eff5ff, #e7f0ff);
  border-color: #84a8ef;
  color: #133ea5;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.12);
}
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.card { border: 1px solid #d8e1f1; border-radius: 14px; background: var(--card); padding: 12px; display: flex; flex-direction: column; gap: 8px; min-height: 330px; box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06); cursor:pointer; transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease; }
.card:hover { transform: translateY(-3px); border-color: #b8ccef; box-shadow: 0 16px 26px rgba(30,58,138,.14); }
.pic { position: relative; height: 160px; border-radius: 10px; border: 1px solid var(--line); background: linear-gradient(180deg, #f7f9ff, #eef2fb); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.pic img { width: 100%; height: 100%; object-fit: contain; background: #fff; transition: transform .25s ease; }
.card:hover .pic img { transform: scale(1.03); }
.supplierBadge { position: absolute; top: 6px; left: 6px; z-index: 2; display: inline-flex; align-items: center; padding: 2px 6px; border-radius: 5px; font-size: 10px; line-height: 1.1; font-weight: 800; letter-spacing: 0; border: 1px solid #d4af37; background: rgba(17, 24, 39, 0.88); color: #f8e7a1; }
.supplierBadge--premium { border-color: #d4af37; background: rgba(17, 24, 39, 0.92); color: #f8e7a1; }
.ph { color: #8ea0bf; font-size: 12px; text-align: center; padding: 8px; }
.name { font-weight: 800; line-height: 1.24; min-height: 40px; }
.productColorDots {
  min-height: 22px;
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}
.productColorDot {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  border: 1px solid rgba(15, 23, 42, .18);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.45);
  background-size: cover;
  background-position: center;
}
.productColorMore {
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
}
.productTitleRow { display:flex; align-items:flex-start; gap:8px; margin-bottom:2px; }
.productTitleRow .productTitle { min-height:auto; }
.productShareBtn { margin-left:auto; flex:0 0 auto; padding:6px 9px; min-height:30px; border-radius:8px; font-size:12px; }
.productShareRow { display:flex; justify-content:flex-end; margin:0 0 5px; }
.meta { font-size: 12px; color: var(--muted); }
.price { font-size: 20px; font-weight: 900; color: #0f172a; }
.priceVat {
  display: inline-block;
  margin-left: 4px;
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
}
.row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pill { font-size: 11px; line-height: 1; padding: 3px 7px; border-radius: 999px; background: rgba(15,159,86,.11); color: var(--ok); border: 1px solid rgba(15,159,86,.28); white-space: nowrap; }
.pager { margin-top: 12px; display: flex; align-items: center; gap: 8px; justify-content: center; }
.loadState { margin: 12px 0 4px; text-align: center; min-height: 18px; }
.loadTrigger { height: 1px; }
.backToTopBtn {
  position: fixed;
  right: 28px;
  bottom: 30px;
  z-index: 140;
  width: 58px;
  height: 58px;
  border-radius: 8px;
  border: 1px solid rgba(17, 32, 61, .14);
  background: linear-gradient(180deg, #ffffff, #edf4ff);
  color: #122656;
  display: grid;
  place-items: center;
  box-shadow: 0 18px 38px rgba(15, 23, 42, .22);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translate3d(80px, 18px, 0) scale(.92);
  transition:
    opacity .2s ease,
    transform .24s cubic-bezier(.2, .8, .2, 1),
    box-shadow .2s ease,
    background .2s ease;
}
.backToTopBtn span {
  width: 18px;
  height: 18px;
  border-left: 4px solid currentColor;
  border-top: 4px solid currentColor;
  transform: translateY(5px) rotate(45deg);
}
.backToTopBtn.show {
  opacity: 1;
  pointer-events: auto;
  transform: translate3d(0, 0, 0) scale(1);
}
.backToTopBtn.show:hover {
  background: linear-gradient(180deg, #ffffff, #e6f0ff);
  box-shadow: 0 22px 44px rgba(15, 23, 42, .28);
  transform: translate3d(0, -5px, 0) scale(1.04);
}
.backToTopBtn.show:active {
  transform: translate3d(0, -1px, 0) scale(.98);
}
@media (max-width: 720px) {
  .backToTopBtn {
    right: 16px;
    bottom: 18px;
    width: 50px;
    height: 50px;
  }
  .backToTopBtn span {
    width: 16px;
    height: 16px;
    border-left-width: 3px;
    border-top-width: 3px;
  }
}
.empty { padding: 40px; text-align: center; color: var(--muted); }
.desc { color: var(--muted); line-height: 1.45; }
.qty { width: 90px; }
.formGrid { display:grid; grid-template-columns: repeat(auto-fit,minmax(180px,1fr)); gap:10px; }
.field { display:flex; flex-direction:column; gap:6px; font-size:12px; color:#64748b; }
.field span { font-weight:700; color:#334155; }
.thumbs { display:grid; grid-template-columns: repeat(auto-fill, minmax(58px, 1fr)); gap:7px; margin:8px 0 4px; }
.thumbBtn { width:100%; height:72px; border:1px solid var(--line); border-radius:10px; background:#fff; padding:4px; cursor:pointer; }
.thumbBtn img { width:100%; height:100%; object-fit:contain; }
.thumbBtn.active { border-color:#2563eb; box-shadow:0 0 0 2px rgba(37,99,235,.14); }
.thumbOut { border-color:#ef4444; background:#fff5f5; }
.modalMainPic { height: 360px !important; border-radius: 8px; background:#fff; }
.stockOk { color:#0f9f56; }
.stockBad { color:#dc2626; font-weight:700; }
.productModalDesc { font-size: 13px; line-height: 1.48; color:#52627a; max-width: 72ch; margin: 2px 0 4px; }
.subLabel { color: #334155; font-weight: 700; }
.tagWrap { display:flex; flex-wrap:wrap; gap:6px; margin-top:6px; }
.tag { display:inline-flex; border:1px solid var(--line); background:#f8fafc; color:#0f172a; border-radius:999px; padding:4px 8px; font-size:12px; }
.tagBtn { align-items:center; gap:6px; cursor:pointer; }
.tagActive { border-color:#2563eb; background:#eff6ff; color:#1d4ed8; }
.tagMuted { opacity:.58; background:#f8fafc; color:#64748b; }
.artworkColorAudit .tagActive {
  border-color: #86d39b;
  background: #f0fbf3;
  color: #166534;
}
.tagClose { font-weight:700; line-height:1; }
.customGrid { display:grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap:10px; margin-top:10px; }
.customCard { border:1px solid var(--line); border-radius:10px; padding:10px; background:#f8fafc; }
.customTitle { font-weight:800; color:#0f172a; margin-bottom:6px; }
.customRow { display:flex; justify-content:space-between; gap:8px; padding:2px 0; font-size:13px; }
.customRow span { color:#64748b; }
.customRow b { color:#0f172a; text-align:right; }
.modalOverlay { position: fixed; inset: 0; background: rgba(15, 23, 42, .62); backdrop-filter: blur(3px); display:flex; align-items:center; justify-content:center; z-index:9999; padding:18px; }
.modalCard { width:min(1120px, 96vw); max-height:92vh; overflow:auto; background:#fbfcfe; border:1px solid #d9e2f0; border-radius:8px; padding:12px; position:relative; box-shadow:0 24px 62px rgba(15,23,42,.24); }
.closeBtn { position: sticky; top: 0; margin-left: auto; display:flex; z-index:3; border-radius:8px; }
.authCard { width: min(520px, 96vw); }
.productModalGrid { display:grid; grid-template-columns: minmax(340px, 42%) minmax(390px, 1fr); gap:18px; align-items:start; }
.productModalMedia { display:grid; gap:8px; align-content:start; }
.productModalInfo { display:grid; gap:7px; align-content:start; padding-top:0; }
.productTitle { font-size:20px; line-height:1.16; min-height:auto; letter-spacing:0; }
.modalPreviewPic {
  height: 320px;
  cursor: default;
  --modal-preview-zoom: 1;
  --modal-preview-pan-x: 0px;
  --modal-preview-pan-y: 0px;
}
.modalPreviewPic.isZoomed { height: min(78vh, 720px); }
.modalPreviewPic.isZoomed { cursor: grab; }
.modalPreviewPic.isPanning { cursor: grabbing; }
.logoPreviewFrame { position: relative; overflow: hidden; }
.previewZoomLayer {
  position: absolute;
  inset: 0;
  transform: translate3d(var(--modal-preview-pan-x, 0px), var(--modal-preview-pan-y, 0px), 0) scale(var(--modal-preview-zoom, 1));
  transform-origin: center center;
  transition: transform .18s cubic-bezier(.22, 1, .36, 1);
  z-index: 1;
  will-change: transform;
}
.modalPreviewPic.isZoomedDeep .previewZoomLayer {
  transition-duration: .14s;
}
.modalPreviewPic.isPanning .previewZoomLayer { transition: none; }
.previewBaseImg { width: 100%; height: 100%; object-fit: contain; position: absolute; inset: 0; z-index: 1; }
.asgardPreviewFrame::after {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 30%;
  z-index: 4;
  pointer-events: none;
  background: linear-gradient(180deg, #fff 0%, #fff 72%, rgba(255,255,255,0) 100%);
}
.previewZoomBtn {
  position: absolute;
  right: 10px;
  top: 10px;
  z-index: 24;
  border: 1px solid rgba(15,23,42,.18);
  background: rgba(255,255,255,.94);
  color: #0f172a;
  border-radius: 8px;
  padding: 7px 10px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(15,23,42,.16);
}
.previewZoomBtn:hover { background: #f8fafc; }
.previewPlacementBox {
  position:absolute;
  overflow:hidden;
  box-sizing: border-box;
  z-index: 10;
}
.previewPlacementSafe {
  position: absolute;
  inset: 0;
  margin: auto;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-sizing: border-box;
  cursor: crosshair;
  touch-action: none;
}
.previewLogoImg {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 118px;
  height: 74px;
  object-fit: contain;
  pointer-events: auto;
  cursor: grab;
  touch-action: none;
  background: transparent;
  mix-blend-mode: normal;
  filter:
    drop-shadow(0 0 1px rgba(15, 23, 42, .75))
    drop-shadow(0 2px 5px rgba(15, 23, 42, .34));
}
.pic .previewLogoImg,
.pic .editorLogoImg {
  background: transparent;
}
.previewLogoMask {
  background: var(--logo-color, #111827) !important;
  -webkit-mask-image: var(--logo-mask);
  mask-image: var(--logo-mask);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
  filter:
    drop-shadow(0 0 1px rgba(15, 23, 42, .7))
    drop-shadow(0 2px 5px rgba(15, 23, 42, .32));
}
.previewLogoImg[data-logo-white="1"] {
  filter:
    brightness(0) invert(1)
    drop-shadow(0 0 1px rgba(15, 23, 42, .65))
    drop-shadow(0 2px 5px rgba(15, 23, 42, .34));
}
.previewLogoTint {
  mix-blend-mode: normal;
  filter:
    drop-shadow(0 0 1.5px rgba(15, 23, 42, .95))
    drop-shadow(0 2px 6px rgba(15, 23, 42, .5))
    drop-shadow(0 0 7px rgba(255, 255, 255, .45));
}
.previewLogoImg:active { cursor: grabbing; }
.artworkEditorCard { margin-top: 8px; padding: 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.flowStepper {
  display: none;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
  padding: 4px 0 8px;
  background: linear-gradient(180deg, #fff 72%, rgba(255,255,255,0));
}
.flowStep {
  border: 1px solid #d7e2f2;
  background: #f8fbff;
  color: #335174;
  border-radius: 8px;
  padding: 7px 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 850;
  cursor: pointer;
}
.flowStep span,
.flowHead > span {
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: #1f4fd6;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 900;
  flex: 0 0 auto;
}
.flowSection {
  scroll-margin-top: 70px;
  border: 1px solid #dce5f2;
  border-radius: 8px;
  padding: 9px;
  background: #fff;
  box-shadow: none;
}
.logoFlowSection { background: #fff; }
.flowHead {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 7px;
}
.flowHead h3 {
  margin: 0;
  color: #10233f;
  font-size: 13px;
  line-height: 1.18;
}
.flowHead p { display: none; }
.compactGrid {
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 9px;
}
.toggleField {
  justify-content: end;
}
.switchLine {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  border: 1px solid #d0dbee;
  border-radius: 8px;
  padding: 8px 10px;
  background: #f8fbff;
  color: #15345f;
  font-weight: 800;
}
.flowMuted {
  border: 1px dashed #cbd8ea;
  border-radius: 8px;
  padding: 12px;
  color: #66778d;
  background: #f8fafc;
}
.flowPreviewMirror {
  display: grid;
  gap: 8px;
}
.summaryRows {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  border: 1px solid #e0e8f4;
  border-radius: 8px;
  overflow: hidden;
}
.summaryRows div {
  border: 0;
  border-bottom: 1px solid #e8eef7;
  border-right: 1px solid #e8eef7;
  padding: 7px 9px;
  background: #fff;
  display: flex;
  justify-content: space-between;
  gap: 10px;
}
.summaryRows span,
.flowTotal span {
  color: #66778d;
  font-size: 12px;
}
.summaryRows b {
  color: #10233f;
  text-align: right;
}
.flowTotal {
  margin-top: 10px;
  padding: 10px 0 2px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-top: 1px solid #d8e3f4;
}
.flowTotal strong {
  color: #10233f;
  font-size: 20px;
  font-weight: 950;
}
.flowAdd {
  width: 100%;
  min-height: 46px;
  margin-top: 10px;
}
.artworkEditorHead {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  margin-bottom:10px;
}
.artworkEditorCanvas {
  position: relative;
  display:flex;
  align-items:center;
  justify-content:center;
  margin: 0 auto;
  overflow: hidden;
  border: 1px dashed #94a3b8;
  border-radius: 0;
  background:
    linear-gradient(90deg, rgba(148,163,184,.12) 1px, transparent 1px),
    linear-gradient(rgba(148,163,184,.12) 1px, transparent 1px),
    linear-gradient(180deg, #ffffff, #f8fbff);
  background-size: 20px 20px, 20px 20px, auto;
}
.artworkEditorSafe {
  position: relative;
  width: calc(100% - 22px);
  height: calc(100% - 22px);
  overflow: hidden;
  border: 2px dashed rgba(148,163,184,.8);
  border-radius: 0;
  background: rgba(255,255,255,.72);
}
.editorLogoImg {
  position:absolute;
  left:50%;
  top:50%;
  object-fit:contain;
  pointer-events:auto;
  cursor:grab;
  touch-action:none;
  background:transparent;
  filter: drop-shadow(0 6px 14px rgba(15, 23, 42, 0.18));
}
.editorLogoImg:active { cursor: grabbing; }
.logoDesignBlock {
  margin-top: 8px;
  display: grid;
  gap: 10px;
}
.artworkUploadPanel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 9px;
  border: 1px solid #d8e3f4;
  border-radius: 8px;
  background: #fff;
}
.artworkUploadPanel .tiny { display: none; }
.artworkUploadPanel .tiny {
  margin-top: 2px;
  font-size: 11px;
  line-height: 1.25;
}
.artworkFileButton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid #b8c9e6;
  border-radius: 8px;
  background: #fff;
  color: #15345f;
  font-size: 12px;
  font-weight: 850;
  cursor: pointer;
  white-space: nowrap;
}
.artworkFileButton:hover { background: #eef4ff; border-color: #95b2ee; }
.artworkFileButton input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.artworkFileName {
  min-height: 30px;
  display: flex;
  align-items: center;
  padding: 7px 10px;
  border-radius: 8px;
  background: #f8fafc;
  color: #52627a;
  font-size: 12px;
}
.artworkFileName b { color: #10233f; }
.logoControlsGrid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(150px, .9fr) minmax(125px, .75fr);
  gap: 10px;
  align-items: end;
}
.logoControlsGrid .pantoneSlots {
  grid-column: auto;
  grid-template-columns: 1fr;
  gap: 8px;
}
.logoControlsGrid .field { min-width: 0; }
.logoControlsGrid input[type="range"].input {
  min-height: 40px;
  padding-left: 0;
  padding-right: 0;
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}
.rangeField > span {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}
.rangeField > span b {
  color: #10233f;
  font-size: 12px;
}
.artworkColorAudit {
  padding: 8px;
  border: 1px solid #d8e3f4;
  border-radius: 8px;
  background: #fff;
}
.artworkSuggestionHead {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.artworkSuggestionStatus {
  flex: 0 0 auto;
  max-width: 180px;
  padding: 5px 7px;
  border-radius: 8px;
  font-size: 11px;
  line-height: 1.25;
  font-weight: 850;
  text-align: right;
}
.artworkSuggestionStatus.ok {
  color: #166534;
  background: #eaf8ef;
  border: 1px solid #bbebc9;
}
.artworkSuggestionStatus.warn {
  color: #9f1239;
  background: #fff1f2;
  border: 1px solid #fecdd3;
}
.suggestionTags { margin-top: 7px; }
.suggestionHint { display: none; }
.authTitle { font-size: 22px; font-weight: 900; margin: 2px 0 10px; }
.authTabs { display:flex; gap:8px; margin-bottom:10px; }
.authGrid { display:grid; grid-template-columns: 1fr; gap:8px; }
.authHint { margin-top: 8px; font-size: 12px; color: var(--muted); }
.authError { margin-top: 8px; color:#dc2626; font-size: 13px; font-weight: 700; }
.authUserBadge { border-color:#b7d3ff; background:#eef4ff; }
.authActionGrid { display:flex; gap:8px; flex-wrap:wrap; margin-top:10px; }
.authOrdersPane { margin-top:14px; }
.authOrdersList { display:grid; gap:10px; }
.authOrderCard,
.authOrderDetailCard,
.authOrderItemCard {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, #fbfdff, #f7faff);
  padding: 14px;
}
.authOrderCard {
  text-align: left;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.authOrderCard:hover {
  transform: translateY(-1px);
  border-color: #bcd4ff;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.08);
}
.authOrderCardTop,
.authOrderItemTop {
  display:flex;
  justify-content:space-between;
  gap:10px;
  align-items:flex-start;
  flex-wrap:wrap;
}
.authOrderMeta {
  display:flex;
  flex-wrap:wrap;
  gap:10px 14px;
  color: var(--muted);
  font-size: 12px;
}
.authOrderMeta span { white-space: nowrap; }
.authOrderNumber,
.authOrderItemName { font-weight: 800; color: #0f172a; }
.authOrderStatus,
.authReviewBadge {
  display:inline-flex;
  align-items:center;
  border-radius:999px;
  padding:6px 10px;
  font-size:11px;
  font-weight:800;
}
.status-new,.review-pending { background:#eff6ff; color:#1d4ed8; }
.status-review,.review-changes_requested { background:#fff7ed; color:#c2410c; }
.status-approved,.review-approved { background:#ecfdf5; color:#047857; }
.status-submitted,.status-production { background:#f5f3ff; color:#6d28d9; }
.status-completed { background:#f0fdf4; color:#15803d; }
.status-cancelled,.review-rejected { background:#fef2f2; color:#b91c1c; }
.authOrderDetailWrap { margin-top: 12px; }
.authOrderItems { display:grid; gap:10px; }
.authOrdersView { width:min(780px, 100%); }
.imageZoomOverlay {
  position: fixed;
  inset: 0;
  z-index: 12000;
  background: rgba(0, 0, 0, 0.84);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.imageZoomOverlay img {
  max-width: 95vw;
  max-height: 92vh;
  object-fit: contain;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0,0,0,.35);
  transform: scale(.92);
  opacity: 0;
}
.imageZoomOverlay img.zoomIn { animation: zoomInModal .22s ease-out forwards; }
.imageZoomClose {
  position: absolute;
  top: 14px;
  right: 14px;
  min-width: 36px;
  min-height: 36px;
}
@keyframes zoomInModal {
  from { transform: scale(.92); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
@media (max-width: 980px) {
  .wrap {
    padding: 10px;
  }
  .topHeader {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 14px;
    background: linear-gradient(180deg, #ffffff, #f8fbff);
  }
  .logoLink { justify-content: center; }
  .logo {
    width: clamp(160px, 56vw, 240px);
    max-height: 44px;
  }
  .headBtns {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }
  .headBtns #langLv {
    order: -2;
    margin-left: auto;
  }
  .headBtns #langEn {
    order: -1;
  }
  .headBtns .btn,
  .headBtns a.btn {
    min-height: 30px;
    padding: 5px 8px;
    font-size: 11px;
    border-radius: 999px;
    text-align: center;
    clip-path: none;
    letter-spacing: .02em;
    box-shadow: 0 3px 8px rgba(15, 23, 42, 0.08);
  }
  .headBtns #navShop,
  .headBtns #navCart,
  .headBtns #authBtn {
    flex: 1 1 calc(33.333% - 4px);
    min-width: 0;
  }
  .authActionGrid .btn { flex: 1 1 calc(50% - 4px); }
  .authOrderMeta span { white-space: normal; }
  .headBtns #langLv,
  .headBtns #langEn {
    flex: 0 0 48px;
    min-width: 48px;
    padding: 5px 0;
  }
  .top #q { flex-basis: 60%; max-width: 100%; }
  .top { gap: 6px; }
  .top #q { flex-basis: 100%; min-width: 0 !important; max-width: 100%; }
  .topFacets { display: none; }
  .facetDrop { flex: 1 1 calc(50% - 4px); min-width: 0; }
  .facetDropBtn,
  .topFacets > .btn,
  .facetSort {
    min-width: 100%;
    width: 100%;
    min-height: 28px;
    padding: 4px 8px;
    font-size: 11px;
    border-radius: 8px;
  }
  .mobileBrowseTools {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin: -2px 0 10px;
  }
  .mobileBrowseTools .btn {
    min-height: 42px;
    border-radius: 8px;
    font-size: 13px;
  }
  .layout { grid-template-columns: 1fr; }
  .sidebar {
    display: none;
    position: fixed;
    z-index: 510;
    inset: auto 8px max(8px, env(safe-area-inset-bottom));
    max-height: min(76dvh, 680px);
    padding: 12px;
    border: 1px solid #cbd8ed;
    border-radius: 8px;
    box-shadow: 0 18px 48px rgba(15, 23, 42, .24);
  }
  .sidebar.mobileOpen { display: grid; }
  .sidebar .sideTitle { position: sticky; top: 0; z-index: 1; padding: 2px 0 8px; background: #fff; }
  .sidebar .catList { max-height: calc(min(76dvh, 680px) - 52px); overflow-y: auto; padding: 0 3px 12px 0; }
  .topFacets.mobileOpen {
    position: fixed;
    z-index: 510;
    inset: auto 8px max(8px, env(safe-area-inset-bottom));
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    max-height: min(76dvh, 680px);
    overflow-y: auto;
    padding: 12px;
    border: 1px solid #cbd8ed;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 18px 48px rgba(15, 23, 42, .24);
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }
  .topFacets.mobileOpen .facetDrop,
  .topFacets.mobileOpen > .btn,
  .topFacets.mobileOpen .facetSort { width: 100%; min-width: 0; }
  .topFacets.mobileOpen .facetDropPanel {
    position: static;
    width: 100%;
    max-height: 34dvh;
    margin-top: 6px;
    box-shadow: none;
    background: #f8fbff;
  }
  .mobileBrowseBackdrop:not([hidden]) {
    display: block;
    position: fixed;
    z-index: 500;
    inset: 0;
    border: 0;
    background: rgba(15, 23, 42, .42);
  }
  body.shopMobilePanelOpen { overflow: hidden; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .card { min-height: 290px; padding: 10px; }
  .pic { height: 140px; }
  .price { font-size: 18px; }
  .name { font-size: 15px; min-height: 36px; }
  .productModalGrid { grid-template-columns: 1fr; gap: 12px; }
  .modalMainPic { height: 240px !important; }
  .modalPreviewPic { height: 240px; }
  .logoControlsGrid { grid-template-columns: 1fr; }
  .artworkUploadPanel { grid-template-columns: 1fr; }
  .artworkFileButton { width: 100%; }
  .flowStepper { grid-template-columns: repeat(3, minmax(0, 1fr)); position: static; }
  .summaryRows { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .wrap {
    padding: 8px;
  }
  .topHeader {
    padding: 8px;
  }
  .headBtns {
    gap: 6px;
  }
  .headBtns #langLv {
    order: -2;
    margin-left: auto;
  }
  .headBtns #langEn {
    order: -1;
  }
  .headBtns #navShop,
  .headBtns #navCart,
  .headBtns #authBtn {
    flex: 1 1 calc(33.333% - 4px);
    min-width: 0;
  }
  .headBtns #langLv,
  .headBtns #langEn {
    flex: 1 1 calc(50% - 3px);
    min-width: 0;
  }
  .top {
    gap: 6px;
    margin-bottom: 8px;
  }
  .top #q,
  .input,
  .btn,
  .facetDropBtn,
  .facetSort {
    font-size: 11px;
    min-height: 26px;
    padding: 4px 7px;
    border-radius: 9px;
  }
  .facetDrop,
  .topFacets > .btn,
  .facetSort {
    flex: 1 1 100%;
    width: 100%;
  }
  .sidebar {
    padding: 8px;
    border-radius: 14px;
  }
  .catList {
    gap: 6px;
  }
  .catBtn,
  .catParent {
    font-size: 11px;
    padding: 8px 9px;
  }
  .catCount,
  .catToggleSign {
    transform: scale(.95);
    transform-origin: center;
  }
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .card {
    min-height: 0;
  }
  .pic {
    height: 180px;
  }
  .price {
    font-size: 17px;
  }
  .pill {
    font-size: 11px;
    padding: 4px 7px;
  }
  .modalOverlay {
    padding: 10px;
  }
  .modalCard {
    width: 100%;
    max-height: 95vh;
    padding: 12px;
  }
  .productModalDesc {
    font-size: 12px;
  }
  .flowStepper { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flowSection { padding: 11px; }
  .flowStep { justify-content: flex-start; }
}

.authCard { width: min(920px, 96vw); }
.authShell { display:grid; grid-template-columns: minmax(260px, 320px) minmax(0, 1fr); gap:14px; }
.authPanel { border:1px solid var(--line); border-radius:18px; background:#fff; padding:18px; }
.authIntroPanel { background: linear-gradient(135deg, #f8fbff, #eef6ff); }
.authPanelSingle { display:grid; gap:10px; }
.authIntroBadge { display:inline-flex; align-items:center; border:1px solid #d7e5fb; background:#fff; color:#385b90; border-radius:999px; padding:6px 10px; font-size:12px; font-weight:800; width:max-content; margin-bottom:12px; }
.authLead { margin:0 0 12px; color:#5d718f; line-height:1.5; }
.authBenefitList { display:grid; gap:8px; }
.authBenefitItem { position:relative; padding-left:16px; color:#355177; font-size:14px; }
.authBenefitItem::before { content:""; position:absolute; left:0; top:7px; width:7px; height:7px; border-radius:999px; background:linear-gradient(180deg,#1d4ed8,#2563eb); }
.authFormPanel { display:grid; gap:12px; }
.authTabs { display:grid; grid-template-columns: 1fr 1fr; gap:8px; margin-bottom:2px; }
.authGrid { display:grid; gap:10px; }
.authFieldsGrid { display:grid; grid-template-columns: 1fr 1fr; gap:10px; }
.accountTypeSwitch { display:grid; grid-template-columns: 1fr 1fr; gap:10px; }
.accountTypeCard { display:grid; gap:4px; border:1px solid #dbe5f4; border-radius:16px; padding:12px; background:#f8fbff; cursor:pointer; transition: all .18s ease; }
.accountTypeCard input { display:none; }
.accountTypeCard.active { border-color:#8eb5ff; background:#eef4ff; box-shadow:0 10px 24px rgba(37,99,235,.08); }
.accountTypeTitle { font-weight:900; color:#102444; }
.accountTypeText { font-size:12px; color:#64748b; line-height:1.4; }
.authNotes { min-height:90px; resize:vertical; }
.authSubmitBtn { min-height:46px; }
.authGhostBtn { min-height:46px; }
@media (max-width: 860px) {
  .authCard { width: min(680px, 96vw); }
  .authShell { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .authFieldsGrid, .accountTypeSwitch, .authTabs { grid-template-columns: 1fr; }
}
