﻿/* ===== Sudoku Header Isolated v169 ===== */

html body.has-product-header-layout.has-catalog-tools header.site-header {
	margin-bottom: 8px !important;
	padding: 3px 0 6px !important;
	background: linear-gradient(180deg, #072868 0%, #0f3f92 100%) !important;
	border-bottom: 1px solid rgba(135, 177, 248, 0.46) !important;
}

html body.has-product-header-layout.has-catalog-tools header.site-header .header-banner {
	padding: 0 !important;
}

html body.has-product-header-layout.has-catalog-tools header.site-header .header-banner-row {
	width: min(1780px, calc(100vw - 20px)) !important;
	margin: 0 auto !important;
	padding: 4px 8px !important;
	border-radius: 18px !important;
	border: 1px solid rgba(133, 176, 247, 0.6) !important;
	background: linear-gradient(160deg, rgba(24, 78, 172, 0.9), rgba(28, 92, 194, 0.9)) !important;
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.11), 0 12px 26px rgba(5, 26, 70, 0.28) !important;
}

html body.has-product-header-layout.has-catalog-tools #sduMainNav {
	position: relative !important;
	display: block !important;
	width: 100% !important;
	max-width: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
	min-height: 0 !important;
	border: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	overflow: visible !important;
}

html body.has-product-header-layout.has-catalog-tools #sduMainNav,
html body.has-product-header-layout.has-catalog-tools #sduMainNav * {
	box-sizing: border-box !important;
}

html body.has-product-header-layout.has-catalog-tools #sduMainNav::before,
html body.has-product-header-layout.has-catalog-tools #sduMainNav::after,
html body.has-product-header-layout.has-catalog-tools #sduMainNav .sdu-row-top::before,
html body.has-product-header-layout.has-catalog-tools #sduMainNav .sdu-row-top::after {
	content: none !important;
	display: none !important;
}

html body.has-product-header-layout.has-catalog-tools #sduMainNav .sdu-row-bottom {
	display: none !important;
}

html body.has-product-header-layout.has-catalog-tools #sduMainNav .sdu-link,
html body.has-product-header-layout.has-catalog-tools #sduMainNav .sdu-cart-link,
html body.has-product-header-layout.has-catalog-tools #sduMainNav .sdu-repair-link {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	height: 33px !important;
	min-height: 33px !important;
	padding: 0 11px !important;
	border-radius: 6px !important;
	border: 1px solid rgba(149, 186, 246, 0.9) !important;
	background: #0b3a8c !important;
	color: #f6fbff !important;
	font-size: 0.72rem !important;
	font-weight: 800 !important;
	letter-spacing: 0.02em !important;
	text-transform: uppercase !important;
	text-decoration: none !important;
	white-space: nowrap !important;
	margin: 0 !important;
	box-shadow: 0 4px 10px rgba(7, 28, 73, 0.22) !important;
	position: static !important;
	inset: auto !important;
	transform: none !important;
	transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease !important;
}

html body.has-product-header-layout.has-catalog-tools #sduMainNav .sdu-link:hover,
html body.has-product-header-layout.has-catalog-tools #sduMainNav .sdu-cart-link:hover,
html body.has-product-header-layout.has-catalog-tools #sduMainNav .sdu-repair-link:hover {
	filter: none !important;
	transform: translateY(-1px) !important;
	box-shadow: 0 9px 18px rgba(8, 32, 84, 0.34) !important;
	border-color: rgba(181, 212, 255, 0.95) !important;
}

html body.has-product-header-layout.has-catalog-tools #sduMainNav .sdu-link.is-active,
html body.has-product-header-layout.has-catalog-tools #sduMainNav .sdu-link[aria-current='page'],
html body.has-product-header-layout.has-catalog-tools #sduMainNav .sdu-cart-link.is-active,
html body.has-product-header-layout.has-catalog-tools #sduMainNav .sdu-cart-link[aria-current='page'] {
	background: #f3f8ff !important;
	color: #0f3d96 !important;
	border-color: #d9e7ff !important;
	box-shadow: 0 5px 12px rgba(18, 55, 124, 0.2) !important;
}

html body.has-product-header-layout.has-catalog-tools #sduMainNav .sdu-cart-link {
	position: relative !important;
	gap: 0 !important;
	min-width: 40px !important;
	padding: 0 10px !important;
	background: #148ecf !important;
	border-color: rgba(173, 238, 255, 0.75) !important;
}

