/* ==========================================================================
   TIENDA SOMOSPADEL BCN - ESTILOS OFICIALES (TEMA CLARO: FONDO BLANCO & LETRA NEGRA)
   SomosPadel Barcelona - Ecosistema Comercial, Patrocinios & Marketplace
   ========================================================================== */

:root {
    --sp-shop-bg-main: #f8fafc;
    --sp-shop-bg-card: #ffffff;
    --sp-shop-bg-elevated: #f1f5f9;
    --sp-shop-border: #e2e8f0;
    --sp-shop-border-hover: #cbd5e1;
    
    --sp-shop-primary: #CCFF00;      /* Lima oficial SomosPadel */
    --sp-shop-primary-dark: #65a30d; /* Lima oscuro para textos sobre claro */
    --sp-shop-secondary: #0284c7;    /* Azul profesional */
    --sp-shop-accent: #059669;       /* Verde Esmeralda Comercial */
    --sp-shop-warning: #d97706;      /* Ámbar */
    --sp-shop-danger: #dc2626;       /* Rojo */
    
    --sp-shop-text-title: #0f172a;   /* Negro / Carbón profundo */
    --sp-shop-text-body: #334155;    /* Gris oscuro de alta legibilidad */
    --sp-shop-text-muted: #64748b;   /* Gris neutro */
    
    --sp-shop-font-title: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    --sp-shop-font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    
    --sp-shop-radius: 18px;
    --sp-shop-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.06);
    --sp-shop-glow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

/* Contenedor Principal de la Tienda */
.sp-tienda-container {
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 16px 16px 100px 16px;
    color: var(--sp-shop-text-title);
    font-family: var(--sp-shop-font-body);
    box-sizing: border-box;
    background: transparent;
    overflow-x: hidden;
}

/* ==========================================================================
   BARRA DE LAS 4 SECCIONES PRINCIPALES DE LA PLATAFORMA
   ========================================================================== */
.sp-platform-sections-nav {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    background: #ffffff;
    border: 1px solid var(--sp-shop-border);
    padding: 6px;
    border-radius: 16px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

@media (max-width: 680px) {
    .sp-platform-sections-nav {
        grid-template-columns: repeat(2, 1fr);
    }
}

.sp-platform-nav-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 700;
    text-decoration: none;
    color: var(--sp-shop-text-body);
    background: transparent;
    border: 1px solid transparent;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    font-family: var(--sp-shop-font-title);
}

.sp-platform-nav-btn i {
    font-size: 0.95rem;
}

.sp-platform-nav-btn:hover {
    color: #000;
    background: #f1f5f9;
}

.sp-platform-nav-btn.active {
    background: #f7fee7;
    border-color: #84cc16;
    color: #1e293b;
    font-weight: 850;
    box-shadow: 0 2px 10px rgba(132, 204, 22, 0.2);
}

/* ==========================================================================
   HEADER DE LA TIENDA Y SELECTOR DE SUB-PESTAÑAS
   ========================================================================== */
.sp-shop-header {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 50%, #f0fdf4 100%);
    border-radius: 24px;
    border: 1.5px solid #e2e8f0;
    padding: 24px;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.sp-shop-header-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 16px;
    position: relative;
    z-index: 2;
}

.sp-shop-brand-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f0fdf4;
    border: 1px solid #86efac;
    color: #166534;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 5px 12px;
    border-radius: 100px;
    letter-spacing: 0.7px;
    text-transform: uppercase;
}

.sp-shop-title {
    font-family: var(--sp-shop-font-title);
    font-size: 2rem;
    font-weight: 900;
    margin: 8px 0 4px 0;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #0f172a;
}

.sp-shop-title span {
    background: linear-gradient(90deg, #15803d, #0284c7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.sp-shop-subtitle {
    font-size: 0.88rem;
    color: #475569;
    margin: 0;
    max-width: 600px;
    line-height: 1.45;
}

.sp-shop-role-selector-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f1f5f9;
    padding: 6px 12px;
    border-radius: 14px;
    border: 1px solid #cbd5e1;
}

.sp-shop-role-label {
    font-size: 0.72rem;
    color: #475569;
    font-weight: 700;
    text-transform: uppercase;
}

.sp-shop-role-select {
    background: #ffffff;
    color: #0f172a;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 6px 10px;
    cursor: pointer;
    outline: none;
}

/* Sub-tabs de la tienda: Escaparate, Colaboradores, Promociones, Dashboard Comercial */
.sp-shop-subnav {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 4px 0 8px 0;
    margin-top: 20px;
    border-top: 1px solid #e2e8f0;
    scrollbar-width: none;
    position: relative;
    z-index: 2;
}

.sp-shop-subnav::-webkit-scrollbar {
    display: none;
}

.sp-shop-subtab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    border-radius: 12px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #334155;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
    font-family: var(--sp-shop-font-title);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.sp-shop-subtab:hover {
    background: #f1f5f9;
    color: #000;
    border-color: #94a3b8;
}

.sp-shop-subtab.active {
    background: #CCFF00;
    color: #000000;
    border-color: #a3e635;
    font-weight: 900;
    box-shadow: 0 4px 15px rgba(204, 255, 0, 0.35);
}

/* ==========================================================================
   BANNER HERO Y PROMOCIONES TOP
   ========================================================================== */
.sp-shop-hero-banner {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 20px;
    border: 1.5px solid #cbd5e1;
    padding: 20px 24px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.sp-shop-hero-badge {
    background: linear-gradient(90deg, #e11d48, #d97706);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 900;
    padding: 3px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 8px;
}

.sp-shop-hero-title {
    font-family: var(--sp-shop-font-title);
    font-size: 1.35rem;
    font-weight: 850;
    margin: 0 0 6px 0;
    color: #0f172a;
}

.sp-shop-hero-desc {
    font-size: 0.82rem;
    color: #475569;
    margin: 0;
    line-height: 1.4;
}

.sp-shop-hero-code {
    background: #fef08a;
    border: 1px dashed #ca8a04;
    color: #713f12;
    padding: 8px 14px;
    border-radius: 12px;
    font-family: monospace;
    font-size: 0.95rem;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.15s ease;
}

.sp-shop-hero-code:hover {
    transform: scale(1.04);
}

/* ==========================================================================
   PATROCINADORES Y MARCAS ASOCIADAS (CARRUSEL/LOGOS)
   ========================================================================== */
.sp-sponsors-strip {
    background: #ffffff;
    border: 1px solid var(--sp-shop-border);
    border-radius: 18px;
    padding: 14px 20px;
    margin-bottom: 24px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.sp-sponsors-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.sp-sponsors-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #475569;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 6px;
}

.sp-sponsors-logos {
    display: flex;
    align-items: center;
    gap: 16px;
    overflow-x: auto;
    padding: 4px 0;
    scrollbar-width: none;
}

.sp-sponsors-logos::-webkit-scrollbar {
    display: none;
}

.sp-sponsor-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 6px 14px;
    border-radius: 12px;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.2s ease;
}

.sp-sponsor-chip:hover {
    border-color: #84cc16;
    background: #f0fdf4;
    transform: translateY(-2px);
}

.sp-sponsor-logo-circle {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #0f172a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 900;
    color: #CCFF00;
}

.sp-sponsor-name {
    font-size: 0.8rem;
    font-weight: 700;
    color: #0f172a;
}

/* ==========================================================================
   BARRA DE BÚSQUEDA Y FILTROS POR CATEGORÍA & BADGES
   ========================================================================== */
.sp-shop-filter-bar {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 24px;
}

.sp-shop-search-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.sp-shop-search-input-wrap {
    flex: 1;
    min-width: 260px;
    position: relative;
}

.sp-shop-search-input-wrap i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
}

.sp-shop-search-input {
    width: 100%;
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    color: #0f172a;
    padding: 12px 16px 12px 44px;
    border-radius: 14px;
    font-size: 0.88rem;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.2s ease;
}

