/*!
Theme Name: Jlek
Theme URI: http://underscores.me/
Author: Underscores.me
Author URI: http://underscores.me/
Description: Description
Version: 1.0.0
Tested up to: 5.4
Requires PHP: 5.6
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: jlek
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned.

Jlek is based on Underscores https://underscores.me/, (C) 2012-2020 Automattic, Inc.
Underscores is distributed under the terms of the GNU GPL v2 or later.

Normalizing styles have been helped along thanks to the fine work of
Nicolas Gallagher and Jonathan Neal https://necolas.github.io/normalize.css/
*/

:root {
	--card-border-color: var(--wp--preset--color--gray-700);
	--card-button-padding-lg: var(--wp--preset--spacing--8) var(--wp--preset--spacing--32) var(--wp--preset--spacing--6);
	--card-button-padding-sm: var(--wp--preset--spacing--6) var(--wp--preset--spacing--12) var(--wp--preset--spacing--4);

	--jlek-layout-gutter: var(--wp--preset--spacing--16, 16px);
	--jlek-layout-content: min(calc(100vw - var(--jlek-layout-gutter) * 2), var(--wp--style--global--content-size, 1240px));
	--jlek-layout-wide-size: min(calc(100vw - var(--jlek-layout-gutter) * 2), var(--wp--style--global--wide-size, 1400px));

	--color-border: #e3e4e8;
	--color-surface-muted: #f1f2f3;
	--color-text-secondary: #6a7282;
	--color-border-medium: #c7cad0;
	--color-text-dark: #22282B;

	--shadow-card: 0 4px 6px -1px rgba(0, 0, 0, 0.10), 0 2px 4px -2px rgba(0, 0, 0, 0.10);
	--shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.10), 0 8px 10px -6px rgba(0, 0, 0, 0.10);

	--color-primary-tint-8: rgba(241, 89, 42, 0.08);
	--color-primary-tint-16: rgba(241, 89, 42, 0.16);
}

* {
	box-sizing: border-box;
}

html {
	scrollbar-gutter: stable;
	overflow-x: clip;
}

img {
	vertical-align: middle !important;
}

button,
input,
select,
textarea {
	font-family: inherit;
}

.container {
	box-sizing: border-box;
	display: block;
	width: 100%;
}

.container>* {
	box-sizing: border-box;
	width: var(--jlek-layout-content);
	max-width: var(--wp--style--global--content-size, 1240px);
	margin-inline: auto;
}

.container>.alignwide {
	width: var(--jlek-layout-wide-size);
	max-width: none;
}

.container>.alignfull {
	width: 100%;
	max-width: none;
	margin-inline: 0;
}

.entry-content--blocks,
.page-content {
	display: block;
}

.editor-styles-wrapper .is-root-container {
	--jlek-layout-content: min(calc(100% - var(--jlek-layout-gutter) * 2), var(--wp--style--global--content-size, 1240px));
	--jlek-layout-wide-size: min(calc(100% - var(--jlek-layout-gutter) * 2), var(--wp--style--global--wide-size, 1400px));
	display: block;
}

.entry-content--blocks>*,
.page-content>* {
	max-width: var(--jlek-layout-content);
	margin-inline: auto;
}

.editor-styles-wrapper .is-root-container> :where(:not(.alignwide):not(.alignfull)) {
	width: var(--jlek-layout-content);
	max-width: var(--wp--style--global--content-size, 1240px);
	margin-inline: auto;
}

.entry-content--blocks>.alignwide,
.page-content>.alignwide {
	max-width: var(--jlek-layout-wide-size);
}

.editor-styles-wrapper .is-root-container>.alignwide {
	width: var(--jlek-layout-wide-size);
	max-width: var(--wp--style--global--wide-size, 1400px);
	margin-inline: auto;
}

.entry-content--blocks>.alignfull,
.page-content>.alignfull,
.editor-styles-wrapper .is-root-container>.alignfull {
	max-width: none;
	width: 100%;
	margin-inline: 0;
}

.site-header {
	position: absolute;
	top: var(--wp-admin--admin-bar--height, 0px);
	left: 0;
	right: 0;
	z-index: 10000;
	background: linear-gradient(180deg, rgba(104, 13, 31, 0.5) 0%, rgba(104, 13, 31, 0) 100%);
	transition: background 0.3s ease, transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
	padding-block: 0;
}

.site-header.is-sticky {
	position: fixed;
	top: var(--wp-admin--admin-bar--height, 0px);
	background: var(--wp--preset--color--primary-500);
}

.site-header.is-hidden {
	transform: translateY(-100%);
}

/* ─── Banner: section-banner ──────────────────────────────────── */

.breadcrumbs {
	display: flex;
	flex-wrap: wrap;
	gap: var(--wp--preset--spacing--16);
	margin-block-end: var(--wp--preset--spacing--40);
}

.breadcrumbs .current-item {
	color: var(--wp--preset--color--primary-500);
}

.section-banner {
	position: relative;
	width: 100%;
	overflow: hidden;
	border-radius: 0 0 50% 50% / 0 0 50px 50px;
}

/* Video banner — matches landing page hero exactly */
.section-banner--video {
	height: 100dvh;
}

.section-banner--video video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	z-index: 0;
}

/* Mobile-first: hide mobile video by default; swap on small screens when mobile video exists */
.banner-video--mobile {
	display: none;
}

.has-mobile-video .banner-video--desktop {
	display: none;
}

.has-mobile-video .banner-video--mobile {
	display: block;
}

@media (min-width: 768px) {
	.has-mobile-video .banner-video--desktop {
		display: block;
	}

	.has-mobile-video .banner-video--mobile {
		display: none;
	}
}

/* Portrait: video fills the tall viewport, anchor to top so subject stays visible */
@media (orientation: portrait) {
	.section-banner--video video {
		object-position: center top;
	}
}

/* Landscape on mobile: cap min-height so banner doesn't collapse */
@media (orientation: landscape) and (not (min-width: 768px)) {
	.section-banner--video {
		min-height: 280px;
	}
}

/* Image banner — product page style */
.section-banner--image {
	height: clamp(14.375rem, -1.5041rem + 50.813vw, 30rem);
}

.section-banner--image .banner-bg {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	z-index: 0;
}

/* Mobile-first: hide mobile image by default; swap on small screens when mobile image exists */
.banner-bg--mobile {
	display: none;
}

.has-mobile-image .banner-bg--desktop {
	display: none;
}

.has-mobile-image .banner-bg--mobile {
	display: block;
}

@media (min-width: 768px) {
	.has-mobile-image .banner-bg--desktop {
		display: block;
	}

	.has-mobile-image .banner-bg--mobile {
		display: none;
	}
}

.banner-content {
	position: absolute;
	bottom: 0;
	left: 50%;
	transform: translateX(-50%);
	z-index: 9999;
	text-align: center;
	width: 100%;
	padding-inline: var(--wp--preset--spacing--16);
}

.banner-title {
	font-size: var(--wp--preset--font-size--60);
	color: var(--wp--preset--color--primary-500);
	margin-block: 0 var(--wp--preset--spacing--24);
	text-align: center;
}

.page-template-template-home .banner-title {
	color: var(--wp--preset--color--white);
}

.banner-subtitle>* {
	font-size: clamp(1rem, 0.5625rem + 3vw, 1.5rem);
	color: var(--wp--preset--color--white);
}

.banner-subtitle {
	margin-block-end: var(--wp--preset--spacing--48);
}

/* ─── State 1: No banner → solid orange header ───────────────── */

.has-header-default .site-header {
	position: sticky;
	top: var(--wp-admin--admin-bar--height, 0px);
	background: var(--wp--preset--color--primary-500);
}

.custom-logo-link {
	display: block;
	align-self: center;
}

.site-header-main {
	display: none;
	grid-template-columns: 1fr auto 1fr;
	gap: var(--wp--preset--spacing--48);
	padding-block: var(--wp--preset--spacing--16);
}

.site-header-main .custom-logo {
	width: 90px;
	height: auto;
	transition: width 0.35s ease;
}

.mobile-header .custom-logo,
.mobile-menu-overlay .custom-logo {
	width: 48px;
	height: auto;
}

.site-header.is-sticky .site-header-main {
	padding-block: 0;
}

.site-header.is-sticky .site-header-main .custom-logo {
	width: 60px;
}