html body.has-product-header-layout.has-catalog-tools #sduMainNav .sdu-repair-link {
	background: #2f75de !important;
	border-color: rgba(170, 209, 255, 0.78) !important;
}

html body.has-product-header-layout.has-catalog-tools #sduMainNav .sdu-nav-cart-icon {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 16px !important;
	height: 16px !important;
	line-height: 1 !important;
}

html body.has-product-header-layout.has-catalog-tools #sduMainNav .sdu-cart-pill {
	position: absolute !important;
	top: -6px !important;
	right: -6px !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	min-width: 16px !important;
	height: 16px !important;
	padding: 0 4px !important;
	border-radius: 999px !important;
	font-size: 0.58rem !important;
	font-weight: 900 !important;
	line-height: 1 !important;
	color: #1551c2 !important;
	background: #ffffff !important;
	border: 1px solid #b5d6ff !important;
	z-index: 2 !important;
}

html body.has-product-header-layout.has-catalog-tools #sduMainNav .sdu-nav-toggle {
	display: none !important;
}

html body.has-product-header-layout.has-catalog-tools #sduMainNav .sdu-search-btn-label {
	display: none !important;
}

html body.has-product-header-layout.has-catalog-tools #sduMainNav .sdu-search-btn-icon {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	line-height: 1 !important;
}

/* Desktop: logo | search | buttons */
@media (min-width: 1280px) {
	html body.has-product-header-layout.has-catalog-tools #sduMainNav .sdu-row-top {
		display: grid !important;
		grid-template-columns: clamp(156px, 10vw, 210px) minmax(320px, 1fr) auto !important;
		align-items: center !important;
		column-gap: 8px !important;
		row-gap: 0 !important;
		padding: 0 !important;
		margin: 0 !important;
	}

	html body.has-product-header-layout.has-catalog-tools #sduMainNav .sdu-logo-link {
		display: block !important;
		width: clamp(156px, 10vw, 210px) !important;
		line-height: 0 !important;
		padding: 0 !important;
		margin: 0 !important;
		border: 0 !important;
		background: transparent !important;
		box-shadow: none !important;
	}

	html body.has-product-header-layout.has-catalog-tools #sduMainNav .sdu-logo-link img {
		display: block !important;
		width: 100% !important;
		height: auto !important;
		max-height: 52px !important;
		object-fit: contain !important;
		object-position: left center !important;
	}

	html body.has-product-header-layout.has-catalog-tools #sduMainNav .sdu-header-search {
		display: block !important;
		width: 100% !important;
		min-width: 0 !important;
		margin: 0 !important;
		position: relative !important;
	}

	html body.has-product-header-layout.has-catalog-tools #sduMainNav .sdu-header-search > label {
		position: absolute !important;
		left: 9px !important;
		top: -7px !important;
		z-index: 2 !important;
		margin: 0 !important;
		padding: 1px 7px !important;
		border-radius: 999px !important;
		font-size: 0.66rem !important;
		font-weight: 800 !important;
		letter-spacing: 0.03em !important;
		text-transform: uppercase !important;
		line-height: 1.2 !important;
		color: #e8f1ff !important;
		background: rgba(11, 41, 103, 0.92) !important;
		pointer-events: none !important;
	}

	html body.has-product-header-layout.has-catalog-tools #sduMainNav .sdu-search-inline {
		display: grid !important;
		grid-template-columns: minmax(0, 1fr) auto !important;
		align-items: center !important;
		gap: 8px !important;
		margin: 0 !important;
		padding: 0 !important;
	}

	html body.has-product-header-layout.has-catalog-tools #sduMainNav .sdu-search-inline input[type='text'],
	html body.has-product-header-layout.has-catalog-tools #sduMainNav .sdu-search-inline input[type='search'] {
		height: 34px !important;
		min-height: 34px !important;
		padding: 0 12px !important;
		font-size: 0.72rem !important;
		border-radius: 10px !important;
	}

	html body.has-product-header-layout.has-catalog-tools #sduMainNav .sdu-search-inline .sdu-search-submit-btn {
		display: inline-flex !important;
		align-items: center !important;
		justify-content: center !important;
		height: 34px !important;
		min-height: 34px !important;
		width: 38px !important;
		min-width: 38px !important;
		padding: 0 !important;
		font-size: 0.72rem !important;
		font-weight: 800 !important;
		letter-spacing: 0.025em !important;
		border-radius: 6px !important;
	}

	html body.has-product-header-layout.has-catalog-tools #sduMainNav .sdu-nav-buttons {
		display: flex !important;
		align-items: center !important;
		justify-content: flex-end !important;
		gap: 6px !important;
		flex-wrap: nowrap !important;
		min-width: 0 !important;
		max-width: 100% !important;
		overflow-x: auto !important;
		overflow-y: hidden !important;
		scrollbar-width: none !important;
		-ms-overflow-style: none !important;
	}

	html body.has-product-header-layout.has-catalog-tools #sduMainNav .sdu-nav-buttons::-webkit-scrollbar {
		display: none !important;
	}

	html body.has-product-header-layout.has-catalog-tools #sduMainNav .sdu-nav-group {
		display: flex !important;
		align-items: center !important;
		gap: 6px !important;
		flex-wrap: nowrap !important;
		margin: 0 !important;
		padding: 0 !important;
		position: static !important;
		inset: auto !important;
		transform: none !important;
	}

	html body.has-product-header-layout.has-catalog-tools:not(.page-productos) #sduMainNav .sdu-row-top {
		grid-template-columns: clamp(156px, 10vw, 210px) minmax(0, 1fr) !important;
	}

	html body.has-product-header-layout.has-catalog-tools:not(.page-productos) #sduMainNav .sdu-header-search {
		display: none !important;
	}
}

