/* =============================================================
   STROBLE — Header NORMAL
   Reverse-engineered z stroble.pl 2026-04-07
   - Wysokość 71px, bg #FFF, border-bottom 1px solid #F6F6F8
   - Logo (110×50) | Menu (Poppins 14/400, kolor #5E6573, padding 5px 10px) | Cart
   ============================================================= */

.stroble-header-normal {
	background: #FFFFFF;
	border-bottom: 1px solid var(--stroble-color-border);
	padding: 0 20px;
	position: sticky;
	top: 0;
	z-index: 100;
}

.stroble-header-normal__inner {
	max-width: var(--stroble-container-max);
	margin: 0 auto;
	min-height: var(--stroble-header-height);
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: center;
	gap: 2rem;
}

/* === Brand / Logo === */
.stroble-header-normal__brand {
	display: flex;
	align-items: center;
}

.stroble-header-normal__brand img,
.stroble-header-normal__brand .custom-logo {
	max-height: 50px;
	width: auto;
	display: block;
}

.stroble-header-normal__brand .stroble-logo-text {
	font-family: var(--stroble-font-display);
	font-size: 24px;
	font-weight: var(--stroble-fw-semibold);
	color: var(--stroble-color-text);
	text-decoration: none;
	letter-spacing: 0.02em;
}

/* === Menu główne === */
.stroble-header-normal__nav {
	display: flex;
	justify-content: center;
}

.stroble-header-normal__nav .stroble-menu {
	display: flex;
	gap: 0;
	list-style: none;
	padding: 0;
	margin: 0;
	align-items: center;
}

.stroble-header-normal__nav .stroble-menu li {
	margin: 0;
}

.stroble-header-normal__nav .stroble-menu a {
	display: inline-block;
	padding: 5px 10px;
	font-family: var(--stroble-font-body);
	font-size: 14px;
	font-weight: var(--stroble-fw-regular);
	line-height: 21px;
	color: var(--stroble-color-text-mid);
	text-decoration: none;
	transition: color var(--stroble-transition-fast);
}

.stroble-header-normal__nav .stroble-menu a:hover,
.stroble-header-normal__nav .stroble-menu .current-menu-item > a,
.stroble-header-normal__nav .stroble-menu .current-menu-parent > a {
	color: var(--stroble-color-brown);
}

/* === Actions (search/cart) === */
.stroble-header-normal__actions {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 1.5rem;
}

.stroble-header-normal__search-toggle,
.stroble-header-normal__account,
.stroble-header-normal__cart {
	background: transparent;
	border: 0;
	cursor: pointer;
	padding: 0;
	color: #393D46;
	text-decoration: none;
	font-family: var(--stroble-font-body);
	font-size: 14px;
	font-weight: var(--stroble-fw-light);
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	transition: color var(--stroble-transition-fast);
	position: relative;
	line-height: 1;
}

.stroble-header-normal__search-toggle svg,
.stroble-header-normal__account svg,
.stroble-header-normal__cart svg {
	width: 22px;
	height: 22px;
	stroke: currentColor;
	fill: none;
	flex-shrink: 0;
	display: block;
}

.stroble-header-normal__search-toggle:hover,
.stroble-header-normal__account:hover,
.stroble-header-normal__cart:hover {
	color: #B38271;
}

/* Wrapper koszyka — inline-flex żeby cart-link nie był rozpychany przez block line-box */
.stroble-header-normal__cart-wrapper {
	display: inline-flex;
	align-items: center;
	line-height: 1;
}

.stroble-header-normal__cart-amount {
	font-size: 16px;
	font-weight: var(--stroble-fw-light);
	line-height: 1;
	display: inline-flex;
	align-items: center;
}

.stroble-header-normal__cart-count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 18px;
	height: 18px;
	padding: 0 5px;
	background: var(--stroble-color-brown);
	color: #fff;
	font-size: 11px;
	font-weight: var(--stroble-fw-semibold);
	border-radius: 50%;
	position: absolute;
	top: -6px;
	right: -10px;
}