.site-header-inner {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.menu {
	list-style: none;
	padding: 0;
}

.menu a {
	font-size: var(--wp--preset--font-size--18);
	color: var(--wp--preset--color--white);
}

.sub-menu {
	display: none;
}

.site-footer-top {
	color: var(--wp--preset--color--white);
	background-color: var(--wp--preset--color--primary-500);
	padding-block: var(--wp--preset--spacing--40);
}

.site-info-top {
	display: grid;
	grid-template-columns: 1fr;
	justify-content: center;
	text-align: center;
}

.site-footer-bottom {
	background-color: var(--wp--preset--color--secondary-500);
	color: var(--wp--preset--color--white);
	padding-block: var(--wp--preset--spacing--16);
	margin: 0;
}

.site-info-bottom {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	text-align: center;
}

.footer-col * {
	text-align: center;
	justify-items: center;
	color: var(--wp--preset--color--white);
}

.site-header .trp-shortcode-switcher__wrapper {
	display: flex;
	justify-content: flex-end;
	padding: 0;
}

.site-header .trp-current-language-item__wrapper {
	padding: 0 !important;
}

.site-header .trp-language-item {
	padding-inline-start: 0;
}

.site-header .trp-language-item-name {
	font-size: var(--wp--preset--font-size--18);
}

/* ─── Product Highlight: tab-based ─────────────────────────────── */

.section-product-highlight {
	position: relative;
	background-color: var(--wp--preset--color--primary-500);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.product-highlight__panel-img img {
	width: 100%;
	max-height: 420px;
	height: auto;
	object-fit: contain;
	filter: drop-shadow(0 16px 40px rgba(0, 0, 0, 0.18));
}

/* Cream drip decoration at top */
.product-highlight__top-drip {
	width: 100%;
	pointer-events: none;
}

.product-highlight-bg {
	width: 100%;
	height: auto;
	display: block;
}

.product-highlight-bg--bottom {
	background-color: var(--wp--preset--color--background);
}

/* Bottom decoration wrapper: holds drip SVG + star anise */
.product-highlight__bottom-deco {
	position: relative;
	width: 100%;
}

/* Bottom leaves: gentle float-in-place animation */
@keyframes hl-leaves-float {

	0%,
	100% {
		transform: translateY(0);
	}

	50% {
		transform: translateY(-10px);
	}
}

.product-highlight-bg--leaves {
	animation: hl-leaves-float 4s ease-in-out infinite;
	will-change: transform;
	display: block;
}

/* Decorative illustrations: leaf + onion combined */
.product-highlight__deco {
	position: absolute;
	z-index: 2;
	will-change: transform, opacity;
}

.product-highlight__star-anise {
	position: absolute;
	top: 7%;
	left: 5%;
	width: 20vw;
	pointer-events: none;
	animation: hl-leaves-float 5s ease-in-out infinite;
	will-change: transform;
}

.product-highlight__deco--leaf-onion {
	top: 0;
	right: 10%;
	width: 20vw;
}

@media (min-width: 768px) {
	.product-highlight__star-anise {
		width: 10vw;
		top: 13%;
	}
}

@media (min-width: 992px) {
	.product-highlight__inner {
		padding-inline: var(--wp--preset--spacing--16);
	}

	.product-highlight__deco--leaf-onion {
		width: 12vw;
		top: 5%;
		right: 16%;	
	}
}

/* Headline */
.product-highlight__headline-wrap {
	width: 100%;
	padding-inline: var(--wp--preset--spacing--16);
	text-align: center;
	margin-block: var(--wp--preset--spacing--32) 0;
}

.product-highlight__headline {
	font-size: var(--wp--preset--font-size--48);
	color: var(--wp--preset--color--white);
}

/* Stage: product image + splash background */
.product-highlight__stage {
	position: relative;
	width: 100%;
	display: grid;
}

.product-highlight__panel {
	grid-area: 1 / 1;
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	transition: opacity 0.4s ease;
	pointer-events: none;
}

.product-highlight__panel.is-active {
	opacity: 1;
	pointer-events: auto;
}

/* Background splash image (chili, garlic, etc.) */
.product-highlight__panel-bg {
	position: absolute;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	max-height: 160px;
	height: 100%;
}

.product-highlight__panel-bg img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

/* Product bottle image */
.product-highlight__panel-img {
	position: relative;
	z-index: 1;
}

/* Tab buttons */
.product-highlight__tabs-wrap {
	width: 100%;
	display: flex;
	justify-content: center;
	margin-block: var(--wp--preset--spacing--24) 0;
}

.product-highlight__tabs {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: var(--wp--preset--spacing--16);
}

.product-highlight__tab {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: var(--card-button-padding-lg);
	border-radius: var(--wp--custom--border-radius--24);
	border: 1px solid var(--wp--preset--color--white);
	background: transparent;
	color: var(--wp--preset--color--white);
	font-size: var(--wp--preset--font-size--16);
	font-weight: 600;
	cursor: pointer;
	white-space: nowrap;
	transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

.product-highlight__tab.is-active {
	background: var(--wp--preset--color--white);
	color: var(--wp--preset--color--primary-500);
}

.product-highlight__tab:hover:not(.is-active) {
	background: rgba(255, 255, 255, 0.15);
}

.product-highlight__tagline {
	font-size: clamp(20px, 2.5vw, 32px);
	font-weight: 600;
	color: var(--wp--preset--color--white);
	line-height: var(--wp--custom--line-height--13);
	margin: 0;
	text-align: center;
}

.product-highlight__cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--wp--preset--spacing--8);
	padding: var(--card-button-padding-lg);
	border-radius: var(--wp--custom--border-radius--24);
	border: 1px solid var(--wp--preset--color--white);
	color: var(--wp--preset--color--white);
	font-weight: 600;
}

.product-highlight__cta:hover {
	background: rgba(255, 255, 255, 0.15);
	color: var(--wp--preset--color--white);
}

@media screen and (min-width: 768px) {
	.section-banner {
		border-radius: 0 0 50% 50% / 0 0 120px 120px;
	}

	.product-highlight__panel-img img {
		max-height: 720px;
	}

	.product-highlight__panel-bg {
		max-height: 400px;
	}

	.footer-col * {
		text-align: left;
		justify-items: flex-start;
	}
}

.section-faq {
	padding-block: var(--wp--preset--spacing--32);
	background-color: var(--wp--preset--color--background);
}

.faq-title {
	color: var(--wp--preset--color--secondary-500);
	font-size: var(--wp--preset--font-size--48);
	font-weight: 600;
	margin-block-start: 0;
	margin-block-end: var(--wp--preset--spacing--24);
}

.accordion {
	display: flex;
	flex-direction: column;
	background-color: var(--wp--preset--color--white);
	border: 3px solid var(--wp--preset--color--border);
	border-radius: var(--wp--custom--border-radius--24);
}

.accordion-item.is-open {
	border-radius: var(--wp--custom--border-radius--24);
	background: var(--wp--preset--color--gray-50);
	box-shadow: var(--shadow-card);
}

.accordion-trigger {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: var(--wp--preset--spacing--24);
	cursor: pointer;
	text-align: left;
	gap: 16px;
}

.accordion-question {
	font-size: var(--wp--preset--font-size--24);
	font-weight: 500;
	color: var(--color-text-dark);
	margin-block-end: 0;
}

.accordion-item.is-open .accordion-question {
	font-weight: 700;
	color: var(--wp--preset--color--primary-500);
}

.accordion-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 40px;
	height: 40px;
	border-radius: var(--wp--custom--border-radius--full);
	color: #666;
	transition: background-color 0.2s, border-color 0.2s, color 0.2s, transform 0.2s;
}

.accordion-item.is-open .accordion-icon {
	background-color: var(--wp--preset--color--primary-500);
	transform: rotate(180deg);
}

.accordion-item.is-open .accordion-icon svg path {
	fill: var(--wp--preset--color--white);
}

.accordion-panel {
	display: none;
	padding-block-end: var(--wp--preset--spacing--24);
}

.accordion-item.is-open .accordion-panel {
	display: block;
}

.accordion-answer {
	font-size: var(--wp--preset--font-size--16);
	padding-inline: var(--wp--preset--spacing--24);
}

.site-footer .menu-item {
	margin-block-end: var(--wp--preset--spacing--8);
}

