/*
Theme Name: LX Touch
Theme URI: https://github.com/lxtouch
Author: LX Touch
Description: Professional B2B manufacturer theme for touch screen kiosk and digital display products.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: GNU General Public License v2 or later
Text Domain: lxtouch
*/

/* ====== Reset & Base ====== */
html, body {
	margin: 0;
	padding: 0;
	font-family: 'Montserrat', 'PingFang SC', 'Microsoft YaHei', Arial, sans-serif;
	font-size: 16px;
	color: #222;
	background: #fff;
}
*, *::before, *::after {
	box-sizing: border-box;
}
a {
	color: #222;
	text-decoration: none;
	transition: color 0.2s;
}
a:hover {
	color: #0b7ad1;
}
ul {
	list-style: none;
	margin: 0;
	padding: 0;
}
img {
	max-width: 100%;
	height: auto;
}

/* ====== Container ====== */
.container {
	width: 1400px;
	max-width: 96%;
	margin: 0 auto;
	padding: 0 20px;
}

/* ====== Topbar ====== */
.topbar {
	background: #f5f5f5;
	border-bottom: 1px solid #e8e8e8;
	height: 50px;
	display: flex;
	align-items: center;
}
.topbar__inner {
	display: flex;
	align-items: center;
	height: 50px;
	justify-content: space-between;
}
.topbar__promo {
	color: #333;
	font-weight: 400;
	font-size: 16px;
	letter-spacing: 0.01em;
}
.topbar__icons {
	display: flex;
	align-items: center;
	gap: 10px;
}
.topbar__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	transition: opacity 0.2s;
}
.topbar__icon svg {
	width: 20px;
	height: 20px;
}
.topbar__icon--facebook {
	background: #2e4f93;
	color: #fff;
}
.topbar__icon--pinterest {
	background: #b60018;
	color: #fff;
}
.topbar__icon--youtube {
	background: #e40000;
	color: #fff;
}
.topbar__icon--more {
	background: #d2d8e2;
	color: #555;
	border: 1px solid #c3cad7;
}
.topbar__icon--facebook svg,
.topbar__icon--pinterest svg,
.topbar__icon--youtube svg {
	fill: #fff;
	width: 18px;
	height: 18px;
}
.topbar__icon--more svg {
	fill: currentColor;
	width: 18px;
	height: 18px;
}
.topbar__icon--dark {
	background: none;
	color: #333;
}
.topbar__icon--dark svg {
	width: 22px;
	height: 22px;
	stroke: #333;
}
.topbar__icon:hover {
	opacity: 0.8;
}

