/*
 Theme Name:   Woodmart Child
 Description:  Woodmart Child Theme
 Author:       XTemos
 Author URI:   http://xtemos.com
 Template:     woodmart
 Version:      1.0.0
 Text Domain:  woodmart
*/

/* ==========================================================================
   SALDUX 2026 header (WoodMart header_828446)
   Everything below is scoped to .whb-header_828446 so the old header and
   other WoodMart headers are not affected.
   ========================================================================== */

/* Shell: translucent paper, blur, bottom rule.
   The rule is a 1px outside shadow, not a border, so the header stays exactly
   76/64px and matches WoodMart's sticky placeholder (no 1px jump on stick). */
.whb-header_828446 .whb-main-header {
	background-color: rgba(247, 248, 249, .96);
	-webkit-backdrop-filter: saturate(1.2) blur(8px);
	backdrop-filter: saturate(1.2) blur(8px);
	box-shadow: 0 1px 0 #D6DCE3;
}

.whb-header_828446 .whb-general-header {
	background-color: transparent;
}

/* 1280 content grid with 40px gutters, same as the page sections */
.whb-header_828446 .whb-general-header > .container {
	max-width: 1280px;
	padding-left: 40px;
	padding-right: 40px;
}

/* Logo: mark + live wordmark */
.whb-header_828446 .saldux-logo {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	color: #0F1F35;
	text-decoration: none;
}

.whb-header_828446 .saldux-logo:hover {
	color: #0F1F35;
}

.whb-header_828446 .saldux-logo-mark {
	display: block;
	flex: none;
	width: 34px;
	height: 34px;
}

.whb-header_828446 .saldux-logo-word {
	font-family: "IBM Plex Sans", sans-serif;
	font-size: 19px;
	font-weight: 600;
	line-height: 1;
	letter-spacing: .2em;
}

/* Desktop nav: 40px group gap + 16px extra before the nav
   (WoodMart already adds 2 × 10px element padding) */
.whb-header_828446 .whb-col-center {
	padding-left: 36px;
}

.whb-header_828446 .wd-header-main-nav .wd-nav-main {
	gap: 4px;
	margin: 0;
}

.whb-header_828446 .wd-header-main-nav .wd-nav-main > li {
	margin: 0;
	padding: 0;
}

.whb-header_828446 .wd-header-main-nav .wd-nav-main > li > a {
	height: 76px;
	padding: 0 14px;
	font-family: "IBM Plex Sans", sans-serif;
	font-size: 15.5px;
	font-weight: 400;
	line-height: 1;
	letter-spacing: 0;
	text-transform: none;
	color: #0F1F35;
	transition: color .15s;
}

.whb-header_828446 .wd-header-main-nav .wd-nav-main > li:hover > a,
.whb-header_828446 .wd-header-main-nav .wd-nav-main > li:focus-within > a,
.whb-header_828446 .wd-header-main-nav .wd-nav-main > li.current-menu-item > a {
	color: #1F5EA8;
}

/* Right group: Web shop link + CTA */
.whb-header_828446 .saldux-hdr-actions {
	display: flex;
	align-items: center;
	gap: 22px;
}

.whb-header_828446 .saldux-shop-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-family: "IBM Plex Sans", sans-serif;
	font-size: 15px;
	line-height: 1;
	color: #56616E;
	text-decoration: none;
	transition: color .15s;
}

.whb-header_828446 .saldux-shop-link:hover {
	color: #0F1F35;
}

.whb-header_828446 .saldux-shop-icon {
	display: block;
	flex: none;
	width: 17px;
	height: 17px;
	background-color: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23000' stroke-width='1.4'%3E%3Cpath d='M3 6h14l-1.2 9H4.2L3 6Z'/%3E%3Cpath d='M7 6V4.5a3 3 0 0 1 6 0V6'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23000' stroke-width='1.4'%3E%3Cpath d='M3 6h14l-1.2 9H4.2L3 6Z'/%3E%3Cpath d='M7 6V4.5a3 3 0 0 1 6 0V6'/%3E%3C/svg%3E") center / contain no-repeat;
}

.whb-header_828446 .saldux-hdr-cta,
.whb-header_828446 .saldux-hdr-ponuda {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 42px;
	padding: 0 18px;
	border-radius: 2px;
	background-color: #0F1F35;
	font-family: "IBM Plex Sans", sans-serif;
	font-size: 14.5px;
	font-weight: 500;
	line-height: 1;
	white-space: nowrap;
	color: #FFFFFF;
	text-decoration: none;
	transition: background-color .15s, color .15s;
}

