/*
Theme Name: Grote Schoenen (Sober Child) Theme
Theme URI: http://uix.store/sober/
Author: Door B-online & UIX Themes
Author URI: http://uix.store
Description: Sober is a fully responsive Premium WordPress Theme with a pixel perfect design and extensive functionality
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sober
Tags: one-column, two-columns, right-sidebar, custom-colors, custom-menu, featured-images, flexible-header, microformats, post-formats, rtl-language-support, sticky-post, threaded-comments, translation-ready
Template: sober
*/

/* ==========================================================================
   Color palettes — switch by adding class to <body>
   ========================================================================== */

/* Default: olive */
:root {
	--color-dark: #C0C0C0;
	--color-mid: #D9D9D9;
	--color-light: #EBEBEB;
	--color-lighter: #F1F1F1;
	--img-tint: brightness(0.95);
}

.palette-olive {
	--color-dark: #82ABAB;
	--color-mid: #D4E2E2;
	--color-light: #E2ECEC;
	--color-lighter: #F0F5F5;
	--img-tint: brightness(0.95) /*sepia(0.08) hue-rotate(120deg);*/
}

.palette-grey {
	--color-dark: #C0C0C0;
	--color-mid: #D9D9D9;
	--color-light: #EBEBEB;
	--color-lighter: #F1F1F1;
	--img-tint: brightness(0.95);
}

.palette-warm {
	--color-dark: #AB9282;
	--color-mid: #E2D6D0;
	--color-light: #ECE4DF;
	--color-lighter: #F5F0ED;
	--img-tint: brightness(0.95) /*sepia(0.08) hue-rotate(0deg);*/
}

.palette-blue {
	--color-dark: #8298AB;
	--color-mid: #D0DAE2;
	--color-light: #DFE6EC;
	--color-lighter: #EDF1F5;
	--img-tint: brightness(0.95) /*sepia(0.08) hue-rotate(180deg);*/
}

.page-header-style-minimal .page-header {
	background-color: var(--color-light);
}

#gotop {
   z-index: 9;
}

/* Fix search modal close button always accessible */
.search-modal .modal-header,
.search-modal .modal-content {
	position: relative;
	z-index: 100;
}
.search-modal .modal-header .close-modal {
	position: fixed;
	right: 40px;
	top: 40px;
	transform: none;
	z-index: 101;
}

.search-modal .product-cats label {
	font-size: 1.5rem;
}


/* ==========================================================================
   Product reveal animation on scroll or load
   ========================================================================== */

@keyframes blockReveal {
	0%   { transform: scaleX(0); }
	45%  { transform: scaleX(1); }
	55%  { transform: scaleX(1); }
	100% { transform: scaleX(0); transform-origin: right; }
}

@keyframes contentReveal {
	0%   { visibility: hidden; }
	45%  { visibility: hidden; }
	46%  { visibility: visible; }
	100% { visibility: visible; }
}

/* Reveal containers */
.woocommerce ul.products li.product,
.woocommerce ul.products li.product-category {
	position: relative;
	overflow: hidden;
}

.woocommerce ul.products li.product .product-header,
.woocommerce ul.products li.product-category .reveal-wrap,
.single-product .product .images .woocommerce-product-gallery__slider .woocommerce-main-image {
	position: relative;
	overflow: hidden;
}

.woocommerce ul.products li.product-category .reveal-wrap {
	display: block;
}

/* Hidden content before reveal */
.woocommerce ul.products li.product .product-header > a,
.woocommerce ul.products li.product-category .reveal-wrap > a,
.single-product .product .images .woocommerce-product-gallery__slider .woocommerce-main-image > a {
	visibility: hidden;
	display: block;
}

/* Ensure the image link fills the reveal-wrap flex container */
.woocommerce ul.products li.product-category .reveal-wrap > a {
	width: 100%;
	height: 100%;
}
.quick-view-modal .woocommerce-main-image > a {
	visibility: visible !important;
}

.woocommerce ul.products li.product .product-header,
.woocommerce ul.products li.product-category .reveal-wrap {
	background-color: #f1f2f4;
	/*clip-path: inset(15px 5px 5px 5px);*/
}

.woocommerce ul.products li.product .product-header > a,
.woocommerce ul.products li.product-category .reveal-wrap > a {
	filter: var(--img-tint);
}

/* Block overlay */
.woocommerce ul.products li.product .product-header::before,
.woocommerce ul.products li.product-category .reveal-wrap::before,
.single-product .product .images .woocommerce-main-image::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: var(--color-mid);
	z-index: 2;
	transform: scaleX(0);
	transform-origin: left;
	pointer-events: none;
}

