/* ==========================================================================
   Partner BHP – style motywu
   Odwzorowanie wyglądu partner-bhp.net (wersja responsywna)
   ========================================================================== */

:root {
	--pbhp-red: #c1272d;
	--pbhp-red-2: #da251d;
	--pbhp-red-3: #d20000;
	--pbhp-dark: #444;
	--pbhp-text: #4a4a4a;
	--pbhp-muted: #888;
	--pbhp-border: #ddd;
	--pbhp-content: 978px;
	--pbhp-wide: 1125px;
}

/* ---------- Tło strony (jak w oryginale: jasny gradient od góry) ---------- */
body {
	background: #f5f5f5 url(../images/tlo2.png) repeat-x center top;
}
body.home {
	background: #ebebeb url(../images/tlo.png) repeat-x center top;
}
.wp-site-blocks {
	padding-top: 0;
	padding-bottom: 0;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}
.wp-site-blocks > main,
.wp-site-blocks > .pbhp-main {
	flex: 1 0 auto;
}
.wp-site-blocks > footer {
	background: #fff;
}
.wp-site-blocks > * + * {
	margin-block-start: 0;
}

/* ---------- Nagłówek ---------- */
.pbhp-topbar {
	padding-top: 5px;
	padding-bottom: 10px;
}
.pbhp-topbar__inner {
	max-width: var(--pbhp-content);
	margin-left: auto !important;
	margin-right: auto !important;
	min-height: 100px;
	gap: 20px;
}
.pbhp-logo {
	margin-top: 10px;
}
.pbhp-logo img {
	height: auto;
	max-width: 100%;
}
.pbhp-topbar__right {
	gap: 12px;
	align-items: flex-end !important;
}
.pbhp-contact-line {
	margin: 0;
	padding: 4px 0 12px;
	border-bottom: 1px solid var(--pbhp-border);
	font-size: 12px;
	font-weight: 700;
	line-height: 18px;
	color: var(--pbhp-dark);
	text-align: right;
}
.pbhp-contact-line .pbhp-icon {
	display: inline-block;
	vertical-align: -4px;
	margin-right: 8px;
	width: auto;
	height: 18px;
}
.pbhp-contact-line .pbhp-gap {
	display: inline-block;
	width: 28px;
}
.pbhp-contact-line .pbhp-phone {
	color: var(--pbhp-red-2);
	font-size: 16px;
	font-weight: 700;
	text-decoration: none;
}

/* Menu główne */
.pbhp-main-nav {
	gap: 4px 30px;
}
.pbhp-main-nav .wp-block-navigation-item__content {
	color: #555;
	padding: 6px 0;
	text-decoration: none !important;
	transition: color .2s;
}
.pbhp-main-nav .wp-block-navigation-item__content:hover,
.pbhp-main-nav .current-menu-item > .wp-block-navigation-item__content,
.pbhp-main-nav .wp-block-navigation-item__content[aria-current="page"] {
	color: var(--pbhp-red);
}
.pbhp-main-nav .current-menu-item > .wp-block-navigation-item__content,
.pbhp-main-nav .wp-block-navigation-item__content[aria-current="page"] {
	box-shadow: inset 0 -2px 0 var(--pbhp-red);
}
.pbhp-main-nav .wp-block-navigation__responsive-container.is-menu-open {
	background: #fff;
	padding: 30px;
}
.pbhp-main-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
	font-size: 18px;
	padding: 10px 0;
}

/* ---------- Okruszki ---------- */
.pbhp-breadcrumb {
	margin: 18px 0 22px;
	font-size: 11px;
	color: var(--pbhp-muted);
}
.pbhp-breadcrumb a {
	color: var(--pbhp-muted);
}
.pbhp-breadcrumb a:hover {
	color: var(--pbhp-red);
}
.pbhp-breadcrumb .sep {
	margin: 0 8px;
	color: #bbb;
}
.pbhp-breadcrumb span[aria-current] {
	color: #555;
}

/* ---------- Obszar treści ---------- */
.pbhp-main {
	padding-bottom: 50px;
	min-height: 320px;
}
.pbhp-main--front {
	padding-bottom: 40px;
}

/* Nagłówki H1 z szarą kreską pod spodem (jak h1.png w oryginale) */
.pbhp-main h1,
.pbhp-page-title,
.pbhp-heading-line {
	position: relative;
	padding-bottom: 16px;
	margin-bottom: 20px;
}
.pbhp-main h1::after,
.pbhp-page-title::after,
.pbhp-heading-line::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 34px;
	height: 2px;
	background: var(--pbhp-red);
}
.pbhp-main .has-text-align-center::after,
.pbhp-hero h1::after {
	display: none;
}

