:root {
  --bg: #f4f6f7;
  --surface: #ffffff;
  --surface-2: #eef2f4;
  --surface-3: #e7f1ef;
  --ink: #172023;
  --muted: #667276;
  --line: #d9e0e3;
  --accent: #146b5c;
  --accent-2: #e0642f;
  --danger: #a33f3f;
  --topbar-bg: rgba(255, 255, 255, 0.94);
  --mobile-menu-bg: rgba(255, 255, 255, 0.6);
  --soft-band: #edf2f4;
  --contact-band: #f6f8f7;
  --service-bg: #e9f2f0;
  --input-bg: #ffffff;
  --art-line: rgba(23,32,35,.24);
  --cart-thumb-bg: #f4f7f6;
  --radius: 8px;
  --shadow: 0 16px 38px rgba(23, 32, 35, 0.11);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

:root[data-theme="dark"] {
  --bg: #101414;
  --surface: #171d1d;
  --surface-2: #222a2a;
  --surface-3: #17332e;
  --ink: #edf3f1;
  --muted: #a6b2af;
  --line: #303b3a;
  --accent: #29a58d;
  --accent-2: #f08a52;
  --danger: #e07171;
  --topbar-bg: rgba(16, 20, 20, 0.94);
  --mobile-menu-bg: rgba(16, 20, 20, 0.6);
  --soft-band: #141b1b;
  --contact-band: #111817;
  --service-bg: #182622;
  --input-bg: #101515;
  --art-line: rgba(237,243,241,.2);
  --cart-thumb-bg: #121818;
  --shadow: 0 18px 42px rgba(0, 0, 0, 0.34);
}

* { box-sizing: border-box; }
html {
  max-width: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
  scroll-padding-top: 94px;
}
body { max-width: 100%; margin: 0; overflow-x: hidden; background: var(--bg); color: var(--ink); }
[hidden] { display: none !important; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }
::selection {
  background: color-mix(in srgb, var(--accent) 28%, transparent);
  color: var(--ink);
}

:root[data-theme="dark"] ::selection {
  background: color-mix(in srgb, var(--accent) 44%, #0b1111);
  color: #ffffff;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 22px;
  min-height: 66px;
  padding: 10px clamp(14px, 4vw, 42px);
  border-bottom: 1px solid var(--line);
  background: var(--topbar-bg);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
}

.brand-logo {
  display: block;
  width: clamp(124px, 12vw, 172px);
  height: auto;
  max-height: 42px;
  object-fit: contain;
}

.fixlab-wordmark {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 10px;
  border: 2px solid var(--ink);
  border-radius: 6px;
  background: var(--input-bg);
  font-weight: 800;
  letter-spacing: 0;
}
.fixlab-wordmark b {
  color: var(--accent-2);
}
.nav { display: flex; flex: 1; gap: 18px; align-items: center; }
.nav a { color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 700; }
.toolbar { display: flex; align-items: center; gap: 8px; }

.mobile-menu-toggle,
.mobile-nav-head,
.mobile-nav-account,
.mobile-scrim,
.mobile-catalog-tools,
.mobile-sheet-head,
.mobile-results-button {
  display: none;
}

.mobile-menu-toggle {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  padding: 0;
}

.mobile-menu-toggle span {
  display: block;
  width: 21px;
  height: 2px;
  margin: 2.5px auto;
  border-radius: 99px;
  background: currentColor;
  transition: transform 160ms ease, opacity 160ms ease;
}

.theme-toggle {
  width: 38px;
  padding: 0;
  font-size: 18px;
  font-weight: 900;
}

.music-toggle {
  width: 38px;
  padding: 0;
  font-size: 17px;
  font-weight: 900;
  color: var(--muted);
}

.music-toggle.active {
  border-color: color-mix(in srgb, var(--accent) 62%, var(--line));
  background: color-mix(in srgb, var(--accent) 12%, var(--surface));
  color: var(--accent);
}

.music-control {
  position: relative;
}

.music-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 45;
  width: 190px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.music-panel label {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 9px 10px;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.music-panel output {
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.music-panel input[type="range"] {
  grid-column: 1 / -1;
  width: 100%;
  accent-color: var(--accent);
}

.language-picker {
  position: relative;
}

.language-trigger {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  min-width: 64px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  font-weight: 700;
}

.language-chevron {
  color: var(--muted);
  font-size: 12px;
  transition: transform 150ms ease;
}

.language-picker.open .language-chevron {
  transform: rotate(180deg);
}

.language-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 35;
  display: grid;
  gap: 4px;
  width: 178px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(-6px) scale(0.98);
  transform-origin: top right;
  pointer-events: none;
  transition: opacity 150ms ease, transform 150ms ease;
}

.language-menu:not([hidden]) {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.language-menu button {
  display: grid;
  grid-template-columns: 38px 1fr;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--ink);
  text-align: left;
  padding: 7px 8px;
}

.language-menu button:hover,
.language-menu button.active {
  background: var(--surface-2);
}

.language-menu span {
  font-weight: 900;
}

.language-menu small {
  color: var(--muted);
}

.account-menu-wrap {
  position: relative;
}

.account-trigger {
  max-width: 190px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-menu-popover {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 35;
  display: grid;
  gap: 4px;
  width: 190px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(-6px) scale(0.98);
  transform-origin: top right;
  pointer-events: none;
  transition: opacity 150ms ease, transform 150ms ease;
}

.account-menu-popover:not([hidden]) {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.account-menu-popover button {
  min-height: 40px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--ink);
  text-align: left;
  padding: 8px 10px;
  font-weight: 800;
}

.account-menu-popover button:hover {
  background: var(--surface-2);
}

.icon-button, .ghost, .primary, .link-button {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  padding: 0 13px;
}

.inline-action {
  justify-self: start;
  min-height: 32px;
  border: 0;
  background: transparent;
  color: var(--accent);
  padding: 0;
  font-weight: 700;
  text-align: left;
}

.inline-action:hover {
  text-decoration: underline;
}

.primary, .link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
  font-weight: 750;
  text-decoration: none;
}

.primary {
  touch-action: manipulation;
}

.icon-button { min-width: 38px; padding: 0 10px; }
.cart-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.cart-button-icon {
  display: none;
  line-height: 1;
}

.cart-button b {
  min-width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 99px;
  background: var(--accent-2);
  color: #fff;
  font-size: 12px;
}

main {
  padding-top: 66px;
  padding-bottom: 52px;
}
.shop-head,
.payment-band,
.account-band,
.contacts-band,
.admin-band,
#catalog,
#payment,
#contacts,
#account,
#admin {
  scroll-margin-top: 94px;
}
.shop-head, .payment-band, .account-band, .admin-band, .contacts-band {
  padding: clamp(22px, 4vw, 42px) clamp(14px, 4vw, 42px);
}

body:not([data-view="account"]) .account-band {
  display: none;
}

body:not([data-view="payment"]) .payment-band {
  display: none;
}

body:not([data-view="contacts"]) .contacts-band {
  display: none;
}

body:not([data-view="admin"]) .admin-band {
  display: none !important;
}

body[data-view="account"] .shop-head,
body[data-view="account"] .catalog-layout,
body[data-view="account"] .payment-band,
body[data-view="account"] .contacts-band,
body[data-view="account"] .admin-band,
body[data-view="payment"] .shop-head,
body[data-view="payment"] .catalog-layout,
body[data-view="payment"] .account-band,
body[data-view="payment"] .contacts-band,
body[data-view="payment"] .admin-band,
body[data-view="contacts"] .shop-head,
body[data-view="contacts"] .catalog-layout,
body[data-view="contacts"] .payment-band,
body[data-view="contacts"] .account-band,
body[data-view="contacts"] .admin-band,
body[data-view="admin"] .shop-head,
body[data-view="admin"] .catalog-layout,
body[data-view="admin"] .payment-band,
body[data-view="admin"] .account-band,
body[data-view="admin"] .contacts-band {
  display: none !important;
}

body[data-view="account"] .account-band,
body[data-view="payment"] .payment-band,
body[data-view="contacts"] .contacts-band,
body[data-view="admin"] .admin-band {
  min-height: calc(100vh - 66px);
}

.shop-head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  padding-top: clamp(18px, 2.4vw, 30px);
  padding-bottom: clamp(18px, 2.2vw, 28px);
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface) 76%, var(--bg) 100%);
  border-bottom: 1px solid var(--line);
}

