/* =========================
   Reset y estructura base
========================= */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    font-family: Square721 BT;
    background: #ededed;
    text-align: center;
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* asegura que el body ocupe toda la altura */
}

main {
    flex: 1; /* empuja el footer hacia abajo */
}

/* =========================
   Footer
========================= */
footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 20px;
}

/* =========================
   Listas y carrito responsive
========================= */
@media (max-width: 767px) {
    .list-group-item {
        flex-direction: column;
        text-align: center;
    }

    .list-group-item img {
        width: 100px;
        height: 100px;
        margin-bottom: 10px;
    }

    .list-group-item .text-end {
        text-align: center;
        margin-top: 10px;
    }

    span {
        font-size: 12px;
    }
}

/* =========================
   Iconos sociales
========================= */
.bi-facebook { color: #1877F2; }
.bi-instagram { color: orange; }
.bi-twitter-x { color: white; }
.bi-youtube { color: #FF0000; }
.bi-tiktok { color: hotpink; }
.bi-whatsapp { color: #25D366; }

/* =========================
   Fondos
========================= */
.fondo_filtros { background-color: #e3f2fd !important; }
.fondo_carta { background-color: white !important; }

/* =========================
   Texto y botones
========================= */
span { font-size: 10px; }
.btn { height: 40px; }

/* =========================
   Animaciones carrito
========================= */
.carrito-animado {
    animation: saltito 0.5s ease;
    background-color: #1e9a60;
}

.carrito-animado-eliminado {
    animation: saltito 0.5s ease;
    background-color: #dab459;
}

.carrito-animado-error {
    animation: saltito 0.5s ease;
    background-color: #e34949;
}

.carrito-animado-actualizado {
    animation: saltito 0.5s ease;
    background-color: #4997e3;
}

@keyframes saltito {
    0% { transform: scale(1); }
    30% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

/* =========================
   Animación shake
========================= */

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-5px); }
    40%, 80% { transform: translateX(5px); }
}

.shake {
    animation: shake 0.3s;
}

/* =========================
   Animación shake
========================= */

.btn-carrito {
    position: fixed;
    bottom: 20px;      /* distancia desde el borde inferior */
    right: 20px;       /* distancia desde el borde derecho */
    background-color: #1e9a60;
    color: white;
    padding: 15px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 18px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
    z-index: 9999;      /* siempre arriba */
    transition: transform 0.2s;
}

.btn-carrito:hover {
    transform: scale(1.1);
}