/* ======================================================
   Woo Sidebar Engine — Base CSS
   File: inc/features/woo-sidebar/assets/woo-sidebar-base.css

   Scope rules:
   - ONLY widgets inside .stm-woo-sidebar
   - No Woo core overrides
   - No global tags
====================================================== */

/* Widget wrapper (added by widget renderers) */
.stm-woo-widget{
  margin: 0 0 18px;
}

/* Widget title */
.stm-woo-widget__title{
  font-size: 14px;
  font-weight: 1000;
  line-height: 1.2;
  margin: 0 0 12px;
  color: #111827;
}

/* Divider (optional, subtle) */
.stm-woo-widget__divider{
  height: 1px;
  background: #e5e7eb;
  margin: 12px 0;
}

/* ======================================================
   Chips / Pills (filters, active states)
====================================================== */
.stm-woo-chip{
  display: inline-flex;
  align-items: center;
  gap: 6px;

  padding: 6px 10px;
  border-radius: 999px;

  font-size: 12px;
  font-weight: 900;
  line-height: 1;

  background: #f9fafb;
  border: 1px solid #e5e7eb;
  color: #111827;

  cursor: pointer;
  user-select: none;
}

.stm-woo-chip:hover{
  background: #f3f4f6;
}

/* Active / remove chip */
.stm-woo-chip--active{
  background: #111827;
  color: #ffffff;
  border-color: #111827;
}

/* ======================================================
   Lists (categories, brands, mini products)
====================================================== */
.stm-woo-list{
  list-style: none;
  margin: 0;
  padding: 0;
}

.stm-woo-list li{
  margin: 0;
  padding: 6px 0;
}

.stm-woo-list a{
  text-decoration: none;
  color: #111827;
  font-size: 13px;
  font-weight: 600;
}

.stm-woo-list a:hover{
  color: #0a58ca;
}

/* Count badge */
.stm-woo-count{
  margin-left: auto;
  font-size: 12px;
  font-weight: 700;
  color: #6b7280;
}

/* ======================================================
   WOO SIDEBAR — CATEGORIES ACCORDION (Premium)
   File: inc/features/woo-sidebar/assets/woo-sidebar-base.css
====================================================== */

.stm-wcat{ width:100%; }

.stm-wcat__list,
.stm-wcat__sublist{
  list-style:none;
  margin:0;
  padding:0;
}

.stm-wcat__item{ border-bottom:1px solid rgba(0,0,0,.06); }
.stm-wcat__item--all{ border-top:1px solid rgba(0,0,0,.06); }

.stm-wcat__link,
.stm-wcat__sublink{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;

  padding:12px 10px;
  text-decoration:none;
  color:inherit;
  line-height:1.2;
}

.stm-wcat__link:hover,
.stm-wcat__sublink:hover{
  text-decoration:none;
}

.stm-wcat__toggle{
  width:100%;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;

  padding:12px 10px;
  background:transparent;
  border:0;
  border-radius:0;
  cursor:pointer;
  text-align:left;
  color:inherit;
  line-height:1.2;
}

.stm-wcat__name{ font-weight:600; }

.stm-wcat__chev{
  width:18px;
  height:18px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex:0 0 18px;
}

.stm-wcat__chev:before{
  content:"›";
  display:block;
  font-size:18px;
  line-height:1;
  transform:translateY(-1px);
  transition:transform .18s ease;
  opacity:.9;
}

.stm-wcat__toggle[aria-expanded="true"] .stm-wcat__chev:before{
  transform:rotate(90deg) translateX(1px);
}

.stm-wcat__panel{
  padding:0 0 10px 0;
}

.stm-wcat__subitem{ border-top:1px solid rgba(0,0,0,.05); }

.stm-wcat__sublink{
  padding:10px 10px 10px 20px; /* child indent */
  font-size:14px;
  opacity:.95;
}

.stm-wcat{
  width: 100%;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 12px;
  overflow: hidden; /* radius ke sath lines clean clip hongi */
  margin-bottom: 20px; /* ⬅️ next widget se clear gap */
  background: #fff;
}


