/*!
 * Kora — main stylesheet
 * Base, layout, header, navigation, panels, blog, footer.
 * Every colour/size reads from CSS variables emitted by inc/dynamic-css.php.
 */

/* ==========================================================================
   0. Tokens derived from Customizer values
   ========================================================================== */
:root {
	--ko-primary-soft: color-mix(in srgb, var(--ko-primary) 9%, var(--ko-bg));
	--ko-primary-strong: color-mix(in srgb, var(--ko-primary) 82%, #000);
	--ko-text-soft: color-mix(in srgb, var(--ko-text) 70%, var(--ko-bg));
	--ko-shadow-sm: 0 1px 2px rgb(0 0 0 / 0.05), 0 2px 8px rgb(0 0 0 / 0.04);
	--ko-shadow: 0 10px 30px -12px rgb(0 0 0 / 0.18);
	--ko-shadow-lg: 0 30px 60px -20px rgb(0 0 0 / 0.28);
	--ko-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
	--ko-gutter: clamp(16px, 4vw, 32px);
	--ko-space: clamp(56px, 8vw, 112px);
	--ko-content: 760px;
	--ko-admin-bar: var(--wp-admin--admin-bar--height, 0px);
}

/* ==========================================================================
   1. Reset & base
   ========================================================================== */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

body {
	margin: 0;
	background: var(--ko-bg);
	color: var(--ko-text);
	font-family: var(--ko-font-body);
	font-size: var(--ko-fs-base);
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}
body.ko-lock { overflow: hidden; }

h1, h2, h3, h4, h5, h6 {
	font-family: var(--ko-font-heading);
	font-weight: var(--ko-fw-heading);
	color: var(--ko-heading);
	line-height: 1.12;
	letter-spacing: var(--ko-heading-spacing);
	text-transform: var(--ko-heading-case);
	margin: 0 0 0.5em;
	text-wrap: balance;
}
h1 { font-size: var(--ko-h1); }
h2 { font-size: var(--ko-h2); }
h3 { font-size: var(--ko-h3); }
h4 { font-size: var(--ko-h4); }
h5 { font-size: var(--ko-h5); }
h6 { font-size: var(--ko-h6); }

p { margin: 0 0 1.2em; }
a { color: var(--ko-primary); text-decoration-thickness: 1px; text-underline-offset: 0.18em; transition: color 0.2s; }
a:hover { color: var(--ko-primary-strong); }
img, svg, video { max-width: 100%; height: auto; }
img { display: block; }
figure { margin: 0; }
hr { border: 0; border-top: 1px solid var(--ko-border); margin: 2.5em 0; }
blockquote { margin: 1.5em 0; padding: 0.5em 0 0.5em 1.5em; border-left: 3px solid var(--ko-accent); font-family: var(--ko-font-heading); font-size: 1.25em; color: var(--ko-heading); }
code, kbd, pre { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.9em; }
pre { background: var(--ko-surface); border: 1px solid var(--ko-border); border-radius: var(--ko-radius); padding: 1.2em; overflow: auto; }
table { width: 100%; border-collapse: collapse; margin-bottom: 1.5em; }
th, td { padding: 0.75em; border-bottom: 1px solid var(--ko-border); text-align: left; }
::selection { background: var(--ko-accent); color: var(--ko-on-accent); }

:focus-visible { outline: 2px solid var(--ko-primary); outline-offset: 3px; border-radius: 4px; }

.screen-reader-text {
	border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
	height: 1px; width: 1px; margin: -1px; overflow: hidden; padding: 0;
	position: absolute !important; word-wrap: normal !important;
}
.skip-link:focus {
	clip: auto; clip-path: none; height: auto; width: auto; margin: 0;
	left: 12px; top: 12px; z-index: 100000; padding: 12px 20px;
	background: var(--ko-heading); color: var(--ko-bg); border-radius: 8px; text-decoration: none;
}
.ko-main:focus { outline: 0; }

/* ==========================================================================
   2. Layout
   ========================================================================== */
.ko-container {
	width: 100%;
	max-width: calc(var(--ko-container) + var(--ko-gutter) * 2);
	margin-inline: auto;
	padding-inline: var(--ko-gutter);
}
.ko-container--narrow { max-width: calc(var(--ko-content) + var(--ko-gutter) * 2); }

.ko-section { padding-block: var(--ko-space); position: relative; }
.ko-section--tight { padding-block: calc(var(--ko-space) * 0.45); }
.ko-section--flush { padding-block: 0; }

.ko-layout { display: grid; gap: clamp(32px, 4vw, 56px); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1024px) {
	.ko-sidebar-right .ko-layout:has(> .ko-sidebar) { grid-template-columns: minmax(0, 1fr) 300px; }
	.ko-sidebar-left .ko-layout:has(> .ko-sidebar) { grid-template-columns: 300px minmax(0, 1fr); }
	.ko-sidebar-left .ko-layout > .ko-sidebar { order: -1; }
}
.ko-content { min-width: 0; }

/* Entry content flow: constrained text, wide & full blocks break out. */
.ko-entry > * { max-width: var(--ko-content); width: calc(100% - var(--ko-gutter) * 2); margin-inline: auto; }
.ko-entry > .alignwide { max-width: var(--ko-container); }
.ko-entry > .alignfull { max-width: none; width: 100%; }
.ko-entry--full > .ko-section { width: 100%; max-width: none; }
.ko-layout .ko-entry > * { width: 100%; max-width: 100%; }
.ko-page-flow { padding-bottom: 0; }
.ko-page-flow .ko-entry > :last-child:not(.ko-section) { margin-bottom: var(--ko-space); }
.ko-page-flow .ko-entry > :first-child:not(.ko-section) { margin-top: calc(var(--ko-space) * 0.6); }

.ko-entry .wp-block-image img,
.ko-entry .wp-block-cover { border-radius: var(--ko-radius); }
.ko-entry > .alignfull.wp-block-cover { border-radius: 0; }
.alignleft { float: left; margin: 0.4em 1.5em 1em 0; }
.alignright { float: right; margin: 0.4em 0 1em 1.5em; }
.aligncenter { margin-inline: auto; }
.wp-caption-text, figcaption { color: var(--ko-muted); font-size: 0.875em; margin-top: 0.6em; }

.ko-grid { display: grid; gap: clamp(16px, 2.4vw, 28px); grid-template-columns: repeat(var(--ko-cols, 3), minmax(0, 1fr)); }
@media (max-width: 1023px) { .ko-grid { grid-template-columns: repeat(min(var(--ko-cols, 3), 2), minmax(0, 1fr)); } }
@media (max-width: 599px) { .ko-grid { grid-template-columns: minmax(0, 1fr); } }

.ko-hide-sm { }
@media (max-width: 767px) { .ko-hide-sm { display: none !important; } }

/* ==========================================================================
   3. Buttons & forms
   ========================================================================== */
.ko-btn,
.wp-block-button__link,
button[type="submit"],
input[type="submit"] {
	--_bg: var(--ko-primary);
	--_fg: var(--ko-btn-text);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.55em;
	padding: 0.95em 1.7em;
	border: 1.5px solid var(--_bg);
	border-radius: var(--ko-btn-radius);
	background: var(--_bg);
	color: var(--_fg);
	font-family: var(--ko-font-body);
	font-size: 0.95rem;
	font-weight: 700;
	line-height: 1.1;
	letter-spacing: 0.01em;
	text-transform: var(--ko-btn-case);
	text-decoration: none;
	cursor: pointer;
	transition: transform 0.25s var(--ko-ease), background-color 0.25s, color 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.ko-btn:hover,
.wp-block-button__link:hover,
button[type="submit"]:hover,
input[type="submit"]:hover {
	--_bg: var(--ko-primary-strong);
	color: var(--_fg);
	transform: translateY(-2px);
	box-shadow: 0 10px 22px -10px color-mix(in srgb, var(--ko-primary) 70%, transparent);
}
.ko-btn--ghost { background: transparent; color: var(--ko-heading); border-color: currentColor; }
.ko-btn--ghost:hover { background: var(--ko-heading); color: var(--ko-bg); border-color: var(--ko-heading); }
.ko-btn--sm { padding: 0.7em 1.2em; font-size: 0.85rem; }
.ko-btn--lg { padding: 1.1em 2.1em; font-size: 1rem; }
.ko-btn--block { display: flex; width: 100%; }
.ko-btn--whatsapp { --_bg: #1f9d55; --_fg: #fff; }
.ko-btn--whatsapp:hover { --_bg: #17804a; }
.ko-btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.8em; }
.is-style-outline .wp-block-button__link { background: transparent; color: var(--ko-primary); }

input[type="text"], input[type="email"], input[type="url"], input[type="password"], input[type="search"],
input[type="number"], input[type="tel"], input[type="date"], input[type="datetime-local"], select, textarea {
	width: 100%;
	padding: 0.85em 1em;
	border: 1.5px solid var(--ko-border);
	border-radius: calc(var(--ko-radius) * 0.6);
	background: var(--ko-surface);
	color: var(--ko-text);
	font: inherit;
	font-size: 0.95rem;
	transition: border-color 0.2s, box-shadow 0.2s;
}
input:focus, select:focus, textarea:focus {
	outline: none;
	border-color: var(--ko-primary);
	box-shadow: 0 0 0 4px color-mix(in srgb, var(--ko-primary) 15%, transparent);
}
label { font-weight: 600; font-size: 0.92rem; color: var(--ko-heading); }

.ko-inline-search { display: flex; gap: 8px; max-width: 480px; margin: 1.5em auto; }
.ko-inline-search .ko-btn { padding-inline: 1.1em; }

.ko-icon-btn {
	display: inline-grid;
	place-items: center;
	position: relative;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: inherit;
	cursor: pointer;
	transition: background-color 0.2s;
	text-decoration: none;
}
.ko-icon-btn:hover { background: color-mix(in srgb, currentColor 10%, transparent); color: inherit; }

.ko-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 14px;
	color: var(--t-accent, var(--ko-primary));
	font-size: 0.78rem;
	font-weight: 800;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}
.ko-eyebrow::before { content: ""; width: 26px; height: 2px; background: currentColor; }
.ko-heading--center .ko-eyebrow::after { content: ""; width: 26px; height: 2px; background: currentColor; }

.ko-link-arrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-weight: 700;
	text-decoration: none;
	color: var(--t-heading, var(--ko-heading));
}
.ko-link-arrow svg { transition: transform 0.25s var(--ko-ease); }
.ko-link-arrow:hover svg { transform: translateX(4px); }

/* ==========================================================================
   4. Top bar
   ========================================================================== */
.ko-topbar { background: var(--ko-topbar-bg); color: var(--ko-topbar-text); font-size: 0.8rem; }
.ko-topbar a { color: inherit; text-decoration: none; opacity: 0.9; }
.ko-topbar a:hover { opacity: 1; color: inherit; }
.ko-topbar__inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; min-height: 40px; }
.ko-topbar__contacts { display: flex; gap: 18px; }
.ko-topbar__contacts a { display: inline-flex; gap: 6px; align-items: center; }
.ko-topbar__text { margin: 0; text-align: center; font-weight: 600; letter-spacing: 0.02em; }
.ko-topbar__end { display: flex; justify-content: flex-end; align-items: center; gap: 16px; }
.ko-topbar__menu { display: flex; gap: 14px; list-style: none; margin: 0; padding: 0; }
@media (max-width: 767px) { .ko-topbar__inner { grid-template-columns: 1fr; padding-block: 8px; } }

