/*
Theme Name:     Child Theme Bestellen Leut
Theme URI:      n/a
Template:       kadence
Author:         Patrick Knibbe
Author URI:     n/a
Description:    Child theme for bestellen.leut.nl
Version:        1.3
License:        GNU General Public License v3.0 (or later)
License URI:    https://www.gnu.org/licenses/gpl-3.0.html
*/

/* ========================================================================
   BREAKPOINTS

   Mobile          : max-width: 767px
   Large phone     : min-width: 600px  and max-width: 767px  (archive grids only)
   Tablet          : min-width: 768px  and max-width: 1024px
   Tablet landscape: min-width: 1025px and max-width: 1279px
   Desktop         : min-width: 1280px
   Wide desktop    : min-width: 1600px  (Orderable grid only)
   ======================================================================== */


/* ========================================================================
   0. DESIGN TOKENS
   ======================================================================== */

:root {
	--leut-yellow: #FBBD1E;
	--leut-dark: #2C1A1A;
	--leut-paper-color: #fafaf8;
	--leut-paper-texture:
		repeating-linear-gradient(0deg,  rgba(0,0,0,0.02) 0px, rgba(0,0,0,0.02) 1px, transparent 1px, transparent 4px),
		repeating-linear-gradient(90deg, rgba(0,0,0,0.02) 0px, rgba(0,0,0,0.02) 1px, transparent 1px, transparent 4px),
		repeating-linear-gradient(45deg, rgba(0,0,0,0.01) 0px, rgba(0,0,0,0.01) 1px, transparent 1px, transparent 8px);
}


/* ========================================================================
   1. HEADER & NAVIGATION
   ======================================================================== */

.header-navigation .header-menu-container ul ul {
	left: 1.3rem;
}

.mobile-navigation .sub-menu li a {
	font-size: 15px;
}

@media (max-width: 767px) {
	.mobile-navigation .sub-menu li a {
		font-size: 14px;
	}
}


/* ========================================================================
   2. HERO SECTION
   ======================================================================== */

.page-hero .kt-row-layout-bottom-sep.kt-row-sep-type-crvi svg {
	display: none;
}

.page-hero .kt-row-layout-bottom-sep.kt-row-sep-type-crvi {
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	height: 9vw;
	min-height: 45px;
	max-height: 180px;
	overflow: hidden;
	z-index: 2;
}

.page-hero .kt-row-layout-bottom-sep.kt-row-sep-type-crvi::after {
	content: "";
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: var(--leut-paper-color);
	background-image: var(--leut-paper-texture);
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 100' preserveAspectRatio='none'%3E%3Cpath d='M0,0 Q500,100 1000,0 L1000,100 L0,100 Z' fill='%23fff'/%3E%3C/svg%3E");
	        mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 100' preserveAspectRatio='none'%3E%3Cpath d='M0,0 Q500,100 1000,0 L1000,100 L0,100 Z' fill='%23fff'/%3E%3C/svg%3E");
	-webkit-mask-size: 100% 100%;
	        mask-size: 100% 100%;
	-webkit-mask-repeat: no-repeat;
	        mask-repeat: no-repeat;
}

.page-hero-wit .kt-row-layout-bottom-sep.kt-row-sep-type-crvi::after {
	background-color: #fff;
	background-image: none;
}

.page-hero {
	margin-bottom: -1px;
}

.page-hero.kb-row-layout-wrap {
	padding-bottom: 80px !important;
}

@media (max-width: 1024px) {
	.page-hero.kb-row-layout-wrap {
		padding-bottom: 40px !important;
	}
}



/* ========================================================================
   3. HOMEPAGE
   ======================================================================== */

@media (max-width: 1024px) {
	body.home #wrapper {
		min-height: 0 !important;
	}

	body.home #inner-wrap {
		min-height: 0 !important;
		flex: none !important;
	}
}


/* ========================================================================
   4. CONTENT SECTIONS
   ======================================================================== */

.wp-block-kadence-rowlayout.intro-row,
.wp-block-kadence-rowlayout.basislunch-row {
	background-color: var(--leut-paper-color);
	background-image: var(--leut-paper-texture);
}


/* ========================================================================
   5. BESTELLEN - MAIN MENU TILES (.leut-keuze)
   ======================================================================== */

.leut-keuze .leut-foto {
	position: relative;
}