/* === Mobile menu toggle (ukryty na desktop) === */
.stroble-header-normal__menu-toggle {
	display: none;
	background: transparent;
	border: 0;
	cursor: pointer;
	padding: 0;
	width: 44px;
	height: 44px;
	color: #000;
	align-items: center;
	justify-content: center;
}

.stroble-hamburger {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 24px;
	height: 24px;
}

.stroble-hamburger span {
	display: block;
	width: 100%;
	height: 2px;
	background: #151515;
	border-radius: 2px;
	transition: transform 0.2s ease, opacity 0.2s ease;
}

.stroble-header-normal__menu-toggle[aria-expanded="true"] .stroble-hamburger span:nth-child(1) {
	transform: rotate(45deg) translate(5px, 5px);
}

.stroble-header-normal__menu-toggle[aria-expanded="true"] .stroble-hamburger span:nth-child(2) {
	opacity: 0;
}

.stroble-header-normal__menu-toggle[aria-expanded="true"] .stroble-hamburger span:nth-child(3) {
	transform: rotate(-45deg) translate(5px, -5px);
}

/* === Page title bar (under header normal) === */
.stroble-page-title-bar {
	background: var(--stroble-color-bg-alt);
	padding: 30px 0;
	margin-bottom: 40px;
	border-bottom: 1px solid #E5E5E8;
}

.stroble-page-title-bar > .stroble-container {
	max-width: var(--stroble-container-max);
	padding: 0 20px;
}

.stroble-page-title {
	margin: 8px 0 0;
	font-family: var(--stroble-font-display);
	font-size: 36px;
	font-weight: var(--stroble-fw-semibold);
	line-height: 1.2;
	color: var(--stroble-color-black);
}

/* Single product variant — tylko breadcrumbs, mniejszy padding, brak h1 */
.stroble-page-title-bar--product {
	background: #fff;
	padding: 24px 0;
	margin-bottom: 0;
}

.stroble-page-title-bar--product .stroble-breadcrumbs,
.stroble-page-title-bar--product .stroble-breadcrumbs__list {
	font-size: 14px;
	line-height: 21px;
}

.stroble-page-title-bar--product .stroble-page-title {
	display: none;
}

/* === Breadcrumbs === */
.stroble-breadcrumbs__list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	list-style: none;
	padding: 0;
	margin: 0;
	font-family: var(--stroble-font-body);
	font-size: 13px;
	color: var(--stroble-color-text-light);
}

.stroble-breadcrumbs__item {
	display: inline-flex;
	gap: 0.4rem;
	align-items: center;
}

.stroble-breadcrumbs__sep {
	opacity: 0.5;
}

.stroble-breadcrumbs a {
	color: var(--stroble-color-text-mid);
	text-decoration: none;
	transition: color var(--stroble-transition-fast);
}

.stroble-breadcrumbs a:hover {
	color: var(--stroble-color-brown);
}

/* ===== Mobile / Tablet ===== */
@media (max-width: 1024px) {
	.stroble-header-normal__nav {
		display: none;
	}
	.stroble-header-normal__menu-toggle {
		display: inline-flex;
	}
	.stroble-header-normal__inner {
		grid-template-columns: auto 1fr auto;
	}
}

@media (max-width: 768px) {
	.stroble-header-normal {
		padding: 0 16px;
	}
	.stroble-header-normal__inner {
		position: relative;
		min-height: 60px;
		gap: 1rem;
	}
	.stroble-header-normal__actions {
		gap: 18px;
		justify-self: end;
	}
	.stroble-header-normal__brand img,
	.stroble-header-normal__brand .custom-logo {
		max-height: 40px;
	}
	.stroble-header-normal__cart-wrapper {
		position: absolute;
		top: 50%;
		left: 50%;
		z-index: 2;
		transform: translate(-50%, -50%);
	}
	.stroble-header-normal__cart {
		width: 110px;
		flex-direction: row-reverse;
		justify-content: flex-start;
	}
}

@media (max-width: 480px) {
	.stroble-header-normal__actions {
		gap: 10px;
		margin-right: -16px;
	}

	.stroble-header-normal__account {
		transform: translateX(5px);
	}
}