/* ==========================================================================
   5. Header
   ========================================================================== */
.ko-header {
	position: relative;
	z-index: 60;
	background: var(--ko-header-bg);
	color: var(--ko-header-text);
	transition: background-color 0.3s, box-shadow 0.3s, transform 0.35s var(--ko-ease);
}
.ko-header.has-border { border-bottom: 1px solid color-mix(in srgb, var(--ko-header-text) 12%, transparent); }
.ko-sticky-header .ko-header { position: sticky; top: var(--ko-admin-bar); }
.ko-header.is-scrolled { box-shadow: 0 8px 24px -14px rgb(0 0 0 / 0.35); }
.ko-header.is-hidden { transform: translateY(-110%); }

.ko-header__inner { display: flex; align-items: center; gap: clamp(16px, 3vw, 40px); min-height: var(--ko-header-h); }
.ko-header__inner > .ko-nav--primary { flex: 1; min-width: 0; overflow: hidden; }
.ko-header__inner > .ko-nav--primary:hover, .ko-header__inner > .ko-nav--primary:focus-within { overflow: visible; }
/* JS adds .ko-nav-collapsed when the menu doesn't fit (long menus, narrow laptops). */
.ko-header.ko-nav-collapsed .ko-nav--primary, .ko-header.ko-nav-collapsed .ko-nav--secondary, .ko-header.ko-nav-collapsed .ko-header__navrow { visibility: hidden; position: absolute; pointer-events: none; }
.ko-header.ko-nav-collapsed .ko-menu-toggle { display: inline-grid; }
.ko-header__actions { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.ko-header__cta { margin-left: 10px; }
.ko-header__end { display: flex; align-items: center; justify-content: flex-end; gap: 16px; }

/* centered */
.ko-header__inner--top { display: grid; grid-template-columns: 1fr auto 1fr; }
.ko-header__inner--top .ko-brand { justify-self: center; text-align: center; }
.ko-header__side { display: flex; align-items: center; }
.ko-header__phone { display: inline-flex; gap: 8px; align-items: center; color: inherit; text-decoration: none; font-weight: 600; font-size: 0.9rem; }
.ko-header__navrow { border-top: 1px solid color-mix(in srgb, var(--ko-header-text) 10%, transparent); }
.ko-nav--center .ko-menu { justify-content: center; }

/* split */
.ko-header__inner--split { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 24px; }
.ko-header__inner--split .ko-nav .ko-menu a { padding-inline: 10px; }
.ko-header__inner--split .ko-nav--secondary { margin-left: auto; }
@media (max-width: 1279px) {
	.ko-header-split .ko-nav--primary, .ko-header-split .ko-nav--secondary { display: none; }
	.ko-header-split .ko-menu-toggle { display: inline-grid; }
	.ko-header__inner--split { grid-template-columns: auto 1fr; }
	.ko-header__inner--split .ko-brand { justify-self: start; }
}
.ko-header__inner--split .ko-brand { justify-self: center; }

/* minimal */
.ko-header__inner--minimal { display: grid; grid-template-columns: 1fr auto 1fr; }
.ko-header__inner--minimal .ko-brand { justify-self: center; }
.ko-menu-toggle--always { width: auto; padding-inline: 10px 16px; gap: 8px; display: inline-flex; border-radius: 999px; font-weight: 700; font: inherit; font-weight: 700; }
.ko-header-minimal .ko-menu-toggle { display: none !important; }

/* transparent */
.ko-transparent-header .ko-header { position: absolute; top: auto; left: 0; right: 0; background: transparent; border-color: transparent; box-shadow: none; }
.ko-transparent-header.ko-sticky-header .ko-header.is-scrolled { position: fixed; top: var(--ko-admin-bar); background: var(--ko-header-bg); }
.ko-transparent-header .ko-band--header { display: none; }
.ko-transparent-header .ko-entry > .ko-section:first-child { padding-top: calc(var(--ko-header-h) + var(--ko-space) * 0.6); }

/* brand */
.ko-brand { display: flex; flex-direction: column; justify-content: center; min-width: 0; flex: none; }
.ko-brand__logo img { width: var(--ko-logo-w); max-width: none; height: auto; }
.ko-brand__name { margin: 0; font-family: var(--ko-font-heading); font-size: 1.55rem; font-weight: var(--ko-fw-heading); line-height: 1; letter-spacing: var(--ko-heading-spacing); }
.ko-brand__name a { display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; }
.ko-brand__mark { color: var(--ko-primary); flex: none; }
.ko-brand__tagline { margin: 4px 0 0; font-size: 0.75rem; opacity: 0.65; }
@media (max-width: 1023px) {
	.ko-brand__logo img { width: var(--ko-logo-w-m); }
	.ko-brand__tagline { display: none; }
	.ko-brand__name { font-size: 1.3rem; }
}

/* cart count */
.ko-cart-count {
	position: absolute; top: 4px; right: 2px;
	min-width: 18px; height: 18px; padding: 0 5px;
	border-radius: 999px;
	background: var(--ko-primary); color: var(--ko-btn-text);
	font-size: 0.68rem; font-weight: 800; line-height: 18px; text-align: center;
	transition: transform 0.3s var(--ko-ease);
}
.ko-cart-count.is-empty { transform: scale(0); }
.ko-cart-count.is-bump { animation: ko-bump 0.5s var(--ko-ease); }
@keyframes ko-bump { 40% { transform: scale(1.4); } }

/* woven band */
.ko-band { height: 10px; background-image: var(--ko-band); background-size: auto 100%; background-repeat: repeat-x; }

/* ==========================================================================
   6. Navigation
   ========================================================================== */
.ko-menu { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.ko-nav .ko-menu > li { position: relative; }
.ko-nav .ko-menu { flex-wrap: nowrap; }
.ko-nav .ko-menu > li > a { white-space: nowrap; }
.ko-header__cta { white-space: nowrap; }
.ko-nav .ko-menu a {
	display: flex; align-items: center; gap: 4px;
	padding: 10px 14px;
	color: inherit;
	font-size: 0.93rem; font-weight: 600;
	text-decoration: none;
	text-transform: var(--ko-nav-case);
	letter-spacing: 0.01em;
	border-radius: 999px;
	transition: color 0.2s, background-color 0.2s;
}
.ko-nav .ko-menu > li > a { position: relative; }
.ko-nav-underline .ko-nav .ko-menu > li > a::after {
	content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px;
	background: var(--ko-primary); transform: scaleX(0); transform-origin: left; transition: transform 0.3s var(--ko-ease);
}
.ko-nav-underline .ko-nav .ko-menu > li:hover > a::after,
.ko-nav-underline .ko-nav .ko-menu > .current-menu-item > a::after,
.ko-nav-underline .ko-nav .ko-menu > .current-menu-ancestor > a::after { transform: scaleX(1); }
.ko-nav-pill .ko-nav .ko-menu > li:hover > a,
.ko-nav-pill .ko-nav .ko-menu > .current-menu-item > a { background: color-mix(in srgb, var(--ko-primary) 12%, transparent); color: var(--ko-primary); }
.ko-nav-plain .ko-nav .ko-menu > li:hover > a,
.ko-nav-plain .ko-nav .ko-menu > .current-menu-item > a { color: var(--ko-primary); }
.ko-nav .menu-item-has-children > a::before { content: none; }
.ko-nav .ko-menu > .menu-item-has-children > a { padding-right: 28px; }
.ko-nav .menu-item-has-children > a .ko-sub-caret { position: absolute; right: 8px; top: 50%; translate: 0 -50%; transition: rotate 0.2s; }

.ko-nav .sub-menu,
.ko-nav .children {
	position: absolute; top: 100%; left: 0; z-index: 10;
	min-width: 230px; padding: 10px;
	list-style: none; margin: 0;
	background: var(--ko-surface); color: var(--ko-text);
	border: 1px solid var(--ko-border);
	border-radius: var(--ko-radius);
	box-shadow: var(--ko-shadow-lg);
	opacity: 0; visibility: hidden; translate: 0 8px;
	transition: opacity 0.2s, translate 0.25s var(--ko-ease), visibility 0.2s;
}
.ko-nav .sub-menu .sub-menu { top: -11px; left: 100%; }
.ko-nav li:hover > .sub-menu,
.ko-nav li:focus-within > .sub-menu,
.ko-nav li:hover > .children,
.ko-nav li:focus-within > .children { opacity: 1; visibility: visible; translate: 0 0; }
.ko-nav .sub-menu a { border-radius: calc(var(--ko-radius) * 0.6); padding: 10px 12px; font-weight: 500; }
.ko-nav .sub-menu a:hover { background: var(--ko-primary-soft); color: var(--ko-primary); }

.ko-menu-toggle { display: none; }
@media (max-width: 1023px) {
	.ko-nav--primary, .ko-nav--secondary, .ko-header__navrow { display: none; }
	.ko-menu-toggle { display: inline-grid; }
	.ko-header__inner--split { grid-template-columns: auto 1fr; }
	.ko-header__inner--split .ko-brand { justify-self: start; }
}

/* ==========================================================================
   7. Off-canvas panels, search overlay
   ========================================================================== */
.ko-overlay { position: fixed; inset: 0; z-index: 90; background: rgb(10 8 6 / 0.55); backdrop-filter: blur(2px); opacity: 0; transition: opacity 0.3s; }
.ko-overlay.is-visible { opacity: 1; }

.ko-panel {
	position: fixed; top: 0; bottom: 0; z-index: 100;
	display: flex; flex-direction: column;
	width: min(420px, 92vw);
	background: var(--ko-surface); color: var(--ko-text);
	box-shadow: var(--ko-shadow-lg);
	transition: transform 0.4s var(--ko-ease), visibility 0.4s;
	visibility: hidden;
}
.admin-bar .ko-panel { top: var(--ko-admin-bar); }
.ko-panel--left { left: 0; transform: translateX(-100%); }
.ko-panel--right { right: 0; transform: translateX(100%); }
.ko-panel.is-open { transform: none; visibility: visible; }
.ko-panel__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--ko-border); }
.ko-panel__title { font-family: var(--ko-font-heading); font-size: 1.3rem; color: var(--ko-heading); }
.ko-panel__body { flex: 1; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 16px; overscroll-behavior: contain; }