.catalog-hero-media {
  width: min(100%, 1280px);
  aspect-ratio: 5.1 / 1;
  margin: 0;
  justify-self: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-2);
}

.catalog-hero-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center 54%;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

h1, h2, h3, p { overflow-wrap: anywhere; }
h1 { margin: 0; font-size: clamp(32px, 5vw, 58px); line-height: 1; letter-spacing: 0; }
h2 { margin: 0; font-size: clamp(26px, 4vw, 38px); }
h3 { margin: 0 0 10px; font-size: 18px; }

.searchbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  gap: 8px;
  width: min(100%, 1280px);
  justify-self: center;
}

.catalog-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 84px;
  gap: 8px;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  width: min(100%, 1280px);
  justify-self: center;
}

.trust-strip > div {
  display: grid;
  gap: 3px;
  min-height: 58px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
}

.trust-strip strong {
  font-size: 13px;
  line-height: 1.2;
}

.trust-strip span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.25;
}

.active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  width: min(100%, 1440px);
  justify-self: center;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  max-width: 100%;
  padding: 0 9px 0 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  text-align: left;
}

.filter-chip span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.filter-chip b {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-weight: 900;
  font-size: 13px;
  line-height: 1;
}

.filter-chip:hover b {
  color: var(--ink);
}

.filter-chip.clear {
  background: transparent;
}

input, textarea, select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--input-bg);
  color: var(--ink);
  padding: 10px 11px;
}

textarea { min-height: 86px; resize: vertical; }
label { display: grid; gap: 6px; color: var(--muted); font-size: 13px; font-weight: 800; }

.catalog-layout {
  display: grid;
  grid-template-columns: 292px minmax(0, 1fr);
  gap: 18px;
  padding: 18px clamp(14px, 4vw, 42px) 42px;
}

.filters {
  position: sticky;
  top: 84px;
  align-self: start;
  display: grid;
  gap: 12px;
}

.filter-block, .service-card, .panel, .empty, .order-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.filter-block, .service-card, .panel, .empty, .order-card { padding: 16px; }
.filter-block { display: grid; gap: 12px; }
.price-range-filter {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
}

.price-range-filter label {
  min-width: 0;
}

.category-tree { display: grid; gap: 4px; }
.category-node {
  display: grid;
  gap: 3px;
}

.category-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 30px;
  align-items: stretch;
  gap: 4px;
}

.category-children {
  display: grid;
  gap: 3px;
  margin-left: 14px;
  padding-left: 9px;
  border-left: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}

.category-toggle {
  width: 30px;
  min-height: 36px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: transparent;
  color: var(--muted);
  font-size: 18px;
  font-weight: 800;
}

.category-toggle:hover {
  color: var(--accent);
  background: var(--surface-3);
}

