/* Folklore Product Filters 2.6.4 */

.ff-filters {
    --ff-ink: #102f4b;
    --ff-text: #315a80;
    --ff-muted: #718293;
    --ff-line: rgba(18, 59, 99, .12);
    --ff-soft: rgba(18, 59, 99, .055);
    --ff-active: #123b63;
    width: 100%;
    position: relative;
    color: var(--ff-text);
    font-family: inherit;
}

.ff-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    padding: 0 0 18px;
    border-bottom: 1px solid var(--ff-line);
}

.ff-eyebrow {
    display: block;
    margin-bottom: 4px;
    color: var(--ff-muted);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.ff-header h2 {
    margin: 0 !important;
    color: var(--ff-ink) !important;
    font-size: 23px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
}

.ff-clear,
.ff-active-clear,
.ff-more {
    color: var(--ff-muted) !important;
    font-size: 11px;
    font-weight: 650;
    text-decoration: none !important;
}

.ff-clear:hover,
.ff-active-clear:hover,
.ff-more:hover { color: var(--ff-ink) !important; }
.ff-clear.is-hidden { visibility: hidden; pointer-events: none; }

.ff-section {
    padding: 19px 0;
    border-bottom: 1px solid var(--ff-line);
}

.ff-section-title,
.ff-section-toggle {
    margin: 0 0 11px !important;
    color: var(--ff-ink) !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    line-height: 1.3 !important;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.ff-section-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin: 0 !important;
    padding: 0;
    border: 0;
    background: transparent;
    text-align: left;
    cursor: pointer;
}

.ff-chevron {
    display: block;
    width: 7px;
    height: 7px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg);
    transition: transform .2s ease;
}

[aria-expanded="true"] > .ff-chevron,
.ff-category-item.is-open > .ff-category-row .ff-chevron { transform: rotate(225deg); }

/* Categorías */
.ff-category-list {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.ff-category-item { margin: 0 !important; padding: 0 !important; list-style: none !important; }

.ff-category-row {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 38px;
    border-bottom: 1px solid rgba(18, 59, 99, .065);
}

.ff-category-row > a {
    flex: 1;
    padding: 8px 35px 8px 0;
    color: var(--ff-text) !important;
    font-size: 13px;
    font-weight: 520;
    line-height: 1.3;
    text-decoration: none !important;
    transition: color .16s ease, padding-left .16s ease;
}

.ff-category-row > a:hover { color: var(--ff-ink) !important; padding-left: 3px; }
.ff-category-item.is-current > .ff-category-row > a { color: var(--ff-ink) !important; font-weight: 750; }

.ff-category-toggle {
    position: absolute;
    top: 6px;
    right: 0;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--ff-text);
    cursor: pointer;
}
.ff-category-toggle:hover { background: var(--ff-soft); }

.ff-category-children[hidden] { display: none !important; }
.ff-category-children { padding-left: 13px; }
.ff-category-children .ff-category-row { min-height: 33px; border-bottom: 0; }
.ff-category-children .ff-category-row > a {
    padding-top: 5px;
    padding-bottom: 5px;
    color: #5c7488 !important;
    font-size: 12px;
    font-weight: 450;
    border-left: 1px solid rgba(18, 59, 99, .13);
    padding-left: 11px;
}
.ff-category-children .ff-category-row > a:hover { padding-left: 14px; color: var(--ff-ink) !important; }

/* Opciones */
.ff-options { display: flex; flex-direction: column; gap: 2px; }

.ff-option {
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 31px;
    padding: 5px 6px;
    border-radius: 5px;
    color: #536d82 !important;
    font-size: 12.5px;
    line-height: 1.25;
    text-decoration: none !important;
    transition: color .15s ease, background .15s ease;
}
.ff-option:hover { color: var(--ff-ink) !important; background: var(--ff-soft); }
.ff-option.is-active { color: var(--ff-ink) !important; background: rgba(18, 59, 99, .08); font-weight: 650; }
.ff-option[aria-disabled="true"] { opacity: .38; cursor: not-allowed; pointer-events: none; }

.ff-check {
    position: relative;
    flex: 0 0 15px;
    width: 15px;
    height: 15px;
    box-sizing: border-box;
    border: 1px solid rgba(18, 59, 99, .27);
    border-radius: 4px;
    background: #fff;
}
.ff-option.is-active .ff-check { border-color: var(--ff-active); background: var(--ff-active); }
.ff-option.is-active .ff-check::after {
    content: "";
    position: absolute;
    left: 4px;
    top: 1px;
    width: 4px;
    height: 7px;
    border-right: 1.5px solid #fff;
    border-bottom: 1.5px solid #fff;
    transform: rotate(45deg);
}

