/*
Theme Name: Warsztat PRO
Theme URI: https://warsztat-pro.pl
Author: ECM
Description: Autorski motyw WooCommerce dla warsztat-pro.pl. Układ sklepu narzędziowego wzorowany na makita.sklep.pl - pasek kontaktu, mega-menu kategorii, lewa kolumna, moduły promocji, pasek korzyści.
Version: 1.2.4
Requires at least: 6.5
Tested up to: 7.1
Requires PHP: 8.0
License: GNU General Public License v2 or later
Text Domain: warsztatpro
Tags: e-commerce, woocommerce, two-columns, custom-menu
*/

/* ==========================================================================
   1. Zmienne i reset
   ========================================================================== */
:root {
	--wpro-petrol: #026776;
	--wpro-petrol-dark: #034d54;
	--wpro-petrol-light: #0a8093;
	--wpro-red: #e21d24;
	--wpro-red-dark: #b8151b;
	--wpro-orange: #ff7413;
	--wpro-ink: #333333;
	--wpro-ink-soft: #666666;
	--wpro-line: #e2e2e2;
	--wpro-bg: #ffffff;
	--wpro-bg-soft: #f4f6f7;
	--wpro-radius: 3px;
	--wpro-shadow: 0 1px 3px rgba(0, 0, 0, .08);
	--wpro-shadow-lg: 0 6px 22px rgba(0, 0, 0, .12);
	--wpro-container: 1200px;
	--wpro-sidebar: 280px;
}

*,
*::before,
*::after { box-sizing: border-box; }

body {
	margin: 0;
	font-family: Lato, "Segoe UI", Arial, sans-serif;
	font-size: 14px;
	line-height: 1.55;
	color: var(--wpro-ink);
	background: var(--wpro-bg-soft);
	-webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--wpro-petrol); text-decoration: none; }
a:hover { color: var(--wpro-red); }

h1, h2, h3, h4 {
	font-weight: 900;
	line-height: 1.2;
	color: #111;
	margin: 0 0 14px;
}
h1 { font-size: 28px; }
h2 { font-size: 22px; }
h3 { font-size: 17px; }

.wpro-container {
	width: 100%;
	max-width: var(--wpro-container);
	margin: 0 auto;
	padding: 0 16px;
}

.wpro-sr {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden; clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

/* ==========================================================================
   2. Przyciski
   ========================================================================== */
.wpro-btn,
a.button.add_to_cart_button,
a.button.product_type_simple,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 11px 22px;
	border: 0;
	border-radius: var(--wpro-radius);
	background: var(--wpro-petrol);
	color: #fff;
	font: 700 13px/1 Lato, Arial, sans-serif;
	text-transform: uppercase;
	letter-spacing: .04em;
	cursor: pointer;
	transition: background .15s ease;
}

