/* Linglingqi B2B - Main Stylesheet
 *
 * Design system: the five Customizer palette colors (--llq-primary,
 * --llq-secondary, --llq-accent, --llq-text, --llq-background, written by
 * inc/customizer.php llq_brand_colors_css()) remain the single color source.
 * Everything below is a semantic token derived from them. No external
 * frameworks, no webfonts: system font stack only.
 */

/* ---------------------------------------------
 * 1. Raw palette (mirrors Customizer defaults)
 * --------------------------------------------- */
:root {
	--llq-primary: #2563EB;
	--llq-secondary: #1E40AF;
	--llq-accent: #F59E0B;
	--llq-text: #1F2937;
	--llq-light: #F9FAFB;
	--llq-border: #E5E7EB;
	--llq-white: #FFFFFF;
}

/* ---------------------------------------------
 * 2. Semantic tokens
 * --------------------------------------------- */
:root {
	/* Surfaces & lines (derived from palette) */
	--llq-color-bg: var(--llq-background, var(--llq-white));
	--llq-color-surface: var(--llq-white);
	--llq-color-surface-alt: var(--llq-light);
	--llq-color-text: var(--llq-text);
	--llq-color-muted: #6B7280;
	--llq-color-brand: var(--llq-primary);
	--llq-color-brand-strong: var(--llq-secondary);
	--llq-color-accent: var(--llq-accent);
	--llq-color-line: var(--llq-border);
	--llq-color-on-dark: #D1D5DB;

	/* Typography: system stack, native sizes with clamp() */
	--llq-font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
	--llq-font-display: var(--llq-font-body);
	--llq-text-h1: clamp(1.875rem, 1.2rem + 2.6vw, 3rem);
	--llq-text-h2: clamp(1.4rem, 1.1rem + 1.4vw, 2rem);
	--llq-text-h3: clamp(1.15rem, 1rem + 0.6vw, 1.375rem);
	--llq-text-body: 1rem;
	--llq-text-small: 0.875rem;
	--llq-leading: 1.6;
	--llq-leading-tight: 1.25;
	/* Readable line length for long-form body content */
	--llq-measure: 70ch;

	/* Layout primitives */
	--llq-container-max: 1200px;
	--llq-container-pad: clamp(16px, 4vw, 24px);
	--llq-section-y: clamp(48px, 5vw + 24px, 96px);
	--llq-grid-gap: clamp(20px, 2vw, 30px);

	/* Cards */
	--llq-card-bg: var(--llq-white);
	--llq-card-radius: var(--llq-radius, 8px);
	--llq-card-pad: 20px;

	/* Forms */
	--llq-input-bg: var(--llq-white);
	--llq-input-border: var(--llq-border);
	--llq-input-pad: 12px 15px;
	--llq-input-radius: var(--llq-radius, 8px);

	/* Elevation & motion */
	--llq-radius: 8px;
	--llq-shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
	--llq-shadow-lg: 0 10px 15px rgba(0,0,0,0.1), 0 4px 6px rgba(0,0,0,0.05);
	--llq-transition: all 0.3s ease;
}

/* ---------------------------------------------
 * 3. Reset & base
 * --------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
	font-family: var(--llq-font-body);
	color: var(--llq-color-text);
	line-height: var(--llq-leading);
	background: var(--llq-color-bg);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--llq-color-brand); text-decoration: none; transition: var(--llq-transition); }
a:hover { color: var(--llq-color-brand-strong); }

/* Visible keyboard focus everywhere (a11y) */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
	outline: 2px solid var(--llq-color-brand);
	outline-offset: 2px;
}

/* Skip link */
.llq-skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 2000;
	background: var(--llq-color-brand);
	color: var(--llq-white);
	padding: 10px 18px;
	border-radius: 0 0 var(--llq-radius) 0;
}
.llq-skip-link:focus { left: 0; color: var(--llq-white); }

/* Container */
.llq-container { max-width: var(--llq-container-max); margin: 0 auto; padding: 0 var(--llq-container-pad); }

/* ---------------------------------------------
 * 4. Header
 * --------------------------------------------- */
.llq-header {
	background: var(--llq-color-surface);
	box-shadow: var(--llq-shadow);
	position: sticky;
	top: 0;
	z-index: 1000;
}
.llq-header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 15px 0;
	gap: 30px;
}
.llq-site-title {
	font-family: var(--llq-font-display);
	font-size: 1.5rem;
	font-weight: 700;
	color: var(--llq-color-brand);
}
/* Custom logo sizing */
.llq-logo img { max-height: 80px; width: auto; }