/* Precio */
.ff-price-form { margin: 0; }
.ff-price-slider {
    --ff-price-start: 0%;
    --ff-price-end: 100%;
    position: relative;
    height: 26px;
    margin: 2px 4px 6px;
}
.ff-price-slider[hidden] { display: none !important; }
.ff-price-track {
    position: absolute;
    top: 12px;
    left: 0;
    right: 0;
    height: 3px;
    border-radius: 99px;
    background: linear-gradient(to right,
        #d9e0e6 0 var(--ff-price-start),
        var(--ff-active) var(--ff-price-start) var(--ff-price-end),
        #d9e0e6 var(--ff-price-end) 100%);
}
.ff-price-slider input[type="range"] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 26px;
    margin: 0;
    padding: 0;
    background: transparent;
    pointer-events: none;
    appearance: none;
    -webkit-appearance: none;
}
.ff-price-slider input[type="range"]::-webkit-slider-thumb {
    width: 15px;
    height: 15px;
    border: 2px solid #fff;
    border-radius: 50%;
    background: var(--ff-active);
    box-shadow: 0 0 0 1px rgba(18, 59, 99, .25);
    pointer-events: auto;
    cursor: grab;
    -webkit-appearance: none;
}
.ff-price-slider input[type="range"]::-moz-range-thumb {
    width: 15px;
    height: 15px;
    border: 2px solid #fff;
    border-radius: 50%;
    background: var(--ff-active);
    box-shadow: 0 0 0 1px rgba(18, 59, 99, .25);
    pointer-events: auto;
    cursor: grab;
}
.ff-price-values { margin-bottom: 8px; color: var(--ff-text); font-size: 11px; font-weight: 650; }

.ff-price-inputs {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: end;
    gap: 7px;
}
.ff-price-inputs label > span {
    display: block;
    margin-bottom: 4px;
    color: var(--ff-muted);
    font-size: 9px;
    font-weight: 750;
    letter-spacing: .05em;
    text-transform: uppercase;
}
.ff-price-inputs input {
    width: 100% !important;
    min-width: 0;
    height: 35px !important;
    padding: 0 8px !important;
    border: 1px solid var(--ff-line) !important;
    border-radius: 5px !important;
    background: #fff !important;
    color: var(--ff-ink) !important;
    font-size: 12px !important;
    box-shadow: none !important;
}
.ff-price-inputs input:focus { outline: none !important; border-color: var(--ff-active) !important; box-shadow: 0 0 0 2px rgba(18, 59, 99, .07) !important; }
.ff-price-separator { padding-bottom: 8px; color: #9aa7b2; }
.ff-price-apply {
    width: 100%;
    margin-top: 9px;
    padding: 8px 10px;
    border: 1px solid var(--ff-active);
    border-radius: 5px;
    background: transparent;
    color: var(--ff-active);
    font-size: 11px;
    font-weight: 750;
    cursor: pointer;
    transition: background .15s ease, color .15s ease;
}
.ff-price-apply:hover { background: var(--ff-active); color: #fff; }

/* Marcas */
.ff-brand-search { display: block; margin-bottom: 7px; }
.ff-brand-search input {
    width: 100%;
    height: 34px;
    padding: 0 10px;
    border: 1px solid var(--ff-line);
    border-radius: 5px;
    background: #fff;
    color: var(--ff-ink);
    font-size: 12px;
    box-shadow: none;
}
.ff-brand-search input:focus { outline: none; border-color: var(--ff-active); box-shadow: 0 0 0 2px rgba(18, 59, 99, .07); }
.ff-more { margin-top: 7px; padding: 0; border: 0; background: transparent; cursor: pointer; }

/* Características */
.ff-characteristics .ff-section-toggle { margin-bottom: 0 !important; }
.ff-characteristics-content { padding-top: 12px; }
.ff-characteristics-content[hidden] { display: none !important; }
.ff-attribute { padding: 11px 0; border-top: 1px solid rgba(18, 59, 99, .07); }
.ff-attribute:first-child { padding-top: 2px; border-top: 0; }
.ff-attribute-title { margin: 0 0 5px !important; color: var(--ff-text) !important; font-size: 11px !important; font-weight: 750 !important; }

/* Chips activos */
.ff-active { display: flex; flex-wrap: wrap; gap: 6px; }
.ff-active--sidebar { padding: 11px 0 2px; }
.ff-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    max-width: 100%;
    padding: 5px 8px;
    border: 1px solid var(--ff-line);
    border-radius: 999px;
    background: #fff;
    color: var(--ff-text) !important;
    font-size: 10.5px;
    line-height: 1.2;
    text-decoration: none !important;
}
.ff-chip:hover { border-color: rgba(18, 59, 99, .3); color: var(--ff-ink) !important; }

.ff-active--results {
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 14px;
    padding: 10px 0;
    border-bottom: 1px solid var(--ff-line);
}
.ff-active-chips { display: flex; flex-wrap: wrap; gap: 6px; }

/* Carga: mantiene geometría y evita el salto visual */
.ff-results { position: relative; }
.ff-results.is-loading { min-height: 220px; }
.ff-results.is-loading > * { opacity: .32; transition: opacity .12s ease; }
.ff-results.is-loading::after {
    content: "";
    position: absolute;
    top: 58px;
    left: 0;
    right: 0;
    height: 4px;
    overflow: hidden;
    background: linear-gradient(90deg, transparent, rgba(18, 59, 99, .20), transparent);
    background-size: 40% 100%;
    animation: ff-loading 1s linear infinite;
}
@keyframes ff-loading { from { background-position: -60% 0; } to { background-position: 160% 0; } }

/* Estado vacío: convierte la falta de stock en una vía clara de consulta. */
.ff-empty-state {
    width: 100%;
    box-sizing: border-box;
    padding: clamp(28px, 5vw, 54px);
    border: 1px solid rgba(18, 59, 99, .14);
    background: #f5f1dc;
    color: #315a80;
}

.ff-empty-eyebrow {
    display: block;
    margin-bottom: 10px;
    color: #96733d;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.ff-empty-state h2 {
    max-width: 680px;
    margin: 0 !important;
    color: #102f4b !important;
    font-size: clamp(24px, 3.2vw, 38px) !important;
    font-weight: 750 !important;
    line-height: 1.08 !important;
}

.ff-empty-state p {
    max-width: 680px;
    margin: 16px 0 0;
    font-size: 15px;
    line-height: 1.7;
}

.ff-empty-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.ff-empty-whatsapp,
.ff-empty-clear {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    box-sizing: border-box;
    padding: 11px 17px;
    border: 1px solid #102f4b;
    border-radius: 0;
    font-size: 12px;
    font-weight: 750;
    line-height: 1.2;
    text-decoration: none !important;
}

.ff-empty-whatsapp {
    background: #102f4b;
    color: #fff !important;
}

.ff-empty-clear {
    background: transparent;
    color: #102f4b !important;
}

.ff-empty-whatsapp:hover,
.ff-empty-whatsapp:focus-visible {
    border-color: #96733d;
    background: #96733d;
    color: #fff !important;
}

.ff-empty-clear:hover,
.ff-empty-clear:focus-visible {
    background: rgba(18, 59, 99, .08);
    color: #102f4b !important;
}

.ff-empty-whatsapp:focus-visible,
.ff-empty-clear:focus-visible {
    outline: 3px solid rgba(18, 59, 99, .28);
    outline-offset: 3px;
}

/* Controles de layout: el JS los inserta sólo cuando existen sidebar y resultados. */
.ff-layout-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 38px;
    margin: 0;
    padding: 0 12px;
    border: 1px solid currentColor;
    border-radius: 0;
    background: transparent;
    color: currentColor;
    font: inherit;
    font-size: 11px;
    font-weight: 650;
    line-height: 1;
    letter-spacing: .045em;
    cursor: pointer;
}

