/* Estilos para el Carrito Lateral (Drawer a la izquierda) y Badge */
.cart-btn-wrapper {
    position: relative;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -10px;
    background: #ef4444;
    color: white;
    font-size: 11px;
    font-weight: 800;
    min-width: 19px;
    height: 19px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.4);
    transform: scale(0);
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.cart-badge.has-items {
    transform: scale(1);
}

/* Overlay */
.cart-drawer-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(11, 15, 25, 0.6);
    backdrop-filter: blur(4px);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.cart-drawer-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Drawer a mano izquierda */
.cart-drawer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    max-width: 440px;
    height: 100%;
    background: #ffffff;
    z-index: 9999;
    box-shadow: 10px 0 40px rgba(0, 0, 0, 0.2);
    transform: translateX(-100%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
}

.cart-drawer.active {
    transform: translateX(0);
}

.cart-header {
    padding: 20px 24px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8fafc;
}

.cart-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 18px;
    font-weight: 800;
    color: #0b0f19;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cart-close-btn {
    background: #e2e8f0;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
    color: #475569;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.cart-close-btn:hover {
    background: #cbd5e1;
    color: #0b0f19;
}

.cart-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Lista de productos */
.cart-items-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cart-item-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.cart-item-info {
    flex: 1;
}

.cart-item-title {
    font-size: 13.5px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.3;
}

.cart-item-sub {
    font-size: 12px;
    color: #64748b;
    margin-top: 2px;
}

.cart-item-price {
    font-size: 13.5px;
    font-weight: 800;
    color: #7c3aed;
    margin-top: 4px;
}

.cart-item-remove {
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 6px;
    font-size: 14px;
    transition: color 0.2s;
}

.cart-item-remove:hover {
    color: #ef4444;
}

.cart-empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #94a3b8;
}

.cart-empty-state i {
    font-size: 40px;
    margin-bottom: 12px;
    color: #cbd5e1;
}

/* Formulario de Checkout */
.checkout-section {
    border-top: 1px solid #e2e8f0;
    padding-top: 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.checkout-section-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 14.5px;
    font-weight: 800;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 6px;
}

.form-group-sm {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.form-group-sm label {
    font-size: 11.5px;
    font-weight: 700;
    color: #334155;
}

.form-input-sm {
    width: 100%;
    padding: 9px 12px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    font-size: 13px;
    font-family: 'Inter', sans-serif;
    outline: none;
    background: #f8fafc;
}

.form-input-sm:focus {
    border-color: #7c3aed;
    background: #ffffff;
}

.form-row-sm {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

/* Sección de Pagos Seguros por ePayco */
.payment-trust-badge {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px;
    text-align: center;
    margin-top: 8px;
}

.payment-trust-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 800;
    color: #0f172a;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.payment-trust-header span {
    color: #fa4b2a;
    font-weight: 900;
    font-size: 13px;
}

.payment-methods-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 6px;
}

.payment-method-chip {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 4px 8px;
    font-size: 10.5px;
    font-weight: 800;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 4px;
}

