body.has-mobile-cart-drawer {
	padding-bottom: 84px;
}

.woocommerce ul.products.elementor-grid li.product,
.woocommerce-page ul.products.elementor-grid li.product {
	display: flex;
	flex-direction: column;
	height: 100%;
	align-items: stretch;
}

.woocommerce ul.products.elementor-grid li.product > .woocommerce-LoopProduct-link,
.woocommerce-page ul.products.elementor-grid li.product > .woocommerce-LoopProduct-link {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	flex: 1 1 auto;
}

.woocommerce ul.products.elementor-grid li.product .woocommerce-loop-product__title,
.woocommerce-page ul.products.elementor-grid li.product .woocommerce-loop-product__title {
	min-height: 3.5rem;
	display: block;
	text-align: center;
	margin: 0 auto;
	padding: 0 1rem;
}

.woocommerce ul.products.elementor-grid li.product .price,
.woocommerce-page ul.products.elementor-grid li.product .price {
	margin-top: auto;
}

.woocommerce ul.products.elementor-grid li.product > .add_to_cart_button,
.woocommerce-page ul.products.elementor-grid li.product > .add_to_cart_button {
	margin-top: auto;
	padding-top: 0.75rem;
	width: 100%;
}

.woocommerce ul.products.elementor-grid li.product > .xoo-qv-button,
.woocommerce-page ul.products.elementor-grid li.product > .xoo-qv-button {
	margin-top: 0.5rem;
	width: 100%;
}

.mobile-cart-drawer {
	display: none;
}

.mobile-cart-drawer .mobile-cart-toggle,
.mobile-cart-drawer .mobile-cart-actions .button {
    background-color: #0060AA;
    color: #f6f6f6;
}

.mobile-cart-drawer .mobile-cart-toggle:hover,
.mobile-cart-drawer .mobile-cart-toggle:focus,
.mobile-cart-drawer .mobile-cart-actions .button:hover,
.mobile-cart-drawer .mobile-cart-actions .button:focus {
    background-color: var(--e-global-color-primary);
    color: #111;
}

.mobile-cart-drawer[data-cart-empty="true"] {
	display: none !important;
}

@media (max-width: 767px) {
	.mobile-cart-drawer {
		display: block;
		position: fixed;
		left: 1rem;
		right: 1rem;
		bottom: 1rem;
		z-index: 999;
		background: #ffffff;
		border-radius: 16px;
		box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
		overflow: hidden;
	}

	body.has-mobile-cart-drawer {
		padding-bottom: 120px;
	}

	.mobile-cart-toggle {
		width: 100%;
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 0.75rem;
		padding: 1rem 1.25rem;
		background: transparent;
		border: none;
		font-size: 1rem;
		font-weight: 600;
		cursor: pointer;
	}

	.mobile-cart-toggle:focus-visible {
		outline: 2px solid #000;
		outline-offset: 4px;
	}

	.mobile-cart-summary {
		margin-left: auto;
		display: flex;
		align-items: baseline;
		gap: 0.5rem;
		font-weight: 500;
	}

	.mobile-cart-chevron {
		width: 0;
		height: 0;
		border-left: 6px solid transparent;
		border-right: 6px solid transparent;
		border-top: 6px solid currentColor;
		transition: transform 0.3s ease;
	}

	.mobile-cart-drawer[data-cart-open="true"] .mobile-cart-chevron {
		transform: rotate(180deg);
	}

	.mobile-cart-panel {
		background: #fafafa;
		max-height: 0;
		overflow: hidden;
		transition: max-height 0.35s ease;
		border-top: 1px solid rgba(0, 0, 0, 0.08);
	}

	.mobile-cart-drawer[data-cart-open="true"] .mobile-cart-panel {
		max-height: 65vh;
	}

	.mobile-cart-items {
		list-style: none;
		margin: 0;
		padding: 0.75rem 1.25rem;
		display: flex;
		flex-direction: column;
		gap: 0.75rem;
	}

	.mobile-cart-item {
		display: flex;
		align-items: center;
		gap: 0.5rem;
	}

	.mobile-cart-item-name {
		font-weight: 500;
	}

	.mobile-cart-item-meta {
		color: #777;
		font-size: 0.9rem;
	}

	.mobile-cart-item-total {
		margin-left: auto;
		font-weight: 600;
	}

	.mobile-cart-empty {
		margin: 0;
		padding: 1rem 1.25rem;
		text-align: center;
		color: #555;
	}

	.mobile-cart-actions {
		display: flex;
		gap: 0.75rem;
		padding: 1rem 1.25rem 1.25rem;
	}

	.mobile-cart-actions .button {
		flex: 1;
		text-align: center;
		padding: 0.75rem 1rem;
		border-radius: 999px;
		font-weight: 600;
		border: none;
	}

	.mobile-cart-actions .mobile-cart-view {
		background: #ffffff;
		color: #111;
		border: 1px solid rgba(0, 0, 0, 0.15);
	}

	.mobile-cart-actions .mobile-cart-checkout {
		background: #111;
		color: #fff;
	}

	/* Hide WooCommerce/Elementor sidebar on mobile */
    .elementor-widget-sidebar {
		display: none !important;
	}

	#primary,
    .content-area,
	.site-main {
		width: 100%;
	}
}

