/**
 * MOVIN Slide-Over Cart Drawer Styles
 * Right-side sliding drawer with real-time WooCommerce cart synchronization
 */

/* Backdrop */
.movin-cart-drawer-backdrop {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.45);
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
	z-index: 999990;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.35s ease, visibility 0.35s ease;
}

.movin-cart-drawer-backdrop.is-open {
	opacity: 1;
	visibility: visible;
}

/* Drawer Container */
.movin-cart-drawer {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	width: 440px;
	max-width: 90vw;
	background: #FFFFFF;
	box-shadow: -10px 0 35px rgba(0, 0, 0, 0.12);
	z-index: 999995;
	transform: translate3d(100%, 0, 0);
	transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
	display: flex;
	flex-direction: column;
	box-sizing: border-box;
	font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.movin-cart-drawer.is-open {
	transform: translate3d(0, 0, 0);
}

.movin-cart-drawer-content {
	display: flex;
	flex-direction: column;
	height: 100%;
	width: 100%;
	box-sizing: border-box;
}

/* Header */
.movin-cd-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 20px 24px;
	border-bottom: 1px solid #ECE7E1;
	background: #FFFFFF;
	flex-shrink: 0;
}

.movin-cd-title-wrap {
	display: flex;
	align-items: center;
	gap: 10px;
}

.movin-cd-title {
	margin: 0;
	font-size: 1.2rem;
	font-weight: 700;
	font-family: var(--movin-heading-font, var(--e-global-typography-primary-font-family, 'Montserrat', sans-serif));
	color: #1A281F;
	line-height: 1.2;
	letter-spacing: -0.01em;
}

.movin-cd-count-badge {
	background: #233D2D;
	color: #FFFFFF;
	font-size: 0.75rem;
	font-weight: 700;
	min-width: 22px;
	height: 22px;
	padding: 0 6px;
	border-radius: 11px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
}

/* Close Button (Overrides theme button styles) */
button.movin-cd-close,
.movin-cd-close {
	background: #F4EFEB !important;
	background-color: #F4EFEB !important;
	border: 1px solid #E5DFD5 !important;
	width: 36px !important;
	height: 36px !important;
	min-width: 36px !important;
	min-height: 36px !important;
	max-width: 36px !important;
	max-height: 36px !important;
	border-radius: 50% !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	color: #233D2D !important;
	cursor: pointer !important;
	padding: 0 !important;
	margin: 0 !important;
	outline: none !important;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04) !important;
	transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease !important;
}

button.movin-cd-close:hover,
.movin-cd-close:hover {
	background: #233D2D !important;
	background-color: #233D2D !important;
	color: #FFFFFF !important;
	border-color: #233D2D !important;
	transform: rotate(90deg) !important;
	box-shadow: 0 4px 12px rgba(35, 61, 45, 0.22) !important;
}

button.movin-cd-close svg,
.movin-cd-close svg {
	width: 17px !important;
	height: 17px !important;
	stroke: currentColor !important;
	stroke-width: 2.2 !important;
	stroke-linecap: round !important;
	stroke-linejoin: round !important;
	fill: none !important;
	display: block !important;
	margin: auto !important;
}

/* Free Shipping Goal */
.movin-cd-shipping-bar {
	background: #FAF8F5;
	padding: 14px 24px 16px 24px;
	border-bottom: 1px solid #ECE7E1;
	flex-shrink: 0;
}

.movin-cd-shipping-msg {
	font-size: 0.85rem;
	color: #333333;
	margin-bottom: 10px;
	line-height: 1.3;
}

.movin-cd-shipping-msg strong {
	color: #233D2D;
}

.movin-cd-progress-track {
	width: 100%;
	height: 6px;
	background: #E8E3DC;
	border-radius: 3px;
	overflow: hidden;
}

.movin-cd-progress-fill {
	height: 100%;
	background: linear-gradient(90deg, #2E583E, #C28D38);
	border-radius: 3px;
	transition: width 0.4s ease;
}

/* Drawer Body (Items List) */
.movin-cd-body {
	flex-grow: 1;
	overflow-y: auto;
	padding: 16px 24px;
	box-sizing: border-box;
}

/* Empty State */
.movin-cd-empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	height: 100%;
	text-align: center;
	padding: 40px 20px;
}

