/**
 * Luxury mini-cart drawer — scoped to custom drawer wrapper.
 * Design reference: /mini-cart/mini-cart.css
 */

.custom-mini-cart-wrapper {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 999999;
	pointer-events: none;
	visibility: hidden;
	/* Hide wrapper after slide-out completes */
	transition: visibility 0s linear 0.4s;
	font-family: 'Manrope', sans-serif;
	color: #2d161e;
}

.custom-mini-cart-wrapper.active {
	pointer-events: auto;
	visibility: visible;
	transition: visibility 0s linear 0s;
}

.custom-mini-cart-wrapper .cart-backdrop {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(45, 22, 30, 0.5);
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.4s ease, visibility 0.4s ease;
	cursor: pointer;
	z-index: 999999;
}

.custom-mini-cart-wrapper.active .cart-backdrop {
	opacity: 1;
	visibility: visible;
}

.custom-mini-cart-wrapper .mini-cart {
	position: fixed;
	top: 0;
	right: 0;
	width: 100%;
	max-width: 460px;
	height: 100%;
	min-height: 100%;
	background-color: #ffffff;
	box-shadow: 0 4px 24px rgba(45, 22, 30, 0.06);
	transform: translateX(100%);
	transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
	z-index: 1000000;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	will-change: transform;
}

.custom-mini-cart-wrapper.active .mini-cart {
	transform: translateX(0);
}

.custom-mini-cart-wrapper .cart-header {
	padding: 24px;
	border-bottom: 1px solid rgba(45, 22, 30, 0.08);
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	background-color: #ffffff;
	flex-shrink: 0;
}

.custom-mini-cart-wrapper .cart-header-content {
	flex: 1;
}

.custom-mini-cart-wrapper .cart-eyebrow {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	gap: 12px;
	margin-bottom: 12px;
}

.custom-mini-cart-wrapper .eyebrow-line {
	width: 32px;
	height: 1px;
	background-color: #4c0f2e;
	flex-shrink: 0;
}

.custom-mini-cart-wrapper .eyebrow-text {
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: #4c0f2e;
}

.custom-mini-cart-wrapper .cart-title {
	font-family: 'Cormorant Garamond', serif;
	font-size: 2rem;
	font-weight: 600;
	color: #2d161e;
	line-height: 1.2;
	margin: 0;
}

.custom-mini-cart-wrapper .cart-title-italic {
	font-style: italic;
	font-weight: 500;
}

.custom-mini-cart-wrapper .cart-close {
	background: transparent;
	border: none;
	cursor: pointer;
	padding: 0.5rem;
	color: #2d161e;
	transition: all 0.3s ease;
	margin-left: 16px;
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: none !important;
}

.custom-mini-cart-wrapper .cart-close:hover {
	background-color: #ebe2db;
	color: #4c0f2e;
	transform: rotate(90deg);
}

.custom-mini-cart-wrapper .custom-mini-cart-content {
	flex: 1;
	display: flex;
	flex-direction: column;
	min-height: 0;
	overflow: hidden;
}

.custom-mini-cart-wrapper .widget_shopping_cart_content {
	display: flex;
	flex-direction: column;
	flex: 1;
	min-height: 0;
	overflow: hidden;
}

.custom-mini-cart-wrapper .cart-body {
	flex: 1;
	overflow-y: auto;
	padding: 20px 24px;
	background-color: #ffffff;
	scroll-behavior: smooth;
}

.custom-mini-cart-wrapper .cart-body::-webkit-scrollbar {
	width: 6px;
}

.custom-mini-cart-wrapper .cart-body::-webkit-scrollbar-thumb {
	background-color: rgba(45, 22, 30, 0.15);
}

