/*
Theme Name:        PSLab Jagodnik Shop
Theme URI:         https://shop.jagodnik.pl
Author:            PSLab
Description:       Lekki, elegancki motyw sklepu WooCommerce dla Jagodnik.pl – górny pasek, przyklejany nagłówek z mini-koszykiem, banery tytułów z okruszkami, siatka produktów z panelem bocznym i akcjami po najechaniu.
Version:           1.2.3
Requires at least: 6.4
Tested up to:      7.1
Requires PHP:      7.4
WC requires at least: 8.0
WC tested up to:   11.3
License:           GNU General Public License v2 or later
License URI:       https://www.gnu.org/licenses/gpl-2.0.html
Text Domain:       pslab-jagodnik-shop
Tags:              e-commerce, two-columns, right-sidebar, custom-logo, custom-menu, featured-images, translation-ready
*/

/* =========================================================================
   1. Zmienne
   ========================================================================= */
:root {
	--pj-accent: #6ea820;
	--pj-accent-dark: #5a8c18;
	--pj-berry: #d7263d;
	--pj-text: #6b6b6b;
	--pj-heading: #222;
	--pj-muted: #9a9a9a;
	--pj-border: #ebebeb;
	--pj-soft: #f5f8f0;
	--pj-soft-2: #fafaf7;
	--pj-dark: #1e2619;
	--pj-radius: 4px;
	--pj-font: "Lato", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--pj-font-heading: "Playfair Display", Georgia, "Times New Roman", serif;
	--pj-container: 1240px;
	--pj-shadow: 0 10px 30px rgba(20, 30, 10, .08);
	--pj-ease: cubic-bezier(.25, .8, .25, 1);
}