/* ====================================================================
 * STICKY HEADER SHADOW (on scroll > 40px)
 * ==================================================================== */

.stroble-header-normal {
	transition: box-shadow 0.2s ease;
}

.stroble-header-normal.is-sticky {
	box-shadow: 0 2px 14px rgba(0, 0, 0, 0.06);
}

/* ====================================================================
 * MOBILE MENU PANEL (SpeedNadruki pattern)
 * ==================================================================== */

.stroble-mobile-menu {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 10000;
	visibility: hidden;
	opacity: 0;
	transition: visibility 0s linear 0.28s, opacity 0.28s ease;
}

.stroble-mobile-menu.is-open {
	visibility: visible;
	opacity: 1;
	transition-delay: 0s;
}

.stroble-mobile-menu__overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.5);
}

.stroble-mobile-menu__panel {
	position: absolute;
	top: 0;
	left: 0;
	width: 86%;
	max-width: 340px;
	height: 100%;
	background: #FFFFFF;
	transform: translateX(-100%);
	transition: transform 0.28s ease;
	overflow-y: auto;
	display: flex;
	flex-direction: column;
	box-shadow: 8px 0 30px rgba(0, 0, 0, 0.14);
}

.stroble-mobile-menu.is-open .stroble-mobile-menu__panel {
	transform: translateX(0);
}

.stroble-mobile-menu__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 20px;
	border-bottom: 1px solid #E5E5E8;
}

.stroble-mobile-menu__brand {
	display: flex;
	align-items: center;
}

.stroble-mobile-menu__brand img,
.stroble-mobile-menu__brand .custom-logo {
	width: auto;
	max-height: 44px;
	display: block;
}

.stroble-mobile-menu__close {
	width: 40px;
	height: 40px;
	margin-right: -10px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: none;
	border: 0;
	cursor: pointer;
	color: #5E6573;
	transition: color 0.2s ease;
}

.stroble-mobile-menu__close:hover,
.stroble-mobile-menu__close:focus-visible {
	color: #151515;
}

.stroble-mobile-menu__close svg {
	width: 24px;
	height: 24px;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
	fill: none;
}

.stroble-mobile-menu__nav {
	flex: 1;
}

.stroble-mobile-menu__list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.stroble-mobile-menu__list li {
	margin: 0;
	border-bottom: 1px solid #F6F6F8;
}

.stroble-mobile-menu__list a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 16px 20px;
	font-family: var(--stroble-font-body);
	font-size: 15px;
	font-weight: 500;
	line-height: 1.35;
	color: #151515;
	text-decoration: none;
	background: #FFFFFF;
	transition: background 0.2s ease, color 0.2s ease;
}

.stroble-mobile-menu__list a:hover,
.stroble-mobile-menu__list a:focus-visible {
	background: #F6F6F8;
	color: #151515;
}

