/*BARRA LATERAL---------------------------------------------------------------*/

#barraLateralCarro {
    position: fixed;
    top: 0;
    right: 0;
    width: 370px;
    height: 100%;
    transform: translateX(100%);
    background-color: #fff;
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    z-index: 2000;
}

#barraLateralCarro.mostrar {
    transform: translateX(0%);
}

.headerCarro {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0em 1em 0em 1em;
    border-bottom: 2px solid #ddd;
}

.headerCarro h2 {
    font-size: 20px;
    margin-top: 15px;
    margin-bottom: 15px;
}

.itemsCarro {
    flex: 1;
    padding: 0em 1em 1em 1em;
    overflow-y: auto;

    background-image: 
        linear-gradient(rgba(255,255,255,0.5), rgba(255,255,255,0.5)), 
        url('../img/temas/nature_theme.jpeg');
    background-size: cover;  /* La imagen cubre todo el div sin perder proporción */
    background-position: center; /* Centrada */
    background-repeat: no-repeat; /* Evita que se repita */
}

.itemCarro {
    display: flex;
    flex-direction: row;
    gap: 10px;
    background-color: #d7d6d6;
    border-radius: 5px;
    margin-top: 10px;
    align-items: center;
    height: 80px;
}

.itemCarro img {
    min-width: 70px;
    max-width: 22%;
    min-height: 70px;
    max-height: 70px;
    border-radius: 5px;
    padding: 5px 0px 5px 5px;
}

.itemCarro p {
    margin: 5px 0px 0px 0px;
}

.itemCarro .parte1 {
    flex: 1;
    font-size: 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.cantidad {
    display: flex;
    align-items: center;
    border: 1px solid #ccc;
    padding: 5px;
    border-radius: 5px;
    width: 60px;
    height: 15px;
    justify-content: space-between;
    background-color: #ffffff;
    margin-top: 5px;
}

.cantidad button {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    padding: 5px;
}

.unidades {
    width: 20px;
    text-align: center;
    border: none;
    font-size: 12px;
    background-color: #ffffff;
}

.itemCarro .parte2 {
    font-size: 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-right: 10px;
    align-items: flex-end;
}

.itemCarro i {
    scale: 1.3;
    padding-right: 5px;
    cursor: pointer;
}

.footerCarro {
    padding: 1em;
    font-size: 16px;
    border-top: 1px solid #ddd;
    text-align: center;
}

.footerCarro p {
    margin-top: 0px;
    display: flex;
    justify-content: space-between;
    font-size: 18px;
}

#btn-cerrarCarro {
    background: none;
    border: none;
    font-size: 1.2em;
    cursor: pointer;
}

.btnProcederPago {
    background-color: #144A4A;
    color: #fff;
    font-size: 16px;
    padding: 8px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.btnProcederPago:hover {
    background-color: #e68900;
    transform: scale(1.02);
}

.cubrirFondo {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 1999;
}

.cubrirFondo.activo {
    opacity: 1;
    pointer-events: auto;
}

/*BADGE CARRITO---------------------------------------------------------------*/

.carrito-container {
    position: relative;
}

.carrito-badge {
    position: absolute;
    top: -5px;
    right: 0px;
    background-color: #388e8e;
    color: white;
    font-size: 12px;
    font-weight: bold;
    border-radius: 50%;
    padding: 2px 4px; /* Círculo pequeño */
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;  /* Tamaño mínimo del círculo */
    height: 18px;
}

.btn-web-horario:disabled {
    cursor: not-allowed;
    pointer-events: none;
    background-color: #ccc;
    color: #666;
}