/* =========================================================================
   2. Baza
   ========================================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: var(--pj-font);
	font-size: 15px;
	line-height: 1.75;
	color: var(--pj-text);
	background: #fff;
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; vertical-align: middle; }
a { color: var(--pj-heading); text-decoration: none; transition: color .2s, background-color .2s, border-color .2s; }
a:hover, a:focus { color: var(--pj-accent); }
h1, h2, h3, h4, h5, h6 {
	font-family: var(--pj-font-heading);
	color: var(--pj-heading);
	font-weight: 700;
	line-height: 1.3;
	margin: 0 0 .6em;
}
h1 { font-size: 40px; } h2 { font-size: 32px; } h3 { font-size: 24px; }
h4 { font-size: 20px; } h5 { font-size: 17px; } h6 { font-size: 15px; }
p { margin: 0 0 1.3em; }
hr { border: 0; border-top: 1px solid var(--pj-border); margin: 2em 0; }
blockquote { margin: 1.5em 0; padding: 1em 1.5em; border-left: 3px solid var(--pj-accent); background: var(--pj-soft-2); font-style: italic; }
table { width: 100%; border-collapse: collapse; margin-bottom: 1.5em; }
th, td { padding: 10px 12px; border: 1px solid var(--pj-border); text-align: left; }
th { color: var(--pj-heading); font-weight: 700; }
ul, ol { padding-left: 1.3em; }

.screen-reader-text {
	border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
	height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute !important; width: 1px; word-wrap: normal !important;
}
.screen-reader-text:focus {
	background: #fff; clip: auto !important; clip-path: none; color: var(--pj-heading); display: block;
	height: auto; left: 10px; top: 10px; padding: 12px 20px; width: auto; z-index: 100000; box-shadow: var(--pj-shadow);
}
:focus-visible { outline: 2px solid var(--pj-accent); outline-offset: 2px; }

.pj-container { width: 100%; max-width: var(--pj-container); margin: 0 auto; padding: 0 20px; }
.pj-icon { width: 1em; height: 1em; display: inline-block; vertical-align: -.125em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Formularze i przyciski */
input[type="text"], input[type="email"], input[type="url"], input[type="password"], input[type="search"],
input[type="number"], input[type="tel"], input[type="date"], select, textarea {
	width: 100%;
	max-width: 100%;
	padding: 10px 14px;
	font: inherit;
	color: var(--pj-heading);
	background: #fff;
	border: 1px solid var(--pj-border);
	border-radius: var(--pj-radius);
	transition: border-color .2s;
}
input:focus, select:focus, textarea:focus { border-color: var(--pj-accent); outline: none; }
select {
	appearance: none;
	padding-right: 36px;
	background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23999' stroke-width='1.5' fill='none'/%3E%3C/svg%3E") no-repeat right 14px center;
}
.pj-btn, button, input[type="submit"], input[type="button"], input[type="reset"],
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .woocommerce #respond input#submit,
.wp-block-button__link, .wp-element-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .5em;
	padding: 12px 28px;
	font-family: var(--pj-font);
	font-size: 13px;
	font-weight: 700;
	line-height: 1.4;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: #fff;
	background: var(--pj-accent);
	border: 2px solid var(--pj-accent);
	border-radius: var(--pj-radius);
	cursor: pointer;
	transition: all .25s var(--pj-ease);
}
.pj-btn:hover, button:hover, input[type="submit"]:hover,
.woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce input.button:hover, .woocommerce #respond input#submit:hover,
.wp-block-button__link:hover, .wp-element-button:hover {
	color: #fff;
	background: var(--pj-accent-dark);
	border-color: var(--pj-accent-dark);
}
.pj-btn--outline { background: transparent; color: var(--pj-heading); border-color: var(--pj-heading); }
.pj-btn--outline:hover { background: var(--pj-heading); border-color: var(--pj-heading); color: #fff; }
.pj-btn--light { background: #fff; color: var(--pj-heading); border-color: #fff; }
.pj-btn--light:hover { background: var(--pj-accent); border-color: var(--pj-accent); color: #fff; }
.woocommerce a.button.alt, .woocommerce button.button.alt, .woocommerce input.button.alt { background: var(--pj-accent); border-color: var(--pj-accent); color: #fff; }
.woocommerce a.button.alt:hover, .woocommerce button.button.alt:hover { background: var(--pj-accent-dark); border-color: var(--pj-accent-dark); }
.woocommerce a.button.disabled, .woocommerce button.button:disabled, .woocommerce button.button:disabled[disabled] { opacity: .5; cursor: not-allowed; }
button.pj-plain { background: none; border: 0; padding: 0; color: inherit; letter-spacing: 0; text-transform: none; font-weight: inherit; }
button.pj-plain:hover { background: none; color: var(--pj-accent); }

/* =========================================================================
   3. Górny pasek
   ========================================================================= */
.pj-topbar {
	background: var(--pj-soft-2);
	border-bottom: 1px solid var(--pj-border);
	font-size: 13px;
	color: var(--pj-muted);
}
.pj-topbar .pj-container { display: flex; justify-content: space-between; align-items: center; min-height: 42px; gap: 20px; }
.pj-topbar__left, .pj-topbar__right { display: flex; align-items: center; gap: 22px; }
.pj-topbar a { color: var(--pj-text); display: inline-flex; align-items: center; gap: 6px; }
.pj-topbar a:hover { color: var(--pj-accent); }
.pj-topbar .pj-icon { color: var(--pj-accent); }

/* =========================================================================
   4. Nagłówek
   ========================================================================= */
.pj-header {
	position: sticky;
	top: 0;
	z-index: 900;
	background: #fff;
	border-bottom: 1px solid var(--pj-border);
	transition: box-shadow .3s;
}
.admin-bar .pj-header { top: 32px; }
.pj-header.is-stuck { box-shadow: 0 4px 20px rgba(0, 0, 0, .06); }
.pj-header__inner { display: flex; align-items: center; gap: 30px; min-height: 90px; transition: min-height .3s; }
.pj-header.is-stuck .pj-header__inner { min-height: 70px; }
.pj-logo { flex: 0 0 auto; display: flex; align-items: center; }
.pj-logo img { max-height: 54px; width: auto; }
.pj-logo__text { font-family: var(--pj-font-heading); font-size: 26px; font-weight: 700; color: var(--pj-heading); }

.pj-nav { flex: 1 1 auto; display: flex; justify-content: center; }
.pj-menu, .pj-menu ul { list-style: none; margin: 0; padding: 0; }
.pj-menu { display: flex; flex-wrap: wrap; justify-content: center; }
.pj-menu > li { position: relative; }
.pj-menu > li > a {
	display: block;
	padding: 30px 16px;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--pj-heading);
	position: relative;
}
.pj-header.is-stuck .pj-menu > li > a { padding-top: 22px; padding-bottom: 22px; }
.pj-menu > li > a::after {
	content: "";
	position: absolute;
	left: 16px; right: 16px; bottom: 22px;
	height: 2px;
	background: var(--pj-accent);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform .3s var(--pj-ease);
}
.pj-header.is-stuck .pj-menu > li > a::after { bottom: 15px; }
.pj-menu > li:hover > a::after, .pj-menu > li.current-menu-item > a::after,
.pj-menu > li.current-menu-ancestor > a::after, .pj-menu > li.current-product_cat-ancestor > a::after { transform: scaleX(1); }
.pj-menu > li:hover > a, .pj-menu > .current-menu-item > a, .pj-menu > .current-menu-ancestor > a { color: var(--pj-accent); }
.pj-menu .menu-item-has-children > a { padding-right: 26px; }
.pj-menu > .menu-item-has-children > a::before {
	content: "";
	position: absolute;
	right: 12px; top: 50%;
	width: 5px; height: 5px;
	border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
	transform: translateY(-70%) rotate(45deg);
}
.pj-menu .sub-menu {
	position: absolute;
	left: 0; top: 100%;
	min-width: 240px;
	padding: 14px 0;
	background: #fff;
	border-top: 2px solid var(--pj-accent);
	box-shadow: var(--pj-shadow);
	opacity: 0;
	visibility: hidden;
	transform: translateY(10px);
	transition: all .25s var(--pj-ease);
	z-index: 10;
}
.pj-menu .sub-menu .sub-menu { left: 100%; top: -16px; }
.pj-menu li:hover > .sub-menu, .pj-menu li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.pj-nav .pj-menu > li:not(:hover):not(:focus-within) > .sub-menu { pointer-events: none; }
.pj-menu .sub-menu li { position: relative; }
.pj-menu .sub-menu a { display: block; padding: 7px 24px; font-size: 14px; color: var(--pj-text); }
.pj-menu .sub-menu a:hover { color: var(--pj-accent); padding-left: 30px; }
.pj-menu .sub-menu .menu-item-has-children > a::after {
	content: ""; position: absolute; right: 18px; top: 50%; width: 5px; height: 5px;
	border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-50%) rotate(-45deg);
}
/* Mega menu (klasa CSS „pj-mega” na elemencie menu) */
.pj-menu > li.pj-mega { position: static; }
.pj-menu > li.pj-mega > .sub-menu {
	left: 50%; transform: translate(-50%, 10px);
	width: min(760px, 100vw - 40px);
	display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0 20px; padding: 26px 20px;
}
.pj-menu > li.pj-mega:hover > .sub-menu, .pj-menu > li.pj-mega:focus-within > .sub-menu { transform: translate(-50%, 0); }
.pj-menu > li.pj-mega > .sub-menu .sub-menu { position: static; opacity: 1; visibility: inherit; transform: none; box-shadow: none; border: 0; padding: 0; min-width: 0; }
.pj-menu > li.pj-mega > .sub-menu > li > a { font-family: var(--pj-font-heading); font-weight: 700; color: var(--pj-heading); font-size: 16px; }
.pj-menu > li.pj-mega .menu-item-has-children > a::after { display: none; }

.pj-header__actions { flex: 0 0 auto; display: flex; align-items: center; gap: 6px; }
.pj-action {
	position: relative;
	display: inline-flex; align-items: center; justify-content: center;
	width: 42px; height: 42px;
	font-size: 20px;
	color: var(--pj-heading);
	background: none; border: 0; padding: 0; border-radius: 50%;
	letter-spacing: 0;
}
.pj-action:hover { color: var(--pj-accent); background: var(--pj-soft); }
.pj-cart-count {
	position: absolute;
	top: 2px; right: 0;
	min-width: 18px; height: 18px;
	padding: 0 5px;
	font-size: 11px; font-weight: 700; line-height: 18px; text-align: center;
	color: #fff; background: var(--pj-accent);
	border-radius: 9px;
}
.pj-cart { position: relative; }
.pj-cart__total { font-size: 14px; font-weight: 700; color: var(--pj-heading); margin-left: 4px; white-space: nowrap; }
.pj-minicart {
	position: absolute;
	right: 0; top: calc(100% + 18px);
	width: 340px;
	padding: 22px;
	background: #fff;
	border-top: 2px solid var(--pj-accent);
	box-shadow: var(--pj-shadow);
	opacity: 0; visibility: hidden; transform: translateY(10px);
	transition: all .25s var(--pj-ease);
	z-index: 20;
}
.pj-minicart::before { content: ""; position: absolute; left: 0; right: 0; top: -22px; height: 22px; }
.pj-cart:hover .pj-minicart, .pj-cart:focus-within .pj-minicart { opacity: 1; visibility: visible; transform: none; }
.pj-minicart .woocommerce-mini-cart { list-style: none; margin: 0 0 14px; padding: 0; max-height: 320px; overflow: auto; }
.pj-minicart .woocommerce-mini-cart-item { position: relative; padding: 0 24px 14px 76px; margin-bottom: 14px; border-bottom: 1px solid var(--pj-border); min-height: 74px; font-size: 14px; line-height: 1.5; }
.pj-minicart .woocommerce-mini-cart-item img { position: absolute; left: 0; top: 0; width: 60px; height: 60px; object-fit: cover; border: 1px solid var(--pj-border); }
.pj-minicart .woocommerce-mini-cart-item a:not(.remove) { font-weight: 700; display: block; }
.pj-minicart .woocommerce-mini-cart-item .remove { position: absolute; right: 0; top: 0; color: var(--pj-muted) !important; font-size: 18px; }
.pj-minicart .woocommerce-mini-cart-item .remove:hover { color: var(--pj-berry) !important; background: none; }
.pj-minicart .quantity { color: var(--pj-muted); }
.pj-minicart .woocommerce-mini-cart__total { display: flex; justify-content: space-between; margin: 0 0 14px; font-size: 15px; color: var(--pj-heading); }
.pj-minicart .woocommerce-mini-cart__buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0; }
.pj-minicart .woocommerce-mini-cart__buttons .button { padding: 10px; }
.pj-minicart .woocommerce-mini-cart__buttons .button:not(.checkout) { background: transparent; color: var(--pj-heading); border-color: var(--pj-heading); }
.pj-minicart .woocommerce-mini-cart__buttons .button:not(.checkout):hover { background: var(--pj-heading); color: #fff; }
.pj-minicart .woocommerce-mini-cart__empty-message { margin: 0; text-align: center; }

.pj-menu-toggle { display: none; }

/* Wyszukiwarka nakładkowa */
.pj-search-overlay {
	position: fixed; inset: 0; z-index: 2000;
	display: flex; align-items: center; justify-content: center;
	background: rgba(255, 255, 255, .97);
	opacity: 0; visibility: hidden; transition: all .3s;
}
.pj-search-overlay.is-open { opacity: 1; visibility: visible; }
.pj-search-overlay form { width: min(760px, 90vw); position: relative; transform: translateY(20px); transition: transform .3s; }
.pj-search-overlay.is-open form { transform: none; }
.pj-search-overlay input[type="search"] {
	font-family: var(--pj-font-heading); font-size: clamp(22px, 4vw, 40px); padding: 14px 60px 14px 0;
	border: 0; border-bottom: 2px solid var(--pj-heading); border-radius: 0; background: transparent;
}
.pj-search-overlay input[type="search"]:focus { border-color: var(--pj-accent); }
.pj-search-overlay button[type="submit"] { position: absolute; right: 0; top: 50%; transform: translateY(-50%); padding: 8px; font-size: 26px; background: none; border: 0; color: var(--pj-heading); }
.pj-search-overlay__hint { margin-top: 14px; color: var(--pj-muted); font-size: 14px; }
.pj-search-overlay__close { position: absolute; top: 30px; right: 30px; font-size: 30px; background: none; border: 0; color: var(--pj-heading); padding: 6px; }
.pj-search-overlay__close:hover { background: none; color: var(--pj-berry); transform: rotate(90deg); }

/* Menu mobilne */
.pj-offcanvas {
	position: fixed; top: 0; bottom: 0; left: 0; z-index: 1500;
	width: min(340px, 86vw);
	padding: 24px;
	background: #fff;
	overflow-y: auto;
	transform: translateX(-100%);
	transition: transform .35s var(--pj-ease);
}
.pj-offcanvas.is-open { transform: none; box-shadow: var(--pj-shadow); }
.pj-backdrop { position: fixed; inset: 0; z-index: 1400; background: rgba(15, 20, 10, .5); opacity: 0; visibility: hidden; transition: all .3s; }
.pj-backdrop.is-open { opacity: 1; visibility: visible; }
.pj-offcanvas__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.pj-offcanvas__head img { max-height: 40px; width: auto; }
.pj-offcanvas .pj-menu { display: block; }
.pj-offcanvas .pj-menu li { border-bottom: 1px solid var(--pj-border); position: relative; }
.pj-offcanvas .pj-menu > li > a { padding: 12px 40px 12px 0; }
.pj-offcanvas .pj-menu > li > a::after, .pj-offcanvas .pj-menu > .menu-item-has-children > a::before,
.pj-offcanvas .pj-menu .sub-menu .menu-item-has-children > a::after { display: none; }
.pj-offcanvas .pj-menu .sub-menu {
	position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0;
	display: none; padding: 0 0 10px 12px; min-width: 0; width: auto;
}
.pj-offcanvas .pj-menu li.pj-mega > .sub-menu { display: none; transform: none; width: auto; padding: 0 0 10px 12px; }
.pj-offcanvas .pj-menu li.is-open > .sub-menu { display: block; }
.pj-offcanvas .pj-menu .sub-menu li { border: 0; }
.pj-offcanvas .pj-menu .sub-menu a { padding: 6px 30px 6px 0; }
.pj-offcanvas .pj-menu .sub-menu a:hover { padding-left: 0; }
.pj-subtoggle {
	position: absolute; right: 0; top: 6px;
	width: 34px; height: 34px; padding: 0;
	background: var(--pj-soft) !important; border: 0; color: var(--pj-heading) !important; border-radius: 50%;
	font-size: 16px; letter-spacing: 0;
}
.pj-offcanvas .sub-menu .pj-subtoggle { top: 2px; width: 28px; height: 28px; }
.pj-subtoggle::before { content: "+"; }
li.is-open > .pj-subtoggle::before { content: "−"; }
.pj-offcanvas__extra { margin-top: 24px; font-size: 14px; display: grid; gap: 10px; }

/* =========================================================================
   5. Baner tytułu strony
   ========================================================================= */
.pj-page-title {
	position: relative;
	padding: 70px 0 64px;
	text-align: center;
	background-color: var(--pj-soft);
	background-image:
		radial-gradient(circle at 12% 30%, rgba(110, 168, 32, .10) 0 90px, transparent 91px),
		radial-gradient(circle at 88% 75%, rgba(215, 38, 61, .07) 0 120px, transparent 121px),
		radial-gradient(circle at 78% 18%, rgba(110, 168, 32, .08) 0 40px, transparent 41px);
	overflow: hidden;
}
.pj-page-title::after {
	content: "";
	position: absolute; right: 6%; bottom: -14px;
	width: 150px; height: 150px;
	background: url("assets/img/leaf.svg") no-repeat center / contain;
	opacity: .35;
	pointer-events: none;
}
.pj-page-title .h1 { font-family: var(--pj-font-heading); font-weight: 700; color: var(--pj-heading); line-height: 1.3; }
.pj-page-title h1, .pj-page-title .h1 { font-size: clamp(30px, 4vw, 46px); margin: 0 0 8px; }
.pj-page-title__desc { max-width: 720px; margin: 14px auto 0; color: var(--pj-text); }
.pj-page-title__desc p:last-child { margin: 0; }
.pj-breadcrumbs, .woocommerce .woocommerce-breadcrumb {
	margin: 0;
	font-size: 13px;
	letter-spacing: .05em;
	text-transform: uppercase;
	color: var(--pj-muted);
}
.pj-breadcrumbs a, .woocommerce .woocommerce-breadcrumb a { color: var(--pj-heading); }
.pj-breadcrumbs a:hover, .woocommerce .woocommerce-breadcrumb a:hover { color: var(--pj-accent); }
.pj-breadcrumbs .sep { margin: 0 8px; color: #ccc; }

/* =========================================================================
   6. Układ treści
   ========================================================================= */
.pj-main { padding: 70px 0 80px; }
.pj-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 50px; }
.pj-layout.has-sidebar { grid-template-columns: minmax(0, 1fr) 290px; }
.pj-layout.has-sidebar.sidebar-left { grid-template-columns: 290px minmax(0, 1fr); }
.pj-layout.has-sidebar.sidebar-left .pj-sidebar { order: -1; }
.pj-content > *:last-child { margin-bottom: 0; }
.entry-content::after { content: ""; display: table; clear: both; }
.entry-content > * { max-width: 100%; }
.pj-narrow { max-width: 860px; margin-left: auto; margin-right: auto; }
.pj-narrow h2 { font-size: 30px; margin-top: 0; }
.pj-narrow h3 { font-size: 21px; margin-top: 1.8em; }
.entry-content a { color: var(--pj-accent); text-decoration: underline; text-underline-offset: 2px; word-break: break-word; }
.entry-content a:hover { color: var(--pj-accent-dark); }
.alignleft { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.wp-caption-text, figcaption { font-size: 13px; color: var(--pj-muted); text-align: center; margin-top: 6px; }

/* Panel boczny */
.pj-sidebar .widget { margin-bottom: 44px; }
.pj-sidebar .widget:last-child { margin-bottom: 0; }
.widget-title, .pj-sidebar .widget h2, .pj-sidebar .wp-block-heading {
	position: relative;
	font-family: var(--pj-font-heading);
	font-size: 20px;
	margin: 0 0 22px;
	padding-bottom: 12px;
}
.widget-title::after, .pj-sidebar .widget h2::after {
	content: ""; position: absolute; left: 0; bottom: 0; width: 40px; height: 2px; background: var(--pj-accent);
}
.pj-sidebar ul { list-style: none; margin: 0; padding: 0; }
.pj-sidebar li { padding: 6px 0; }
.pj-sidebar li a { color: var(--pj-text); }
.pj-sidebar li a:hover { color: var(--pj-accent); }
.pj-sidebar .product-categories li, .pj-sidebar .wc-block-product-categories-list-item { position: relative; }
.pj-sidebar .product-categories .count { float: right; font-size: 12px; color: var(--pj-muted); }
.pj-sidebar .product-categories .children { padding-left: 14px; display: none; margin-top: 6px; border-left: 1px solid var(--pj-border); }
.pj-sidebar .product-categories .current-cat-parent > .children,
.pj-sidebar .product-categories .current-cat > .children,
.pj-sidebar .product-categories .is-open > .children { display: block; }
.pj-sidebar .product-categories .current-cat > a { color: var(--pj-accent); font-weight: 700; }
.pj-cat-toggle {
	position: absolute; right: -6px; top: 6px; width: 24px; height: 24px; padding: 0;
	background: none !important; border: 0; color: var(--pj-muted) !important; font-size: 14px; letter-spacing: 0;
}
.pj-sidebar .product-categories .cat-parent > .count { margin-right: 22px; }
.pj-cat-toggle::before { content: "+"; }
.pj-cat-toggle[aria-expanded="true"]::before { content: "−"; }
.pj-sidebar .tagcloud a, .pj-sidebar .wp-block-tag-cloud a {
	display: inline-block; margin: 0 4px 8px 0; padding: 4px 12px;
	font-size: 13px !important; color: var(--pj-text);
	border: 1px solid var(--pj-border); border-radius: var(--pj-radius);
}
.pj-sidebar .tagcloud a:hover { color: #fff; background: var(--pj-accent); border-color: var(--pj-accent); }
.pj-sidebar .product_list_widget li { display: flow-root; padding: 0 0 16px; margin-bottom: 16px; border-bottom: 1px solid var(--pj-border); line-height: 1.5; }
.pj-sidebar .product_list_widget li:last-child { border: 0; margin: 0; }
.pj-sidebar .product_list_widget img { float: left; width: 70px; height: 70px; object-fit: cover; margin-right: 14px; border: 1px solid var(--pj-border); }
.pj-sidebar .product_list_widget .product-title { display: block; color: var(--pj-heading); font-weight: 700; margin-bottom: 4px; }
.pj-sidebar .product_list_widget .amount { color: var(--pj-accent); font-weight: 700; }
.pj-sidebar-toggle { display: none; }
.pj-sidebar__close { display: none; }

/* Wyszukiwarka produktów w panelu */
.woocommerce-product-search, .search-form { position: relative; display: flex; }
.woocommerce-product-search input[type="search"], .search-form input[type="search"] { padding-right: 52px; }
.woocommerce-product-search button, .search-form button {
	position: absolute; right: 0; top: 0; bottom: 0; width: 48px; padding: 0;
	font-size: 0; background: transparent; border: 0; color: var(--pj-heading);
}
.woocommerce-product-search button::before, .search-form button::before {
	content: ""; display: block; width: 18px; height: 18px; margin: auto;
	background: currentColor;
	-webkit-mask: url("assets/img/search.svg") no-repeat center / contain; mask: url("assets/img/search.svg") no-repeat center / contain;
}
.woocommerce-product-search button:hover, .search-form button:hover { background: transparent; color: var(--pj-accent); }

/* Filtr cen */
.woocommerce .widget_price_filter .ui-slider { position: relative; height: 3px; margin: 10px 8px 24px; background: var(--pj-border); border-radius: 2px; }
.woocommerce .widget_price_filter .ui-slider .ui-slider-range { position: absolute; height: 100%; background: var(--pj-accent); }
.woocommerce .widget_price_filter .ui-slider .ui-slider-handle {
	position: absolute; top: -6px; width: 15px; height: 15px; margin-left: -7px;
	background: #fff; border: 2px solid var(--pj-accent); border-radius: 50%; cursor: ew-resize; outline: none;
}
.woocommerce .widget_price_filter .price_slider_amount { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; font-size: 14px; }
.woocommerce .widget_price_filter .price_slider_amount .button { padding: 8px 18px; font-size: 12px; }
.woocommerce .widget_price_filter .price_slider_amount input { display: none; }

/* =========================================================================
   7. Sklep – pasek narzędzi i siatka
   ========================================================================= */
.pj-shop-toolbar {
	display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px;
	margin-bottom: 34px; padding-bottom: 18px; border-bottom: 1px solid var(--pj-border);
}
.woocommerce .pj-shop-toolbar .woocommerce-result-count { margin: 0; font-size: 14px; float: none; }
.woocommerce .pj-shop-toolbar .woocommerce-ordering { margin: 0; float: none; }
.woocommerce .pj-shop-toolbar .woocommerce-ordering select { width: auto; min-width: 230px; padding-top: 8px; padding-bottom: 8px; font-size: 14px; }
.pj-shop-toolbar__right { display: flex; align-items: center; gap: 12px; }
.pj-view-switch { display: flex; gap: 4px; }
.pj-view-switch button {
	width: 38px; height: 38px; padding: 0; font-size: 16px; letter-spacing: 0;
	color: var(--pj-muted); background: #fff; border: 1px solid var(--pj-border);
}
.pj-view-switch button.is-active, .pj-view-switch button:hover { color: var(--pj-accent); background: #fff; border-color: var(--pj-accent); }

.woocommerce ul.products, .woocommerce-page ul.products {
	display: grid;
	grid-template-columns: repeat(var(--pj-cols, 3), minmax(0, 1fr));
	gap: 30px;
	margin: 0 0 50px;
	padding: 0;
	list-style: none;
}
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none; }
.woocommerce ul.products.columns-2 { --pj-cols: 2; }
.woocommerce ul.products.columns-3 { --pj-cols: 3; }
.woocommerce ul.products.columns-4 { --pj-cols: 4; }
.woocommerce ul.products.columns-5 { --pj-cols: 5; }
.woocommerce ul.products li.product, .woocommerce-page ul.products li.product {
	width: auto; float: none; margin: 0; padding: 0; text-align: center; position: relative;
}
/* Neutralizacja szerokości/odstępów z woocommerce-layout.css i -smallscreen.css (np. columns-3 → 30.75%) –
   układ kart wyznacza wyłącznie siatka CSS motywu, niezależnie od liczby kolumn. */
html .woocommerce ul.products[class*="columns-"] li.product,
html .woocommerce-page ul.products[class*="columns-"] li.product,
html .woocommerce[class*="columns-"] ul.products li.product,
html .woocommerce-page[class*="columns-"] ul.products li.product {
	width: auto; float: none; clear: none; margin: 0;
}
.pj-card__media { position: relative; overflow: hidden; background: #f5f6fa; margin: 0; }
.pj-card__media > a { position: relative; display: block; aspect-ratio: 4 / 5; }
.pj-card__media img {
	position: absolute; inset: 11% 11%;
	width: 78% !important; height: 78% !important; margin: 0 !important;
	object-fit: contain; transition: opacity .5s var(--pj-ease), transform .8s var(--pj-ease);
}
.pj-card__media .pj-card__alt { opacity: 0; }
.woocommerce ul.products li.product:hover .pj-card__media img { transform: scale(1.05); }
.woocommerce ul.products li.product:hover .pj-card__media .pj-card__alt { opacity: 1; }
.woocommerce ul.products li.product:hover .pj-card__media:has(.pj-card__alt) img:not(.pj-card__alt) { opacity: 0; }
.pj-card__actions {
	position: absolute; left: 0; right: 0; bottom: 18px;
	display: flex; justify-content: center; gap: 8px;
	opacity: 0; transform: translateY(16px);
	transition: all .35s var(--pj-ease);
}
.woocommerce ul.products li.product:hover .pj-card__actions,
.woocommerce ul.products li.product:focus-within .pj-card__actions { opacity: 1; transform: none; }
.pj-card__actions a, .woocommerce ul.products li.product .pj-card__actions .button {
	position: relative;
	display: inline-flex; align-items: center; justify-content: center;
	width: 42px; height: 42px; padding: 0; margin: 0;
	font-size: 17px; color: var(--pj-heading);
	background: #fff; border: 0; border-radius: 50%;
	box-shadow: 0 4px 14px rgba(0, 0, 0, .08);
	letter-spacing: 0;
}
.pj-card__actions a:hover, .woocommerce ul.products li.product .pj-card__actions .button:hover { color: #fff; background: var(--pj-accent); }
.woocommerce ul.products li.product .pj-card__actions .button.loading { opacity: .6; }
.woocommerce ul.products li.product .pj-card__actions .button.loading::after { display: none; }
.woocommerce ul.products li.product .pj-card__actions .button.added { background: var(--pj-accent); color: #fff; }
.pj-card__actions .pj-btn-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.pj-card__actions a[data-tip]::after {
	content: attr(data-tip);
	position: absolute; bottom: calc(100% + 10px); left: 50%;
	padding: 4px 10px; white-space: nowrap;
	font-size: 12px; font-weight: 700; color: #fff; background: var(--pj-heading); border-radius: 3px;
	transform: translateX(-50%) translateY(4px); opacity: 0; visibility: hidden; transition: all .2s;
	pointer-events: none;
}
.pj-card__actions a[data-tip]:hover::after { opacity: 1; visibility: visible; transform: translateX(-50%); }
.woocommerce ul.products li.product .added_to_cart { display: none; }

/* Dolna część karty */
.pj-card__body {
	padding: 26px 16px 28px;
	background: #fff;
	border: 1px solid var(--pj-border);
	border-top: 0;
	transition: border-color .3s;
}
.woocommerce ul.products li.product:hover .pj-card__body { border-color: #dfe6d4; }

/* Etykiety – zaokrąglone kwadraty z kropką */
.pj-badges { position: absolute; top: 20px; left: 20px; z-index: 2; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; pointer-events: none; }
.pj-badge, .woocommerce span.onsale {
	position: relative;
	display: inline-flex; align-items: center; justify-content: center;
	min-width: 42px; min-height: 42px; height: 42px;
	margin: 0; padding: 0 8px;
	font-family: var(--pj-font); font-size: 11px; font-weight: 700; line-height: 1; letter-spacing: 0; text-transform: uppercase;
	color: #fff; background: #f26c4f;
	border-radius: 11px;
}
.pj-badge::after, .woocommerce span.onsale::after {
	content: ""; position: absolute; top: 6px; right: 6px;
	width: 5px; height: 5px; border-radius: 50%; background: #fff;
}
.pj-badge--sale, .woocommerce span.onsale { background: #fbab53; }
.pj-badge--new { background: #f26c4f; }
.pj-badge--digital { background: var(--pj-accent); }
.pj-badge--soldout { background: #b8bcc4; }

.woocommerce ul.products li.product .woocommerce-loop-product__title {
	padding: 0; margin: 0 0 6px;
	font-family: var(--pj-font); font-size: 15px; font-weight: 700; line-height: 1.45;
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.woocommerce ul.products li.product .woocommerce-loop-product__title a { color: #333; }
.woocommerce ul.products li.product .woocommerce-loop-product__title a:hover { color: var(--pj-accent); }
.woocommerce ul.products li.product .price, .woocommerce div.product p.price, .woocommerce div.product span.price {
	display: block; margin: 0; font-size: 15px; font-weight: 700; color: var(--pj-accent);
}
.woocommerce ul.products li.product .price del, .woocommerce div.product p.price del { color: #8a8a8a; font-weight: 400; opacity: 1; margin-right: 10px; }
.woocommerce ul.products li.product .price ins, .woocommerce div.product p.price ins { text-decoration: none; }
.woocommerce ul.products li.product .star-rating { margin: 6px auto 0; }
.pj-card__excerpt { display: none; }

/* Nagłówek sekcji z ozdobnikiem */
.pj-heading { text-align: center; margin-bottom: 34px; }
.pj-heading h2, .woocommerce .related > h2, .woocommerce .upsells > h2, .woocommerce .cross-sells > h2 {
	font-family: var(--pj-font-heading); font-style: italic; font-weight: 700;
	font-size: clamp(32px, 4vw, 48px); line-height: 1.2; text-align: center; margin: 0 0 40px;
}
.pj-heading h2 { margin-bottom: 0; }
.pj-heading h2::after, .woocommerce .related > h2::after, .woocommerce .upsells > h2::after, .woocommerce .cross-sells > h2::after {
	content: ""; display: block; width: 200px; height: 22px; margin: 14px auto 0;
	background: url("assets/img/divider.svg") no-repeat center / contain;
}

/* Zakładki produktów */
.pj-product-tabs { margin-bottom: 20px; }
.pj-tabs__nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 44px; margin: 0 0 46px; }
.pj-tabs__nav button {
	padding: 4px 0; background: none; border: 0; border-radius: 0;
	font-size: 14px; font-weight: 700; letter-spacing: 0; text-transform: uppercase; color: #777;
}
.pj-tabs__nav button:hover, .pj-tabs__nav button.is-active { background: none; color: var(--pj-accent); }
.pj-tabs__pane[hidden] { display: none; }
.pj-tabs__pane { animation: pj-fade .4s var(--pj-ease); }
@keyframes pj-fade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* Widok listy */
.woocommerce ul.products.pj-list { grid-template-columns: 1fr; gap: 34px; }
.woocommerce ul.products.pj-list li.product { display: grid; grid-template-columns: 280px 1fr; gap: 34px; text-align: left; align-items: center; padding-bottom: 34px; border-bottom: 1px solid var(--pj-border); }
.woocommerce ul.products.pj-list .pj-card__media { margin: 0; }
.woocommerce ul.products.pj-list .pj-card__body { border: 0; padding: 0; background: none; }
.woocommerce ul.products.pj-list .woocommerce-loop-product__title { -webkit-line-clamp: unset; }
.woocommerce ul.products.pj-list .pj-card__excerpt { display: block; margin-top: 12px; }
.woocommerce ul.products.pj-list .woocommerce-loop-product__title { font-size: 22px; }

/* Paginacja */
.woocommerce nav.woocommerce-pagination, .pj-pagination { text-align: center; }
.woocommerce nav.woocommerce-pagination ul, .pj-pagination .nav-links { display: inline-flex; flex-wrap: wrap; gap: 8px; border: 0; margin: 0; padding: 0; list-style: none; }
.woocommerce nav.woocommerce-pagination ul li { border: 0; float: none; overflow: visible; }
.woocommerce nav.woocommerce-pagination ul li a, .woocommerce nav.woocommerce-pagination ul li span, .pj-pagination .page-numbers {
	display: inline-flex; align-items: center; justify-content: center;
	min-width: 42px; height: 42px; padding: 0 12px;
	font-weight: 700; color: var(--pj-heading);
	border: 1px solid var(--pj-border); border-radius: var(--pj-radius);
}
.woocommerce nav.woocommerce-pagination ul li a:hover, .woocommerce nav.woocommerce-pagination ul li span.current,
.pj-pagination .page-numbers:hover, .pj-pagination .page-numbers.current { color: #fff; background: var(--pj-accent); border-color: var(--pj-accent); }

/* Opis kategorii */
.woocommerce .term-description, .woocommerce .page-description { margin-bottom: 30px; }

/* =========================================================================
   8. Karta produktu
   ========================================================================= */
.woocommerce div.product { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 60px; align-items: start; }
.woocommerce div.product > * { grid-column: 1 / -1; }
.woocommerce div.product div.images, .woocommerce div.product div.summary { width: auto; float: none; margin-bottom: 60px; }
.woocommerce div.product div.images { grid-column: 1; position: relative; }
.woocommerce div.product div.summary { grid-column: 2; }
.woocommerce div.product > .onsale, .woocommerce div.product > .pj-badges { grid-column: 1; grid-row: 1; z-index: 3; align-self: start; }
.woocommerce div.product > .pj-badges { position: relative; top: 16px; left: 16px; height: 0; }
.woocommerce div.product div.images .woocommerce-product-gallery__wrapper { border-radius: var(--pj-radius); overflow: hidden; background: var(--pj-soft-2); }
.woocommerce div.product div.images img { border-radius: var(--pj-radius); }
.woocommerce div.product div.images .flex-control-thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-top: 10px; }
.woocommerce div.product div.images .flex-control-thumbs li { width: auto; float: none; }
.woocommerce div.product div.images .flex-control-thumbs img { opacity: .6; border: 1px solid var(--pj-border); transition: opacity .2s; }
.woocommerce div.product div.images .flex-control-thumbs img.flex-active, .woocommerce div.product div.images .flex-control-thumbs img:hover { opacity: 1; border-color: var(--pj-accent); }
.woocommerce div.product div.images .woocommerce-product-gallery__trigger { top: 16px; right: 16px; background: #fff; border-radius: 50%; box-shadow: 0 4px 14px rgba(0,0,0,.1); }
.woocommerce div.product .product_title { font-size: clamp(28px, 3vw, 38px); margin-bottom: 14px; }
.woocommerce div.product .woocommerce-product-rating { margin-bottom: 14px; }
.woocommerce div.product div.summary p.price { font-size: 26px; margin-bottom: 22px; }
.woocommerce div.product .woocommerce-product-details__short-description { padding-bottom: 24px; margin-bottom: 26px; border-bottom: 1px solid var(--pj-border); }
.woocommerce div.product .stock { font-weight: 700; }
.woocommerce div.product .stock.in-stock { color: var(--pj-accent); }
.woocommerce div.product .stock.out-of-stock { color: var(--pj-berry); }
.woocommerce div.product form.cart { display: flex; flex-wrap: wrap; align-items: stretch; gap: 12px; margin-bottom: 30px; }
.woocommerce div.product form.cart::before, .woocommerce div.product form.cart::after { display: none; }
.woocommerce div.product form.cart div.quantity { float: none; margin: 0; }
.woocommerce div.product form.cart .button { float: none; padding-left: 36px; padding-right: 36px; }
.woocommerce div.product form.variations_form { display: block; }
.woocommerce div.product form.cart .variations { margin-bottom: 18px; border: 0; }
.woocommerce div.product form.cart .variations th, .woocommerce div.product form.cart .variations td { border: 0; padding: 6px 0; vertical-align: middle; }
.woocommerce div.product form.cart .variations th { width: 110px; }
.woocommerce div.product form.cart .variations select { min-width: 220px; margin: 0; }
.woocommerce div.product form.cart .reset_variations { margin-left: 10px; font-size: 13px; }
.woocommerce div.product .woocommerce-variation-add-to-cart { display: flex; flex-wrap: wrap; gap: 12px; }
.woocommerce div.product .single_variation_wrap .woocommerce-variation-price { margin-bottom: 12px; }

.quantity { display: inline-flex; align-items: stretch; border: 1px solid var(--pj-border); border-radius: var(--pj-radius); background: #fff; }
.quantity .qty { width: 56px; text-align: center; border: 0; padding: 10px 0; -moz-appearance: textfield; }
.quantity .qty::-webkit-outer-spin-button, .quantity .qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.pj-qty-btn { width: 40px; padding: 0; font-size: 18px; color: var(--pj-heading); background: transparent; border: 0; letter-spacing: 0; }
.pj-qty-btn:hover { background: var(--pj-soft); color: var(--pj-accent); }

.woocommerce div.product .product_meta { font-size: 14px; display: grid; gap: 6px; padding-top: 22px; border-top: 1px solid var(--pj-border); }
.woocommerce div.product .product_meta > span { color: var(--pj-heading); font-weight: 700; }
.woocommerce div.product .product_meta a, .woocommerce div.product .product_meta .sku { font-weight: 400; color: var(--pj-text); }
.woocommerce div.product .product_meta a:hover { color: var(--pj-accent); }
.pj-product-perks { list-style: none; margin: 26px 0 0; padding: 20px 22px; background: var(--pj-soft); border-radius: var(--pj-radius); display: grid; gap: 10px; font-size: 14px; }
.pj-product-perks li { display: flex; gap: 12px; align-items: center; }
.pj-product-perks .pj-icon { font-size: 20px; color: var(--pj-accent); flex: 0 0 auto; }

.woocommerce div.product .woocommerce-tabs { margin-bottom: 70px; }
.woocommerce div.product .woocommerce-tabs ul.tabs {
	display: flex; justify-content: center; flex-wrap: wrap; gap: 0 40px;
	margin: 0 0 34px; padding: 0; border-bottom: 1px solid var(--pj-border); list-style: none; overflow: visible;
}
.woocommerce div.product .woocommerce-tabs ul.tabs::before, .woocommerce div.product .woocommerce-tabs ul.tabs::after { display: none; }
.woocommerce div.product .woocommerce-tabs ul.tabs li { margin: 0; padding: 0; background: none; border: 0; border-radius: 0; }
.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 a {
	display: block; padding: 14px 0; position: relative;
	font-family: var(--pj-font-heading); font-size: 20px; font-weight: 700; color: var(--pj-muted);
}
.woocommerce div.product .woocommerce-tabs ul.tabs li a::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--pj-accent); transform: scaleX(0); transition: transform .3s;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a, .woocommerce div.product .woocommerce-tabs ul.tabs li a:hover { color: var(--pj-heading); }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a::after { transform: scaleX(1); }
.woocommerce div.product .woocommerce-tabs .panel { margin: 0 auto; max-width: 900px; }
.woocommerce div.product .woocommerce-tabs .panel > h2:first-child { display: none; }
.woocommerce table.shop_attributes { border: 1px solid var(--pj-border); }
.woocommerce table.shop_attributes th, .woocommerce table.shop_attributes td { padding: 12px 16px; border: 1px solid var(--pj-border); font-style: normal; }
.woocommerce table.shop_attributes td p { padding: 0; }
.pj-section-title { text-align: center; font-size: 32px; margin-bottom: 40px; }

/* =========================================================================
   9. Koszyk, zamówienie, konto, komunikaty
   ========================================================================= */
.woocommerce-message, .woocommerce-info, .woocommerce-error, .woocommerce-noreviews, p.no-comments {
	position: relative; list-style: none;
	margin: 0 0 30px; padding: 16px 20px 16px 52px;
	color: var(--pj-heading); background: var(--pj-soft);
	border: 0; border-left: 3px solid var(--pj-accent); border-radius: var(--pj-radius);
}
.woocommerce-message::before, .woocommerce-info::before, .woocommerce-error::before { position: absolute; left: 20px; top: 16px; color: var(--pj-accent); }
.woocommerce-error { border-left-color: var(--pj-berry); background: #fdf1f2; }
.woocommerce-error::before { color: var(--pj-berry); }
.woocommerce-message .button, .woocommerce-info .button { float: right; padding: 6px 16px; }
.woocommerce table.shop_table { border: 1px solid var(--pj-border); border-radius: var(--pj-radius); border-collapse: separate; }
.woocommerce table.shop_table th { font-family: var(--pj-font); text-transform: uppercase; letter-spacing: .06em; font-size: 13px; }
.woocommerce table.shop_table td, .woocommerce table.shop_table th { padding: 16px; border-color: var(--pj-border); }
.woocommerce table.cart img { width: 80px; }
.woocommerce a.remove { color: var(--pj-muted) !important; font-weight: 400; }
.woocommerce a.remove:hover { background: var(--pj-berry); color: #fff !important; }
.woocommerce table.cart td.actions .coupon .input-text { width: 200px; margin-right: 8px; padding: 10px 14px; border-color: var(--pj-border); }
.woocommerce .cart-collaterals .cart_totals h2, .woocommerce-checkout h3, .woocommerce-account h2 { font-size: 24px; }
.woocommerce form .form-row label { color: var(--pj-heading); font-weight: 700; font-size: 14px; }
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea { padding: 10px 14px; }
.woocommerce-checkout #payment { background: var(--pj-soft-2); border-radius: var(--pj-radius); }
.woocommerce-checkout #payment div.payment_box { background: #fff; }
.woocommerce-checkout #payment div.payment_box::before { border-bottom-color: #fff; }
.woocommerce-account .woocommerce-MyAccount-navigation ul { list-style: none; margin: 0; padding: 0; border: 1px solid var(--pj-border); border-radius: var(--pj-radius); }
.woocommerce-account .woocommerce-MyAccount-navigation li { border-bottom: 1px solid var(--pj-border); }
.woocommerce-account .woocommerce-MyAccount-navigation li:last-child { border: 0; }
.woocommerce-account .woocommerce-MyAccount-navigation li a { display: block; padding: 12px 18px; color: var(--pj-text); }
.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a, .woocommerce-account .woocommerce-MyAccount-navigation li a:hover { color: var(--pj-accent); background: var(--pj-soft); }
.woocommerce .star-rating span::before, .woocommerce p.stars a { color: #f5b301; }

/* Bloki koszyka/zamówienia WooCommerce */
.wc-block-components-button:not(.is-link) { background: var(--pj-accent); color: #fff; border-radius: var(--pj-radius); }
.wc-block-components-button:not(.is-link):hover { background: var(--pj-accent-dark); }
.wp-block-woocommerce-cart, .wp-block-woocommerce-checkout { margin-bottom: 0; }
.wc-block-components-title, .wc-block-cart__totals-title { font-family: var(--pj-font-heading) !important; }

/* =========================================================================
   10. Strona główna
   ========================================================================= */
/* Sekcja „Polecamy” (naprzemienne wiersze) */
.pj-featured { position: relative; overflow: hidden; padding: 90px 0 70px; background: #f4f5f8; }
.pj-featured__head { text-align: center; margin-bottom: 30px; position: relative; z-index: 2; }
.pj-featured__head h2 { font-size: clamp(36px, 5vw, 56px); line-height: 1.15; margin: 0 0 14px; }
.pj-featured__head p { margin: 0; font-style: italic; font-size: 18px; color: var(--pj-accent); }
.pj-feat {
	display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 70px; align-items: center;
	padding: 30px 0;
}
.pj-feat + .pj-feat { margin-top: 20px; }
.pj-feat--reverse .pj-feat__media { order: 2; }
.pj-feat__media { position: relative; display: flex; align-items: center; justify-content: center; min-height: 480px; }
.pj-feat__shape { position: absolute; pointer-events: none; }
.pj-feat__shape--triangle {
	width: 400px; height: 400px; top: -70px; left: 22%;
	background: url("assets/img/shape-triangle.svg") no-repeat center / contain;
	transform: rotate(-8deg);
	filter: drop-shadow(0 18px 30px rgba(40, 50, 80, .05));
}
.pj-feat__shape--circle {
	width: 140px; height: 140px; left: 4%; top: 42%; border-radius: 50%; background: #fff;
	box-shadow: 0 18px 30px rgba(40, 50, 80, .04);
}
.pj-feat--reverse .pj-feat__shape--triangle { left: auto; right: 18%; top: auto; bottom: -60px; transform: scaleX(-1) rotate(-14deg); }
.pj-feat--reverse .pj-feat__shape--circle { left: auto; right: 2%; top: 12%; width: 110px; height: 110px; }
.pj-feat__img { position: relative; z-index: 1; display: block; max-width: 520px; width: 100%; }
.pj-feat__img img { width: 100%; height: auto; mix-blend-mode: multiply; transition: transform .8s var(--pj-ease); }
.pj-feat__img:hover img { transform: translateY(-8px); }
.pj-feat__price {
	position: absolute; z-index: 2; right: 8%; bottom: 14%;
	display: flex; flex-direction: column; align-items: center; justify-content: center;
	width: 132px; height: 126px;
	font-family: var(--pj-font-heading); font-style: italic; font-size: 28px; line-height: 1.1; color: #fff;
	background: #7cc472;
	border-radius: 46% 54% 42% 58% / 55% 44% 56% 45%;
	box-shadow: 0 14px 30px rgba(110, 168, 32, .25);
}
.pj-feat__price::before {
	content: ""; position: absolute; inset: -7px -5px -4px -8px;
	border: 1px solid #7cc472;
	border-radius: 58% 42% 55% 45% / 46% 56% 44% 54%;
	transform: rotate(-10deg);
}
.pj-feat__price small { font-size: 14px; }
.pj-feat__price .woocommerce-Price-currencySymbol { font-size: .7em; margin-left: 2px; }
.pj-feat--reverse .pj-feat__price { right: auto; left: 8%; }
.pj-feat__body { position: relative; z-index: 2; max-width: 500px; }
.pj-feat--reverse .pj-feat__body { justify-self: end; }
.pj-feat__title { font-family: var(--pj-font); font-size: 26px; font-weight: 700; line-height: 1.35; margin: 0 0 18px; }
.pj-feat__title a { color: #333; }
.pj-feat__title a:hover { color: var(--pj-accent); }
.pj-feat__desc { font-size: 16px; line-height: 1.85; margin: 0 0 26px; }
.pj-feat__meta { margin: 0 0 32px; display: grid; gap: 8px; }
.pj-feat__meta > div { display: flex; gap: 14px; align-items: baseline; }
.pj-feat__meta dt { min-width: 104px; font-size: 13px; font-weight: 700; text-transform: uppercase; color: #333; }
.pj-feat__meta dd { margin: 0; }
.pj-feat__meta dd a { color: var(--pj-text); }
.pj-feat__meta dd a:hover { color: var(--pj-accent); }
.pj-feat__btn { padding: 14px 34px; }
.pj-feat__btn .pj-icon { font-size: 16px; transition: transform .25s; }
.pj-feat__btn:hover .pj-icon { transform: translateX(4px); }

.pj-section { padding: 90px 0; }
.pj-section--soft { background: var(--pj-soft-2); }
.pj-section__head { text-align: center; margin-bottom: 50px; }
.pj-section__head h2 { font-size: clamp(28px, 3.4vw, 40px); margin-bottom: 10px; }
.pj-section__head p { max-width: 640px; margin: 0 auto; }
.pj-section__kicker { display: block; font-family: var(--pj-font-heading); font-style: italic; color: var(--pj-accent); font-size: 18px; margin-bottom: 6px; }
.pj-section__more { text-align: center; margin-top: 10px; }
.pj-section .woocommerce ul.products { margin-bottom: 40px; }

.pj-features { border-bottom: 1px solid var(--pj-border); }
.pj-features .pj-container { display: grid; grid-template-columns: repeat(4, 1fr); }
.pj-feature { display: flex; align-items: center; gap: 16px; padding: 34px 24px; }
.pj-feature + .pj-feature { border-left: 1px solid var(--pj-border); }
.pj-feature .pj-icon { font-size: 38px; color: var(--pj-accent); flex: 0 0 auto; stroke-width: 1.4; }
.pj-feature h3 { font-family: var(--pj-font); font-size: 15px; margin: 0 0 2px; letter-spacing: .02em; }
.pj-feature p { margin: 0; font-size: 14px; line-height: 1.5; }

.pj-cats { display: grid; grid-template-columns: repeat(var(--pj-cat-cols, 5), minmax(0, 1fr)); gap: 24px; }
.pj-cat { position: relative; display: block; text-align: center; }
.pj-cat__img {
	position: relative; display: block; aspect-ratio: 1; margin-bottom: 18px; overflow: hidden;
	border-radius: 50%; background: var(--pj-soft);
	box-shadow: inset 0 0 0 6px #fff, 0 0 0 1px var(--pj-border);
	transition: box-shadow .3s;
}
.pj-cat__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--pj-ease); }
.pj-cat__img .pj-icon { position: absolute; inset: 0; margin: auto; font-size: 54px; color: var(--pj-accent); stroke-width: 1.3; }
.pj-cat:hover .pj-cat__img { box-shadow: inset 0 0 0 6px #fff, 0 0 0 2px var(--pj-accent); }
.pj-cat:hover .pj-cat__img img { transform: scale(1.08); }
.pj-cat h3 { font-size: 19px; margin: 0 0 2px; }
.pj-cat span { font-size: 13px; color: var(--pj-muted); }

.pj-banners { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.pj-banner {
	position: relative; display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
	min-height: 280px; padding: 44px; overflow: hidden; border-radius: var(--pj-radius);
	background: var(--pj-soft);
}
.pj-banner--berry { background: linear-gradient(135deg, #fbe9ec, #f6d4da); }
.pj-banner--green { background: linear-gradient(135deg, #eaf4dc, #d9ebc3); }
.pj-banner::after {
	content: ""; position: absolute; right: -40px; bottom: -40px; width: 230px; height: 230px; border-radius: 50%;
	background: rgba(255, 255, 255, .45); transition: transform .6s var(--pj-ease);
}
.pj-banner:hover::after { transform: scale(1.15); }
.pj-banner > * { position: relative; z-index: 1; max-width: 60%; }
.pj-banner__kicker { font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--pj-berry); margin-bottom: 8px; }
.pj-banner--green .pj-banner__kicker { color: var(--pj-accent-dark); }
.pj-banner h3 { font-size: 28px; margin-bottom: 12px; }
.pj-banner p { margin-bottom: 20px; }
.pj-banner__img { position: absolute !important; right: 30px; bottom: 30px; top: 30px; max-width: 34% !important; z-index: 1; display: flex; align-items: center; }
.pj-banner__img img { max-height: 100%; width: auto; box-shadow: 0 15px 30px rgba(0,0,0,.15); transform: rotate(5deg); }

/* =========================================================================
   11. Wpisy / strony
   ========================================================================= */
.pj-posts { display: grid; gap: 50px; }
.pj-post__thumb { display: block; margin-bottom: 22px; overflow: hidden; border-radius: var(--pj-radius); }
.pj-post__thumb img { transition: transform .6s var(--pj-ease); width: 100%; }
.pj-post__thumb:hover img { transform: scale(1.04); }
.pj-post__meta { font-size: 13px; letter-spacing: .05em; text-transform: uppercase; color: var(--pj-muted); margin-bottom: 8px; }
.pj-post__title { font-size: 28px; }
.pj-404 { text-align: center; padding: 40px 0; }
.pj-404__code { font-family: var(--pj-font-heading); font-size: clamp(90px, 16vw, 180px); line-height: 1; color: var(--pj-accent); margin-bottom: 10px; }
.pj-404 .search-form { max-width: 460px; margin: 30px auto 0; }
.comments-area { margin-top: 60px; }

/* =========================================================================
   12. Stopka
   ========================================================================= */
.pj-footer { background: var(--pj-dark); color: rgba(255, 255, 255, .62); font-size: 14px; }
.pj-footer a { color: rgba(255, 255, 255, .75); }
.pj-footer a:hover { color: #fff; }
.pj-footer__top { padding: 80px 0 50px; }
.pj-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.pj-footer .widget-title, .pj-footer h2, .pj-footer h3 { font-size: 19px; color: #fff; margin-bottom: 24px; padding-bottom: 12px; position: relative; }
.pj-footer .widget-title::after, .pj-footer h2::after { content: ""; position: absolute; left: 0; bottom: 0; width: 30px; height: 2px; background: var(--pj-accent); }
.pj-footer ul { list-style: none; margin: 0; padding: 0; }
.pj-footer li { padding: 5px 0; }
.pj-footer li a { display: inline-block; transition: color .2s, transform .2s; }
.pj-footer li a:hover { transform: translateX(4px); }
.pj-footer__logo img { max-height: 54px; width: auto; margin-bottom: 20px; }
.pj-footer__contact li { display: flex; gap: 10px; align-items: flex-start; }
.pj-footer__contact .pj-icon { color: var(--pj-accent); margin-top: 5px; flex: 0 0 auto; }
.pj-social { display: flex; gap: 10px; margin-top: 20px; }
.pj-social a { width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: rgba(255,255,255,.08); font-size: 16px; }
.pj-social a:hover { background: var(--pj-accent); }
.pj-footer__bottom { border-top: 1px solid rgba(255, 255, 255, .08); padding: 22px 0; font-size: 13px; }
.pj-footer__bottom .pj-container { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.pj-footer__bottom ul { display: flex; flex-wrap: wrap; gap: 20px; }
.pj-footer__bottom li { padding: 0; }
.pj-payments { display: flex; gap: 8px; align-items: center; }
.pj-payments span { padding: 3px 9px; border: 1px solid rgba(255,255,255,.18); border-radius: 3px; font-size: 11px; font-weight: 700; letter-spacing: .05em; }

.pj-to-top {
	position: fixed; right: 24px; bottom: 24px; z-index: 800;
	width: 46px; height: 46px; padding: 0; border-radius: 50%; font-size: 18px;
	opacity: 0; visibility: hidden; transform: translateY(10px); transition: all .3s;
}
.pj-to-top.is-visible { opacity: 1; visibility: visible; transform: none; }

/* =========================================================================
   13. Responsywność
   ========================================================================= */
@media (max-width: 1199px) {
	.pj-menu > li > a { padding-left: 11px; padding-right: 11px; letter-spacing: .06em; }
	.pj-cart__total { display: none; }
	.pj-cats { --pj-cat-cols: 3; }
}
@media (max-width: 991px) {
	.pj-nav { display: none; }
	.pj-menu-toggle { display: inline-flex; }
	.pj-header__inner { min-height: 72px; justify-content: space-between; }
	.pj-logo { order: 0; }
	.pj-header__actions { order: 1; }
	.pj-layout.has-sidebar, .pj-layout.has-sidebar.sidebar-left { grid-template-columns: minmax(0, 1fr); }
	.pj-sidebar {
		position: fixed; top: 0; bottom: 0; right: 0; z-index: 1500;
		width: min(340px, 88vw); padding: 60px 24px 24px; background: #fff; overflow-y: auto;
		transform: translateX(100%); transition: transform .35s var(--pj-ease);
	}
	.pj-sidebar.is-open { transform: none; box-shadow: var(--pj-shadow); }
	.pj-sidebar__close { display: block; position: absolute; top: 14px; right: 14px; font-size: 26px; background: none; border: 0; color: var(--pj-heading); padding: 4px 10px; }
	.pj-sidebar__close:hover { background: none; color: var(--pj-berry); }
	.pj-sidebar-toggle { display: inline-flex; padding: 9px 16px; font-size: 12px; }
	.woocommerce ul.products, .woocommerce-page ul.products { --pj-cols: 2 !important; gap: 20px; }
	.woocommerce div.product { grid-template-columns: minmax(0, 1fr); }
	.woocommerce div.product div.summary { grid-column: 1; }
	.pj-feat { grid-template-columns: minmax(0, 1fr); gap: 20px; }
	.pj-feat--reverse .pj-feat__media { order: 0; }
	.pj-feat--reverse .pj-feat__body { justify-self: start; }
	.pj-feat__media { min-height: 0; }
	.pj-feat__img { max-width: 420px; }
	.pj-feat__shape--triangle { width: 280px; height: 280px; }
	.pj-feat__body { max-width: none; }
	.pj-features .pj-container { grid-template-columns: 1fr 1fr; }
	.pj-feature:nth-child(3) { border-left: 0; }
	.pj-feature:nth-child(n+3) { border-top: 1px solid var(--pj-border); }
	.pj-banners { grid-template-columns: 1fr; }
	.pj-footer__grid { grid-template-columns: 1fr 1fr; }
	.pj-section { padding: 64px 0; }
	.pj-topbar__left .pj-topbar__text { display: none; }
}
@media (max-width: 782px) { .admin-bar .pj-header { top: 46px; } }
@media (max-width: 600px) {
	body { font-size: 14px; }
	.admin-bar .pj-header { top: 0; }
	.pj-topbar { display: none; }
	.pj-main { padding: 44px 0 56px; }
	.pj-page-title { padding: 44px 0 40px; }
	.woocommerce ul.products.pj-list li.product { grid-template-columns: 1fr; }
	.pj-card__actions { opacity: 1; transform: none; bottom: 10px; }
	.pj-card__actions a, .woocommerce ul.products li.product .pj-card__actions .button { width: 38px; height: 38px; font-size: 16px; }
	.woocommerce ul.products li.product .woocommerce-loop-product__title { font-size: 14px; }
	.pj-card__body { padding: 16px 10px 18px; }
	.pj-badges { top: 10px; left: 10px; }
	.pj-badge { min-width: 36px; min-height: 36px; height: 36px; font-size: 10px; border-radius: 9px; }
	.pj-tabs__nav { gap: 6px 22px; margin-bottom: 30px; }
	.pj-cats { --pj-cat-cols: 2; }
	.pj-features .pj-container, .pj-footer__grid { grid-template-columns: 1fr; }
	.pj-feature + .pj-feature { border-left: 0; border-top: 1px solid var(--pj-border); }
	.pj-banner { padding: 30px; }
	.pj-banner > * { max-width: 100%; }
	.pj-banner__img { display: none !important; }
	.pj-shop-toolbar { flex-direction: column; align-items: stretch; }
	.woocommerce .pj-shop-toolbar .woocommerce-ordering select { width: 100%; min-width: 0; }
	.pj-view-switch { display: none; }
	.pj-featured { padding: 56px 0 40px; }
	.pj-feat__price { width: 104px; height: 100px; font-size: 22px; right: 2%; bottom: 6%; }
	.pj-feat--reverse .pj-feat__price { left: 2%; }
	.pj-feat__title { font-size: 22px; }
	.pj-feat__shape--circle { display: none; }
	.pj-action { width: 38px; height: 38px; font-size: 19px; }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
