/* ============================= */
/* HEADER – UNIVERSAL PREMIUM   */
/* ============================= */
.dr1053ecomheader {
	position: sticky;
	top: 0;
	z-index: 100;
	background: linear-gradient(180deg, #ffffff, #f8fafc);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
	border-bottom: 1px solid #e5e7eb;
}

/* ============================= */
/* HEADER TOP (BRAND + CART)    */
/* ============================= */
.dr1053ecomheader .header-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 14px 16px 6px;
	min-width: 0; /* 🔑 prevent overflow */
}

/* Brand */
.dr1053ecomheader .brand {
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
}

.dr1053ecomheader .brand-logo {
	height: 34px;
	width: auto;
	object-fit: contain;
	flex-shrink: 0;
}

.dr1053ecomheader .brand-title {
	font-size: 20px;
	font-weight: 800;
	letter-spacing: 0.4px;
	color: #111827;
	white-space: nowrap;
}

/* ============================= */
/* CONTROLS                     */
/* ============================= */
.dr1053ecomheader .controls {
	display: flex;
	flex-wrap: wrap; /* ✅ wrap instead of overflow */
	justify-content: center;
	gap: 12px;
	padding: 10px 12px 14px;
	min-width: 0;
}

/* Inputs & selects */
.dr1053ecomheader input, .dr1053ecomheader select {
	padding: 10px 14px;
	border-radius: 14px;
	border: 1px solid #e5e7eb;
	font-size: 14px;
	background: #ffffff;
	color: #111827;
	min-width: 0; /* 🔑 critical */
	max-width: 100%;
	outline: none;
	transition: all 0.2s ease;
}

.dr1053ecomheader input {
	flex: 1 1 160px;
}

.dr1053ecomheader select {
	flex: 1 1 140px;
}

.dr1053ecomheader input::placeholder {
	color: #9ca3af;
}

.dr1053ecomheader input:focus, .dr1053ecomheader select:focus {
	border-color: #6366f1;
	box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

/* Clear button */
.dr1053ecomheader #clearFiltersBtn {
	flex-shrink: 0;
	padding: 10px 18px;
	border-radius: 16px;
	border: none;
	background: linear-gradient(135deg, #6366f1, #4f46e5);
	color: #ffffff;
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
	box-shadow: 0 8px 22px rgba(99, 102, 241, 0.35);
	transition: transform 0.2s, box-shadow 0.2s;
}

.dr1053ecomheader #clearFiltersBtn:hover {
	transform: translateY(-2px);
	box-shadow: 0 12px 30px rgba(99, 102, 241, 0.45);
}

/* ============================= */
/* MOBILE OPTIMIZATION          */
/* ============================= */
@media ( max-width : 640px) {
	.dr1053ecomheader .brand-title {
		font-size: 16px;
		font-weight: 700;
	}
	.dr1053ecomheader .controls {
		gap: 6px;
	}

	/* Search smaller */
	.dr1053ecomheader input {
		flex: 1 1 110px;
		font-size: 13px;
		padding: 7px 8px;
		border-radius: 10px;
	}

	/* Filters */
	.dr1053ecomheader select {
		flex: 1 1 90px;
		font-size: 13px;
		padding: 7px 8px;
		border-radius: 10px;
	}

	/* Clear icon */
	.dr1053ecomheader #clearFiltersBtn {
		width: 34px;
		height: 34px;
		padding: 0;
		border-radius: 50%;
		background: #f1f5f9;
		color: #111827;
		font-size: 15px;
		box-shadow: none;
	}
}