/* ═══════════════════════════════════════════════════════════
   VAAZHA — shop-redesign.css v3.12
   Shop archive upgrade — filter sidebar, chips, sort, view toggle, pagination
   Additive only — never rewrites main.css rules.
═══════════════════════════════════════════════════════════ */

/* ── Shop layout: sidebar + grid ─────────────────────────── */
.vzh-shop-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 40px;
  align-items: start;
  margin-top: 24px;
}
@media (max-width: 900px) {
  .vzh-shop-layout { grid-template-columns: 1fr; gap: 24px; }
  .vzh-shop-sidebar {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: -100%;
    top: auto;
    z-index: 9998;
    border-radius: 24px 24px 0 0;
    padding: 22px 20px 100px;
    max-height: 82vh;
    overflow-y: auto;
    transition: bottom 0.32s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 -12px 40px rgba(0,0,0,0.18);
    border: 0;
  }
  .vzh-shop-sidebar.open { bottom: 0; }
  .vzh-filter-drawer-handle { display: block !important; }
  .vzh-filter-drawer-head { display: flex !important; }
}
.vzh-filter-drawer-handle {
  display: none;
  width: 44px;
  height: 4px;
  background: #d9d4c5;
  border-radius: 2px;
  margin: 0 auto 14px;
}
.vzh-filter-drawer-head {
  display: none;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.vzh-filter-drawer-head h3 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22px;
  letter-spacing: 2px;
  color: var(--clr-forest, #0d1a0f);
  margin: 0;
  text-transform: uppercase;
}
.vzh-filter-drawer-close {
  background: transparent;
  border: 0;
  font-size: 26px;
  color: #6b6f5b;
  cursor: pointer;
  padding: 4px 8px;
  line-height: 1;
}

/* ── Sidebar container ───────────────────────────────────── */
.vzh-shop-sidebar {
  position: sticky;
  top: 100px;
  padding: 22px 20px;
  background: #fff;
  border: 1px solid #ece7dc;
  border-radius: 14px;
  box-shadow: 0 6px 24px rgba(13,26,15,0.04);
}
.vzh-filter-block {
  padding: 14px 0;
  border-bottom: 1px dashed #ece7dc;
}
.vzh-filter-block:last-child { border-bottom: 0; }
.vzh-filter-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 16px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--clr-forest, #0d1a0f);
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
}
.vzh-filter-title::after {
  content: '−';
  font-size: 20px;
  font-weight: 300;
  color: #8b8f7e;
  transition: transform 0.2s ease;
}
.vzh-filter-block.collapsed .vzh-filter-title::after { content: '+'; }
.vzh-filter-block.collapsed .vzh-filter-body { display: none; }

