#carrito {
	position: fixed;
	right: -120px;
	top:15px;
	width:100px;
	padding:8px 5px;
	background: transparent;
	text-align: center;
	z-index:1000;
	transition: right 0.4s ease;
	}
#carrito.visible {
    right: 0;
	}
#cerrar-carrito {
	background: none; 
	border: none; 
	font-size: 20px;
	font-weight: bold;
	cursor: pointer; 
	position: absolute; 
	top: 5px; 
	left: 7px; 
	}
#cerrar-carrito:hover {
	color:red;
	}
#open-cart {
	width:90px;
	font-size: 14px;
	font-weight: bold;
	cursor:pointer;
	padding: 8px 2px;
	}
#open-cart:hover {
	background: rgb(250, 215, 70);
	}
.add-to-cart {
	cursor: pointer;
	background-color: rgb(250, 215, 70);
	border-radius: 6px;
	border: 1px solid #ccc;
	font-size: 20px;
	margin-left: 6px;
	padding: 0 3px;
	margin: 3px;
	}
.add-to-cart:hover {
	background: rgb(250, 250, 125);
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  overflow-y:auto;
}

.modal-content {
  background: white;
  margin: 3% auto;
  padding: 20px;
  width: 90%;
  max-width: 500px;
  border-radius: 8px;
	}

.close {
  float: right;
  font-size: 40px;
  font-weight:bold;
  color:black;
  cursor: pointer;
	}

.close:hover {
	color:red;
	}

/* Filas del carrito */
.cart-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

/* Controles de cantidad */
.qty-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.qty-controls button {
  width: 28px;
  height: 28px;
  font-size: 18px;
  cursor: pointer;
}

@media (max-width: 768px) {
	.modal-content {margin: 6% auto;}
	#carrito {
		background-color: rgba(245, 190, 30, 0.8);
		box-shadow: 4px 4px 12px rgba(0, 0, 0, 0.3);
		}
	}