/* ===================== Off-canvas base ===================== */

.azg-offcanvas-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.45);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1);
	z-index: 99998;
}

.azg-offcanvas-overlay.is-open {
	opacity: 1;
	visibility: visible;
}

.azg-offcanvas-panel {
	position: fixed;
	top: 0;
	left: 0;
	height: 100vh;
	width: 380px;
	max-width: 90vw;
	background: #ffffff;
	transform: translateX(-100%);
	transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
	z-index: 99999;
	display: flex;
	flex-direction: column;
	box-shadow: 10px 0 40px rgba(0, 0, 0, 0.12);
	direction: rtl;
}

.azg-offcanvas-panel.is-open {
	transform: translateX(0);
}

.azg-panel-inner {
	display: flex;
	flex-direction: column;
	height: 100%;
}

/* ===================== Header ===================== */

.azg-panel-header {
	position: relative;
	padding: 24px 24px 16px;
	border-bottom: 1px solid #f0f0f0;
}

.azg-panel-header h3 {
	margin: 0;
	font-size: 18px;
	display: flex;
	align-items: center;
	gap: 8px;
}

.azg-panel-count { color: #e53935; }

.azg-panel-subtitle {
	margin: 6px 0 0;
	font-size: 13px;
	color: #999;
}

.azg-panel-close {
	position: absolute;
	left: 20px;
	top: 20px;
	border: none;
	background: none;
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
	color: #999;
}

/* ===================== Body / items ===================== */

.azg-panel-body { flex: 1; overflow-y: auto; padding: 8px 0; }

.azg-empty-msg { padding: 40px 24px; text-align: center; color: #999; }

.azg-cart-item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 16px 24px;
	border-bottom: 1px solid #f3f3f3;
	position: relative;
}

.azg-item-remove { border: none; background: none; color: #bbb; cursor: pointer; flex-shrink: 0; padding: 4px; }
.azg-item-remove:hover { color: #e53935; }

.azg-item-image {
	flex-shrink: 0;
	width: 64px;
	height: 64px;
	border-radius: 10px;
	overflow: hidden;
	background: #f7f7f7;
}

.azg-item-image img { width: 100%; height: 100%; object-fit: cover; display: block; }

.azg-item-info { flex: 1; min-width: 0; }

.azg-item-title {
	font-size: 14px;
	color: #222;
	margin-bottom: 4px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.azg-item-sub { font-size: 12px; color: #999; margin-bottom: 4px; }
.azg-item-price { font-size: 13px; color: #e53935; font-weight: 600; }

.azg-item-qty {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-shrink: 0;
	border: 1px solid #eee;
	border-radius: 8px;
	padding: 2px 6px;
}

.azg-qty-minus, .azg-qty-plus { border: none; background: none; font-size: 16px; cursor: pointer; width: 22px; height: 22px; line-height: 1; }
.azg-qty-value { min-width: 18px; text-align: center; font-size: 13px; }

/* ===================== Footer / totals ===================== */

.azg-panel-footer { border-top: 1px solid #f0f0f0; padding: 16px 24px 24px; }

.azg-totals-row { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: #555; padding: 6px 0; }
.azg-shipping-free { color: #2ea043; }

.azg-total-final {
	font-size: 15px;
	color: #111;
	border-top: 1px dashed #eee;
	margin-top: 4px;
	padding-top: 12px;
}

.azg-coupon-form { display: flex; gap: 8px; margin: 14px 0; }
.azg-coupon-input { flex: 1; border: 1px solid #eee; border-radius: 8px; padding: 0 12px; height: 40px; font-size: 13px; }
.azg-coupon-apply { border: none; background: #f3f3f3; color: #333; border-radius: 8px; padding: 0 18px; cursor: pointer; font-size: 13px; }

.azg-btn {
	display: block;
	text-align: center;
	width: 100%;
	border-radius: 30px;
	padding: 13px 0;
	font-size: 14px;
	text-decoration: none;
	margin-top: 10px;
	cursor: pointer;
	border: 1px solid transparent;
}

.azg-btn-primary { background: #e53935; color: #fff; }
.azg-btn-outline { background: #fff; color: #e53935; border-color: #e53935; }
.azg-btn-small { width: auto; padding: 6px 16px; font-size: 12px; margin-top: 0; background: #f3f3f3; color: #333; flex-shrink: 0; }

/* ===================== Header icons ===================== */

.azg-header-icons { display: flex; align-items: center; gap: 28px; }

.azg-icon-btn {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	text-decoration: none;
	color: #444;
	font-size: 12px;
}

.azg-icon { position: relative; width: 22px; height: 22px; display: flex; align-items: center; justify-content: center; }
.azg-icon svg { width: 100%; height: 100%; }

.azg-badge {
	position: absolute;
	top: -8px;
	left: -10px;
	background: #e53935;
	color: #fff;
	font-size: 10px;
	min-width: 16px;
	height: 16px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0 3px;
}

/* ===================== Login form (reuses WooCommerce form classes) ===================== */

.azg-login-body .form-row { margin-bottom: 14px; }
.azg-login-body label { display: block; font-size: 13px; margin-bottom: 6px; color: #555; }

.azg-login-body input.input-text {
	width: 100%;
	height: 44px;
	border: 1px solid #eee;
	border-radius: 8px;
	padding: 0 14px;
	box-sizing: border-box;
	font-size: 14px;
}

.azg-login-divider { margin: 24px 0; border: none; border-top: 1px solid #f0f0f0; }
.azg-login-notices { margin-bottom: 10px; }

.azg-login-notices .azg-notice-error {
	background: #fdecea;
	color: #c0392b;
	border-radius: 8px;
	padding: 10px 14px;
	font-size: 13px;
	margin-bottom: 10px;
}

/* ===================== Account menu ===================== */

.azg-account-menu { list-style: none; margin: 0; padding: 8px 0; }

.azg-account-menu li a {
	display: block;
	padding: 14px 24px;
	color: #333;
	text-decoration: none;
	font-size: 14px;
	border-bottom: 1px solid #f5f5f5;
}

.azg-account-menu li a:hover { background: #f9f9f9; color: #e53935; }