/* ============================================================
   ROTAR FILTROS PRODUCTOS — Premium Design v1.0.0
   Professional Ajax Product Filters for WooCommerce
   
   Rotar 2026 Visual Standards:
   - Corporate Navy #003555 → Corporate Cyan #00AEEF
   - Premium Navy #0a192f / Shadow Navy #172a45
   - Action Orange #ff8c00
   - Outfit Typography (Primary 2026)
   ============================================================ */

/* ── CSS Custom Properties ────────────────────────────────── */
:root {
    --rfp-primary: #0a192f;
    --rfp-secondary: #172a45;
    --rfp-accent: #0b4268;
    --rfp-accent-dark: #0b4268;
    --rfp-orange: #0b4268;
    --rfp-orange-dark: #0b4268;
    --rfp-success: #25d366;
    --rfp-light: #f8fafc;
    --rfp-gray: #64748b;
    --rfp-gray-light: #94a3b8;
    --rfp-border: #e2e8f0;
    --rfp-border-light: #f1f5f9;
    --rfp-white: #ffffff;
    --rfp-font: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --rfp-radius: 14px;
    --rfp-radius-sm: 10px;
    --rfp-radius-xs: 6px;
    --rfp-shadow: 0 2px 12px rgba(10, 25, 47, 0.06);
    --rfp-shadow-md: 0 4px 20px rgba(10, 25, 47, 0.1);
    --rfp-shadow-lg: 0 12px 40px rgba(10, 25, 47, 0.14);
    --rfp-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --rfp-sidebar-width: 280px;
}

/* Force accent color on all interactive elements */
.rfp-container *,
.rfp-container *:focus,
.rfp-container *:active {
    accent-color: #0b4268 !important;
    outline-color: #0b4268;
}

/* ── Main Container ───────────────────────────────────────── */
.rfp-container {
    font-family: var(--rfp-font);
    display: grid;
    grid-template-columns: var(--rfp-sidebar-width) 1fr;
    gap: 24px;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 16px;
    position: relative;
    min-height: 500px;
}

/* ============================================================
   SIDEBAR
   ============================================================ */
.rfp-sidebar {
    position: relative;
    top: auto;
    padding: 0 0 20px;
}

.rfp-sidebar::-webkit-scrollbar {
    width: 4px;
}

.rfp-sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.rfp-sidebar::-webkit-scrollbar-thumb {
    background: var(--rfp-border);
    border-radius: 4px;
}

.rfp-sidebar::-webkit-scrollbar-thumb:hover {
    background: var(--rfp-gray-light);
}

/* ── Sidebar Header ──────────────────────────────────────── */
.rfp-sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    margin-bottom: 8px;
    border-bottom: 2px solid var(--rfp-primary);
}

.rfp-sidebar-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--rfp-font);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--rfp-primary);
    margin: 0;
    letter-spacing: 0.3px;
}

.rfp-clear-all {
    display: flex;
    align-items: center;
    gap: 5px;
    background: none;
    border: 1px solid var(--rfp-border);
    border-radius: 50px;
    padding: 5px 12px;
    font-family: var(--rfp-font);
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--rfp-gray);
    cursor: pointer;
    transition: var(--rfp-transition);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.rfp-clear-all:hover {
    background: #fee2e2;
    border-color: #fca5a5;
    color: #dc2626;
}

/* ── Active Filters Tags ─────────────────────────────────── */
.rfp-active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 10px 0;
    margin-bottom: 4px;
}

.rfp-active-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    border: 1px solid var(--rfp-accent);
    color: var(--rfp-accent-dark);
    padding: 3px 10px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 600;
    font-family: var(--rfp-font);
    animation: rfpTagIn 0.2s ease;
}

.rfp-active-tag .rfp-tag-remove {
    cursor: pointer;
    font-size: 13px;
    line-height: 1;
    opacity: 0.6;
    transition: var(--rfp-transition);
    margin-left: 2px;
}

.rfp-active-tag .rfp-tag-remove:hover {
    opacity: 1;
    color: #dc2626;
}

@keyframes rfpTagIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ── Filter Group ────────────────────────────────────────── */
.rfp-filter-group {
    border-bottom: 1px solid var(--rfp-border-light);
}