.sp-shop-search-input:focus {
    border-color: #84cc16;
    box-shadow: 0 0 0 3px rgba(132, 204, 22, 0.15);
}

.sp-shop-sort-select {
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    color: #0f172a;
    padding: 0 16px;
    border-radius: 14px;
    font-size: 0.82rem;
    font-weight: 700;
    outline: none;
    cursor: pointer;
    height: 48px;
}

/* Pills de categorías con scroll horizontal */
.sp-category-pills {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 4px 0 6px 0;
    scrollbar-width: none;
}

.sp-category-pills::-webkit-scrollbar {
    display: none;
}

.sp-category-pill {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #475569;
    padding: 8px 14px;
    border-radius: 12px;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
}

.sp-category-pill:hover {
    color: #000;
    border-color: #94a3b8;
    background: #f8fafc;
}

.sp-category-pill.active {
    background: #CCFF00;
    color: #000000;
    border-color: #a3e635;
    font-weight: 900;
    box-shadow: 0 2px 10px rgba(204, 255, 0, 0.3);
}

/* Filtros por etiqueta */
.sp-tag-filters {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.sp-tag-pill {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 5px 11px;
    border-radius: 8px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    color: #475569;
    cursor: pointer;
    transition: all 0.15s ease;
}

.sp-tag-pill.active {
    background: #e0f2fe;
    color: #0369a1;
    border-color: #38bdf8;
    font-weight: 800;
}

/* ==========================================================================
   GRID DE PRODUCTOS Y TARJETAS
   ========================================================================== */
.sp-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

@media (max-width: 480px) {
    .sp-products-grid {
        grid-template-columns: 1fr;
    }
}

.sp-product-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: var(--sp-shop-radius);
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.05);
}

.sp-product-card:hover {
    border-color: #84cc16;
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

.sp-product-badge-wrap {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 2;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    max-width: 85%;
}

.sp-product-badge {
    font-size: 0.65rem;
    font-weight: 900;
    padding: 3px 8px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    display: inline-block;
}

.sp-badge-recommended {
    background: #CCFF00;
    color: #000;
}

.sp-badge-offer {
    background: #EF4444;
    color: #fff;
}

.sp-badge-official {
    background: #0284c7;
    color: #fff;
}

.sp-badge-top {
    background: #f59e0b;
    color: #000;
}

.sp-product-image-container {
    width: 100%;
    height: 190px;
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-bottom: 14px;
}

.sp-product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.sp-product-card:hover .sp-product-image {
    transform: scale(1.05);
}

.sp-product-brand-tag {
    font-size: 0.72rem;
    font-weight: 800;
    color: #0284c7;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 4px;
}

.sp-product-title {
    font-family: var(--sp-shop-font-title);
    font-size: 1.05rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 6px 0;
    line-height: 1.3;
}

.sp-product-desc-short {
    font-size: 0.78rem;
    color: #64748b;
    margin: 0 0 12px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sp-product-pricing {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 14px;
}

.sp-product-price-promo {
    font-family: var(--sp-shop-font-title);
    font-size: 1.4rem;
    font-weight: 900;
    color: #0f172a;
}

.sp-product-price-original {
    font-size: 0.85rem;
    color: #94a3b8;
    text-decoration: line-through;
    font-weight: 600;
}

.sp-product-discount-pill {
    background: #fee2e2;
    color: #b91c1c;
    font-size: 0.68rem;
    font-weight: 850;
    padding: 2px 6px;
    border-radius: 6px;
    margin-left: auto;
}

.sp-product-partner-info {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.72rem;
    color: #64748b;
    margin-bottom: 12px;
    padding-top: 8px;
    border-top: 1px solid #f1f5f9;
}

.sp-product-card-actions {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 6px;
}

.sp-btn-details {
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    color: #0f172a;
    padding: 9px 12px;
    border-radius: 10px;
    font-size: 0.78rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.15s ease;
    text-align: center;
}

.sp-btn-details:hover {
    background: #e2e8f0;
    border-color: #94a3b8;
}

.sp-btn-buy-ext {
    background: #CCFF00;
    border: 1px solid #a3e635;
    color: #000000;
    padding: 9px 12px;
    border-radius: 10px;
    font-size: 0.78rem;
    font-weight: 900;
    cursor: pointer;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    transition: transform 0.15s ease;
}

.sp-btn-buy-ext:hover {
    transform: scale(1.03);
}

.sp-btn-share-mini {
    background: #f0fdf4;
    border: 1px solid #86efac;
    color: #16a34a;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
}

.sp-btn-share-mini:hover {
    background: #dcfce7;
    border-color: #22c55e;
}

/* ==========================================================================
   MODAL DE FICHA DETALLADA DE PRODUCTO (TOP LUXURY APP E-COMMERCE)
   ========================================================================== */
#sp-tienda-modal-root {
    position: relative;
    z-index: 120000;
}

body.sp-modal-open {
    overflow: hidden !important;
}

.sp-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 14, 26, 0.78);
    backdrop-filter: blur(14px) saturate(160%);
    -webkit-backdrop-filter: blur(14px) saturate(160%);
    z-index: 120000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
    animation: spBackdropFadeIn 0.25s ease forwards;
}