.category-toggle span {
  display: block;
  transition: transform 140ms ease;
}

.category-toggle.expanded span {
  transform: rotate(90deg);
}

.category-button {
  position: relative;
  width: 100%;
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: transparent;
  color: var(--ink);
  text-align: left;
  padding: 7px 9px;
}
.category-label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.category-icon {
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 54%, var(--surface-2));
  color: transparent;
  font-size: 0;
  font-weight: 0;
  line-height: 1;
}

.category-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.category-button:hover {
  background: color-mix(in srgb, var(--surface-2) 72%, transparent);
}

.category-node.root > .category-row .category-button {
  font-weight: 820;
}

.category-button.active {
  border-color: transparent;
  background: var(--surface-3);
  color: var(--accent);
  box-shadow: inset 3px 0 0 var(--accent);
  font-weight: 880;
}

.category-node.in-active-path > .category-row .category-button {
  color: var(--accent);
  background: color-mix(in srgb, var(--surface-3) 56%, transparent);
}

.subcategory-button { color: var(--muted); font-size: 13px; }
.subcategory-button.level-2 { font-size: 12.5px; }
.subcategory-button .category-icon {
  width: 7px;
  height: 7px;
  font-size: 0;
  opacity: 0.72;
}
.category-count {
  flex: 0 0 auto;
  min-width: auto;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  font-weight: 720;
  text-align: center;
}
.category-button.active .category-count {
  background: transparent;
  color: var(--accent);
}

.service-card { display: grid; gap: 10px; background: var(--service-bg); }
.service-card-media-link {
  display: block;
  border-radius: 6px;
  color: inherit;
}
.service-card-image {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 6px;
  object-fit: cover;
  border: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.service-card h3 {
  margin: 0;
}
.service-card h3 a {
  color: var(--ink);
  text-decoration: none;
}
.service-card-media-link:hover .service-card-image,
.service-card h3 a:hover {
  filter: brightness(0.97);
  text-decoration: underline;
}
.service-card p { margin: 0; color: var(--muted); line-height: 1.45; }

.catalog-main { min-width: 0; }
.catalog-results-anchor {
  display: block;
  scroll-margin-top: 96px;
}
.catalog-summary {
  display: flex;
  gap: 6px;
  align-items: center;
  margin-bottom: 12px;
  color: var(--muted);
}
.catalog-summary strong { color: var(--ink); }

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 14px;
}

.load-more-wrap {
  display: grid;
  place-items: center;
  padding-top: 18px;
}

.load-more-wrap .ghost {
  min-width: 180px;
}

.product-card {
  display: grid;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.catalog-loading-status,
.catalog-empty {
  grid-column: 1 / -1;
}

.catalog-loading-status {
  min-height: 44px;
  display: flex;
  align-items: center;
  padding: 0 4px;
  color: var(--muted);
  font-weight: 800;
}

.product-skeleton {
  pointer-events: none;
}

.skeleton-block,
.skeleton-line,
.skeleton-grid span,
.skeleton-actions span {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  background: var(--surface-2);
}

.skeleton-block::after,
.skeleton-line::after,
.skeleton-grid span::after,
.skeleton-actions span::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.48), transparent);
  animation: skeleton-shimmer 1.25s ease-in-out infinite;
}

:root[data-theme="dark"] .skeleton-block::after,
:root[data-theme="dark"] .skeleton-line::after,
:root[data-theme="dark"] .skeleton-grid span::after,
:root[data-theme="dark"] .skeleton-actions span::after {
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.12), transparent);
}

.skeleton-line {
  height: 13px;
}

.skeleton-line.short {
  width: 58%;
}

.skeleton-line.title {
  width: 86%;
  height: 22px;
}

.skeleton-line.price {
  width: 42%;
  height: 26px;
}

.skeleton-grid,
.skeleton-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.skeleton-grid span {
  height: 32px;
}

.skeleton-actions {
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.skeleton-actions span {
  height: 40px;
}

@keyframes skeleton-shimmer {
  100% { transform: translateX(100%); }
}

.product-art {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 168px;
  overflow: hidden;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: #ffffff;
}

.product-art-button {
  width: 100%;
  padding: 0;
  color: inherit;
  cursor: pointer;
}

.product-art-button:hover,
.product-art-button:focus-visible {
  border-color: color-mix(in srgb, var(--accent) 58%, var(--line));
}

.product-art::after {
  display: none;
}

.product-art img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 168px;
  object-fit: contain;
  padding: 16px;
}

