/* Theme Toggle */
.aigenix-theme-toggle-wrapper {
	display: inline-flex;
	align-items: center;
}

.aigenix-hb-element.aigenix-hb-element--darkmode {
	display: flex;
}

.aigenix-theme-toggle-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: transparent;
	border: none;
	cursor: pointer;
	padding: 0;
	color: var(--hb-row-text-color, var(--av-text-primary, #0f172a));
	transition: color 0.3s ease;
}

.aigenix-theme-toggle-btn:hover {
	color: var(--av-color-brand, #2563eb);
}

.aigenix-theme-toggle__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--av-text-primary, #0f172a);
}

/* Icon Only */
.aigenix-theme-toggle-btn--icon .aigenix-theme-toggle__icon--moon,
.aigenix-theme-toggle-btn--icon .aigenix-theme-toggle__icon--system {
	display: none;
}

html[data-theme-choice="dark"] .aigenix-theme-toggle-btn--icon .aigenix-theme-toggle__icon--sun {
	display: none;
}

html[data-theme-choice="dark"] .aigenix-theme-toggle-btn--icon .aigenix-theme-toggle__icon--moon {
	display: flex;
}

html[data-theme-choice="system"] .aigenix-theme-toggle-btn--icon .aigenix-theme-toggle__icon--sun {
	display: none;
}

html[data-theme-choice="system"] .aigenix-theme-toggle-btn--icon .aigenix-theme-toggle__icon--system {
	display: flex;
}

/* Switch Style */
.aigenix-theme-toggle-btn--switch {
	width: 48px;
	height: 26px;
	background: #cbd5e1;
	border-radius: 99px;
	position: relative;
	transition: all 0.3s ease;
}

html[data-theme="dark"] .aigenix-theme-toggle-btn--switch {
	background: #334155;
}

.aigenix-theme-toggle-btn--switch .aigenix-theme-toggle-handle {
	position: absolute;
	width: 22px;
	height: 22px;
	left: 2px;
	top: 2px;
	background: #fff;
	border-radius: 50%;
	transition: all 0.3s ease;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

html[data-theme="dark"] .aigenix-theme-toggle-btn--switch .aigenix-theme-toggle-handle {
	transform: translateX(22px);
	background: #0f172a;
}

.aigenix-theme-toggle-btn--switch .aigenix-theme-toggle__icon {
	width: 14px;
	height: 14px;
}

.aigenix-theme-toggle-btn--switch .aigenix-theme-toggle__icon svg {
	width: 12px;
	height: 12px;
}

.aigenix-theme-toggle-btn--switch .aigenix-theme-toggle__icon--moon {
	display: none;
}

html[data-theme="dark"] .aigenix-theme-toggle-btn--switch .aigenix-theme-toggle__icon--sun {
	display: none;
}

html[data-theme="dark"] .aigenix-theme-toggle-btn--switch .aigenix-theme-toggle__icon--moon {
	display: flex;
	color: #fff;
}

/* Mini Cart */
.aigenix-cart-container {
	position: relative;
	display: inline-flex;
}

.aigenix-cart-icon-wrap {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: var(--av-text-primary, #0f172a);
	text-decoration: none;
	transition: color 0.3s ease;
}

.aigenix-cart-icon-wrap:hover {
	color: var(--av-color-brand, #2563eb);
}

.aigenix-cart-icon {
	display: flex;
}

.aigenix-cart-badge {
	position: absolute;
	top: -6px;
	right: -8px;
	background: var(--av-color-brand, #2563eb);
	color: #fff;
	font-size: 10px;
	font-weight: 700;
	min-width: 18px;
	height: 18px;
	border-radius: 99px;
	display: flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
	box-shadow: 0 0 0 2px var(--av-bg-elevated, #fff);
}

html[data-theme="dark"] .aigenix-cart-badge {
	box-shadow: 0 0 0 2px var(--av-bg-elevated, #0f172a);
}

.aigenix-cart-dropdown {
	position: absolute;
	top: 100%;
	right: 0;
	width: 320px;
	background: var(--av-bg-surface-strong, #ffffff);
	border: 1px solid var(--av-border-medium, #e2e8f0);
	box-shadow: var(--av-shadow-md);
	border-radius: var(--av-radius-lg);
	opacity: 0;
	visibility: hidden;
	transform: translateY(10px);
	transition: all 0.3s ease;
	z-index: 99999;
	margin-top: 15px;
	padding: 20px;
}

.aigenix-cart-dropdown::before {
	content: '';
	position: absolute;
	top: -15px;
	left: 0;
	right: 0;
	height: 15px;
}

.aigenix-cart-container:hover .aigenix-cart-dropdown {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

/* Dark Mode Cart Dropdown */
html[data-theme="dark"] .aigenix-cart-dropdown {
	background: var(--av-bg-surface-strong, #0b1020);
	border-color: var(--av-border-medium, #334155);
}

/* Social Icons */
.aigenix-social-icons {
	display: flex;
	align-items: center;
	gap: 12px;
}

.aigenix-social-icons a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: inherit;
	transition: transform 0.3s ease, opacity 0.3s ease, color 0.3s ease;
	text-decoration: none;
}

.aigenix-social-icons a:hover {
	opacity: 0.7;
	transform: translateY(-2px);
}

.aigenix-social-icons svg {
	display: block;
}

/* Text Widget Color Sync */
.aigenix-hb-text-widget,
.aigenix-hb-text-widget p,
.aigenix-hb-text-widget span,
.aigenix-hb-text-widget a,
.aigenix-hb-text-widget h1,
.aigenix-hb-text-widget h2,
.aigenix-hb-text-widget h3,
.aigenix-hb-text-widget h4,
.aigenix-hb-text-widget h5,
.aigenix-hb-text-widget h6,
.aigenix-hb-render-row .aigenix-auth-link-trigger,
.aigenix-hb-render-row .aigenix-auth-header-btn:not(.av-btn) {
	color: var(--hb-row-text-color, inherit);
}