/* WooNexo — favoritos, comparar y swatches en la tienda (hereda colores y tipografía del tema). */
.woonexo-exp-acc { position: absolute; top: 8px; right: 8px; z-index: 3; display: flex; flex-direction: column; gap: 6px; }
.woonexo-exp-acc.is-ficha { position: static; flex-direction: row; margin: .75em 0; }
.woonexo-exp-acc button { display: inline-flex; align-items: center; gap: 6px; border: 1px solid rgba(127, 127, 127, .3); background: rgba(255, 255, 255, .92); color: #111; border-radius: 99px; padding: 7px; cursor: pointer; line-height: 1; font: inherit; font-size: 14px; transition: transform .15s, background .15s; }
.woonexo-exp-acc.is-ficha button { padding: 8px 14px; background: transparent; color: inherit; }
.woonexo-exp-acc button:hover { transform: scale(1.06); }
.woonexo-exp-acc svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.woonexo-exp-fav[aria-pressed="true"] svg { fill: #e11d48; stroke: #e11d48; }
.woonexo-exp-cmp[aria-pressed="true"] { background: #111; color: #fff; border-color: #111; }
.woonexo-exp-acc.is-ficha .woonexo-exp-cmp[aria-pressed="true"] { background: currentColor; }
.woonexo-exp-acc.is-ficha .woonexo-exp-cmp[aria-pressed="true"] span, .woonexo-exp-acc.is-ficha .woonexo-exp-cmp[aria-pressed="true"] svg { color: #fff; filter: invert(1); }
.woonexo-exp-aviso { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; z-index: 99999; background: #111; color: #fff; padding: 10px 16px; border-radius: 10px; font-size: 14px; transition: opacity .2s, transform .2s; max-width: calc(100vw - 32px); }
.woonexo-exp-aviso.is-visible { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.woonexo-exp-aviso a { color: #fff; text-decoration: underline; }
.woonexo-cmp-barra { position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 9996; display: flex; align-items: center; gap: 12px; background: #fff; color: #111; padding: 10px 14px; border-radius: 12px; box-shadow: 0 8px 24px rgba(0, 0, 0, .18); font-size: 14px; }
.woonexo-cmp-barra button { background: none; border: 0; text-decoration: underline; cursor: pointer; color: inherit; font: inherit; }
.woonexo-favs__lista { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.woonexo-favs__lista li { display: grid; grid-template-columns: 80px 1fr auto; gap: 14px; align-items: center; padding-bottom: 12px; border-bottom: 1px solid rgba(127, 127, 127, .2); }
.woonexo-favs__img img { width: 80px; height: 80px; object-fit: cover; border-radius: 8px; display: block; }
.woonexo-favs__acc { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.woonexo-favs__acc button { background: none; border: 0; text-decoration: underline; cursor: pointer; color: inherit; font: inherit; }
@media (max-width: 600px) { .woonexo-favs__lista li { grid-template-columns: 64px 1fr; } .woonexo-favs__acc { grid-column: 1 / -1; justify-content: flex-start; } }
.woonexo-cmp__wrap { overflow-x: auto; }
.woonexo-cmp__tabla { width: 100%; border-collapse: collapse; min-width: 560px; }
.woonexo-cmp__tabla th, .woonexo-cmp__tabla td { padding: 10px; border-bottom: 1px solid rgba(127, 127, 127, .2); text-align: left; vertical-align: top; }
.woonexo-cmp__tabla thead th { vertical-align: bottom; }
.woonexo-cmp__tabla thead img { width: 100%; max-width: 160px; aspect-ratio: 1; object-fit: cover; border-radius: 8px; display: block; margin-bottom: 6px; }
.woonexo-cmp__tabla thead button { display: block; margin-top: 4px; background: none; border: 0; padding: 0; text-decoration: underline; cursor: pointer; font: inherit; font-size: 13px; color: inherit; }
.woonexo-cmp__tabla tbody th { font-weight: 600; white-space: nowrap; }
/* Swatches */
.woonexo-sw-oculto { position: absolute !important; width: 1px !important; height: 1px !important; opacity: 0 !important; pointer-events: none !important; }
.woonexo-sw { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 8px; }
.woonexo-sw button { position: relative; min-width: 44px; min-height: 40px; padding: 6px 12px; border: 1px solid rgba(127, 127, 127, .45); border-radius: 8px; background: transparent; color: inherit; font: inherit; cursor: pointer; }
.woonexo-sw button[aria-checked="true"] { border-color: currentColor; box-shadow: 0 0 0 1px currentColor; font-weight: 600; }
.woonexo-sw button.is-agotado { opacity: .4; text-decoration: line-through; cursor: not-allowed; }
.woonexo-sw--color button { width: 38px; min-width: 38px; height: 38px; min-height: 38px; padding: 3px; border-radius: 50%; }
.woonexo-sw--color button span { display: block; width: 100%; height: 100%; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .15); }
.woonexo-sw--color button.is-agotado::after { content: ""; position: absolute; left: 4px; right: 4px; top: 50%; height: 2px; background: #b42318; transform: rotate(-45deg); }
.woonexo-sw--imagen button { width: 56px; height: 56px; padding: 2px; }
.woonexo-sw--imagen img { width: 100%; height: 100%; object-fit: cover; border-radius: 6px; display: block; }
@media (prefers-reduced-motion: reduce) { .woonexo-exp-acc button, .woonexo-exp-aviso { transition: none; } }

/* Ficha: colores cuadrados y talles como badge */
.woonexo-sw--color.woonexo-sw--cuadrado button, .woonexo-sw--color.woonexo-sw--cuadrado button span { border-radius: 6px; }
.woonexo-sw--boton button { border-radius: 999px; padding: 6px 14px; min-height: 36px; font-size: 14px; }

/* Tarjetas del listado */
.woonexo-tj { display: flex; flex-direction: column; gap: 6px; margin: 6px 0 4px; align-items: center; }
.woonexo-tj__colores { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.woonexo-tj__colores button { position: relative; width: 22px; height: 22px; padding: 2px; border: 1px solid rgba(127, 127, 127, .45); background: transparent; cursor: pointer; border-radius: 50%; }
.woonexo-tj__colores button span, .woonexo-tj__colores button img { display: block; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.woonexo-tj__colores--cuadrado button, .woonexo-tj__colores--cuadrado button span, .woonexo-tj__colores--cuadrado button img { border-radius: 4px; }
.woonexo-tj__colores button[aria-pressed="true"] { border-color: currentColor; box-shadow: 0 0 0 1px currentColor; }
.woonexo-tj__colores button.is-agotado { opacity: .45; }
.woonexo-tj__colores button.is-agotado::after { content: ""; position: absolute; left: 3px; right: 3px; top: 50%; height: 1.5px; background: #b42318; transform: rotate(-45deg); }
.woonexo-tj__talles { display: flex; flex-wrap: wrap; gap: 4px; justify-content: center; }
.woonexo-tj__talles span { font-size: 11px; line-height: 1; padding: 4px 7px; border-radius: 999px; border: 1px solid rgba(127, 127, 127, .4); }
.woonexo-tj__talles span.is-agotado { opacity: .4; text-decoration: line-through; }

/* Filtros del listado */
.woonexo-fl-wrap { display: flex; gap: 28px; align-items: flex-start; }
.woonexo-fl-wrap > .wp-block-woocommerce-product-collection, .woonexo-fl-wrap > ul.products, .woonexo-fl-wrap > .products { flex: 1; min-width: 0; }
.woonexo-fl-wrap--arriba { flex-direction: column; }
.woonexo-fl { width: 240px; flex: none; position: sticky; top: 16px; max-height: calc(100vh - 32px); overflow: auto; font-size: 14px; }
.woonexo-fl-wrap--arriba .woonexo-fl { width: 100%; position: static; max-height: none; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.woonexo-fl-wrap--arriba .woonexo-fl__head { width: 100%; }
.woonexo-fl__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.woonexo-fl__limpiar { font-size: 13px; text-decoration: underline; color: inherit; }
.woonexo-fl__sec { border-top: 1px solid rgba(127, 127, 127, .25); padding: 8px 0; }
.woonexo-fl__sec summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.woonexo-fl__sec summary::-webkit-details-marker { display: none; }
.woonexo-fl__sec summary::after { content: "+"; opacity: .6; }
.woonexo-fl__sec[open] summary::after { content: "−"; }
.woonexo-fl__cuerpo { padding-top: 8px; display: flex; flex-direction: column; gap: 4px; }
.woonexo-fl__op { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.woonexo-fl__op.is-hija { padding-left: 18px; }
.woonexo-fl__op small { margin-left: auto; opacity: .6; }
.woonexo-fl__op input { margin: 0; }
.woonexo-fl__stock { margin-top: 10px; }
.woonexo-fl__orden { width: 100%; padding: 6px 8px; font: inherit; }
.woonexo-fl__swatches { display: flex; flex-wrap: wrap; gap: 6px; }
.woonexo-fl__color { position: relative; width: 28px; height: 28px; padding: 2px; border: 1px solid rgba(127, 127, 127, .45); background: transparent; border-radius: 50%; cursor: pointer; }
.woonexo-fl__color span, .woonexo-fl__color img { display: block; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.woonexo-fl__color.is-on { border-color: currentColor; box-shadow: 0 0 0 1px currentColor; }
.woonexo-fl__badge { font: inherit; font-size: 13px; padding: 5px 12px; border-radius: 999px; border: 1px solid rgba(127, 127, 127, .45); background: transparent; color: inherit; cursor: pointer; }
.woonexo-fl__badge.is-on { background: currentColor; }
.woonexo-fl__badge.is-on::first-letter { color: inherit; }
.woonexo-fl__badge.is-on { color: #fff; border-color: #111; background: #111; }
.woonexo-fl__precio { display: flex; flex-direction: column; gap: 8px; }
.woonexo-fl__rango { position: relative; height: 24px; }
.woonexo-fl__rango::before { content: ""; position: absolute; left: 0; right: 0; top: 11px; height: 3px; background: rgba(127, 127, 127, .3); border-radius: 2px; }
.woonexo-fl__pista { position: absolute; top: 11px; height: 3px; background: currentColor; border-radius: 2px; }
.woonexo-fl__rango input[type=range] { position: absolute; left: 0; right: 0; top: 0; width: 100%; margin: 0; -webkit-appearance: none; appearance: none; background: transparent; pointer-events: none; height: 24px; }
.woonexo-fl__rango input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; pointer-events: auto; width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 2px solid currentColor; cursor: pointer; margin-top: 0; }
.woonexo-fl__rango input[type=range]::-moz-range-thumb { pointer-events: auto; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 2px solid currentColor; cursor: pointer; }
.woonexo-fl__rango input[type=range]::-webkit-slider-runnable-track { height: 24px; background: transparent; }
.woonexo-fl__rango input[type=range]::-moz-range-track { background: transparent; }
.woonexo-fl__valores { display: flex; justify-content: space-between; font-size: 13px; }
.woonexo-fl__aplicar { align-self: flex-start; font: inherit; font-size: 13px; padding: 6px 12px; border-radius: 6px; border: 1px solid currentColor; background: transparent; color: inherit; cursor: pointer; }
.woonexo-fl__toggle { display: none; font: inherit; padding: 8px 14px; border-radius: 8px; border: 1px solid currentColor; background: transparent; color: inherit; cursor: pointer; margin-bottom: 12px; }
@media (max-width: 782px) {
  .woonexo-fl-wrap { flex-direction: column; gap: 12px; }
  .woonexo-fl { width: 100%; position: static; max-height: none; display: none; }
  .woonexo-fl.is-abierto { display: block; }
  .woonexo-fl__toggle { display: inline-block; }
}