/*
Theme Name: Feng Ze Yuan Food 豐澤園
Theme URI: https://www.fengzeyuanfood.com.au
Author: Lumenfire Lab
Description: Custom catalogue theme for Feng Ze Yuan Food Pty Ltd — traditional handmade dim sum & dumplings, Sydney, since 1996. Product catalogue without shopping cart. Bilingual EN / Simplified Chinese with one-click toggle.
Version: 1.1.1
Requires PHP: 8.0
Text Domain: fengzeyuan
*/

/* ============================================================ tokens */
:root {
	--burgundy: #7e1e2b;
	--burgundy-deep: #5c1420;
	--burgundy-ink: #43101a;
	--gold: #b08a3e;
	--gold-soft: #cfae6b;
	--cream: #f6f0e3;
	--paper: #fbf8f1;
	--white: #fffefb;
	--ink: #2b221c;
	--ink-soft: #6d5f52;
	--line: #e6dbc5;
	--line-soft: #efe7d6;

	--f-display: "Fraunces", "Noto Serif SC", "Songti SC", serif;
	--f-zh: "Noto Serif SC", "Songti SC", serif;
	--f-zh-brand: "Noto Serif TC", "Noto Serif SC", serif; /* 豐澤園 wordmark keeps traditional glyphs */
	--f-body: "Inter", "Noto Sans SC", -apple-system, "PingFang SC", sans-serif;

	--wrap: 1200px;
	--radius: 12px;
	--shadow: 0 18px 40px -18px rgba(43, 21, 16, 0.28);
}

/* ============================================================ base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: var(--f-body);
	font-size: 16.5px;
	line-height: 1.65;
	color: var(--ink);
	background: var(--paper);
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--burgundy); text-decoration: none; }
a:hover { color: var(--burgundy-deep); }
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 600; line-height: 1.18; margin: 0 0 0.5em; color: var(--ink); }
:lang(zh), .zh { font-family: var(--f-zh); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }
.section { padding: 88px 0; }
.section--cream { background: var(--cream); }
.section--tight { padding: 56px 0; }

/* eyebrow + headings */
.hero__grid > *, .about-split > *, .product-layout > *, .footer-grid > * { min-width: 0; }

.eyebrow {
	display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap;
	font-size: 12.5px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase;
	color: var(--gold); margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 9px; height: 9px; background: var(--burgundy); transform: rotate(45deg); flex: none; }
.h-section { font-size: clamp(28px, 3.6vw, 40px); letter-spacing: -0.01em; }
.h-section .zh { font-size: 0.72em; color: var(--burgundy); margin-left: 14px; font-weight: 600; }
.section-head { margin-bottom: 40px; }
.section-head--split { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.section-head p.lead { margin: 6px 0 0; color: var(--ink-soft); max-width: 640px; }

/* buttons */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	background: var(--burgundy); color: var(--cream);
	font-weight: 600; font-size: 15.5px; letter-spacing: 0.01em;
	padding: 14px 28px; border-radius: 999px; border: 1.5px solid var(--burgundy);
	transition: background 0.2s, color 0.2s, transform 0.15s;
	cursor: pointer;
}
.btn:hover { background: var(--burgundy-deep); border-color: var(--burgundy-deep); color: var(--cream); transform: translateY(-1px); }
.btn--outline { background: transparent; color: var(--burgundy); }
.btn--outline:hover { background: var(--burgundy); color: var(--cream); }
.btn--light { background: var(--cream); border-color: var(--cream); color: var(--burgundy-deep); }
.btn--light:hover { background: var(--white); border-color: var(--white); color: var(--burgundy-deep); }
.btn--ghost-light { background: transparent; border-color: rgba(246, 240, 227, 0.65); color: var(--cream); }
.btn--ghost-light:hover { background: rgba(246, 240, 227, 0.12); border-color: var(--cream); color: var(--cream); }

