/* ==========================================================================
   IDEAL HOUSE 3.0 - LAYOUT
   1. Nagłówek
   2. Menu (komputer)
   3. Menu (telefon / tablet - wysuwany panel)
   4. Stopka
   5. Dolny pasek akcji (telefon)
   ========================================================================== */

/* ---------- 1. Nagłówek ---------- */

.ih-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: var(--e-global-color-ihwhite);
	border-bottom: 1px solid var(--e-global-color-ihborder);
	transition: box-shadow .25s var(--ih-ease);
}

.admin-bar .ih-header {
	top: var(--wp-admin--admin-bar--height, 32px);
}

@media (max-width: 600px) {
	.admin-bar .ih-header {
		top: 0;
	}
}

.ih-header.is-scrolled {
	box-shadow: 0 6px 24px rgba(7, 21, 45, .07);
}

.ih-header__inner {
	display: flex;
	align-items: center;
	gap: 32px;
	min-height: var(--ih-header-h);
}

.ih-logo {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	flex: none;
	color: var(--e-global-color-primary);
	font-family: var(--ih-font-heading);
	font-size: 18px;
	font-weight: 800;
	letter-spacing: -.01em;
	text-transform: uppercase;
}

.ih-logo:hover {
	color: var(--e-global-color-primary);
}

.ih-logo img {
	width: auto;
	max-width: 168px;
	max-height: 44px;
}

.ih-logo__mark {
	width: 34px;
	height: 34px;
	color: var(--e-global-color-accent);
}

.ih-header__actions {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-left: auto;
}

.ih-header__phone {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--e-global-color-primary);
	font-family: var(--ih-font-ui);
	font-size: var(--e-global-typography-ihnav-font-size, 15px);
	font-weight: 600;
	white-space: nowrap;
}

.ih-header__phone .ih-icon {
	width: 17px;
	height: 17px;
}

.ih-header__phone:hover {
	color: var(--e-global-color-accent);
}

.ih-header__icon {
	position: relative;
	display: inline-grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	color: var(--e-global-color-primary);
	transition: background .2s var(--ih-ease), color .2s var(--ih-ease);
}

.ih-header__icon .ih-icon {
	width: 20px;
	height: 20px;
}

.ih-header__icon:hover {
	background: var(--e-global-color-ihsoft);
	color: var(--e-global-color-accent);
}

.ih-cart-count {
	position: absolute;
	top: 2px;
	right: 0;
	display: grid;
	place-items: center;
	min-width: 20px;
	height: 20px;
	padding: 0 5px;
	border-radius: 10px;
	background: var(--e-global-color-accent);
	color: var(--e-global-color-ihwhite);
	font-family: var(--ih-font-ui);
	font-size: var(--ih-fs-xs);
	font-weight: 700;
	line-height: 1;
}

.ih-cart-count[hidden] {
	display: none;
}

/* Hamburger */
.ih-burger {
	display: none;
	width: 44px;
	height: 44px;
	margin-right: -8px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--e-global-color-primary);
}

.ih-burger__lines {
	position: relative;
	display: block;
	width: 22px;
	height: 16px;
	margin: auto;
}

.ih-burger__lines span {
	position: absolute;
	left: 0;
	width: 100%;
	height: 2px;
	border-radius: 2px;
	background: currentColor;
	transition: transform .3s var(--ih-ease), opacity .2s var(--ih-ease), top .3s var(--ih-ease);
}

.ih-burger__lines span:nth-child(1) { top: 0; }
.ih-burger__lines span:nth-child(2) { top: 7px; }
.ih-burger__lines span:nth-child(3) { top: 14px; }

.ih-burger[aria-expanded="true"] .ih-burger__lines span:nth-child(1) { top: 7px; transform: rotate(45deg); }
.ih-burger[aria-expanded="true"] .ih-burger__lines span:nth-child(2) { opacity: 0; }
.ih-burger[aria-expanded="true"] .ih-burger__lines span:nth-child(3) { top: 7px; transform: rotate(-45deg); }

/* ---------- 2. Menu (komputer) ---------- */

.ih-nav {
	flex: 1;
	display: flex;
	justify-content: center;
}

.ih-menu,
.ih-menu ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.ih-menu {
	display: flex;
	align-items: center;
	gap: 4px;
}