.rfp-filter-search {
    padding: 12px 0;
    border-bottom: 1px solid var(--rfp-border-light);
}

/* ── Search ──────────────────────────────────────────────── */
.rfp-search-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.rfp-search-icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--rfp-gray-light);
    pointer-events: none;
    z-index: 2;
    transition: color 0.2s;
}

.rfp-search-input {
    width: 100%;
    padding: 10px 36px 10px 40px !important;
    border: 2px solid var(--rfp-border);
    border-radius: var(--rfp-radius-sm);
    font-family: var(--rfp-font);
    font-size: 0.82rem;
    color: var(--rfp-primary);
    background: var(--rfp-white);
    transition: var(--rfp-transition);
    outline: none;
}

.rfp-search-input:focus {
    border-color: var(--rfp-accent);
    box-shadow: 0 0 0 3px rgba(0, 174, 239, 0.12);
}

.rfp-search-input:focus+.rfp-search-icon,
.rfp-search-wrap:focus-within .rfp-search-icon {
    color: var(--rfp-accent);
}

.rfp-search-input::placeholder {
    color: var(--rfp-gray-light);
    font-weight: 400;
}

.rfp-search-clear {
    position: absolute;
    right: 8px;
    background: none;
    border: none;
    color: var(--rfp-gray-light);
    font-size: 14px;
    cursor: pointer;
    padding: 4px 6px;
    border-radius: 4px;
    transition: var(--rfp-transition);
    line-height: 1;
}

.rfp-search-clear:hover {
    background: #fee2e2;
    color: #dc2626;
}

/* ── Filter Toggle Button ────────────────────────────────── */
.rfp-filter-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 14px 10px;
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--rfp-font);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--rfp-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.2s;
}

.rfp-filter-toggle:hover {
    background: #0b4268;
    color: #ffffff;
    border-radius: var(--rfp-radius-xs);
}

.rfp-chevron {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.rfp-filter-toggle.active .rfp-chevron {
    transform: rotate(180deg);
}

/* ── Filter Content ──────────────────────────────────────── */
.rfp-filter-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1), padding 0.35s;
    padding: 0;
}

.rfp-filter-content.active {
    max-height: 5000px;
    padding: 0 0 14px;
}

/* ── Category Search ─────────────────────────────────────── */
.rfp-cat-search-wrap {
    margin-bottom: 8px;
}

.rfp-cat-search {
    width: 100%;
    padding: 7px 12px;
    border: 1px solid var(--rfp-border);
    border-radius: var(--rfp-radius-xs);
    font-family: var(--rfp-font);
    font-size: 0.78rem;
    color: var(--rfp-primary);
    outline: none;
    transition: var(--rfp-transition);
    box-sizing: border-box;
}

.rfp-cat-search:focus {
    border-color: var(--rfp-accent);
    box-shadow: 0 0 0 2px rgba(0, 174, 239, 0.1);
}

.rfp-cat-search::placeholder {
    color: var(--rfp-gray-light);
}

/* ── Checkbox List ───────────────────────────────────────── */

/* Category list: show 15 items, scroll if more */
#rfp-cat-list {
    max-height: 480px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--rfp-border) transparent;
}

#rfp-cat-list::-webkit-scrollbar {
    width: 4px;
}

#rfp-cat-list::-webkit-scrollbar-track {
    background: transparent;
}

#rfp-cat-list::-webkit-scrollbar-thumb {
    background: var(--rfp-border);
    border-radius: 4px;
}

#rfp-cat-list::-webkit-scrollbar-thumb:hover {
    background: var(--rfp-gray-light);
}

/* Capacidad de Carga & Diámetro: show 6 items, scroll if more */
#rfp-attr-capacidad-carga .rfp-checkbox-list,
#rfp-attr-diametro .rfp-checkbox-list {
    max-height: 192px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--rfp-border) transparent;
}

#rfp-attr-capacidad-carga .rfp-checkbox-list::-webkit-scrollbar,
#rfp-attr-diametro .rfp-checkbox-list::-webkit-scrollbar {
    width: 4px;
}

#rfp-attr-capacidad-carga .rfp-checkbox-list::-webkit-scrollbar-track,
#rfp-attr-diametro .rfp-checkbox-list::-webkit-scrollbar-track {
    background: transparent;
}