/* ============================================================ topbar + header */
.topbar { background: var(--burgundy-deep); color: rgba(246, 240, 227, 0.92); font-size: 13px; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 7px; padding-bottom: 7px; }
.topbar a { color: inherit; font-weight: 600; }
.topbar a:hover { color: var(--gold-soft); }
.topbar__note { letter-spacing: 0.06em; }
.topbar__right { display: flex; align-items: center; gap: 14px; }
@media (max-width: 700px) { .topbar__note { display: none; } .topbar .wrap { justify-content: center; } }

/* language toggle */
.lang-switch { display: inline-flex; border: 1px solid rgba(246, 240, 227, 0.45); border-radius: 999px; overflow: hidden; }
.lang-switch a { padding: 2.5px 12px; font-size: 12px; font-weight: 600; line-height: 1.5; color: rgba(246, 240, 227, 0.85); }
.lang-switch a.is-active { background: var(--cream); color: var(--burgundy-deep); }
.lang-switch a:hover { color: var(--gold-soft); }
.lang-switch a.is-active:hover { color: var(--burgundy-deep); }

/* zh mode typography (Simplified Chinese) */
.lang-zh { font-family: "Noto Sans SC", "Inter", -apple-system, "PingFang SC", sans-serif; }
.lang-zh h1, .lang-zh h2, .lang-zh h3, .lang-zh h4,
.lang-zh .prod-card__en, .lang-zh .cat-tile__name, .lang-zh .hero__badge strong, .lang-zh .stat strong { font-family: var(--f-zh); }
.lang-zh h1, .lang-zh h2 { letter-spacing: 0.04em; word-break: keep-all; }
.lang-zh .eyebrow { letter-spacing: 0.3em; }
.brand__zh, .footer-brand__zh { font-family: var(--f-zh-brand); }

.site-header {
	background: var(--paper);
	border-bottom: 1px solid var(--line-soft);
	position: sticky; top: 0; z-index: 60;
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 14px; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand__mark { width: 46px; height: auto; mix-blend-mode: multiply; }
.brand__zh { font-family: var(--f-zh); font-weight: 700; font-size: 24px; letter-spacing: 0.14em; color: var(--burgundy); line-height: 1.1; }
.brand__en { font-size: 11px; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase; color: var(--ink-soft); }

.site-nav ul { list-style: none; display: flex; gap: 6px; margin: 0; padding: 0; }
.site-nav a {
	display: block; padding: 9px 16px; border-radius: 999px;
	color: var(--ink); font-weight: 600; font-size: 15px;
}
.site-nav a:hover { color: var(--burgundy); background: var(--cream); }
.site-nav .current-menu-item > a, .site-nav .current_page_item > a { color: var(--burgundy); }

.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--burgundy); margin: 5px 0; transition: 0.2s; }

@media (max-width: 880px) {
	.nav-toggle { display: block; }
	.site-nav {
		position: absolute; left: 0; right: 0; top: 100%;
		background: var(--paper); border-bottom: 1px solid var(--line);
		display: none; box-shadow: var(--shadow);
	}
	.site-nav.is-open { display: block; }
	.site-nav ul { flex-direction: column; padding: 12px 20px 20px; }
	.site-nav a { padding: 12px 10px; font-size: 17px; }
}