@media screen and (min-width: 768px) {
	.site-header .menu {
		display: flex;
		gap: var(--wp--preset--spacing--16);
	}

	.site-header .menu>* {
		width: 120px;
		text-align: center;
	}

	.site-info-top {
		grid-template-columns: repeat(4, 1fr);
		text-align: left;
	}

	.site-info-bottom {
		justify-content: space-between;
		text-align: left;
	}

	.section-faq {
		padding-block: var(--wp--preset--spacing--80);
	}

	.faq-title {
		margin-block-end: var(--wp--preset--spacing--40);
	}
}

/* About Section */
.section-about {
	background-color: var(--wp--preset--color--background);
}

.about-inner {
	display: grid;
	grid-template-columns: 1fr;
	align-items: center;
	grid-template-areas:
		"content"
		"image";
	gap: var(--wp--preset--spacing--40);
	padding-block-start: var(--wp--preset--spacing--48);
}

.about-content {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: var(--wp--preset--spacing--24);
	grid-area: content;
	text-align: center;
}

.about-title {
	font-size: var(--wp--preset--font-size--48);
	font-weight: 600;
	color: var(--wp--preset--color--secondary-500);
	line-height: var(--wp--custom--line-height--12);
	letter-spacing: -0.03em;
	margin-block: 0;
}

.about-description {
	font-size: var(--wp--preset--font-size--24);
	line-height: var(--wp--custom--line-height--13);
	margin-block-end: 0;
	color: var(--wp--preset--color--black);
}

.about-footer {
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--16);
	width: 100%;
}

.about-tagline {
	display: flex;
	flex-direction: column;
}

.btn-primary {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--wp--preset--spacing--8);
	padding: var(--card-button-padding-lg);
	background-color: var(--wp--preset--color--primary-500);
	color: var(--wp--preset--color--white);
	border-radius: var(--wp--custom--border-radius--24);
	font-size: var(--wp--preset--font-size--18);
	font-weight: 600;
	text-decoration: none;
	transition: background-color 0.2s;
	min-width: 248px;
}

.btn-primary:hover {
	background-color: var(--wp--preset--color--primary-500);
	color: var(--wp--preset--color--white);
}

.about-image-wrap {
	display: flex;
	justify-content: center;
	align-items: flex-end;
	order: -1;
	grid-area: image;
}

.about-blob {
	position: relative;
	width: 100%;
	max-width: 320px;
	aspect-ratio: 1 / 1;
	border-radius: 0 50% 50% 50% / 0 50% 50% 50%;
	overflow: hidden;
	background-color: #C8D0E7;
}

.about-blob img,
.about-blob video {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

@media screen and (min-width: 768px) {
	.about-content {
		gap: var(--wp--preset--spacing--24);
	}

	.about-inner {
		grid-template-columns: 1fr 1fr;
		grid-template-areas:
			"content image";
		padding-block-start: var(--wp--preset--spacing--96);
	}
}

@media screen and (min-width: 992px) {
	.about-footer {
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
	}

	.about-blob {
		width: 480px;
		max-width: 480px;
	}
}

/* Quality Section */
.section-quality {
	background-color: var(--wp--preset--color--primary-500);
}

.section-quality__inner {
	margin-inline: auto;
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--wp--preset--spacing--40);
	padding-block: var(--wp--preset--spacing--80);
}

.quality-images {
	display: grid;
	grid-template-columns: 1fr 1fr;
	grid-template-rows: 200px 200px;
	gap: var(--wp--preset--spacing--16);
}

.quality-img-item {
	overflow: hidden;
	border-radius: var(--wp--custom--border-radius--20);
}

.quality-img-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	border-radius: var(--wp--custom--border-radius--20);
}

.quality-img-group {
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--16);
}

.quality-img-group .quality-img-item {
	flex: 1;
}

.quality-content {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: var(--wp--preset--spacing--40);
	text-align: center;
}

.quality-content-inner>* {
	margin-block-end: 0;
}

.quality-content-inner {
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--24);
	color: var(--wp--preset--color--white);
}

.quality-btn {
	display: inline-flex;
	align-items: center;
	gap: var(--wp--preset--spacing--8);
	padding: var(--card-button-padding-lg);
	background-color: transparent;
	color: var(--wp--preset--color--white);
	border: 1px solid var(--wp--preset--color--white);
	border-radius: 100px;
	font-size: var(--wp--preset--font-size--16);
	font-weight: 600;
	text-decoration: none;
	transition: background-color 0.2s, color 0.2s;
}

.quality-btn:hover {
	background-color: var(--wp--preset--color--white);
	color: var(--wp--preset--color--primary-500);
}

@media screen and (min-width: 768px) {

	/* Inner grid sits above the pseudo-element backgrounds */
	.section-quality__inner {
		position: relative;
		z-index: 1;
		grid-template-columns: 1fr 1fr;
	}

	.quality-images {
		grid-template-rows: 280px 420px;
	}

	.quality-content {
		align-items: flex-start;
		background-color: transparent;
		text-align: left;
	}
}

/* ─── Product archive (J-Lek catalog layout) ─────────────────── */

.site-main--product-archive {
	background-color: var(--wp--preset--color--white);
}

.product-archive-page {
	position: relative;
	padding-block-start: var(--wp--preset--spacing--40);
	padding-block-end: var(--wp--preset--spacing--160);
}

.archive-title {
	margin-block-start: 0;
	margin-block-end: var(--wp--preset--spacing--24);
}

.category-nav {
	margin-inline-end: calc((100% - 100vw) / 2);
}

.category-nav__list {
	display: flex;
	flex-wrap: nowrap;
	justify-content: flex-start;
	align-items: stretch;
	gap: var(--wp--preset--spacing--24);
	list-style: none;
	margin: 0;
	padding: 0;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
}

.category-nav__list::-webkit-scrollbar {
	display: none;
}

.category-nav__list::after {
	content: '';
	display: block;
	flex-shrink: 0;
}

.category-nav__item {
	display: flex;
}

.category-nav__tile {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--wp--preset--spacing--16);
	width: 100px;
	padding: var(--wp--preset--spacing--16) var(--wp--preset--spacing--8);
	border-radius: var(--wp--custom--border-radius--16);
	color: var(--wp--preset--color--primary-500);
	background-color: var(--wp--preset--color--white);
	border: 2px solid transparent;
}

.category-nav__tile:hover {
	border-color: var(--wp--preset--color--primary-500);
}

.category-nav__tile.is-active {
	background-color: var(--wp--preset--color--primary-500);
	color: var(--wp--preset--color--white);
	border-color: var(--wp--preset--color--primary-500);
}

.category-nav__tile.is-active .category-nav__icon img,
.category-nav__tile.is-active .category-nav__svg {
	filter: brightness(0) invert(1);
}

.category-nav__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
}

.category-nav__icon img {
	display: block;
	width: 48px;
	height: 48px;
	object-fit: contain;
}

.category-nav__svg {
	display: block;
	width: 48px;
	height: 48px;
}

.category-nav__label {
	font-size: var(--wp--preset--font-size--14);
	font-weight: 600;
	text-align: center;
	line-height: var(--wp--custom--line-height--12);
}

.archive-toolbar {
	width: 100%;
}

/* Toolbar */
.product-archive-toolbar {
	display: flex;
	flex-wrap: wrap;
	flex-direction: column;
	align-items: stretch;
	justify-content: space-between;
	gap: var(--wp--preset--spacing--20);
	margin-block: var(--wp--preset--spacing--40);
}

.product-archive-toolbar__left {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: var(--wp--preset--spacing--16);
}

.product-archive-toolbar__title {
	margin: 0;
	font-size: var(--wp--preset--font-size--28);
	font-weight: 500;
	letter-spacing: -0.56px;
	color: var(--wp--preset--color--black);
}

.product-archive-toolbar__select {
	appearance: none;
	-webkit-appearance: none;
	display: block;
	width: 100%;
	height: 46px;
	padding: 1px 40px 1px 17px;
	font-family: var(--wp--preset--font-family--ibm-plex-sans-thai);
	font-size: var(--wp--preset--font-size--14);
	font-weight: 500;
	line-height: var(--wp--custom--line-height--15);
	color: var(--wp--preset--color--black);
	background-color: var(--wp--preset--color--white);
	background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 7.5L10 12.5L15 7.5' stroke='%23020617' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 17px center;
	background-size: 16px;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--wp--custom--border-radius--full);
	cursor: pointer;
}

.product-archive-toolbar__select:focus {
	outline: 1px solid var(--wp--preset--color--primary-500);
}

