/* ==========================================================================
   SKLEP (WooCommerce) - własne style (domyślny CSS Woo wyłączony w inc/shop.php).
   W duchu strony: kwadratowe rogi, czerwień --red, Zalando Sans.
   ========================================================================== */

.shop {
	--line: #e5e5e5;
	--soft: #f4f4f4;
	--muted: #666;
	--ok: #1f9d55;
	font-size: 15px;
	padding-bottom: 60px;
}
.shop .screen-reader-text,
.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;
}

/* reset list i linków z motywu (.content) wewnątrz sklepu */
.shop ul, .shop ol { margin: 0; padding: 0; list-style: none; }
.shop ul li, .shop ol > li { padding: 0; list-style: none; font-size: 15px; line-height: 1.7; }
.shop ol > li::before { content: none; }
/* opisy produktów: zwykłe listy z punktorami */
.shop .woocommerce-product-details__short-description ul,
.shop .woocommerce-Tabs-panel ul,
.shop .term-description ul { margin: 0 0 10px 20px; }
.shop .woocommerce-product-details__short-description ul li,
.shop .woocommerce-Tabs-panel ul li,
.shop .term-description ul li { list-style: square; padding: 0 0 6px; }
.shop p a, .shop ul a, .shop ol a { background: none; padding: 0; font-variation-settings: inherit; }
.shop p a:hover, .shop ul a:hover, .shop ol a:hover { background: none; }
.shop a:not(.button) { color: var(--red); transition: color .2s ease; }
.shop a:not(.button):hover { color: var(--darkred); }
.shop p, .shop td, .shop th, .shop label { font-size: 15px; line-height: 1.7; }
.shop p { padding: 0 0 10px; }
.shop h2, .shop h3 {
	font-variation-settings: "wght" 700, "wdth" 125;
	font-size: 22px;
	line-height: 1.25;
	margin: 0 0 14px;
	background: none;
	color: #111;
}
.shop h2::before, .shop h2::after, .shop h3::before, .shop h3::after { content: none; }
.shop hr { border: 0; border-top: 1px solid var(--line); margin: 24px 0; }
.shop fieldset { border: 1px solid var(--line); padding: 18px; margin: 18px 0; }
.shop legend { font-variation-settings: "wght" 700, "wdth" 125; padding: 0 8px; }
.shop address { font-style: normal; line-height: 1.7; }

