/* Header Redesign */
a {
	transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

a:hover,
a:focus {
	color: #ff3333;
}

.dz-site-header {
	position: relative;
	z-index: 999;
	font-family: 'DM Sans', sans-serif;
}

/* 1. Top Bar */
.dz-header-top {
	background-color: #000;
	color: #fff;
	font-size: 13px;
	padding: 8px 30px;
}

.dz-header-top a {
	color: #fff;
	text-decoration: none;
	transition: opacity 0.3s ease;
}

.dz-header-top a:hover {
	opacity: 0.7;
}

.dz-top-right {
	display: flex;
	align-items: center;
	gap: 20px;
}

.dz-top-separator {
	width: 1px;
	height: 12px;
	background-color: #333;
}

.dz-header-top .dz-promo-social {
	display: flex;
	gap: 12px;
	align-items: center;
}

.dz-header-top .dz-promo-social .dashicons {
	font-size: 16px;
	width: 16px;
	height: 16px;
}

/* 2. Middle Bar */
.dz-header-middle {
	background-color: #fff;
	padding: 25px 30px;
	border-bottom: 1px solid #f2f2f2;
}

.dz-middle-left {
	flex: 0 0 auto;
}

.dz-nav-brand .nav-logo {
	font-size: 28px;
	font-weight: 700;
	color: #111;
	text-decoration: none;
	display: flex;
	align-items: center;
	gap: 8px;
}

.dz-nav-brand .nav-logo span {
	color: #ff3333; /* Accent color */
}

.dz-nav-brand .nav-logo::before {
	content: '';
	display: inline-block;
	width: 24px;
	height: 24px;
	background-color: #ff3333;
	border-radius: 50%;
	border: 6px solid #fff;
	box-shadow: 0 0 0 2px #ff3333;
}

.dz-nav-brand .dz-brand-tagline {
	display: none; /* Hide tagline in new design */
}

.dz-middle-center {
	flex: 1 1 auto;
	max-width: 600px;
	margin: 0 40px;
}

.dz-middle-center .woocommerce-product-search {
	position: relative;
	display: flex;
	width: 100%;
}

.dz-middle-center .woocommerce-product-search input[type="search"] {
	width: 100%;
	padding: 12px 20px;
	border: none;
	background-color: #f5f5f5;
	border-radius: 30px;
	font-size: 14px;
	outline: none;
}

.dz-middle-center .woocommerce-product-search button {
	position: absolute;
	right: 5px;
	top: 50%;
	transform: translateY(-50%);
	background: none;
	border: none;
	color: #111;
	cursor: pointer;
	padding: 10px;
	font-size: 0; /* hide text */
}

.dz-middle-center .woocommerce-product-search button::before {
	content: '\f179'; /* Dashicons search icon */
	font-family: 'dashicons';
	font-size: 18px;
	display: block;
}

.dz-middle-right {
	display: flex;
	align-items: center;
	gap: 25px;
}

.dz-call-us {
	display: flex;
	align-items: center;
	gap: 10px;
}

.dz-call-us-icon {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	border: 1px solid #eaeaea;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #111;
}

.dz-call-us-text {
	display: flex;
	flex-direction: column;
	font-size: 12px;
	color: #666;
}

.dz-call-us-text strong {
	font-size: 15px;
	color: #111;
	font-weight: 700;
}

.dz-header-icons {
	display: flex;
	align-items: center;
	gap: 15px;
}

.dz-icon-btn {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	border: 1px solid #eaeaea;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #111;
	text-decoration: none;
	position: relative;
	transition: all 0.3s ease;
}

.dz-icon-btn:hover {
	border-color: #111;
}

.dz-cart-info {
	display: flex;
	flex-direction: column;
	margin-right: -5px;
}

.dz-cart-info span {
	font-size: 12px;
	color: #666;
}

.dz-cart-info strong {
	font-size: 15px;
	color: #111;
	font-weight: 700;
}

.dz-icon-btn .dz-cart-count {
	position: absolute;
	top: -5px;
	right: -5px;
	background-color: #ff3333;
	color: #fff;
	font-size: 10px;
	font-weight: 700;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* 3. Bottom Bar */
.dz-header-bottom {
	background-color: #fff;
	padding: 0 30px;
	border-bottom: 1px solid #eaeaea;
}

.dz-bottom-nav ul {
	display: flex;
	gap: 30px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.dz-bottom-nav a {
	color: #333;
	text-decoration: none;
	font-size: 14px;
	font-weight: 500;
	padding: 20px 0;
	position: relative;
	transition: color 0.3s ease;
	display: block;
}

.dz-bottom-nav a:hover,
.dz-bottom-nav a.active {
	color: #111;
}

.dz-bottom-nav a.active::after {
	content: '';
	position: absolute;
	bottom: -1px;
	left: 0;
	width: 100%;
	height: 2px;
	background-color: #ff3333;
}

.dz-bottom-promo {
	display: flex;
	gap: 20px;
	font-size: 13px;
	font-weight: 500;
}

.dz-bottom-promo a {
	color: #666;
	text-decoration: none;
}

.dz-bottom-promo a:hover {
	color: #111;
}

/* Remove old components if they exist */
.dz-header-promo, .dz-nav {
	display: none;
}

/* Container for width restriction */
.dz-header-container {
	max-width: 1440px;
	margin: 0 auto;
	width: 100%;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.dz-mobile-header-structure {
	display: none;
	background-color: #ffffff;
	border-bottom: 1px solid #eaeaea;
	width: 100%;
}

.dz-mobile-quick-actions {
	display: none;
}

@media (max-width: 900px) {
	.dz-site-header {
		position: sticky !important;
		top: 0;
		z-index: 99999 !important;
		background-color: #ffffff !important;
		box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
	}

	.dz-desktop-only {
		display: none !important;
	}

	.dz-mobile-header-structure {
		display: block;
		background-color: #ffffff !important;
		position: relative;
		z-index: 10;
	}

	/* Row 1: Top Bar with Logo & Account */
	.dz-mobile-top-row {
		display: flex;
		align-items: center;
		justify-content: space-between;
		padding: 10px 14px 4px;
		background: #ffffff !important;
	}

	.dz-mobile-logo-wrap {
		display: flex;
		align-items: center;
	}

	.dz-mobile-logo {
		font-family: 'DM Sans', sans-serif;
		font-size: 20px;
		font-weight: 800;
		color: #111111;
		text-decoration: none;
		letter-spacing: -0.3px;
		line-height: 1;
	}

	.dz-mobile-logo span {
		color: #ff3333;
	}

	.dz-mobile-account-wrap {
		display: flex;
		align-items: center;
	}

	.dz-mobile-user-link {
		display: flex;
		align-items: center;
		gap: 5px;
		text-decoration: none;
		font-size: 12px;
		font-weight: 600;
		color: #111111;
		background: #f7f7f8;
		padding: 5px 10px;
		border-radius: 20px;
		border: 1px solid #eaeaea;
		transition: all 0.2s ease;
	}

	.dz-mobile-user-link:hover {
		border-color: #ff3333;
		color: #ff3333;
	}

	.dz-user-icon {
		color: #ff3333;
		display: inline-flex;
		align-items: center;
	}

	/* Row 2: Search Bar & Header Actions */
	.dz-mobile-middle-row {
		display: flex;
		align-items: center;
		gap: 10px;
		padding: 6px 14px 10px;
		background: #ffffff !important;
	}

	.dz-mobile-search-box {
		flex: 1;
		min-width: 0;
	}

	.dz-mobile-search-form {
		position: relative;
		display: flex;
		align-items: center;
		width: 100%;
	}

	.dz-mobile-search-input {
		width: 100%;
		height: 42px;
		padding: 0 14px 0 42px;
		border: 2px solid #ff3333;
		border-radius: 12px;
		font-size: 13px;
		font-weight: 500;
		color: #111111;
		background-color: #ffffff !important;
		outline: none;
		font-family: 'DM Sans', sans-serif;
		box-shadow: 0 2px 8px rgba(255, 51, 51, 0.08);
		transition: all 0.2s ease;
	}

	.dz-mobile-search-input:focus {
		border-color: #d32f2f;
		box-shadow: 0 3px 10px rgba(255, 51, 51, 0.18);
	}

	.dz-mobile-search-input::placeholder {
		color: #71717a;
		font-size: 13px;
	}

	.dz-search-icon {
		position: absolute;
		left: 13px;
		top: 50%;
		transform: translateY(-50%);
		color: #71717a;
		display: flex;
		align-items: center;
		justify-content: center;
		pointer-events: none;
		z-index: 2;
	}

	.dz-mobile-actions {
		display: flex;
		align-items: center;
		gap: 12px;
		flex-shrink: 0;
	}

	.dz-mobile-icon-btn {
		display: flex;
		align-items: center;
		justify-content: center;
		color: #111111;
		text-decoration: none;
		width: 32px;
		height: 32px;
	}

	.dz-mobile-cart-action {
		display: flex;
		align-items: center;
		gap: 6px;
		color: #111111;
		text-decoration: none;
		font-size: 13px;
		font-weight: 600;
	}

	.dz-cart-icon-wrap {
		position: relative;
		display: flex;
		align-items: center;
	}

	.dz-cart-icon-wrap .dz-cart-count {
		position: absolute;
		top: -6px;
		right: -8px;
		background: #ff3333;
		color: #ffffff;
		font-size: 10px;
		font-weight: 800;
		min-width: 16px;
		height: 16px;
		border-radius: 50%;
		display: flex;
		align-items: center;
		justify-content: center;
		padding: 0 3px;
		border: 1.5px solid #ffffff;
	}

	.dz-cart-text {
		color: #4b5563;
		font-size: 13px;
		font-weight: 500;
	}

	/* Row 3: Horizontal Scrollable Desktop Menu Items Bar */
	.dz-mobile-category-bar {
		width: 100%;
		border-top: 1px solid #f3f4f6;
		background-color: #ffffff !important;
		padding-top: 8px;
		position: relative;
		z-index: 5;
	}

	.dz-mobile-category-scroll {
		display: flex;
		overflow-x: auto;
		scrollbar-width: none;
		-ms-overflow-style: none;
		padding: 0 8px;
		gap: 4px;
		background-color: #ffffff !important;
	}

	.dz-mobile-category-scroll::-webkit-scrollbar {
		display: none;
	}

	.dz-mobile-cat-item {
		display: flex;
		flex-direction: column;
		align-items: center;
		text-decoration: none;
		min-width: 66px;
		flex-shrink: 0;
		position: relative;
		padding-bottom: 8px;
		background-color: #ffffff !important;
	}

	.dz-cat-icon-box {
		width: 48px;
		height: 48px;
		border-radius: 14px;
		background: #ffffff;
		display: flex;
		align-items: center;
		justify-content: center;
		color: #374151;
		transition: all 0.2s ease;
		border: 1px solid #e5e7eb;
	}

	.dz-mobile-cat-item.active .dz-cat-icon-box {
		background: #fff5f5;
		color: #ff3333;
		border-color: #ffe0e0;
	}

	.dz-cat-label {
		font-size: 11px;
		font-weight: 600;
		color: #374151;
		margin-top: 5px;
		text-align: center;
		font-family: 'DM Sans', sans-serif;
		white-space: nowrap;
	}

	.dz-mobile-cat-item.active .dz-cat-label {
		color: #ff3333;
		font-weight: 700;
	}

	.dz-active-indicator {
		display: none;
		position: absolute;
		bottom: 0;
		left: 50%;
		transform: translateX(-50%);
		width: 32px;
		height: 3px;
		background-color: #ff3333;
		border-radius: 3px 3px 0 0;
	}

	.dz-mobile-cat-item.active .dz-active-indicator {
		display: block;
	}

	body {
		padding-bottom: calc(92px + env(safe-area-inset-bottom));
	}

	.dz-header-top,
	.dz-header-middle,
	.dz-header-bottom {
		padding-right: 18px;
		padding-left: 18px;
	}

	.dz-header-top .dz-header-container {
		flex-direction: column;
		justify-content: center;
		gap: 8px;
		text-align: center;
	}

	.dz-top-right {
		flex-wrap: wrap;
		justify-content: center;
		gap: 8px 12px;
	}

	.dz-top-separator {
		display: none;
	}

	.dz-header-middle .dz-header-container {
		display: grid;
		grid-template-columns: minmax(0, 1fr) auto;
		gap: 12px;
		align-items: center;
	}

	.dz-middle-left,
	.dz-middle-right,
	.dz-middle-center {
		min-width: 0;
	}

	.dz-nav-brand .nav-logo {
		font-size: 24px;
		gap: 7px;
		letter-spacing: 4px;
		line-height: 1;
		white-space: nowrap;
	}

	.dz-nav-brand .nav-logo::before {
		width: 19px;
		height: 19px;
		border-width: 4px;
	}

	.dz-middle-right {
		grid-column: 2;
		grid-row: 1;
		justify-content: flex-end;
		gap: 8px;
	}

	.dz-call-us-text,
	.dz-cart-info,
	.dz-middle-right > .dz-top-separator {
		display: none;
	}

	.dz-call-us-icon,
	.dz-icon-btn {
		width: 40px;
		height: 40px;
		flex: 0 0 40px;
	}

	.dz-header-icons {
		gap: 8px;
	}

	.dz-middle-center {
		grid-column: 1 / -1;
		grid-row: 2;
		max-width: none;
		margin: 0;
		width: 100%;
	}

	.dz-middle-center .woocommerce-product-search input[type="search"] {
		min-width: 0;
		padding-right: 48px;
	}

	.dz-header-bottom .dz-header-container {
		display: block;
	}

	.dz-bottom-nav {
		width: 100%;
	}

	.dz-bottom-nav ul {
		display: grid;
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 0;
		width: 100%;
	}

	.dz-bottom-nav li {
		min-width: 0;
	}

	.dz-bottom-nav a {
		display: flex;
		align-items: center;
		justify-content: center;
		min-height: 46px;
		padding: 10px 4px;
		text-align: center;
		line-height: 1.25;
	}

	.dz-bottom-promo {
		display: none;
	}

	.dz-mobile-quick-actions {
		position: fixed;
		right: 12px;
		bottom: calc(10px + env(safe-area-inset-bottom));
		left: 12px;
		z-index: 1200;
		display: grid;
		grid-template-columns: repeat(4, minmax(0, 1fr));
		gap: 6px;
		width: min(402px, calc(100vw - 24px));
		margin: 0 auto;
		padding: 7px;
		border: 1px solid rgba(255, 255, 255, 0.14);
		border-radius: 8px;
		background: rgba(8, 8, 10, 0.94);
		box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
		backdrop-filter: blur(14px);
	}

	.dz-mobile-action {
		position: relative;
		display: flex;
		min-width: 0;
		min-height: 52px;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		gap: 3px;
		padding: 6px 4px;
		border-radius: 6px;
		background: rgba(255, 255, 255, 0.08);
		color: #ffffff;
		font-size: 10px;
		font-weight: 800;
		line-height: 1.1;
		text-align: center;
		text-decoration: none;
	}

	.dz-mobile-action .dashicons {
		width: 18px;
		height: 18px;
		font-size: 18px;
		line-height: 18px;
	}

	.dz-mobile-action > span:not(.dashicons):not(.dz-cart-count) {
		max-width: 100%;
		overflow: hidden;
		text-overflow: ellipsis;
		white-space: nowrap;
	}

	.dz-mobile-action--primary {
		background: #ff3333;
		color: #ffffff;
	}

	.dz-mobile-action--whatsapp {
		background: #16a34a;
		color: #ffffff;
	}

	.dz-mobile-quick-actions .dz-cart-count {
		position: absolute;
		top: 4px;
		right: 8px;
		display: grid;
		min-width: 16px;
		height: 16px;
		padding: 0 5px;
		border: 1px solid rgba(255, 255, 255, 0.8);
		border-radius: 999px;
		background: #ff3333;
		color: #ffffff;
		font-size: 9px;
		font-weight: 900;
		line-height: 1;
		place-items: center;
	}
}

@media (max-width: 480px) {
	.dz-header-top,
	.dz-header-middle,
	.dz-header-bottom {
		padding-right: 14px;
		padding-left: 14px;
	}

	.dz-header-top {
		font-size: 12px;
	}

	.dz-nav-brand .nav-logo {
		font-size: 22px;
		letter-spacing: 3px;
	}

	.dz-nav-brand .nav-logo::before {
		width: 17px;
		height: 17px;
	}

	.dz-call-us-icon,
	.dz-icon-btn {
		width: 38px;
		height: 38px;
		flex-basis: 38px;
	}

	.dz-bottom-nav a {
		font-size: 13px;
	}
}

@media (max-width: 360px) {
	.dz-nav-brand .nav-logo {
		font-size: 20px;
		letter-spacing: 2px;
	}

	.dz-call-us-icon,
	.dz-icon-btn {
		width: 36px;
		height: 36px;
		flex-basis: 36px;
	}

	.dz-header-icons {
		gap: 6px;
	}
}
