:root {
  --bg: #070a11;
  --bg-elevated: #0d1320;
  --surface: rgba(12, 18, 31, 0.72);
  --surface-strong: rgba(14, 22, 36, 0.88);
  --surface-line: rgba(146, 171, 214, 0.24);
  --surface-line-strong: rgba(160, 190, 238, 0.36);
  --text: #eef4ff;
  --muted: #b2c0d8;
  --accent: #8bb8ff;
  --accent-strong: #c8dcff;
  --ok: #6ddfa4;
  --ok-bg: rgba(39, 112, 74, 0.42);
  --ok-line: rgba(117, 225, 169, 0.42);
  --tag-bg: rgba(152, 176, 217, 0.14);
  --tag-line: rgba(160, 188, 236, 0.33);
  --field-bg: rgba(9, 14, 23, 0.72);
  --shadow-card: 0 18px 44px rgba(3, 8, 18, 0.5);
  --shadow-glow: 0 0 0 1px rgba(164, 196, 247, 0.18), 0 20px 42px rgba(20, 44, 87, 0.34);
  --catalog-image-size: 96px;
  --product-media-aspect-ratio: 1 / 1;
  --product-media-fit: cover;
  --product-media-position: center center;
  --product-media-inner-padding: 0px;
  --product-thumb-size: 72px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  position: relative;
  overflow-x: hidden;
  color: var(--text);
  background: var(--bg);
  font-family: "Manrope", "Avenir Next", "Segoe UI", sans-serif;
}

body.catalog-sidebar-opened {
  overflow: hidden;
}

.page-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(1200px 680px at 16% -8%, rgba(111, 159, 238, 0.2), transparent 56%),
    radial-gradient(900px 520px at 92% 6%, rgba(87, 128, 201, 0.17), transparent 55%),
    linear-gradient(180deg, #060911 0%, #080d16 42%, #070a11 100%);
}

.page-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(900px 400px at 50% 100%, rgba(126, 172, 246, 0.09), transparent 72%);
  pointer-events: none;
}

.site-header {
  width: min(1500px, calc(100% - 24px));
  margin: 24px auto 0;
  min-height: 62px;
  border: 1px solid var(--surface-line);
  background: var(--surface);
  backdrop-filter: blur(16px);
  border-radius: 18px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 12px 18px;
}

.brand-chip {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  font-family: "Sora", "Manrope", sans-serif;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 13px;
  color: var(--accent-strong);
}

.brand-chip:hover {
  color: #f5f9ff;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 16px;
  justify-self: center;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  transition: color 180ms ease;
}

.cart-count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(123, 163, 231, 0.3);
  border: 1px solid rgba(160, 196, 248, 0.52);
  color: #f2f7ff;
  font-size: 11px;
  font-weight: 700;
}

.cart-count-badge.is-empty {
  opacity: 0.68;
}

.header-cart-icon {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  border: 1px solid rgba(154, 190, 245, 0.46);
  background: rgba(23, 36, 57, 0.78);
  color: #e7f2ff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  justify-self: end;
  transition: border-color 180ms ease, background-color 180ms ease;
}

.header-cart-icon svg {
  width: 19px;
  height: 19px;
}

.header-cart-icon:hover {
  border-color: rgba(170, 206, 255, 0.72);
  background: rgba(38, 55, 85, 0.86);
}

.header-cart-icon .cart-count-badge {
  position: absolute;
  right: -6px;
  top: -6px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  font-size: 10px;
}

.site-nav a[aria-current="page"],
.site-nav a:hover {
  color: #f5f9ff;
}

.site-nav a.is-external::after {
  content: "↗";
  font-size: 11px;
  margin-left: 5px;
  opacity: 0.8;
}

.catalog-app {
  width: min(1500px, calc(100% - 24px));
  margin: 22px auto 0;
  padding: 0 0 36px;
}

.catalog-head {
  margin-bottom: 10px;
}

.catalog-kicker {
  margin: 0 0 10px;
  font-family: "Sora", "Manrope", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 12px;
  color: rgba(171, 197, 239, 0.92);
}