.ko-menu--mobile { display: block; }
.ko-mobile-nav .ko-menu,
.ko-mobile-nav ul { display: block; list-style: none; margin: 0; padding: 0; }
.ko-mobile-nav li { border-bottom: 1px solid var(--ko-border); position: relative; }
.ko-mobile-nav a { display: block; padding: 14px 48px 14px 4px; color: var(--ko-heading); font-weight: 600; font-size: 1.05rem; text-decoration: none; }
.ko-mobile-nav .sub-menu, .ko-mobile-nav .children { display: none; padding-left: 14px; border-top: 1px solid var(--ko-border); }
.ko-mobile-nav .sub-menu li:last-child { border-bottom: 0; }
.ko-mobile-nav .sub-menu a { font-size: 0.95rem; font-weight: 500; }
.ko-mobile-nav li.is-open > .sub-menu, .ko-mobile-nav li.is-open > .children { display: block; }
.ko-sub-toggle { position: absolute; right: 0; top: 4px; width: 44px; height: 44px; border: 0; background: none; color: var(--ko-heading); cursor: pointer; display: grid; place-items: center; }
.ko-sub-toggle svg { transition: rotate 0.25s; }
li.is-open > .ko-sub-toggle svg { rotate: 180deg; }

.ko-search-panel {
	position: fixed; inset: 0 0 auto 0; z-index: 100;
	padding: calc(var(--ko-admin-bar) + 28px) 0 28px;
	background: var(--ko-surface);
	box-shadow: var(--ko-shadow-lg);
	transform: translateY(-105%); visibility: hidden;
	transition: transform 0.4s var(--ko-ease), visibility 0.4s;
}
.ko-search-panel.is-open { transform: none; visibility: visible; }
.ko-search-form { display: flex; align-items: center; gap: 14px; border-bottom: 2px solid var(--ko-heading); padding-bottom: 8px; color: var(--ko-heading); }
.ko-search-form input[type="search"] { border: 0; background: transparent; box-shadow: none; padding: 10px 0; font-family: var(--ko-font-heading); font-size: clamp(1.3rem, 3vw, 2rem); }
.ko-search-form input[type="search"]:focus { box-shadow: none; }

