/* Lista produktów, karta produktu i filtry. Wartości z makiet 390 px i 1800 px. */

/* Komunikaty WooCommerce */
.woocommerce-message,
.woocommerce-error,
.woocommerce-info {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px 24px;
	margin: 0 0 16px;
	padding: 14px 20px;
	border: 1px solid var(--color-field);
	font-size: 14px;
	line-height: 22px;
	list-style: none;
}

.woocommerce-error {
	display: block;
	border-color: #a33a2a;
}

.woocommerce-message a,
.woocommerce-info a,
.woocommerce-error a {
	text-decoration: underline;
}

.woocommerce-message .button,
.woocommerce-info .button {
	white-space: nowrap;
}

.breadcrumb {
	color: rgb(117 117 117 / 0.78);
	font-size: 10px;
	letter-spacing: 0.24em;
	line-height: 20px;
	text-transform: uppercase;
}

.breadcrumb a:hover {
	color: var(--color-ink);
}

/* Góra sklepu */
.shop-hero__inner {
	padding: 20px 0 15px;
}

.shop-hero .breadcrumb {
	margin-inline: 24px;
}

.shop-hero .section-label {
	margin: 32px 24px 12px;
	font-size: 13px;
}

.shop-hero__track {
	display: flex;
	gap: 5px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
}

.shop-hero__track::-webkit-scrollbar {
	display: none;
}

.shop-tile {
	position: relative;
	flex: 0 0 84%;
	height: 358px;
	overflow: hidden;
	background: var(--color-sand);
	color: var(--color-white);
	scroll-snap-align: start;
}

.shop-tile.is-dark {
	color: var(--color-ink);
}

.shop-tile__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 600ms ease;
}

.shop-tile:hover .shop-tile__image {
	transform: scale(1.02);
}

.shop-tile__label {
	position: absolute;
	right: 24px;
	bottom: 28px;
	display: flex;
	align-items: center;
	gap: 14px;
}

.shop-tile__title {
	font-size: 36px;
	line-height: 48px;
}

.arrow-circle--tile {
	--size: 38px;
}

.arrow-circle--tile .arrow-circle__icon {
	width: 50%;
	height: 54%;
}

.shop-hero__dots {
	display: flex;
	justify-content: center;
	gap: 6px;
	padding-top: 26px;
}

.shop-hero__dot {
	position: relative;
	width: 6px;
	height: 6px;
	border-radius: 3px;
	background: var(--color-sand);
	transition: width var(--transition), background-color var(--transition);
}

.shop-hero__dot::before {
	content: "";
	position: absolute;
	inset: -14px -3px;
}

.shop-hero__dot.is-active {
	width: 18px;
	background: var(--color-white);
}

/* Produkty */
.shop-products {
	background: var(--color-surface);
}

.shop-products__inner {
	padding: 40px 24px 64px;
}

.shop-products__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.shop-products__filter {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	margin-right: -8px;
}

.shop-products__filter:hover {
	opacity: 0.6;
}

.shop-products__filter-count {
	position: absolute;
	top: 0;
	right: 0;
	min-width: 16px;
	height: 16px;
	border-radius: 8px;
	background: var(--color-ink);
	color: var(--color-white);
	font-size: 10px;
	line-height: 16px;
}

.shop-tabs {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 10px;
	margin-top: 24px;
}

.shop-tabs__label {
	grid-column: 1 / -1;
	color: rgb(117 117 117 / 0.78);
	font-size: 11px;
	letter-spacing: 0.2em;
	line-height: 20px;
	text-transform: uppercase;
}

.shop-tabs__tab {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 46px;
	padding: 6px 8px;
	border: 1px solid var(--color-ink);
	color: rgb(42 42 38 / 0.78);
	font-size: 10px;
	font-weight: 500;
	letter-spacing: 0.2em;
	line-height: 16px;
	text-align: center;
	text-transform: uppercase;
	transition: background-color var(--transition);
}

.shop-tabs__tab:hover,
.shop-tabs__tab.is-active {
	background: var(--color-sand);
}

.shop-products__toggle {
	display: flex;
	justify-content: flex-end;
	margin-top: 16px;
}

.shop-products__empty {
	margin: 48px 0;
	font-size: 16px;
	text-align: center;
}

/* Przełącznik zapalonej lampy */
.lamp-toggle {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	height: 26px;
	padding: 2px;
	border-radius: 13px;
	background: var(--color-bg);
	color: var(--color-ink);
	font-family: var(--font-mono);
	font-size: 10px;
	font-weight: 300;
	letter-spacing: 0.11em;
}

.lamp-toggle__label {
	padding-left: 8px;
}