/* Animate block on reveal */
.woocommerce ul.products li.product.is-revealed .product-header::before,
.woocommerce ul.products li.product-category.is-revealed .reveal-wrap::before,
.single-product .product .images .woocommerce-main-image.is-revealed::before {
	animation: blockReveal 1.2s cubic-bezier(0.77, 0, 0.175, 1) both;
}

/* Show content on reveal */
.woocommerce ul.products li.product.is-revealed .product-header > *,
.woocommerce ul.products li.product-category.is-revealed .reveal-wrap > a,
.single-product .product .images .woocommerce-main-image.is-revealed > a {
	animation: contentReveal 1.2s step-end both;
}

/* ==========================================================================
   Full-screen Mega Menu — Desktop only
   ========================================================================== */
@media (min-width: 992px) {

	/* Override parent theme sub-menu defaults for mega fullscreen */
	.site-navigation .nav-menu > .menu-item-mega > ul.mega-menu-fullscreen {
		position: fixed;
		top: auto;
		left: 0 !important;
		right: 0;
		width: 100vw !important;
		z-index: 1600;
		box-sizing: border-box;
		padding: 0px 40px 30px;
		white-space: normal;
		transform: none !important;
		box-shadow: 0 4px 20px rgba(0,0,0,.1);
		min-width: 0;
		background-color: var(--color-light) !important;
		background-image: none !important;
	}

	.site-navigation .mega-sub-menu li.cat-item {
		margin-bottom: 15px;
	}

	/* Remove the transparent hover-bridge spacer from parent theme */
	.site-navigation .nav-menu > .menu-item-mega > ul.mega-menu-fullscreen:before {
		display: none !important;
	}

	/* Remove parent theme's extra padding on mega-menu-container */
	.site-navigation ul.mega-menu-fullscreen.mega-menu-container {
		padding-top: 30px;
		padding-bottom: 30px;
	}

	/* Force flex layout even when jQuery fadeIn sets display:block */
	.site-navigation .nav-menu > .menu-item-mega > ul.mega-menu-fullscreen[style*="display: block"],
	.site-navigation .nav-menu > .menu-item-mega > ul.mega-menu-fullscreen[style*="display:block"] {
		display: flex !important;
		flex-wrap: wrap;
	}

	/* ==========================================================================
	   Widget area inside mega menu
	   ========================================================================== */

	.mega-menu-widgets-wrap {
		padding: 0 !important;
		margin: 0 !important;
		width: 100% !important;
		float: none !important;
		position: static !important;
	}

	.mega-menu-widgets-container {
		width: 100%;
	}

	/*
	 * CRITICAL: Override parent theme's ".nav-menu li ul { display: none }"
	 * which hides ALL nested <ul> inside the nav — including widget content.
	 */
	.mega-menu-widgets-container ul {
		display: block !important;
		opacity: 1 !important;
		visibility: visible !important;
		position: static !important;
		transform: none !important;
		box-shadow: none !important;
		background: transparent !important;
		min-width: 0 !important;
		padding: 0;
		margin: 0;
		list-style: none;
		white-space: normal;
	}

	.mega-menu-widgets-container > ul {
		display: flex !important;
		flex-flow: column wrap;
		justify-content: start;
		width: 80%;
		max-height: 80vh;
		margin: 0;
		padding: 0;
		/*background-color: blue!important;*/
	}

	.mega-menu-widgets-container > ul > .widget {
		flex: 0;
		padding: 0 20px;
		box-sizing: border-box;
		margin-bottom: 2%;
		border-bottom-width: 0;
		/*background-color: red;*/
	}

	/* Widget width — all same size, column wrap handles the column count */
	.mega-menu-widgets-container > ul > .widget { 
		width: 200px;
	}

	.mega-menu-container, 
	.mega-menu-container > .menu-item {
		display: none;
	}

	/* Widget titles */
	.mega-menu-widgets-container .widgettitle {
		font-size: 12px;
		font-weight: 600;
		text-transform: uppercase;
		color: #23232c;
		margin: 5px 0px 10px;
	}

	/* Links inside widgets */
	.mega-menu-widgets-container a {
		color: #909097;
		font-size: 12px;
		font-weight: 400;
		text-decoration: none;
		text-transform: none;
		white-space: normal;
		line-height: 1.4;
		transition: color 0.3s;
	}

	.mega-menu-widgets-container a:hover {
		color: #23232c;
	}

	/* Widget list items */
	.mega-menu-widgets-container li {
		padding: 0;
		margin-bottom: 8px;
		display: block;
	}

	/* ==========================================================================
	   Product count badge — rounded, left of text
	   ========================================================================== */

	.mega-menu-widgets-container a {
		display: flex;
		align-items: center;
	}

	.mega-menu-widgets-container .count {
		order: -1;
		display: inline-flex;
		align-items: center;
		justify-content: center;
		min-width: 28px;
		height: 28px;
		padding: 0 6px;
		margin: -4px 8px 0 0;
		font-size: 0.8em;
		font-weight: 600;
		line-height: 1;
		color: #23232c;
		background: #fff;
		border: 1px solid rgb(249,172,0);
		border-radius: 50%;
		flex-shrink: 0;
		width: 28px;
	}

	/* ==========================================================================
	   Regular mega sub-items alongside widgets
	   ========================================================================== */

	.mega-menu-fullscreen > .mega-sub-menu {
		float: left;
	}

	/* Prevent body scroll while mega menu is open, keep scrollbar space reserved */
	html {
		scrollbar-gutter: stable;
	}
	body.mega-menu-open {
		overflow: hidden;
	}

	/* ==========================================================================
	   Header styles
	   ========================================================================== */

	.page-header-style-minimal .page-header {
		margin-top: -125px;
		padding-top: 225px;
		margin-bottom: 75px;
	}

	.header-white .site-header {
		background-color: transparent;
	}
	.no-page-header .site-header.headroom--top {
		border-bottom-width: 0px;
	}
	.header-white .site-header.headroom--not-top {
		border-bottom: 1px solid #e4e4e4;
		background-color: white;
		transition-delay: 0s, 0.3s;
		transition-property: transform, background-color;
	}

	.page-title ,
	.product_title {
		/*white-space: nowrap;*/
		position: relative;
		display: inline-block;
		isolation: isolate;
	}
	.page-title::first-line,
	.product_title::first-line {
		font-size: 2.8em;
		font-weight: 600;
	}
/*
	.product_title:after {
		content: "";
		position: absolute;
		width: 115%;
		z-index: -1;
		right: 0;
		left: -5%;
		top: 28px;
		height: 16px;
		background-color: var(--color-dark);
	}
*/
	.page-header-style-minimal .page-header {
		margin-bottom: 10px;
	}

	.page-header-style-minimal .page-header .page-title {
		transform: translateY(50%);
		font-size: 2em;
		margin-left: 3%;
		max-width: 50%;
		text-align: right;
	}
/*
	.page-header-style-minimal .page-header .page-title:after {
		content: "";
		position: absolute;
		width: 105%;
		z-index: -1;
		right: 0;
		left: -5%;
		bottom: 2px;
		height: 30%;
		background-color: var(--color-dark);
	}
*/
	body.single-product .site-content:before {
		content: "";
		position: absolute;
		left: 0;
		right: 0;
		width: 100%;
		margin-top: -125px;
		padding: 150px 0;
		background-color: var(--color-light);
	}

	.woocommerce .product-toolbar .woocommerce-breadcrumb {
		margin-left: 8%; /* make room for portrait thumbnails */
	}

/*	.woocommerce div.product.layout-style-2 div.images div.thumbnails {
		top: auto;
		bottom: 70px;
	}*/

	/* ==========================================================================
	   Owl scroller
	   ========================================================================== */

	.woocommerce div.product div.images .woocommerce-product-gallery__image,
	.woocommerce div.product div.images figure {
		border: none !important;
		box-shadow: none !important;
		outline: none !important;
		overflow: hidden;
	}
	.woocommerce div.product div.images .woocommerce-product-gallery__image a {
		border: none !important;
		box-shadow: none !important;
		outline: none !important;
		overflow: visible;
	}
	.owl-item {
		background-color: var(--color-lighter);
	}
	.owl-item .woocommerce-product-gallery__image {
		width: calc(100% + 6px) !important;
	}
	.owl-item .woocommerce-product-gallery__image img {
		border: none !important;
		box-shadow: none !important;
		outline: none !important;
		margin: -5px 0 0 -4px;
		mix-blend-mode: multiply;
	}
	.owl-item .woocommerce-product-gallery__image:hover img {
		mix-blend-mode: normal;
	}
	.single-product .product .images .owl-item.active .woocommerce-product-gallery__image a {
		transition: transform 0.3s ease;
		transition-delay: 0s;
	}
	.single-product .product .images .owl-item.active .woocommerce-product-gallery__image:hover a {
		transform: scale(1.5);
		transition-delay: 0.4s;
		cursor: crosshair;
		z-index: 10;
		position: relative;
	}

	/* Close button for full-screen mega menu */
	.menu-item-mega > .mega-menu-close {
		position: fixed;
		right: 30px;
		top: 80px; /* overridden by JS via positionCloseButton() */
		z-index: 1700;
		background: none;
		border: none;
		padding: 5px;
		cursor: pointer;
		opacity: 0;
		pointer-events: none;
		transition: opacity .3s;
	}

	.menu-item-mega.active > .mega-menu-close {
		opacity: 0.5;
		pointer-events: auto;
	}

	.menu-item-mega.active > .mega-menu-close:hover {
		opacity: 1;
	}

	.menu-item-mega > .mega-menu-close svg {
		display: block;
		stroke: #23232c;
		fill: #23232c;
	}

} /* end @media (min-width: 992px) */