/* ==========================================================================
   8. Title band, breadcrumbs
   ========================================================================== */
.ko-title-band { position: relative; padding-block: clamp(40px, 6vw, 84px); background: var(--ko-primary-soft); overflow: hidden; text-align: center; }
.ko-title-band.has-pattern::before { content: ""; position: absolute; inset: 0; background-image: var(--ko-pattern-primary); opacity: calc(var(--ko-pattern-opacity) * 1.4); pointer-events: none; }
.ko-title-band .ko-container { position: relative; }
.ko-title-band__title { margin: 0.2em 0 0; font-size: var(--ko-h2); }
.ko-title-band__sub { max-width: 640px; margin: 12px auto 0; color: var(--ko-text-soft); }
.ko-title-band__sub p:last-child { margin: 0; }
.ko-breadcrumbs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; font-size: 0.82rem; color: var(--ko-muted); }
.ko-breadcrumbs a { color: inherit; text-decoration: none; }
.ko-breadcrumbs a:hover { color: var(--ko-primary); }
.ko-product-crumbs { padding-top: 24px; }
.ko-product-crumbs .ko-breadcrumbs { justify-content: flex-start; }

/* ==========================================================================
   9. Blog
   ========================================================================== */
.ko-posts { display: grid; gap: clamp(20px, 3vw, 36px); }
.ko-posts--grid { grid-template-columns: repeat(var(--ko-blog-cols, 3), minmax(0, 1fr)); }
.ko-sidebar-right .ko-posts--grid,
.ko-sidebar-left .ko-posts--grid { grid-template-columns: repeat(min(var(--ko-blog-cols, 3), 2), minmax(0, 1fr)); }
@media (max-width: 1023px) { .ko-posts--grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 599px) { .ko-posts--grid { grid-template-columns: minmax(0, 1fr); } }

