/* ==========================================================================
   BSK – archiwum produktów w stylu kolekcji Amazfit
   Plik: hello-theme-child-master/assets/css/bsk-shop-archive.css
   ========================================================================== */

:root {
	--bsk-font: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	--bsk-text: #121212;
	--bsk-muted: #6b6b6b;
	--bsk-line: #e6e6e6;
	--bsk-hero-bg: #f6f6f6;
	--bsk-chip-bg: #f3f3f3;
	--bsk-radius: 6px;
	--bsk-width: 1200px;
	--bsk-gutter: 16px;
	--bsk-sidebar: 288px;
}

/* --------------------------------------------------------------------------
   Wrapper – Hello dodaje własne kontenery; zdejmujemy ograniczenia na archiwum
   -------------------------------------------------------------------------- */

body.bsk-shop-archive .site-main,
body.bsk-shop-archive #primary,
body.bsk-shop-archive .page-content {
	max-width: none;
	width: 100%;
	padding: 0;
	margin: 0;
}

.bsk-collection {
	font-family: var(--bsk-font);
	color: var(--bsk-text);
	-webkit-font-smoothing: antialiased;
}

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

.bsk-wrap {
	width: 100%;
	max-width: calc(var(--bsk-width) + var(--bsk-gutter) * 2);
	margin: 0 auto;
	padding: 0 var(--bsk-gutter);
}

/* --------------------------------------------------------------------------
   Nagłówek: okruszki + tytuł
   -------------------------------------------------------------------------- */

.bsk-hero {
	background: var(--bsk-hero-bg);
	padding: 40px 0 44px;
}

.bsk-crumbs ol {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	list-style: none;
	margin: 0 0 14px;
	padding: 0;
	font-size: 13px;
	line-height: 1.4;
}

.bsk-crumbs li {
	display: inline-flex;
	align-items: center;
	color: var(--bsk-text);
	font-weight: 500;
}

.bsk-crumbs li + li::before {
	content: "";
	width: 6px;
	height: 6px;
	margin: 0 14px 0 12px;
	border-top: 1.2px solid var(--bsk-muted);
	border-right: 1.2px solid var(--bsk-muted);
	transform: rotate(45deg);
}

.bsk-crumbs a {
	color: var(--bsk-muted);
	font-weight: 400;
	text-decoration: none;
	transition: color .15s;
}

.bsk-crumbs a:hover {
	color: var(--bsk-text);
}

.bsk-hero__title {
	margin: 0;
	font-family: var(--bsk-font);
	font-size: clamp(32px, 4.4vw, 56px);
	font-weight: 700;
	line-height: 1.1;
	letter-spacing: -.02em;
	color: var(--bsk-text);
}

.bsk-hero .term-description,
.bsk-hero .page-description {
	max-width: 720px;
	margin-top: 14px;
	font-size: 15px;
	line-height: 1.6;
	color: var(--bsk-muted);
}

