.woocommerce-products-header {
	margin-bottom: 16px;
}

.woocommerce-products-header__title {
	margin: 0;
}

.woocommerce-products-header .term-description,
.woocommerce-products-header .page-description {
	max-width: var(--kora-container-text);
	margin-top: 8px;
	color: var(--kora-color-text-variant);
}

.woocommerce-products-header .term-description > :last-child,
.woocommerce-products-header .page-description > :last-child {
	margin-bottom: 0;
}

.shop-toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px 24px;
	margin-bottom: 24px;
}

.shop-categories {
	flex: 1 1 100%;
	min-width: 0;
	margin-inline: calc(-1 * var(--kora-gutter));
}

.shop-categories__list {
	display: flex;
	gap: 8px;
	margin: 0;
	padding: 4px var(--kora-gutter);
	overflow-x: auto;
	list-style: none;
	scrollbar-width: none;
	scroll-padding-inline: var(--kora-gutter);
}

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

.shop-categories__list > li {
	flex: none;
}

.shop-categories__chip {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 40px;
	padding: 0 16px;
	border: 1px solid var(--kora-color-outline);
	border-radius: var(--kora-radius-full);
	color: var(--kora-color-text);
	font: var(--kora-weight-medium) var(--kora-text-label-l) var(--kora-font);
	white-space: nowrap;
	text-decoration: none;
	transition: background-color var(--kora-motion), border-color var(--kora-motion);
}

.shop-categories__chip:hover {
	background: var(--kora-state-hover);
	color: var(--kora-color-text);
}

.shop-categories__chip[aria-current] {
	padding-left: 12px;
	border-color: transparent;
	background: var(--kora-color-surface);
}

.shop-categories__chip .icon {
	width: 18px;
	height: 18px;
}

.woocommerce-ordering {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0;
}

@media (min-width: 960px) {
	.woocommerce-ordering:only-child {
		margin-left: auto;
	}
}

.woocommerce-ordering label {
	color: var(--kora-color-text-variant);
	font: var(--kora-weight-regular) var(--kora-text-body-m) var(--kora-font);
	white-space: nowrap;
}

.woocommerce-ordering select {
	width: auto;
	min-height: 40px;
	padding: 0 40px 0 16px;
	border-color: var(--kora-color-outline);
	border-radius: var(--kora-radius-s);
	background: var(--kora-color-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23161616' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E") no-repeat right 12px center / 20px;
	font: var(--kora-weight-medium) var(--kora-text-label-l) var(--kora-font);
	cursor: pointer;
	appearance: none;
}

@media (min-width: 600px) {
	.shop-categories {
		flex: 1 1 auto;
		margin-inline: 0;
	}

	.shop-categories__list {
		flex-wrap: wrap;
		padding-inline: 0;
		overflow: visible;
	}
}

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

@media (min-width: 600px) {
	ul.products {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 40px 24px;
	}
}

@media (min-width: 960px) {
	ul.products {
		grid-template-columns: repeat(4, minmax(0, 1fr));
		gap: 48px 24px;
	}
}

ul.products > li.product {
	position: relative;
	min-width: 0;
}

.product-card__media {
	position: relative;
	margin-bottom: 12px;
	overflow: hidden;
	border-radius: var(--kora-radius-l);
	background: var(--kora-color-surface);
	aspect-ratio: 4 / 3;
}

.product-card__media::after {
	content: "";
	position: absolute;
	inset: 0;
	background: transparent;
	transition: background-color var(--kora-motion);
}

.product-card__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 400ms cubic-bezier(0.2, 0, 0, 1);
}

li.product:hover .product-card__image {
	transform: scale(1.03);
}

li.product:hover .product-card__media::after {
	background: var(--kora-state-photo);
}

li.product.outofstock .product-card__image {
	opacity: 0.6;
}

.product-card__badge {
	position: absolute;
	top: 8px;
	left: 8px;
	z-index: 1;
	padding: 4px 10px;
	border-radius: var(--kora-radius-s);
	background: var(--kora-color-bg);
	color: var(--kora-color-text);
	font: var(--kora-weight-medium) var(--kora-text-label-m) var(--kora-font);
	letter-spacing: 0.02em;
}

.product-card__title {
	margin: 0 0 2px;
	font: var(--kora-weight-medium) var(--kora-text-title-m) var(--kora-font);
}

.product-card__link {
	color: var(--kora-color-text);
	text-decoration: none;
}

.product-card__link:hover {
	color: var(--kora-color-text);
}

.product-card__link::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 2;
	border-radius: var(--kora-radius-l);
}

li.product:hover .product-card__link {
	text-decoration: underline;
}