#rfp-attr-capacidad-carga .rfp-checkbox-list::-webkit-scrollbar-thumb,
#rfp-attr-diametro .rfp-checkbox-list::-webkit-scrollbar-thumb {
    background: var(--rfp-border);
    border-radius: 4px;
}

.rfp-checkbox-list {
    overflow-y: visible;
}

.rfp-checkbox-list::-webkit-scrollbar {
    width: 3px;
}

.rfp-checkbox-list::-webkit-scrollbar-track {
    background: transparent;
}

.rfp-checkbox-list::-webkit-scrollbar-thumb {
    background: var(--rfp-border);
    border-radius: 3px;
}

.rfp-checkbox-item {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 8px;
    padding: 6px 8px;
    border-radius: var(--rfp-radius-xs);
    cursor: pointer;
    transition: background 0.15s;
    user-select: none;
    margin: 1px 0;
}

.rfp-checkbox-item:hover {
    background: #0b4268;
}

.rfp-checkbox-item:hover .rfp-checkbox-label {
    color: #ffffff;
}

.rfp-checkbox-item:hover .rfp-checkbox-count {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.rfp-checkbox-item input[type="checkbox"] {
    display: none !important;
}

/* Custom Checkmark */
.rfp-checkmark {
    width: 18px;
    height: 18px;
    min-width: 18px;
    min-height: 18px;
    flex-shrink: 0;
    border: 2px solid var(--rfp-border);
    border-radius: 5px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    transition: var(--rfp-transition);
    position: relative;
    background: var(--rfp-white);
}

.rfp-checkmark::after {
    content: '';
    width: 5px;
    height: 9px;
    border: solid var(--rfp-white);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg) scale(0);
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    top: -1px;
}

.rfp-checkbox-item input:checked+.rfp-checkmark {
    background: #172a45;
    border-color: #172a45;
    box-shadow: 0 2px 6px rgba(23, 42, 69, 0.3);
}

.rfp-checkbox-item input:checked+.rfp-checkmark::after {
    transform: rotate(45deg) scale(1);
}

.rfp-checkbox-label {
    flex: 1;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--rfp-primary);
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-transform: uppercase;
}

.rfp-checkbox-count {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--rfp-gray-light);
    background: var(--rfp-border-light);
    padding: 2px 7px;
    border-radius: 50px;
    min-width: 20px;
    text-align: center;
    flex-shrink: 0;
    transition: var(--rfp-transition);
}

.rfp-checkbox-item input:checked~.rfp-checkbox-count {
    background: rgba(0, 174, 239, 0.12);
    color: var(--rfp-accent);
}

/* ── Price Slider ────────────────────────────────────────── */
.rfp-price-display {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, var(--rfp-primary), var(--rfp-secondary));
    border-radius: var(--rfp-radius-xs);
    padding: 10px 14px;
    margin-bottom: 14px;
}

.rfp-price-label {
    font-family: var(--rfp-font);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--rfp-white);
    letter-spacing: 0.3px;
}

.rfp-price-sep {
    color: var(--rfp-accent);
    font-weight: 300;
    font-size: 1.2rem;
}

.rfp-range-slider {
    position: relative;
    height: 32px;
    margin: 0 4px;
}

.rfp-range-track {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    height: 6px;
    background: var(--rfp-border);
    border-radius: 3px;
    pointer-events: none;
}

.rfp-range-fill {
    position: absolute;
    height: 100%;
    background: linear-gradient(90deg, var(--rfp-accent), var(--rfp-orange));
    border-radius: 3px;
    transition: left 0.1s, right 0.1s;
}

.rfp-range-input {
    position: absolute;
    top: 0;
    width: 100%;
    height: 100%;
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    pointer-events: none;
    margin: 0;
    padding: 0;
}

.rfp-range-input::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: var(--rfp-white);
    border: 3px solid var(--rfp-accent);
    border-radius: 50%;
    cursor: grab;
    pointer-events: all;
    box-shadow: 0 2px 8px rgba(0, 174, 239, 0.3);
    transition: transform 0.15s, box-shadow 0.15s;
}

.rfp-range-input::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 3px 12px rgba(0, 174, 239, 0.5);
}

.rfp-range-input::-webkit-slider-thumb:active {
    cursor: grabbing;
    transform: scale(1.15);
}