/* Desktop nav with dropdown submenus (native wp_nav_menu output) */
.llq-nav-menu {
	display: flex;
	align-items: center;
	list-style: none;
	gap: 25px;
}
.llq-nav-menu a {
	color: var(--llq-color-text);
	font-weight: 500;
	padding: 8px 0;
	border-bottom: 2px solid transparent;
	display: inline-block;
}
.llq-nav-menu a:hover,
.llq-nav-menu .current-menu-item > a,
.llq-nav-menu .current_page_item > a {
	color: var(--llq-color-brand);
	border-bottom-color: var(--llq-color-brand);
}
/* Dropdowns: open on hover and on keyboard focus-within */
.llq-nav-menu li { position: relative; }
.llq-nav-menu .sub-menu {
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 200px;
	background: var(--llq-color-surface);
	box-shadow: var(--llq-shadow-lg);
	border: 1px solid var(--llq-color-line);
	border-radius: var(--llq-radius);
	list-style: none;
	padding: 8px 0;
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
	z-index: 1100;
}
.llq-nav-menu .sub-menu a {
	display: block;
	padding: 10px 18px;
	border-bottom: none;
}
.llq-nav-menu .sub-menu a:hover,
.llq-nav-menu .sub-menu a:focus-visible {
	background: var(--llq-color-surface-alt);
	border-bottom-color: transparent;
}
.llq-nav-menu li:hover > .sub-menu,
.llq-nav-menu li:focus-within > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

/* Header actions: search + CTA */
.llq-header-actions { display: flex; align-items: center; gap: 15px; }
/* Mobile search lives inside the nav panel: hidden by default so the desktop
   header shows exactly one search form; revealed only in the active mobile nav. */
.llq-mobile-search { display: none; }
.llq-header-search .search-form { display: flex; align-items: center; gap: 6px; }
.llq-header-search input[type="search"] {
	width: 180px;
	padding: 8px 12px;
	border: 1px solid var(--llq-input-border);
	border-radius: var(--llq-input-radius);
	font-size: var(--llq-text-small);
	background: var(--llq-input-bg);
}
.llq-header-search .search-submit {
	padding: 8px 12px;
	border: 1px solid var(--llq-input-border);
	border-radius: var(--llq-input-radius);
	background: var(--llq-color-surface-alt);
	cursor: pointer;
}

/* Mobile Toggle */
.llq-mobile-toggle {
	display: none;
	background: none;
	border: none;
	cursor: pointer;
	padding: 5px;
}
.llq-mobile-toggle span {
	display: block;
	width: 25px;
	height: 3px;
	background: var(--llq-color-text);
	margin: 5px 0;
	border-radius: 2px;
	transition: var(--llq-transition);
}
.llq-mobile-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.llq-mobile-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.llq-mobile-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------------------------------------------
 * 5. Buttons
 * --------------------------------------------- */
.llq-btn {
	display: inline-block;
	padding: 12px 28px;
	border: 2px solid transparent;
	border-radius: var(--llq-radius);
	font-weight: 600;
	font-size: var(--llq-text-body);
	font-family: inherit;
	cursor: pointer;
	transition: var(--llq-transition);
	text-align: center;
}
.llq-btn-primary {
	background: var(--llq-color-brand);
	color: var(--llq-white);
	border-color: var(--llq-color-brand);
}
.llq-btn-primary:hover {
	background: var(--llq-color-brand-strong);
	border-color: var(--llq-color-brand-strong);
	color: var(--llq-white);
}
.llq-btn-lg { padding: 16px 36px; font-size: 1.125rem; }
.llq-btn-sm { padding: 8px 20px; font-size: var(--llq-text-small); }

/* Native Gutenberg button block: mirror the block editor canvas palette
   (editor sets background var(--llq-color-brand) / foreground var(--llq-color-bg))
   so the front end renders the same block identically. Applies only inside
   entry content, only when the block carries no explicit per-block colors,
   and never to outline-style buttons (they keep their transparent style). */