/* Listy ze strzałką (arrow2.gif) */
.pbhp-main .wp-block-post-content ul,
.pbhp-main .wp-block-list,
.pbhp-description ul {
	list-style: none;
	padding-left: 0;
}
.pbhp-main .wp-block-post-content ul li,
.pbhp-main .wp-block-list li,
.pbhp-description ul li {
	padding: 4px 0 4px 20px;
	background: url(../images/arrow2.gif) no-repeat 0 11px;
	line-height: 1.55;
}
.pbhp-main .wp-block-post-content ul ul {
	margin-top: 4px;
}

/* ---------- Strona główna: baner ---------- */
.pbhp-hero {
	max-width: var(--pbhp-wide) !important;
	margin: 0 auto 0 !important;
	gap: 0 !important;
	box-shadow: 0 10px 25px -15px rgba(0, 0, 0, .35);
}
.pbhp-hero > .wp-block-column {
	margin: 0 !important;
}
.pbhp-hero__slider-col {
	flex-basis: 60.27% !important;
	min-width: 0;
	display: flex;
	flex-direction: column;
}
.pbhp-hero__text-col {
	flex-basis: 39.73% !important;
	min-width: 0;
}
.pbhp-hero .wp-block-cover {
	min-height: 353px !important;
	height: 100%;
	padding: 40px 40px 30px 45px;
	align-items: flex-start;
}
.pbhp-hero .wp-block-cover .wp-block-cover__inner-container {
	color: #fff;
}
.pbhp-hero .wp-block-cover h2 {
	color: #fff;
	font-size: 18px;
	font-weight: 500;
	letter-spacing: .5px;
	margin: 0;
	text-transform: uppercase;
}
.pbhp-hero .wp-block-cover h1 {
	color: #fff;
	font-size: clamp(22px, 2.5vw, 29px);
	font-weight: 700;
	letter-spacing: .5px;
	margin: 2px 0 20px;
	padding: 0;
	text-transform: uppercase;
	overflow-wrap: normal;
	word-break: keep-all;
	hyphens: none;
	white-space: nowrap;
}
.pbhp-hero .wp-block-cover p {
	color: #fff;
	font-size: 14px;
	line-height: 22px;
	margin: 0 0 4px;
	padding-left: 18px;
	position: relative;
}
.pbhp-hero .wp-block-cover p::before {
	content: "";
	position: absolute;
	left: 0;
	top: 8px;
	border: 4px solid transparent;
	border-left: 5px solid #fff;
}

/* Karuzela (galeria z klasą pbhp-slider) */
.pbhp-slider.wp-block-gallery {
	position: relative;
	display: block !important;
	flex: 1 1 auto;
	min-height: 353px;
	overflow: hidden;
	margin: 0 !important;
	background: #ccc;
}
.pbhp-slider.wp-block-gallery > figure.wp-block-image {
	position: absolute !important;
	inset: 0;
	width: 100% !important;
	height: 100%;
	margin: 0 !important;
	opacity: 0;
	transition: opacity 1s ease;
}
.pbhp-slider.wp-block-gallery > figure.wp-block-image:first-child,
.pbhp-slider.wp-block-gallery > figure.wp-block-image.is-active {
	opacity: 1;
}
.pbhp-slider.is-ready > figure.wp-block-image:first-child:not(.is-active) {
	opacity: 0;
}
.pbhp-slider.wp-block-gallery > figure.wp-block-image img {
	width: 100% !important;
	height: 100% !important;
	object-fit: cover;
}
.pbhp-slider__dots {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 12px;
	display: flex;
	justify-content: center;
	gap: 8px;
	z-index: 3;
}
.pbhp-slider__dots button {
	width: 11px;
	height: 11px;
	border-radius: 50%;
	border: 2px solid #fff;
	background: transparent;
	padding: 0;
	cursor: pointer;
	box-shadow: 0 0 3px rgba(0, 0, 0, .4);
}
.pbhp-slider__dots button.is-active {
	background: #fff;
}

/* Strona główna: sekcja „O firmie / Oferujemy” */
.pbhp-home-intro {
	margin-top: 35px !important;
	gap: 40px !important;
}
.pbhp-offer-list {
	columns: 2;
	column-gap: 30px;
}
.pbhp-offer-list li {
	break-inside: avoid;
	font-weight: 700;
	font-size: 13px;
}