.rfp-range-input::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: var(--rfp-white);
    border: 3px solid var(--rfp-accent);
    border-radius: 50%;
    cursor: grab;
    pointer-events: all;
    box-shadow: 0 2px 8px rgba(0, 174, 239, 0.3);
}

/* ── Sidebar Close (Mobile) ──────────────────────────────── */
.rfp-sidebar-close {
    display: none;
    width: 100%;
    padding: 14px;
    margin-top: 16px;
    background: linear-gradient(135deg, var(--rfp-primary), var(--rfp-secondary));
    color: var(--rfp-white);
    border: none;
    border-radius: var(--rfp-radius-sm);
    font-family: var(--rfp-font);
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ============================================================
   MAIN CONTENT AREA
   ============================================================ */

/* ── Top Bar ─────────────────────────────────────────────── */
.rfp-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding: 10px 0;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--rfp-primary);
}

.rfp-topbar-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.rfp-mobile-filter-btn {
    display: none;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: linear-gradient(135deg, var(--rfp-primary), var(--rfp-secondary));
    color: var(--rfp-white);
    border: none;
    border-radius: var(--rfp-radius-xs);
    font-family: var(--rfp-font);
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--rfp-transition);
}

.rfp-mobile-filter-btn:hover {
    background: linear-gradient(135deg, var(--rfp-orange), var(--rfp-orange-dark));
}

.rfp-main-title {
    font-family: var(--rfp-font);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--rfp-primary);
    margin: 0;
}

.rfp-results-count {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--rfp-gray);
    background: var(--rfp-light);
    padding: 4px 12px;
    border-radius: 50px;
    white-space: nowrap;
}

.rfp-topbar-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* ── View Toggle ─────────────────────────────────────────── */
.rfp-view-toggle {
    display: flex;
    border: 1px solid var(--rfp-border);
    border-radius: var(--rfp-radius-xs);
    overflow: hidden;
    flex-shrink: 0;
}