.ko-card { display: flex; flex-direction: column; background: var(--ko-surface); border: 1px solid var(--ko-border); border-radius: var(--ko-radius); overflow: hidden; transition: transform 0.35s var(--ko-ease), box-shadow 0.35s; }
.ko-card:hover { transform: translateY(-4px); box-shadow: var(--ko-shadow); }
.ko-card__media { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--ko-primary-soft); }
.ko-card__media img, .ko-card__media .ko-placeholder { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ko-ease); }
.ko-card:hover .ko-card__media img { transform: scale(1.05); }
.ko-card__body { display: flex; flex-direction: column; gap: 10px; padding: clamp(18px, 2vw, 26px); flex: 1; }
.ko-card__title { margin: 0; font-size: var(--ko-h5); }
.ko-card__title a { color: var(--ko-heading); text-decoration: none; }
.ko-card__title a:hover { color: var(--ko-primary); }
.ko-card__excerpt { margin: 0; color: var(--ko-text-soft); font-size: 0.95rem; }
.ko-card__date { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ko-muted); }
.ko-card .ko-link-arrow { margin-top: auto; font-size: 0.9rem; }

.ko-card--list { flex-direction: row; }
.ko-card--list .ko-card__media { flex: 0 0 38%; aspect-ratio: auto; min-height: 220px; }
@media (max-width: 599px) { .ko-card--list { flex-direction: column; } .ko-card--list .ko-card__media { aspect-ratio: 4 / 3; } }
.ko-card--classic .ko-card__media { aspect-ratio: 16 / 8; }
.ko-card--classic .ko-card__title { font-size: var(--ko-h3); }

