/* MIKE: winkel (WooCommerce) — tegels voor categorieën en producten */

.woocommerce .woocommerce-products-header__title,
.woocommerce-page .woocommerce-products-header__title {
	margin-bottom: 12px;
}

.woocommerce .term-description,
.woocommerce .page-description {
	max-width: 760px;
	margin-bottom: 28px;
}

/* Raster: 4 naast elkaar, 2 op een gsm */
.woocommerce ul.products,
.woocommerce-page ul.products {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 24px;
	margin: 0 0 32px;
	padding: 0;
}

.woocommerce ul.products::before,
.woocommerce ul.products::after {
	display: none;
}

.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product,
.woocommerce ul.products[class*="columns-"] li.product,
.woocommerce-page ul.products[class*="columns-"] li.product {
	float: none;
	clear: none;
	width: auto;
	margin: 0;
	padding: 0;
	list-style: none;
}

/* Categorie-tegel */
.woocommerce ul.products li.product-category > a {
	display: flex;
	flex-direction: column;
	height: 100%;
	background: #fff;
	border: 1px solid #e6e0ec;
	border-radius: 10px;
	overflow: hidden;
	color: #333;
	text-decoration: none;
	transition: box-shadow .2s, transform .2s, border-color .2s;
}

.woocommerce ul.products li.product-category > a:hover,
.woocommerce ul.products li.product-category > a:focus {
	border-color: #502871;
	box-shadow: 0 6px 18px rgba(80, 40, 113, .15);
	transform: translateY(-2px);
}

.woocommerce ul.products li.product-category img {
	display: block;
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	margin: 0;
	border-radius: 0;
}

.woocommerce ul.products li.product-category .woocommerce-loop-category__title {
	margin: 0;
	padding: 14px 16px 2px;
	font-family: 'Spinnaker', sans-serif;
	font-size: 18px;
	line-height: 1.3;
	color: #502871;
}

.woocommerce ul.products li.product-category .vhov-aantal {
	display: block;
	margin-top: 4px;
	font-size: 13px;
	font-weight: normal;
	color: #999;
}

.woocommerce ul.products li.product-category .vhov-kort {
	margin: 0;
	padding: 6px 16px 16px;
	font-size: 14px;
	line-height: 1.45;
	color: #555;
}

/* Tegels met een symbool in plaats van een foto (bv. de pagina Ledenvoordelen): even groot als een foto */
.vhov-tegels .vhov-icoon {
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 1 / 1;
	background: #f6f1f9;
	font-size: 44px;
	line-height: 1;
}

.vhov-tegels .vhov-icoon img.emoji {
	width: 44px !important;
	height: 44px !important;
	margin: 0 !important;
}

.vhov-tegels span.woocommerce-loop-category__title,
.vhov-tegels .vhov-kort {
	display: block;
}

/* naast de zijbalk zijn de tegels smal: iets kleiner, en lange woorden mogen afbreken */
.woocommerce.vhov-tegels ul.products li.product-category span.woocommerce-loop-category__title {
	padding: 12px 12px 2px;
	font-size: 16px;
	hyphens: auto;
	overflow-wrap: anywhere;
}

.woocommerce.vhov-tegels ul.products li.product-category .vhov-kort {
	padding: 6px 12px 14px;
}

.woocommerce.vhov-tegels ul.products {
	gap: 16px;
}

/* WordPress zet soms een <br> tussen de onderdelen van een tegel */
.vhov-tegels li.product-category > a > br {
	display: none;
}

/* Kopjes boven een groep tegels, en de inleiding */
.vhov-groep {
	margin: 32px 0 14px;
	font-size: 20px;
	color: #502871;
}

.vhov-intro {
	max-width: 760px;
	margin-bottom: 8px;
}

/* Mijn account (ingelogd): menu links als kaart, inhoud rechts */
.woocommerce-account.logged-in .entry-content > .woocommerce {
	display: grid;
	grid-template-columns: 210px minmax(0, 1fr);
	gap: 32px;
	align-items: start;
}