.ff-layout-toggle__icon {
    display: grid;
    width: 15px;
    gap: 3px;
}

.ff-layout-toggle__icon i {
    display: block;
    height: 1px;
    background: currentColor;
    transition: width .2s ease, transform .2s ease;
}

.ff-layout-toggle__icon i:nth-child(1) { width: 15px; }
.ff-layout-toggle__icon i:nth-child(2) { width: 10px; }
.ff-layout-toggle__icon i:nth-child(3) { width: 6px; }

.ff-drawer-close,
.ff-filter-backdrop {
    display: none;
}

/* La animación se activa sólo tras inicializar JS; sin JS las tarjetas permanecen visibles. */
.ff-reveal-card {
    opacity: 0;
    transform: translateY(14px);
    transition:
        opacity .42s ease var(--ff-reveal-delay, 0ms),
        transform .42s cubic-bezier(.22, .75, .24, 1) var(--ff-reveal-delay, 0ms);
}

.ff-reveal-card.is-revealed {
    opacity: 1;
    transform: none;
}

.ff-filters.is-loading { pointer-events: none; }
.ff-filters.is-loading::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,.25);
}

@media (prefers-reduced-motion: reduce) {
    .ff-chevron,
    .ff-category-row > a,
    .ff-option,
    .ff-results.is-loading > * { transition: none !important; }
    .ff-results.is-loading::after { animation: none; }
    .ff-reveal-card { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* Coincide con el breakpoint de navegación/sidebar de Blocksy. */
@media (max-width: 999px) {
    .ff-header h2 { font-size: 21px !important; }
    .ff-section { padding: 16px 0; }
    .ff-option { min-height: 36px; }
    .ff-category-row { min-height: 42px; }
    .ff-category-toggle { top: 0; width: 44px; height: 44px; }
    .ff-active--results { align-items: flex-start; flex-direction: column; }

    .ff-layout-toggle {
        min-height: 44px;
        padding-inline: 15px;
        font-size: 12px;
    }

    .ff-drawer-close {
        position: absolute;
        z-index: 3;
        top: 14px;
        right: 14px;
        display: grid;
        place-items: center;
        width: 44px;
        height: 44px;
        padding: 0;
        border: 1px solid rgba(239, 240, 200, .32);
        border-radius: 50%;
        background: transparent;
        color: #eff0c8;
        cursor: pointer;
    }

    .ff-drawer-close span,
    .ff-drawer-close span::after {
        display: block;
        width: 17px;
        height: 1px;
        background: currentColor;
        transform: rotate(45deg);
    }

    .ff-drawer-close span::after {
        content: "";
        transform: rotate(90deg);
    }

    .ff-filter-backdrop {
        position: fixed;
        z-index: 99997;
        inset: 0;
        display: block;
        width: 100%;
        height: 100%;
        padding: 0;
        border: 0;
        background: rgba(13, 11, 12, .42);
        opacity: 0;
        cursor: default;
        transition: opacity .25s ease;
    }

    .ff-filter-backdrop[hidden] { display: none !important; }
    .ff-mobile-filters-open .ff-filter-backdrop { opacity: 1; }
}

@media (max-width: 520px) {
    .ff-empty-state { padding: 26px 20px; }
    .ff-empty-actions { align-items: stretch; flex-direction: column; }
    .ff-empty-whatsapp,
    .ff-empty-clear { width: 100%; }
}

/* =========================================================
   FOLKLORE — SISTEMA VISUAL DEL COMPONENTE
   Fuente única de estilos del sidebar y resultados.
   ========================================================= */
#folklore-filters,
#folklore-product-results {
	--ff-crema: #EFF0C8;
	--ff-crema-60: rgba(239, 240, 200, .55);
	--ff-negro: #0D0B0C;
	--ff-wood: #D0A561;
	--ff-wood-ink: #8A5F26;
	--ff-gray-1: #CFC8C2;
	--ff-gray-2: #8A867C;
	--ff-gray-3: #454340;
	--ff-line: rgba(13, 11, 12, .14);
	--ff-line-strong: rgba(13, 11, 12, .3);
	--ff-radius: 3px;
	--ff-font-narrow: "Archivo", "Arial Narrow", "Aptos Narrow", Arial, sans-serif;
	--ff-font-condensed: "Archivo", "Arial Narrow", "Aptos Narrow", Arial, sans-serif;
	--ff-font-wide: "Archivo", "Arial Black", "Aptos Display", Arial, sans-serif;

	color: var(--ff-negro);
	font-family: var(--ff-font-narrow);
}

/* ---------- Estructura general ---------- */

#folklore-filters.ff-filters {
	background: var(--ff-crema);
	border: 1px solid var(--ff-line);
	border-radius: var(--ff-radius);
	padding: 28px 24px 32px;
}