.archive-toolbar__search-form {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-self: flex-end;
	gap: var(--wp--preset--spacing--8);
	width: 100%;
}

.archive-toolbar__search-wrap {
	position: relative;
	display: flex;
	align-items: center;
	flex: 1;
}

.archive-toolbar__search-icon {
	position: absolute;
	left: 12px;
	width: 16px;
	height: 16px;
	color: var(--wp--preset--color--gray-700);
	pointer-events: none;
}

.archive-toolbar__search-input {
	flex: 1;
	width: auto;
	min-width: 0;
	height: 43px;
	padding: 0 12px 0 36px;
	font-family: inherit;
	font-size: var(--wp--preset--font-size--14);
	color: var(--wp--preset--color--gray-700);
	border: 1px solid var(--color-border);
	border-radius: var(--wp--custom--border-radius--24);
	background: var(--wp--preset--color--white);
}

.archive-toolbar__search-input::placeholder {
	color: var(--wp--preset--color--gray-700);
}

.archive-toolbar__search-input:focus {
	outline: 1px solid var(--wp--preset--color--primary-500);
}

.archive-toolbar__search-btn {
	height: 43px;
	padding: var(--card-button-padding-lg);
	min-width: 100%;
	font-family: inherit;
	font-size: var(--wp--preset--font-size--18);
	font-weight: 600;
	color: var(--wp--preset--color--white);
	background-color: var(--wp--preset--color--primary-500);
	border: none;
	border-radius: var(--wp--custom--border-radius--24);
	cursor: pointer;
	transition: filter 0.2s, transform 0.15s;
}

.archive-toolbar__search-btn:hover {
	filter: brightness(1.05);
}

.product-archive {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: var(--wp--preset--spacing--24) var(--wp--preset--spacing--16);
}

@media screen and (min-width: 768px) {
	.archive-title {
		margin-block-end: var(--wp--preset--spacing--40);
	}

	.product-archive {
		grid-template-columns: repeat(3, 1fr);
		gap: var(--wp--preset--spacing--24);
	}

	.product-archive-toolbar {
		flex-direction: row;
		align-items: center;
	}

	.product-archive-toolbar__left {
		flex-direction: row;
		align-items: center;
		flex-wrap: wrap;
		gap: var(--wp--preset--spacing--12)
	}

	.archive-toolbar__search-form {
		width: auto;
	}

	.archive-toolbar__search-input {
		flex: none;
		width: min(100vw - 48px, 220px);
	}

	.archive-toolbar__search-btn {
		min-width: 80px;
	}
}

@media screen and (min-width: 992px) {
	.product-archive {
		grid-template-columns: repeat(4, 1fr);
	}

	.product-archive-toolbar__select {
		width: 231px;
	}

	.archive-toolbar__search-input {
		width: min(100vw - 48px, 260px);
	}

	.product-archive-toolbar__left {
		gap: var(--wp--preset--spacing--16)
	}
}

/* ─── Product Suggestion Section ─────────────────────────────── */
.product-suggestion {
	background-color: var(--wp--preset--color--background);
	padding-block: var(--wp--preset--spacing--40);
}

.product-suggestion__title {
	font-size: var(--wp--preset--font-size--48);
	font-weight: 600;
	color: var(--wp--preset--color--secondary-500);
	margin-block-end: var(--wp--preset--spacing--40);

}

.product-card__media {
	aspect-ratio: 290 / 360;
	display: block;
	overflow: hidden;
}

.product-card__media img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
}

.product-card__body {
	padding: var(--wp--preset--spacing--16) var(--wp--preset--spacing--8);
}

.product-card__weight {
	margin: 0;
	font-size: var(--wp--preset--font-size--14);
	color: var(--wp--preset--color--black);
}

.product-card-body {
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--16);
	padding: var(--wp--preset--spacing--16) var(--wp--preset--spacing--8);
}

.product-card__badge {
	border: 1px solid var(--wp--preset--color--gray-700);
	border-radius: var(--wp--custom--border-radius--full);
	font-family: var(--wp--preset--font-family--ibm-plex-sans-thai);
	font-size: var(--wp--preset--font-size--12);
	font-weight: 600;
	width: fit-content;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	padding: var(--card-button-padding-sm);
	text-decoration: none;
	transition: color 0.2s ease, border-color 0.2s ease;
}

a.product-card__badge:hover {
	color: var(--wp--preset--color--primary-500);
	border-color: var(--wp--preset--color--primary-500);
}

.product-card__title {
	font-size: var(--wp--preset--font-size--18);
	font-weight: 600;
	color: var(--wp--preset--color--text);
	margin-block: var(--wp--preset--spacing--16) var(--wp--preset--spacing--8);
}

/* Footer: arrows left, pagination dots right */
.carousel__footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-block-start: var(--wp--preset--spacing--40);
}

.carousel__footer .splide__arrows {
	display: flex;
	flex-shrink: 0;
	gap: var(--wp--preset--spacing--8);
}

.splide__arrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 50px;
	height: 50px;
	border-radius: var(--wp--custom--border-radius--full);
	border: none;
	background: var(--wp--preset--color--primary-500);
	color: var(--wp--preset--color--white);
	cursor: pointer;
	transition: background-color 0.2s, opacity 0.2s;
	flex-shrink: 0;
	/* Reset Splide defaults */
	position: static;
	transform: none;
	opacity: 1;
}

.splide__arrow:hover {
	filter: brightness(1.08);
	opacity: 1;
}

.splide__arrow:disabled {
	opacity: 0.4;
	cursor: default;
}

.splide__arrow svg {
	width: 24px;
	height: 24px;
	/* Splide flips prev arrow by default — undo */
	transform: none !important;
}

.contact-page {
	background-color: var(--wp--preset--color--background);
}

/* ─── Contact form tabs ─────────────────────────────────────────── */
.contact-tabs {
	background-color: var(--wp--preset--color--white);
	border-radius: var(--wp--custom--border-radius--16);
	padding: var(--wp--preset--spacing--24);
}

.contact-tabs__nav {
	margin-block-end: var(--wp--preset--spacing--24);
}

.contact-tabs__select {
	display: block;
	width: 100%;
	height: 46px;
	padding: 1px 40px 1px 17px;
	background-color: var(--wp--preset--color--white);
	background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 7.5L10 12.5L15 7.5' stroke='%23020617' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 17px center;
	background-size: 16px;
	border: 1px solid var(--color-border);
	border-radius: var(--wp--custom--border-radius--full);
	font-family: var(--wp--preset--font-family--ibm-plex-sans-thai);
	font-size: var(--wp--preset--font-size--14);
	font-weight: 500;
	line-height: 20px;
	color: #020617;
	cursor: pointer;
	appearance: none;
	-webkit-appearance: none;
}

.contact-tabs__select:focus {
	outline: 2px solid var(--wp--preset--color--primary-500);
	outline-offset: 2px;
}

.contact-tabs__trigger {
	display: none;
}

@media (min-width: 768px) {
	.contact-tabs__nav {
		display: flex;
		flex-wrap: wrap;
		gap: var(--wp--preset--spacing--8);
		background-color: var(--wp--preset--color--primary-500);
		width: fit-content;
		border-radius: var(--wp--custom--border-radius--full);
		padding: var(--wp--preset--spacing--8);
	}

	.contact-tabs__select {
		display: none;
	}

	.contact-tabs__trigger {
		display: block;
		width: auto;
		padding: var(--wp--preset--spacing--8) var(--wp--preset--spacing--12);
		border-radius: var(--wp--custom--border-radius--full);
		background: transparent;
		font-family: var(--wp--preset--font-family--ibm-plex-sans-thai);
		font-size: var(--wp--preset--font-size--18);
		font-weight: 600;
		color: var(--wp--preset--color--white);
		border: none;
		cursor: pointer;
	}

	.contact-tabs__trigger:hover {
		background-color: var(--color-primary-tint-8);
		color: var(--wp--preset--color--white);
	}

	.contact-tabs__trigger.is-active {
		background-color: var(--wp--preset--color--white);
		color: var(--wp--preset--color--primary-500);
	}
}

.contact-tabs__panel {
	display: none;
}

.contact-tabs__panel.is-active {
	display: block;
}

.site-main {
	padding-block-start: var(--wp--preset--spacing--32);
}

.home .site-main {
	padding-block-start: 0;
}

.home .site,
.post-type-archive-recipe .site,
.tax-recipe_category .site,
.page-template-template-contact .site {
	background-color: var(--wp--preset--color--background);
}