/* ======================================================
   Mini product list
====================================================== */
.stm-woo-mini{
  display: flex;
  gap: 10px;
}

.stm-woo-mini__img{
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}

.stm-woo-mini__img img{
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.stm-woo-mini__title{
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
}

.stm-woo-mini__price{
  font-size: 13px;
  font-weight: 800;
}

/* ======================================================
   WOO SIDEBAR — FILTER BY PRICE (Premium Range)
====================================================== */

.stm-wprice2{
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 12px;
  background:#fff;
  padding: 14px 14px 16px;
  overflow:hidden;
  margin-bottom: 10px;
}

/* Track (keep full width; no hack padding) */
.stm-wprice2__track{
  position: relative;
  height: 6px;
  border-radius: 999px;
  background: rgba(0,0,0,.10);
  margin: 6px 2px 18px;
}

.stm-wprice2__fill{
  position:absolute;
  top:0;
  height: 6px;
  border-radius: 999px;
  left: 0%;
  width: 100%;
  background: rgba(245,124,0,.95);
}

.stm-wprice2__ranges{
  position: relative;
  height: 0;
}

/* Range inputs overlay */
.stm-wprice2__range{
  -webkit-appearance: none;
  appearance: none;
  position:absolute;
  left:0;
  top: -20px;
  width:100%;
  height: 34px;
  background: transparent;
  margin:0;
  padding:0;
  pointer-events: none; /* thumb only */
}

.stm-wprice2__range::-webkit-slider-runnable-track{
  height: 6px;
  background: transparent;
}

.stm-wprice2__range::-moz-range-track{
  height: 6px;
  background: transparent;
}

/* Thumb (NO shadow/blur) */
.stm-wprice2__range::-webkit-slider-thumb{
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: #fff;
  border: 2px solid rgba(245,124,0,.95);
  box-shadow: none;
  pointer-events: auto;
  cursor: pointer;
}

.stm-wprice2__range::-moz-range-thumb{
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: #fff;
  border: 2px solid rgba(245,124,0,.95);
  box-shadow: none;
  pointer-events: auto;
  cursor: pointer;
}

/* PRICE + BUTTON: clean stable row (no overlap) */
.stm-wprice2__meta{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 12px;
  padding-right: 140px;
  margin-top: 50px;
  font-size: 13px;
  opacity: .95;
}

/* Left: price must stay ONE LINE */
.stm-wprice2__label,
.stm-wprice2__val{
  white-space: nowrap;               /* ✅ stop 2-line break */
}

.stm-wprice2__val{
  font-weight: 700;
  font-variant-numeric: tabular-nums; /* premium numbers align */
}

.stm-wprice2__sep{ opacity:.55; margin: 0 4px; }

/* Right: actions sits inside same row visually (by spacing) */
.stm-wprice2__actions{
  display:flex;
  justify-content:flex-end;
  margin-top: -5px;       /* was 0; small lift only */
  flex: 0 0 auto;
}

/* Button */
.stm-wprice2__btn{
  border: 0;
  background: rgba(245,124,0,.98);
  color: #fff;
  font-weight: 800;
  letter-spacing: .6px;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 10px 16px;
  cursor:pointer;
  line-height: 1;
  min-width: 92px;
  box-shadow: none;
  filter: none;
}

.stm-wprice2__btn:hover{
  background: rgba(220,95,0,.98);
}

/* Title spacing in widget */
.widget .stm-wprice2{ margin-top: 4px; }

/* Mobile safety: allow wrap only if ultra-small */
@media (max-width: 360px){
  .stm-wprice2__meta{ flex-wrap: wrap; }
}



/* ======================================================
   Trust / delivery box
====================================================== */
.stm-woo-trust{
  display: flex;
  flex-direction: column;
  gap: 10px;

  font-size: 13px;
  font-weight: 600;
}

.stm-woo-trust__item{
  display: flex;
  align-items: center;
  gap: 8px;
}