.llq-entry-content .wp-block-button:not(.is-style-outline) .wp-block-button__link:not(.is-style-outline):not(.has-background):not(.has-text-color),
.entry-content .wp-block-button:not(.is-style-outline) .wp-block-button__link:not(.is-style-outline):not(.has-background):not(.has-text-color) {
	background-color: var(--llq-color-brand);
	color: var(--llq-color-bg);
}

/* ---------------------------------------------
 * 6. Hero
 * --------------------------------------------- */
.llq-hero {
	background: linear-gradient(135deg, var(--llq-color-brand), var(--llq-color-brand-strong));
	background-size: cover;
	background-position: center;
	color: var(--llq-white);
	padding: var(--llq-section-y);
	text-align: center;
}
.llq-hero-overlay { position: relative; }
.llq-hero-overlay::before {
	content: '';
	position: absolute;
	inset: 0;
	background: rgba(0,0,0,0.4);
}
/* 主视觉对齐（模板包 hero.align，B2a）：左/居中/右由区块属性决定 */
.llq-hero.llq-hero-align-left .llq-hero-content { margin-right: auto; text-align: left; }
.llq-hero.llq-hero-align-center .llq-hero-content { margin-left: auto; margin-right: auto; text-align: center; }
.llq-hero.llq-hero-align-right .llq-hero-content { margin-left: auto; text-align: right; }

.llq-hero-content {
	position: relative;
	z-index: 1;
	max-width: 800px;
	margin: 0 auto;
	padding: 0 20px;
}
.llq-hero-title {
	font-family: var(--llq-font-display);
	font-size: var(--llq-text-h1);
	font-weight: 800;
	margin-bottom: 20px;
	line-height: var(--llq-leading-tight);
}
.llq-hero-subtitle {
	font-size: 1.25rem;
	margin-bottom: 35px;
	opacity: 0.9;
}

/* ---------------------------------------------
 * 7. Product grid & cards
 * --------------------------------------------- */
.llq-product-grid {
	display: grid;
	gap: var(--llq-grid-gap);
	margin: 40px 0;
}
.llq-columns-2 { grid-template-columns: repeat(2, 1fr); }
.llq-columns-3 { grid-template-columns: repeat(3, 1fr); }
.llq-columns-4 { grid-template-columns: repeat(4, 1fr); }

.llq-product-card {
	background: var(--llq-card-bg);
	border-radius: var(--llq-card-radius);
	overflow: hidden;
	box-shadow: var(--llq-shadow);
	transition: var(--llq-transition);
}
.llq-product-card:hover {
	transform: translateY(-5px);
	box-shadow: var(--llq-shadow-lg);
}
.llq-product-card-link { display: block; color: inherit; }
.llq-product-card-image {
	height: 220px;
	overflow: hidden;
	background: var(--llq-color-surface-alt);
}
.llq-product-card-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: var(--llq-transition);
}
.llq-product-card:hover .llq-product-card-image img { transform: scale(1.05); }
.llq-product-card-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	color: #9CA3AF;
	font-size: var(--llq-text-small);
}
.llq-product-card-body { padding: var(--llq-card-pad); }
.llq-product-card-title {
	font-size: 1.125rem;
	font-weight: 600;
	margin-bottom: 8px;
	color: var(--llq-color-text);
}
.llq-product-card-excerpt {
	color: var(--llq-color-muted);
	font-size: var(--llq-text-small);
	margin-bottom: 12px;
}
.llq-product-card-cta {
	color: var(--llq-color-brand);
	font-weight: 600;
	font-size: var(--llq-text-small);
}

/* ---------------------------------------------
 * 8. Product detail
 * --------------------------------------------- */
.llq-product-detail {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 50px;
	margin: 40px 0;
}
.llq-product-image-main {
	border-radius: var(--llq-card-radius);
	overflow: hidden;
	box-shadow: var(--llq-shadow-lg);
}
.llq-product-info h1 {
	font-size: var(--llq-text-h2);
	margin-bottom: 15px;
	line-height: var(--llq-leading-tight);
}
.llq-specs-table {
	width: 100%;
	border-collapse: collapse;
	margin: 20px 0;
}
.llq-specs-table th,
.llq-specs-table td {
	padding: 12px 15px;
	text-align: left;
	border-bottom: 1px solid var(--llq-color-line);
}
.llq-specs-table th {
	background: var(--llq-color-surface-alt);
	font-weight: 600;
	width: 35%;
}
.llq-product-inquiry-cta { margin: 30px 0; }