/* ── Recommended Section ───────────────────────────── */
.recipe-archive {
	background: var(--wp--preset--color--white);
	padding-block-start: var(--wp--preset--spacing--24);
	padding-block-end: var(--wp--preset--spacing--80);
}

.recipe-suggestion {
	position: relative;
	background-color: var(--wp--preset--color--background);
	padding-block-end: var(--wp--preset--spacing--80);
	overflow-x: clip;
}

.home .recipe-suggestion {
	padding-block-start: var(--wp--preset--spacing--80);
}

/* Star anise decoration at top-left corner */
.recipe-suggestion__deco-star {
	position: absolute;
	top: 2px;
	left: -3px;
	width: 76px;
	height: 71px;
	aspect-ratio: 205 / 186;
	transform: rotate(-13.23deg);
	--fill-0: var(--wp--preset--color--secondary-500);
	pointer-events: none;
	z-index: 1;
}

.recipe-suggestion__title {
	font-size: var(--wp--preset--font-size--32);
	font-weight: 600;
	margin-block: 0;
	color: var(--wp--preset--color--secondary-500);
	text-align: center;
}

.splide .splide__track {
	overflow-x: clip;
	overflow-y: visible;
}

.splide__pagination .splide__pagination__page {
	display: block;
	height: 12px;
	width: 40px;
	border-radius: var(--wp--custom--border-radius--full);
	background: var(--color-border-medium);
	border: none;
	padding: 0;
	margin-inline: 4px;
	cursor: pointer;
	transition: width 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
		height 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
		margin 0.3s ease,
		opacity 0.3s ease,
		border-radius 0.3s ease,
		background-color 0.25s ease;
	opacity: 1;
	flex-shrink: 0;
}

.splide__pagination .splide__pagination__page.is-active {
	width: 68px;
	height: 12px;
	background: var(--wp--preset--color--primary-500);
	transform: none;
}

/* Compact pagination: dot size by distance from active (set by JS when slide count > 7) */
.splide__pagination .splide__pagination__page.is-dot-1 {
	width: 12px;
	height: 12px;
	border-radius: var(--wp--custom--border-radius--full);
}

.splide__pagination .splide__pagination__page.is-dot-2 {
	width: 8px;
	height: 8px;
	border-radius: var(--wp--custom--border-radius--full);
	opacity: 0.55;
}

.splide__pagination .splide__pagination__page.is-dot-3 {
	width: 5px;
	height: 5px;
	border-radius: var(--wp--custom--border-radius--full);
	opacity: 0.28;
}

.splide__pagination .splide__pagination__page.is-dot-hidden {
	width: 0;
	height: 0;
	margin-inline: 0;
	opacity: 0;
	pointer-events: none;
}

.archive .suggestion__header {
	display: none;
}

.product-reviews-slider .suggestion__header {
	display: flex;
}

@media screen and (min-width: 768px) {
	.site-main {
		padding-block-start: var(--wp--preset--spacing--32);
	}

	.recipe-archive {
		padding-block-start: var(--wp--preset--spacing--80);
		padding-block-end: var(--wp--preset--spacing--160);
	}

	.carousel__footer .splide__arrows {
		gap: var(--wp--preset--spacing--40);
	}

	.recipe-suggestion .suggestion__header .btn-primary,
	.product-reviews-slider .suggestion__header .btn-primary {
		justify-content: flex-end;
		background-color: transparent;
		color: var(--wp--preset--color--primary-500);
		padding: 0;
	}
}

/* ── Recipe Suggestion – Mobile (1-card view) ────── */
@media screen and (max-width: 420px) {
	.splide__arrow {
		width: 40px;
		height: 40px;
	}

	.splide__pagination .splide__pagination__page {
		width: 24px;
		height: 10px;
		margin-inline: var(--wp--preset--spacing--4);
	}

	.splide__pagination .splide__pagination__page.is-active {
		width: 44px;
		height: 10px;
	}

	.splide__pagination .splide__pagination__page.is-dot-1 {
		width: 10px;
		height: 10px;
	}

	.splide__pagination .splide__pagination__page.is-dot-2 {
		width: 7px;
		height: 7px;
	}

	.splide__pagination .splide__pagination__page.is-dot-3 {
		width: 4px;
		height: 4px;
	}
}

/* ── Category Nav ──────────────────────────────────── */

.category-box {
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--24);
	overflow-x: clip;
}

.recipe-category-section__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

.category-box__title {
	font-size: var(--wp--preset--font-size--24);
	font-weight: 600;
	line-height: var(--wp--custom--line-height--13);
	letter-spacing: -0.02em;
	color: var(--wp--preset--color--black);
	margin: 0;
}

/* ── Search row ───────────────────────────────────────── */
.recipe-category-section__search-row {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: var(--wp--preset--spacing--12);
}

.recipe-category-section__search-form {
	display: flex;
	align-items: center;
	gap: var(--wp--preset--spacing--8);
}

.recipe-category-section__search-input-wrap {
	display: flex;
	align-items: center;
	gap: var(--wp--preset--spacing--4);
	width: 100%;
	height: 40px;
	padding: 0 var(--wp--preset--spacing--12);
	background-color: var(--wp--preset--color--white);
	border: 1px solid var(--color-border);
	border-radius: var(--wp--custom--border-radius--24);
}

.recipe-category-section__search-icon {
	flex-shrink: 0;
}

.recipe-category-section__search-input {
	flex: 1;
	border: none;
	outline: none;
	background: transparent;
	font-family: var(--wp--preset--font-family--ibm-plex-sans-thai);
	font-size: var(--wp--preset--font-size--14);
	font-weight: 400;
	line-height: var(--wp--custom--line-height--15);
	color: var(--color-text-dark);
	min-width: 0;
}

.recipe-category-section__search-input::placeholder {
	color: var(--wp--preset--color--gray-700);
}

.recipe-category-section__search-btn {
	height: 40px;
	padding: 0 16px;
	background-color: var(--wp--preset--color--primary-500);
	color: var(--wp--preset--color--white);
	font-family: var(--wp--preset--font-family--ibm-plex-sans-thai);
	font-size: var(--wp--preset--font-size--18);
	font-weight: 600;
	line-height: var(--wp--custom--line-height--15);
	border: none;
	border-radius: var(--wp--custom--border-radius--24);
	cursor: pointer;
	white-space: nowrap;
	transition: background-color 0.2s;
}

.recipe-category-section__search-btn:hover {
	background-color: #d94b20;
}

@media screen and (min-width: 768px) {
	.recipe-category-section__search-row {
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
		gap: var(--wp--preset--spacing--16);
	}

	.recipe-category-section__search-input-wrap {
		width: 240px;
	}
}

/* ── Toolbar: Search ───────────────────────────────── */

.recipe-archive-toolbar {
	justify-items: right;
	margin-block: var(--wp--preset--spacing--40);
}

.recipe-archive-toolbar__search-form {
	display: flex;
	align-items: center;
	gap: 0;
	background: var(--wp--preset--color--white);
	border: 1px solid var(--color-border);
	border-radius: var(--wp--custom--border-radius--24);
	overflow: hidden;
	padding-inline-start: 12px;
}

.recipe-archive-toolbar__search-wrap {
	position: relative;
	display: flex;
	align-items: center;
	flex: 1;
}

.recipe-archive-toolbar__search-icon {
	position: absolute;
	left: 4px;
	color: var(--wp--preset--color--gray-700);
	pointer-events: none;
	flex-shrink: 0;
}

.recipe-archive-toolbar__search-input {
	width: 100%;
	padding: var(--wp--preset--spacing--12) var(--wp--preset--spacing--12) var(--wp--preset--spacing--12) var(--wp--preset--spacing--24);
	font-family: var(--wp--preset--font-family--ibm-plex-sans-thai);
	font-size: var(--wp--preset--font-size--14);
	color: var(--wp--preset--color--black);
	border: none;
	outline: none;
	background: transparent;
}

.recipe-archive-toolbar__search-input::placeholder {
	color: var(--wp--preset--color--gray-700);
}

/* ── Recipe Grid ──────────────────────────────────── */
.recipe-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--wp--preset--spacing--24);
}

