/* public/css/public-bottom-bar.css */

/* Barra inferior 每 m車viles y tablets (0px a 991.98px) */
.pb-bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1200;
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    box-shadow: 0 -4px 16px rgba(15, 23, 42, 0.08);
    padding: 0.35rem 0.5rem calc(0.35rem + env(safe-area-inset-bottom));
    display: flex;
    justify-content: space-around;
}

/* Ocultar bottom bar solo en escritorio (≡ 992px) */
@media (min-width: 992px) {
    .pb-bottom-nav {
        display: none;
    }
}

/* Dar espacio al contenido para que no quede tapado por la barra
   en m車viles y tablets (≒ 991.98px) */
@media (max-width: 991.98px) {
    body {
        padding-bottom: 64px;
    }
}

.pb-bottom-item {
    flex: 1;
    text-align: center;
    text-decoration: none;
    color: #6b7280;
    font-size: 0.7rem;
    padding: 0.1rem 0;
}

.pb-bottom-item .pb-icon {
    display: block;
    font-size: 1.25rem;
    margin-bottom: 0.05rem;
}

.pb-bottom-item .pb-label {
    display: block;
    line-height: 1;
}

/* Estado activo */
.pb-bottom-item.is-active {
    color: #4f46e5; /* mismo tono que el bot車n Agregar */
    font-weight: 600;
}

.pb-bottom-item.is-active .pb-icon {
    transform: translateY(-1px);
}

/* Ocultar bottom bar cuando haya un modal abierto (Bootstrap)
   en m車viles y tablets (≒ 991.98px) */
@media (max-width: 991.98px) {
    body.modal-open .pb-bottom-nav {
        display: none !important;
    }
}


.pb-icon-cart {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Badge pegadita a la esquina del carrito */
.pb-cart-badge {
    position: absolute;
    top: 0;
    right: 0;
    transform: translate(-172%, -17%); /* mueve la burbuja hacia la esquina */
    min-width: 18px;
    height: 18px;
    border-radius: 999px;
    background: #ef4444;
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 0 2px #ffffff;
}

