/*
Theme Name: DTKA 东特矿安
Theme URI: http://localhost/wjj/
Author: DTKA
Description: 矿山安全设备企业站模板。白色主背景 + 品牌蓝，动态三级导航菜单（无默认菜单），蓝色 hover，含页头与页脚。White background with blue accent, dynamic 3-level menu (no fallback menu), blue hover.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: dtka
Tags: custom-logo, custom-menu, translation-ready, one-column
*/

/* ==========================================================================
   Design tokens
   ========================================================================== */
:root {
	--dtka-blue:        #0b57c2;   /* 品牌主蓝 */
	--dtka-blue-dark:   #08408f;
	--dtka-blue-soft:   #eef4ff;
	--dtka-red:         #e4002b;   /* logo DT 红 */
	--dtka-text:        #1f2937;
	--dtka-heading:     #0f172a;
	--dtka-muted:       #6b7280;
	--dtka-bg:          #ffffff;   /* 主背景：白 */
	--dtka-border:      #e6e8eb;
	--dtka-footer-bg:   #12233f;   /* 页脚深蓝 */
	--dtka-footer-text: #b9c4d6;
	--dtka-header-h:    92px;
	--dtka-radius:      6px;
	--dtka-shadow:      0 12px 30px rgba(2, 16, 48, .12);
	--dtka-container:   1360px;
	--dtka-transition:  .18s ease;
}

/* ==========================================================================
   Base / reset
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	font-family: "Segoe UI", "Microsoft YaHei", "PingFang SC", Roboto, Helvetica, Arial, sans-serif;
	font-size: 16px;
	line-height: 1.7;
	color: var(--dtka-text);
	background: var(--dtka-bg);
}
h1, h2, h3, h4, h5, h6 { color: var(--dtka-heading); line-height: 1.3; margin: 0 0 .5em; font-weight: 700; }
p { margin: 0 0 1em; }
a { color: var(--dtka-blue); text-decoration: none; transition: color var(--dtka-transition); }
a:hover { color: var(--dtka-blue-dark); }
img { max-width: 100%; height: auto; display: block; }
ul { margin: 0; padding: 0; }

.container {
	width: 100%;
	max-width: var(--dtka-container);
	margin: 0 auto;
	padding: 0 20px;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0);
	white-space: nowrap; border: 0;
}
.skip-link {
	position: absolute; left: -9999px; top: 0;
	background: var(--dtka-blue); color: #fff; padding: 10px 16px; z-index: 9999;
}
.skip-link:focus { left: 0; color: #fff; }

/* ==========================================================================
   Topbar (row above the header)
   ========================================================================== */