.ff-header {
	position: relative;
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 12px;
	padding-bottom: 18px;
	margin-bottom: 22px;
	border-bottom: 1px solid var(--ff-line-strong);
}

/* Acento del pentagrama (Manual, pág. 28) como línea de firma bajo el título. */
.ff-header::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: -1px;
	height: 6px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 12' preserveAspectRatio='none'%3E%3Cpath d='M0 9 C 40 2, 80 11, 120 5 S 200 -1, 240 6' fill='none' stroke='%23D0A561' stroke-width='1.4'/%3E%3C/svg%3E");
	background-repeat: repeat-x;
	background-size: 120px 6px;
	opacity: .9;
}

.ff-eyebrow {
	display: block;
	font-family: var(--ff-font-condensed);
	font-stretch: 75%;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--ff-gray-2);
}

.ff-header h2 {
	margin: 2px 0 0;
	font-family: var(--ff-font-wide);
	font-stretch: 125%;
	font-weight: 800;
	font-size: 26px;
	line-height: 1;
	letter-spacing: -.01em;
	color: var(--ff-negro);
}

.ff-clear {
	font-family: var(--ff-font-condensed);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: var(--ff-gray-3);
	text-decoration: none;
	border-bottom: 1px solid var(--ff-gray-2);
	padding-bottom: 1px;
	white-space: nowrap;
	transition: color .15s ease, border-color .15s ease;
}

.ff-clear:hover { color: var(--ff-negro); border-color: var(--ff-negro); }
.ff-clear.is-hidden { display: none; }

/* ---------- Chips activos ---------- */

.ff-active {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-bottom: 22px;
}

.ff-active--results {
	justify-content: space-between;
	padding: 12px 16px;
	background: var(--ff-crema);
	border: 1px solid var(--ff-line);
	border-radius: var(--ff-radius);
	margin-bottom: 20px;
}

.ff-active-chips { display: flex; flex-wrap: wrap; gap: 8px; }

.ff-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 10px;
	background: var(--ff-negro);
	color: var(--ff-crema) !important;
	border-radius: var(--ff-radius);
	font-family: var(--ff-font-condensed);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .02em;
	text-decoration: none;
	line-height: 1;
	transition: background .15s ease;
}

.ff-chip:hover { background: var(--ff-wood-ink); }
.ff-chip span[aria-hidden] { font-size: 13px; opacity: .75; }

.ff-active-clear {
	font-family: var(--ff-font-condensed);
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .04em;
	color: var(--ff-gray-3);
	text-decoration: underline;
	white-space: nowrap;
}

.ff-active-clear:hover { color: var(--ff-negro); }

/* ---------- Secciones ---------- */

.ff-section {
	padding: 20px 0;
	border-bottom: 1px solid var(--ff-line);
}

.ff-section:first-of-type { padding-top: 0; }

.ff-section-title,
.ff-attribute-title {
	font-family: var(--ff-font-condensed);
	font-stretch: 78%;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--ff-negro);
	margin: 0 0 14px;
}

.ff-attribute-title { font-size: 12px; margin-bottom: 10px; color: var(--ff-gray-3); }

/* ---------- Categorías ---------- */

.ff-category-list { list-style: none; margin: 0; padding: 0; }
.ff-category-list .ff-category-list { padding-left: 14px; margin-top: 6px; border-left: 1px solid var(--ff-line); }

.ff-category-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	padding: 7px 0;
}

.ff-category-row a {
	font-family: var(--ff-font-narrow);
	font-stretch: 88%;
	font-size: 14px;
	font-weight: 500;
	color: var(--ff-gray-3);
	text-decoration: none;
	transition: color .15s ease;
}

.ff-category-item[data-depth="0"] > .ff-category-row a {
	font-family: var(--ff-font-condensed);
	font-stretch: 78%;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .02em;
	text-transform: uppercase;
	color: var(--ff-negro);
}

.ff-category-row a:hover { color: var(--ff-wood-ink); }
.ff-category-item.is-current > .ff-category-row a { color: var(--ff-wood-ink); }

