/*
Theme Name: JM LED Lighting
Theme URI: https://www.jmled-lighting.com/
Author: Zhongshahn JM(QG) LED Lighting CO., LTD
Description: Custom B2B catalog theme for Zhongshahn JM(QG) LED Lighting CO., LTD — LED panel light manufacturer. Front-end presentation only; products, projects, inquiries and settings are managed by the JM LED Core plugin.
Version: 1.0.0
Requires at least: 6.5
Tested up to: 7.1
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: jmled
Tags: business, catalog, b2b, custom-menu, custom-logo
*/

/* ==========================================================================
   1. Design tokens
   ========================================================================== */

:root {
	/* Brand */
	--jm-black: #000000;
	--jm-dark: #1c1c1c;
	--jm-dark-2: #242424;
	--jm-accent: #ff6600;
	--jm-accent-dark: #e35a00;
	--jm-green: #4f9d3a;

	/* Neutrals */
	--jm-text: #333333;
	--jm-text-soft: #666666;
	--jm-muted: #8c8c8c;
	--jm-line: #e4e4e4;
	--jm-line-dark: #333333;
	--jm-bg: #ffffff;
	--jm-bg-soft: #f4f4f4;
	--jm-bg-media: #f0f0f0;

	/* Type */
	--jm-font: Arial, "Helvetica Neue", Helvetica, "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", sans-serif;
	--jm-font-cn: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", Arial, sans-serif;

	/* Layout */
	--jm-container: 1200px;
	--jm-container-wide: 1400px;
	--jm-gutter: 20px;
	--jm-radius: 2px;

	/* Rhythm */
	--jm-section-pad: 64px;
	--jm-section-pad-sm: 40px;
}

/* ==========================================================================
   2. Reset and base
   ========================================================================== */

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: var(--jm-bg);
	color: var(--jm-text);
	font-family: var(--jm-font);
	font-size: 15px;
	line-height: 1.7;
	overflow-x: hidden;
}

img,
video,
iframe {
	max-width: 100%;
	height: auto;
}

img {
	display: block;
	border: 0;
}