/* ============================================================ hero */
.hero { background: var(--cream); border-bottom: 1px solid var(--line-soft); }
.hero__grid { display: grid; grid-template-columns: minmax(430px, 46%) 1fr; min-height: 620px; }
.hero__content { display: flex; flex-direction: column; justify-content: center; padding: 72px min(6vw, 84px) 72px max(28px, calc((100vw - var(--wrap)) / 2 + 28px)); position: relative; }
.hero__content::after {
	content: "京"; position: absolute; right: 28px; bottom: 18px;
	font-family: var(--f-zh); font-size: 130px; font-weight: 700; color: var(--burgundy);
	opacity: 0.055; pointer-events: none; line-height: 1;
}
.hero h1 { font-size: clamp(34px, 4.4vw, 54px); letter-spacing: -0.015em; margin-bottom: 10px; }
.hero__zh { font-family: var(--f-zh); font-size: clamp(19px, 2vw, 24px); font-weight: 600; color: var(--burgundy); letter-spacing: 0.2em; margin: 0 0 18px; }
.hero__lead { color: var(--ink-soft); font-size: 17.5px; max-width: 52ch; margin: 0 0 30px; }
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 38px; }
.hero__badges { display: flex; gap: 26px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 24px; }
.hero__badge { font-size: 13.5px; color: var(--ink-soft); line-height: 1.4; }
.hero__badge strong { display: block; font-family: var(--f-display); font-size: 19px; color: var(--burgundy); font-weight: 700; }
.hero__media { position: relative; min-height: 420px; }
.hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(94, 24, 33, 0.16), transparent 40%); }
@media (max-width: 880px) {
	.hero__grid { grid-template-columns: 1fr; }
	.hero__content { padding: 56px 28px; order: 2; }
	.hero__media { min-height: 320px; order: 1; }
	.hero__media::after { background: linear-gradient(0deg, rgba(94, 24, 33, 0.14), transparent 40%); }
}

