/*
Theme Name:     Twenty Twenty-Five Child
Theme URI:      https://lyrica.be/
Description:    Een child theme van Twenty Twenty-Five
Author:         Chef
Author URI:     https://lyrica.be/
Template:       twentytwentyfive
Version:        1.0
*/

/* Set color and decoration of mail link on wie-is-wie page */
.link-without-decoration a {
	color: #DB9AB1 !important;
	text-decoration: none !important;
}

/* Set Arial font family for columns */
.my-arial-columns {
	font-family: Arial, Helvetica, sans-serif !important;
}

/* Set lay-out for scrolling and jump to details element of Lexicon V2 */
/* 1. Algemene scroll-instellingen */
html {
	scroll-padding-top: 150px;
}
@media (prefers-reduced-motion: no-preference) {
	html {
		scroll-behavior: smooth;
	}
}
/* 2. Markering voor het actieve details-blok (zonder tekstverspringing) */
details:target,
details:has(:target) {
	scroll-margin-top: 150px;
	background-color: #F0FDA6;
	box-shadow: 0 0 0 12px #F0FDA6;
	border-radius: 4px;
	transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

/* Set lay-out for product inline text translation table */
.org-vert-wrapper {
	padding: 10px;
	overflow: hidden;
	border: 1px solid #DB9AB1;
	width: 100%;
	margin: 0 auto;
	box-sizing: border-box;
}
.org-vert-notice {
	color: #fff;
	display: block;
	margin-bottom: 15px;
}
.org-vert-notice a {
	color: #fff;
}
.org-vert {
	width: 100%;
	border-collapse: collapse;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 16px;
	color: #DB9AB1;
}
.org-vert td {
	width: 50%;
	text-align: left;
	padding: 0;
	vertical-align: top;
}
.org-vert td:first-child {
	font-style: italic;
}
.org-vert .bold {
	font-weight: bold;
}
.org-vert .italic {
	font-style: italic;
}
@media (max-width: 600px) {
	.org-vert tr {
		display: block;
		margin-bottom: 10px;
		border-bottom: 1px solid #ccc;
	}
	.org-vert td {
		display: block;
		width: 100%;
		padding: 6px 0;
		box-sizing: border-box;
	}
}

/* Style Lexicon page - Highlight search terms - lay-out counter V2 */
details summary {
	list-style: none;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 0.4em;
	white-space: nowrap;
}
details summary::-webkit-details-marker {
	display: none;
}
details summary::after {
	content: "▼";
	font-size: 0.8em;
	display: inline-block;
	transition: transform 0.3s ease;
}
details[open] summary::after {
	content: "▲";
	display: inline-block;
	transform: rotate(0deg);
}
details.animating summary::after {
	transform: rotate(0deg);
}
details > *:not(summary) {
	transition: height 0.4s ease;
	overflow: hidden;
}
details {
	transition: all 0.3s ease;
	overflow: hidden;
}

/* Zoekresultaten highlight */
mark {
	background-color: #fff59d;
	padding: 0 2px;
	border-radius: 2px;
}
mark.active-mark {
	background-color: #ffca28;
	outline: 2px solid #f9a825;
	border-radius: 3px;
	transition: background-color 0.3s ease, outline 0.3s ease;
}

/* Navigatiebalk */
.search-nav {
	position: fixed;
	top: 100px;
	right: 10px;
	background: rgba(255, 255, 255, 0.87);
	backdrop-filter: blur(4px);
	padding: 6px 10px;
	border-radius: 8px;
	border: 1px solid #ccc;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
	display: flex;
	align-items: center;
	gap: 8px;
	z-index: 9999;
	font-family: sans-serif;
	opacity: 1;
	transition: opacity 0.4s ease;
}
.search-nav.fade-out { opacity: 0; }
.search-nav button {
	background: #DB9AB1;
	color: white;
	border: none;
	padding: 4px 8px;
	border-radius: 4px;
	cursor: pointer;
	font-size: 13px;
}
.search-nav button:hover { background: #C57D91; }
.search-nav .close-btn {
	background: transparent;
	color: #333;
	font-size: 16px;
	padding: 0 6px;
	line-height: 1;
	cursor: pointer;
}
.search-nav .close-btn:hover { color: #c00; background: none; }
#matchCount {
	font-size: 13px;
	color: #333;
	background: #f3f3f3;
	padding: 2px 6px;
	border-radius: 4px;
	border: 1px solid #ddd;
	white-space: nowrap;
}
@media (max-width: 767px) {
	.search-nav {
		top: 40px;
	}
}

/* Set lay-out Upsells and Cross-sells */
body.woocommerce section.upsells ul.products li.product h2.woocommerce-loop-product__title {
	color: #ffffff !important;
	font-size: 1.1rem;
	font-weight: 300;
}

/* Set general lay-out for mobile */
@media (max-width: 781px) {
	:root {
		--wp--style--global--content-size: 100%;
		--wp--style--global--wide-size: 100%;
	}
}
@media (min-width: 782px) and (max-width: 1024px) {
	:root {
		--wp--style--global--content-size: 95%;
		--wp--style--global--wide-size: 100%;
	}
}

/* Set style for Yoast Breadcrumbs */
.yoast-breadcrumbs * {
	pointer-events: auto !important;
}
.yoast-breadcrumbs {
	font-size: 1rem;
}
.yoast-breadcrumbs.breadcrumbs-product {
	max-width: 85%;
}
@media (max-width: 768px) {
	.yoast-breadcrumbs {
		max-width: 100%;
		padding: 0 16px;
		margin-bottom: 15px;
		font-size: 0.75rem;
		gap: 4px;
	}
	.yoast-breadcrumbs.breadcrumbs-product {
		justify-content: center;
		font-size: 0.7rem;
	}
	.yoast-breadcrumbs.breadcrumbs-page {
		justify-content: flex-start;
	}
	.yoast-breadcrumbs.breadcrumbs-blog {
		font-size: 0.8rem;
	}
}

/* Apply growing hover effect on individual images */
.hover-effect-image {
	transition: transform 0.4s ease-in-out, filter 0.4s ease-in-out, box-shadow 0.4s ease-in-out;
}
.hover-effect-image:hover {
	transform: scale(1.08);
	filter: brightness(1.07);
	box-shadow: 0 12px 25px rgba(0, 0, 0, 0.2);
}

/* Adjust display of products on mobile (in Smart Tabs) */
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
	text-align: center;
}
.woocommerce ul.products li.product h2,
.woocommerce ul.products li.product .woocommerce-loop-product__title {
	color: #330616 !important;
}
.woocommerce ul.products li.product a img {
	display: block;
	margin-left: auto;
	margin-right: auto;
}
.woocommerce ul.products li.product .price {
	display: block;
	text-align: center;
}
.woocommerce ul.products li.product .button {
	display: inline-block;
	text-align: center;
	font-size: 14px;
	background-color: #DB9AB1;
	color: #330616 !important;
	border: none;
	border-radius: 4px;
	padding: 16px 36px;
	transition: background-color 0.3s ease-in-out;
}
.woocommerce ul.products li.product .button:hover {
	transform: none;
	background-color: #DB9AB1;
	box-shadow: none;
}
@media (max-width: 767px) {
	h1.wp-block-post-title {
		display: block !important;
		font-size: 1.25rem;
		text-align: center;
	}
	.wp-block-image img {
		display: block;
		margin-left: auto;
		margin-right: auto;
	}
	.woocommerce ul.products,
	.woocommerce-page ul.products {
		display: block !important;
	}
	.woocommerce ul.products li.product,
	.woocommerce-page ul.products li.product {
		width: 100% !important;
		margin: 0 0 30px 0 !important;
		float: none !important;
		clear: both !important;
		text-align: center;
	}
	.woocommerce ul.products li.product a img {
		display: block;
		margin: 0 auto 15px auto;
		max-width: 90%;
		height: auto;
		transition: transform 0.4s ease-in-out, filter 0.4s ease-in-out, box-shadow 0.4s ease-in-out;
		box-shadow: none;
	}
	.woocommerce ul.products li.product a:hover img {
		transform: scale(1.08);
		filter: brightness(1.07);
		box-shadow: 0 12px 25px rgba(0, 0, 0, 0.2);
	}
	.woocommerce ul.products li.product h2,
	.woocommerce ul.products li.product .woocommerce-loop-product__title {
		font-size: 1em;
		text-align: center;
		margin: 0 0 6px 0;
		color: #330616 !important;
	}
	.woocommerce ul.products li.product .price {
		display: block;
		text-align: center;
		font-size: 0.9em;
		margin-bottom: 6px;
	}
	.woocommerce ul.products li.product .button {
		display: inline-block;
		width: auto;
		margin: 0 auto;
		padding: 6px 12px;
		font-size: 0.8em;
		background-color: #DB9AB1;
		color: #330616 !important;
		border: none;
		border-radius: 4px;
		text-align: center;
		transition: none;
		box-shadow: none;
	}
	.woocommerce ul.products li.product .button:hover {
		transform: none;
		background-color: #DB9AB1;
		box-shadow: none;
	}
}
/* Scroll to top CSS */
#scrollToTopBtn {
	background-color: #DB9AB1;
	border: none;
	border-radius: 50%;
	padding: 12px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
	position: fixed;
	bottom: 120px;
	right: 20px;
	z-index: 1000;
	opacity: 0;
	pointer-events: none;
	transform: translateY(20px);
	transition: opacity 0.4s ease, transform 0.4s ease, background-color 0.3s ease;
}
.arrow-icon {
	width: 30px;
	height: 30px;
	fill: white;
	transition: transform 0.2s ease;
}
#scrollToTopBtn:hover {
	background-color: #c9829a;
}
#scrollToTopBtn:hover .arrow-icon {
	transform: translateY(-2px);
}
@media (max-width: 600px) {
	#scrollToTopBtn {
		padding: 8px;
		bottom: 130px;
		right: 15px;
	}
	.arrow-icon {
		width: 25px;
		height: 25px;
	}
}
#scrollToTopBtn.show {
	opacity: 1;
	pointer-events: auto;
	transform: translateY(0);
}

