/* Header ARCORP — una fila negra: logo | menú | Categorías + Buscar.
 * Markup: template-parts/site-header.php del hijo. */
.ar-header {
	--arh-bg: #000000;
	--arh-red: #8f0a0a;
	--arh-red-hover: #a90d0d;
	--arh-height: 92px;
	position: relative;
	z-index: 100;
	width: 100%;
	background: var(--arh-bg);
	color: #ffffff;
	font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
}

.ar-header *,
.ar-header *::before,
.ar-header *::after {
	box-sizing: border-box;
}

.ar-header__shell {
	width: 100%;
	max-width: calc(1600px + 2 * 24px); /* 1600px de contenido, como el resto del sitio */
	min-height: var(--arh-height);
	margin: 0 auto;
	padding-inline: 24px;
	display: flex;
	align-items: center;
	gap: 32px;
}

/* ── Logo ── */
.ar-header__logo {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
}

.ar-header__logo a {
	display: inline-flex;
	text-decoration: none;
}

.ar-header__logo img {
	display: block;
	width: auto;
	max-width: 280px;
	height: 66px;
	object-fit: contain;
}

.ar-header__logo-text {
	color: #ffffff;
	font-size: 26px;
	font-weight: 800;
}

/* ── Menú ── */
.ar-header__nav {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	justify-content: center;
}

