/* ====================================================
   Kinder Shop — Components CSS (components.css)
   Navbar, Footer, Sidebar, Comments, Search, Pages
   Supplementary to main.css
   ==================================================== */

/* === NAVBAR === */
.kinder-navbar {
	display: flex;
	flex-direction: column;
}

.kinder-navbar__inner {
	display: flex;
	align-items: center;
	gap: 1rem;
	height: var(--kinder-header-h, 72px);
}

/* Logo */
.kinder-navbar__logo-link {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	text-decoration: none;
	flex-shrink: 0;
}
.kinder-navbar__logo img {
	max-height: 48px;
	width: auto;
}
.kinder-navbar__logo-text {
	display: flex;
	flex-direction: column;
	line-height: 1.2;
}
.kinder-navbar__logo-ar {
	font-size: 1.25rem;
	font-weight: 800;
	color: var(--kinder-text);
	letter-spacing: -0.01em;
}
.kinder-navbar__logo-tagline {
	font-size: 0.7rem;
	color: var(--kinder-accent);
	font-weight: 500;
	letter-spacing: 0.05em;
}

/* Primary nav */
.kinder-navbar__nav {
	flex: 1;
	display: flex;
	justify-content: center;
}

.kinder-nav-menu {
	display: flex;
	align-items: center;
	gap: 0.25rem;
	list-style: none;
	padding: 0;
	margin: 0;
}

.kinder-nav-menu > li > a {
	display: block;
	padding: 0.5rem 0.875rem;
	font-size: var(--kinder-fs-sm);
	font-weight: 600;
	color: var(--kinder-text);
	border-radius: var(--kinder-radius-full);
	transition: color var(--kinder-transition), background var(--kinder-transition);
	text-decoration: none;
}
.kinder-nav-menu > li > a:hover,
.kinder-nav-menu > li.current-menu-item > a,
.kinder-nav-menu > li.current-page-ancestor > a {
	color: var(--kinder-accent);
	background: rgba(190, 40, 69, 0.08);
}

/* Sub-menus */
.kinder-nav-menu li {
	position: relative;
}
.kinder-nav-menu .sub-menu {
	position: absolute;
	top: calc(100% + 0.5rem);
	inset-inline-start: 0;
	min-width: 220px;
	background: var(--kinder-surface);
	border: 1px solid var(--kinder-border);
	border-radius: var(--kinder-radius-lg);
	box-shadow: var(--kinder-shadow-lg);
	list-style: none;
	padding: 0.5rem;
	margin: 0;
	opacity: 0;
	pointer-events: none;
	transform: translateY(-8px);
	transition: opacity var(--kinder-transition), transform var(--kinder-transition);
	z-index: 50;
}
.kinder-nav-menu li:hover > .sub-menu,
.kinder-nav-menu li:focus-within > .sub-menu {
	opacity: 1;
	pointer-events: auto;
	transform: translateY(0);
}
.kinder-nav-menu .sub-menu li a {
	display: block;
	padding: 0.6rem 1rem;
	font-size: var(--kinder-fs-sm);
	font-weight: 500;
	color: var(--kinder-text);
	border-radius: var(--kinder-radius-md);
	transition: color var(--kinder-transition), background var(--kinder-transition);
	text-decoration: none;
}
.kinder-nav-menu .sub-menu li a:hover {
	color: var(--kinder-accent);
	background: rgba(190, 40, 69, 0.08);
}

/* Nav icon buttons */
.kinder-navbar__actions {
	display: flex;
	align-items: center;
	gap: 0.25rem;
	flex-shrink: 0;
}

.kinder-navbar__icon-btn {
	position: relative;
	width: 42px;
	height: 42px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: none;
	border: none;
	border-radius: 50%;
	color: var(--kinder-text);
	cursor: pointer;
	transition: color var(--kinder-transition), background var(--kinder-transition);
}
.kinder-navbar__icon-btn:hover {
	color: var(--kinder-accent);
	background: rgba(190, 40, 69, 0.08);
}
.kinder-navbar__icon-btn svg { width: 20px; height: 20px; }

/* Dark mode toggle */
.kinder-dm-icon { display: flex; }
.kinder-dm-icon--sun { display: none; }
[data-theme="dark"] .kinder-dm-icon--moon { display: none; }
[data-theme="dark"] .kinder-dm-icon--sun  { display: flex; }