.leut-keuze .leut-badge {
	position: absolute;
	right: -0.625rem;
	bottom: -1.375rem;
	z-index: 2;
	width: 6rem;
	height: 6rem;
	margin: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: var(--leut-yellow);
	border: 4px solid #FFFFFF;
	color: var(--leut-dark);
	line-height: 1.1;
	text-align: center;
	transform: rotate(-8deg);
}

.leut-keuze .leut-badge strong {
	font-family: var(--global-heading-font-family, inherit);
	font-size: 1.6em;
	font-weight: 700;
	color: #000;
}

.leut-keuze .leut-badge br {
	display: none;
}

.leut-keuze .leut-link {
	color: var(--leut-dark);
}

.leut-keuze .leut-link a {
	color: var(--leut-dark);
	font-family: var(--global-heading-font-family, inherit);
	text-decoration: none;
	text-transform: uppercase;
	font-weight: 700;
	letter-spacing: 0.05em;
	border-bottom: 3px solid var(--leut-yellow);
	padding-bottom: 0.125rem;
}

.leut-keuze .leut-link a:focus-visible {
	outline: 2px solid var(--leut-dark);
	outline-offset: 0.25rem;
}

.leut-keuze .wp-block-kadence-column {
	position: relative;
}

.leut-keuze .leut-link a::after {
	content: "";
	position: absolute;
	inset: 0;
}

@media (min-width: 768px) and (max-width: 1279px) {
	.wp-block-kadence-rowlayout.leut-keuze > .kt-row-column-wrap {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		row-gap: 3rem;
	}
}

@media (min-width: 1025px) and (max-width: 1279px) {
	.wp-block-kadence-rowlayout.leut-keuze > .kt-row-column-wrap {
		max-width: 720px;
		margin-left: auto;
		margin-right: auto;
	}
}

@media (max-width: 767px) {
	.leut-keuze .leut-badge {
		width: 5.5rem;
		height: 5.5rem;
	}

	.leut-keuze .kt-row-column-wrap > .wp-block-kadence-column + .wp-block-kadence-column {
		margin-top: 2.5rem;
	}
}

@media (min-width: 600px) and (max-width: 767px) {
	.wp-block-kadence-rowlayout.leut-keuze > .kt-row-column-wrap {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
		column-gap: 2.5rem;
		row-gap: 3rem;
		max-width: 560px !important;
		margin-left: auto;
		margin-right: auto;
	}

	.leut-keuze .leut-badge {
		width: 5rem;
		height: 5rem;
	}

	.leut-keuze .kt-row-column-wrap > .wp-block-kadence-column + .wp-block-kadence-column {
		margin-top: 0;
	}
}

/* Force equal-height columns, overriding Kadence row and column valign */
.wp-block-kadence-rowlayout.leut-keuze > .kt-row-column-wrap {
	align-items: stretch !important;
}

.leut-keuze .kt-row-column-wrap > .wp-block-kadence-column {
	align-self: stretch !important;
	display: flex;
	flex-direction: column;
}

.leut-keuze .wp-block-kadence-column > .kt-inside-inner-col {
	flex: 1 1 auto;
	height: auto;
	display: flex;
	flex-direction: column;
	justify-content: flex-start !important;
}

.leut-keuze .leut-link {
	margin-top: auto;
}


/* ========================================================================
   6. WOOCOMMERCE - PRODUCT CARDS (Woo Template loop item)
   ======================================================================== */

.woocommerce ul.products li.product,
.woocommerce ul.products li.product .kb-row-layout-wrap,
.woocommerce ul.products li.product .kt-row-column-wrap,
.leut-tile {
	height: 100%;
}

.leut-tile > .kt-inside-inner-col {
	display: flex;
	flex-direction: column;
	height: 100%;
}

ul.products li.loop-entry {
	border: 1px solid #e5e5e5;
	box-shadow: 0 5px 12px rgba(0, 0, 0, 0.15);
	border-radius: 8px;
	overflow: hidden;
}

.woocommerce .kt-inside-inner-col > .kwt-add-to-cart-wrap {
	align-self: stretch;
	width: 100%;
}

.woocommerce .kwt-add-to-cart-loop .button {
	display: block;
	width: 100%;
	max-width: 260px;
	margin-left: auto;
	margin-right: auto;
	box-sizing: border-box;
	text-align: center;
}