.custom-mini-cart-wrapper .cart-items,
.custom-mini-cart-wrapper ul.woocommerce-mini-cart {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.custom-mini-cart-wrapper .cart-items li::before,
.custom-mini-cart-wrapper .cart-items li::after {
	display: none !important;
}

.custom-mini-cart-wrapper .cart-item,
.custom-mini-cart-wrapper li.woocommerce-mini-cart-item {
	display: flex;
	gap: 16px;
	position: relative;
	padding: 20px !important;
	margin: 0;
	background-color: #ebe2db;
	border: none !important;
	transition: all 0.3s ease;
}



.custom-mini-cart-wrapper .cart-item-image {
	width: 100px;
	height: 100px;
	overflow: hidden;
	flex-shrink: 0;
	position: relative;
}

.custom-mini-cart-wrapper .cart-item-image img {
	width: 100% !important;
	height: 100% !important;
	object-fit: cover !important;
	display: block;
	margin: 0px !important;
	border: none;
	border-radius: 0;
}

.custom-mini-cart-wrapper .cart-item-details {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	min-width: 0;
}


.custom-mini-cart-wrapper .cart-item-name a {
	text-decoration: none;
	font-family: 'Cormorant Garamond', serif;
	font-size: 1.125rem;
	font-weight: 600 !important;
	color: #2d161e;
	line-height: 1.3;
	margin: 0 36px 0 0;
}

.custom-mini-cart-wrapper .cart-item-name a:hover {
	color: #4c0f2e;
}

.custom-mini-cart-wrapper .cart-item-meta {
	font-size: 12px;
	line-height: 1;
	color: #2d161e;
	opacity: 0.7;
	margin: 0;
	border: none;
	padding: 0;
	display: flex;
	gap: 6px;
	flex-wrap: wrap;
}


.custom-mini-cart-wrapper .cart-item-meta .meta-item {
	display: flex;
	gap: 4px;
}

.custom-mini-cart-wrapper .cart-item-meta .meta-item .meta-label {
	font-weight: 700;
}

.custom-mini-cart-wrapper .cart-item-footer {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
}

.custom-mini-cart-wrapper .cart-item-price,
.custom-mini-cart-wrapper .cart-item-price .amount {
	font-size: 18px;
	font-weight: 600;
	color: #4c0f2e;
}

.custom-mini-cart-wrapper .quantity-selector {
	display: flex;
	align-items: center;
	gap: 8px;
	background-color: #ffffff;
	border: 1px solid rgba(45, 22, 30, 0.12);
	padding: 5px;
}

.custom-mini-cart-wrapper .qty-btn {
	background: transparent;
	border: none;
	cursor: pointer;
	padding: 4px;
	color: #2d161e;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.2s ease;
	line-height: 1;
	box-shadow: none;
}

.custom-mini-cart-wrapper .qty-btn:hover {
	background-color: #ebe2db;
	color: #4c0f2e;
}

.custom-mini-cart-wrapper .qty-btn:active {
	transform: scale(0.95);
}

.custom-mini-cart-wrapper .qty-btn:disabled {
	opacity: 0.4;
	cursor: not-allowed;
}

.custom-mini-cart-wrapper .qty-input {
	width: 36px;
	height: 20px;
	text-align: center;
	border: none;
	background: transparent;
	font-size: 14px;
	font-weight: 500;
	color: #2d161e;
	outline: none;
	padding: 0;
	box-shadow: none;
}

.custom-mini-cart-wrapper .cart-item-remove,
.custom-mini-cart-wrapper a.remove.remove_from_cart_button {
	position: absolute;
	top: 10px;
	right: 10px;
	background: #ffffff;
	border: none;
	cursor: pointer;
	padding: 0.5rem;
	color: #2d161e;
	transition: all 0.3s ease;
	opacity: 0.6;
	width: auto;
	height: auto;
	line-height: 1;
	font-size: inherit;
	text-decoration: none;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 0px;
}

.custom-mini-cart-wrapper .cart-item-remove::before {
	border: none !important;
}

.custom-mini-cart-wrapper .cart-item-remove:hover,
.custom-mini-cart-wrapper a.remove.remove_from_cart_button:hover {
	background-color: #4c0f2e;
	color: #ffffff;
	opacity: 1;
	/* transform: scale(1.05); */
}

.custom-mini-cart-wrapper .cart-footer {
	padding: 24px;
	border-top: 1px solid rgba(45, 22, 30, 0.08);
	background-color: #ffffff;
	box-shadow: 0 4px 24px rgba(45, 22, 30, 0.06);
	flex-shrink: 0;
}

.custom-mini-cart-wrapper .cart-subtotal,
.custom-mini-cart-wrapper .cart-shipping-amount,
.custom-mini-cart-wrapper .cart-discount {
	display: flex;
	justify-content: space-between;
	align-items: center;
	background: transparent;
	gap: 16px;
}


.custom-mini-cart-wrapper .woocommerce-mini-cart__total strong,
.custom-mini-cart-wrapper .subtotal-label {
	font-size: 16px;
	font-weight: 500;
	color: #2d161e;
	text-transform: none;
	letter-spacing: normal;
}

.custom-mini-cart-wrapper .woocommerce-mini-cart__total .amount,
.custom-mini-cart-wrapper .subtotal-amount,
.custom-mini-cart-wrapper .subtotal-amount .amount {
	font-family: 'Cormorant Garamond', serif;
	font-size: 1.5rem;
	font-weight: 600;
	color: #4c0f2e;
}

.custom-mini-cart-wrapper .cart-note {
	font-size: 14px;
	color: #2d161e;
	opacity: 0.6;
	margin: 0 0 20px;
	text-align: center;
}

.custom-mini-cart-wrapper .cart-actions {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 0;
	margin: 0;
	background: transparent;
}

.custom-mini-cart-wrapper .cart-btn {
	width: 100%;
	padding: 16px 32px !important;
	font-size: 16px !important;
	font-weight: 500 !important;
	transition: all 0.3s ease;
	display: flex !important;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	text-decoration: none !important;
	line-height: 1.2 !important;
	box-shadow: none !important;
	margin: 0 !important;
}

.custom-mini-cart-wrapper .cart-btn-primary {
	color: #ffffff !important;
	border: none;
}

.custom-mini-cart-wrapper .cart-btn-primary svg {
	transition: transform 0.3s ease;
}

.custom-mini-cart-wrapper .cart-btn-primary:hover svg {
	transform: translateX(4px);
}

.custom-mini-cart-wrapper .cart-btn-secondary {
	background-color: transparent;
	color: #2d161e;
	border: 1.5px solid #2d161e;
}

/* .custom-mini-cart-wrapper .cart-btn-secondary:hover {
	background-color: #ebe2db;
	border-color: #4c0f2e;
	color: #4c0f2e;
} */

.custom-mini-cart-wrapper .cart-empty {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 3rem 2rem;
	text-align: center;
}

.custom-mini-cart-wrapper .empty-icon {
	font-size: 4rem;
	color: #4c0f2e;
	margin-bottom: 1.5rem;
	opacity: 0.3;
	line-height: 1;
}

.custom-mini-cart-wrapper .empty-title {
	font-family: 'Cormorant Garamond', serif;
	font-size: 1.75rem;
	font-weight: 600;
	color: #2d161e;
	margin: 0 0 12px;
}

.custom-mini-cart-wrapper .empty-title span {
	font-style: italic;
	font-weight: 500;
}

.custom-mini-cart-wrapper .empty-description {
	font-size: 16px;
	color: #2d161e;
	opacity: 0.7;
	margin: 0 0 2rem;
	max-width: 280px;
	line-height: 1.6;
}

.custom-mini-cart-wrapper .empty-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	background-color: #4c0f2e;
	color: #ffffff;
	border: none;
	padding: 16px 32px;
	font-size: 16px;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.3s ease;
	text-decoration: none;
}

