/* Filtros de categoría (mu-plugin 022-filtros-categoria.php + filtros.js). Colores y letra del diseño 2026. */
.edb-filtros, .edb-f-panel, .edb-f-hoja {
	--edb-f-coral: #e4a382; --edb-f-coral-hondo: #a65f3d; --edb-f-salvia: #7e9285; --edb-f-salvia-oscura: #5f7266;
	--edb-f-texto: #38383a; --edb-f-suave: #6f6f72; --edb-f-tenue: #8c8c8c; --edb-f-linea: #e8e6e3; --edb-f-lienzo: #f6f5f3;
	font-family: "Plus Jakarta Sans", sans-serif; color: var(--edb-f-texto);
}
.edb-filtros *, .edb-f-panel *, .edb-f-hoja * { box-sizing: border-box; }
.edb-filtros button, .edb-f-panel button, .edb-f-hoja button { border-radius: 0; min-height: 0;  font-family: inherit; color: inherit; text-transform: none; letter-spacing: normal; line-height: 1.2; box-shadow: none; }
.edb-filtros svg, .edb-f-panel svg, .edb-f-hoja svg { fill: none; stroke: currentColor; stroke-width: 2; flex: 0 0 auto; }
.edb-filtros :focus-visible, .edb-f-panel :focus-visible, .edb-f-hoja :focus-visible { outline: 2px solid var(--edb-f-salvia-oscura); outline-offset: 2px; }

/* La sección que contiene la barra queda pegada arriba al bajar. Su fondo tiene que ser el de la página:
   --edb-f-fondo-barra lo puede fijar quien cambie el fondo de las categorías (por defecto el gris de siempre) */