.text-link,
a.text-link {
    display: block;
    text-align: left;
    justify-content: flex-start;
    margin-top: 0.3125rem;
    background: transparent !important;
    padding: 0.5em 0;
    text-transform: uppercase !important;
    font-weight: bold !important;
    letter-spacing: 0.05em;
    color: inherit;
    border: none !important;
    box-shadow: none !important;
    text-decoration: none !important;
    transition: opacity 0.2s ease;
}

.text-link:hover,
.text-link:focus,
.text-link:active,
a.text-link:hover,
a.text-link:focus,
a.text-link:active {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    text-decoration: none !important;
    transform: none !important;
    opacity: 0.7 !important;
}

.text-link:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 0.125rem;
}

ul.products li.loop-entry:has(.leut-tile) {
	border: none;
	box-shadow: none;
	border-radius: 0;
	overflow: visible;
	background: transparent;
}

.leut-tile .leut-tile-img img {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: 0.75rem 0.75rem 0 0;
}

.leut-tile .leut-tile-foot {
	margin-top: auto;
	flex-wrap: wrap;
	row-gap: 0.75rem;
}

.leut-tile .kwt-add-to-cart-loop .button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: auto;
	max-width: none;
	min-height: 2.75rem;
	margin: 0;
}

.leut-tile .kwt-add-to-cart-wrap {
	padding-left: 0 !important;
	padding-right: 0 !important;
	margin-left: auto;
	text-align: right;
}


/* ========================================================================
   7. WOOCOMMERCE - SHOP & CATALOG
   ======================================================================== */

@media (min-width: 1025px) and (max-width: 1439px) {
	.woocommerce ul.products.product-archive.grid-lg-col-5 {
		grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
	}
}

@media (min-width: 1440px) and (max-width: 1599px) {
	.woocommerce ul.products.product-archive.grid-lg-col-5 {
		grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
	}
}

@media (min-width: 1025px) {
	ul.products.product-archive.grid-lg-col-5:has(> li.product-category) {
		grid-template-columns: repeat(4, 1fr);
	}
}

.woocommerce ul.products.woo-archive-btn-button li.product .button.added {
	display: block !important;
	width: 100% !important;
	height: auto !important;
	padding: 15px 35px !important;
	overflow: visible !important;
	border: none !important;
	color: var(--global-palette-btn) !important;
	background: var(--global-palette-btn-bg) !important;
	text-align: center !important;
}

.woocommerce ul.products li.product a.added_to_cart {
	display: none;
}

.woocommerce ul.products .woocommerce-loop-category__title .count {
	display: none;
}

.pk-cat-desc {
	color: #333;
	font-size: 1rem;
	line-height: 1.4;
}

.leut-archive ul.products {
	column-gap: 1.5rem;
	row-gap: 1.5rem;
}

@media (min-width: 600px) and (max-width: 767px) {
	.leut-archive ul.products {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	}
}


/* ========================================================================
   8. WOOCOMMERCE - SINGLE PRODUCT
   ======================================================================== */

table.woocommerce-product-attributes tr,
table.woocommerce-product-attributes th,
table.woocommerce-product-attributes td {
	background-color: transparent !important;
}

.leut-single-cart form.cart {
	justify-content: flex-start;
}

.leut-single-cart .single_add_to_cart_button {
	flex: 0 1 260px;
	max-width: 260px;
	width: 100%;
}


/* ========================================================================
   9. ORDERABLE - PRODUCT GRID & CARDS (Smaak op maat)
   ======================================================================== */

.orderable-products-list--grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) !important;
	gap: 1.5rem;
}

.orderable-products-list--grid .orderable-products-list__item {
	width: 100% !important;
	max-width: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
	border: none !important;
}

@media (min-width: 600px) {
	.orderable-products-list--grid {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	}
}

@media (min-width: 1025px) {
	.orderable-products-list--grid {
		grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
	}
}

@media (min-width: 1280px) {
	.orderable-products-list--grid {
		grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
	}
}

@media (min-width: 1600px) {
	.orderable-products-list--grid {
		grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
	}
}

.orderable-products-list .orderable-product {
	height: 100%;
	flex-direction: column !important;
	background: #FFFFFF;
	border-radius: 0.75rem;
	box-shadow: 0 1px 2px rgba(44, 26, 26, 0.06), 0 12px 28px -8px rgba(44, 26, 26, 0.16);
	padding-bottom: 5.25rem !important;
}