.ko-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--ko-muted); font-size: 0.82rem; }
.ko-meta a { color: inherit; text-decoration: none; }
.ko-meta__cat { color: var(--ko-primary) !important; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; }
.ko-meta__sep { opacity: 0.4; }

.ko-single__header { padding-top: clamp(40px, 6vw, 80px); padding-bottom: 32px; text-align: center; }
.ko-single__header .ko-meta, .ko-single__header .ko-breadcrumbs { justify-content: center; margin-bottom: 18px; }
.ko-single__title { font-size: var(--ko-h1); }
.ko-single__lead { font-size: 1.2rem; color: var(--ko-text-soft); }
.ko-single__hero img { width: 100%; border-radius: var(--ko-radius); aspect-ratio: 16 / 8; object-fit: cover; }
.ko-single .ko-entry { padding-top: 48px; font-size: 1.07rem; }
.ko-single .ko-layout { padding-block: 48px; }
.ko-entry-footer { padding-block: 24px 48px; }
.ko-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.ko-tags a { padding: 6px 14px; border-radius: 999px; background: var(--ko-primary-soft); color: var(--ko-heading); font-size: 0.82rem; text-decoration: none; }
.post-navigation .nav-links { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.post-navigation a { display: block; height: 100%; padding: 20px; border: 1px solid var(--ko-border); border-radius: var(--ko-radius); text-decoration: none; background: var(--ko-surface); }
.post-navigation .nav-next { text-align: right; }
.ko-nav-label { display: block; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ko-muted); }
.ko-nav-title { font-family: var(--ko-font-heading); color: var(--ko-heading); font-size: 1.05rem; }

