/* ==========================================================================
   Kinetix — header, department tabs, footer, mobile tab bar (Step 2)
   Mobile first. Desktop layout from 1024px.
   ========================================================================== */

/* ---------- Utilities ---------- */
.kx-only-desktop { display: none !important; }
@media (min-width: 1024px) {
	.kx-only-desktop { display: inline-flex !important; }
	.kx-only-mobile { display: none !important; }
}

/* ---------- Promo bar ---------- */
.kx-promo {
	background: var(--kx-maroon);
	color: #fff;
	font-size: 11px;
	line-height: 1.4;
	text-align: center;
	padding: 6px var(--kx-gutter);
}
@media (min-width: 1024px) {
	.kx-promo { font-size: 13px; padding: 9px var(--kx-gutter); }
}

/* ---------- Header ---------- */
.kx-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: #fff;
	border-bottom: 1px solid #EEEEEE;
}
.admin-bar .kx-header { top: 46px; }
@media (min-width: 783px) { .admin-bar .kx-header { top: 32px; } }

.kx-header__bar {
	display: flex;
	align-items: center;
	gap: 8px;
	padding-top: 10px;
	padding-bottom: 6px;
}

.kx-brand { display: flex; align-items: center; flex: none; }
.kx-brand__logo { display: none; }
.kx-brand__mark { width: 36px; height: 36px; border-radius: 8px; }
.kx-brand__name { font-family: var(--kx-font-title); font-weight: 800; font-size: 18px; letter-spacing: 0.06em; }

/* Search */
.kx-search {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	align-items: center;
	height: 40px;
	border: 2px solid var(--kx-ink);
	border-radius: var(--kx-pill);
	overflow: hidden;
	background: #fff;
}
.kx-search__input {
	flex: 1 1 auto;
	min-width: 0;
	height: 100%;
	border: 0;
	padding: 0 12px;
	font-size: 14px;
	background: transparent;
	outline: none;
	-webkit-appearance: none;
	appearance: none;
}
.kx-search__input::-webkit-search-cancel-button { display: none; }
.kx-search__btn {
	flex: none;
	width: 44px;
	height: 32px;
	margin: 0 3px;
	border: 0;
	border-radius: var(--kx-pill);
	background: var(--kx-ink);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
}
.kx-search:focus-within { box-shadow: 0 0 0 3px rgba(242, 167, 27, 0.45); }