.orderable-products-list .orderable-product__hero,
.orderable-products-list .orderable-product__content-wrap {
	width: 100% !important;
	max-width: 100% !important;
	flex: 0 0 auto !important;
}

.orderable-products-list .orderable-product__hero {
	border-radius: 0.75rem 0.75rem 0 0;
	overflow: hidden;
}

.orderable-products-list .orderable-product__image {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

.orderable-products-list .orderable-product__content {
	padding: 1.125rem 1.25rem 0.75rem;
}

.orderable-product__title {
	overflow-wrap: normal;
	word-break: normal;
	hyphens: none;
	text-wrap: balance;
}

.orderable-products-list .orderable-product__title {
	font-family: var(--global-heading-font-family, inherit);
	font-size: 1.375rem;
	text-transform: uppercase;
	color: var(--leut-dark);
}

.orderable-products-list .orderable-product__description {
	color: #6B6464;
	font-size: 0.9375rem;
}

.orderable-products-list .orderable-product__actions {
	position: absolute !important;
	left: 1.25rem !important;
	right: 1.25rem !important;
	bottom: 1.25rem !important;
	display: flex !important;
	justify-content: space-between !important;
	align-items: center;
	padding: 0.875rem 0 0 0 !important;
	border-top: 1px solid #EFEAE2;
}

.orderable-products-list .orderable-product__actions-price .amount {
	font-family: var(--global-heading-font-family, inherit);
	font-size: 1.375rem;
	font-weight: 700;
	color: var(--leut-dark);
}

.orderable-products-list .orderable-product__add-to-order,
.orderable-products-list .orderable-product__add-to-order:hover,
.orderable-products-list .orderable-product__add-to-order:focus {
	background: var(--leut-yellow) !important;
	color: #000 !important;
	border: none !important;
	border-radius: 0 !important;
	min-height: 2.75rem;
	padding: 0 1.25rem !important;
	font-family: "Barmeno Regular", sans-serif;
	font-weight: 400;
	font-size: 1rem;
	text-transform: uppercase;
}

.orderable-products-list .orderable-product__add-to-order:focus-visible {
	outline: 2px solid var(--leut-dark);
	outline-offset: 2px;
}


/* ========================================================================
   9B. ORDERABLE - DRAWER (Smaak op maat)
   ======================================================================== */

.orderable-drawer .orderable-product--options .orderable-product__hero {
	height: 14rem !important;
}

@media (max-height: 800px) {
	.orderable-drawer .orderable-product--options .orderable-product__hero {
		height: 10rem !important;
	}
}

.orderable-drawer .orderable-product--options .orderable-product__add-to-order,
.orderable-drawer .orderable-product--options .orderable-product__add-to-order:hover,
.orderable-drawer .orderable-product--options .orderable-product__add-to-order:focus,
.orderable-drawer__cart .orderable-mini-cart__buttons .button.checkout,
.orderable-drawer__cart .orderable-mini-cart__buttons .button.checkout:hover {
	background: var(--leut-yellow) !important;
	color: #000 !important;
	border: none !important;
	border-radius: 0 !important;
	font-family: "Barmeno Regular", sans-serif;
	font-weight: 400;
	text-transform: uppercase;
}


/* ========================================================================
   10. ORDERABLE - ALLERGENS TOOLTIP
   ======================================================================== */

.orderable-product,
.orderable-product__content-wrap,
.orderable-product__content,
.orderable-products-list__item,
.orderable-product--add-to-cart {
	overflow: visible;
}

.orderable-product__content {
	position: relative;
}

.orderable-product__title,
.orderable-product__description {
	padding-right: 34px;
}

.leut-allergenen,
.leut-allergenen:hover,
.leut-allergenen:focus,
.leut-allergenen:focus-visible,
.leut-allergenen:active {
	position: absolute;
	top: 14px;
	right: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	min-height: 0;
	padding: 0;
	margin: 0;
	border: 1px solid #777 !important;
	border-radius: 50% !important;
	background: none !important;
	box-shadow: none !important;
	outline: none !important;
	color: #777 !important;
	font-family: inherit !important;
	font-size: 13px !important;
	font-style: normal !important;
	font-weight: 700 !important;
	line-height: 1 !important;
	text-transform: none !important;
	letter-spacing: normal !important;
	text-decoration: none !important;
	transform: none !important;
	opacity: 1 !important;
	cursor: pointer;
}

.leut-allergenen__tip {
	position: absolute;
	top: 50%;
	right: calc(100% + 10px);
	transform: translateY(-50%);
	z-index: 20;
	width: max-content;
	max-width: 180px;
	padding: 10px 30px 10px 10px;
	border-radius: 4px;
	background: #222;
	color: #fff;
	font-family: inherit;
	font-size: 13px;
	font-weight: 400;
	line-height: 1.4;
	text-align: left;
	text-transform: none;
	letter-spacing: normal;
	opacity: 0;
	visibility: hidden;
	transition: opacity .15s;
}

.leut-allergenen__close {
	position: absolute;
	top: 0;
	right: 0;
	width: 28px;
	height: 28px;
	line-height: 28px;
	text-align: center;
	color: #bbb;
	font-size: 17px;
	cursor: pointer;
}

.leut-allergenen.is-open .leut-allergenen__tip {
	opacity: 1 !important;
	visibility: visible !important;
}

@media (hover: hover) and (pointer: fine) {
	.leut-allergenen:hover .leut-allergenen__tip {
		opacity: 1 !important;
		visibility: visible !important;
	}
}


/* ========================================================================
   11. PRODUCT FILTER TABS (Smaak op maat)
   ======================================================================== */

.wp-block-kadence-tabs .kt-tabs-title-list li .kt-tab-title {
	border-bottom-color: transparent;
}

.wp-block-kadence-tabs .kt-tabs-title-list li .kt-tab-title .kt-title-text {
	position: relative;
	display: inline-block;
	white-space: nowrap;
}

.wp-block-kadence-tabs .kt-tabs-title-list li.kt-tab-title-active .kt-tab-title .kt-title-text::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: -6px;
	height: 4px;
	background-color: var(--leut-yellow);
}

