/* ============================================================
   Zulema Perfumes - header styles
   ============================================================ */

/* Sticky header */
.zulema-header {
	position: sticky;
	top: 0;
	z-index: 200;
	background: #fff;
	transition: box-shadow 0.2s ease;
}

.zulema-header.is-sticky {
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

/* ---- Top bar (white background, black foreground) ---- */
.zulema-topbar {
	background: #fff;
	border-bottom: 1px solid var(--color-line);
	color: var(--color-fg);
}

.zulema-topbar__inner {
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: center;
	gap: var(--sp-3);
	padding-top: 12px;
	padding-bottom: 12px;
}

/* Burger (hidden desktop) */
.zulema-topbar__burger {
	display: none;
	background: none;
	border: none;
	padding: 4px;
	line-height: 0;
	color: var(--color-fg);
	order: -1;
}

/* Brand / logo */
.zulema-topbar__brand {
	display: flex;
	align-items: center;
}

.zulema-branding {
	display: flex;
	align-items: center;
}

.zulema-branding img {
	max-height: 50px;
	width: auto;
}

.zulema-branding__text {
	font-size: 1.6rem;
	font-weight: 800;
	letter-spacing: -0.02em;
	color: var(--color-fg);
	text-decoration: none;
}

.zulema-branding__text:hover {
	text-decoration: none;
	color: var(--color-fg);
}

/* Search bar */
.zulema-topbar__search {
	max-width: 480px;
	width: 100%;
	margin: 0 auto;
}

.zulema-search {
	display: flex;
	align-items: center;
	border: 1px solid var(--color-line);
	border-radius: var(--radius-input);
	background: #fff;
	overflow: hidden;
	transition: border-color 0.15s;
}

.zulema-search:focus-within {
	border-color: var(--color-fg);
}

.zulema-search__input {
	flex: 1;
	border: none;
	outline: none;
	padding: 10px 16px;
	background: transparent;
	color: var(--color-fg);
	font-size: var(--fs-small);
}

.zulema-search__input::placeholder {
	color: var(--color-muted);
}

.zulema-search__btn {
	background: none;
	border: none;
	padding: 10px 14px;
	line-height: 0;
	color: var(--color-fg);
	cursor: pointer;
}

.zulema-search__btn:hover {
	color: var(--color-muted);
}

/* Action icons */
.zulema-topbar__actions {
	display: flex;
	align-items: center;
	gap: var(--sp-3);
}

.zulema-action {
	position: relative;
	display: inline-flex;
	align-items: center;
	background: none;
	border: none;
	padding: 4px;
	line-height: 0;
	color: var(--color-fg);
	cursor: pointer;
	text-decoration: none;
}

.zulema-action:hover {
	color: var(--color-muted);
	text-decoration: none;
}

.zulema-action__count {
	position: absolute;
	top: -4px;
	right: -6px;
	background: var(--color-fg);
	color: #fff;
	font-size: 10px;
	font-weight: 700;
	line-height: 1;
	min-width: 16px;
	height: 16px;
	border-radius: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0 3px;
}

/* ---- Navbar ---- */
.zulema-navbar {
	background: #000;
	border-bottom: 1px solid #000;
}

.zulema-navbar__inner {
	display: flex;
	align-items: stretch;
}

/* Primary menu */
.zulema-menu {
	display: flex;
	list-style: none;
	flex-wrap: nowrap;
	overflow-x: auto;
	scrollbar-width: none;
}

.zulema-menu::-webkit-scrollbar {
	display: none;
}

.zulema-menu > li {
	position: relative;
	flex-shrink: 0;
}

.zulema-menu__link {
	display: flex;
	align-items: center;
	gap: 5px;
	padding: 14px 16px;
	color: #fff;
	text-transform: uppercase;
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-decoration: none;
	white-space: nowrap;
	transition: color 0.15s;
}

.zulema-menu__link:hover,
.zulema-menu > li.current-menu-item > .zulema-menu__link,
.zulema-menu > li.current-menu-ancestor > .zulema-menu__link {
	color: rgba(255, 255, 255, 0.7);
	text-decoration: none;
}

.zulema-menu__caret {
	opacity: 0.7;
	flex-shrink: 0;
}

/* Mega menu panel */
.zulema-megamenu {
	position: fixed;
	left: 0;
	right: 0;
	background: #fff;
	border-top: 2px solid var(--color-fg);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
	z-index: 500;
	padding: var(--sp-4) 0;
}

.zulema-megamenu__inner {
	display: flex;
	flex-wrap: wrap;
	gap: var(--sp-3);
}

.zulema-megamenu__list {
	display: flex;
	flex-wrap: wrap;
	list-style: none;
	gap: var(--sp-2) var(--sp-5);
}

.zulema-submenu__link {
	font-size: var(--fs-small);
	color: var(--color-fg);
	display: block;
	padding: 4px 0;
}

.zulema-submenu__link:hover {
	text-decoration: none;
	color: var(--color-muted);
}

/* ---- Mobile menu ---- */
@media (max-width: 1023px) {
	.zulema-topbar__inner {
		grid-template-columns: auto auto 1fr auto;
	}

	.zulema-topbar__burger {
		display: inline-flex;
	}

	.zulema-topbar__search {
		display: none;
	}

	.zulema-navbar {
		display: none;
	}
}

@media (max-width: 640px) {
	.zulema-topbar__brand .zulema-branding__text {
		font-size: 1.2rem;
	}

	.zulema-topbar__actions {
		gap: var(--sp-2);
	}
}