.ff-category-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
	flex: none;
}

.ff-chevron {
	width: 7px;
	height: 7px;
	border-right: 1.5px solid var(--ff-gray-2);
	border-bottom: 1.5px solid var(--ff-gray-2);
	transform: rotate(-45deg);
	transition: transform .15s ease;
}

.ff-category-item.is-open > .ff-category-row .ff-chevron { transform: rotate(45deg); }

/* ---------- Precio ---------- */

.ff-price-track { background: var(--ff-gray-1); }

.ff-price-slider input[type="range"] { accent-color: var(--ff-wood); }

.ff-price-values {
	font-family: var(--ff-font-condensed);
	font-size: 12px;
	color: var(--ff-gray-3);
}

.ff-price-inputs { display: flex; align-items: flex-end; gap: 10px; margin-top: 14px; }

.ff-price-inputs label { flex: 1; display: flex; flex-direction: column; gap: 6px; }

.ff-price-inputs span {
	font-family: var(--ff-font-condensed);
	font-size: 10px;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--ff-gray-2);
}

.ff-price-inputs input {
	width: 100%;
	padding: 9px 10px;
	border: 1px solid var(--ff-line-strong);
	border-radius: var(--ff-radius);
	background: #fff;
	font-family: var(--ff-font-narrow);
	font-size: 13px;
	color: var(--ff-negro);
}

.ff-price-inputs input:focus { outline: 2px solid var(--ff-wood); outline-offset: 1px; }
.ff-price-separator { padding-bottom: 10px; color: var(--ff-gray-2); }

.ff-price-apply {
	width: 100%;
	margin-top: 14px;
	padding: 11px 14px;
	background: var(--ff-negro);
	color: var(--ff-crema);
	border: 0;
	border-radius: var(--ff-radius);
	font-family: var(--ff-font-condensed);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
	cursor: pointer;
	transition: background .15s ease;
}

.ff-price-apply:hover { background: var(--ff-wood-ink); }

/* ---------- Opciones genéricas (stock, características) ---------- */

.ff-option {
	display: flex;
	align-items: center;
	gap: 9px;
	padding: 8px 2px;
	color: var(--ff-gray-3);
	text-decoration: none;
	font-family: var(--ff-font-narrow);
	font-size: 14px;
	transition: color .15s ease;
}

.ff-option:hover { color: var(--ff-negro); }

.ff-check {
	flex: none;
	width: 16px;
	height: 16px;
	border: 1.5px solid var(--ff-line-strong);
	border-radius: 2px;
	position: relative;
	transition: border-color .15s ease, background .15s ease;
}

.ff-option.is-active .ff-check {
	background: var(--ff-negro);
	border-color: var(--ff-negro);
}

.ff-option.is-active .ff-check::after {
	content: "";
	position: absolute;
	left: 4px;
	top: 1px;
	width: 4px;
	height: 8px;
	border-right: 1.5px solid var(--ff-crema);
	border-bottom: 1.5px solid var(--ff-crema);
	transform: rotate(45deg);
}

.ff-option.is-active { color: var(--ff-negro); font-weight: 600; }

/* Características: acordeón */

.ff-section-toggle {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
	font-family: var(--ff-font-condensed);
	font-stretch: 78%;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--ff-negro);
}

.ff-characteristics.is-open .ff-section-toggle .ff-chevron,
.ff-section-toggle[aria-expanded="true"] .ff-chevron { transform: rotate(45deg); }

.ff-characteristics-content { margin-top: 16px; display: flex; flex-direction: column; gap: 18px; }

/* ---------- Marcas ---------- */

.ff-brand-search {
	display: block;
	margin-bottom: 12px;
}

.ff-brand-search input {
	width: 100%;
	padding: 9px 10px;
	border: 1px solid var(--ff-line-strong);
	border-radius: var(--ff-radius);
	background: #fff;
	font-family: var(--ff-font-narrow);
	font-size: 13px;
}

.ff-brand-search input:focus { outline: 2px solid var(--ff-wood); outline-offset: 1px; }

.ff-brands .ff-options {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px;
}

.ff-brands .ff-option[hidden] {
	display: none !important;
}

.ff-brands .ff-option {
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 0;
	min-height: 42px;
	padding: 7px 8px;
	border: 1px solid var(--ff-line-strong);
	border-radius: var(--ff-radius);
	background: #fff;
	color: var(--ff-gray-3) !important;
	font-family: var(--ff-font-condensed);
	font-stretch: 82%;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .02em;
	text-transform: uppercase;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	transition: border-color .15s ease, background .15s ease, color .15s ease, box-shadow .15s ease;
}

.ff-brands .ff-check { display: none; }

.ff-brands .ff-option-label {
	min-width: 0;
	max-width: 100%;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.ff-brands .ff-option:hover {
	border-color: var(--ff-wood);
	background: var(--ff-crema-60);
	color: var(--ff-negro) !important;
}

.ff-brands .ff-option.is-active {
	border-color: var(--ff-negro);
	background: var(--ff-negro);
	color: var(--ff-crema) !important;
	box-shadow: none;
}

.ff-brands .ff-more {
	display: inline-flex;
	align-items: center;
	margin-top: 12px;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--ff-gray-3);
	font-family: var(--ff-font-condensed);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .04em;
	text-transform: uppercase;
	cursor: pointer;
}