.bsk-hero .term-description p:last-child,
.bsk-hero .page-description p:last-child {
	margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   Układ: filtry + produkty
   -------------------------------------------------------------------------- */

.bsk-layout {
	display: grid;
	grid-template-columns: var(--bsk-sidebar) minmax(0, 1fr);
	gap: 0 30px;
	padding-top: 32px;
	padding-bottom: 64px;
}

.bsk-layout.is-filters-hidden {
	grid-template-columns: minmax(0, 1fr);
}

.bsk-layout.is-filters-hidden .bsk-sidebar {
	display: none;
}

/* --------------------------------------------------------------------------
   Filtry (sidebar)
   -------------------------------------------------------------------------- */

.bsk-sidebar__mobile-head,
.bsk-sidebar__mobile-foot,
.bsk-sidebar__overlay {
	display: none;
}

.bsk-facet {
	border-bottom: 1px solid var(--bsk-line);
	padding: 4px 0 24px;
	margin-bottom: 24px;
}

.bsk-facet:last-of-type {
	border-bottom: 0;
}

.bsk-facet__title {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 4px 0;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	list-style: none;
	user-select: none;
}

.bsk-facet__title::-webkit-details-marker {
	display: none;
}

.bsk-facet__toggle {
	position: relative;
	width: 10px;
	height: 10px;
}

.bsk-facet__toggle::before,
.bsk-facet__toggle::after {
	content: "";
	position: absolute;
	left: 0;
	top: 4px;
	width: 10px;
	height: 2px;
	background: currentColor;
	transition: transform .2s;
}

.bsk-facet__toggle::after {
	transform: rotate(90deg);
}

.bsk-facet[open] .bsk-facet__toggle::after {
	transform: rotate(0deg);
}

.bsk-facet__list {
	list-style: none;
	margin: 18px 0 0;
	padding: 0;
}

.bsk-facet__list li + li {
	margin-top: 12px;
}

/* Kategorie */

.bsk-cats {
	list-style: none;
	margin: 10px 0 0;
	padding: 0;
}

.bsk-cats--root {
	margin-top: 18px;
}

.bsk-cats--sub {
	margin: 10px 0 0 14px;
	padding-left: 12px;
	border-left: 1px solid var(--bsk-line);
}

.bsk-cats__item + .bsk-cats__item {
	margin-top: 10px;
}

.bsk-collection .bsk-cats a {
	display: flex;
	align-items: center;
	gap: 8px;
	color: var(--bsk-muted);
	font-size: 13px;
	line-height: 1.4;
	text-decoration: none;
	transition: color .15s;
}

.bsk-cats__name {
	flex: 1 1 auto;
}

.bsk-collection .bsk-cats a:hover,
.bsk-cats__item.is-ancestor > a {
	color: var(--bsk-text);
}

.bsk-collection .bsk-cats__item.is-current > a {
	color: var(--bsk-text);
	font-weight: 600;
}

.bsk-cats__item.is-current > a .bsk-check__count {
	border-color: var(--bsk-text);
	color: var(--bsk-text);
}

/* Checkbox */

.bsk-check {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	cursor: pointer;
}

.bsk-check input {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
	pointer-events: none;
}

.bsk-check__box {
	flex: 0 0 auto;
	width: 14px;
	height: 14px;
	border: 1px solid #9a9a9a;
	border-radius: 3px;
	background: #fff;
	transition: background .15s, border-color .15s;
}

.bsk-check input:checked + .bsk-check__box {
	border-color: var(--bsk-text);
	background: var(--bsk-text) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2 5 8.5l4.5-5' fill='none' stroke='%23fff' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/10px no-repeat;
}

.bsk-check input:focus-visible + .bsk-check__box {
	outline: 2px solid var(--bsk-text);
	outline-offset: 2px;
}

.bsk-check__label {
	flex: 1 1 auto;
}

.bsk-check__count {
	min-width: 26px;
	padding: 1px 6px;
	border: 1px solid var(--bsk-line);
	border-radius: 3px;
	font-size: 10px;
	line-height: 16px;
	text-align: center;
	color: var(--bsk-muted);
}

.bsk-check.is-disabled {
	opacity: .5;
	cursor: not-allowed;
}

/* Suwak ceny */

.bsk-range {
	position: relative;
	height: 16px;
	margin: 26px 6px 0;
}

.bsk-range__track {
	position: absolute;
	top: 7px;
	left: 0;
	right: 0;
	height: 2px;
	background: var(--bsk-line);
}

.bsk-range__fill {
	position: absolute;
	top: 0;
	bottom: 0;
	left: var(--bsk-from, 0%);
	right: calc(100% - var(--bsk-to, 100%));
	background: var(--bsk-text);
}

.bsk-range__input {
	position: absolute;
	top: 0;
	left: -6px;
	width: calc(100% + 12px);
	height: 16px;
	margin: 0;
	background: none;
	pointer-events: none;
	-webkit-appearance: none;
	appearance: none;
}

.bsk-range__input::-webkit-slider-runnable-track {
	background: transparent;
	border: 0;
}

.bsk-range__input::-moz-range-track {
	background: transparent;
	border: 0;
}

.bsk-range__input::-webkit-slider-thumb {
	-webkit-appearance: none;
	width: 12px;
	height: 12px;
	border: 1.5px solid var(--bsk-text);
	border-radius: 3px;
	background: #fff;
	cursor: grab;
	pointer-events: auto;
}

.bsk-range__input::-moz-range-thumb {
	width: 12px;
	height: 12px;
	border: 1.5px solid var(--bsk-text);
	border-radius: 3px;
	background: #fff;
	cursor: grab;
	pointer-events: auto;
}

.bsk-range__input:focus-visible::-webkit-slider-thumb {
	outline: 2px solid var(--bsk-text);
	outline-offset: 2px;
}

.bsk-range__label {
	margin: 18px 0 0;
	font-size: 12px;
	color: var(--bsk-muted);
}

.bsk-range__label strong {
	color: var(--bsk-text);
	font-weight: 600;
}

.bsk-range__label .woocommerce-Price-amount {
	font-weight: 600;
}

/* --------------------------------------------------------------------------
   Pasek nad produktami
   -------------------------------------------------------------------------- */

.bsk-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 36px;
}

.bsk-toolbar__count {
	margin: 0;
	font-size: 13px;
	letter-spacing: .02em;
}