/* Search results page (/search.html) */
.lx-search-page { padding: 48px 0 64px; }
.lx-search-page__header { margin-bottom: 32px; }
.lx-search-page__form {
	display: flex;
	gap: 0;
	max-width: 560px;
	margin-bottom: 16px;
}
.lx-search-page__input {
	flex: 1;
	padding: 10px 16px;
	border: 1px solid #d0d5de;
	border-right: none;
	border-radius: 4px 0 0 4px;
	font-size: 15px;
	outline: none;
}
.lx-search-page__input:focus {
	border-color: #e02020;
}
.lx-search-page__btn {
	padding: 10px 22px;
	background: #e02020;
	color: #fff;
	border: none;
	border-radius: 0 4px 4px 0;
	font-size: 15px;
	cursor: pointer;
}
.lx-search-page__btn:hover { background: #b81010; }
.lx-search-page__query-hint { color: #555; font-size: 14px; }
.lx-search-page__count { font-size: 14px; color: #666; margin-bottom: 24px; }
.lx-search-page__empty,
.lx-search-page__hint { color: #888; font-size: 15px; margin-top: 24px; }
.lx-search-page__grid { margin-top: 0; }

.lx-topbar-modal {
	position: fixed;
	inset: 0;
	display: none;
	z-index: 20000;
}
.lx-topbar-modal.is-open {
	display: block;
}
.lx-topbar-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.45);
}
.lx-topbar-modal__panel {
	position: relative;
	width: min(1500px, 96vw);
	margin: 130px auto 0;
	background: linear-gradient(90deg, #0c1118 0%, #111a22 100%);
	color: #fff;
	border-radius: 14px;
	border: 1px solid rgba(255, 255, 255, 0.12);
	box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
	overflow: hidden;
}
.lx-topbar-modal__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 22px 30px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.lx-topbar-modal__title {
	font-size: 36px;
	font-weight: 700;
	line-height: 1.2;
}
.lx-topbar-modal__close {
	background: transparent;
	border: 0;
	color: rgba(255, 255, 255, 0.6);
	font-size: 44px;
	line-height: 1;
	cursor: pointer;
}
.lx-topbar-modal__close:hover {
	color: #fff;
}
.lx-topbar-modal__body {
	padding: 34px 30px 30px;
}
.lx-topbar-modal__grid {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 24px;
}
.lx-topbar-modal__item {
	height: 180px;
	border: 1px solid rgba(255, 255, 255, 0.15);
	border-radius: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	gap: 14px;
	color: #fff;
	transition: border-color 0.2s ease, transform 0.2s ease;
}
.lx-topbar-modal__item:hover {
	border-color: rgba(255, 255, 255, 0.35);
	transform: translateY(-2px);
}
.lx-topbar-modal__icon {
	width: 70px;
	height: 70px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	font-size: 28px;
	line-height: 1;
}
.lx-topbar-modal__icon.is-pinterest { background: #b60018; }
.lx-topbar-modal__icon.is-youtube { background: #e40000; }
.lx-topbar-modal__icon.is-facebook { background: #2e4f93; }
.lx-topbar-modal__icon.is-linkedin { background: #2d6f9d; }
.lx-topbar-modal__icon.is-instagram { background: #a92a73; }
.lx-topbar-modal__icon.is-twitter { background: #000; }
.lx-topbar-modal__icon.is-vk { background: #1e78d6; }
.lx-topbar-modal__icon.is-reddit { background: #ec4c02; }
.lx-topbar-modal__icon.is-whatsapp { background: #23ad5b; }
.lx-topbar-modal__fallback {
	font-size: 26px;
	font-weight: 700;
}
.lx-topbar-modal__name {
	font-size: 17px;
	font-weight: 500;
	color: #f1f3f5;
	text-align: center;
	padding: 0 8px;
	word-break: break-word;
}

.lx-topbar-search {
	max-height: 0;
	overflow: hidden;
	background: linear-gradient(90deg, #0c1118 0%, #111a22 100%);
	transition: max-height 0.28s ease;
	border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.lx-topbar-search.is-open {
	max-height: 190px;
}
.lx-topbar-search__inner {
	width: min(1500px, 96%);
	margin: 0 auto;
	padding: 32px 0 36px;
}
.lx-topbar-search__form {
	height: 78px;
	border: 1px solid rgba(255, 255, 255, 0.16);
	border-radius: 40px;
	display: flex;
	align-items: center;
	padding: 0 24px;
	background: rgba(11, 17, 24, 0.5);
	gap: 12px;
}
.lx-topbar-search__icon {
	color: rgba(255, 255, 255, 0.7);
	font-size: 34px;
	line-height: 1;
}
.lx-topbar-search__input {
	flex: 1;
	height: 100%;
	border: 0;
	outline: none;
	font-size: 36px;
	line-height: 1.2;
	color: #fff;
	background: transparent;
	padding: 0;
}
.lx-topbar-search__input::placeholder {
	color: rgba(255, 255, 255, 0.45);
}

a.unit-list__image.lx-video-has-video {
	position: relative;
	overflow: hidden;
}
.lx-video-play-badge {
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	width: 72px;
	height: 72px;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.38);
	backdrop-filter: blur(1px);
	display: flex;
	align-items: center;
	justify-content: center;
	pointer-events: none;
	z-index: 3;
}
.lx-video-play-badge__triangle {
	width: 0;
	height: 0;
	border-top: 14px solid transparent;
	border-bottom: 14px solid transparent;
	border-left: 22px solid rgba(255, 255, 255, 0.92);
	margin-left: 4px;
}

/* ====== Header ====== */
.site-header {
	background: #fff;
	position: relative;
	z-index: 100;
	border-bottom: 3px solid;
	border-image: linear-gradient(90deg, #0066cc 0%, #0099cc 40%, #00cc99 70%, #66cc33 100%) 1;
}
.header__inner {
	display: flex;
	align-items: center;
	height: 90px;
	justify-content: space-between;
}

/* ====== Logo ====== */
.site-branding {
	flex: 0 0 auto;
}
.site-branding a {
	display: flex;
	align-items: center;
}
.site-logo,
.site-branding img,
.custom-logo {
	display: block;
	height: 70px;
	width: auto;
}

/* ====== Main Navigation ====== */
.main-navigation {
	flex: 1 1 auto;
	display: flex;
	justify-content: flex-end;
}
.nav-menu {
	display: flex;
	align-items: center;
	height: 90px;
	gap: 0;
}
.nav-menu > li {
	position: relative;
}
.nav-menu > li > a {
	display: flex;
	align-items: center;
	height: 90px;
	font-size: 18px;
	font-weight: 700;
	padding: 0 22px;
	color: #111;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	transition: color 0.2s;
	white-space: nowrap;
}
.nav-menu > li > a:hover,
.nav-menu > li > a.is-current {
	color: #0066cc;
}

/* ====== Products Dropdown Arrow ====== */
.menu-item-has-children > a::after {
	content: '';
	display: inline-block;
	width: 0;
	height: 0;
	margin-left: 6px;
	border-left: 5px solid transparent;
	border-right: 5px solid transparent;
	border-top: 5px solid currentColor;
	transition: transform 0.2s;
}
.menu-item-has-children:hover > a::after {
	transform: rotate(180deg);
}

/* ====== Products Submenu ====== */
.sub-menu--products {
	display: none;
	position: absolute;
	right: 0;
	top: 90px;
	min-width: 240px;
	background: #fff;
	box-shadow: 0 8px 32px rgba(0,0,0,0.12);
	border-radius: 0 0 6px 6px;
	padding: 8px 0;
	z-index: 200;
}
.menu-item-has-children:hover > .sub-menu--products {
	display: block;
}
.sub-menu--products li {
	position: relative;
}
.sub-menu--products > .sub-menu__overview > a {
	font-weight: 700;
	color: #0066cc;
	padding: 12px 24px;
	font-size: 15px;
	display: block;
}
.sub-menu--products a {
	display: block;
	padding: 10px 24px;
	font-size: 15px;
	color: #333;
	white-space: nowrap;
	transition: background 0.15s, color 0.15s;
}
.sub-menu--products a:hover {
	background: #f0f7ff;
	color: #0066cc;
}
.sub-menu__group--has-children > a::after {
	content: '\25B6';
	font-size: 10px;
	margin-left: 8px;
	color: #999;
}
.sub-menu__children {
	display: none;
	position: absolute;
	left: 100%;
	top: 0;
	min-width: 200px;
	background: #fff;
	box-shadow: 0 8px 32px rgba(0,0,0,0.12);
	border-radius: 0 6px 6px 6px;
	padding: 8px 0;
	z-index: 210;
}
.sub-menu__group--has-children:hover > .sub-menu__children {
	display: block;
}
.sub-menu__children a {
	padding: 9px 20px;
	font-size: 14px;
}

/* ====== Utility ====== */
.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0,0,0,0);
	white-space: nowrap;
	border: 0;
}

/* ====== Mobile Toggle ====== */
.menu-toggle {
	display: none;
	background: none;
	border: none;
	outline: none;
	cursor: pointer;
	padding: 8px;
}
.burger {
	display: block;
	width: 26px;
	height: 3px;
	background: #222;
	margin: 5px 0;
	border-radius: 2px;
	transition: all 0.2s;
}

/* ====== Mobile Nav ====== */
.mobile-nav {
	display: none;
	position: fixed;
	left: 0;
	top: 0;
	width: 100vw;
	height: 100vh;
	background: rgba(0,0,0,0.45);
	z-index: 9999;
}
.mobile-nav[hidden] {
	display: none !important;
}
.mobile-menu {
	background: #fff;
	width: 80vw;
	max-width: 360px;
	height: 100vh;
	overflow-y: auto;
	padding: 24px 0;
	box-shadow: 2px 0 16px rgba(0,0,0,0.08);
}
.mobile-menu > li {
	border-bottom: 1px solid #f0f0f0;
}
.mobile-menu a {
	display: block;
	padding: 14px 28px;
	font-size: 16px;
	color: #222;
	font-weight: 600;
}
.mobile-menu .sub-menu {
	display: none;
	background: #f9f9f9;
}
.mobile-menu .menu-item-has-children.open > .sub-menu {
	display: block;
}
.mobile-menu .sub-menu a {
	padding-left: 44px;
	font-size: 14px;
	font-weight: 400;
}

/* ====== Responsive ====== */
@media (max-width: 1200px) {
	.container {
		width: 100%;
		max-width: 100%;
		padding: 0 16px;
	}
	.nav-menu > li > a {
		font-size: 16px;
		padding: 0 14px;
	}
	.site-logo,
	.site-branding img,
	.custom-logo {
		height: 56px;
	}
	.header__inner {
		height: 76px;
	}
	.nav-menu {
		height: 76px;
	}
	.nav-menu > li > a {
		height: 76px;
	}
}
@media (max-width: 900px) {
	.main-navigation {
		display: none;
	}
	.menu-toggle {
		display: block;
	}
	.mobile-nav:not([hidden]) {
		display: block;
	}
	.header__inner {
		height: 64px;
	}
	.site-logo,
	.site-branding img,
	.custom-logo {
		height: 48px;
	}
	.topbar__promo {
		font-size: 13px;
	}
	.topbar {
		height: 40px;
	}
	.topbar__inner {
		height: 40px;
	}
	.topbar__icon {
		width: 28px;
		height: 28px;
	}
	.topbar__icon svg {
		width: 16px;
		height: 16px;
	}
	.lx-topbar-modal__panel {
		margin-top: 80px;
		width: min(96vw, 680px);
	}
	.lx-topbar-modal__head {
		padding: 16px 18px;
	}
	.lx-topbar-modal__title {
		font-size: 24px;
	}
	.lx-topbar-modal__close {
		font-size: 34px;
	}
	.lx-topbar-modal__body {
		padding: 18px;
	}
	.lx-topbar-modal__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 14px;
	}
	.lx-topbar-modal__item {
		height: 132px;
	}
	.lx-topbar-modal__icon {
		width: 52px;
		height: 52px;
		font-size: 22px;
	}
	.lx-topbar-modal__name {
		font-size: 15px;
	}
	.lx-topbar-search__inner {
		padding: 18px 0 22px;
	}
	.lx-topbar-search__form {
		height: 56px;
		padding: 0 16px;
	}
	.lx-topbar-search__icon {
		font-size: 24px;
	}
	.lx-topbar-search__input {
		font-size: 24px;
	}
	.lx-video-play-badge {
		width: 56px;
		height: 56px;
	}
	.lx-video-play-badge__triangle {
		border-top-width: 10px;
		border-bottom-width: 10px;
		border-left-width: 16px;
	}
}
@media (max-width: 600px) {
	.topbar__icons {
		gap: 6px;
	}
	.topbar__promo {
		font-size: 12px;
	}
	.mobile-menu {
		width: 100vw;
		max-width: 100vw;
	}
}

/* ====== Hide original-site header/footer elements in mirror content ====== */
.header-position,
[package-type="header"],
[package-type="copyright"],
.unit-header-menu__switch {
	display: none !important;
}
