﻿.memory-layout {
  max-width: 1240px;
  margin: 0 auto;
  padding: 22px 20px 30px;
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  gap: 18px;
}

.filter-sidebar {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: linear-gradient(170deg, rgba(255, 255, 255, 0.03), transparent), var(--surface);
  padding: 14px;
  position: sticky;
  top: 80px;
  max-height: calc(100vh - 100px);
  overflow: auto;
}

.filter-sidebar h2 {
  margin-top: 0;
  font-size: 1.05rem;
}

.filter-group {
  margin-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 10px;
}

.filter-group h3 {
  margin: 0 0 8px;
  font-size: 0.92rem;
}

.filter-group label {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.86rem;
}

.filter-group input[type='checkbox'],
.filter-group input[type='radio'] {
  margin-right: 6px;
}

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

.range-grid input,
.filter-group input[type='number'] {
  width: 100%;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  padding: 8px;
}

.filter-group input[type='range'] {
  width: 100%;
}

.range-value {
  margin-top: 6px;
  font-size: 0.84rem;
  color: var(--muted);
}

.filter-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.filter-actions button {
  border: 0;
  border-radius: 8px;
  padding: 10px 12px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.filter-actions a {
  color: #f0cfff;
  font-size: 0.88rem;
}

.memory-products .section-head {
  margin-top: 0;
}

.counter {
  color: var(--muted);
  font-size: 0.88rem;
}

.spec-line {
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.35;
}

@media (max-width: 980px) {
  .memory-layout {
    grid-template-columns: 1fr;
    padding: 18px 14px 24px;
  }

  .filter-sidebar {
    position: static;
    max-height: none;
  }
}
