/* El Araby Custom — floating cart button + slide-out drawer */

.elaraby-cart-button {
	position: fixed;
	right: 24px;
	bottom: 24px;
	z-index: 100000;
	width: 58px;
	height: 58px;
	padding: 0;
	border: none;
	border-radius: 50%;
	background: #0f121c;
	color: #ffffff;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 6px 20px rgba(15, 18, 28, 0.35);
	transition: transform 0.2s ease, background 0.2s ease;
}

.elaraby-cart-button:hover {
	background: #1f242e;
	transform: translateY(-2px);
}

.elaraby-cart-button svg {
	width: 26px;
	height: 26px;
	display: block;
}

.elaraby-cart-count {
	position: absolute;
	top: -5px;
	right: -5px;
	min-width: 22px;
	height: 22px;
	padding: 0 5px;
	border-radius: 11px;
	background: #fe6e48;
	color: #ffffff;
	font-size: 12px;
	font-weight: 700;
	line-height: 22px;
	text-align: center;
	box-sizing: border-box;
}

.elaraby-cart-count.is-empty {
	display: none;
}

@keyframes elaraby-pulse {
	0%   { transform: scale(1); }
	50%  { transform: scale(1.35); }
	100% { transform: scale(1); }
}

.elaraby-cart-button.elaraby-pulse .elaraby-cart-count {
	animation: elaraby-pulse 0.45s ease;
}

/* Overlay */

.elaraby-cart-overlay {
	position: fixed;
	inset: 0;
	z-index: 100001;
	background: rgba(15, 18, 28, 0.55);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.25s ease, visibility 0.25s ease;
}

.elaraby-cart-overlay.is-visible {
	opacity: 1;
	visibility: visible;
}

/* Drawer */

.elaraby-cart-drawer {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	z-index: 100002;
	width: 380px;
	max-width: 92vw;
	background: #ffffff;
	display: flex;
	flex-direction: column;
	transform: translateX(105%);
	transition: transform 0.3s ease;
	box-shadow: -8px 0 30px rgba(15, 18, 28, 0.2);
}

.elaraby-cart-drawer.is-open {
	transform: translateX(0);
}

.elaraby-cart-drawer__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 18px 22px;
	background: #0f121c;
	color: #ffffff;
	flex: 0 0 auto;
}

.elaraby-cart-drawer__title {
	font-size: 17px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.elaraby-cart-drawer__close {
	border: none;
	background: transparent;
	color: #ffffff;
	font-size: 30px;
	line-height: 1;
	padding: 0 2px;
	cursor: pointer;
}

.elaraby-cart-drawer__close:hover {
	color: #fe6e48;
}

.elaraby-cart-drawer__body {
	flex: 1 1 auto;
	overflow-y: auto;
	padding: 20px 22px;
}

/* Mini-cart widget inside the drawer */

.elaraby-cart-drawer .woocommerce-mini-cart {
	list-style: none;
	margin: 0 0 16px;
	padding: 0;
}

.elaraby-cart-drawer .woocommerce-mini-cart-item {
	display: block;
	position: relative;
	padding: 12px 0 12px 0;
	border-bottom: 1px solid #ececee;
}

.elaraby-cart-drawer .woocommerce-mini-cart-item img {
	float: right;
	width: 56px;
	height: auto;
	margin-left: 10px;
	border-radius: 4px;
}

.elaraby-cart-drawer .woocommerce-mini-cart-item a.remove {
	float: left;
	margin-right: 8px;
	color: #fe6e48 !important;
}

.elaraby-cart-drawer .woocommerce-mini-cart__total {
	display: flex;
	justify-content: space-between;
	padding: 14px 0;
	margin: 0;
	font-weight: 700;
	border-bottom: 1px solid #ececee;
}

.elaraby-cart-drawer .woocommerce-mini-cart__buttons {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin: 16px 0 0;
}

.elaraby-cart-drawer .woocommerce-mini-cart__buttons .button {
	display: block;
	width: 100%;
	margin: 0;
	text-align: center;
}

.elaraby-cart-drawer .woocommerce-mini-cart__buttons .button.checkout {
	background: #fe6e48;
	color: #ffffff;
	order: -1;
}

.elaraby-cart-drawer .woocommerce-mini-cart__empty-message {
	text-align: center;
	padding: 40px 0;
	color: #919296;
}

/* Mobile */

@media (max-width: 480px) {
	.elaraby-cart-button {
		right: 16px;
		bottom: 16px;
		width: 52px;
		height: 52px;
	}

	.elaraby-cart-drawer {
		width: 100%;
		max-width: 100vw;
	}
}