/* Set header on desktop and mobile */
header.wp-block-template-part {
	position: sticky;
	top: 0;
	z-index: 1000;
}
@media screen and (max-width: 768px) {
	header.wp-block-template-part {
		box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
	}
	header.wp-block-template-part .wp-block-columns {
		display: grid !important;
		grid-template-columns: 1fr 2fr 1fr;
		align-items: center;
		width: 100%;
	}
	header.wp-block-template-part .wp-block-column:first-child {
		justify-self: start;
	}
	header.wp-block-template-part .wp-block-column:nth-child(2) {
		justify-self: center;
	}
	header.wp-block-template-part .wp-block-column:last-child {
		justify-self: end;
	}
}

/* Adjust lay-out componisten pagina, show buttons but hide images on mobile */
@media (max-width: 767px) {
	.page-id-129 .wp-block-group .wp-block-image {
		display: none;
	}
	.page-id-129 .wp-block-group .wp-block-buttons {
		display: block !important;
		width: 100% !important;
		margin-bottom: 15px;
		text-align: center;
	}
	.page-id-129 .wp-block-buttons .wp-block-button {
		width: 100% !important;
		margin-bottom: 10px !important;
	}
	.page-id-129 .wp-block-buttons .wp-block-button a {
		display: block !important;
		width: 100% !important;
		text-align: center !important;
	}
	.page-id-129 .wp-block-group {
		display: block !important;
	}
}