.whb-header_828446 .saldux-hdr-cta:hover,
.whb-header_828446 .saldux-hdr-ponuda:hover {
	background-color: #1F5EA8;
	color: #FFFFFF;
}

/* Mobile layout: Ponuda + burger */
.whb-header_828446 .whb-mobile-right {
	gap: 8px;
}

.whb-header_828446 .whb-mobile-right > * {
	margin: 0;
	padding: 0;
}

.whb-header_828446 .whb-mobile-right {
	margin-right: 0;
}

.whb-header_828446 .saldux-hdr-ponuda {
	height: 44px;
	padding: 0 14px;
	font-size: 14px;
}

.whb-header_828446 .wd-header-mobile-nav > a {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1px solid #D6DCE3;
	border-radius: 2px;
	background-color: #FFFFFF;
	color: #0F1F35;
}

.whb-header_828446 .wd-header-mobile-nav .wd-tools-icon {
	width: 20px;
	height: 20px;
}

.whb-header_828446 .wd-header-mobile-nav .wd-tools-icon::before {
	content: "";
	display: block;
	width: 20px;
	height: 20px;
	background-color: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23000' stroke-width='1.5'%3E%3Cpath d='M3 6h14M3 10h14M3 14h14'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23000' stroke-width='1.5'%3E%3Cpath d='M3 6h14M3 10h14M3 14h14'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ==========================================================================
   Rješenja mega menu (WoodMart full-width dropdown, HTML Block 299)
   ========================================================================== */

/* Anchor the panel to the full-width header bar instead of the menu item, so it
   sits correctly without WoodMart's hover JS (keyboard focus, sticky state). */
.whb-header_828446 .wd-nav-main > li.menu-mega-dropdown {
	position: static;
}

.whb-header_828446 .wd-nav-main > li > .wd-dropdown-menu.wd-design-full-width {
	--wd-dropdown-bg-color: #FFFFFF;
	top: 100%;
	left: 0;
	right: 0;
	width: auto;
	margin: 0;
	padding: 0;
	border-top: 1px solid #D6DCE3;
	border-bottom: 1px solid #D6DCE3;
	background-color: #FFFFFF;
	box-shadow: 0 18px 30px -24px rgba(15, 31, 53, .35);
	transform: translateY(-4px);
	transition: opacity .16s ease, visibility .16s ease, transform .16s ease;
}

.whb-header_828446 .wd-nav-main > li > .wd-dropdown-menu.wd-design-full-width::after {
	height: 0;
}

.whb-header_828446 .wd-nav-main > li > .wd-dropdown-menu.wd-design-full-width > .container {
	max-width: 1280px;
	padding-left: 40px;
	padding-right: 40px;
}

/* Keyboard: keep the panel open while focus is inside the item */
.whb-header_828446 .wd-nav-main > li.wd-event-hover:focus-within > .wd-dropdown {
	visibility: visible;
	opacity: 1;
	pointer-events: unset;
	transform: none;
}

/* Mega-menu links: the kit's default link colour sits on the inner <a>,
   so let it follow the paragraph class colour (navy, hover blue).
   Elementor drops transitions on classes, so the transition lives here. */
.whb-header_828446 .wd-dropdown .e-paragraph-base > a {
	color: inherit;
}

.whb-header_828446 .saldux-mega-link {
	transition: color .15s;
}

/* ==========================================================================
   Mobile menu panel (WoodMart .mobile-nav, menu 24)
   ========================================================================== */

/* Full-width panel starting under the 64px header */
.mobile-nav.wd-side-hidden {
	--wd-side-hidden-w: 100vw;
	top: calc(var(--wd-admin-bar-h, 0px) + 64px);
	padding: 8px 20px 32px;
	background-color: #F7F8F9;
	box-shadow: none;
}

/* Logged-in only: WoodMart zeroes its admin-bar offset at ≤1024, so use the WP one */
.admin-bar .mobile-nav.wd-side-hidden {
	top: calc(var(--wp-admin--admin-bar--height, 0px) + 64px);
}

/* Keep the header (logo, Ponuda, burger) above WoodMart's dark overlay while the menu is open */
body:has(.mobile-nav.wd-opened) .whb-header_828446 .whb-main-header {
	z-index: 450;
}

.mobile-nav .wd-heading {
	padding: 0;
	border: 0;
}

.mobile-nav .wd-heading .close-side-widget a {
	font-family: "IBM Plex Sans", sans-serif;
	font-size: 14px;
	font-weight: 400;
	text-transform: none;
	color: #56616E;
}

.mobile-nav .wd-nav-mobile {
	margin: 0;
	font-family: "IBM Plex Sans", sans-serif;
}

/* Main rows: 60px, 20px navy, 1px divider (on the row, so it also closes an open submenu) */
.mobile-nav .wd-nav-mobile > li {
	border-bottom: 1px solid #D6DCE3;
}

.mobile-nav .wd-nav-mobile > li > a {
	min-height: 60px;
	padding: 0;
	border: 0;
	font-family: "IBM Plex Sans", sans-serif;
	font-size: 20px;
	font-weight: 400;
	line-height: 1.2;
	letter-spacing: 0;
	text-transform: none;
	color: #0F1F35;
}

.mobile-nav .wd-nav-mobile > li > .wd-nav-opener {
	width: 44px;
	height: 60px;
	border: 0;
	background-color: transparent;
	color: #0F1F35;
}

.mobile-nav .wd-nav-mobile > li > .wd-nav-opener.wd-active {
	background-color: transparent;
	color: #1F5EA8;
}

/* Rješenja: group headings (always open) and their sub-items */
.mobile-nav .wd-nav-mobile > li > .wd-sub-menu {
	padding: 0 0 16px;
}

.mobile-nav .saldux-m-group > .wd-nav-opener {
	display: none;
}

.mobile-nav .wd-nav-mobile .saldux-m-group > .sub-sub-menu {
	display: block;
}

.mobile-nav .saldux-m-group > a {
	min-height: 0;
	padding: 16px 0 6px;
	border: 0;
	font-size: 12px;
	font-weight: 500;
	line-height: 1.4;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: #56616E;
}

.mobile-nav .saldux-m-num {
	margin-right: 8px;
	color: #1F5EA8;
}

.mobile-nav .saldux-m-sub > a {
	min-height: 0;
	padding: 9px 0;
	border: 0;
	font-size: 16px;
	font-weight: 400;
	line-height: 1.4;
	text-transform: none;
	color: #141D29;
}

.mobile-nav .wd-nav-mobile li > a:hover,
.mobile-nav .wd-nav-mobile li.current-menu-item > a {
	color: #1F5EA8;
}

/* ==========================================================================
   Header layout switch at 1100 instead of WoodMart's 1024
   ========================================================================== */

@media (min-width: 1025px) and (max-width: 1100px) {
	.whb-header_828446 .whb-visible-lg {
		display: none;
	}

	.whb-header_828446 .whb-hidden-lg {
		display: flex;
	}

	.whb-header.whb-header_828446 .whb-general-header-inner,
	.whb-header.whb-header_828446.whb-sticked .whb-general-header-inner {
		height: var(--wd-header-general-sm-h);
		max-height: var(--wd-header-general-sm-h);
	}

	/* Sticky placeholder must match the 64px row, otherwise content jumps on stick */
	.whb-header.whb-header_828446.whb-sticky-prepared {
		padding-top: var(--wd-header-sm-h);
	}
}

@media (max-width: 820px) {
	.whb-header_828446 .whb-general-header > .container {
		padding-left: 20px;
		padding-right: 20px;
	}

	.whb-header_828446 .saldux-logo-mark {
		width: 30px;
		height: 30px;
	}

	.whb-header_828446 .saldux-logo-word {
		font-size: 17px;
	}
}

/* ==========================================================================
   SALDUX 2026 footer (WoodMart footer widgets)
   Content: Appearance > Widgets > Footer Column 1–4.
   Links:   Appearance > Menus > "SALDUX - Footer Rješenja / SALDUX / Pravno".
   Legal links in the copyrights row come from [saldux_menu menu="saldux-footer-pravno"].
   ========================================================================== */

.wd-footer {
	background-color: #0A1626;
	color: #A9B5C4;
	font-family: "IBM Plex Sans", sans-serif;
	font-size: 15px;
	line-height: 1.55;
}

/* Same 1280 grid with 40px gutters as the header and page sections */
.wd-footer > .main-footer.container,
.wd-footer .wd-copyrights > .container {
	max-width: 1280px;
	padding-left: 40px;
	padding-right: 40px;
}

/* Main grid: 4 : 2.4 : 2.4 : 2.4, divider below */
.wd-footer .footer-sidebar {
	display: grid;
	grid-template-columns: minmax(0, 4fr) repeat(3, minmax(0, 2.4fr));
	gap: 40px;
	margin: 0;
	padding: 72px 0 56px;
	border-bottom: 1px solid rgba(255, 255, 255, .14);
}

.wd-footer .footer-sidebar > .footer-column {
	grid-column: auto;
	width: auto;
	max-width: none;
	margin: 0;
	padding: 0;
}

.wd-footer .footer-widget {
	margin: 0;
	padding: 0;
}

.wd-footer .footer-widget .widget-title {
	margin: 0 0 16px;
	padding: 0;
	font-family: "IBM Plex Sans", sans-serif;
	font-size: 11.5px;
	font-weight: 500;
	line-height: 1.4;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: #FFFFFF;
}

/* Link lists (menus) and the contact list */
.wd-footer .widget_nav_menu ul,
.wd-footer .saldux-footer-contact {
	display: flex;
	flex-direction: column;
	gap: 9px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.wd-footer .widget_nav_menu li,
.wd-footer .saldux-footer-contact li {
	margin: 0;
	padding: 0;
	font-size: 15px;
	line-height: 1.55;
	color: #A9B5C4;
}

.wd-footer .footer-sidebar a,
.wd-footer .saldux-inline-menu a {
	padding: 0;
	font-size: inherit;
	line-height: inherit;
	color: #A9B5C4;
	text-decoration: none;
	transition: color .15s;
}

.wd-footer .footer-sidebar a:hover,
.wd-footer .footer-sidebar a:focus-visible,
.wd-footer .saldux-inline-menu a:hover,
.wd-footer .saldux-inline-menu a:focus-visible {
	color: #FFFFFF;
}

/* Column 1: white mark + live wordmark, tagline */
.wd-footer .footer-sidebar .saldux-footer-logo {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	color: #FFFFFF;
}

.wd-footer .footer-sidebar .saldux-footer-logo:hover {
	color: #FFFFFF;
}

.wd-footer .saldux-footer-logo img {
	display: block;
	flex: none;
	width: 34px;
	height: 34px;
}

.wd-footer .saldux-footer-logo span {
	font-size: 19px;
	font-weight: 600;
	line-height: 1;
	letter-spacing: .2em;
	color: #FFFFFF;
}

.wd-footer .saldux-footer-tagline {
	max-width: 30ch;
	margin: 18px 0 0;
	font-size: 14.5px;
	line-height: 1.55;
	color: #A9B5C4;
}

/* Bottom row: © left, legal menu right */
.wd-footer .wd-copyrights {
	padding: 24px 0 32px;
	border: 0;
	background-color: transparent;
	font-size: 13.5px;
	line-height: 1.55;
	color: #A9B5C4;
}

.wd-footer .wd-copyrights > .container {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: flex-start;
	gap: 20px;
}

.wd-footer .wd-copyrights .wd-col-start,
.wd-footer .wd-copyrights .wd-col-end {
	width: auto;
	max-width: none;
	margin: 0;
	padding: 0;
	text-align: left;
}

.wd-footer .saldux-inline-menu ul {
	display: flex;
	flex-wrap: wrap;
	gap: 24px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.wd-footer .saldux-inline-menu li {
	margin: 0;
	padding: 0;
}

@media (max-width: 820px) {
	.wd-footer > .main-footer.container,
	.wd-footer .wd-copyrights > .container {
		padding-left: 20px;
		padding-right: 20px;
	}

	/* 2 columns; logo block full width */
	.wd-footer .footer-sidebar {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		gap: 36px 20px;
		padding: 48px 0 36px;
	}

	.wd-footer .footer-sidebar > .footer-column-1 {
		grid-column: 1 / -1;
	}

	/* Stacked bottom row; 96px bottom keeps room for the future mobile sticky bar */
	.wd-footer .wd-copyrights {
		padding-bottom: 96px;
	}

	.wd-footer .wd-copyrights > .container {
		flex-direction: column;
	}
}
