/**
 * Mini-cart — Lucide icons + 8px brand polish.
 * Elementor draws × with ::before/::after — those must be killed.
 */

.elementor-menu-cart__main {
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	box-shadow: 0 1px 2px rgba(2, 22, 79, 0.06);
	padding: 12px 14px !important;
	min-height: 0 !important;
	height: auto !important;
	overflow: visible !important;
}

.elementor-widget-woocommerce-menu-cart .elementor-menu-cart__main,
.elementor-widget-woocommerce-menu-cart .widget_shopping_cart_content {
	--product-divider-gap: 8px;
	--cart-close-icon-size: 16px;
	--remove-item-button-size: 32px;
}

/* No scrollbar for short carts; only scroll when many items */
.elementor-menu-cart__products {
	max-height: none !important;
	overflow: visible !important;
	flex: 0 0 auto !important;
}

/* Side cart / long list: scroll only past ~4 items */
.elementor-menu-cart__container .elementor-menu-cart__products:has(.elementor-menu-cart__product:nth-child(4)) {
	max-height: min(45vh, 320px) !important;
	overflow-x: hidden !important;
	overflow-y: auto !important;
}

/* Hide quantity "1 ×" */
.elementor-menu-cart__product-price .product-quantity {
	display: none !important;
}

.elementor-menu-cart__product-price {
	color: var(--e-global-color-primary, #02164f);
	font-weight: 600;
	font-size: 14px;
	margin: 0 !important;
	padding: 0 !important;
}

.elementor-menu-cart__subtotal {
	border-radius: 8px !important;
	border: 1px solid var(--e-global-color-primary, #02164f) !important;
	padding: 10px 12px !important;
	margin: 6px 0 10px !important;
	font-size: 15px;
	font-weight: 600;
	text-align: center;
	background: #fff;
}

.elementor-menu-cart__footer-buttons .elementor-button {
	border-radius: 8px !important;
	font-family: "iranyekanx", sans-serif !important;
	font-weight: 600;
}

/*
 * Product row: 3-column grid (image | text | remove).
 * Elementor default is 2-col + absolute remove — that caused an extra row + scroll.
 */
.elementor-menu-cart__product {
	display: grid !important;
	grid-template-columns: 72px minmax(0, 1fr) 32px !important;
	grid-template-rows: auto auto !important;
	column-gap: 10px !important;
	row-gap: 2px !important;
	align-items: center !important;
	padding: 8px 0 !important;
	padding-inline-end: 0 !important;
	position: relative !important;
}

.elementor-menu-cart__product-image {
	grid-column: 1;
	grid-row: 1 / -1;
	width: 72px !important;
	max-width: 72px !important;
	align-self: center;
}

.elementor-menu-cart__product-image,
.elementor-menu-cart__product-image a {
	border-radius: 8px;
	overflow: hidden;
	display: block;
}

.elementor-menu-cart__product-image img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 1;
	object-fit: cover;
	border-radius: 8px;
}

.elementor-menu-cart__product-name {
	grid-column: 2;
	grid-row: 1;
	min-width: 0;
	margin: 0 !important;
	padding: 0 !important;
}

.elementor-menu-cart__product-name a {
	color: var(--e-global-color-primary, #02164f);
	font-weight: 600;
	font-size: 14px;
	line-height: 1.45;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.elementor-menu-cart__product-price {
	grid-column: 2;
	grid-row: 2;
	align-self: start;
}

.elementor-menu-cart__product-remove {
	grid-column: 3;
	grid-row: 1 / -1;
	align-self: center;
	justify-self: end;
}

/* ——— Remove: kill Elementor CSS ×, show Lucide trash-2 ——— */
.elementor-menu-cart__product-remove:before,
.elementor-menu-cart__product-remove:after {
	display: none !important;
	content: none !important;
	width: 0 !important;
	height: 0 !important;
	background: none !important;
}

.elementor-menu-cart__product-remove {
	position: relative !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 32px !important;
	height: 32px !important;
	border-radius: 8px !important;
	border: 1px solid #e5e7eb !important;
	background: #f9fafb !important;
	overflow: visible !important;
	inset: auto !important;
	top: auto !important;
	bottom: auto !important;
	inset-inline-end: auto !important;
	flex-shrink: 0;
}

.elementor-menu-cart__product-remove:hover {
	border-color: var(--e-global-color-primary, #02164f) !important;
	background: #fff !important;
}

.elementor-menu-cart__product-remove > a {
	position: absolute !important;
	inset: 0 !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 100% !important;
	height: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 8px !important;
	background: transparent !important;
	color: #6b7280 !important;
	text-decoration: none !important;
	font-size: 0 !important;
	line-height: 0 !important;
	opacity: 1 !important;
}

.elementor-menu-cart__product-remove > a:hover,
.elementor-menu-cart__product-remove > a:focus {
	color: var(--e-global-color-primary, #02164f) !important;
}

.elementor-menu-cart__product-remove > a .jd-lucide {
	display: block;
	width: 16px;
	height: 16px;
	pointer-events: none;
}

.elementor-menu-cart__product-remove > a.remove_from_cart_button {
	display: none !important;
}

.elementor-menu-cart__product-remove > a.elementor_remove_from_cart_button {
	display: inline-flex !important;
}

/* ——— Close: small Lucide x ——— */
.elementor-menu-cart__close-button:before,
.elementor-menu-cart__close-button:after,
.elementor-menu-cart__close-button-custom:before,
.elementor-menu-cart__close-button-custom:after {
	display: none !important;
	content: none !important;
	width: 0 !important;
	height: 0 !important;
	background: none !important;
}

.elementor-menu-cart__close-button,
.elementor-menu-cart__close-button-custom {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 28px !important;
	height: 28px !important;
	min-width: 28px !important;
	margin: 0 0 8px !important;
	padding: 0 !important;
	border: none !important;
	border-radius: 8px !important;
	background: transparent !important;
	color: #6b7280 !important;
	font-size: 0 !important;
	line-height: 0 !important;
	cursor: pointer;
	align-self: flex-end;
	flex: 0 0 auto !important;
}

.elementor-menu-cart__close-button:hover,
.elementor-menu-cart__close-button:focus,
.elementor-menu-cart__close-button-custom:hover,
.elementor-menu-cart__close-button-custom:focus {
	color: var(--e-global-color-primary, #02164f) !important;
	background: #f9fafb !important;
}

.elementor-menu-cart__close-button .jd-lucide,
.elementor-menu-cart__close-button-custom .jd-lucide {
	display: block !important;
	width: 16px !important;
	height: 16px !important;
	stroke: currentColor !important;
	fill: none !important;
	pointer-events: none;
}

.elementor-menu-cart__close-button i,
.elementor-menu-cart__close-button-custom i,
.elementor-menu-cart__close-button .e-close-cart-custom-icon,
.elementor-menu-cart__close-button-custom .e-close-cart-custom-icon,
.elementor-menu-cart__close-button svg:not(.jd-lucide),
.elementor-menu-cart__close-button-custom svg:not(.jd-lucide) {
	display: none !important;
}
