body.sas-spares-ready .absolute.bottom-3.left-3,
body.sas-spares-ready #sas-price-box,
body.sas-spares-ready .sas-slider-price,
body.sas-spares-ready section.relative > .flex.items-center.justify-end.gap-2 {
  display: none !important;
}

@media (min-width: 1024px) {
  body.sas-spares-ready .grid.min-h-0.flex-1 {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 300px !important;
  }
}

body.sas-spares-ready aside > *:not(#sas-detail-panel) {
  display: none !important;
}

body.sas-spares-ready section.relative > .relative.min-h-0.flex-1 {
  margin-bottom: 32px;
}

body.sas-catalog-open section.relative > .relative.min-h-0.flex-1 {
  margin-bottom: 128px;
}

.sas-spare-tree {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  display: flex;
  height: 32px;
  flex-direction: column;
  overflow: hidden;
  border-top: 1px solid rgba(245, 197, 24, 0.22);
  background: #14181e;
  font-family: system-ui, Segoe UI, sans-serif;
  color: #e8eaed;
  box-shadow: 0 -8px 18px rgba(0, 0, 0, 0.28);
}

body.sas-catalog-open .sas-spare-tree {
  height: 128px;
}

.sas-spare-tree header {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  flex: 0 0 32px;
  padding: 0 10px;
  border-bottom: 1px solid transparent;
  cursor: pointer;
  user-select: none;
}

body.sas-catalog-open .sas-spare-tree header {
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.sas-spare-tree header h2 {
  margin: 0;
  color: #c8ccd2;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.sas-spare-tree .sas-cat-chevron {
  color: #f5c518;
  font-size: 11px;
  line-height: 1;
}

.sas-spare-tree header button {
  margin-left: auto;
  height: 1.45rem;
  padding: 0 0.45rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 0.35rem;
  background: #222830;
  color: #d5d8de;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
}

.sas-spare-list {
  display: none;
  flex: 1;
  align-items: stretch;
  gap: 6px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 6px 8px 8px;
  scrollbar-color: #3a4452 transparent;
}

body.sas-catalog-open .sas-spare-list {
  display: flex;
}

.sas-spare-item {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 6px;
  height: 100%;
  max-height: 88px;
  margin: 0;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  background: #1a2028;
  color: #d5d8de;
  font-size: 11px;
  font-weight: 650;
  text-align: left;
  white-space: nowrap;
  cursor: pointer;
}

.sas-spare-item:hover {
  background: #222a34;
  border-color: rgba(245, 197, 24, 0.4);
  color: #fff;
}

.sas-spare-item.active {
  background: rgba(245, 197, 24, 0.16);
  border-color: rgba(245, 197, 24, 0.55);
  color: #f5c518;
}

.sas-spare-item.unit {
  font-weight: 800;
  color: #f4f4f5;
}

.sas-spare-item.group {
  color: #c8ccd2;
}

.sas-spare-item.leaf {
  font-size: 11px;
  font-weight: 600;
  color: #b7bcc4;
}

.sas-spare-item .tw {
  width: 10px;
  flex: 0 0 10px;
  color: #8b929b;
  font-size: 9px;
}

.sas-spare-empty {
  display: flex;
  align-items: center;
  padding: 0 8px;
  color: #8b929b;
  font-size: 12px;
  line-height: 1.4;
  white-space: nowrap;
}

.sas-detail-panel {
  display: flex;
  height: 100%;
  min-height: 0;
  flex-direction: column;
  padding: 14px 16px 16px;
  background: #14181e;
  color: #e8eaed;
  font-family: system-ui, Segoe UI, sans-serif;
}

.sas-detail-panel .k {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #9aa1aa;
}

.sas-detail-panel .n {
  margin: 0.35rem 0 1rem;
  font-size: 1.05rem;
  font-weight: 750;
  line-height: 1.3;
  color: #f4f4f5;
}

.sas-detail-panel .meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 0.85rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 12px;
}

.sas-detail-panel .meta span:first-child { color: #8b929b; }
.sas-detail-panel .sku { font-family: ui-monospace, Consolas, monospace; color: #d5d8de; }
.sas-detail-panel .p {
  margin-top: 0.25rem;
  font-size: 1.55rem;
  font-weight: 800;
  color: #f5c518;
  letter-spacing: -0.02em;
}

.sas-detail-panel .size { margin-top: 1rem; }
.sas-detail-panel .size input { width: 100%; margin-top: 0.35rem; }

.sas-detail-panel .order {
  display: flex;
  width: 100%;
  height: 2.35rem;
  margin-top: auto;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 0.45rem;
  background: #f5c518;
  color: #111318;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}