.movin-cd-empty-icon {
	width: 68px;
	height: 68px;
	border-radius: 50%;
	background: #F3EFEA;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #7E807D;
	margin-bottom: 18px;
}

.movin-cd-empty-icon svg {
	width: 32px;
	height: 32px;
	stroke: currentColor;
	stroke-width: 1.8;
	fill: none;
}

.movin-cd-empty-title {
	margin: 0 0 8px 0;
	font-size: 1.2rem;
	font-weight: 700;
	color: #1A281F;
}

.movin-cd-empty-desc {
	margin: 0 0 24px 0;
	font-size: 0.9rem;
	color: #777777;
	line-height: 1.4;
	max-width: 280px;
}

.movin-cd-shop-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 12px 28px;
	background: #233D2D;
	color: #FFFFFF;
	font-size: 0.85rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	border-radius: 25px;
	text-decoration: none;
	transition: background-color 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
}

.movin-cd-shop-btn:hover {
	background: #1A281F;
	transform: translateY(-2px);
	box-shadow: 0 6px 16px rgba(35, 61, 45, 0.25);
}

/* Items List */
.movin-cd-items-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.movin-cd-item {
	display: flex;
	gap: 16px;
	padding: 16px 0;
	border-bottom: 1px solid #ECE7E1;
	position: relative;
	box-sizing: border-box;
}

.movin-cd-item-thumb {
	width: 74px;
	height: 74px;
	flex-shrink: 0;
	border-radius: 12px;
	background: #F3EFEA;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
}

.movin-cd-item-thumb img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
}

.movin-cd-item-details {
	flex-grow: 1;
	display: flex;
	flex-direction: column;
}

h6.movin-cd-item-name,
.movin-cd-item-name {
	margin: 0 0 6px 0 !important;
	font-size: 0.95rem !important;
	font-weight: 600 !important;
	font-family: 'Poppins', sans-serif !important;
	line-height: 1.35 !important;
	padding-right: 14px !important;
}

h6.movin-cd-item-name a,
.movin-cd-item-name a {
	color: #1A281F !important;
	text-decoration: none !important;
	transition: color 0.2s ease !important;
}

h6.movin-cd-item-name a:hover,
.movin-cd-item-name a:hover {
	color: #233D2D !important;
}

.movin-cd-item-price {
	font-size: 0.94rem;
	font-weight: 700;
	font-family: 'Poppins', sans-serif;
	color: #233D2D;
	margin-bottom: 10px;
}

.movin-cd-item-actions {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: auto;
}

/* Quantity Controls */
.movin-cd-qty-wrap {
	display: inline-flex;
	align-items: center;
	border: 1.5px solid #E2DDD6;
	border-radius: 20px;
	background: #FFFFFF;
	overflow: hidden;
	height: 32px;
}

button.movin-cd-qty-btn,
.movin-cd-qty-btn {
	width: 32px !important;
	height: 32px !important;
	min-width: 32px !important;
	background: #233D2D !important;
	background-color: #233D2D !important;
	border: none !important;
	color: #FFFFFF !important;
	font-size: 1.1rem !important;
	font-weight: 600 !important;
	cursor: pointer !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	padding: 0 !important;
	margin: 0 !important;
	line-height: 1 !important;
	transition: background-color 0.2s ease !important;
	outline: none !important;
}

button.movin-cd-qty-btn:hover,
.movin-cd-qty-btn:hover {
	background: #1A281F !important;
	background-color: #1A281F !important;
	color: #FFFFFF !important;
}

.movin-cd-qty-value {
	min-width: 30px;
	text-align: center;
	font-size: 0.88rem;
	font-weight: 700;
	font-family: 'Poppins', sans-serif;
	color: #1A281F;
	user-select: none;
}

/* Delete / Remove Button (Overrides theme button styles) */
button.movin-cd-item-remove,
.movin-cd-item-remove {
	background: #FAF8F5 !important;
	background-color: #FAF8F5 !important;
	border: 1px solid #E5DFD5 !important;
	width: 34px !important;
	height: 34px !important;
	min-width: 34px !important;
	min-height: 34px !important;
	max-width: 34px !important;
	max-height: 34px !important;
	border-radius: 50% !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	color: #7E807D !important;
	cursor: pointer !important;
	padding: 0 !important;
	margin: 0 !important;
	outline: none !important;
	line-height: 1 !important;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04) !important;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease !important;
}