/* Adjust lay-out confirmation after sending the contact form */
.wpforms-container-full .wpforms-confirmation-container-full {
	background-color: #330616 !important;
}
.wpforms-confirmation-container-full p {
	color: #ffffff !important;
}
div.wpforms-container-full .wpforms-confirmation-container-full,
div[submit-success] > .wpforms-confirmation-container-full:not(.wpforms-redirection-message) {
	border: 1px solid #ffffff !important;
}

/* Hide fields in order completed / order received */
body.woocommerce-order-received .hide-order-status {
	display: none !important;
}
.wp-block-woocommerce-order-confirmation-totals-wrapper {
	display: none !important;
}
body.woocommerce-order-received .wc-block-order-confirmation-downloads__table td.download-product a {
	pointer-events: none;
	text-decoration: none;
	color: inherit;
	cursor: default;
}
body.woocommerce-order-received a.woocommerce-MyAccount-downloads-file {
	pointer-events: auto;
	color: var(--wp--preset--color--primary, #ffffff);
	text-decoration: underline;
	cursor: pointer;
}
.wc-block-order-confirmation-billing-address {
	display: none !important;
}
body.woocommerce-order-received .wc-block-order-confirmation-billing-wrapper > .wp-block-heading {
	display: none !important;
}
.wc-block-order-confirmation-shipping-address {
	display: none !important;
}
/* LET OP: .wc-block-order-confirmation-additional-information NIET verbergen!
   Anders worden de specifieke boodschappen bij een donatie niet getoond. */

/* Set lay-out Husky Products Filter V2 */
/* 1. Algemene basis voor Home (ID 48), Catalogus, Componist & Genre */
:is(.page-id-48, .archive.post-type-archive-product, .tax-pa_componist, .tax-pa_genre) .woof {
	background: #330616;
}
:is(.page-id-48, .archive.post-type-archive-product, .tax-pa_componist, .tax-pa_genre) .woof_husky_txt-input {
	background: #ffffff;
	color: #777777;
	font-size: 16px;
	font-weight: bold;
	font-family: platypi, serif;
	margin: 0 !important;
	vertical-align: top !important;
}
:is(.page-id-48, .archive.post-type-archive-product, .tax-pa_componist, .tax-pa_genre) :is(.button.woof_submit_search_form, .button.woof_reset_search_form) {
	background: #db9ab1 !important;
	width: 100px;
	border-radius: 5px;
	border: 0;
	color: #330616 !important;
	font-weight: bold;
	font-family: platypi, serif;
	font-size: 16px;
}
:is(.page-id-48, .archive.post-type-archive-product, .tax-pa_componist, .tax-pa_genre) :is(.button.woof_submit_search_form, .button.woof_reset_search_form):hover {
	opacity: 0.9;
}
/* Autocomplete zoekresultaten */
:is(.page-id-48, .archive.post-type-archive-product, .tax-pa_componist, .tax-pa_genre) :is(.woof_husky_txt-option-title, .woof_husky_txt-option-title a, .woof_husky_txt-option-title a:visited) {
	color: #330616;
	font-size: 0.8rem;
}
:is(.page-id-48, .archive.post-type-archive-product, .tax-pa_componist, .tax-pa_genre) :is(.woof_husky_txt-option-breadcrumb a, .woof_husky_txt-option-breadcrumb a:visited) {
	color: #333333;
}
/* 2. Homepagina (ID 48) - zonder kader */
.page-id-48 .woof {
	border: none;
}
.page-id-48 .woof_husky_txt-input {
	width: 100%;
	height: 50px;
	padding: 10px 20px;
}
.page-id-48 :is(.button.woof_submit_search_form, .button.woof_reset_search_form) {
	height: 50px;
}
.page-id-48 .woof_sid_flat_white {
	margin: 0;
	border: 0;
	padding: 0;
}
.page-id-48 .woof_submit_search_form_container {
	overflow: hidden;
	clear: both;
	margin: 0 !important;
}
.page-id-48 .woof_redraw_zone {
	gap: 1rem;
	display: inline-flex;
	width: 100%;
}
/* 3. Catalogus-, Componist- en Genrepagina's - mét fijn wit kader */
:is(.archive.post-type-archive-product, .tax-pa_componist, .tax-pa_genre) .woof {
	margin-right: 15px;
	padding: 5px;
	border: 1px solid #ffffff;
}
:is(.archive.post-type-archive-product, .tax-pa_componist, .tax-pa_genre) .woof_husky_txt-input {
	box-sizing: border-box !important;
	width: calc(100% - 10px) !important;
	padding: 5px 15px;
}
:is(.archive.post-type-archive-product, .tax-pa_componist, .tax-pa_genre) :is(.button.woof_submit_search_form, .button.woof_reset_search_form) {
	height: 30px;
}
:is(.archive.post-type-archive-product, .tax-pa_componist, .tax-pa_genre) .woof_container h4 {
	box-sizing: border-box !important;
	width: calc(100% - 10px) !important;
	background: #db9ab1 !important;
	color: #330616;
	font-size: 15px;
	font-weight: 400;
	font-family: platypi, serif;
	line-height: 1.32em !important;
	text-align: left;
	padding-left: 15px;
	vertical-align: top !important;
}
.woof_open_hidden_li {
	clear: both;
	display: block !important;
	text-align: left;
	font-size: 1rem;
	margin: 0;
	padding: 0;
}
/* 4. Mobiele weergave (max-width: 992px) */
@media screen and (max-width: 992px) {
	.woof_redraw_zone {
		flex-direction: column;
	}
	.page-id-48 .woof_redraw_zone :is(.woof_text_search_container, .woof_submit_search_form_container, .button.woof_reset_search_form, .button.woof_submit_search_form, .woof_husky_txt-input) {
		width: 100% !important;
		box-sizing: border-box;
	}
	.woof_show_filter_for_mobile.woof {
		position: fixed !important;
		top: 0 !important;
		left: 50% !important;
		transform: translateX(-50%) !important;
		width: 90% !important;
		max-width: 90% !important;
		height: 100% !important;
		background: #330616 !important;
		opacity: 0.95 !important;
		z-index: 9999 !important;
		overflow: auto !important;
		padding: 30px 30px 100px 30px !important;
		display: block !important;
		animation: move_top 0.5s ease forwards !important;
		border-radius: 10px !important;
	}
	:is(.woof_hide_mobile_filter, .woof_show_mobile_filter) img {
		display: inline-block;
		width: 30px;
		margin-right: 20px;
	}
	:is(.woof_show_mobile_filter, .woof_hide_mobile_filter) {
		border: 1px solid #ffffff;
		border-radius: 5px;
		box-sizing: border-box;
		padding: 8px 12px;
		max-width: 100%;
	}
}