.ff-brands .ff-more:hover { color: var(--ff-wood-ink); }

/* ---------- Normalización frente a Blocksy y filters.css ---------- */

#folklore-filters,
#folklore-filters *,
#folklore-product-results,
#folklore-product-results * {
	box-sizing: border-box;
}

#folklore-filters.ff-filters {
	position: relative;
	isolation: isolate;
	color: var(--ff-negro) !important;
	background: var(--ff-crema) !important;
	border-color: var(--ff-line) !important;
	box-shadow: none;
}

#folklore-filters .ff-header h2,
#folklore-filters .ff-section-title,
#folklore-filters .ff-section-toggle,
#folklore-filters .ff-attribute-title {
	color: var(--ff-negro) !important;
}

#folklore-filters .ff-eyebrow {
	color: var(--ff-gray-2) !important;
}

#folklore-filters .ff-section {
	border-color: var(--ff-line) !important;
}

#folklore-filters .ff-category-row {
	border-color: rgba(13, 11, 12, .08) !important;
}

#folklore-filters .ff-category-row > a,
#folklore-filters .ff-category-children .ff-category-row > a {
	color: var(--ff-gray-3) !important;
}

#folklore-filters .ff-category-item[data-depth="0"] > .ff-category-row > a,
#folklore-filters .ff-category-item.is-current > .ff-category-row > a,
#folklore-filters .ff-category-row > a:hover {
	color: var(--ff-negro) !important;
}

#folklore-filters .ff-category-item.is-current > .ff-category-row > a {
	text-decoration: underline !important;
	text-decoration-color: var(--ff-wood) !important;
	text-decoration-thickness: 2px !important;
	text-underline-offset: 4px;
}

#folklore-filters .ff-category-toggle {
	color: var(--ff-gray-3) !important;
}

#folklore-filters .ff-category-toggle:hover {
	background: rgba(208, 165, 97, .2) !important;
}

#folklore-filters .ff-option {
	color: var(--ff-gray-3) !important;
	background: transparent;
}

#folklore-filters .ff-option:hover {
	color: var(--ff-negro) !important;
	background: rgba(208, 165, 97, .13);
}

#folklore-filters .ff-option.is-active {
	color: var(--ff-negro) !important;
	background: rgba(208, 165, 97, .22);
}

#folklore-filters .ff-check {
	border-color: var(--ff-line-strong) !important;
	background: #fff !important;
}

#folklore-filters .ff-option.is-active .ff-check {
	border-color: var(--ff-negro) !important;
	background: var(--ff-negro) !important;
}

#folklore-filters .ff-brands .ff-options {
	display: grid !important;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px;
}

#folklore-filters .ff-brands .ff-option {
	display: flex;
	color: var(--ff-gray-3) !important;
	background: rgba(255, 255, 255, .72) !important;
	border-color: var(--ff-line-strong) !important;
}

#folklore-filters .ff-brands .ff-option[hidden] {
	display: none !important;
}

#folklore-filters .ff-brands .ff-option:hover {
	color: var(--ff-negro) !important;
	background: #fff !important;
	border-color: var(--ff-wood) !important;
	transform: translateY(-1px);
}

#folklore-filters .ff-brands .ff-option.is-active {
	color: var(--ff-crema) !important;
	background: var(--ff-negro) !important;
	border-color: var(--ff-negro) !important;
}

#folklore-filters input[type="search"],
#folklore-filters input[type="number"] {
	color: var(--ff-negro) !important;
	background: rgba(255, 255, 255, .82) !important;
	border-color: var(--ff-line-strong) !important;
	border-radius: var(--ff-radius) !important;
	box-shadow: none !important;
}

#folklore-filters input::placeholder {
	color: var(--ff-gray-2);
	opacity: 1;
}

#folklore-filters .ff-price-track {
	background: linear-gradient(to right,
		var(--ff-gray-1) 0 var(--ff-price-start),
		var(--ff-negro) var(--ff-price-start) var(--ff-price-end),
		var(--ff-gray-1) var(--ff-price-end) 100%) !important;
}

#folklore-filters .ff-price-slider input[type="range"]::-webkit-slider-thumb {
	background: var(--ff-negro) !important;
	box-shadow: 0 0 0 2px var(--ff-crema), 0 0 0 3px var(--ff-negro) !important;
}

#folklore-filters .ff-price-slider input[type="range"]::-moz-range-thumb {
	background: var(--ff-negro) !important;
	box-shadow: 0 0 0 2px var(--ff-crema), 0 0 0 3px var(--ff-negro) !important;
}

#folklore-filters .ff-price-apply {
	color: var(--ff-crema) !important;
	background: var(--ff-negro) !important;
	border-color: var(--ff-negro) !important;
}

#folklore-filters .ff-price-apply:hover {
	color: var(--ff-negro) !important;
	background: var(--ff-wood) !important;
	border-color: var(--ff-wood) !important;
}

#folklore-filters :where(a, button, input):focus-visible {
	outline: 2px solid var(--ff-negro) !important;
	outline-offset: 3px;
}

#folklore-filters .ff-clear,
#folklore-filters .ff-more,
#folklore-filters .ff-active-clear {
	color: var(--ff-gray-3) !important;
}

#folklore-filters .ff-clear:hover,
#folklore-filters .ff-more:hover,
#folklore-filters .ff-active-clear:hover {
	color: var(--ff-negro) !important;
}