@keyframes spBackdropFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes spModalPopIn {
    from {
        opacity: 0;
        transform: translateY(24px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.sp-product-detail-modal {
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    border-radius: 28px;
    width: 100%;
    max-width: 960px;
    max-height: 92vh;
    height: 92vh;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    box-shadow: 0 35px 80px rgba(0, 0, 0, 0.4), 0 0 1px rgba(0, 0, 0, 0.1);
    color: #0f172a;
    animation: spModalPopIn 0.28s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@media (max-width: 768px) {
    .sp-modal-backdrop {
        padding: 0;
        align-items: flex-end;
    }
    .sp-product-detail-modal {
        max-width: 100%;
        width: 100%;
        max-height: 100dvh;
        height: 100dvh;
        border-radius: 0;
        border: none;
        animation: spModalSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1) both;
    }
}

@keyframes spModalSlideUp {
    from {
        opacity: 0;
        transform: translateY(100%);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 1. BARRA SUPERIOR FIJA (STICKY TOP APP BAR) */
.sp-detail-top-bar {
    height: 60px;
    min-height: 60px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1.5px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 18px;
    position: sticky;
    top: 0;
    z-index: 20;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.sp-detail-top-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f1f5f9;
    color: #0f172a;
    border: 1.5px solid #cbd5e1;
    padding: 8px 14px;
    border-radius: 12px;
    font-weight: 850;
    font-size: 0.84rem;
    cursor: pointer;
    transition: all 0.15s ease;
}

.sp-detail-top-back-btn:hover {
    background: #0f172a;
    color: #CCFF00;
    border-color: #0f172a;
    transform: translateX(-2px);
}

.sp-detail-top-back-btn i {
    font-size: 0.9rem;
}

.sp-detail-top-crumb {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 0.76rem;
    font-weight: 850;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

@media (max-width: 600px) {
    .sp-detail-top-bar {
        padding: 0 12px;
        height: 54px;
        min-height: 54px;
    }
    .sp-detail-top-back-btn {
        padding: 6px 12px;
        font-size: 0.8rem;
        gap: 6px;
        background: #ffffff;
        border-color: #cbd5e1;
    }
    .sp-detail-top-crumb {
        display: none;
    }
    .sp-detail-top-actions {
        gap: 6px;
    }
    .sp-detail-head-btn {
        width: 34px;
        height: 34px;
        font-size: 0.85rem;
    }
}

.sp-top-crumb-brand {
    color: #0284c7;
    font-weight: 950;
}

.sp-top-crumb-sep {
    font-size: 0.65rem;
    color: #cbd5e1;
}

.sp-top-crumb-cat {
    color: #334155;
}

.sp-detail-top-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sp-detail-head-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #334155;
    font-size: 0.95rem;
    cursor: pointer;
    position: relative;
    transition: all 0.15s ease;
}

.sp-detail-head-btn:hover {
    background: #0f172a;
    color: #ffffff;
    border-color: #0f172a;
}

.sp-detail-head-btn.is-fav {
    background: #fef2f2;
    border-color: #fecaca;
    color: #ef4444;
}

.sp-detail-head-btn.heart-bounce {
    animation: heartBounce 0.5s ease;
}

@keyframes heartBounce {
    0% { transform: scale(1); }
    50% { transform: scale(1.35); }
    100% { transform: scale(1); }
}

.sp-detail-cart-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #CCFF00;
    color: #000000;
    font-size: 0.65rem;
    font-weight: 950;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid #000;
}

.sp-detail-close-btn:hover {
    background: #ef4444;
    color: #ffffff;
    border-color: #ef4444;
}

/* 2. CONTENIDO PRINCIPAL CON SCROLL */
.sp-detail-content-scroll {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    padding: 24px;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .sp-detail-content-scroll {
        padding: 14px 14px 115px 14px;
    }
}

.sp-detail-main-layout {
    display: flex;
    flex-direction: column;
    gap: 18px;
    max-width: 680px;
    margin: 0 auto;
    width: 100%;
}

.sp-detail-header-block {
    display: flex;
    flex-direction: column;
    width: 100%;
}

/* HERO GALLERY & VISUALIZADOR PRO CENTRADO */
.sp-detail-gallery-col {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.sp-gallery-centered {
    max-width: 500px;
    margin: 0 auto;
    width: 100%;
}

.sp-gallery-stage {
    position: relative;
    width: 100%;
    border-radius: 22px;
    overflow: hidden;
    background: radial-gradient(circle at center, #ffffff 45%, #f1f5f9 100%);
    border: 1.5px solid #e2e8f0;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
}

.sp-gallery-badges {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 5;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 5px;
    max-width: 75%;
}

.sp-gal-badge {
    font-size: 0.65rem;
    font-weight: 950;
    padding: 3px 8px;
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.sp-gal-badge-discount {
    background: #ef4444;
    color: #ffffff;
}

.sp-gal-badge-official {
    background: #CCFF00;
    color: #000000;
    border: 1px solid #000;
}

.sp-gal-badge-bestseller {
    background: #f59e0b;
    color: #000000;
    font-weight: 900;
}

.sp-gallery-counter {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 5;
    background: rgba(15, 23, 42, 0.72);
    backdrop-filter: blur(8px);
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 850;
    padding: 3px 9px;
    border-radius: 12px;
    letter-spacing: 0.5px;
}

.sp-gal-nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    border: 1.5px solid #e2e8f0;
    color: #0f172a;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
    transition: all 0.15s ease;
    box-shadow: 0 4px 14px rgba(0,0,0,0.1);
}

.sp-gal-nav-arrow:hover {
    background: #0f172a;
    color: #CCFF00;
    border-color: #0f172a;
    transform: translateY(-50%) scale(1.08);
}

.sp-gal-prev {
    left: 10px;
}

.sp-gal-next {
    right: 10px;
}

.sp-gal-main-wrap {
    width: 100%;
    height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: zoom-in;
    overflow: hidden;
    background: transparent;
    padding: 16px;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .sp-gal-main-wrap {
        height: 300px;
        padding: 10px;
    }
}

.sp-gal-main-img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    filter: drop-shadow(0 12px 24px rgba(15, 23, 42, 0.12));
}

.sp-gal-main-wrap:hover .sp-gal-main-img {
    transform: scale(1.04);
}

.sp-gal-zoom-hint {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(15, 23, 42, 0.72);
    backdrop-filter: blur(8px);
    color: #ffffff;
    font-size: 0.65rem;
    font-weight: 750;
    padding: 4px 9px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 5px;
    pointer-events: none;
    opacity: 0.9;
}

/* PUNTOS INDICADORES DE FOTO (MOBILE DOTS) */
.sp-gallery-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 4px 0 2px 0;
}

.sp-gallery-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #cbd5e1;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.sp-gallery-dot.active {
    background: #0f172a;
    width: 22px;
    border-radius: 10px;
}

.sp-gallery-thumbnails {
    display: flex;
    gap: 8px;
    margin-top: 2px;
    overflow-x: auto;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
}

.sp-gallery-thumbnails.sp-thumbs-centered {
    justify-content: center;
}

.sp-gal-thumb-btn {
    width: 62px;
    height: 62px;
    border-radius: 12px;
    border: 2px solid transparent;
    background: #ffffff;
    padding: 3px;
    overflow: hidden;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}

.sp-gal-thumb-btn img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.sp-gal-thumb-btn:hover {
    border-color: #cbd5e1;
    transform: translateY(-2px);
}

.sp-gal-thumb-btn.active {
    border-color: #0f172a;
    box-shadow: 0 0 10px rgba(15, 23, 42, 0.25);
    transform: scale(1.04);
}

/* TARJETAS DE GARANTÍA OFICIAL (TRUST STRIP) */
.sp-detail-trust-pills {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin: 14px 0 18px 0;
}

@media (max-width: 600px) {
    .sp-detail-trust-pills {
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
    }
}

.sp-trust-pill {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 9px 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

@media (max-width: 600px) {
    .sp-trust-pill {
        flex-direction: column;
        text-align: center;
        padding: 8px 4px;
        gap: 4px;
    }
}

.sp-trust-pill i {
    font-size: 1.1rem;
    color: #15803d;
    flex-shrink: 0;
}

.sp-trust-pill strong {
    display: block;
    font-size: 0.74rem;
    color: #0f172a;
    line-height: 1.2;
}

@media (max-width: 600px) {
    .sp-trust-pill strong {
        font-size: 0.68rem;
    }
}

.sp-trust-pill span {
    display: block;
    font-size: 0.66rem;
    color: #64748b;
}

@media (max-width: 600px) {
    .sp-trust-pill span {
        display: none;
    }
}


/* INFORMACIÓN & ACCIONES */
.sp-detail-info-col {
    display: flex;
    flex-direction: column;
}

.sp-detail-brand-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.sp-brand-capsule {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sp-club-verified {
    font-size: 0.73rem;
    color: #0284c7;
    font-weight: 750;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.sp-detail-title {
    font-family: var(--sp-shop-font-title, 'Outfit', sans-serif);
    font-size: 1.65rem;
    font-weight: 950;
    color: #0f172a;
    margin: 0 0 10px 0;
    line-height: 1.25;
}

@media (max-width: 768px) {
    .sp-detail-title {
        font-size: 1.4rem;
    }
}

.sp-detail-rating-strip {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.8rem;
    margin-bottom: 14px;
}

.sp-stars-box {
    display: flex;
    align-items: center;
    gap: 4px;
}

.sp-stars-filled {
    color: #f59e0b;
    font-size: 0.95rem;
    letter-spacing: 1px;
}

.sp-rating-score-num {
    font-weight: 900;
    color: #0f172a;
}

.sp-rating-divider {
    color: #cbd5e1;
}

.sp-rating-reviews-txt {
    color: #64748b;
    font-weight: 600;
}

.sp-recommended-tag {
    background: #f0fdf4;
    color: #166534;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 850;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.sp-detail-price-box {
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 18px;
    padding: 16px 20px;
    margin-bottom: 16px;
}

.sp-price-primary-row {
    display: flex;
    align-items: baseline;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 6px;
}

.sp-price-current {
    font-family: var(--sp-shop-font-title, 'Outfit', sans-serif);
    font-size: 2.1rem;
    font-weight: 950;
    color: #0f172a;
    letter-spacing: -0.5px;
}

.sp-price-strikethrough {
    font-size: 1.15rem;
    color: #94a3b8;
    text-decoration: line-through;
    font-weight: 700;
}

.sp-discount-pill {
    background: #fee2e2;
    color: #b91c1c;
    border: 1px solid #fecaca;
    font-size: 0.78rem;
    font-weight: 900;
    padding: 3px 10px;
    border-radius: 8px;
}

.sp-price-sub-info {
    font-size: 0.75rem;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.sp-stock-ticker-box {
    background: #f0fdf4;
    border: 1.5px solid #bbf7d0;
    border-radius: 14px;
    padding: 12px 16px;
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sp-stock-live-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: #166534;
}

.sp-stock-pulse-dot {
    width: 9px;
    height: 9px;
    background: #22c55e;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
    animation: spDotPulse 1.8s infinite;
}

@keyframes spDotPulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.sp-stock-countdown {
    font-size: 0.73rem;
    color: #15803d;
    font-weight: 700;
    margin-left: 17px;
}

/* Selector de Variantes */
.sp-variants-section {
    margin-bottom: 16px;
}

.sp-variant-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.78rem;
    font-weight: 850;
    color: #334155;
    margin-bottom: 8px;
}

.sp-variant-selected-txt {
    color: #0284c7;
    font-weight: 900;
}

.sp-variant-chips {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.sp-variant-chip {
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    border-radius: 12px;
    padding: 8px 14px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    cursor: pointer;
    transition: all 0.15s ease;
    position: relative;
}

.sp-variant-chip:hover {
    border-color: #0f172a;
    transform: translateY(-1px);
}

.sp-variant-chip.active {
    border-color: #0f172a;
    background: #0f172a;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.sp-variant-chip .sp-v-name {
    font-size: 0.8rem;
    font-weight: 850;
}

.sp-variant-chip .sp-v-price {
    font-size: 0.74rem;
    font-weight: 700;
    color: #16a34a;
}

.sp-variant-chip.active .sp-v-price {
    color: #CCFF00;
}

.sp-variant-chip .sp-v-badge {
    position: absolute;
    top: -8px;
    right: 8px;
    background: #ef4444;
    color: #ffffff;
    font-size: 0.6rem;
    font-weight: 900;
    padding: 1px 6px;
    border-radius: 6px;
}

/* Selector de Cantidad */
.sp-quantity-card {
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 14px;
    padding: 12px 16px;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sp-qty-label-group {
    display: flex;
    flex-direction: column;
}

.sp-qty-label {
    font-size: 0.82rem;
    font-weight: 850;
    color: #0f172a;
}

.sp-qty-stock-hint {
    font-size: 0.7rem;
    color: #64748b;
}

.sp-qty-stepper-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f8fafc;
    border: 1.5px solid #cbd5e1;
    border-radius: 10px;
    padding: 4px 8px;
}

.sp-qty-btn {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.78rem;
    font-weight: 900;
    color: #0f172a;
    transition: background 0.15s;
}

.sp-qty-btn:hover {
    background: #CCFF00;
    border-color: #000;
}

.sp-qty-number {
    font-family: var(--sp-shop-font-title, 'Outfit', sans-serif);
    font-size: 1.1rem;
    font-weight: 950;
    min-width: 20px;
    text-align: center;
    color: #0f172a;
}

/* Pestañas de Ficha Técnica */
.sp-detail-tabs-bar {
    display: flex;
    gap: 6px;
    border-bottom: 2px solid #e2e8f0;
    margin-bottom: 16px;
    overflow-x: auto;
}

.sp-tab-nav-btn {
    background: none;
    border: none;
    padding: 10px 14px;
    font-weight: 850;
    font-size: 0.82rem;
    color: #64748b;
    cursor: pointer;
    border-bottom: 2.5px solid transparent;
    margin-bottom: -2px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    transition: all 0.15s ease;
}

.sp-tab-nav-btn:hover {
    color: #0f172a;
}

.sp-tab-nav-btn.active {
    color: #0f172a;
    border-bottom-color: #0f172a;
}

.sp-tab-panel {
    display: none;
    animation: spFadeIn 0.2s ease;
}

.sp-tab-panel.active {
    display: block;
}

@keyframes spFadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

.sp-panel-desc {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #334155;
    margin-bottom: 16px;
}

.sp-highlights-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 18px;
}

.sp-highlight-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 0.82rem;
    color: #1e293b;
    font-weight: 650;
}

.sp-highlight-item i {
    color: #16a34a;
    font-size: 1rem;
    flex-shrink: 0;
}

.sp-specs-table {
    display: flex;
    flex-direction: column;
    border: 1.5px solid #e2e8f0;
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 18px;
}

.sp-spec-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 14px;
    font-size: 0.82rem;
    border-bottom: 1px solid #e2e8f0;
}

.sp-spec-row:last-child {
    border-bottom: none;
}

.sp-spec-row:nth-child(even) {
    background: #f8fafc;
}

.sp-spec-key {
    font-weight: 800;
    color: #475569;
}

.sp-spec-val {
    font-weight: 700;
    color: #0f172a;
    text-align: right;
}

.sp-club-perks-box {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 18px;
}

.sp-perk-card {
    background: #f0fdf4;
    border: 1.5px solid #bbf7d0;
    border-radius: 12px;
    padding: 12px 14px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.sp-perk-icon {
    font-size: 1.3rem;
    color: #16a34a;
    flex-shrink: 0;
    margin-top: 2px;
}

.sp-perk-card strong {
    display: block;
    font-size: 0.82rem;
    color: #166534;
    margin-bottom: 3px;
}

.sp-perk-card p {
    margin: 0;
    font-size: 0.78rem;
    color: #15803d;
    line-height: 1.4;
}

.sp-perk-card code {
    background: #dcfce7;
    color: #14532d;
    padding: 2px 6px;
    border-radius: 6px;
    font-weight: 900;
}

/* Reseñas de Jugadores */
.sp-reviews-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 18px;
}

.sp-review-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px 14px;
}

.sp-review-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.sp-reviewer-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sp-reviewer-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #0f172a;
    color: #CCFF00;
    font-size: 0.8rem;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sp-reviewer-name {
    font-size: 0.82rem;
    font-weight: 850;
    color: #0f172a;
}

.sp-reviewer-level {
    font-size: 0.7rem;
    color: #64748b;
    font-weight: 600;
}

.sp-review-stars {
    text-align: right;
}

.sp-review-stars span:first-child {
    color: #f59e0b;
    font-size: 0.85rem;
    display: block;
}

.sp-review-date {
    font-size: 0.65rem;
    color: #94a3b8;
}

.sp-review-body {
    margin: 0;
    font-size: 0.8rem;
    color: #334155;
    font-style: italic;
    line-height: 1.4;
}

/* Franja de Compartir en Redes Sociales */
.sp-share-strip {
    margin-top: 18px;
    padding: 14px 16px;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sp-share-label {
    font-size: 0.8rem;
    font-weight: 850;
    color: #334155;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sp-share-label i {
    color: #0284c7;
    font-size: 0.95rem;
}

.sp-share-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.sp-share-btn {
    border: 1.5px solid #cbd5e1;
    background: #ffffff;
    border-radius: 12px;
    padding: 8px 14px;
    font-size: 0.8rem;
    font-weight: 850;
    color: #0f172a;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    cursor: pointer;
    transition: all 0.18s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03);
}

.sp-share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.sp-share-btn i {
    font-size: 1rem;
}

.sp-share-wa {
    color: #15803d;
    background: #f0fdf4;
    border-color: #bbf7d0;
}
.sp-share-wa:hover {
    background: #22c55e;
    color: #ffffff;
    border-color: #16a34a;
}
.sp-share-wa i {
    color: #16a34a;
}
.sp-share-wa:hover i {
    color: #ffffff;
}

.sp-share-ig {
    color: #9d174d;
    background: #fdf2f8;
    border-color: #fbcfe8;
}
.sp-share-ig:hover {
    background: #db2777;
    color: #ffffff;
    border-color: #db2777;
}
.sp-share-ig i {
    color: #e1306c;
}
.sp-share-ig:hover i {
    color: #ffffff;
}

.sp-share-fb {
    color: #1d4ed8;
    background: #eff6ff;
    border-color: #bfdbfe;
}
.sp-share-fb:hover {
    background: #2563eb;
    color: #ffffff;
    border-color: #1d4ed8;
}
.sp-share-fb i {
    color: #1877f2;
}
.sp-share-fb:hover i {
    color: #ffffff;
}

.sp-share-copy {
    color: #334155;
    background: #ffffff;
    border-color: #cbd5e1;
}
.sp-share-copy:hover {
    background: #0f172a;
    color: #CCFF00;
    border-color: #0f172a;
}
.sp-share-copy:hover i {
    color: #CCFF00;
}

@media (max-width: 600px) {
    .sp-share-strip {
        padding: 12px;
    }
    .sp-share-buttons {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }
    .sp-share-btn {
        justify-content: center;
        padding: 9px 8px;
        font-size: 0.76rem;
    }
}

/* Productos Relacionados */
.sp-related-section {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1.5px solid #e2e8f0;
}

.sp-related-title {
    font-size: 0.85rem;
    font-weight: 900;
    color: #0f172a;
    margin: 0 0 12px 0;
    display: flex;
    align-items: center;
    gap: 7px;
}

.sp-related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

@media (max-width: 600px) {
    .sp-related-grid {
        grid-template-columns: 1fr;
    }
}

.sp-related-card {
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    padding: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.15s ease;
    position: relative;
}

.sp-related-card:hover {
    border-color: #0f172a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.sp-related-img {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    object-fit: cover;
    background: #f8fafc;
    flex-shrink: 0;
}

.sp-related-details {
    flex: 1;
    min-width: 0;
}

.sp-related-brand {
    font-size: 0.65rem;
    font-weight: 850;
    color: #0284c7;
    text-transform: uppercase;
    display: block;
}

.sp-related-name {
    font-size: 0.74rem;
    font-weight: 800;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sp-related-price {
    font-size: 0.78rem;
    font-weight: 950;
    color: #15803d;
}

.sp-related-add-btn {
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    color: #0f172a;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
    flex-shrink: 0;
}

.sp-related-add-btn:hover {
    background: #CCFF00;
    border-color: #000;
}

/* 3. BARRA INFERIOR FIJA DE COMPRA (STICKY BOTTOM BUY BAR) */
.sp-detail-bottom-bar {
    height: 76px;
    min-height: 76px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1.5px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    position: sticky;
    bottom: 0;
    z-index: 30;
    box-shadow: 0 -8px 25px rgba(0, 0, 0, 0.08);
}

@media (max-width: 768px) {
    .sp-detail-bottom-bar {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        box-sizing: border-box;
        padding: 0 16px;
        padding-bottom: max(6px, env(safe-area-inset-bottom));
        height: auto;
        min-height: 72px;
        z-index: 120050;
    }
}

.sp-bottom-bar-price {
    display: flex;
    flex-direction: column;
}

.sp-bottom-subtxt {
    font-size: 0.68rem;
    font-weight: 750;
    color: #64748b;
    text-transform: uppercase;
}

.sp-bottom-total-row {
    display: flex;
    align-items: baseline;
    gap: 5px;
}

.sp-bottom-total-num {
    font-family: var(--sp-shop-font-title, 'Outfit', sans-serif);
    font-size: 1.55rem;
    font-weight: 950;
    color: #0f172a;
}

.sp-bottom-total-unit {
    font-size: 0.72rem;
    font-weight: 700;
    color: #64748b;
}

.sp-bottom-bar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sp-btn-buy-primary {
    background: #CCFF00;
    color: #000000;
    border: 2px solid #000000;
    padding: 13px 22px;
    border-radius: 14px;
    font-weight: 950;
    font-size: 0.92rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 16px rgba(204, 255, 0, 0.4);
    transition: all 0.15s ease;
}

.sp-btn-buy-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(204, 255, 0, 0.55);
}

.sp-btn-buy-primary.sp-btn-added-success {
    background: #10B981;
    color: #ffffff;
    border-color: #059669;
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.4);
}

.sp-btn-buy-whatsapp {
    background: #25D366;
    color: #ffffff;
    border: 1.5px solid #16a34a;
    padding: 13px 18px;
    border-radius: 14px;
    font-weight: 900;
    font-size: 0.88rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.15s ease;
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.3);
}

.sp-btn-buy-whatsapp:hover {
    background: #22c55e;
    transform: translateY(-2px);
}

@media (max-width: 480px) {
    .sp-wa-btn-text {
        display: none;
    }
    .sp-btn-buy-whatsapp {
        padding: 13px 16px;
    }
}

/* 4. LIGHTBOX OVERLAY */
.sp-lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.92);
    z-index: 130000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    animation: spBackdropFadeIn 0.2s ease forwards;
}

