.cart {
	position: fixed;
	top: 30%;
	left: 0%; /* to hide the element on the right side of the screen. So, it only appears when activated */
	width: 30px;
	height: 100%;
	background: #fffcfc;
	box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
	padding: 35px 20px 20px;
	z-index: 100;
	overflow: auto;
	transition: 0.5s;
}

.outer {
    height: 100vh; /*for demo only*/
    background: #f4f1ef;
    overflow: auto;
}
.inner {
    width: 80%;
    background: #f2efde;
    margin: auto;
    margin-top: 1%; /* 100%-80%/2 */
}

.cart.active {
	left: 0;
}

.cart-title {
	text-align: center;
	font-size: 30px;
}

.cart-box {
	display: flex; /* arrange the elements horizontally */
	align-items: center; /* vertically align elements */
	margin-top: 20px;
}

.cart-box img {
	width: 100px;
	height: 100px;
	border-radius: 6px;
	object-fit: cover; /* ensure the image fills the space without distortion */
	margin-right: 20px; /* for spacing between image and detailed elements */
}

.cart-detail {
	display: flex; 
	gap: 8px; /* for spacing between grid elements */
	margin-right: auto; /* push other elements to the right */
}

.cart-product-title {
	font-size: 16px;
	line-height: 1; /* yo agjust the line spacing */
}

.cart-price {
	font-weight: 500;
}

.cart-quantity {
	display: flex;
	width: 100px;
	border: 1px solid #999;
	border-radius: 6px;
}

.cart-quantity button {
	background: transparent; /* to match the parent element */
	width: 30px;
	border: none;
	font-size: 20px;
	cursor: pointer;
}

.cart-quantity #decrement {
	color: #999;
}

.cart-quantity .number {
	display: flex;
	justify-content: center; /* to horizantally center the content */
	align-items: center; /* to vertically center the content */
	width: 40px;
	border-left: 1px solid #999;
	border-right: 1px solid #999;
	cursor: default;
}


@media screen and (max-width: 360px) {
	.product-content {
		grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	}

	.cart {
		width: 100%;
	}
}