/* ============================================================
   Focus Team - Filtro de Productos (Cotización)
   Todos los colores vienen de variables CSS inyectadas por el shortcode.
   ============================================================ */

.ftc-wrap {
    --ftc-bg: #0B0B0B;
    --ftc-card: #141414;
    --ftc-accent: #E4032E;
    --ftc-title: #FFFFFF;
    --ftc-text: #BFBFBF;
    --ftc-btn-bg: #E4032E;
    --ftc-btn-tx: #FFFFFF;
    --ftc-cat-bg: #E4032E;
    --ftc-cat-tx: #FFFFFF;
    --ftc-cat-abg: #111111;
    --ftc-cat-atx: #FFFFFF;
    --ftc-hover: #E4032E;
    --ftc-fs-section: 13px;
    --ftc-fs-cat: 14px;
    --ftc-fs-title: 15px;
    --ftc-fs-desc: 12px;
    --ftc-fs-btn: 12px;
    --ftc-cols: 4;
    --ftc-img-h: 260px;

    position: relative;
    margin: 30px 0;
    padding: 24px;
    background: var(--ftc-bg);
    border-radius: 10px;
    font-family: inherit;
    color: var(--ftc-title);
}

.ftc-wrap *,
.ftc-wrap *::before,
.ftc-wrap *::after {
    box-sizing: border-box;
}

/* ---------- Layout ---------- */
.ftc-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 28px;
    align-items: start;
}

.ftc-sidebar {
    display: flex;
    flex-direction: column;
    gap: 22px;
    position: sticky;
    top: 24px;
}

.ftc-main {
    display: flex;
    flex-direction: column;
    gap: 22px;
    min-width: 0;
}

/* ---------- Buscador ---------- */
.ftc-search {
    position: relative;
}

.ftc-search-input {
    width: 100%;
    padding: 13px 42px 13px 16px;
    border: 2px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--ftc-title);
    font-size: 14px;
    transition: border-color .25s ease, background .25s ease;
}

.ftc-search-input::placeholder {
    color: rgba(255, 255, 255, 0.45);
}

.ftc-search-input:focus {
    outline: none;
    border-color: var(--ftc-accent);
    background: rgba(255, 255, 255, 0.07);
}

.ftc-search-icon {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    opacity: .7;
    font-size: 15px;
}

/* ---------- Bloques del sidebar ---------- */
.ftc-block {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ftc-block-title {
    margin: 0;
    font-size: var(--ftc-fs-section);
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--ftc-title);
    padding-bottom: 10px;
    border-bottom: 2px solid var(--ftc-accent);
}

/* ---------- Categorías (botones tipo Kenzu) ---------- */
.ftc-cats {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 460px;
    overflow-y: auto;
    padding-right: 4px;
}

.ftc-cats::-webkit-scrollbar { width: 5px; }
.ftc-cats::-webkit-scrollbar-track { background: rgba(255,255,255,.06); border-radius: 3px; }
.ftc-cats::-webkit-scrollbar-thumb { background: var(--ftc-accent); border-radius: 3px; }

.ftc-cat {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    padding: 16px 18px;
    border: none;
    border-radius: 4px;
    background: var(--ftc-cat-bg);
    color: var(--ftc-cat-tx);
    font-size: var(--ftc-fs-cat);
    font-weight: 800;
    letter-spacing: .6px;
    text-transform: uppercase;
    text-align: left;
    cursor: pointer;
    transition: transform .2s ease, filter .2s ease, background .2s ease, color .2s ease;
    line-height: 1.2;
}

.ftc-cat:hover {
    filter: brightness(1.12);
    transform: translateX(3px);
}

.ftc-cat.is-active {
    background: var(--ftc-cat-abg);
    color: var(--ftc-cat-atx);
    box-shadow: inset 0 0 0 2px var(--ftc-accent);
}

.ftc-cat-count {
    font-size: 11px;
    font-weight: 600;
    opacity: .75;
    flex-shrink: 0;
}

/* ---------- Select de orden ---------- */
.ftc-sort {
    width: 100%;
    padding: 13px 14px;
    min-height: 46px;
    line-height: 1.5;
    border: 2px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--ftc-title);
    font-size: 13px;
    cursor: pointer;
    height: auto;
}

.ftc-sort:focus {
    outline: none;
    border-color: var(--ftc-accent);
}

.ftc-sort option {
    background: #1a1a1a;
    color: #fff;
}

/* ---------- Botón limpiar ---------- */
.ftc-reset {
    width: 100%;
    padding: 13px 16px;
    border: 2px solid rgba(255, 255, 255, 0.18);
    border-radius: 6px;
    background: transparent;
    color: var(--ftc-title);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .6px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all .25s ease;
}

.ftc-reset:hover {
    border-color: var(--ftc-accent);
    color: var(--ftc-accent);
}

/* ---------- Header ---------- */
.ftc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 14px;
    border-bottom: 2px solid var(--ftc-accent);
}

