/* Estilos adicionales para el layout */
.sticky-top {
    z-index: 1020;
}

.cart-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1050;
}

.cart-float-btn {
    width: 60px;
    height: 60px;
    position: relative;
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.4);
    border: none;
}

.cart-float-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 102, 204, 0.6);
}

.cart-float-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #dc3545;
    color: white;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    border: 2px solid white;
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
    .sticky-top {
        position: relative !important;
        top: auto !important;
    }
    
    .col-lg-4.col-xl-3 {
        margin-top: 1rem;
    }
}

@media (max-width: 767.98px) {
    .container-fluid {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
    
    .card {
        margin-bottom: 1rem;
    }
    
    .cart-float {
        bottom: 15px;
        right: 15px;
    }
    
    .cart-float-btn {
        width: 55px;
        height: 55px;
    }
}

/* Animaciones */
.cart-float-btn {
    transition: all 0.3s ease;
}

.cart-float-badge {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

/* Mejoras visuales para las cards */
.card-blue {
    border: 1px solid var(--primary-blue);
    box-shadow: 0 2px 8px rgba(0, 102, 204, 0.1);
}

.card-blue:hover {
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.2);
    transition: box-shadow 0.3s ease;
}

/* Espaciado mejorado */
.card-body {
    padding: 1.5rem;
}

.card-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

/* Offcanvas improvements */
.offcanvas-body {
    padding: 0;
}

.offcanvas-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

/* Badge styling */
#cart-badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
}
