/*
 * CITE — Tienda y archivos de categoría/etiqueta (inc/shop.php). Cabecera con
 * migas, título y categorías; barra de recuento y orden; rejilla y
 * paginación. Las tarjetas son las de siempre (custom.css). Solo se carga aquí.
 */

/* ----- Contenedor: lleva la clase «container» (inc/shop.php), como la cabecera ----- */
.woocommerce.cite-shop { box-sizing: border-box; max-width: 100%; padding-top: clamp(22px, 3vw, 40px); padding-bottom: clamp(56px, 7vw, 96px); color: var(--shoe-ink); }
.woocommerce.cite-shop *, .woocommerce.cite-shop *::before, .woocommerce.cite-shop *::after { box-sizing: border-box; }
/* La descripción de la categoría ya la pinta la cabecera. */
.entry-content > .term-description { display: none; }

/* ----- Cabecera: migas, título y descripción ----- */
.cite-shop-head { margin-bottom: clamp(20px, 2.6vw, 30px); }
.cite-shop-head--with-banner { margin-bottom: 16px; }
.cite-shop-head--with-banner .cite-shop-crumbs { margin-bottom: 0; }

/* Cuando el archivo tiene banner, eliminamos el padding superior para que quede pegado a la cabecera */
.woocommerce.cite-shop.cite-shop--has-banner,
.woocommerce.cite-shop:has(.cite-term-banner) {
  padding-top: 0 !important;
}

/* ----- Banner de término (Categoría / Marca): Pegado arriba y a los lados (full-bleed) ----- */
.cite-term-banner {
  position: relative;
  box-sizing: border-box;
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  margin-top: 0;
  margin-bottom: clamp(20px, 2.6vw, 32px);
  border-radius: 0;
  overflow: hidden;
  background-color: transparent;
}

.cite-term-banner__media {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  line-height: 0;
}

.cite-term-banner__img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: cover;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  transition: opacity .3s ease;
}

/* Modo con título superpuesto (por defecto el nombre está a un lado) */
.cite-term-banner.is-with-title .cite-term-banner__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  width: 100%;
  padding: 0;
  background: linear-gradient(90deg, rgba(0,0,0, 0.78) 0%, rgba(0,0,0, 0.45) 45%, rgba(0,0,0, 0) 80%);
  pointer-events: none;
}

.cite-term-banner__container {
  width: 100%;
}

.cite-term-banner.is-with-title .cite-term-banner__content {
  max-width: 620px;
  color: #fff;
}

.cite-term-banner__title {
  margin: 0;
  color: #fff;
  font-family: var(--cite-font-title, "Bodoni Moda", Georgia, serif);
  font-size: clamp(26px, 4.2vw, 52px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -.03em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}

.cite-term-banner__desc {
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(13px, 1.4vw, 15px);
  line-height: 1.5;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
}

.cite-term-banner__desc p { margin: 0 0 6px; }
.cite-term-banner__desc p:last-child { margin-bottom: 0; }

/* Modo limpio (Título omitido visualmente - Sin opacidad ni obstrucción) */
.cite-term-banner.is-clean {
  background: transparent;
}

.cite-term-banner.is-clean .cite-term-banner__img {
  opacity: 1 !important;
  filter: none !important;
}

.cite-term-banner.is-clean .cite-term-banner__overlay {
  display: none !important;
}

@media (max-width: 767px) {
  .cite-term-banner {
    margin-bottom: 16px;
    border-radius: 0;
  }
  .cite-term-banner.is-with-title .cite-term-banner__overlay {
    align-items: flex-end;
    padding-bottom: 16px;
    background: linear-gradient(180deg, rgba(0,0,0, 0.05) 0%, rgba(0,0,0, 0.75) 100%);
  }
  .cite-term-banner__title {
    font-size: clamp(20px, 5.5vw, 28px);
  }
}
.cite-shop-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 0 0 14px; color: var(--shoe-ink); font-size: 12px; font-weight: 400; }
/* El clearfix de WooCommerce (::before/::after) contaría como elemento del flex y abriría un hueco. */
.woocommerce .cite-shop-crumbs::before, .woocommerce .cite-shop-crumbs::after { display: none; }
.cite-shop-crumbs a { color: var(--shoe-ink-soft); font-weight: 400; text-decoration: none; transition: color .2s ease; }
.cite-shop-crumbs a:hover { color: var(--shoe-clay); }
.cite-shop-crumbs__sep { color: var(--shoe-line); font-weight: 400; }
.cite-shop-head__title { margin: 0; color: var(--shoe-ink); font-family: var(--cite-font-title, "Bodoni Moda", Georgia, serif); font-size: clamp(36px, 4.6vw, 60px); font-weight: 400; letter-spacing: -.035em; line-height: 1; }
.cite-shop-head__desc { max-width: 640px; margin-top: 14px; color: var(--shoe-ink-soft); font-size: 15px; line-height: 1.6; }
.cite-shop-head__desc p { margin: 0 0 8px; }
.cite-shop-head__desc p:last-child { margin-bottom: 0; }