.lamp-toggle[aria-pressed="false"] {
	flex-direction: row-reverse;
}

.lamp-toggle[aria-pressed="false"] .lamp-toggle__label {
	padding: 0 8px 0 0;
}

.lamp-toggle[aria-pressed="true"] .lamp-toggle__icon--off,
.lamp-toggle[aria-pressed="false"] .lamp-toggle__icon--on {
	display: none;
}

/* Karta produktu */
.products {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 32px 12px;
	margin: 24px 0 0;
}

.product-card {
	position: relative;
	min-width: 0;
}

.product-card__link {
	display: block;
}

.product-card__media {
	position: relative;
	display: block;
	aspect-ratio: 3 / 4;
	overflow: hidden;
	background: var(--color-sand);
}

.product-card__image {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 600ms ease, opacity 300ms ease;
}

.product-card:hover .product-card__image {
	transform: scale(1.02);
}

.product-card__image--lit {
	opacity: 0;
}

.is-lamp-on .product-card__image--lit {
	opacity: 1;
}

.product-card__media:has(.product-card__placeholder) {
	background: rgb(248 248 248 / 0.4);
}

.product-card__placeholder {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 16px;
	color: rgb(42 42 38 / 0.6);
	font-family: var(--font-mono);
	font-size: 10px;
	font-weight: 300;
	letter-spacing: 0.1em;
	line-height: 1.7;
	text-align: center;
	text-transform: uppercase;
}

.product-card__badge {
	position: absolute;
	top: 10px;
	left: 10px;
	padding: 2px 10px;
	border: 1px solid rgb(42 42 38 / 0.3);
	border-radius: 12px;
	color: rgb(42 42 38 / 0.6);
	font-family: var(--font-mono);
	font-size: 9px;
	font-weight: 300;
	letter-spacing: 0.1em;
	line-height: 16px;
	text-transform: uppercase;
}

.product-card__body {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding-top: 12px;
}

.product-card__name {
	font-size: 14px;
	font-weight: 500;
	line-height: 20px;
}

.product-card__subtitle {
	order: 1;
	color: rgb(42 42 38 / 0.78);
	font-size: 12px;
	font-weight: 300;
	line-height: 18px;
}

.product-card__price {
	order: 2;
	padding-top: 12px;
	color: rgb(42 42 38 / 0.6);
	font-size: 12px;
	line-height: 18px;
}

.product-card__cta {
	display: none;
}

/* Paginacja */
.woocommerce-pagination {
	margin-top: 48px;
}

.woocommerce-pagination ul {
	display: flex;
	justify-content: center;
	gap: 8px;
}

.woocommerce-pagination .page-numbers {
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	font-size: 14px;
}

.woocommerce-pagination .current,
.woocommerce-pagination a:hover {
	background: var(--color-sand);
}

/* Zaproszenie na dole */
.shop-cta {
	padding: 56px 24px;
	text-align: center;
}

.shop-cta__text {
	margin: 0;
}

.shop-cta__buttons {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin-top: 28px;
}

/* Szuflada filtrów */
.filters {
	position: fixed;
	inset: 0 0 0 auto;
	width: min(368px, 100vw);
	max-width: none;
	height: 100dvh;
	max-height: none;
	margin: 0;
	padding: 0;
	border: 0;
	background: var(--color-white);
	color: var(--color-ink);
}

.filters::backdrop {
	background: rgb(245 245 245 / 0.7);
}

.filters__form {
	display: flex;
	flex-direction: column;
	min-height: 100%;
	padding: 20px 32px 24px 36px;
}

.filters__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-left: -36px;
}

.filters__title {
	font-size: 16px;
	font-weight: 400;
	line-height: 28px;
	text-transform: uppercase;
}

.filters__title::before {
	width: 112px;
}

.filters__close {
	position: relative;
	width: 32px;
	height: 32px;
	margin-right: -6px;
}

.filters__close::before,
.filters__close::after,
.info-dialog__close::before,
.info-dialog__close::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 15%;
	width: 70%;
	height: 1px;
	background: currentColor;
	transform: rotate(45deg);
}

.filters__close::after,
.info-dialog__close::after {
	transform: rotate(-45deg);
}

.filters__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 20px;
}

.filters__chip {
	position: relative;
	display: block;
	padding: 6px 30px 6px 14px;
	background: var(--color-surface);
	color: var(--color-muted);
	font-size: 12px;
	font-weight: 500;
	line-height: 17px;
}

.filters__chip::before,
.filters__chip::after {
	content: "";
	position: absolute;
	top: 50%;
	right: 10px;
	width: 13px;
	height: 1px;
	background: var(--color-ink);
	transform: rotate(45deg);
}