/* Gallery */
.llq-gallery-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 15px;
	margin-top: 15px;
}
.llq-gallery-item {
	border-radius: var(--llq-card-radius);
	overflow: hidden;
	aspect-ratio: 1;
}
.llq-gallery-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	cursor: pointer;
	transition: var(--llq-transition);
}
.llq-gallery-item img:hover { opacity: 0.85; }

/* ---------------------------------------------
 * 9. Forms & inquiry
 * --------------------------------------------- */
.llq-inquiry-form-wrapper {
	background: var(--llq-color-surface-alt);
	padding: 40px;
	border-radius: var(--llq-card-radius);
	margin: 40px 0;
}
.llq-form-row { margin-bottom: 20px; }
/* Honeypot: present in the DOM for bots, never visible or focusable for people. */
.llq-hp {
	position: absolute;
	left: -9999px;
	top: auto;
	width: 1px;
	height: 1px;
	overflow: hidden;
}
.llq-form-row label {
	display: block;
	margin-bottom: 6px;
	font-weight: 600;
}
.llq-form-row input,
.llq-form-row textarea {
	width: 100%;
	padding: var(--llq-input-pad);
	border: 1px solid var(--llq-input-border);
	border-radius: var(--llq-input-radius);
	font-size: var(--llq-text-body);
	font-family: inherit;
	background: var(--llq-input-bg);
	color: var(--llq-color-text);
	transition: var(--llq-transition);
}
.llq-form-row input:focus,
.llq-form-row textarea:focus {
	outline: none;
	border-color: var(--llq-color-brand);
	box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}
.llq-form-status {
	margin-top: 15px;
	padding: 12px;
	border-radius: var(--llq-input-radius);
	display: none;
}
.llq-form-status.success { display: block; background: #D1FAE5; color: #065F46; }
.llq-form-status.error { display: block; background: #FEE2E2; color: #991B1B; }

/* ---------------------------------------------
 * 10. Sections & advantages
 * --------------------------------------------- */
.llq-section { padding: var(--llq-section-y) 0; }
.llq-section-alt { background: var(--llq-color-surface-alt); }
.llq-section-title {
	font-family: var(--llq-font-display);
	font-size: var(--llq-text-h2);
	text-align: center;
	margin-bottom: 40px;
	color: var(--llq-color-text);
	line-height: var(--llq-leading-tight);
}
.llq-section-subtitle {
	text-align: center;
	color: var(--llq-color-muted);
	max-width: 600px;
	margin: -30px auto 40px;
}

.llq-advantages { padding: 60px 0; }
.llq-advantages-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: var(--llq-grid-gap);
}
.llq-advantage-item { text-align: center; padding: 30px 20px; }
.llq-advantage-icon {
	width: 60px;
	height: 60px;
	margin: 0 auto 15px;
	background: var(--llq-color-brand);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--llq-white);
	font-size: 1.5rem;
}

/* ---------------------------------------------
 * 11. Breadcrumbs
 * --------------------------------------------- */