.chip-visa { color: #1a1f71; }
.chip-mastercard { color: #eb001b; }
.chip-amex { color: #006fcf; }
.chip-pse { color: #0077c8; }
.chip-nequi { color: #200020; }
.chip-bancolombia { color: #fdc300; }

/* Footer del Drawer */
.cart-footer {
    padding: 16px 24px 20px;
    border-top: 1px solid #e2e8f0;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cart-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-total-label {
    font-size: 14px;
    font-weight: 700;
    color: #475569;
}

.cart-total-amount {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 22px;
    font-weight: 800;
    color: #0f172a;
}

.btn-checkout-submit {
    width: 100%;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    padding: 14px;
    border-radius: 10px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
    transition: transform 0.2s;
}

.btn-checkout-submit:hover {
    transform: translateY(-2px);
}

.btn-checkout-submit:disabled {
    background: #94a3b8;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* WhatsApp Flotante con burbujita de ayuda */
.wa-widget-container {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 12px;
}

.wa-speech-bubble {
    background: #ffffff;
    color: #0f172a;
    padding: 12px 20px;
    border-radius: 16px;
    font-size: 15.5px;
    font-weight: 800;
    letter-spacing: -0.2px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.16);
    border: 2px solid #25D366;
    position: relative;
    white-space: nowrap;
    animation: floatBubble 3s ease-in-out infinite;
}

.wa-speech-bubble::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
    width: 12px;
    height: 12px;
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
    border-right: 1px solid #e2e8f0;
}

@keyframes floatBubble {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

.wa-icon-btn {
    background-color: #25D366;
    color: white;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 30px;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.35);
    text-decoration: none;
    transition: transform 0.2s;
}

.wa-icon-btn:hover {
    transform: scale(1.08);
}

/* Toast de Producto Añadido (sin abrir ventana automáticamente) */
.cart-toast-notification {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #0b0f19;
    color: white;
    padding: 12px 20px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.35);
    z-index: 10000;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
    opacity: 0;
    pointer-events: none;
    font-family: 'Inter', sans-serif;
    font-size: 13.5px;
    border: 1px solid rgba(255,255,255,0.1);
}

.cart-toast-notification.active {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.cart-toast-btn {
    background: #7c3aed;
    color: white;
    text-decoration: none;
    font-weight: 700;
    font-size: 12.5px;
    padding: 6px 14px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: background 0.2s;
    white-space: nowrap;
}

.cart-toast-btn:hover {
    background: #6d28d9;
}

/* ================= 1. BARRA SUPERIOR DE ANUNCIOS (ANNOUNCEMENT BAR) ================= */
.skc-announcement-bar {
    background: linear-gradient(90deg, #0b0f19 0%, #1e1b4b 50%, #0b0f19 100%);
    color: #f8fafc;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: 0.2px;
    padding: 8px 16px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    z-index: 101;
    transition: all 0.3s ease;
}

.skc-announcement-bar i {
    color: #a78bfa;
}

.skc-announcement-bar strong {
    color: #ffffff;
    font-weight: 700;
}

/* ================= 2. CARRUSEL MULTIFOTO EN TARJETAS DE PRODUCTOS ================= */
.product-thumb {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.product-thumb img {
    transition: transform 0.35s ease, opacity 0.25s ease;
}

.card-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 50%;
    color: #1e293b;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 6;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.card-nav-btn:hover {
    background: #7c3aed;
    color: #ffffff;
    transform: translateY(-50%) scale(1.08);
}

.product-thumb:hover .card-nav-btn,
.product-card:hover .card-nav-btn {
    opacity: 1;
}

.card-nav-btn.prev { left: 8px; }
.card-nav-btn.next { right: 8px; }

.card-dots-bar {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 4px;
    z-index: 6;
    padding: 3px 7px;
    background: rgba(11, 15, 25, 0.45);
    backdrop-filter: blur(4px);
    border-radius: 20px;
    pointer-events: none;
}

.card-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transition: all 0.2s ease;
}

.card-dot.active {
    background: #ffffff;
    width: 13px;
    border-radius: 4px;
}

.btn-quick-view-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    border: 1px solid #e2e8f0;
    color: #475569;
    border-radius: 8px;
    padding: 5px 9px;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    opacity: 0;
    transform: translateY(-4px);
    transition: all 0.2s ease;
    z-index: 5;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.product-thumb:hover .btn-quick-view-badge,
.product-card:hover .btn-quick-view-badge {
    opacity: 1;
    transform: translateY(0);
}

.btn-quick-view-badge:hover {
    background: #7c3aed;
    color: white;
    border-color: #7c3aed;
}

@media (max-width: 768px) {
    .card-nav-btn {
        opacity: 0.85;
        width: 28px;
        height: 28px;
    }
    .btn-quick-view-badge {
        opacity: 0.9;
        transform: translateY(0);
    }
}

/* ================= 3. MODAL VISTA RÁPIDA (QUICK VIEW) ================= */
.skc-qv-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(11, 15, 25, 0.65);
    backdrop-filter: blur(5px);
    z-index: 10050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease;
}

.skc-qv-overlay.active {
    opacity: 1;
    visibility: visible;
}

.skc-qv-modal {
    background: #ffffff;
    width: 100%;
    max-width: 820px;
    max-height: 90vh;
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1fr;
    position: relative;
    transform: scale(0.95) translateY(10px);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.skc-qv-overlay.active .skc-qv-modal {
    transform: scale(1) translateY(0);
}

.skc-qv-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f1f5f9;
    border: none;
    color: #475569;
    font-size: 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.2s;
}

.skc-qv-close:hover {
    background: #e2e8f0;
    color: #0f172a;
    transform: rotate(90deg);
}

/* Galería dentro del modal */
.skc-qv-gallery {
    background: #f8fafc;
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    border-right: 1px solid #e2e8f0;
}

.skc-qv-main-img-box {
    width: 100%;
    height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.skc-qv-main-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 14px;
    transition: opacity 0.2s ease;
}

.skc-qv-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid #e2e8f0;
    border-radius: 50%;
    color: #1e293b;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: all 0.2s;
    z-index: 5;
}

.skc-qv-nav-btn:hover {
    background: #7c3aed;
    color: white;
}

.skc-qv-nav-btn.prev { left: 4px; }
.skc-qv-nav-btn.next { right: 4px; }

.skc-qv-thumbs {
    display: flex;
    gap: 8px;
    margin-top: 16px;
    overflow-x: auto;
    padding: 4px 0;
    max-width: 100%;
}

.skc-qv-thumb {
    width: 52px;
    height: 52px;
    border-radius: 10px;
    border: 2px solid transparent;
    cursor: pointer;
    object-fit: cover;
    background: white;
    transition: all 0.2s;
}

.skc-qv-thumb.active {
    border-color: #7c3aed;
    box-shadow: 0 0 0 2px rgba(124, 58, 237, 0.2);
}

/* Info dentro del modal */
.skc-qv-details {
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow-y: auto;
}

.skc-qv-badge {
    display: inline-block;
    align-self: flex-start;
    background: #f3e8ff;
    color: #7c3aed;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 20px;
    margin-bottom: 10px;
}

.skc-qv-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 22px;
    font-weight: 800;
    color: #0b0f19;
    margin-bottom: 6px;
    line-height: 1.25;
}

.skc-qv-price {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 22px;
    font-weight: 800;
    color: #7c3aed;
    margin-bottom: 12px;
}

.skc-qv-desc {
    font-size: 13.5px;
    color: #64748b;
    line-height: 1.5;
    margin-bottom: 20px;
}

.skc-qv-selector-box {
    margin-bottom: 20px;
}

.skc-qv-selector-box label {
    display: block;
    font-size: 12.5px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 6px;
}

.skc-qv-select {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    font-size: 13.5px;
    font-family: 'Inter', sans-serif;
    outline: none;
    background: #f8fafc;
    transition: border-color 0.2s;
}

.skc-qv-select:focus {
    border-color: #7c3aed;
    background: white;
}

.skc-qv-btn-add {
    width: 100%;
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
    color: white;
    border: none;
    border-radius: 14px;
    padding: 14px 20px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 8px 20px rgba(124, 58, 237, 0.25);
    transition: transform 0.2s, box-shadow 0.2s;
}

.skc-qv-btn-add:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(124, 58, 237, 0.35);
}

.skc-qv-trust-pills {
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding-top: 16px;
    border-top: 1px solid #f1f5f9;
    margin-top: 16px;
    font-size: 11.5px;
    color: #64748b;
}

.skc-qv-trust-pills span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.skc-qv-trust-pills i {
    color: #10b981;
}

@media (max-width: 768px) {
    .skc-qv-modal {
        grid-template-columns: 1fr;
        max-height: 88vh;
        overflow-y: auto;
    }
    .skc-qv-gallery {
        border-right: none;
        border-bottom: 1px solid #e2e8f0;
        padding: 20px;
    }
    .skc-qv-main-img-box {
        height: 240px;
    }
    .skc-qv-details {
        padding: 20px;
    }
}

/* ================= OPTIMIZACIÓN MÓVIL GLOBAL (NAVBAR Y CABECERA NO PEGAJOSA) ================= */
@media (max-width: 768px) {
    html, body {
        overflow-x: hidden !important;
        max-width: 100vw !important;
        width: 100% !important;
    }

    header {
        position: relative !important;
        top: auto !important;
        box-shadow: 0 2px 8px rgba(0,0,0,0.04) !important;
    }

    .skc-announcement-bar {
        position: relative !important;
        padding: 6px 12px !important;
        font-size: 11.5px !important;
        letter-spacing: 0 !important;
    }

    .navbar {
        display: flex !important;
        flex-wrap: wrap !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding: 10px 14px 8px !important;
        gap: 8px !important;
    }

    .brand-logo-link {
        order: 1 !important;
    }

    .brand-logo-img {
        height: 38px !important;
        max-width: 190px !important;
    }

    .cart-btn-wrapper {
        order: 2 !important;
        margin-left: auto !important;
    }

    .cart-btn {
        font-size: 18px !important;
    }

    .nav-links {
        order: 3 !important;
        width: 100% !important;
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        gap: 8px !important;
        padding: 4px 2px 6px !important;
        scrollbar-width: none !important;
        list-style: none !important;
    }

    .nav-links::-webkit-scrollbar {
        display: none !important;
    }

    .nav-links li {
        flex-shrink: 0 !important;
    }

    .nav-links a {
        font-size: 13px !important;
        padding: 6px 12px !important;
        background: #f1f5f9 !important;
        border-radius: 999px !important;
        white-space: nowrap !important;
        display: inline-block !important;
        color: #334155 !important;
        text-decoration: none !important;
    }

    .nav-links a.active, .nav-links a:hover {
        background: #7c3aed !important;
        color: #ffffff !important;
    }
}