/* Live Search */
.kinder-navbar__search { position: relative; }
.kinder-live-search-panel {
	position: absolute;
	top: calc(100% + 0.5rem);
	inset-inline-end: 0;
	width: min(480px, 90vw);
	background: var(--kinder-surface);
	border: 1px solid var(--kinder-border);
	border-radius: var(--kinder-radius-lg);
	box-shadow: var(--kinder-shadow-lg);
	z-index: 200;
	overflow: hidden;
}
.kinder-live-search-panel[aria-hidden="true"] { display: none; }
.kinder-live-search-panel__inner {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.75rem 1rem;
	border-bottom: 1px solid var(--kinder-border);
}
.kinder-live-search__input {
	flex: 1;
	border: none;
	background: none;
	font-family: var(--kinder-font-body);
	font-size: var(--kinder-fs-base);
	color: var(--kinder-text);
	outline: none;
}
.kinder-live-search__input::placeholder { color: var(--kinder-text-light); }
.kinder-live-search__close {
	background: none;
	border: none;
	color: var(--kinder-text-muted);
	cursor: pointer;
	padding: 0.2rem;
	display: flex;
}
.kinder-live-search__close:hover { color: var(--kinder-text); }
.kinder-live-search__results {
	list-style: none;
	padding: 0.5rem;
	margin: 0;
	max-height: 360px;
	overflow-y: auto;
}
.kinder-search-item {
	display: flex;
	align-items: center;
	gap: 0.875rem;
	padding: 0.75rem;
	border-radius: var(--kinder-radius-md);
	text-decoration: none;
	transition: background var(--kinder-transition);
}
.kinder-search-item:hover { background: var(--kinder-surface-alt); }
.kinder-search-item img {
	width: 48px;
	height: 48px;
	object-fit: cover;
	border-radius: var(--kinder-radius-sm);
	border: 1px solid var(--kinder-border);
	flex-shrink: 0;
}
.kinder-search-item__info { display: flex; flex-direction: column; gap: 0.25rem; }
.kinder-search-item__info strong { font-size: var(--kinder-fs-sm); color: var(--kinder-text); font-weight: 600; }
.kinder-search-item__info span { font-size: var(--kinder-fs-xs); color: var(--kinder-accent); font-weight: 700; }
.kinder-search-empty { padding: 1.5rem; text-align: center; color: var(--kinder-text-muted); font-size: var(--kinder-fs-sm); }

/* Mobile menu */
@media (min-width: 1024px) {
	.kinder-mobile-menu-toggle { display: none !important; }
}
@media (max-width: 1023px) {
	.kinder-navbar__nav { display: none; }
	.kinder-live-search-panel { width: calc(100vw - 2rem); inset-inline-end: 0; }
}

.kinder-mobile-menu {
	position: fixed;
	inset: 0;
	inset-inline-start: auto;
	width: min(320px, 85vw);
	background: var(--kinder-surface);
	z-index: var(--kinder-z-drawer);
	display: flex;
	flex-direction: column;
	/* Anchored to the inline-end edge: slide out to the right in LTR, to the left in RTL */
	transform: translateX(100%);
	transition: transform var(--kinder-transition-slow), visibility 0s linear 0.45s;
	visibility: hidden;
	overflow-y: auto;
	box-shadow: var(--kinder-shadow-lg);
}
html[dir="rtl"] .kinder-mobile-menu { transform: translateX(-100%); }
.kinder-mobile-menu.is-open,
html[dir="rtl"] .kinder-mobile-menu.is-open {
	transform: translateX(0);
	visibility: visible;
	transition-delay: 0s;
}

