/* Pha Chế Xanh – Công thức pha chế */
.pcx-ct {
	--pcx-green: #1f6f3a;
	--pcx-green-2: #2f8f4e;
	--pcx-leaf: #e8f3ea;
	--pcx-cream: #f8f6f0;
	--pcx-ink: #1d2a22;
	--pcx-muted: #5d6b62;
	--pcx-line: #e3e7e1;
	--pcx-radius: 16px;
	--pcx-shadow: 0 1px 2px rgba(20, 40, 25, .06), 0 8px 24px rgba(20, 40, 25, .06);
	color: var(--pcx-ink);
	line-height: 1.6;
}
.pcx-ct *, .pcx-ct *::before, .pcx-ct *::after { box-sizing: border-box; }
.pcx-ct a { color: inherit; }
.pcx-ct h1, .pcx-ct h2, .pcx-ct h3 { color: var(--pcx-ink); margin: 0; line-height: 1.25; }
.pcx-ct .screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.pcx-wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Nút */
.pcx-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	background: var(--pcx-green); color: #fff !important; border: 1px solid var(--pcx-green);
	border-radius: 999px; padding: 10px 20px; font-weight: 600; font-size: 15px; line-height: 1.2;
	text-decoration: none; cursor: pointer; transition: background .15s, transform .15s; font-family: inherit;
}
.pcx-btn:hover { background: var(--pcx-green-2); }
.pcx-btn:active { transform: translateY(1px); }
.pcx-btn:focus-visible { outline: 3px solid #9bd3ab; outline-offset: 2px; }
.pcx-btn--ghost { background: #fff; color: var(--pcx-green) !important; }
.pcx-btn--ghost:hover { background: var(--pcx-leaf); }
.pcx-btn--lg { padding: 13px 24px; font-size: 16px; }
.pcx-btn--block { width: 100%; margin-top: 14px; }

.pcx-eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: 12px; font-weight: 700; color: var(--pcx-green); margin: 0 0 8px; }

/* Biểu tượng (vẽ bằng CSS, không cần font icon) */
.pcx-ico { display: inline-block; width: 14px; height: 14px; vertical-align: -2px; margin-right: 4px; background: currentColor; -webkit-mask: var(--i) center/contain no-repeat; mask: var(--i) center/contain no-repeat; }
.pcx-ico--time { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20zm0 18a8 8 0 1 1 0-16 8 8 0 0 1 0 16zm1-13h-2v6l5 3 1-1.7-4-2.3z'/%3E%3C/svg%3E"); }
.pcx-ico--level { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 20h3v-6H4zm6.5 0h3V9h-3zM17 20h3V4h-3z'/%3E%3C/svg%3E"); }
.pcx-ico--print { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M19 8H5a3 3 0 0 0-3 3v6h4v4h12v-4h4v-6a3 3 0 0 0-3-3zm-3 11H8v-5h8zm3-7a1 1 0 1 1 0-2 1 1 0 0 1 0 2zM18 3H6v4h12z'/%3E%3C/svg%3E"); width: 16px; height: 16px; }

/* ---------- Trang danh sách ---------- */
.pcx-hero { background: var(--pcx-cream); padding: 56px 0 44px; text-align: center; margin-bottom: 28px; }
.pcx-hero__title { font-size: clamp(28px, 4vw, 44px); font-weight: 800; }
.pcx-hero__intro { max-width: 680px; margin: 12px auto 0; color: var(--pcx-muted); font-size: 17px; }

.pcx-filters { margin-bottom: 24px; }
.pcx-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.pcx-chip { position: relative; cursor: pointer; margin: 0; }
.pcx-chip input { position: absolute; opacity: 0; pointer-events: none; }
.pcx-chip span { display: inline-block; padding: 8px 16px; border: 1px solid var(--pcx-line); border-radius: 999px; background: #fff; font-size: 14px; font-weight: 600; transition: all .15s; }
.pcx-chip:hover span { border-color: var(--pcx-green); color: var(--pcx-green); }
.pcx-chip input:checked + span { background: var(--pcx-green); border-color: var(--pcx-green); color: #fff; }
.pcx-chip input:focus-visible + span { outline: 3px solid #9bd3ab; outline-offset: 2px; }

.pcx-filters__row { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; padding: 16px; background: #fff; border: 1px solid var(--pcx-line); border-radius: var(--pcx-radius); }
.pcx-field { display: flex; flex-direction: column; gap: 4px; margin: 0; flex: 1 1 160px; min-width: 0; }
.pcx-field--search { flex: 2 1 260px; }
.pcx-field__label { font-size: 12px; font-weight: 700; color: var(--pcx-muted); text-transform: uppercase; letter-spacing: .04em; }
.pcx-field input, .pcx-field select {
	width: 100%; height: 42px; padding: 0 12px; border: 1px solid var(--pcx-line); border-radius: 10px;
	background: #fff; font: inherit; font-size: 15px; color: var(--pcx-ink); margin: 0; box-shadow: none;
}
.pcx-field input:focus, .pcx-field select:focus { border-color: var(--pcx-green); outline: none; box-shadow: 0 0 0 3px rgba(31, 111, 58, .15); }
.pcx-filters__actions { display: flex; align-items: center; gap: 12px; }
.pcx-filters__actions .pcx-btn { height: 42px; }
.pcx-filters.is-live .pcx-filters__actions .pcx-btn { display: none; }
.pcx-reset { font-size: 14px; color: var(--pcx-muted) !important; white-space: nowrap; }

.pcx-results { transition: opacity .2s; }
.pcx-results.is-loading { opacity: .45; pointer-events: none; }
.pcx-count { color: var(--pcx-muted); font-size: 14px; margin: 0 0 12px; }

.pcx-grid { display: grid; grid-template-columns: repeat(var(--pcx-cols, 4), minmax(0, 1fr)); gap: 24px; }
@media (max-width: 1024px) { .pcx-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .pcx-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; } }

.pcx-card { margin: 0; }
.pcx-card__link { display: flex; flex-direction: column; height: 100%; text-decoration: none !important; background: #fff; border-radius: var(--pcx-radius); overflow: hidden; box-shadow: var(--pcx-shadow); transition: transform .2s, box-shadow .2s; }
.pcx-card__link:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(20, 40, 25, .08), 0 16px 32px rgba(20, 40, 25, .1); }
.pcx-card__link:focus-visible { outline: 3px solid #9bd3ab; outline-offset: 3px; }
.pcx-card__media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--pcx-leaf); }
.pcx-card__img { width: 100% !important; height: 100% !important; object-fit: cover; display: block; transition: transform .4s; max-width: none; }
.pcx-card__link:hover .pcx-card__img { transform: scale(1.05); }
.pcx-card__img--empty { width: 100%; height: 100%; background: linear-gradient(135deg, var(--pcx-leaf), #cfe5d4); }
.pcx-card__tag { position: absolute; left: 12px; top: 12px; background: rgba(255, 255, 255, .92); color: var(--pcx-green); font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.pcx-card__body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.pcx-card__title { font-size: 17px; font-weight: 700; }
.pcx-card__meta { margin: 0; font-size: 13px; color: var(--pcx-muted); display: flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; }
.pcx-dot { opacity: .5; }
.pcx-card__more { margin-top: auto; padding-top: 4px; font-size: 14px; font-weight: 700; color: var(--pcx-green); }
@media (max-width: 760px) {
	.pcx-card__title { font-size: 15px; }
	.pcx-card__body { padding: 10px 12px 12px; }
	.pcx-card__more { display: none; }
}

.pcx-empty { text-align: center; padding: 48px 16px; background: var(--pcx-cream); border-radius: var(--pcx-radius); }
.pcx-more { text-align: center; margin: 24px 0 0; }

.pcx-pagination { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin: 36px 0 56px; }
.pcx-pagination .page-numbers { min-width: 40px; height: 40px; padding: 0 10px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; border: 1px solid var(--pcx-line); text-decoration: none; font-weight: 600; background: #fff; }
.pcx-pagination .page-numbers.current { background: var(--pcx-green); border-color: var(--pcx-green); color: #fff; }
.pcx-pagination a.page-numbers:hover { border-color: var(--pcx-green); color: var(--pcx-green); }
.pcx-pagination .dots { border: 0; background: none; }

/* ---------- Trang chi tiết ---------- */
.pcx-single { padding-bottom: 8px; }
.pcx-breadcrumb { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; color: var(--pcx-muted); padding: 20px 0; }
.pcx-breadcrumb a { text-decoration: none; }
.pcx-breadcrumb a:hover { color: var(--pcx-green); text-decoration: underline; }

.pcx-intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; margin-bottom: 40px; }
.pcx-intro__media { border-radius: 24px; overflow: hidden; aspect-ratio: 4 / 5; background: var(--pcx-leaf); box-shadow: var(--pcx-shadow); }
.pcx-intro__img { width: 100% !important; height: 100% !important; object-fit: cover; display: block; max-width: none; }
.pcx-intro__title { font-size: clamp(30px, 4.2vw, 48px); font-weight: 800; letter-spacing: -.01em; }
.pcx-intro__desc { color: var(--pcx-muted); font-size: 17px; margin-top: 14px; }
.pcx-intro__desc p { margin: 0; }

.pcx-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 0; margin: 24px 0 0; border: 1px solid var(--pcx-line); border-radius: 14px; overflow: hidden; background: #fff; }
.pcx-facts > div { padding: 12px 16px; border-right: 1px solid var(--pcx-line); }
.pcx-facts > div:last-child { border-right: 0; }
.pcx-facts dt { font-size: 12px; font-weight: 700; color: var(--pcx-muted); text-transform: uppercase; letter-spacing: .04em; }
.pcx-facts dd { margin: 2px 0 0; font-size: 17px; font-weight: 700; color: var(--pcx-green); }

.pcx-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 16px 0 0; }
.pcx-tag { font-size: 13px; padding: 4px 12px; border-radius: 999px; background: var(--pcx-leaf); color: var(--pcx-green) !important; text-decoration: none; font-weight: 600; }
.pcx-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.pcx-actions form { margin: 0; }

.pcx-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; align-items: start; }
.pcx-layout.has-aside { grid-template-columns: minmax(0, 1fr) 340px; }
.pcx-layout__main { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.pcx-layout__aside { position: sticky; top: 24px; }

.pcx-box { background: #fff; border: 1px solid var(--pcx-line); border-radius: var(--pcx-radius); padding: 24px; }
.pcx-box h2 { font-size: 22px; font-weight: 800; margin-bottom: 16px; }
.pcx-box__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; }
.pcx-box__head h2 { margin: 0; }

.pcx-scaler { display: inline-flex; align-items: center; gap: 6px; background: var(--pcx-cream); padding: 6px 10px; border-radius: 999px; font-size: 14px; }
.pcx-scaler__label { font-weight: 700; margin-right: 4px; }
.pcx-scaler__btn { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--pcx-line); background: #fff; font-size: 18px; line-height: 1; cursor: pointer; color: var(--pcx-green); padding: 0; }
.pcx-scaler__btn:hover { border-color: var(--pcx-green); }
.pcx-scaler__input { width: 48px !important; height: 30px; text-align: center; border: 1px solid var(--pcx-line); border-radius: 8px; font: inherit; font-weight: 700; padding: 0; margin: 0; -moz-appearance: textfield; }
.pcx-scaler__input::-webkit-outer-spin-button, .pcx-scaler__input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.pcx-scaler__yield { color: var(--pcx-muted); margin-left: 4px; }

.pcx-table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 0; border: 0; }
.pcx-table th, .pcx-table td { padding: 12px 8px; border: 0; border-bottom: 1px solid var(--pcx-line); text-align: left; vertical-align: top; background: none; }
.pcx-table thead th { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--pcx-muted); padding-top: 0; }
.pcx-table .pcx-num { text-align: right; white-space: nowrap; }
.pcx-table tfoot th, .pcx-table tfoot td { border-bottom: 0; font-weight: 700; }
.pcx-table tfoot .pcx-muted th, .pcx-table tfoot .pcx-muted td { color: var(--pcx-muted); font-weight: 600; padding-top: 0; }
.pcx-table tr.is-product td:first-child { font-weight: 600; }
.pcx-ing-link { color: var(--pcx-green) !important; text-decoration: none; border-bottom: 1px dashed currentColor; }
.pcx-badge { display: inline-block; margin-left: 6px; font-size: 11px; font-weight: 700; padding: 1px 8px; border-radius: 999px; background: var(--pcx-leaf); color: var(--pcx-green); vertical-align: 1px; }
.pcx-note { display: block; color: var(--pcx-muted); font-size: 13px; font-weight: 400; }

.pcx-steps__list { list-style: none; margin: 0; padding: 0; counter-reset: pcx-step; display: flex; flex-direction: column; gap: 18px; }
.pcx-step { counter-increment: pcx-step; position: relative; padding-left: 52px; margin: 0; }
.pcx-step::before { content: counter(pcx-step); position: absolute; left: 0; top: 0; width: 36px; height: 36px; border-radius: 50%; background: var(--pcx-green); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.pcx-step__text p { margin: 6px 0 0; }
.pcx-step__img { margin-top: 10px; border-radius: 12px; width: 100%; max-width: 320px; height: auto; max-height: 260px; object-fit: cover; display: block; }

.pcx-tips { background: var(--pcx-cream); border-color: transparent; }
.pcx-tips p:last-child { margin-bottom: 0; }

.pcx-products h2 { font-size: 18px; }
.pcx-products__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.pcx-prod { display: grid; grid-template-columns: 72px 1fr; gap: 12px; align-items: center; margin: 0; }
.pcx-prod__media { display: block; width: 72px; height: 72px; border-radius: 12px; overflow: hidden; background: var(--pcx-cream); }
.pcx-prod__media img { width: 100% !important; height: 100% !important; object-fit: cover; display: block; margin: 0 !important; }
.pcx-prod__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pcx-prod__name { font-weight: 600; font-size: 14px; line-height: 1.35; text-decoration: none; }
.pcx-prod__name:hover { color: var(--pcx-green); }
.pcx-prod__price { font-size: 14px; color: var(--pcx-green); font-weight: 700; }
.pcx-prod__price del { color: var(--pcx-muted); font-weight: 400; }
.pcx-prod__buy { font-size: 13px; font-weight: 700; color: var(--pcx-green) !important; text-decoration: none; align-self: flex-start; }
.pcx-prod__buy:hover { text-decoration: underline; }
.pcx-prod__buy.added { display: none; }
.pcx-prod .added_to_cart { font-size: 13px; font-weight: 700; color: var(--pcx-green); }

.pcx-content { font-size: 16px; }

.pcx-related { background: var(--pcx-cream); padding: 48px 0 56px; margin-top: 56px; }
.pcx-section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 20px; }
.pcx-section-head h2 { font-size: 26px; font-weight: 800; }
.pcx-section-head a { font-weight: 700; color: var(--pcx-green); text-decoration: none; white-space: nowrap; }
.pcx-product-recipes { clear: both; padding: 32px 0; }

@media (max-width: 960px) {
	.pcx-intro { grid-template-columns: 1fr; gap: 24px; }
	.pcx-intro__media { aspect-ratio: 4 / 3; }
	.pcx-layout.has-aside { grid-template-columns: 1fr; }
	.pcx-layout__aside { position: static; }
}
@media (max-width: 560px) {
	.pcx-box { padding: 18px 14px; }
	.pcx-facts { grid-template-columns: 1fr 1fr; }
	.pcx-facts > div { border-bottom: 1px solid var(--pcx-line); }
	.pcx-actions .pcx-btn, .pcx-actions form { width: 100%; }
	.pcx-table { font-size: 14px; }
	.pcx-hero { padding: 36px 0 28px; }
}

/* ---------- In / Lưu PDF ---------- */
@media print {
	@page { margin: 14mm; }
	body * { visibility: hidden !important; }
	.pcx-print-area, .pcx-print-area * { visibility: visible !important; }
	.pcx-print-area { position: absolute; left: 0; top: 0; width: 100%; max-width: none; padding: 0; }
	.pcx-no-print, .pcx-breadcrumb, .pcx-scaler { display: none !important; }
	.pcx-intro { grid-template-columns: 38% 1fr; gap: 24px; margin-bottom: 16px; }
	.pcx-intro__media { box-shadow: none; aspect-ratio: 1; }
	.pcx-layout.has-aside { grid-template-columns: 1fr; }
	.pcx-box { border: 0; padding: 0; break-inside: avoid; }
	.pcx-step { break-inside: avoid; }
	.pcx-step::before { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
	.pcx-ct a { text-decoration: none; border: 0; }
}