.sp-lightbox-content {
    position: relative;
    max-width: 900px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.sp-lightbox-img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

.sp-lightbox-caption {
    margin-top: 12px;
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 750;
    display: flex;
    gap: 14px;
}

.sp-lightbox-close {
    position: absolute;
    top: -45px;
    right: 0;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 1.8rem;
    cursor: pointer;
    padding: 4px;
}

/* ==========================================================================
   GESTIÓN DE PROVEEDORES Y COLABORADORES
   ========================================================================== */
.sp-partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.sp-partner-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: var(--sp-shop-radius);
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.05);
}

.sp-partner-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.sp-partner-logo {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 900;
    color: #15803d;
}

.sp-partner-name {
    font-family: var(--sp-shop-font-title);
    font-size: 1.15rem;
    font-weight: 850;
    color: #0f172a;
    margin: 0;
}

.sp-partner-type {
    font-size: 0.72rem;
    color: #0284c7;
    font-weight: 700;
}

.sp-partner-data-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 0.78rem;
    color: #475569;
    margin-bottom: 16px;
}

.sp-partner-data-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sp-partner-data-item i {
    color: #64748b;
    width: 14px;
}

/* ==========================================================================
   DASHBOARD COMERCIAL & PANEL ECONÓMICO
   ========================================================================== */
