/* Estilos de navegación mejorados */
.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

.nav-right {
    display: flex;
    align-items: center;
}

@media (min-width: 901px) {
    .nav-right {
        margin-left: -1rem;
    }
}

/* Ajuste para el hover del último elemento del menú */
.menu li:last-child a:hover + .nav-right {
    margin-left: -1.5rem;
}

.cart-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: pointer;
    padding: 0.5rem;
    transition: transform 0.3s ease;
}

@media (min-width: 901px) {
    .cart-icon {
        padding-left: 0;
        margin-left: -0.5rem; /* Acerca aún más al menú */
        position: relative;
        top: 2px; /* Alinea con los otros íconos */
    }
}

.cart-icon i {
    font-size: 1.2rem;  /* Reducido de 1.5rem a 1.2rem */
    color: var(--vs-accent);
}

.cart-icon:hover {
    transform: scale(1.1);
}

.cart-icon .count {
    position: absolute;
    top: 0;
    right: -8px;
    background: #ef4444;
    color: #fff;
    min-width: 16px;
    height: 16px;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Responsive ajustments */
@media (max-width: 768px) {
    .nav {
        padding: 0.75rem 0;
        align-items: center;
    }
    
    .nav-right {
        position: absolute;
        top: 50%;
        right: 45px; /* Espacio para el botón de menú */
        transform: translateY(-50%);
    }
    
    .cart-icon {
        margin-right: 0; /* Eliminamos el margen derecho */
        padding: 0.25rem; /* Reducimos el padding para acercarlo al menú */
    }
}