/* =============================================================
   Kiehl's — header: announcement bar, utility row, primary nav,
   mega menu, mobile bar, drawer, search modal.
   Reference: black header, centered logo 234x53, nav 16px
   Roboto Condensed, utility 11px uppercase.
   ============================================================= */

/* ---------------- announcement bar ---------------- */

.k-announce {
	background: var(--k-black);
	color: var(--k-white);
	text-align: center;
	position: relative;
	z-index: 101;
}

.k-announce__inner {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 37px;
	padding: 7px 15px;
}

.k-announce__link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--k-white);
	font: 700 14px/1.4 var(--k-font);
	letter-spacing: 0.01em;
}

.k-announce__strong {
	display: inline;
}

.k-announce__kicker {
	font-weight: 700;
	opacity: 0.95;
}

.k-announce__tail {
	font-weight: 400;
	font-size: 12px;
	opacity: 0.85;
}

.k-announce__link:hover {
	color: var(--k-white);
}

/* ---------------- header shell ---------------- */

.k-header {
	background: var(--k-black);
	color: var(--k-white);
	position: relative;
	z-index: 100;
}

.k-header a {
	color: inherit;
}

.k-header__main {
	background: var(--k-black);
}

.k-header__inner {
	max-width: var(--k-container);
}

.k-header__utility {
	display: none;
}

.k-header__claim {
	font: 400 11px/1 var(--k-font-cond);
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.85);
	white-space: nowrap;
}

.k-header__utility-left,
.k-header__utility-right {
	display: flex;
	align-items: center;
	gap: 22px;
	flex: 1 0 0%;
}

.k-header__utility-right {
	justify-content: flex-end;
}

.k-logo {
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.k-logo img {
	width: 234px;
	height: 53px;
	object-fit: contain;
}

.k-logo__text {
	font: 700 26px var(--k-font-serif);
	color: var(--k-white);
}

.k-util-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font: 400 11px/1 var(--k-font-cond);
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--k-white);
	white-space: nowrap;
}

.k-util-link:hover {
	color: var(--k-gray-100);
	text-decoration: none;
}

.k-util-link__icon {
	width: 14px;
	height: 14px;
}

.k-util-link--cart {
	margin-left: 6px;
	padding-left: 18px;
	border-left: 1px solid rgba(255, 255, 255, 0.45);
}

/* ---------------- mobile bar ---------------- */

.k-header__mobile-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	min-height: 60px;
	padding: 6px 15px;
	background: var(--k-black);
}

.k-logo--mobile img {
	width: 150px;
	height: 34px;
}

.k-header__mobile-actions {
	display: flex;
	align-items: center;
	gap: 4px;
}

.k-iconbtn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
	background: transparent;
	border: 0;
	color: var(--k-white);
	cursor: pointer;
	position: relative;
}

.k-iconbtn .k-icon {
	width: 22px;
	height: 22px;
}

.k-burger {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
	background: transparent;
	border: 0;
	color: var(--k-white);
	cursor: pointer;
}

.k-burger__box {
	display: inline-flex;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 22px;
	height: 16px;
}

.k-burger__box span {
	display: block;
	height: 1.5px;
	width: 100%;
	background: currentColor;
	transition: transform var(--k-transition), opacity var(--k-transition);
}

.k-burger[aria-expanded='true'] .k-burger__box span:nth-child(1) {
	transform: translateY(6.5px) rotate(45deg);
}

.k-burger[aria-expanded='true'] .k-burger__box span:nth-child(2) {
	opacity: 0;
}

.k-burger[aria-expanded='true'] .k-burger__box span:nth-child(3) {
	transform: translateY(-6.5px) rotate(-45deg);
}

.k-cart-count {
	position: absolute;
	top: 2px;
	right: 2px;
	min-width: 16px;
	height: 16px;
	padding: 0 3px;
	border-radius: 8px;
	background: var(--k-white);
	color: var(--k-black);
	font: 700 10px/16px var(--k-font-cond);
	text-align: center;
}

/* ---------------- desktop nav ---------------- */

.k-header__navrow {
	display: none;
}

.k-header__navrow .k-search {
	flex: 0 0 150px;
	width: 150px;
	height: 38px;
	border-color: var(--k-white);
}