.sp-analytics-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 20px;
}

.sp-period-selector {
    display: flex;
    gap: 6px;
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    padding: 4px;
    border-radius: 12px;
}

.sp-period-btn {
    background: transparent;
    border: none;
    color: #475569;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.sp-period-btn.active {
    background: #ffffff;
    color: #0f172a;
    font-weight: 900;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.sp-kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.sp-kpi-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 18px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.05);
}

.sp-kpi-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: #84cc16;
}

.sp-kpi-label {
    font-size: 0.72rem;
    font-weight: 800;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.sp-kpi-value {
    font-family: var(--sp-shop-font-title);
    font-size: 1.6rem;
    font-weight: 900;
    color: #0f172a;
    margin-bottom: 4px;
}

.sp-kpi-subtitle {
    font-size: 0.75rem;
    color: #15803d;
    font-weight: 700;
}

/* Tablas económicas */
.sp-table-container {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 16px;
    margin-bottom: 24px;
    overflow-x: auto;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
}

.sp-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.82rem;
    color: #334155;
}

.sp-table th {
    text-align: left;
    padding: 12px 14px;
    font-weight: 800;
    color: #475569;
    border-bottom: 1px solid #e2e8f0;
    background: #f8fafc;
    font-size: 0.72rem;
    text-transform: uppercase;
}

.sp-table td {
    padding: 12px 14px;
    border-bottom: 1px solid #f1f5f9;
}

.sp-table tr:hover td {
    background: #f8fafc;
}

/* ==========================================================================
   INTEGRACIÓN EN EVENTOS: WIDGET DE EVENTO PATROCINADO
   ========================================================================== */
.sp-event-sponsor-box {
    background: linear-gradient(135deg, rgba(204, 255, 0, 0.08) 0%, rgba(16, 185, 129, 0.05) 100%);
    border: 1.5px solid #cbd5e1;
    border-radius: 18px;
    padding: 16px;
    margin: 14px 0;
}

.sp-event-sponsor-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    font-weight: 850;
    color: #15803d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.sp-event-sponsor-brand {
    font-size: 1.05rem;
    font-weight: 900;
    color: #0f172a;
    margin-bottom: 12px;
}

.sp-event-recommended-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 10px;
}