.kinder-mobile-menu__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 1.25rem 1.5rem;
	border-bottom: 1px solid var(--kinder-border);
}
.kinder-mobile-menu__title { font-weight: 700; font-size: var(--kinder-fs-md); }
.kinder-mobile-menu__close {
	width: 36px; height: 36px;
	display: flex; align-items: center; justify-content: center;
	background: var(--kinder-surface-alt);
	border: 1px solid var(--kinder-border);
	border-radius: 50%;
	color: var(--kinder-text-muted);
	cursor: pointer;
	transition: all var(--kinder-transition);
}
.kinder-mobile-menu__close:hover { background: var(--kinder-accent); color: #fff; border-color: var(--kinder-accent); }

.kinder-mobile-nav-menu {
	list-style: none;
	padding: 0.75rem;
	margin: 0;
	flex: 1;
}
.kinder-mobile-nav-menu li a {
	display: block;
	padding: 0.875rem 1rem;
	font-size: var(--kinder-fs-base);
	font-weight: 600;
	color: var(--kinder-text);
	border-radius: var(--kinder-radius-md);
	text-decoration: none;
	transition: all var(--kinder-transition);
}
.kinder-mobile-nav-menu li a:hover,
.kinder-mobile-nav-menu li.current-menu-item a {
	color: var(--kinder-accent);
	background: rgba(190, 40, 69, 0.08);
}

.kinder-mobile-menu__footer {
	padding: 1.25rem 1.5rem;
	border-top: 1px solid var(--kinder-border);
}
.kinder-mobile-menu__whatsapp {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	color: #1FA855;
	font-weight: 700;
	font-size: var(--kinder-fs-sm);
	text-decoration: none;
}
.kinder-mobile-menu__whatsapp svg { width: 20px; height: 20px; }

/* === FOOTER === */
.kinder-footer {
	background-color: var(--kinder-primary);
	color: rgba(255, 255, 255, 0.75);
	padding-top: 4rem;
}

.kinder-footer__grid {
	display: grid;
	grid-template-columns: 1.5fr 1fr 1fr 1fr;
	gap: 2.5rem;
	padding-bottom: 3rem;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
@media (max-width: 1024px) {
	.kinder-footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
	.kinder-footer__grid { grid-template-columns: 1fr; gap: 2rem; }
}

.kinder-footer__logo img { max-height: 52px; width: auto; filter: brightness(0) invert(1); }
.kinder-footer__logo-text { color: #ffffff; font-size: 1.4rem; font-weight: 800; }

.kinder-footer__tagline {
	margin-top: 1rem;
	font-size: var(--kinder-fs-sm);
	line-height: 1.7;
	color: rgba(255, 255, 255, 0.6);
}

.kinder-footer__contact-link {
	display: inline-flex;
	align-items: center;
	gap: 0.4em;
	color: #1FA855;
	font-size: var(--kinder-fs-sm);
	font-weight: 600;
	margin-top: 1rem;
	text-decoration: none;
}
.kinder-footer__contact-link:hover { color: #1A9149; }
.kinder-footer__contact-link svg { width: 18px; height: 18px; }

.kinder-footer__col-title {
	font-size: var(--kinder-fs-base);
	font-weight: 700;
	color: var(--kinder-accent);
	margin: 0 0 1.25rem;
	letter-spacing: 0.02em;
}

.kinder-footer__list {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
}
.kinder-footer__list-link {
	color: rgba(255, 255, 255, 0.65);
	font-size: var(--kinder-fs-sm);
	text-decoration: none;
	transition: color var(--kinder-transition), padding-inline-start var(--kinder-transition);
}
.kinder-footer__list-link:hover {
	color: var(--kinder-accent);
	padding-inline-start: 0.25rem;
}

.kinder-footer__address {
	font-style: normal;
	font-size: var(--kinder-fs-sm);
	color: rgba(255, 255, 255, 0.6);
	line-height: 1.7;
}
.kinder-footer__address p { margin-bottom: 0.75rem; }
.kinder-footer__address a { color: var(--kinder-accent); text-decoration: none; }
.kinder-footer__address a:hover { color: var(--kinder-accent-hover); }

.kinder-footer__bottom {
	padding: 1.25rem 0;
}
.kinder-footer__bottom-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	flex-wrap: wrap;
}
.kinder-footer__copy {
	margin: 0;
	font-size: var(--kinder-fs-xs);
	color: rgba(255, 255, 255, 0.45);
}
.kinder-payment-icon {
	font-size: var(--kinder-fs-xs);
	color: rgba(255, 255, 255, 0.5);
	background: rgba(255, 255, 255, 0.06);
	padding: 0.3em 0.8em;
	border-radius: var(--kinder-radius-full);
	border: 1px solid rgba(255, 255, 255, 0.08);
}

/* === PAGE HEADER === */
.kinder-page-header {
	text-align: center;
	padding: 2.5rem 0;
	margin-bottom: 2rem;
	border-bottom: 1px solid var(--kinder-border);
}
.kinder-page-title {
	font-size: var(--kinder-fs-xl);
	font-weight: 800;
	margin: 0 0 0.5rem;
}
.kinder-archive-desc { color: var(--kinder-text-muted); }

/* === SINGLE POST LAYOUT === */
.kinder-single-post-wrap {
	display: grid;
	grid-template-columns: 1fr 320px;
	gap: 2.5rem;
	align-items: start;
	padding-block: 3rem;
}
@media (max-width: 1024px) {
	.kinder-single-post-wrap { grid-template-columns: 1fr; }
	.kinder-single-sidebar { display: none; }
}

/* Author bio */
.kinder-author-bio {
	display: flex;
	align-items: flex-start;
	gap: 1rem;
	padding: 1.5rem;
	background: var(--kinder-surface-alt);
	border-radius: var(--kinder-radius-lg);
	margin-top: 2rem;
	border: 1px solid var(--kinder-border);
}
.kinder-author-bio__avatar { border-radius: 50%; flex-shrink: 0; }
.kinder-author-bio__name { font-size: var(--kinder-fs-base); font-weight: 700; margin: 0 0 0.25rem; }
.kinder-author-bio__desc { font-size: var(--kinder-fs-sm); color: var(--kinder-text-muted); margin: 0; }

/* === BREADCRUMBS === */
.kinder-breadcrumbs {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.4rem;
	font-size: var(--kinder-fs-xs);
	color: var(--kinder-text-muted);
	margin-bottom: 1.5rem;
	padding: 0.5rem 0;
}
.kinder-breadcrumbs a { color: var(--kinder-text-muted); text-decoration: none; }
.kinder-breadcrumbs a:hover { color: var(--kinder-accent); }
.kinder-breadcrumbs span[aria-current="page"] { color: var(--kinder-accent); font-weight: 600; }
.kinder-breadcrumbs__sep { color: var(--kinder-border); font-size: 0.8em; }

/* === POST PAGINATION === */
.kinder-pagination {
	margin-top: 3rem;
}
.kinder-pagination ul {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	justify-content: center;
	list-style: none;
	padding: 0;
	margin: 0;
}
.kinder-pagination ul li a,
.kinder-pagination ul li span {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	border: 1px solid var(--kinder-border);
	background: var(--kinder-surface);
	color: var(--kinder-text);
	font-weight: 600;
	font-size: var(--kinder-fs-sm);
	text-decoration: none;
	transition: all var(--kinder-transition);
}
.kinder-pagination ul li a:hover,
.kinder-pagination ul li span.current {
	background: var(--kinder-accent);
	color: #fff;
	border-color: var(--kinder-accent);
}

/* === SIDEBAR === */
.kinder-single-sidebar {
	position: sticky;
	top: calc(var(--kinder-header-h) + 1.5rem);
}
.kinder-sidebar-widget {
	background: var(--kinder-surface);
	border: 1px solid var(--kinder-border);
	border-radius: var(--kinder-radius-lg);
	padding: 1.5rem;
	margin-bottom: 1.5rem;
}
.kinder-sidebar-widget-title {
	font-size: var(--kinder-fs-base);
	font-weight: 700;
	color: var(--kinder-text);
	margin: 0 0 1rem;
	padding-bottom: 0.75rem;
	border-bottom: 2px solid var(--kinder-accent);
}

/* === COMMENTS === */
.kinder-comments {
	margin-top: 3rem;
	padding-top: 2rem;
	border-top: 1px solid var(--kinder-border);
}
.kinder-comments-title {
	font-size: var(--kinder-fs-lg);
	font-weight: 700;
	margin-bottom: 1.5rem;
}
.comment-list {
	list-style: none;
	padding: 0;
	margin: 0 0 2rem;
}
.comment {
	padding: 1.25rem;
	background: var(--kinder-surface);
	border: 1px solid var(--kinder-border);
	border-radius: var(--kinder-radius-lg);
	margin-bottom: 1rem;
}
.comment-meta { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.75rem; }
.comment-author img { border-radius: 50%; }
.comment-author .fn { font-weight: 700; font-size: var(--kinder-fs-sm); }
.comment-metadata { font-size: var(--kinder-fs-xs); color: var(--kinder-text-muted); }
.comment-body p { font-size: var(--kinder-fs-sm); color: var(--kinder-text-muted); margin: 0; }

/* Comment form */
.comment-respond { margin-top: 2rem; }
.comment-reply-title { font-size: var(--kinder-fs-lg); font-weight: 700; margin-bottom: 1rem; }
.comment-form label { display: block; font-size: var(--kinder-fs-sm); font-weight: 700; margin-bottom: 0.4rem; }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
	width: 100%;
	font-family: var(--kinder-font-body);
	font-size: var(--kinder-fs-base);
	border: 1.5px solid var(--kinder-border);
	border-radius: var(--kinder-radius-md);
	padding: 0.75em 1em;
	background: var(--kinder-surface);
	color: var(--kinder-text);
	margin-bottom: 1rem;
	transition: border-color var(--kinder-transition);
}
.comment-form input:focus, .comment-form textarea:focus {
	outline: none;
	border-color: var(--kinder-accent);
	box-shadow: 0 0 0 3px rgba(190, 40, 69, 0.15);
}
.comment-form .submit {
	background: var(--kinder-accent);
	color: #fff;
	border: 2px solid var(--kinder-accent);
	border-radius: var(--kinder-radius-full);
	padding: 0.75em 2em;
	font-family: var(--kinder-font-body);
	font-size: var(--kinder-fs-base);
	font-weight: 700;
	cursor: pointer;
	transition: all var(--kinder-transition);
}
.comment-form .submit:hover { background: var(--kinder-accent-hover); border-color: var(--kinder-accent-hover); }

/* === 404 PAGE === */
.kinder-404 {
	text-align: center;
	padding: 5rem 1rem;
}
.kinder-404__code { font-size: 8rem; font-weight: 800; color: var(--kinder-border); line-height: 1; }
.kinder-404__title { font-size: var(--kinder-fs-xl); font-weight: 700; margin: 0 0 1rem; }
.kinder-404__desc { color: var(--kinder-text-muted); margin-bottom: 2rem; }
.kinder-404__actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* === SEARCH PAGE === */
.kinder-search-header { margin-bottom: 2rem; }
.kinder-search-header h1 { font-size: var(--kinder-fs-xl); font-weight: 800; }
.kinder-search-header .kinder-search-term { color: var(--kinder-accent); }

/* === WC MY ACCOUNT LAYOUT === */
.woocommerce-account .woocommerce {
	display: grid;
	grid-template-columns: 240px 1fr;
	gap: 2rem;
	align-items: start;
}
@media (max-width: 768px) {
	.woocommerce-account .woocommerce { grid-template-columns: 1fr; }
}
.woocommerce-account .woocommerce-MyAccount-content { min-width: 0; }

/* === RESPONSIVE UTILITIES === */
@media (max-width: 768px) {
	.kinder-section-title { font-size: var(--kinder-fs-lg); }
	.kinder-hero__title   { font-size: var(--kinder-fs-2xl); }
}
@media (max-width: 480px) {
	.kinder-hero__ctas { flex-direction: column; }
	.kinder-brand-story__stats { gap: 1rem; }
	.kinder-countdown { gap: 0.25rem; }
	.kinder-countdown__unit { min-width: 52px; }
	.kinder-countdown__num { font-size: 1.5rem; }
}

/* === PRINT === */
@media print {
	.kinder-site-header,
	.kinder-float-wa,
	.kinder-back-to-top,
	.kinder-mini-cart,
	.kinder-mobile-menu,
	.kinder-ticker-wrap {
		display: none !important;
	}
}

/* ====================================================
   THEME INTEGRATION — blog, pages, WordPress core classes,
   widgets, WooCommerce layout, drawer & UI states
   ==================================================== */

/* === UI STATES === */
html.kinder-scroll-locked,
html.kinder-scroll-locked body { overflow: hidden; }

.kinder-toast {
	position: fixed;
	bottom: 6rem;
	left: 50%;
	transform: translateX(-50%) translateY(1rem);
	background: var(--kinder-primary);
	color: var(--kinder-accent);
	padding: 0.75rem 1.5rem;
	border-radius: var(--kinder-radius-full);
	font-family: var(--kinder-font-body);
	font-size: var(--kinder-fs-sm);
	font-weight: 600;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
	z-index: var(--kinder-z-toast);
	opacity: 0;
	transition: opacity 0.3s ease, transform 0.3s ease;
	max-width: calc(100vw - 2rem);
	text-align: center;
	pointer-events: none;
}
.kinder-toast.is-visible { opacity: 1; transform: translateX(-50%) translateY(0); }

.kinder-error,
.kinder-wishlist-empty {
	text-align: center;
	color: var(--kinder-text-muted);
	padding: 2rem 1rem;
	margin: 0;
}
.kinder-out-of-stock { color: var(--kinder-rose); font-weight: 700; }

/* === MINI-CART DRAWER (inner) === */
.kinder-mini-cart__inner {
	flex: 1;
	display: flex;
	flex-direction: column;
	min-height: 0;
}
.kinder-mini-cart__items { list-style: none; margin: 0; padding: 0; }
.kinder-mini-cart__empty .kinder-btn { margin-top: 1rem; }
.kinder-cart-item__info { min-width: 0; }
.kinder-cart-item__meta dl { margin: 0; }
.kinder-cart-item__meta dt,
.kinder-cart-item__meta dd { display: inline; margin: 0; }
.kinder-cart-item__meta dd p { display: inline; margin: 0; }
.kinder-cart-item__remove { display: inline-flex; text-decoration: none; }
.kinder-cart-item__remove svg { width: 18px; height: 18px; }
.kinder-cart-item__remove.loading { opacity: 0.4; pointer-events: none; }
.kinder-mini-cart__actions .kinder-btn svg { width: 18px; height: 18px; }

/* === NAVIGATION: sub-menu toggle === */
.kinder-nav-menu > li.menu-item-has-children { display: flex; align-items: center; }
.kinder-submenu-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	padding: 0;
	margin-inline-start: -0.5rem;
	background: none;
	border: none;
	border-radius: 50%;
	color: currentColor;
	cursor: pointer;
}
.kinder-submenu-toggle svg { width: 14px; height: 14px; transition: transform var(--kinder-transition); }
.kinder-submenu-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.kinder-nav-menu li.is-submenu-open > .sub-menu {
	opacity: 1;
	pointer-events: auto;
	transform: translateY(0);
}
.kinder-nav-menu .sub-menu .sub-menu { top: 0; inset-inline-start: 100%; }

.kinder-mobile-nav-menu li { position: relative; }
.kinder-mobile-nav-menu li.menu-item-has-children > a { padding-inline-end: 3rem; }
.kinder-mobile-nav-menu .kinder-submenu-toggle {
	position: absolute;
	top: 0.5rem;
	inset-inline-end: 0.5rem;
	width: 36px;
	height: 36px;
	margin: 0;
}
.kinder-mobile-nav-menu .sub-menu {
	display: none;
	list-style: none;
	margin: 0;
	padding: 0 0 0.5rem;
	padding-inline-start: 1rem;
}
.kinder-mobile-nav-menu li.is-submenu-open > .sub-menu { display: block; }
.kinder-mobile-nav-menu .sub-menu a { font-weight: 500; font-size: var(--kinder-fs-sm); }

.kinder-navbar .custom-logo-link { display: inline-flex; align-items: center; }
.kinder-navbar .custom-logo { max-height: 48px; width: auto; }
a.kinder-navbar__icon-btn { text-decoration: none; }

/* === SITE MAIN & PAGES === */
.kinder-site-main { display: block; min-height: 50vh; }
.kinder-site-main:not(.kinder-front-page):not(.kinder-site-main--elementor) { padding-block-end: var(--kinder-gap-xl); }
.kinder-page-content { max-width: 100%; }

/* === SEARCH FORM === */
.kinder-search-form {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	max-width: 520px;
	margin-inline: auto;
	background: var(--kinder-surface);
	border: 1.5px solid var(--kinder-border);
	border-radius: var(--kinder-radius-full);
	padding: 0.35rem;
	padding-inline-start: 1.25rem;
}
.kinder-search-form:focus-within { border-color: var(--kinder-accent); box-shadow: 0 0 0 3px rgba(190, 40, 69, 0.15); }
.kinder-search-form__input {
	flex: 1;
	min-width: 0;
	border: none;
	background: none;
	font-family: var(--kinder-font-body);
	font-size: var(--kinder-fs-base);
	color: var(--kinder-text);
	outline: none;
}
.kinder-search-form__btn {
	width: 42px;
	height: 42px;
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	border: none;
	border-radius: 50%;
	background: var(--kinder-accent);
	color: #fff;
	cursor: pointer;
}
.kinder-search-form__btn svg { width: 18px; height: 18px; }
.kinder-search-term { color: var(--kinder-accent); }

/* === BREADCRUMBS (list) === */
.kinder-breadcrumbs__list {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.4rem;
	list-style: none;
	margin: 0;
	padding: 0;
}
.kinder-breadcrumbs__item { display: inline-flex; align-items: center; gap: 0.4rem; }
.kinder-breadcrumbs__current { color: var(--kinder-accent); font-weight: 600; }

/* === POSTS GRID (blog index, archives, search) === */
.kinder-posts-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1.5rem;
}
@media (max-width: 900px) { .kinder-posts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .kinder-posts-grid { grid-template-columns: 1fr; } }

