/**
Theme Name: Astra Child
Author: Brainstorm Force
Author URI: http://wpastra.com/about/
Description: Astra is the fastest, fully customizable & beautiful theme suitable for blogs, personal portfolios and business websites. It is very lightweight (less than 50KB on frontend) and offers unparalleled speed. Built with SEO in mind, Astra comes with schema.org code integrated so search engines will love your site. Astra offers plenty of sidebar options and widget areas giving you a full control for customizations. Furthermore, we have included special features and templates so feel free to choose any of your favorite page builder plugin to create pages flexibly. Some of the other features: # WooCommerce Ready # Responsive # Compatible with major plugins # Translation Ready # Extendible with premium addons # Regularly updated # Designed, Developed, Maintained & Supported by Brainstorm Force. Looking for a perfect base theme? Look no further. Astra is fast, fully customizable and beautiful theme!
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: astra-child
Template: astra
*/

/* ================================================
   BARRAS DINÁMICAS: ENVÍO GRATIS + CUOTAS MP
   ================================================ */

.sc-barra {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 11px 16px !important;
    border-radius: 7px !important;
    font-size: 14px !important;
    line-height: 1.4 !important;
    font-weight: 500 !important;
    position: relative !important;
    overflow: hidden !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* Destello animado compartido */
.sc-barra::after {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: -100% !important;
    width: 60% !important;
    height: 100% !important;
    background: linear-gradient(
        120deg,
        transparent 0%,
        rgba(255,255,255,0.18) 50%,
        transparent 100%
    ) !important;
    animation: sc-shine 3s ease-in-out infinite !important;
}

@keyframes sc-shine {
    0%   { left: -100%; }
    50%  { left: 160%; }
    100% { left: 160%; }
}

/* Envío gratis — azul SportConnect */
.sc-barra-envio.sc-envio-gratis {
    background: linear-gradient(90deg, #1a3fa8 0%, #2756d6 60%, #1e4cc4 100%) !important;
    border: none !important;
    color: #fff !important;
    box-shadow: 0 2px 8px rgba(26,63,168,0.35) !important;
    margin-bottom: 10px !important;
}

.sc-barra-envio.sc-envio-gratis strong {
    color: #ffe55c !important;
}

/* Falta para envío gratis — naranja */
.sc-barra-envio.sc-envio-falta {
    background: linear-gradient(90deg, #b84a00 0%, #e85d04 60%, #cc5200 100%) !important;
    border: none !important;
    color: #fff !important;
    box-shadow: 0 2px 8px rgba(184,74,0,0.35) !important;
    margin-bottom: 10px !important;
}

.sc-barra-envio.sc-envio-falta strong {
    color: #ffe55c !important;
}

/* Wrapper cuotas */
.sc-cuotas-wrap {
    margin-top: 12px !important;
    margin-bottom: 4px !important;
    width: 100% !important;
}

/* Cuotas Mercado Pago — celeste MP */
.sc-barra-cuotas {
    background: linear-gradient(90deg, #0070d1 0%, #009ee3 60%, #00aeef 100%) !important;
    border: none !important;
    color: #fff !important;
    flex-wrap: wrap !important;
    box-shadow: 0 2px 8px rgba(0,158,227,0.35) !important;
}

.sc-barra-cuotas strong {
    color: #fff !important;
}

/* Logo MP invertido */
.sc-mp-logo {
    background: #fff !important;
    color: #009ee3 !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    padding: 2px 7px !important;
    border-radius: 4px !important;
    letter-spacing: 0.3px !important;
    white-space: nowrap !important;
}

.sc-cuota-sep {
    opacity: 0.5 !important;
}

/* Móvil */
@media (max-width: 768px) {
    .sc-barra {
        font-size: 13px !important;
        padding: 10px 12px !important;
        border-radius: 6px !important;
    }

    .sc-barra-envio.sc-envio-gratis,
    .sc-barra-envio.sc-envio-falta {
        margin-bottom: 8px !important;
    }

    .sc-cuotas-wrap {
        margin-top: 10px !important;
    }
}

.ast-product-navigation-wrapper {
    display: none !important;
}

/* ================================================
   BARRA PROGRESO ENVÍO GRATIS — CARRITO LATERAL
   ================================================ */

.sc-progress-wrap {
    background: #1a3fa8 !important;
    padding: 14px 16px 12px !important;
    margin: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
    display: block !important;
}

.sc-progress-wrap.sc-progress-completo {
    background: #0a3d1f !important;
}

.sc-progress-header {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    font-size: 13px !important;
    color: #fff !important;
    margin-bottom: 10px !important;
    line-height: 1.4 !important;
    font-weight: 400 !important;
}

.sc-progress-header strong {
    color: #ffe55c !important;
    font-weight: 700 !important;
}

.sc-progress-wrap.sc-progress-completo .sc-progress-header strong {
    color: #86efac !important;
}

.sc-check {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 22px !important;
    height: 22px !important;
    min-width: 22px !important;
    background: #22c55e !important;
    color: #fff !important;
    border-radius: 50% !important;
    font-size: 12px !important;
    font-weight: 700 !important;
}

/* Track */
.sc-progress-bar-track {
    width: 100% !important;
    height: 7px !important;
    background: rgba(255,255,255,0.2) !important;
    border-radius: 99px !important;
    overflow: hidden !important;
    display: block !important;
}

/* Fill */
.sc-progress-bar-fill {
    height: 100% !important;
    border-radius: 99px !important;
    background: linear-gradient(90deg, #ffe55c 0%, #ffb700 100%) !important;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1) !important;
    position: relative !important;
    overflow: hidden !important;
    display: block !important;
    min-width: 4px !important;
}

/* Destello */
.sc-progress-bar-fill::after {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: -100% !important;
    width: 60% !important;
    height: 100% !important;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255,255,255,0.5) 50%,
        transparent 100%
    ) !important;
    animation: sc-progress-shine 2s ease-in-out infinite !important;
}

@keyframes sc-progress-shine {
    0%   { left: -60%; }
    100% { left: 160%; }
}

/* Completo — barra verde con pulso */
.sc-progress-wrap.sc-progress-completo .sc-progress-bar-fill {
    background: linear-gradient(90deg, #16a34a 0%, #4ade80 100%) !important;
    animation: sc-pulse-completo 1.5s ease-in-out 3 !important;
}

@keyframes sc-pulse-completo {
    0%   { opacity: 1; }
    50%  { opacity: 0.5; }
    100% { opacity: 1; }
}

/* ── Fix base Select2 checkout ── */
.woocommerce-checkout .select2-container {
    width: 100% !important;
    display: block !important;
}

.woocommerce-checkout .select2-selection--single {
    overflow: hidden !important;
    position: relative !important;
}

.woocommerce-checkout .select2-selection__rendered {
    position: static !important;
    display: block !important;
    overflow: hidden !important;
    white-space: nowrap !important;
}

/* ── Fix select nativos: País y Boleta/Factura ── */

#billing_country,
#billing_tipo_documento {
    appearance: none !important;
    -webkit-appearance: none !important;
    width: 100% !important;
    height: 48px !important;
    padding: 0 40px 0 14px !important;
    border: 1px solid #ddd !important;
    border-radius: 4px !important;
    background-color: #fff !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23666' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 14px center !important;
    font-size: 14px !important;
    color: #333 !important;
    cursor: pointer !important;
    box-sizing: border-box !important;
    display: block !important;
    line-height: 48px !important;
}

/* Quitar el wrapper que puede estar causando overflow */
#billing_country_field .woocommerce-input-wrapper,
#billing_tipo_documento_field .woocommerce-input-wrapper {
    display: block !important;
    width: 100% !important;
    overflow: hidden !important;
}

/* ================================================
   FILTROS — ESTILO ACORDEÓN
   ================================================ */

.sc-filtros-wrap {
    width: 100%;
    font-family: inherit;
}

/* ── Header móvil ── */
.sc-filtros-mobile-header {
    display: none;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    margin-bottom: 8px;
    user-select: none;
}

.sc-filtros-mobile-titulo {
    font-size: 15px;
    font-weight: 700;
    color: #1a1a2e;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sc-filtros-badge {
    background: #1a3fa8;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.sc-filtros-mobile-icon {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #555;
}

/* ── Panel principal ── */
.sc-filtros-panel {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    overflow: hidden;
}

.sc-filtros-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px;
    border-bottom: 1px solid #f0f0f0;
}

.sc-filtros-panel-titulo {
    font-size: 15px;
    font-weight: 700;
    color: #1a1a2e;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sc-filtros-limpiar {
    font-size: 12px;
    color: #1a3fa8;
    text-decoration: underline;
    cursor: pointer;
    border: none;
    background: none;
    padding: 0;
}

.sc-filtros-limpiar:hover {
    color: #e85d04;
}

/* ── Sección acordeón ── */
.sc-filtro-seccion {
    border-bottom: 1px solid #f0f0f0;
}

.sc-filtro-seccion-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: #1a1a2e;
    user-select: none;
    transition: background 0.15s;
}

