/* General Styles */
body {
    font-family: 'Arial', sans-serif;
    background-color: #f2f2f2;
    color: #333;
    margin: 0;
    padding: 0;
}

/* Sidebar Cart */
.sidebar {
    position: fixed;
    right: 0;
    top: 0;
    width: 320px;
    height: 100vh;
    background: #ffffff;
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1);
    padding: 20px;
    overflow-y: auto;
    transition: all 0.3s ease-in-out;
}

.sidebar h4 {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 15px;
}

.list-group-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1rem;
    padding: 10px 15px;
}

/* Product Section */
.card {
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
    background: white;
}

.card:hover {
    transform: scale(1.05);
}

.card h5 {
    font-size: 1.2rem;
    font-weight: bold;
}

.card p {
    font-size: 1rem;
    color: #666;
}

.btn-primary {
    background-color: #ff5722;
    border: none;
    width: 100%;
}

.btn-primary:hover {
    background-color: #e64a19;
}

/* Search Bar */
#search {
    width: 100%;
    font-size: 1.2rem;
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 5px;
    margin-bottom: 15px;
}

/* Category Filter */
#categories .btn {
    background-color: #ff9800;
    color: white;
    font-size: 1rem;
    margin-right: 5px;
}

#categories .btn:hover {
    background-color: #e68900;
}

/* Responsive Design 
@media (max-width: 767px) {
    .sidebar {
        display: none;
    }
}*/
.cart-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    display: none; /* Se oculta en pantallas grandes */
}

@media (max-width: 767px) {
    .cart-toggle {
        display: block; /* Se muestra en móviles */
    }
    
    .sidebar {
        width: 100%;
        right: -100%;
        transition: right 0.3s ease-in-out;
    }

    .sidebar.show {
        right: 0;
    }
}
/* Aumentar la opacidad del fondo */
.modal-backdrop {
    background-color: rgba(0, 0, 0, 0.8) !important; /* Más oscuro */
}

/* Alternativa: Desenfocar el fondo con blur */
.modal-backdrop.show {
    backdrop-filter: blur(8px); /* Efecto desenfoque */
}
.container-fluid {
    margin-left: 4.5rem !important; /* Compensar el ancho del menú */
}