/* Cart Page Modern Redesign */
.cart-modern-wrapper {
	padding: 40px 0;
	min-height: 100vh;
}

.cart-content-grid {
	display: grid;
	grid-template-columns: 2fr 1fr;
	gap: 30px;
	align-items: start;
}

@media (max-width: 1024px) {
	.cart-content-grid {
		grid-template-columns: 1fr;
		gap: 20px;
	}
}

/* Cart Items Container */
.cart-items-container {
	background: white;
	border-radius: 16px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
	overflow: hidden;
	transition: all 0.3s ease;
}

.cart-items-container:hover {
	box-shadow: 0 15px 50px rgba(0, 0, 0, 0.12);
}

.cart-items-header {
	background: linear-gradient(135deg, #c01d43 0%, #7c2337 100%);
	padding: 25px;
	color: white;
}

.cart-items-header h3 {
	margin: 0;
	font-size: 24px;
	font-weight: 700;
	letter-spacing: -0.5px;
}

.cart-items-content {
	padding: 20px;
}

/* Individual Cart Item */
.cart-item-modern {
	display: grid;
	grid-template-columns: 120px 1fr auto;
	gap: 20px;
	padding: 20px;
	border-bottom: 1px solid #e8ecf1;
	align-items: center;
	transition: all 0.3s ease;
}

.cart-item-modern:last-child {
	border-bottom: none;
}

.cart-item-modern:hover {
	background-color: #f8f9fc;
	border-radius: 12px;
}

.item-image-wrapper {
	position: relative;
	overflow: hidden;
	border-radius: 12px;
	background: #f0f2f5;
	min-height: 120px;
}

.item-image-wrapper img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.cart-item-modern:hover .item-image-wrapper img {
	transform: scale(1.05);
}

.item-details-section {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 8px;
}

.item-product-name {
	font-size: 16px;
	font-weight: 600;
	color: #1a2332;
	line-height: 1.4;
	margin: 0;
}

.item-product-price {
	font-size: 14px;
	color: #b91e42;
	font-weight: 700;
	margin: 0;
}

.item-quantity-display {
	font-size: 13px;
	color: #757a8d;
	margin: 0;
}

/* Cart Controls Section */
.item-controls-section {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
	justify-content: flex-end;
}

.quantity-modifier {
	display: flex;
	align-items: center;
	border: 2px solid #e8ecf1;
	border-radius: 8px;
	background: white;
	overflow: hidden;
}

.qty-btn {
	background: none;
	border: none;
	padding: 8px 12px;
	cursor: pointer;
	font-size: 18px;
	color: #667eea;
	transition: all 0.2s ease;
	display: flex;
	align-items: center;
	justify-content: center;
}

.qty-btn:hover {
	background-color: #f0f2f5;
	color: #764ba2;
}

.qty-btn form {
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0;
}

.qty-btn button {
	background: none;
	border: none;
	padding: 0;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 18px;
	color: #667eea;
	transition: all 0.2s ease;
}

.qty-btn button:hover {
	color: #764ba2;
}

.remove-item-btn {
	background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
	border: none;
	padding: 10px 14px;
	border-radius: 8px;
	cursor: pointer;
	color: white;
	font-size: 18px;
	transition: all 0.3s ease;
	display: flex;
	align-items: center;
	justify-content: center;
}

.remove-item-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 5px 15px rgba(255, 107, 107, 0.3);
}

/* Empty Cart Message */
.empty-cart-message {
	text-align: center;
	padding: 60px 20px;
	background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
	border-radius: 12px;
}

.empty-cart-icon {
	font-size: 60px;
	margin-bottom: 20px;
	opacity: 0.5;
}

.empty-cart-title {
	font-size: 24px;
	font-weight: 700;
	color: #1a2332;
	margin-bottom: 10px;
}

.empty-cart-desc {
	font-size: 16px;
	color: #757a8d;
	margin-bottom: 30px;
}

/* Price Summary Sidebar */
.price-summary-card {
	background: white;
	border-radius: 16px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
	overflow: hidden;
	position: sticky;
	top: 20px;
	transition: all 0.3s ease;
}

.price-summary-card:hover {
	box-shadow: 0 15px 50px rgba(0, 0, 0, 0.12);
}

.summary-header {
	background: linear-gradient(135deg, #ba1d43 0%, #83243a 100%);
	padding: 25px;
	color: white;
}

.summary-header h3 {
	margin: 0;
	font-size: 22px;
	font-weight: 700;
	letter-spacing: -0.5px;
}

.summary-body {
	padding: 25px;
}

.summary-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 12px 0;
	border-bottom: 1px solid #e8ecf1;
	font-size: 15px;
}

.summary-row:last-child {
	border-bottom: none;
}

.summary-label {
	color: #757a8d;
	font-weight: 500;
}

.summary-value {
	color: #1a2332;
	font-weight: 600;
}

.summary-value.savings {
	color: #27ae60;
	font-weight: 700;
}

.summary-divider {
	height: 2px;
	background: linear-gradient(90deg, #b81d41 0%, #822338 100%);
	margin: 15px 0;
}

.summary-total {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 18px 0;
	font-size: 20px;
	font-weight: 700;
}

.summary-total .total-label {
	color: #1a2332;
}

.summary-total .total-amount {
	background: linear-gradient(135deg, #c01d43 0%, #7c2337 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

/* Action Buttons */
.action-buttons-group {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin-top: 25px;
}

.action-btn {
	padding: 16px 24px;
	border: none;
	border-radius: 10px;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s ease;
	text-decoration: none;
	display: block;
	text-align: center;
	letter-spacing: 0.5px;
}

.checkout-action-btn {
	background: linear-gradient(135deg, #c01d43 0%, #7c2337 100%);
	color: white;
	box-shadow: 0 5px 20px rgba(102, 126, 234, 0.3);
}

.checkout-action-btn:hover {
	transform: translateY(-3px);
	box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
	color: #fff;
}

.continue-shopping-btn {
	background: white;
	color: #ba1e42;
	border: 2px solid #842238;
}

.continue-shopping-btn:hover {
	background: #f0f2f5;
	border-color: #882239;
	color: #b71e41;
}

/* Responsive Design */
@media (max-width: 768px) {
	.cart-modern-wrapper {
		padding: 20px 0;
	}

	.cart-item-modern {
		grid-template-columns: 100px 1fr;
		gap: 15px;
		padding: 15px;
	}

	.item-controls-section {
		grid-column: 1 / -1;
		justify-content: flex-start;
		margin-top: 10px;
	}

	.item-product-name {
		font-size: 14px;
	}

	.price-summary-card {
		position: static;
		top: auto;
	}

	.summary-header,
	.cart-items-header {
		padding: 20px;
	}

	.summary-header h3,
	.cart-items-header h3 {
		font-size: 20px;
	}
}

@media (max-width: 480px) {
	.cart-items-container,
	.price-summary-card {
		border-radius: 12px;
	}

	.cart-item-modern {
		grid-template-columns: 1fr;
		gap: 12px;
	}

	.item-image-wrapper {
		min-height: 100px;
	}

	.item-controls-section {
		width: 100%;
	}

	.summary-body {
		padding: 15px;
	}

	.action-buttons-group {
		margin-top: 15px;
		gap: 10px;
	}

	.action-btn {
		padding: 14px 20px;
		font-size: 15px;
	}
}
