/* =====================================================================
   Van Werk - Shop, Kategorien und Produktkacheln (Mojito Child)
   ===================================================================== */

body.woocommerce-shop,
body.tax-product_cat,
body.tax-product_tag,
body.single-product {
	--vw-ink: #0e191e;
	--vw-text: #2b3238;
	--vw-muted: #6b7177;
	--vw-line: #e4e6e9;
	--vw-soft: #f4f5f6;
	--vw-field: #d5d9dd;
	--vw-grad: linear-gradient(90deg, #63ff49, #05fff6);
}

/* ---------- Kopf: dunkles Band statt Hero ---------- */
body.woocommerce-shop .elementor-top-section:has(header.mt-header-section),
body.tax-product_cat .elementor-top-section:has(header.mt-header-section),
body.tax-product_tag .elementor-top-section:has(header.mt-header-section) {
	min-height: 150px;
	background: var(--vw-ink);
}
body.admin-bar.woocommerce-shop .elementor-top-section:has(header.mt-header-section),
body.admin-bar.tax-product_cat .elementor-top-section:has(header.mt-header-section),
body.admin-bar.tax-product_tag .elementor-top-section:has(header.mt-header-section) {
	min-height: 182px;
}
@media (max-width: 991px) {
	body.woocommerce-shop .elementor-top-section:has(header.mt-header-section),
	body.tax-product_cat .elementor-top-section:has(header.mt-header-section),
	body.tax-product_tag .elementor-top-section:has(header.mt-header-section) {
		min-height: 112px !important;
	}
}

/* ---------- Seitenkopf ---------- */
.vw-shop-head {
	max-width: 1280px;
	margin: 0 auto;
	padding: 48px 15px 0;
}
.vw-shop-head__crumbs {
	margin-bottom: 14px;
	font-size: 14px;
	color: var(--vw-muted);
}
.vw-shop-head__crumbs a {
	color: var(--vw-muted);
	text-decoration: none;
}
.vw-shop-head__crumbs a:hover {
	color: var(--vw-ink);
}
.vw-shop-head__crumbs span[aria-hidden] {
	margin: 0 8px;
	opacity: .5;
}
.vw-shop-head h1 {
	margin: 0;
	font-size: clamp(34px, 4vw, 54px);
	font-weight: 500;
	line-height: 1.08;
	letter-spacing: -.015em;
	color: var(--vw-ink);
}
.vw-shop-head__intro {
	max-width: 720px;
	margin: 14px 0 0;
	font-size: 18px;
	line-height: 1.6;
	color: var(--vw-text);
}
.vw-shop-cats {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 26px 0 0;
	padding: 0;
	list-style: none;
}
.vw-shop-cats li {
	margin: 0;
}
.vw-shop-cats a {
	display: inline-block;
	padding: 9px 18px;
	font-size: 15px;
	font-weight: 500;
	color: var(--vw-ink);
	text-decoration: none;
	background: #fff;
	border: 1px solid var(--vw-field);
	border-radius: 30px;
	transition: border-color .15s ease, background .15s ease;
}
.vw-shop-cats a:hover {
	border-color: var(--vw-ink);
}
.vw-shop-cats a[aria-current="page"] {
	color: #fff;
	background: var(--vw-ink);
	border-color: var(--vw-ink);
}
.vw-shop-trust {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 28px;
	margin: 24px 0 0;
	padding: 20px 0 0;
	list-style: none;
	border-top: 1px solid var(--vw-line);
}
.vw-shop-trust li {
	position: relative;
	margin: 0;
	padding-left: 26px;
	font-size: 15px;
	color: var(--vw-text);
}
.vw-shop-trust li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 50%;
	width: 16px;
	height: 16px;
	margin-top: -8px;
	border-radius: 50%;
	background: var(--vw-grad);
}
.vw-shop-trust li::after {
	content: "";
	position: absolute;
	left: 5px;
	top: 50%;
	width: 6px;
	height: 3px;
	margin-top: -3px;
	border-left: 2px solid var(--vw-ink);
	border-bottom: 2px solid var(--vw-ink);
	transform: rotate(-45deg);
}
.vw-shop-trust a {
	color: var(--vw-ink);
	text-decoration: none;
	font-weight: 500;
}

/* ---------- Bereich + Toolbar ---------- */
body.woocommerce-shop section.shop,
body.tax-product_cat section.shop,
body.tax-product_tag section.shop {
	padding-top: 64px !important;
	padding-bottom: 100px !important;
}
body.woocommerce-shop section.shop > .container,
body.tax-product_cat section.shop > .container,
body.tax-product_tag section.shop > .container {
	max-width: 1280px;
}
body.woocommerce-shop .woocommerce-toolbar-top,
body.tax-product_cat .woocommerce-toolbar-top,
body.tax-product_tag .woocommerce-toolbar-top {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin: 0 0 26px !important;
	padding: 0 !important;
	background: none !important;
	border: 0 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
}
body.woocommerce-shop .woocommerce-toolbar-top > *,
body.tax-product_cat .woocommerce-toolbar-top > *,
body.tax-product_tag .woocommerce-toolbar-top > * {
	margin-top: 0 !important;
}
body.woocommerce-shop .woocommerce-result-count,
body.tax-product_cat .woocommerce-result-count,
body.tax-product_tag .woocommerce-result-count {
	margin: 0 !important;
	font-size: 15px !important;
	text-transform: none !important;
	color: var(--vw-muted) !important;
}
body.woocommerce-shop .woocommerce-ordering,
body.tax-product_cat .woocommerce-ordering,
body.tax-product_tag .woocommerce-ordering {
	margin: 0 !important;
}
body.woocommerce-shop .woocommerce-ordering select,
body.tax-product_cat .woocommerce-ordering select,
body.tax-product_tag .woocommerce-ordering select {
	height: 46px;
	min-width: 230px;
	padding: 0 40px 0 16px !important;
	font-size: 15px !important;
	color: var(--vw-ink) !important;
	background-color: #fff !important;
	border: 1px solid var(--vw-field) !important;
	border-radius: 30px !important;
	box-shadow: none !important;
}
/* Kategoriebeschreibung steht schon im Seitenkopf */
body.tax-product_cat .term-description,
body.tax-product_tag .term-description {
	display: none;
}