.navigation.pagination { margin-top: 48px; }
.nav-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.page-numbers { display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--ko-border); color: var(--ko-heading); text-decoration: none; font-weight: 700; background: var(--ko-surface); }
.page-numbers.current, .page-numbers:hover { background: var(--ko-heading); color: var(--ko-bg); border-color: var(--ko-heading); }

.ko-sidebar .widget { padding: 24px; margin-bottom: 24px; background: var(--ko-surface); border: 1px solid var(--ko-border); border-radius: var(--ko-radius); }
.ko-sidebar .widget ul { list-style: none; margin: 0; padding: 0; }
.ko-sidebar .widget li { padding: 6px 0; }
.widget-title { font-size: 1.05rem; margin-bottom: 1em; }

.ko-comments { padding-block: 32px 64px; }
.ko-comment-list { list-style: none; padding: 0; }
.ko-comment-list .comment-body { padding: 20px; margin-bottom: 16px; background: var(--ko-surface); border: 1px solid var(--ko-border); border-radius: var(--ko-radius); }
.ko-comment-list .children { list-style: none; padding-left: clamp(16px, 4vw, 40px); }
.comment-author img { border-radius: 50%; float: left; margin-right: 12px; }

.ko-empty-state, .ko-404 { text-align: center; padding-block: 64px; }
.ko-empty-state svg { color: var(--ko-muted); margin: 0 auto 12px; }
.ko-404 { overflow: hidden; background: var(--ko-primary-soft); }
.ko-404.has-pattern::before { content: ""; position: absolute; inset: 0; background-image: var(--ko-pattern-primary); opacity: var(--ko-pattern-opacity); }
.ko-404 .ko-container { position: relative; }
.ko-404__code { display: block; font-family: var(--ko-font-heading); font-size: clamp(6rem, 22vw, 14rem); line-height: 0.9; color: var(--ko-primary); font-weight: 700; }

/* ==========================================================================
   10. Feature strip
   ========================================================================== */
.ko-features { border-top: 1px solid var(--ko-border); background: var(--ko-surface); }
.ko-features__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; padding-block: 36px; }
.ko-feature { display: flex; gap: 14px; align-items: flex-start; }
.ko-feature__icon { flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: var(--ko-radius); background: var(--ko-primary-soft); color: var(--ko-primary); }
.ko-feature__title { display: block; font-family: var(--ko-font-heading); color: var(--ko-heading); font-size: 1.05rem; }
.ko-feature__text { display: block; font-size: 0.88rem; color: var(--ko-muted); }

/* ==========================================================================
   11. Footer
   ========================================================================== */