.woocommerce-account.logged-in .entry-content > .woocommerce::before,
.woocommerce-account.logged-in .entry-content > .woocommerce::after {
	display: none;
}

.woocommerce-account.logged-in .entry-content > .woocommerce > :not(.woocommerce-MyAccount-navigation):not(.woocommerce-MyAccount-content) {
	grid-column: 1 / -1;
}

.woocommerce-account .woocommerce-MyAccount-navigation,
.woocommerce-account .woocommerce-MyAccount-content {
	float: none;
	width: auto;
}

.woocommerce-account .entry-content .woocommerce-MyAccount-navigation ul {
	margin: 0;
	padding: 8px;
	background: #f6f1f9;
	border-radius: 10px;
}

.woocommerce-account .entry-content .woocommerce-MyAccount-navigation ul > li {
	margin: 0;
	list-style: none;
}

.woocommerce-account .woocommerce-MyAccount-navigation a {
	display: block;
	padding: 9px 14px;
	border-radius: 6px;
	color: #502871;
	text-decoration: none;
}

.woocommerce-account .woocommerce-MyAccount-navigation a:hover {
	background: #ece3f2;
}

.woocommerce-account .woocommerce-MyAccount-navigation .is-active a {
	background: #502871;
	color: #fff;
}

/* Tabellen (bestellingen, downloads): binnen de breedte, rustige kop */
.woocommerce-account .woocommerce-MyAccount-content table.shop_table {
	width: 100%;
	margin: 0 0 24px;
	border: 1px solid #e6e0ec;
	border-radius: 10px;
	border-collapse: separate;
	border-spacing: 0;
	overflow: hidden;
	font-size: 15px;
}

.woocommerce-account .woocommerce-MyAccount-content table.shop_table th {
	padding: 12px 14px;
	background: #f6f1f9;
	color: #502871;
	font-size: 13px;
	font-weight: bold;
	line-height: 1.3;
	text-align: left;
	text-transform: none;
}

/* koppen mogen op twee regels, anders is de tabel te breed naast het menu */
.woocommerce-account .woocommerce-MyAccount-content table.shop_table th .nobr {
	white-space: normal;
}

.woocommerce-account .woocommerce-MyAccount-content table.shop_table td {
	padding: 12px 14px;
	overflow-wrap: break-word;
	border-top: 1px solid #eee;
	vertical-align: middle;
}

.woocommerce-account .woocommerce-MyAccount-content table.shop_table .button {
	padding: 8px 14px;
	margin: 2px 4px 2px 0;
	background: #502871;
	border-radius: 6px;
	font-size: 13px;
	line-height: 1.2;
	text-transform: none;
	white-space: nowrap;
	color: #fff;
}

.woocommerce-account .woocommerce-MyAccount-content table.shop_table .button:hover {
	background: #641B56;
}

/* Mijn lidmaatschap (Overzicht): label links, waarde rechts, ook op een smal scherm.
   WooCommerce maakt er daar anders blokjes van met een losse ":" (de cellen hebben geen data-title). */
.woocommerce-account table.my_membership_settings thead {
	display: table-header-group;
}

.woocommerce-account table.my_membership_settings tbody td {
	background: transparent !important;
}

.woocommerce-account table.my_membership_settings tbody td:first-child {
	color: #502871;
	font-weight: bold;
	width: 40%;
}

/* Opzeggen: niet de opvallendste knop van de pagina */
.woocommerce-account .woocommerce-MyAccount-content table.shop_table .button.cancel,
.woocommerce-account table.my_membership_settings .button.cancel {
	background: #fff;
	border: 1px solid #c9b8d8;
	color: #502871;
}

.woocommerce-account .woocommerce-MyAccount-content table.shop_table .button.cancel:hover,
.woocommerce-account table.my_membership_settings .button.cancel:hover {
	background: #f6f1f9;
	color: #502871;
}