/* ============================================================ category tiles */
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.cat-tile {
	background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
	overflow: hidden; display: flex; flex-direction: column;
	transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.cat-tile:hover { border-color: var(--burgundy); transform: translateY(-3px); box-shadow: var(--shadow); }
.cat-tile__media { aspect-ratio: 16 / 10; background: #f2ede2; display: grid; place-items: center; overflow: hidden; }
.cat-tile__media img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; padding: 14px; }
.cat-tile__body { padding: 18px 22px 20px; display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.cat-tile__name { font-family: var(--f-display); font-weight: 600; font-size: 19px; color: var(--ink); }
.cat-tile__name .zh { display: block; font-size: 15px; color: var(--burgundy); margin-top: 3px; font-weight: 600; }
.cat-tile__count { font-size: 13px; color: var(--ink-soft); white-space: nowrap; }
.cat-tile:hover .cat-tile__name { color: var(--burgundy); }
@media (max-width: 880px) { .cat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .cat-grid { grid-template-columns: 1fr; } }

/* ============================================================ product cards */
.prod-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
@media (max-width: 1080px) { .prod-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 820px) { .prod-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .prod-grid { grid-template-columns: 1fr; } }

.prod-card {
	position: relative; background: var(--white); border: 1px solid var(--line);
	border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column;
	transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
	color: var(--ink);
}
.prod-card:hover { border-color: var(--burgundy); transform: translateY(-3px); box-shadow: var(--shadow); color: var(--ink); }
.prod-card__media { aspect-ratio: 1 / 1; background: #fff; display: grid; place-items: center; overflow: hidden; border-bottom: 1px solid var(--line-soft); }
.prod-card__media img { width: 100%; height: 100%; object-fit: contain; padding: 10px; transition: transform 0.25s; }
.prod-card:hover .prod-card__media img { transform: scale(1.035); }
.prod-card__code {
	position: absolute; top: 12px; left: 12px;
	background: var(--burgundy); color: var(--cream);
	font-size: 11.5px; font-weight: 700; letter-spacing: 0.08em;
	padding: 4px 10px; border-radius: 999px;
}
.prod-card__body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.prod-card__en { font-family: var(--f-display); font-weight: 600; font-size: 17.5px; line-height: 1.25; }
.prod-card:hover .prod-card__en { color: var(--burgundy); }
.prod-card__zh { font-family: var(--f-zh); font-size: 14.5px; color: var(--burgundy); font-weight: 600; }
.prod-card__spec { margin-top: auto; padding-top: 8px; font-size: 13px; color: var(--ink-soft); }

/* ============================================================ catalogue (archive) */
.page-hero { background: var(--cream); border-bottom: 1px solid var(--line-soft); padding: 56px 0 44px; }
.page-hero h1 { font-size: clamp(30px, 4vw, 44px); margin-bottom: 6px; }
.page-hero .zh-sub { font-family: var(--f-zh); color: var(--burgundy); font-weight: 600; font-size: 19px; letter-spacing: 0.12em; }
.page-hero p.lead { color: var(--ink-soft); max-width: 660px; margin: 14px 0 0; }

.filter-bar { position: sticky; top: 74px; z-index: 40; background: var(--paper); border-bottom: 1px solid var(--line-soft); }
.filter-bar__in { display: flex; gap: 8px; overflow-x: auto; padding-top: 14px; padding-bottom: 14px; scrollbar-width: none; }
.filter-bar__in::-webkit-scrollbar { display: none; }
.pill {
	flex: none; padding: 8px 18px; border-radius: 999px; border: 1.5px solid var(--line);
	background: var(--white); color: var(--ink); font-size: 14px; font-weight: 600; white-space: nowrap;
}
.pill:hover { border-color: var(--burgundy); color: var(--burgundy); }
.pill.is-active { background: var(--burgundy); border-color: var(--burgundy); color: var(--cream); }
.pill .count { opacity: 0.55; font-weight: 500; margin-left: 4px; font-size: 12.5px; }

.cat-section { padding-top: 54px; }
.cat-section:last-child { padding-bottom: 72px; }
.cat-section__head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 22px; border-bottom: 2px solid var(--burgundy); padding-bottom: 10px; }
.cat-section__head h2 { font-size: 24px; margin: 0; }
.cat-section__head .zh { font-family: var(--f-zh); color: var(--burgundy); font-weight: 600; font-size: 18px; }
.cat-section__head .count { margin-left: auto; font-size: 13px; color: var(--ink-soft); }

/* ============================================================ single product */
.single-product { padding: 64px 0 88px; }
.breadcrumb { font-size: 13.5px; color: var(--ink-soft); margin-bottom: 34px; }
.breadcrumb a { color: var(--ink-soft); }
.breadcrumb a:hover { color: var(--burgundy); }
.breadcrumb .sep { margin: 0 8px; color: var(--gold); }
.product-layout { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: start; }
@media (max-width: 880px) { .product-layout { grid-template-columns: 1fr; gap: 32px; } }
.product-photo { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; position: sticky; top: 120px; }
.product-photo img { width: 100%; height: auto; object-fit: contain; }
@media (max-width: 880px) { .product-photo { position: static; } }
.product-info .code-chip {
	display: inline-block; background: var(--burgundy); color: var(--cream);
	font-size: 12.5px; font-weight: 700; letter-spacing: 0.1em; padding: 5px 14px; border-radius: 999px; margin-bottom: 16px;
}
.product-info h1 { font-size: clamp(28px, 3.4vw, 40px); margin-bottom: 6px; }
.product-info .zh-name { font-family: var(--f-zh); font-size: 22px; color: var(--burgundy); font-weight: 600; letter-spacing: 0.06em; margin-bottom: 24px; }
.spec-table { width: 100%; border-collapse: collapse; margin: 0 0 28px; font-size: 15px; }
.spec-table th, .spec-table td { text-align: left; padding: 12px 2px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.spec-table th { width: 40%; color: var(--ink-soft); font-weight: 500; }
.spec-table td { font-weight: 600; }
.enquiry-card { background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 28px; }
.enquiry-card h3 { font-size: 19px; margin-bottom: 4px; }
.enquiry-card p { margin: 0 0 18px; font-size: 14.5px; color: var(--ink-soft); }
.enquiry-card .btn { margin-right: 10px; margin-bottom: 10px; }
.product-desc { margin: 30px 0 0; color: var(--ink-soft); }

.related { background: var(--cream); padding: 64px 0 88px; border-top: 1px solid var(--line-soft); }

/* ============================================================ wholesale band */
.band {
	position: relative; color: var(--cream); text-align: center;
	background: var(--burgundy-ink) url('assets/img/band-dumpling.jpg') center / cover no-repeat;
}
.band::before { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(48, 13, 17, 0.68), rgba(48, 13, 17, 0.68)); }
.band .wrap { position: relative; padding-top: 96px; padding-bottom: 96px; }
.band h2 { color: var(--cream); font-size: clamp(28px, 3.6vw, 42px); margin-bottom: 8px; }
.band .zh-sub { font-family: var(--f-zh); color: var(--gold-soft); font-size: 19px; letter-spacing: 0.18em; font-weight: 600; }
.band p.lead { color: rgba(246, 240, 227, 0.85); max-width: 620px; margin: 16px auto 34px; }
.band__cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ============================================================ about split */
.about-split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
@media (max-width: 880px) { .about-split { grid-template-columns: 1fr; gap: 36px; } }
.about-split__media { position: relative; }
.about-split__media img { border-radius: var(--radius); box-shadow: var(--shadow); }
.about-split__media::before {
	content: ""; position: absolute; inset: 24px -24px -24px 24px;
	border: 1.5px solid var(--gold); border-radius: var(--radius); z-index: -1;
}
.about-split h2 { font-size: clamp(28px, 3.4vw, 38px); }
.about-split p { color: var(--ink-soft); }
.stat-row { display: flex; gap: 34px; margin-top: 30px; flex-wrap: wrap; }
.stat { font-size: 13.5px; color: var(--ink-soft); }
.stat strong { display: block; font-family: var(--f-display); font-size: 30px; font-weight: 700; color: var(--burgundy); line-height: 1.1; }

/* ============================================================ generic pages */
.entry { padding: 56px 0 88px; }
.entry-content { max-width: 760px; }
.entry-content h2 { font-size: 26px; margin-top: 1.6em; }
.entry-content h2 .zh { color: var(--burgundy); font-size: 0.8em; margin-left: 10px; }
.entry-content p { margin: 0 0 1.2em; }
.entry-content ul { padding-left: 1.2em; }
.entry-content a { font-weight: 600; }
.entry-content img { border-radius: var(--radius); }
.entry-content .info-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 26px 0; }
@media (max-width: 560px) { .entry-content .info-cards { grid-template-columns: 1fr; } }
.entry-content .info-card a, .entry-content .info-card p { word-break: break-word; }
.entry-content .info-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; }
.entry-content .info-card h3 { font-size: 15px; margin: 0 0 6px; color: var(--gold); text-transform: uppercase; letter-spacing: 0.14em; font-family: var(--f-body); font-weight: 700; }
.entry-content .info-card p { margin: 0; font-weight: 600; font-size: 16.5px; }
.entry-content .info-card p .sub { display: block; font-weight: 400; font-size: 13.5px; color: var(--ink-soft); margin-top: 4px; }