.rfp-view-btn {
    padding: 7px 10px;
    background: var(--rfp-white);
    border: none;
    cursor: pointer;
    color: var(--rfp-gray-light);
    transition: var(--rfp-transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.rfp-view-btn:first-child {
    border-right: 1px solid var(--rfp-border);
}

.rfp-view-btn:hover {
    background: #003555;
    color: #ffffff;
}

.rfp-view-btn.active {
    background: #003555;
    color: #ffffff;
}

/* ── Order Select ────────────────────────────────────────── */
.rfp-select-order {
    padding: 8px 32px 8px 12px;
    border: 2px solid var(--rfp-border);
    border-radius: var(--rfp-radius-xs);
    font-family: var(--rfp-font);
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--rfp-primary);
    background: var(--rfp-white);
    cursor: pointer;
    outline: none;
    transition: var(--rfp-transition);
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
}

.rfp-select-order:focus {
    border-color: var(--rfp-accent);
    box-shadow: 0 0 0 3px rgba(0, 174, 239, 0.12);
}

/* ============================================================
   PRODUCTS GRID
   ============================================================ */
.rfp-products-grid {
    display: grid;
    grid-template-columns: repeat(var(--rfp-columns, 3), 1fr);
    gap: 20px;
    min-height: 200px;
}

.rfp-products-grid.rfp-view-list {
    grid-template-columns: 1fr;
    gap: 12px;
}

/* ── Product Card ────────────────────────────────────────── */
.rfp-card {
    background: var(--rfp-white);
    border-radius: var(--rfp-radius);
    overflow: hidden;
    box-shadow: var(--rfp-shadow);
    border: 1px solid rgba(226, 232, 240, 0.6);
    transition: var(--rfp-transition);
    display: flex;
    flex-direction: column;
    animation: rfpCardIn 0.4s ease both;
}

.rfp-card:hover {
    box-shadow: var(--rfp-shadow-lg);
    transform: translateY(-5px);
}

.rfp-card:hover .rfp-card-name,
.rfp-card:hover .rfp-card-sku {}

.rfp-card:hover .rfp-card-price,
.rfp-card:hover .rfp-desde,
.rfp-card:hover .rfp-iva-inc,
.rfp-card:hover .rfp-consult {}

.rfp-card:hover .rfp-card-price .woocommerce-Price-amount.amount {}

@keyframes rfpCardIn {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.rfp-card:nth-child(1) {
    animation-delay: 0s;
}

.rfp-card:nth-child(2) {
    animation-delay: 0.04s;
}

.rfp-card:nth-child(3) {
    animation-delay: 0.08s;
}

.rfp-card:nth-child(4) {
    animation-delay: 0.12s;
}

.rfp-card:nth-child(5) {
    animation-delay: 0.16s;
}

.rfp-card:nth-child(6) {
    animation-delay: 0.2s;
}

.rfp-card:nth-child(7) {
    animation-delay: 0.24s;
}

.rfp-card:nth-child(8) {
    animation-delay: 0.28s;
}

.rfp-card:nth-child(9) {
    animation-delay: 0.32s;
}

.rfp-card:nth-child(10) {
    animation-delay: 0.36s;
}

.rfp-card:nth-child(11) {
    animation-delay: 0.4s;
}

.rfp-card:nth-child(12) {
    animation-delay: 0.44s;
}

.rfp-card-link {
    text-decoration: none !important;
    color: inherit !important;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.rfp-card-link:hover,
.rfp-card-link:focus,
.rfp-card-link:visited {
    text-decoration: none !important;
    color: inherit !important;
}

/* ── Card Image ──────────────────────────────────────────── */
.rfp-card-img-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 1/1;
    overflow: hidden;
    background: var(--rfp-white);
}

.rfp-card-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 16px;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.rfp-card:hover .rfp-card-img {
    transform: scale(1.06);
}

.rfp-card-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(0, 174, 239, 0.15) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.rfp-card:hover .rfp-card-glow {
    opacity: 1;
}

/* ── Sin Stock Badge ────────────────────────────────────── */
.rfp-badge-sinstock {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #dc2626;
    color: #fff;
    font-family: var(--rfp-font);
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 5px 10px;
    border-radius: 4px;
    z-index: 3;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.4);
}

/* ── Card Info ───────────────────────────────────────────── */
.rfp-card-info {
    padding: 10px 16px 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
}

.rfp-card-sku {
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--rfp-gray-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.rfp-card-name {
    font-family: var(--rfp-font);
    font-size: clamp(0.75rem, 1.6vw, 0.88rem);
    font-weight: 600;
    color: var(--rfp-primary);
    line-height: 1.3;
    margin: 0 0 8px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    line-clamp: 3;
    overflow: hidden;
    min-height: 3.9em;
    word-break: break-word;
    text-align: center;
    transition: color 0.3s ease;
}

.rfp-card-price {
    font-family: var(--rfp-font);
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--rfp-primary);
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
    flex-wrap: wrap;
    white-space: nowrap;
    margin-bottom: 4px;
    text-align: center;
    width: 100%;
}

.rfp-card-price .woocommerce-Price-amount.amount {
    font-size: 1.8em !important;
    font-weight: 700 !important;
    color: #000000 !important;
    position: relative;
    display: inline-block;
    padding-right: 2px;
    margin-bottom: 10px !important;
}

.rfp-desde {
    font-weight: 700;
    font-size: 0.72rem;
    color: var(--rfp-gray);
}

.rfp-iva-inc {
    font-size: 0.6rem;
    font-weight: 600;
    color: var(--rfp-gray);
    white-space: nowrap;
}

.rfp-consult {
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--rfp-gray);
    font-style: italic;
}

.rfp-iva {
    font-size: 0.55em;
    font-weight: normal;
    white-space: nowrap;
    color: var(--rfp-gray);
}

/* ── Card Button ─────────────────────────────────────────── */
.rfp-card-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 18px;
    margin: 6px 14px 14px;
    background: #E2800E;
    color: var(--rfp-white) !important;
    font-family: var(--rfp-font);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    white-space: nowrap;
    border-radius: var(--rfp-radius-sm);
    text-decoration: none !important;
    transition: var(--rfp-transition);
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
}

.rfp-card-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transition: left 0.6s ease;
}

.rfp-card:hover .rfp-card-btn {
    background: #172a45;
}

.rfp-card:hover .rfp-card-btn::before {
    left: 100%;
}

.rfp-card-btn svg {
    transition: transform 0.3s ease;
    opacity: 0.7;
}