.header-topbar {
	background: #004DA5;
	border-bottom: 1px solid #004DA5;
	font-size: 13px;
	color: #fff;
}
.topbar-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	min-height: 42px;
}
.topbar-left { display: flex; align-items: center; gap: 18px; }
.topbar-social { display: flex; align-items: center; gap: 8px; }
.social-circle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 24px; height: 24px;
	border-radius: 50%;
	color: #fff;
	transition: transform .2s ease, opacity .2s ease;
}
.social-circle svg { width: 13px; height: 13px; }
.social-circle:hover { color: #fff; transform: translateY(-2px); opacity: .88; }
.social-facebook  { background: #1877f2; }
.social-linkedin  { background: #0a66c2; }
.social-youtube   { background: #e62117; }
.social-x         { background: #000; }
.social-whatsapp  { background: #25d366; }
.social-instagram { background: linear-gradient(45deg, #f9ce34 0%, #ee2a7b 60%, #6228d7 100%); }
.social-tiktok    { background: #010101; }
.topbar-welcome { color: #fff; }
.topbar-crown { color: #f5b301; flex-shrink: 0; }

.topbar-right { display: flex; align-items: center; gap: 22px; }
.topbar-contact {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	font-size: 13px;
	color: #fff;
	white-space: nowrap;
}
.topbar-contact svg { width: 15px; height: 15px; color: #fff; flex-shrink: 0; }
.topbar-contact:hover { color: #dcdcdc; }

@media (max-width: 992px) {
	.header-topbar { display: none; }
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: var(--dtka-bg);
	border-bottom: 1px solid var(--dtka-border);
}
.header-inner {
	display: flex;
	align-items: center;
	gap: 24px;
	min-height: var(--dtka-header-h);
}

/* Branding / logo */
.site-branding { flex: 0 0 auto; }
.custom-logo-link { display: inline-flex; align-items: center; }
.custom-logo { max-height: 74px; width: auto; }
.brand-text { display: inline-flex; align-items: baseline; gap: 8px; text-decoration: none; }
.brand-mark { font-weight: 900; font-size: 30px; letter-spacing: -1px; line-height: 1; }
.brand-dt { color: var(--dtka-red); }
.brand-ka { color: var(--dtka-blue); }
.brand-name { font-size: 15px; font-weight: 600; color: var(--dtka-heading); letter-spacing: 1px; }

/* Main navigation (desktop) */
.site-navigation { margin-left: 80px; }
.primary-menu > ul {
	display: flex;
	align-items: center;
	gap: 14px;
	list-style: none;
}
.primary-menu > ul > li > a {
	display: inline-flex;
	align-items: center;
	padding: 10px 14px;
	font-size: 18px;
	font-weight: 500;
	color: var(--dtka-heading);
	white-space: nowrap;
	border-radius: var(--dtka-radius);
}
/* Blue hover / current */
.primary-menu a:hover,
.primary-menu .current-menu-item > a,
.primary-menu .current-menu-ancestor > a,
.primary-menu .current_page_item > a {
	color: var(--dtka-blue);
}

/* Desktop carets */
.primary-menu > ul > .menu-item-has-children > a::after {
	content: "";
	width: 7px; height: 7px;
	margin-left: 8px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(45deg) translateY(-2px);
	transition: transform var(--dtka-transition);
}
.sub-menu .menu-item-has-children > a::after {
	content: "";
	width: 7px; height: 7px;
	margin-left: auto;
	border-top: 2px solid currentColor;
	border-right: 2px solid currentColor;
	transform: rotate(45deg);
}

/* Dropdown panels (level 2 & 3) */
.primary-menu .sub-menu {
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 232px;
	list-style: none;
	background: #fff;
	border: 1px solid var(--dtka-border);
	border-top: 3px solid var(--dtka-blue);
	border-radius: 0 0 var(--dtka-radius) var(--dtka-radius);
	box-shadow: var(--dtka-shadow);
	padding: 8px 0;
	opacity: 0;
	visibility: hidden;
	transform: translateY(10px);
	transition: opacity var(--dtka-transition), transform var(--dtka-transition), visibility var(--dtka-transition);
	z-index: 120;
}
.primary-menu li { position: relative; }
.primary-menu li:hover > .sub-menu,
.primary-menu li:focus-within > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: none;
}
.primary-menu .sub-menu li { width: 100%; }
.primary-menu .sub-menu a {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 10px 20px;
	font-size: 15px;
	color: var(--dtka-text);
	white-space: nowrap;
}
.primary-menu .sub-menu a:hover {
	color: var(--dtka-blue);
	background: var(--dtka-blue-soft);
}
/* Level 3 flyout to the right */
.primary-menu .sub-menu .sub-menu {
	top: -8px;
	left: 100%;
	border-top-width: 1px;
	border-left: 3px solid var(--dtka-blue);
	border-radius: 0 var(--dtka-radius) var(--dtka-radius) 0;
}

/* Language slot */
.header-lang { flex: 0 0 auto; margin-left: auto; }
.lang-placeholder {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 12px;
	font-size: 14px;
	color: var(--dtka-heading);
	border: 1px solid var(--dtka-border);
	border-radius: 999px;
	cursor: pointer;
}
.lang-placeholder:hover { color: var(--dtka-blue); border-color: var(--dtka-blue); }
.lang-caret { font-size: 11px; }

/* GTranslate "nice dropdown with flags" in header */
.header-lang .gtranslate_wrapper { display: inline-block; }
.header-lang .gt_switcher {
	width: auto !important;
	line-height: normal !important;
	font-size: 15px !important;
	position: relative !important;
	overflow: visible !important;
}
/* remove GTranslate's own light gradient behind the trigger */
.header-lang .gt_switcher .gt_selected {
	background: transparent !important;
}
/* closed trigger: flag + name + caret, no background, light border */
.header-lang .gt_switcher .gt_selected a {
	width: auto !important;
	display: inline-flex !important;
	align-items: center;
	gap: 7px;
	line-height: 1.4 !important;
	padding: 6px 28px 6px 12px !important;
	border: 1px solid var(--dtka-border) !important;
	border-radius: 4px !important;
	background: transparent !important;
	background-image: none !important;
	box-shadow: none !important;
	color: var(--dtka-heading) !important;
	font-size: 15px !important;
}
.header-lang .gt_switcher .gt_selected a:hover {
	color: var(--dtka-blue) !important;
	border-color: var(--dtka-blue) !important;
	background: transparent !important;
}
/* flags: keep aspect ratio */
.header-lang .gt_switcher a img {
	opacity: 1 !important;
	width: auto !important;
	height: 18px !important;
	border-radius: 2px;
}
/* caret */
.header-lang .gt_switcher .gt_selected a:after {
	right: 11px !important;
	background-size: 11px !important;
}
/* dropdown list: flat panel, shows all items, no scrollbar */
.header-lang .gt_switcher .gt_option {
	position: absolute !important;
	top: 100%;
	left: 0;
	width: auto !important;
	min-width: 160px;
	height: auto !important;
	max-height: none !important;
	overflow: visible !important;
	scrollbar-width: none;
	-ms-overflow-style: none;
	border: 1px solid var(--dtka-border) !important;
	border-radius: 0 !important;
	background: #fff !important;
	box-shadow: 0 8px 24px rgba(2, 16, 48, .12) !important;
	margin-top: 6px;
	padding: 4px 0 !important;
}
.header-lang .gt_switcher .gt_option::-webkit-scrollbar {
	display: none;
	width: 0 !important;
	height: 0 !important;
}
.header-lang .gt_switcher .gt_option a {
	width: auto !important;
	display: flex !important;
	align-items: center;
	gap: 7px;
	line-height: 1.4 !important;
	padding: 8px 14px !important;
	color: var(--dtka-text) !important;
	background: transparent !important;
	font-size: 14px !important;
}
.header-lang .gt_switcher .gt_option a:hover {
	background: transparent !important;
	color: var(--dtka-blue) !important;
}

/* Mobile toggle (hidden on desktop) */
.menu-toggle {
	display: none;
	align-items: center;
	justify-content: center;
	width: 44px; height: 44px;
	background: transparent;
	border: 1px solid var(--dtka-border);
	border-radius: var(--dtka-radius);
	cursor: pointer;
}
.menu-toggle-box { position: relative; width: 20px; height: 14px; display: block; }
.menu-toggle-bar,
.menu-toggle-bar::before,
.menu-toggle-bar::after {
	position: absolute;
	left: 0;
	width: 20px; height: 2px;
	background: var(--dtka-heading);
	content: "";
	transition: transform var(--dtka-transition), opacity var(--dtka-transition);
}
.menu-toggle-bar { top: 6px; }
.menu-toggle-bar::before { top: -6px; }
.menu-toggle-bar::after { top: 6px; }
.menu-toggle.is-active .menu-toggle-bar { background: transparent; }
.menu-toggle.is-active .menu-toggle-bar::before { transform: translateY(6px) rotate(45deg); }
.menu-toggle.is-active .menu-toggle-bar::after { transform: translateY(-6px) rotate(-45deg); }

.sub-toggle { display: none; }

/* ==========================================================================
   Main content (minimal scaffolding)
   ========================================================================== */
.site-main { min-height: 50vh; }
.page-shell { padding: 48px 20px; }
.entry { margin-bottom: 36px; }
.entry-title { font-size: 26px; }
.entry-title a { color: var(--dtka-heading); }
.entry-title a:hover { color: var(--dtka-blue); }
.menu-hint {
	padding: 16px 20px;
	color: var(--dtka-muted);
	font-size: 14px;
	background: var(--dtka-blue-soft);
	border-radius: var(--dtka-radius);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--dtka-footer-bg); color: var(--dtka-footer-text); }
.footer-top { padding: 56px 0 36px; }
.footer-grid {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
	gap: 40px;
}
.footer-brand .custom-logo { max-height: 58px; }
.footer-brand .brand-name { color: #fff; }
.footer-desc { margin-top: 16px; font-size: 14px; line-height: 1.8; color: var(--dtka-footer-text); }
.footer-title {
	color: #fff;
	font-size: 16px;
	margin-bottom: 18px;
	padding-bottom: 10px;
	position: relative;
}
.footer-title::after {
	content: "";
	position: absolute; left: 0; bottom: 0;
	width: 32px; height: 2px;
	background: var(--dtka-blue);
}
.site-footer ul { list-style: none; }
.site-footer ul li { margin-bottom: 10px; }
.site-footer ul a { color: var(--dtka-footer-text); font-size: 14px; }
.site-footer ul a:hover { color: #fff; padding-left: 3px; }
.site-footer .sub-menu { margin-top: 8px; padding-left: 14px; }
.footer-contact-list li { font-size: 14px; line-height: 1.9; }

.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); }
.footer-bottom-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 20px;
	flex-wrap: wrap;
}
.copyright { font-size: 13px; color: var(--dtka-footer-text); }
.footer-legal-nav ul { display: flex; gap: 22px; }
.footer-legal-nav a { font-size: 13px; }

/* ==========================================================================
   Responsive — mobile drawer + accordion (supports 3 levels)
   ========================================================================== */
@media (max-width: 992px) {
	/* row-gap:0 — the collapsed nav is its own zero-height flex line; a row gap
	   would still push 12px of blank space under the logo row. */
	.header-inner { flex-wrap: wrap; gap: 0 12px; padding: 8px 16px; min-height: 0; }
	.site-branding { order: 1; }
	.custom-logo { max-height: 52px; }
	.menu-toggle { order: 2; display: inline-flex; margin-left: auto; }

	.site-navigation {
		order: 3;
		flex-basis: 100%;
		margin-left: 0;
		max-height: 0;
		overflow: hidden;
		transition: max-height .3s ease;
	}
	.site-navigation.is-open { max-height: 75vh; overflow-y: auto; margin-top: 6px; border-top: 1px solid var(--dtka-border); }

	/* Language switcher is revealed inside the opened menu. */
	.header-lang {
		order: 4;
		flex: 1 1 100%;
		margin-left: 0;
		display: none;
		padding: 12px 8px;
		border-top: 1px solid var(--dtka-border);
	}
	.site-navigation.is-open ~ .header-lang { display: block; }
	.header-lang .gt_switcher .gt_option { top: auto !important; bottom: 100% !important; margin-top: 0 !important; margin-bottom: 6px; }

	.primary-menu > ul { flex-direction: column; align-items: stretch; gap: 0; }

	/* One flex line per row: link + its toggle, submenu wrapped onto its own line.
	   Keeps a parent toggle from stretching over the rows it contains. */
	.primary-menu li { display: flex; flex-wrap: wrap; align-items: stretch; }
	.primary-menu li > a { flex: 1 1 auto; min-width: 0; }
	.primary-menu > ul > li > a {
		display: flex;
		align-items: center;
		padding: 14px 8px;
		border-bottom: 1px solid var(--dtka-border);
	}
	.primary-menu > ul > .menu-item-has-children > a::after { display: none; }

	/* Submenus become static accordions */
	.primary-menu .sub-menu {
		flex: 1 1 100%;
		order: 3;
		position: static;
		opacity: 1;
		visibility: visible;
		transform: none;
		box-shadow: none;
		border: none;
		border-radius: 0;
		padding: 0;
		min-width: 0;
		display: none;
	}
	.primary-menu li.submenu-open > .sub-menu { display: block; }
	.primary-menu .sub-menu a {
		white-space: normal;
		padding: 12px 8px 12px 22px;
		border-bottom: 1px solid var(--dtka-border);
	}
	.primary-menu .sub-menu .sub-menu { border-left: 3px solid var(--dtka-blue); background: var(--dtka-blue-soft); }
	.primary-menu .sub-level-3 a { padding-left: 40px; font-size: 14px; }
	.sub-menu .menu-item-has-children > a::after { display: none; }

	/* Mobile submenu toggle buttons — confined to their own row. */
	.sub-toggle {
		display: inline-flex;
		flex: 0 0 52px;
		align-items: center;
		justify-content: center;
		width: 52px;
		background: transparent;
		border: none;
		border-bottom: 1px solid var(--dtka-border);
		cursor: pointer;
		-webkit-tap-highlight-color: transparent;
		touch-action: manipulation;
	}
	li.submenu-open > .sub-toggle { border-bottom-color: transparent; }
	.sub-toggle-icon {
		width: 9px; height: 9px;
		border-right: 2px solid var(--dtka-blue);
		border-bottom: 2px solid var(--dtka-blue);
		transform: rotate(45deg);
		transition: transform var(--dtka-transition);
	}
	li.submenu-open > .sub-toggle .sub-toggle-icon { transform: rotate(225deg); }

	.footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
}

@media (max-width: 560px) {
	.footer-grid { grid-template-columns: 1fr; }
	.footer-bottom-inner { flex-direction: column; justify-content: center; text-align: center; }
	.brand-mark { font-size: 26px; }
}

/* ==========================================================================
   Page template (page.php) — banner hero + breadcrumb bar + content
   ========================================================================== */
.page-hero {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 340px;
	padding: 60px 0;
	background-color: var(--dtka-footer-bg);
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}
.page-hero-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(9, 23, 48, .42) 0%, rgba(9, 23, 48, .60) 100%);
}
.page-hero-inner { position: relative; z-index: 1; text-align: center; }
.page-title {
	margin: 0;
	color: #fff;
	font-size: clamp(28px, 4vw, 44px);
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: .5px;
	text-shadow: 0 2px 12px rgba(0, 0, 0, .25);
}

/* Breadcrumb bar under the banner */
.catalog-breadcrumb-bar { background: #fff; border-bottom: 1px solid var(--dtka-border); }
.catalog-breadcrumb {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	padding: 14px 0;
	font-size: 14px;
	color: var(--dtka-muted);
}
.catalog-breadcrumb a { color: var(--dtka-muted); }
.catalog-breadcrumb a:hover { color: var(--dtka-blue); }
.catalog-breadcrumb .sep { color: #c2c8d0; }
.catalog-breadcrumb .current { color: var(--dtka-heading); font-weight: 600; }

/* Content area */
.page-main { padding: 56px 0 64px; }
.page-article { color: var(--dtka-text); font-size: 16px; line-height: 1.85; }
.page-article > :first-child { margin-top: 0; }
.page-article h1, .page-article h2, .page-article h3, .page-article h4 {
	color: var(--dtka-heading);
	margin: 1.6em 0 .6em;
	line-height: 1.35;
}
.page-article h2 { font-size: 26px; }
.page-article h3 { font-size: 21px; }
.page-article p { margin: 0 0 1.15em; }
.page-article a { color: var(--dtka-blue); }
.page-article a:hover { color: var(--dtka-blue-dark); text-decoration: underline; }
.page-article ul, .page-article ol { margin: 0 0 1.2em; padding-left: 1.4em; }
.page-article li { margin-bottom: .5em; }
.page-article img { border-radius: var(--dtka-radius); }
.page-article figure { margin: 0 0 1.4em; }
.page-article blockquote {
	margin: 0 0 1.3em;
	padding: 14px 20px;
	border-left: 4px solid var(--dtka-blue);
	background: var(--dtka-blue-soft);
	color: var(--dtka-heading);
}
.page-article table { width: 100%; border-collapse: collapse; margin: 0 0 1.4em; }
.page-article th, .page-article td { border: 1px solid var(--dtka-border); padding: 10px 12px; text-align: left; }
.page-article th { background: var(--dtka-blue-soft); color: var(--dtka-heading); }

@media (max-width: 767px) {
	.page-hero { min-height: 168px; padding: 24px 0; }
	.page-main { padding: 40px 0 48px; }
}

/* ==========================================================================
   Applications page — authored with the default Gutenberg editor (blocks)
   Scoped under .app-page; supplies its own column layout.
   ========================================================================== */
.app-page .wp-block-columns { display: flex; flex-wrap: wrap; gap: 24px; margin: 0 0 40px; }
.app-page .wp-block-column { flex: 1 1 240px; min-width: 0; }
.app-page .wp-block-group { margin: 0 0 40px; }
.app-page > .wp-block-group:last-child { margin-bottom: 0; }

.app-eyebrow { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--dtka-blue); margin: 0 0 10px !important; }
.app-eyebrow--light { color: #8fb8ff; }

/* Intro */
.app-page .app-intro { padding: 24px 0 8px; text-align: center; }
.app-title { position: relative; font-size: clamp(24px, 3vw, 34px) !important; font-weight: 700; line-height: 1.3; color: var(--dtka-heading); margin: 0 auto 18px !important; max-width: 820px; }
.app-title::after { content: ""; display: block; width: 56px; height: 3px; background: var(--dtka-blue); border-radius: 2px; margin: 14px auto 0; }
.app-lead { max-width: 760px; margin: 0 auto !important; font-size: 16px; line-height: 1.85; color: var(--dtka-muted); }

/* Applications grid */
.app-page .app-grid { gap: 26px; margin-bottom: 48px !important; }
.app-page .app-card { flex: 1 1 calc(33.333% - 18px); display: flex; flex-direction: column; background: #fff; border: 1px solid var(--dtka-border); border-radius: var(--dtka-radius); overflow: hidden; padding-bottom: 22px; transition: transform .25s ease, box-shadow .25s ease; }
.app-card:hover { transform: translateY(-4px); box-shadow: var(--dtka-shadow); }
.app-card .wp-block-image { margin: 0; }
.app-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; transition: transform .4s ease; }
.app-card:hover img { transform: scale(1.05); }
.app-card-title { font-size: 18px !important; font-weight: 700; color: var(--dtka-heading); margin: 0 !important; padding: 18px 20px 6px; }
.app-card-text { font-size: 14px; line-height: 1.7; color: var(--dtka-muted); margin: 0 !important; padding: 0 20px; }

/* Spotlight band */
.app-page .app-spotlight { background: var(--dtka-footer-bg); color: #fff; border-radius: 12px; overflow: hidden; }
.app-page .app-spotlight-inner { margin: 0 !important; gap: 0; align-items: stretch; }
.app-page .app-spotlight-media { flex: 0 1 46%; padding: 0 !important; }
.app-page .app-spotlight-body { flex: 1 1 54%; padding: 48px 44px !important; display: flex; flex-direction: column; justify-content: center; }
.app-spotlight-media .wp-block-image { margin: 0; height: 100%; }
.app-spotlight-media img { width: 100%; height: 100%; min-height: 320px; object-fit: cover; display: block; }
.app-spotlight-title { font-size: clamp(22px, 2.6vw, 30px) !important; color: #fff !important; margin: 0 0 14px !important; }
.app-spotlight-text { font-size: 16px; line-height: 1.8; color: #c7d2e3; margin: 0 0 22px !important; }
.app-spotlight .wp-block-button__link { background: var(--dtka-blue); color: #fff; font-weight: 600; padding: 13px 28px; border-radius: var(--dtka-radius); }
.app-spotlight .wp-block-button__link:hover { background: var(--dtka-blue-dark); color: #fff; }

/* CTA band */
.app-page .app-cta { background: var(--dtka-blue); color: #fff; padding: 52px 28px; border-radius: 12px; text-align: center; margin-bottom: 0 !important; }
.app-cta-title { color: #fff !important; font-size: 28px !important; margin: 0 0 10px !important; }
.app-cta-text { color: #dbe7fb !important; font-size: 16px; margin: 0 auto 24px !important; max-width: 620px; }
.app-cta .wp-block-buttons { justify-content: center; }
.app-cta .wp-block-button__link { background: #fff; color: var(--dtka-blue); font-weight: 700; padding: 14px 30px; border-radius: var(--dtka-radius); }
.app-cta .wp-block-button__link:hover { background: #eaf1ff; color: var(--dtka-blue-dark); }

@media (max-width: 900px) {
	.app-page .app-grid > .wp-block-column.app-card { flex: 1 1 calc(50% - 13px) !important; }
	.app-page .app-spotlight-inner { flex-direction: column; }
	.app-page .app-spotlight-media, .app-page .app-spotlight-body { flex: 1 1 auto !important; width: 100% !important; }
	.app-spotlight-media img { min-height: 240px; }
	.app-page .app-spotlight-body { padding: 36px 26px !important; }
}
@media (max-width: 600px) {
	.app-page .app-grid > .wp-block-column.app-card { flex: 1 1 100% !important; }
}

/* ==========================================================================
   About Us page — authored with the default Gutenberg editor (blocks)
   Scoped under .about-page so it also supplies its own column layout.
   ========================================================================== */
.about-page > * + * { margin-top: 0; }
.about-page .wp-block-columns { display: flex; flex-wrap: wrap; gap: 24px; margin: 0 0 40px; }
.about-page .wp-block-column { flex: 1 1 240px; min-width: 0; }
.about-page .wp-block-group { margin: 0 0 40px; }
.about-page > .wp-block-group:last-child { margin-bottom: 0; }

.about-eyebrow { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--dtka-blue); margin: 0 0 10px !important; }
.about-h { font-size: clamp(22px, 2.6vw, 30px) !important; font-weight: 700; color: var(--dtka-heading); margin: 0 0 16px !important; line-height: 1.3; }
.about-lead { font-size: 18px; line-height: 1.7; color: var(--dtka-heading); font-weight: 500; margin: 0 0 14px !important; }
.about-p { font-size: 16px; line-height: 1.85; color: var(--dtka-text); margin: 0 0 18px !important; }

/* Section title (centered, blue underline) */
.about-sec-title { position: relative; text-align: center; font-size: clamp(22px, 2.6vw, 30px) !important; font-weight: 700; color: var(--dtka-heading); margin: 0 0 36px !important; }
.about-sec-title::after { content: ""; display: block; width: 56px; height: 3px; background: var(--dtka-blue); border-radius: 2px; margin: 14px auto 0; }

/* Overview */
.about-overview { align-items: center; }
.about-overview .about-overview-media { flex: 0 1 44%; }
.about-overview .about-overview-body { flex: 1 1 46%; }
.about-overview-media .wp-block-image { margin: 0; }
.about-overview-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--dtka-radius); box-shadow: var(--dtka-shadow); }
.about-info { list-style: none; padding: 0; margin: 14px 0 0 !important; display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; }
.about-info li { padding: 10px 0; border-bottom: 1px solid var(--dtka-border); font-size: 14px; color: var(--dtka-heading); }
.about-info li strong { color: var(--dtka-muted); font-weight: 600; margin-right: 6px; }

/* Stats band */
.about-stats { background: var(--dtka-blue); color: #fff; padding: 36px 28px; border-radius: 10px; }
.about-stats .about-stats-inner { margin: 0 !important; gap: 16px; }
.about-stat { flex: 1 1 170px; text-align: center; }
.about-stat .about-stat-num { margin: 0 !important; font-size: 24px; font-weight: 800; line-height: 1.25; color: #fff; }
.about-stat .about-stat-label { margin: 4px 0 0 !important; font-size: 14px; opacity: .9; color: #fff; }

/* Capabilities band */
.about-caps-band { background: #f7f9fc; padding: 56px 28px; border-radius: 10px; }
.about-caps { margin: 0 !important; gap: 22px; }
.about-cap { flex: 1 1 220px; background: #fff; border: 1px solid var(--dtka-border); border-radius: var(--dtka-radius); padding: 28px 22px; transition: transform .25s ease, box-shadow .25s ease; }
.about-cap:hover { transform: translateY(-4px); box-shadow: var(--dtka-shadow); }
.about-cap-title { font-size: 17px !important; font-weight: 700; color: var(--dtka-heading); margin: 0 0 10px !important; }
.about-cap-text { font-size: 14px; line-height: 1.7; color: var(--dtka-muted); margin: 0 !important; }

/* Field gallery */
.about-shots { gap: 22px; }
.about-shot { flex: 1 1 300px; }
.about-shot .wp-block-image { margin: 0; }
.about-shot img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--dtka-radius); box-shadow: 0 8px 22px rgba(2, 16, 48, .1); transition: transform .4s ease; }
.about-shot:hover img { transform: scale(1.04); }
.about-shot figcaption { font-size: 14px; color: var(--dtka-muted); text-align: center; margin-top: 10px; }

/* Certifications & global reach */
.about-global { align-items: center; }
.about-global .about-global-media { flex: 0 1 30%; }
.about-global .about-global-body { flex: 1 1 52%; }
.about-global-media .wp-block-image { margin: 0; background: #fff; border: 1px solid var(--dtka-border); border-radius: var(--dtka-radius); padding: 16px; box-shadow: var(--dtka-shadow); }
.about-global-media img { width: 100%; aspect-ratio: 3 / 4; object-fit: contain; }
.about-markets { list-style: none; padding: 0; margin: 6px 0 0 !important; display: flex; flex-wrap: wrap; gap: 10px; }
.about-markets li { background: var(--dtka-blue-soft); color: var(--dtka-blue); font-size: 14px; font-weight: 600; padding: 7px 16px; border-radius: 999px; }

/* CTA */
.about-cta { background: var(--dtka-footer-bg); color: #fff; padding: 48px 28px; border-radius: 10px; text-align: center; margin-bottom: 0 !important; }
.about-cta .about-cta-title { color: #fff !important; font-size: 26px !important; margin: 0 0 10px !important; }
.about-cta .about-cta-text { color: var(--dtka-footer-text) !important; font-size: 16px; margin: 0 auto 24px !important; max-width: 640px; }
.about-cta .wp-block-buttons { justify-content: center; }
.about-cta .wp-block-button__link { background: var(--dtka-blue); color: #fff; font-weight: 600; padding: 14px 30px; border-radius: var(--dtka-radius); }
.about-cta .wp-block-button__link:hover { background: var(--dtka-blue-dark); color: #fff; }

@media (max-width: 782px) {
	.about-page .wp-block-columns { flex-direction: column; }
	.about-page .wp-block-column { flex: 1 1 auto !important; width: 100% !important; }
	.about-info { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Contact Us page — authored with Gutenberg blocks (.contact-page)
   ========================================================================== */
.contact-page .wp-block-columns { display: flex; flex-wrap: wrap; gap: 34px; margin: 0; align-items: flex-start; }
.contact-page .wp-block-column { min-width: 0; }
/* Core's `.wp-block-columns:not(.is-not-stacked-on-mobile) > .wp-block-column`
   sets flex-grow/flex-basis at (0,3,0), so the split needs equal or higher weight. */
.contact-page .ct-layout > .wp-block-column.ct-info-col { flex: 0 0 54%; }
.contact-page .ct-layout > .wp-block-column.ct-map-col { flex: 1 1 0; }

.ct-eyebrow { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--dtka-blue); margin: 0 0 10px !important; }
.ct-title { font-size: 28px !important; font-weight: 800; color: var(--dtka-heading); margin: 0 0 14px !important; }
.ct-lead { font-size: 15px; line-height: 1.8; color: var(--dtka-muted); margin: 0 0 22px !important; }

/* Label / value rows with hairline separators, like the About facts list */
.ct-info { list-style: none; padding: 0; margin: 0 0 24px !important; }
.ct-info li { display: flex; flex-wrap: wrap; gap: 2px 12px; padding: 11px 0; border-bottom: 1px solid var(--dtka-border); font-size: 14.5px; color: var(--dtka-heading); }
.ct-info li:first-child { padding-top: 0; }
.ct-info li:last-child { border-bottom: 0; }
.ct-info li strong { flex: 0 0 128px; color: var(--dtka-muted); font-weight: 600; }
.ct-info li a { color: var(--dtka-blue); text-decoration: none; word-break: break-all; }
.ct-info li a:hover { color: var(--dtka-blue-dark); text-decoration: underline; }

/* Inquiry checklist card — same treatment as the product detail quote widget */
.ct-card { background: linear-gradient(180deg, #f7faff, #fff); border: 1px solid var(--dtka-border); border-radius: var(--dtka-radius); padding: 18px 18px 20px; }
.ct-card-title { position: relative; margin: 0 0 14px !important; padding-bottom: 10px; font-size: 17px !important; font-weight: 700; color: var(--dtka-blue); }
.ct-card-title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 34px; height: 2px; background: var(--dtka-blue); }
.ct-card-list { list-style: none; padding: 0; margin: 0 !important; }
.ct-card-list li { position: relative; padding-left: 18px; margin-bottom: 9px; font-size: 14px; line-height: 1.6; color: var(--dtka-muted); }
.ct-card-list li:last-child { margin-bottom: 0; }
.ct-card-list li::before { content: ""; position: absolute; left: 0; top: 7px; width: 7px; height: 7px; border-radius: 999px; background: var(--dtka-blue); }

/* Google map */
.ct-map { margin: 0 !important; border: 1px solid var(--dtka-border); border-radius: var(--dtka-radius); overflow: hidden; background: #fff; box-shadow: var(--dtka-shadow); }
.ct-map iframe { display: block; width: 100%; height: 480px; border: 0; }
.ct-map-note { font-size: 13.5px; line-height: 1.7; color: var(--dtka-muted); margin: 14px 0 0 !important; }

@media (max-width: 782px) {
	.contact-page .wp-block-columns { flex-direction: column; gap: 28px; }
	.contact-page .ct-layout > .wp-block-column { flex: 0 0 100% !important; width: 100% !important; }
	.ct-info li strong { flex: 1 1 100%; }
	.ct-map iframe { height: 340px; }
}

/* ==========================================================================
   Global Cases page — authored with Gutenberg blocks (.cases-page)
   ========================================================================== */
.cases-page .wp-block-columns { display: flex; flex-wrap: wrap; gap: 24px; margin: 0 0 40px; }
.cases-page .wp-block-column { flex: 1 1 240px; min-width: 0; }
.cases-page .wp-block-group { margin: 0 0 40px; }
.cases-page > .wp-block-group:last-child { margin-bottom: 0; }
.case-eyebrow { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--dtka-blue); margin: 0 0 10px !important; }

/* Intro */
.cases-page .case-intro { padding: 24px 0 8px; text-align: center; }
.case-title { position: relative; font-size: clamp(24px, 3vw, 34px) !important; font-weight: 700; color: var(--dtka-heading); margin: 0 auto 18px !important; max-width: 820px; }
.case-title::after { content: ""; display: block; width: 56px; height: 3px; background: var(--dtka-blue); border-radius: 2px; margin: 14px auto 0; }
.case-lead { max-width: 760px; margin: 0 auto !important; font-size: 16px; line-height: 1.85; color: var(--dtka-muted); }

/* Case grid */
.cases-page .case-grid { gap: 26px; margin-bottom: 48px !important; }
.cases-page .case-card { flex: 1 1 calc(33.333% - 18px); display: flex; flex-direction: column; background: #fff; border: 1px solid var(--dtka-border); border-radius: var(--dtka-radius); overflow: hidden; padding-bottom: 22px; transition: transform .25s ease, box-shadow .25s ease; }
.cases-page .case-card:hover { transform: translateY(-4px); box-shadow: var(--dtka-shadow); }
.case-card .wp-block-image { margin: 0; }
.case-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; transition: transform .4s ease; }
.case-card:hover img { transform: scale(1.05); }
.case-stars { color: #f5a623; letter-spacing: 2px; font-size: 15px; margin: 16px 20px 6px !important; }
.case-stars--light { color: #f5b301; }
.case-card-title { font-size: 16px !important; font-weight: 700; color: var(--dtka-heading); margin: 0 !important; padding: 0 20px; }
.case-quote { font-size: 14px; line-height: 1.7; color: var(--dtka-muted); margin: 0 !important; padding: 8px 20px 0; font-style: italic; }

/* Featured testimonial */
.cases-page .case-feature { background: var(--dtka-blue); color: #fff; border-radius: 12px; overflow: hidden; }
.cases-page .case-feature-inner { margin: 0 !important; gap: 0; align-items: stretch; }
.cases-page .case-feature-media { flex: 0 1 44%; padding: 0 !important; }
.cases-page .case-feature-body { flex: 1 1 56%; padding: 48px 44px !important; display: flex; flex-direction: column; justify-content: center; }
.case-feature-media .wp-block-image { margin: 0; height: 100%; }
.case-feature-media img { width: 100%; height: 100%; min-height: 300px; object-fit: cover; display: block; }
.case-feature-quote { font-size: clamp(19px, 2.2vw, 24px) !important; line-height: 1.5; font-weight: 600; color: #fff !important; margin: 0 0 16px !important; }
.case-feature-meta { font-size: 14px; color: #cfe0ff; margin: 0 !important; letter-spacing: .5px; }

/* CTA */
.cases-page .case-cta { background: var(--dtka-footer-bg); color: #fff; padding: 52px 28px; border-radius: 12px; text-align: center; margin-bottom: 0 !important; }
.case-cta-title { color: #fff !important; font-size: 28px !important; margin: 0 0 10px !important; }
.case-cta-text { color: var(--dtka-footer-text) !important; font-size: 16px; margin: 0 auto 24px !important; max-width: 620px; }
.case-cta .wp-block-buttons { justify-content: center; }
.case-cta .wp-block-button__link { background: var(--dtka-blue); color: #fff; font-weight: 700; padding: 14px 30px; border-radius: var(--dtka-radius); }
.case-cta .wp-block-button__link:hover { background: var(--dtka-blue-dark); color: #fff; }

@media (max-width: 900px) {
	.cases-page .case-grid > .wp-block-column.case-card { flex: 1 1 calc(50% - 13px) !important; }
	.cases-page .case-feature-inner { flex-direction: column; }
	.cases-page .case-feature-media, .cases-page .case-feature-body { flex: 1 1 auto !important; width: 100% !important; }
	.case-feature-media img { min-height: 240px; }
	.cases-page .case-feature-body { padding: 36px 26px !important; }
}
@media (max-width: 600px) {
	.cases-page .case-grid > .wp-block-column.case-card { flex: 1 1 100% !important; }
}

/* ==========================================================================
   News list (page-news.php / index.php) + article card (.news-*)
   ========================================================================== */
.news-intro { max-width: 820px; margin: 0 auto 38px; text-align: center; font-size: 16px; line-height: 1.85; color: var(--dtka-muted); }
.news-intro p { margin: 0; }

.news-grid { display: flex; flex-wrap: wrap; gap: 26px; }
.news-card { flex: 1 1 calc(33.333% - 18px); min-width: 0; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--dtka-border); border-radius: var(--dtka-radius); overflow: hidden; transition: transform .25s ease, box-shadow .25s ease; }
.news-card:hover { transform: translateY(-4px); box-shadow: var(--dtka-shadow); }

.news-card-media { display: block; overflow:hidden; aspect-ratio: 16 / 10; background: #eef1f5; }
.news-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.news-card:hover .news-card-media img { transform: scale(1.05); }

.news-card-body { flex: 1; display: flex; flex-direction: column; padding: 20px; }
.news-card-meta { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--dtka-muted); margin-bottom: 10px; }
.news-card-meta .news-card-dot { color: #c2c8d0; }
.news-card-cat { color: var(--dtka-blue); font-weight: 600; text-decoration: none; }
.news-card-cat:hover { text-decoration: underline; }
.news-card-title { font-size: 18px; line-height: 1.35; font-weight: 700; margin: 0 0 10px; }
.news-card-title a { color: var(--dtka-heading); text-decoration: none; }
.news-card-title a:hover { color: var(--dtka-blue); }
.news-card-excerpt { flex: 1; font-size: 14px; line-height: 1.7; color: var(--dtka-muted); margin: 0 0 16px; }
.news-card-more { align-self: flex-start; font-size: 14px; font-weight: 600; color: var(--dtka-blue); text-decoration: none; }
.news-card-more:hover { color: var(--dtka-blue-dark); }

.news-empty { text-align: center; color: var(--dtka-muted); font-size: 16px; padding: 44px 0; }

/* Pagination (manual list + core nav) */
.news-pagination { margin-top: 44px; }
.news-pagination .navigation, .news-pagination nav { display: flex; justify-content: center; }
.news-pagination .nav-links, .news-pagination ul.page-numbers { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; list-style: none; margin: 0; padding: 0; }
.news-pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 42px; height: 42px; padding: 0 14px; border: 1px solid var(--dtka-border); border-radius: var(--dtka-radius); background: #fff; font-size: 14px; font-weight: 600; color: var(--dtka-heading); text-decoration: none; transition: var(--dtka-transition); }
.news-pagination .page-numbers.current { background: var(--dtka-blue); border-color: var(--dtka-blue); color: #fff; }
.news-pagination .page-numbers:hover:not(.current) { border-color: var(--dtka-blue); color: var(--dtka-blue); }

/* ==========================================================================
   Single post detail (.single-*) — reuses .page-hero / .page-article
   ========================================================================== */
.single-article { max-width: 860px; margin: 0 auto; }
.single-meta { display: flex; align-items: center; gap: 14px; font-size: 14px; color: var(--dtka-muted); margin: 0 0 24px; }
.single-cat { color: var(--dtka-blue); font-weight: 600; background: var(--dtka-blue-soft); padding: 4px 14px; border-radius: 999px; text-decoration: none; }
.single-thumb img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; display: block; }
.single-featured { margin: 0 0 30px; }
.single-featured img { width: 100%; border-radius: var(--dtka-radius); box-shadow: var(--dtka-shadow); display: block; }
.single-body { font-size: 17px; }

.single-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.single-tag { font-size: 13px; color: var(--dtka-blue); background: var(--dtka-blue-soft); padding: 6px 14px; border-radius: 999px; text-decoration: none; }
.single-tag:hover { background: var(--dtka-blue); color: #fff; }

.single-nav { display: flex; gap: 16px; max-width: 860px; margin: 40px auto 0; }
.single-nav-item { flex: 1 1 0; display: flex; flex-direction: column; gap: 5px; padding: 18px 20px; border: 1px solid var(--dtka-border); border-radius: var(--dtka-radius); background: #fff; text-decoration: none; transition: var(--dtka-transition); }
.single-nav-item:hover { border-color: var(--dtka-blue); box-shadow: var(--dtka-shadow); }
.single-nav-next { text-align: right; }
.single-nav-label { font-size: 13px; color: var(--dtka-muted); }
.single-nav-title { font-size: 15px; font-weight: 600; color: var(--dtka-heading); }

.single-related { max-width: 1040px; margin: 56px auto 0; }
.related-title { position: relative; text-align: center; font-size: 24px; font-weight: 700; color: var(--dtka-heading); margin: 0 0 32px; }
.related-title::after { content: ""; display: block; width: 56px; height: 3px; background: var(--dtka-blue); border-radius: 2px; margin: 12px auto 0; }

.single-back { text-align: center; margin-top: 48px; }
.single-back-link { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 600; color: var(--dtka-blue); text-decoration: none; }
.single-back-link:hover { color: var(--dtka-blue-dark); }

@media (max-width: 900px) {
	.news-card { flex-basis: calc(50% - 13px); }
	.single-nav { flex-direction: column; }
	.single-nav-next { text-align: left; }
}
@media (max-width: 600px) {
	.news-card { flex-basis: 100%; }
}

/* ==========================================================================
   Product archive — taxonomy-catalog.php / page-products.php (.prod-*)
   Banner + breadcrumb reuse .page-hero / .catalog-breadcrumb
   ========================================================================== */
.prod-eyebrow { margin: 0 0 10px; font-size: 13px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: #cfe0ff; }

/* Two-column shell: sidebar left, product list right */
.prod-layout { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 36px; }
.prod-sidebar { flex: 0 0 260px; width: 260px; }
.prod-main { flex: 1 1 0; min-width: 0; }

/* Sidebar — category tree */
.prod-side-block { background: #fff; border: 1px solid var(--dtka-border); border-radius: var(--dtka-radius); padding: 20px; margin-bottom: 22px; }
.prod-side-title { font-size: 16px; font-weight: 700; color: var(--dtka-heading); margin: 0 0 14px; padding-bottom: 12px; border-bottom: 2px solid var(--dtka-blue); }
.prod-cat-list, .prod-cat-sublist { list-style: none; margin: 0; padding: 0; }
.prod-cat-list > li { margin-bottom: 2px; }
.prod-cat-list a, .prod-cat-sublist a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 10px 12px;
	border-radius: 4px;
	font-size: 14px;
	color: var(--dtka-text);
	text-decoration: none;
	transition: var(--dtka-transition);
}
.prod-cat-list a:hover, .prod-cat-sublist a:hover { background: var(--dtka-blue-soft); color: var(--dtka-blue); }
.prod-cat-list .count, .prod-cat-sublist .count { font-size: 12px; color: var(--dtka-muted); background: #f2f4f7; border-radius: 999px; padding: 1px 8px; }
.prod-cat-sublist { margin: 2px 0 6px; }
.prod-cat-sublist a { padding-left: 24px; font-size: 13px; }
.prod-cat-list > li.is-active > a, .prod-cat-sublist > li.is-active > a { background: var(--dtka-blue); color: #fff; font-weight: 600; }
.prod-cat-list > li.is-active > a .count, .prod-cat-sublist > li.is-active > a .count { background: rgba(255, 255, 255, .18); color: #fff; }

/* Sidebar — inquiry CTA (same card treatment as the product detail quote widget) */
.prod-side-cta {
	background: linear-gradient(180deg, #f7faff, #fff);
	border: 1px solid var(--dtka-border);
	border-radius: var(--dtka-radius);
	padding: 18px 18px 20px;
}
.prod-side-cta-title {
	position: relative;
	margin: 0 0 14px;
	padding-bottom: 10px;
	font-size: 17px;
	font-weight: 700;
	color: var(--dtka-blue);
}
.prod-side-cta-title::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 34px;
	height: 2px;
	background: var(--dtka-blue);
}
.prod-side-cta-text { margin: 0 0 14px; font-size: 13px; line-height: 1.6; color: #555; }
.prod-side-cta-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 42px;
	border-radius: 999px;
	background: #f5a623;
	color: #fff;
	font-size: 15px;
	font-weight: 700;
	text-decoration: none;
	/* Hard dark bottom rim + warm glow, matching the detail-page pill. */
	box-shadow: 0 2px 0 #714f10, 0 6px 16px rgba(245, 166, 35, .3);
	transition: background .2s ease, transform .2s ease;
}
.prod-side-cta-btn:hover { background: #e08e00; color: #fff; transform: translateY(-2px); box-shadow: 0 2px 0 #714f10, 0 8px 18px rgba(245, 166, 35, .42); }
.prod-side-cta-contacts { margin-top: 16px; display: flex; flex-direction: column; gap: 10px; }
.prod-side-cta-contact { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--dtka-heading); text-decoration: none; word-break: break-all; }
.prod-side-cta-contact:hover { color: var(--dtka-blue); }
.prod-side-cta-contact svg { width: 15px; height: 15px; flex: 0 0 auto; color: var(--dtka-blue); }
.prod-side-cta-wa svg { color: #25d366; }

/* List head + grid */
.prod-desc { font-size: 15px; line-height: 1.8; color: var(--dtka-muted); margin: 0 0 26px; }
.prod-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.prod-card {
	min-width: 0;
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid var(--dtka-border);
	border-radius: var(--dtka-radius);
	overflow: hidden;
	text-decoration: none;
	transition: transform .25s ease, box-shadow .25s ease;
}
.prod-card:hover { transform: translateY(-4px); box-shadow: var(--dtka-shadow); }
.prod-card-media { display: block; aspect-ratio: 4 / 3; background: #eef2f7; overflow: hidden; }
.prod-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.prod-card:hover .prod-card-media img { transform: scale(1.05); }
.prod-card-body { flex: 1; display: flex; flex-direction: column; gap: 8px; padding: 16px 18px 18px; }
.prod-card-cat { align-self: flex-start; font-size: 11px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; color: var(--dtka-blue); background: var(--dtka-blue-soft); padding: 3px 10px; border-radius: 999px; }
.prod-card-title {
	font-size: 15px;
	font-weight: 600;
	line-height: 1.45;
	color: var(--dtka-heading);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.prod-card:hover .prod-card-title { color: var(--dtka-blue); }
.prod-card-specs { display: flex; flex-direction: column; gap: 5px; font-size: 12.5px; }
.prod-spec { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 5px; border-top: 1px dashed var(--dtka-border); color: var(--dtka-heading); }
.prod-spec-k { color: var(--dtka-muted); }
.prod-card-foot { margin-top: auto; padding-top: 12px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.prod-card-more { font-size: 13px; font-weight: 600; color: var(--dtka-muted); }
.prod-card:hover .prod-card-more { color: var(--dtka-blue); }
.prod-empty { text-align: center; color: var(--dtka-muted); font-size: 16px; padding: 44px 0; }

/* Pagination */
.prod-pagination { margin-top: 44px; }
.prod-pagination ul.page-numbers { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; list-style: none; margin: 0; padding: 0; }
.prod-pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 42px; height: 42px; padding: 0 14px; border: 1px solid var(--dtka-border); border-radius: var(--dtka-radius); background: #fff; font-size: 14px; font-weight: 600; color: var(--dtka-heading); text-decoration: none; transition: var(--dtka-transition); }
.prod-pagination .page-numbers.current { background: var(--dtka-blue); border-color: var(--dtka-blue); color: #fff; }
.prod-pagination .page-numbers:hover:not(.current) { border-color: var(--dtka-blue); color: var(--dtka-blue); }

@media (max-width: 1024px) {
	.prod-layout { flex-direction: column-reverse; }
	.prod-sidebar { flex: 1 1 auto; width: 100%; }
}
@media (max-width: 900px) {
	/* Keep three products per row on tablets and phones. */
	.prod-grid { gap: 14px; }
	.prod-card-body { padding: 12px 12px 14px; gap: 6px; }
	.prod-card-cat { font-size: 10px; padding: 2px 7px; }
	.prod-card-title { font-size: 13px; -webkit-line-clamp: 3; }
	.prod-card-specs { font-size: 11px; }
	.prod-card-more { font-size: 12px; }
}
@media (max-width: 600px) {
	.prod-grid { gap: 10px; }
	.prod-card-body { padding: 9px 9px 11px; gap: 5px; }
	.prod-card-title { font-size: 11.5px; }
	.prod-card-specs { font-size: 10px; }
	.prod-spec { display: block; padding-top: 3px; }
	.prod-spec-k { display: block; font-size: 9px; }
	.prod-card-foot { flex-direction: column; align-items: flex-start; gap: 2px; padding-top: 8px; }
	.prod-card-media { aspect-ratio: 1 / 1; }
}

/* ==========================================================================
   Floating quick-contact bar (.dt-float) — footer.php, every page
   ========================================================================== */
.dt-float {
	position: fixed;
	right: 0;
	bottom: 18vh;
	z-index: 900;
	display: flex;
	flex-direction: column;
	gap: 6px;
}
.dt-float-item { position: relative; }
.dt-float-btn {
	width: 46px;
	height: 46px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--dtka-blue);
	color: #fff;
	border: 0;
	border-radius: 6px 0 0 6px;
	cursor: pointer;
	text-decoration: none;
	box-shadow: 0 2px 10px rgba(2, 16, 48, .2);
	transition: background .2s ease, transform .2s ease;
}
.dt-float-btn:hover, .dt-float-btn:focus-visible { background: var(--dtka-blue-dark); color: #fff; transform: translateX(-3px); }
.dt-float-btn svg { width: 21px; height: 21px; }
.dt-float-wa, .dt-float-wa:hover { background: #25d366; }
.dt-float-wa:hover { background: #1eb257; }
.dt-float-top { opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .25s ease, background .2s ease, transform .2s ease; }
.dt-float-top.is-show { opacity: 1; visibility: visible; pointer-events: auto; }

/* Speech-bubble tooltip on hover / keyboard focus */
.dt-float-tip {
	position: absolute;
	right: 54px;
	top: 50%;
	transform: translateY(-50%) scale(.96);
	background: #fff;
	color: var(--dtka-heading);
	border: 1px solid var(--dtka-border);
	border-radius: 6px;
	padding: 8px 12px;
	font-size: 13px;
	font-weight: 600;
	white-space: nowrap;
	box-shadow: var(--dtka-shadow);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
}
.dt-float-tip::after {
	content: "";
	position: absolute;
	right: -6px;
	top: 50%;
	transform: translateY(-50%);
	border-width: 6px 0 6px 6px;
	border-style: solid;
	border-color: transparent transparent transparent #fff;
}
.dt-float-item:hover .dt-float-tip,
.dt-float-item:focus-within .dt-float-tip { opacity: 1; visibility: visible; transform: translateY(-50%) scale(1); }

@media (max-width: 782px) {
	.dt-float { bottom: 12vh; }
	.dt-float-btn { width: 40px; height: 40px; }
	.dt-float-btn svg { width: 18px; height: 18px; }
	/* No room beside the bar on phones. */
	.dt-float-tip { display: none; }
}