.llq-breadcrumbs { padding: 15px 0; font-size: var(--llq-text-small); }
.llq-breadcrumb-list { display: flex; list-style: none; flex-wrap: wrap; gap: 5px; }
.llq-breadcrumb-sep { color: #9CA3AF; }
.llq-breadcrumb-item a { color: var(--llq-color-brand); }

/* ---------------------------------------------
 * 12. Page content: readable line length
 * --------------------------------------------- */
.llq-page-content {
	max-width: var(--llq-measure);
	margin: 40px auto;
	padding: 0 var(--llq-container-pad);
}
.llq-page-content h2 { margin: 30px 0 15px; font-size: var(--llq-text-h2); line-height: var(--llq-leading-tight); }
.llq-page-content h3 { margin: 25px 0 12px; font-size: var(--llq-text-h3); line-height: var(--llq-leading-tight); }
.llq-page-content p { margin-bottom: 15px; }
.llq-page-content ul, .llq-page-content ol { margin: 15px 0 15px 25px; }
.llq-page-content li { margin-bottom: 8px; }

/* ---------------------------------------------
 * 13. FAQ
 * --------------------------------------------- */
.llq-faq-item {
	border: 1px solid var(--llq-color-line);
	border-radius: var(--llq-card-radius);
	margin-bottom: 15px;
	overflow: hidden;
}
.llq-faq-question {
	padding: 20px;
	background: var(--llq-color-surface-alt);
	cursor: pointer;
	font-weight: 600;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	width: 100%;
	text-align: left;
	font-family: inherit;
	font-size: inherit;
	border: none;
	color: inherit;
}
.llq-faq-answer { padding: 20px; display: none; }
.llq-faq-item.active .llq-faq-answer { display: block; }

/* ---------------------------------------------
 * 14. Footer
 * --------------------------------------------- */
.llq-footer {
	background: #1F2937;
	color: var(--llq-color-on-dark);
	padding: 60px 0 0;
}
.llq-footer-grid {
	display: grid;
	grid-template-columns: 2fr 1fr 1fr 1fr;
	gap: 40px;
	padding-bottom: 40px;
}
.llq-footer h4 {
	color: var(--llq-white);
	font-size: 1.125rem;
	margin-bottom: 20px;
}
.llq-footer a { color: #9CA3AF; }
.llq-footer a:hover { color: var(--llq-white); }
.llq-footer-menu { list-style: none; }
.llq-footer-menu li { margin-bottom: 10px; }
.llq-footer-contact p { margin-bottom: 10px; overflow-wrap: anywhere; }
.llq-social-links { list-style: none; display: flex; flex-wrap: wrap; gap: 14px; }
.llq-social-links a {
	color: #9CA3AF;
	font-weight: 500;
}
.llq-social-links a:hover { color: var(--llq-white); }
.llq-footer-bottom {
	border-top: 1px solid #374151;
	padding: 20px 0;
	text-align: center;
	font-size: var(--llq-text-small);
}

/* ---------------------------------------------
 * 15. Responsive
 * --------------------------------------------- */

/* Small mobile (375 and below) */
@media (max-width: 480px) {
	.llq-hero { padding: 64px 0; }
	.llq-header-actions .llq-btn { padding: 8px 14px; font-size: var(--llq-text-small); }
	.llq-gallery-grid { grid-template-columns: repeat(2, 1fr); }
	.llq-inquiry-form-wrapper { padding: 24px 16px; }
}

/* Tablet and mobile nav */
@media (max-width: 1024px) {
	.llq-nav.active .llq-mobile-search { display: block; }
}

@media (max-width: 768px) {
	.llq-nav { display: none; }
	.llq-mobile-toggle { display: block; }
	.llq-header-search { display: none; }
	.llq-nav.active {
		display: block;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		background: var(--llq-color-surface);
		box-shadow: var(--llq-shadow-lg);
		padding: 20px;
		max-height: calc(100vh - 120px);
		overflow-y: auto;
	}
	.llq-nav.active .llq-nav-menu { flex-direction: column; gap: 10px; align-items: stretch; }
	.llq-nav.active .llq-nav-menu a { border-bottom: none; padding: 8px 0; }
	/* Submenus are always visible in the mobile panel (no hover) */
	.llq-nav.active .llq-nav-menu .sub-menu {
		position: static;
		opacity: 1;
		visibility: visible;
		transform: none;
		box-shadow: none;
		border: none;
		border-left: 2px solid var(--llq-color-line);
		border-radius: 0;
		margin: 4px 0 4px 12px;
		padding: 0;
		min-width: 0;
	}
	.llq-nav.active .llq-mobile-search { padding-top: 12px; border-top: 1px solid var(--llq-color-line); margin-top: 8px; }
	.llq-nav.active .llq-mobile-search input[type="search"] { width: 100%; padding: 10px 12px; }
	.llq-hero-title { font-size: 2rem; }
	.llq-product-grid { grid-template-columns: 1fr; }
	.llq-product-detail { grid-template-columns: 1fr; gap: 30px; }
	.llq-footer-grid { grid-template-columns: 1fr; gap: 32px; }
	.llq-columns-2, .llq-columns-3, .llq-columns-4 { grid-template-columns: 1fr; }
}

@media (max-width: 1024px) {
	.llq-columns-4 { grid-template-columns: repeat(3, 1fr); }
	.llq-product-grid { grid-template-columns: repeat(2, 1fr); }
	.llq-footer-grid { grid-template-columns: 2fr 1fr 1fr; }
	.llq-footer-col-terms { grid-column: 2 / -1; }
}

/* Desktop refinement: 1366px+ */
@media (min-width: 1366px) {
	.llq-container { padding: 0 32px; }
	.llq-header-inner { padding: 18px 0; }
}

/* 1440px+: slightly wider container */
@media (min-width: 1440px) {
	:root { --llq-container-max: 1280px; }
}

/* 1920px+: cap content width, larger section rhythm */
@media (min-width: 1920px) {
	:root { --llq-container-max: 1360px; --llq-section-y: 104px; }
}

/* Reduced motion (a11y) */
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ===== Batch2: products / blog / corporate components ===== */

/* Left-aligned section titles (archive, blog, quality) */
.llq-section-title-left {
	text-align: left;
	margin-bottom: var(--llq-space-4, 24px);
}

/* Product card: consistent 4:3 image ratio, no layout shift */
.llq-product-card-image {
	aspect-ratio: 4 / 3;
	overflow: hidden;
}
.llq-product-card-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* Category filter */
.llq-category-filter {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 30px;
	align-items: center;
}
.llq-filter-count {
	display: inline-block;
	margin-left: 6px;
	font-size: 0.78em;
	opacity: 0.75;
}

/* Term description under archive title */
.llq-archive-term-description {
	max-width: 70ch;
	margin-bottom: var(--llq-space-4, 24px);
	color: var(--llq-text);
}

/* Empty archive state */
.llq-archive-empty {
	padding: 48px 0;
}
.llq-archive-empty .llq-btn { margin-right: 12px; margin-top: 12px; }

/* Pagination */
.llq-pagination {
	margin: var(--llq-space-5, 40px) 0;
}
.llq-pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: center;
}
.llq-pagination .page-numbers {
	display: inline-block;
	padding: 8px 14px;
	border: 1px solid var(--llq-border, #e5e7eb);
	border-radius: var(--llq-radius, 8px);
	text-decoration: none;
}
.llq-pagination .page-numbers.current,
.llq-pagination .page-numbers:hover {
	background: var(--llq-primary);
	border-color: var(--llq-primary);
	color: #fff;
}

/* Single product: category chips */
.llq-product-cats {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 12px;
}
.llq-product-cat-chip {
	display: inline-block;
	padding: 4px 12px;
	border-radius: 999px;
	background: var(--llq-light, #f3f4f6);
	color: var(--llq-text);
	font-size: 0.85rem;
	text-decoration: none;
}
.llq-product-cat-chip:hover {
	background: var(--llq-primary);
	color: #fff;
}

/* Narrow container (inquiry form column) */
.llq-container-narrow { max-width: 700px; }

/* Certifications grid (template-certifications + quality template) */
.llq-certifications-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
	gap: 30px;
	margin: 40px 0;
}
.llq-cert-item {
	text-align: center;
	padding: 25px;
	border: 1px solid var(--llq-border, #e5e7eb);
	border-radius: var(--llq-radius, 8px);
}
.llq-cert-item img {
	max-height: 120px;
	margin: 0 auto 15px;
	display: block;
	width: auto;
}
.llq-cert-item p {
	color: var(--llq-text-muted, #6b7280);
	font-size: 0.9rem;
}

/* Contact page grid */
.llq-contact-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 40px;
	margin: 40px 0;
}
@media (max-width: 768px) {
	.llq-contact-grid { grid-template-columns: 1fr; }
}

/* Industries listing */
.llq-industry-count {
	font-size: 0.85rem;
	color: var(--llq-primary);
}

/* Blog index post cards */
.llq-post-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--llq-grid-gap, 24px);
	margin: 24px 0;
}
.llq-post-card {
	border: 1px solid var(--llq-border, #e5e7eb);
	border-radius: var(--llq-radius, 8px);
	overflow: hidden;
	background: var(--llq-white, #fff);
	display: flex;
	flex-direction: column;
}
.llq-post-card-image img {
	aspect-ratio: 4 / 3;
	object-fit: cover;
	width: 100%;
	display: block;
}
.llq-post-card-body {
	padding: 18px 20px 22px;
	display: flex;
	flex-direction: column;
	flex: 1;
}
.llq-post-card-meta {
	font-size: 0.85rem;
	color: var(--llq-text-muted, #6b7280);
	margin: 0 0 8px;
}
.llq-post-card-title {
	font-size: 1.1rem;
	margin: 0 0 8px;
}
.llq-post-card-title a { color: inherit; text-decoration: none; }
.llq-post-card-title a:hover { color: var(--llq-primary); }
.llq-post-card-excerpt {
	color: var(--llq-text-muted, #6b7280);
	margin: 0 0 14px;
}
.llq-post-card-more {
	margin-top: auto;
	color: var(--llq-primary);
	text-decoration: none;
	font-weight: 600;
}
@media (max-width: 1024px) {
	.llq-post-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
	.llq-post-grid { grid-template-columns: 1fr; }
}

/* Quality template */
.llq-quality-page .llq-quality-section {
	margin: 48px 0;
}
.llq-quality-cta {
	padding: 32px;
	border: 1px solid var(--llq-border, #e5e7eb);
	border-radius: var(--llq-radius, 8px);
	background: var(--llq-light, #f9fafb);
}

/* ---------------------------------------------
 * 27. Industrial Pro route templates (TASK-014-G preset worker)
 * Scoped additions ONLY for the three new route templates
 * (single.php / search.php / 404.php) and the secondary button they
 * need. All colors reuse the existing palette tokens; no second
 * palette, no framework.
 * --------------------------------------------- */

/* Secondary button (existing templates use only primary/lg/sm) */
.llq-btn-secondary {
	background: transparent;
	color: var(--llq-color-brand);
	border-color: var(--llq-color-brand);
}
.llq-btn-secondary:hover {
	background: var(--llq-color-brand);
	color: var(--llq-white);
}

/* News article detail (single.php) */
.llq-article {
	max-width: var(--llq-measure);
	margin: 0 auto;
}
.llq-article-header { margin: 16px 0 8px; }
.llq-article-title {
	font-size: var(--llq-text-h1);
	line-height: var(--llq-leading-tight);
	color: var(--llq-color-brand-strong);
}
.llq-article-meta {
	font-size: var(--llq-text-small);
	color: var(--llq-color-muted);
	margin-top: 10px;
}
.llq-article-meta-cat { color: var(--llq-color-brand); }
.llq-article-meta-sep { margin: 0 6px; }
.llq-article-image { margin: 24px 0; }
.llq-article-image img {
	width: 100%;
	border-radius: var(--llq-radius);
	box-shadow: var(--llq-shadow);
}
.llq-article-content { padding: 8px 0 24px; }
.llq-article-footer { border-top: 1px solid var(--llq-color-line); padding-top: 20px; }
.llq-article-footer .nav-links {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
}
.llq-article-nav-label {
	display: block;
	font-size: var(--llq-text-small);
	color: var(--llq-color-muted);
}
.llq-article-footer a { text-decoration: none; font-weight: 600; }
.llq-article-back { text-align: center; }

/* Search results (search.php) */
.llq-search-header { margin-bottom: 16px; }
.llq-search-term { color: var(--llq-color-brand); }
.llq-search-form-wrap { max-width: 480px; margin-top: 16px; }
.llq-search-count {
	font-size: var(--llq-text-small);
	color: var(--llq-color-muted);
	margin: 8px 0 20px;
}
.llq-search-results {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--llq-grid-gap, 24px);
	margin: 16px 0 24px;
}
.llq-search-results .llq-search-item { margin: 0; }
@media (max-width: 1024px) {
	.llq-search-results { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
	.llq-search-results { grid-template-columns: 1fr; }
}
.llq-search-empty .llq-btn { margin-top: 12px; }

/* 404 (404.php) */
.llq-404 {
	max-width: 720px;
	margin: 0 auto;
	padding: clamp(32px, 6vw, 72px) 0;
	text-align: center;
}
.llq-404-code {
	font-size: clamp(3.5rem, 8vw, 6rem);
	font-weight: 700;
	line-height: 1;
	color: var(--llq-color-brand);
	opacity: 0.18;
	letter-spacing: 0.05em;
}
.llq-404-title {
	font-size: var(--llq-text-h1);
	color: var(--llq-color-brand-strong);
	margin-top: 8px;
}
.llq-404-body {
	color: var(--llq-color-muted);
	margin: 14px auto 0;
	max-width: 52ch;
}
.llq-404-search { max-width: 440px; margin: 24px auto 0; }
.llq-404-actions {
	display: flex;
	justify-content: center;
	gap: 14px;
	flex-wrap: wrap;
	margin-top: 20px;
}
.llq-404-products { text-align: left; }