button.movin-cd-item-remove:hover,
.movin-cd-item-remove:hover {
	color: #DC2626 !important;
	background: #FEE2E2 !important;
	background-color: #FEE2E2 !important;
	border-color: #FCA5A5 !important;
	transform: scale(1.06) !important;
	box-shadow: 0 2px 8px rgba(220, 38, 38, 0.15) !important;
}

button.movin-cd-item-remove svg,
.movin-cd-item-remove svg {
	width: 16px !important;
	height: 16px !important;
	stroke: currentColor !important;
	stroke-width: 1.8 !important;
	stroke-linecap: round !important;
	stroke-linejoin: round !important;
	fill: none !important;
	display: block !important;
	margin: auto !important;
}

/* Drawer Footer */
.movin-cd-footer {
	background: #FFFFFF;
	padding: 20px 24px 24px 24px;
	border-top: 1px solid #ECE7E1;
	box-shadow: 0 -4px 18px rgba(0, 0, 0, 0.04);
	flex-shrink: 0;
}

.movin-cd-subtotal-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 6px;
}

.movin-cd-subtotal-label {
	font-size: 1.05rem;
	font-weight: 600;
	font-family: 'Poppins', sans-serif;
	color: #555555;
}

.movin-cd-subtotal-val {
	font-size: 1.35rem;
	font-weight: 800;
	font-family: var(--movin-heading-font, var(--e-global-typography-primary-font-family, 'Montserrat', sans-serif));
	color: #1A281F;
}

.movin-cd-tax-note {
	margin: 0 0 16px 0;
	font-size: 0.78rem;
	font-family: 'Poppins', sans-serif;
	color: #888888;
	line-height: 1.3;
}

/* Signature MOVIN Checkout Pill Button */
.movin-cd-checkout-btn {
	position: relative;
	width: 100%;
	height: 48px;
	border-radius: 24px;
	background: #233D2D;
	color: #FFFFFF;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 4px 18px 4px 4px;
	box-sizing: border-box;
	text-decoration: none;
	font-size: 0.85rem;
	font-weight: 700;
	font-family: 'Poppins', sans-serif;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	outline: none;
	box-shadow: 0 4px 14px rgba(35, 61, 45, 0.2);
	transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
}

.movin-cd-checkout-btn:hover {
	background: #1A281F;
	color: #FFFFFF;
	transform: translateY(-2px);
	box-shadow: 0 8px 22px rgba(35, 61, 45, 0.32);
}

.movin-cd-btn-badge {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: #C28D38;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #FFFFFF;
	flex-shrink: 0;
}

.movin-cd-btn-badge svg {
	width: 18px;
	height: 18px;
	stroke: currentColor;
	stroke-width: 2;
	fill: none;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.movin-cd-btn-text {
	flex-grow: 1;
	text-align: center;
	padding: 0 12px;
	white-space: nowrap;
}

.movin-cd-btn-arrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: #FFFFFF;
}

.movin-cd-btn-arrow svg {
	width: 16px;
	height: 16px;
	stroke: currentColor;
	stroke-width: 2.2;
	fill: none;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.movin-cd-view-cart {
	display: block;
	text-align: center;
	margin-top: 12px;
	font-size: 0.82rem;
	font-weight: 600;
	color: #666666;
	text-decoration: underline;
	transition: color 0.2s ease;
}

.movin-cd-view-cart:hover {
	color: #233D2D;
}

/* =========================================================
   EMPTY CART STATE (Reference Match: Editorial Arch Cards)
   ========================================================= */

/* Top Announcement Banner */
.movin-cd-promo-banner {
	background: #E8EEDD;
	color: #244132;
	text-align: center;
	padding: 8px 16px;
	font-size: 0.76rem;
	font-weight: 600;
	font-family: 'Poppins', sans-serif;
	letter-spacing: 0.02em;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

/* Empty State Body Layout */
.movin-cd-body.movin-cd-body-empty {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	padding: 24px 20px 20px;
	flex: 1;
	overflow-y: auto;
}

.movin-cd-empty-wrapper {
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 100%;
	max-width: 400px;
	margin: auto 0;
}

/* Headline & Subtitle */
.movin-cd-empty-hero {
	text-align: center;
	margin-bottom: 18px;
	width: 100%;
}

.movin-cd-empty-headline {
	font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
	font-size: 1.35rem;
	font-weight: 600;
	color: #B68638;
	margin: 0 0 6px 0;
	line-height: 1.25;
	letter-spacing: 0.01em;
}

.movin-cd-empty-sub {
	font-family: 'Poppins', sans-serif;
	font-size: 0.84rem;
	font-weight: 400;
	color: #555555;
	margin: 0 auto;
	max-width: 270px;
	line-height: 1.45;
}

/* 3 Arch Cards Grid */
.movin-cd-empty-cards-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 12px;
	width: 100%;
	box-sizing: border-box;
}

.movin-cd-empty-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-decoration: none !important;
	cursor: pointer;
}