.kinder-post-card {
	display: flex;
	flex-direction: column;
	background: var(--kinder-surface);
	border: 1px solid var(--kinder-border);
	border-radius: var(--kinder-radius-lg);
	overflow: hidden;
	transition: transform var(--kinder-transition), box-shadow var(--kinder-transition);
}
.kinder-post-card:hover { transform: translateY(-4px); box-shadow: var(--kinder-shadow-md); }
.kinder-post-card__thumb-link { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--kinder-surface-alt); }
.kinder-post-card__thumb { width: 100%; height: 100%; object-fit: cover; transition: transform var(--kinder-transition-slow); }
.kinder-post-card:hover .kinder-post-card__thumb { transform: scale(1.05); }
.kinder-post-card__body { display: flex; flex-direction: column; flex: 1; padding: 1.25rem; }
.kinder-post-card__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.4rem;
	font-size: var(--kinder-fs-xs);
	color: var(--kinder-text-muted);
	margin-bottom: 0.6rem;
}
.kinder-post-card__meta a { color: var(--kinder-accent); font-weight: 600; text-decoration: none; }
.kinder-post-card__title { font-size: var(--kinder-fs-md); font-weight: 700; line-height: 1.45; margin: 0 0 0.6rem; }
.kinder-post-card__title a { color: var(--kinder-text); text-decoration: none; }
.kinder-post-card__title a:hover { color: var(--kinder-accent); }
.kinder-post-card__excerpt { color: var(--kinder-text-muted); font-size: var(--kinder-fs-sm); margin: 0 0 1rem; flex: 1; }
.kinder-post-card .kinder-btn--text { align-self: flex-start; }
.kinder-post-card.sticky { border-color: var(--kinder-accent); }
.kinder-sep { color: var(--kinder-text-light); }