.sp-event-prod-mini {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #0f172a;
    transition: border-color 0.15s ease;
}

.sp-event-prod-mini:hover {
    border-color: #84cc16;
}

.sp-event-prod-mini img {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    object-fit: cover;
}

/* ==========================================================================
   NUEVA EXPERIENCIA DE TIENDA ONLINE PROFESIONAL (ESTILO E-COMMERCE REAL)
   ========================================================================== */

/* 1. Ticker Superior de Promociones y Envíos */
.sp-store-ticker {
    background: #0f172a;
    color: #ffffff;
    font-size: 0.76rem;
    font-weight: 750;
    padding: 8px 16px;
    border-radius: 12px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}
.sp-store-ticker::-webkit-scrollbar { display: none; }
.sp-store-ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    letter-spacing: 0.3px;
}
.sp-store-ticker-item i {
    color: #CCFF00;
}
.sp-store-ticker-divider {
    color: #475569;
}

/* 2. Barra de Navegación de la Tienda E-commerce (1 Sola Línea Impecable & Adaptable) */
.sp-store-navbar {
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 18px;
    padding: 10px 16px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: nowrap !important; /* Estricta única línea */
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
}

.sp-store-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #0f172a;
    flex-shrink: 1;
    min-width: 0;
}

.sp-store-brand-logo-img {
    width: 40px;
    height: 40px;
    border-radius: 11px;
    object-fit: contain;
    background: #0f172a;
    padding: 2px;
    border: 1.5px solid #1e293b;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
    flex-shrink: 0;
}

.sp-store-brand-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.sp-store-brand-title {
    font-family: var(--sp-shop-font-title);
    font-size: 1.15rem;
    font-weight: 950;
    letter-spacing: -0.3px;
    line-height: 1.1;
    margin: 0;
    color: #0f172a;
    white-space: nowrap;
}

.sp-store-brand-title span {
    color: #15803d;
}

.sp-store-brand-sub {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 2px;
    white-space: nowrap;
}

.sp-store-brand-badge {
    font-size: 0.62rem;
    font-weight: 900;
    background: #f0fdf4;
    color: #15803d;
    border: 1px solid #bbf7d0;
    padding: 2px 7px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    display: inline-block;
}

.sp-store-brand-subtxt {
    font-size: 0.68rem;
    color: #64748b;
    font-weight: 700;
}

.sp-store-nav-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: nowrap !important; /* Estricta única línea */
    flex-shrink: 0;
}

/* Botón "¿Dudas? Habla con nosotros" */
.sp-store-advisor-btn {
    background: #f0fdf4;
    border: 1.5px solid #86efac;
    color: #166534;
    padding: 8px 12px;
    border-radius: 12px;
    font-size: 0.78rem;
    font-weight: 850;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    transition: all 0.2s ease;
    text-decoration: none;
    flex-shrink: 0;
}

.sp-store-advisor-btn i {
    font-size: 1.1rem;
    color: #22c55e;
}

.sp-advisor-text-short {
    display: none;
}
.sp-advisor-text-full {
    display: inline;
}

.sp-store-advisor-btn:hover {
    background: #dcfce7;
    border-color: #22c55e;
    transform: translateY(-1px);
}

/* Botón Carrito de Compras en Header */
.sp-store-cart-trigger {
    background: #CCFF00;
    border: 1.5px solid #0f172a;
    color: #000000;
    padding: 8px 12px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 950;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 3px 12px rgba(204, 255, 0, 0.35);
    flex-shrink: 0;
}

.sp-store-cart-trigger:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 16px rgba(204, 255, 0, 0.5);
}

.sp-store-cart-badge {
    background: #0f172a;
    color: #CCFF00;
    font-size: 0.68rem;
    font-weight: 900;
    padding: 2px 6px;
    border-radius: 20px;
    line-height: 1;
}

.sp-store-lock-btn {
    background: #ffffff;
    color: #64748b;
    border: 1.5px solid #cbd5e1;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.82rem;
    flex-shrink: 0;
    transition: all 0.15s ease;
}

.sp-store-lock-btn:hover {
    background: #f1f5f9;
    color: #0f172a;
}

/* ==========================================================================
   ADAPTACIÓN RESPONSIVE AVANZADA: 1 SOLA LÍNEA SIN CORTES EN CUALQUIER MÓVIL
   ========================================================================== */
@media (max-width: 768px) {
    .sp-store-navbar {
        padding: 8px 10px;
        gap: 6px;
    }
    .sp-store-brand-subtxt {
        display: none;
    }
    .sp-cart-text-label {
        display: none;
    }
    .sp-advisor-text-full {
        display: none;
    }
    .sp-advisor-text-short {
        display: inline;
        font-weight: 850;
    }
}

@media (max-width: 580px) {
    .sp-tienda-container {
        padding: 8px 8px 90px 8px;
    }
    .sp-store-navbar {
        padding: 6px 8px;
        gap: 5px;
        border-radius: 14px;
        margin-bottom: 12px;
    }
    .sp-store-brand {
        gap: 6px;
    }
    .sp-store-brand-logo-img {
        width: 32px;
        height: 32px;
        border-radius: 8px;
        padding: 1px;
    }
    .sp-store-brand-title {
        font-size: 0.82rem;
        letter-spacing: -0.2px;
    }
    .sp-store-brand-sub {
        display: none; /* Da espacio libre para ver todos los botones */
    }
    .sp-store-nav-actions {
        gap: 4px;
    }
    .sp-store-advisor-btn {
        padding: 6px 7px;
        font-size: 0.72rem;
        gap: 4px;
        border-radius: 9px;
    }
    .sp-store-advisor-btn i {
        font-size: 0.95rem;
    }
    .sp-advisor-text-full {
        display: none;
    }
    .sp-advisor-text-short {
        display: inline;
        font-weight: 850;
    }
    .sp-store-cart-trigger {
        padding: 6px 8px;
        font-size: 0.74rem;
        gap: 4px;
        border-radius: 9px;
    }
    .sp-cart-text-label {
        display: none;
    }
    .sp-cart-total-amount {
        display: none; /* Muestra 🛒 + [badge] para máxima visibilidad */
    }
    .sp-store-lock-btn {
        width: 30px;
        height: 30px;
        font-size: 0.72rem;
        border-radius: 9px;
    }
    .sp-store-hero {
        padding: 6px 10px;
        gap: 6px;
        border-radius: 12px;
    }
    .sp-store-hero-desc {
        display: none;
    }
    .sp-store-hero-title {
        font-size: 0.74rem;
        line-height: 1.25;
    }
    .sp-store-hero-badge {
        font-size: 0.62rem;
        padding: 2px 6px;
    }
    .sp-store-coupon-pill {
        padding: 4px 8px;
        gap: 4px;
    }
    .sp-store-coupon-code {
        font-size: 0.76rem;
    }
    .sp-store-coupon-label {
        font-size: 0.62rem;
    }
}

@media (max-width: 375px) {
    .sp-tienda-container {
        padding: 6px 4px 90px 4px;
    }
    .sp-store-navbar {
        padding: 5px 6px;
        gap: 3px;
    }
    .sp-store-brand {
        gap: 4px;
    }
    .sp-store-brand-logo-img {
        width: 26px;
        height: 26px;
        border-radius: 6px;
    }
    .sp-store-brand-title {
        font-size: 0.74rem;
    }
    .sp-store-nav-actions {
        gap: 3px;
    }
    .sp-store-advisor-btn {
        padding: 5px 6px;
        font-size: 0.68rem;
    }
    .sp-store-cart-trigger {
        padding: 5px 6px;
        font-size: 0.70rem;
    }
    .sp-store-lock-btn {
        width: 28px;
        height: 28px;
        font-size: 0.68rem;
    }
}

