/* ============================================================
   SwissTech — Custom Mobile Header
   White background, red (#cc1f1f) accent — brand colour scheme.
   Visible only on ≤1024px. Desktop keeps Elementor header.
   ============================================================ */

/* ── Wrapper ── */
.stp-mh {
	display: none;
	position: sticky;
	top: 0;
	z-index: 9900;
	background: #fff;
	border-bottom: 1px solid #e8e8e8;
	box-shadow: 0 1px 6px rgba(0,0,0,.07);
}
@media (max-width: 1024px) {
	.stp-mh { display: block; }
}

/* ── Inner row ── */
.stp-mh__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0 16px;
	height: 62px;
}

/* ── Logo ── */
.stp-mh__logo {
	display: flex;
	align-items: center;
	text-decoration: none;
	flex-shrink: 0;
}
.stp-mh__logo img,
.stp-mh__logo .custom-logo {
	max-height: 44px;
	max-width: 160px;
	width: auto;
	display: block;
}
.stp-mh__logo-text {
	font-family: var(--swift-font-heading, 'Syne', sans-serif);
	font-size: 1.1rem;
	font-weight: 800;
	color: #161616;
	letter-spacing: -0.02em;
}

/* ── Action icons ── */
.stp-mh__actions {
	display: flex;
	align-items: center;
	gap: 2px;
}