@media (max-width: 1024px) {
	#folklore-filters.ff-filters {
		padding: 22px 18px 26px;
	}
}

@media (max-width: 768px) {
	#folklore-filters.ff-filters {
		padding: 20px 16px 24px;
	}

	#folklore-filters .ff-header h2 {
		font-size: 24px !important;
	}

	#folklore-filters .ff-brands .ff-option {
		min-height: 44px;
	}
}

@media (prefers-reduced-motion: reduce) {
	#folklore-filters .ff-brands .ff-option:hover {
		transform: none;
	}
}

/* ---------- Dirección visual editorial premium ---------- */

#folklore-filters.ff-filters {
	overflow: hidden;
	padding: 0 14px 18px;
	border: 1px solid rgba(13, 11, 12, .22) !important;
	border-radius: 8px;
	background:
		radial-gradient(circle at 100% 0, rgba(208, 165, 97, .23), transparent 32%),
		var(--ff-crema) !important;
	box-shadow:
		0 18px 42px rgba(13, 11, 12, .10),
		0 4px 0 rgba(208, 165, 97, .75);
}

#folklore-filters .ff-header {
	position: relative;
	align-items: center;
	min-height: 126px;
	margin: 0 -14px 14px;
	padding: 27px 24px 34px;
	border: 0;
	background:
		linear-gradient(135deg, rgba(208, 165, 97, .14), transparent 42%),
		var(--ff-negro);
}

#folklore-filters .ff-header::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 5px;
	background: var(--ff-wood);
}

#folklore-filters .ff-header::after {
	left: 24px;
	right: 24px;
	bottom: 18px;
	height: 10px;
	background-image:
		linear-gradient(to bottom,
			transparent 0 1px,
			rgba(239, 240, 200, .28) 1px 2px,
			transparent 2px 3px,
			rgba(239, 240, 200, .28) 3px 4px,
			transparent 4px 5px,
			rgba(239, 240, 200, .28) 5px 6px,
			transparent 6px 7px,
			rgba(239, 240, 200, .28) 7px 8px,
			transparent 8px 9px,
			rgba(239, 240, 200, .28) 9px 10px);
	background-size: 100% 10px;
	opacity: 1;
}

#folklore-filters .ff-eyebrow {
	display: inline-flex;
	align-items: center;
	margin-bottom: 8px;
	padding: 4px 7px 3px;
	border: 1px solid rgba(208, 165, 97, .72);
	border-radius: 999px;
	color: var(--ff-wood) !important;
	font-size: 9px;
	letter-spacing: .18em;
}

#folklore-filters .ff-header h2 {
	color: var(--ff-crema) !important;
	font-size: clamp(27px, 8vw, 34px) !important;
	font-weight: 900 !important;
	letter-spacing: -.035em;
}

#folklore-filters .ff-header .ff-clear {
	align-self: flex-start;
	margin-top: 8px;
	padding: 7px 9px 6px;
	border: 1px solid rgba(239, 240, 200, .28);
	border-radius: 999px;
	color: var(--ff-crema) !important;
	text-decoration: none;
}

#folklore-filters .ff-header .ff-clear:hover {
	border-color: var(--ff-wood);
	color: var(--ff-wood) !important;
}

#folklore-filters .ff-active--sidebar {
	margin: 0 0 12px;
	padding: 4px;
}

#folklore-filters .ff-section {
	position: relative;
	margin: 10px 0 0;
	padding: 18px 16px;
	border: 1px solid rgba(13, 11, 12, .11) !important;
	border-radius: 7px;
	background: rgba(255, 255, 255, .38);
	box-shadow: 0 2px 0 rgba(13, 11, 12, .035);
}

#folklore-filters .ff-section:first-of-type {
	padding-top: 18px;
}

#folklore-filters .ff-section-title,
#folklore-filters .ff-section-toggle {
	position: relative;
	font-size: 11px !important;
	letter-spacing: .12em;
}

#folklore-filters .ff-section-title {
	display: flex;
	align-items: center;
	gap: 9px;
	margin-bottom: 13px !important;
}

#folklore-filters .ff-section-title::before {
	content: "";
	width: 7px;
	height: 7px;
	flex: 0 0 7px;
	border-radius: 1px;
	background: var(--ff-wood);
	box-shadow: 3px 3px 0 rgba(13, 11, 12, .13);
}

#folklore-filters .ff-categories {
	background: rgba(255, 255, 255, .5);
}

#folklore-filters .ff-category-row {
	min-height: 42px;
	padding: 3px 7px 3px 10px;
	border-bottom: 0 !important;
	border-radius: 5px;
	transition: background .16s ease, transform .16s ease;
}

#folklore-filters .ff-category-item + .ff-category-item {
	margin-top: 2px !important;
}

#folklore-filters .ff-category-row:hover {
	background: rgba(208, 165, 97, .16);
	transform: translateX(2px);
}

#folklore-filters .ff-category-item[data-depth="0"] > .ff-category-row > a {
	font-size: 12px;
	letter-spacing: .035em;
}

#folklore-filters .ff-category-toggle {
	position: static;
	width: 44px;
	height: 44px;
	border: 1px solid transparent;
	border-radius: 50%;
}

#folklore-filters .ff-category-toggle:hover {
	border-color: rgba(208, 165, 97, .65);
}