.rfp-card:hover .rfp-card-btn svg {
    transform: translateX(3px);
    opacity: 1;
}

.rfp-card-btn:visited {
    color: var(--rfp-white) !important;
}

/* ── List View Card Override ─────────────────────────────── */
.rfp-view-list .rfp-card {
    flex-direction: row;
}

.rfp-view-list .rfp-card-link {
    flex-direction: row;
    align-items: center;
}

.rfp-view-list .rfp-card-img-wrap {
    width: 140px;
    min-width: 140px;
    aspect-ratio: 1/1;
}

.rfp-view-list .rfp-card-info {
    align-items: flex-start;
    text-align: left;
    padding: 16px 20px;
    justify-content: center;
}

.rfp-view-list .rfp-card-name {
    -webkit-line-clamp: 2;
    line-clamp: 2;
    min-height: auto;
}

.rfp-view-list .rfp-card-btn {
    align-self: center;
    margin: 0 16px;
    white-space: nowrap;
    min-width: 140px;
}

/* ============================================================
   LOADER
   ============================================================ */
.rfp-loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 60px 20px;
    font-family: var(--rfp-font);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--rfp-gray);
}

.rfp-spinner {
    position: relative;
    width: 50px;
    height: 50px;
}

.rfp-spinner-ring {
    position: absolute;
    inset: 0;
    border: 3px solid transparent;
    border-radius: 50%;
}

.rfp-spinner-ring:nth-child(1) {
    border-top-color: var(--rfp-accent);
    animation: rfpSpin 1s linear infinite;
}

.rfp-spinner-ring:nth-child(2) {
    border-right-color: var(--rfp-orange);
    animation: rfpSpin 1.5s linear infinite reverse;
    inset: 6px;
}

.rfp-spinner-ring:nth-child(3) {
    border-bottom-color: var(--rfp-primary);
    animation: rfpSpin 2s linear infinite;
    inset: 12px;
}

@keyframes rfpSpin {
    to {
        transform: rotate(360deg);
    }
}

/* ============================================================
   NO RESULTS
   ============================================================ */
.rfp-no-results {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 60px 20px;
    text-align: center;
}

.rfp-no-results h3 {
    font-family: var(--rfp-font);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--rfp-primary);
    margin: 0;
}

.rfp-no-results p {
    font-size: 0.85rem;
    color: var(--rfp-gray);
    margin: 0;
}

.rfp-btn-reset {
    margin-top: 8px;
    padding: 10px 22px;
    background: linear-gradient(135deg, var(--rfp-accent), var(--rfp-accent-dark));
    color: var(--rfp-white);
    border: none;
    border-radius: var(--rfp-radius-sm);
    font-family: var(--rfp-font);
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--rfp-transition);
}

.rfp-btn-reset:hover {
    background: linear-gradient(135deg, var(--rfp-orange), var(--rfp-orange-dark));
    transform: translateY(-2px);
    box-shadow: var(--rfp-shadow-md);
}

/* ============================================================
   PAGINATION
   ============================================================ */
.rfp-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 28px 0;
    flex-wrap: wrap;
}

.rfp-page-btn {
    min-width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--rfp-border);
    background: var(--rfp-white);
    border-radius: var(--rfp-radius-xs);
    font-family: var(--rfp-font);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--rfp-primary);
    cursor: pointer;
    transition: var(--rfp-transition);
    padding: 0 8px;
}

.rfp-page-btn:hover {
    border-color: var(--rfp-accent);
    color: var(--rfp-accent);
    background: #f0f9ff;
}

.rfp-page-btn.active {
    background: linear-gradient(135deg, var(--rfp-primary), var(--rfp-secondary));
    color: var(--rfp-white);
    border-color: var(--rfp-primary);
    box-shadow: 0 3px 12px rgba(10, 25, 47, 0.2);
}

.rfp-page-btn.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

.rfp-page-dots {
    font-size: 0.85rem;
    color: var(--rfp-gray);
    padding: 0 4px;
}

/* ============================================================
   OVERLAY (Mobile)
   ============================================================ */
.rfp-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(10, 25, 47, 0.6);
    backdrop-filter: blur(4px);
    z-index: 99998;
}