/* === SINGLE POST === */
.kinder-single-post-wrap--full { grid-template-columns: minmax(0, 1fr); max-width: 860px; }
.kinder-single-content { min-width: 0; }
.kinder-single-post__featured-img { margin: 0 0 1.5rem; border-radius: var(--kinder-radius-xl); overflow: hidden; }
.kinder-single-post__thumb { width: 100%; height: auto; display: block; }
.kinder-single-post__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem;
	font-size: var(--kinder-fs-sm);
	color: var(--kinder-text-muted);
	margin-bottom: 0.75rem;
}
.kinder-single-post__meta a { color: var(--kinder-accent); font-weight: 600; text-decoration: none; }
.kinder-single-post__title { font-size: var(--kinder-fs-xl); font-weight: 800; line-height: 1.35; margin: 0 0 1.5rem; }
.kinder-single-post__footer { margin-top: 2rem; }
.kinder-post-tags { font-size: var(--kinder-fs-sm); color: var(--kinder-text-muted); }
.kinder-post-tags a {
	display: inline-block;
	padding: 0.2em 0.8em;
	margin: 0.15rem;
	border: 1px solid var(--kinder-border);
	border-radius: var(--kinder-radius-full);
	color: var(--kinder-text);
	text-decoration: none;
}
.kinder-post-tags a:hover { border-color: var(--kinder-accent); color: var(--kinder-accent); }

