/* ============================================
   CART DRAWER — OVERLAY
============================================ */
.mcs-drawer-overlay {
	position: fixed;
	inset: 0;
	background: rgba(22, 20, 15, 0.5);
	backdrop-filter: blur(4px);
	opacity: 0;
	visibility: hidden;
	z-index: 9998;
	transition: opacity 0.4s ease, visibility 0.4s ease;
}

.mcs-drawer-overlay.is-active {
	opacity: 1;
	visibility: visible;
}

/* ============================================
   CART DRAWER
============================================ */
.mcs-cart-drawer {
	position: fixed;
	top: 0;
	right: 0;
	width: 440px;
	max-width: 100%;
	height: 100vh;
	background: #fff;
	display: flex;
	flex-direction: column;
	transform: translateX(100%);
	transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
	z-index: 9999;
	box-shadow: -10px 0 40px rgba(22, 20, 15, 0.15);
	visibility: hidden;
}

.mcs-cart-drawer.is-open {
	transform: translateX(0);
	visibility: visible;
}

/* ============================================
   HEADER
============================================ */
.mcs-cart-drawer__header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 20px;
	padding: 24px 28px;
	border-bottom: 1px solid #e8e1d2;
	flex-shrink: 0;
}

.mcs-cart-drawer__eyebrow {
	display: block;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.28em;
	text-transform: uppercase;
	color: #b8935c;
	margin-bottom: 6px;
}

.mcs-cart-drawer__title {
	font-family: 'Playfair Display', Georgia, serif;
	font-size: 22px;
	font-weight: 500;
	letter-spacing: -0.01em;
	color: #1a1a1a;
	margin: 0;
	display: flex;
	align-items: baseline;
	gap: 8px;
}

.mcs-cart-drawer__count {
	font-family: 'Inter', sans-serif;
	font-size: 13px;
	font-weight: 500;
	color: #8a7f6c;
}

.mcs-cart-drawer__close {
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #faf7f0;
	border: none;
	border-radius: 50%;
	color: #1a1a1a;
	cursor: pointer;
	transition: all 0.3s ease;
	flex-shrink: 0;
	padding: 0;
}

.mcs-cart-drawer__close:hover {
	background: #1a1a1a;
	color: #fff;
	transform: rotate(90deg);
}

/* ============================================
   BODY
============================================ */
.mcs-cart-drawer__body {
	flex: 1 1 auto;
	overflow-y: auto;
	padding: 0;
	-webkit-overflow-scrolling: touch;
}

/* Mini cart widget */
.mcs-cart-drawer .widget_shopping_cart_content {
	padding: 0;
}

.mcs-cart-drawer .cart_list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.mcs-cart-drawer .cart_list li {
	display: grid;
	grid-template-columns: 80px 1fr auto;
	gap: 16px;
	padding: 20px 28px;
	border-bottom: 1px solid #f0ece3;
	position: relative;
	align-items: start;
}

.mcs-cart-drawer .cart_list li:last-child {
	border-bottom: none;
}

.mcs-cart-drawer .cart_list li a {
	color: #1a1a1a;
	text-decoration: none;
	transition: color 0.3s;
}

.mcs-cart-drawer .cart_list li a:hover {
	color: #b8935c;
}

/* Product image */
.mcs-cart-drawer .cart_list li a:first-child {
	grid-column: 1;
	grid-row: 1 / span 2;
	width: 80px;
	height: 80px;
	display: block;
	border: 1px solid #e8e1d2;
	overflow: hidden;
}

.mcs-cart-drawer .cart_list li a:first-child img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* Product name */
.mcs-cart-drawer .cart_list li a:nth-child(2) {
	grid-column: 2;
	font-family: 'Playfair Display', Georgia, serif;
	font-size: 15px;
	font-weight: 500;
	line-height: 1.3;
}

/* Quantity */
.mcs-cart-drawer .cart_list li .quantity {
	grid-column: 2;
	font-size: 13px;
	color: #8a7f6c;
	margin-top: 4px;
	display: block;
}