.e-con.e-parent:has(> .e-con-inner [data-edb-filtros]), .e-con.e-parent:has([data-edb-filtros]) {
	position: sticky; top: var(--wp-admin--admin-bar--height, 0px); z-index: 90; background-color: var(--edb-f-fondo-barra, #fafafa);
	padding-top: 12px !important; padding-bottom: 12px !important; margin-top: 16px !important; transition: box-shadow 0.2s;
}
.e-con.e-parent.edb-f-pegada { box-shadow: 0 6px 18px rgba(56, 56, 58, 0.08); }
.edb-f-centinela { height: 1px; margin-bottom: -1px; }
.elementor-widget-shortcode:has(.edb-filtros), .elementor-widget-shortcode:has(.edb-subcategorias) { width: 100%; flex: 1 1 100%; max-width: 100%; min-width: 0; }

/* minmax(0, 1fr) y min-width: 0: sin esto la fila de filtros aplicados (que no hace salto de línea en el teléfono)
   estira la grilla y la página entera se desborda a la derecha */
.edb-filtros { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; width: 100%; max-width: 100%; min-width: 0; }
.edb-f-resumen { min-width: 0; }
.edb-f-resumen > .edb-f-aplicados { flex: 1 1 auto; min-width: 0; }
.edb-f-resumen > .edb-f-total { flex: none; }
.edb-f-fila { display: flex; align-items: center; gap: 8px; min-width: 0; }
.edb-f-rapidos { display: flex; align-items: center; gap: 8px; }
.edb-f-rapido { position: relative; }
button.edb-f-pildora.edb-f-pildora {
	display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: 999px; background: #fff;
	border: 1px solid var(--edb-f-linea); cursor: pointer; font-size: 14px; font-weight: 600; white-space: nowrap;
}
button.edb-f-pildora.edb-f-pildora:hover { border-color: #cfcac4; background: #fff; }
button.edb-f-pildora.edb-f-pildora svg { width: 16px; height: 16px; }
button.edb-f-pildora.edb-f-pildora[aria-expanded="true"], button.edb-f-activa.edb-f-activa { border-color: var(--edb-f-texto); }
.edb-f-num { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--edb-f-coral); color: #fff; font-size: 12px; font-weight: 700; display: inline-grid; place-items: center; }
.edb-f-num[hidden] { display: none; }
button.edb-f-todos.edb-f-todos, button.edb-f-todos.edb-f-todos:hover { background: var(--edb-f-texto); border-color: var(--edb-f-texto); color: #fff; }
button.edb-f-interruptor.edb-f-interruptor[aria-pressed="true"], button.edb-f-interruptor.edb-f-interruptor[aria-pressed="true"]:hover { background: var(--edb-f-texto); border-color: var(--edb-f-texto); color: #fff; }
.edb-f-separador { width: 1px; height: 24px; background: var(--edb-f-linea); margin: 0 4px; }
.edb-f-derecha { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.edb-f-total { font-size: 13px; color: var(--edb-f-suave); white-space: nowrap; font-variant-numeric: tabular-nums; }
.edb-f-orden { position: relative; }
.edb-f-lista-orden { position: absolute; right: 0; top: calc(100% + 8px); z-index: 100; background: #fff; border: 1px solid var(--edb-f-linea); border-radius: 12px; box-shadow: 0 18px 50px rgba(56, 56, 58, 0.16); padding: 8px; width: 230px; }
.edb-f-lista-orden[hidden] { display: none; }
button.edb-f-item.edb-f-item { display: flex; width: 100%; justify-content: space-between; align-items: center; border: 0; background: none; padding: 11px 12px; border-radius: 8px; cursor: pointer; font-size: 14px; text-align: left; }
button.edb-f-item.edb-f-item:hover { background: var(--edb-f-lienzo); }
button.edb-f-item.edb-f-item[aria-checked="true"] { font-weight: 700; }
button.edb-f-item.edb-f-item[aria-checked="true"]::after { content: ""; width: 10px; height: 6px; border: solid var(--edb-f-coral-hondo); border-width: 0 0 2.2px 2.2px; transform: rotate(-45deg); }

.edb-f-resumen { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.edb-f-resumen:has(.edb-f-aplicados:empty) { display: none; }
.edb-f-aplicados { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; min-width: 0; }
button.edb-f-chip.edb-f-chip { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 8px 0 12px; border-radius: 999px; background: #fbeee6; color: var(--edb-f-coral-hondo); border: 0; font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap; }
button.edb-f-chip.edb-f-chip:hover { background: #f6dfd1; color: var(--edb-f-coral-hondo); }
button.edb-f-chip.edb-f-chip svg { width: 14px; height: 14px; stroke-width: 2.4; }
button.edb-f-limpiar.edb-f-limpiar, button.edb-f-boton-texto.edb-f-boton-texto { border: 0; background: none; font-size: 13px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; padding: 0 4px; white-space: nowrap; }
button.edb-f-limpiar.edb-f-limpiar:hover, button.edb-f-boton-texto.edb-f-boton-texto:hover { background: none; color: var(--edb-f-texto); }
.edb-f-solo-celular, .edb-f-celular { display: none; }

/* Desplegables rápidos */
.edb-f-desplegable { position: absolute; top: calc(100% + 8px); left: 0; z-index: 100; width: 320px; max-height: min(460px, 70vh); overflow-y: auto; background: #fff; border-radius: 12px; box-shadow: 0 18px 50px rgba(56, 56, 58, 0.16); border: 1px solid var(--edb-f-linea); padding: 16px; }
.edb-f-desplegable-pie { position: sticky; bottom: -16px; background: #fff; display: flex; justify-content: space-between; align-items: center; margin: 14px -16px -16px; padding: 12px 16px; border-top: 1px solid var(--edb-f-linea); }

/* Opciones */
.edb-f-opciones { display: grid; gap: 2px; }
.edb-f-opcion { display: flex; align-items: center; gap: 10px; padding: 7px 0; cursor: pointer; font-size: 14px; font-weight: 400; margin: 0; }
.edb-f-opcion[hidden] { display: none; }
.edb-f-opcion input { appearance: none; -webkit-appearance: none; width: 20px; height: 20px; border-radius: 4px; border: 1.5px solid #cdc8c2; margin: 0; display: grid; place-items: center; flex: 0 0 auto; cursor: pointer; background: #fff; }
.edb-f-opcion input:checked { background: var(--edb-f-coral); border-color: var(--edb-f-coral); }
.edb-f-opcion input:checked::after { content: ""; width: 10px; height: 6px; border: solid #fff; border-width: 0 0 2.2px 2.2px; transform: translate(0, -1px) rotate(-45deg); }
.edb-f-n { margin-left: auto; color: var(--edb-f-tenue); font-size: 13px; font-variant-numeric: tabular-nums; }
.edb-f-apagada { opacity: 0.4; cursor: not-allowed; }
.edb-f-subtitulo { font-size: 12px; font-weight: 700; color: var(--edb-f-suave); letter-spacing: 0.04em; text-transform: uppercase; margin: 2px 0 8px; }
.edb-f-fichas { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.edb-f-fichas:last-child { margin-bottom: 0; }
button.edb-f-ficha.edb-f-ficha { min-width: 52px; height: 38px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--edb-f-linea); background: #fff; cursor: pointer; font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
button.edb-f-ficha.edb-f-ficha:hover:not(:disabled) { border-color: #cfcac4; background: #fff; }
button.edb-f-ficha.edb-f-ficha[aria-pressed="true"], button.edb-f-ficha.edb-f-ficha[aria-pressed="true"]:hover { background: var(--edb-f-texto); border-color: var(--edb-f-texto); color: #fff; }
button.edb-f-ficha.edb-f-ficha:disabled { color: #c9c5c0; text-decoration: line-through; cursor: not-allowed; }
.edb-f-muestras { display: grid; grid-template-columns: repeat(auto-fill, minmax(74px, 1fr)); gap: 14px 8px; }
button.edb-f-muestra.edb-f-muestra { border: 0; background: none; display: grid; justify-items: center; gap: 6px; cursor: pointer; font-size: 12px; font-weight: 500; padding: 0; text-align: center; }
button.edb-f-muestra.edb-f-muestra:hover { background: none; color: var(--edb-f-texto); }
button.edb-f-muestra.edb-f-muestra i { width: 34px; height: 34px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.14); outline: 2px solid transparent; outline-offset: 2px; transition: outline-color 0.15s; }
button.edb-f-muestra.edb-f-muestra[aria-pressed="true"] i { outline-color: var(--edb-f-texto); }
button.edb-f-muestra.edb-f-muestra[aria-pressed="true"] span { font-weight: 700; }
button.edb-f-muestra.edb-f-muestra:disabled { opacity: 0.35; cursor: not-allowed; }
button.edb-f-muestra.edb-f-muestra small { color: var(--edb-f-tenue); font-size: 11px; }
input.edb-f-buscar.edb-f-buscar { height: 40px; border-radius: 999px; border: 1px solid var(--edb-f-linea); padding: 0 16px; font: inherit; font-size: 14px; width: 100%; margin-bottom: 8px; }

/* Panel (sale por la izquierda, junto al botón) */
html.edb-f-sin-scroll { overflow: hidden; }
.edb-f-velo { position: fixed; inset: 0; background: rgba(38, 38, 40, 0.42); z-index: 99990; opacity: 0; transition: opacity 0.25s; }
.edb-f-velo.edb-f-visible { opacity: 1; }
.edb-f-velo[hidden] { display: none; }
.edb-f-panel {
	position: fixed; top: 0; bottom: 0; left: 0; z-index: 99991; width: min(400px, 100vw); background: #fff;
	display: grid; grid-template-rows: auto 1fr auto; transform: translateX(-102%); transition: transform 0.3s ease; box-shadow: 0 18px 50px rgba(56, 56, 58, 0.16); visibility: hidden;
}
.edb-f-panel.edb-f-abierto { transform: none; visibility: visible; }
.edb-f-panel-cabeza { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; padding-top: calc(16px + var(--wp-admin--admin-bar--height, 0px)); border-bottom: 1px solid var(--edb-f-linea); }
.edb-f-panel-titulo { margin: 0; font-size: 18px; font-weight: 700; }
button.edb-f-cerrar.edb-f-cerrar { width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--edb-f-lienzo); display: grid; place-items: center; cursor: pointer; padding: 0; }
button.edb-f-cerrar.edb-f-cerrar:hover { background: #ece9e5; }
button.edb-f-cerrar.edb-f-cerrar svg { width: 18px; height: 18px; stroke-width: 2.2; }
.edb-f-panel-cuerpo { overflow-y: auto; overscroll-behavior: contain; padding: 0 20px 20px; }
.edb-f-grupo { border-bottom: 1px solid var(--edb-f-linea); }
.edb-f-grupo summary { list-style: none; display: flex; justify-content: space-between; align-items: center; padding: 16px 0; cursor: pointer; font-weight: 700; font-size: 15px; }
.edb-f-grupo summary::-webkit-details-marker { display: none; }
.edb-f-grupo summary b { color: var(--edb-f-coral-hondo); font-weight: 600; }
.edb-f-grupo summary svg { width: 18px; height: 18px; transition: transform 0.2s; }
.edb-f-grupo[open] summary svg { transform: rotate(180deg); }
.edb-f-grupo-cuerpo { padding: 0 0 18px; }
label.edb-f-conmutador { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 6px 0; cursor: pointer; font-size: 14px; font-weight: 400; margin: 0; }
label.edb-f-conmutador input { appearance: none; -webkit-appearance: none; width: 44px; height: 26px; border-radius: 999px; background: #d9d5d0; position: relative; cursor: pointer; margin: 0; flex: 0 0 auto; transition: background 0.2s; }
label.edb-f-conmutador input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform 0.2s; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2); }
label.edb-f-conmutador input:checked { background: var(--edb-f-salvia); }
label.edb-f-conmutador input:checked::after { transform: translateX(18px); }
.edb-f-panel-pie { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: center; padding: 14px 20px calc(14px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--edb-f-linea); background: #fff; }
button.edb-f-boton.edb-f-boton, button.edb-f-boton.edb-f-boton:hover, button.edb-f-boton.edb-f-boton:focus { height: 50px; border-radius: 999px; border: 0; background: var(--edb-f-salvia); color: #fff; font-weight: 700; font-size: 15px; cursor: pointer; padding: 0 22px; font-variant-numeric: tabular-nums; }
button.edb-f-boton.edb-f-boton:hover { background: var(--edb-f-salvia-oscura); }

/* Hoja de orden (teléfono) */
.edb-f-hoja { position: fixed; left: 0; right: 0; bottom: 0; z-index: 99991; background: #fff; border-radius: 18px 18px 0 0; padding: 10px 16px calc(18px + env(safe-area-inset-bottom, 0px)); transform: translateY(105%); transition: transform 0.3s ease; visibility: hidden; }
.edb-f-hoja.edb-f-abierta { transform: none; visibility: visible; }
.edb-f-asa { width: 42px; height: 4px; border-radius: 4px; background: #d9d5d0; margin: 4px auto 10px; }
.edb-f-hoja .edb-f-panel-titulo { font-size: 16px; margin: 0 0 6px 12px; }

/* Grilla mientras carga */
.edb-f-cargando .elementor-loop-container { opacity: 0.45; pointer-events: none; transition: opacity 0.2s; }

/* Subcategorías con foto */
.edb-subcategorias { display: flex; gap: 18px; overflow-x: auto; scrollbar-width: none; padding: 4px 0; }
.edb-subcategorias::-webkit-scrollbar { display: none; }
.edb-subcategoria { flex: 0 0 auto; width: 96px; display: grid; justify-items: center; gap: 8px; text-align: center; color: var(--edb-f-texto, #38383a); text-decoration: none; font-family: "Plus Jakarta Sans", sans-serif; }
.edb-subcategoria-foto { width: 80px; height: 80px; border-radius: 50%; overflow: hidden; background: #fff; box-shadow: inset 0 0 0 1px #e8e6e3; display: grid; place-items: center; }
.edb-subcategoria-foto img { width: 100%; height: 100%; object-fit: cover; }
.edb-subcategoria-nombre { font-size: 13px; font-weight: 600; line-height: 1.25; }
.edb-subcategoria:hover .edb-subcategoria-nombre { color: #a65f3d; }

/* Sin espacio para los desplegables rápidos: queda «Todos los filtros», «Con stock» y el orden */
@media (max-width: 1279px) {
	.edb-f-rapidos, .edb-f-separador { display: none; }
}
/* Teléfono y tablet: dos botones, como en Figma */
@media (max-width: 1024px) {
	.edb-f-computador { display: none; }
	.edb-f-celular, .edb-f-solo-celular { display: block; }
	.edb-f-dos { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
	.edb-f-dos button.edb-f-pildora.edb-f-pildora { justify-content: center; border-radius: 10px; height: 46px; }
	.edb-f-resumen:has(.edb-f-aplicados:empty) { display: flex; justify-content: flex-end; }
	/* Una fila deslizable; el borde derecho se desvanece para avisar que hay más filtros (si no llegan al borde, no se nota) */
	.edb-f-aplicados { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-right: 24px; -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent); }
	.edb-f-aplicados::-webkit-scrollbar { display: none; }
	.edb-subcategoria { width: 78px; }
	.edb-subcategoria-foto { width: 66px; height: 66px; }
}
@media (max-width: 767px) {
	.edb-f-panel { width: 100vw; }
	.e-con.e-parent:has([data-edb-filtros]) { padding-top: 10px !important; padding-bottom: 10px !important; }
}
@media (prefers-reduced-motion: reduce) {
	.edb-f-panel, .edb-f-hoja, .edb-f-velo { transition: none; }
}

/* Estados de los botones: el tema y el kit de Elementor pintan :hover, :focus y :active en fucsia; aquí se fijan */
button.edb-f-pildora.edb-f-pildora:is(:hover, :focus, :active) { background: #fff; color: var(--edb-f-texto); }
button.edb-f-todos.edb-f-todos:is(:hover, :focus, :active), button.edb-f-interruptor.edb-f-interruptor[aria-pressed="true"]:is(:hover, :focus, :active) { background: var(--edb-f-texto); border-color: var(--edb-f-texto); color: #fff; }
button.edb-f-cerrar.edb-f-cerrar:is(:hover, :focus, :active) { background: #ece9e5; color: var(--edb-f-texto); border: 0; }
button.edb-f-boton.edb-f-boton:is(:hover, :focus, :active) { background: var(--edb-f-salvia-oscura); color: #fff; border: 0; }
button.edb-f-boton-texto.edb-f-boton-texto:is(:hover, :focus, :active), button.edb-f-limpiar.edb-f-limpiar:is(:hover, :focus, :active) { background: none; color: var(--edb-f-texto); border: 0; }
button.edb-f-chip.edb-f-chip:is(:hover, :focus, :active) { background: #f6dfd1; color: var(--edb-f-coral-hondo); border: 0; }
button.edb-f-ficha.edb-f-ficha:is(:hover, :focus, :active) { background: #fff; color: var(--edb-f-texto); }
button.edb-f-ficha.edb-f-ficha[aria-pressed="true"]:is(:hover, :focus, :active) { background: var(--edb-f-texto); border-color: var(--edb-f-texto); color: #fff; }
button.edb-f-muestra.edb-f-muestra:is(:hover, :focus, :active) { background: none; color: var(--edb-f-texto); border: 0; }
button.edb-f-item.edb-f-item:is(:hover, :focus, :active) { background: var(--edb-f-lienzo); color: var(--edb-f-texto); border: 0; }

/* «Ver más productos» con el aspecto del diseño */
.elementor-widget-loop-grid .e-loop__load-more { margin-top: 36px; text-align: center; }
.elementor-widget-loop-grid .e-loop__load-more a.elementor-button.elementor-button {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-width: 240px; height: 52px; padding: 0 28px; border-radius: 999px;
	background: #7e9285; color: #fff; font-family: "Plus Jakarta Sans", sans-serif; font-size: 15px; font-weight: 700; text-transform: none; letter-spacing: normal; border: 0; cursor: pointer;
}
.elementor-widget-loop-grid .e-loop__load-more a.elementor-button.elementor-button:is(:hover, :focus) { background: #5f7266; color: #fff; }
.elementor-widget-loop-grid .e-loop__load-more .elementor-button-text { color: inherit; }

/* «Desde» en precios con rango (tarjetas de categoría) */
.price .edb-desde { font-size: 0.62em; font-weight: 500; color: #8c8c8c; align-self: center; margin-right: -2px; }