.post-navigation { margin-top: 2.5rem; }
.post-navigation .nav-links {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1rem;
}
.post-navigation .nav-next { text-align: end; grid-column: 2; }
.post-navigation a {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
	height: 100%;
	padding: 1rem 1.25rem;
	background: var(--kinder-surface);
	border: 1px solid var(--kinder-border);
	border-radius: var(--kinder-radius-lg);
	text-decoration: none;
	transition: border-color var(--kinder-transition);
}
.post-navigation a:hover { border-color: var(--kinder-accent); }
.kinder-post-nav__label { font-size: var(--kinder-fs-xs); color: var(--kinder-text-muted); }
.kinder-post-nav__title { font-weight: 700; color: var(--kinder-text); }
@media (max-width: 600px) {
	.post-navigation .nav-links { grid-template-columns: 1fr; }
	.post-navigation .nav-next { grid-column: auto; }
}

/* === ENTRY CONTENT TYPOGRAPHY (posts & pages) === */
.entry-content { font-size: var(--kinder-fs-base); line-height: 1.85; color: var(--kinder-text); overflow-wrap: break-word; }
.entry-content > * { margin-block: 0 1.25em; }
.entry-content h2,
.entry-content h3,
.entry-content h4 { font-weight: 700; line-height: 1.4; margin-block: 1.75em 0.6em; }
.entry-content h2 { font-size: var(--kinder-fs-lg); }
.entry-content h3 { font-size: var(--kinder-fs-md); }
.entry-content a { color: var(--kinder-accent-hover); text-decoration: underline; text-underline-offset: 3px; }
.entry-content a:hover { color: var(--kinder-text); }
.entry-content ul,
.entry-content ol { padding-inline-start: 1.5em; }
.entry-content li + li { margin-top: 0.35em; }
.entry-content img,
.entry-content video { max-width: 100%; height: auto; border-radius: var(--kinder-radius-md); }
.entry-content blockquote,
.entry-content .wp-block-quote {
	margin-inline: 0;
	padding: 1rem 1.5rem;
	border-inline-start: 4px solid var(--kinder-accent);
	background: var(--kinder-surface-alt);
	border-radius: var(--kinder-radius-md);
	color: var(--kinder-text-muted);
}
.entry-content table { width: 100%; border-collapse: collapse; }
.entry-content th,
.entry-content td { border: 1px solid var(--kinder-border); padding: 0.6rem 0.8rem; text-align: start; }
.entry-content pre { overflow-x: auto; background: var(--kinder-surface-alt); padding: 1rem; border-radius: var(--kinder-radius-md); direction: ltr; text-align: left; }
.entry-content hr { border: none; border-top: 1px solid var(--kinder-border); margin-block: 2rem; }
.kinder-post-pages { display: flex; gap: 0.5rem; align-items: center; margin-top: 2rem; }
.kinder-post-pages a,
.kinder-post-pages > span:not(:first-child) {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 36px;
	height: 36px;
	border: 1px solid var(--kinder-border);
	border-radius: 50%;
}