/* two-photo gallery row used on About */
.photo-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin: 34px 0; max-width: none; }
.photo-row img { border-radius: var(--radius); width: 100%; height: 300px; object-fit: cover; }
@media (max-width: 700px) { .photo-row { grid-template-columns: 1fr; } }

/* ============================================================ footer */
.site-footer { background: var(--burgundy-ink); color: rgba(246, 240, 227, 0.82); font-size: 14.5px; }
.site-footer a { color: rgba(246, 240, 227, 0.82); }
.site-footer a:hover { color: var(--gold-soft); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; padding-top: 64px; padding-bottom: 48px; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr; gap: 32px; } }
.footer-brand__zh { font-family: var(--f-zh); font-size: 30px; font-weight: 700; color: var(--cream); letter-spacing: 0.16em; }
.footer-brand__en { font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold-soft); font-weight: 600; margin-top: 4px; }
.footer-brand p { margin: 16px 0 0; max-width: 40ch; color: rgba(246, 240, 227, 0.66); }
.site-footer h4 { color: var(--cream); font-family: var(--f-body); font-size: 13px; letter-spacing: 0.18em; text-transform: uppercase; margin-bottom: 16px; }
.footer-list { list-style: none; margin: 0; padding: 0; }
.footer-list li { margin-bottom: 10px; }
.footer-bottom { border-top: 1px solid rgba(246, 240, 227, 0.14); padding: 20px 0; font-size: 13px; color: rgba(246, 240, 227, 0.5); }
.footer-bottom .wrap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* ============================================================ utilities */
.mt-0 { margin-top: 0; }
.center { text-align: center; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