/* Arch Shape Container */
.movin-cd-empty-arch {
	position: relative;
	width: 100%;
	height: 165px;
	border-radius: 90px 90px 0 0;
	background: linear-gradient(180deg, #FBF7F0 0%, #F1E8DC 100%);
	display: flex;
	align-items: flex-end;
	justify-content: center;
	padding: 10px 8px 10px;
	box-sizing: border-box;
	overflow: hidden;
	box-shadow: 0 4px 14px rgba(41, 68, 55, 0.06);
	transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.3s ease;
}

/* Base Podium Shadow */
.movin-cd-empty-arch::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 12%;
	right: 12%;
	height: 18px;
	background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.10) 0%, transparent 70%);
	pointer-events: none;
	z-index: 1;
}

.movin-cd-empty-arch img {
	max-height: 120px;
	width: auto;
	max-width: 90%;
	object-fit: contain;
	z-index: 2;
	transition: transform 0.35s ease;
	filter: drop-shadow(0 6px 12px rgba(41, 68, 55, 0.12));
}

.movin-cd-empty-card:hover .movin-cd-empty-arch {
	transform: translateY(-4px);
	box-shadow: 0 8px 22px rgba(41, 68, 55, 0.14);
}

.movin-cd-empty-card:hover .movin-cd-empty-arch img {
	transform: scale(1.07);
}

.movin-cd-empty-card-title {
	margin-top: 12px;
	font-family: 'Montserrat', sans-serif;
	font-size: 0.74rem;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: #1A281F;
	text-align: center;
	line-height: 1.25;
	transition: color 0.25s ease;
}

.movin-cd-empty-card:hover .movin-cd-empty-card-title {
	color: #B68638;
}

/* Full-Width Empty State Footer Button */
.movin-cd-empty-footer {
	margin-top: auto;
	width: 100%;
	box-sizing: border-box;
	flex-shrink: 0;
}

.movin-cd-empty-continue-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 52px;
	background: #B68638;
	color: #FFFFFF !important;
	font-family: 'Montserrat', 'Poppins', sans-serif;
	font-size: 0.92rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	text-decoration: none !important;
	border: none;
	outline: none;
	cursor: pointer;
	box-shadow: 0 4px 14px rgba(182, 134, 56, 0.3);
	transition: background-color 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
}

.movin-cd-empty-continue-btn:hover {
	background: #A0722A;
	color: #FFFFFF !important;
	box-shadow: 0 6px 20px rgba(182, 134, 56, 0.4);
}

/* Mobile full width drawer & empty state responsive */
@media (max-width: 480px) {
	.movin-cart-drawer {
		width: 100vw;
		max-width: 100vw;
	}

	.movin-cd-empty-headline {
		font-size: 1.6rem;
	}

	.movin-cd-empty-sub {
		font-size: 0.82rem;
	}

	.movin-cd-empty-cards-grid {
		gap: 8px;
	}

	.movin-cd-empty-arch {
		height: 135px;
		border-radius: 65px 65px 0 0;
	}

	.movin-cd-empty-arch img {
		max-height: 100px;
	}

	.movin-cd-empty-card-title {
		font-size: 0.68rem;
		margin-top: 8px;
	}

	.movin-cd-empty-continue-btn {
		height: 48px;
		font-size: 0.85rem;
	}
}