/* === WordPress CORE CLASSES === */
.alignleft { float: left; margin-inline-end: 1.5rem; margin-bottom: 1rem; }
.alignright { float: right; margin-inline-start: 1.5rem; margin-bottom: 1rem; }
.aligncenter { display: block; margin-inline: auto; }
html[dir="rtl"] .alignleft { margin-right: 0; margin-left: 1.5rem; }
html[dir="rtl"] .alignright { margin-left: 0; margin-right: 1.5rem; }
.entry-content .alignwide { width: min(1280px, 100vw - 2rem); max-width: none; margin-inline: calc(50% - min(640px, 50vw - 1rem)); }
.entry-content .alignfull { width: 100vw; max-width: none; margin-inline: calc(50% - 50vw); }
.wp-caption { max-width: 100%; }
.wp-caption-text,
.gallery-caption,
.wp-element-caption,
.wp-block-image figcaption { font-size: var(--kinder-fs-xs); color: var(--kinder-text-muted); text-align: center; margin-top: 0.5rem; }
.bypostauthor > .comment-body .fn::after {
	content: "★";
	color: var(--kinder-accent);
	margin-inline-start: 0.35em;
}
.sticky { position: relative; }
.wp-block-button__link { border-radius: var(--kinder-radius-full); }
.wp-block-search__button { background: var(--kinder-accent); color: #fff; border: none; }

/* === WIDGETS === */
.kinder-sidebar { display: flex; flex-direction: column; }
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget li { padding: 0.45rem 0; border-bottom: 1px dashed var(--kinder-border); }
.widget li:last-child { border-bottom: none; }
.widget a { color: var(--kinder-text); text-decoration: none; }
.widget a:hover { color: var(--kinder-accent); }
.widget select,
.widget input[type="search"],
.widget input[type="text"] { width: 100%; }

/* === COMMENTS (navigation) === */
.comment-list .children { list-style: none; padding-inline-start: 1.5rem; margin: 1rem 0 0; }
.comment-navigation .nav-links { display: flex; justify-content: space-between; margin-bottom: 1.5rem; }
.kinder-no-comments { color: var(--kinder-text-muted); }
.comment-reply-link { font-size: var(--kinder-fs-xs); font-weight: 700; color: var(--kinder-accent); }

/* === 404 & EMPTY STATES === */
.kinder-404__inner { max-width: 720px; margin-inline: auto; }
.kinder-404__badge {
	font-size: clamp(5rem, 18vw, 9rem);
	font-weight: 800;
	line-height: 1;
	color: var(--kinder-accent);
	opacity: 0.35;
	margin-bottom: 1rem;
}
.kinder-404__search { margin-bottom: 2rem; }
.kinder-404__cats { margin-top: 2.5rem; }
.kinder-404__cats-label { color: var(--kinder-text-muted); font-size: var(--kinder-fs-sm); margin-bottom: 0.75rem; }
.kinder-404__cats-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; }
.kinder-tag {
	display: inline-block;
	padding: 0.35em 1em;
	border: 1px solid var(--kinder-border);
	border-radius: var(--kinder-radius-full);
	background: var(--kinder-surface);
	color: var(--kinder-text);
	font-size: var(--kinder-fs-sm);
	text-decoration: none;
	transition: all var(--kinder-transition);
}
.kinder-tag:hover { border-color: var(--kinder-accent); color: var(--kinder-accent); }
.kinder-none-found { text-align: center; padding: 3rem 1rem; }
.kinder-none-found__icon svg { width: 56px; height: 56px; color: var(--kinder-border); }
.kinder-none-found__title { font-size: var(--kinder-fs-lg); margin: 1rem 0 0.5rem; }