#folklore-filters .ff-category-children {
	margin: 2px 0 7px 10px;
	padding-left: 8px;
	border-left: 2px solid var(--ff-wood);
}

#folklore-filters .ff-category-children .ff-category-row {
	min-height: 34px;
	padding-left: 7px;
}

#folklore-filters .ff-price-section {
	color: var(--ff-crema);
	background:
		linear-gradient(145deg, rgba(208, 165, 97, .11), transparent 46%),
		var(--ff-negro);
	border-color: var(--ff-negro) !important;
	box-shadow: 0 5px 14px rgba(13, 11, 12, .14);
}

#folklore-filters .ff-price-section .ff-section-title {
	color: var(--ff-crema) !important;
}

#folklore-filters .ff-price-section .ff-section-title::before {
	background: var(--ff-wood);
	box-shadow: 3px 3px 0 rgba(239, 240, 200, .14);
}

#folklore-filters .ff-price-values {
	color: var(--ff-crema) !important;
}

#folklore-filters .ff-price-inputs label > span,
#folklore-filters .ff-price-separator {
	color: var(--ff-gray-1) !important;
}

#folklore-filters .ff-price-inputs input {
	border-color: rgba(239, 240, 200, .32) !important;
	background: rgba(255, 255, 255, .96) !important;
}

#folklore-filters .ff-price-track {
	background: linear-gradient(to right,
		rgba(239, 240, 200, .24) 0 var(--ff-price-start),
		var(--ff-wood) var(--ff-price-start) var(--ff-price-end),
		rgba(239, 240, 200, .24) var(--ff-price-end) 100%) !important;
}

#folklore-filters .ff-price-slider input[type="range"]::-webkit-slider-thumb {
	background: var(--ff-wood) !important;
	box-shadow: 0 0 0 2px var(--ff-negro), 0 0 0 3px var(--ff-crema) !important;
}

#folklore-filters .ff-price-slider input[type="range"]::-moz-range-thumb {
	background: var(--ff-wood) !important;
	box-shadow: 0 0 0 2px var(--ff-negro), 0 0 0 3px var(--ff-crema) !important;
}

#folklore-filters .ff-price-apply {
	color: var(--ff-negro) !important;
	background: var(--ff-wood) !important;
	border-color: var(--ff-wood) !important;
	box-shadow: 0 3px 0 #76501f;
	transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}

#folklore-filters .ff-price-apply:hover {
	transform: translateY(-1px);
	box-shadow: 0 4px 0 #76501f;
}

#folklore-filters .ff-stock .ff-option {
	min-height: 43px;
	padding: 8px 11px;
	border: 1px solid var(--ff-line);
	border-radius: 6px;
	background: rgba(255, 255, 255, .62);
}

#folklore-filters .ff-stock .ff-option.is-active {
	background: rgba(208, 165, 97, .2);
	border-color: var(--ff-wood);
}

#folklore-filters .ff-brand-search input {
	height: 42px;
	padding-left: 13px;
	border-radius: 6px !important;
}

#folklore-filters .ff-brands .ff-option {
	position: relative;
	min-height: 46px;
	padding: 8px 10px;
	border-radius: 6px;
	box-shadow: 0 2px 0 rgba(13, 11, 12, .06);
	transition: transform .15s ease, border-color .15s ease, background .15s ease, box-shadow .15s ease;
}

#folklore-filters .ff-brands .ff-option.is-active::after {
	content: "✓";
	position: absolute;
	top: 4px;
	right: 6px;
	color: var(--ff-wood);
	font-family: Arial, sans-serif;
	font-size: 10px;
	font-weight: 700;
}

#folklore-filters .ff-brands .ff-more {
	min-height: 32px;
	margin-top: 10px;
	padding: 0 11px;
	border: 1px solid var(--ff-line);
	border-radius: 999px;
	background: rgba(255, 255, 255, .48);
}

#folklore-filters .ff-brands .ff-more::after {
	content: "+";
	margin-left: 7px;
	color: var(--ff-wood-ink);
	font-size: 15px;
	line-height: 1;
}

#folklore-filters .ff-brands .ff-more[aria-expanded="true"]::after {
	content: "−";
}

#folklore-filters .ff-characteristics .ff-section-toggle::before {
	content: "";
	width: 7px;
	height: 7px;
	margin-right: 9px;
	border-radius: 1px;
	background: var(--ff-wood);
	box-shadow: 3px 3px 0 rgba(13, 11, 12, .13);
}

#folklore-filters .ff-characteristics .ff-section-toggle > span:first-child {
	margin-right: auto;
}

#folklore-filters .ff-attribute {
	padding: 13px 0;
	border-color: var(--ff-line) !important;
}

@media (max-width: 768px) {
	#folklore-filters.ff-filters {
		padding: 0 10px 14px;
		border-radius: 7px;
	}

	#folklore-filters .ff-header {
		margin-right: -10px;
		margin-left: -10px;
		padding-right: 20px;
		padding-left: 20px;
	}

	#folklore-filters .ff-section {
		padding: 17px 14px;
	}
}

@media (prefers-reduced-motion: reduce) {
	#folklore-filters .ff-category-row:hover,
	#folklore-filters .ff-price-apply:hover,
	#folklore-filters .ff-brands .ff-option:hover {
		transform: none;
	}
}