a {
	color: inherit;
	text-decoration: none;
	transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

a:hover,
a:focus-visible {
	color: var(--jm-accent);
}

h1, h2, h3, h4, h5, h6 {
	margin: 0 0 0.6em;
	font-weight: 700;
	line-height: 1.3;
	color: #1a1a1a;
}

h1 { font-size: 30px; }
h2 { font-size: 24px; }
h3 { font-size: 19px; }
h4 { font-size: 16px; }

p { margin: 0 0 1em; }

ul, ol { margin: 0 0 1em; padding-left: 1.25em; }

table {
	border-collapse: collapse;
	width: 100%;
}

button,
input,
select,
textarea {
	font: inherit;
	color: inherit;
}

:focus-visible {
	outline: 2px solid var(--jm-accent);
	outline-offset: 2px;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

.skip-link:focus {
	position: fixed;
	top: 8px;
	left: 8px;
	z-index: 1000;
	width: auto;
	height: auto;
	clip: auto;
	padding: 10px 18px;
	background: var(--jm-accent);
	color: #fff;
}

/* ==========================================================================
   3. Layout helpers
   ========================================================================== */

.jm-container {
	width: 100%;
	max-width: var(--jm-container);
	margin: 0 auto;
	padding: 0 var(--jm-gutter);
}

.jm-container--wide {
	max-width: var(--jm-container-wide);
}
.jm-section {
	padding: var(--jm-section-pad) 0;
}

.jm-section--tight {
	padding: var(--jm-section-pad-sm) 0;
}

.jm-section--soft {
	background: var(--jm-bg-soft);
}

.jm-section--dark {
	background: var(--jm-dark);
	color: #b9b9b9;
}

.jm-section--dark h2,
.jm-section--dark h3 {
	color: #ffffff;
}

/* Section heading with the centred rule used throughout the reference site. */
.jm-heading {
	margin: 0 0 34px;
	text-align: center;
}

.jm-heading__title {
	margin: 0;
	font-size: 26px;
	font-weight: 700;
	letter-spacing: 2px;
	text-transform: uppercase;
}

.jm-heading__rule {
	display: block;
	width: 60px;
	height: 3px;
	margin: 12px auto 0;
	background: var(--jm-accent);
}

.jm-section--dark .jm-heading__title {
	color: #ffffff;
}

/* Buttons */
.jm-btn {
	display: inline-block;
	padding: 11px 30px;
	border: 1px solid var(--jm-line);
	background: #fff;
	color: var(--jm-text);
	font-size: 13px;
	letter-spacing: 1px;
	text-transform: uppercase;
	cursor: pointer;
	border-radius: var(--jm-radius);
}

.jm-btn:hover,
.jm-btn:focus-visible {
	background: var(--jm-accent);
	border-color: var(--jm-accent);
	color: #fff;
}

.jm-btn--solid {
	background: var(--jm-accent);
	border-color: var(--jm-accent);
	color: #fff;
}

.jm-btn--solid:hover,
.jm-btn--solid:focus-visible {
	background: var(--jm-accent-dark);
	border-color: var(--jm-accent-dark);
	color: #fff;
}

.jm-btn--dark {
	background: var(--jm-black);
	border-color: var(--jm-black);
	color: #fff;
}

.jm-btn--dark:hover,
.jm-btn--dark:focus-visible {
	background: var(--jm-accent);
	border-color: var(--jm-accent);
}

.jm-more {
	margin-top: 36px;
	text-align: center;
}

/* ==========================================================================
   4. Header
   ========================================================================== */

.jm-header {
	background: var(--jm-black);
}

.jm-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	min-height: 96px;
	padding-top: 12px;
	padding-bottom: 12px;
}

.jm-brand {
	display: flex;
	align-items: center;
	gap: 14px;
	color: #fff;
	min-width: 0;
}

.jm-brand:hover,
.jm-brand:focus-visible {
	color: #fff;
}

.jm-brand__logo {
	flex: none;
	width: 62px;
	height: 62px;
	object-fit: contain;
}

.jm-brand__text {
	min-width: 0;
}

.jm-brand__cn {
	display: block;
	font-family: var(--jm-font-cn);
	font-size: 23px;
	font-weight: 700;
	letter-spacing: 1px;
	line-height: 1.25;
	white-space: nowrap;
}

.jm-brand__en {
	display: block;
	font-size: 15px;
	letter-spacing: 0.4px;
	color: #e8e8e8;
	white-space: nowrap;
}

/* Without the Chinese line the English name is the whole brand block. */
.jm-header--solo .jm-brand__en {
	font-size: 23px;
	font-weight: 700;
	letter-spacing: 0.3px;
	color: #ffffff;
	white-space: normal;
}

.jm-brand__tagline {
	display: block;
	margin-top: 3px;
	font-size: 11.5px;
	letter-spacing: 1.2px;
	text-transform: uppercase;
	color: var(--jm-accent);
	line-height: 1.4;
}

.jm-topbar {
	flex: none;
	display: flex;
	flex-direction: column;
	gap: 5px;
	font-size: 14px;
	line-height: 1.5;
	color: #fff;
	text-align: left;
}

.jm-topbar__item {
	display: flex;
	align-items: center;
	gap: 10px;
	color: #fff;
}

.jm-topbar__item:hover,
.jm-topbar__item:focus-visible {
	color: var(--jm-accent);
}

.jm-topbar__item b {
	font-weight: 700;
	color: #fff;
}

.jm-topbar__icon {
	flex: none;
	width: 24px;
	height: 24px;
}

.jm-topbar__icon--plain {
	width: 24px;
	height: 24px;
	border-radius: 0;
}
/* Navigation */
.jm-nav {
	position: relative;
	z-index: 40;
	background: #fff;
	border-bottom: 1px solid var(--jm-line);
}

.jm-nav__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
}

.jm-nav__list {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	margin: 0;
	padding: 0;
	list-style: none;
}

.jm-nav__list > li {
	position: relative;
}

.jm-nav__list > li > a {
	display: block;
	padding: 16px 26px;
	font-size: 14px;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: #333;
	white-space: nowrap;
}

.jm-nav__list > li > a:hover,
.jm-nav__list > li > a:focus-visible,
.jm-nav__list > li.is-active > a,
.jm-nav__list > li.current-menu-item > a,
.jm-nav__list > li.current-menu-ancestor > a {
	color: var(--jm-accent);
}

/* Dropdown */
.jm-nav__sub {
	position: absolute;
	top: 100%;
	left: 0;
	z-index: 50;
	min-width: 230px;
	margin: 0;
	padding: 8px 0;
	list-style: none;
	background: #fff;
	border: 1px solid var(--jm-line);
	box-shadow: 0 10px 26px rgba(0, 0, 0, 0.12);
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
}