.stroble-mobile-menu__list .menu-item-nowosci > a {
	background: #151515;
	color: #FFFFFF;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.stroble-mobile-menu__list .menu-item-nowosci > a:hover,
.stroble-mobile-menu__list .menu-item-nowosci > a:focus-visible {
	background: #2D2D2D;
	color: #FFFFFF;
}

.stroble-mobile-menu__list .menu-item-nowosci .icon-sparkle {
	width: 15px;
	height: 15px;
	flex-shrink: 0;
	stroke: currentColor;
	fill: none;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.stroble-mobile-menu__list .menu-item-nowosci .menu-item-text {
	margin-right: auto;
}

.stroble-mobile-menu__footer {
	margin-top: auto;
	padding: 24px 20px;
	border-top: 1px solid #E5E5E8;
	background: #F6F6F8;
}

.stroble-mobile-menu__contact {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin-bottom: 20px;
}

.stroble-mobile-menu__contact-item {
	display: flex;
	align-items: center;
	gap: 12px;
	font-family: var(--stroble-font-body);
	font-size: 14px;
	font-weight: 500;
	line-height: 1.35;
	color: #31343C;
	text-decoration: none;
	transition: color 0.2s ease;
}

.stroble-mobile-menu__contact-item:hover,
.stroble-mobile-menu__contact-item:focus-visible {
	color: #B38271;
}

.stroble-mobile-menu__contact-item svg {
	width: 18px;
	height: 18px;
	flex-shrink: 0;
	stroke: #B38271;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
	fill: none;
}

.stroble-mobile-menu__socials {
	display: flex;
	gap: 12px;
}

.stroble-mobile-menu__socials a {
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #FFFFFF;
	border: 1px solid #E5E5E8;
	border-radius: 50%;
	color: #5E6573;
	text-decoration: none;
	transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.stroble-mobile-menu__socials a:hover,
.stroble-mobile-menu__socials a:focus-visible {
	background: #151515;
	border-color: #151515;
	color: #FFFFFF;
}

.stroble-mobile-menu__socials svg {
	width: 18px;
	height: 18px;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
	fill: none;
}

body.stroble-mobile-menu-open {
	overflow: hidden;
}

@media (max-width: 1024px) {
	.stroble-mobile-menu {
		display: block;
	}
}

/* ====================================================================
 * SEARCH OVERLAY
 * ==================================================================== */

.stroble-search-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.5);
	z-index: 2000;
	display: none;
	align-items: flex-start;
	justify-content: center;
	padding-top: 20vh;
}

.stroble-search-overlay.is-active {
	display: flex;
}

.stroble-search-overlay__inner {
	position: relative;
	width: 90%;
	max-width: 640px;
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
	padding: 36px 32px 28px;
}

.stroble-search-overlay__close {
	position: absolute;
	top: 12px;
	right: 16px;
	background: transparent;
	border: 0;
	width: 32px;
	height: 32px;
	font-size: 28px;
	line-height: 1;
	color: #5E6573;
	cursor: pointer;
	transition: color 0.2s ease;
}

.stroble-search-overlay__close:hover {
	color: #151515;
}

.stroble-search-overlay__form {
	display: flex;
	gap: 10px;
	align-items: stretch;
}

.stroble-search-overlay__input {
	flex: 1;
	padding: 14px 18px;
	background: #fff;
	border: 1px solid #E5E5E8;
	border-radius: 4px;
	font-family: Poppins, sans-serif;
	font-size: 16px;
	color: #151515;
}

.stroble-search-overlay__input:focus {
	outline: none;
	border-color: #B38271;
	box-shadow: 0 0 0 3px rgba(179, 130, 113, 0.1);
}

.stroble-search-overlay__submit {
	padding: 14px 28px;
	background: #151515;
	border: 0;
	border-radius: 4px;
	font-family: Poppins, sans-serif;
	font-size: 14px;
	font-weight: 500;
	color: #fff;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	cursor: pointer;
	transition: background 0.2s ease;
}

.stroble-search-overlay__submit:hover {
	background: #B38271;
}

/* ====================================================================
 * LIVE SEARCH RESULTS DROPDOWN
 * ==================================================================== */

.stroble-search-overlay__results {
	display: none;
	margin-top: 18px;
	border-top: 1px solid #E5E5E8;
	max-height: 400px;
	overflow-y: auto;
}

.stroble-search-overlay__results.is-visible {
	display: block;
}

.stroble-search-overlay__loading,
.stroble-search-overlay__empty {
	margin: 0;
	padding: 24px 0;
	font-family: Poppins, sans-serif;
	font-size: 14px;
	color: #5E6573;
	text-align: center;
}

.stroble-search-overlay__list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.stroble-search-overlay__item {
	border-bottom: 1px solid #F6F6F8;
}

.stroble-search-overlay__item:last-child {
	border-bottom: 0;
}

.stroble-search-overlay__link {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 14px 4px;
	text-decoration: none;
	color: inherit;
	transition: background 0.15s ease;
}

.stroble-search-overlay__link:hover {
	background: #FCFAF9;
}

.stroble-search-overlay__thumb {
	flex-shrink: 0;
	width: 52px;
	height: 52px;
	overflow: hidden;
	background: #F6F6F8;
	border-radius: 4px;
}

.stroble-search-overlay__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.stroble-search-overlay__body {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 3px;
}

.stroble-search-overlay__title {
	font-family: Poppins, sans-serif;
	font-size: 14px;
	line-height: 19px;
	font-weight: 500;
	color: #151515;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.stroble-search-overlay__cat {
	font-family: Poppins, sans-serif;
	font-size: 11px;
	font-weight: 400;
	color: #878D9D;
	text-transform: uppercase;
	letter-spacing: 0.3px;
}

.stroble-search-overlay__price {
	font-family: Poppins, sans-serif;
	font-size: 13px;
	font-weight: 700;
	color: #B38271;
}

body.stroble-search-open {
	overflow: hidden;
}

@media (max-width: 768px) {
	.stroble-search-overlay {
		padding-top: 0;
	}

	.stroble-search-overlay__inner {
		width: 100%;
		max-width: 100%;
		min-height: 100vh;
		border-radius: 0;
		padding: 60px 20px 24px;
	}

	.stroble-search-overlay__form {
		flex-direction: column;
		gap: 12px;
	}

	.stroble-search-overlay__input,
	.stroble-search-overlay__submit {
		width: 100%;
	}

	.stroble-search-overlay__results {
		max-height: calc(100vh - 180px);
	}
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	border: 0;
}

/* ============================================================
 * Menu item: Nowości (V5 Black + Pulse Brown)
 * Sesja 11 (2026-04-27) — finalna implementacja z demo/header-v5-final-start.html
 * Klient zatwierdził V5 Black jako finalny wariant.
 *
 * Spec:
 *  - Czarne tło #151515, biały tekst, sparkle SVG (4-promienna gwiazda)
 *  - Padding 7px 14px (symetryczny), gap 7px ikona<->tekst
 *  - Poppins 600 uppercase + letter-spacing 0.05em
 *  - Pulse animation w brand brown (kontrast z czarnym tłem)
 *  - Hover: brown fill, animacja stop
 *  - prefers-reduced-motion: animacja off
 *
 * Markup w menu (admin lub filter walker_nav_menu_start_el w inc/template-tags.php):
 *   <li class="menu-item-nowosci">
 *     <a href="/kategoria-produktu/nowosci/">
 *       <svg class="icon-sparkle">...</svg>
 *       <span class="menu-item-text">Nowości</span>
 *     </a>
 *   </li>
 * ============================================================ */

.stroble-header-normal__nav .stroble-menu .menu-item-nowosci {
	margin: 0 4px;
}

/* Specyficzność (4,0,1) musi przebić istniejące
   .stroble-header-normal__nav .stroble-menu a (3,0,1). */
.stroble-header-normal__nav .stroble-menu .menu-item-nowosci > a {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 7px 14px;
	border-radius: 6px;
	background: #151515;
	color: #FFFFFF;
	font-family: 'Poppins', sans-serif;
	font-size: 13px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	line-height: 1;
	transition: background 150ms ease, color 150ms ease;
	animation: stroble-pulse-brown 2s ease-out infinite;
}

.stroble-header-normal__nav .stroble-menu .menu-item-nowosci > a:hover,
.stroble-header-normal__nav .stroble-menu .menu-item-nowosci > a:focus {
	background: #B38271;
	color: #FFFFFF;
	animation: none;
}

.stroble-header-normal__nav .stroble-menu .menu-item-nowosci .icon-sparkle {
	width: 14px;
	height: 14px;
	flex-shrink: 0;
	display: block;
	stroke: currentColor;
	fill: none;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.stroble-header-normal__nav .stroble-menu .menu-item-nowosci .menu-item-text {
	display: inline-block;
	line-height: 1;
	color: #FFFFFF;
}

@keyframes stroble-pulse-brown {
	0%   { box-shadow: 0 0 0 0   rgba(179, 130, 113, 0.6); }
	70%  { box-shadow: 0 0 0 10px rgba(179, 130, 113, 0); }
	100% { box-shadow: 0 0 0 0   rgba(179, 130, 113, 0); }
}

/* WCAG 2.1 SC 2.3.3 — szanuj preferencję systemową */
@media (prefers-reduced-motion: reduce) {
	.stroble-header-normal__nav .stroble-menu .menu-item-nowosci > a {
		animation: none;
	}
}
