
body {
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    background-color: #f9f9f9;
    color: #212A47;
  }
  
  .catalog-container {
    display: flex;
    max-width: 1300px;
    margin: 40px auto;
    padding: 0 20px;
    gap: 30px;
    flex-wrap: wrap;
  }
  
  .sidebar {
    flex: 1 1 250px;
    background: #212A47;
    color: white;
    border-radius: 16px;
    height: 560px;
    padding: 25px 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  }
  
  .sidebar h2 {
    font-size: 22px;
    margin-bottom: 20px;
  }
  
  .filter-block {
    margin-bottom: 25px;
  }
  
  .filter-block h3 {
    font-size: 16px;
    margin-bottom: 10px;
    color: #aad4ff;
  }
  
  .range-wrapper {
    font-size: 14px;
    color: #fff;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  
  .range-values {
    display: flex;
    justify-content: space-between;
  }
  
  .range-sliders {
    position: relative;
    height: 32px;
  }
  
  .range-sliders input[type="range"] {
    position: absolute;
    width: 100%;
    height: 6px;
    appearance: none;
    -webkit-appearance: none;
    background: transparent;
    pointer-events: none;
  }
  
  .range-sliders input[type="range"]::-webkit-slider-thumb {
    pointer-events: auto;
    -webkit-appearance: none;
    height: 16px;
    width: 16px;
    background: linear-gradient(135deg, #007bff, #0051d3);
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 0 4px rgba(0,0,0,0.3);
    cursor: pointer;
    margin-top: -5px;
  }
  
  .range-sliders input[type="range"]::-moz-range-thumb {
    height: 16px;
    width: 16px;
    background: linear-gradient(135deg, #007bff, #0051d3);
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 0 4px rgba(0,0,0,0.3);
    cursor: pointer;
  }
  
  
  /* СТИЛЬ КАСТОМНЫХ ЧЕКБОКСОВ И RADIO */
  .sidebar input[type="checkbox"],
  .sidebar input[type="radio"] {
    display: none;
  }
  
  .sidebar label {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #fff;
    margin-bottom: 10px;
    cursor: pointer;
  }
  
  .sidebar label span {
    position: relative;
    padding-left: 26px;
  }
  
  .sidebar label span::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    border: 2px solid #aad4ff;
    border-radius: 4px;
    background: transparent;
    transition: 0.3s;
  }
  
  .sidebar input[type="checkbox"]:checked + span::before {
    background: linear-gradient(135deg, #007bff, #0051d3);
    border: none;
  }
  
  .sidebar input[type="checkbox"]:checked + span::after {
    content: "";
    position: absolute;
    left: 5px;
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
  }
  
  .sidebar input[type="radio"] + span::before {
    border-radius: 50%;
  }
  
  .sidebar input[type="radio"]:checked + span::after {
    content: "";
    position: absolute;
    left: 5px;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: white;
    border-radius: 50%;
  }
  
  select {
    width: 100%;
    padding: 8px;
    border-radius: 8px;
    border: none;
  }
  
  .apply-btn {
    background: linear-gradient(135deg, #007bff, #0051d3);
    color: #fff;
    border: none;
    padding: 10px 18px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 10px;
  }
  
  .apply-btn:hover {
    background: linear-gradient(135deg, #0051d3, #003399);
    transform: translateY(-2px);
  }
  
  .products-section {
    flex: 1 1 900px;
  }
  
  .products-section h1 {
    font-size: 28px;
    margin-bottom: 30px;
  }
  
  .product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
  }
  
  .product-card {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 400px;
  }
  
  .product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
  }
  
  .product-card img {
    max-width: 100%;
    height: 160px;
    object-fit: contain;
    margin-bottom: 15px;
  }
  
  .product-card h3 {
    font-size: 18px;
    margin-bottom: 5px;
  }
  
  .product-card p {
    font-size: 14px;
    color: #555;
    margin-bottom: 10px;
  }
  
  .price {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #212A47;
  }
  
  .product-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
  }
  
  .btn-primary {
    background: linear-gradient(135deg, #007bff, #0051d3);
    color: white;
    padding: 10px 20px;
    border-radius: 30px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
  }
  
  .btn-primary:hover {
    background: linear-gradient(135deg, #0051d3, #003399);
    transform: translateY(-2px);
  }
  
  .btn-secondary {
    background-color: transparent;
    border: 2px solid #0051d3;
    color: #0051d3;
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
  }
  
  .btn-secondary:hover {
    background-color: #0051d3;
    color: white;
    transform: translateY(-2px);
  }
  
  @media (max-width: 1000px) {
    .catalog-container {
      flex-direction: column;
    }
  
    .sidebar, .products-section {
      width: 100%;
    }
  }
  .category-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 30px;
  }
  
  .category-btn {
    padding: 10px 18px;
    background-color: #212A47;
    color: white;
    border: none;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
  }
  
  .category-btn:hover {
    background-color: #0051d3;
  }
  
  .category-btn.active {
    background: linear-gradient(135deg, #007bff, #0051d3);
    box-shadow: 0 4px 12px rgba(0, 81, 211, 0.3);
  }
  .brand-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 30px;
  }
  
  .brand-btn {
    padding: 10px 20px;
    border-radius: 30px;
    background: #212A47;
    color: white;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
  }
  
  .brand-btn:hover {
    background: #0051d3;
  }
  
  .brand-btn.active {
    background: linear-gradient(135deg, #007bff, #0051d3);
    box-shadow: 0 4px 12px rgba(0, 81, 211, 0.3);
  }
  /* ===== Catalog layout ===== */
.catalog-container{background:#f7f8fd;padding:30px 0}
.products-section h1{margin:0 0 14px}
.toolbar{
  display:flex;align-items:flex-start;justify-content:space-between;gap:16px;
  background:#fff;border:1px solid #eef0fb;border-radius:16px;padding:12px 16px;margin:10px 0 18px;
  box-shadow:0 10px 24px rgba(0,0,0,.04)
}
.toolbar.sticky{position:sticky;top:70px;z-index:20}

/* chips */
.chip{
  border:1px solid #dfe6ff;background:#fff;color:#212A47;border-radius:999px;
  padding:8px 14px;margin:4px;cursor:pointer;font-weight:600;
  transition:.2s; display:inline-flex; align-items:center; gap:8px;
}
.chip:hover{background:#eef2ff}
.chip.active{background:#0051d3;color:#fff;border-color:#0051d3}

/* search & sort */
.toolbar-right{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.search{display:flex;align-items:center;border:1px solid #dfe6ff;border-radius:12px;overflow:hidden;background:#fff}
.search input{border:0;outline:0;padding:10px 12px;min-width:220px}
.search button{border:0;background:#0051d3;color:#fff;padding:10px 12px;cursor:pointer}
.sort{display:flex;align-items:center;gap:8px}
.sort select{border:1px solid #dfe6ff;border-radius:10px;padding:8px 10px;background:#fff}

/* grid */
.product-grid.pro{
  display:grid;gap:18px;
  grid-template-columns:repeat(4,1fr);
}
@media (max-width:1200px){.product-grid.pro{grid-template-columns:repeat(3,1fr)}}
@media (max-width:900px){.product-grid.pro{grid-template-columns:repeat(2,1fr)}}
@media (max-width:560px){.product-grid.pro{grid-template-columns:1fr}}

/* card */
.product-card.pro{
  background:#fff;border:1px solid #eef0fb;border-radius:18px;overflow:hidden;
  display:flex;flex-direction:column;box-shadow:0 10px 24px rgba(0,0,0,.05);transition:.25s;
}
.product-card.pro:hover{transform:translateY(-4px)}
.img-wrap{position:relative;background:#f2f4ff}
.img-wrap img{width:100%;height:220px;object-fit:contain;display:block}
.badge{
  position:absolute;top:12px;left:12px;font-size:12px;font-weight:800;padding:6px 10px;border-radius:999px;
  color:#fff;box-shadow:0 6px 16px rgba(0,0,0,.2)
}
.badge--sale{background:#e63946}
.badge--install{background:#1f9c5a}
.skeleton{animation:pulse 1.2s ease-in-out infinite}
@keyframes pulse{0%{opacity:0.6}50%{opacity:1}100%{opacity:0.6}}

.body{padding:14px 16px 16px;display:flex;flex-direction:column;flex:1}
.title{margin:0 0 8px;font-size:18px}
.meta{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 8px}
.pill{background:#eef2ff;color:#1f3ba7;border:1px solid #dfe6ff;border-radius:999px;padding:4px 8px;font-size:12px}
.desc{color:#4a4f66;margin:0 0 12px}
.line-clamp{
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden;
}

.price-row{display:flex;align-items:baseline;gap:10px;margin:6px 0 10px}
.price{font-size:20px;font-weight:800;color:#212A47}
.old{font-size:14px;color:#8a8fae;text-decoration:line-through}
.promo-note{font-size:13px;color:#1f3ba7;background:#eef2ff;border:1px dashed #cfd8ff;border-radius:10px;padding:8px 10px;margin:0 0 12px;display:flex;gap:8px;align-items:center}

.actions{margin-top:auto;display:flex;gap:10px}
.actions .btn-primary,.actions .btn-tertiary{flex:1;text-align:center}

/* empty state */
.empty{
  grid-column:1/-1;background:#fff;border:1px dashed #cfd8ff;border-radius:16px;padding:26px;text-align:center;color:#677;
}