.ih-menu > li {
	position: relative;
	display: flex;
	align-items: center;
}

.ih-menu a {
	display: block;
	color: var(--e-global-color-primary);
	font-family: var(--e-global-typography-ihnav-font-family, "Inter"), sans-serif;
	font-size: var(--e-global-typography-ihnav-font-size, 15px);
	font-weight: var(--e-global-typography-ihnav-font-weight, 500);
	line-height: var(--e-global-typography-ihnav-line-height, 1.3);
}

.ih-menu > li > a {
	position: relative;
	padding: 27px 12px;
}

.ih-menu > li > a::after {
	content: "";
	position: absolute;
	left: 12px;
	right: 12px;
	bottom: 18px;
	height: 2px;
	border-radius: 2px;
	background: var(--e-global-color-accent);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform .25s var(--ih-ease);
}

.ih-menu > li:hover > a::after,
.ih-menu > li.current-menu-item > a::after,
.ih-menu > li.current-menu-ancestor > a::after,
.ih-menu > li.current-menu-parent > a::after {
	transform: scaleX(1);
}

.ih-menu > li.current-menu-item > a,
.ih-menu > li.current-menu-ancestor > a {
	color: var(--e-global-color-primary);
	font-weight: 600;
}

.ih-submenu-toggle {
	display: grid;
	place-items: center;
	width: 22px;
	height: 22px;
	margin-left: -8px;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--e-global-color-ihmuted);
	transition: transform .25s var(--ih-ease), color .2s;
}

.ih-submenu-toggle .ih-icon {
	width: 15px;
	height: 15px;
}

@media (min-width: 1161px) {
	.ih-menu > li:hover > .ih-submenu-toggle,
	.ih-menu > li:focus-within > .ih-submenu-toggle {
		transform: rotate(180deg);
		color: var(--e-global-color-accent);
	}

	/* Panel rozwijany */
	.ih-menu > li > .sub-menu {
		position: absolute;
		top: calc(100% - 8px);
		left: -12px;
		min-width: 270px;
		padding: 10px;
		border: 1px solid var(--e-global-color-ihborder);
		border-radius: var(--ih-radius-lg);
		background: var(--e-global-color-ihwhite);
		box-shadow: var(--ih-shadow-lg);
		opacity: 0;
		visibility: hidden;
		transform: translateY(8px);
		transition: opacity .2s var(--ih-ease), transform .2s var(--ih-ease), visibility .2s;
	}

	.ih-menu > li:hover > .sub-menu,
	.ih-menu > li:focus-within > .sub-menu,
	.ih-menu > li.is-open > .sub-menu {
		opacity: 1;
		visibility: visible;
		transform: translateY(0);
	}

	.ih-menu .sub-menu li {
		position: relative;
	}

	.ih-menu .sub-menu a {
		padding: 10px 14px;
		border-radius: var(--ih-radius);
		font-size: var(--e-global-typography-ihnav-font-size, 15px);
		font-weight: 600;
	}

	.ih-menu .sub-menu a:hover,
	.ih-menu .sub-menu .current-menu-item > a {
		background: var(--e-global-color-ihsoft);
		color: var(--e-global-color-accent);
	}

	.ih-menu .sub-menu .ih-submenu-toggle {
		display: none;
	}

	/* Trzeci poziom - wypisany pod rodzicem */
	.ih-menu .sub-menu .sub-menu {
		margin: -2px 0 6px 14px;
		padding-left: 10px;
		border-left: 1px solid var(--e-global-color-ihborder);
	}

	.ih-menu .sub-menu .sub-menu a {
		padding-block: 7px;
		color: var(--e-global-color-text);
		font-weight: 500;
	}

	.ih-nav__mobile-actions {
		display: none;
	}
}

/* ---------- 3. Menu (telefon / tablet) ---------- */