/* Icons */
.kx-header__icons { display: flex; align-items: center; gap: 2px; flex: none; }
.kx-iconbtn {
	position: relative;
	width: 44px;
	height: 44px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: var(--kx-pill);
	color: var(--kx-ink);
}
.kx-iconbtn:hover { background: #F4F2F0; color: var(--kx-ink); }
.kx-iconbtn--cart .kx-cart-count { position: absolute; top: 4px; right: 2px; }

/* Department tabs (swipe on mobile) */
.kx-dept { border-top: 0; }
.kx-dept__list {
	display: flex;
	gap: 20px;
	margin: 0;
	padding: 0;
	list-style: none;
	overflow-x: auto;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
}
.kx-dept__list::-webkit-scrollbar { display: none; }
.kx-dept__list > li { flex: none; }
.kx-dept__list a {
	display: block;
	padding: 10px 0 9px;
	font-size: 15px;
	font-weight: 500;
	color: #6B6B6B;
	border-bottom: 3px solid transparent;
	white-space: nowrap;
}
.kx-dept__list .current-menu-item > a,
.kx-dept__list .current-product_cat-ancestor > a,
.kx-dept__list .current-menu-ancestor > a {
	color: var(--kx-ink);
	font-weight: 800;
	border-bottom-color: var(--kx-ink);
}
.kx-dept__list .kx-menu-sale > a { color: var(--kx-red-dark); font-weight: 700; }

@media (min-width: 1024px) {
	.kx-header__bar { gap: 32px; padding-top: 14px; padding-bottom: 8px; }
	.kx-brand__logo { display: block; height: 72px; width: auto; border-radius: 10px; }
	.kx-brand__mark { display: none; }
	.kx-search { height: 48px; max-width: 640px; border: 1.5px solid #E2DEDA; background: #F7F5F3; }
	.kx-search__input { padding: 0 20px; font-size: 15px; }
	.kx-search__btn { width: 40px; height: 40px; background: var(--kx-red); }
	.kx-header__icons { margin-left: auto; gap: 4px; }
	.kx-dept__list { gap: 28px; overflow: visible; }
	.kx-dept__list a { font-size: 15px; font-weight: 600; color: var(--kx-ink); padding: 10px 0 12px; }
	.kx-dept__list .current-menu-item > a,
	.kx-dept__list .current-product_cat-ancestor > a,
	.kx-dept__list .current-menu-ancestor > a { border-bottom-color: var(--kx-red); font-weight: 700; }
}

/* ---------- Footer ---------- */
.kx-footer {
	background: var(--kx-footer);
	color: #CFC8C4;
	border-top: 4px solid var(--kx-red);
	font-size: 14px;
}
.kx-footer a { color: #CFC8C4; }
.kx-footer a:hover { color: #fff; }

.kx-footer__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 32px 24px;
	padding-top: 48px;
	padding-bottom: 32px;
}
.kx-footer__brand { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 14px; }
.kx-footer__logo { width: 180px; height: auto; border-radius: 12px; }
.kx-footer__brand p { margin: 0; max-width: 300px; line-height: 1.6; }

.kx-footer__social { display: flex; gap: 8px; }
.kx-footer__social a {
	width: 44px; height: 44px;
	border-radius: var(--kx-pill);
	background: #2A2222;
	color: #fff;
	display: flex; align-items: center; justify-content: center;
}
.kx-footer__social a:hover { background: var(--kx-red); }

.kx-footer__heading {
	margin: 0 0 14px;
	font-family: var(--kx-font-body);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--kx-gold);
}
.kx-footer__menu { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.kx-footer__menu a { display: inline-block; padding: 6px 0; }

@media (min-width: 768px) {
	.kx-footer__grid { grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); gap: 40px; padding-top: 64px; }
	.kx-footer__brand { grid-column: auto; }
}

/* Secure payments row */
.kx-secure {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px 24px;
	padding: 24px 0 32px;
	border-top: 1px solid #2E2626;
}
.kx-secure__text { display: flex; align-items: center; gap: 12px; }
.kx-secure__text strong { display: block; color: #fff; font-size: 15px; }
.kx-secure__text span { font-size: 13px; color: #A99F9A; }
.kx-secure__icon {
	width: 46px; height: 46px; flex: none;
	border-radius: 14px;
	background: rgba(242, 167, 27, 0.14);
	color: var(--kx-gold);
	display: flex; align-items: center; justify-content: center;
}

.kx-pay { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.kx-pay li {
	height: 34px;
	min-width: 56px;
	padding: 0 11px;
	border-radius: 8px;
	background: #fff;
	display: flex; align-items: center; justify-content: center;
	font-family: system-ui, sans-serif;
	font-size: 13px;
	font-weight: 600;
	color: #3C4043;
}
.kx-pay__visa { color: #1A1F71 !important; font-family: Arial, sans-serif !important; font-weight: 900 !important; font-style: italic; font-size: 15px !important; }
.kx-pay__mc span { width: 18px; height: 18px; border-radius: 50%; background: #EB001B; }
.kx-pay__mc span + span { background: #F79E1B; margin-left: -7px; opacity: 0.92; }
.kx-pay__amex { background: #2E77BC !important; color: #fff !important; font-family: Arial, sans-serif !important; font-weight: 900 !important; }
.kx-pay__apple { background: #000 !important; color: #fff !important; box-shadow: inset 0 0 0 1px #3A3A3A; }
.kx-pay__afterpay { background: #B2FCE4 !important; color: #000 !important; font-weight: 800 !important; font-size: 13px !important; letter-spacing: -.01em; }
.kx-pay__klarna { background: #FFB3C7 !important; color: #0B051D !important; font-weight: 800 !important; font-size: 14px !important; }

.kx-footer__bottom { background: var(--kx-maroon); color: #F1D9D9; font-size: 13px; }
.kx-footer__bottom .kx-container {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 6px 16px;
	padding-top: 14px;
	padding-bottom: 14px;
}

/* ---------- Mobile tab bar ---------- */
.kx-tabbar {
	position: fixed;
	left: 0; right: 0; bottom: 0;
	z-index: 60;
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	height: calc(60px + env(safe-area-inset-bottom, 0px));
	padding-bottom: env(safe-area-inset-bottom, 0px);
	background: #fff;
	border-top: 1px solid #EAEAEA;
	box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.04);
}
.kx-tabbar__item {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 2px;
	color: #5A5A5A;
	font-size: 11px;
	font-weight: 700;
}
.kx-tabbar__item:hover { color: var(--kx-ink); }
.kx-tabbar__item.is-active { color: var(--kx-red); }
.kx-tabbar__icon { position: relative; display: flex; }
.kx-tabbar__icon .kx-cart-count {
	position: absolute;
	top: -6px;
	left: 14px;
	min-width: 18px;
	height: 18px;
	font-size: 10px;
	border: 2px solid #fff;
}

/* Room for the tab bar on mobile */
body { padding-bottom: calc(60px + env(safe-area-inset-bottom, 0px)); }

@media (min-width: 1024px) {
	.kx-tabbar { display: none; }
	body { padding-bottom: 0; }
}

/* ===== Header: logged-in name ===== */
.kx-userbtn { display: inline-flex; align-items: center; gap: 4px; height: 38px; padding: 0 14px; border-radius: 999px; background: #F6F5F4; color: var(--kx-ink, #141414); font-size: 14px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.kx-userbtn:hover { background: #141414; color: #fff; }
.kx-userbtn__hi { font-weight: 500; opacity: .7; }
