
/* ===== Trigger button: clean, no borders, subtle spacing ===== */
.kkwf-btn{
  background: transparent !important;
  border: 0;
  padding: 8px 6px;
  cursor: pointer;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  letter-spacing: .02em;
}
.kkwf-btn:hover,.kkwf-btn:focus{
  background: transparent !important;
  outline: none;
}

/* ===== Overlay ===== */
.kkwf-overlay{
  position: fixed; inset: 0;
  background: rgba(15,15,15,.35);
  opacity: 0; pointer-events: none;
  transition: opacity .25s ease; z-index: 9997;
}
.kkwf-overlay.is-active{ opacity:1; pointer-events:auto; }

/* ===== Sidebar: glassy white, soft shadow, big radius on right ===== */
.kkwf-sidebar{
  position: fixed; top:0; left:0;
  height: 100vh;
  width: var(--kkwf-width, 360px);
  max-width: 92vw;
  transform: translateX(-100%);
  background: rgba(255,255,255,.9);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  color: #0f0f0f;
  box-shadow: 12px 0 48px rgba(0,0,0,.25);
  transition: transform .35s ease; z-index: 9998;
  border-top-right-radius: 20px;
  border-bottom-right-radius: 20px;
  overflow: hidden;
}
.kkwf-sidebar.is-open{ transform: translateX(0); }
.kkwf-close{ display:none !important; }

/* ===== Head (title + clear) ===== */
.kkwf-head{
  position: sticky; top: 0;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 18px 12px 18px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.95), rgba(255,255,255,0));
  z-index: 2;
}
.kkwf-head-row{ display:flex; align-items:center; gap:10px; font-weight:700; font-size:16px; }
.kkwf-head-clear{
  background: transparent;
  border: 0;
  font-size: 13px;
  opacity: .8;
  cursor: pointer;
  padding: 6px 8px;
}
.kkwf-head-clear:hover{ opacity:1; }

/* ===== Inner content ===== */
.kkwf-inner{
  padding: 8px 16px 84px 16px;
  height: 100%;
  overflow:auto;
}

/* ===== Sections ===== */
.kkwf-section{ margin: 18px 0; }
.kkwf-title{
  font-weight: 700; font-size: 13px; text-transform: uppercase;
  letter-spacing: .06em; opacity: .7; margin-bottom: 10px;
}

/* ===== Inputs (no borders, soft bg) ===== */
.kkwf-range{ display:flex; align-items:center; gap:10px; }
.kkwf-money{
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: 12px;
  background: rgba(0,0,0,.06);
  outline: none;
}
.kkwf-money:focus{ background: rgba(0,0,0,.08); }

.kkwf-select{
  width:100%;
  padding: 10px 12px;
  border: 0;
  border-radius: 12px;
  background: rgba(0,0,0,.06);
  outline: none;
}
.kkwf-select:focus{ background: rgba(0,0,0,.08); }

/* ===== Chips (checkbox as pill) ===== */
.kkwf-checks{ display: grid; grid-template-columns: 1fr 1fr; gap: 10px 10px; }
.kkwf-check{
  position: relative; display: inline-flex; align-items: center;
}
.kkwf-check input{
  position: absolute; opacity: 0; pointer-events: none;
}
.kkwf-check span{
  display: inline-block;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(0,0,0,.06);
  user-select: none;
  transition: background .2s ease, transform .1s ease;
}
.kkwf-check input:checked + span{
  background: rgba(0,0,0,.85);
  color: #fff;
}

/* Two-up row (stock / sale) */
.kkwf-two{ display:grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* ===== Sticky action bar ===== */
.kkwf-actions{
  position: sticky; bottom: 0;
  display:flex; gap:10px; padding: 10px 16px 16px 16px;
  background: linear-gradient(to top, rgba(255,255,255,.95), rgba(255,255,255,0));
  backdrop-filter: blur(8px);
}
.kkwf-apply{
  flex: 1;
  background:#111; color:#fff; border:0;
  border-radius: 12px; padding:12px 14px; cursor:pointer; font-weight:700;
}
.kkwf-reset{
  background: transparent; color:#111; border:0;
  border-radius: 12px; padding:12px 14px; cursor:pointer; font-weight:600;
  opacity: .8;
}
.kkwf-reset:hover{ opacity:1; }

/* ===== No-results ===== */
.kkwf-no-results{ padding:18px; opacity:.8; }

/* ===== Woo grid fade on loading ===== */
.products{ transition: opacity .2s ease; }

/* ===== Mobile tweaks ===== */
@media (max-width: 480px){
  .kkwf-inner{ padding: 4px 14px 84px 14px; }
  .kkwf-checks{ grid-template-columns: 1fr; }
}