.product_title {
	font-size: 2.8em;
	margin-top: 12px;
}

.product_title span {
	display: block;
	margin-top: 10px;
	font-size: 0.4em;
	font-weight: 400;
}

/* Same zebra stripes as the Additional information table */
.woocommerce table.sober-size-guide__table tbody tr:nth-child(even) td {
    background: rgba(0, 0, 0, .025);
}

/* ==========================================================================
   Product loop — uniform image height without cropping
   ========================================================================== */

.woocommerce ul.products li.product .product-header,
.woocommerce ul.products li.product-category .reveal-wrap {
	aspect-ratio: 3 / 2; /* product = landscape */
	display: flex;
	align-items: center;
}
.woocommerce.term-390 ul.products li.product .product-header,
.woocommerce.term-410 ul.products li.product .product-header {
	aspect-ratio: 4 / 6;	/* laarzen = portrait */
}

/* Product loop: fixed 3px clip works because images match the 4:3 container ratio.
   Category loop: JS computes the clip per image to account for letterboxing. */
.woocommerce ul.products li.product a img {
	clip-path: inset(3px);
}

.woocommerce ul.products li.product .product-header img.wp-post-image,
.woocommerce ul.products li.product-category .reveal-wrap img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.woocommerce div.product div.summary,
.woocommerce div.product form.cart .variations,
.woocommerce div.product .woocommerce-tabs .panel {
	text-align: left;
}