.jm-nav__list > li:hover > .jm-nav__sub,
.jm-nav__list > li:focus-within > .jm-nav__sub {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.jm-nav__sub a {
	display: block;
	padding: 9px 18px;
	font-size: 14px;
	color: #444;
}

.jm-nav__sub a:hover,
.jm-nav__sub a:focus-visible {
	background: var(--jm-bg-soft);
	color: var(--jm-accent);
}

.jm-search {
	flex: none;
	display: flex;
	align-items: center;
	border: 1px solid var(--jm-line);
	background: #fafafa;
}

.jm-search__input {
	width: 190px;
	padding: 9px 12px;
	border: 0;
	background: transparent;
	font-size: 13px;
	outline: none;
}

.jm-search__input:focus {
	background: #fff;
}

.jm-search__btn {
	flex: none;
	width: 38px;
	height: 38px;
	border: 0;
	border-left: 1px solid var(--jm-line);
	background: #f0f0f0;
	cursor: pointer;
	font-size: 15px;
	line-height: 1;
	color: #555;
}

.jm-search__btn:hover {
	background: var(--jm-accent);
	color: #fff;
}

/* Mobile toggle */
.jm-nav__toggle {
	display: none;
	width: 46px;
	height: 42px;
	margin: 6px 0;
	border: 1px solid var(--jm-line);
	background: #fff;
	cursor: pointer;
}

.jm-nav__toggle span,
.jm-nav__toggle span::before,
.jm-nav__toggle span::after {
	display: block;
	width: 20px;
	height: 2px;
	background: #333;
	content: "";
	position: relative;
	margin: 0 auto;
}

.jm-nav__toggle span::before { top: -6px; }
.jm-nav__toggle span::after { top: 4px; }

/* ==========================================================================
   5. Inner page banner + breadcrumb
   ========================================================================== */

.jm-banner {
	position: relative;
	height: 250px;
	background-color: #eceaea;
	background-size: cover;
	background-position: center 35%;
	background-repeat: no-repeat;
}

.jm-banner__overlay {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(180deg, rgba(0, 0, 0, 0.42), rgba(0, 0, 0, 0.34));
}

.jm-banner__inner {
	width: 100%;
	max-width: var(--jm-container);
	padding: 0 var(--jm-gutter);
	text-align: center;
}

.jm-banner__title {
	margin: 0;
	font-weight: 700;
	font-size: 34px;
	letter-spacing: 3px;
	text-transform: uppercase;
	color: #fff;
	text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
}

.jm-banner__sub {
	margin: 8px 0 0;
	font-size: 14px;	letter-spacing: 0.6px;
	color: #ffffff;
	text-shadow: 0 1px 6px rgba(0, 0, 0, 0.55);
}

.jm-crumb {
	border-bottom: 1px solid var(--jm-line);
	background: #fff;
}

.jm-crumb__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	flex-wrap: wrap;
}

.jm-crumb__trail {
	margin: 0;
	padding: 14px 0;
	font-size: 13px;
	color: var(--jm-muted);
}

.jm-crumb__trail a {
	color: var(--jm-text-soft);
}

.jm-crumb__trail a:hover {
	color: var(--jm-accent);
}

.jm-crumb__tabs {
	display: flex;
	flex-wrap: wrap;
	margin: 0;
	padding: 0;
	list-style: none;
}

.jm-crumb__tabs a {
	display: block;
	padding: 14px 20px;
	border-left: 1px solid var(--jm-line);
	font-size: 14px;
	color: #555;
}

.jm-crumb__tabs li:last-child a {
	border-right: 1px solid var(--jm-line);
}

.jm-crumb__tabs a:hover,
.jm-crumb__tabs .is-current a {
	background: var(--jm-accent);
	color: #fff;
}

/* ==========================================================================
   6. Hero slider (home)
   ========================================================================== */

.jm-hero {
	position: relative;
	overflow: hidden;
	background: #f7f7f5;
}

.jm-hero__track {
	display: flex;
	transition: transform 0.6s ease;
}

.jm-hero__slide {
	flex: 0 0 100%;
	min-width: 100%;
}

.jm-hero__slide img {
	width: 100%;
	height: auto;
	display: block;
}

.jm-hero__nav {
	position: absolute;
	left: 50%;
	bottom: 18px;
	transform: translateX(-50%);
	display: flex;
	align-items: center;
	gap: 9px;
	z-index: 5;
	padding: 6px 12px;
	border-radius: 20px;
	background: rgba(255, 255, 255, 0.72);
	backdrop-filter: blur(4px);
}

.jm-hero__dot {
	position: relative;
	width: 11px;
	height: 11px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.22);
	cursor: pointer;
	overflow: hidden;
	transition: width 0.3s ease, background-color 0.2s ease;
}

.jm-hero__dot.is-active {
	background: rgba(0, 0, 0, 0.16);
}

/* The active dot stretches into a bar that fills over one interval, so it is
   obvious at a glance that the slideshow is running and how long is left. */
.jm-hero__dot.is-active {
	width: 40px;
	border-radius: 6px;
}

.jm-hero__dot-fill {
	position: absolute;
	inset: 0;
	transform: scaleX(0);
	transform-origin: left center;
	background: var(--jm-accent);
}

.jm-hero__dot.is-active .jm-hero__dot-fill {
	animation: jm-hero-progress var(--jm-hero-interval, 5s) linear forwards;
}

.jm-hero.is-paused .jm-hero__dot-fill {
	animation-play-state: paused;
}

@keyframes jm-hero-progress {
	from { transform: scaleX(0); }
	to   { transform: scaleX(1); }
}

/* With the slideshow switched off there is no progress to show, so the current
   slide reads as a plain orange marker instead of a half-filled bar. */
.jm-hero.no-autoplay .jm-hero__dot.is-active {
	width: 26px;
	background: var(--jm-accent);
}

