/* =====================================================
   SANTANDER SECCIONES — Frontend CSS
   Compatible con tema Electro + WooCommerce
   ===================================================== */

/* ── Badges en tarjetas de producto ── */

.si-badge {
    display: inline-block;
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 10;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    pointer-events: none;
    line-height: 1.4;
}

.si-badge--remate {
    background: #e53e3e;
    color: #fff;
    box-shadow: 0 2px 8px rgba(229, 62, 62, 0.45);
}

.si-badge--oferta {
    background: #d69e2e;
    color: #fff;
    box-shadow: 0 2px 8px rgba(214, 158, 46, 0.45);
}

/* Asegura posicionamiento relativo en la imagen del producto */
.woocommerce ul.products li.product .product-thumbnail,
.woocommerce ul.products li.product a img,
.woocommerce ul.products li.product .product-inner {
    position: relative;
}

/* ── Páginas de Remate / Oferta ── */

/* Hero banner de la página */
.si-seccion-hero {
    padding: 40px 0 30px;
    margin-bottom: 30px;
    text-align: center;
    border-bottom: 3px solid currentColor;
}

.si-seccion-hero--remate {
    background: linear-gradient(135deg, #fff5f5 0%, #fed7d7 100%);
    border-color: #e53e3e;
    color: #c53030;
}

.si-seccion-hero--oferta {
    background: linear-gradient(135deg, #fffbf0 0%, #fefcbf 100%);
    border-color: #d69e2e;
    color: #b7791f;
}

.si-seccion-hero h1 {
    font-size: 2.2rem;
    font-weight: 800;
    margin: 0 0 8px;
    letter-spacing: -0.5px;
}

.si-seccion-hero p {
    font-size: 1rem;
    margin: 0;
    opacity: 0.8;
}

/* ── Filtro de categorías ── */

.si-filtro-categorias {
    background: #f8f9fa;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 16px 20px;
    margin-bottom: 28px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.si-filtro-categorias__titulo {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #718096;
    margin-right: 4px;
    white-space: nowrap;
}

.si-filtro-btn {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    border: 1.5px solid #e2e8f0;
    background: #fff;
    color: #4a5568;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.si-filtro-btn:hover {
    border-color: #a0aec0;
    background: #edf2f7;
    color: #2d3748;
    text-decoration: none;
}

/* Estado activo — Remate */
.si-seccion--remate .si-filtro-btn.activo,
.si-seccion--remate .si-filtro-btn:focus {
    background: #e53e3e;
    border-color: #e53e3e;
    color: #fff;
}

/* Estado activo — Oferta */
.si-seccion--oferta .si-filtro-btn.activo,
.si-seccion--oferta .si-filtro-btn:focus {
    background: #d69e2e;
    border-color: #d69e2e;
    color: #fff;
}

/* ── Ordenar / resultados ── */

.si-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}

.si-toolbar__count {
    font-size: 13px;
    color: #718096;
}

.si-toolbar__count strong {
    color: #2d3748;
}

.si-toolbar select {
    padding: 7px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 5px;
    font-size: 13px;
    background: #fff;
    cursor: pointer;
}

/* ── Sin resultados ── */

.si-empty {
    text-align: center;
    padding: 60px 20px;
    color: #718096;
}

.si-empty__icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

.si-empty h3 {
    font-size: 1.2rem;
    color: #4a5568;
    margin-bottom: 8px;
}

/* ── Responsive ── */

@media (max-width: 768px) {
    .si-seccion-hero h1 {
        font-size: 1.6rem;
    }

    .si-filtro-categorias {
        gap: 6px;
    }

    .si-filtro-btn {
        font-size: 12px;
        padding: 5px 11px;
    }

    .si-toolbar {
        flex-direction: column;
        align-items: flex-start;
    }
}