.woocommerce div.product form.cart .variations .variable {
	padding-left: 0;
}
.variations-reset {
	display: none;
}
.woocommerce div.product form.cart .button {
	padding: 0 16px;
}

/* ==========================================================================
   Shop filter widgets — WooCommerce layered nav matches Sober Addons style
   ========================================================================== */

.woocommerce .shop-toolbar .filter-widgets .widget_layered_nav,
.woocommerce .shop-toolbar .filter-widgets .widget_price_filter {
	margin-bottom: 40px;
	float: none;
	clear: both;
	overflow: hidden;
}
.woocommerce .shop-toolbar .filter-widgets .widget_layered_nav:last-child,
.woocommerce .shop-toolbar .filter-widgets .widget_price_filter:last-child {
	margin-bottom: 0;
}

.woocommerce .shop-toolbar .filter-widgets .widget-title {
	margin-bottom: 20px;
}

.woocommerce .shop-toolbar .filter-widgets .woocommerce-widget-layered-nav-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.woocommerce .shop-toolbar .filter-widgets .woocommerce-widget-layered-nav-list__item {
	padding: 5px 0;
	border: 0;
}

.woocommerce .shop-toolbar .filter-widgets .woocommerce-widget-layered-nav-list__item a {
	font-size: 1em;
	font-weight: 400;
	transition: color .5s;
}

.woocommerce .shop-toolbar .filter-widgets .woocommerce-widget-layered-nav-list__item a:hover,
.woocommerce .shop-toolbar .filter-widgets .woocommerce-widget-layered-nav-list__item.wc-layered-nav-term--chosen a {
	color: #23232c;
}

/* ==========================================================================
   Site footer wide
   ========================================================================== */
.site-footer .widget-title {
	margin: 20px 0 10px 0;
}
.site-footer ul {
	padding-left: 0;
}
.site-footer li {
	list-style: none;
}
.button.text-light, .button.text-light:hover {
	color: #fff;
}
.social-icons {
	font-family: "FontAwesome";
}
.social-icons  .ts-tooltip {
	display: none
}
ul.info-content li{
	position: relative;
	list-style: none;
	padding-top: 10px;
	padding-bottom: 10px;
	padding-left: 30px;/* rtl */
}
ul.info-content li:before{
	font-family: "FontAwesome";
	font-size: inherit;
	position: relative;
	letter-spacing: 0;
	line-height: 14px;
	position: absolute;
	left: 0;/* rtl */
	top: 13px;
	font-weight: normal;
}
ul.info-content li.info-location:before{
	content: "\f124";
}
ul.info-content li.info-phone:before{
	content: "\f095";
}
ul.info-content li.info-email:before{
	content: "\f003";
}

/* ==========================================================================
   Main page
   ========================================================================== */
.feature-title.entry-title {
   font-size: 2rem;
}
.ts-heading{
	margin: 20px 0;
}
.sub-menu h2.widgettitle {
	font-size: 1em;
}
.side-menu li ul {
    padding: 0;
}