.filters__chip::after {
	transform: rotate(-45deg);
}

.filters__groups {
	flex: 1;
	margin-top: 16px;
}

.filters__group {
	margin-inline: -14px;
	padding-inline: 14px;
	border-top: 1px solid var(--color-sand);
}

.filters__group:first-child {
	border-top: 0;
}

.filters__summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 34px;
	padding-block: 6px;
	font-size: 12px;
	line-height: 20px;
	text-transform: uppercase;
	cursor: pointer;
	list-style: none;
}

.filters__summary::-webkit-details-marker {
	display: none;
}

.filters__summary strong {
	font-weight: 600;
}

.filters__selected {
	font-weight: 300;
}

.filters__summary::after {
	content: "";
	flex: none;
	width: 16px;
	height: 16px;
	background: currentColor;
	-webkit-mask: url(../icons/arrow-right.svg) center / contain no-repeat;
	mask: url(../icons/arrow-right.svg) center / contain no-repeat;
	transition: transform var(--transition);
}

.filters__group[open] > .filters__summary::after {
	transform: rotate(90deg);
}

.filters__options {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding-bottom: 16px;
}

.filters__option {
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: 12px;
	font-weight: 500;
	line-height: 22px;
	cursor: pointer;
}

.filters__option input {
	flex: none;
	width: 16px;
	height: 16px;
	margin: 0;
	border: 1px solid var(--color-ink);
	background: var(--color-white);
	cursor: pointer;
	appearance: none;
}

.filters__option input:checked {
	box-shadow: inset 0 0 0 2px var(--color-white);
	background: var(--color-sand);
}

.filters__count {
	margin-left: -8px;
	color: var(--color-faint);
	font-weight: 400;
}

.filters__actions {
	position: sticky;
	bottom: 0;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
	margin-top: 24px;
	padding-top: 8px;
	background: var(--color-white);
}

.filters__clear {
	background: var(--color-surface);
	color: var(--color-faint);
}

.filters__clear.is-disabled {
	pointer-events: none;
}

.filters .btn {
	width: 100%;
	height: 40px;
	min-height: 40px;
	min-width: 0;
	padding-inline: 4px;
	font-size: 10px;
	font-weight: 500;
	line-height: 17px;
}

/* Okno z informacją */
.info-dialog {
	width: min(560px, 100vw - 48px);
	padding: 40px;
	border: 0;
	background: var(--color-bg);
	color: var(--color-ink);
}

.info-dialog::backdrop {
	background: rgb(42 42 38 / 0.5);
}

.info-dialog h2 {
	margin-bottom: 16px;
	font-size: 24px;
	line-height: 1.3;
}

.info-dialog p {
	margin: 0;
	font-size: 14px;
	line-height: 24px;
}

.info-dialog__close {
	position: absolute;
	top: 12px;
	right: 12px;
	width: 32px;
	height: 32px;
}

/* Sekcja „Pasuje do tych produktów” korzysta z kart. */
.products--related {
	margin-top: 24px;
}