/* 3. Hero Banner Comercial E-commerce (Versión Slim Compacta) */
.sp-store-hero {
    background: linear-gradient(90deg, #f0fdf4 0%, #ffffff 50%, #fefce8 100%);
    border: 1.5px solid #bbf7d0;
    border-radius: 14px;
    padding: 8px 16px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    transition: all 0.2s ease;
}
.sp-store-hero-left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.sp-store-hero-badge {
    background: #CCFF00;
    color: #000;
    font-size: 0.68rem;
    font-weight: 950;
    padding: 3px 8px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    border: 1px solid #000;
    margin: 0;
}
.sp-store-hero-title {
    font-family: var(--sp-shop-font-title);
    font-size: 0.85rem;
    font-weight: 850;
    color: #0f172a;
    margin: 0;
    line-height: 1.3;
}
.sp-store-hero-title span {
    color: #15803d;
}
.sp-store-hero-desc {
    color: #64748b;
    font-size: 0.78rem;
    margin: 0;
}
.sp-store-coupon-pill {
    background: #0f172a;
    border: 1px solid #0f172a;
    border-radius: 8px;
    padding: 5px 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.15s ease;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}
.sp-store-coupon-pill:hover {
    transform: translateY(-1px);
    background: #1e293b;
}
.sp-store-coupon-code {
    font-family: monospace;
    font-size: 0.88rem;
    font-weight: 950;
    color: #CCFF00;
    letter-spacing: 0.8px;
}
.sp-store-coupon-label {
    font-size: 0.68rem;
    font-weight: 850;
    color: #ffffff;
    text-transform: uppercase;
}

/* 4. Selector de Marcas Destacadas */
.sp-brands-row {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 12px 16px;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}
.sp-brands-title {
    font-size: 0.75rem;
    font-weight: 900;
    color: #0f172a;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}
.sp-brands-chips {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    padding: 2px 0;
}
.sp-brands-chips::-webkit-scrollbar { display: none; }
.sp-brand-chip-btn {
    background: #f8fafc;
    border: 1.5px solid #cbd5e1;
    color: #334155;
    padding: 5px 12px;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 800;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.15s ease;
}
.sp-brand-chip-btn:hover {
    background: #f1f5f9;
    border-color: #0f172a;
    color: #0f172a;
}
.sp-brand-chip-btn.active {
    background: #0f172a;
    border-color: #0f172a;
    color: #CCFF00;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* 5. Rating Stars y Stock */
.sp-rating-row {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.72rem;
    margin-bottom: 6px;
}
.sp-stars-yellow {
    color: #f59e0b;
    font-size: 0.75rem;
    letter-spacing: 1px;
}
.sp-rating-score {
    font-weight: 850;
    color: #0f172a;
}
.sp-rating-count {
    color: #64748b;
    font-size: 0.68rem;
}

.sp-stock-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.68rem;
    font-weight: 800;
    color: #166534;
    background: #f0fdf4;
    padding: 3px 8px;
    border-radius: 6px;
    margin-bottom: 10px;
}
.sp-stock-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 6px rgba(34, 197, 94, 0.6);
}

/* 6. Botones de Compra y Carrito en Tarjeta */
.sp-card-action-bar {
    display: flex;
    gap: 6px;
    margin-top: 10px;
}
.sp-btn-add-cart {
    flex: 1;
    background: #CCFF00;
    border: 1.5px solid #000000;
    color: #000000;
    padding: 10px 12px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 950;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.15s ease;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
}
.sp-btn-add-cart:hover {
    transform: translateY(-1px);
    background: #bbf200;
}
.sp-btn-view-quick {
    background: #f8fafc;
    border: 1.5px solid #cbd5e1;
    color: #1e293b;
    padding: 10px 12px;
    border-radius: 12px;
    font-size: 0.78rem;
    font-weight: 850;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
}
.sp-btn-view-quick:hover {
    background: #e2e8f0;
    border-color: #94a3b8;
}

/* 7. Modal / Drawer del Carrito de Compra */
.sp-cart-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(6px);
    z-index: 100000;
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    box-sizing: border-box;
}
.sp-cart-drawer {
    width: 100%;
    max-width: 460px;
    height: 100vh;
    background: #ffffff;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 24px;
    box-sizing: border-box;
    overflow-y: auto;
    animation: slideInRight 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes slideInRight {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}

.sp-cart-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 16px;
    border-bottom: 1.5px solid #e2e8f0;
    margin-bottom: 16px;
}
.sp-cart-drawer-title {
    font-family: var(--sp-shop-font-title);
    font-size: 1.3rem;
    font-weight: 950;
    color: #0f172a;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}
.sp-cart-drawer-close {
    background: #f1f5f9;
    border: none;
    color: #475569;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.15s ease;
}
.sp-cart-drawer-close:hover {
    background: #fee2e2;
    color: #dc2626;
}

/* Barra de progreso de envío gratis */
.sp-shipping-progress-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 12px 14px;
    margin-bottom: 16px;
}
.sp-shipping-progress-text {
    font-size: 0.78rem;
    font-weight: 850;
    color: #0f172a;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.sp-shipping-progress-track {
    width: 100%;
    height: 8px;
    background: #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
}
.sp-shipping-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #CCFF00, #16a34a);
    border-radius: 10px;
    transition: width 0.3s ease;
}