.ftc-count {
    font-size: 14px;
    font-weight: 700;
    color: var(--ftc-title);
}

.ftc-count-num {
    color: var(--ftc-accent);
}

/* ---------- Grid ---------- */
.ftc-grid {
    display: grid;
    grid-template-columns: repeat(var(--ftc-cols), minmax(0, 1fr));
    gap: 20px;
    width: 100%;
}

.ftc-card {
    display: flex;
    flex-direction: column;
    background: var(--ftc-card);
    border: 2px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    overflow: hidden;
    transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}

.ftc-card:hover {
    border-color: var(--ftc-hover);
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, .45);
}

.ftc-card-media {
    position: relative;
    width: 100%;
    height: var(--ftc-img-h);
    overflow: hidden;
    background: rgba(255, 255, 255, .04);
}

.ftc-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .4s ease;
}

.ftc-card:hover .ftc-card-media img {
    transform: scale(1.07);
}

.ftc-noimg {
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(45deg, rgba(255,255,255,.03) 0 10px, rgba(255,255,255,.06) 10px 20px);
}

.ftc-badge {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    padding: 10px 14px;
    background: var(--ftc-accent);
    color: #fff;
    font-size: 13px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: .5px;
    text-transform: uppercase;
}

.ftc-card-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px;
    flex-grow: 1;
}

.ftc-card-cat {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .8px;
    text-transform: uppercase;
    color: var(--ftc-accent);
}

.ftc-card-title {
    margin: 0;
    font-size: var(--ftc-fs-title);
    font-weight: 700;
    line-height: 1.3;
    color: var(--ftc-title);
}

.ftc-card-desc {
    margin: 0;
    font-size: var(--ftc-fs-desc);
    line-height: 1.5;
    color: var(--ftc-text);
    flex-grow: 1;
}

.ftc-card-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: auto;
    padding-top: 6px;
}

/* ---------- Botones de tarjeta ---------- */
.ftc-wrap .ftc-btn {
    display: block;
    width: 100%;
    padding: 12px 14px;
    border: 2px solid var(--ftc-btn-bg);
    border-radius: 4px;
    background: var(--ftc-btn-bg);
    color: var(--ftc-btn-tx);
    font-size: var(--ftc-fs-btn);
    font-weight: 800;
    letter-spacing: .8px;
    text-transform: uppercase;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: all .25s ease;
}

.ftc-wrap .ftc-btn:link,
.ftc-wrap .ftc-btn:visited,
.ftc-wrap .ftc-btn:focus {
    color: var(--ftc-btn-tx);
    text-decoration: none;
}

.ftc-wrap .ftc-btn:hover {
    filter: brightness(1.12);
    transform: translateY(-2px);
    color: var(--ftc-btn-tx);
    text-decoration: none;
}

.ftc-wrap .ftc-btn-quote {
    background: transparent;
    color: var(--ftc-btn-bg);
}

.ftc-wrap .ftc-btn-quote:link,
.ftc-wrap .ftc-btn-quote:visited,
.ftc-wrap .ftc-btn-quote:focus {
    color: var(--ftc-btn-bg);
}

.ftc-wrap .ftc-btn-quote:hover {
    background: var(--ftc-btn-bg);
    color: var(--ftc-btn-tx);
}

.ftc-wrap .ftc-btn-quote.is-added {
    background: var(--ftc-btn-bg);
    color: var(--ftc-btn-tx);
}

/* ---------- Estados ---------- */
.ftc-loading,
.ftc-no-results {
    padding: 60px 20px;
    text-align: center;
    color: var(--ftc-text);
    font-size: 16px;
    grid-column: 1 / -1;
}

.ftc-grid.is-loading {
    opacity: .45;
    pointer-events: none;
    transition: opacity .2s ease;
}

/* ---------- Paginación ---------- */
.ftc-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 10px;
}

.ftc-pagination:empty {
    display: none;
}

.ftc-page {
    min-width: 42px;
    padding: 10px 14px;
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    background: transparent;
    color: var(--ftc-title);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all .25s ease;
}

.ftc-page:hover {
    border-color: var(--ftc-accent);
    color: var(--ftc-accent);
}

.ftc-page.is-active {
    background: var(--ftc-accent);
    border-color: var(--ftc-accent);
    color: #fff;
}

/* ---------- Botón flotante de cotización ---------- */
.ftc-fab {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 9998;
    display: none;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    border: none;
    border-radius: 50px;
    background: var(--ftc-accent);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .5px;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .4);
    transition: transform .25s ease;
}

.ftc-fab.is-visible {
    display: flex;
}

.ftc-fab:hover {
    transform: translateY(-3px);
}

.ftc-fab-count {
    min-width: 24px;
    height: 24px;
    padding: 0 6px;
    border-radius: 12px;
    background: #fff;
    color: var(--ftc-accent);
    font-size: 12px;
    font-weight: 900;
    line-height: 24px;
    text-align: center;
}