/* ---------- przyciski ---------- */
.shop .button,
.shop button.button,
.shop input.button,
.shop a.button,
.shop .woocommerce-Button,
.shop #respond input#submit {
	display: inline-block;
	background: var(--red);
	color: #fff;
	border: 0;
	border-radius: 0;
	padding: 12px 20px;
	font-family: var(--zal);
	font-size: 14px;
	line-height: 1.2;
	font-variation-settings: "wght" 700, "wdth" 125;
	text-transform: uppercase;
	letter-spacing: .02em;
	text-align: center;
	transition: background .2s ease, color .2s ease;
}
.shop .button:hover, .shop button.button:hover, .shop a.button:hover,
.shop .woocommerce-Button:hover, .shop #respond input#submit:hover { background: var(--darkred); color: #fff; }
.shop .button.loading { opacity: .6; pointer-events: none; }
.shop .button.added::after { content: " \2713"; }
.shop .button:disabled, .shop .button.disabled, .shop button.button:disabled { background: #bbb; color: #fff; cursor: not-allowed; }
.shop a.added_to_cart { display: inline-block; margin: 8px 0 0 10px; font-size: 13px; }

/* ---------- pola formularzy ---------- */
.shop input[type="text"], .shop input[type="email"], .shop input[type="tel"], .shop input[type="password"],
.shop input[type="number"], .shop input[type="search"], .shop textarea, .shop select {
	width: 100%;
	padding: 11px 12px;
	border: 1px solid #ccc;
	border-radius: 0;
	background: #fff;
	font-family: var(--zal);
	font-size: 15px;
	color: #111;
	line-height: 1.3;
	box-shadow: none;
	transition: border-color .2s ease;
}
.shop textarea { min-height: 110px; resize: vertical; }
.shop input:focus, .shop select:focus, .shop textarea:focus { outline: 0; border-color: var(--red); }
.shop select {
	appearance: none;
	padding-right: 36px;
	cursor: pointer;
	background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23111' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 12px center;
}
.shop input[type="checkbox"], .shop input[type="radio"] { width: 18px; height: 18px; accent-color: var(--red); margin: 3px 0 0; flex: none; }
.shop .form-row { margin: 0 0 14px; padding: 0; }
.shop .form-row label { display: block; margin: 0 0 4px; font-variation-settings: "wght" 600, "wdth" 112.5; }
.shop .form-row label.checkbox, .shop .woocommerce-form__label-for-checkbox { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; font-variation-settings: "wght" 400, "wdth" 112.5; }
.shop .required { color: var(--red); text-decoration: none; border: 0; }
.shop .optional { color: var(--muted); }
.shop .woocommerce-input-wrapper { display: block; }
.shop .form-row.woocommerce-invalid input, .shop .form-row.woocommerce-invalid select { border-color: var(--red); }
.shop .form-row.woocommerce-validated input { border-color: var(--ok); }
@media (min-width: 640px) {
	.shop .form-row-first, .shop .form-row-last { width: calc(50% - 8px); float: left; }
	.shop .form-row-last { float: right; }
	.shop .form-row-wide { clear: both; }
}
.shop form::after, .shop .col2-set::after, .shop .woocommerce-billing-fields__field-wrapper::after,
.shop .woocommerce-shipping-fields__field-wrapper::after, .shop .woocommerce-address-fields__field-wrapper::after { content: ""; display: table; clear: both; }
.shop .password-input { position: relative; display: block; }
.shop .show-password-input { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); background: none; border: 0; padding: 8px; color: var(--muted); }
.shop .show-password-input::before { content: "\1F441"; font-size: 15px; }
.shop .woocommerce-password-strength { font-size: 13px; padding: 6px 10px; margin-top: 6px; background: var(--soft); }
.shop .woocommerce-password-strength.strong { background: #edf8f1; color: #1f7a45; }
.shop .woocommerce-password-strength.short, .shop .woocommerce-password-strength.bad { background: #fdecec; color: var(--darkred); }

/* select2 (pole kraju na kasie / koncie) */
.shop .select2-container .select2-selection--single { height: 44px; border: 1px solid #ccc; border-radius: 0; }
.shop .select2-container .select2-selection--single .select2-selection__rendered { line-height: 42px; padding-left: 12px; color: #111; }
.shop .select2-container .select2-selection--single .select2-selection__arrow { height: 42px; right: 8px; }
.select2-dropdown { border-color: #ccc !important; border-radius: 0 !important; font-family: var(--zal); }
.select2-container--default .select2-results__option--highlighted[aria-selected],
.select2-container--default .select2-results__option--highlighted[data-selected] { background: var(--red) !important; }

/* ładowanie (blockUI) */
.shop .blockUI.blockOverlay { position: relative; }
.shop .blockUI.blockOverlay::before {
	content: ""; position: absolute; top: 50%; left: 50%; width: 30px; height: 30px; margin: -15px 0 0 -15px;
	border: 3px solid var(--line); border-top-color: var(--red); border-radius: 50%; animation: pp-spin .7s linear infinite;
}
@keyframes pp-spin { to { transform: rotate(360deg); } }

/* ---------- komunikaty ---------- */
.shop .woocommerce-message, .shop .woocommerce-info, .shop .woocommerce-error {
	background: var(--soft);
	color: #111;
	border-top: 3px solid var(--red);
	padding: 14px 20px;
	margin: 0 0 24px;
	list-style: none;
	overflow: hidden;
}
.shop .woocommerce-error { background: #fdecec; }
.shop .woocommerce-message .button, .shop .woocommerce-info .button { float: right; margin: -4px 0 0 20px; }
.shop .woocommerce-notices-wrapper:empty { display: none; }

/* ---------- układ: sidebar + zawartość ---------- */
.shop-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 40px; align-items: start; }
.shop-layout .shop-sidebar { order: -1; }
.shop-sidebar .side-box { margin: 0 0 24px; padding: 20px; background: var(--soft); border-top: 3px solid var(--red); }
.shop-sidebar h3 { font-size: 16px; margin: 0 0 12px; text-transform: uppercase; }
.shop-sidebar ul.side-cats li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 15px; color: var(--muted); }
.shop-sidebar ul.side-cats li:last-child { border-bottom: 0; }
.shop-sidebar ul.side-cats a { color: #111; }
.shop-sidebar ul.side-cats .children { flex-basis: 100%; }
.shop-sidebar ul.side-cats a:hover, .shop-sidebar ul.side-cats .current-cat > a { color: var(--red); }
.shop-sidebar ul.side-cats .children { padding-left: 14px; }
.shop-sidebar form { display: flex; gap: 6px; }
.shop-sidebar form input[type="search"] { flex: 1; min-width: 0; }
.shop-sidebar form button { padding: 0 14px; }

/* ---------- lista produktów: 3 kolumny ---------- */
.shop .woocommerce-result-count { float: left; padding-top: 10px; margin: 0 0 24px; font-size: 14px; }
.shop .woocommerce-ordering { float: right; margin: 0 0 24px; }
.shop .woocommerce-ordering select { width: auto; }
.shop ul.products {
	clear: both;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
	margin: 0 0 30px;
}
.shop ul.products li.product {
	margin: 0;
	padding: 0 0 20px;
	display: flex;
	flex-direction: column;
	position: relative;
	background: #fff;
	border: 1px solid var(--line);
	box-shadow: var(--shd);
	transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.shop ul.products li.product:hover { transform: translateY(-6px); border-color: var(--red); box-shadow: 0 12px 30px rgba(230, 0, 22, .12); }
.shop ul.products li.product a.woocommerce-LoopProduct-link { display: flex; flex-direction: column; flex: 1; color: #111; }
.shop ul.products li.product a img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; margin: 0 0 16px; }
.shop ul.products li.product .woocommerce-loop-product__title {
	font-size: 17px;
	line-height: 1.3;
	padding: 0 20px;
	margin: 0 0 8px;
}
.shop .price { color: var(--red); font-variation-settings: "wght" 700, "wdth" 112.5; }
.shop ul.products li.product .price { display: block; padding: 0 20px; margin: 0 0 16px; font-size: 18px; }
.shop .price del { color: #888; font-size: .85em; }
.shop .price ins { text-decoration: none; background: none; }
.shop ul.products li.product .button { margin: auto 20px 0; align-self: flex-start; }
.shop ul.products li.product .star-rating { margin: 0 20px 10px; }
.shop span.onsale {
	position: absolute; top: 12px; left: 12px; z-index: 2; margin: 0;
	background: var(--red); color: #fff; padding: 6px 10px; line-height: 1.2; font-size: 12px;
	font-variation-settings: "wght" 700, "wdth" 125; text-transform: uppercase;
}
.shop .star-rating { position: relative; display: block; width: 5.4em; height: 1em; line-height: 1; font-size: 14px; overflow: hidden; color: var(--red); letter-spacing: 2px; }
.shop .star-rating::before { content: "\2605\2605\2605\2605\2605"; color: #ccc; position: absolute; left: 0; top: 0; }
.shop .star-rating span { position: absolute; left: 0; top: 0; overflow: hidden; padding-top: 1.5em; height: 0; }
.shop .star-rating span::before { content: "\2605\2605\2605\2605\2605"; position: absolute; left: 0; top: 0; }

/* paginacja */
.shop nav.woocommerce-pagination { clear: both; text-align: center; }
.shop nav.woocommerce-pagination ul { display: inline-flex; gap: 6px; }
.shop nav.woocommerce-pagination ul li a, .shop nav.woocommerce-pagination ul li span { display: block; padding: 8px 14px; background: #eee; color: #111; }
.shop nav.woocommerce-pagination ul li a:hover, .shop nav.woocommerce-pagination ul li span.current { background: var(--red); color: #fff; }

/* ---------- strona produktu ---------- */
.shop div.product { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.shop div.product .woocommerce-tabs, .shop div.product .related, .shop div.product .upsells { grid-column: 1 / -1; }
.shop .woocommerce-product-gallery { position: relative; margin: 0; }
.shop .woocommerce-product-gallery figure { margin: 0; }
.shop .woocommerce-product-gallery__wrapper { margin: 0; }
.shop .woocommerce-product-gallery__image img { width: 100%; height: auto; }
.shop .woocommerce-product-gallery__trigger {
	position: absolute; top: 12px; right: 12px; z-index: 9; width: 36px; height: 36px; background: #fff; color: #111;
	text-indent: -9999px; overflow: hidden; box-shadow: var(--shd);
}
.shop .woocommerce-product-gallery__trigger::before { content: "+"; position: absolute; inset: 0; text-indent: 0; text-align: center; line-height: 36px; font-size: 22px; }
.shop .flex-control-thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin: 8px 0 0; }
.shop .flex-control-thumbs li { width: auto; }
.shop .flex-control-thumbs img { opacity: .6; transition: opacity .2s ease; aspect-ratio: 4 / 3; object-fit: cover; cursor: pointer; }
.shop .flex-control-thumbs img.flex-active, .shop .flex-control-thumbs img:hover { opacity: 1; }
.shop div.product .product_title { font-size: 28px; margin: 0 0 12px; }
.shop div.product p.price, .shop div.product span.price { font-size: 26px; margin: 0 0 18px; }
.shop .woocommerce-product-details__short-description { margin: 0 0 20px; }
.shop div.product form.cart { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin: 0 0 24px; }
.shop div.product form.cart .variations { width: 100%; margin: 0 0 6px; }
.shop div.product form.cart .variations th, .shop div.product form.cart .variations td { display: block; padding: 0 0 6px; text-align: left; }
.shop div.product form.cart .variations select { min-width: 220px; max-width: 100%; width: auto; }
.shop .woocommerce-variation { width: 100%; }
.shop .woocommerce-variation-add-to-cart { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; width: 100%; }
.shop .reset_variations { display: inline-block; margin-top: 6px; font-size: 13px; }
.shop .quantity { display: inline-flex; }
.shop .quantity .qty { width: 80px; text-align: center; }
.shop .product_meta { font-size: 14px; color: var(--muted); }
.shop .product_meta > span { display: block; }
.shop .woocommerce-tabs ul.tabs { display: flex; gap: 6px; margin: 0 0 20px; border-bottom: 2px solid var(--line); }
.shop .woocommerce-tabs ul.tabs li { background: #eee; }
.shop .woocommerce-tabs ul.tabs li a { display: block; padding: 10px 18px; color: #111; font-variation-settings: "wght" 600, "wdth" 112.5; }
.shop .woocommerce-tabs ul.tabs li.active { background: var(--red); }
.shop .woocommerce-tabs ul.tabs li.active a { color: #fff; }
.shop .woocommerce-tabs .panel { margin: 0 0 30px; }
.shop .woocommerce-tabs .panel h2:first-child { display: none; }
.shop .related > h2, .shop .upsells > h2 { margin: 20px 0; }
.shop .woocommerce-product-attributes { width: 100%; border-collapse: collapse; }
.shop .woocommerce-product-attributes th, .shop .woocommerce-product-attributes td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.shop .woocommerce-product-attributes th { width: 160px; background: var(--soft); }
.shop .woocommerce-Reviews-title { font-size: 20px; }
.shop #reviews ol.commentlist li { padding: 12px 0; border-bottom: 1px solid var(--line); }

/* ---------- tabele (koszyk, kasa, zamówienia) ---------- */
.shop table.shop_table, .shop table.woocommerce-table { width: 100%; border-collapse: collapse; border: 1px solid var(--line); background: #fff; margin: 0 0 24px; }
.shop table.shop_table th, .shop table.shop_table td { padding: 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.shop table.shop_table thead th { background: var(--soft); font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-variation-settings: "wght" 700, "wdth" 112.5; }
.shop table.shop_table tfoot th, .shop table.shop_table tfoot td { font-variation-settings: "wght" 700, "wdth" 112.5; }
.shop table.shop_table .order-total .amount { color: var(--red); font-size: 20px; }
.shop table.shop_table dl.variation, .shop table.shop_table .wc-item-meta { margin: 6px 0 0; font-size: 13px; color: var(--muted); }
.shop table.shop_table dl.variation dt, .shop table.shop_table dl.variation dd { display: inline; margin: 0; }
.shop table.shop_table dl.variation dd p { display: inline; padding: 0; }

/* ---------- koszyk ---------- */
.woocommerce-cart .shop > .woocommerce { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 40px; align-items: start; }
.woocommerce-cart .shop > .woocommerce > .woocommerce-notices-wrapper,
.woocommerce-cart .shop > .woocommerce > .cart-empty,
.woocommerce-cart .shop > .woocommerce > .return-to-shop,
.woocommerce-cart .shop > .woocommerce > .wc-empty-cart-message { grid-column: 1 / -1; }
.woocommerce-cart-form .product-thumbnail { width: 96px; }
.woocommerce-cart-form .product-thumbnail img { width: 72px; height: 72px; object-fit: cover; }
.woocommerce-cart-form .product-name a { color: #111; font-variation-settings: "wght" 700, "wdth" 112.5; }
.woocommerce-cart-form .product-remove { width: 44px; text-align: center; }
.shop a.remove { display: inline-grid; place-items: center; width: 30px; height: 30px; border: 1px solid var(--line); color: var(--muted) !important; font-size: 18px; line-height: 1; }
.shop a.remove:hover { border-color: var(--red); background: var(--red); color: #fff !important; }
.woocommerce-cart-form td.actions { background: var(--soft); }
.woocommerce-cart-form td.actions .coupon { float: left; display: inline-flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.woocommerce-cart-form td.actions .coupon label { display: none; }
.woocommerce-cart-form td.actions .coupon input.input-text { width: 200px; }
.woocommerce-cart-form td.actions > .button { float: right; }
.woocommerce-js .woocommerce-cart-form button[name="update_cart"] { display: none; } /* ilość aktualizuje się sama (shop.js) */
.cart-collaterals { position: sticky; top: 120px; }
.cart-collaterals .cart_totals { background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--red); padding: 24px; }
.cart-collaterals .cart_totals table.shop_table { border: 0; margin: 0 0 18px; }
.cart-collaterals .cart_totals table.shop_table th, .cart-collaterals .cart_totals table.shop_table td { padding: 12px 0; }
.cart-collaterals .cart_totals table.shop_table td { text-align: right; }
.wc-proceed-to-checkout .checkout-button { display: block; width: 100%; padding: 16px 20px; font-size: 15px; }
.woocommerce-shipping-calculator { margin-top: 10px; text-align: left; }
.woocommerce-shipping-calculator .shipping-calculator-form { margin-top: 12px; }
ul.woocommerce-shipping-methods, #shipping_method { text-align: left; }
ul.woocommerce-shipping-methods li, #shipping_method li { display: flex; align-items: flex-start; gap: 8px; margin: 0 0 8px; }
.woocommerce-shipping-destination { font-size: 13px; color: var(--muted); margin: 8px 0 0; }
.cart-empty.woocommerce-info { font-size: 17px; padding: 22px 24px; }
.return-to-shop { margin: 0; }

/* ---------- zamówienie ---------- */
.shop .woocommerce-form-coupon-toggle .woocommerce-info, .shop .woocommerce-form-login-toggle .woocommerce-info { margin-bottom: 16px; }
.shop form.checkout_coupon, .shop form.woocommerce-form-login { border: 1px solid var(--line); background: var(--soft); padding: 22px; margin: 0 0 28px; }
.shop form.checkout_coupon { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.shop form.checkout_coupon > p:first-child { width: 100%; margin: 0; }
.shop form.checkout_coupon .form-row { margin: 0; }
.shop form.checkout_coupon .form-row-first { flex: 1; width: auto; float: none; }
.shop form.checkout_coupon .form-row-last { width: auto; float: none; }
form.checkout { display: grid; grid-template-columns: minmax(0, 1fr) 420px; grid-template-rows: auto auto 1fr; gap: 0 48px; align-items: start; }
form.checkout > .woocommerce-NoticeGroup { grid-column: 1 / -1; }
form.checkout #customer_details { grid-column: 1; grid-row: 2 / 4; }
form.checkout #order_review_heading { grid-column: 2; grid-row: 2; }
form.checkout #order_review { grid-column: 2; grid-row: 3; position: sticky; top: 120px; }
#customer_details .col-1, #customer_details .col-2 { width: 100%; float: none; }
#customer_details .col-2 { margin-top: 18px; }
#ship-to-different-address label { display: flex; gap: 10px; align-items: center; cursor: pointer; }
.shop #order_review_heading { background: #111; color: #fff; padding: 16px 22px; margin: 0; }
.shop #order_review { border: 1px solid var(--line); border-top: 0; background: #fff; padding: 6px 22px 22px; }
.shop #order_review table.shop_table { border: 0; margin: 0 0 18px; }
.shop #order_review table.shop_table th, .shop #order_review table.shop_table td { padding: 12px 0; }
.shop #order_review table.shop_table thead th { background: none; }
.shop #order_review table.shop_table td.product-total, .shop #order_review table.shop_table tfoot td { text-align: right; }
.shop #payment ul.payment_methods { margin: 0 0 18px; border: 1px solid var(--line); }
.shop #payment ul.payment_methods > li { padding: 14px 16px; border-bottom: 1px solid var(--line); }
.shop #payment ul.payment_methods > li:last-child { border-bottom: 0; }
.shop #payment ul.payment_methods > li > label { display: inline-flex; align-items: center; gap: 8px; margin-left: 6px; cursor: pointer; }
.shop #payment ul.payment_methods > li > label img { display: inline-block; max-height: 24px; width: auto; }
.shop #payment .payment_box { margin: 12px 0 0; padding: 14px 16px; background: var(--soft); font-size: 14px; }
.shop #payment .payment_box p:last-child { margin: 0; padding: 0; }
.shop .woocommerce-terms-and-conditions-wrapper { font-size: 13px; color: var(--muted); margin-bottom: 16px; }
.shop #place_order { width: 100%; padding: 16px; font-size: 15px; float: none; }

/* podziękowanie / szczegóły zamówienia */
.shop .woocommerce-thankyou-order-received { font-size: 18px; padding: 18px 22px; border-top: 3px solid var(--ok); background: #edf8f1; margin: 0 0 24px; }
.shop ul.woocommerce-order-overview { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); border: 1px solid var(--line); margin: 0 0 30px; }
.shop ul.woocommerce-order-overview li { padding: 14px 16px; border-right: 1px solid var(--line); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.shop ul.woocommerce-order-overview li:last-child { border-right: 0; }
.shop ul.woocommerce-order-overview li strong { display: block; margin-top: 4px; font-size: 15px; text-transform: none; letter-spacing: 0; color: #111; }
.shop .woocommerce-customer-details .col2-set { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.shop .woocommerce-customer-details address { border: 1px solid var(--line); padding: 18px; }

/* ---------- moje konto ---------- */
.woocommerce-account.logged-in .shop > .woocommerce { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 40px; align-items: start; }
.shop .woocommerce-MyAccount-navigation ul { border: 1px solid var(--line); }
.shop .woocommerce-MyAccount-navigation li a { display: block; padding: 12px 16px; color: #111; border-bottom: 1px solid var(--line); }
.shop .woocommerce-MyAccount-navigation li:last-child a { border-bottom: 0; }
.shop .woocommerce-MyAccount-navigation li a:hover { background: var(--soft); }
.shop .woocommerce-MyAccount-navigation li.is-active a { background: var(--red); color: #fff; }
.shop .woocommerce-Addresses { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.shop .woocommerce-Address { border: 1px solid var(--line); padding: 18px; }
.shop .woocommerce-Address-title { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.shop .woocommerce-Address-title h2 { font-size: 18px; }
.shop #customer_login.col2-set { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.shop form.woocommerce-form-login, .shop form.woocommerce-form-register, .shop form.woocommerce-ResetPassword, .shop form.woocommerce-EditAccountForm { border: 1px solid var(--line); padding: 24px; background: #fff; margin: 0; }
.shop .woocommerce-LostPassword { margin: 14px 0 0; font-size: 14px; }

/* ---------- koszyk w nagłówku (pod przyciskiem MENU) i mini-koszyk ---------- */
.pp-cart { display: none; position: absolute; top: 100%; left: 0; right: 0; margin-top: 6px; }
body.woocommerce .pp-cart, body.woocommerce-page .pp-cart { display: block; }
.pp-cart-link { display: flex; align-items: center; justify-content: center; gap: 6px; height: 46px; background: #111; color: #fff; position: relative; transition: background .2s ease; }
.pp-cart-link:hover { background: #333; color: #fff; }
.pp-cart-link svg { width: 20px; height: 20px; }
.pp-cart-count { min-width: 20px; height: 20px; padding: 0 5px; display: inline-grid; place-items: center; background: #555; color: #fff; font-size: 12px; line-height: 1; font-variation-settings: "wght" 700, "wdth" 112.5; }
.pp-cart-count.has-items { background: var(--red); }
.pp-minicart {
	position: absolute; right: 0; top: calc(100% + 8px); width: 340px; max-width: 90vw; background: #fff; color: #111;
	border: 1px solid #e5e5e5; border-top: 3px solid var(--red); box-shadow: 0 12px 40px rgba(0, 0, 0, .25); padding: 18px;
	opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .15s ease, transform .15s ease, visibility .15s; z-index: 60;
}
.pp-cart.is-open .pp-minicart { opacity: 1; visibility: visible; transform: translateY(0); }
.pp-minicart::before { content: ""; position: absolute; top: -16px; right: 0; left: 0; height: 16px; }
.pp-minicart ul { margin: 0; padding: 0; list-style: none; }
.pp-minicart .woocommerce-mini-cart { margin: 0 0 10px; max-height: 320px; overflow-y: auto; }
.pp-minicart .woocommerce-mini-cart-item { padding: 12px 0; border-bottom: 1px solid #e5e5e5; position: relative; font-size: 14px; line-height: 1.3; }
.pp-minicart .woocommerce-mini-cart-item a:not(.remove) { display: flex; align-items: center; gap: 12px; padding-right: 26px; color: #111; font-variation-settings: "wght" 600, "wdth" 112.5; }
.pp-minicart .woocommerce-mini-cart-item a:not(.remove):hover { color: var(--red); }
.pp-minicart .woocommerce-mini-cart-item img { width: 52px; height: 52px; object-fit: cover; flex: none; margin: 0; }
.pp-minicart .woocommerce-mini-cart-item .quantity { display: block; margin: 4px 0 0 64px; color: #666; font-size: 13px; }
.pp-minicart a.remove { position: absolute; top: 10px; right: 0; width: 20px; height: 20px; display: grid; place-items: center; color: #666; font-size: 16px; line-height: 1; }
.pp-minicart a.remove:hover { color: var(--red); }
.pp-minicart .woocommerce-mini-cart__total { display: flex; justify-content: space-between; align-items: baseline; margin: 12px 0; padding: 0; font-variation-settings: "wght" 700, "wdth" 112.5; }
.pp-minicart .woocommerce-mini-cart__total .amount { color: var(--red); font-size: 17px; }
.pp-minicart .woocommerce-mini-cart__buttons { display: flex; gap: 10px; margin: 0; padding: 0; }
.pp-minicart .woocommerce-mini-cart__buttons .button { flex: 1; display: block; padding: 12px 8px; font-size: 13px; background: #111; color: #fff; text-align: center; font-family: var(--zal); font-variation-settings: "wght" 700, "wdth" 125; text-transform: uppercase; }
.pp-minicart .woocommerce-mini-cart__buttons .button.checkout { background: var(--red); }
.pp-minicart .woocommerce-mini-cart__buttons .button:hover { background: var(--darkred); color: #fff; }
.pp-minicart .woocommerce-mini-cart__empty-message { color: #666; margin: 0; text-align: center; padding: 14px 0; }

/* ---------- mniejsze ekrany ---------- */
@media (max-width: 1100px) {
	.shop-layout { grid-template-columns: 1fr; }
	.shop-layout .shop-sidebar { order: 2; }
}
@media (max-width: 1000px) {
	.shop ul.products { grid-template-columns: repeat(2, 1fr); }
	.shop div.product { grid-template-columns: 1fr; gap: 24px; }
	.woocommerce-cart .shop > .woocommerce { grid-template-columns: 1fr; }
	.cart-collaterals { position: static; }
	form.checkout { grid-template-columns: 1fr; }
	form.checkout #customer_details, form.checkout #order_review_heading, form.checkout #order_review { grid-column: 1; grid-row: auto; position: static; }
	.woocommerce-account.logged-in .shop > .woocommerce { grid-template-columns: 1fr; }
	.shop #customer_login.col2-set, .shop .woocommerce-customer-details .col2-set, .shop .woocommerce-Addresses { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
	.shop table.shop_table_responsive thead, .shop table.shop_table_responsive tbody th { display: none; }
	.shop table.shop_table_responsive tr { display: block; border-bottom: 1px solid var(--line); }
	.shop table.shop_table_responsive tr td { display: flex; justify-content: space-between; align-items: center; gap: 12px; text-align: right; border-bottom: 0; padding: 10px 14px; }
	.shop table.shop_table_responsive tr td::before { content: attr(data-title); font-weight: 700; color: var(--muted); font-size: 13px; text-align: left; }
	.shop table.shop_table_responsive tr td.product-remove::before, .shop table.shop_table_responsive tr td.product-thumbnail::before, .shop table.shop_table_responsive tr td.actions::before { content: none; }
	.woocommerce-cart-form .product-thumbnail { display: none !important; }
	.woocommerce-cart-form .product-remove { width: auto; justify-content: flex-end !important; }
	.woocommerce-cart-form td.actions { display: block !important; text-align: left !important; }
	.woocommerce-cart-form td.actions .coupon { display: flex; float: none; margin-bottom: 12px; }
	.woocommerce-cart-form td.actions .coupon input.input-text { flex: 1; width: auto; }
	.woocommerce-cart-form td.actions > .button { float: none; width: 100%; }
	.shop .woocommerce-message .button, .shop .woocommerce-info .button { float: none; display: block; margin: 12px 0 0; }
	.pp-minicart { position: fixed; right: 12px; left: 12px; top: 130px; width: auto; }
}
@media (max-width: 560px) {
	.shop ul.products { grid-template-columns: 1fr; }
	.shop .woocommerce-result-count, .shop .woocommerce-ordering { float: none; }
}
