/* ── Aside de filtros de productos ──────────────────────────── */
#VOConteiner { align-items: flex-start; }

.vo-filters-aside {
  padding-bottom: 2rem;
}

.vo-filters-count {
  font-family: 'Manrope', sans-serif;
  font-size: 0.8rem;
  color: var(--brand-muted);
  margin: 0 0 1.5rem;
}

.vo-filters-widget-wrap {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.vo-filters-widget + .vo-filters-widget {
  padding-top: 1.75rem;
  border-top: 1px solid var(--brand-border);
}

.vo-filters-title {
  font-family: 'Manrope', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-black);
  margin-bottom: 0.9rem;
}

.vo-filters-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.vo-filters-item a {
  font-size: 0.85rem;
  color: var(--brand-muted);
  text-decoration: none;
}
.vo-filters-item a:hover { color: var(--brand-sand); }
.vo-filters-item.active a {
  color: var(--brand-black);
  font-weight: 600;
}

/* Toggle "Ver más" de la lista de Tags — CSS-only (checkbox + label), sin JS
   (ver #emTagsToggle en includes/partials/product_filters_aside.php). */
.vo-filters-toggle-input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.vo-filters-list-more {
  display: none;
  margin-top: 0.5rem;
}
.vo-filters-toggle-input:checked ~ .vo-filters-list-more {
  display: flex;
}

.vo-filters-more-toggle {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--brand-sand);
  cursor: pointer;
}
.vo-filters-more-toggle:hover { color: var(--brand-black); }

.vo-filters-less-text { display: none; }
.vo-filters-toggle-input:checked ~ .vo-filters-more-toggle .vo-filters-more-text { display: none; }
.vo-filters-toggle-input:checked ~ .vo-filters-more-toggle .vo-filters-less-text { display: inline; }

.vo-filters-select {
  width: 100%;
  padding: 0.5rem 0.65rem;
  font-size: 0.85rem;
  font-family: 'Manrope', sans-serif;
  border: 1px solid var(--brand-border);
  background: var(--brand-white);
  color: var(--brand-black);
}

.vo-filters-hint {
  font-size: 0.7rem;
  color: var(--brand-muted);
  margin: 0.5rem 0 0;
}

.vo-filters-price-range {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.vo-filters-input {
  width: 100%;
  min-width: 0;
  padding: 0.5rem 0.6rem;
  font-size: 0.85rem;
  border: 1px solid var(--brand-border);
  background: var(--brand-white);
  color: var(--brand-black);
}

.vo-filters-price-sep { color: var(--brand-muted); }

.vo-filters-apply {
  width: 100%;
  justify-content: center;
  padding: 0.6rem 1rem;
}

.vo-filters-check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--brand-black);
  cursor: pointer;
  margin-bottom: 0.6rem;
}
.vo-filters-check:last-child { margin-bottom: 0; }
.vo-filters-check input { accent-color: var(--brand-sand); }

.vo-filters-colors {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* Atributos dinámicos (Talle, Color, etc. — ver includes/partials/product_filters_aside.php).
   Checkboxes reales ocultos visualmente, estilizados vía :has() en el <label>. */
.vo-attr-swatch {
  position: relative;
  display: inline-block;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1.5px solid var(--brand-border);
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.vo-attr-swatch:hover { transform: scale(1.1); }
.vo-attr-swatch:has(input:checked) {
  border-color: var(--brand-black);
  box-shadow: 0 0 0 2px var(--brand-white), 0 0 0 3px var(--brand-black);
}
.vo-attr-swatch input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.vo-attr-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.vo-attr-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.75rem;
  border: 1.5px solid var(--brand-border);
  font-size: 0.75rem;
  color: var(--brand-black);
  cursor: pointer;
  user-select: none;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.vo-attr-pill:has(input:checked) {
  border-color: var(--brand-black);
  background: var(--brand-black);
  color: var(--brand-white);
}
.vo-attr-pill input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.vo-no-results {
  width: 100%;
  text-align: center;
  padding: 4rem 1rem;
}

.vo-no-results-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.vo-no-results-text {
  color: var(--brand-muted);
  margin-bottom: 1.5rem;
}

/* Aside de filtros en mobile: drawer off-canvas a lo ancho, en vez de
   compartir fila con el grid (el .col-md-3 no colapsa a full-width por sí
   solo debajo de md, ya que #VOContainer es un .col flexible). */
.vo-filters-toggle-btn,
.vo-filters-close {
  display: none;
}

@media (max-width: 767.98px) {
  .vo-filters-toggle-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.85rem 1rem;
    margin-bottom: 1.5rem;
    font-family: 'Manrope', sans-serif;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    background: var(--brand-white);
    color: var(--brand-black);
    border: 1.5px solid var(--brand-black);
    cursor: pointer;
  }

  .vo-filters-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15,15,15,0.45);
    z-index: 390;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
  }
  .vo-filters-backdrop.open { opacity: 1; pointer-events: auto; }

  /* #VOAside (ID) en vez de .vo-filters-aside: el CSS de Canvas trae
     `[class*=col-]:not(...):not(...) { position:relative }` con más
     especificidad (0,3,0) que una clase sola (0,1,0), así que gana y
     pisa el position:fixed si no se usa un selector más específico. */
  #VOAside.vo-filters-aside {
    position: fixed;
    top: 0;
    left: 0;
    width: 85vw;
    max-width: 360px;
    height: 100vh;
    background: var(--brand-white);
    z-index: 400;
    overflow-y: auto;
    padding: 1.5rem;
    transform: translateX(-100%);
    transition: transform 0.4s cubic-bezier(0.77, 0, 0.175, 1);
    box-shadow: 8px 0 40px rgba(15,15,15,0.12);
  }
  #VOAside.vo-filters-aside.open { transform: translateX(0); }

  .vo-filters-close {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.4rem;
    width: 100%;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    border: none;
    border-bottom: 1px solid var(--brand-border);
    background: none;
    font-size: 0.85rem;
    color: var(--brand-black);
    cursor: pointer;
  }
}