.catalog-head h1 {
  margin: 0;
  font-family: "Sora", "Manrope", sans-serif;
  font-size: clamp(28px, 3.6vw, 42px);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.catalog-subtitle {
  margin: 14px 0 0;
  max-width: 74ch;
  font-size: clamp(14px, 1.5vw, 18px);
  line-height: 1.5;
  color: var(--muted);
}

.catalog-sections {
  margin-bottom: 14px;
}

.sections-list {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 0 5px;
  scrollbar-width: thin;
  scrollbar-color: rgba(135, 164, 211, 0.5) transparent;
}

.sections-list::-webkit-scrollbar {
  height: 5px;
}

.sections-list::-webkit-scrollbar-thumb {
  background: rgba(135, 164, 211, 0.48);
  border-radius: 999px;
}

.section-pill {
  flex: 0 0 auto;
  border: 1px solid var(--surface-line);
  border-radius: 999px;
  background: rgba(22, 32, 52, 0.62);
  color: #c9d8ee;
  height: 36px;
  padding: 0 14px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: border-color 180ms ease, background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.section-pill:hover {
  border-color: var(--surface-line-strong);
  background: rgba(31, 44, 69, 0.76);
  transform: translateY(-1px);
}

.section-pill.is-active {
  border-color: rgba(160, 196, 248, 0.68);
  background: rgba(123, 163, 231, 0.25);
  color: #f0f6ff;
  box-shadow: 0 0 0 1px rgba(166, 196, 242, 0.3);
}

.catalog-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
  margin-bottom: 8px;
}

.catalog-filters-panel {
  border: 1px solid var(--surface-line);
  border-radius: 14px;
  background: rgba(12, 19, 33, 0.78);
  box-shadow: var(--shadow-card);
  padding: 10px;
  margin-bottom: 12px;
}

.catalog-filters-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  align-items: end;
}

.catalog-reset-btn {
  height: 46px;
  border-radius: 12px;
  border: 1px solid rgba(154, 190, 245, 0.48);
  background: rgba(23, 35, 56, 0.78);
  color: #e8f2ff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
}

.catalog-reset-btn:hover {
  border-color: rgba(171, 203, 247, 0.72);
  background: rgba(33, 48, 75, 0.84);
}

.control-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.control-field span {
  font-size: 12px;
  color: rgba(176, 194, 220, 0.9);
  letter-spacing: 0.02em;
}