.badges { position: absolute; top: 10px; left: 10px; display: flex; gap: 6px; flex-wrap: wrap; }
.badge { padding: 4px 7px; border-radius: 99px; background: var(--ink); color: #fff; font-size: 11px; font-weight: 900; }
.badge.sale { background: var(--accent-2); }

.product-card h3 { margin: 0; font-size: 18px; line-height: 1.24; font-weight: 750; }
.product-title-button {
  display: inline;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: inherit;
  line-height: inherit;
  text-align: left;
}
.product-title-button:hover,
.product-title-button:focus-visible {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.product-card p {
  display: -webkit-box;
  min-height: 39px;
  overflow: hidden;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.sku-line, .stock, .spec-list { color: var(--muted); font-size: 12px; }
.price-row { display: flex; align-items: baseline; gap: 9px; }
.price { color: var(--ink); font-size: 22px; font-weight: 800; }
:root[data-theme="dark"] .price { color: #f7fbfa; }
.compare { color: var(--muted); text-decoration: line-through; font-size: 14px; }
.spec-list { display: grid; gap: 6px; padding-top: 4px; }
.spec-list span {
  display: grid;
  grid-template-columns: minmax(88px, 0.42fr) minmax(0, 1fr);
  gap: 8px;
  align-items: baseline;
}
.spec-list b {
  color: var(--ink);
  font-weight: 800;
}
.spec-list em {
  color: var(--muted);
  font-style: normal;
  overflow-wrap: anywhere;
}
.product-meta-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}
.product-meta-grid span {
  min-height: 32px;
  padding: 7px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.25;
}
.product-meta-grid .ok { color: var(--accent); }
.product-meta-grid .empty { color: var(--danger); }
.product-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; align-items: center; }

.section-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 16px; }
.account-band { background: var(--soft-band); }
.payment-band { background: var(--soft-band); }
.contacts-band { background: var(--contact-band); }
.payment-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(260px, 1fr));
  gap: 14px;
}
.clean-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.5;
}
.clean-list li::marker {
  color: var(--accent);
  font-weight: 900;
}
.contact-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.contact-grid > div {
  display: grid;
  gap: 8px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.contact-grid a { color: var(--accent); font-weight: 800; text-decoration: none; }
.contact-grid span { color: var(--muted); line-height: 1.4; }

.site-footer {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(0, 2.2fr);
  gap: clamp(18px, 4vw, 42px);
  padding: 34px clamp(14px, 4vw, 42px);
  border-top: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 90%, var(--soft-band));
}

.footer-brand {
  display: grid;
  gap: 12px;
  align-content: start;
  color: var(--muted);
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  width: clamp(156px, 18vw, 220px);
  min-height: 42px;
  text-decoration: none;
}

.footer-logo img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.footer-brand p {
  max-width: 330px;
  margin: 0;
  line-height: 1.5;
}

.footer-brand .seller-details {
  font-size: 13px;
  color: var(--muted);
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.footer-columns section {
  display: grid;
  gap: 8px;
  align-content: start;
  min-width: 0;
}

.footer-columns strong {
  color: var(--ink);
  font-size: 14px;
}

.footer-columns a {
  color: var(--accent);
  font-weight: 800;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.footer-columns a:hover {
  text-decoration: underline;
}

.footer-columns span {
  color: var(--muted);
  line-height: 1.45;
}

.footer-legal {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  padding-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.footer-legal a {
  color: var(--muted);
  text-decoration: none;
}

.footer-legal a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.legal-site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px clamp(18px, 4vw, 42px);
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  backdrop-filter: blur(14px);
}

.legal-site-logo {
  display: inline-flex;
  align-items: center;
  width: clamp(148px, 18vw, 220px);
  min-height: 42px;
  text-decoration: none;
}

.legal-site-logo img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.legal-site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 18px;
}

.legal-site-nav a {
  color: var(--muted);
  font-weight: 750;
  text-decoration: none;
}

.legal-site-nav a:hover,
.legal-site-nav a.active {
  color: var(--accent);
}

.legal-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 44px 18px 56px;
  color: var(--ink);
}

.legal-page article {
  display: grid;
  gap: 18px;
  padding: clamp(18px, 4vw, 34px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.legal-page h1 {
  margin: 0;
  font-size: clamp(32px, 6vw, 54px);
  line-height: 1.05;
}

.legal-page h2 {
  margin: 10px 0 0;
}

.legal-page p,
.legal-page li {
  color: var(--muted);
  line-height: 1.65;
}

.legal-page ul {
  margin: 0;
  padding-left: 20px;
}

.legal-back {
  display: inline-flex;
  width: max-content;
  color: var(--accent);
  font-weight: 800;
  text-decoration: none;
}

.cookie-notice {
  position: fixed;
  left: clamp(12px, 3vw, 34px);
  right: clamp(12px, 3vw, 34px);
  bottom: clamp(12px, 3vw, 24px);
  z-index: 80;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  max-width: 980px;
  margin: 0 auto;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--surface) 96%, transparent);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.cookie-notice[hidden] {
  display: none !important;
}

.cookie-notice strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
  font-size: 15px;
}

.cookie-notice p {
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.45;
}

.cookie-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.cookie-policy-card {
  max-width: 640px;
  gap: 14px;
  padding-right: 62px;
  background: color-mix(in srgb, var(--surface) 96%, var(--bg));
}

.cookie-policy-card h2 {
  margin: 0 0 2px;
  color: var(--ink);
  font-size: clamp(24px, 4vw, 34px);
  line-height: 1.08;
}

.cookie-policy-card p {
  margin: 0;
  color: color-mix(in srgb, var(--ink) 76%, var(--muted));
  line-height: 1.6;
}

#cookiePolicyDialog .close {
  display: grid;
  place-items: center;
  border-color: color-mix(in srgb, var(--ink) 24%, var(--line));
  background: color-mix(in srgb, var(--surface) 88%, var(--ink));
  color: var(--ink);
  font-size: 18px;
  font-weight: 800;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