/* Intermediate: 2 lines compact */
@media (min-width: 861px) and (max-width: 1279px) {
	html body.has-product-header-layout.has-catalog-tools #sduMainNav .sdu-row-top {
		display: grid !important;
		grid-template-columns: clamp(118px, 15vw, 160px) minmax(0, 1fr) !important;
		grid-template-areas:
			'logo buttons'
			'search search' !important;
		align-items: center !important;
		column-gap: 7px !important;
		row-gap: 4px !important;
		padding: 0 !important;
	}

	html body.has-product-header-layout.has-catalog-tools #sduMainNav .sdu-logo-link {
		grid-area: logo !important;
		display: block !important;
		width: clamp(118px, 15vw, 160px) !important;
		line-height: 0 !important;
	}

	html body.has-product-header-layout.has-catalog-tools #sduMainNav .sdu-logo-link img {
		width: 100% !important;
		height: auto !important;
		max-height: 40px !important;
		object-fit: contain !important;
		object-position: left center !important;
	}

	html body.has-product-header-layout.has-catalog-tools #sduMainNav .sdu-nav-buttons {
		grid-area: buttons !important;
		display: flex !important;
		align-items: center !important;
		justify-content: flex-end !important;
		justify-self: stretch !important;
		gap: 5px !important;
		flex-wrap: nowrap !important;
		min-width: 0 !important;
		overflow-x: auto !important;
		overflow-y: hidden !important;
		scrollbar-width: none !important;
		-ms-overflow-style: none !important;
	}

	html body.has-product-header-layout.has-catalog-tools #sduMainNav .sdu-nav-buttons::-webkit-scrollbar {
		display: none !important;
	}

	html body.has-product-header-layout.has-catalog-tools #sduMainNav .sdu-nav-group {
		display: flex !important;
		align-items: center !important;
		gap: 5px !important;
		flex-wrap: nowrap !important;
		position: static !important;
		inset: auto !important;
		transform: none !important;
	}

	html body.has-product-header-layout.has-catalog-tools #sduMainNav .sdu-nav-group > .sdu-link,
	html body.has-product-header-layout.has-catalog-tools #sduMainNav .sdu-nav-group > .sdu-cart-link,
	html body.has-product-header-layout.has-catalog-tools #sduMainNav .sdu-nav-group > .sdu-repair-link {
		height: 30px !important;
		min-height: 30px !important;
		padding: 0 9px !important;
		font-size: 0.66rem !important;
		border-radius: 6px !important;
	}

	html body.has-product-header-layout.has-catalog-tools #sduMainNav .sdu-header-search {
		grid-area: search !important;
		display: block !important;
		width: 100% !important;
		min-width: 0 !important;
		margin: 0 !important;
		position: relative !important;
	}

	html body.has-product-header-layout.has-catalog-tools #sduMainNav .sdu-header-search > label {
		position: absolute !important;
		left: 9px !important;
		top: -7px !important;
		z-index: 2 !important;
		padding: 1px 6px !important;
		border-radius: 999px !important;
		font-size: 0.62rem !important;
		font-weight: 800 !important;
		letter-spacing: 0.03em !important;
		text-transform: uppercase !important;
		color: #e8f1ff !important;
		background: rgba(11, 41, 103, 0.92) !important;
		pointer-events: none !important;
	}

	html body.has-product-header-layout.has-catalog-tools #sduMainNav .sdu-search-inline {
		display: grid !important;
		grid-template-columns: minmax(0, 1fr) auto !important;
		align-items: center !important;
		gap: 6px !important;
	}

	html body.has-product-header-layout.has-catalog-tools #sduMainNav .sdu-search-inline input[type='text'],
	html body.has-product-header-layout.has-catalog-tools #sduMainNav .sdu-search-inline input[type='search'],
	html body.has-product-header-layout.has-catalog-tools #sduMainNav .sdu-search-inline .sdu-search-submit-btn {
		height: 31px !important;
		min-height: 31px !important;
	}

	html body.has-product-header-layout.has-catalog-tools #sduMainNav .sdu-search-inline .sdu-search-submit-btn {
		width: 36px !important;
		min-width: 36px !important;
		padding: 0 !important;
	}

	html body.has-product-header-layout.has-catalog-tools:not(.page-productos) #sduMainNav .sdu-row-top {
		grid-template-areas: 'logo buttons' !important;
		grid-template-columns: clamp(118px, 15vw, 160px) minmax(0, 1fr) !important;
		row-gap: 0 !important;
	}

	html body.has-product-header-layout.has-catalog-tools:not(.page-productos) #sduMainNav .sdu-header-search {
		display: none !important;
	}
}