@media (max-width: 1160px) {
	.ih-header__inner {
		gap: 16px;
	}

	.ih-burger {
		display: inline-grid;
		place-items: center;
	}

	.ih-header .ih-header__phone span,
	.ih-header .ih-header__cta {
		display: none;
	}

	.ih-nav {
		position: fixed;
		top: calc(var(--ih-header-h) + var(--ih-admin-offset, 0px));
		right: 0;
		bottom: 0;
		z-index: 99;
		display: flex;
		flex-direction: column;
		justify-content: flex-start;
		width: min(420px, 100%);
		padding: 12px var(--ih-gutter) calc(32px + env(safe-area-inset-bottom));
		overflow-y: auto;
		overscroll-behavior: contain;
		background: var(--e-global-color-ihwhite);
		box-shadow: -20px 0 60px rgba(7, 21, 45, .12);
		transform: translateX(100%);
		visibility: hidden;
		transition: transform .35s var(--ih-ease), visibility .35s;
	}

	.admin-bar {
		--ih-admin-offset: var(--wp-admin--admin-bar--height, 32px);
	}

	.ih-nav.is-open {
		transform: translateX(0);
		visibility: visible;
	}

	.ih-menu {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
	}

	.ih-menu li {
		flex-wrap: wrap;
		border-bottom: 1px solid var(--e-global-color-ihborder);
	}

	.ih-menu > li {
		display: flex;
	}

	.ih-menu > li > a,
	.ih-menu .sub-menu a {
		flex: 1;
		padding: 16px 0;
		font-size: var(--e-global-typography-ihnav-font-size, 15px);
		font-weight: 600;
	}

	.ih-menu > li > a::after {
		display: none;
	}

	.ih-submenu-toggle {
		width: 44px;
		height: 44px;
		margin: 0 -10px 0 0;
		border-radius: 50%;
	}

	.ih-submenu-toggle .ih-icon {
		width: 20px;
		height: 20px;
	}

	.ih-submenu-toggle[aria-expanded="true"] {
		transform: rotate(180deg);
		color: var(--e-global-color-accent);
	}

	.ih-menu .sub-menu {
		display: none;
		flex-basis: 100%;
		padding: 0 0 10px 14px;
	}

	.ih-menu .is-open > .sub-menu {
		display: block;
	}

	.ih-menu .sub-menu li {
		display: flex;
		border: 0;
	}

	.ih-menu .sub-menu a {
		padding: 11px 0;
		color: var(--e-global-color-text);
		font-size: var(--ih-fs-sm);
		font-weight: 500;
	}

	.ih-menu .current-menu-item > a {
		color: var(--e-global-color-accent);
	}

	.ih-nav__mobile-actions {
		display: grid;
		gap: 10px;
		margin-top: 24px;
	}

	.ih-nav-backdrop {
		position: fixed;
		inset: 0;
		z-index: 98;
		background: rgba(7, 21, 45, .45);
		opacity: 0;
		transition: opacity .3s var(--ih-ease);
	}

	.ih-nav-backdrop.is-visible {
		opacity: 1;
	}

	body.ih-nav-open {
		overflow: hidden;
	}
}

@media (min-width: 1161px) {
	.ih-nav-backdrop {
		display: none !important;
	}
}

@media (max-width: 767px) {
	.ih-logo img {
		max-width: 140px;
		max-height: 38px;
	}

	.ih-header .ih-header__phone {
		display: none;
	}

	.ih-header__actions {
		gap: 4px;
	}
}

/* ---------- 4. Stopka ---------- */

.ih-footer {
	padding: 72px 0 0;
	background: var(--e-global-color-secondary);
	color: var(--e-global-color-ihondark);
	font-size: var(--ih-fs-sm);
}

.ih-footer a {
	color: var(--e-global-color-ihondark);
}

.ih-footer a:hover {
	color: var(--e-global-color-ihwhite);
}

.ih-footer__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.5fr) repeat(4, minmax(0, 1fr));
	gap: 40px;
	padding: 56px 0;
}

/* Górny pas stopki: hasło + wycena + telefon */
.ih-footer__top {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px 40px;
	padding-bottom: 44px;
	border-bottom: 1px solid var(--e-global-color-ihlinedark);
}

.ih-footer__kicker {
	margin: 0 0 8px;
	color: var(--e-global-color-accent);
	font-family: var(--ih-font-ui);
	font-size: var(--ih-fs-xs);
	font-weight: 700;
	letter-spacing: .14em;
	text-transform: uppercase;
}

.ih-footer__headline {
	margin: 0;
	color: var(--e-global-color-ihwhite);
	font-family: var(--ih-font-heading);
	font-size: clamp(30px, 4vw, 52px);
	font-weight: 800;
	letter-spacing: -.03em;
	line-height: 1.05;
}