#cookiePolicyDialog .close:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.account-tabs, .tabs, .form-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.account-tabs { margin-bottom: 14px; }
.account-tabs button, .tabs button {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  padding: 0 13px;
}
.account-tabs button.active, .tabs button.active { background: var(--ink); color: #fff; }

:root[data-theme="dark"] .account-tabs button.active,
:root[data-theme="dark"] .tabs button.active {
  border-color: color-mix(in srgb, var(--accent) 58%, var(--line));
  background: color-mix(in srgb, var(--accent) 22%, var(--surface-2));
  color: #f7fbfa;
}

:root[data-theme="dark"] .dialog-card input,
:root[data-theme="dark"] .dialog-card textarea,
:root[data-theme="dark"] .dialog-card select {
  color: var(--ink);
  background: var(--input-bg);
}
.checkbox-line {
  display: grid !important;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  padding: 10px 0;
  color: var(--muted);
  font-weight: 650;
  line-height: 1.35;
}
.checkbox-line[hidden] {
  display: none !important;
}
.checkbox-line input {
  width: 18px;
  height: 18px;
  margin-top: 1px;
  accent-color: var(--accent);
}
.account-grid { display: grid; grid-template-columns: repeat(2, minmax(260px, 1fr)); gap: 12px; }
.wide { grid-column: 1 / -1; }
.address-card, .admin-row {
  display: grid;
  gap: 4px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.address-card:first-child, .admin-row:first-child { border-top: 0; }
.address-card small, .admin-row small { color: var(--muted); }
.inline-link {
  display: inline-flex;
  margin-top: 4px;
  color: var(--accent);
  font-weight: 800;
  text-decoration: none;
}

.admin-band {
  background: var(--surface);
  border-top: 1px solid var(--line);
}
.admin-shell {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}
.admin-sidebar {
  position: sticky;
  top: 84px;
  display: grid;
  gap: 8px;
  padding: 14px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.admin-brand {
  display: grid;
  gap: 2px;
  padding: 6px 8px 12px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 4px;
}
.admin-brand strong {
  font-size: 20px;
}
.admin-brand span, .admin-help {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}
.admin-nav, .admin-stat {
  justify-content: flex-start;
  color: var(--ink);
  background: transparent;
  border-color: transparent;
}
.admin-nav {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  font-weight: 750;
}
.admin-nav.active, .admin-stat.active {
  background: var(--accent-soft);
  border-color: color-mix(in srgb, var(--accent) 35%, var(--line));
  color: var(--accent);
}
.admin-workspace {
  display: grid;
  gap: 14px;
  min-width: 0;
}
.admin-top {
  margin: 0;
}
.admin-dashboard {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}
.admin-stat {
  display: grid;
  gap: 5px;
  min-height: 82px;
  padding: 14px;
  text-align: left;
  background: var(--panel);
  border-color: var(--line);
  box-shadow: none;
}
.admin-stat span {
  color: var(--muted);
  font-size: 13px;
}
.admin-stat strong {
  font-size: 18px;
}
.admin-section {
  display: grid;
  gap: 14px;
}
.admin-section[hidden] {
  display: none !important;
}
.admin-list-panel, .admin-product-editor, .admin-form {
  display: grid;
  gap: 12px;
  align-content: start;
}
.admin-grid-two {
  display: grid;
  grid-template-columns: repeat(2, minmax(280px, 1fr));
  gap: 14px;
  align-items: start;
}
.admin-section-title {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 420px);
  gap: 12px;
  align-items: end;
}
.admin-section-title h3 {
  margin: 0;
}
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.admin-language-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.admin-language-grid textarea {
  min-height: 116px;
}
.admin-fieldset {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--panel) 92%, var(--surface));
}
.admin-fieldset legend {
  padding: 0 6px;
  font-weight: 800;
}
.admin-check {
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--input-bg);
}
.admin-row {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
}
.admin-row > div:last-child {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}
.form-actions.compact {
  justify-content: flex-end;
}

.check { display: flex; align-items: center; gap: 8px; }
.check input { width: auto; }

dialog { width: min(470px, calc(100vw - 24px)); border: 0; padding: 0; background: transparent; }
#productDialog { width: min(860px, calc(100vw - 24px)); }
dialog::backdrop { background: rgba(23, 32, 35, 0.38); }
.dialog-card {
  position: relative;
  display: grid;
  gap: 12px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.dialog-card h1,
.dialog-card h2,
.dialog-card h3,
.dialog-card strong {
  color: var(--ink);
}

.close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--input-bg);
  color: var(--ink);
}
.message {
  min-height: 0;
  color: #b42318;
  font-size: 15px;
  line-height: 1.45;
  font-weight: 800;
}
.message:not(:empty) {
  padding: 12px 14px;
  border: 1px solid color-mix(in srgb, #b42318 35%, var(--line));
  border-radius: var(--radius);
  background: #fff3f0;
  box-shadow: 0 12px 26px rgba(180, 35, 24, 0.12);
}
.message.success {
  color: var(--accent);
}
.message.success:not(:empty) {
  border-color: color-mix(in srgb, var(--accent) 35%, var(--line));
  background: color-mix(in srgb, var(--accent-soft) 70%, var(--surface));
  box-shadow: none;
}
.message a { color: var(--accent); font-weight: 900; }
.auth-help { margin: 0; color: var(--muted); font-size: 14px; }
.field-hint {
  margin: -4px 0 2px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}
.password-policy-note {
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-2);
}

.product-dialog-card {
  padding: 18px;
}

.product-detail {
  display: grid;
  grid-template-columns: minmax(220px, 0.78fr) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.product-detail-art {
  display: grid;
  place-items: center;
  min-height: 320px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
}

.product-detail-art img {
  width: 100%;
  max-height: 320px;
  object-fit: contain;
  padding: 18px;
}

.product-detail-info {
  display: grid;
  gap: 12px;
}

.product-detail-info h2 {
  color: var(--ink);
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.05;
}

:root[data-theme="dark"] .product-card h3,
:root[data-theme="dark"] .product-title-button,
:root[data-theme="dark"] .product-detail-info h2 {
  color: #f7fbfa;
}

.product-detail-info p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
  white-space: pre-line;
}