/* Mobile: preserve behavior */
@media (max-width: 860px) {
	html body.has-product-header-layout.has-catalog-tools #sduMainNav {
		padding: 8px 12px !important;
	}

	html body.has-product-header-layout.has-catalog-tools #sduMainNav .sdu-row-top {
		display: flex !important;
		flex-wrap: wrap !important;
		align-items: center !important;
		justify-content: space-between !important;
		gap: 8px !important;
	}

	html body.has-product-header-layout.has-catalog-tools #sduMainNav .sdu-logo-link img {
		max-height: 34px !important;
	}

	html body.has-product-header-layout.has-catalog-tools #sduMainNav .sdu-nav-toggle {
		display: inline-flex !important;
		order: 2 !important;
		align-items: center !important;
		justify-content: center !important;
	}

	html body.has-product-header-layout.has-catalog-tools #sduMainNav .sdu-header-search {
		display: none !important;
	}

	html body.has-product-header-layout.has-catalog-tools #sduMainNav .sdu-nav-buttons {
		order: 3 !important;
		width: 100% !important;
		justify-content: flex-start !important;
		display: none !important;
		max-width: none !important;
		overflow: visible !important;
	}

	html body.has-product-header-layout.has-catalog-tools #sduMainNav.is-open .sdu-nav-buttons {
		display: flex !important;
		flex-direction: column !important;
		align-items: stretch !important;
		gap: 8px !important;
		margin-top: 8px !important;
	}

	html body.has-product-header-layout.has-catalog-tools #sduMainNav .sdu-nav-group {
		flex-direction: column !important;
		align-items: stretch !important;
		width: 100% !important;
		gap: 8px !important;
	}

	html body.has-product-header-layout.has-catalog-tools #sduMainNav .sdu-nav-group a {
		justify-content: center !important;
		width: 100% !important;
	}

	html body.has-product-header-layout.has-catalog-tools #sduMainNav .nav-search-mobile {
		display: block !important;
	}
}

@media (max-width: 480px) {
	html body.has-product-header-layout.has-catalog-tools #sduMainNav .sdu-logo-link img {
		max-height: 30px !important;
	}

	html body.has-product-header-layout.has-catalog-tools #sduMainNav .nav-search-mobile .search-btn-label {
		display: none !important;
	}

	html body.has-product-header-layout.has-catalog-tools #sduMainNav .nav-search-mobile .search-submit-btn {
		padding: 0 12px !important;
		min-width: 42px !important;
	}
}