.product-card__link:focus-visible {
	outline: none;
	text-decoration: underline;
}

.product-card__link:focus-visible::after {
	outline: 2px solid var(--kora-color-accent);
	outline-offset: 4px;
}

li.product .price {
	display: block;
	color: var(--kora-color-text);
	font: var(--kora-weight-regular) var(--kora-text-body-l) var(--kora-font);
}

.price del {
	color: var(--kora-color-text-variant);
}

.price ins {
	font-weight: var(--kora-weight-medium);
	text-decoration: none;
}

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

.woocommerce-pagination ul.page-numbers {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 4px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.woocommerce-pagination .page-numbers a,
.woocommerce-pagination .page-numbers span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 48px;
	height: 48px;
	padding: 0 12px;
	border-radius: var(--kora-radius-full);
	color: var(--kora-color-text);
	font: var(--kora-weight-medium) var(--kora-text-label-l) var(--kora-font);
	text-decoration: none;
	transition: background-color var(--kora-motion);
}

.woocommerce-pagination .page-numbers a:hover {
	background: var(--kora-state-hover);
	color: var(--kora-color-text);
}

.woocommerce-pagination .page-numbers span.current {
	background: var(--kora-color-surface);
}

.woocommerce-pagination .page-numbers .icon {
	width: 20px;
	height: 20px;
}

.woocommerce-no-products-found {
	margin-top: 8px;
}

.woocommerce-breadcrumb__list {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	margin: -4px 0 16px;
	padding: 0;
	list-style: none;
	color: var(--kora-color-text-variant);
	font: var(--kora-weight-regular) var(--kora-text-body-m) var(--kora-font);
}

.woocommerce-breadcrumb__list li {
	display: flex;
	align-items: center;
}

.woocommerce-breadcrumb__list li + li::before {
	content: "";
	width: 16px;
	height: 16px;
	margin-inline: 4px;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9.5 6 6 6-6 6'/%3E%3C/svg%3E") center / 16px no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9.5 6 6 6-6 6'/%3E%3C/svg%3E") center / 16px no-repeat;
}

.woocommerce-breadcrumb__list a {
	display: inline-block;
	padding-block: 2px;
	color: var(--kora-color-text-variant);
	text-decoration: none;
}

.woocommerce-breadcrumb__list a:hover {
	color: var(--kora-color-text);
	text-decoration: underline;
}

.single-product .site-main {
	padding-top: 16px;
}

@media (min-width: 960px) {
	.single-product .site-main {
		padding-top: 24px;
	}
}

.single-product div.product {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 24px;
}

@media (min-width: 960px) {
	.single-product div.product {
		grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
		column-gap: 48px;
		align-items: start;
	}

	.single-product div.product > .up-sells,
	.single-product div.product > .related {
		grid-column: 1 / -1;
	}
}

.product-gallery {
	min-width: 0;
	margin-inline: calc(-1 * var(--kora-gutter));
}

.product-gallery__track {
	display: flex;
	width: 100%;
	overflow-x: auto;
	background: var(--kora-color-surface);
	aspect-ratio: var(--kora-gallery-ratio, 4 / 3);
	scroll-snap-type: x mandatory;
	overscroll-behavior-x: contain;
	scrollbar-width: none;
}

.product-gallery__track::-webkit-scrollbar {
	display: none;
}

.product-gallery__track:focus-visible {
	outline-offset: -2px;
}

.product-gallery__slide {
	flex: 0 0 100%;
	min-width: 0;
	scroll-snap-align: start;
	scroll-snap-stop: always;
}