.sc-filtro-seccion-header:hover {
    background: #f8f9ff;
}

.sc-filtro-badge-mini {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #1a3fa8;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    padding: 0 5px;
    margin-left: 6px;
}

.sc-chevron {
    transition: transform 0.25s ease;
    flex-shrink: 0;
    color: #888;
}

.sc-chevron.rotado {
    transform: rotate(180deg);
}

/* ── Cuerpo acordeón ── */
.sc-filtro-seccion-body {
    display: none;
    padding: 4px 18px 16px;
}

.sc-filtro-seccion-body.open {
    display: block;
}

/* ── Checkboxes / radios ── */
.sc-filtro-check {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 4px;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.1s;
}

.sc-filtro-check:hover {
    background: #f5f7ff;
}

.sc-filtro-check input {
    display: none;
}

.sc-check-box {
    width: 16px;
    height: 16px;
    min-width: 16px;
    border: 1.5px solid #ccc;
    border-radius: 3px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
    background: #fff;
}

.sc-filtro-check.activo .sc-check-box {
    background: #1a3fa8;
    border-color: #1a3fa8;
}

.sc-filtro-check.activo .sc-check-box::after {
    content: '';
    width: 8px;
    height: 5px;
    border-left: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(-45deg) translateY(-1px);
    display: block;
}

