/* Cart sidebar visual polish */
.cart-overlay {
	display: block;
	background: rgba(24, 19, 15, 0.35);
	backdrop-filter: blur(4px);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.28s ease, visibility 0.28s ease;
}

.cart-overlay.active {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

.cart-sidebar {
	right: 0;
	width: min(440px, 92vw);
	background: linear-gradient(180deg, #ffffff 0%, #faf7f4 100%);
	transform: translateX(100%);
	transition: transform 0.32s ease;
	box-shadow: -24px 0 60px rgba(24, 18, 14, 0.22);
	border-left: 1px solid rgba(31, 26, 22, 0.08);
	overflow: hidden;
}

.cart-sidebar.active {
	transform: translateX(0);
}

.cart-sidebar .cart-header {
	padding: 24px 26px 18px;
	border-bottom: 1px solid rgba(35, 27, 21, 0.08);
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	background: #fff;
	position: sticky;
	top: 0;
	z-index: 2;
}

.cart-sidebar .cart-title {
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	margin: 0;
	color: #1f1a16;
}

.cart-sidebar #cart-title-count {
	font-weight: 500;
	margin-left: 6px;
	color: #6f665f;
	letter-spacing: 0.04em;
}

.cart-sidebar .cart-close-btn {
	background: rgba(31, 26, 22, 0.08);
	border: none;
	font-size: 22px;
	cursor: pointer;
	line-height: 1;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	color: #1f1a16;
	transition: background 0.2s ease, transform 0.2s ease;
}

.cart-sidebar .cart-close-btn:hover {
	background: rgba(31, 26, 22, 0.14);
	transform: scale(1.05);
}

.cart-sidebar .cart-content {
	padding: 22px 26px 28px;
	background: transparent;
	overscroll-behavior: contain;
}

#cart-sidebar .cart-items {
	display: flex;
	flex-direction: column;
	gap: 16px;
	margin-bottom: 22px;
}

#cart-sidebar .cart-item {
	padding: 14px 16px;
	border: 1px solid rgba(31, 26, 22, 0.08);
	border-radius: 18px;
	background: #fff;
	box-shadow: 0 12px 20px rgba(31, 26, 22, 0.06);
}

#cart-sidebar .cart-item-header {
	display: flex;
	gap: 12px;
	margin-bottom: 12px;
	align-items: flex-start;
}

#cart-sidebar .product-image {
	width: 76px;
	height: 76px;
	border-radius: 14px;
	overflow: hidden;
	background: #f3eee8;
}

#cart-sidebar .product-image img,
#cart-sidebar .product-image picture {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

#cart-sidebar .product-info {
	flex: 1;
}

#cart-sidebar .product-title {
	font-size: 15px;
	font-weight: 600;
	margin: 0 0 4px;
	color: #1f1a16;
}

#cart-sidebar .product-artist,
#cart-sidebar .product-medium,
#cart-sidebar .product-dimensions {
	font-size: 12px;
	margin: 0;
	color: #6f665f;
}

#cart-sidebar .remove-btn a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: rgba(31, 26, 22, 0.08);
	transition: background 0.2s ease, transform 0.2s ease;
}

#cart-sidebar .remove-btn a:hover {
	background: rgba(31, 26, 22, 0.14);
	transform: scale(1.05);
}

#cart-sidebar .cart-item-footer {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	gap: 12px;
}

#cart-sidebar .quantity-text {
	font-size: 11px;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: #6f665f;
	margin: 0;
}

#cart-sidebar .unit-price {
	font-size: 12px;
	color: #6f665f;
	margin: 0 0 2px;
}

#cart-sidebar .total-price {
	font-size: 15px;
	font-weight: 700;
	margin: 0;
	color: #1f1a16;
}

#cart-sidebar .cart-summary {
	padding: 18px;
	border-radius: 20px;
	border: 1px solid rgba(31, 26, 22, 0.08);
	background: #fff;
	box-shadow: 0 16px 30px rgba(31, 26, 22, 0.08);
}

#cart-sidebar .subtotal-row,
#cart-sidebar .shipping-row,
#cart-sidebar .total-row {
	display: flex;
	justify-content: space-between;
	font-size: 13px;
	margin-bottom: 12px;
	color: #2c2622;
}

#cart-sidebar .total-row {
	font-size: 15px;
	font-weight: 700;
	border-top: 1px solid rgba(31, 26, 22, 0.1);
	padding-top: 12px;
	margin-top: 8px;
}

#cart-sidebar .shipping-select {
	border: 1px solid rgba(31, 26, 22, 0.14);
	padding: 6px 10px;
	font-size: 12px;
	border-radius: 999px;
	background: #f5f1ec;
}

#cart-sidebar .cart-actions {
	margin-top: 18px;
}

#cart-sidebar .checkout-btn,
#cart-sidebar .view-basket-btn,
#cart-sidebar .continue-shopping-btn {
	display: block;
	width: 100%;
	text-align: center;
	padding: 12px 16px;
	text-decoration: none;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	border-radius: 999px;
}

#cart-sidebar .checkout-btn {
	background: #1f1a16;
	color: #fff;
	border: 1px solid #1f1a16;
	box-shadow: 0 10px 18px rgba(31, 26, 22, 0.18);
	margin-bottom: 10px;
}

#cart-sidebar .checkout-btn:hover {
	color: #fff;
	opacity: 0.95;
}

#cart-sidebar .view-basket-btn {
	background: transparent;
	color: #1f1a16;
	border: 1px solid #1f1a16;
}

#cart-sidebar .view-basket-btn:hover {
	background: #1f1a16;
	color: #fff;
}

#cart-sidebar .continue-shopping-btn {
	background: #1f1a16;
	color: #fff;
	border: 1px solid #1f1a16;
}

#cart-sidebar .empty-cart {
	padding: 26px;
	border-radius: 18px;
	border: 1px dashed rgba(31, 26, 22, 0.2);
	background: #fff;
	text-align: center;
}

#cart-sidebar .empty-cart p {
	font-size: 14px;
	margin-bottom: 18px;
	color: #6f665f;
}

#cart-sidebar .payment-options-section {
	margin-top: 18px;
	padding-top: 14px;
	border-top: 1px solid rgba(31, 26, 22, 0.08);
}

#cart-sidebar .payment-options-title {
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.16em;
	color: #6f665f;
	margin-bottom: 10px;
}

#cart-sidebar .payment-methods {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
}

#cart-sidebar .payment-icon-img {
	width: 52px;
	height: auto;
	filter: grayscale(10%);
}

@media (max-width: 640px) {
	.cart-sidebar {
		width: 100%;
	}

	.cart-sidebar .cart-header,
	.cart-sidebar .cart-content {
		padding-left: 20px;
		padding-right: 20px;
	}
}