.recipe-card {
	height: 100%;
	background: var(--wp--preset--color--white);
	border: 2px solid var(--color-border);
	border-radius: var(--wp--custom--border-radius--16);
	box-shadow: var(--shadow-card);
	transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.recipe-card__media {
	display: block;
	aspect-ratio: 300 / 210;
}

.recipe-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-top-right-radius: var(--wp--custom--border-radius--16);
	border-top-left-radius: var(--wp--custom--border-radius--16);
}

.recipe-grid .recipe-card:nth-child(1) .recipe-card__media,
.recipe-grid .recipe-card:nth-child(9) .recipe-card__media {
	aspect-ratio: 608 / 525;
}

.recipe-card__body {
	padding: var(--wp--preset--spacing--16);
}

.recipe-card__badge {
	display: inline-flex;
	align-items: center;
	border: 1px solid var(--card-border-color);
	border-radius: var(--wp--custom--border-radius--full);
	padding: var(--card-button-padding-sm);
	font-size: var(--wp--preset--font-size--12);
	font-weight: 600;
	color: var(--wp--preset--color--gray-700);
	transition: color 0.2s ease, border-color 0.2s ease;
	margin-block-end: var(--wp--preset--spacing--16);
}

.recipe-card__badge:hover {
	color: var(--wp--preset--color--primary-500);
	border-color: var(--wp--preset--color--primary-500);
}

.recipe-card__title {
	font-size: var(--wp--preset--font-size--18);
	font-weight: 600;
	line-height: var(--wp--custom--line-height--13);
	margin: 0;
	display: block;
}

.recipe-card__sauce {
	font-size: var(--wp--preset--font-size--14);
	margin-block: var(--wp--preset--spacing--8) 0;
}

.recipe-card__sauce-label {
	font-weight: 500;
}

.recipe-card__sauce-link {
	display: inline-flex;
	align-items: center;
	gap: var(--wp--preset--spacing--4);
}

.recipe-card__sauce-link:hover {
	color: var(--wp--preset--color--primary-500);
}

.recipe-suggestion .recipe-card__media {
	aspect-ratio: 300/340;
}

.recipe-suggestion .recipe-card:hover {
	border-color: var(--wp--preset--color--primary-500);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
	z-index: 2;
}

.recipe-suggestion .recipe-card__title {
	font-size: 1.5rem;
}

.recipe-card__video {
	position: absolute;
	inset: 0;
	z-index: 2;
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0;
	transition: opacity 0.3s ease;
	pointer-events: none;
}

.recipe-suggestion .recipe-card:hover .recipe-card__video {
	opacity: 1;
}

.recipe-card__yt-embed {
	position: absolute;
	inset: 0;
	z-index: 2;
	opacity: 0;
	transition: opacity 0.3s ease;
	pointer-events: none;
	overflow: hidden;
}

.recipe-card__yt-embed iframe {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 300%;
	height: 300%;
	transform: translate(-50%, -50%);
	border: 0;
	pointer-events: none;
}

.recipe-suggestion .recipe-card:hover .recipe-card__yt-embed {
	opacity: 1;
}

/* ── Pagination ────────────────────────────────────── */

.pagination-wrap {
	display: flex;
	justify-content: center;
	padding-block-start: var(--wp--preset--spacing--40);
}

.pagination-wrap .navigation.pagination {
	width: 100%;
	display: flex;
	justify-content: center;
}

.pagination-wrap .nav-links {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: var(--wp--preset--spacing--8) var(--wp--preset--spacing--12);
}

.pagination-wrap .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: var(--wp--custom--border-radius--8);
	padding: var(--wp--preset--spacing--8) var(--wp--preset--spacing--16);
}

.pagination-wrap a.page-numbers:hover {
	color: var(--wp--preset--color--primary-500);
}

.pagination-wrap .page-numbers.current {
	background-color: var(--wp--preset--color--primary-500);
	color: var(--wp--preset--color--white);
}

.recipe-archive-no-results {
	text-align: center;
	padding-block: var(--wp--preset--spacing--48);
	color: var(--wp--preset--color--gray-700);
}

#recipe-archive-results.is-loading {
	opacity: 0.5;
	pointer-events: none;
}

@media screen and (min-width: 768px) {
	.recipe-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.recipe-grid .recipe-card:nth-child(1) {
		grid-column: 1 / 3;
		grid-row: span 2;
	}

	.recipe-grid .recipe-card:nth-child(9) {
		grid-column: 1 / 3;
		grid-row: 6 / 8;
	}

	.recipe-suggestion .recipe-card__title {
		font-size: var(--wp--preset--font-size--18);
	}
}

@media screen and (min-width: 992px) {
	.recipe-grid {
		grid-template-columns: repeat(4, 1fr);
	}

	.recipe-grid .recipe-card:nth-child(1) {
		grid-column: 1 / 3;
		grid-row: span 2;
	}

	.recipe-grid .recipe-card:nth-child(9) {
		grid-column: 3 / 5;
		grid-row: 3/5;
	}
}

.site-header .trp-block-container {
	display: none;
}

/* Mobile header bar */
.mobile-header {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	justify-content: space-between;
	gap: var(--wp--preset--spacing--16);
}

.mobile-menu__toggle {
	background: none;
	border: none;
	display: flex;
	align-items: center;
	padding: 0;
}

.mobile-header__icons {
	display: flex;
	align-items: center;
	gap: var(--wp--preset--spacing--8);
	justify-content: flex-end;
}

/* Mobile menu overlay */
.mobile-menu-overlay {
	position: fixed;
	inset: 0;
	top: var(--wp-admin--admin-bar--height, 0px);
	z-index: 9999;
	display: flex;
	flex-direction: column;
	background: var(--wp--preset--color--primary-500);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.25s ease, visibility 0.25s ease;
	overflow-y: auto;
}

.mobile-menu-overlay.is-open {
	opacity: 1;
	visibility: visible;
}

/* Overlay header bar — same grid structure as .mobile-header */
.mobile-menu-overlay__header {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: var(--wp--preset--spacing--16);
	padding-inline: var(--wp--preset--spacing--16);
}

.mobile-menu-close {
	background: none;
	border: none;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: flex-start;
	width: 56px;
	height: 40px;
	padding: 0;
}

.mobile-menu-overlay__icons {
	display: flex;
	align-items: center;
	gap: var(--wp--preset--spacing--8);
	justify-content: flex-end;
}

/* Overlay body */
.mobile-menu-overlay__body {
	flex: 1;
	padding: var(--wp--preset--spacing--32) var(--wp--preset--spacing--16) var(--wp--preset--spacing--40);
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--wp--preset--spacing--24);
}

.mobile-menu-overlay__nav {
	width: 100%;
	flex-shrink: 0;
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--24);
}

.mobile-menu-overlay__nav .menu {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--wp--preset--spacing--24);
}

.mobile-menu-overlay__nav .menu-item {
	width: 100%;
	text-align: center;
}

.mobile-menu-overlay__nav .menu-item a {
	display: block;
	color: var(--wp--preset--color--white);
	font-size: var(--wp--preset--font-size--24);
	font-weight: 600;
	text-decoration: none;
}

.mobile-menu-overlay__nav .menu-item a:hover {
	color: rgba(255, 255, 255, 0.8);
}

/* Submenu accordion */
.mobile-menu-overlay__nav .menu-item-has-children>a {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: var(--wp--preset--spacing--8);
}

.mobile-menu-overlay__nav .menu-item-has-children>a::after {
	content: '';
	display: inline-block;
	width: 6px;
	height: 6px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(45deg) translateY(-2px);
	transition: transform 0.2s, color 0.2s;
	flex-shrink: 0;
}

.mobile-menu-overlay__nav .menu-item-has-children.is-open>a {
	color: var(--wp--preset--color--secondary-500);
}

.mobile-menu-overlay__nav .menu-item-has-children.is-open>a::after {
	transform: rotate(-135deg) translateY(-2px);
}

/* Submenu panel */
.mobile-menu-overlay__nav .sub-menu {
	display: none;
	list-style: none;
	padding: var(--wp--preset--spacing--16);
	margin: var(--wp--preset--spacing--16) 0 0;
	background: #f4efe5;
	border-radius: 0 0 24px 24px;
	box-shadow: var(--shadow-lg);
}

.mobile-menu-overlay__nav .menu-item-has-children.is-open>.sub-menu {
	display: block;
}

/* First sub-menu item styled as "View All" button */
.mobile-menu-overlay__nav .sub-menu>.menu-item:first-child {
	margin-block-end: var(--wp--preset--spacing--16);
}