/* ---------- Katalog: panel kategorii ---------- */
.pbhp-catalog {
	gap: 30px !important;
}
.pbhp-submenu {
	background: #eee;
	border: 1px solid #ccc;
	position: sticky;
	top: 20px;
}
.admin-bar .pbhp-submenu {
	top: 52px;
}
.pbhp-submenu__header {
	background: var(--pbhp-dark);
	color: #fff;
	padding: 13px 20px;
	font-family: var(--wp--preset--font-family--heading);
	font-size: 16px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .5px;
}
.pbhp-tree,
.pbhp-tree ul {
	list-style: none;
	margin: 0;
	padding: 0;
}
.pbhp-tree li {
	position: relative;
	margin: 0;
	padding: 0;
	background: none;
}
.pbhp-tree a {
	display: block;
	padding: 9px 30px 9px 18px;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.4;
	color: #666;
	border-top: 1px solid #fff;
	border-bottom: 1px solid #ddd;
	text-decoration: none !important;
	transition: background .15s, color .15s;
}
.pbhp-tree ul a {
	padding-left: 30px;
	font-weight: 400;
	color: #555;
	background: #f4f4f4;
}
.pbhp-tree ul ul a {
	padding-left: 44px;
	font-size: 11px;
	color: #777;
	background: #fafafa;
}
.pbhp-tree ul ul ul a {
	padding-left: 58px;
}
.pbhp-tree a:hover {
	background: #ddd;
	color: #333;
}
.pbhp-tree .current-cat > a {
	background: var(--pbhp-red-3);
	color: #fff !important;
}
.pbhp-tree .current-cat-parent > a,
.pbhp-tree .current-cat-ancestor > a {
	color: var(--pbhp-red);
}
.pbhp-tree li.has-children > ul {
	display: none;
}
.pbhp-tree li.has-children.is-open > ul {
	display: block;
}
.pbhp-tree__toggle {
	position: absolute;
	right: 4px;
	top: 6px;
	width: 24px;
	height: 24px;
	border: 0;
	background: transparent;
	cursor: pointer;
	color: #999;
	font-size: 16px;
	line-height: 24px;
	padding: 0;
}
.pbhp-tree__toggle::before {
	content: "+";
	font-weight: 700;
}
.pbhp-tree li.is-open > .pbhp-tree__toggle::before {
	content: "–";
}
.pbhp-tree .current-cat > .pbhp-tree__toggle {
	color: #fff;
}

/* ---------- Katalog: lista produktów ---------- */
.pbhp-products__grid {
	gap: 30px 30px !important;
}
.pbhp-product {
	gap: 16px !important;
	align-items: flex-start !important;
	background: transparent;
}
.pbhp-product__img {
	flex: 0 0 157px;
	width: 157px !important;
	height: 157px !important;
	background: #fff;
	border: 1px solid #e3e3e3;
	margin: 0 !important;
	transition: box-shadow .2s, border-color .2s;
}
.pbhp-product__img a {
	display: block;
	height: 100%;
}
.pbhp-product__img img {
	padding: 6px;
	box-sizing: border-box;
}
.pbhp-product:hover .pbhp-product__img {
	border-color: var(--pbhp-red);
	box-shadow: 0 4px 14px rgba(0, 0, 0, .08);
}
.pbhp-product__body {
	flex: 1 1 auto;
	min-width: 0;
}
.pbhp-product__title {
	font-size: 12px !important;
	line-height: 16px !important;
	letter-spacing: 0 !important;
	text-transform: uppercase;
	margin: 0 0 8px !important;
	padding: 0 !important;
}
.pbhp-product__title::after {
	display: none !important;
}
.pbhp-product__title a {
	color: var(--pbhp-red-2);
	text-decoration: none;
}
.pbhp-product__title a:hover {
	text-decoration: underline;
}
.pbhp-product__excerpt,
.pbhp-product__excerpt p {
	font-size: 11px;
	line-height: 18px;
	color: #777;
	margin: 0;
}
.pbhp-product__excerpt .wp-block-post-excerpt__more-text {
	display: none;
}
.pbhp-pagination {
	margin-top: 35px !important;
	font-size: 13px;
	gap: 6px;
}
.pbhp-pagination .page-numbers,
.pbhp-pagination a {
	display: inline-block;
	min-width: 30px;
	padding: 4px 8px;
	text-align: center;
	border: 1px solid #ddd;
	background: #fff;
	color: #555;
	text-decoration: none !important;
}
.pbhp-pagination .page-numbers.current {
	background: var(--pbhp-red);
	border-color: var(--pbhp-red);
	color: #fff;
}
.pbhp-term-description {
	margin-bottom: 25px;
}