.product-meta-grid.detail {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.spec-list.detail {
  max-height: 180px;
  overflow: auto;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: -440px;
  bottom: 0;
  left: auto;
  z-index: 30;
  display: grid;
  grid-template-rows: auto 1fr auto;
  width: min(440px, 100vw);
  padding: 18px;
  background: var(--surface);
  box-shadow: var(--shadow);
  transform: none !important;
  transition: right 180ms ease;
}
.cart-drawer.open { right: 0; }
.drawer-head, .total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.cart-line {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) 72px 42px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.cart-thumb {
  width: 54px;
  height: 54px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  object-fit: contain;
}
.cart-thumb-empty::before {
  content: "";
  display: block;
  width: 24px;
  height: 24px;
  margin: 14px auto;
  border-radius: 6px;
  background: var(--line);
}
.cart-line-info {
  min-width: 0;
  display: grid;
  gap: 4px;
}
.cart-line-info strong {
  overflow: hidden;
  text-overflow: ellipsis;
}
.cart-line-info small { color: var(--muted); }
.cart-line input { width: 72px; }
.cart-summary {
  display: grid;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.cart-summary .primary {
  width: 100%;
  min-height: 48px;
  position: relative;
  z-index: 2;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.cart-summary .primary * {
  pointer-events: none;
}
.checkout { display: grid; gap: 10px; }
.parcel-combobox {
  position: relative;
}
.parcel-machine-list {
  position: absolute;
  inset: calc(100% + 6px) 0 auto 0;
  z-index: 50;
  max-height: min(280px, 44vh);
  overflow: auto;
  display: grid;
  gap: 4px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.parcel-machine-option {
  display: grid;
  gap: 3px;
  padding: 9px 10px;
  border-radius: 6px;
  color: var(--ink);
  outline: none;
  cursor: pointer;
}
.parcel-machine-option:hover,
.parcel-machine-option:focus {
  background: var(--surface-2);
}
.parcel-machine-option strong {
  font-size: 14px;
  line-height: 1.25;
}
.parcel-machine-option small,
.parcel-machine-status {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}
.parcel-machine-status {
  padding: 9px 10px;
}
.parcel-machine-status.selected {
  color: var(--accent);
  font-weight: 850;
}
.readonly-field {
  display: grid;
  gap: 4px;
  padding: 10px 11px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
}
.readonly-field span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}
.readonly-field strong {
  color: var(--ink);
  font-size: 14px;
}

.toast {
  position: fixed;
  left: 50%;
  top: 18px;
  z-index: 120;
  max-width: min(560px, calc(100vw - 24px));
  padding: 15px 18px;
  border-radius: var(--radius);
  border: 1px solid rgba(23, 32, 35, 0.16);
  background: rgba(255, 255, 255, 0.96);
  color: #172023;
  font-weight: 800;
  line-height: 1.45;
  box-shadow: 0 18px 42px rgba(23, 32, 35, 0.24);
  backdrop-filter: blur(14px);
  opacity: 0;
  transform: translate(-50%, -12px);
  transition: all 160ms ease;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 920px) {
  .shop-head, .catalog-layout, .admin-layout, .admin-shell, .admin-grid-two, .account-grid, .contact-grid, .payment-layout { grid-template-columns: 1fr; }
  .admin-sidebar {
    position: static;
  }
  .admin-dashboard {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .admin-section-title {
    grid-template-columns: 1fr;
    align-items: start;
  }
  .admin-language-grid {
    grid-template-columns: 1fr;
  }
  .site-footer { grid-template-columns: 1fr; }
  .footer-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trust-strip, .product-detail { grid-template-columns: 1fr 1fr; }
  .filters { position: static; }
  .legal-site-header {
    align-items: flex-start;
    flex-direction: column;
  }
  .legal-site-nav {
    justify-content: flex-start;
  }
}

@media (max-width: 1024px) {
  body.mobile-panel-open {
    overflow: hidden;
  }

  .mobile-scrim:not([hidden]) {
    position: fixed;
    inset: 0;
    z-index: 70;
    display: block;
    background: rgba(10, 16, 18, 0.4);
    backdrop-filter: blur(3px);
  }

  .mobile-catalog-tools {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 8px;
    width: 100%;
  }

  .mobile-tool-button {
    display: grid;
    gap: 3px;
    min-height: 56px;
    padding: 9px 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--ink);
    text-align: left;
  }

  .mobile-tool-button span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
  }

  .mobile-tool-button b {
    overflow: hidden;
    color: var(--ink);
    font-size: 15px;
    line-height: 1.15;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-tool-button b.active {
    color: var(--accent);
  }

  .catalog-layout {
    display: block;
    padding: 14px clamp(12px, 3vw, 24px) 42px;
  }

  .filters {
    position: fixed;
    top: 78px;
    left: 14px;
    bottom: 14px;
    z-index: 82;
    display: grid;
    align-content: start;
    gap: 10px;
    width: min(430px, calc(100dvw - 28px));
    max-height: calc(100dvh - 92px);
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--surface);
    box-shadow: 0 20px 50px rgba(10, 16, 18, 0.26);
    overflow-y: auto;
    transform: translateX(calc(-100% - 24px));
    transition: transform 180ms ease, opacity 180ms ease;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }

  body.mobile-filters-open .filters {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .mobile-sheet-head {
    position: sticky;
    top: -12px;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: -12px -12px 0;
    padding: 12px;
    border-bottom: 1px solid var(--line);
    background: var(--surface);
  }

  .filters[data-mobile-panel="categories"] [data-mobile-panel="filters"],
  .filters[data-mobile-panel="filters"] [data-mobile-panel="categories"],
  .filters [data-mobile-panel="service"] {
    display: none;
  }

  .mobile-results-button {
    position: sticky;
    bottom: 0;
    z-index: 3;
    display: inline-flex;
    width: 100%;
    justify-content: center;
    margin-top: 2px;
    box-shadow: 0 -10px 20px color-mix(in srgb, var(--surface) 72%, transparent);
  }

  .category-button {
    min-height: 44px;
  }

  .category-toggle {
    min-height: 44px;
  }

  .subcategory-button,
  .subcategory-button.level-2 {
    margin-left: 0;
  }

  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  }
}

@media (max-width: 680px) {
  body.mobile-panel-open { overflow: hidden; }

  body.mobile-nav-open .topbar {
    z-index: 95;
  }

  .topbar {
    position: fixed;
    left: 0;
    right: 0;
    width: 100dvw;
    display: grid;
    grid-template-columns: minmax(92px, 1fr) auto;
    gap: 6px;
    min-height: 64px;
    padding: 8px 12px;
  }

  main {
    padding-top: 64px;
  }

  .brand { grid-column: 1; grid-row: 1; min-width: 0; }
  .fixlab-wordmark { min-height: 34px; padding: 0 9px; font-size: 16px; }

  .mobile-menu-toggle {
    position: static;
    display: inline-flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 0;
    border-color: transparent;
    border-radius: 999px;
    background: transparent;
    color: var(--ink);
    font-weight: 900;
    z-index: 91;
  }

  .mobile-menu-toggle:hover {
    background: var(--surface-2);
  }

  body.mobile-nav-open .mobile-menu-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  body.mobile-nav-open .mobile-menu-toggle span:nth-child(2) {
    opacity: 0;
  }

  body.mobile-nav-open .mobile-menu-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  body.mobile-nav-open .mobile-menu-toggle {
    opacity: 0;
    pointer-events: none;
  }

  .toolbar {
    grid-column: 2;
    grid-row: 1;
    display: grid;
    grid-template-columns: 40px 40px 56px 40px 38px;
    gap: 4px;
    width: auto;
    justify-content: end;
    align-items: center;
    min-width: 0;
  }

  .theme-toggle,
  .music-toggle,
  .icon-button {
    min-width: 40px;
    min-height: 40px;
  }

  .language-trigger {
    width: 100%;
    min-width: 0;
    min-height: 40px;
    padding: 0 8px;
  }

  .cart-button {
    position: relative;
    min-width: 40px;
    min-height: 40px;
    justify-content: center;
    padding: 0;
    overflow: visible;
  }

  .cart-button-label { display: none; }

  .cart-button-icon {
    display: block;
    font-size: 21px;
    transform: translateY(1px);
  }

  .cart-button b {
    position: absolute;
    top: -7px;
    right: -7px;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    border: 2px solid var(--surface);
    font-size: 11px;
    line-height: 1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
  }

  .music-panel {
    position: fixed;
    top: 58px;
    left: 12px;
    right: 12px;
    width: auto;
  }

  .account-menu-wrap {
    display: none;
  }

  .mobile-scrim:not([hidden]) {
    position: fixed;
    inset: 0;
    z-index: 70;
    display: block;
    background: rgba(10, 16, 18, 0.4);
    backdrop-filter: blur(3px);
  }

  .nav {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: grid;
    align-content: start;
    gap: 9px;
    width: 100dvw;
    max-height: none;
    height: 100dvh;
    padding: max(12px, env(safe-area-inset-top)) 14px max(16px, env(safe-area-inset-bottom));
    border: 0;
    border-radius: 0;
    background: var(--mobile-menu-bg);
    backdrop-filter: blur(18px) saturate(1.08);
    box-shadow: none;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px) scale(0.985);
    transition: opacity 160ms ease, transform 160ms ease;
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  body.mobile-nav-open .nav {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
  }

  .mobile-nav-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 46px;
    padding: 8px 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
  }

  .mobile-nav-head strong {
    font-size: 16px;
    font-weight: 800;
  }

  .mobile-nav-account {
    display: grid;
    gap: 8px;
    margin-top: 8px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
  }

  .mobile-account-main {
    min-height: 48px;
    border: 1px solid var(--accent);
    border-radius: var(--radius);
    background: var(--accent);
    color: #fff;
    padding: 0 12px;
    font-weight: 750;
    text-align: left;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-account-actions {
    display: grid;
    gap: 7px;
  }

  .mobile-account-actions button {
    min-height: 44px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface-2);
    color: var(--ink);
    padding: 0 12px;
    font-weight: 700;
    text-align: left;
  }

  .nav a {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 0 12px;
    border-radius: var(--radius);
    background: var(--surface-2);
    color: var(--ink);
    font-size: 16px;
  }

  .shop-head {
    gap: 10px;
    padding: 12px 10px;
  }

  .catalog-hero-media { display: none; }

  .searchbar {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .catalog-controls {
    grid-template-columns: minmax(0, 1fr) 76px;
  }

  input,
  textarea,
  select {
    min-height: 46px;
    font-size: 16px;
  }

  .trust-strip {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    padding-bottom: 2px;
  }

  .trust-strip::-webkit-scrollbar { display: none; }

  .trust-strip > div {
    flex: 0 0 184px;
    min-height: 54px;
    padding: 9px 10px;
  }

  .mobile-catalog-tools {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    width: 100%;
  }

  .mobile-tool-button {
    display: grid;
    gap: 3px;
    min-height: 56px;
    padding: 9px 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--ink);
    text-align: left;
  }

  .mobile-tool-button span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
  }

  .mobile-tool-button b {
    overflow: hidden;
    color: var(--ink);
    font-size: 15px;
    line-height: 1.15;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-tool-button b.active {
    color: var(--accent);
  }

  .active-filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    padding-bottom: 2px;
  }

  .active-filters::-webkit-scrollbar { display: none; }
  .filter-chip { flex: 0 0 auto; min-height: 38px; }

  .catalog-layout {
    display: block;
    padding: 10px 6px 76px;
  }

  .filters {
    position: fixed;
    top: auto;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 82;
    display: grid;
    gap: 10px;
    width: auto;
    max-height: min(78dvh, 640px);
    padding: 12px;
    border: 1px solid var(--line);
    border-bottom: 0;
    border-radius: 18px 18px 0 0;
    background: var(--surface);
    box-shadow: 0 -18px 42px rgba(10, 16, 18, 0.2);
    overflow-y: auto;
    transform: translateY(105%);
    transition: transform 180ms ease, opacity 180ms ease;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }

  body.mobile-filters-open .filters {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .mobile-sheet-head {
    position: sticky;
    top: -12px;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: -12px -12px 0;
    padding: 12px;
    border-bottom: 1px solid var(--line);
    background: var(--surface);
  }

  .filters[data-mobile-panel="categories"] [data-mobile-panel="filters"],
  .filters[data-mobile-panel="filters"] [data-mobile-panel="categories"],
  .filters [data-mobile-panel="service"] {
    display: none;
  }

  .price-range-filter {
    grid-template-columns: 1fr;
  }

  .filter-block,
  .service-card,
  .panel,
  .empty,
  .order-card {
    padding: 14px;
  }

  .admin-band {
    padding-inline: 8px;
  }

  .admin-sidebar {
    padding: 10px;
  }

  .admin-dashboard {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .admin-stat {
    min-height: 68px;
    padding: 10px;
  }

  .admin-stat strong {
    font-size: 15px;
  }

  .admin-fieldset {
    padding: 10px;
  }

  .form-actions.compact {
    justify-content: stretch;
  }

  .form-actions.compact button {
    width: 100%;
  }

  .admin-row {
    grid-template-columns: 1fr;
  }

  .admin-row > div:last-child {
    justify-content: stretch;
  }

  .admin-row > div:last-child button {
    flex: 1 1 120px;
  }

  .site-footer {
    gap: 18px;
    padding: 28px 14px;
  }

  .footer-columns {
    grid-template-columns: 1fr;
  }

  .cookie-notice {
    left: 10px;
    right: 10px;
    bottom: 10px;
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 12px;
  }

  .cookie-notice p {
    font-size: 13px;
  }

  .cookie-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }

  .cookie-actions button {
    min-height: 42px;
    padding-inline: 8px;
  }

  .category-tree { gap: 8px; }
  .category-button {
    min-height: 44px;
    padding: 10px 12px;
    font-size: 15px;
  }

  .category-toggle {
    min-height: 44px;
  }

  .subcategory-button {
    margin-left: 0;
  }

  .subcategory-button.level-2 {
    margin-left: 0;
  }

  .catalog-summary {
    margin: 2px 0 10px;
    font-size: 14px;
  }

  .product-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .product-card {
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 8px 10px;
    padding: 8px;
  }

  .product-art {
    grid-row: 1 / span 3;
    align-self: start;
    height: 112px;
    min-height: 112px;
  }

  .product-art::after { display: none; }

  .product-art img {
    height: 112px;
    padding: 10px;
  }

  .sku-line,
  .spec-list,
  .product-meta-grid {
    display: none;
  }

  .product-card h3 {
    font-size: 15.5px;
    line-height: 1.22;
    font-weight: 720;
  }

  .product-card p {
    min-height: 0;
    font-size: 13.5px;
    -webkit-line-clamp: 2;
  }

  .price-row {
    align-items: baseline;
  }

  .price { font-size: 18px; font-weight: 780; }

  .product-actions {
    grid-column: 1 / -1;
    grid-template-columns: 1fr 1fr;
  }

  .product-actions button {
    min-height: 44px;
    font-weight: 700;
  }

  .searchbar, .form-grid { grid-template-columns: 1fr; }
  .product-meta-grid.detail, .product-detail { grid-template-columns: 1fr; }
  dialog {
    width: calc(100dvw - 12px);
    max-width: calc(100dvw - 12px);
    max-height: calc(100dvh - 12px);
  }
  .dialog-card {
    max-height: calc(100dvh - 12px);
    overflow: auto;
    padding: 14px;
  }
  .product-dialog-card {
    padding: 10px;
  }
  .product-detail-art {
    min-height: 0;
    aspect-ratio: 1 / 1;
  }
  .product-detail-art img {
    height: 100%;
    max-height: none;
    padding: 8px;
  }
  .language-menu { right: auto; left: 0; transform-origin: top left; }
  .account-menu-popover { right: 0; width: min(190px, calc(100vw - 24px)); }
}

@media (max-width: 360px) {
  .topbar {
    grid-template-columns: minmax(78px, 1fr) auto;
    padding-inline: 10px;
  }

  .fixlab-wordmark {
    min-height: 32px;
    padding: 0 7px;
    font-size: 15px;
  }

  .toolbar {
    grid-template-columns: 36px 36px 50px 36px 36px;
    gap: 3px;
  }

  .theme-toggle,
  .music-toggle,
  .icon-button {
    min-width: 36px;
    min-height: 36px;
  }

  .language-trigger {
    min-height: 38px;
    padding: 0 7px;
  }

  .mobile-menu-toggle {
    width: 36px;
    height: 36px;
  }
}