.wpro-btn:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover { background: var(--wpro-petrol-dark); color: #fff; }

.wpro-btn--red,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt,
.woocommerce #respond input#submit.alt { background: var(--wpro-red); }

.wpro-btn--red:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover,
.woocommerce input.button.alt:hover { background: var(--wpro-red-dark); }

.wpro-btn--ghost {
	background: transparent;
	border: 2px solid #fff;
	color: #fff;
}
.wpro-btn--ghost:hover { background: #fff; color: var(--wpro-petrol); }

/* ==========================================================================
   3. Pasek kontaktu + górne menu
   ========================================================================== */
.wpro-topbar {
	background: var(--wpro-petrol-dark);
	color: rgba(255, 255, 255, .9);
	font-size: 12.5px;
}
.wpro-topbar .wpro-container {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: 38px;
	flex-wrap: wrap;
}
.wpro-topbar__contact {
	display: flex;
	gap: 22px;
	list-style: none;
	margin: 0;
	padding: 0;
	flex-wrap: wrap;
}
.wpro-topbar__contact a { color: #fff; font-weight: 700; }
.wpro-topbar__contact a:hover { color: #ffd166; }
.wpro-topbar__contact li { display: flex; align-items: center; gap: 7px; }
.wpro-topbar__contact svg { width: 14px; height: 14px; fill: currentColor; opacity: .85; }
.wpro-topbar__claim { font-weight: 700; letter-spacing: .05em; text-transform: uppercase; opacity: .85; }

.wpro-utilnav { background: var(--wpro-petrol); }
.wpro-utilnav ul {
	display: flex;
	gap: 2px;
	list-style: none;
	margin: 0;
	padding: 0;
	flex-wrap: wrap;
}
.wpro-utilnav a {
	display: block;
	padding: 14px 16px;
	color: #fff;
	font-weight: 700;
	font-size: 12.5px;
	text-transform: uppercase;
	letter-spacing: .04em;
}
.wpro-utilnav a:hover { background: rgba(0, 0, 0, .18); color: #fff; }
.wpro-utilnav li.wpro-hot > a { color: #ffe08a; }

/* ==========================================================================
   4. Nagłówek: logo / szukajka / koszyk
   ========================================================================== */
.wpro-header { background: #fff; }
.wpro-header__row {
	display: flex;
	align-items: center;
	gap: 24px;
	padding: 14px 16px;
}
.wpro-logo { flex: 0 0 auto; max-width: 380px; }
.wpro-logo a { display: block; }
/* logo wgrane przez Dostosuj -> Logo */
.wpro-logo img,
.wpro-logo .custom-logo-link img {
	max-height: 86px;
	width: auto;
	max-width: 100%;
}
.wpro-logo__text {
	font-size: 27px;
	font-weight: 900;
	letter-spacing: -.02em;
	color: var(--wpro-petrol);
	text-transform: uppercase;
	line-height: 1;
}
.wpro-logo__text b { color: var(--wpro-red); }
.wpro-logo__tag {
	display: block;
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: .18em;
	color: var(--wpro-ink-soft);
	text-transform: uppercase;
	margin-top: 4px;
}

.wpro-search { flex: 0 1 auto; width: 100%; max-width: 380px; }
.wpro-search form {
	display: flex;
	border: 2px solid var(--wpro-petrol);
	border-radius: var(--wpro-radius);
	overflow: hidden;
	background: #fff;
}
.wpro-search input[type="search"] {
	flex: 1;
	border: 0;
	padding: 11px 14px;
	font-size: 14px;
	font-family: inherit;
	outline: none;
	min-width: 0;
}
.wpro-search button {
	border: 0;
	background: var(--wpro-petrol);
	color: #fff;
	padding: 0 18px;
	cursor: pointer;
	display: flex;
	align-items: center;
}
.wpro-search button:hover { background: var(--wpro-petrol-dark); }
.wpro-search svg { width: 18px; height: 18px; fill: currentColor; }

.wpro-header__actions {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-left: auto;
}
.wpro-action {
	display: flex;
	align-items: center;
	gap: 9px;
	padding: 8px 12px;
	border-radius: var(--wpro-radius);
	color: var(--wpro-ink);
	line-height: 1.15;
}
.wpro-action:hover { background: var(--wpro-bg-soft); color: var(--wpro-ink); }
.wpro-action svg { width: 24px; height: 24px; fill: var(--wpro-petrol); flex: 0 0 auto; }
.wpro-action__label { font-size: 11px; color: var(--wpro-ink-soft); display: block; }
.wpro-action__value { font-size: 13.5px; font-weight: 900; display: block; }
.wpro-cart { position: relative; }
.wpro-cart__count {
	position: absolute;
	top: 2px; left: 26px;
	min-width: 18px; height: 18px;
	padding: 0 4px;
	border-radius: 9px;
	background: var(--wpro-red);
	color: #fff;
	font-size: 11px;
	font-weight: 900;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* ==========================================================================
   5. Menu kategorii
   ========================================================================== */
.wpro-catnav { background: var(--wpro-ink); position: relative; z-index: 30; }
.wpro-catnav__inner { display: flex; align-items: stretch; }
.wpro-catnav ul { list-style: none; margin: 0; padding: 0; }
.wpro-catnav__menu { display: flex; flex-wrap: wrap; }
.wpro-catnav__menu > li { position: relative; }
.wpro-catnav__menu > li > a {
	display: block;
	padding: 15px 17px;
	color: #fff;
	font-weight: 700;
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: .03em;
}
.wpro-catnav__menu > li:hover > a,
.wpro-catnav__menu > li.current-menu-item > a { background: var(--wpro-red); color: #fff; }

.wpro-catnav__menu li ul {
	position: absolute;
	top: 100%; left: 0;
	min-width: 250px;
	background: #fff;
	box-shadow: var(--wpro-shadow-lg);
	border-top: 3px solid var(--wpro-red);
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: .16s ease;
	padding: 6px 0;
}
.wpro-catnav__menu li:hover > ul { opacity: 1; visibility: visible; transform: none; }
.wpro-catnav__menu li ul li ul { top: 0; left: 100%; }
.wpro-catnav__menu li ul a {
	display: block;
	padding: 9px 18px;
	color: var(--wpro-ink);
	font-size: 13px;
	font-weight: 600;
}
.wpro-catnav__menu li ul a:hover { background: var(--wpro-bg-soft); color: var(--wpro-red); }

/* przycisk rozwijania podkategorii istnieje tylko w menu mobilnym */
.wpro-subtoggle { display: none; }

.wpro-burger {
	display: none;
	align-items: center;
	gap: 9px;
	background: var(--wpro-red);
	color: #fff;
	border: 0;
	padding: 13px 18px;
	font: 900 13px/1 Lato, Arial, sans-serif;
	text-transform: uppercase;
	cursor: pointer;
}
.wpro-burger svg { width: 17px; height: 17px; fill: currentColor; }

/* ==========================================================================
   6. Układ dwukolumnowy
   ========================================================================== */
.wpro-main { padding: 22px 0 40px; }
.wpro-layout {
	display: grid;
	grid-template-columns: var(--wpro-sidebar) minmax(0, 1fr);
	gap: 22px;
	align-items: start;
}
.wpro-layout--full { grid-template-columns: minmax(0, 1fr); }

.wpro-panel {
	background: #fff;
	border: 1px solid var(--wpro-line);
	border-radius: var(--wpro-radius);
	margin-bottom: 18px;
}
.wpro-panel__head {
	background: var(--wpro-petrol);
	color: #fff;
	padding: 12px 16px;
	font: 900 13.5px/1.2 Lato, Arial, sans-serif;
	text-transform: uppercase;
	letter-spacing: .05em;
}
.wpro-panel__body { padding: 14px 16px; }

.wpro-catlist { list-style: none; margin: 0; padding: 0; }
.wpro-catlist li { border-bottom: 1px solid var(--wpro-line); }
.wpro-catlist li:last-child { border-bottom: 0; }
.wpro-catlist a {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 8px;
	padding: 11px 16px;
	color: var(--wpro-ink);
	font-weight: 700;
	font-size: 13px;
}
.wpro-catlist a:hover { background: var(--wpro-bg-soft); color: var(--wpro-red); padding-left: 20px; }
.wpro-catlist .wpro-catlist__count {
	font-size: 11px;
	font-weight: 700;
	color: var(--wpro-ink-soft);
	background: var(--wpro-bg-soft);
	border-radius: 10px;
	padding: 2px 8px;
}

/* ==========================================================================
   7. Sekcje / nagłówki modułów
   ========================================================================== */
.wpro-section { margin-bottom: 26px; }
.wpro-section__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	border-bottom: 3px solid var(--wpro-petrol);
	margin-bottom: 16px;
}
.wpro-section__title {
	margin: 0;
	background: var(--wpro-petrol);
	color: #fff;
	padding: 10px 20px;
	font-size: 15px;
	font-weight: 900;
	text-transform: uppercase;
	letter-spacing: .06em;
	border-radius: var(--wpro-radius) var(--wpro-radius) 0 0;
}
.wpro-section--red .wpro-section__head { border-bottom-color: var(--wpro-red); }
.wpro-section--red .wpro-section__title { background: var(--wpro-red); }
.wpro-section__more {
	font-size: 12.5px;
	font-weight: 900;
	text-transform: uppercase;
	letter-spacing: .04em;
	padding-bottom: 8px;
}

/* ==========================================================================
   8. Hero
   ========================================================================== */
.wpro-hero {
	display: grid;
	grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
	gap: 16px;
	margin-bottom: 22px;
}
.wpro-hero__main {
	position: relative;
	border-radius: var(--wpro-radius);
	overflow: hidden;
	background: linear-gradient(120deg, var(--wpro-petrol-dark) 0%, var(--wpro-petrol) 55%, var(--wpro-petrol-light) 100%);
	color: #fff;
	padding: 38px 40px;
	min-height: 330px;
	display: flex;
	flex-direction: column;
	justify-content: center;
}
.wpro-hero__main::after {
	content: "";
	position: absolute;
	right: -70px; top: -70px;
	width: 320px; height: 320px;
	border: 40px solid rgba(255, 255, 255, .06);
	border-radius: 50%;
}

/* wariant ze zdjeciem: obraz jako tlo + przyciemnienie od lewej,
   zeby tekst byl czytelny niezaleznie od tego, co jest na fotografii */
.wpro-hero__main.has-photo {
	background-color: #0d3547;
	background-repeat: no-repeat;
	background-size: cover;
	background-position: right center;
	min-height: 420px;
	padding: 44px 46px;
}
.wpro-hero__main.has-photo::after { display: none; }
.wpro-hero__main.has-photo::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(8, 42, 58, .92) 0%, rgba(8, 42, 58, .78) 34%, rgba(8, 42, 58, .15) 62%, rgba(8, 42, 58, 0) 100%);
}
.wpro-hero__body { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; }
.wpro-hero__main.has-photo .wpro-hero__title { text-shadow: 0 2px 12px rgba(0, 0, 0, .35); }
.wpro-hero__kicker {
	display: inline-block;
	align-self: flex-start;
	background: var(--wpro-red);
	color: #fff;
	font-size: 11.5px;
	font-weight: 900;
	letter-spacing: .12em;
	text-transform: uppercase;
	padding: 6px 12px;
	border-radius: var(--wpro-radius);
	margin-bottom: 16px;
}
.wpro-hero__title {
	color: #fff;
	font-size: 38px;
	line-height: 1.08;
	margin: 0 0 14px;
	max-width: 15ch;
}
.wpro-hero__lead {
	font-size: 15px;
	max-width: 46ch;
	margin: 0 0 24px;
	color: rgba(255, 255, 255, .92);
}
.wpro-hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }

.wpro-hero__side { display: grid; grid-template-rows: 1fr 1fr; gap: 16px; }
.wpro-tile {
	position: relative;
	border-radius: var(--wpro-radius);
	padding: 22px 24px;
	color: #fff;
	display: flex;
	flex-direction: column;
	justify-content: center;
	overflow: hidden;
	min-height: 157px;
}
.wpro-tile--red { background: linear-gradient(120deg, #b8151b, var(--wpro-red)); }
.wpro-tile--dark { background: linear-gradient(120deg, #1d1d1d, #3a3a3a); }

/* kafel ze zdjeciem: fotografia jako tlo + przyciemnienie od dolu pod tekst */
.wpro-tile.has-photo {
	background-color: #151515;
	background-repeat: no-repeat;
	background-size: cover;
	background-position: right center;
	justify-content: center;
	padding: 20px 24px;
}
.wpro-tile.has-photo .wpro-tile__body { max-width: 62%; }
.wpro-tile.has-photo::before {
	content: "";
	position: absolute;
	inset: 0;
	/* przyciemnienie od lewej - tekst jest po lewej, a produkty na zdjeciu zostaja widoczne */
	background: linear-gradient(90deg, rgba(10, 10, 12, .94) 0%, rgba(10, 10, 12, .82) 38%, rgba(10, 10, 12, .35) 66%, rgba(10, 10, 12, .05) 100%);
}
.wpro-tile__body { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; }
.wpro-tile.has-photo .wpro-tile__title { font-size: 19px; margin-bottom: 8px; text-shadow: 0 2px 10px rgba(0, 0, 0, .5); }
.wpro-tile.has-photo .wpro-tile__label { color: #ffb37a; opacity: 1; }
.wpro-tile.wpro-tile--red.has-photo .wpro-tile__label { color: #ff9f6b; }
.wpro-tile__label {
	font-size: 11px;
	font-weight: 900;
	letter-spacing: .14em;
	text-transform: uppercase;
	opacity: .85;
	margin-bottom: 6px;
}
.wpro-tile__title { color: #fff; font-size: 21px; margin: 0 0 10px; }
.wpro-tile__link {
	color: #fff;
	font-weight: 900;
	font-size: 12.5px;
	text-transform: uppercase;
	letter-spacing: .05em;
	border-bottom: 2px solid rgba(255, 255, 255, .5);
	align-self: flex-start;
	padding-bottom: 2px;
}
.wpro-tile__link:hover { color: #fff; border-bottom-color: #fff; }

/* ==========================================================================
   9. Oferta dnia
   ========================================================================== */
.wpro-deal {
	display: grid;
	grid-template-columns: 240px minmax(0, 1fr);
	gap: 26px;
	align-items: center;
	background: #fff;
	border: 2px solid var(--wpro-red);
	border-radius: var(--wpro-radius);
	padding: 22px;
	margin-bottom: 26px;
}
.wpro-deal__media { position: relative; }
.wpro-deal__save {
	position: absolute;
	top: -10px; left: -10px;
	width: 62px; height: 62px;
	border-radius: 50%;
	background: var(--wpro-red);
	color: #fff;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	font-weight: 900;
	line-height: 1;
	font-size: 16px;
	box-shadow: var(--wpro-shadow);
}
.wpro-deal__save span { font-size: 9px; letter-spacing: .08em; margin-top: 3px; }
.wpro-deal__title { font-size: 19px; margin: 0 0 10px; }
.wpro-deal__title a { color: #111; }
.wpro-deal__prices { display: flex; align-items: baseline; gap: 14px; margin-bottom: 14px; flex-wrap: wrap; }
.wpro-deal__old { color: var(--wpro-ink-soft); text-decoration: line-through; font-size: 15px; }
.wpro-deal__new { color: var(--wpro-red); font-size: 28px; font-weight: 900; }
.wpro-deal__foot { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.wpro-countdown {
	display: flex;
	align-items: center;
	gap: 6px;
	font-weight: 900;
	color: var(--wpro-ink);
}
.wpro-countdown b {
	background: var(--wpro-ink);
	color: #fff;
	padding: 6px 9px;
	border-radius: var(--wpro-radius);
	font-size: 16px;
	font-variant-numeric: tabular-nums;
}
.wpro-countdown small {
	display: block;
	font-size: 9px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--wpro-ink-soft);
	text-align: center;
	margin-top: 3px;
}

/* ==========================================================================
   10. Siatka produktów
   ========================================================================== */
.wpro-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 14px;
	list-style: none;
	margin: 0;
	padding: 0;
}
.wpro-layout .wpro-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.wpro-grid--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }

.wpro-product,
ul.products li.product,
.woocommerce ul.products li.product {
	position: relative;
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid var(--wpro-line);
	border-radius: var(--wpro-radius);
	padding: 14px;
	text-align: left;
	transition: box-shadow .16s ease, border-color .16s ease;
	margin: 0;
	width: auto;
	float: none;
}
.wpro-product:hover,
ul.products li.product:hover,
.woocommerce ul.products li.product:hover {
	border-color: var(--wpro-petrol);
	box-shadow: var(--wpro-shadow-lg);
}
.wpro-product__media {
	position: relative;
	display: block;
	margin-bottom: 12px;
	aspect-ratio: 1 / 1;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}
.wpro-product__media img { max-height: 100%; width: auto; object-fit: contain; }
.wpro-product__ph {
	width: 100%; height: 100%;
	background: repeating-linear-gradient(45deg, #f6f7f8, #f6f7f8 12px, #eef0f1 12px, #eef0f1 24px);
	display: flex;
	align-items: center;
	justify-content: center;
	color: #b6bcbf;
	font-weight: 900;
	font-size: 12px;
	letter-spacing: .1em;
	text-transform: uppercase;
}
.wpro-badges {
	position: absolute;
	top: 0; left: 0;
	display: flex;
	flex-direction: column;
	gap: 5px;
	z-index: 2;
}
.wpro-badge {
	background: var(--wpro-red);
	color: #fff;
	font-size: 10.5px;
	font-weight: 900;
	letter-spacing: .06em;
	text-transform: uppercase;
	padding: 4px 9px;
	border-radius: var(--wpro-radius);
}
.wpro-badge--hit { background: var(--wpro-orange); }
.wpro-badge--new { background: var(--wpro-petrol); }

.wpro-product__title,
ul.products li.product .woocommerce-loop-product__title,
.woocommerce ul.products li.product .woocommerce-loop-product__title {
	font-size: 13px;
	font-weight: 700;
	line-height: 1.35;
	margin: 0 0 10px;
	padding: 0;
	min-height: 3.9em;
	overflow: hidden;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
}
.wpro-product__title a { color: var(--wpro-ink); }
.wpro-product__title a:hover { color: var(--wpro-red); }

.wpro-product__price,
ul.products li.product .price,
.woocommerce ul.products li.product .price {
	margin: 0 0 12px auto;
	padding-top: 4px;
	font-size: 19px;
	font-weight: 900;
	color: var(--wpro-red);
	line-height: 1.2;
}
.wpro-product__price del,
ul.products li.product .price del,
.woocommerce ul.products li.product .price del {
	display: block;
	font-size: 12.5px;
	font-weight: 400;
	color: var(--wpro-ink-soft);
	opacity: 1;
}
.wpro-product__price ins,
ul.products li.product .price ins,
.woocommerce ul.products li.product .price ins { text-decoration: none; background: none; color: var(--wpro-red); }
.wpro-product__price small,
ul.products li.product .price small,
.woocommerce ul.products li.product .price small,
.woocommerce div.product p.price small,
.woocommerce div.product span.price small {
	display: block;
	font-size: 10.5px;
	font-weight: 700;
	color: var(--wpro-ink-soft);
	text-transform: uppercase;
	letter-spacing: .04em;
	margin-top: 2px;
}

.wpro-product .wpro-btn,
ul.products li.product .button,
.woocommerce ul.products li.product .button {
	width: 100%;
	margin: auto 0 0;
	font-size: 12px;
}

/* kafle kategorii na stronie glownej - sama nazwa i licznik, bez ikon */
.wpro-grid--cats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.wpro-cattile {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	background: #fff;
	border: 1px solid var(--wpro-line);
	border-left: 4px solid var(--wpro-petrol);
	border-radius: var(--wpro-radius);
	padding: 16px 18px;
	min-height: 62px;
	transition: border-color .15s ease, box-shadow .15s ease;
}
.wpro-cattile:hover { border-left-color: var(--wpro-red); box-shadow: var(--wpro-shadow-lg); }
.wpro-cattile__name {
	font-weight: 900;
	font-size: 13.5px;
	line-height: 1.25;
	color: var(--wpro-ink);
	text-transform: uppercase;
}
.wpro-cattile:hover .wpro-cattile__name { color: var(--wpro-red); }
.wpro-cattile__count {
	flex: 0 0 auto;
	background: var(--wpro-bg-soft);
	color: var(--wpro-ink-soft);
	font-size: 11.5px;
	font-weight: 900;
	border-radius: 11px;
	padding: 3px 10px;
}

/* ==========================================================================
   11. Pasek marek i korzyści
   ========================================================================== */
.wpro-brands {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 10px;
	margin-bottom: 26px;
}
.wpro-brand {
	background: #fff;
	border: 1px solid var(--wpro-line);
	border-radius: var(--wpro-radius);
	padding: 16px 8px;
	text-align: center;
	font-weight: 900;
	font-size: 13.5px;
	letter-spacing: .06em;
	color: var(--wpro-ink);
	text-transform: uppercase;
}
.wpro-brand:hover { border-color: var(--wpro-petrol); color: var(--wpro-petrol); }

.wpro-usp { background: #fff; border-top: 1px solid var(--wpro-line); }
.wpro-usp__list {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 18px;
	list-style: none;
	margin: 0;
	padding: 20px 16px;
}
.wpro-usp__list li { display: flex; align-items: center; gap: 12px; }
.wpro-usp__list svg { width: 30px; height: 30px; fill: var(--wpro-petrol); flex: 0 0 auto; }
.wpro-usp__list b { display: block; font-size: 13.5px; }
.wpro-usp__list span { font-size: 12px; color: var(--wpro-ink-soft); }

/* ==========================================================================
   12. Newsletter + stopka
   ========================================================================== */
.wpro-newsletter { background: var(--wpro-petrol); color: #fff; }
.wpro-newsletter .wpro-container {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding-top: 20px;
	padding-bottom: 20px;
	flex-wrap: wrap;
}
.wpro-newsletter__text b { display: block; font-size: 17px; }
.wpro-newsletter__text span { font-size: 13px; opacity: .88; }
.wpro-newsletter form { display: flex; gap: 8px; flex: 1 1 380px; max-width: 520px; }
.wpro-newsletter input[type="email"] {
	flex: 1;
	border: 0;
	border-radius: var(--wpro-radius);
	padding: 12px 14px;
	font-family: inherit;
	font-size: 14px;
	min-width: 0;
}

.wpro-footer { background: var(--wpro-ink); color: #b9bdbf; padding: 34px 0 0; }
.wpro-footer__cols {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr 1fr;
	gap: 28px;
	padding-bottom: 28px;
}
.wpro-footer h4 {
	color: #fff;
	font-size: 13px;
	letter-spacing: .1em;
	text-transform: uppercase;
	margin: 0 0 14px;
}
.wpro-footer ul { list-style: none; margin: 0; padding: 0; }
.wpro-footer li { margin-bottom: 8px; font-size: 13px; }
.wpro-footer a { color: #b9bdbf; }
.wpro-footer a:hover { color: #fff; }
.wpro-footer__contact li { display: flex; gap: 9px; align-items: flex-start; }
/* wszystkie ikony w stopce trzymamy w ryzach - bez tego SVG rozpycha sie do pelnej szerokosci kolumny */
.wpro-footer svg { width: 15px; height: 15px; fill: var(--wpro-petrol-light); flex: 0 0 auto; }
.wpro-footer__contact svg { margin-top: 3px; }

.wpro-social { display: flex; flex-wrap: wrap; gap: 8px; }
.wpro-social li { margin: 0; }
.wpro-social a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 12px;
	border: 1px solid rgba(255, 255, 255, .18);
	border-radius: var(--wpro-radius);
	font-size: 12.5px;
	font-weight: 700;
	line-height: 1;
}
.wpro-social a:hover { background: var(--wpro-petrol); border-color: var(--wpro-petrol); color: #fff; }
.wpro-social svg { width: 16px; height: 16px; fill: currentColor; }
.wpro-footer__bar {
	border-top: 1px solid rgba(255, 255, 255, .12);
	padding: 16px 0;
	font-size: 12.5px;
	display: flex;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
}
.wpro-footer__bar ul { display: flex; gap: 18px; flex-wrap: wrap; }

/* ==========================================================================
   13. WooCommerce - dopasowania
   ========================================================================== */
.woocommerce .wpro-page,
.wpro-page {
	background: #fff;
	border: 1px solid var(--wpro-line);
	border-radius: var(--wpro-radius);
	padding: 26px 28px;
}
.wpro-breadcrumb,
.woocommerce .woocommerce-breadcrumb {
	font-size: 12.5px;
	color: var(--wpro-ink-soft);
	margin: 0 0 16px;
}
.woocommerce .woocommerce-result-count,
.woocommerce .woocommerce-ordering { margin-bottom: 16px; }

/* Siatka katalogu Woo — natywne ul.products nie dostaje klasy .wpro-grid,
   a domyslny WooCommerce uklada kafle na floatach. Nadpisujemy gridem. */
.woocommerce ul.products,
.woocommerce-page ul.products {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 14px;
	margin: 0 0 24px;
	padding: 0;
	list-style: none;
}
.woocommerce ul.products::before,
.woocommerce ul.products::after { content: none; display: none; }
/* Woo trzyma `width: 30.75%` na kaflu - w gridzie dawalo to karty po 80 px.
   Powtorzona klasa `.product.product` podbija specyficznosc ponad regule wtyczki. */
ul.products li.product.product,
.woocommerce ul.products li.product.product,
.woocommerce-page ul.products li.product.product {
	width: 100%;
	max-width: none;
	margin: 0;
	float: none;
	clear: none;
}
/* stala wysokosc kadru + `contain` = caly produkt widoczny, rzedy rowne */
ul.products li.product a img,
.woocommerce ul.products li.product a img {
	margin: 0 0 12px;
	width: 100%;
	height: 210px;
	object-fit: contain;
	background: #fff;
}
ul.products li.product .woocommerce-loop-product__title,
.woocommerce ul.products li.product .woocommerce-loop-product__title { min-height: 3.9em; }
ul.products li.product .button,
.woocommerce ul.products li.product .button { width: 100%; margin-top: auto; }

/* bez lewej kolumny (np. wyniki wyszukiwania na pelnej szerokosci) mozna gesciej */
.wpro-layout--full .woocommerce ul.products,
.wpro-layout--full ul.products { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.woocommerce .woocommerce-ordering select {
	padding: 8px 10px;
	border: 1px solid var(--wpro-line);
	border-radius: var(--wpro-radius);
	background: #fff;
	font-family: inherit;
	font-size: 13px;
}
span.onsale,
.woocommerce span.onsale {
	background: var(--wpro-red);
	border-radius: var(--wpro-radius);
	font-weight: 900;
	min-height: 0;
	min-width: 0;
	padding: 4px 9px;
	line-height: 1.3;
	top: 8px; left: 8px; right: auto;
	margin: 0;
}
.woocommerce div.product .product_title { font-size: 26px; }
.woocommerce div.product p.price,
.woocommerce div.product span.price { color: var(--wpro-red); font-size: 30px; font-weight: 900; }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active { border-bottom-color: #fff; }
.woocommerce nav.woocommerce-pagination ul { border: 0; gap: 6px; display: flex; }
.woocommerce nav.woocommerce-pagination ul li { border: 0; }
.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
	background: #fff;
	border: 1px solid var(--wpro-line);
	border-radius: var(--wpro-radius);
	padding: 8px 14px;
	font-weight: 700;
}
.woocommerce nav.woocommerce-pagination ul li span.current { background: var(--wpro-petrol); color: #fff; border-color: var(--wpro-petrol); }
.woocommerce .quantity .qty { border: 1px solid var(--wpro-line); border-radius: var(--wpro-radius); padding: 9px 6px; }
.woocommerce-message, .woocommerce-info { border-top-color: var(--wpro-petrol); }
.woocommerce-message::before, .woocommerce-info::before { color: var(--wpro-petrol); }
.woocommerce-error { border-top-color: var(--wpro-red); }

/* Moje konto: logowanie i rejestracja obok siebie (Woo uklada je na floatach) */
.woocommerce .u-columns.col2-set,
.woocommerce-page .u-columns.col2-set {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 24px;
}
.woocommerce .u-columns.col2-set::before,
.woocommerce .u-columns.col2-set::after { content: none; display: none; }
.woocommerce .u-columns .col-1,
.woocommerce .u-columns .col-2 { width: auto; float: none; margin: 0; }
.woocommerce .u-columns h2 {
	font-size: 17px;
	text-transform: uppercase;
	letter-spacing: .04em;
	padding-bottom: 10px;
	border-bottom: 3px solid var(--wpro-petrol);
	margin-bottom: 16px;
}
.woocommerce form.login,
.woocommerce form.register {
	border: 1px solid var(--wpro-line);
	border-radius: var(--wpro-radius);
	padding: 20px;
	margin: 0;
	height: 100%;
}
.woocommerce form .form-row label { font-weight: 700; font-size: 13px; }
.woocommerce form .form-row input.input-text {
	border: 1px solid var(--wpro-line);
	border-radius: var(--wpro-radius);
	padding: 10px 12px;
	font-family: inherit;
	font-size: 14px;
	width: 100%;
}

/* ==========================================================================
   14. Wpisy / treść
   ========================================================================== */
.wpro-entry { background: #fff; border: 1px solid var(--wpro-line); border-radius: var(--wpro-radius); padding: 26px 28px; margin-bottom: 18px; }
.wpro-entry__meta { font-size: 12.5px; color: var(--wpro-ink-soft); margin-bottom: 12px; }
.wpro-entry h1 a, .wpro-entry h2 a { color: #111; }
.wpro-entry img { border-radius: var(--wpro-radius); }
.wpro-entry ul, .wpro-entry ol { padding-left: 20px; }
.wpro-entry table { width: 100%; border-collapse: collapse; }
.wpro-entry th, .wpro-entry td { border: 1px solid var(--wpro-line); padding: 8px 10px; text-align: left; }

/* ==========================================================================
   15. RWD
   ========================================================================== */
@media (max-width: 1100px) {
	.wpro-layout { grid-template-columns: minmax(0, 1fr); }
	.wpro-sidebar { order: 2; }
	.wpro-grid, .wpro-layout .wpro-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.woocommerce ul.products,
	.wpro-layout--full .woocommerce ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.wpro-brands { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.wpro-footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
	.wpro-topbar__claim { display: none; }
	.wpro-utilnav { display: none; }
	.wpro-header__row { flex-wrap: wrap; gap: 14px; }
	.wpro-search { order: 3; flex: 1 0 100%; width: 100%; max-width: none; }
	.wpro-logo img, .wpro-logo .custom-logo-link img { max-height: 58px; }
	.wpro-header__actions { margin-left: auto; }
	.wpro-hero { grid-template-columns: minmax(0, 1fr); }
	.wpro-hero__title { font-size: 29px; }
	.wpro-deal { grid-template-columns: minmax(0, 1fr); text-align: center; }
	.wpro-deal__media { max-width: 200px; margin: 0 auto; }
	.wpro-deal__prices, .wpro-deal__foot { justify-content: center; }
	.wpro-usp__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.wpro-burger { display: flex; }
	.wpro-catnav__menu {
		display: none;
		flex-direction: column;
		background: var(--wpro-ink);
	}
	.wpro-catnav__menu.is-open { display: flex; }
	.wpro-catnav__menu > li { position: relative; }
	.wpro-catnav__menu li ul {
		position: static;
		display: none;
		opacity: 1;
		visibility: visible;
		transform: none;
		box-shadow: none;
		border-top: 0;
		background: rgba(255, 255, 255, .07);
	}
	.wpro-catnav__menu > li.is-open > ul { display: block; }
	.wpro-catnav__menu li ul a { color: #dfe3e4; padding-left: 32px; }

	/* przycisk rozwijania podkategorii */
	.wpro-subtoggle {
		display: block;
		position: absolute;
		top: 0; right: 0;
		width: 48px; height: 46px;
		background: transparent;
		border: 0;
		border-left: 1px solid rgba(255, 255, 255, .12);
		cursor: pointer;
	}
	.wpro-subtoggle span,
	.wpro-subtoggle span::before {
		content: "";
		position: absolute;
		top: 50%; left: 50%;
		width: 13px; height: 2px;
		background: #fff;
		transform: translate(-50%, -50%);
	}
	.wpro-subtoggle span::before { transform: translate(-50%, -50%) rotate(90deg); transition: transform .15s ease; }
	.wpro-catnav__menu > li.is-open > .wpro-subtoggle span::before { transform: translate(-50%, -50%) rotate(0deg); }
}

@media (max-width: 620px) {
	.wpro-grid, .wpro-layout .wpro-grid, .wpro-grid--5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.woocommerce ul.products,
	.wpro-layout--full .woocommerce ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.wpro-brands { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.wpro-footer__cols { grid-template-columns: minmax(0, 1fr); }
	.wpro-hero__main { padding: 26px 22px; min-height: 0; }
	.wpro-hero__main.has-photo {
		min-height: 340px;
		padding: 28px 22px;
		background-position: 72% center;
	}
	.wpro-hero__main.has-photo::before {
		background: linear-gradient(180deg, rgba(8, 42, 58, .9) 0%, rgba(8, 42, 58, .78) 55%, rgba(8, 42, 58, .55) 100%);
	}
	.wpro-hero__title { font-size: 25px; }
	.wpro-action__label, .wpro-action__value { display: none; }
	/* w ukladzie kolumnowym `flex-basis` liczy sie w pionie - bez tego pole e-mail
	   rozdymalo sie do ~850 px wysokosci */
	.wpro-newsletter .wpro-container { flex-direction: column; align-items: stretch; gap: 14px; }
	.wpro-newsletter form {
		flex: 0 0 auto;
		width: 100%;
		max-width: none;
		flex-direction: column;
		align-items: stretch;
		gap: 8px;
	}
	.wpro-newsletter input[type="email"] { width: 100%; height: 46px; flex: 0 0 auto; }
	.wpro-newsletter button { width: 100%; height: 46px; }
	.wpro-page, .wpro-entry { padding: 18px 16px; }
	.woocommerce .u-columns.col2-set,
	.woocommerce-page .u-columns.col2-set { grid-template-columns: minmax(0, 1fr); }
	.wpro-grid--cats { grid-template-columns: minmax(0, 1fr); }

	/* zakladki produktu: domyslny Woo uklada je na floatach i przy dluzszych
	   napisach lamia sie w schodki - na waskim ekranie robimy z nich liste */
	.woocommerce div.product .woocommerce-tabs ul.tabs {
		display: flex;
		flex-direction: column;
		padding: 0;
		margin: 0 0 18px;
		border-bottom: 0;
	}
	.woocommerce div.product .woocommerce-tabs ul.tabs::before,
	.woocommerce div.product .woocommerce-tabs ul.tabs li::before,
	.woocommerce div.product .woocommerce-tabs ul.tabs li::after { display: none; }
	.woocommerce div.product .woocommerce-tabs ul.tabs li {
		float: none;
		display: block;
		margin: 0;
		padding: 0;
		border: 1px solid var(--wpro-line);
		border-bottom: 0;
		border-radius: 0;
		background: #fff;
	}
	.woocommerce div.product .woocommerce-tabs ul.tabs li:last-child { border-bottom: 1px solid var(--wpro-line); }
	.woocommerce div.product .woocommerce-tabs ul.tabs li a {
		display: block;
		padding: 13px 16px;
		font-weight: 700;
		color: var(--wpro-ink);
	}
	.woocommerce div.product .woocommerce-tabs ul.tabs li.active { background: var(--wpro-petrol); border-color: var(--wpro-petrol); }
	.woocommerce div.product .woocommerce-tabs ul.tabs li.active a { color: #fff; }
}
