.sidebar {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100%;
    background-color: white;
    box-shadow: -2px 0 5px rgba(0,0,0,0.1);
    transition: right 0.3s ease-in-out;
    z-index: 1;
}
.sidebar.open {
    right: 0;
}
.sidebar-header {
    background-color: #f8f9fa;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    
}
.close-btncar {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;

}
.cart-content {
    display: flex;
    flex-direction: column;
    gap:20px;
}
.cart-content, .cart_footer {
    padding: 20px;
}

.cart-content p{
    text-align: center;
    font-size: 0.8em;
}





.cart-container {
    max-width: 400px;
    margin: 0 auto;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 10px;
}
.cart-headerd {
    display: flex;
    /* justify-content: space-between; */
    align-items: center;
    margin-bottom: 5px;
    position: relative;
    
}
.cart-title {
    font-size: 0.9em !important;
    color: var(--primario);
    font-weight: 400;
}

.eliminar-item {
    background: none;
    border: none;
    font-size: 1.4em;
    cursor: pointer;
    color: red;
    position: absolute;
    top:0px;
    right: 3px;
} 

.cart-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}
.item-image {
    width: 50px;
    height: 50px;
    background-color: #e0e0e098;
    margin-right: 15px;
    overflow: hidden;  /* Oculta cualquier parte de la imagen que sobresalga */
    display: flex;     /* Usa flexbox para centrar la imagen */
    align-items: center;
    justify-content: center;
}
.item-image img{
    width: 100%;
    outline: 1px solid red;
    height: 100%;
    object-fit: cover;  /* Ajusta la imagen para cubrir el área */
    object-position: center;
}
.item-details {
    /* flex-grow: 1; */
}
.item-name {
    font-weight: 500;
    margin-bottom: 3px;
    font-size: 0.8em;
}
.item-price {
    color: #666;
}
.subtotal {
    font-size: 1em;
    font-weight: 600;
    margin: 20px 0;
}
.btn {
    display: block;
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    text-align: center;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-size: 16px;
    font-family: inherit;
}
.btn-primary {
    background-color: #000;
    color: white;
}
.btn-secondary {
    background-color: var(--primario);
    color: white;
}


.spinnergray{
    opacity: 0.3;
  }