/* Product loop card + rails — Figma 1045:9889 / 1045:9114 / 1045:9880 / 2294:14148 */

.bz-product-rail {
	padding: 60px 0;
	background: rgba(0, 0, 0, 0.02);
}

.bz-product-rail__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: 56px;
}

.bz-product-rail__title {
	margin: 0;
	font-family: var(--bz-font-manrope);
	font-size: 36px;
	font-weight: 800;
	line-height: 1.2;
	text-transform: uppercase;
	color: var(--bz-black);
}

.bz-product-rail__nav {
	display: flex;
	gap: 0;
	flex-shrink: 0;
}

.bz-product-rail__arrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: rgba(0, 0, 0, 0.05);
	color: var(--bz-black);
	cursor: pointer;
}

.bz-product-rail__arrow:hover,
.bz-product-rail__arrow:focus-visible {
	background: var(--bz-accent, #067756);
	color: #fff;
}

.bz-product-rail__arrow.swiper-button-disabled {
	opacity: 0.35;
	pointer-events: none;
}

.bz-product-rail__swiper {
	overflow: hidden;
	width: 100%;
}

.bz-product-rail__swiper .swiper-slide {
	height: auto;
	box-sizing: border-box;
}

/* Card */
.bz-pcard {
	display: flex;
	flex-direction: column;
	width: 100%;
	height: 100%;
	min-height: 499px;
	background: #fff;
	box-sizing: border-box;
}

.bz-pcard__media {
	position: relative;
	display: block;
	flex: 0 0 228px;
	height: 228px;
	overflow: hidden;
	background: #fff;
	text-decoration: none;
}

.bz-pcard__media img {
	display: block;
	width: 100%;
	height: 100%;
	padding: 20px;
	box-sizing: border-box;
	object-fit: contain;
	object-position: center;
	margin: 0 auto;
}

.bz-pcard__media-badges {
	position: absolute;
	top: 0;
	left: 0;
	z-index: 2;
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	align-items: flex-start;
	width: 100%;
	padding: 12px;
	box-sizing: border-box;
	pointer-events: none;
}

.bz-pcard__sale {
	display: inline-flex;
	align-items: center;
	padding: 4px 12px;
	border-radius: 1px;
	background: var(--bz-accent, #067756);
	color: #fff;
	font-family: var(--bz-font-inter);
	font-size: 14px;
	line-height: 1.2;
}

.bz-pcard__tag {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 4px 12px;
	border-radius: 1px;
	background: #fff;
	font-family: var(--bz-font-inter);
	font-size: 14px;
	line-height: 1.2;
	color: var(--bz-black);
}

.bz-pcard__tag-dot {
	flex-shrink: 0;
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.35);
}

.bz-pcard__tag--novinka .bz-pcard__tag-dot,
.bz-pcard__tag--rekomenduem .bz-pcard__tag-dot {
	background: #ff3b30;
}

.bz-pcard__tag--sale-tag .bz-pcard__tag-dot {
	background: var(--bz-accent, #067756);
}

.bz-pcard__body {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	gap: 12px;
	margin-top: 8px;
	padding: 12px;
	background: #fff;
}

.bz-pcard__badges {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 10px;
	align-items: center;
}

.bz-pcard__badge {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-family: var(--bz-font-inter);
	font-size: 14px;
	line-height: 1.2;
	color: var(--bz-black);
}

.bz-pcard__badge-dot {
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.35);
}

.bz-pcard__badge--in-stock .bz-pcard__badge-dot {
	background: var(--bz-accent, #067756);
}

.bz-pcard__badge--on-order .bz-pcard__badge-dot {
	background: #ff9500;
}

.bz-pcard__badge--out-of-stock .bz-pcard__badge-dot {
	background: #c23939;
}

.bz-pcard__title {
	flex: 0 0 auto;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	overflow: hidden;
	margin-top: 12px;
	margin-bottom: 12px;
	font-family: var(--bz-font-inter);
	font-size: 18px;
	font-weight: 600;
	line-height: 1.2;
	max-height: calc(1.2em * 2);
	color: var(--bz-black);
	text-decoration: none;
	word-break: break-word;
}

.bz-pcard__title:hover,
.bz-pcard__title:focus-visible {
	color: var(--bz-accent, #067756);
}

.bz-pcard__attrs {
	display: flex;
	flex-direction: column;
	gap: 10px;
	width: 100%;
	margin-bottom: 10px;
}

.bz-pcard__attr {
	display: flex;
	align-items: center;
	gap: 24px;
	width: 100%;
	min-height: 43px;
	padding: 12px;
	border-radius: 1px;
	background: rgba(0, 0, 0, 0.05);
	box-sizing: border-box;
	font-family: var(--bz-font-inter);
	font-size: 16px;
	font-weight: 400;
	line-height: 1.2;
	color: var(--bz-black);
	overflow-wrap: anywhere;
}

.bz-pcard__attr-label {
	flex: 0 1 auto;
	max-width: 58%;
	font-weight: 550;
	min-width: 35%;
}

.bz-pcard__attr-value {
	flex: 1 1 auto;
	min-width: 0;
	text-align: right;
	font-weight: 400;
}

.bz-pcard__price {
	display: flex;
	flex-direction: column;
	gap: 4px;
	align-items: flex-start;
	margin-bottom: 10px;
	margin-top: auto;
}

.bz-pcard__price .bz-product-card__price--old {
	width: max-content;
}

.bz-pcard__actions {
	display: flex;
	align-items: stretch;
	width: 100%;
	margin-top: auto;
}

.bz-pcard__more {
	flex: 1 1 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 0;
	min-height: 43px;
	padding: 12px 16px;
	border-radius: 1px;
	background: #000;
	color: #fff;
	font-family: var(--bz-font-inter);
	font-size: 16px;
	line-height: 1.2;
	text-decoration: none;
	box-sizing: border-box;
}

.bz-pcard__more:hover,
.bz-pcard__more:focus-visible {
	background: var(--bz-accent, #067756);
	color: #fff;
}

.bz-pcard__cart {
	display: inline-flex !important;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	align-self: stretch;
	min-width: 72px;
	padding: 0 24px;
	border: 0;
	border-radius: 1px;
	background: var(--bz-accent, #067756) !important;
	text-decoration: none;
	box-sizing: border-box;
}

.bz-pcard__cart img {
	display: block;
	width: 24px;
	height: 24px;
}

.bz-pcard__cart--add:hover,
.bz-pcard__cart--add:focus-visible,
.bz-pcard__cart--in-cart:hover,
.bz-pcard__cart--in-cart:focus-visible {
	background: #055941 !important;
}

.bz-pcard__cart--disabled {
	background: rgba(0, 0, 0, 0.05) !important;
	pointer-events: none;
	cursor: not-allowed;
}

.bz-pcard__cart[hidden],
.bz-pcard__actions .added_to_cart,
.bz-pcard__actions a.wc-forward {
	display: none !important;
}

@media (max-width: 900px) {
	.bz-product-rail {
		padding: 48px 0;
	}

	.bz-product-rail__head {
		margin-bottom: 24px;
	}

	.bz-product-rail__title {
		font-size: 28px;
	}

	.bz-pcard {
		min-height: 0;
	}
}

.bz-product-rail--compact {
	padding: 24px 0;
}

.bz-product-rail--compact .bz-product-rail__head {
	gap: 12px;
	margin-bottom: 12px;
}

.bz-product-rail--compact .bz-product-rail__title {
	font-size: clamp(19px, 2vw, 26px);
	text-transform: none;
}

.bz-pcard--compact {
	--bz-compact-cart-size: 36px;
	position: relative;
	min-height: 0;
	border: 1px solid #dce6e1;
}

.bz-pcard__product-link {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	color: var(--bz-black);
	text-decoration: none;
}

.bz-pcard__product-link:focus-visible {
	outline: 2px solid var(--bz-accent, #067756);
	outline-offset: -2px;
}

.bz-pcard--compact .bz-pcard__media {
	flex: 0 0 auto;
	height: clamp(90px, 9vw, 136px);
	background: #eff6f2;
}

.bz-pcard--compact .bz-pcard__media img {
	padding: 6px;
}

.bz-pcard--compact .bz-pcard__title {
	min-height: 2.6em;
	max-height: 2.6em;
	margin: 7px 8px;
	font-size: 13px;
	line-height: 1.3;
	overflow-wrap: anywhere;
}

.bz-pcard--compact .bz-pcard__price {
	justify-content: center;
	min-height: var(--bz-compact-cart-size);
	margin: auto calc(var(--bz-compact-cart-size) + 12px) 6px 8px;
}

.bz-pcard--compact .bz-product-card__price--current .bz-product-card__price-num {
	font-size: 17px;
}

.bz-pcard--compact .bz-product-card__price-unit,
.bz-pcard--compact .bz-product-card__price-ot,
.bz-pcard--compact .bz-product-card__price--old {
	font-size: 12px;
}

.bz-pcard--compact .bz-product-card__price--old {
	max-width: 100%;
}

.bz-pcard--compact .bz-pcard__actions {
	position: absolute;
	z-index: 1;
	inset-inline-end: 6px;
	bottom: 6px;
	width: auto;
	margin: 0;
}

.bz-pcard--compact .bz-pcard__cart {
	width: var(--bz-compact-cart-size);
	height: var(--bz-compact-cart-size);
	min-width: 0;
	padding: 0;
	border-radius: 2px;
}

.bz-pcard--compact .bz-pcard__cart img {
	width: 17px;
	height: 17px;
}

.bz-pcard--compact .bz-pcard__cart--in-cart {
	background: #eff6f2 !important;
	border: 1px solid #dce6e1;
	color: var(--bz-accent, #067756);
}

.bz-pcard--compact .bz-pcard__cart--in-cart:hover,
.bz-pcard--compact .bz-pcard__cart--in-cart:focus-visible {
	background: #dcece4 !important;
}

.bz-pcard--compact .bz-pcard__cart--in-cart img {
	display: none;
}

.bz-pcard--compact .bz-pcard__cart--in-cart::before {
	content: "";
	width: 17px;
	height: 17px;
	background: currentColor;
	mask: url("../../img/icons/icon-checkmark-white.svg") center / contain no-repeat;
}

@media (pointer: coarse) {
	.bz-pcard--compact {
		--bz-compact-cart-size: 44px;
	}
}

.bz-pcard--on-order .bz-pcard__actions {
	flex-wrap: wrap;
}

.bz-pcard--on-order .bz-product-order-button {
	flex: 1 1 auto;
}

.bz-pcard--compact.bz-pcard--on-order {
	--bz-order-button-width: 132px;
}

.bz-pcard--compact.bz-pcard--on-order .bz-pcard__price {
	margin-inline-end: calc(var(--bz-order-button-width) + 12px);
	min-height: 44px;
}

.bz-pcard--compact.bz-pcard--on-order .bz-product-order-button {
	width: var(--bz-order-button-width);
}

@media (max-width: 639px) {
	.bz-pcard--compact.bz-pcard--on-order .bz-pcard__price {
		margin-inline-end: 8px;
		min-height: 0;
	}

	.bz-pcard--compact.bz-pcard--on-order .bz-pcard__actions {
		position: static;
		padding: 0 6px 6px;
	}

	.bz-pcard--compact.bz-pcard--on-order .bz-product-order-button {
		width: 100%;
	}
}

/* Catalog cards with expandable specifications. */
.bz-pcard--catalog {
	position: relative;
	align-self: stretch;
	height: auto;
	min-height: 0;
	border: 1px solid #dce6e1;
}

.bz-catalog-grid--expanded > .bz-pcard--fixed-row {
	align-self: start;
	min-height: var(--bz-catalog-row-height, 0px);
}

.bz-catalog-grid--measuring [data-bz-extra-spec] {
	display: none;
}

.bz-pcard--catalog .bz-pcard__media {
	flex: 0 0 auto;
	height: clamp(125px, 12vw, 172px);
	background: #eff6f2;
}

.bz-pcard--catalog .bz-pcard__media img {
	padding: 8px;
}

.bz-pcard--catalog .bz-pcard__body {
	justify-content: flex-start;
	gap: 7px;
	margin-top: 0;
	padding: 10px 12px 7px;
}

.bz-pcard--catalog .bz-pcard__title {
	display: block;
	max-height: none;
	margin: 0;
	overflow: visible;
	font: 800 16px/1.25 var(--bz-font-manrope);
	overflow-wrap: anywhere;
}

.bz-pcard--catalog .bz-pcard__title:hover {
	color: var(--bz-black);
}

.bz-pcard--catalog .bz-pcard__title::after {
	content: "";
	position: absolute;
	inset: 0;
}

.bz-pcard--catalog .bz-pcard__title:focus-visible::after {
	outline: 2px solid var(--bz-accent, #067756);
	outline-offset: -2px;
}

.bz-pcard--catalog .bz-pcard__badge {
	gap: 5px;
	font-size: 12px;
	font-weight: 600;
}

.bz-pcard--catalog .bz-pcard__badge-dot {
	flex: 0 0 6px;
	width: 6px;
	height: 6px;
}

.bz-pcard--catalog .bz-pcard__badge--in-stock {
	color: var(--bz-accent, #067756);
}

.bz-pcard--catalog .bz-pcard__badge--on-order {
	color: #825617;
}

.bz-pcard__specs {
	display: grid;
	grid-template-columns: fit-content(58%) minmax(0, 1fr);
	gap: 4px 7px;
	margin: 0;
	padding: 7px 0 0;
	border-top: 1px solid #dce6e1;
	font: 400 12px/1.4 var(--bz-font-inter);
}

.bz-pcard__spec {
	display: grid;
	grid-column: 1 / -1;
	grid-template-columns: fit-content(58%) minmax(0, 1fr);
	grid-template-columns: subgrid;
	column-gap: 7px;
	align-items: baseline;
}

.bz-pcard__spec[hidden] {
	display: none;
}

.bz-pcard__spec dt,
.bz-pcard__spec dd {
	min-width: 0;
	margin: 0;
	overflow-wrap: anywhere;
}

.bz-pcard__spec dt {
	color: #53645d;
}

.bz-pcard__specs-toggle {
	position: relative;
	z-index: 1;
	display: inline-flex;
	align-self: flex-start;
	align-items: center;
	gap: 5px;
	min-height: 24px;
	padding: 2px 0;
	border: 0;
	background: transparent;
	color: var(--bz-accent, #067756);
	font: 700 12px/1.35 var(--bz-font-inter);
	text-align: start;
	cursor: pointer;
}

.bz-pcard__specs-chevron {
	flex: 0 0 6px;
	width: 6px;
	height: 6px;
	margin: 0 2px 3px;
	border-right: 1.5px solid currentColor;
	border-bottom: 1.5px solid currentColor;
	transform: rotate(45deg);
}

.bz-pcard__specs-toggle[aria-expanded="true"] .bz-pcard__specs-chevron {
	margin-bottom: -3px;
	transform: rotate(-135deg);
}

.bz-pcard--catalog .bz-pcard__price {
	gap: 3px;
	margin: auto 0 0;
}

.bz-pcard--catalog .bz-product-card__price--current .bz-product-card__price-num {
	font-size: 21px;
}

.bz-pcard--catalog .bz-product-card__price-unit,
.bz-pcard--catalog .bz-product-card__price--old {
	font-size: 12px;
}

.bz-pcard--catalog .bz-pcard__actions {
	position: relative;
	z-index: 1;
	margin: 0;
	padding: 0 12px 12px;
}

.bz-pcard--catalog .bz-pcard__cart {
	flex: 1 1 auto;
	gap: 6px;
	min-width: 0;
	min-height: 44px;
	padding: 6px;
	color: #fff;
	font: 700 13px/1.2 var(--bz-font-inter);
}

.bz-pcard--catalog .bz-pcard__cart img {
	flex: 0 0 17px;
	width: 17px;
	height: 17px;
}

.bz-pcard--catalog .bz-pcard__cart--disabled {
	color: #53645d;
}

.bz-pcard--catalog .bz-pcard__cart--in-cart {
	border: 1px solid #dce6e1;
	background: #eff6f2 !important;
	color: var(--bz-accent, #067756);
}

.bz-pcard--catalog .bz-pcard__cart--in-cart:hover,
.bz-pcard--catalog .bz-pcard__cart--in-cart:focus-visible {
	background: #dcece4 !important;
}

.bz-pcard--catalog .bz-pcard__cart--in-cart img {
	display: none;
}

.bz-pcard--catalog .bz-pcard__cart--in-cart::before {
	content: "";
	width: 17px;
	height: 17px;
	background: currentColor;
	mask: url("../../img/icons/icon-checkmark-white.svg") center / contain no-repeat;
}

@media (hover: hover) and (pointer: fine) {
	.bz-product-rail--compact .bz-product-rail__swiper {
		width: auto;
		margin: -18px -8px -22px;
		padding: 18px 8px 22px;
	}

	.bz-product-rail--compact .swiper-slide:hover {
		z-index: 1;
	}

	:is(.bz-pcard--catalog, .bz-pcard--compact) {
		transition: box-shadow 180ms ease-out;
	}

	:is(.bz-pcard--catalog, .bz-pcard--compact) .bz-pcard__media img {
		transition: transform 220ms ease-out;
	}

	:is(.bz-pcard--catalog, .bz-pcard--compact):hover {
		box-shadow: 0 5px 16px rgba(16, 26, 23, 0.12);
	}

	:is(.bz-pcard--catalog, .bz-pcard--compact):hover .bz-pcard__media img {
		transform: scale(1.04);
	}
}

@media (prefers-reduced-motion: reduce) {
	:is(.bz-pcard--catalog, .bz-pcard--compact),
	:is(.bz-pcard--catalog, .bz-pcard--compact) .bz-pcard__media img {
		transition: none;
	}

	:is(.bz-pcard--catalog, .bz-pcard--compact):hover .bz-pcard__media img {
		transform: none;
	}
}

@media (max-width: 560px) {
	.bz-pcard--catalog .bz-pcard__media {
		height: 99px;
	}

	.bz-pcard--catalog .bz-pcard__media img {
		padding: 5px;
	}

	.bz-pcard--catalog .bz-pcard__body,
	.bz-pcard--catalog .bz-pcard__actions {
		padding-inline: 8px;
	}

	.bz-pcard--catalog .bz-pcard__title {
		font-size: 14px;
	}

	.bz-pcard--catalog .bz-pcard__price {
		padding-top: 8px;
	}

	.bz-pcard--catalog .bz-product-card__price--current .bz-product-card__price-num {
		font-size: 19px;
	}

	.bz-pcard__specs,
	.bz-pcard__spec {
		column-gap: 5px;
	}
}