.rfp-overlay.active {
    display: block;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Large Desktop 1400+ */
@media (min-width: 1400px) {
    .rfp-container {
        --rfp-sidebar-width: 300px;
        gap: 28px;
    }
}

/* Tablet Landscape 992-1199 */
@media (max-width: 1199px) {
    .rfp-products-grid {
        --rfp-columns: 3 !important;
    }

    .rfp-container {
        --rfp-sidebar-width: 260px;
        gap: 20px;
    }
}

/* Tablet Portrait 768-991 */
@media (max-width: 991px) {
    .rfp-container {
        grid-template-columns: 1fr;
    }

    .rfp-sidebar {
        position: fixed;
        top: 0;
        left: -320px;
        width: 300px;
        height: 100vh;
        max-height: 100vh;
        background: var(--rfp-white);
        z-index: 99999;
        padding: 20px 20px 100px;
        box-shadow: var(--rfp-shadow-lg);
        transition: left 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        overflow-y: auto;
    }

    .rfp-sidebar.open {
        left: 0;
    }

    .rfp-sidebar-close {
        display: flex;
    }

    .rfp-mobile-filter-btn {
        display: flex;
    }

    .rfp-products-grid {
        --rfp-columns: 2 !important;
    }
}

/* Mobile Large 481-767 */
@media (max-width: 767px) {
    .rfp-filter-content.active {
        max-height: 0;
        padding: 0;
        overflow: hidden;
    }

    .rfp-filter-content.active.mobile-open {
        max-height: 2000px;
        padding: 0 0 12px;
        overflow: visible;
    }

    .rfp-filter-toggle {
        background: #0c0d0e !important;
        color: #fff !important;
    }

    .rfp-filter-toggle .rfp-chevron {
        color: #fff !important;
    }

    .rfp-filter-toggle.active .rfp-chevron {
        transform: rotate(0deg);
    }

    .rfp-filter-toggle.active.mobile-open .rfp-chevron {
        transform: rotate(180deg);
    }

    .rfp-products-grid {
        --rfp-columns: 2 !important;
        gap: 12px;
    }

    .rfp-topbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .rfp-topbar-right {
        width: 100%;
        justify-content: space-between;
    }

    .rfp-main-title {
        font-size: 1.1rem;
    }

    .rfp-card-name {
        font-size: 0.75rem;
    }

    .rfp-card-price {
        font-size: 0.95rem;
    }

    .rfp-card-btn {
        font-size: 0.7rem;
        padding: 8px 10px;
        margin: 6px 10px 10px;
    }

    /* List view stacks on mobile */
    .rfp-view-list .rfp-card {
        flex-direction: column;
    }

    .rfp-view-list .rfp-card-link {
        flex-direction: column;
    }

    .rfp-view-list .rfp-card-img-wrap {
        width: 100%;
        min-width: auto;
    }

    .rfp-view-list .rfp-card-info {
        align-items: center;
        text-align: center;
    }

    .rfp-view-list .rfp-card-btn {
        margin: 6px 14px 14px;
    }
}

/* Mobile Small ≤480 */
@media (max-width: 480px) {
    .rfp-container {
        padding: 0 10px;
    }

    .rfp-products-grid {
        --rfp-columns: 2 !important;
        gap: 8px;
    }

    .rfp-card {
        border-radius: var(--rfp-radius-sm);
    }

    .rfp-card-img {
        padding: 10px;
    }

    .rfp-card-info {
        padding: 6px 10px 2px;
    }

    .rfp-card-name {
        font-size: 0.7rem;
        min-height: 2.6em;
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }

    .rfp-card-price {
        font-size: 0.85rem;
    }

    .rfp-card-btn {
        font-size: 0.65rem;
        padding: 7px 8px;
        margin: 4px 8px 8px;
    }
}

/* ── Accessibility ───────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    .rfp-card {
        animation: none;
    }

    .rfp-card:hover {
        transform: none;
    }

    * {
        transition-duration: 0.01ms !important;
    }
}

/* ── Print ───────────────────────────────────────────────── */
@media print {

    .rfp-sidebar,
    .rfp-topbar,
    .rfp-pagination,
    .rfp-card-btn,
    .rfp-loader {
        display: none;
    }

    .rfp-container {
        grid-template-columns: 1fr;
    }

    .rfp-products-grid {
        --rfp-columns: 3 !important;
    }

    .rfp-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
    }
}