.control-field input,
.control-field select {
  width: 100%;
  height: 46px;
  border: 1px solid var(--surface-line);
  border-radius: 14px;
  padding: 0 14px;
  font-size: 14px;
  background: var(--field-bg);
  color: var(--text);
  backdrop-filter: blur(8px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

.control-field input::placeholder {
  color: rgba(172, 190, 216, 0.68);
}

.control-field select {
  appearance: none;
  padding-right: 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath d='M2.5 5 7 9.5 11.5 5' stroke='%23AFC2DF' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}

.control-field input:focus,
.control-field select:focus {
  outline: none;
  border-color: var(--surface-line-strong);
  box-shadow: 0 0 0 2px rgba(143, 183, 255, 0.25);
}

.catalog-meta {
  margin-bottom: 14px;
}

#catalogSummary {
  margin: 0;
  color: rgba(180, 196, 220, 0.86);
  font-size: 13px;
}

.catalog-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.catalog-card {
  border: 1px solid var(--surface-line);
  background: linear-gradient(165deg, rgba(18, 27, 45, 0.82) 0%, rgba(12, 19, 33, 0.82) 100%);
  border-radius: 14px;
  padding: 10px;
  display: grid;
  gap: 8px;
  box-shadow: var(--shadow-card);
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease, background 220ms ease;
}

.catalog-card:hover {
  transform: translateY(-3px);
  border-color: var(--surface-line-strong);
  box-shadow: var(--shadow-glow);
  background: linear-gradient(165deg, rgba(20, 30, 50, 0.86) 0%, rgba(13, 21, 36, 0.86) 100%);
}

.catalog-card:active {
  transform: translateY(-1px);
}

.catalog-card:focus-visible {
  outline: 2px solid rgba(157, 194, 255, 0.85);
  outline-offset: 2px;
}

.catalog-card > div {
  min-width: 0;
}

.catalog-card-link > div {
  min-width: 0;
}

.catalog-card-link {
  display: grid;
  grid-template-columns: var(--catalog-image-size) minmax(0, 1fr);
  gap: 10px;
  min-width: 0;
  text-decoration: none;
  color: inherit;
}

.catalog-card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.catalog-cart-btn {
  height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(154, 190, 245, 0.56);
  background: rgba(123, 163, 231, 0.22);
  color: #ebf4ff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  padding: 0 12px;
}

.catalog-cart-btn:hover {
  background: rgba(130, 171, 238, 0.3);
}

.catalog-cart-hint {
  font-size: 12px;
  color: rgba(184, 203, 230, 0.94);
  white-space: nowrap;
}

.catalog-cart-hint b {
  color: #edf5ff;
}

.catalog-image,
.product-page-main-image,
.product-page-fallback-image {
  border-radius: 13px;
  border: 1px solid rgba(166, 192, 231, 0.3);
  background: linear-gradient(165deg, rgba(28, 41, 66, 0.7) 0%, rgba(16, 24, 39, 0.78) 100%);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9fb5d8;
  font-weight: 700;
}

.catalog-image {
  width: var(--catalog-image-size);
  height: var(--catalog-image-size);
  object-fit: var(--product-media-fit);
  object-position: var(--product-media-position);
  padding: var(--product-media-inner-padding);
}

.catalog-card,
.catalog-card:visited {
  text-decoration: none;
  color: inherit;
}

.catalog-card h3 {
  margin: 0 0 4px;
  font-size: 17px;
  line-height: 1.22;
  letter-spacing: -0.01em;
  font-weight: 600;
  color: #f3f8ff;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.catalog-brand {
  margin: 0 0 7px;
  font-size: 12px;
  color: rgba(174, 192, 216, 0.88);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.catalog-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 11px;
  border: 1px solid var(--tag-line);
  background: var(--tag-bg);
  color: #cad8ee;
  backdrop-filter: blur(6px);
}

.chip.stock {
  background: var(--ok-bg);
  border-color: var(--ok-line);
  color: var(--ok);
}

.chip.stock-out {
  background: rgba(84, 49, 53, 0.36);
  border-color: rgba(200, 144, 150, 0.44);
  color: #ffced4;
}

.catalog-price {
  font-size: 19px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #d9e8ff;
}

.catalog-pagination {
  margin-top: 16px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.catalog-pagination button {
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--surface-line);
  background: rgba(123, 162, 224, 0.14);
  color: #e6f0ff;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.catalog-pagination button:hover:not(:disabled) {
  transform: translateY(-1px);
  border-color: var(--surface-line-strong);
  background: rgba(129, 170, 236, 0.2);
}

.catalog-pagination button:disabled {
  opacity: 0.48;
  cursor: not-allowed;
}

.catalog-state {
  border: 1px dashed rgba(154, 181, 224, 0.36);
  border-radius: 14px;
  background: rgba(14, 22, 36, 0.74);
  padding: 20px 14px;
  text-align: center;
  color: rgba(177, 194, 218, 0.9);
  font-size: 14px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  font-size: 13px;
}

.breadcrumbs a {
  color: rgba(183, 206, 242, 0.94);
  text-decoration: none;
  transition: color 160ms ease;
}

.breadcrumbs a:hover {
  color: #f0f6ff;
}

.breadcrumbs span {
  color: rgba(177, 194, 218, 0.9);
}

.breadcrumbs .sep {
  color: rgba(141, 164, 199, 0.68);
}

.product-page-shell {
  border: 1px solid var(--surface-line);
  border-radius: 18px;
  background: rgba(12, 19, 33, 0.8);
  box-shadow: var(--shadow-card);
  padding: 16px;
}

.product-page-grid {
  display: grid;
  grid-template-columns: minmax(320px, 1.15fr) minmax(320px, 1fr);
  gap: 20px;
}

.product-page-media {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.product-page-main-image,
.product-page-fallback-image {
  width: 100%;
  aspect-ratio: var(--product-media-aspect-ratio);
}

.product-page-main-image {
  display: block;
  width: 100%;
  object-fit: var(--product-media-fit);
  object-position: var(--product-media-position);
  box-sizing: border-box;
  padding: var(--product-media-inner-padding);
  background:
    radial-gradient(circle at 50% 30%, rgba(255, 255, 255, 0.07) 0%, rgba(16, 24, 39, 0) 66%),
    linear-gradient(165deg, rgba(28, 41, 66, 0.72) 0%, rgba(16, 24, 39, 0.8) 100%);
}

.product-page-fallback-image {
  font-family: "Sora", "Manrope", sans-serif;
  font-size: 60px;
  letter-spacing: 0.02em;
}

.product-page-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.product-page-thumb {
  width: var(--product-thumb-size);
  height: var(--product-thumb-size);
  border-radius: 10px;
  border: 1px solid rgba(150, 180, 224, 0.32);
  background: rgba(17, 26, 43, 0.72);
  object-fit: var(--product-media-fit);
  object-position: var(--product-media-position);
  box-sizing: border-box;
  padding: var(--product-media-inner-padding);
  cursor: pointer;
  transition: border-color 150ms ease, transform 150ms ease;
}

.product-page-thumb:hover,
.product-page-thumb.is-active {
  border-color: rgba(171, 203, 247, 0.72);
  transform: translateY(-1px);
}

.product-page-image-note {
  display: none;
}

.product-page-summary {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.product-page-title {
  margin: 0;
  font-family: "Sora", "Manrope", sans-serif;
  font-size: clamp(28px, 2.3vw, 38px);
  line-height: 1.14;
  letter-spacing: -0.02em;
}

.product-page-meta {
  margin: 0;
  font-size: 14px;
  color: rgba(176, 194, 220, 0.9);
}

.product-page-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(150, 180, 224, 0.3);
  border-radius: 12px;
  background: rgba(17, 27, 45, 0.7);
}

.product-page-price {
  font-size: clamp(24px, 2.1vw, 34px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #e1edff;
}

.product-page-stock {
  font-size: 13px;
  color: #93e0b4;
  background: rgba(39, 112, 74, 0.34);
  border: 1px solid rgba(117, 225, 169, 0.36);
  border-radius: 999px;
  padding: 5px 10px;
  white-space: nowrap;
}

.product-page-specs {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.product-page-spec {
  border: 1px solid rgba(150, 180, 224, 0.26);
  border-radius: 12px;
  background: rgba(15, 24, 39, 0.72);
  padding: 9px 10px;
}

.product-page-spec-label {
  display: block;
  font-size: 12px;
  color: rgba(171, 190, 216, 0.84);
  margin-bottom: 4px;
}

.product-page-spec-value {
  display: block;
  font-size: 14px;
  color: #e8f1ff;
}

.product-page-description {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(146, 171, 214, 0.24);
}

.product-page-description h2 {
  margin: 0 0 8px;
  font-size: 16px;
  color: #e8f1ff;
}

.product-page-description p {
  margin: 0;
  white-space: pre-wrap;
  line-height: 1.55;
  color: rgba(213, 225, 243, 0.95);
  font-size: 15px;
}

.product-page-back-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 6px;
  color: rgba(193, 214, 245, 0.95);
  text-decoration: none;
  font-size: 14px;
}

.product-page-back-link:hover {
  color: #f0f6ff;
}

.product-page-cart-block {
  border: 1px solid rgba(150, 180, 224, 0.3);
  border-radius: 12px;
  background: rgba(15, 24, 39, 0.72);
  padding: 10px 12px;
}

.product-page-cart-controls {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
}

.product-page-qty-control {
  display: inline-grid;
  grid-template-columns: 36px 56px 36px;
  border: 1px solid rgba(146, 171, 214, 0.42);
  border-radius: 10px;
  overflow: hidden;
}

.product-page-qty-control button,
.product-page-qty-control input {
  border: none;
  margin: 0;
  height: 38px;
  background: rgba(11, 17, 29, 0.84);
  color: #eef4ff;
}

.product-page-qty-control button {
  cursor: pointer;
  font-size: 18px;
}

.product-page-qty-control input {
  text-align: center;
  font-size: 14px;
}

.product-page-add-cart-btn {
  height: 38px;
  border-radius: 10px;
  border: 1px solid rgba(154, 190, 245, 0.64);
  background: rgba(123, 163, 231, 0.24);
  color: #edf5ff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.product-page-add-cart-btn:hover:not(:disabled) {
  background: rgba(129, 170, 236, 0.32);
}

.product-page-add-cart-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.product-page-cart-meta {
  margin: 8px 0 0;
  font-size: 13px;
  color: rgba(177, 194, 218, 0.94);
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.product-page-cart-link {
  color: rgba(193, 214, 245, 0.95);
  text-decoration: none;
}

.product-page-cart-hint {
  display: none;
  margin: 6px 0 0;
  font-size: 12px;
  color: rgba(177, 194, 218, 0.9);
}

.product-page-cart-hint:not(:empty) {
  display: block;
}

.product-page-cart-hint.is-success {
  color: #9ce5b9;
}

.product-page-cart-hint.is-error {
  color: #ffb5b5;
}

.cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.9fr);
  gap: 14px;
}

.cart-items-list,
.cart-summary-card,
.cart-order-card {
  border: 1px solid var(--surface-line);
  border-radius: 14px;
  background: rgba(12, 19, 33, 0.8);
  box-shadow: var(--shadow-card);
}

.cart-items-list {
  padding: 12px;
  display: grid;
  gap: 10px;
  align-content: start;
}

.cart-sidebar {
  display: grid;
  gap: 10px;
  align-content: start;
  position: sticky;
  top: 14px;
}

.cart-summary-card,
.cart-order-card {
  padding: 14px;
}

.cart-summary-card h2,
.cart-order-card h2 {
  margin: 0 0 10px;
  font-size: 18px;
  font-family: "Sora", "Manrope", sans-serif;
}

.cart-summary-card p {
  margin: 6px 0;
  font-size: 14px;
  color: rgba(206, 222, 246, 0.95);
}

.cart-summary-total {
  margin-top: 10px !important;
  font-size: 16px !important;
}

.cart-item {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 10px;
  border: 1px solid rgba(146, 171, 214, 0.28);
  border-radius: 12px;
  background: rgba(14, 22, 36, 0.84);
  padding: 10px;
}

.cart-item-link {
  text-decoration: none;
  color: inherit;
}

.cart-item-image {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid rgba(166, 192, 231, 0.3);
}

.cart-item-image-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9fb5d8;
  background: linear-gradient(165deg, rgba(28, 41, 66, 0.7) 0%, rgba(16, 24, 39, 0.78) 100%);
}

.cart-item-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.cart-item-head h3 {
  margin: 0;
  font-size: 16px;
  line-height: 1.3;
}

.cart-item-meta {
  margin: 4px 0 0;
  font-size: 12px;
  color: rgba(177, 194, 218, 0.88);
}

.cart-item-remove-btn {
  border: 1px solid rgba(170, 122, 122, 0.4);
  border-radius: 9px;
  background: rgba(86, 32, 38, 0.38);
  color: #ffd8d8;
  cursor: pointer;
  height: 32px;
  padding: 0 10px;
  white-space: nowrap;
}

.cart-item-footer {
  margin-top: 8px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: center;
}

.cart-item-price {
  font-size: 14px;
  color: rgba(208, 223, 245, 0.95);
}

.cart-qty-control {
  display: inline-grid;
  grid-template-columns: 32px 52px 32px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(146, 171, 214, 0.42);
}

.cart-qty-control button,
.cart-qty-control input {
  border: none;
  height: 34px;
  margin: 0;
  background: rgba(10, 16, 27, 0.86);
  color: #eef4ff;
}

.cart-qty-control button {
  cursor: pointer;
  font-size: 16px;
}

.cart-qty-control input {
  text-align: center;
}

.cart-item-line-total {
  font-size: 15px;
  font-weight: 700;
  color: #e7f2ff;
}

.cart-order-form {
  display: grid;
  gap: 10px;
}

.cart-order-form label {
  display: grid;
  gap: 6px;
}

.cart-order-form label span {
  font-size: 12px;
  color: rgba(182, 200, 225, 0.95);
}

.cart-order-form input,
.cart-order-form textarea,
.cart-order-form button {
  border-radius: 10px;
  border: 1px solid var(--surface-line);
  font-size: 14px;
}

.cart-order-form input,
.cart-order-form textarea {
  background: rgba(9, 14, 23, 0.72);
  color: var(--text);
  padding: 10px 12px;
}

.cart-order-form button {
  height: 40px;
  border: 1px solid rgba(154, 190, 245, 0.64);
  background: rgba(123, 163, 231, 0.24);
  color: #edf5ff;
  cursor: pointer;
  font-weight: 700;
}

.cart-order-form button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.cart-order-feedback {
  min-height: 18px;
  margin: 8px 0 0;
  font-size: 13px;
  color: rgba(177, 194, 218, 0.9);
}

.cart-order-feedback.is-success {
  color: #9ce5b9;
}

.cart-order-feedback.is-error {
  color: #ffb5b5;
}

.cart-empty-state {
  border: 1px dashed rgba(146, 171, 214, 0.4);
  border-radius: 12px;
  background: rgba(14, 22, 36, 0.7);
  min-height: 220px;
  display: grid;
  place-items: center;
  justify-items: center;
  gap: 10px;
  text-align: center;
  padding: 22px 14px;
}

.cart-empty-icon {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  border: 1px solid rgba(154, 190, 245, 0.46);
  background: rgba(23, 36, 57, 0.78);
  color: #e7f2ff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cart-empty-icon svg {
  width: 20px;
  height: 20px;
}

.cart-empty-title {
  margin: 0;
  font-size: 15px;
  color: rgba(221, 233, 251, 0.97);
}

.cart-empty-action {
  text-decoration: none;
  border: 1px solid rgba(154, 190, 245, 0.64);
  background: rgba(123, 163, 231, 0.24);
  color: #edf5ff;
  border-radius: 10px;
  height: 36px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
}

.cart-empty-action:hover {
  background: rgba(129, 170, 236, 0.32);
}

.catalog-layout {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.catalog-sidebar {
  position: static;
  border: 1px solid rgba(114, 145, 197, 0.3);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(10, 15, 26, 0.95) 0%, rgba(8, 12, 21, 0.95) 100%);
  padding: 10px;
  min-height: 0;
}

.catalog-sidebar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.catalog-sidebar-head p {
  margin: 0;
  font-family: "Sora", "Manrope", sans-serif;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(187, 211, 246, 0.9);
}

.catalog-sidebar-close {
  display: none;
  border: 1px solid rgba(146, 174, 222, 0.4);
  background: rgba(16, 25, 41, 0.88);
  color: #d8e7ff;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.catalog-sidebar-tree {
  display: grid;
  gap: 6px;
}

.sidebar-all-btn,
.sidebar-node-link {
  width: 100%;
  min-height: 34px;
  border: 1px solid rgba(117, 146, 196, 0.26);
  border-radius: 10px;
  background: rgba(19, 29, 46, 0.76);
  color: #cfe0fa;
  font-size: 13px;
  line-height: 1.2;
  text-align: left;
  cursor: pointer;
  padding: 8px 10px;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.sidebar-all-btn:hover,
.sidebar-node-link:hover {
  border-color: rgba(154, 190, 245, 0.48);
  background: rgba(29, 43, 68, 0.82);
  color: #eff6ff;
}

.sidebar-all-btn.is-active,
.sidebar-node-link.is-active {
  border-color: rgba(164, 200, 249, 0.75);
  background: rgba(126, 166, 231, 0.28);
  color: #f3f8ff;
}

.sidebar-node-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 28px;
  gap: 6px;
}

.sidebar-node {
  min-width: 0;
}

.sidebar-node.depth-0 .sidebar-node-link {
  min-height: 34px;
  padding: 8px 10px;
  font-size: 13px;
  font-weight: 600;
}

.sidebar-node-toggle {
  border: 1px solid rgba(117, 146, 196, 0.28);
  border-radius: 9px;
  background: rgba(14, 22, 36, 0.74);
  color: #b8cef1;
  cursor: pointer;
  font-size: 13px;
  line-height: 1;
  transition: transform 150ms ease, background-color 150ms ease, border-color 150ms ease;
}

.sidebar-node-toggle:hover {
  border-color: rgba(160, 195, 247, 0.48);
  background: rgba(24, 37, 60, 0.84);
}

.sidebar-node-toggle.is-open {
  transform: rotate(90deg);
}

.sidebar-children {
  display: none;
  gap: 6px;
  margin-top: 6px;
}

.sidebar-children.is-open {
  display: grid;
}

.sidebar-node.depth-1 .sidebar-node-row { margin-left: 8px; }
.sidebar-node.depth-2 .sidebar-node-row { margin-left: 14px; }
.sidebar-node.depth-3 .sidebar-node-row { margin-left: 20px; }
.sidebar-node.depth-4 .sidebar-node-row { margin-left: 26px; }

.sidebar-node.depth-1 .sidebar-node-link,
.sidebar-node.depth-2 .sidebar-node-link,
.sidebar-node.depth-3 .sidebar-node-link,
.sidebar-node.depth-4 .sidebar-node-link {
  min-height: 30px;
  padding-top: 6px;
  padding-bottom: 6px;
  font-size: 12px;
  line-height: 1.15;
  background: rgba(15, 24, 39, 0.68);
  border-color: rgba(98, 124, 170, 0.24);
}

.sidebar-node.depth-1 .sidebar-node-link { padding-left: 12px; }
.sidebar-node.depth-2 .sidebar-node-link { padding-left: 14px; }
.sidebar-node.depth-3 .sidebar-node-link { padding-left: 16px; }
.sidebar-node.depth-4 .sidebar-node-link { padding-left: 18px; }

.sidebar-node.depth-1 .sidebar-node-link.is-active,
.sidebar-node.depth-2 .sidebar-node-link.is-active,
.sidebar-node.depth-3 .sidebar-node-link.is-active,
.sidebar-node.depth-4 .sidebar-node-link.is-active {
  border-color: rgba(152, 189, 242, 0.58);
  background: rgba(104, 140, 199, 0.22);
  color: #e9f3ff;
}

.sidebar-node.depth-1 .sidebar-node-toggle,
.sidebar-node.depth-2 .sidebar-node-toggle,
.sidebar-node.depth-3 .sidebar-node-toggle,
.sidebar-node.depth-4 .sidebar-node-toggle {
  background: rgba(12, 20, 33, 0.72);
  border-color: rgba(95, 122, 169, 0.25);
}

.catalog-content {
  min-width: 0;
}

.control-field.control-field-wide {
  width: 100%;
}

.catalog-sidebar-open {
  display: none;
  height: 46px;
  border: 1px solid rgba(139, 171, 221, 0.48);
  border-radius: 12px;
  background: rgba(20, 32, 51, 0.78);
  color: #d5e5fd;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0 14px;
  cursor: pointer;
}

.catalog-sidebar-backdrop {
  display: none;
}

.catalog-sidebar-backdrop.hidden {
  display: none;
}

@media (max-width: 980px) {
  .site-header,
  .catalog-app {
    width: calc(100% - 28px);
  }

  .site-header {
    margin-top: 16px;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
  }

  .brand-chip {
    grid-column: 1;
    grid-row: 1;
  }

  .header-cart-icon {
    grid-column: 2;
    grid-row: 1;
  }

  .site-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    gap: 8px;
    flex-wrap: wrap;
    justify-self: start;
  }

  .catalog-head h1 {
    font-size: clamp(28px, 7.2vw, 40px);
  }

  .catalog-layout {
    grid-template-columns: 1fr;
  }

  .catalog-sidebar {
    position: fixed;
    left: 10px;
    top: 10px;
    bottom: 10px;
    width: min(320px, calc(100vw - 20px));
    max-height: none;
    overflow-y: auto;
    z-index: 60;
    transform: translateX(-112%);
    transition: transform 220ms ease;
  }

  .catalog-sidebar.is-open {
    transform: translateX(0);
  }

  .catalog-sidebar-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .catalog-sidebar-open {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .catalog-sidebar-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 50;
    background: rgba(3, 6, 11, 0.66);
    backdrop-filter: blur(1px);
  }

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

  .catalog-filters-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .catalog-reset-btn {
    grid-column: 1 / -1;
  }

  .catalog-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .product-page-title {
    font-size: clamp(24px, 4.4vw, 32px);
  }

  .cart-layout {
    grid-template-columns: 1fr;
  }

  .cart-sidebar {
    position: static;
  }
}