.bsk-toolbar__actions {
	display: flex;
	align-items: center;
	gap: 8px;
}

.bsk-collection .bsk-toolbar .bsk-toolbar__filter {
	display: inline-flex;
	text-transform: none;
	letter-spacing: 0;
	line-height: 1;
	box-shadow: none;
	align-items: center;
	gap: 8px;
	height: 38px;
	padding: 0 16px;
	border: 0;
	border-radius: var(--bsk-radius);
	background: var(--bsk-chip-bg);
	color: var(--bsk-text);
	font-family: var(--bsk-font);
	font-size: 12px;
	font-weight: 500;
	cursor: pointer;
	transition: background .15s;
}

.bsk-collection .bsk-toolbar .bsk-toolbar__filter:hover,
.bsk-collection .bsk-toolbar .bsk-toolbar__filter:focus {
	background: #e9e9e9;
	color: var(--bsk-text);
}

.bsk-select {
	position: relative;
}

.bsk-select select {
	min-width: 182px;
	height: 38px;
	padding: 0 40px 0 16px;
	border: 0;
	border-radius: var(--bsk-radius);
	background: var(--bsk-chip-bg);
	color: var(--bsk-text);
	font-family: var(--bsk-font);
	font-size: 12px;
	font-weight: 500;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
}

.bsk-select .bsk-icon-caret {
	position: absolute;
	top: 50%;
	right: 16px;
	width: 10px;
	height: 6px;
	transform: translateY(-50%);
	pointer-events: none;
}

/* Sortowanie – zdjęcie obramowania nadawanego przez CSS strony */
.bsk-collection .bsk-toolbar .bsk-select {
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
}

/* --------------------------------------------------------------------------
   Siatka produktów
   -------------------------------------------------------------------------- */

.bsk-products ul.products {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 24px 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.bsk-layout.is-filters-hidden .bsk-products ul.products {
	grid-template-columns: repeat(5, minmax(0, 1fr));
}

.bsk-products ul.products::before,
.bsk-products ul.products::after {
	display: none;
}

.bsk-collection .bsk-products ul.products li.product {
	float: none;
	width: auto;
	margin: 0;
	padding: 16px 16px 20px; /* oddech w boxie widocznym po najechaniu */
	overflow: hidden;        /* wstążka „Nowość!” przycięta do zaokrąglonego rogu */
	clear: none;
}

/* --------------------------------------------------------------------------
   Paginacja + komunikaty
   -------------------------------------------------------------------------- */

.bsk-products .woocommerce-pagination {
	margin-top: 56px;
	text-align: center;
}

.bsk-products .woocommerce-pagination ul.page-numbers {
	display: inline-flex;
	gap: 6px;
	border: 0;
	margin: 0;
}

.bsk-products .woocommerce-pagination ul.page-numbers li {
	border: 0;
	float: none;
}

.bsk-products .woocommerce-pagination .page-numbers a,
.bsk-products .woocommerce-pagination .page-numbers span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 38px;
	height: 38px;
	padding: 0 10px;
	border-radius: var(--bsk-radius);
	font-size: 13px;
	color: var(--bsk-text);
	background: transparent;
}

.bsk-products .woocommerce-pagination .page-numbers a:hover {
	background: var(--bsk-chip-bg);
}

.bsk-products .woocommerce-pagination .page-numbers span.current {
	background: var(--bsk-text);
	color: #fff;
}

.bsk-products .woocommerce-info {
	border-radius: var(--bsk-radius);
}

/* --------------------------------------------------------------------------
   Pasek korzyści
   -------------------------------------------------------------------------- */

.bsk-usp {
	padding: 24px 0 64px;
}

.bsk-usp__list {
	display: grid;
	grid-template-columns: repeat(7, minmax(0, 1fr));
	gap: 24px;
	list-style: none;
	margin-top: 0;
	margin-bottom: 0;
}

.bsk-usp__item {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	text-align: center;
}

.bsk-usp__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 64px;
}

.bsk-usp__icon img {
	max-height: 64px;
	width: auto;
}

.bsk-usp__label {
	font-size: 12px;
	font-weight: 500;
	line-height: 1.4;
}

/* --------------------------------------------------------------------------
   Przyciski (mobile)
   -------------------------------------------------------------------------- */

.bsk-collection .bsk-btn {
	display: inline-flex;
	text-transform: none;
	letter-spacing: 0;
	flex: 1 1 0;
	align-items: center;
	justify-content: center;
	height: 46px;
	padding: 0 18px;
	border: 1px solid var(--bsk-text);
	border-radius: var(--bsk-radius);
	background: var(--bsk-text);
	color: #fff;
	font-family: var(--bsk-font);
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
}