/* Items del Carrito */
.sp-cart-items-container {
    flex: 1;
    overflow-y: auto;
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.sp-cart-item-row {
    display: flex;
    gap: 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 10px;
    align-items: center;
}
.sp-cart-item-img {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    object-fit: cover;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    flex-shrink: 0;
}
.sp-cart-item-details {
    flex: 1;
    min-width: 0;
}
.sp-cart-item-title {
    font-size: 0.82rem;
    font-weight: 850;
    color: #0f172a;
    margin: 0 0 4px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.sp-cart-item-brand {
    font-size: 0.68rem;
    font-weight: 800;
    color: #0284c7;
    text-transform: uppercase;
}
.sp-cart-item-price {
    font-size: 0.9rem;
    font-weight: 950;
    color: #0f172a;
    margin-top: 2px;
}
.sp-cart-qty-ctrl {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    border-radius: 8px;
    padding: 2px 6px;
}
.sp-cart-qty-btn {
    background: none;
    border: none;
    font-size: 0.9rem;
    font-weight: 900;
    color: #0f172a;
    cursor: pointer;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.sp-cart-qty-val {
    font-size: 0.82rem;
    font-weight: 850;
    color: #0f172a;
    min-width: 16px;
    text-align: center;
}
.sp-cart-item-remove {
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    font-size: 0.85rem;
    padding: 4px;
    transition: color 0.15s ease;
}
.sp-cart-item-remove:hover {
    color: #ef4444;
}

/* Caja de Cupón */
.sp-cart-coupon-form {
    display: flex;
    gap: 8px;
    margin-bottom: 14px;
}
.sp-cart-coupon-input {
    flex: 1;
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    border-radius: 10px;
    padding: 8px 12px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #0f172a;
    text-transform: uppercase;
    outline: none;
}
.sp-cart-coupon-btn {
    background: #0f172a;
    color: #ffffff;
    border: none;
    border-radius: 10px;
    padding: 8px 14px;
    font-size: 0.78rem;
    font-weight: 850;
    cursor: pointer;
    transition: background 0.15s ease;
}
.sp-cart-coupon-btn:hover {
    background: #334155;
}

/* Totales y Checkout */
.sp-cart-summary-box {
    border-top: 1.5px solid #e2e8f0;
    padding-top: 14px;
}
.sp-cart-summary-line {
    display: flex;
    justify-content: space-between;
    font-size: 0.82rem;
    color: #475569;
    margin-bottom: 6px;
    font-weight: 600;
}
.sp-cart-summary-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.25rem;
    font-weight: 950;
    color: #0f172a;
    margin: 10px 0 16px 0;
    padding-top: 8px;
    border-top: 1px dashed #cbd5e1;
}

.sp-btn-checkout-wa {
    width: 100%;
    background: #25D366;
    border: 1.5px solid #16a34a;
    color: #ffffff;
    padding: 14px;
    border-radius: 14px;
    font-size: 0.95rem;
    font-weight: 950;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 18px rgba(37, 211, 102, 0.35);
    transition: transform 0.15s ease;
    text-decoration: none;
}
.sp-btn-checkout-wa:hover {
    transform: translateY(-2px);
    background: #20bd5a;
}

/* 8. Footer de Confianza (Trust Badges) */
.sp-trust-footer {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 20px;
    padding: 24px 20px;
    margin-top: 40px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
}
.sp-trust-card {
    display: flex;
    align-items: center;
    gap: 14px;
}
.sp-trust-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: #15803d;
    flex-shrink: 0;
}
.sp-trust-text h4 {
    font-family: var(--sp-shop-font-title);
    font-size: 0.92rem;
    font-weight: 850;
    color: #0f172a;
    margin: 0 0 3px 0;
}
.sp-trust-text p {
    font-size: 0.75rem;
    color: #64748b;
    margin: 0;
    line-height: 1.35;
}

/* ==========================================================================
   SUBMENÚ HORIZONTAL DE TIENDA SOMOSPADEL (VERDE AZULADO / TEAL LUXURY)
   Píldoras interactivas con flechas laterales, badges y temática de tienda
   ========================================================================== */
.subnav-app-bar.subnav-theme-tienda {
    background: linear-gradient(135deg, #0d9488 0%, #0f766e 28%, #115e59 62%, #042f2e 100%) !important;
    border-top: 1.5px solid rgba(255, 255, 255, 0.45) !important;
    border-bottom: 2.5px solid rgba(4, 47, 46, 0.75) !important;
    border-image: none !important;
    box-shadow: 0 8px 25px rgba(13, 148, 136, 0.45), 0 3px 10px rgba(0, 0, 0, 0.3) !important;
    position: relative !important;
    padding: 6px 10px;
    z-index: 100;
}

.subnav-app-bar.subnav-theme-tienda::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(ellipse at 50% 0%, rgba(94, 234, 212, 0.45) 0%, rgba(20, 184, 166, 0.15) 45%, transparent 75%) !important;
    opacity: 0.85 !important;
    pointer-events: none;
}

.subnav-outer-flex {
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
}

.subnav-nav-arrow {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    z-index: 2;
    transition: all 0.2s ease;
}

.subnav-app-bar.subnav-theme-tienda .subnav-nav-arrow {
    background: linear-gradient(145deg, #042f2e 0%, #0f766e 100%) !important;
    border: 1.5px solid #2dd4bf !important;
    color: #2dd4bf !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(45, 212, 191, 0.35) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    transition: all 0.24s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}
.subnav-app-bar.subnav-theme-tienda .subnav-nav-arrow:hover {
    background: #042f2e !important;
    border-color: #5eead4 !important;
    color: #ffffff !important;
    box-shadow: 0 0 20px rgba(45, 212, 191, 0.95), 0 4px 12px rgba(0, 0, 0, 0.5) !important;
    transform: scale(1.14) !important;
}
.subnav-app-bar.subnav-theme-tienda .subnav-nav-arrow:active {
    transform: scale(0.92) !important;
}

.tienda-submenu-pro-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    touch-action: pan-x;
    padding: 4px 4px;
    scrollbar-width: none;
    box-sizing: border-box;
    flex: 1;
}

.tienda-submenu-pro-bar::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

.subnav-app-bar.subnav-theme-tienda .esm-pro-btn {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 16px;
    border-radius: 999px !important;
    font-size: 0.72rem;
    font-weight: 850;
    letter-spacing: 0.35px;
    white-space: nowrap;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.subnav-app-bar.subnav-theme-tienda .esm-pro-btn.inactive {
    background: linear-gradient(145deg, rgba(4, 47, 46, 0.92) 0%, rgba(15, 118, 110, 0.95) 100%) !important;
    color: #ffffff !important;
    border: 1.5px solid rgba(45, 212, 191, 0.35) !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.38), inset 0 1px 1px rgba(255, 255, 255, 0.2) !important;
    backdrop-filter: blur(14px) !important;
    -webkit-backdrop-filter: blur(14px) !important;
    font-weight: 850 !important;
    letter-spacing: 0.35px !important;
    text-shadow: 0 1px 2px #042f2e !important;
}

.subnav-app-bar.subnav-theme-tienda .esm-pro-btn.inactive i {
    color: #5eead4 !important;
    transition: transform 0.22s ease, color 0.22s ease, filter 0.22s ease;
    filter: drop-shadow(0 0 6px rgba(94, 234, 212, 0.6));
}

.subnav-app-bar.subnav-theme-tienda button[data-tab-id="ofertas"].inactive i {
    color: #facc15 !important;
    filter: drop-shadow(0 0 7px rgba(250, 204, 21, 0.8));
}
.subnav-app-bar.subnav-theme-tienda button[data-tab-id="cesta"].inactive i {
    color: #a7f3d0 !important;
    filter: drop-shadow(0 0 7px rgba(167, 243, 208, 0.8));
}

.subnav-app-bar.subnav-theme-tienda .esm-pro-btn.inactive:hover {
    background: linear-gradient(145deg, rgba(13, 148, 136, 0.98) 0%, rgba(15, 118, 110, 1) 100%) !important;
    color: #ffffff !important;
    border-color: #5eead4 !important;
    transform: translateY(-2.5px) scale(1.05) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), 0 0 16px rgba(45, 212, 191, 0.5) !important;
}

.subnav-app-bar.subnav-theme-tienda .esm-pro-btn.inactive:hover i {
    transform: scale(1.18);
    color: #ffffff !important;
}

.subnav-app-bar.subnav-theme-tienda .esm-pro-btn.inactive:active {
    transform: scale(0.96) !important;
}

.subnav-app-bar.subnav-theme-tienda .esm-pro-btn.active {
    background: linear-gradient(135deg, #2dd4bf 0%, #14b8a6 100%) !important;
    color: #042f2e !important;
    font-weight: 950 !important;
    border: 2px solid #ffffff !important;
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.4), 0 0 22px rgba(45, 212, 191, 0.9), inset 0 2px 2px #ffffff !important;
    transform: translateY(-1px) scale(1.06) !important;
    text-shadow: none !important;
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}
.subnav-app-bar.subnav-theme-tienda .esm-pro-btn.active i {
    color: #042f2e !important;
    transform: scale(1.15) !important;
    filter: drop-shadow(0 0 6px rgba(4, 47, 46, 0.35)) !important;
}

.subnav-app-bar.subnav-theme-tienda .subnav-micro-badge {
    font-size: 0.55rem;
    font-weight: 950;
    padding: 2px 6px;
    border-radius: 999px;
    letter-spacing: 0.5px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    text-transform: uppercase;
}

.subnav-app-bar.subnav-theme-tienda .esm-pro-btn.active .subnav-micro-badge {
    background: #042f2e !important;
    color: #2dd4bf !important;
    border: 1px solid rgba(4, 47, 46, 0.5) !important;
    font-weight: 950 !important;
    box-shadow: 0 2px 8px rgba(4, 47, 46, 0.35) !important;
}

.subnav-app-bar.subnav-theme-tienda .esm-pro-btn.inactive .subnav-micro-badge {
    background: rgba(45, 212, 191, 0.22) !important;
    color: #ccfbf1 !important;
    border: 1px solid rgba(45, 212, 191, 0.45) !important;
    font-weight: 950 !important;
    box-shadow: 0 0 8px rgba(45, 212, 191, 0.25) !important;
}

.subnav-app-bar.subnav-theme-tienda .esm-pro-btn .subnav-micro-badge.badge-teal-fire {
    background: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.6) !important;
    font-weight: 950 !important;
}

.subnav-app-bar.subnav-theme-tienda .esm-pro-btn .subnav-micro-badge.badge-teal-cart {
    background: linear-gradient(135deg, #CCFF00 0%, #10b981 100%) !important;
    color: #042f2e !important;
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
    box-shadow: 0 0 10px rgba(204, 255, 0, 0.6) !important;
    font-weight: 950 !important;
}