.custom-mini-cart-wrapper .empty-btn:hover svg {
	transform: translateX(4px);
}

.custom-mini-cart-wrapper .empty-btn svg {
	transition: transform 0.3s ease;
}

/* Header cart count badge */
.custom-mini-cart-count-badge {
	position: absolute;
	top: -8px;
	right: -8px;
	background-color: #4C0F2E;
	color: #fff;
	font-size: 12px;
	font-weight: 600;
	min-width: 22px;
	height: 22px;
	/* border-radius: 50%; */
	display: flex;
	align-items: center;
	justify-content: center;
	border: 2px solid #fff;
	line-height: 1;
	padding: 0 4px;
}

.mini-cart-item-counter-wrap .mini-cart-item-counter p {
	margin-block-end: 0px;
	line-height: 0;
	color: #ffffff;
	font-size: 12px;
	font-weight: 700;
	text-align: center;
	align-items: center;
}

/* Centered loader overlay for the entire mini-cart drawer */
.custom-mini-cart-wrapper .cm-mini-cart-loader {
	position: absolute;
	inset: 0;
	z-index: 20;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(255, 255, 255, 0.72);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.2s ease, visibility 0.2s ease;
	pointer-events: none;
}

.custom-mini-cart-wrapper .mini-cart.cm-is-loading .cm-mini-cart-loader {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

.custom-mini-cart-wrapper .cm-mini-cart-loader-spinner,
.cm-cart-page-loader-msg .cm-mini-cart-loader-spinner {
	width: 40px;
	height: 40px;
	border: 3px solid rgba(76, 15, 46, 0.15);
	border-top-color: #4C0F2E;
	border-radius: 50%;
	animation: cm-cart-spin 0.7s linear infinite;
}

@keyframes cm-cart-spin {
	to {
		transform: rotate(360deg);
	}
}

/* ── Native WooCommerce .coupon (mini-cart footer + cart sidebar) ── */
.custom-mini-cart-wrapper .cm-mini-cart-coupon-fragment,
.custom-cart-sidebar>.cm-cart-coupon-fragment {
	margin: 0px auto 16px;
	max-width: 500px;
}

.custom-mini-cart-wrapper .coupon,
.custom-cart-sidebar .coupon {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	align-items: stretch;
}

.custom-mini-cart-wrapper .coupon input.input-text,
.custom-cart-sidebar .coupon input.input-text {
	flex: 1;
	min-width: 8rem;
	padding: 10px 12px;
	font-size: 14px;
	border: 1px solid rgba(45, 22, 30, 0.15);
	background: #FFFFFF;
	border-radius: 0px;
}

.custom-mini-cart-wrapper .coupon input.input-text:focus,
.custom-cart-sidebar .coupon input.input-text:focus {
	outline: none;
	border-color: #4C0F2E;
}

.custom-mini-cart-wrapper .coupon input.input-text.has-error,
.custom-cart-sidebar .coupon input.input-text.has-error {
	border-color: #b32d2e;
}

.custom-mini-cart-wrapper .coupon .button,
.custom-cart-sidebar .coupon .button {
	flex-shrink: 0;
	padding: 10px 16px;
	font-size: 14px;
	font-weight: 500;
	background-color: #2D161E;
	color: #FFFFFF;
	border: none;
	cursor: pointer;
	transition: background-color 0.2s ease;
}

.custom-mini-cart-wrapper .coupon .button:hover,
.custom-cart-sidebar .coupon .button:hover {
	background-color: #4C0F2E;
	color: #FFFFFF;
}

.custom-mini-cart-wrapper .coupon .coupon-error-notice,
.custom-cart-sidebar .coupon .coupon-error-notice {
	flex: 0 0 100%;
	margin: 0px;
	font-size: 13px;
	color: #b32d2e;
}

/* ── Custom Mini-Cart Subtotal, Shipping, Coupon & Totals Styling ── */
.custom-mini-cart-wrapper .cart-total-amount {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin: 0 0 20px;
	background: transparent;
}

.custom-mini-cart-wrapper .shipping-label,
.custom-mini-cart-wrapper .discount-label,
.custom-mini-cart-wrapper .total-label {
	font-size: 16px;
	font-weight: 500;
	color: #2d161e;
}

.custom-mini-cart-wrapper .shipping-value,
.custom-mini-cart-wrapper .shipping-value .amount,
.custom-mini-cart-wrapper .total-amount-val,
.custom-mini-cart-wrapper .total-amount-val .amount {
	font-family: 'Cormorant Garamond', serif;
	font-size: 24px;
	line-height: 30px;
	font-weight: 600;
	color: #4c0f2e;
}

.custom-mini-cart-wrapper .cart-discount .discount-label {
	color: #16a34a;
}

.custom-mini-cart-wrapper .cart-discount .discount-amount,
.custom-mini-cart-wrapper .cart-discount .discount-amount .amount {
	color: #16a34a;
	font-family: 'Cormorant Garamond', serif;
	font-size: 1.5rem;
	font-weight: 600;
}

.custom-mini-cart-wrapper .cart-discount a.woocommerce-remove-coupon {
	margin-left: 8px;
	color: #ef4444;
	font-size: 12px;
	text-decoration: none;
	font-family: 'Manrope', sans-serif;
	font-weight: 500;
	border: 1px solid #ef4444;
	padding: 2px 6px;
	transition: all 0.2s ease;
	display: inline-block;
}

.custom-mini-cart-wrapper .cart-discount a.woocommerce-remove-coupon:hover {
	background-color: #ef4444;
	color: #ffffff;
}

/* Never show per-product blockUI inside theme cart UI */
.custom-mini-cart-wrapper .cart-item .blockUI,
.custom-mini-cart-wrapper .woocommerce-mini-cart-item .blockUI,
.custom-cart-container .custom-cart-card .blockUI {
	display: none !important;
}

@media (min-width: 768px) {
	.custom-mini-cart-wrapper .cart-item:hover {
		box-shadow: 0 4px 24px rgba(45, 22, 30, 0.06);
		transform: translateY(-2px);
	}
}

@media (max-width: 1023.98px) {

	.custom-mini-cart-wrapper .cart-btn,
	.custom-mini-cart-wrapper .empty-btn {
		padding: 14px 28px !important;
	}

	.custom-mini-cart-wrapper .cart-header {
		padding: 22px;
	}

	.custom-mini-cart-wrapper .cart-footer {
		padding: 22px;
	}
}

@media (max-width: 767.98px) {
	.custom-mini-cart-wrapper .mini-cart {
		max-width: 420px;
	}

	.custom-mini-cart-wrapper .cart-title {
		font-size: 1.75rem;
	}

	.custom-mini-cart-wrapper .cart-item-image {
		width: 90px;
		height: 90px;
	}

	.custom-mini-cart-wrapper .cart-item-image {
		width: 90px;
		height: 90px;
	}

	.custom-mini-cart-wrapper .cart-btn,
	.custom-mini-cart-wrapper .empty-btn {
		padding: 12px 24px !important;
	}
}

@media (max-width: 479.98px) {
	.custom-mini-cart-wrapper .mini-cart {
		max-width: 100%;
	}

	.custom-mini-cart-wrapper .cart-header {
		padding: 20px;
	}

	.custom-mini-cart-wrapper .cart-title {
		font-size: 1.5rem;
	}

	.custom-mini-cart-wrapper .cart-body {
		padding: 20px;
	}

	.custom-mini-cart-wrapper .cart-item {
		padding: 16px;
		gap: 12px;
	}

	.custom-mini-cart-wrapper .cart-item-image {
		width: 70px;
		height: 70px;
	}

	.custom-mini-cart-wrapper .cart-item-name {
		font-size: 16px;
	}

	.custom-mini-cart-wrapper .cart-footer {
		padding: 20px;
	}

	.custom-mini-cart-wrapper .cart-item-image img {
		width: 60px;
	}

	.custom-mini-cart-wrapper .cart-item,
	.custom-mini-cart-wrapper li.woocommerce-mini-cart-item {
		padding: 16px !important;
	}
}