@media (max-width: 640px) {
  .catalog-filters-grid {
    grid-template-columns: 1fr;
  }

  .catalog-reset-btn {
    grid-column: auto;
  }
}

@media (min-width: 780px) {
  .catalog-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1200px) {
  .catalog-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .catalog-app {
    margin-top: 22px;
    padding-bottom: 24px;
  }

  .catalog-head h1 {
    font-size: clamp(28px, 9.3vw, 36px);
  }

  .catalog-subtitle {
    font-size: 14px;
  }

  .catalog-card {
    padding: 10px;
  }

  .catalog-card-link {
    gap: 12px;
  }

  .catalog-list {
    grid-template-columns: 1fr;
  }

  .catalog-card h3 {
    font-size: 17px;
  }

  .catalog-price {
    font-size: 18px;
  }

  .catalog-pagination {
    grid-template-columns: 1fr;
  }

  .product-page-cart-controls {
    grid-template-columns: 1fr;
  }

  .product-page-qty-control {
    width: fit-content;
  }

  .product-page-shell {
    padding: 12px;
  }

  .product-page-specs {
    grid-template-columns: 1fr;
  }

  .cart-item {
    grid-template-columns: 1fr;
  }

  .cart-item-link,
  .cart-item-image {
    width: 100%;
    max-width: 124px;
  }

  .cart-item-footer {
    grid-template-columns: 1fr;
    align-items: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