.k-header__navrow .k-search__input {
	height: 36px;
	font-size: 12px;
	padding-left: 10px;
}

.k-header__navrow .k-search__submit {
	flex: 0 0 30px;
	width: 30px;
}

.k-header__navwrap {
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 103px;
}

.k-nav {
	flex: 1 1 auto;
	min-width: 0;
}

.k-nav__list {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0;
	height: 100%;
}

.k-nav__item {
	display: flex;
	align-items: center;
	position: static;
	flex: 0 0 auto;
}

.k-nav__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 14px 8px;
	color: var(--k-white);
	font: 400 16px/1.3 var(--k-font-cond);
	text-transform: uppercase;
	letter-spacing: 0;
	text-align: center;
	white-space: normal;
	max-width: 168px;
	position: relative;
	transition: color var(--k-transition);
}

.k-nav__item--has-children > .k-nav__link::after {
	content: '';
	display: none;
}

.k-nav__item:first-child > .k-nav__link {
	color: var(--k-accent);
}

.k-nav__link:hover,
.k-nav__item.is-open > .k-nav__link {
	color: var(--k-white);
	text-decoration: none;
}

.k-nav__link:focus {
	outline: none;
}

.k-nav__link:focus-visible {
	outline: 2px solid var(--k-white);
	outline-offset: -3px;
}

.k-nav__item.is-open > .k-nav__link::before {
	content: '';
	position: absolute;
	left: 50%;
	bottom: 0;
	width: 10px;
	height: 10px;
	margin-left: -5px;
	background: var(--k-gray-100);
	border: 1px solid var(--k-gray-200);
	border-bottom: 0;
	border-left: 0;
	transform: rotate(-45deg) translateY(5px);
	transform-origin: 0 0;
	z-index: 5;
}

/* ---------------- mega menu ---------------- */

.k-mega {
	position: absolute;
	left: 0;
	right: 0;
	top: 100%;
	background: var(--k-white);
	border-top: 1px solid var(--k-gray-200);
	color: var(--k-black);
	z-index: 40;
	box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
	display: none;
}

.k-mega.is-visible {
	display: block;
}

.k-mega__panel {
	padding: 30px 0 36px;
}

.k-mega__inner {
	display: flex;
	gap: 40px;
	align-items: flex-start;
}

.k-mega__cols {
	display: flex;
	gap: 0;
	flex: 1 1 auto;
	align-items: flex-start;
}

.k-mega__col {
	background: transparent;
	flex: 1 1 0%;
	min-width: 0;
	max-width: none;
	padding: 0 24px 0 0;
}

.k-mega__col-title {
	display: block;
	font: 700 12px/1.4 var(--k-font-cond);
	margin: 0 0 12px;
	color: var(--k-black);
	text-decoration: none;
	text-transform: uppercase;
	letter-spacing: 0.06em;
}

a.k-mega__col-title:hover {
	text-decoration: underline;
}

.k-mega__links {
	display: flex;
	flex-direction: column;
	gap: 0;
}

.k-mega__links a {
	display: inline-block;
	font: 400 14px/2.3 var(--k-font);
	text-decoration: none;
	color: var(--k-ink);
}

.k-mega__links a:hover {
	color: var(--k-black);
	text-decoration: underline;
}

.k-mega__feature {
	flex: 0 0 34%;
	max-width: 380px;
}

.k-mega__feature-link {
	display: block;
	color: var(--k-black);
	text-decoration: none;
}

.k-mega__feature-media {
	display: block;
	overflow: hidden;
}

.k-mega__feature-img {
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	display: block;
}

.k-mega__feature-body {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding-top: 12px;
}

.k-mega__feature-kicker {
	font: 700 10px/1 var(--k-font-cond);
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--k-gray-600);
}

.k-mega__feature-title {
	font: 700 15px/1.3 var(--k-font-cond);
	text-transform: uppercase;
}

.k-mega__feature-text {
	font: 400 12px/1.5 var(--k-font);
	color: var(--k-gray-600);
}

.k-mega__feature-cta {
	display: none;
}

.k-mega__footer {
	display: none;
}

/* ---------------- drawer ---------------- */

.k-drawer {
	position: fixed;
	inset: 0;
	z-index: 300;
}

