.shop-archive__layout{
  display:grid !important;
  grid-template-columns:320px 1fr !important;
  gap:28px !important;
  align-items:start !important;
}

.shop-archive__sidebar{
  position: sticky;
  top: 110px;
  align-self: start;
}

@media (max-width: 900px){
  .shop-archive__layout{
    grid-template-columns:1fr !important;
  }
  .shop-archive__sidebar{
    position: static;
  }
}

.woocommerce-ordering{ display:none; }

/* ===== LAYOUT (sidebar + content) ===== */
.shop-archive__layout{
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 28px;
  align-items: start;
}

.shop-archive__sidebar{
  position: sticky;
  top: 110px; /* dopasuj do headera */
  align-self: start;
}

@media (max-width: 900px){
  .shop-archive__layout{ grid-template-columns: 1fr; }
  .shop-archive__sidebar{ position: static; }
}


/* ===== FILTERS UI ===== */
.shop-filters{
  background: #fff;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 10px 30px rgba(0,0,0,.04);
}

.shop-filters__section + .shop-filters__section{
  border-top: 1px solid rgba(0,0,0,.06);
  margin-top: 14px;
  padding-top: 14px;
}

.shop-filters__title{
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .2px;
  margin-bottom: 10px;
}

.shop-filters__body{
  display: grid;
  gap: 10px;
}

/* rows (radio/checkbox) */
.filter-row{
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(0,0,0,.02);
  cursor: pointer;
  user-select: none;
}

.filter-row:hover{
  background: rgba(0,0,0,.04);
}

.filter-row input{
  width: 16px;
  height: 16px;
  margin: 0;
}

.filter-row span{
  flex: 1;
  font-size: 14px;
}

.filter-count{
  font-style: normal;
  font-size: 12px;
  opacity: .6;
}

/* price inputs */
.price-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  min-width: 0;
}

.shop-filters *,
.shop-filters *::before,
.shop-filters *::after{
  box-sizing: border-box;
}

.shop-filters input[type="number"]{
  min-width: 0;
}

.shop-filters input[type="number"],
.shop-filters select{
  max-width: 100%;
  border: 1px solid rgba(0,0,0,.12);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 14px;
  outline: none;
  background: #fff;
}

.shop-filters input[type="number"]:focus,
.shop-filters select:focus{
  border-color: rgba(254, 210, 22, .9);
  box-shadow: 0 0 0 4px rgba(254, 210, 22, .18);
}

/* submit button (żółty jak u Ciebie) */
.shop-filters__submit{
  width: 100%;
  margin-top: 12px;
  border: none;
  border-radius: 999px;
  padding: 12px 14px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  background: #fed216;
  color: #111;
}

.shop-filters__submit:hover{
  filter: brightness(.98);
}

/* "wyczyść" jako link */
.filter-clear{
  background: none;
  border: none;
  padding: 0;
  font-weight: 600;
  font-size: 13px;
  opacity: .7;
  cursor: pointer;
  justify-self: start;
}

.filter-clear:hover{
  opacity: 1;
  text-decoration: underline;
}

/* Mobile: filtr jako karta na górze (na razie) */
@media (max-width: 900px){
  .shop-filters{
    border-radius: 16px;
    padding: 14px;
  }
}

/* Przycisk "Kategorie i filtry" - tylko mobile */
.shop-filters-toggle{
  display:none;
  border:1px solid rgba(0,0,0,.10);
  background:#fff;
  border-radius:999px;
  padding:12px 14px;
  font-weight:700;
  cursor:pointer;
}

/* Overlay (mobile) */
.shop-filters-overlay{
  display:none;
}

@media (max-width: 900px){
  .shop-filters-toggle{
    display:inline-flex;
    align-items:center;
    width: 100%;
    justify-content: space-between;
  }
.shop-filters-toggle{
    
    gap:10px;
    margin: 10px 0 18px;
  }


.shop-filters-toggle::after{
  content: "";
  width: 18px;
  height: 12px;
  display: inline-block;
  background:
    linear-gradient(currentColor 0 0) 0 0/100% 2px no-repeat,
    linear-gradient(currentColor 0 0) 0 50%/100% 2px no-repeat,
    linear-gradient(currentColor 0 0) 0 100%/100% 2px no-repeat;
  opacity: .8;
}



  /* overlay */
  .shop-filters-overlay{
    display:block;
    position:fixed;
    inset:0;
    background: rgba(0,0,0,.45);
    opacity:0;
    pointer-events:none;
    transition: opacity .2s ease;
    z-index: 9998;
  }

  /* sidebar jako drawer */
  .shop-archive__sidebar{
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    top: auto;
    height: 85vh;
    transform: translateY(110%);
    transition: transform .25s ease;
    z-index: 9999;
    background: transparent;
    padding: 0 12px 12px;
  }

  .shop-filters-drawer{
    height: 100%;
    border-radius: 18px;
    overflow: auto;
    background:#fff;
    box-shadow: 0 20px 60px rgba(0,0,0,.25);
  }

  .shop-filters-drawer__top{
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 2;
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding: 14px 16px;
    border-bottom:1px solid rgba(0,0,0,.06);
  }

  .shop-filters-close{
    border:0;
    background: rgba(0,0,0,.06);
    width: 36px;
    height: 36px;
    border-radius: 999px;
    cursor:pointer;
    font-size: 16px;
  }

  /* otwarcie */
  body.filters-open .shop-archive__sidebar{
    transform: translateY(0);
  }
  body.filters-open .shop-filters-overlay{
    opacity:1;
    pointer-events:auto;
  }
}

/* domyślnie (desktop): nie pokazuj nagłówka drawera */
.shop-filters-drawer__top{
  display: none;
}

/* na mobile: pokaż */
@media (max-width: 900px){
  .shop-filters-drawer__top{
    display: flex;
  }
}

/* =========================
   Opis kategorii (dół strony)
   ========================= */
.cat-description{
  margin-top: 32px;
  padding: 24px 0;
  border-top: 1px solid #ebebeb;
  font-size: 14px;
  line-height: 1.7;
  color: #555;
}
.cat-description p:first-child{ margin-top: 0; }
.cat-description p:last-child{ margin-bottom: 0; }