/* ---------- Panel de cotización ---------- */
.ftc-panel-overlay {
    position: fixed;
    inset: 0;
    z-index: 9998;
    background: rgba(0, 0, 0, .6);
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s ease, visibility .3s ease;
}

.ftc-panel-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.ftc-panel {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    width: 380px;
    max-width: 92vw;
    height: 100%;
    padding: 22px;
    background: #111;
    color: #fff;
    box-shadow: -8px 0 30px rgba(0, 0, 0, .5);
    transform: translateX(105%);
    transition: transform .3s ease;
    overflow-y: auto;
}

.ftc-panel.is-open {
    transform: translateX(0);
}

.ftc-panel-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 14px;
    margin-bottom: 16px;
    border-bottom: 2px solid var(--ftc-accent);
}

.ftc-panel-head h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .8px;
}

.ftc-panel-close {
    border: none;
    background: transparent;
    color: #fff;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    padding: 4px 8px;
}

.ftc-panel-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex-grow: 1;
}

.ftc-panel-item {
    display: grid;
    grid-template-columns: 56px 1fr auto;
    gap: 12px;
    align-items: center;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.ftc-panel-item img {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 4px;
}

.ftc-panel-item-name {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
}

.ftc-qty {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
}

.ftc-qty button {
    width: 26px;
    height: 26px;
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 4px;
    background: transparent;
    color: #fff;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
}

.ftc-qty button:hover {
    border-color: var(--ftc-accent);
    color: var(--ftc-accent);
}

.ftc-qty-val {
    min-width: 26px;
    text-align: center;
    font-size: 13px;
    font-weight: 700;
}

.ftc-remove {
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, .5);
    font-size: 16px;
    cursor: pointer;
    padding: 4px;
}

.ftc-remove:hover {
    color: var(--ftc-accent);
}

.ftc-panel-empty {
    padding: 30px 0;
    text-align: center;
    color: rgba(255, 255, 255, .5);
    font-size: 14px;
}

.ftc-panel-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 18px;
}

.ftc-field {
    width: 100%;
    padding: 11px 13px;
    border: 2px solid rgba(255, 255, 255, .15);
    border-radius: 5px;
    background: rgba(255, 255, 255, .05);
    color: #fff;
    font-size: 13px;
    font-family: inherit;
}

.ftc-field::placeholder {
    color: rgba(255, 255, 255, .4);
}

.ftc-field:focus {
    outline: none;
    border-color: var(--ftc-accent);
}

.ftc-panel-foot {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, .1);
}

.ftc-wrap .ftc-send {
    display: block;
    padding: 14px;
    border-radius: 5px;
    background: #25D366;
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .5px;
    text-transform: uppercase;
    text-align: center;
    text-decoration: none;
    transition: filter .25s ease;
}

.ftc-wrap .ftc-send:hover,
.ftc-wrap .ftc-send:link,
.ftc-wrap .ftc-send:visited {
    color: #fff;
    text-decoration: none;
}

.ftc-wrap .ftc-send:hover {
    filter: brightness(1.1);
}

.ftc-wrap .ftc-send.is-disabled {
    opacity: .4;
    pointer-events: none;
}

.ftc-clear {
    padding: 11px;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 5px;
    background: transparent;
    color: rgba(255, 255, 255, .7);
    font-size: 12px;
    cursor: pointer;
}

.ftc-clear:hover {
    border-color: var(--ftc-accent);
    color: var(--ftc-accent);
}

/* ---------- Toast ---------- */
.ftc-toast {
    position: fixed;
    left: 50%;
    bottom: 90px;
    z-index: 10000;
    transform: translateX(-50%) translateY(20px);
    padding: 13px 22px;
    border-radius: 50px;
    background: #1c1c1c;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .4);
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s ease, transform .3s ease;
}

.ftc-toast.is-visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ---------- Toggle móvil ---------- */
.ftc-mobile-toggle {
    display: none;
    width: 100%;
    padding: 14px;
    margin-bottom: 16px;
    border: none;
    border-radius: 5px;
    background: var(--ftc-accent);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .5px;
    text-transform: uppercase;
    cursor: pointer;
}

/* ---------- Responsive ---------- */
.ftc-page-dots {
    color: var(--ftc-text);
    padding: 0 4px;
}

@media (max-width: 1200px) {
    .ftc-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

@media (max-width: 992px) {
    .ftc-layout {
        grid-template-columns: 240px 1fr;
        gap: 20px;
    }
    .ftc-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .ftc-wrap {
        padding: 16px;
    }
    .ftc-mobile-toggle {
        display: block;
    }
    .ftc-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .ftc-sidebar {
        display: none;
        position: static;
    }
    .ftc-sidebar.is-open {
        display: flex;
    }
    .ftc-cat {
        padding: 13px 15px;
    }
    .ftc-fab-text {
        display: none;
    }
}

@media (max-width: 480px) {
    .ftc-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    .ftc-card-media {
        height: calc(var(--ftc-img-h) * 0.9);
    }
}