.ko-footer { position: relative; background: var(--ko-footer-bg); color: var(--ko-footer-text); font-size: 0.93rem; overflow: hidden; }
.ko-footer.has-pattern::before { content: ""; position: absolute; inset: 0; background-image: var(--ko-pattern-footer); opacity: calc(var(--ko-pattern-opacity) * 0.5); pointer-events: none; }
.ko-footer > * { position: relative; }
.ko-footer a { color: inherit; text-decoration: none; }
.ko-footer a:hover { color: var(--ko-footer-heading); }
.ko-footer .widget-title, .ko-footer h2, .ko-footer h3, .ko-footer h4 { color: var(--ko-footer-heading); font-size: 1.1rem; }
.ko-footer__grid { display: grid; grid-template-columns: 1.4fr repeat(calc(var(--ko-footer-cols) - 1), 1fr); gap: clamp(32px, 4vw, 56px); padding-block: clamp(56px, 7vw, 96px); }
@media (max-width: 1023px) { .ko-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 599px) { .ko-footer__grid { grid-template-columns: minmax(0, 1fr); } }
.ko-footer--centered .ko-footer__grid { text-align: center; }
.ko-footer--centered .ko-social, .ko-footer--centered .ko-footer-contact li { justify-content: center; }
.ko-footer .ko-brand__name { color: var(--ko-footer-heading); }
.ko-footer .ko-brand__logo img { width: var(--ko-logo-w); }
.ko-footer__about { margin: 18px 0; max-width: 340px; opacity: 0.85; }
.ko-footer--centered .ko-footer__about { margin-inline: auto; }
.ko-footer-links, .ko-footer-contact, .ko-footer .menu { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ko-footer-links .sub-menu { display: none; }
.ko-footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.ko-footer-contact svg { flex: none; margin-top: 3px; color: var(--ko-footer-heading); }
.ko-footer__bottom { border-top: 1px solid color-mix(in srgb, var(--ko-footer-text) 15%, transparent); }
.ko-footer__bottom-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-block: 22px; font-size: 0.82rem; }
.ko-footer__copyright { margin: 0; }
.ko-footer__menu { display: flex; gap: 18px; list-style: none; margin: 0; padding: 0; }
.ko-paychips { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.ko-paychips li { padding: 4px 10px; border: 1px solid color-mix(in srgb, var(--ko-footer-text) 25%, transparent); border-radius: 6px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.03em; }

.ko-social { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.ko-social a { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 1px solid color-mix(in srgb, currentColor 25%, transparent); color: inherit; transition: background-color 0.2s, color 0.2s, transform 0.2s; }
.ko-social a:hover { background: var(--ko-primary); color: var(--ko-btn-text); border-color: var(--ko-primary); transform: translateY(-2px); }
.ko-social--sm a { width: 28px; height: 28px; border: 0; }
.ko-social--sm svg { width: 15px; height: 15px; }

/* ==========================================================================
   12. Floating buttons
   ========================================================================== */
.ko-float-wa, .ko-to-top {
	position: fixed; z-index: 80; right: 20px;
	display: grid; place-items: center;
	border-radius: 50%; border: 0; cursor: pointer;
	box-shadow: var(--ko-shadow);
	transition: transform 0.3s var(--ko-ease), opacity 0.3s;
}
.ko-float-wa { bottom: 20px; width: 58px; height: 58px; background: #1f9d55; color: #fff; }
.ko-float-wa:hover { transform: scale(1.08); color: #fff; }
.ko-float-wa::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #1f9d55; animation: ko-ping 2.4s infinite; }
@keyframes ko-ping { 0% { opacity: 0.7; transform: scale(1); } 80%, 100% { opacity: 0; transform: scale(1.5); } }
.ko-to-top { bottom: 20px; width: 46px; height: 46px; background: var(--ko-heading); color: var(--ko-bg); }
.ko-float-wa ~ .ko-to-top { bottom: 90px; }
.ko-to-top[hidden] { display: grid; opacity: 0; pointer-events: none; transform: translateY(10px); }

/* ==========================================================================
   13. Core block polish
   ========================================================================== */
.wp-block-separator { border-color: var(--ko-border); }
.wp-block-quote { border-left-color: var(--ko-accent); }
.wp-block-pullquote { border-color: var(--ko-primary); }
.wp-block-table td, .wp-block-table th { border-color: var(--ko-border); }
.wp-block-search__input { border-radius: var(--ko-btn-radius); }
.has-primary-color { color: var(--ko-primary) !important; }
.has-primary-background-color { background-color: var(--ko-primary) !important; }

/* Reveal-on-scroll (enabled by JS only, so no-JS users always see content). */
.ko-js .ko-reveal { opacity: 0; translate: 0 28px; transition: opacity 0.9s var(--ko-ease), translate 0.9s var(--ko-ease); }
.ko-js .ko-reveal.is-in { opacity: 1; translate: 0 0; }