.jm-hero.no-autoplay .jm-hero__dot-fill {
	display: none;
}

/* Play / pause */
.jm-hero__playpause {
	position: relative;
	width: 20px;
	height: 20px;
	margin-left: 3px;
	padding: 0;
	border: 0;
	background: none;
	cursor: pointer;
}

.jm-hero__pp-icon {
	display: block;
	width: 100%;
	height: 100%;
}

/* Two bars while playing, a triangle while paused. */
.jm-hero__playpause.is-playing .jm-hero__pp-icon {
	background-image: linear-gradient(to right, #333 0 5px, transparent 5px 8px, #333 8px 13px, transparent 13px);
	background-repeat: no-repeat;
	background-position: center;
	background-size: 13px 12px;
}
.jm-hero__playpause:not(.is-playing) .jm-hero__pp-icon {
	background-image: linear-gradient(to right, #333 0 100%);
	clip-path: polygon(18% 8%, 18% 92%, 88% 50%);
	background-size: 12px 12px;
}

.jm-hero__playpause:hover {
	opacity: 0.7;
}

.jm-hero__arrow {
	position: absolute;
	top: 50%;
	z-index: 5;
	transform: translateY(-50%);
	width: 44px;
	height: 44px;
	border: 0;
	background: rgba(0, 0, 0, 0.28);
	color: #fff;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	opacity: 0;
	transition: opacity 0.2s ease;
}

.jm-hero:hover .jm-hero__arrow,
.jm-hero__arrow:focus-visible {
	opacity: 1;
}

.jm-hero__arrow--prev { left: 16px; }
.jm-hero__arrow--next { right: 16px; }

/* Certification strip under the hero */
.jm-certstrip {
	padding: 14px 0;
	background: #fff;
	border-bottom: 1px solid var(--jm-line);
	text-align: center;
}

.jm-certstrip img {
	display: inline-block;
	height: 40px;
	width: auto;
	/* The strip is drawn in white for the dark footer; invert it here so the
	   same file reads correctly on the light band under the hero. */
	filter: invert(1);
}

/* ==========================================================================
   7. Product grid and cards
   ========================================================================== */

.jm-grid {
	display: grid;
	gap: 22px;
}

.jm-grid--products {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.jm-grid--3 {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.jm-card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid var(--jm-line);
	border-radius: var(--jm-radius);
	overflow: hidden;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.jm-card:hover {
	border-color: var(--jm-accent);
	box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08);
}

.jm-card__media {
	display: block;
	aspect-ratio: 4 / 3.4;
	background: var(--jm-bg-media);
	overflow: hidden;
}

.jm-card__media img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.jm-card__body {
	padding: 12px 12px 16px;
	text-align: center;
}

.jm-card__title {
	margin: 0;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.45;
	color: #1a1a1a;
}

.jm-card__title a:hover {
	color: var(--jm-accent);
}

.jm-card__cat {
	margin: 5px 0 0;
	font-size: 12px;
	color: var(--jm-muted);
}

.jm-card__more {
	display: inline-block;
	margin-top: 10px;
	font-size: 12px;
	letter-spacing: 0.6px;
	text-transform: uppercase;
	color: var(--jm-accent);
}

/* Pagination */
.jm-pager {
	margin-top: 40px;
	text-align: center;
	font-size: 13px;
	color: var(--jm-muted);
}

.jm-pager__count {
	margin-right: 10px;
}

.jm-pager .page-numbers {
	display: inline-block;
	min-width: 34px;
	margin: 0 2px;
	padding: 7px 9px;
	border: 1px solid var(--jm-line);
	color: #555;
	line-height: 1;
}

.jm-pager .page-numbers:hover {
	border-color: var(--jm-accent);
	color: var(--jm-accent);
}

.jm-pager .page-numbers.current {
	border-color: var(--jm-accent);
	background: var(--jm-accent);
	color: #fff;
}

.jm-pager .page-numbers.dots {
	border: 0;
	background: none;
}

/* Empty state */
.jm-empty {
	padding: 60px 20px;
	text-align: center;
	color: var(--jm-muted);
}

/* ==========================================================================
   8. Strengths band (home)
   ========================================================================== */

.jm-strengths {
	background: var(--jm-dark);
	padding: 56px 0 60px;
}

.jm-strengths__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 40px 60px;	margin-top: 6px;
}

.jm-strength {
	display: flex;
	align-items: flex-start;
	gap: 18px;
}

.jm-strength__icon {
	flex: none;
	width: 46px;
	height: 46px;
	object-fit: contain;
}

.jm-strength__title {
	margin: 0 0 6px;
	font-size: 17px;
	font-weight: 700;
	color: #fff;
}

.jm-strength__text {
	margin: 0;
	font-size: 13.5px;
	line-height: 1.85;
	color: #a9a9a9;
}

/* ==========================================================================
   9. About / partners / news
   ========================================================================== */

.jm-about-strip {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
}

.jm-about-strip img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

.jm-about-story {
	max-width: 1000px;
	margin: 0 auto;
	font-size: 15px;
	line-height: 1.95;
	color: #4a4a4a;
}

.jm-about-story p {
	margin-bottom: 1.1em;
}

.jm-partners {
	border-top: 1px solid var(--jm-line);
	background: #fff;
	padding: 48px 0 54px;
}

.jm-partners__row {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-bottom: 18px;
}

.jm-partners__label {
	flex: none;
	width: 150px;
	font-size: 14px;
	font-weight: 700;
	color: #1a1a1a;
}

.jm-partners__logos {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 30px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.jm-partners__logo {
	height: 30px;
	width: auto;
	filter: grayscale(100%);
	opacity: 0.85;
	transition: filter 0.2s ease, opacity 0.2s ease;
}

.jm-partners__logo:hover {
	filter: none;
	opacity: 1;
}

.jm-news-card__media {
	display: block;
	aspect-ratio: 3 / 2;
	overflow: hidden;
	background: var(--jm-bg-media);
}

.jm-news-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.jm-card:hover .jm-news-card__media img {
	transform: scale(1.04);
}

.jm-news-card__date {
	margin: 0 0 4px;
	font-size: 12px;
	color: var(--jm-muted);
}

/* ==========================================================================
   10. Product detail
   ========================================================================== */

.jm-product {
	padding: 40px 0 60px;
}

.jm-product__layout {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
	gap: 44px;
	align-items: start;
}

.jm-gallery__main {
	border: 1px solid var(--jm-line);
	background: var(--jm-bg-media);
}

.jm-gallery__main img {
	width: 100%;
	height: auto;
}

.jm-gallery__thumbs {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 12px 0 0;
	padding: 0;
	list-style: none;
}

.jm-gallery__thumb {
	width: 76px;
	height: 76px;
	padding: 0;
	border: 1px solid var(--jm-line);
	background: #fff;
	cursor: pointer;
	overflow: hidden;
}

.jm-gallery__thumb img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.jm-gallery__thumb[aria-current="true"],
.jm-gallery__thumb:hover {
	border-color: var(--jm-accent);
}

.jm-product__head {
	margin-bottom: 18px;
}

.jm-product__model {
	margin: 0 0 6px;
	font-size: 26px;
	line-height: 1.25;
}

.jm-product__meta {
	margin: 0;
	font-size: 12.5px;
	color: var(--jm-muted);
}

.jm-product__intro {
	margin: 0 0 20px;
	color: #555;
}

/* Specification table */
.jm-specs {
	margin: 0 0 22px;
	border: 1px solid var(--jm-line);
	font-size: 14px;
}

.jm-specs th,
.jm-specs td {
	padding: 9px 14px;
	border-bottom: 1px solid var(--jm-line);
	vertical-align: top;
	text-align: left;
}

.jm-specs tr:last-child th,
.jm-specs tr:last-child td {
	border-bottom: 0;
}

.jm-specs th {	width: 40%;
	background: #fafafa;
	font-weight: 700;
	color: #333;
}

.jm-specs td {
	color: #555;
}

.jm-product__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-bottom: 26px;
}

.jm-product__body {
	margin-top: 46px;
	padding-top: 34px;
	border-top: 1px solid var(--jm-line);
}

.jm-product__body h2,
.jm-product__body h3 {
	font-size: 20px;
	margin-top: 1.4em;
}

.jm-product__body figure,
.jm-entry__content figure {
	max-width: 100%;
	margin: 0 auto 22px;
}

.jm-product__body figure.wp-block-image,
.jm-entry__content figure.wp-block-image {
	/* WordPress core sets .wp-block-image { display: table }, which shrink-wraps
	   the figure to the image's intrinsic width. Force a block box so the
	   drawing below scales to the content column. */
	display: block;
	width: 100%;
}

.jm-product__body .wp-block-image img,
.jm-entry__content .wp-block-image img {
	/* Technical drawings are shown at their own resolution, centred, rather
	   than being upscaled to the column width and softened. */
	max-width: 100%;
	height: auto;
	margin: 0 auto;
}

.jm-product__body table {
	margin-bottom: 22px;
	font-size: 14px;
}

.jm-product__body th,
.jm-product__body td {
	padding: 8px 12px;
	border: 1px solid var(--jm-line);
}

.jm-product__nav {
	display: flex;
	justify-content: space-between;
	gap: 20px;
	margin-top: 44px;
	padding-top: 22px;
	border-top: 1px solid var(--jm-line);
	font-size: 14px;
}

.jm-product__nav a {
	color: var(--jm-text-soft);
}

.jm-product__nav a:hover {
	color: var(--jm-accent);
}

/* ==========================================================================
   11. Inquiry form and contact page
   ========================================================================== */

.jm-inquiry {
	margin-top: 26px;
	padding: 26px;
	border: 1px solid var(--jm-line);
	background: #fafafa;
}

.jm-inquiry__title {
	margin: 0 0 4px;
	font-size: 19px;
}

.jm-inquiry__note {
	margin: 0 0 18px;
	font-size: 13px;
	color: var(--jm-muted);
}

.jm-form__row {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
}

.jm-field {
	margin-bottom: 14px;
}

.jm-field label {
	display: block;
	margin-bottom: 5px;
	font-size: 13px;
	font-weight: 700;
	color: #444;
}

.jm-field .req {
	color: var(--jm-accent);
}

.jm-field input,
.jm-field textarea,
.jm-field select {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid #d8d8d8;
	background: #fff;
	font-size: 14px;
	border-radius: var(--jm-radius);
}

.jm-field textarea {
	min-height: 118px;
	resize: vertical;
}

.jm-field input:focus,
.jm-field textarea:focus,
.jm-field select:focus {
	border-color: var(--jm-accent);
	outline: none;
}

/* Honeypot: hidden from people, visible to naive bots. */
.jm-hp {
	position: absolute !important;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.jm-form__foot {
	display: flex;
	align-items: center;
	gap: 16px;
	flex-wrap: wrap;
}

.jm-form__status {
	font-size: 14px;
}

.jm-form__status--ok {
	color: #2c7a2c;
}

.jm-form__status--err {
	color: #c0392b;
}

/* Contact blocks */
.jm-contact-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 46px;
	align-items: start;
}

.jm-contact-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.jm-contact-list li {
	display: flex;
	gap: 12px;
	padding: 11px 0;
	border-bottom: 1px dashed var(--jm-line);
	font-size: 15px;
}

.jm-contact-list b {
	flex: none;
	min-width: 132px;
	color: #1a1a1a;
}

.jm-contact-list a {
	color: #444;
}
.jm-contact-list a:hover {
	color: var(--jm-accent);
}

.jm-qr-row {
	display: flex;
	gap: 30px;
	margin-top: 26px;
	flex-wrap: wrap;
}

.jm-qr {
	text-align: center;
}

.jm-qr img {
	width: 150px;
	height: 150px;
	border: 1px solid var(--jm-line);
	padding: 6px;
	background: #fff;
}

.jm-qr span {
	display: block;
	margin-top: 6px;
	font-size: 13px;
	color: var(--jm-text-soft);
}

.jm-map {
	margin-top: 30px;
	border: 1px solid var(--jm-line);
}

.jm-map iframe {
	display: block;
	width: 100%;
	height: 340px;
	border: 0;
	background: #f4f4f4;
}

.jm-map__foot {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px 20px;
	padding: 12px 16px;
	border-top: 1px solid var(--jm-line);
	font-size: 13px;
	color: var(--jm-text-soft);
}

.jm-map__foot a {
	color: var(--jm-accent);
	font-weight: 700;
}

/* ==========================================================================
   12. News list and single
   ========================================================================== */

.jm-post-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.jm-post-item {
	display: grid;
	grid-template-columns: 260px minmax(0, 1fr);
	gap: 24px;
	padding: 24px 0;
	border-bottom: 1px solid var(--jm-line);
}

.jm-post-item:first-child {
	padding-top: 0;
}

.jm-post-item__media {
	display: block;
	aspect-ratio: 3 / 2;
	overflow: hidden;
	background: var(--jm-bg-media);
}

.jm-post-item__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.jm-post-item__title {
	margin: 0 0 6px;
	font-size: 18px;
}

.jm-post-item__date {
	margin: 0 0 10px;
	font-size: 12.5px;
	color: var(--jm-muted);
}

.jm-post-item__excerpt {
	margin: 0;
	color: #5c5c5c;
	font-size: 14px;
}

.jm-entry {
	padding: 44px 0 60px;
}

.jm-entry__head {
	max-width: 820px;
	margin: 0 auto 26px;
	text-align: center;
}

.jm-entry__title {
	margin: 0 0 8px;
	font-size: 28px;
}

.jm-entry__date {
	font-size: 13px;
	color: var(--jm-muted);
}

.jm-entry__content {
	max-width: 900px;
	margin: 0 auto;
	font-size: 15.5px;
	line-height: 1.9;
	color: #444;
}

.jm-entry__content img {
	margin: 0 auto 20px;
}

.jm-entry__content h2,
.jm-entry__content h3 {
	margin-top: 1.6em;
}

.jm-entry__content th,
.jm-entry__content td {
	padding: 9px 12px;
	border: 1px solid var(--jm-line);
}

/* Video embeds */
.jm-video-frame {
	position: relative;
	aspect-ratio: 16 / 9;
	margin-bottom: 20px;
	background: #000;
}

.jm-video-frame iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

/* ==========================================================================
   13. Footer
   ========================================================================== */

.jm-footer {
	background: var(--jm-black);
	color: #9d9d9d;
	font-size: 13.5px;
}

.jm-footer__top {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 40px;
	padding: 44px 0 34px;
}

.jm-footer__title {
	margin: 0 0 18px;
	font-size: 17px;
	font-weight: 700;
	color: #fff;
	text-align: center;
}

.jm-footer__cert img {
	display: block;
	margin: 0 auto;
	max-width: 330px;
	width: 100%;
}

.jm-footer__nav {
	margin: 0;
	padding: 0;
	list-style: none;
	text-align: center;
}

.jm-footer__nav a {
	display: block;
	padding: 6px 0;
	color: #b5b5b5;
	text-transform: uppercase;
	letter-spacing: 1px;
	font-size: 13px;
}

.jm-footer__nav a:hover {
	color: var(--jm-accent);
}

.jm-footer__qr {
	display: flex;
	justify-content: center;
	gap: 26px;
}

.jm-footer__qr img {	width: 118px;
	height: 118px;
	background: #fff;
	padding: 5px;
}

.jm-footer__qr figcaption {
	margin-top: 7px;
	text-align: center;
	font-size: 13px;
	color: #cfcfcf;
}

.jm-footer__search {
	display: flex;
	justify-content: center;
	margin-top: 20px;
}

.jm-footer__bottom {
	padding: 16px 0 22px;
	border-top: 1px solid #232323;
	text-align: center;
	font-size: 12.5px;
	color: #8a8a8a;
}

.jm-footer__bottom a {
	color: #b5b5b5;
}

.jm-footer__bottom a:hover {
	color: var(--jm-accent);
}

/* Floating WhatsApp button */
.jm-wa {
	position: fixed;
	right: 18px;
	bottom: 18px;
	z-index: 60;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 54px;
	height: 54px;
	border-radius: 50%;
	background: #25d366;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
}

.jm-wa:hover {
	background: #1eb455;
	transform: translateY(-2px);
}

.jm-wa svg {
	width: 30px;
	height: 30px;
	fill: #fff;
}

/* ==========================================================================
   14. Responsive
   ========================================================================== */

@media (max-width: 1100px) {
	.jm-nav__list > li > a {
		padding: 15px 16px;
	}

	.jm-search__input {
		width: 140px;
	}

	.jm-brand__cn { font-size: 20px; }
	.jm-brand__logo { width: 54px; height: 54px; }
}

@media (max-width: 980px) {
	:root {
		--jm-section-pad: 46px;
	}

	.jm-header__inner {
		min-height: 78px;
	}

	.jm-topbar {
		display: none;
	}

	/* Mobile navigation */
	.jm-nav__toggle {
		display: block;
	}

	.jm-nav__inner {
		flex-wrap: wrap;
	}

	.jm-nav__list {
		display: none;
		flex-direction: column;
		align-items: stretch;
		width: 100%;
		padding: 6px 0 12px;
	}

	.jm-nav__list.is-open {
		display: flex;
	}

	.jm-nav__list > li > a {
		padding: 12px 4px;
		border-bottom: 1px solid var(--jm-line);
	}

	.jm-nav__sub {
		position: static;
		display: none;
		visibility: visible;
		opacity: 1;
		transform: none;
		box-shadow: none;
		border: 0;
		border-left: 2px solid var(--jm-line);
		margin-left: 10px;
		padding: 4px 0;
	}

	.jm-nav__list > li.is-open > .jm-nav__sub {
		display: block;
	}

	.jm-search {
		order: 3;
		width: 100%;
		margin-bottom: 12px;
	}

	.jm-search__input {
		flex: 1;
		width: auto;
	}

	.jm-grid--products {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.jm-product__layout {
		grid-template-columns: minmax(0, 1fr);
		gap: 30px;
	}

	.jm-contact-grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 34px;
	}

	.jm-footer__top {
		grid-template-columns: minmax(0, 1fr);
		gap: 34px;
	}

	.jm-banner {
		height: 190px;
	}

	.jm-banner__title {
		font-size: 26px;
	}

	.jm-post-item {
		grid-template-columns: minmax(0, 1fr);
	}

	.jm-strengths__grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 28px;
	}
}

@media (max-width: 760px) {
	.jm-grid--products,
	.jm-grid--3 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.jm-about-strip {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.jm-form__row {
		grid-template-columns: minmax(0, 1fr);
	}

	.jm-brand__cn { font-size: 17px; }
	.jm-brand__en { font-size: 12.5px; }
	.jm-brand__logo { width: 46px; height: 46px; }

	.jm-heading__title {
		font-size: 21px;
	}

	.jm-product__model {
		font-size: 22px;
	}

	.jm-contact-list li {
		flex-direction: column;
		gap: 2px;
	}

	.jm-banner {
		height: 150px;
		background-position: center;
	}

	.jm-banner__title {
		font-size: 21px;
		letter-spacing: 2px;
	}

	.jm-inquiry {
		padding: 18px;
	}

	.jm-crumb__tabs {		width: 100%;
	}

	.jm-crumb__tabs a {
		padding: 11px 13px;
	}

	.jm-wa {
		width: 48px;
		height: 48px;
		right: 12px;
		bottom: 12px;
	}

	.jm-wa svg {
		width: 26px;
		height: 26px;
	}
}

@media (max-width: 460px) {
	.jm-grid--products,
	.jm-grid--3 {
		grid-template-columns: minmax(0, 1fr);
	}

	.jm-brand__cn {
		font-size: 15px;
		letter-spacing: 0;
		white-space: normal;
	}

	.jm-brand__en {
		white-space: normal;
		font-size: 11.5px;
	}

	.jm-brand__tagline {
		display: none;
	}

	.jm-header--solo .jm-brand__en {
		font-size: 15px;
	}

	.jm-qr-row {
		gap: 20px;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation-duration: 0.001ms !important;
		transition-duration: 0.001ms !important;
	}

	.jm-hero__track {
		transition: none;
	}

	/* Autoplay still runs (the owner wants it), the slide just changes without
	   travelling across the screen. The progress bar jumps rather than fills. */
	.jm-hero__dot-fill {
		animation-duration: 0.001ms !important;
	}
}

/* WordPress alignment classes used inside post content. */
.alignleft {
	float: left;
	margin: 0 24px 16px 0;
}

.alignright {
	float: right;
	margin: 0 0 16px 24px;
}

.aligncenter {
	display: block;
	margin: 0 auto 16px;
}

.wp-caption {
	max-width: 100%;
}

.wp-caption-text {
	font-size: 12.5px;
	color: var(--jm-muted);
	text-align: center;
}

/* Mobile home layout tuned to the owner-provided reference. Desktop rules above stay unchanged. */
@media (max-width: 980px) {
	.jm-nav__inner { gap: 0; padding-right: 0; padding-left: 0; }
	.jm-search { order: 1; flex: 1 1 0; width: auto; min-width: 0; height: 66px; margin: 0; border: 0; background: #c8c8c8; }
	.jm-search__input { flex: 1 1 auto; width: 100%; min-width: 0; height: 100%; padding: 0 14px; color: #fff; font-family: Georgia, "Times New Roman", serif; font-size: 16px; }
	.jm-search__input::placeholder { color: rgba(255, 255, 255, 0.94); opacity: 1; }
	.jm-search__btn { width: 86px; height: 100%; border: 0; background: transparent; color: #fff; font-family: Georgia, "Times New Roman", serif; font-size: 0; }
	.jm-search__btn::after { content: "Search"; font-size: 16px; }
	.jm-nav__toggle { order: 2; flex: 0 0 74px; width: 74px; height: 66px; margin: 0; border: 0; border-left: 1px solid #e4e4e4; background: #fff; }
	.jm-nav__toggle span, .jm-nav__toggle span::before, .jm-nav__toggle span::after { width: 26px; height: 3px; background: #111; }
	.jm-nav__list { order: 3; margin: 0; background: #fff; }
	.jm-nav__list.is-open { padding: 8px 14px 14px; }
}
@media (max-width: 760px) {
	.jm-header__inner { min-height: 74px; gap: 10px; padding: 8px 12px; }
	.jm-brand { gap: 10px; }
	.jm-brand__logo { width: 48px; height: 48px; }
	.jm-brand__cn { font-size: 18px; letter-spacing: 0; line-height: 1.25; white-space: nowrap; }
	.jm-brand__en { font-size: 14px; letter-spacing: 0.1px; line-height: 1.35; white-space: nowrap; }
	.jm-brand__tagline, .jm-hero__arrow { display: none; }
	.jm-hero__nav { bottom: 10px; gap: 7px; padding: 5px 9px; }
	.jm-hero__dot { width: 8px; height: 8px; }
	.jm-hero__dot.is-active { width: 24px; }
}
@media (max-width: 460px) {
	.jm-header__inner { min-height: 72px; padding: 8px 10px; }
	.jm-brand { gap: 9px; }
	.jm-brand__logo { width: 46px; height: 46px; }
	.jm-brand__cn { font-size: 17px; white-space: nowrap; }
	.jm-brand__en { font-size: 13px; white-space: nowrap; }	.jm-grid--products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
	.jm-card__media { aspect-ratio: 1 / 1; }
	.jm-card__body { padding: 9px 6px 12px; }
	.jm-card__title { font-size: 14px; line-height: 1.4; }
	.jm-card__cat { font-size: 11px; }
	body.home .jm-section--soft { padding: 40px 0 36px; background: #fff; }
	body.home .jm-section--soft .jm-container { padding-right: 6px; padding-left: 6px; }
	body.home .jm-section--soft .jm-heading { margin-bottom: 22px; }
	body.home .jm-section--soft .jm-heading__title { font-size: 24px; letter-spacing: 1.4px; }
}