.bsk-collection .bsk-btn:hover,
.bsk-collection .bsk-btn:focus {
	background: #333;
	color: #fff;
}

.bsk-collection .bsk-btn--ghost {
	background: #fff;
	color: var(--bsk-text);
}

.bsk-collection .bsk-btn--ghost:hover,
.bsk-collection .bsk-btn--ghost:focus {
	background: var(--bsk-chip-bg);
	color: var(--bsk-text);
}

/* --------------------------------------------------------------------------
   Responsywność
   -------------------------------------------------------------------------- */

@media (max-width: 1199px) {
	.bsk-products ul.products,
	.bsk-layout.is-filters-hidden .bsk-products ul.products {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.bsk-usp__list {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

@media (max-width: 989px) {
	.bsk-hero {
		padding: 28px 0 32px;
	}

	.bsk-layout,
	.bsk-layout.is-filters-hidden {
		grid-template-columns: minmax(0, 1fr);
		padding-top: 20px;
	}

	/* Filtry jako szuflada */
	.bsk-layout .bsk-sidebar,
	.bsk-layout.is-filters-hidden .bsk-sidebar {
		display: block;
		position: fixed;
		inset: 0;
		z-index: 9999;
		visibility: hidden;
		pointer-events: none;
	}

	.bsk-sidebar.is-open {
		visibility: visible;
		pointer-events: auto;
	}

	.bsk-sidebar__overlay {
		display: block;
		position: absolute;
		inset: 0;
		background: rgba(0, 0, 0, .4);
		opacity: 0;
		transition: opacity .25s;
	}

	.bsk-sidebar.is-open .bsk-sidebar__overlay {
		opacity: 1;
	}

	.bsk-sidebar__inner {
		position: absolute;
		top: 0;
		right: 0;
		bottom: 0;
		display: flex;
		flex-direction: column;
		width: min(400px, 88vw);
		padding: 0 20px;
		background: #fff;
		overflow-y: auto;
		transform: translateX(100%);
		transition: transform .3s ease;
	}

	.bsk-sidebar.is-open .bsk-sidebar__inner {
		transform: none;
	}

	.bsk-sidebar__mobile-head {
		position: sticky;
		top: 0;
		z-index: 1;
		display: flex;
		align-items: center;
		justify-content: space-between;
		margin: 0 -20px 20px;
		padding: 18px 20px;
		border-bottom: 1px solid var(--bsk-line);
		background: #fff;
		font-size: 16px;
		font-weight: 600;
	}

	.bsk-collection .bsk-sidebar__close {
		display: inline-flex;
		padding: 6px;
		border: 0;
		background: none;
		color: var(--bsk-text);
		cursor: pointer;
	}

	.bsk-sidebar__mobile-foot {
		position: sticky;
		bottom: 0;
		display: flex;
		gap: 10px;
		margin: auto -20px 0;
		padding: 16px 20px;
		border-top: 1px solid var(--bsk-line);
		background: #fff;
	}

	.bsk-toolbar {
		margin-bottom: 24px;
	}

	.bsk-products ul.products,
	.bsk-layout.is-filters-hidden .bsk-products ul.products {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 16px 6px;
	}

	.bsk-collection .bsk-products ul.products li.product {
		padding: 10px 10px 14px;
	}
}

@media (max-width: 599px) {
	.bsk-toolbar {
		flex-wrap: wrap;
	}

	.bsk-toolbar__count {
		order: 2;
		width: 100%;
	}

	.bsk-toolbar__actions {
		width: 100%;
	}

	.bsk-toolbar__filter {
		flex: 1 1 0;
		justify-content: center;
	}

	.bsk-select {
		flex: 1 1 0;
	}

	.bsk-select select {
		width: 100%;
		min-width: 0;
	}

	.bsk-usp__list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* --------------------------------------------------------------------------
   Warstwy: naklejka HYROX ma z-index 2147483647 i wychodzi ponad
   przyklejony nagłówek i szufladę filtrów – ograniczamy ją do kafelka.
   -------------------------------------------------------------------------- */

.bsk-collection .bsk-products li.product {
	position: relative;
	z-index: 0; /* własny kontekst warstw kafelka */
}

.bsk-collection .hyrox-sticker {
	z-index: 3 !important;
}

/* Chat Amazbot ukryty, gdy otwarta jest szuflada filtrów na telefonie */
html.bsk-drawer-open #amazbot-bubble,
html.bsk-drawer-open #amazbot-teaser,
html.bsk-drawer-open #amazbot-window {
	display: none !important;
}

@media (prefers-reduced-motion: reduce) {
	.bsk-collection * {
		transition: none !important;
	}
}