.ih-footer__top-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px 28px;
}

.ih-footer .ih-footer__top-actions .ih-btn {
	color: var(--e-global-color-ihwhite);
}

.ih-footer__call {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	color: var(--e-global-color-ihwhite);
	font-family: var(--ih-font-heading);
	font-size: var(--ih-fs-md);
	font-weight: 700;
	text-decoration: none;
}

.ih-footer__call > .ih-icon {
	width: 44px;
	height: 44px;
	padding: 11px;
	border: 1px solid var(--e-global-color-ihlinedark);
	border-radius: 50%;
	transition: background .2s, border-color .2s;
}

.ih-footer__call:hover > .ih-icon {
	border-color: var(--e-global-color-ihwhite);
}

.ih-footer__call span {
	display: grid;
	line-height: 1.2;
}

.ih-footer__call small {
	color: var(--e-global-color-ihondark);
	font-family: var(--ih-font-ui);
	font-size: var(--ih-fs-xs);
	font-weight: 600;
}

.ih-footer__hours {
	max-width: 300px;
	margin-top: 20px;
	padding: 14px 16px;
	border: 1px solid var(--e-global-color-ihlinedark);
	border-radius: var(--ih-radius);
	background: rgba(255, 255, 255, .03);
}

.ih-footer__hours-title {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 10px !important;
	color: var(--e-global-color-ihwhite);
	font-family: var(--ih-font-ui);
	font-size: var(--ih-fs-xs);
	font-weight: 700;
	letter-spacing: .1em;
	text-transform: uppercase;
}

.ih-footer__hours-title .ih-icon {
	width: 16px;
	height: 16px;
	color: var(--e-global-color-ihsky);
}

.ih-footer__hours dl {
	display: grid;
	gap: 6px;
	margin: 0;
}

.ih-footer__hours dl > div {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	font-size: var(--ih-fs-sm);
}

.ih-footer__hours dt {
	color: var(--e-global-color-ihondark);
}

.ih-footer__hours dd {
	margin: 0;
	color: var(--e-global-color-ihwhite);
	font-weight: 600;
	font-variant-numeric: tabular-nums;
}

.ih-footer__hours .is-closed dd {
	color: var(--e-global-color-ihondark);
	font-weight: 400;
}

.ih-footer__brand p {
	max-width: 36ch;
	margin: 18px 0 20px;
}

.ih-footer .ih-logo {
	color: var(--e-global-color-ihwhite);
}

.ih-footer .ih-logo img {
	max-width: 180px;
	max-height: 48px;
}

/* Logo strony bez osobnej wersji do stopki - na biało */
.ih-footer .ih-logo--white img {
	filter: brightness(0) invert(1);
}

.ih-footer__contact {
	display: grid;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ih-footer__contact li {
	display: flex;
	align-items: center;
	gap: 10px;
}

.ih-footer__contact .ih-icon {
	width: 17px;
	height: 17px;
	color: var(--e-global-color-ihsky);
}

.ih-footer__social {
	display: flex;
	gap: 10px;
	margin-top: 22px;
}

.ih-footer__social a {
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border: 1px solid var(--e-global-color-ihlinedark);
	border-radius: 50%;
	transition: background .2s, border-color .2s;
}

.ih-footer__social a:hover {
	border-color: var(--e-global-color-ihwhite);
	background: var(--e-global-color-ihwhite);
	color: var(--e-global-color-secondary);
}

.ih-footer__social .ih-icon {
	width: 18px;
	height: 18px;
}

.ih-footer__title {
	margin: 0 0 18px;
	color: var(--e-global-color-ihwhite);
	font-family: var(--e-global-typography-iheyebrow-font-family, "Inter"), sans-serif;
	font-size: var(--ih-fs-xs);
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
}

.ih-footer__links {
	display: grid;
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ih-footer__links a {
	position: relative;
	display: inline-block;
	text-decoration: none;
	transition: color .2s, transform .2s;
}

.ih-footer__links a::before {
	content: "";
	position: absolute;
	top: 50%;
	left: -14px;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--e-global-color-accent);
	opacity: 0;
	transform: translateY(-50%) scale(.4);
	transition: opacity .2s, transform .2s;
}

.ih-footer__links a:hover {
	transform: translateX(14px);
}

.ih-footer__links a:hover::before {
	opacity: 1;
	transform: translateY(-50%) scale(1);
}

.ih-footer__links .current-menu-item > a {
	color: var(--e-global-color-ihwhite);
}

.ih-footer__bottom-links {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 20px;
}

.ih-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 12px 32px;
	padding: 24px 0 28px;
	border-top: 1px solid var(--e-global-color-ihlinedark);
	font-size: var(--ih-fs-xs);
}