.mobile-menu-overlay__nav .sub-menu>.menu-item:first-child>a {
	background: var(--wp--preset--color--secondary-500);
	color: var(--wp--preset--color--white);
	border-radius: var(--wp--custom--border-radius--24);
	padding: var(--wp--preset--spacing--12) var(--wp--preset--spacing--16);
	font-size: var(--wp--preset--font-size--18);
	font-weight: 600;
}

.mobile-menu-overlay__nav .sub-menu>.menu-item:first-child>a:hover {
	background: var(--wp--preset--color--secondary-500);
	color: var(--wp--preset--color--white);
	opacity: 0.9;
}

.mobile-menu-overlay__nav .sub-menu .menu-item {
	text-align: center;
}

.mobile-menu-overlay__nav .sub-menu .menu-item a {
	font-size: var(--wp--preset--font-size--18);
	font-weight: 500;
	padding-block: var(--wp--preset--spacing--4);
	color: #374151;
}

.mobile-menu-overlay__nav .sub-menu .menu-item a:hover {
	color: var(--wp--preset--color--secondary-500);
}

/* Search bar — reuses header-search-bar__* classes */
.mobile-menu-overlay__search {
	width: 100%;
	margin-block-start: auto;
}

/* Language switcher in overlay — styled like a menu item */
.mobile-menu-overlay__lang {
	margin-block-start: 0;
	width: 100%;
	display: flex;
	justify-content: center;
}

.mobile-menu-overlay__lang a,
.mobile-menu-overlay__lang span,
.mobile-menu-overlay__lang .trp-language-switcher-link {
	color: var(--wp--preset--color--white);
	text-decoration: none;
}

.mobile-menu-overlay__lang .trp-language-switcher,
.mobile-menu-overlay__lang .trp-shortcode-switcher__wrapper {
	padding: 0;
}

/* Show all language options directly (no dropdown) in mobile overlay */
.mobile-menu-overlay__lang .trp-shortcode-anchor {
	display: none !important;
}

.mobile-menu-overlay__lang .trp-shortcode-overlay {
	position: static;
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 8px;
	padding: 0;
	background: transparent;
	box-shadow: none;
	overflow: visible;
}

.mobile-menu-overlay__lang .trp-current-language-item__wrapper {
	padding-right: 0;
}

.mobile-menu-overlay__lang .trp-switcher-dropdown-list {
	display: flex !important;
	flex-direction: row !important;
	max-height: none !important;
	overflow: visible !important;
	gap: var(--wp--preset--spacing--8);
}

.mobile-menu-overlay__lang .trp-shortcode-arrow {
	display: none;
}

.mobile-menu-overlay__lang .trp-language-item {
	padding: var(--wp--preset--spacing--4) var(--wp--preset--spacing--8);
	color: var(--wp--preset--color--white);
	pointer-events: auto;
}

.mobile-menu-overlay__lang .trp-language-item-name {
	color: var(--wp--preset--color--white);
}

.mobile-menu-overlay__lang .trp-language-item__current {
	pointer-events: none;
	opacity: 0.6;
}

/* ─── Desktop: restore desktop header, hide mobile elements ──── */
@media screen and (min-width: 992px) {
	.site-header-main {
		display: grid;
	}

	.site-header .trp-block-container {
		display: flex;
	}

	.mobile-header {
		display: none;
	}

	.mobile-menu-overlay {
		display: none !important;
	}
}

/* ═══════════════════════════════════════════════════════════════════
   Mega Menu
   ═══════════════════════════════════════════════════════════════════ */

/* When any mega panel is open, header turns solid orange */
.site-header.has-mega-active {
	background: var(--wp--preset--color--primary-500) !important;
}

/* Wrapper that holds all panels, anchored to the bottom of the header */
.mega-menu {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	z-index: 98;
	padding-block-start: 16px;
	margin-top: -16px;
}

/* Individual panel */
.mega-menu__panel {
	padding: var(--wp--preset--spacing--24);
	border-radius: 0 0 24px 24px;
	box-shadow: var(--shadow-lg);
	background-color: var(--wp--preset--color--background);
}

/* Inner wrapper constrains max-width & centres content */
.mega-menu__inner {
	max-width: 1240px;
	margin-inline: auto;
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--24);
}

/* ── Body: categories + divider + cards ────────────────────────── */
.mega-menu__body {
	display: flex;
	gap: var(--wp--preset--spacing--24);
	align-items: stretch;
}

/* Categories column */
.mega-menu__categories {
	flex-shrink: 0;
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--16);
	border-right: 1px solid var(--wp--preset--color--primary-500);
	padding-inline-end: var(--wp--preset--spacing--24);
}

.mega-menu__cat-heading {
	font-family: var(--wp--preset--font-family--ibm-plex-sans-thai);
	font-weight: 600;
	font-size: var(--wp--preset--font-size--24);
	line-height: var(--wp--custom--line-height--13);
	letter-spacing: -0.48px;
	color: var(--wp--preset--color--black);
	margin: 0;
}

.mega-menu__cat-col {
	list-style: none;
	padding: 0;
	margin: 0;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: var(--wp--preset--spacing--16);
}

.mega-menu__cat-item a {
	font-family: var(--wp--preset--font-family--ibm-plex-sans-thai);
	font-weight: 500;
	font-size: var(--wp--preset--font-size--18);
	line-height: var(--wp--custom--line-height--13);
	letter-spacing: -0.36px;
	color: var(--wp--preset--color--gray-700);
	text-decoration: none;
	white-space: nowrap;
	transition: color 0.2s;
	display: flex;
	align-items: center;
	gap: var(--wp--preset--spacing--8);
}

.mega-menu__cat-icon {
	width: 32px;
	height: 32px;
	object-fit: contain;
	flex-shrink: 0;
}

.mega-menu__cat-item a:hover {
	color: var(--wp--preset--color--primary-500);
}

/* ── Product / Recipe cards ─────────────────────────────────────── */
.mega-menu__cards {
	flex: 1;
	display: flex;
	gap: var(--wp--preset--spacing--24);
}

.mega-menu__card {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--8);
	text-decoration: none;
	border-radius: var(--wp--custom--border-radius--16);
	overflow: hidden;
	min-width: 0;
}

.mega-menu__card--recipe {
	overflow: visible;
	align-items: center;
	border-radius: 0;
}

.mega-menu__card-img {
	width: 100%;
	height: 118px;
	overflow: hidden;
}

.mega-menu__card-img img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
}

.mega-menu__card-title {
	font-weight: 500;
	font-size: var(--wp--preset--font-size--18);
	line-height: var(--wp--custom--line-height--13);
	color: var(--wp--preset--color--black);
	text-align: center;
	padding: var(--wp--preset--spacing--8);
}

.mega-menu__card:hover .mega-menu__card-title {
	color: var(--wp--preset--color--primary-500);
}

/* ── Page-cards (About Us / Quality) ───────────────────────────── */
.mega-menu__page-cards {
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--24);
}

.mega-menu__page-card-row {
	display: flex;
	gap: var(--wp--preset--spacing--24);
}

.mega-menu__page-card {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--16);
	text-decoration: none;
	min-width: 0;
}

.mega-menu__page-card-img {
	width: 100%;
	height: 144px;
	border-radius: var(--wp--custom--border-radius--24);
	background-size: cover;
	background-position: center;
	background-color: #ddd;
	overflow: hidden;
	flex-shrink: 0;
}

.mega-menu__page-card-img--default {
	background-color: var(--wp--preset--color--primary-500);
	display: flex;
	align-items: center;
	justify-content: center;
}

.mega-menu__page-card-logo {
	max-width: 86px;
	object-fit: contain;
}

.mega-menu__page-card-title {
	font-family: var(--wp--preset--font-family--ibm-plex-sans-thai);
	font-weight: 500;
	font-size: var(--wp--preset--font-size--18);
	line-height: var(--wp--custom--line-height--13);
	letter-spacing: -0.36px;
	color: var(--wp--preset--color--black);
	text-align: center;
}

.mega-menu__page-card:hover .mega-menu__page-card-title {
	color: var(--wp--preset--color--primary-500);
}

/* ── Hide on mobile (panels are desktop-only) ───────────────────── */
@media (max-width: 768px) {
	.mega-menu {
		display: none;
	}
}

/* ─── Search page ─────────────────────────────────────────────── */

.site-main--search {
	padding-block-end: var(--wp--preset--spacing--80);
}