.k-drawer[hidden] {
	display: none;
}

.k-drawer__scrim {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.55);
}

.k-drawer__sheet {
	position: absolute;
	top: 0;
	left: 0;
	bottom: 0;
	width: 100%;
	max-width: 420px;
	background: var(--k-white);
	color: var(--k-black);
	display: flex;
	flex-direction: column;
	transform: translateX(-100%);
	transition: transform 0.28s ease;
	box-shadow: 4px 0 24px rgba(0, 0, 0, 0.25);
}

.k-drawer.is-open .k-drawer__sheet {
	transform: translateX(0);
}

.k-drawer__head {
	display: flex;
	align-items: center;
	gap: 8px;
	min-height: 56px;
	padding: 0 8px;
	border-bottom: 1px solid var(--k-gray-200);
	flex: 0 0 auto;
}

.k-drawer__heading {
	flex: 1 1 auto;
	font: 700 15px/1.2 var(--k-font-cond);
	letter-spacing: 0.06em;
	text-transform: uppercase;
	margin: 0;
	text-align: center;
}

.k-drawer__back,
.k-drawer__close {
	width: 40px;
	height: 40px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: transparent;
	border: 0;
	color: var(--k-black);
	cursor: pointer;
	padding: 0;
	flex: 0 0 40px;
}

.k-drawer__default-logo {
	position: absolute;
	left: 50%;
	transform: translateX(-50%);
}

.k-drawer__body {
	flex: 1 1 auto;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
}

.k-drawer__search {
	display: flex;
	margin: 14px 16px;
	border: 1px solid var(--k-gray-300);
}

.k-drawer__search input {
	flex: 1 1 auto;
	min-width: 0;
	height: 40px;
	border: 0;
	padding: 0 12px;
	font-size: 14px;
}

.k-drawer__search input:focus {
	outline: none;
}

.k-drawer__search button {
	flex: 0 0 40px;
	width: 40px;
	height: 40px;
	border: 0;
	background: transparent;
	cursor: pointer;
	color: var(--k-black);
}

.k-drawer__list {
	display: flex;
	flex-direction: column;
}

.k-drawer__item {
	border-bottom: 1px solid var(--k-gray-200);
}

.k-drawer__parent,
.k-drawer__link,
.k-drawer__sublink {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	width: 100%;
	padding: 15px 16px;
	background: transparent;
	border: 0;
	color: var(--k-black);
	font: 400 14px/1.4 var(--k-font-cond);
	letter-spacing: 0.03em;
	text-transform: uppercase;
	text-align: left;
	cursor: pointer;
	text-decoration: none;
}

.k-drawer__parent .k-icon,
.k-drawer__link .k-icon,
.k-drawer__sublink .k-icon {
	width: 14px;
	height: 14px;
	color: var(--k-gray-600);
}

.k-drawer__parent:hover,
.k-drawer__link:hover,
.k-drawer__sublink:hover {
	background: var(--k-gray-100);
	text-decoration: none;
}

.k-drawer__all {
	display: block;
	padding: 15px 16px;
	font: 400 13px/1.4 var(--k-font);
	text-decoration: underline;
	border-bottom: 1px solid var(--k-gray-200);
}

.k-drawer__panel[hidden] {
	display: none;
}

.k-drawer__foot {
	flex: 0 0 auto;
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 14px 16px;
	border-top: 1px solid var(--k-gray-200);
}

/* ---------------- search modal ---------------- */

.k-searchmodal {
	position: fixed;
	inset: 0;
	z-index: 310;
}

.k-searchmodal[hidden] {
	display: none;
}

.k-searchmodal__scrim {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.7);
}

.k-searchmodal__dialog {
	position: relative;
	max-width: 920px;
	margin: 18vh auto 0;
	background: var(--k-white);
	padding: 34px 30px 30px;
	z-index: 1;
}