.ar-header__menu {
	display: flex;
	align-items: center;
	gap: 6px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ar-header__menu li {
	margin: 0;
}

.ar-header__menu a {
	display: inline-flex;
	align-items: center;
	padding: 8px 12px;
	color: #ffffff;
	font-size: 16px;
	font-weight: 500;
	line-height: 1;
	letter-spacing: 0.01em;
	text-transform: uppercase;
	text-decoration: none;
	white-space: nowrap;
	transition: color 0.2s ease;
}

.ar-header__menu a:hover,
.ar-header__menu a:focus-visible,
.ar-header__menu .current-menu-item > a {
	color: #e3131b;
}

/* ── Categorías + buscador ── */
.ar-header__tools {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	gap: 12px;
}

.ar-header__cats {
	height: 38px;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 0 32px 0 30px;
	background: var(--arh-red);
	border: 0;
	border-radius: 12px;
	color: #ffffff;
	font-family: inherit;
	font-size: 16px;
	font-weight: 500;
	line-height: 1;
	white-space: nowrap;
	cursor: pointer;
	transition: background-color 0.2s ease;
}

.ar-header__cats:hover,
.ar-header__cats:focus-visible,
.ar-header__cats[aria-expanded="true"] {
	background: var(--arh-red-hover);
}

.ar-header__cats svg {
	flex: 0 0 16px;
}

.ar-header__search {
	position: relative;
	width: 304px;
}

.ar-header__search .ozpls-figma {
	position: relative;
	width: 100%;
}

.ar-header__search .ozpls-figma__form {
	position: relative;
	display: flex;
	align-items: center;
	width: 100%;
	height: 38px;
	margin: 0;
	background: #ffffff;
	border: 0;
	border-radius: 999px;
	overflow: hidden;
}

.ar-header__search .ozpls-figma__inputWrap {
	flex: 1 1 auto;
	min-width: 0;
	height: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
}

.ar-header__search .ozpls-figma__input {
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 0 18px 0 44px;
	background: transparent;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	outline: none;
	color: #1a1a1a;
	font-family: inherit;
	font-size: 16px;
	line-height: 38px;
	-webkit-appearance: none;
	appearance: none;
}

.ar-header__search .ozpls-figma__input::placeholder {
	color: #8a8a8a;
	opacity: 1;
}

.ar-header__search .ozpls-figma__input::-webkit-search-cancel-button {
	-webkit-appearance: none;
}

/* La lupa va a la izquierda, como en el diseño. */
.ar-header__search .ozpls-figma__btn {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	width: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0;
	padding: 0 0 0 4px;
	background: transparent;
	border: 0;
	cursor: pointer;
}

.ar-header__search .ozpls-figma__btnText {
	display: none;
}

.ar-header__search .ozpls-figma__btn::after {
	content: "";
	width: 20px;
	height: 20px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23555555' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cline x1='20' y1='20' x2='16.65' y2='16.65'/%3E%3C/svg%3E") no-repeat center / contain;
}

/* Resultados del buscador: miniatura + nombre del producto */
.ar-header__search .oz-ls__panel {
	min-width: 340px;
	border: 1px solid #e5e5e5;
	border-radius: 12px;
	box-shadow: 0 14px 32px rgba(0, 0, 0, 0.18);
}

.ar-header__search .oz-ls__group {
	display: none;
}

.ar-header__search .oz-ls__item {
	gap: 12px;
	padding: 8px 10px;
	color: #1a1a1a;
}

.ar-header__search .oz-ls__item:hover,
.ar-header__search .oz-ls__item:focus {
	background: #f4f4f4;
	color: #e3131b;
}

.ar-header__search .oz-ls__thumb {
	width: 52px;
	height: 52px;
	padding: 2px;
	background: #fff;
	border: 1px solid #ececec;
	border-radius: 8px;
	object-fit: contain;
}

.ar-header__search .oz-ls__label {
	font-size: 16px;
	font-weight: 500;
	line-height: 1.3;
}

.ar-header__search .oz-ls__meta {
	display: none;
}

.ar-header__search .oz-ls__empty {
	font-size: 16px;
}

/* Hamburguesa: solo en móvil (los estilos de las rayas vienen del padre). */
.ar-header__toggle {
	display: none;
	width: 44px;
	height: 44px;
	align-items: center;
	justify-content: center;
	margin: 0;
	padding: 0;
	background: transparent;
	border: 0;
	color: #ffffff;
	cursor: pointer;
}

/* ── Laptop ── */
@media (max-width: 1399px) {
	.ar-header__shell {
		gap: 20px;
	}

	.ar-header__logo img {
		height: 54px;
		max-width: 230px;
	}

	.ar-header__menu {
		gap: 0;
	}

	.ar-header__menu a {
		padding-inline: 8px;
	}

	.ar-header__cats {
		padding-inline: 18px;
		font-size: 16px;
	}

	.ar-header__search {
		width: 240px;
	}
}

/* ── Tablet / móvil: fila 1 logo + hamburguesa, fila 2 categorías + buscador ── */
@media (max-width: 1099px) {
	.ar-header__shell {
		min-height: 0;
		padding-block: 12px;
		flex-wrap: wrap;
		gap: 12px;
	}

	.ar-header__logo img {
		height: 46px;
		max-width: 190px;
	}

	.ar-header__toggle {
		display: inline-flex;
		margin-left: auto;
	}

	.ar-header__tools {
		flex: 1 1 100%;
	}

	.ar-header__cats {
		flex: 0 0 auto;
		padding-inline: 14px;
	}

	.ar-header__search {
		flex: 1 1 auto;
		width: auto;
		min-width: 0;
	}

	.ar-header__search .oz-ls__panel {
		min-width: 0;
	}

	.ar-header__nav {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		z-index: 1000;
		padding: 8px 16px 14px;
		background: #111111;
		box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
	}

	.ar-header__nav.active {
		display: block;
	}

	.ar-header__menu {
		flex-direction: column;
		align-items: stretch;
	}

	.ar-header__menu a {
		display: flex;
		width: 100%;
		padding: 14px 4px;
		font-size: 16px;
		border-bottom: 1px solid rgba(255, 255, 255, 0.08);
	}
}

@media (max-width: 575px) {
	.ar-header__shell {
		padding-inline: 16px;
	}

	.ar-header__logo img {
		height: 40px;
		max-width: 160px;
	}

	.ar-header__cats span {
		display: none;
	}

	.ar-header__cats {
		width: 40px;
		padding: 0;
		justify-content: center;
	}
}