/* ---------- Strona produktu ---------- */
.pbhp-single {
	gap: 35px !important;
}
.pbhp-product-image {
	background: #fff;
	border: 1px solid #e3e3e3;
	padding: 10px;
	cursor: zoom-in;
}
.pbhp-product-image img {
	width: 100%;
	height: auto;
}
.pbhp-back {
	margin-top: 25px !important;
}
.pbhp-description p {
	margin: 0 0 10px;
}
.pbhp-description ul {
	margin: 0 0 14px;
}
.pbhp-description p:empty {
	display: none;
}
.pbhp-product-cats {
	margin-top: 25px;
	padding-top: 12px;
	border-top: 1px dotted #ccc;
	font-size: 12px;
	color: var(--pbhp-muted);
}

/* Prosty podgląd zdjęcia */
.pbhp-lightbox {
	position: fixed;
	inset: 0;
	z-index: 99999;
	background: rgba(0, 0, 0, .8);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: zoom-out;
	padding: 30px;
}
.pbhp-lightbox img {
	max-width: 100%;
	max-height: 100%;
	background: #fff;
	padding: 10px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, .5);
}

/* ---------- Kontakt ---------- */
.pbhp-map {
	margin-top: 0 !important;
	margin-bottom: 30px !important;
	line-height: 0;
}
.pbhp-map iframe {
	width: 100%;
	height: 320px;
	border: 0;
	filter: grayscale(.2);
}
.pbhp-contact-cols {
	gap: 40px !important;
}
.pbhp-contact-box {
	background: #fff;
	border: 1px solid #e3e3e3;
	padding: 25px;
}
.pbhp-contact-box .pbhp-company {
	font-family: var(--wp--preset--font-family--heading);
	font-size: 18px;
	font-weight: 700;
	color: var(--pbhp-dark);
}