.k-searchmodal__close {
	position: absolute;
	top: 10px;
	right: 10px;
	width: 40px;
	height: 40px;
	background: transparent;
	border: 0;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.k-searchmodal__form {
	display: flex;
	gap: 10px;
}

.k-searchmodal__input {
	flex: 1 1 auto;
	min-width: 0;
	height: 46px;
	border: 1px solid var(--k-gray-300);
	padding: 0 14px;
	font-size: 16px;
}

.k-searchmodal__input:focus {
	outline: none;
	border-color: var(--k-black);
	box-shadow: inset 0 0 0 1px var(--k-black);
}

.k-searchmodal__hints {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-top: 16px;
}

.k-searchmodal__hints-label {
	font: 700 11px/1 var(--k-font-cond);
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--k-gray-600);
}

.k-searchmodal__hint {
	font-size: 12px;
	text-decoration: underline;
	color: var(--k-gray-800);
}

/* ---------------- desktop layout ---------------- */

@media (min-width: 1024px) {
	.k-header__mobile-bar {
		display: none;
	}

	.k-header__inner {
		padding-top: 8px;
	}

	.k-header__utility {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 20px;
		min-height: 76px;
	}

	.k-header__navrow {
		display: block;
	}
}

@media (min-width: 1200px) {
	.k-header__navwrap {
		min-height: 103px;
	}

	.k-header__inner {
		padding-top: 8px;
	}
}

@media (max-width: 1023px) {
	.k-logo--mobile img {
		width: 140px;
		height: 32px;
	}
}

@media (max-width: 420px) {
	.k-announce__inner {
		padding: 7px 10px;
	}

	.k-announce__link {
		font-size: 12px;
		gap: 5px;
	}

	.k-announce__tail {
		font-size: 10px;
	}

	.k-logo--mobile img {
		width: 120px;
		height: 28px;
	}
}

/* Lead fix 2026-11-12: mega menu aligned to the 1200px container and tighter columns
   (client feedback: sub-items were spread too far apart). */
.k-mega__panel { padding: 34px 0 38px; }
.k-mega__inner.k-container { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; align-items: start; }
.k-mega__cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 28px 40px; flex: none; }
.k-mega__col { flex: none; padding: 0; }
.k-mega__links a { line-height: 2.05; }
.k-mega__feature { flex: none; width: auto; max-width: none; }
@media (max-width: 1024px) {
  .k-mega__inner.k-container { grid-template-columns: minmax(0, 1fr) 260px; gap: 28px; }
  .k-mega__cols { gap: 20px 24px; }
}

/* Lead fix 2026-11-12 (v2): compact simple mega panels — no stretched columns,
   keep the list close to the feature card. */
.k-mega__inner.k-container { grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; }
.k-mega__col { max-width: 290px; }
.k-mega__cols { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 18px 32px; align-items: start; }
.k-mega__col-title { margin-bottom: 10px; }
.k-mega__links a { line-height: 1.95; }
.k-mega__feature { max-width: 300px; }
@media (max-width: 1024px) {
  .k-mega__inner.k-container { grid-template-columns: minmax(0, 1fr) 260px; gap: 24px; }
}

/* Lead fix 2026-11-12 (v3): simple menus (no grandchildren) open as a compact
   dropdown instead of a full-width mega sheet with a stranded promo image. */
.k-mega--simple { left: 0; right: auto; width: min(680px, calc(100vw - 40px)); }
.k-mega--simple .k-mega__panel { padding: 26px 0 28px; }
.k-mega--simple .k-mega__inner.k-container { width: 100%; max-width: none; padding: 0 24px; display: block; }
.k-mega--simple .k-mega__feature { display: none; }
.k-mega--simple .k-mega__cols { display: block; }
.k-mega--simple .k-mega__col { max-width: none; padding: 0; }
.k-mega--simple .k-mega__links { columns: 2; column-gap: 32px; }
.k-mega--simple .k-mega__links a { line-height: 2.0; }

/* Reference mega layout: 3-column panels have no promo tile (was pushing the
   columns apart / leaving a large empty gap on the right). */
.k-mega--no-feature .k-mega__inner.k-container { display: block; }
.k-mega--no-feature .k-mega__cols { max-width: 1040px; margin: 0; }
.k-mega__cols { gap: 18px 28px; }
.k-mega__col-title { margin-bottom: 10px; }

/* Tighten mega column rhythm to match the reference (columns ~230px). */
.k-mega__cols { grid-template-columns: repeat(auto-fit, minmax(160px, 230px)); gap: 18px 32px; justify-content: start; }
.k-mega__col { max-width: 230px; }
