.catalog-page{
    max-width: 1200px;
    margin: 0 auto;
    padding: 26px 16px 60px;
  }

  .catalog-top{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 18px;
  }

  .catalog-title{
    margin: 0;
    font-size: 26px;
    color: #1A1A1A;
  }

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

  .sort-select{
    border: 1px solid #e6e6e6;
    border-radius: 12px;
    padding: 10px 12px;
    background: #fff;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    color: #1A1A1A;
  }

  .filters-open{
    display: none;
    border: 1px solid #e6e6e6;
    border-radius: 12px;
    padding: 10px 12px;
    background: #fff;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    cursor: pointer;
  }

  .catalog-layout{
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 18px;
  }

  .filters{
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    padding: 16px;

    position: sticky;
    top: 120px; /* під стрічку+шапку */
    height: fit-content;
  
    max-height: calc(100vh - 140px);
    overflow: auto;
}

  .filters-head{
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    margin-bottom: 12px;
  }

  .filters-title{
    font-weight: 700;
    color: #1A1A1A;
  }

  .filters-close{
    display: none;
    border: 0;
    background: transparent;
    font-size: 20px;
    cursor: pointer;
  }

  .filter-block{
    padding: 12px 0;
    border-bottom: 1px solid rgba(0,0,0,0.06);
  }

  .filter-block:last-child{
    border-bottom: 0;
  }

  .filter-label{
    font-weight: 700;
    margin-bottom: 10px;
    color: #1A1A1A;
  }

  .price-row{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .price-row label{
    display: grid;
    gap: 6px;
    font-size: 12px;
    color: #666;
  }

  .num{
    border: 1px solid #e6e6e6;
    border-radius: 12px;
    padding: 10px 12px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: #1A1A1A;
    width: 100%;
    box-sizing: border-box;
  }

  .range-wrap{
    margin-top: 12px;
    display: grid;
    gap: 8px;
  }

  .range-wrap input[type="range"]{
    width: 100%;
  }

  .brands{
    display: grid;
    gap: 10px;
    max-height: 220px;
    overflow: auto;
    padding-right: 6px;
  }

  .brand-item{
    display: flex;
    gap: 10px;
    align-items: center;
    font-weight: 600;
    color: #1A1A1A;
  }

  .check{
    display: flex;
    gap: 10px;
    align-items: center;
    font-weight: 700;
    color: #1A1A1A;
    padding: 8px 0;
    cursor: pointer;
  }

  .btn-reset{
    width: 100%;
    border: 0;
    border-radius: 14px;
    padding: 12px 14px;
    cursor: pointer;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    background: #fff1f5;
  }

  .products{
    min-width: 0;
  }

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

  .pcard{
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: transform .25s ease, box-shadow .25s ease;
  }

  .pcard:hover{
    transform: translateY(-4px);
    box-shadow: 0 16px 42px rgba(0,0,0,0.12);
  }

  .pimg{
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
  }

  .pbody{
    padding: 14px 14px 16px;
    display: grid;
    gap: 8px;
  }

  .ptitle{
    font-weight: 700;
    color: #1A1A1A;
    font-size: 14px;
    margin: 0;
    line-height: 1.35;
  }

  .pmeta{
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: center;
    font-size: 12px;
    color: #666;
    font-weight: 700;
  }

  .pprice{
    font-size: 18px;
    font-weight: 700;
    color: #1A1A1A;
  }

  .badges{
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
  }

  .badge{
    font-size: 11px;
    font-weight: 700;
    padding: 6px 10px;
    border-radius: 999px;
    background: #f7f7f7;
    color: #1A1A1A;
  }

  .badge.sale{ background: #ffe7ee; }
  .badge.out{ background: #f2f2f2; opacity: .75; }

  .empty{
    padding: 28px;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    font-weight: 700;
    color: #1A1A1A;
    text-align: center;
  }

  @media (max-width: 1024px){
    .products-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .catalog-layout{ grid-template-columns: 280px 1fr; }
  }

  @media (max-width: 768px){
    body.filters-opened{ overflow: hidden; }

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

    .filters{
      position: fixed;
      inset: 0;
      top: 0;
      border-radius: 0;
      transform: translateX(-100%);
      transition: transform .35s cubic-bezier(.4,0,.2,1);
      z-index: 7000;
      overflow: auto;
    }
    .filters.active{ transform: translateX(0); }

    .filters-close{ display: inline-block; }
    .filters-open{ display: inline-flex; gap: 8px; align-items: center; }

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

  @media (max-width: 420px){
    .products-grid{ grid-template-columns: 1fr; }
  }

  .home-catalog{
    max-width: 1200px;
    margin: 0 auto;
    padding: 26px 16px 10px;
  }

  .home-tabs{
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
  }

  .home-tab{
    border: 1px solid #e6e6e6;
    background: #fff;
    color: #1A1A1A;
    padding: 10px 14px;
    border-radius: 999px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    cursor: pointer;
    transition: transform .15s ease, background .2s ease, color .2s ease, border-color .2s ease;
  }

  .home-tab:hover{ transform: translateY(-1px); }

  .home-tab.active{
    background: #ff6a88;
    color: #fff;
    border-color: transparent;
  }

  .home-viewall{
    text-decoration: none;
    font-weight: 700;
    color: #1A1A1A;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid #e6e6e6;
    background: #fff;
  }

  .home-viewall:hover{
    background: #fff1f5;
  }

  .pcard{ position: relative; }