/* === FAQ (heading wrapper) === */
.kinder-faq__heading { margin: 0; font: inherit; }

/* === CAROUSEL ARROWS === */
.kinder-carousel-arrow:disabled { opacity: 0.35; cursor: default; }

/* === MODALS: wider quick view & wishlist === */
.kinder-modal--quick-view .kinder-modal__panel,
.kinder-modal--wishlist .kinder-modal__panel { max-width: 920px; }
.kinder-wishlist-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 700px) { .kinder-wishlist-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.kinder-quick-view__desc p { margin: 0 0 0.75rem; }

/* === WOOCOMMERCE LAYOUT WRAPPERS === */
.kinder-wc-main { padding-top: 1.5rem; }
.kinder-wc-layout--sidebar {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 280px;
	gap: 2rem;
	align-items: start;
}
.kinder-wc-content { min-width: 0; }
.kinder-shop-sidebar { position: sticky; top: calc(var(--kinder-header-h) + 1.5rem); }
@media (max-width: 1024px) {
	.kinder-wc-layout--sidebar { grid-template-columns: minmax(0, 1fr); }
	.kinder-shop-sidebar { position: static; }
}
.woocommerce ul.products::before,
.woocommerce ul.products::after { display: none; }
.woocommerce ul.products li.product { width: auto; float: none; }
.kinder-product-card a.added_to_cart {
	display: block;
	margin-top: 0.5rem;
	font-size: var(--kinder-fs-xs);
	font-weight: 700;
	color: var(--kinder-accent);
	text-align: center;
}
.kinder-product-card__atc.loading,
.kinder-product-card__atc.is-loading { opacity: 0.6; pointer-events: none; }
.kinder-order-phone2 { margin-top: 0.5rem; }

/* === ELEMENTOR === */
.kinder-site-main--elementor > .elementor { width: 100%; }
.elementor-widget-container .kinder-hero,
.elementor-widget-container section[class^="kinder-"] { margin: 0; }

/* === FOOTER LEGAL LINKS === */
.kinder-footer__legal { margin: 0; font-size: var(--kinder-fs-xs); }
.kinder-footer__legal a { color: inherit; text-decoration: none; }
.kinder-footer__legal a:hover { color: var(--kinder-accent); }
.kinder-footer__legal-list { display: flex; flex-wrap: wrap; gap: 1rem; list-style: none; margin: 0; padding: 0; }

/* === OFF-CANVAS LAYERS === */
/* Closed drawers must not catch clicks while their slide-out animation finishes */
.kinder-mini-cart:not(.is-open),
.kinder-mobile-menu:not(.is-open) { pointer-events: none; }
/* The mobile menu lives inside the sticky header (its own stacking context): lift the header above the overlay */
html.kinder-menu-open .kinder-site-header { z-index: calc(var(--kinder-z-drawer) + 1); }

/* === STICKY HEADER (Customizer → Header Settings) === */
.kinder-site-header.is-sticky { position: sticky; top: 0; }
.admin-bar .kinder-site-header.is-sticky { top: 32px; }
@media (max-width: 782px) {
	.admin-bar .kinder-site-header.is-sticky { top: 46px; }
}
@media (max-width: 600px) {
	/* The admin bar is not fixed on small screens */
	.admin-bar .kinder-site-header.is-sticky { top: 0; }
}

/* === ELEMENTOR IMAGE RESET GUARD ===
   Elementor ships `.elementor img { height: auto; max-width: 100% }` (higher specificity than single classes).
   Re-assert the sizing of theme images that must fill their frame when rendered inside Elementor widgets. */
.kinder-hero .kinder-hero__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
}
.kinder-product-card .kinder-product-card__img { height: 100%; }
.kinder-testimonial-card__avatar img { height: 100%; }
/* `display` on these components would otherwise override the HTML hidden attribute */
.kinder-back-to-top[hidden],
.kinder-live-search__results[hidden],
.kinder-faq__answer[hidden],
.kinder-products-tabs__panel[hidden] { display: none !important; }

/* The navbar is a flex column: auto inline margins would shrink the inner row to its content width */
.kinder-navbar__inner { width: 100%; }
.kinder-nav-menu > li > a { white-space: nowrap; }
@media (min-width: 1024px) and (max-width: 1200px) {
	.kinder-nav-menu > li > a { padding-inline: 0.6rem; }
}

/* Stats band sits on a dark background in both themes */
.kinder-stats .kinder-section-title { color: #FFF6EF; }