.search-page-content {
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--40);
}

.search-page-form {
	display: flex;
	align-items: center;
	gap: 8px;
}

.search-page-form__field {
	display: flex;
	align-items: center;
	gap: 8px;
	flex: 1;
	background: var(--wp--preset--color--white);
	border: 1px solid var(--color-border);
	border-radius: var(--wp--custom--border-radius--24);
	padding: 12px 16px;
	overflow: hidden;
	transition: border-color 0.2s;
}

.search-page-form__field:focus-within {
	border-color: var(--wp--preset--color--primary-500);
}

.search-page-form__field svg {
	flex-shrink: 0;
}

.search-page-form__input {
	flex: 1;
	border: none;
	outline: none;
	background: transparent;
	font-size: var(--wp--preset--font-size--16);
	color: #1a1a1a;
	font-family: inherit;
	line-height: var(--wp--custom--line-height--15);
	min-width: 0;
}

.search-page-form__input::placeholder {
	color: var(--wp--preset--color--gray-700);
}

.search-page-form__btn {
	flex-shrink: 0;
	background: var(--wp--preset--color--primary-500);
	border: none;
	border-radius: var(--wp--custom--border-radius--24);
	padding: var(--wp--preset--spacing--12) var(--wp--preset--spacing--24);
	color: var(--wp--preset--color--white);
	font-size: var(--wp--preset--font-size--16);
	font-weight: 600;
	font-family: inherit;
	cursor: pointer;
	white-space: nowrap;
	transition: background 0.2s;
}

.search-page-form__btn:hover {
	background: var(--wp--preset--color--primary-500);
}

.search-page-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.search-page-header__title {
	margin: 0 0 var(--wp--preset--spacing--8);
	font-size: var(--wp--preset--font-size--24);
	color: var(--wp--preset--color--black);
}

.search-page-header__count {
	margin: 0;
	font-size: var(--wp--preset--font-size--16);
	color: var(--wp--preset--color--gray-700);
}

/* ── Filter tabs ─────────────────────────────────────────────── */

.search-filter-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: var(--wp--preset--spacing--8);
	width: fit-content;
	padding: var(--wp--preset--spacing--8);
	border-radius: var(--wp--custom--border-radius--full);
	border: 1px solid var(--wp--preset--color--border)
}

.search-filter-tab {
	display: inline-flex;
	align-items: center;
	gap: var(--wp--preset--spacing--8);
	border: 1px solid var(--wp--preset--color--primary-500);
	border-radius: var(--wp--custom--border-radius--full);
	color: var(--wp--preset--color--primary-500);
	background-color: transparent;
	padding: var(--wp--preset--spacing--8) var(--wp--preset--spacing--16);
	cursor: pointer;
	transition: background-color 0.2s, color 0.2s;
}

.search-filter-tab:hover {
	background-color: rgba(255, 255, 255, 0.12);
}

.search-filter-tab.is-active {
	background-color: var(--wp--preset--color--primary-500);
	color: var(--wp--preset--color--white);
}

.search-filter-tab__count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 22px;
	height: 22px;
	padding-block: var(--wp--preset--spacing--6);
	border-radius: var(--wp--custom--border-radius--full);
	color: var(--wp--preset--color--primary-500);
	transition: background-color 0.2s, color 0.2s;
}

.search-filter-tab.is-active .search-filter-tab__count {
	background-color: var(--wp--preset--color--primary-500);
	color: var(--wp--preset--color--white);
}

/* ── Results sections ────────────────────────────────────────── */

.search-results-section {
	margin-block-end: var(--wp--preset--spacing--56);
}

.search-results-section[hidden] {
	display: none;
}

.search-results-section__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-block-end: var(--wp--preset--spacing--24);
}

.search-results-section__title {
	margin: 0;
	font-size: var(--wp--preset--font-size--28);
	font-weight: 600;
	color: var(--wp--preset--color--black);
}

.search-results-section__more {
	flex-shrink: 0;
	font-size: var(--wp--preset--font-size--14);
	font-weight: 600;
	color: var(--wp--preset--color--primary-500);
	text-decoration: none;
	white-space: nowrap;
}

.search-results-section__more:hover {
	text-decoration: underline;
}

/* ── Page results list ───────────────────────────────────────── */

.search-pages-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--4);
}

.search-pages-list__item {
	border-bottom: 1px solid var(--color-border);
}

.search-pages-list__item:last-child {
	border-bottom: none;
}

.search-pages-list__link {
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--4);
	padding: var(--wp--preset--spacing--16) var(--wp--preset--spacing--8);
	text-decoration: none;
	color: inherit;
	transition: background 0.15s;
	border-radius: var(--wp--custom--border-radius--8);
}

.search-pages-list__link:hover {
	background: #f8f8f9;
}

.search-pages-list__title {
	font-size: var(--wp--preset--font-size--16);
	font-weight: 600;
	color: var(--wp--preset--color--primary-500);
}

.search-pages-list__excerpt {
	font-size: 0.875rem;
	color: var(--wp--preset--color--gray-700);
	line-height: var(--wp--custom--line-height--15);
}

/* ── No results ──────────────────────────────────────────────── */

.search-no-results {
	text-align: center;
}

.search-no-results__text {
	font-size: var(--wp--preset--font-size--20);
	font-weight: 600;
	color: var(--wp--preset--color--black);
	margin-block-end: var(--wp--preset--spacing--16);
}

/* ═══════════════════════════════════════════════════════════════════
   Header Search Toggle & Bar
   ═══════════════════════════════════════════════════════════════════ */

.header-search-toggle {
	display: flex;
	align-items: center;
	justify-content: center;
	background: none;
	border: none;
	cursor: pointer;
}

/* Search bar: hidden by default, slides in below the nav */
.header-search-bar {
	display: none;
	overflow: hidden;
	max-height: 0;
	transition: max-height 0.3s ease, padding 0.3s ease;
	padding-block: 0;
	padding-inline: 0;
}

.header-search-bar.is-open {
	max-height: 120px;
	padding-block: var(--wp--preset--spacing--24);
}

.header-search-bar__form {
	display: flex;
	align-items: center;
	gap: var(--wp--preset--spacing--8);
	width: 100%;
}

.header-search-bar__field {
	display: flex;
	align-items: center;
	gap: var(--wp--preset--spacing--4);
	flex: 1;
	background: var(--wp--preset--color--white);
	border: 1px solid var(--color-border);
	border-radius: var(--wp--custom--border-radius--24);
	padding: var(--card-button-padding-sm);
	overflow: hidden;
}

.header-search-bar__input {
	border: none;
	outline: none;
	background: transparent;
	font-size: var(--wp--preset--font-size--14);
	color: #1a1a1a;
	font-family: inherit;
	line-height: var(--wp--custom--line-height--15);
	min-width: 0;
}

.header-search-bar__btn {
	flex-shrink: 0;
	background: transparent;
	border: 1px solid var(--wp--preset--color--white);
	border-radius: var(--wp--custom--border-radius--24);
	padding: var(--card-button-padding-sm);
	color: var(--wp--preset--color--white);
	font-weight: 600;
	cursor: pointer;
	white-space: nowrap;
	transition: background 0.2s;
}

.header-search-bar__btn:hover {
	background: rgba(255, 255, 255, 0.15);
}

/* When search bar is open, header goes solid orange */
.site-header.has-search-active {
	background: var(--wp--preset--color--primary-500) !important;
}

/* Hide on mobile (mobile has its own search in overlay) */
@media (min-width: 768px) {
	.header-search-bar {
		display: block;
	}

	.hand-shake-icon {
		display: none;
	}
}

/* Tagline ticker / marquee */
.tagline-ticker {
	width: 100%;
	padding-block: var(--wp--preset--spacing--56) var(--wp--preset--spacing--24);
}

.tagline-ticker__track {
	display: flex;
	width: max-content;
	align-items: center;
	gap: 2rem;
	will-change: transform;
	animation: tagline-ticker-scroll 49s linear infinite;
}

@keyframes tagline-ticker-scroll {
	from {
		transform: translateX(0);
	}

	to {
		transform: translateX(var(--ticker-offset, -50%));
	}
}

.tagline-ticker__image {
	height: 32px;
	width: auto;
	object-fit: contain;
	vertical-align: middle;
}

@media screen and (min-width: 768px) {
	.tagline-ticker {
		padding-block: var(--wp--preset--spacing--56) 0;
	}
}