.stp-mh__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border: none;
	background: transparent;
	border-radius: 8px;
	cursor: pointer;
	color: #161616;
	padding: 0;
	transition: background 0.15s, color 0.15s;
	position: relative;
	text-decoration: none;
}
.stp-mh__btn:hover { background: #f5f5f5; color: #cc1f1f; }
.stp-mh__btn svg {
	width: 22px;
	height: 22px;
	stroke: currentColor;
	fill: none;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

/* Cart badge */
.stp-mh__cart-count {
	position: absolute;
	top: 5px; right: 5px;
	min-width: 16px; height: 16px;
	padding: 0 3px;
	background: #cc1f1f;
	color: #fff;
	font-family: var(--swift-font-body, 'Jost', sans-serif);
	font-size: 9px;
	font-weight: 700;
	border-radius: 99px;
	display: flex;
	align-items: center;
	justify-content: center;
	pointer-events: none;
}
.stp-mh__cart-count[data-count="0"] { display: none; }

/* Hamburger lines */
.stp-mh__hamburger { flex-direction: column; gap: 5px; padding: 10px; }
.stp-mh__bar {
	display: block;
	width: 22px; height: 2px;
	background: #161616;
	border-radius: 2px;
	transition: transform 0.25s, opacity 0.2s;
	transform-origin: center;
}
.stp-mh__hamburger.is-open .stp-mh__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.stp-mh__hamburger.is-open .stp-mh__bar:nth-child(2) { opacity: 0; }
.stp-mh__hamburger.is-open .stp-mh__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }


/* ============================================================
   SEARCH BAR — slides in below header on tap
   ============================================================ */
.stp-search-bar {
	display: none;
	position: sticky;
	top: 62px;
	z-index: 9800;
	background: #fff;
	border-bottom: 1px solid #e8e8e8;
	padding: 10px 16px;
	box-shadow: 0 4px 10px rgba(0,0,0,.07);
}
.stp-search-bar.is-open { display: block; }

.stp-search-bar__inner {
	display: flex;
	align-items: center;
	gap: 8px;
	background: #f5f5f5;
	border: 1.5px solid #e8e8e8;
	border-radius: 99px;
	padding: 0 14px;
	transition: border-color 0.15s, background 0.15s;
}
.stp-search-bar__inner:focus-within {
	border-color: #cc1f1f;
	background: #fff;
}
.stp-search-bar__inner svg {
	width: 17px; height: 17px;
	stroke: #999; fill: none;
	stroke-width: 2; stroke-linecap: round;
	flex-shrink: 0;
}
.stp-search-bar__input {
	flex: 1;
	border: none; background: transparent;
	padding: 11px 0;
	font-family: var(--swift-font-body, 'Jost', sans-serif);
	font-size: 15px;
	color: #161616;
	outline: none;
	-webkit-appearance: none;
}
.stp-search-bar__input::placeholder { color: #aaa; }
.stp-search-bar__clear {
	flex-shrink: 0;
	background: none; border: none;
	color: #bbb; font-size: 20px;
	cursor: pointer; padding: 0; line-height: 1;
	display: none;
}
.stp-search-bar__clear.visible { display: block; }

/* Results panel */
.stp-search-results {
	display: none;
	position: fixed;
	top: 130px; left: 0; right: 0; bottom: 0;
	z-index: 9700;
	background: #fff;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	border-top: 1px solid #ebebeb;
}
.stp-search-results.is-open { display: block; }

.stp-search-results__msg {
	padding: 24px 20px;
	text-align: center;
	color: #888;
	font-family: var(--swift-font-body, 'Jost', sans-serif);
	font-size: 14px;
}

.stp-search-item {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 14px 16px;
	border-bottom: 1px solid #f2f2f2;
	text-decoration: none;
	transition: background 0.12s;
}
.stp-search-item:active { background: #fafafa; }

.stp-search-item__img {
	flex-shrink: 0;
	width: 56px; height: 56px;
	object-fit: cover;
	border-radius: 8px;
	border: 1px solid #eee;
	background: #f5f5f5;
}
.stp-search-item__info { flex: 1; min-width: 0; }
.stp-search-item__name {
	display: block;
	font-family: var(--swift-font-body, 'Jost', sans-serif);
	font-size: 13px; font-weight: 700; color: #161616;
	line-height: 1.4; margin-bottom: 4px;
	overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.stp-search-item__price {
	display: block;
	font-family: var(--swift-font-body, 'Jost', sans-serif);
	font-size: 13px; font-weight: 700; color: #cc1f1f;
}

.stp-search-results__footer {
	display: block;
	padding: 14px 16px;
	text-align: center;
	font-family: var(--swift-font-body, 'Jost', sans-serif);
	font-size: 12px; font-weight: 700;
	text-transform: uppercase; letter-spacing: 0.08em;
	color: #cc1f1f; text-decoration: none;
	border-top: 1px solid #ebebeb;
	background: #fafafa;
}

/* Search backdrop */
.stp-search-backdrop {
	display: none;
	position: fixed;
	inset: 0; z-index: 9690;
	background: rgba(0,0,0,.3);
}
.stp-search-backdrop.is-open { display: block; }


/* ============================================================
   NAV DRAWER — slides in from left
   ============================================================ */
.stp-nav-backdrop {
	display: none;
	position: fixed; inset: 0;
	z-index: 9999;
	background: rgba(0,0,0,.45);
}
.stp-nav-backdrop.is-open { display: block; }

.stp-nav-drawer {
	position: fixed;
	top: 0; left: 0; bottom: 0;
	width: min(300px, 85vw);
	z-index: 10000;
	background: #fff;
	display: flex;
	flex-direction: column;
	transform: translateX(-100%);
	transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	overflow: hidden;
	box-shadow: 4px 0 24px rgba(0,0,0,.15);
}
.stp-nav-drawer.is-open { transform: translateX(0); }

/* Drawer header */
.stp-nav-drawer__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0 16px;
	height: 62px;
	border-bottom: 1px solid #f0f0f0;
	flex-shrink: 0;
}
.stp-nav-drawer__logo img { max-height: 36px; width: auto; }
.stp-nav-drawer__logo-text {
	font-family: var(--swift-font-heading, 'Syne', sans-serif);
	font-size: 1rem; font-weight: 800; color: #161616;
}
.stp-nav-drawer__close {
	display: inline-flex;
	align-items: center; justify-content: center;
	width: 34px; height: 34px;
	border: 1.5px solid #e8e8e8;
	border-radius: 50%;
	background: transparent;
	color: #555; cursor: pointer;
	transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.stp-nav-drawer__close:hover {
	background: #cc1f1f;
	border-color: #cc1f1f;
	color: #fff;
}
.stp-nav-drawer__close svg {
	width: 15px; height: 15px;
	stroke: currentColor; fill: none;
	stroke-width: 2.5; stroke-linecap: round;
}

/* Nav menu */
.stp-nav-drawer__body {
	flex: 1;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	padding-bottom: 24px;
}

.stp-nav-drawer__menu,
.stp-nav-drawer__menu ul {
	list-style: none; margin: 0; padding: 0;
}

.stp-nav-drawer__menu > li > a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 14px 20px;
	font-family: var(--swift-font-body, 'Jost', sans-serif);
	font-size: 13px; font-weight: 700;
	color: #161616;
	text-decoration: none;
	border-bottom: 1px solid #f5f5f5;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	transition: color 0.15s, background 0.15s;
}
.stp-nav-drawer__menu > li > a:hover { color: #cc1f1f; background: #fff8f8; }
.stp-nav-drawer__menu > li.current-menu-item > a { color: #cc1f1f; }

/* Submenu */
.stp-nav-drawer__menu .sub-menu { display: none; background: #fafafa; }
.stp-nav-drawer__menu .sub-menu.is-open { display: block; }

.stp-nav-drawer__menu .sub-menu li a {
	display: block;
	padding: 11px 20px 11px 30px;
	font-family: var(--swift-font-body, 'Jost', sans-serif);
	font-size: 13px; font-weight: 600; color: #555;
	text-decoration: none;
	border-bottom: 1px solid #f0f0f0;
	transition: color 0.15s;
}
.stp-nav-drawer__menu .sub-menu li a:hover { color: #cc1f1f; }

/* Toggle arrow */
.stp-nav-toggle {
	display: inline-flex;
	align-items: center; justify-content: center;
	width: 26px; height: 26px;
	border: 1.5px solid #e8e8e8;
	border-radius: 50%;
	flex-shrink: 0; cursor: pointer;
	transition: transform 0.22s, background 0.15s, border-color 0.15s;
	background: transparent;
}
.stp-nav-toggle svg {
	width: 12px; height: 12px;
	stroke: #888; fill: none;
	stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round;
}
.stp-nav-toggle.is-open { transform: rotate(180deg); background: #cc1f1f; border-color: #cc1f1f; }
.stp-nav-toggle.is-open svg { stroke: #fff; }

/* Drawer footer */
.stp-nav-drawer__foot {
	border-top: 1px solid #f0f0f0;
	padding: 14px 20px;
	flex-shrink: 0;
}
.stp-nav-drawer__foot a {
	display: block;
	font-family: var(--swift-font-body, 'Jost', sans-serif);
	font-size: 13px; font-weight: 600; color: #888;
	text-decoration: none; padding: 5px 0;
	transition: color 0.15s;
}
.stp-nav-drawer__foot a:hover { color: #cc1f1f; }

/* ── Hide on desktop ── */
@media (min-width: 1025px) {
	.stp-mh,
	.stp-search-bar,
	.stp-search-results,
	.stp-search-backdrop,
	.stp-nav-drawer,
	.stp-nav-backdrop { display: none !important; }
}
