/*
Theme Name: Rapa Sklep Wędkarski
Template: blocksy
Author: Click Media
Author URI: https://clickmedia.pl
Description: Blocksy Child dla sklepu wędkarskiego Rapa.
Version: 1.0.2
*/

/* WooCommerce – plakietka promocji */
.woocommerce span.onsale {
	background: var(--theme-palette-color-9, #ffa10a);
	color: #fff;
	border-radius: 0;
	min-height: auto;
	min-width: auto;
	padding: 4px 10px;
	line-height: 1.4;
	font-family: "Zalando Sans SemiExpanded", sans-serif;
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	top: 10px;
	left: 10px;
	right: auto;
}

/* WooCommerce – przekreślona cena regularna na liście produktów (wyszarzona; wielkość taka sama jak cena promocyjna) */
.woocommerce ul.products li.product .price del {
	opacity: .5;
	font-size: 1em;
}

/* WooCommerce – dodatkowy odstęp pod przyciskiem „Dodaj do koszyka” w kartach produktów */
ul.products li.product .ct-woo-card-actions {
	margin-bottom: 10px;
}

/* =========================================================
   Zaokrąglenia elementów (lekkie)
   S – przyciski, pola, małe elementy
   M – karty produktów, boksy, akordeon
   L – duże kafle, boksy z tłem, zdjęcia
   ========================================================= */
:root {
	--rapa-r-s: 10px;
	--rapa-r-m: 14px;
	--rapa-r-l: 20px;
	--theme-button-border-radius: var(--rapa-r-s);
	--stk-button-border-radius: var(--rapa-r-s);
	--theme-form-field-border-radius: var(--rapa-r-s);
}

/* Przyciski */
.button,
button,
input[type="submit"],
.wp-element-button,
.ct-button,
.stk-block-button .stk-button {
	border-radius: var(--rapa-r-s);
}

/* Pola formularzy, ilość */
input[type="text"],
input[type="email"],
input[type="search"],
input[type="tel"],
input[type="number"],
input[type="password"],
select,
textarea,
.quantity {
	border-radius: var(--rapa-r-s);
}

/* Przycisk „do góry” – jak strzałki sliderów */
.ct-back-to-top {
	border-radius: var(--rapa-r-s) !important;
}

/* Plakietka promocji */
.woocommerce span.onsale {
	border-radius: 6px;
}

/* Karty produktów */
ul.products li.product {
	border-radius: var(--rapa-r-m);
	overflow: hidden;
}

/* Kontenery Stackable (kafle bento, karty, akordeon) */
.stk-container:not(.stk--no-background) {
	border-radius: var(--rapa-r-l);
	overflow: hidden;
}
.stk-block-accordion .stk-container {
	border-radius: var(--rapa-r-m);
}
.stk-container .stk-img-wrapper {
	border-radius: 0;
}

/* Boksy z tłem (np. Top kategorie, pasek atutów) – bez sekcji na pełną szerokość */
.stk-block-background:not(.alignfull) {
	border-radius: var(--rapa-r-l);
	overflow: hidden;
}

/* Zdjęcia w treści */
.entry-content .stk-img-wrapper {
	border-radius: var(--rapa-r-l);
}
.stk-block-carousel .stk-img-wrapper {
	border-radius: 0;
}

/* Slider na górze strony głównej – zaokrąglony tylko dół */
.entry-content > .stk-block-columns.alignfull:first-child {
	border-radius: 0 0 var(--rapa-r-l) var(--rapa-r-l);
	overflow: hidden;
}

/* =========================================================
   Stopka
   ========================================================= */
footer.ct-footer [data-row="middle"] .ct-container {
	grid-template-columns: 2fr 1fr 1fr 1fr !important;
	column-gap: 40px;
}
@media (max-width: 999.98px) {
	footer.ct-footer [data-row="middle"] .ct-container {
		grid-template-columns: repeat(2, 1fr) !important;
		row-gap: 40px;
	}
}
@media (max-width: 689.98px) {
	footer.ct-footer [data-row="middle"] .ct-container {
		grid-template-columns: 1fr !important;
	}
}
.rapa-f-logo {
	display: inline-block;
	margin-bottom: 28px;
}
.rapa-f-logo img {
	width: 170px;
	height: auto;
}
.rapa-f-title {
	margin: 0 0 20px;
	color: var(--theme-palette-color-6);
	font-size: 15px;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}
.rapa-f-title--next {
	margin-top: 32px;
}
.rapa-f-links {
	list-style: none;
	margin: 0;
	padding: 0;
}
.rapa-f-links li {
	margin: 0 0 10px;
}
.rapa-f-links a {
	color: rgba(255, 255, 255, 0.72);
	letter-spacing: 0.02em;
	text-decoration: none;
	text-transform: uppercase;
	transition: color 0.2s;
}
.rapa-f-links a:hover {
	color: var(--theme-palette-color-1, #27a34d);
}
.rapa-f-contact {
	list-style: none;
	margin: 0;
	padding: 0;
}
.rapa-f-contact li {
	display: flex;
	gap: 14px;
	align-items: flex-start;
	margin: 0 0 18px;
}
.rapa-f-contact svg {
	flex-shrink: 0;
	margin-top: 2px;
	color: var(--theme-palette-color-2, #228b42);
}
.rapa-f-contact div {
	display: flex;
	flex-direction: column;
	gap: 2px;
}
.rapa-f-contact a,
.rapa-f-contact strong {
	color: var(--theme-palette-color-6);
	font-size: 16px;
	font-weight: 600;
	text-decoration: none;
}
.rapa-f-contact a:hover {
	color: var(--theme-palette-color-1, #27a34d);
}
.rapa-f-contact span {
	color: rgba(255, 255, 255, 0.6);
	font-size: 13px;
	line-height: 1.4;
}
footer.ct-footer [data-row="bottom"] [data-column="widget-area-5"] {
	justify-content: flex-end;
	text-align: right;
}
.rapa-f-credit {
	margin: 0;
	color: rgba(255, 255, 255, 0.55);
	font-size: 13px;
}
.rapa-f-credit a {
	color: var(--theme-palette-color-6);
	text-decoration: none;
}
.rapa-f-credit a:hover {
	color: var(--theme-palette-color-1, #27a34d);
}
@media (max-width: 689.98px) {
	footer.ct-footer [data-row="bottom"] [data-column="widget-area-5"] {
		justify-content: flex-start;
		text-align: left;
	}
}
footer.ct-footer [data-row="bottom"] .ct-footer-copyright {
	color: rgba(255, 255, 255, 0.55);
	font-size: 13px;
}

/* =========================================================
   Podstrony treściowe (kontakt, galeria, filmy)
   ========================================================= */
.rapa-map {
	border-radius: var(--rapa-r-l);
	overflow: hidden;
	line-height: 0;
}
.rapa-map iframe {
	display: block;
}
.rapa-video iframe,
.rapa-video .wp-block-embed__wrapper {
	border-radius: var(--rapa-r-m);
	overflow: hidden;
}
.rapa-gallery.wp-block-gallery {
	gap: 16px !important;
}
.rapa-gallery .wp-block-image img {
	border-radius: var(--rapa-r-m);
}
.rapa-gallery .wp-block-image figcaption {
	border-radius: 0 0 var(--rapa-r-m) var(--rapa-r-m);
}

/* Ikony liniowe w całym projekcie – bez wypełnienia, obrys w kolorze 2 z palety.
   Dotyczy wszystkich ikon Stackable z liniowym SVG (fill="none"), strzałki akordeonów FAQ bez zmian. */
.rapa-line-icon:not(#rapa) svg,
.rapa-line-icon:not(#rapa) svg *,
.stk-block-icon:not(#rapa) svg[fill="none"],
.stk-block-icon:not(#rapa) svg[fill="none"] * {
	fill: none !important;
	stroke: var(--theme-palette-color-2, #228b42) !important;
}

/* Galeria – bez rozciągania ostatniego zdjęcia */
.rapa-gallery.wp-block-gallery.has-nested-images figure.wp-block-image {
	flex-grow: 0 !important;
	width: calc((100% - 48px) / 4) !important;
}
@media (max-width: 999.98px) {
	.rapa-gallery.wp-block-gallery.has-nested-images figure.wp-block-image {
		width: calc((100% - 16px) / 2) !important;
	}
}
.rapa-gallery figure a {
	cursor: zoom-in;
}

/* Lightbox galerii */
.rapa-lb {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 40px 72px;
	background: rgba(10, 22, 14, 0.92);
}
.rapa-lb[hidden] {
	display: none;
}
.rapa-lb__fig {
	margin: 0;
	max-width: 100%;
	max-height: 100%;
	text-align: center;
}
.rapa-lb__fig img {
	max-width: 100%;
	max-height: calc(100vh - 140px);
	border-radius: var(--rapa-r-m);
	object-fit: contain;
}
.rapa-lb__fig figcaption {
	margin-top: 12px;
	color: var(--theme-palette-color-6);
	font-size: 15px;
}
.rapa-lb button {
	position: absolute;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: var(--rapa-r-s);
	background: var(--theme-palette-color-1, #27a34d);
	color: var(--theme-palette-color-6);
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
}
.rapa-lb button:hover {
	background: var(--theme-palette-color-2, #228b42);
}
.rapa-lb__close { top: 20px; right: 20px; }
.rapa-lb__prev { left: 16px; top: 50%; transform: translateY(-50%); }
.rapa-lb__next { right: 16px; top: 50%; transform: translateY(-50%); }
@media (max-width: 689.98px) {
	.rapa-lb { padding: 64px 12px; }
	.rapa-lb__prev, .rapa-lb__next { top: auto; bottom: 16px; transform: none; }
}

/* Odstęp przed stopką – sklep, kategorie, produkt, koszyk, kasa, konto (80 px jak między sekcjami) */
main > [data-vertical-spacing*="bottom"],
.woocommerce-account .ct-container-full[data-vertical-spacing] {
	padding-bottom: 80px !important;
}
.woocommerce-cart .ct-container-full[data-vertical-spacing],
.woocommerce-checkout .ct-container-full[data-vertical-spacing] {
	padding-bottom: 80px !important;
}
/* …na tablecie i telefonie mniej – tak jak sekcje (60 / 48 px) */
@media (max-width: 999.98px) {
	main > [data-vertical-spacing*="bottom"],
	.woocommerce-account .ct-container-full[data-vertical-spacing],
	.woocommerce-cart .ct-container-full[data-vertical-spacing],
	.woocommerce-checkout .ct-container-full[data-vertical-spacing] {
		padding-bottom: 60px !important;
	}
}
@media (max-width: 689.98px) {
	main > [data-vertical-spacing*="bottom"],
	.woocommerce-account .ct-container-full[data-vertical-spacing],
	.woocommerce-cart .ct-container-full[data-vertical-spacing],
	.woocommerce-checkout .ct-container-full[data-vertical-spacing] {
		padding-bottom: 48px !important;
	}
}
.woocommerce-cart .wc-block-components-sidebar-layout,
.woocommerce-checkout .wc-block-components-sidebar-layout {
	margin-bottom: 0 !important;
}

/* Nagłówek podstron (tytuł + okruszki) – cienka linia na dole, na pełną szerokość */
.hero-section[data-type="type-2"] {
	border-bottom: 1px solid rgba(39, 163, 77, 0.3); /* kolor 1 (#27a34d) w 30% */
}

/* Mini koszyk – ikona kosza w ciemnym zielonym */
.ct-header-cart .woocommerce-mini-cart .remove {
	color: var(--theme-palette-color-2, #228b42) !important;
}
/* Mini koszyk w nagłówku – „Zobacz koszyk” jako przycisk z obrysem (rozmiar bez zmian) */
.ct-header-cart .woocommerce-mini-cart__buttons .button:not(.checkout) {
	background: transparent !important;
	color: var(--theme-palette-color-1, #27a34d) !important;
	box-shadow: inset 0 0 0 2px var(--theme-palette-color-2, #228b42);
}
.ct-header-cart .woocommerce-mini-cart__buttons .button:not(.checkout):hover {
	background: var(--theme-palette-color-2, #228b42) !important;
	color: var(--theme-palette-color-6) !important;
	box-shadow: inset 0 0 0 2px var(--theme-palette-color-15);
}

/* =========================================================
   Przeniesione z Wygląd → Dostosuj → Dodatkowy CSS
   ========================================================= */
/* ===== Blocksy: miniatury produktów 1:1 z całym zdjęciem ===== */

/* Klasyczny loop WooCommerce (sklep, kategorie, powiązane, upsell) */
.woocommerce ul.products li.product .ct-media-container {
	display: block;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	background: var(--theme-palette-color-6); /* kolor pustych pasów – dopasuj do tła karty */
}

.woocommerce ul.products li.product .ct-media-container img {
	width: 100% !important;
	height: 100% !important;
	aspect-ratio: 1 / 1 !important;
	object-fit: contain !important;
	object-position: center;
}

/* Bloki WooCommerce (Product Collection, All Products itp.) */
.wc-block-components-product-image,
.wc-block-grid__product-image {
	aspect-ratio: 1 / 1;
	overflow: hidden;
	background: var(--theme-palette-color-6);
}

.wc-block-components-product-image img,
.wc-block-grid__product-image img {
	width: 100% !important;
	height: 100% !important;
	object-fit: contain !important;
	object-position: center;
}

.woocommerce ul.products li.product .ct-media-container img {
	padding: 6%;
	box-sizing: border-box;
}

/* ===== Blocksy: galeria pojedynczego produktu 1:1 z całym zdjęciem ===== */

/* Główne zdjęcie, slajdy i miniatury pod galerią */
.single-product .woocommerce-product-gallery .ct-media-container {
	display: block;
	position: relative;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	background: var(--theme-palette-color-6); /* kolor pustych pasów */
}

.single-product .woocommerce-product-gallery .ct-media-container img:not(.zoomImg) {
	width: 100% !important;
	height: 100% !important;
	aspect-ratio: 1 / 1 !important;
	object-fit: contain !important;
	object-position: center;
}

.single-product .flexy-pills li.active .ct-media-container {
	outline: 2px solid var(--theme-palette-color-1, #2872fa);
	outline-offset: -2px;
}

/* ==========================================================================
   KOSZYK: miniatury 1:1 z całym zdjęciem
   ========================================================================== */

/* Koszyk blokowy, mini-koszyk blokowy, podsumowanie w zamówieniu blokowym */
.wc-block-cart-item__image a,
.wc-block-components-order-summary-item__image {
	display: block;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	background: var(--theme-palette-color-6); /* kolor pustych pasów */
}

.wc-block-cart-item__image img,
.wc-block-components-order-summary-item__image img {
	width: 100% !important;
	height: 100% !important;
	object-fit: contain;
	object-position: center;
}

/* Klasyczny koszyk [woocommerce_cart] */
.woocommerce-cart table.cart td.product-thumbnail a {
	display: block;
	width: 75px;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	background: var(--theme-palette-color-6);
}

.woocommerce-cart table.cart td.product-thumbnail img {
	width: 100% !important;
	height: 100% !important;
	object-fit: contain;
	object-position: center;
}

/* Mini-koszyk Blocksy (panel boczny / rozwijany z ikony koszyka) */
.woocommerce-mini-cart-item img {
	height: auto !important;
	aspect-ratio: 1 / 1;
	object-fit: contain;
	object-position: center;
	background: var(--theme-palette-color-6);
}

/* ==========================================================================
   WYKAZ PRODUKTÓW: ramki kart z efektem hover
   ========================================================================== */

.woocommerce ul.products li.product {
	border: 1px solid var(--theme-palette-color-16);   /* cienka szara ramka */
	border-radius: var(--rapa-r-m); /* zaokrąglone rogi */
	padding: 15px;               /* odstęp treści od ramki */
	background: var(--theme-palette-color-6);         /* tło karty */
	transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.woocommerce ul.products li.product:hover {
	border-color: var(--theme-palette-color-1);
	box-shadow:
		inset 0 0 0 2px var(--theme-palette-color-1),             /* +2 px do ramki = 3 px łącznie */
		0 10px 25px rgba(0, 0, 0, 0.08);     /* delikatny cień */
	transform: translateY(-4px);
}

/* Bez ruchu dla osób z włączonym ograniczeniem animacji w systemie */
@media (prefers-reduced-motion: reduce) {
	.woocommerce ul.products li.product,
	.woocommerce ul.products li.product:hover {
		transition: none;
		transform: none;
	}
}

/* ==========================================================================
   KARTA PRODUKTU: galeria 1:1 z całym zdjęciem + ramki
   ========================================================================== */

/* Kwadratowe pole z cienką ramką – zdjęcie główne i miniatury */
.single-product .woocommerce-product-gallery .ct-media-container {
	display: block;
	position: relative;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	background: var(--theme-palette-color-6);              /* kolor pustych pasów */
	border: 1px solid var(--theme-palette-color-16);
	border-radius: var(--rapa-r-l) !important;
	overflow: hidden;
	outline: 2px solid transparent;   /* niewidoczne pogrubienie, włączane na hover */
	outline-offset: -3px;             /* rysowane tuż wewnątrz ramki 1 px */
	transition: border-color 0.3s ease, outline-color 0.3s ease;
}

/* Całe zdjęcie wpasowane w kwadrat (bez obrazka lupy) */
.single-product .woocommerce-product-gallery .ct-media-container img:not(.zoomImg) {
	width: 100% !important;
	height: 100% !important;
	aspect-ratio: 1 / 1 !important;
	object-fit: contain !important;
	object-position: center;
	border: 0 !important;
	border-radius: 0 !important;
	outline: 0 !important;
}

/* Wyłączenie domyślnych ramek, obrysów i zaokrągleń miniatur Blocksy */
.single-product .woocommerce-product-gallery .flexy-pills li,
.single-product .woocommerce-product-gallery .flexy-pills li:hover,
.single-product .woocommerce-product-gallery .flexy-pills li.active {
	border: 0 !important;
	outline: 0 !important;
	box-shadow: none !important;
	border-radius: var(--rapa-r-s) !important;
}

.single-product .woocommerce-product-gallery .flexy-pills li::before,
.single-product .woocommerce-product-gallery .flexy-pills li::after {
	display: none !important;
}

.single-product .woocommerce-product-gallery .flexy-pills .ct-media-container {
	cursor: pointer;
}

/* Hover (zdjęcie główne i miniatury) oraz aktywna miniatura: zielona ramka 3 px */
.single-product .woocommerce-product-gallery .ct-media-container:hover,
.single-product .woocommerce-product-gallery .flexy-pills li.active .ct-media-container {
	border-color: var(--theme-palette-color-2);
	outline-color: var(--theme-palette-color-2);
}

/* ==========================================================================
   DOSTĘPNOŚĆ I CZAS WYSYŁKI
   ========================================================================== */

.cm-dostepnosc {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 8px 0 16px;
	font-size: 13px;
	font-weight: 500;
}

.cm-dostepnosc__kropka {
	flex: none;
	width: 10px;
	height: 10px;
	border-radius: 50%; /* 0 = kwadratowa kropka */
	background: var(--cm-kolor);
}

/* Mniejsza wersja na listingu */
.woocommerce ul.products .cm-dostepnosc {
	margin: 4px 0 8px;
	font-size: 13px;
}

/* Strona zaczynająca się od sekcji z tłem na całą szerokość – bez białego paska pod nagłówkiem strony */
.ct-container-full[data-vertical-spacing*="top"]:has(> article > .entry-content > .alignfull:first-child) {
	padding-top: 0 !important;
}
/* …i kończąca się taką sekcją – bez białego paska nad stopką */
.ct-container-full[data-vertical-spacing*="bottom"]:has(> article > .entry-content > .alignfull:last-child) {
	padding-bottom: 0 !important;
}

/* FAQ – jednolity wygląd kart: na białej sekcji karty mają jasne tło, na sekcji z tłem są białe */
.stk-block-columns:not(.stk-block-background) .stk-block-accordion .stk-container:not(.stk--no-background) {
	background-color: var(--theme-palette-color-8) !important;
	box-shadow: none !important;
}

/* FAQ – odstęp między pytaniami o połowę mniejszy (34px -> 17px) */
.stk-block-accordion .stk-block-accordion__heading > .stk-container,
.stk-block-accordion > .stk-block-column:first-child > .stk-container {
	margin-top: 0 !important;
	margin-bottom: 0 !important;
}
.stk-block-accordion.stk-block:not(#rapa) {
	margin-bottom: 17px !important;
}

/* FAQ – odstępy wokół odpowiedzi: więcej nad tekstem, mniej pod nim */
.stk-block-accordion > div.stk-block-column > .stk-container:not(#rapa) {
	padding-top: 16px !important;
	padding-bottom: 4px !important;
}

/* Wyszukiwarka w nagłówku (element „Tekst” Blocksy – pole wyszukiwania produktów) */
.rapa-hsearch {
	position: relative;
	display: flex;
	width: min(520px, 42vw);
	margin: 0;
}
.rapa-hsearch input[type="search"] {
	width: 100%;
	height: 44px;
	padding: 0 52px 0 18px;
	border: 1px solid transparent;
	border-radius: var(--rapa-r-s);
	background: var(--theme-palette-color-6);
	color: var(--theme-palette-color-4);
	font-size: 14px;
	text-transform: none;
	letter-spacing: 0;
}
.rapa-hsearch input[type="search"]:focus {
	border-color: var(--theme-palette-color-1);
	outline: none;
}
.rapa-hsearch button {
	position: absolute;
	top: 4px;
	right: 4px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	padding: 0;
	border: 0;
	border-radius: calc(var(--rapa-r-s) - 3px);
	background: var(--theme-palette-color-1);
	color: var(--theme-palette-color-6);
	cursor: pointer;
}
.rapa-hsearch button:hover {
	background: var(--theme-palette-color-15);
}

/* Strona 404 – wyszukiwarka jak w nagłówku, więcej oddechu (Blocksy free nie ma ustawień strony 404) */
.error404 .ct-no-results {
	max-width: 760px;
	margin: 0 auto;
	padding: 20px 0 20px;
	text-align: center;
}
.error404 .ct-no-results .hero-section {
	margin-bottom: 30px;
}
.error404 .ct-search-form {
	--theme-form-field-height: 48px;
	--theme-form-field-border-radius: var(--rapa-r-s);
	--theme-form-field-border-initial-color: rgba(39, 163, 77, 0.3);
	--theme-form-field-border-focus-color: var(--theme-palette-color-1);
	max-width: 520px;
	margin: 0 auto;
}

/* Menu główne – rozwijany panel na szerokość kontenera (styl wedkarski.com), tylko 1 poziom podkategorii.
   Blocksy free nie ma mega menu. Dotyczy tylko menu na komputerze, menu mobilne bez zmian. */
header [data-id="menu"] > ul > li.menu-item-has-children {
	position: static;
}
header [data-id="menu"] > ul > li > .sub-menu {
	left: 0 !important;
	right: 0 !important;
	width: auto !important;
	display: grid !important;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	column-gap: 30px;
	row-gap: 6px;
	padding: 26px calc((100% - min(var(--theme-normal-container-max-width), 90vw - 8px)) / 2) 30px !important;
	background: var(--theme-palette-color-6) !important;
	border-top: 1px solid rgba(39, 163, 77, 0.3);
	border-radius: 0 !important;
	box-shadow: 0 16px 30px rgba(0, 0, 0, 0.08);
}
header [data-id="menu"] > ul > li > .sub-menu > li {
	border: 0 !important;
}
header [data-id="menu"] > ul > li > .sub-menu > li > a {
	position: relative;
	padding: 10px 0 10px 16px !important;
	color: var(--theme-palette-color-4) !important;
	font-family: "Zalando Sans SemiExpanded", sans-serif;
	font-weight: 600;
	font-size: 15px;
	line-height: 1.3;
	background: transparent !important;
}
/* kropka po lewej – jak w menu kategorii w sidebarze */
header [data-id="menu"] > ul > li > .sub-menu > li > a::before {
	content: "";
	position: absolute;
	left: 1px;
	top: 50%;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	transform: translateY(-50%);
	background: var(--theme-palette-color-13);
	box-shadow: 0 0 0 3px rgba(79, 198, 114, 0.25);
	transition: background 0.2s, box-shadow 0.2s;
}
header [data-id="menu"] > ul > li > .sub-menu > li > a:hover {
	color: var(--theme-palette-color-1) !important;
}
header [data-id="menu"] > ul > li > .sub-menu > li > a:hover::before {
	background: var(--theme-palette-color-2);
	box-shadow: 0 0 0 3px rgba(79, 198, 114, 0.35);
}
/* Trzeci poziom (podkategorie) i jego strzałki ukryte na komputerze */
header [data-id="menu"] .sub-menu .sub-menu,
header [data-id="menu"] .sub-menu .ct-toggle-dropdown-desktop,
header [data-id="menu"] .sub-menu .ct-toggle-dropdown-desktop-ghost {
	display: none !important;
}


/* Kolory menu w sidebarze – wersja jasna (ciemna: linie rgba(255,255,255,.08–.12), kropki rgba(255,255,255,.3), akcent kolor 13) */
.ct-sidebar {
	--rapa-sb-line: var(--theme-palette-color-16);
	--rapa-sb-dot: var(--theme-palette-color-5);
	--rapa-sb-active: var(--theme-palette-color-1);
	--rapa-sb-glow: rgba(39, 163, 77, 0.18);
}

/* Sidebar w kategoriach – menu kategorii (widżet WooCommerce „Kategorie produktów”).
   Tło, kolory linków i tytułu ustawione w motywie (Personalizuj → Panel boczny). Tu tylko wygląd listy. */
.ct-sidebar .widget_product_categories ul {
	list-style: none;
	margin: 0;
	padding: 0;
}
.ct-sidebar .widget_product_categories .product-categories > li {
	border-bottom: 1px solid var(--rapa-sb-line);
}
.ct-sidebar .widget_product_categories .product-categories > li:last-child {
	border-bottom: 0;
}
.ct-sidebar .widget_product_categories .product-categories > li > a {
	display: block;
	padding: 10px 0;
	font-family: "Zalando Sans SemiExpanded", sans-serif;
	font-weight: 600;
	font-size: 14px;
	line-height: 1.3;
}
.ct-sidebar .widget_product_categories .current-cat-parent > a,
.ct-sidebar .widget_product_categories .product-categories > .current-cat > a {
	color: var(--rapa-sb-active);
}
.ct-sidebar .widget_product_categories .children {
	margin: 0 0 12px 2px !important;
	padding-left: 14px !important;
	border-left: 1px solid var(--rapa-sb-line);
}
.ct-sidebar .widget_product_categories .children a {
	position: relative;
	display: block;
	padding: 5px 0 5px 14px;
	font-size: 14px;
	line-height: 1.35;
}
.ct-sidebar .widget_product_categories .children a::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.95em;
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: var(--rapa-sb-dot);
}
.ct-sidebar .widget_product_categories .children a:hover::before {
	background: var(--rapa-sb-active);
}
.ct-sidebar .widget_product_categories .children .current-cat > a {
	color: var(--rapa-sb-active);
	font-weight: 600;
}
.ct-sidebar .widget_product_categories .children .current-cat > a::before {
	width: 7px;
	height: 7px;
	left: -1px;
	top: calc(0.95em - 1px);
	background: var(--rapa-sb-active);
	box-shadow: 0 0 0 3px var(--rapa-sb-glow);
}

/* Sklep i kategorie produktów – pełna szerokość (Blocksy free nie ma tej opcji dla archiwum produktów).
   Kontener zajmuje 90% szerokości okna jak „Fluid” w Blocksy, maks. 1920 px. */
body.post-type-archive-product main > .ct-container[data-sidebar],
body.tax-product_cat main > .ct-container[data-sidebar] {
	max-width: 1920px; /* limit dla dużych ekranów (QHD, 4K) */
}

/* Sidebar – każdy widżet w osobnym boksie (menu kategorii + przyklejony boks doradztwa).
   Blocksy free ma „boks” tylko dla całego sidebara, a wtedy przyklejony widżet nie może się ruszyć. */
.ct-sidebar .ct-widget {
	padding: 26px 24px;
	background: var(--theme-palette-color-6);
	border: 3px solid var(--theme-palette-color-1);
	border-radius: var(--rapa-r-m);
}
.ct-sidebar .ct-widget .widget-title {
	margin-bottom: 14px;
	color: var(--theme-palette-color-1);
	font-family: "Zalando Sans SemiExpanded", sans-serif;
	font-weight: 600;
	font-size: 16px;
	text-transform: uppercase;
}
/* Boks doradztwa (przyklejony widżet) – jasne tło z palety, bez obrysu */
.ct-sidebar .ct-sticky-widgets .ct-widget {
	background: var(--theme-palette-color-8);
	border: 0;
}
/* Boks doradztwa */
.rapa-doradztwo p {
	margin: 0 0 10px;
	font-size: 14px;
	line-height: 1.5;
}
.ct-sidebar .rapa-doradztwo h4 {
	margin: 0 0 12px;
}
.ct-sidebar .rapa-doradztwo .widget-title {
	text-transform: none;
	font-size: inherit;
	margin-bottom: 0;
}
.rapa-doradztwo__tel a {
	font-family: "Zalando Sans SemiExpanded", sans-serif;
	font-weight: 600;
	font-size: 22px;
	color: var(--theme-palette-color-4);
	text-decoration: none;
}
.rapa-doradztwo__tel a:hover {
	color: var(--theme-palette-color-1);
}
.rapa-doradztwo p.rapa-doradztwo__godz {
	margin-bottom: 16px;
	font-size: 13px;
	color: var(--theme-palette-color-3);
}
/* Boks doradztwa – wersja pozioma pod opisem produktu */
.rapa-doradztwo--poziomo {
	margin-top: 30px;
	margin-bottom: 50px;
	padding: 28px 32px;
	border-radius: var(--rapa-r-m);
}
.rapa-doradztwo--poziomo .wp-block-columns {
	margin: 0;
	gap: 24px 40px;
}
.rapa-doradztwo--poziomo h4 {
	margin: 0 0 8px;
}
.rapa-doradztwo--poziomo p,
.rapa-doradztwo--poziomo p.rapa-doradztwo__godz {
	margin-bottom: 0;
}
.rapa-doradztwo--poziomo .stk-button {
	white-space: nowrap;
}
.rapa-doradztwo--poziomo .rapa-doradztwo__tel {
	margin-bottom: 6px;
}
@media (max-width: 781px) {
	.rapa-doradztwo--poziomo {
		padding: 24px 20px;
	}
	.rapa-doradztwo--poziomo .rapa-doradztwo__cta {
		justify-content: flex-start;
	}
}

/* Menu mobilne – strzałki podmenu jasne jak linki (Blocksy nie ma na to opcji) */
#offcanvas .ct-toggle-dropdown-mobile {
	--theme-icon-color: var(--theme-palette-color-8);
}

/* Menu główne – pozycja „Promocje” wyróżniona jak plakietka PROMOCJA na liście produktów (kolor 9) */
#header [data-id="menu"] .menu > .menu-item-57579 > .ct-menu-link {
	height: auto;
	padding: 8px 16px;
	border-radius: 6px;
	background-color: var(--theme-palette-color-9, #ffa10a);
	color: #fff;
}
#header [data-id="menu"] .menu > .menu-item-57579 > .ct-menu-link:hover {
	background-color: #e88f00;
	color: #fff;
}

/* Przycisk „Zobacz koszyk” pokazywany po dodaniu produktu do koszyka – lista produktów i karta produktu.
   Wersja obramowana, jak przyciski ghost na stronie: przezroczyste tło, obrys kolor 2, tekst kolor 1;
   po najechaniu wypełnienie kolorem 2 (Blocksy nie ma osobnej opcji dla tego przycisku). */
a.added_to_cart.wc-forward,
.ct-cart-actions a.added_to_cart.wc-forward {
	background-color: transparent;
	color: var(--theme-palette-color-1, #27a34d);
	border: 2px solid var(--theme-palette-color-2, #228b42);
	box-shadow: none;
}
a.added_to_cart.wc-forward:hover,
.ct-cart-actions a.added_to_cart.wc-forward:hover {
	background-color: var(--theme-palette-color-2, #228b42);
	border-color: var(--theme-palette-color-2, #228b42);
	color: var(--theme-palette-color-8, #f2f6f2);
}

/* Nagłówek mobilny – przyklejony i zmniejszany przy przewijaniu (telefon i tablet, poniżej 1000 px).
   Pasek z logo, wyszukiwarką, kontem, koszykiem i menu zostaje u góry ekranu.
   Po przewinięciu o 60 px (klasa body.rapa-scrolled dodawana skryptem z functions.php)
   pasek zmniejsza się o ok. 40% (92 → 56 px), a logo z 40 do 24 px. Na komputerze bez zmian. */
@media (max-width: 999.98px) {
	#header {
		position: sticky;
		top: 0;
		z-index: 100;
	}
	#header [data-device="mobile"] [data-row*="middle"] .ct-container,
	#header [data-device="mobile"] [data-row*="middle"] .ct-container > div {
		transition: min-height 0.3s ease;
	}
	#header [data-device="mobile"] .site-logo-container img {
		transition: height 0.3s ease, max-height 0.3s ease;
	}
	body.rapa-scrolled #header [data-device="mobile"] [data-row*="middle"] {
		--height: 56px;
	}
	body.rapa-scrolled #header [data-device="mobile"] .site-logo-container {
		--logo-max-height: 24px;
	}
}
/* Pasek administratora WordPressa (widoczny tylko po zalogowaniu) – nagłówek pod nim, nie pod spodem. */
@media (min-width: 600px) and (max-width: 782px) {
	.admin-bar #header { top: 46px; }
}
@media (min-width: 783px) and (max-width: 999.98px) {
	.admin-bar #header { top: 32px; }
}

/* Cena przekreślona (cena przed promocją) – na liście produktów i na karcie produktu:
   ta sama wielkość co cena promocyjna (Blocksy domyślnie zmniejsza ją do 85%),
   szara (kolor 3) i bez pogrubienia, żeby wyróżniała się tylko zielona cena do zapłaty.
   Kolor (kolor 14), pogrubienie (600) i wielkość cen ustawione w Customizerze:
   lista produktów 16 px, karta produktu 24 px. */
.price del,
.price del .amount {
	font-size: 100%;
	font-weight: 400;
	color: var(--theme-palette-color-3, #687280);
}

/* Wyszukiwarka na stronie 404 – ten sam wygląd co w nagłówku (.rapa-hsearch), dodatkowo z obrysem i na pełną szerokość kolumny */
.rapa-hsearch.rapa-hsearch--obrys {
	width: 100%;
}
.rapa-hsearch.rapa-hsearch--obrys input[type="search"] {
	border-color: var(--theme-palette-color-5);
}
.rapa-hsearch.rapa-hsearch--obrys input[type="search"]:focus {
	border-color: var(--theme-palette-color-1);
}

/* ------------------------------------------------------------------
 * Flexible Cookies – pasek zgody na cookies w stylu sklepu.
 * Wtyczka ma na sztywno pomarańczowe przyciski (#FFAA00) – zamieniamy je na kolory z palety
 * i styl przycisków ze strony (zaokrąglenie, font, wielkie litery).
 * Kolor tekstu i tła paska: Ustawienia → Flexible Cookies → Wygląd.
 * ------------------------------------------------------------------ */
#flexiblecookies_container div#flexiblecookies_cookie_banner,
#flexiblecookies_settings_container {
	border-radius: var(--rapa-r-l);
}
/* Pasek 540px (Wygląd → Szerokość) – na komputerze wszystkie 3 przyciski mieszczą się w jednym wierszu;
   na wąskich ekranach przechodzą do kolejnego wiersza */
body .flexiblecookies_cookie_actions {
	flex-wrap: wrap;
	gap: 8px;
}
body .flexiblecookies_cookie_actions button,
body .cookie_settings_bottom_row button {
	padding: 10px;
	white-space: nowrap;
	border-radius: var(--rapa-r-s);
	font-family: "Zalando Sans SemiExpanded", sans-serif;
	font-size: 12px;
	font-weight: 500;
	text-transform: uppercase;
}
/* Przycisk główny – „Akceptuję wszystkie” i zapis preferencji */
body button#flexiblecookies_accept_cookies,
body button#flexiblecookies_accept_settings_cookies {
	background: var(--theme-palette-color-1);
	border-color: var(--theme-palette-color-1);
	color: #fff;
}
body button#flexiblecookies_accept_cookies:hover,
body button#flexiblecookies_accept_settings_cookies:hover {
	background: var(--theme-palette-color-2);
	border-color: var(--theme-palette-color-2);
}
/* Przycisk z obrysem – „Odrzucam wszystkie” (jak przyciski z obrysem na stronie) */
body button#flexiblecookies_deny_cookies {
	border-color: var(--theme-palette-color-2);
	color: var(--theme-palette-color-1);
}
body button#flexiblecookies_deny_cookies:hover {
	background: var(--theme-palette-color-2);
	border-color: var(--theme-palette-color-2);
	color: var(--theme-palette-color-8);
}
/* Link „Preferencje” – podkreślenie w kolorze marki zamiast pomarańczowego */
body button#flexiblecookies_open_settings {
	padding: 0 0 4px;
	border-radius: 0;
	background: transparent;
	color: var(--theme-palette-color-4);
	border-bottom-color: var(--theme-palette-color-1);
}
/* Nagłówki paska i okna preferencji – font i kolor jak nagłówki sekcji na stronie */
body span.flexiblecookies_cookie_text h3,
body #flexiblecookies_settings_header h3 {
	font-family: "Zalando Sans SemiExpanded", sans-serif;
	font-weight: 600;
	color: var(--theme-palette-color-1);
}
/* Przełączniki kategorii (włączone) i etykieta „Niezbędne” – kolor z palety zamiast domyślnej zieleni i bordo */
body input:checked + .checkbox__toggle-slider {
	background-color: var(--theme-palette-color-1);
}
body .flexiblecookies-required-label {
	color: var(--theme-palette-color-2);
}
/* Stany najechania (hover) – wtyczka zmienia obramowania na pomarańczowe (#EE9900) i podnosi przyciski;
   zostawiamy kolory z palety i bez podnoszenia, jak inne przyciski na stronie */
body #flexiblecookies_cookie_banner button:hover {
	transform: none;
}
body button#flexiblecookies_open_settings:hover {
	border-color: var(--theme-palette-color-2);
	color: var(--theme-palette-color-1);
}
/* Ikona ponownego otwarcia ustawień cookies (lewy dolny róg, po zamknięciu paska):
   zielona jak reszta strony zamiast pomarańczowej i zawsze nad sekcjami strony (wtyczka nie daje jej z-index) */
body .flexible-cookies-reopen-settings {
	z-index: 9997;
}
body .flexible-cookies-reopen-settings svg,
body .flexible-cookies-reopen-settings svg path {
	fill: var(--theme-palette-color-1);
}
body .flexible-cookies-reopen-settings:hover svg,
body .flexible-cookies-reopen-settings:hover svg path {
	fill: var(--theme-palette-color-2);
}
