/* Estilos del modal del carrito */
.cart-modal {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 400px;
    height: 100%;
    background-color: var(--white);
    box-shadow: -2px 0 8px rgba(0, 0, 0, 0.2);
    z-index: 100;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
}

.cart-modal.open {
    right: 0;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
}

.cart-header h2 {
   /* font-size: 20px;
    font-weight: 500;
    margin: 0;*/
}

.close-cart {
 /*   background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #757575;*/
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
}

.cart-item {
    display: flex;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
}

.cart-item-image {
    width: 60px;
    height: 60px;
    margin-right: 12px;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.cart-item-details {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.cart-item-code {
    font-size: 12px;
    color: #757575;
    margin-bottom: 4px;
}

.cart-item-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 4px;
}

.cart-item-price {
    font-size: 16px;
    font-weight: 800;
    color: var(--text-color);
    margin-top: 5px;
	    text-align: end;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    background-color: var(--primary-light);
    border-radius: 18px;
}

.cart-quantity-btn {
    background: none;
    border: none;
    padding: 8px 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-quantity-btn svg {
    width: 24px;
    height: 24px;
    fill: var(--primary-color);
}

.cart-quantity-display {
    padding: 0 12px;
    font-weight: 500;
    color: var(--primary-color);
}

.cart-item-remove {
    margin-left: 8px;
    background: none;
    border: none;
    color: #f44336;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
}

.cart-item-remove svg {
    width: 24px;
    height: 24px;
}

.empty-cart {
    text-align: center;
    color: #757575;
    font-size: 16px;
    margin-top: 20px;
}

.cart-footer {
    padding: 16px;
    border-top: 1px solid var(--border-color);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 16px;
    font-weight: 500;
  
}

.checkout-button {
    width: 100%;
   
    color: var(--white);
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    text-align: center;
}

.checkout-button:hover {
    
}

/* Media queries para responsive */
@media (max-width: 480px) {
    .cart-modal {
        max-width: 100%;
    }

    .cart-item-image {
        width: 50px;
        height: 50px;
    }

    .cart-item-title {
        font-size: 13px;
    }

    .cart-item-price {
        font-size: 14px;
    }
}




.cart-item-code {
  display: flex;
  justify-content: space-between;
}

.Unite_pza {
  text-align: left;
}

.Uni-price {
  text-align: right;
  
}


/*cebera de de carrito*/
.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  border-bottom: 1px solid var(--border-color);
  background-color: #333; /* Fondo oscuro para contraste */
}

h2 {
  font-size: 20px;
  font-weight: 500;
  margin: 0;
}

.cart-header-buttons {
  display: flex;
  gap: 8px; /* Espacio entre botones */
}

.close-cart {
  background: none;
  border: none;
  cursor: pointer;
  color: white; /* Color blanco */
}

.clear-cart-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: white; /* Color blanco */
}

/* Forzar el color blanco en los SVGs si fill="currentColor" no funciona solo */
.clear-cart-btn svg,
.close-cart svg {
  width: 24px;
  height: 24px;
  fill: white; /* Forzar el relleno blanco */
}


.close-cart ,.clear-cart-btn {
border-radius: 50%;
border-radius: 50%;	
padding: 8px;	
}

.close-cart:hover , .clear-cart-btn:hover {
    background-color: rgba(0, 0, 0, 0.04);
	transition: background-color 150ms cubic-bezier(0.4, 0, 0.2, 1);
}



