/* ==========================
   CART PAGE
========================== */

.cart-section {
	padding: 70px 0;
	background: #f8f8f8;
	min-height: 100vh;
}

.container {
	width: 92%;
	max-width: 1300px;
	margin: auto;
}

/* Page Title */

.page-title {
	margin-bottom: 35px;
}

.page-title h2 {
	font-size: 38px;
	font-weight: 700;
	color: #222;
}

.page-title p {
	color: #777;
	margin-top: 8px;
}

/* Layout */

.cart-wrapper {
	display: grid;
	grid-template-columns: 2fr 1fr;
	gap: 35px;
}

/* Left */

.cart-left {
	background: #fff;
	border-radius: 15px;
	overflow: hidden;
	box-shadow: 0 10px 25px rgba(0, 0, 0, .08);
}

/* Table */

.cart-table {
	width: 100%;
	border-collapse: collapse;
}

.cart-table thead {
	background: #d60000;
	color: #fff;
}

.cart-table th {
	padding: 20px;
	font-size: 15px;
	text-align: center;
}

.cart-table td {
	padding: 20px;
	text-align: center;
	border-bottom: 1px solid #eee;
}

/* Product */

.product-info {
	display: flex;
	align-items: center;
	gap: 15px;
}

.product-info img {
	width: 90px;
	height: 90px;
	object-fit: contain;
	background: #fff;
	border-radius: 10px;
	border: 1px solid #eee;
}

.product-info h4 {
	font-size: 16px;
	font-weight: 600;
	color: #222;
}

.product-price {
	color: #d60000;
	font-size: 18px;
	font-weight: 700;
}

/* Quantity */

.qty-box {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 10px;
}

.qty-btn {
	width: 34px;
	height: 34px;
	border: none;
	border-radius: 8px;
	background: #d60000;
	color: #fff;
	font-size: 18px;
	cursor: pointer;
	transition: .3s;
}

.qty-btn:hover {
	background: #ff6200;
}

.qty {
	width: 40px;
	text-align: center;
	font-weight: 700;
}

/* Remove */

.remove-btn {
	width: 40px;
	height: 40px;
	border: none;
	border-radius: 50%;
	background: #ffebeb;
	color: #d60000;
	cursor: pointer;
	transition: .3s;
}

.remove-btn:hover {
	background: #d60000;
	color: #fff;
}

/* Summary */

.cart-right {
	position: sticky;
	top: 110px;
	height: max-content;
}

.summary-box {
	background: #fff;
	border-radius: 15px;
	padding: 30px;
	box-shadow: 0 10px 25px rgba(0, 0, 0, .08);
}

.summary-box h3 {
	margin-bottom: 25px;
	font-size: 26px;
}

.summary-item {
	display: flex;
	justify-content: space-between;
	margin-bottom: 18px;
	font-size: 17px;
}

.total {
	padding-top: 20px;
	border-top: 1px solid #ddd;
	font-size: 22px;
	font-weight: 700;
	color: #d60000;
}

/* Buttons */

.checkout-btn {
	display: block;
	width: 100%;
	margin-top: 25px;
	text-align: center;
	background: #d60000;
	color: #fff;
	text-decoration: none;
	padding: 16px;
	border-radius: 10px;
	font-weight: 600;
	transition: .3s;
}

.checkout-btn:hover {
	background: #ff6200;
}

.clear-btn {
	width: 100%;
	margin-top: 15px;
	border: none;
	background: #222;
	color: #fff;
	padding: 16px;
	border-radius: 10px;
	cursor: pointer;
	transition: .3s;
}

.clear-btn:hover {
	background: #000;
}

/* Empty Cart */

.empty-cart {
	display: none;
	text-align: center;
	padding: 60px 30px;
}

.empty-cart img {
	width: 220px;
	margin-bottom: 20px;
}

.empty-cart h3 {
	font-size: 28px;
	margin-bottom: 10px;
}

.empty-cart p {
	color: #666;
	margin-bottom: 25px;
}

.shop-btn {
	display: inline-block;
	background: #d60000;
	color: #fff;
	padding: 15px 30px;
	text-decoration: none;
	border-radius: 8px;
	transition: .3s;
}

.shop-btn:hover {
	background: #ff6200;
}

/* Responsive */

@media(max-width:991px) {

	.cart-wrapper {
		grid-template-columns: 1fr;
	}

	.cart-right {
		position: static;
	}

}

@media(max-width:768px) {

	.cart-table thead {
		display: none;
	}

	.cart-table,
	.cart-table tbody,
	.cart-table tr,
	.cart-table td {
		display: block;
		width: 100%;
	}

	.cart-table tr {
		margin-bottom: 20px;
		border-bottom: 2px solid #eee;
	}

	.cart-table td {
		display: flex;
		justify-content: space-between;
		align-items: center;
	}

	.product-info {
		flex-direction: column;
	}

	.page-title h2 {
		font-size: 30px;
	}

	.summary-box h3 {
		font-size: 22px;
	}

}


/* Toast Notification */

.toast {

	position: fixed;

	top: 25px;

	right: 25px;

	background: #d60000;

	color: #fff;

	padding: 16px 22px;

	border-radius: 12px;

	font-size: 15px;

	font-weight: 600;

	display: flex;

	align-items: center;

	gap: 10px;

	box-shadow: 0 12px 30px rgba(0, 0, 0, .25);

	opacity: 0;

	transform: translateX(120px);

	transition: .35s;

	z-index: 99999;

}

.toast.show {

	opacity: 1;

	transform: translateX(0);

}

.toast i {

	font-size: 18px;

	color: #fff;

}