@media only screen and (max-width: 768px) {
	.woocommerce-account table.my_membership_settings thead tr,
	.woocommerce-account table.my_membership_settings thead th {
		display: block;
	}

	.woocommerce-account table.my_membership_settings tbody tr {
		align-items: center;
		display: flex;
		gap: 12px;
	}

	.woocommerce-account table.my_membership_settings tbody td {
		display: block;
		text-align: left !important;
	}

	.woocommerce-account table.my_membership_settings tbody td::before {
		content: none !important;
	}

	.woocommerce-account table.my_membership_settings tbody td:first-child {
		flex: 0 0 40%;
	}

	.woocommerce-account table.my_membership_settings tbody td:last-child {
		flex: 1;
	}
}

.woocommerce-account .vhov-bestand {
	display: block;
	margin-top: 4px;
	font-size: 12px;
	color: #888;
	overflow-wrap: anywhere;
}

/* Product-tegel */
.woocommerce ul.products li.product:not(.product-category) {
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid #e6e0ec;
	border-radius: 10px;
	overflow: hidden;
}

.woocommerce ul.products li.product:not(.product-category) > a:first-child {
	flex: 1;
	padding-bottom: 8px;
	color: #333;
	text-decoration: none;
}

.woocommerce ul.products li.product a img {
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	margin: 0 0 10px;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
	padding: 0 14px;
	font-size: 16px;
	line-height: 1.35;
	color: #333;
}

.woocommerce ul.products li.product .price {
	display: block;
	padding: 0 14px;
	color: #502871;
	font-weight: bold;
}

.woocommerce ul.products li.product .button {
	display: block;
	margin: 0 14px 14px;
	padding: 10px 8px;
	font-size: 14px;
	line-height: 1.25;
	white-space: normal;
	border-radius: 6px;
	background: #502871;
	color: #fff;
	text-align: center;
}

.woocommerce ul.products li.product .button:hover {
	background: #641B56;
	color: #fff;
}

/* Kruimelpad bovenaan: Shop › Downloads › Verfateliers */
.woocommerce .woocommerce-breadcrumb {
	margin-bottom: 16px;
	font-size: 14px;
	color: #999;
}

.woocommerce .woocommerce-breadcrumb a {
	color: #502871;
}

@media only screen and (max-width: 1023px) {
	.woocommerce-account.logged-in .entry-content > .woocommerce {
		grid-template-columns: 170px minmax(0, 1fr);
		gap: 20px;
	}

	.woocommerce-account .woocommerce-MyAccount-content table.shop_table th,
	.woocommerce-account .woocommerce-MyAccount-content table.shop_table td {
		padding: 10px;
	}

	.woocommerce ul.products,
	.woocommerce-page ul.products {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media only screen and (max-width: 767px) {
	.entry.vhov-winkel {
		padding: 24px 16px 16px;
	}

	.woocommerce ul.products,
	.woocommerce-page ul.products {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 14px;
	}

	.woocommerce ul.products li.product-category .woocommerce-loop-category__title {
		padding: 10px 12px 2px;
		font-size: 16px;
	}

	.woocommerce ul.products li.product-category .vhov-kort {
		display: none;
	}

	.woocommerce-account.logged-in .entry-content > .woocommerce {
		grid-template-columns: minmax(0, 1fr);
		gap: 20px;
	}

	.woocommerce-account .woocommerce-MyAccount-content table.shop_table {
		border-radius: 0;
		border-width: 1px 0 0;
	}

	.vhov-tegels .vhov-icoon {
		font-size: 34px;
	}

	.vhov-tegels .vhov-icoon img.emoji {
		width: 34px !important;
		height: 34px !important;
	}

	.woocommerce ul.products li.product .woocommerce-loop-product__title,
	.woocommerce ul.products li.product .price {
		padding: 0 10px;
		font-size: 14px;
	}

	.woocommerce ul.products li.product .button {
		margin: 0 10px 10px;
		font-size: 12px;
	}
}