.wp-block-kadence-tabs .kt-tabs-title-list {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	column-gap: clamp(1rem, 2vw, 2.5rem);
	row-gap: 1rem;
	padding-left: 1rem;
	padding-right: 1rem;
}

.wp-block-kadence-tabs .kt-tabs-title-list > li {
	flex: 0 0 auto !important;
	width: auto;
	margin-bottom: 0 !important;
}

@media (max-width: 1024px) and (pointer: coarse) {
	.wp-block-kadence-tabs .kt-tabs-title-list {
		flex-wrap: nowrap;
		overflow-x: auto;
		justify-content: flex-start;
		column-gap: 1.25rem;
		padding-right: 2.5rem;
		scrollbar-width: none;
		-webkit-mask-image: linear-gradient(to right, transparent 0%, #000 6%, #000 88%, transparent 100%);
		        mask-image: linear-gradient(to right, transparent 0%, #000 6%, #000 88%, transparent 100%);
	}

	.wp-block-kadence-tabs .kt-tabs-title-list::-webkit-scrollbar {
		display: none;
	}
}

@media (max-width: 767px) and (pointer: coarse) {
	.wp-block-kadence-tabs .kt-tabs-title-list li .kt-tab-title {
		font-size: 16px !important;
	}
}

@media (min-width: 1025px) {
	.wp-block-kadence-tabs .kt-tabs-title-list {
		flex-wrap: wrap;
		overflow-x: visible;
	}
}


/* ========================================================================
   12. WOOCOMMERCE - CHECKOUT
   ======================================================================== */

.woocommerce-checkout #payment ul.wc_payment_methods li.wc_payment_method > label,
.woocommerce-checkout #payment div.payment_box {
	font-size: 0.8125rem;
	line-height: 1.4;
	font-weight: normal;
}

.woocommerce-checkout-review-order-table tfoot tr.orderable-order-timings {
	display: none;
}

.woocommerce-checkout input[type="date"] {
	width: 100%;
	box-sizing: border-box;
	text-align: left;
}

.woocommerce-checkout input[type="date"]::-webkit-date-and-time-value {
	text-align: left;
}

#billing_levertijd_field .select2-container {
	width: 100% !important;
}

#billing_levertijd_field .select2-container .select2-selection--single {
	height: 2.625rem;
	background-color: #fff;
	border-radius: 3px;
}

#billing_levertijd_field .select2-container .select2-selection--single .select2-selection__rendered {
	line-height: 2.625rem;
	padding-left: 0.5rem;
}

#billing_levertijd_field .select2-container .select2-selection--single .select2-selection__arrow {
	height: 2.625rem;
}

#billing_levertijd_field .select2-selection__clear {
	display: none;
}