/* ===== Header Icons ===== */
.hie-widget { position: relative; }

.hie-header-icons {
	display: flex;
	align-items: center;
	gap: 18px;
}

.hie-icon-btn {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: none;
	border: none;
	padding: 0;
	cursor: pointer;
	text-decoration: none;
	line-height: 1;
}

/* The box every icon sits inside — background, radius and size all come from
   one set of Elementor Style controls, so Search / Account / Wishlist / Cart
   are guaranteed to look identical. */
.hie-icon-box {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	border-radius: 10px;
	background-color: #ED1C24;
	transition: background-color .2s ease, transform .15s ease;
}

.hie-icon-btn:hover .hie-icon-box {
	transform: translateY(-1px);
}

.hie-icon-box i,
.hie-icon-box svg {
	font-size: 18px;
	width: 18px;
	height: 18px;
	color: #141414;
	transition: color .2s ease;
}

/* "Plain" style: no background box, just the bare icon (still same size/position
   as the boxed version so switching the toggle doesn't reflow the layout). */
.hie-style-plain .hie-icon-box {
	background-color: transparent !important;
	width: auto;
	height: auto;
}

.hie-icon-badge {
	position: absolute;
	top: -6px;
	right: -6px;
	min-width: 18px;
	height: 18px;
	padding: 0 4px;
	border-radius: 50%;
	background: #ED1C24;
	color: #fff;
	font-size: 11px;
	font-weight: 600;
	line-height: 18px;
	text-align: center;
	font-family: Arial, sans-serif;
	box-shadow: 0 0 0 2px #fff;
}

/* ===== Full-screen search overlay ===== */
.hie-search-overlay {
	position: fixed;
	inset: 0;
	background: rgba(255, 255, 255, 0.98);
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	visibility: hidden;
	transform: translateY(-12px);
	transition: opacity .25s ease, transform .25s ease, visibility .25s;
	z-index: 100000;
}

.hie-search-overlay.hie-active {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.hie-search-form {
	width: 100%;
	max-width: 700px;
	padding: 0 24px;
	display: flex;
	align-items: center;
	border-bottom: 2px solid #222;
}

.hie-search-input {
	flex: 1;
	border: none;
	outline: none;
	background: transparent;
	font-size: clamp(22px, 4vw, 40px);
	padding: 16px 0;
	color: #111;
}

.hie-search-submit {
	background: none;
	border: none;
	cursor: pointer;
	font-size: 24px;
	color: #ED1C24;
	padding: 8px;
}

.hie-overlay-close {
	position: absolute;
	top: 28px;
	right: 32px;
	background: none;
	border: none;
	font-size: 34px;
	line-height: 1;
	color: #222;
	cursor: pointer;
}

/* ===== Cart sidebar ===== */
.hie-cart-sidebar {
	position: fixed;
	top: 0;
	bottom: 0;
	width: 380px;
	max-width: 92vw;
	background: #fff;
	box-shadow: 0 0 24px rgba(0, 0, 0, 0.15);
	z-index: 100001;
	display: flex;
	flex-direction: column;
	transition: transform .3s ease;
}

.hie-cart-side-right { right: 0; transform: translateX(100%); }
.hie-cart-side-left  { left: 0; transform: translateX(-100%); }

.hie-cart-sidebar.hie-active { transform: translateX(0); }

.hie-cart-sidebar-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 18px 22px;
	border-bottom: 1px solid #eee;
}

.hie-cart-sidebar-header h3 {
	margin: 0;
	font-size: 18px;
}

.hie-cart-sidebar-header .hie-overlay-close {
	position: static;
	font-size: 26px;
}

.hie-cart-sidebar-body {
	flex: 1;
	overflow-y: auto;
	padding: 18px 22px;
}

.hie-cart-sidebar-body .woocommerce-mini-cart {
	list-style: none;
	margin: 0;
	padding: 0;
}

.hie-cart-sidebar-body .woocommerce-mini-cart-item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 0;
	border-bottom: 1px solid #f1f1f1;
	position: relative;
}

.hie-cart-sidebar-body .woocommerce-mini-cart-item img {
	width: 56px;
	height: 56px;
	object-fit: cover;
	border-radius: 4px;
}

.hie-cart-sidebar-body .total {
	margin-top: 16px;
	padding-top: 16px;
	border-top: 1px solid #eee;
	font-weight: 600;
}

.hie-cart-sidebar-body .woocommerce-mini-cart__buttons a {
	display: block;
	text-align: center;
	padding: 12px;
	margin-top: 8px;
	border-radius: 4px;
	text-decoration: none;
	background: #ED1C24;
	color: #fff;
	font-weight: 600;
}

.hie-cart-sidebar-body .woocommerce-mini-cart__buttons a.wc-forward:first-child {
	background: #222;
}

.hie-cart-empty-notice {
	color: #777;
}

/* ===== Backdrop ===== */
.hie-overlay-backdrop {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.45);
	opacity: 0;
	visibility: hidden;
	transition: opacity .25s ease, visibility .25s;
	z-index: 99999;
}

.hie-overlay-backdrop.hie-active {
	opacity: 1;
	visibility: visible;
}

body.hie-lock-scroll {
	overflow: hidden;
}

@media (max-width: 480px) {
	.hie-search-overlay .hie-search-input { font-size: 22px; }
	.hie-cart-sidebar { width: 100%; max-width: 100vw; }
}