/* Remove button */
.mcs-cart-drawer .cart_list li a.remove {
	grid-column: 3;
	grid-row: 1;
	width: 24px;
	height: 24px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: transparent !important;
	color: #8a7f6c !important;
	font-size: 18px;
	line-height: 1;
	border-radius: 50%;
	transition: all 0.3s;
	text-decoration: none;
}

.mcs-cart-drawer .cart_list li a.remove:hover {
	background: #b91c1c !important;
	color: #fff !important;
}

/* Cart total inside mini */
.mcs-cart-drawer .woocommerce-mini-cart__total {
	display: none;
}

.mcs-cart-drawer .woocommerce-mini-cart__buttons {
	display: none;
}

/* Empty cart */
.mcs-cart-drawer .woocommerce-mini-cart__empty-message {
	padding: 60px 28px;
	text-align: center;
	font-size: 15px;
	color: #8a7f6c;
	font-family: 'Playfair Display', Georgia, serif;
	font-style: italic;
}

/* ============================================
   FOOTER
============================================ */
.mcs-cart-drawer__footer {
	padding: 24px 28px;
	background: #faf7f0;
	border-top: 1px solid #e8e1d2;
	flex-shrink: 0;
}

.mcs-cart-drawer__subtotal {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 8px;
}

.mcs-cart-drawer__subtotal span {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: #5c5346;
}

.mcs-cart-drawer__subtotal strong {
	font-family: 'Playfair Display', Georgia, serif;
	font-size: 22px;
	font-weight: 500;
	color: #1a1a1a;
}

.mcs-cart-drawer__note {
	font-size: 12px;
	color: #8a7f6c;
	margin: 0 0 20px;
	line-height: 1.5;
}

.mcs-cart-drawer__actions {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
}

.mcs-cart-drawer__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 16px 20px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	text-decoration: none;
	transition: all 0.3s ease;
	text-align: center;
	font-family: inherit;
	cursor: pointer;
	border: 1px solid transparent;
}

.mcs-cart-drawer__btn--outline {
	background: transparent;
	color: #1a1a1a;
	border-color: #1a1a1a;
}

.mcs-cart-drawer__btn--outline:hover {
	background: #1a1a1a;
	color: #fff;
}

.mcs-cart-drawer__btn--primary {
	background: #b8935c;
	color: #16140f;
	border-color: #b8935c;
}

.mcs-cart-drawer__btn--primary:hover {
	background: #1a1a1a;
	border-color: #1a1a1a;
	color: #fff;
}

/* ============================================
   HEADER CART BUTTON
============================================ */
.mcs-header__cart-btn {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	background: transparent;
	border: none;
	color: #1a1a1a;
	cursor: pointer;
	transition: color 0.3s;
	padding: 0;
}

.mcs-header__cart-btn:hover {
	color: #b8935c;
}

.mcs-header__cart-btn svg {
	display: block;
}

.mcs-header__cart-count {
	position: absolute;
	top: 0;
	right: 0;
	min-width: 20px;
	height: 20px;
	padding: 0 6px;
	background: #b8935c;
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	border-radius: 999px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
	transition: transform 0.3s ease;
}

.mcs-header__cart-count.is-bumped {
	animation: mcsBump 0.5s ease;
}

@keyframes mcsBump {
	0%   { transform: scale(1); }
	40%  { transform: scale(1.4); }
	100% { transform: scale(1); }
}

/* ============================================
   BODY SCROLL LOCK
============================================ */
body.mcs-no-scroll {
	overflow: hidden;
}

/* ============================================
   RESPONSIVE
============================================ */
@media (max-width: 480px) {
	.mcs-cart-drawer {
		width: 100%;
	}

	.mcs-cart-drawer__header,
	.mcs-cart-drawer__footer {
		padding: 20px;
	}

	.mcs-cart-drawer .cart_list li {
		padding: 16px 20px;
		grid-template-columns: 70px 1fr auto;
		gap: 12px;
	}

	.mcs-cart-drawer .cart_list li a:first-child {
		width: 70px;
		height: 70px;
	}

	.mcs-cart-drawer__actions {
		grid-template-columns: 1fr;
	}

	.mcs-cart-drawer__subtotal strong {
		font-size: 18px;
	}
}