/* Artolabs Shop 1.0.0 — simple, sharp, clean. */

/* ------------------------------------------------------------------
 * Category filter
 * ---------------------------------------------------------------- */
.ash-filter {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 24px;
	padding: 0;
}
.ash-filter .ash-chip {
	display: inline-block;
	min-width: 0;
	min-height: 0;
	margin: 0;
	padding: 8px 16px;
	background: transparent;
	color: #111;
	border: 1px solid #e4e4e4;
	border-radius: 0;
	box-shadow: none;
	font: inherit;
	font-size: 14px;
	line-height: 1.2;
	letter-spacing: normal;
	text-transform: none;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.ash-filter .ash-chip:hover,
.ash-filter .ash-chip:focus-visible {
	background: transparent;
	color: #111;
	border-color: #111;
	text-decoration: none;
}
.ash-filter .ash-chip.is-active,
.ash-filter .ash-chip.is-active:hover,
.ash-filter .ash-chip.is-active:focus-visible {
	background: #111;
	color: #fff;
	border-color: #111;
}

/* Once moved into the theme's top row: filter on the left, sorting on the right. */
.kadence-shop-top-row.ash-has-filter {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 16px;
}
.kadence-shop-top-row.ash-has-filter .ash-filter {
	flex: 1 1 auto;
	margin: 0;
}

/* Grid / list switch */
body.ash-hide-toggle .kadence-shop-top-item.kadence-woo-toggle {
	display: none;
}

/* ------------------------------------------------------------------
 * Simple product cards: image, title, category + price
 * ---------------------------------------------------------------- */
body.ash-simple ul.products li.product .star-rating,
body.ash-simple ul.products li.product .price,
body.ash-simple ul.products li.product .button,
body.ash-simple ul.products li.product .product-excerpt,
body.ash-simple ul.products li.product .product-action-wrap {
	display: none;
}

/* Category and price row */
ul.products li.product .loop-meta {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 0.25em 0.75em;
	margin-top: 0.75em;
	margin-bottom: 0;
}
body.ash-simple ul.products li.product .product-details {
	padding-bottom: 1.25em;
}

.loop-category {
	font-size: 1em;
	font-weight: 500;
	opacity: 0.8;
}
.loop-category a {
	color: inherit;
}
.loop-category .ash-styles::before {
	content: " \00b7  ";
	white-space: pre;
}

.loop-from {
	font-size: 0.8em;
	font-weight: 500;
	opacity: 0.6;
	margin-right: 0.2em;
}

.loop-price {
	font-weight: 600;
}
.loop-price del {
	font-weight: 400;
	font-size: 0.85em;
	opacity: 0.55;
}
.loop-price ins {
	text-decoration: none;
	background: none;
	font-weight: 600;
}

/* ------------------------------------------------------------------
 * "New" badge
 * ---------------------------------------------------------------- */
ul.products li.product .woocommerce-loop-image-link {
	position: relative;
}
.ash-new {
	position: absolute;
	top: 12px;
	left: 12px;
	z-index: 2;
	padding: 5px 9px;
	background: #111;
	color: #fff;
	font-size: 12px;
	font-weight: 600;
	line-height: 1;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	pointer-events: none;
}

/* ------------------------------------------------------------------
 * Same image shape for every product
 * ---------------------------------------------------------------- */
body.ash-ratio-1-1 ul.products li.product .woocommerce-loop-image-link,
body.ash-ratio-4-3 ul.products li.product .woocommerce-loop-image-link,
body.ash-ratio-3-2 ul.products li.product .woocommerce-loop-image-link {
	display: block;
	overflow: hidden;
}
body.ash-ratio-1-1 ul.products li.product .woocommerce-loop-image-link { aspect-ratio: 1 / 1; }
body.ash-ratio-4-3 ul.products li.product .woocommerce-loop-image-link { aspect-ratio: 4 / 3; }
body.ash-ratio-3-2 ul.products li.product .woocommerce-loop-image-link { aspect-ratio: 3 / 2; }

body.ash-ratio-1-1 ul.products li.product .woocommerce-loop-image-link img,
body.ash-ratio-4-3 ul.products li.product .woocommerce-loop-image-link img,
body.ash-ratio-3-2 ul.products li.product .woocommerce-loop-image-link img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
/* The hover image sits on top of the main one. */
body.ash-ratio-1-1 ul.products li.product .woocommerce-loop-image-link .secondary-product-image,
body.ash-ratio-4-3 ul.products li.product .woocommerce-loop-image-link .secondary-product-image,
body.ash-ratio-3-2 ul.products li.product .woocommerce-loop-image-link .secondary-product-image {
	position: absolute;
	top: 0;
	left: 0;
}
