/* Estilos para el carrito de usuarios no registrados */

/* Contador del carrito */
.carrito-contador {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: var(--pb-gold);
    color: var(--pb-black);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: bold;
    text-align: center;
    line-height: 1;
    padding: 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    border: 1px solid rgba(0,0,0,0.2);
}

.carrito-btn {
    position: relative;
    display: inline-block;
}

/* Estilos para los items del carrito */
.cart-item {
    padding: 10px;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    transition: var(--pb-transition);
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item:hover {
    background-color: rgba(0,0,0,0.02);
}

/* Modal del carrito */
.modal-carrito .modal-header {
    background-color: var(--pb-burgundy);
    color: var(--pb-white);
}

.modal-carrito .modal-footer {
    border-top: 1px solid rgba(0,0,0,0.1);
}

.btn-carrito {
    background-color: var(--pb-burgundy);
    color: var(--pb-white);
    transition: var(--pb-transition);
}

.btn-carrito:hover {
    background-color: var(--pb-dark-red);
    color: var(--pb-white);
}

/* Notificación toast simple */
.notificacion-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: var(--pb-burgundy);
    color: var(--pb-white);
    padding: 12px 20px;
    border-radius: 4px;
    z-index: 9999;
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.notificacion-toast.mostrar {
    opacity: 1;
    transform: translateY(0);
}

/* Formulario de datos para pedido */
.form-pedido label {
    font-weight: 600;
    color: var(--pb-dark-gray);
    margin-bottom: 5px;
}

.form-pedido .form-control {
    border-radius: 8px;
    padding: 10px 15px;
    border: 1px solid rgba(0,0,0,0.1);
    transition: var(--pb-transition);
}

.form-pedido .form-control:focus {
    border-color: var(--pb-burgundy);
    box-shadow: 0 0 0 0.2rem rgba(137, 27, 27, 0.25);
}

/* Botón flotante de carrito para móviles */
.carrito-float {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 60px;
    height: 60px;
    background-color: var(--pb-burgundy);
    color: var(--pb-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    z-index: 99;
    font-size: 24px;
    transition: all 0.3s ease;
}

.carrito-float:hover {
    transform: scale(1.1);
    background-color: var(--pb-dark-red);
    color: var(--pb-white);
}

.carrito-float .carrito-contador {
    top: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1;
}

/* Responsive */
@media (max-width: 767.98px) {
    .carrito-float {
        bottom: 70px;
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .carrito-contador {
        width: 18px;
        height: 18px;
        font-size: 10px;
        line-height: 1;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}