@media (min-width: 1024px) {
	.breadcrumb {
		font-size: 11px;
		font-weight: 300;
		letter-spacing: 0.22em;
		line-height: 19px;
	}

	.shop-hero__inner {
		height: calc(835 * var(--u));
		padding: calc(48 * var(--u)) 0 0;
	}

	.shop-hero .breadcrumb {
		margin: 0 0 0 calc(211 * var(--u));
	}

	.shop-hero .section-label {
		margin: calc(55 * var(--u)) 0 calc(83 * var(--u));
		font-size: max(16px, calc(20 * var(--u)));
		text-transform: uppercase;
	}

	.shop-hero__track {
		gap: calc(6 * var(--u));
	}

	.shop-tile {
		flex: 0 0 calc(694 * var(--u));
		height: calc(479 * var(--u));
	}

	.shop-tile__label {
		top: calc(26 * var(--u));
		right: auto;
		bottom: auto;
		left: calc(42 * var(--u));
		gap: calc(30 * var(--u));
	}

	.shop-tile__title {
		font-size: calc(70 * var(--u));
		line-height: calc(90 * var(--u));
	}

	.arrow-circle--tile {
		--size: calc(74 * var(--u));
	}

	.arrow-circle--tile .arrow-circle__icon {
		width: 45%;
		height: 49%;
	}

	.shop-hero__dots {
		position: absolute;
		top: calc(750 * var(--u));
		left: calc(867 * var(--u));
		padding: 0;
	}

	.shop-products__inner {
		padding: calc(81 * var(--u)) 0 calc(260 * var(--u));
	}

	.shop-products .section-label {
		text-transform: uppercase;
	}

	.shop-products__filter {
		position: absolute;
		top: calc(80 * var(--u));
		left: calc(1652 * var(--u));
		margin: 0;
	}

	.shop-tabs {
		display: flex;
		flex-wrap: wrap;
		align-items: center;
		gap: calc(16 * var(--u)) calc(40 * var(--u));
		margin: calc(41 * var(--u)) 0 0 calc(206 * var(--u));
	}

	.shop-tabs__label {
		width: calc(81 * var(--u));
		font-size: 12px;
	}

	.shop-tabs__tab {
		min-width: calc(201 * var(--u));
		height: calc(46 * var(--u));
		min-height: 36px;
		padding-inline: calc(18 * var(--u));
		font-size: max(9px, calc(11 * var(--u)));
		letter-spacing: 0.22em;
		white-space: nowrap;
	}

	.shop-products__toggle {
		position: absolute;
		top: calc(278 * var(--u));
		left: calc(1501 * var(--u));
		margin: 0;
	}

	.products {
		grid-template-columns: repeat(3, calc(422 * var(--u)));
		gap: calc(130 * var(--u)) calc(29 * var(--u));
		margin: calc(186 * var(--u)) 0 0 calc(238 * var(--u));
	}

	.product-card__media {
		aspect-ratio: 422 / 563;
	}

	.product-card__placeholder {
		font-size: 11px;
	}

	.product-card__badge {
		top: calc(21 * var(--u));
		left: calc(32 * var(--u));
		font-size: 10px;
	}

	.product-card__body {
		display: grid;
		grid-template-columns: 1fr auto;
		align-items: center;
		gap: 0 16px;
		padding-top: calc(20 * var(--u));
	}

	.product-card__name {
		font-size: max(14px, calc(16 * var(--u)));
		letter-spacing: -0.01em;
		line-height: calc(38 * var(--u));
	}

	.product-card__price {
		order: 0;
		padding: calc(6 * var(--u)) 0 0;
		font-size: 14px;
		line-height: 21px;
	}

	.product-card__subtitle {
		grid-column: 1 / -1;
		font-size: 14px;
		line-height: calc(28 * var(--u));
	}

	.product-card__cta {
		position: absolute;
		left: 0;
		display: flex;
		width: 100%;
		height: calc(46 * var(--u));
		min-height: 36px;
		margin-top: calc(15 * var(--u));
		font-size: 12px;
		font-weight: 500;
		opacity: 0;
		transition: opacity var(--transition);
	}

	.product-card__link:hover .product-card__cta,
	.product-card__link:focus-visible .product-card__cta {
		opacity: 1;
	}

	.woocommerce-pagination {
		margin: calc(130 * var(--u)) 0 0 calc(238 * var(--u));
		width: calc(1324 * var(--u));
	}

	.shop-cta {
		padding: calc(170 * var(--u)) 0 calc(130 * var(--u));
	}

	.shop-cta__buttons {
		flex-direction: row;
		justify-content: center;
		gap: calc(75 * var(--u));
		margin-top: calc(62 * var(--u));
	}

	.shop-cta__button {
		width: calc(359 * var(--u));
		min-width: 260px;
		font-size: 14px;
		line-height: 21px;
	}

	.filters {
		width: min(515px, 100vw);
	}

	.filters__form {
		padding: 11px 50px 32px 69px;
	}

	.filters__head {
		margin-left: -69px;
	}

	.filters__title {
		font-size: 20px;
	}

	.filters__title::before {
		width: 198px;
		margin-left: 0;
	}

	.filters__chips {
		gap: 8px;
		margin-top: 37px;
	}

	.filters__chip {
		padding: 12px 42px 12px 20px;
	}

	.filters__groups {
		margin-top: 32px;
	}

	.filters__group {
		margin-inline: -20px;
		padding-inline: 20px;
	}

	.filters__summary {
		min-height: 48px;
		font-size: 14px;
	}

	.filters__summary::after {
		width: 20px;
		height: 20px;
	}

	.filters__options {
		gap: 14px;
		padding-bottom: 36px;
	}

	.filters__option {
		gap: 15px;
		font-size: 14px;
	}

	.filters__option input {
		width: 22px;
		height: 22px;
	}

	.filters__option input:checked {
		box-shadow: inset 0 0 0 3px var(--color-white);
	}

	.filters__actions {
		margin-inline: -20px;
		margin-top: 40px;
	}

	.filters .btn {
		height: 55px;
		min-height: 55px;
		font-size: 12px;
	}
}
