/* Cart CSS — copied from products.html to ensure identical appearance */

/* ══════════ CART DRAWER ══════════ */
#cartOverlay {
	position: fixed; inset: 0; z-index: 10000;
	background: rgba(0,0,0,0.45); backdrop-filter: blur(4px);
	opacity: 0; pointer-events: none; transition: opacity .28s ease;
}
#cartOverlay.open { opacity: 1; pointer-events: auto; }

#cartDrawer {
	position: fixed; top: 0; right: 0; bottom: 0; z-index: 10001;
	width: min(440px, 100vw);
	background: #fff; display: flex; flex-direction: column;
	transform: translateX(100%); transition: transform .32s cubic-bezier(.22,1,.36,1);
	box-shadow: -8px 0 40px rgba(0,0,0,0.18);
}
#cartDrawer.open { transform: translateX(0); }

.cart-header {
	display: flex; align-items: center; justify-content: space-between;
	padding: 20px 24px 18px;
	border-bottom: 1.5px solid var(--border);
	background: #fff;
}
.cart-header h2 {
	font-family: 'Montserrat', sans-serif; font-weight: 900; font-size: 16px;
	color: var(--dark); display: flex; align-items: center; gap: 10px;
}
.cart-header h2 svg { width: 20px; height: 20px; stroke: var(--gold); fill: none; stroke-width: 2; }
.cart-close-btn {
	width: 36px; height: 36px; border-radius: 50%; border: none;
	background: var(--off-white); cursor: pointer;
	display: flex; align-items: center; justify-content: center;
	transition: background .18s;
}
.cart-close-btn:hover { background: #f0f0f0; }
.cart-close-btn svg { width: 16px; height: 16px; stroke: #555; fill: none; stroke-width: 2.5; }

.cart-body {
	flex: 1; overflow-y: auto; padding: 16px 20px;
	scrollbar-width: thin; scrollbar-color: #FFD97A transparent;
}
.cart-empty {
	display: flex; flex-direction: column; align-items: center; justify-content: center;
	height: 100%; gap: 14px; color: var(--text-muted);
	font-family: 'Montserrat', sans-serif; font-size: 13px; font-weight: 600;
	text-align: center;
}
.cart-empty svg { width: 56px; height: 56px; stroke: #ccc; fill: none; stroke-width: 1.5; opacity: .6; }

.cart-item {
	display: flex; gap: 14px; align-items: flex-start;
	padding: 14px 0; border-bottom: 1px solid var(--border);
}
.cart-item:last-child { border-bottom: none; }
.cart-item-img {
	width: 80px; height: 80px; border-radius: 8px;
	border: 1.5px solid var(--border); object-fit: contain;
	background: #fff; padding: 6px; flex-shrink: 0;
}
.cart-item-img-fallback {
	width: 80px; height: 80px; border-radius: 8px;
	border: 1.5px dashed var(--border); background: var(--off-white);
	display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.cart-item-img-fallback svg { width: 28px; height: 28px; stroke: #ccc; fill: none; stroke-width: 1.5; }
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name {
	font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 12px;
	color: var(--dark); margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cart-item-cat {
	font-family: 'Montserrat', sans-serif; font-size: 10px; font-weight: 600;
	color: var(--text-muted); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 8px;
}
.cart-item-price {
	font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: 14px; color: #111;
}
.cart-item-qty {
	display: flex; align-items: center; gap: 8px; margin-top: 8px;
}
.qty-btn {
	width: 26px; height: 26px; border-radius: 6px; border: 1.5px solid var(--border);
	background: var(--off-white); cursor: pointer; display: flex; align-items: center; justify-content: center;
	font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: 14px; color: #555;
	transition: border-color .15s, background .15s;
}
.qty-btn:hover { border-color: var(--gold); background: #fffbf2; color: var(--gold-dark); }
.qty-val {
	font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: 13px; color: var(--dark);
	min-width: 20px; text-align: center;
}
.cart-item-remove {
	flex-shrink: 0; background: none; border: none; cursor: pointer;
	width: 28px; height: 28px; border-radius: 6px; display: flex; align-items: center; justify-content: center;
	transition: background .15s;
}
.cart-item-remove:hover { background: #fff0f0; }
.cart-item-remove svg { width: 14px; height: 14px; stroke: #c0392b; fill: none; stroke-width: 2.5; }

.cart-footer {
	border-top: 2px solid var(--border);
	padding: 18px 20px 20px; background: #fff;
}
.cart-total-row {
	display: flex; justify-content: space-between; align-items: center;
	margin-bottom: 16px;
}
.cart-total-label {
	font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 13px; color: var(--text-muted);
}
.cart-total-val {
	font-family: 'Montserrat', sans-serif; font-weight: 900; font-size: 20px; color: var(--dark);
}
.cart-cta-btns { display: flex; flex-direction: column; gap: 10px; }
.cart-cta-btn {
	width: 100%; padding: 13px 16px; border-radius: 8px;
	font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: 13px;
	cursor: pointer; border: none; display: flex; align-items: center; justify-content: center; gap: 8px;
	transition: transform .12s, box-shadow .12s;
	text-decoration: none;
}
.cart-cta-btn:hover { transform: translateY(-2px); box-shadow: 0 4px 14px rgba(0,0,0,.12); }
.cart-cta-btn svg { width: 16px; height: 16px; fill: none; stroke-width: 2; flex-shrink: 0; }
.cart-btn-messenger {
	background: linear-gradient(135deg, #0084ff 0%, #00b0f4 100%);
	color: #fff; stroke: #fff;
}
.cart-btn-messenger svg { stroke: #fff; }
.cart-btn-email {
	background: linear-gradient(180deg,#FFD97A 0%,#F5A623 60%,#E49B2A 100%);
	border: 1.5px solid #d29a2a; color: #2b1a00;
}
.cart-btn-email svg { stroke: #2b1a00; }
.cart-btn-other {
	background: var(--off-white); border: 1.5px solid var(--border); color: var(--dark);
}
.cart-btn-other svg { stroke: var(--dark); }
.cart-cta-divider {
	font-family: 'Montserrat', sans-serif; font-size: 10px; font-weight: 700;
	color: var(--text-muted); letter-spacing: .1em; text-transform: uppercase;
	text-align: center; margin: 2px 0;
}

/* small cart icon/button to inject */
.cart-icon-btn {
	position: relative; flex-shrink: 0;
	background: none; border: none; cursor: pointer;
	width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
	border-radius: 50%; transition: background .18s; margin-right: 4px;
}
.cart-icon-btn:hover { background: rgba(245,166,35,0.1); }
.cart-icon-btn svg { width: 26px; height: 26px; stroke: var(--dark); fill: none; stroke-width: 2; }
.cart-badge {
	position: absolute; top: 4px; right: 4px;
	min-width: 17px; height: 17px; border-radius: 999px;
	background: var(--gold); color: #2b1a00;
	font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: 10px;
	display: none; align-items: center; justify-content: center;
	padding: 0 4px; line-height: 1; box-shadow: 0 1px 4px rgba(0,0,0,.18);
}
.cart-badge.show { display: flex; }

/* responsive adjustments */
@media (max-width:640px){
	#cartDrawer{width:92vw;}
}