@media (max-width: 1024px) {
	.ih-footer__grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}

	.ih-footer__brand {
		display: grid;
		grid-column: 1 / -1;
		grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
		align-items: start;
		gap: 0 40px;
	}

	.ih-footer__brand > .ih-logo,
	.ih-footer__brand > p {
		grid-column: 1;
	}

	.ih-footer__brand > .ih-footer__contact,
	.ih-footer__brand > .ih-footer__social {
		grid-column: 2;
	}

	.ih-footer__brand > .ih-footer__contact {
		grid-row: 1 / span 2;
		align-self: center;
	}
}

@media (max-width: 767px) {
	.ih-footer {
		padding-top: 56px;
	}

	.ih-footer__grid {
		grid-template-columns: 1fr 1fr;
		gap: 36px 24px;
	}

	.ih-footer__brand {
		display: block;
	}

	.ih-footer__top {
		align-items: flex-start;
		padding-bottom: 32px;
	}

	.ih-footer__links a:hover {
		transform: none;
	}

	.ih-footer__links a::before {
		display: none;
	}
}

/* ---------- 5. Dolny pasek akcji (telefon) ---------- */

.ih-dock {
	display: none;
}

@media (max-width: 767px) {
	.has-mobile-dock .ih-dock {
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 90;
		display: grid;
		grid-auto-columns: 1fr;
		grid-auto-flow: column;
		padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
		border-top: 1px solid var(--e-global-color-ihborder);
		background: color-mix(in srgb, var(--e-global-color-ihwhite) 94%, transparent);
		backdrop-filter: blur(12px);
		-webkit-backdrop-filter: blur(12px);
	}

	.has-mobile-dock {
		padding-bottom: calc(64px + env(safe-area-inset-bottom));
	}

	.ih-dock a {
		position: relative;
		display: grid;
		justify-items: center;
		gap: 3px;
		padding: 6px 0;
		color: var(--e-global-color-primary);
		font-family: var(--ih-font-ui);
		font-size: var(--ih-fs-xs);
		font-weight: 600;
	}

	.ih-dock .ih-icon {
		width: 22px;
		height: 22px;
	}

	.ih-dock a:first-child {
		color: var(--e-global-color-accent);
	}

	.ih-dock .ih-cart-count {
		top: 0;
		right: calc(50% - 22px);
	}
}

/* ---------- Wyszukiwarka (nagłówek) ---------- */

button.ih-header__icon {
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
}

.ih-header__search[aria-expanded="true"] {
	background: var(--e-global-color-ihsoft);
	color: var(--e-global-color-accent);
}

.ih-search-panel {
	position: absolute;
	inset: 100% 0 auto;
	padding: 20px 0 22px;
	border-top: 1px solid var(--e-global-color-ihborder);
	border-bottom: 1px solid var(--e-global-color-ihborder);
	background: var(--e-global-color-ihwhite);
	box-shadow: var(--ih-shadow);
}

.ih-search-panel[hidden] {
	display: none;
}

.ih-search-panel__hint {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 14px;
	margin: 12px 0 0;
	color: var(--e-global-color-text);
	font-size: var(--ih-fs-xs);
}

.ih-search-panel__hint[hidden] {
	display: none;
}

.ih-search-panel__hint a {
	color: var(--e-global-color-primary);
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* Podpowiedzi na żywo */
.ih-search-live {
	max-width: 960px;
	margin-top: 16px;
	transition: opacity .15s;
}

.ih-search-live[hidden] {
	display: none;
}

.ih-search-live.is-loading {
	opacity: .55;
}

.ih-search-live__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
	gap: 18px 32px;
}

.ih-search-live__grid > :only-child {
	grid-column: 1 / -1;
}