.sc-filtro-check-label {
    font-size: 13px;
    color: #333;
    flex: 1;
    line-height: 1.3;
}

.sc-filtro-check.activo .sc-filtro-check-label {
    color: #1a3fa8;
    font-weight: 600;
}

.sc-filtro-check-count {
    font-size: 11px;
    color: #aaa;
}

/* ── Grid tallas ── */
.sc-tallas-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding-top: 4px;
}

.sc-talla-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 38px;
    padding: 0 8px;
    border: 1.5px solid #ddd;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 600;
    color: #444;
    cursor: pointer;
    transition: all 0.15s;
    background: #fff;
    text-align: center;
    white-space: nowrap;
}

.sc-talla-item:hover {
    border-color: #1a3fa8;
    color: #1a3fa8;
}

.sc-talla-item.activo {
    background: #1a3fa8;
    border-color: #1a3fa8;
    color: #fff;
}

.sc-talla-item input {
    display: none;
}

/* ── Lista colores con scroll ── */
.sc-colores-lista {
    max-height: 220px;
    overflow-y: auto;
    padding-right: 4px;
}

.sc-colores-lista::-webkit-scrollbar {
    width: 4px;
}

.sc-colores-lista::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 2px;
}

.sc-colores-lista::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 2px;
}

/* ── Footer botón ── */
.sc-filtros-footer {
    padding: 16px 18px;
    border-top: 1px solid #f0f0f0;
}

.sc-filtros-btn {
    width: 100% !important;
    background: #1a3fa8 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 6px !important;
    padding: 12px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: background 0.2s !important;
    letter-spacing: 0.3px !important;
}

.sc-filtros-btn:hover {
    background: #2756d6 !important;
}

/* ================================================
   RESPONSIVE MÓVIL
   ================================================ */

@media (max-width: 768px) {
    .sc-filtros-mobile-header {
        display: flex;
    }

    .sc-filtros-panel {
        display: none;
        margin-top: 0;
        border-top: none;
        border-radius: 0 0 8px 8px;
    }

    .sc-filtros-panel.visible {
        display: block;
    }

    .sc-filtros-panel-header {
        display: none;
    }

    .sc-talla-item {
        min-width: 36px;
        height: 34px;
        font-size: 11px;
    }

    .sc-colores-lista {
        max-height: 180px;
    }
}