/* Formularz Contact Form 7 */
.wpcf7 form {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0 25px;
}
.wpcf7 form > p {
	margin: 0 0 15px;
}
.wpcf7 form > p.pbhp-form-note {
	font-size: 12px;
	color: var(--pbhp-muted);
	margin-bottom: 12px;
}
.wpcf7 .wpcf7-not-valid-tip {
	font-size: 12px;
	margin-top: 4px;
}
.wpcf7 form .wpcf7-response-output {
	margin: 5px 0 0;
	padding: 10px 14px;
	border-radius: 3px;
	font-size: 13px;
}
.wpcf7 form .pbhp-full,
.wpcf7 form > .wpcf7-response-output,
.wpcf7 form > div:not(.hidden-fields-container) {
	grid-column: 1 / -1;
}
.wpcf7 label {
	display: block;
	font-size: 12px;
	font-weight: 700;
	color: #555;
}
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 textarea {
	width: 100%;
	box-sizing: border-box;
	margin-top: 5px;
	padding: 9px 11px;
	border: 1px solid #ccc;
	border-radius: 3px;
	background: #fff;
	font: inherit;
	font-size: 14px;
	color: #333;
	transition: border-color .2s, box-shadow .2s;
}
.wpcf7 textarea {
	height: 170px;
	resize: vertical;
}
.wpcf7 input:focus,
.wpcf7 textarea:focus {
	outline: none;
	border-color: var(--pbhp-red);
	box-shadow: 0 0 0 3px rgba(193, 39, 45, .12);
}
.wpcf7 .wpcf7-acceptance label {
	font-weight: 400;
	font-size: 11px;
	line-height: 1.5;
	color: #777;
}
.wpcf7 input[type="submit"] {
	background: linear-gradient(#d7383e, #c1272d);
	border: 1px solid #a91f25;
	border-radius: 3px;
	color: #fff;
	cursor: pointer;
	font-family: var(--wp--preset--font-family--heading);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .5px;
	padding: 10px 30px;
	text-transform: uppercase;
}
.wpcf7 input[type="submit"]:hover {
	background: var(--pbhp-red-2);
}

/* ---------- Pasek partnerów ---------- */
.pbhp-partners {
	background: #e4e4e4 url(../images/part.png);
	border-top: 1px solid #ccc;
	border-bottom: 1px solid #ccc;
	padding: 28px 0 !important;
	overflow: hidden;
}
.pbhp-partners__track {
	max-width: var(--pbhp-content);
	margin-left: auto !important;
	margin-right: auto !important;
	gap: 20px !important;
	overflow: hidden;
}
.pbhp-partners.is-marquee .pbhp-partners__track {
	max-width: none;
	width: max-content;
	justify-content: flex-start !important;
	animation: pbhp-marquee 45s linear infinite;
}
.pbhp-partners.is-marquee:hover .pbhp-partners__track {
	animation-play-state: paused;
}
@keyframes pbhp-marquee {
	from { transform: translateX(0); }
	to { transform: translateX(var(--pbhp-marquee-shift, calc(-50% - 10px))); }
}
.pbhp-partner {
	flex: 0 0 228px;
	width: 228px;
	height: 80px;
	margin: 0 !important;
	background: #fff;
	border: 1px solid #ddd;
	display: flex !important;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	transition: border-color .3s, box-shadow .3s;
}
.pbhp-partner:hover {
	border-color: #c9c9c9;
	box-shadow: 0 3px 10px rgba(0, 0, 0, .08);
}
.pbhp-partner img {
	max-height: 58px;
	max-width: 190px;
	width: auto !important;
	height: auto;
	object-fit: contain;
}

/* ---------- Stopka ---------- */
.pbhp-footer {
	background: #fff;
	color: var(--pbhp-muted);
	padding: 30px 0 35px !important;
}
.pbhp-footer__inner {
	max-width: calc(var(--pbhp-content) + 40px);
	padding-left: 20px;
	padding-right: 20px;
	box-sizing: border-box;
	margin-left: auto !important;
	margin-right: auto !important;
	gap: 20px;
}
.pbhp-footer-nav {
	font-size: 11px !important;
	gap: 4px 22px;
}
.pbhp-footer-nav .wp-block-navigation-item__content {
	color: #999;
	text-decoration: none !important;
}
.pbhp-footer-nav .wp-block-navigation-item__content:hover,
.pbhp-footer-nav .wp-block-navigation-item__content[aria-current="page"] {
	color: #333;
}
.pbhp-copyright {
	font-size: 11px;
	line-height: 18px;
	margin: 0;
	text-align: right;
}

/* ---------- Wyszukiwarka ---------- */
.wp-block-search__input {
	border: 1px solid #ccc;
	border-radius: 3px 0 0 3px;
	padding: 8px 10px;
}
.wp-block-search__button {
	margin-left: 0 !important;
	border-radius: 0 3px 3px 0 !important;
}

/* ---------- Responsywność ---------- */
@media (max-width: 1000px) {
	.pbhp-hero .wp-block-cover {
		padding: 30px;
	}
	.pbhp-hero .wp-block-cover h1 {
		font-size: 26px;
	}
}
@media (max-width: 781px) {
	.pbhp-topbar__inner {
		justify-content: space-between !important;
		min-height: 0;
		flex-wrap: nowrap !important;
	}
	.pbhp-logo {
		margin-top: 6px;
		max-width: 170px;
	}
	.pbhp-contact-line {
		display: none;
	}
	.pbhp-hero .wp-block-cover {
		min-height: 0 !important;
	}
	.pbhp-slider.wp-block-gallery {
		min-height: 0;
		aspect-ratio: 678 / 353;
	}
	.pbhp-hero .wp-block-cover h1 {
		font-size: 26px;
	}
	.pbhp-offer-list {
		columns: 1;
	}
	.pbhp-submenu {
		position: static;
	}
	.pbhp-submenu__header {
		cursor: pointer;
		position: relative;
	}
	.pbhp-submenu__header::after {
		content: "▾";
		position: absolute;
		right: 18px;
		top: 50%;
		transform: translateY(-50%);
		transition: transform .2s;
	}
	.pbhp-submenu.is-open .pbhp-submenu__header::after {
		transform: translateY(-50%) rotate(180deg);
	}
	.pbhp-submenu .pbhp-tree {
		display: none;
	}
	.pbhp-submenu.is-open .pbhp-tree {
		display: block;
	}
	.pbhp-products__grid {
		grid-template-columns: 1fr !important;
	}
	.wpcf7 form {
		grid-template-columns: 1fr;
	}
	.pbhp-copyright {
		text-align: left;
	}
}
@media (max-width: 480px) {
	.pbhp-product__img {
		flex-basis: 110px;
		width: 110px !important;
		height: 110px !important;
	}
}