.ih-search-live__label {
	margin: 0 0 8px;
	color: var(--e-global-color-text);
	font-family: var(--ih-font-ui);
	font-size: var(--ih-fs-xs);
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.ih-search-live__label span {
	margin-left: 4px;
	color: var(--e-global-color-accent);
}

.ih-search-live ul {
	display: grid;
	gap: 2px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ih-search-live__products {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ih-search-live a {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 8px;
	border-radius: var(--ih-radius);
	color: var(--e-global-color-primary);
	text-decoration: none;
}

.ih-search-live a:hover,
.ih-search-live a:focus-visible {
	background: var(--e-global-color-ihsoft);
}

.ih-search-live__thumb {
	flex: 0 0 56px;
	height: 56px;
	overflow: hidden;
	border-radius: 6px;
	background: var(--e-global-color-ihsoft);
}

.ih-search-live__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ih-search-live__info {
	display: grid;
	min-width: 0;
	gap: 1px;
	font-size: var(--ih-fs-sm);
}

.ih-search-live__info strong {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.ih-search-live__meta {
	color: var(--e-global-color-text);
	font-size: var(--ih-fs-xs);
}

.ih-search-live__price {
	color: var(--e-global-color-accent);
	font-weight: 700;
}

.ih-search-live__pages a {
	display: grid;
	gap: 1px;
	padding: 10px 12px;
	font-size: var(--ih-fs-sm);
}

.ih-search-live__pages span {
	color: var(--e-global-color-text);
	font-size: var(--ih-fs-xs);
}

.ih-search-live .ih-search-live__all {
	display: inline-flex;
	margin-top: 14px;
	padding: 12px 22px;
	color: var(--e-global-color-ihwhite);
}

.ih-search-live .ih-search-live__all:hover {
	background: var(--e-global-color-primary);
}

.ih-search-live__empty {
	margin: 0;
	color: var(--e-global-color-text);
	font-size: var(--ih-fs-sm);
}

@media (max-width: 900px) {
	.ih-search-live__grid,
	.ih-search-live__products {
		grid-template-columns: minmax(0, 1fr);
	}

	.ih-search-panel {
		max-height: calc(100vh - 70px);
		max-height: calc(100dvh - 70px);
		overflow-y: auto;
	}
}

.ih-searchform {
	position: relative;
	display: flex;
	gap: 10px;
	max-width: 760px;
}

.ih-searchform > .ih-icon {
	position: absolute;
	top: 50%;
	left: 16px;
	width: 20px;
	height: 20px;
	color: var(--e-global-color-text);
	transform: translateY(-50%);
	pointer-events: none;
}

.ih-searchform input[type="search"] {
	flex: 1;
	min-width: 0;
	min-height: 52px;
	padding: 12px 16px 12px 46px;
	border: 1px solid var(--e-global-color-ihborder);
	border-radius: var(--ih-radius);
	background: var(--e-global-color-ihwhite);
	color: var(--e-global-color-primary);
	font-size: var(--ih-fs-base);
}

.ih-searchform input[type="search"]:focus {
	outline: none;
	border-color: var(--e-global-color-accent);
	box-shadow: 0 0 0 3px var(--e-global-color-ihgreensoft);
}

.ih-searchform .ih-btn {
	flex: 0 0 auto;
	min-height: 52px;
}

@media (max-width: 767px) {
	.ih-header__icon {
		width: 36px;
		height: 36px;
	}

	.ih-search-panel {
		padding: 14px 0 16px;
	}

	.ih-searchform .ih-btn {
		padding-inline: 16px;
	}
}

@media (max-width: 400px) {
	.ih-searchform .ih-btn {
		display: none;
	}
}

.ih-nav__social {
	display: flex;
	justify-content: center;
	gap: 22px;
	margin-top: 4px;
}

.ih-nav__social a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--e-global-color-primary);
	font-size: var(--ih-fs-sm);
	font-weight: 600;
	text-decoration: none;
}

.ih-nav__social .ih-icon {
	width: 20px;
	height: 20px;
}

/* Najwęższe telefony: pięć ikon w nagłówku (lupa, konto, zapisane, koszyk, menu) */
@media (max-width: 400px) {
	.ih-logo img {
		max-width: 116px;
	}

	.ih-header__actions {
		gap: 0;
	}

	.ih-header__icon,
	.ih-burger {
		width: 34px;
		height: 34px;
	}
}

@media (max-width: 340px) {
	.ih-logo img {
		max-width: 100px;
	}
}

.ih-footer .ih-footer__kicker {
	color: var(--e-global-color-ihsky);
}

.ih-footer a.ih-footer__call,
.ih-footer a.ih-footer__call:hover {
	color: var(--e-global-color-ihwhite);
}

/* Godziny otwarcia bez ramki */
.ih-footer__hours {
	padding: 0;
	border: 0;
	border-radius: 0;
	background: none;
}

/* Mapa salonu w stopce */
.ih-footer__map {
	max-width: 300px;
	margin-top: 22px;
}

.ih-footer__address {
	margin: 0 0 10px !important;
	font-size: var(--ih-fs-sm);
}

.ih-footer__map-frame {
	position: relative;
	display: block;
	height: 150px;
	overflow: hidden;
	border-radius: var(--ih-radius);
	background: var(--e-global-color-ihlinedark);
}

.ih-footer__map-frame iframe {
	width: 100%;
	height: 100%;
	border: 0;
	filter: grayscale(.3);
	pointer-events: none;
}

.ih-footer__map-links {
	display: flex;
	gap: 18px;
	margin: 10px 0 0 !important;
	font-size: var(--ih-fs-sm);
}

.ih-footer__map-links a {
	color: var(--e-global-color-ihwhite);
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* ---------- Stopka: 4 kolumny linków + salon, pas z logo i kontaktem ---------- */
.ih-footer__grid {
	grid-template-columns: repeat(4, minmax(0, 1fr)) minmax(0, 1.3fr);
	gap: 40px 32px;
	padding: 52px 0 44px;
}

.ih-footer__visit .ih-footer__map-frame {
	height: 140px;
	margin-bottom: 14px;
}

.ih-footer__address {
	display: flex;
	gap: 8px;
	margin: 0 0 14px !important;
	font-size: var(--ih-fs-sm);
}

.ih-footer__address .ih-icon {
	flex: 0 0 16px;
	width: 16px;
	height: 16px;
	margin-top: 3px;
	color: var(--e-global-color-ihsky);
}

.ih-footer__visit .ih-footer__hours {
	display: grid;
	gap: 5px;
	max-width: none;
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
}

.ih-footer__visit .ih-footer__hours > div {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	font-size: var(--ih-fs-sm);
}

.ih-footer__brandbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 18px 40px;
	padding: 28px 0;
	border-top: 1px solid var(--e-global-color-ihlinedark);
}

.ih-footer__brandbar .ih-footer__brand {
	display: flex;
	flex: 1 1 420px;
	align-items: center;
	gap: 24px;
}

.ih-footer__brandbar .ih-footer__brand p {
	max-width: 52ch;
	margin: 0;
	font-size: var(--ih-fs-sm);
}

.ih-footer__brandbar .ih-footer__contact {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 26px;
}

.ih-footer__brandbar .ih-footer__social {
	margin: 0;
}

@media (max-width: 1100px) {
	.ih-footer__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.ih-footer__visit {
		grid-column: span 2;
	}
}

@media (max-width: 767px) {
	.ih-footer__grid {
		grid-template-columns: 1fr 1fr;
	}

	.ih-footer__visit {
		grid-column: 1 / -1;
	}

	.ih-footer__brandbar .ih-footer__brand {
		flex-direction: column;
		align-items: flex-start;
		gap: 12px;
	}
}

/* Telefon: koszyk jest w dolnym pasku, więc w nagłówku go nie pokazujemy */
@media (max-width: 767px) {
	.has-mobile-dock .ih-header__cart:not(.ih-header__saved) {
		display: none;
	}
}

/* Stopka: logo z kontaktem zaraz pod hasłem, potem menu */
.ih-footer__top + .ih-footer__brandbar {
	border-top: 0;
	border-bottom: 1px solid var(--e-global-color-ihlinedark);
}

/* Telefon: showroom z mapą od razu pod logo, potem kolumny menu */
@media (max-width: 767px) {
	.ih-footer__visit {
		order: -1;
		padding-bottom: 32px;
		border-bottom: 1px solid var(--e-global-color-ihlinedark);
	}
}
