/* CCM Search v0.2 — layout de filtros + resultados (las cards ccmg usan su propio CSS) */
.ccm-search { --ccm-gap: 20px; max-width: 1320px; margin: 0 auto; }
/* Móvil: full-bleed (100% del ancho de pantalla) rompiendo el padding de los contenedores .e-con de
   Elementor. Se usa 100vw + margen negativo (NO transform, que rompería el drawer position:fixed). */
@media (max-width: 860px) {
	.ccm-search { width: 100vw; max-width: none; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); }
}
/* Si el widget "CCM Buscador" queda en un contenedor de Elementor flex-row, con flex:0 1 auto toma el
   ancho de su contenido (se ve angosto). Lo forzamos a full width del contenedor, igual que Elementor
   hace con sus propios widgets full-width (empty/video/maps…). */
.e-con .elementor-widget-ccm_buscar { width: 100%; }
.ccm-search *, .ccm-search *::before, .ccm-search *::after { box-sizing: border-box; }

.ccm-search-top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: var(--ccm-gap); }
.ccm-searchbox { flex: 1 1 320px; }
.ccm-sort { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; }
.ccm-sort::before { content: "Ordenar por"; color: #767676; font-size: 14px; white-space: nowrap; }
.ccm-filters-toggle { display: none; padding: 10px 16px; border: 1px solid #ccc; background: #fff; border-radius: 8px; cursor: pointer; font-weight: 600; }
.ccm-mobile-filters { display: none; } /* barra de filtros rápidos: solo móvil */

.ccm-search-body { display: grid; grid-template-columns: 260px 1fr; gap: var(--ccm-gap); align-items: start; }

.ccm-filters { border: 1px solid #eee; border-radius: 12px; padding: 16px; position: sticky; top: 16px; max-height: calc(100vh - 32px); overflow: auto; }
.ccm-filters-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; font-weight: 700; }
.ccm-filters-head span { margin-right: auto; }
.ccm-filters-close { display: none; flex: 0 0 auto; width: 34px; height: 34px; align-items: center; justify-content: center; margin: 0; padding: 0; border: none; border-radius: 50%; background: none; color: #333; font-size: 26px; line-height: 1; cursor: pointer; }
.ccm-filters-close:hover { background: #f2f2f2; }
.ccm-current { margin-bottom: 8px; }

.ccm-facet { padding: 10px 0; border-top: 1px solid #f0f0f0; }
.ccm-facet:first-child { border-top: none; }
.ccm-facet h4 { margin: 0 0 8px; font-size: 13px; text-transform: uppercase; letter-spacing: .03em; color: #555; }
/* el ocultado de facetas vacías/de-un-valor lo hace el JS por render (ccm-search.js), no por CSS,
   porque el mecanismo de clases del panel (--hidden / --noRefinement) no es fiable con este tema */
.ccm-facet .ais-Panel-header { display: none; } /* usamos nuestro <h4> */

.ccm-results { min-width: 0; }
.ccm-stats { color: #666; font-size: 14px; margin-bottom: 12px; }
.ccm-empty { padding: 40px 0; text-align: center; color: #666; }
.ccm-pagination { margin-top: 24px; }
.ccm-pagination .ais-Pagination-list { justify-content: center; }
.ccm-search-notice { padding: 12px; background: #fff3cd; border: 1px solid #ffe69c; border-radius: 8px; }
.ccm-error { padding: 24px; text-align: center; color: #842029; background: #f8d7da; border: 1px solid #f5c2c7; border-radius: 10px; }

/* accesibilidad: foco visible por teclado; el panel enfocado programáticamente no muestra recuadro */
.ccm-search :focus-visible { outline: 2px solid #111; outline-offset: 2px; }
.ccm-filters:focus { outline: none; }

/* fallback tarjeta simple (card_style = simple) */
.ccm-scards { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: var(--ccm-gap); list-style: none; margin: 0; padding: 0; }
.ccm-scard { border: 1px solid #eee; border-radius: 12px; overflow: hidden; background: #fff; }
.ccm-scard a { text-decoration: none; color: inherit; display: flex; flex-direction: column; height: 100%; }
.ccm-scard-media { position: relative; aspect-ratio: 1/1; background: #fafafa; }
.ccm-scard-media img { width: 100%; height: 100%; object-fit: contain; }
.ccm-scard-name { padding: 10px 12px 4px; font-size: 14px; font-weight: 600; }
.ccm-scard-price { padding: 0 12px 12px; margin-top: auto; font-weight: 700; }
.ccm-badge { position: absolute; top: 8px; padding: 3px 8px; border-radius: 999px; font-size: 11px; font-weight: 700; color: #fff; }
.ccm-badge-sale { left: 8px; background: #d63638; }
.ccm-badge-oos { right: 8px; background: #6b7280; }

/* cargar más / scroll infinito */
.ccm-loadmore { margin-top: 8px; }
.ccm-loadmore-wrap { text-align: center; margin-top: 24px; }
.ccm-sentinel { height: 1px; }
.ccm-loading { display: block; text-align: center; color: #888; padding: 12px 0; font-size: 14px; }
.ccmg-product-grid__end { text-align: center; color: #888; padding: 16px 0; }
/* fallback del botón por si el CSS de ccm-gallery no está cargado */
.ccm-loadmore a.ccmg-product-grid__load-more.button:not([class*="wc"]) { display: inline-block; padding: 12px 28px; border-radius: 999px; background: #111; color: #fff; text-decoration: none; font-weight: 600; }

/* widget de SOLO búsqueda [ccm_search] — diseño moderno (borde fino, sombra suave, foco resaltado,
   botón oscuro redondeado) */
.ccm-searchonly {
	display: flex; align-items: center; gap: 6px; max-width: 620px; width: 100%;
	border: 1.5px solid #e6e6e6; border-radius: 14px; background: #fff;
	padding: 5px 6px 5px 18px; box-shadow: 0 1px 2px rgba(0,0,0,.05);
	transition: border-color .15s ease, box-shadow .15s ease;
}
.ccm-searchonly:focus-within { border-color: #161616; box-shadow: 0 6px 22px rgba(0,0,0,.09); }
.ccm-searchonly-input { flex: 1 1 auto; min-width: 0; border: none; outline: none; padding: 12px 2px; font-size: 15.5px; line-height: 1.2; background: transparent; color: #111; box-shadow: none !important; }
.ccm-searchonly-input::placeholder { color: #9a9a9a; }
.ccm-searchonly-input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }
.ccm-searchonly-btn {
	flex: 0 0 auto; border: none; background: #161616; color: #fff; cursor: pointer;
	width: 44px; height: 44px; border-radius: 11px; display: flex; align-items: center; justify-content: center;
	transition: background-color .15s ease, transform .06s ease;
}
.ccm-searchonly-btn:hover { background: #000; }
.ccm-searchonly-btn:active { transform: scale(.95); }

/* Mobile: filtros en drawer */
@media (max-width: 860px) {
	.ccm-search-body { grid-template-columns: 1fr; }
	/* barra de filtros rápidos estilo Pioneer (píldoras): "Filtros" + facetas, todas abren el mismo drawer */
	.ccm-mobile-filters { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; flex: 1 1 100%; }
	.ccm-mobile-filters .ccm-filters-toggle,
	.ccm-facet-btn {
		display: inline-flex; align-items: center; gap: 7px; margin: 0;
		padding: 9px 15px; border: 1.5px solid #dcdcdc; border-radius: 999px; background: #fff;
		font-weight: 600; font-size: 14px; color: #111; line-height: 1; cursor: pointer;
		transition: border-color .12s ease, background-color .12s ease;
	}
	.ccm-mobile-filters .ccm-filters-toggle:active,
	.ccm-facet-btn:active { background: #f2f2f2; }
	.ccm-mobile-filters .ccm-filters-toggle:hover,
	.ccm-facet-btn:hover { border-color: #adadad; }
	.ccm-fbtn-ico { flex: 0 0 auto; }
	.ccm-filters { position: fixed; top: 0; left: 0; right: 0; bottom: 0; width: 100%; max-width: none; height: 100vh; height: 100dvh; max-height: none; border-radius: 0; z-index: 2147483001; transform: translateX(-100%); transition: transform .25s ease; background: #fff; display: flex; flex-direction: column; overflow: hidden; }
	.ccm-search.ccm-filters-open .ccm-filters { transform: translateX(0); box-shadow: 0 0 40px rgba(0,0,0,.35); }
	/* backdrop: cubre TODA la pantalla (incluye header/botón de WhatsApp/etc.) mientras el popup está abierto */
	.ccm-search.ccm-filters-open::before { content: ""; position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 2147483000; }
	.ccm-filters-close { display: inline-flex; }
	.ccm-sort { margin-left: 0; }
}

/* Autocompletado [ccm_search] */
.ccm-ac { position: relative; }
.ccm-ac-panel { position: absolute; z-index: 100000; left: 0; right: 0; top: calc(100% + 8px); max-width: 620px; background: #fff; border: 1px solid #ececec; border-radius: 14px; box-shadow: 0 16px 40px rgba(0,0,0,.13); max-height: 70vh; overflow: hidden auto; }
.ccm-ac-item { display: flex; align-items: center; gap: 12px; padding: 10px 14px; text-decoration: none; color: inherit; border-bottom: 1px solid #f2f2f2; }
.ccm-ac-item:hover, .ccm-ac-item--active { background: #f6f7f9; }
.ccm-ac-thumb { flex: 0 0 44px; width: 44px; height: 44px; background: #fafafa; border-radius: 8px; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.ccm-ac-thumb img { width: 100%; height: 100%; object-fit: contain; }
.ccm-ac-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.ccm-ac-name { font-size: 14px; font-weight: 600; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.ccm-ac-name mark { background: #fff2ac; color: inherit; padding: 0 1px; border-radius: 2px; }
.ccm-ac-price { flex: 0 0 auto; font-weight: 700; font-size: 14px; white-space: nowrap; }
.ccm-ac-chip { align-self: flex-start; font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 999px; color: #fff; }
.ccm-ac-chip--oos { background: #6b7280; }
.ccm-ac-chip--sale { background: #d63638; }
.ccm-ac-empty { padding: 16px 14px; color: #666; font-size: 14px; }
.ccm-ac-foot { display: block; padding: 11px 14px; text-decoration: none; font-weight: 600; font-size: 13px; color: #111; background: #fafafa; }
.ccm-ac-foot:hover, .ccm-ac-foot.ccm-ac-item--active { background: #ededed; }
.ccm-ac--loading .ccm-searchonly-btn { opacity: .5; }
@media (max-width: 600px) { .ccm-ac-panel { max-width: none; } }

/* v0.9 — empty state enriquecido */
.ccm-empty-title { font-size: 16px; font-weight: 600; margin: 0 0 14px; }
.ccm-empty-clear { border: 1px solid #ccc; background: #fff; border-radius: 999px; padding: 8px 18px; cursor: pointer; font-weight: 600; }
.ccm-empty-cats { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; align-items: center; }
.ccm-empty-cats > span { color: #666; font-size: 14px; }
.ccm-empty-cat { display: inline-block; padding: 6px 14px; border: 1px solid #e5e5e5; border-radius: 999px; text-decoration: none; color: #111; font-size: 13px; }
.ccm-empty-cat:hover { background: #f6f7f9; }

/* v0.9 — ahorro en la card */
.ccm-savings { display: inline-block; margin-top: 4px; font-size: 12px; font-weight: 700; color: #067d3e; }

/* v0.9 — categorías populares en el dropdown */
.ccm-ac-cats { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 14px; border-top: 1px solid #f2f2f2; }
.ccm-ac-cat { padding: 4px 10px; border: 1px solid #e5e5e5; border-radius: 999px; text-decoration: none; color: #111; font-size: 12px; }
.ccm-ac-cat:hover { background: #f6f7f9; }

/* v0.9 — botón "Ver N" del drawer (solo móvil) */
.ccm-filters-apply { display: none; }
@media (max-width: 860px) {
	.ccm-filters-apply { display: block; flex: 0 0 auto; width: 100%; margin: 0; padding: 16px; border: none; border-radius: 0; background: #111; color: #fff; font-weight: 700; font-size: 15px; cursor: pointer; box-shadow: 0 -6px 16px rgba(0,0,0,.08); }
}

/* ============================================================
   v0.12 — Estilo de filtro tipo Pioneer DJ: limpio, minimalista, monocromático.
   Headers negros de peso medio (sin mayúsculas), checkboxes cuadrados de borde
   fino, counts en gris entre paréntesis, divisores finos, sin caja, mucho aire.
   ============================================================ */
/* padding fino (aire + espacio para el scrollbar y los outlines de foco) y scroll vertical propio:
   antes con padding:0 + overflow:auto el contenido quedaba pegado al borde y se recortaba */
.ccm-filters { border: none; border-radius: 0; padding: 2px 8px 12px 2px; max-height: calc(100vh - 24px); overflow-y: auto; }
/* scrollbar fino con gutter reservado: no se sobrepone al texto/conteos del filtro */
.ccm-filters, .ccm-filters-scroll { scrollbar-gutter: stable; scrollbar-width: thin; scrollbar-color: #cfcfcf transparent; }
.ccm-filters::-webkit-scrollbar, .ccm-filters-scroll::-webkit-scrollbar { width: 10px; }
.ccm-filters::-webkit-scrollbar-track, .ccm-filters-scroll::-webkit-scrollbar-track { background: transparent; }
.ccm-filters::-webkit-scrollbar-thumb, .ccm-filters-scroll::-webkit-scrollbar-thumb { background: #d0d0d0; border-radius: 999px; border: 3px solid transparent; background-clip: content-box; }
.ccm-filters::-webkit-scrollbar-thumb:hover, .ccm-filters-scroll::-webkit-scrollbar-thumb:hover { background: #b0b0b0; background-clip: content-box; }
.ccm-filters-head { margin-bottom: 20px; padding-bottom: 14px; border-bottom: 1px solid #e6e6e6; font-weight: 500; }
.ccm-filters-head span { margin-right: auto; font-size: 20px; font-weight: 500; color: #000; text-transform: none; letter-spacing: 0; }
/* botón Limpiar: pill discreto con ícono ✕; solo aparece cuando hay filtros que limpiar */
#ccm-clear .ais-ClearRefinements-button {
	display: inline-flex; align-items: center; gap: 6px;
	background: #fff !important; border: 1px solid #e0e0e0 !important; border-radius: 999px !important;
	padding: 5px 13px 5px 11px !important; margin: 0 !important;
	font-size: 12.5px; font-weight: 500; color: #555 !important; line-height: 1.3;
	text-decoration: none; text-transform: none; cursor: pointer; box-shadow: none !important;
	transition: background-color .12s ease, color .12s ease, border-color .12s ease;
}
#ccm-clear .ais-ClearRefinements-button::before { content: "\00d7"; font-size: 16px; line-height: 1; margin-top: -1px; }
#ccm-clear .ais-ClearRefinements-button:hover { background: #f6f6f6 !important; color: #111 !important; border-color: #cfcfcf !important; }
#ccm-clear .ais-ClearRefinements-button:active { background: #efefef !important; }
#ccm-clear .ais-ClearRefinements-button--disabled,
#ccm-clear .ais-ClearRefinements-button:disabled { display: none !important; }

.ccm-facet { padding: 20px 0; border-top: 1px solid #e6e6e6; }
.ccm-facet:first-child { border-top: none; padding-top: 0; }
.ccm-facet h4 { margin: 0 0 14px; font-size: 16px; font-weight: 500; color: #000; text-transform: none; letter-spacing: 0; }

/* limpiar el tema satellite dentro de las facetas */
.ccm-facets .ais-Panel, .ccm-facets .ais-Panel-body { border: none; box-shadow: none; padding: 0; margin: 0; background: none; }

/* opciones (refinementList) al estilo Pioneer */
.ccm-facets .ais-RefinementList-list { list-style: none; margin: 0; padding: 0; }
.ccm-facets .ais-RefinementList-item { margin: 0 0 12px; }
.ccm-facets .ais-RefinementList-item:last-child { margin-bottom: 0; }
.ccm-facets .ais-RefinementList-label { display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: 15px; font-weight: 400; color: #111; }
.ccm-facets .ais-RefinementList-labelText { color: #111; }
.ccm-facets .ais-RefinementList-count { margin-left: 5px; background: none; border: none; padding: 0; color: #767676; font-size: 14px; font-weight: 400; }
.ccm-facets .ais-RefinementList-count::before { content: "("; }
.ccm-facets .ais-RefinementList-count::after { content: ")"; }
.ccm-facets .ais-RefinementList-showMore { background: none; border: none; padding: 8px 0 0; color: #111; font-size: 13px; font-weight: 500; text-decoration: underline; cursor: pointer; box-shadow: none; }
.ccm-facets .ais-SearchBox-input { border: 1px solid #ccc; border-radius: 0; padding: 8px 10px 8px 32px; font-size: 14px; box-shadow: none; }
.ccm-facets .ais-SearchBox-submit { left: 8px; }

/* checkbox moderno estilo Pioneer DJ (20px, borde fino gris claro #d1d1d1, radio suave 2px,
   marcado #161616 con check blanco). SOLO listas — el toggle mantiene su estilo original. */
.ccm-facets .ais-RefinementList-checkbox {
	-webkit-appearance: none; appearance: none; flex: 0 0 20px; width: 20px; height: 20px; margin: 0;
	border: 1px solid #d1d1d1; border-radius: 2px; background: #fff; cursor: pointer; position: relative;
	box-shadow: none !important; /* anula el inset shadow que el tema pone a todos los inputs */
	transition: border-color .12s ease, background-color .12s ease;
}
.ccm-facets .ais-RefinementList-label:hover .ais-RefinementList-checkbox { border-color: #9a9a9a; }
.ccm-facets .ais-RefinementList-checkbox:checked { background: #161616; border-color: #161616; }
.ccm-facets .ais-RefinementList-checkbox:checked::after {
	content: ""; position: absolute; left: 7px; top: 3px; width: 4px; height: 9px;
	border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg);
}

/* rango de precio — versión moderna: inputs redondeados de borde fino (sin la sombra del tema),
   estado focus, y botón a fila completa debajo */
.ccm-facets .ais-RangeInput-form { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ccm-facets .ais-RangeInput-input {
	flex: 1 1 0 !important; min-width: 0 !important; width: auto !important;
	border: 1px solid #d1d1d1; border-radius: 8px; padding: 10px 10px; font-size: 14px; color: #111; background: #fff;
	box-shadow: none !important; transition: border-color .12s ease;
}
.ccm-facets .ais-RangeInput-input:focus { outline: none; border-color: #161616; }
.ccm-facets .ais-RangeInput-input::placeholder { color: #a3a3a3; }
.ccm-facets .ais-RangeInput-separator { flex: 0 0 auto; color: #a3a3a3; font-size: 13px; }
.ccm-facets .ais-RangeInput-submit {
	flex: 1 0 100%; margin-top: 2px; background: #161616; color: #fff; border: none; border-radius: 8px;
	padding: 11px 16px; font-size: 13px; font-weight: 500; letter-spacing: .01em; cursor: pointer;
	box-shadow: none; transition: background-color .12s ease, transform .06s ease;
}
.ccm-facets .ais-RangeInput-submit:hover { background: #000; }
.ccm-facets .ais-RangeInput-submit:active { transform: translateY(1px); }

/* filtros activos: pills legibles "Atributo: valor ×" (más claro que los chips cuadrados anteriores) */
.ccm-current { margin-bottom: 14px; }
.ccm-current .ais-CurrentRefinements-list { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; margin: 0; padding: 0; }
.ccm-current .ais-CurrentRefinements-item { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; background: none; border: none; border-radius: 0; padding: 0; margin: 0; }
.ccm-current .ais-CurrentRefinements-label { font-size: 12.5px; color: #888; font-weight: 500; } /* el tema ya agrega ":" */
.ccm-current .ais-CurrentRefinements-category { display: inline-flex; align-items: center; gap: 6px; background: #f4f4f4; border: 1px solid #e4e4e4; border-radius: 999px; padding: 4px 5px 4px 12px; font-size: 13px; color: #111; margin: 0; }
.ccm-current .ais-CurrentRefinements-categoryLabel { line-height: 1.25; }
.ccm-current .ais-CurrentRefinements-delete { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; border-radius: 50%; background: #dcdcdc; color: #333; font-size: 13px; line-height: 1; border: none; cursor: pointer; padding: 0; margin: 0; transition: background-color .12s ease, color .12s ease; }
.ccm-current .ais-CurrentRefinements-delete:hover { background: #161616; color: #fff; }

/* orden (sortBy) limpio y minimalista tipo Pioneer: sin caja, texto negro + chevron */
.ccm-sort .ais-SortBy-select {
	-webkit-appearance: none; appearance: none; border: none; background-color: transparent; box-shadow: none;
	font-size: 14px; font-weight: 600; color: #111; cursor: pointer; padding: 5px 24px 5px 6px; border-radius: 6px;
	background-image: 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='%23111' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat; background-position: right 4px center;
}
.ccm-sort .ais-SortBy-select:hover { background-color: #f4f4f4; }
/* en móvil el orden va DENTRO del popup de filtros (lo mueve el JS); ahí se ve como una sección */
@media (max-width: 860px) {
	.ccm-filters .ccm-sort { display: flex; width: 100%; margin: 0 0 8px; padding: 0 0 16px; border-bottom: 1px solid #e6e6e6; }
	.ccm-filters .ccm-sort::before { font-size: 16px; font-weight: 500; color: #000; }
	.ccm-filters .ccm-sort .ais-SortBy-select { margin-left: auto; font-size: 15px; }
}
.ccm-stats { color: #111; font-weight: 500; }

/* drawer mobile: padding propio + scroll + espacio para el botón "Ver N" (evita que recorte la última faceta).
   Va después del bloque v0.12 para ganar en la cascada sobre el padding de desktop. */
@media (max-width: 860px) {
	.ccm-filters { padding: 0; overflow: hidden; }
	.ccm-filters-head { flex: 0 0 auto; margin: 0; padding: 18px 18px 14px; }
	.ccm-filters-scroll { flex: 1 1 auto; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 8px 18px 18px; }
}

/* ============================================================
   v0.13 — Slider de rango (2 handles/círculos) para facetas tipo "Rango (deslizador)".
   Dos <input type=range> superpuestos sobre una pista, con relleno entre los handles.
   ============================================================ */
/* track e inputs en posición absoluta con CENTROS alineados (evita que los círculos queden desalineados) */
.ccm-slider { position: relative; padding: 22px 1px 0; }
.ccm-slider-track { position: absolute; left: 1px; right: 1px; top: 20px; height: 4px; border-radius: 999px; background: #e2e2e2; } /* centro en 22px */
.ccm-slider-fill { position: absolute; top: 0; height: 100%; border-radius: 999px; background: #161616; }
.ccm-slider-input { position: absolute; left: 0; top: 10px; width: 100%; height: 24px; margin: 0; padding: 0; background: none; pointer-events: none; -webkit-appearance: none; appearance: none; } /* thumb centrado en 10+12=22px */
.ccm-slider-input:focus { outline: none; }
/* el thumb SÍ recibe eventos; la pista no, para poder arrastrar cualquiera de los dos */
.ccm-slider-input::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; pointer-events: auto; width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 2px solid #161616; box-shadow: 0 1px 3px rgba(0,0,0,.2); cursor: pointer; }
.ccm-slider-input::-moz-range-thumb { pointer-events: auto; width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 2px solid #161616; box-shadow: 0 1px 3px rgba(0,0,0,.2); cursor: pointer; }
.ccm-slider-input::-webkit-slider-runnable-track { background: none; height: 24px; }
.ccm-slider-input::-moz-range-track { background: none; }
.ccm-slider-input:focus-visible::-webkit-slider-thumb { outline: 2px solid #111; outline-offset: 2px; }
.ccm-slider-vals { display: flex; justify-content: space-between; margin-top: 14px; font-size: 13px; color: #111; }
.ccm-slider-hi { color: #767676; }

/* facetas desplegables (acordeón): el <h4> es clickeable, con chevron que rota al colapsar */
.ccm-facet > h4 { display: flex; align-items: center; justify-content: space-between; gap: 8px; cursor: pointer; user-select: none; }
.ccm-facet > h4::after { content: ""; flex: 0 0 16px; width: 16px; height: 16px; background: 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='%23111' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat center; background-size: 16px; transition: transform .18s ease; }
.ccm-facet--collapsed > h4 { margin-bottom: 0; }
.ccm-facet--collapsed > h4::after { transform: rotate(-90deg); }
.ccm-facet--collapsed > *:not(h4) { display: none; }

/* ============================================================
   v0.13.11 — Skeleton loading: mientras InstantSearch no renderiza, se muestran placeholders
   con shimmer (evita ver el filtro/grid vacío y recortado). Al primer render el JS agrega
   .ccm-ready → se oculta el skeleton y se muestra el contenido real.
   ============================================================ */
.ccm-skeleton { display: grid; grid-template-columns: 260px 1fr; gap: var(--ccm-gap); }
.ccm-search.ccm-ready .ccm-skeleton { display: none; }
.ccm-search:not(.ccm-ready) .ccm-search-body { display: none; }
.ccm-skel-filters { display: flex; flex-direction: column; gap: 10px; }
.ccm-skel-group { display: flex; flex-direction: column; gap: 9px; padding: 12px 0 4px; border-top: 1px solid #f0f0f0; }
.ccm-skel-group:first-of-type { border-top: none; }
.ccm-skel-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--ccm-gap); align-content: start; }
.ccm-skel-bar { display: block; height: 13px; border-radius: 6px; }
.ccm-skel-bar--title { height: 22px; width: 45%; margin-bottom: 6px; }
.ccm-skel-bar--h { height: 15px; width: 55%; margin-bottom: 3px; }
.ccm-skel-card { aspect-ratio: 3 / 4; border-radius: 12px; }
.ccm-skel-bar, .ccm-skel-card { background: linear-gradient(90deg, #ececec 25%, #f7f7f7 37%, #ececec 63%); background-size: 400% 100%; animation: ccm-shimmer 1.4s ease infinite; }
@keyframes ccm-shimmer { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }
@media (max-width: 860px) {
	.ccm-skeleton { grid-template-columns: 1fr; }
	.ccm-skel-filters { display: none; } /* en móvil el filtro va en drawer; solo skeleton del grid */
	.ccm-skel-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (prefers-reduced-motion: reduce) { .ccm-skel-bar, .ccm-skel-card { animation: none; } }