/* ── Checkbox pills (size / category) ─────────────────────── */
.vzh-check-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.vzh-check-list li { margin: 0; }
.vzh-check-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border: 1.5px solid #d9d4c5;
  background: #faf8f3;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #4a4d3e;
  cursor: pointer;
  transition: all 0.18s ease;
}
.vzh-check-item input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.vzh-check-item:hover {
  border-color: var(--clr-forest, #0d1a0f);
  color: var(--clr-forest, #0d1a0f);
}
.vzh-check-item.is-checked {
  background: var(--clr-forest, #0d1a0f);
  border-color: var(--clr-forest, #0d1a0f);
  color: var(--clr-lime, #c8f55a);
}

/* Category checkboxes: stacked list */
.vzh-cat-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.vzh-cat-list li {
  padding: 6px 0;
  font-size: 14px;
  color: #333;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}
.vzh-cat-list li input {
  appearance: none;
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border: 1.5px solid #cfc9b8;
  border-radius: 4px;
  background: #fff;
  position: relative;
  cursor: pointer;
  flex-shrink: 0;
}
.vzh-cat-list li input:checked {
  background: var(--clr-forest, #0d1a0f);
  border-color: var(--clr-forest, #0d1a0f);
}
.vzh-cat-list li input:checked::after {
  content: '';
  position: absolute;
  left: 4px;
  top: 1px;
  width: 4px;
  height: 8px;
  border: solid var(--clr-lime, #c8f55a);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.vzh-cat-list li .vzh-cat-count {
  margin-left: auto;
  font-size: 11px;
  color: #999;
}

/* ── Colour swatches ─────────────────────────────────────── */
.vzh-swatch-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.vzh-swatch {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px #d9d4c5;
  cursor: pointer;
  transition: all 0.18s ease;
  position: relative;
}
.vzh-swatch input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}
.vzh-swatch:hover { transform: scale(1.1); }
.vzh-swatch.is-checked {
  box-shadow: 0 0 0 2px var(--clr-forest, #0d1a0f);
}
.vzh-swatch.is-checked::after {
  content: '';
  position: absolute;
  inset: 6px;
  border: 2px solid #fff;
  border-radius: 50%;
  mix-blend-mode: difference;
}

/* ── Price range slider ──────────────────────────────────── */
.vzh-price-slider {
  padding: 6px 4px 2px;
}
.vzh-price-track {
  position: relative;
  height: 4px;
  background: #ece7dc;
  border-radius: 2px;
  margin: 14px 8px 20px;
}
.vzh-price-fill {
  position: absolute;
  height: 100%;
  background: var(--clr-forest, #0d1a0f);
  border-radius: 2px;
}
.vzh-price-slider input[type="range"] {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 0;
  width: 100%;
  height: 4px;
  background: none;
  pointer-events: none;
  appearance: none;
  -webkit-appearance: none;
  margin: 0;
  outline: none;
}
.vzh-price-slider input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--clr-lime, #c8f55a);
  border: 2px solid var(--clr-forest, #0d1a0f);
  cursor: pointer;
  pointer-events: auto;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}
.vzh-price-slider input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--clr-lime, #c8f55a);
  border: 2px solid var(--clr-forest, #0d1a0f);
  cursor: pointer;
  pointer-events: auto;
}
.vzh-price-values {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 600;
  color: #4a4d3e;
}
.vzh-price-values span { font-variant-numeric: tabular-nums; }

/* ── Clear all button ────────────────────────────────────── */
.vzh-filter-clear {
  display: block;
  width: 100%;
  margin-top: 14px;
  padding: 10px 14px;
  background: transparent;
  border: 1.5px solid #d9d4c5;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #4a4d3e;
  cursor: pointer;
  transition: all 0.2s ease;
}
.vzh-filter-clear:hover {
  background: var(--clr-forest, #0d1a0f);
  color: var(--clr-lime, #c8f55a);
  border-color: var(--clr-forest, #0d1a0f);
}

/* ── Active filter chips (top of results) ─────────────────── */
.vzh-active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 20px;
  min-height: 0;
}
.vzh-active-filters:empty { margin: 0; }
.vzh-active-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px 6px 12px;
  background: var(--clr-forest, #0d1a0f);
  color: var(--clr-lime, #c8f55a);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border: 0;
  cursor: default;
}
.vzh-active-chip button {
  background: rgba(200,245,90,0.14);
  color: var(--clr-lime, #c8f55a);
  border: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
}
.vzh-active-chip button:hover { background: rgba(200,245,90,0.32); }

/* ── Toolbar upgrade — sort + view toggle ─────────────────── */
.vzh-shop-toolbar-v2 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 14px 18px;
  background: #fff;
  border: 1px solid #ece7dc;
  border-radius: 12px;
  margin-bottom: 20px;
}
.vzh-shop-toolbar-v2 .vzh-tb-left { font-size: 13px; color: #6b6f5b; }
.vzh-shop-toolbar-v2 .vzh-tb-right { display: flex; align-items: center; gap: 14px; }

.vzh-sort-select,
.vzh-shop-toolbar-v2 select {
  appearance: none;
  -webkit-appearance: none;
  padding: 9px 34px 9px 14px;
  background: #faf8f3 url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6' fill='none'><path d='M1 1l4 4 4-4' stroke='%230d1a0f' stroke-width='1.5' stroke-linecap='round'/></svg>") no-repeat right 12px center;
  border: 1.5px solid #d9d4c5;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--clr-forest, #0d1a0f);
  cursor: pointer;
  outline: none;
}
.vzh-sort-select:focus { border-color: var(--clr-forest, #0d1a0f); }

.vzh-view-toggle {
  display: inline-flex;
  background: #faf8f3;
  border: 1px solid #d9d4c5;
  border-radius: 999px;
  padding: 3px;
  gap: 2px;
}
.vzh-view-toggle button {
  border: 0;
  background: transparent;
  padding: 6px 10px;
  border-radius: 999px;
  cursor: pointer;
  color: #6b6f5b;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  transition: all 0.15s ease;
}
.vzh-view-toggle button.active {
  background: var(--clr-forest, #0d1a0f);
  color: var(--clr-lime, #c8f55a);
}
.vzh-view-toggle svg { width: 14px; height: 14px; }
@media (max-width: 640px) { .vzh-view-toggle { display: none; } }

/* ── Grid columns via view toggle ─────────────────────────── */
.vzh-products-grid.cols-2 { grid-template-columns: repeat(2, 1fr) !important; }
.vzh-products-grid.cols-3 { grid-template-columns: repeat(3, 1fr) !important; }
.vzh-products-grid.cols-4 { grid-template-columns: repeat(4, 1fr) !important; }
@media (max-width: 900px) {
  .vzh-products-grid.cols-3,
  .vzh-products-grid.cols-4 { grid-template-columns: repeat(2, 1fr) !important; }
}

/* ── Pagination pills ─────────────────────────────────────── */
.woocommerce-pagination,
.vzh-pagination {
  margin: 40px 0 20px;
  text-align: center;
}
.woocommerce-pagination ul.page-numbers,
.vzh-pagination ul {
  display: inline-flex;
  gap: 6px;
  padding: 0;
  margin: 0;
  list-style: none;
  border: 0;
}
.woocommerce-pagination ul.page-numbers li,
.vzh-pagination ul li {
  border: 0;
  margin: 0;
}
.woocommerce-pagination .page-numbers,
.vzh-pagination a,
.vzh-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: 999px;
  background: #fff;
  border: 1.5px solid #ece7dc;
  color: var(--clr-forest, #0d1a0f);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-decoration: none;
  transition: all 0.18s ease;
}
.woocommerce-pagination .page-numbers:hover,
.vzh-pagination a:hover {
  background: var(--clr-forest, #0d1a0f);
  color: var(--clr-lime, #c8f55a);
  border-color: var(--clr-forest, #0d1a0f);
  transform: translateY(-1px);
}
.woocommerce-pagination .page-numbers.current,
.vzh-pagination .current {
  background: var(--clr-forest, #0d1a0f);
  color: var(--clr-lime, #c8f55a);
  border-color: var(--clr-forest, #0d1a0f);
}

/* ── Mobile filter drawer ────────────────────────────────── */
.vzh-mobile-filter-btn {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: var(--clr-forest, #0d1a0f);
  color: var(--clr-lime, #c8f55a);
  border: 0;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
}
.vzh-mobile-filter-btn svg { width: 14px; height: 14px; }
@media (max-width: 900px) {
  .vzh-mobile-filter-btn { display: inline-flex; }
}

.vzh-filter-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(13,26,15,0.4);
  opacity: 0;
  visibility: hidden;
  transition: all 0.28s ease;
  z-index: 9997;
}
.vzh-filter-backdrop.show { opacity: 1; visibility: visible; }

/* ── (Mobile drawer styling folded into .vzh-shop-sidebar @media above) ── */