/* ----- Barra: recuento y orden ----- */
.cite-shop-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin: 0 0 22px; padding: 12px 0; border-top: 1px solid var(--shoe-line); border-bottom: 1px solid var(--shoe-line); }
.woocommerce .cite-shop-bar .woocommerce-result-count { float: none; margin: 0; color: var(--shoe-ink-soft); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.woocommerce .cite-shop-bar .woocommerce-ordering { float: none; margin: 0; }
.woocommerce .cite-shop-bar .woocommerce-ordering select { height: 40px; padding: 0 40px 0 14px; color: var(--shoe-ink); background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%231d1b19' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 13px center; border: 1px solid var(--shoe-line); border-radius: var(--shoe-radius); font-family: inherit; font-size: 13px; font-weight: 600; -webkit-appearance: none; appearance: none; cursor: pointer; }
.woocommerce .cite-shop-bar .woocommerce-ordering select:focus { border-color: var(--shoe-ink); outline: 0; }

/* ----- Rejilla ----- */
/* Columnas de Personalizar › WooCommerce › Catálogo (clase columns-N de WooCommerce). */
.woocommerce ul.products.columns-1 { --cite-cols: 1; --cite-cols-side: 1; --cite-cols-tab: 1; }
.woocommerce ul.products.columns-2 { --cite-cols: 2; --cite-cols-side: 2; --cite-cols-tab: 2; }
.woocommerce ul.products.columns-3 { --cite-cols: 3; --cite-cols-side: 3; --cite-cols-tab: 3; }
.woocommerce ul.products.columns-4 { --cite-cols: 4; --cite-cols-side: 4; --cite-cols-tab: 3; }
.woocommerce ul.products.columns-5 { --cite-cols: 5; --cite-cols-side: 5; --cite-cols-tab: 4; }
.woocommerce ul.products.columns-6 { --cite-cols: 6; --cite-cols-side: 6; --cite-cols-tab: 4; }
.woocommerce .cite-shop-bar ~ ul.products { grid-template-columns: repeat(var(--cite-cols, 4), minmax(0, 1fr)); gap: 28px 18px !important; }

/* ----- Paginación ----- */
:is(.woocommerce nav.woocommerce-pagination, nav.woocommerce-pagination) {
  margin-top: clamp(28px, 3.5vw, 44px);
  margin-bottom: 24px;
  text-align: center;
}
:is(.woocommerce nav.woocommerce-pagination, nav.woocommerce-pagination) ul {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  border: 0;
  list-style: none;
}
:is(.woocommerce nav.woocommerce-pagination, nav.woocommerce-pagination) ul li {
  float: none;
  overflow: visible;
  border: 0;
  margin: 0;
  padding: 0;
}
:is(.woocommerce nav.woocommerce-pagination, nav.woocommerce-pagination) ul li :is(a, span) {
  display: inline-flex;
  min-width: 38px;
  height: 38px;
  padding: 0 10px;
  align-items: center;
  justify-content: center;
  color: var(--shoe-ink);
  background: #fff;
  border: 1px solid var(--shoe-line);
  border-radius: var(--shoe-radius, 4px);
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  transition: border-color .2s ease, background .2s ease, color .2s ease;
}
:is(.woocommerce nav.woocommerce-pagination, nav.woocommerce-pagination) ul li a:focus-visible {
  outline: 2px solid var(--shoe-ink);
  outline-offset: 2px;
}
@media (hover: hover) and (pointer: fine) {
  :is(.woocommerce nav.woocommerce-pagination, nav.woocommerce-pagination) ul li a:hover,
  :is(.woocommerce nav.woocommerce-pagination, nav.woocommerce-pagination) ul li a:focus {
    color: var(--shoe-ink);
    background: #fff;
    border-color: var(--shoe-ink);
  }
}
:is(.woocommerce nav.woocommerce-pagination, nav.woocommerce-pagination) ul li span.current {
  color: #fff;
  background: var(--shoe-ink);
  border-color: var(--shoe-ink);
  font-weight: 700;
}
:is(.woocommerce nav.woocommerce-pagination, nav.woocommerce-pagination) ul li span.dots {
  min-width: auto;
  height: auto;
  padding: 0 4px;
  color: #8c827a;
  background: transparent;
  border: 0;
}

@media (max-width: 767px) {
  :is(.woocommerce nav.woocommerce-pagination, nav.woocommerce-pagination) {
    margin-top: 24px;
    margin-bottom: 24px;
  }
  :is(.woocommerce nav.woocommerce-pagination, nav.woocommerce-pagination) ul {
    gap: 6px;
  }
  :is(.woocommerce nav.woocommerce-pagination, nav.woocommerce-pagination) ul li :is(a, span) {
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    font-size: 12.5px;
  }
}
@media (max-width: 360px) {
  :is(.woocommerce nav.woocommerce-pagination, nav.woocommerce-pagination) ul {
    gap: 4px;
  }
  :is(.woocommerce nav.woocommerce-pagination, nav.woocommerce-pagination) ul li :is(a, span) {
    min-width: 34px;
    height: 34px;
    padding: 0 8px;
    font-size: 12px;
  }
}

/* ----- Sin productos ----- */
.cite-shop-empty { display: grid; justify-items: center; gap: 10px; padding: clamp(44px, 7vw, 84px) 20px; text-align: center; background: #fff; border: 1px solid var(--shoe-line); }
.cite-shop-empty__title { margin: 0; color: var(--shoe-ink); font-family: var(--cite-font-title, "Bodoni Moda", Georgia, serif); font-size: clamp(24px, 2.6vw, 32px); font-weight: 400; letter-spacing: -.02em; line-height: 1.15; }
.cite-shop-empty__text { max-width: 420px; margin: 0; color: var(--shoe-ink-soft); font-size: 14.5px; line-height: 1.6; }
.cite-shop-empty__link { display: inline-flex; align-items: center; min-height: 46px; margin-top: 10px; padding: 0 22px; color: #fff; background: var(--shoe-ink); font-size: 10.5px; font-weight: 800; letter-spacing: .13em; text-decoration: none; text-transform: uppercase; transition: background .2s ease; }
.cite-shop-empty__link:hover { color: #fff; background: var(--shoe-clay); }

/* ----- Filtros (Personalizar › Páginas › Tienda) ----- */
/* Mientras carga la URL filtrada la rejilla y paginación se atenúan (shop.js). */
.cite-shop.is-loading :is(ul.products, .woocommerce-pagination) { opacity: .4; pointer-events: none; transition: opacity .2s ease; }

/* ----- Skeleton (Personalizar › Páginas › Tienda) -----
   Fotos que aún cargan (.is-pending) y, al pasar a otra página del listado,
   tarjetas enteras: sin atenuar, cada pieza se vuelve un bloque gris que
   recorre un brillo suave (transform, sin repintar el fondo). */
@keyframes cite-skeleton { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
.cite-shop--skeleton { --cite-skeleton: #e6e6e6; --cite-skeleton-shine: rgba(255, 255, 255, .55); }
.cite-shop--skeleton .itemProductH > a:first-child > div.is-pending,
.cite-shop--skeleton.is-loading .itemProductH > a:first-child > div,
.cite-shop--skeleton.is-loading .itemProductH > div :is(p, h3, .hc-price, .button) { position: relative; overflow: hidden; background: var(--cite-skeleton) !important; }
.cite-shop--skeleton .itemProductH > a:first-child > div.is-pending::after,
.cite-shop--skeleton.is-loading .itemProductH > a:first-child > div::after,
.cite-shop--skeleton.is-loading .itemProductH > div :is(p, h3, .hc-price, .button)::after { position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: 2; content: ""; background: linear-gradient(90deg, transparent 0, var(--cite-skeleton-shine) 50%, transparent 100%); transform: translateX(-100%); animation: cite-skeleton 1.5s ease-in-out infinite; pointer-events: none; }
.cite-shop--skeleton.is-loading ul.products { opacity: 1; }
.cite-shop--skeleton.is-loading .itemProductH { box-shadow: none !important; transform: none; }
.cite-shop--skeleton.is-loading .itemProductH > a:first-child > div > *,
.cite-shop--skeleton.is-loading .itemProductH > div :is(p, h3, .hc-price, .button) * { visibility: hidden; }
.cite-shop--skeleton.is-loading .itemProductH > div :is(p, h3, .hc-price, .button) { color: transparent !important; border-radius: var(--shoe-radius) !important; }
.cite-shop--skeleton.is-loading .itemProductH > div p { width: 45%; }
.cite-shop--skeleton.is-loading .itemProductH > div .hc-price { width: 35%; }
@media (prefers-reduced-motion: reduce) {
  .cite-shop--skeleton .itemProductH :is(div, p, h3, .button)::after { animation: none !important; }
}

/* Controles al principio de la barra: el recuento y el orden quedan a la derecha. */
.cite-shop-bar__tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-right: auto; }
.cite-shop-filter-btn { display: inline-flex; align-items: center; gap: 9px; height: 40px; padding: 0 16px; color: #fff; background: var(--shoe-ink); border: 1px solid var(--shoe-ink); border-radius: var(--shoe-radius); font-family: inherit; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; cursor: pointer; transition: background .2s ease, border-color .2s ease; }
.cite-shop-filter-btn:hover { background: var(--shoe-clay); border-color: var(--shoe-clay); }
.cite-shop-filter-btn .material-symbols-outlined { width: 18px; height: 18px; font-size: 18px; }
.cite-shop-filter-btn__n { display: grid; min-width: 20px; height: 20px; padding: 0 6px; place-items: center; color: var(--shoe-ink); background: #fff; border-radius: 10px; font-size: 10.5px; letter-spacing: 0; }

/* Selectores: una rejilla de desplegables a todo el ancho con su etiqueta
   encima; debajo, el recuento y el orden. Diseño técnico y editorial. */
.cite-shop-bar--selectores { padding: 18px 0 14px; }
.cite-shop-selects { display: grid; flex: 1 1 100%; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px 20px; padding-bottom: 18px; border-bottom: 1px solid var(--shoe-line); }
.cite-shop-select { display: grid; gap: 5px; min-width: 0; margin: 0; position: relative; }
.cite-shop-select > span,
.cite-shop-select .cite-shop-select__label,
.cite-shop-bar--selectores .woocommerce-ordering::before {
  color: var(--shoe-ink-soft);
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: .12em;
  line-height: 1.2;
  text-transform: uppercase;
  transition: color .2s ease;
  cursor: pointer;
}
.cite-shop-select:hover > span,
.cite-shop-select:hover .cite-shop-select__label { color: var(--shoe-ink); }
.cite-shop-select.is-set > span,
.cite-shop-select.is-set .cite-shop-select__label { color: var(--shoe-ink); display: inline-flex; align-items: center; gap: 5px; }
.cite-shop-select.is-set > span::after,
.cite-shop-select.is-set .cite-shop-select__label::after { content: ""; display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: var(--shoe-clay); }

/* Gatillo técnico del desplegable custom */
.cite-shop-select__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  height: 36px;
  padding: 0 0 2px 0;
  color: var(--shoe-ink);
  background: transparent;
  border: none;
  border-bottom: 1.5px solid var(--shoe-line);
  border-radius: 0;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: border-color .2s ease, color .2s ease;
}
.cite-shop-select:hover .cite-shop-select__trigger,
.cite-shop-select.is-dropdown-open .cite-shop-select__trigger,
.cite-shop-select__trigger:focus-visible {
  border-bottom-color: var(--shoe-ink);
  outline: 0;
}
.cite-shop-select.is-set .cite-shop-select__trigger {
  font-weight: 700;
  border-bottom-color: var(--shoe-ink);
  border-bottom-width: 2px;
}
.cite-shop-select__current {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  min-width: 0;
}
.cite-shop-select__arrow {
  flex-shrink: 0;
  stroke: currentColor;
  transition: transform .2s cubic-bezier(0.16, 1, 0.3, 1);
}
.cite-shop-select.is-dropdown-open .cite-shop-select__arrow {
  transform: rotate(180deg);
}

/* Ocultar el select nativo con custom dropdowns */
.cite-shop-select--custom .cite-shop-select__native {
  position: absolute !important;
  opacity: 0 !important;
  pointer-events: none !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  clip: rect(0, 0, 0, 0) !important;
  overflow: hidden !important;
}

/* Panel desplegable técnico */
.cite-shop-select__menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 60;
  min-width: 170px;
  max-width: 260px;
  max-height: 270px;
  padding: 6px 0;
  background: #ffffff;
  border: 1px solid var(--shoe-line);
  border-radius: var(--shoe-radius, 4px);
  box-shadow: 0 12px 28px -6px rgba(0, 0, 0, 0.12), 0 4px 10px -2px rgba(0, 0, 0, 0.05);
  box-sizing: border-box;
  overflow-y: auto;
  overscroll-behavior: contain;
  animation: citeDropdownFadeIn .16s cubic-bezier(0.16, 1, 0.3, 1);
}
.cite-shop-select__menu.is-align-right {
  left: auto;
  right: 0;
}
.cite-shop-select__menu::-webkit-scrollbar {
  width: 4px;
}
.cite-shop-select__menu::-webkit-scrollbar-track {
  background: transparent;
}
.cite-shop-select__menu::-webkit-scrollbar-thumb {
  background: #dcd7ce;
  border-radius: 2px;
}

/* Opciones de la lista técnica */
.cite-shop-select__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 8px 14px;
  border: none;
  background: transparent;
  color: var(--shoe-ink);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: background .12s ease;
}
.cite-shop-select__item:hover,
.cite-shop-select__item:focus-visible {
  background: var(--shoe-sand, #f7f5f0);
  outline: 0;
}
.cite-shop-select__item.is-selected {
  font-weight: 700;
  background: rgba(0,0,0, 0.05);
}
.cite-shop-select__item.is-disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}
.cite-shop-select__item-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cite-shop-select__item-count {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--shoe-ink-soft);
  background: #f0ede6;
  padding: 1px 6px;
  border-radius: 3px;
  letter-spacing: -0.02em;
}
.cite-shop-select__item-check {
  min-width: 12px;
  font-size: 11px;
  font-weight: 700;
  color: var(--shoe-clay);
  text-align: right;
}

/* --- Desplegable de CATEGORÍA: jerarquía en árbol con hijos y nietos --- */
.cite-shop-select--category .cite-shop-select__menu {
  width: max-content;
  min-width: 250px;
  max-width: 360px;
  max-height: 360px;
}

/* Categoría Padre (Nivel 0) */
.cite-shop-select__item--parent {
  font-weight: 600;
  color: var(--shoe-ink);
}
.cite-shop-select__item--parent:not(:first-of-type) {
  margin-top: 3px;
  border-top: 1px solid rgba(220, 215, 206, 0.45);
  padding-top: 9px;
}

/* Subcategoría Hijo (Nivel 1) */
.cite-shop-select__item--level-1 {
  padding-left: 24px;
  font-size: 12px;
  font-weight: 400;
  color: var(--shoe-ink-soft);
}
.cite-shop-select__item--level-1:hover {
  color: var(--shoe-ink);
}

/* Subcategoría Nieto (Nivel 2) */
.cite-shop-select__item--level-2 {
  padding-left: 38px;
  font-size: 11.5px;
  font-weight: 400;
  color: var(--shoe-ink-soft);
}
.cite-shop-select__item--level-2:hover {
  color: var(--shoe-ink);
}

/* Indicador de jerarquía técnico (↳) */
.cite-shop-select__branch {
  display: inline-block;
  margin-right: 6px;
  color: var(--shoe-line, #dcd7ce);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11px;
  font-weight: 400;
  user-select: none;
  flex-shrink: 0;
  transition: color .12s ease;
}
.cite-shop-select__item:hover .cite-shop-select__branch,
.cite-shop-select__item.is-selected .cite-shop-select__branch {
  color: var(--shoe-clay, #c2593f);
}


/* --- Desplegable especial de COLOR: círculos en grilla con tooltips al hover --- */
.cite-shop-select--color .cite-shop-select__menu {
  width: 226px;
  min-width: 226px;
  max-width: 260px;
  padding: 12px;
  overflow: visible;
  max-height: none;
}
.cite-shop-color-reset {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 6px 10px;
  margin-bottom: 12px;
  color: var(--shoe-ink-soft);
  background: transparent;
  border: 1px dashed var(--shoe-line);
  border-radius: 3px;
  font-family: inherit;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  cursor: pointer;
  transition: border-color .15s ease, color .15s ease, background .15s ease;
}
.cite-shop-color-reset:hover,
.cite-shop-color-reset:focus-visible {
  border-color: var(--shoe-ink);
  color: var(--shoe-ink);
  background: var(--shoe-sand, #f7f5f0);
  outline: 0;
}
.cite-shop-color-reset.is-selected {
  border-color: var(--shoe-clay);
  color: var(--shoe-clay);
  background: rgba(217, 119, 43, 0.06);
}
.cite-shop-color-reset__icon {
  font-size: 10px;
  opacity: 0.7;
  margin-right: 6px;
}
.cite-shop-color-reset__label {
  flex: 1;
  text-align: left;
}
.cite-shop-color-grid {
  display: grid;
  grid-template-columns: repeat(5, 28px);
  gap: 12px 10px;
  justify-content: space-between;
  position: relative;
}
.cite-shop-color-swatch {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  outline: none;
}
.cite-shop-color-swatch__circle {
  display: block;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.16);
  transition: transform .18s cubic-bezier(0.16, 1, 0.3, 1), box-shadow .18s ease;
}
.cite-shop-color-swatch:hover .cite-shop-color-swatch__circle,
.cite-shop-color-swatch:focus-visible .cite-shop-color-swatch__circle {
  transform: scale(1.18);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.25), 0 3px 8px rgba(0, 0, 0, 0.22);
}
.cite-shop-color-swatch.is-selected .cite-shop-color-swatch__circle {
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.15), 0 0 0 2px #fff, 0 0 0 4px var(--shoe-ink);
  transform: scale(1.05);
}
.cite-shop-color-swatch.is-disabled {
  opacity: 0.22;
  cursor: not-allowed;
  pointer-events: none;
}

/* Tooltip emergente que se levanta al hover */
.cite-shop-color-tooltip {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  padding: 4px 8px;
  color: #ffffff;
  background: #1d1b19;
  border-radius: 3px;
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: .02em;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  z-index: 100;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  transition: opacity .15s cubic-bezier(0.16, 1, 0.3, 1), transform .15s cubic-bezier(0.16, 1, 0.3, 1);
}
.cite-shop-color-tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 4px solid transparent;
  border-top-color: #1d1b19;
}
.cite-shop-color-swatch:hover .cite-shop-color-tooltip,
.cite-shop-color-swatch:focus-visible .cite-shop-color-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

@keyframes citeDropdownFadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.cite-shop-select select {
  width: 100%;
  height: 36px;
  padding: 0 22px 0 0;
  color: var(--shoe-ink);
  background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%231d1b19' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 0 center;
  border: none;
  border-bottom: 1.5px solid var(--shoe-line);
  border-radius: 0;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  cursor: pointer;
  transition: border-color .2s ease, color .2s ease;
}
.cite-shop-select select:hover,
.cite-shop-select select:focus {
  border-bottom-color: var(--shoe-ink);
  outline: 0;
}
.cite-shop-select.is-set select {
  font-weight: 700;
  border-bottom-color: var(--shoe-ink);
  border-bottom-width: 2px;
  box-shadow: none;
}
/* Ordenar en diseño de selectores: mismo estilo editorial sin borde */
.woocommerce .cite-shop-bar--selectores .woocommerce-ordering { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; min-width: 0; }
.cite-shop-bar--selectores .woocommerce-ordering::before { content: "Ordenar:"; flex-shrink: 0; }
.woocommerce .cite-shop-bar--selectores .woocommerce-ordering select {
  height: 36px;
  min-width: 0;
  padding: 0 22px 0 0;
  color: var(--shoe-ink);
  background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%231d1b19' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 0 center;
  border: none;
  border-bottom: 1.5px solid var(--shoe-line);
  border-radius: 0;
  box-shadow: none;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  cursor: pointer;
  transition: border-color .2s ease;
}
.woocommerce .cite-shop-bar--selectores .woocommerce-ordering select:hover,
.woocommerce .cite-shop-bar--selectores .woocommerce-ordering select:focus {
  border-bottom-color: var(--shoe-ink);
  outline: 0;
}
.cite-shop-selects__submit { height: 36px; padding: 0 16px; color: #fff; background: var(--shoe-ink); border: 0; border-radius: var(--shoe-radius); font: inherit; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; align-self: end; }

/* Filtros aplicados: píldoras que se quitan de un toque. */
.cite-shop-active { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: -8px 0 22px; }
.cite-shop-active__label { margin-right: 2px; color: var(--shoe-ink-soft); font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.cite-shop-pill { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 10px 0 13px; color: var(--shoe-ink); background: var(--shoe-sand); border-radius: 999px; font-size: 12.5px; font-weight: 600; text-decoration: none; transition: background .2s ease, color .2s ease; }
.cite-shop-pill .material-symbols-outlined { width: 14px; height: 14px; font-size: 14px; }
.cite-shop-pill:hover { color: #fff; background: var(--shoe-ink); }
.cite-shop-active__clear { margin-left: 4px; color: var(--shoe-ink-soft); font-size: 12px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.cite-shop-active__clear:hover { color: var(--shoe-clay); }

/* Barra lateral: filtros a la izquierda, rejilla de tres en escritorio. */
.cite-shop-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(28px, 3.5vw, 48px); align-items: start; }
.cite-shop-main { min-width: 0; }

/* Panel de filtros. En móvil y modo cajón se desliza desde la izquierda;
   en escritorio (modo lateral) actúa como columna sticky fija. */
.cite-filters-panel { position: fixed; top: 0; bottom: 0; left: 0; z-index: 100010; display: flex; flex-direction: column; width: min(400px, 90vw); color: var(--shoe-ink); background: var(--shoe-paper); box-shadow: 18px 0 48px rgba(0,0,0, .16); transform: translateX(-100%); visibility: hidden; transition: transform .35s cubic-bezier(.2, .7, .2, 1), visibility 0s linear .35s; }
.cite-filters-panel.is-open { transform: none; visibility: visible; transition: transform .35s cubic-bezier(.2, .7, .2, 1), visibility 0s; }
.cite-filters-veil { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 100005; background: rgba(0,0,0, .4); opacity: 0; transition: opacity .3s ease; }
.cite-filters-veil.is-open { opacity: 1; }
.cite-filters-veil[hidden] { display: none; }
/* Solo en html: si body también se bloquea pasa a ser contenedor de scroll y la
   cabecera sticky (top: 32px con la barra de admin) baja y deja un hueco arriba. */
.cite-shop-lock { overflow: hidden; scrollbar-gutter: stable; }

.cite-filters-panel__head { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 18px 22px; border-bottom: 1px solid var(--shoe-line); }
.cite-filters-panel__title-wrap { display: flex; align-items: center; gap: 8px; }
.cite-filters-panel__title { margin: 0; font-family: var(--cite-font-title, "Bodoni Moda", Georgia, serif); font-size: 24px; font-weight: 400; letter-spacing: -.02em; line-height: 1.1; }
.cite-filters-panel__badge { display: inline-flex; align-items: center; justify-content: center; min-width: 19px; height: 19px; padding: 0 5.5px; background: var(--shoe-clay); color: #fff; border-radius: 10px; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; font-size: 10px; font-weight: 700; line-height: 1; }
.cite-filters-panel__clear { display: none; color: var(--shoe-ink-soft); font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; text-decoration: underline; text-underline-offset: 3px; transition: color .15s ease; }
.cite-filters-panel__clear:hover { color: var(--shoe-clay); }
.cite-filters-panel__close { display: grid; width: 42px; height: 42px; margin-right: -10px; padding: 0; place-items: center; color: var(--shoe-ink); background: none; border: 0; font-size: 24px; cursor: pointer; transition: color .15s ease; }
.cite-filters-panel__close:hover { color: var(--shoe-clay); }

.cite-filters { display: flex; flex: 1; flex-direction: column; min-height: 0; margin: 0; }
.cite-filters__body { flex: 1; min-height: 0; padding: 0 22px 20px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: rgba(0,0,0, .2) transparent; }
.cite-filters__body::-webkit-scrollbar { width: 4px; }
.cite-filters__body::-webkit-scrollbar-track { background: transparent; }
.cite-filters__body::-webkit-scrollbar-thumb { background: rgba(0,0,0, .16); border-radius: 4px; }
.cite-filters__body::-webkit-scrollbar-thumb:hover { background: rgba(0,0,0, .36); }
.cite-filters__group { border-bottom: 1px solid var(--shoe-line); }
.cite-filters__group > summary { display: flex; align-items: center; gap: 8px; padding: 16px 0 14px; cursor: pointer; font-size: 11px; font-weight: 800; letter-spacing: .12em; list-style: none; text-transform: uppercase; user-select: none; transition: color .15s ease; }
.cite-filters__group > summary:hover { color: var(--shoe-clay); }
.cite-filters__group > summary::-webkit-details-marker { display: none; }
.cite-filters__group > summary::after { width: 7px; height: 7px; margin: -2px 2px 0 auto; content: ""; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); transition: transform .2s ease; flex-shrink: 0; }
.cite-filters__group[open] > summary::after { margin-top: 2px; transform: rotate(-135deg); }
.cite-filters__n { display: grid; min-width: 18px; height: 18px; padding: 0 5px; place-items: center; color: #fff; background: var(--shoe-clay); border-radius: 9px; font-size: 10px; font-weight: 700; letter-spacing: 0; margin-left: 2px; }

/* Categorías en barra lateral: navegación editorial refinada con scroll contenido */
.cite-filters__cats {
  margin: 0;
  padding: 4px 6px 14px 0;
  list-style: none;
  max-height: 290px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: rgba(0,0,0, .25) transparent;
}
.cite-filters__cats li {
  margin: 0;
  padding: 0;
  list-style: none;
  width: 100%;
}
.cite-filters__cats a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  box-sizing: border-box;
  gap: 8px;
  padding: 5px 2px 5px 0;
  color: var(--shoe-ink-soft);
  font-size: 13.5px;
  line-height: 1.35;
  text-decoration: none;
  transition: color .15s ease;
  min-width: 0;
}
.cite-filters__cats a:hover { color: var(--shoe-clay); }
.cite-filters__cats a.is-current { color: var(--shoe-clay, #c2593f); font-weight: 700; }
.cite-filters__cats a.is-current::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--shoe-clay);
  flex-shrink: 0;
}
.cite-filter-cat__label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
}
.cite-filter-cat__name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cite-filter-cat__count {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 20px;
  font-size: 11.5px;
  font-variant-numeric: tabular-nums;
  color: #8e8880;
  font-weight: 500;
  flex-shrink: 0;
  margin-left: auto;
  text-align: right;
  padding-left: 6px;
}

/* Jerarquía de niveles */
.cite-filter-cat--all a {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 8px !important;
  font-weight: 600;
  color: var(--shoe-ink);
  padding-bottom: 8px;
  border-bottom: 1px dashed var(--shoe-line);
  margin-bottom: 6px;
}
.cite-filter-cat--all a .cite-filter-cat__label {
  margin-left: 0 !important;
  margin-right: auto !important;
}
.cite-filter-cat--level-0 a { font-weight: 600; color: var(--shoe-ink); }
.cite-filter-cat--level-1 a { padding-left: 14px; font-size: 13px; color: #5c5650; }
.cite-filter-cat--level-2 a { padding-left: 26px; font-size: 12.5px; color: #7a746e; }
.cite-filter-cat__branch { display: inline-block; width: 8px; height: 8px; border-left: 1.5px solid #c4beb5; border-bottom: 1.5px solid #c4beb5; border-bottom-left-radius: 2px; margin-top: -3px; flex-shrink: 0; transition: border-color .15s ease; }
.cite-filters__cats a:hover .cite-filter-cat__branch { border-color: var(--shoe-clay); }

/* Opciones: casilla técnica oculta accesible */
.cite-filters__options { padding: 0 0 16px; }
.cite-filters__options--lista {
  max-height: 290px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: rgba(0,0,0, .25) transparent;
  padding-right: 6px;
}
.cite-filter-option { position: relative; display: block; margin: 0; cursor: pointer; }
.cite-filter-option__input { position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0; pointer-events: none; }

/* Lista estándar con casillas técnicas */
:is(.cite-filter-option--lista, .cite-filters__options--lista .cite-filter-option:not(.cite-filter-option--switch)) .cite-filter-option__ui { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 2px 6px 0; font-size: 13.5px; line-height: 1.3; color: var(--shoe-ink); transition: color .15s ease; width: 100%; box-sizing: border-box; min-width: 0; }
:is(.cite-filter-option--lista, .cite-filters__options--lista .cite-filter-option:not(.cite-filter-option--switch)):hover .cite-filter-option__ui { color: var(--shoe-clay); }
:is(.cite-filter-option--lista, .cite-filters__options--lista .cite-filter-option:not(.cite-filter-option--switch)) .cite-filter-option__box { flex: 0 0 auto; width: 16px; height: 16px; background: #fff no-repeat center / 11px; border: 1.5px solid #c4beb5; border-radius: 3px; transition: background-color .15s ease, border-color .15s ease; }
:is(.cite-filter-option--lista, .cite-filters__options--lista .cite-filter-option:not(.cite-filter-option--switch)):hover .cite-filter-option__box { border-color: var(--shoe-ink); }
:is(.cite-filter-option--lista, .cite-filters__options--lista .cite-filter-option:not(.cite-filter-option--switch)) .cite-filter-option__input:checked + .cite-filter-option__ui .cite-filter-option__box { background-color: var(--shoe-ink); border-color: var(--shoe-ink); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m3.5 8.5 3 3 6-7'/%3E%3C/svg%3E"); }
:is(.cite-filter-option--lista, .cite-filters__options--lista .cite-filter-option:not(.cite-filter-option--switch)) .cite-filter-option__input[type="radio"] + .cite-filter-option__ui .cite-filter-option__box { border-radius: 50%; }
:is(.cite-filter-option--lista, .cite-filters__options--lista .cite-filter-option:not(.cite-filter-option--switch)) .cite-filter-option__input[type="radio"]:checked + .cite-filter-option__ui .cite-filter-option__box { background-image: none; box-shadow: inset 0 0 0 3.5px #fff; }
:is(.cite-filter-option--lista, .cite-filters__options--lista .cite-filter-option:not(.cite-filter-option--switch)) .cite-filter-option__input:checked + .cite-filter-option__ui .cite-filter-option__name { font-weight: 700; }
:is(.cite-filter-option--lista, .cite-filters__options--lista .cite-filter-option:not(.cite-filter-option--switch)) .cite-filter-option__name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1 1 auto; }
:is(.cite-filter-option--lista, .cite-filters__options--lista .cite-filter-option:not(.cite-filter-option--switch)) .cite-filter-option__count { margin-left: auto; flex-shrink: 0; min-width: 20px; text-align: right; padding-left: 6px; color: #8e8880; font-size: 11.5px; font-variant-numeric: tabular-nums; }
.cite-filter-option__input:focus-visible + .cite-filter-option__ui { outline: 2px solid var(--shoe-clay); outline-offset: 2px; }

/* Interruptores modernos para el grupo «Mostrar» (Solo disponibles / En oferta) */
.cite-filter-option--switch { display: block; margin: 3px 0; cursor: pointer; }
.cite-filter-option--switch .cite-filter-option__ui { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 7px 8px; margin: 0 -8px; border-radius: var(--shoe-radius, 4px); color: var(--shoe-ink); font-size: 13.5px; line-height: 1.3; transition: background-color .15s ease, color .15s ease; }
.cite-filter-option--switch:hover .cite-filter-option__ui { background-color: #faf8f5; }
.cite-filter-option--switch .cite-filter-option__name { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; min-width: 0; }
.cite-filter-option--switch .cite-filter-option__input:checked + .cite-filter-option__ui .cite-filter-option__name { font-weight: 700; }
.cite-filter-dot-stock { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background-color: #2e7d32; flex-shrink: 0; box-shadow: 0 0 0 2px rgba(46, 125, 50, .18); }
.cite-filter-badge-oferta { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; background-color: #ffe5ec; color: var(--shoe-clay, #c2593f); font-size: 10px; font-weight: 800; border-radius: 3px; line-height: 1; flex-shrink: 0; }
.cite-filter-switch { position: relative; display: inline-block; flex: 0 0 36px; width: 36px; height: 20px; background-color: #e2ddd5; border-radius: 10px; transition: background-color .2s ease; }
.cite-filter-switch__knob { position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; background-color: #fff; border-radius: 50%; box-shadow: 0 1px 3px rgba(0,0,0, .2); transition: transform .2s cubic-bezier(0.16, 1, 0.3, 1); }
.cite-filter-option--switch .cite-filter-option__input:checked + .cite-filter-option__ui .cite-filter-switch { background-color: var(--shoe-ink, #1d1b19); }
.cite-filter-option--switch.cite-filter-option--estado-oferta .cite-filter-option__input:checked + .cite-filter-option__ui .cite-filter-switch { background-color: var(--shoe-clay, #c2593f); }
.cite-filter-option--switch .cite-filter-option__input:checked + .cite-filter-option__ui .cite-filter-switch__knob { transform: translateX(16px); }
.cite-filter-option--switch .cite-filter-option__input:focus-visible + .cite-filter-option__ui { outline: 2px solid var(--shoe-clay); outline-offset: 2px; }

/* Sin productos («Mostrar opciones sin productos»): atenuada */
.cite-filter-option.is-empty { cursor: not-allowed; opacity: .35; }

/* Listas largas: cuando la opción «Recortar listas largas» está activa, se ocultan a partir de 8 hasta pulsar «Ver más» */
.cite-filters__group.is-collapsed .is-extra { display: none; }
.cite-filters__group.is-collapsed .cite-filters__cats,
.cite-filters__group.is-collapsed .cite-filters__options--lista {
  max-height: none;
  overflow-y: visible;
  scrollbar-gutter: auto;
  padding-right: 0;
}
.cite-filters__more { margin: -6px 0 16px; padding: 0; color: var(--shoe-ink); background: none; border: 0; font-family: inherit; font-size: 12px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.cite-filters__more:hover { color: var(--shoe-clay); }

/* Barras de scroll contenidas y discretas */
.cite-filters__cats::-webkit-scrollbar,
.cite-filters__options--lista::-webkit-scrollbar {
  width: 5px;
}
.cite-filters__cats::-webkit-scrollbar-track,
.cite-filters__options--lista::-webkit-scrollbar-track {
  background: transparent;
}
.cite-filters__cats::-webkit-scrollbar-thumb,
.cite-filters__options--lista::-webkit-scrollbar-thumb {
  background: rgba(0,0,0, .25);
  border-radius: 4px;
}
.cite-filters__cats::-webkit-scrollbar-thumb:hover,
.cite-filters__options--lista::-webkit-scrollbar-thumb:hover {
  background: rgba(0,0,0, .45);
}
}
.cite-filters__group.is-expanded .cite-filters__cats::-webkit-scrollbar-thumb:hover,
.cite-filters__group.is-expanded .cite-filters__options--lista::-webkit-scrollbar-thumb:hover {
  background: rgba(0,0,0, .45);
}

/* Precio con barra de rango */
.cite-price-range { padding: 6px 0 20px; }
.cite-price-range__values { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0 0 16px; color: var(--shoe-ink-soft); font-size: 13px; }
.cite-price-range__values output { flex: 1; min-width: 72px; padding: 6px 8px; color: var(--shoe-ink); background: #fff; border: 1px solid var(--shoe-line); border-radius: 3px; font-size: 12.5px; font-weight: 700; font-variant-numeric: tabular-nums; text-align: center; transition: border-color .15s ease; }
.cite-price-range__values output:hover { border-color: var(--shoe-ink); }
.cite-price-range__track { position: relative; height: 22px; margin: 0 8px; }
.cite-price-range__track::before, .cite-price-range__track::after { position: absolute; top: 50%; height: 3px; content: ""; border-radius: 3px; transform: translateY(-50%); }
.cite-price-range__track::before { right: 0; left: 0; background: var(--shoe-line); }
.cite-price-range__track::after { right: calc(100% - var(--hasta, 100%)); left: var(--desde, 0%); background: var(--shoe-ink); }
.cite-price-range__track input[type="range"] { position: absolute; inset: 0 -8px; z-index: 2; width: calc(100% + 16px); height: 22px; margin: 0; background: none; pointer-events: none; -webkit-appearance: none; appearance: none; }
.cite-price-range__track input[type="range"]::-webkit-slider-runnable-track { height: 22px; background: none; }
.cite-price-range__track input[type="range"]::-moz-range-track { height: 22px; background: none; }
.cite-price-range__track input[type="range"]::-webkit-slider-thumb { width: 18px; height: 18px; margin-top: 2px; background: #fff; border: 2px solid var(--shoe-ink); border-radius: 50%; box-shadow: 0 1px 4px rgba(0,0,0, .18); cursor: grab; pointer-events: auto; -webkit-appearance: none; appearance: none; transition: transform .12s ease; }
.cite-price-range__track input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.15); }
.cite-price-range__track input[type="range"]::-moz-range-thumb { width: 16px; height: 16px; background: #fff; border: 2px solid var(--shoe-ink); border-radius: 50%; box-shadow: 0 1px 4px rgba(0,0,0, .18); cursor: grab; pointer-events: auto; }
.cite-price-range__track input[type="range"]:active::-webkit-slider-thumb { cursor: grabbing; transform: scale(1.2); }
.cite-price-range__track input[type="range"]:focus-visible { outline: none; }
.cite-price-range__track input[type="range"]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 3px rgba(165,35,72, .35); }
.cite-price-range__track input[type="range"]:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 3px rgba(165,35,72, .35); }

/* Colores en barra lateral: cuadrícula de muestras circulares con tooltip */
.cite-filters__options--color { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px 6px; padding: 6px 0 18px; }
.cite-filter-option--color { position: relative; display: flex; align-items: center; justify-content: center; min-width: 36px; min-height: 36px; margin: 0; padding: 2px 0; cursor: pointer; }
.cite-filter-color-swatch { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background-color: var(--swatch-color, #999); box-shadow: inset 0 0 0 1px rgba(0,0,0, .16); transition: transform .18s cubic-bezier(.2, .7, .2, 1), box-shadow .18s ease; }
.cite-filter-color-swatch.is-light { box-shadow: inset 0 0 0 1px rgba(0,0,0, .25); }
.cite-filter-option--color:hover .cite-filter-color-swatch { transform: scale(1.15); box-shadow: inset 0 0 0 1px rgba(0,0,0, .16), 0 0 0 2px var(--shoe-paper), 0 0 0 3px #8e8880; }
.cite-filter-option--color .cite-filter-option__input:checked + .cite-filter-color-swatch { box-shadow: inset 0 0 0 1px rgba(0,0,0, .16), 0 0 0 2px var(--shoe-paper), 0 0 0 4px var(--shoe-ink); }
.cite-filter-option--color .cite-filter-option__input:focus-visible + .cite-filter-color-swatch { outline: 2px solid var(--shoe-clay); outline-offset: 2px; }
.cite-filter-color-swatch__check { width: 13px; height: 13px; opacity: 0; transform: scale(.6); transition: opacity .18s ease, transform .18s ease; color: #fff; }
.cite-filter-color-swatch.is-light .cite-filter-color-swatch__check { color: #1d1b19; }
.cite-filter-option--color .cite-filter-option__input:checked + .cite-filter-color-swatch .cite-filter-color-swatch__check { opacity: 1; transform: scale(1); }
.cite-filter-color-tooltip { position: absolute; bottom: calc(100% + 7px); left: 50%; transform: translateX(-50%) translateY(4px); background: #1d1b19; color: #fff; font-size: 11px; font-weight: 600; letter-spacing: .02em; line-height: 1.2; padding: 4px 8px; border-radius: 3px; white-space: nowrap; pointer-events: none; opacity: 0; visibility: hidden; transition: opacity .15s ease, transform .15s ease, visibility .15s ease; z-index: 30; box-shadow: 0 4px 12px rgba(0, 0, 0, .2); }
.cite-filter-color-tooltip::after { position: absolute; top: 100%; left: 50%; transform: translateX(-50%); content: ""; border-width: 4px; border-style: solid; border-color: #1d1b19 transparent transparent transparent; }
.cite-filter-option--color:hover .cite-filter-color-tooltip,
.cite-filter-option--color:focus-within .cite-filter-color-tooltip { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
/* Swatches en extremos: alinear tooltip para evitar desborde lateral */
.cite-filter-option--color:nth-child(6n + 1) .cite-filter-color-tooltip { left: 0; transform: translateX(0) translateY(4px); }
.cite-filter-option--color:nth-child(6n + 1) .cite-filter-color-tooltip::after { left: 14px; }
.cite-filter-option--color:nth-child(6n + 1):hover .cite-filter-color-tooltip,
.cite-filter-option--color:nth-child(6n + 1):focus-within .cite-filter-color-tooltip { transform: translateX(0) translateY(0); }
.cite-filter-option--color:nth-child(6n) .cite-filter-color-tooltip { left: auto; right: 0; transform: translateX(0) translateY(4px); }
.cite-filter-option--color:nth-child(6n) .cite-filter-color-tooltip::after { left: auto; right: 14px; transform: none; }
.cite-filter-option--color:nth-child(6n):hover .cite-filter-color-tooltip,
.cite-filter-option--color:nth-child(6n):focus-within .cite-filter-color-tooltip { transform: translateX(0) translateY(0); }
.cite-filter-option--color.is-empty { opacity: .35; cursor: not-allowed; }
.cite-filter-option--color.is-empty:hover .cite-filter-color-swatch { transform: none; box-shadow: inset 0 0 0 1px rgba(0,0,0, .16); }
.cite-filter-option--color.is-empty .cite-filter-color-swatch::after { position: absolute; content: ""; width: 100%; height: 1.5px; background: rgba(0,0,0, .5); transform: rotate(-45deg); }

/* Tallas en barra lateral: cuadrícula de 4 columnas */
.cite-filters__options--talla { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; padding: 6px 0 18px; }
.cite-filter-option--talla { cursor: pointer; margin: 0; }
.cite-filter-option--talla .cite-filter-option__ui { display: flex; align-items: center; justify-content: center; height: 38px; padding: 0 4px; background: #fff; border: 1px solid var(--shoe-line); border-radius: 3px; font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--shoe-ink); transition: border-color .15s ease, background-color .15s ease, color .15s ease; }
.cite-filter-option--talla .cite-filter-option__count { display: none; }
.cite-filter-option--talla:hover .cite-filter-option__ui { border-color: var(--shoe-ink); background: #faf8f5; }
.cite-filter-option--talla .cite-filter-option__input:checked + .cite-filter-option__ui { background: var(--shoe-ink); color: #fff; border-color: var(--shoe-ink); }
.cite-filter-option--talla.is-empty { opacity: .35; cursor: not-allowed; }
.cite-filter-option--talla.is-empty .cite-filter-option__ui { text-decoration: line-through; background: #f7f5f0; border-color: #ede8e1; }

.cite-filters__actions { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 12px; padding: 14px 22px calc(14px + env(safe-area-inset-bottom)); background: var(--shoe-paper); border-top: 1px solid var(--shoe-line); }
.cite-filters__clear { padding: 0 6px; color: var(--shoe-ink); font-size: 11px; font-weight: 800; letter-spacing: .1em; text-decoration: underline; text-transform: uppercase; text-underline-offset: 4px; }
.cite-filters__clear:hover { color: var(--shoe-clay); }
.cite-filters__apply { min-height: 50px; color: #fff; background: var(--shoe-ink); border: 0; border-radius: var(--shoe-radius); font-family: inherit; font-size: 11px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; cursor: pointer; transition: background .2s ease; }
.cite-filters__apply:hover { background: var(--shoe-clay); }

@media (min-width: 1024px) {
  /* Barra lateral en escritorio: visible al natural en el flujo del contenido (sin fixed ni scroll interno) */
  .cite-filters-panel--lateral {
    position: static;
    top: auto;
    z-index: 1;
    width: auto;
    max-height: none;
    overflow: visible;
    background: none;
    box-shadow: none;
    transform: none;
    visibility: visible;
    transition: none;
  }
  .cite-filters-panel--lateral .cite-filters {
    min-height: auto;
    height: auto;
    overflow: visible;
  }
  .cite-filters-panel--lateral .cite-filters-panel__head {
    padding: 0 0 14px;
    border-bottom: 1.5px solid var(--shoe-ink);
    margin-bottom: 2px;
  }
  .cite-filters-panel--lateral .cite-filters-panel__title {
    font-size: 22px;
  }
  .cite-filters-panel--lateral .cite-filters-panel__clear {
    display: inline-flex;
  }
  .cite-filters-panel--lateral .cite-filters-panel__close,
  .cite-shop-bar--lateral .cite-shop-filter-btn {
    display: none;
  }
  .cite-filters-panel--lateral .cite-filters__body {
    padding: 4px 0 24px 0;
    max-height: none;
    overflow: visible;
    scrollbar-width: auto;
  }
  .cite-filters-panel--lateral .cite-filters__actions {
    padding: 14px 0 0;
    background: none;
    border-top: 0;
  }
  .cite-filters-panel--lateral .cite-filters.is-auto .cite-filters__actions {
    display: none;
  }
  .woocommerce .cite-shop-main .cite-shop-bar ~ ul.products {
    grid-template-columns: repeat(var(--cite-cols-side, 4), minmax(0, 1fr));
  }
}

@media (min-width: 1024px) and (max-width: 1200px) {
  /* En escritorios medianos con barra lateral, 5 columnas se reducen a 4 para no apretar la tarjeta */
  .woocommerce ul.products.columns-5 { --cite-cols-side: 4; }
}

/* ----- Tabletas y móvil ----- */
@media (max-width: 1100px) {
  .woocommerce .cite-shop-bar ~ ul.products { grid-template-columns: repeat(var(--cite-cols-tab, 3), minmax(0, 1fr)); }
}
@media (max-width: 1023px) {
  /* Barra lateral: el panel pasa a cajón y la rejilla ocupa todo el ancho. */
  .cite-shop-layout { display: block; }
  .cite-filters__cats,
  .cite-filters__options--lista {
    max-height: none;
    overflow: visible;
  }
}
@media (max-width: 767px) {
  /* Dos por fila: se recorre la tienda sin bajar sin fin. Tarjeta más compacta. */
  .woocommerce .cite-shop-bar ~ ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 10px !important; }
  .cite-shop-bar ~ ul.products .itemProductH { padding: 8px; }
  .cite-shop-bar ~ ul.products .itemProductH .button .cite-icon-line { display: none; }
  /* Selectores en móvil: rejilla de 2 columnas con espacio adecuado y barra equilibrada */
  .cite-shop-bar--selectores {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px 10px;
    padding: 14px 0 10px;
  }
  .cite-shop-bar--selectores .cite-shop-selects {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 16px;
    padding-bottom: 14px;
  }
  .cite-shop-bar--selectores .woocommerce-result-count {
    flex: 1 1 100%;
    order: 2;
    text-align: center;
    font-size: 10px;
    letter-spacing: .08em;
  }
  .woocommerce .cite-shop-bar--selectores .woocommerce-ordering {
    order: 1;
    width: 100%;
    margin-left: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-width: 0;
  }
  .cite-shop-bar--selectores .woocommerce-ordering::before {
    display: block;
    color: var(--shoe-ink-soft);
    font-size: 9.5px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    flex-shrink: 0;
  }
  .woocommerce .cite-shop-bar--selectores .woocommerce-ordering select {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
    max-width: 100%;
    height: 34px;
    padding: 0 20px 0 0;
    font-size: 12px;
    background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%231d1b19' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 0 center;
    border: none;
    border-bottom: 1.5px solid var(--shoe-line);
    border-radius: 0;
    box-shadow: none;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
  }

  /* Barra de herramientas móvil: Filtrar y Ordenar en 2 columnas iguales y recuento centrado */
  .cite-shop-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding: 12px 0 10px;
  }
  .cite-shop-bar:has(.cite-shop-filter-btn) .cite-shop-bar__tools,
  .cite-shop-bar--cajon .cite-shop-bar__tools,
  .cite-shop-bar--lateral .cite-shop-bar__tools {
    order: 1;
    flex: 1 1 calc(50% - 5px);
    max-width: calc(50% - 5px);
    min-width: 0;
    margin: 0;
  }
  .cite-shop-bar:has(.cite-shop-filter-btn) .woocommerce-ordering,
  .cite-shop-bar--cajon .woocommerce-ordering,
  .cite-shop-bar--lateral .woocommerce-ordering {
    order: 2;
    flex: 1 1 calc(50% - 5px);
    max-width: calc(50% - 5px);
    min-width: 0;
    margin: 0;
  }
  .cite-shop-bar:has(.cite-shop-filter-btn) .woocommerce-result-count,
  .cite-shop-bar--cajon .woocommerce-result-count,
  .cite-shop-bar--lateral .woocommerce-result-count {
    order: 3;
    width: 100%;
    margin: 4px 0 0;
    text-align: center;
    font-size: 10.5px;
    letter-spacing: .08em;
  }

  .cite-shop-filter-btn {
    width: 100%;
    justify-content: center;
    height: 40px;
    padding: 0 10px;
    font-size: 11px;
    letter-spacing: .1em;
  }
  .woocommerce .cite-shop-bar:not(.cite-shop-bar--selectores) .woocommerce-ordering select {
    width: 100%;
    height: 40px;
    padding: 0 26px 0 10px;
    font-size: 11.5px;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
    background-position: right 8px center;
  }
}

@media (max-width: 480px) {
  .cite-shop-filter-btn {
    height: 38px;
    padding: 0 8px;
    font-size: 10.5px;
    gap: 6px;
  }
  .cite-shop-filter-btn .material-symbols-outlined {
    width: 16px;
    height: 16px;
    font-size: 16px;
  }
  .woocommerce .cite-shop-bar:not(.cite-shop-bar--selectores) .woocommerce-ordering select {
    height: 38px;
    padding: 0 22px 0 8px;
    font-size: 11px;
    background-position: right 6px center;
  }
}

/* ----- Búsqueda (search.php) ----- */
.cite-search { padding: clamp(28px, 4vw, 52px) 0 clamp(48px, 6vw, 80px); }
.cite-search__head { display: grid; gap: 10px; margin-bottom: clamp(24px, 3vw, 36px); padding-bottom: clamp(22px, 3vw, 30px); border-bottom: 1px solid var(--shoe-line); }
.cite-search__eyebrow { margin: 0; color: var(--shoe-clay); font-size: 10.5px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.cite-search__title { margin: 0; color: var(--shoe-ink); font-family: var(--cite-font-title, "Bodoni Moda", Georgia, serif); font-size: clamp(30px, 3.8vw, 32px); font-weight: 400; letter-spacing: -.03em; line-height: 1.08; overflow-wrap: anywhere; }
.cite-search__title span { color: var(--shoe-clay); }
.cite-search__count { margin: 0; color: var(--shoe-ink-soft); font-size: 14px; }
.cite-search__post { padding: 20px 0; border-bottom: 1px solid var(--shoe-line); }
.cite-search__post h2 { margin: 0 0 6px; font-size: 20px; }

.cite-search-empty { display: grid; justify-items: center; gap: 14px; padding: clamp(36px, 6vw, 64px) clamp(20px, 4vw, 48px); text-align: center; background: #fff; border: 1px solid var(--shoe-line); }
.cite-search-empty__icon { display: grid; width: 60px; height: 60px; place-items: center; color: var(--shoe-ink); background: var(--shoe-sand); border-radius: 50%; }
.cite-search-empty__icon svg { width: 26px; height: 26px; }
.cite-search-empty__title { margin: 0; color: var(--shoe-ink); font-family: var(--cite-font-title, "Bodoni Moda", Georgia, serif); font-size: clamp(22px, 2.4vw, 28px); font-weight: 400; letter-spacing: -.02em; line-height: 1.2; }
.cite-search-empty__tips { display: grid; gap: 4px; margin: 0; padding: 0; color: var(--shoe-ink-soft); font-size: 14px; line-height: 1.55; list-style: none; }
.cite-search-empty__group { display: grid; justify-items: center; gap: 10px; width: 100%; max-width: 640px; margin-top: 8px; padding-top: 18px; border-top: 1px solid var(--shoe-line); }
.cite-search-empty__label { margin: 0; color: var(--shoe-ink-soft); font-size: 10.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.cite-search-empty__chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.cite-search-empty__chips a { display: inline-flex; align-items: center; min-height: 38px; padding: 0 16px; color: var(--shoe-ink); background: var(--shoe-paper); border: 1px solid var(--shoe-line); border-radius: 999px; font-size: 13px; font-weight: 600; text-decoration: none; transition: border-color .2s ease, color .2s ease; }
.cite-search-empty__chips a:hover { color: var(--shoe-clay); border-color: var(--shoe-clay); }
.cite-search-empty__cta { display: inline-flex; align-items: center; min-height: 48px; margin-top: 10px; padding: 0 26px; color: #fff; background: var(--shoe-ink); border-radius: var(--shoe-radius); font-size: 10.5px; font-weight: 800; letter-spacing: .14em; text-decoration: none; text-transform: uppercase; transition: background-color .2s ease; }
.cite-search-empty__cta:hover { color: #fff; background: var(--shoe-clay); }
.cite-search__recs { margin-top: clamp(40px, 5vw, 64px); }
.cite-search__recs-title { margin: 0 0 20px; color: var(--shoe-ink); font-family: var(--cite-font-title, "Bodoni Moda", Georgia, serif); font-size: clamp(24px, 2.6vw, 30px); font-weight: 400; letter-spacing: -.02em; }

/* ----- Página Sale / Ofertas (page-sale.php) ----- */
.cite-sale-empty-wrapper {
  padding-top: clamp(22px, 3vw, 40px);
  padding-bottom: clamp(56px, 7vw, 96px);
}

.cite-sale-empty-card {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 16px;
  max-width: 720px;
  margin: 0 auto clamp(48px, 6vw, 72px);
  padding: clamp(40px, 6vw, 64px) clamp(24px, 5vw, 56px);
  background: #ffffff;
  border: 1px solid var(--shoe-line);
  border-radius: var(--shoe-radius);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.03);
}

.cite-sale-empty-card__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  background: var(--shoe-sand, #f7f5f0);
  border: 1px solid var(--shoe-line);
  border-radius: 999px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--shoe-clay, #c2593f);
}

.cite-sale-empty-card__dot {
  width: 7px;
  height: 7px;
  background-color: var(--shoe-clay, #c2593f);
  border-radius: 50%;
  animation: citePulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes citePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .35; transform: scale(0.85); }
}

.cite-sale-empty-card__title {
  margin: 0;
  color: var(--shoe-ink);
  font-family: var(--cite-font-title, "Bodoni Moda", Georgia, serif);
  font-size: clamp(26px, 3.2vw, 36px);
  font-weight: 400;
  letter-spacing: -.03em;
  line-height: 1.15;
}

.cite-sale-empty-card__text {
  margin: 0;
  max-width: 520px;
  color: var(--shoe-ink-soft);
  font-size: 15px;
  line-height: 1.6;
}

.cite-sale-empty-card__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 8px;
}

.cite-sale-empty-card__btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 28px;
  color: #fff;
  background: var(--shoe-ink);
  border: 1px solid var(--shoe-ink);
  border-radius: var(--shoe-radius);
  font-family: inherit;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
  transition: all .2s ease;
  cursor: pointer;
}

.cite-sale-empty-card__btn:hover {
  background: var(--shoe-clay);
  border-color: var(--shoe-clay);
  color: #fff;
  transform: translateY(-1px);
}

.cite-sale-empty-card__btn svg {
  transition: transform .2s ease;
}

.cite-sale-empty-card__btn:hover svg {
  transform: translateX(3px);
}

.cite-sale-recommendations {
  margin-top: clamp(40px, 5vw, 64px);
  padding-top: clamp(32px, 4vw, 48px);
  border-top: 1px solid var(--shoe-line);
}

.cite-sale-recommendations__head {
  margin-bottom: clamp(24px, 3vw, 36px);
}

.cite-sale-recommendations__badge {
  display: inline-block;
  margin-bottom: 6px;
  color: var(--shoe-clay);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.cite-sale-recommendations__title {
  margin: 0 0 8px;
  color: var(--shoe-ink);
  font-family: var(--cite-font-title, "Bodoni Moda", Georgia, serif);
  font-size: clamp(24px, 2.8vw, 32px);
  font-weight: 400;
  letter-spacing: -.025em;
  line-height: 1.2;
}

.cite-sale-recommendations__desc {
  margin: 0;
  color: var(--shoe-ink-soft);
  font-size: 14.5px;
  line-height: 1.5;
}