.product-gallery__image {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

/*
 * Hidden images are never fetched; site.js marks the listing ready once its first card photo is in.
 * The first row stays visible at every width.
 */
@media (scripting: enabled) and (max-width: 599px) {
	.site-main--listing:not(.is-ready) ul.products > li:nth-child(n + 3) .product-card__image {
		display: none;
	}
}

@media (scripting: enabled) and (min-width: 600px) and (max-width: 959px) {
	.site-main--listing:not(.is-ready) ul.products > li:nth-child(n + 4) .product-card__image {
		display: none;
	}
}

@media (scripting: enabled) and (min-width: 960px) {
	.site-main--listing:not(.is-ready) ul.products > li:nth-child(n + 5) .product-card__image {
		display: none;
	}
}

/* Hidden images are never fetched; site.js marks the product ready once its first photo is in. */
@media (scripting: enabled) {
	.single-product div.product:not(.is-ready) .product-gallery__slide + .product-gallery__slide .product-gallery__image,
	.single-product div.product:not(.is-ready) .related .product-card__image {
		display: none;
	}
}

.product-gallery__dots {
	display: flex;
	justify-content: center;
	gap: 6px;
	margin: 12px 0 0;
	padding: 0;
	list-style: none;
}

.product-gallery__dots li {
	width: 6px;
	height: 6px;
	border-radius: var(--kora-radius-full);
	background: var(--kora-color-outline);
	transition: width var(--kora-motion), background-color var(--kora-motion);
}

.product-gallery__dots li.is-current {
	width: 18px;
	background: var(--kora-color-text);
}

.product-gallery__thumbs {
	display: none;
}

@media (min-width: 600px) {
	.product-gallery {
		margin-inline: 0;
	}

	.product-gallery__track {
		border-radius: var(--kora-radius-l);
	}

	.product-gallery__dots {
		display: none;
	}

	.product-gallery__thumbs {
		display: flex;
		flex-wrap: wrap;
		gap: 8px;
		margin: 12px 0 0;
		padding: 0;
		list-style: none;
	}
}

@media (min-width: 960px) {
	.product-gallery__track {
		max-height: min(78vh, 720px);
	}
}

.product-gallery__thumb {
	position: relative;
	display: block;
	width: 64px;
	height: 64px;
	padding: 0;
	overflow: hidden;
	border: 0;
	border-radius: var(--kora-radius-s);
	background: var(--kora-color-surface);
	cursor: pointer;
}

.product-gallery__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.product-gallery__thumb::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
	transition: background-color var(--kora-motion), box-shadow var(--kora-motion);
}

.product-gallery__thumb:hover::after {
	background: var(--kora-state-photo);
}

.product-gallery__thumb[aria-current="true"]::after {
	box-shadow: inset 0 0 0 2px var(--kora-color-text);
}

.single-product .summary {
	min-width: 0;
}

.single-product .product_title {
	margin: 0 0 8px;
}

.single-product .summary > .price {
	margin: 0 0 24px;
	color: var(--kora-color-text);
	font: var(--kora-weight-regular) var(--kora-text-headline-s) var(--kora-font);
}

.single-product .summary > .price .hc-base,
.single-product .summary > .price .hc-lowest {
	margin-top: 4px;
	font-size: 0.875rem;
}

.single-product .stock.out-of-stock {
	display: inline-flex;
	align-items: center;
	min-height: 32px;
	margin: 0 0 16px;
	padding: 0 12px;
	border-radius: var(--kora-radius-s);
	background: var(--kora-color-surface);
	color: var(--kora-color-text);
	font: var(--kora-weight-medium) var(--kora-text-label-l) var(--kora-font);
}

.single-product form.cart {
	margin: 0 0 32px;
}

.single-product .single_add_to_cart_button {
	width: 100%;
	min-height: 56px;
	font-size: 1rem;
}

@media (min-width: 600px) {
	.single-product .single_add_to_cart_button {
		width: auto;
		min-width: 280px;
	}
}

.product-sold {
	margin: 0 0 32px;
}

.product-details {
	padding-top: 24px;
	border-top: 1px solid var(--kora-color-outline-variant);
}

.product-details__title {
	margin: 0 0 12px;
	font: var(--kora-weight-medium) var(--kora-text-title-m) var(--kora-font);
}

.product-details__content p {
	margin: 0 0 4px;
}

.product-details__content ul + p,
.product-details__content ol + p {
	margin-top: 16px;
}

.product-details__content ul,
.product-details__content ol {
	margin-bottom: 0;
	color: var(--kora-color-text-variant);
}

.product-share {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	margin-top: 24px;
}

.product-share[hidden] {
	display: none;
}

.product-share__button {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 40px;
	padding: 0 16px 0 12px;
	border: 1px solid var(--kora-color-outline);
	border-radius: var(--kora-radius-full);
	background: none;
	color: var(--kora-color-text);
	font: var(--kora-weight-medium) var(--kora-text-label-l) var(--kora-font);
	cursor: pointer;
	transition: background-color var(--kora-motion);
}

.product-share__button:hover {
	background: var(--kora-state-hover);
}

.product-share__button .icon {
	width: 18px;
	height: 18px;
}

.product-share__status {
	color: var(--kora-color-text-variant);
	font: var(--kora-weight-regular) var(--kora-text-body-m) var(--kora-font);
}

.single-product .up-sells,
.single-product .related {
	margin-top: 40px;
}

.single-product .up-sells > h2,
.single-product .related > h2 {
	margin-bottom: 24px;
}

@media (min-width: 600px) and (max-width: 959px) {
	.single-product .related ul.products > li:nth-child(n + 4) {
		display: none;
	}
}

@media (min-width: 960px) {
	.single-product .up-sells,
	.single-product .related {
		margin-top: 64px;
	}
}