/* ---------- Raster ---------- */
.products.row:has(> .vw-card) {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 36px 24px;
	margin: 0 !important;
}
.products.row:has(> .vw-card)::before,
.products.row:has(> .vw-card)::after {
	display: none;
}
@media (max-width: 1199px) {
	.products.row:has(> .vw-card) {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}
@media (max-width: 767px) {
	.products.row:has(> .vw-card) {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 28px 14px;
	}
}

/* ---------- Kachel ---------- */
.vw-card {
	position: relative;
	display: flex;
	flex-direction: column;
	width: auto !important;
	max-width: none !important;
	margin: 0 !important;
	padding: 0 !important;
	float: none !important;
	text-align: left !important;
	background: none !important;
	border: 0 !important;
	box-shadow: none !important;
}
.vw-card .vw-card__body,
.vw-card .vw-card__body * {
	text-align: left !important;
}
.vw-card__media {
	position: relative;
	display: block;
	overflow: hidden;
	aspect-ratio: 1 / 1;
	background: var(--vw-soft);
	border-radius: 18px;
}
.vw-card__media img {
	width: 100% !important;
	height: 100% !important;
	margin: 0 !important;
	object-fit: cover;
	border-radius: 0 !important;
	transition: transform .4s ease;
}
.vw-card:hover .vw-card__media img {
	transform: scale(1.04);
}
.vw-card__badge {
	position: absolute;
	left: 12px;
	top: 12px;
	padding: 6px 11px;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: .01em;
	color: var(--vw-ink);
	background: rgba(255, 255, 255, .94);
	border-radius: 30px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, .12);
}
.vw-card__badge--sale {
	left: auto;
	right: 12px;
	background: var(--vw-grad);
}
.vw-card__body {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	padding: 16px 2px 0;
}
.vw-card .vw-card__title {
	margin: 0 0 6px !important;
	padding: 0 !important;
	font-size: 18px !important;
	font-weight: 500 !important;
	line-height: 1.3 !important;
	text-align: left !important;
}
.vw-card .vw-card__title a {
	color: var(--vw-ink);
	text-decoration: none;
	-webkit-hyphens: auto;
	hyphens: auto;
	overflow-wrap: break-word;
}
/* ganze Kachel klickbar */
.vw-card .vw-card__title a::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
}
.vw-card .vw-card__title a:focus-visible {
	outline: none;
}
.vw-card .vw-card__title a:focus-visible::after {
	outline: 3px solid rgba(5, 255, 246, .6);
	outline-offset: 4px;
	border-radius: 18px;
}
.vw-card__text {
	display: -webkit-box;
	margin: 0 0 14px !important;
	overflow: hidden;
	font-size: 14px;
	line-height: 1.5;
	color: var(--vw-muted);
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}
.vw-card__foot {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 12px;
	margin-top: auto;
}
.vw-card .vw-card__price,
.vw-card .vw-card__price .amount {
	display: block;
	margin: 0;
	font-size: 20px !important;
	font-weight: 600 !important;
	line-height: 1.2;
	color: var(--vw-ink) !important;
}
.vw-card .vw-card__price .amount {
	display: inline;
}
.vw-card .vw-card__from {
	font-size: 14px;
	font-weight: 500;
	color: var(--vw-muted);
}
.vw-card__legal,
.vw-card__legal p,
.vw-card__legal a {
	margin: 2px 0 0 !important;
	font-size: 12px !important;
	line-height: 1.4;
	color: var(--vw-muted) !important;
}
.vw-card__legal p {
	display: inline;
}
.vw-card__legal p + p::before {
	content: " ";
}
.vw-card__legal a {
	position: relative;
	z-index: 2;
	text-decoration: underline;
}
.vw-card__legal > *:empty {
	display: none;
}
.vw-card__cta {
	flex: 0 0 40px;
	width: 40px;
	height: 40px;
	display: grid;
	place-items: center;
	color: var(--vw-ink);
	background: var(--vw-soft);
	border-radius: 50%;
	transition: background .2s ease, transform .2s ease;
}
.vw-card__cta svg {
	width: 18px;
	height: 18px;
}
.vw-card:hover .vw-card__cta {
	background: var(--vw-grad);
	transform: translateX(2px);
}

@media (max-width: 767px) {
	.vw-shop-head {
		padding-top: 30px;
	}
	.vw-shop-head__intro {
		font-size: 16px;
	}
	.vw-shop-trust {
		gap: 8px 18px;
	}
	.vw-shop-trust li {
		font-size: 14px;
	}
	.vw-card__media {
		border-radius: 14px;
	}
	.vw-card .vw-card__title {
		font-size: 15px !important;
	}
	.vw-card__text {
		display: none;
	}
	.vw-card .vw-card__price,
	.vw-card .vw-card__price .amount {
		font-size: 17px !important;
	}
	.vw-card__cta {
		display: none;
	}
	.vw-card__badge {
		left: 8px;
		top: 8px;
		padding: 5px 9px;
		font-size: 11px;
	}
}

/* ---------- Pagination (falls mehr als eine Seite) ---------- */
body.woocommerce-shop .tx-pagination,
body.tax-product_cat .tx-pagination {
	margin-top: 48px !important;
}
