/* Pha Chế XANH – Bán hàng. Đổi màu chủ đạo bằng biến --pcx-green trong Giao diện › Tuỳ biến › CSS bổ sung. */
:root {
	--pcx-green: #1f7a3d;
	--pcx-green-dark: #155c2d;
	--pcx-green-soft: #e9f5ec;
	--pcx-ink: #1d2327;
	--pcx-muted: #5f6b66;
	--pcx-line: #dfe5e1;
	--pcx-warn: #b45309;
	--pcx-err: #b42318;
	--pcx-radius: 10px;
}

/* ---------- Nút ---------- */
.pcx-btn { display: inline-flex; align-items: center; justify-content: center; gap: .4em; min-height: 44px; padding: .6em 1.1em; border-radius: var(--pcx-radius); font-weight: 600; line-height: 1.2; text-decoration: none; cursor: pointer; }
.pcx-btn--quote, .pcx-btn--primary { background: var(--pcx-green) !important; color: #fff !important; border: 1px solid var(--pcx-green) !important; }
.pcx-btn--quote:hover, .pcx-btn--primary:hover { background: var(--pcx-green-dark) !important; }
.pcx-btn--ghost { background: #fff !important; color: var(--pcx-green) !important; border: 1px solid var(--pcx-green) !important; }
.pcx-btn--ghost:hover { background: var(--pcx-green-soft) !important; }
.pcx-btn:focus-visible, .pcx-copy:focus-visible, .pcx-modal__close:focus-visible { outline: 3px solid #f2b705; outline-offset: 2px; }
form.cart .pcx-btn--ghost { margin-left: .5em; }

/* ---------- Giá ---------- */
.pcx-ref-label { font-size: .8em; font-weight: 500; color: var(--pcx-muted); }
.pcx-dealer-badge { display: inline-block; margin-left: .35em; padding: .1em .5em; border-radius: 99px; background: #fff4e5; color: var(--pcx-warn); font-size: .7em; font-weight: 700; vertical-align: middle; }
.pcx-from { display: block; margin-top: .2em; font-size: .85em; color: var(--pcx-green); }
.pcx-tiers-wrap { margin: .8em 0 1.2em; }
.pcx-tiers-title { margin: 0 0 .4em; font-weight: 700; color: var(--pcx-green); }
.pcx-tiers { width: 100%; max-width: 420px; border-collapse: collapse; font-size: .92em; }
.pcx-tiers th, .pcx-tiers td { padding: .45em .7em; border: 1px solid var(--pcx-line); text-align: left; }
.pcx-tiers th { background: #f6f8f7; font-weight: 600; }
.pcx-tiers__row.is-active td { background: var(--pcx-green-soft); }
.pcx-tiers__row.is-active td:first-child { box-shadow: inset 3px 0 0 var(--pcx-green); }
.pcx-dealer-login, .pcx-dealer-note { margin: .4em 0 0; font-size: .88em; color: var(--pcx-muted); }

/* ---------- Hộp báo giá trên trang sản phẩm ---------- */
.pcx-quote-box { margin: 1em 0 1.4em; padding: 1em; border: 1px solid var(--pcx-line); border-radius: var(--pcx-radius); background: #fbfdfc; }
.pcx-quote-qty label { display: inline-flex; align-items: center; gap: .6em; font-weight: 600; }
.pcx-quote-qty input { width: 80px; min-height: 44px; }
.pcx-quote-actions { display: flex; flex-wrap: wrap; gap: .5em; margin-top: .8em; }
.pcx-quote-note { margin: .8em 0 0; font-size: .9em; color: var(--pcx-muted); }

/* ---------- Form ---------- */
.pcx-form { margin: 0; }
.pcx-form__title { margin: 0 0 .8em; }
.pcx-form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: .8em 1em; }
.pcx-form--compact .pcx-form__grid { grid-template-columns: 1fr; }
.pcx-field { display: flex; flex-direction: column; gap: .3em; min-width: 0; }
.pcx-field--full { grid-column: 1 / -1; }
.pcx-field__label { font-weight: 600; font-size: .92em; }
.pcx-req { color: var(--pcx-err); }
.pcx-field input, .pcx-field select, .pcx-field textarea { width: 100%; min-height: 44px; padding: .55em .7em; border: 1px solid #c7d0cb; border-radius: 8px; font-size: 16px; background: #fff; box-sizing: border-box; }
.pcx-field textarea { min-height: 96px; }
.pcx-field input:focus, .pcx-field select:focus, .pcx-field textarea:focus { border-color: var(--pcx-green); outline: 2px solid var(--pcx-green-soft); }
.pcx-field .is-invalid { border-color: var(--pcx-err); }
.pcx-field__error { color: var(--pcx-err); font-size: .85em; min-height: 0; }
.pcx-field__help { color: var(--pcx-muted); font-size: .82em; }
.pcx-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.pcx-form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: .8em; margin-top: 1em; }
.pcx-form__msg { margin: 0; font-size: .92em; }
.pcx-form__msg.is-ok { color: var(--pcx-green); font-weight: 600; }
.pcx-form__msg.is-err { color: var(--pcx-err); }
.pcx-form__privacy { margin: .6em 0 0; font-size: .8em; color: var(--pcx-muted); }
.pcx-qlist { list-style: none; margin: 0; padding: 0; border: 1px solid var(--pcx-line); border-radius: 8px; }
.pcx-qlist li { display: flex; align-items: center; gap: .6em; padding: .5em .7em; border-top: 1px solid var(--pcx-line); }
.pcx-qlist li:first-child { border-top: 0; }
.pcx-qlist__name { flex: 1; min-width: 0; }
.pcx-qlist__qty { width: 76px !important; min-height: 40px !important; }
.pcx-qlist__del { width: 40px; height: 40px; border: 0; background: transparent; font-size: 22px; line-height: 1; color: var(--pcx-muted); cursor: pointer; }
@media (max-width: 600px) { .pcx-form__grid { grid-template-columns: 1fr; } }

/* ---------- Hộp thoại ---------- */
.pcx-modal { position: fixed; inset: 0; z-index: 99999; display: flex; align-items: center; justify-content: center; padding: 16px; }
.pcx-modal[hidden] { display: none; }
.pcx-modal__backdrop { position: absolute; inset: 0; background: rgba(15, 23, 20, .55); }
.pcx-modal__dialog { position: relative; width: 100%; max-width: 640px; max-height: calc(100vh - 32px); overflow: auto; padding: 24px; border-radius: 14px; background: #fff; box-shadow: 0 20px 60px rgba(0, 0, 0, .25); }
.pcx-modal__title { margin: 0 40px 1em 0; }
.pcx-modal__close { position: absolute; top: 10px; right: 10px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: #f1f4f2; font-size: 26px; line-height: 1; cursor: pointer; }
html.pcx-noscroll { overflow: hidden; }
@media (max-width: 600px) {
	.pcx-modal { align-items: flex-end; padding: 0; }
	.pcx-modal__dialog { max-height: 92vh; border-radius: 16px 16px 0 0; padding: 20px 16px calc(20px + env(safe-area-inset-bottom)); }
}

/* ---------- Giỏ báo giá ---------- */
.pcx-qcart { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 24px; align-items: start; }
.pcx-qcart__items { list-style: none; margin: 0; padding: 0; }
.pcx-qcart__items li { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--pcx-line); }
.pcx-qcart__items img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; }
.pcx-qcart__items small { display: block; color: var(--pcx-muted); }
.pcx-qcart__hint, .pcx-qcart__empty { color: var(--pcx-muted); }
.pcx-qcart__empty.is-ok { color: var(--pcx-green); font-weight: 600; }
@media (max-width: 800px) { .pcx-qcart { grid-template-columns: 1fr; } }
.pcx-qbadge { position: fixed; left: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 9990; display: inline-flex; gap: .4em; align-items: center; min-height: 44px; padding: .5em 1em; border-radius: 99px; background: #fff; color: var(--pcx-green); border: 1px solid var(--pcx-green); box-shadow: 0 6px 20px rgba(0, 0, 0, .12); font-weight: 600; text-decoration: none; }
.pcx-qbadge[hidden] { display: none; }
.pcx-toast { position: fixed; left: 50%; bottom: 24px; z-index: 100000; transform: translate(-50%, 20px); max-width: calc(100vw - 32px); padding: .7em 1.1em; border-radius: 10px; background: var(--pcx-ink); color: #fff; font-size: .92em; opacity: 0; pointer-events: none; transition: .2s; }
.pcx-toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Thanh toán QR ---------- */
.pcx-pay { margin: 1.5em 0; padding: 20px; border: 2px solid var(--pcx-green); border-radius: 14px; background: #fff; }
.pcx-pay__title { margin: 0 0 .8em; font-size: 1.25em; }
.pcx-pay__grid { display: grid; grid-template-columns: 220px 1fr; gap: 20px; align-items: start; }
.pcx-pay__qr { text-align: center; }
.pcx-pay__qr svg { display: block; width: 220px; height: 220px; margin: 0 auto 6px; border: 1px solid var(--pcx-line); border-radius: 10px; }
.pcx-pay__dl { font-size: .9em; }
.pcx-pay__info { margin: 0; }
.pcx-pay__info > div { display: grid; grid-template-columns: 120px 1fr; gap: 8px; padding: 8px 0; border-bottom: 1px dashed var(--pcx-line); }
.pcx-pay__info dt { color: var(--pcx-muted); font-weight: 500; }
.pcx-pay__info dd { margin: 0; word-break: break-word; }
.pcx-pay__amount { font-size: 1.2em; color: var(--pcx-green); }
.pcx-pay__code { font-size: 1.1em; letter-spacing: .04em; }
.pcx-copy { margin-left: .4em; padding: .2em .6em; min-height: 32px; border: 1px solid var(--pcx-line); border-radius: 6px; background: #f6f8f7; font-size: .8em; cursor: pointer; }
.pcx-pay__steps { margin: 1em 0; padding-left: 1.3em; }
.pcx-pay__done { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.pcx-pay__file { font-size: .9em; color: var(--pcx-muted); }
.pcx-pay__ok { margin: 0; padding: .8em 1em; border-radius: 8px; background: var(--pcx-green-soft); color: var(--pcx-green-dark); font-weight: 600; }
.pcx-pay__warn { color: var(--pcx-warn); }
.pcx-pay__help { margin: 1em 0 0; font-size: .9em; }
@media (max-width: 600px) {
	.pcx-pay { padding: 16px; }
	.pcx-pay__grid { grid-template-columns: 1fr; }
	.pcx-pay__info > div { grid-template-columns: 100px 1fr; }
}

/* ---------- Thanh toán / VAT ---------- */
.pcx-hidden-field { display: none !important; }
.pcx-vat { margin: 1em 0; padding: .8em 1em; border: 1px solid var(--pcx-line); border-radius: var(--pcx-radius); background: #fbfdfc; }
.pcx-vat__toggle { margin: 0 !important; }
.pcx-vat__toggle label { font-weight: 600; }
.pcx-vat__fields[hidden] { display: none; }
.pcx-vat__fields { margin-top: .6em; }
.pcx-account-dealer { margin-bottom: 1.5em; }

/* Chống giao diện (theme) ghi đè các nút nhỏ */
.pcx-modal .pcx-modal__close, .pcx-qlist .pcx-qlist__del, .pcx-copy { box-shadow: none !important; text-transform: none !important; letter-spacing: 0 !important; }
.pcx-modal .pcx-modal__close { padding: 0 !important; background: #f1f4f2 !important; color: var(--pcx-ink) !important; border: 0 !important; }
.pcx-modal .pcx-modal__close:hover { background: #e2e8e4 !important; }
.pcx-qlist .pcx-qlist__del { padding: 0 !important; background: transparent !important; color: var(--pcx-muted) !important; border: 0 !important; }
.pcx-qlist .pcx-qlist__del:hover { color: var(--pcx-err) !important; }
.pcx-copy { padding: .2em .6em !important; background: #f6f8f7 !important; color: var(--pcx-ink) !important; border: 1px solid var(--pcx-line) !important; font-size: 12px !important; }

/* ---------- Tra cứu đơn / giao hàng ---------- */
.pcx-track { max-width: 720px; }
.pcx-track-result { margin-top: 1.2em; padding: 16px; border: 1px solid var(--pcx-line); border-radius: var(--pcx-radius); background: #fff; }
.pcx-track-result h3 { margin-top: 0; }
.pcx-track-items { margin: 0 0 1em 1.2em; }
.pcx-track-ship h2 { font-size: 1.1em; margin: 1em 0 .4em; }
.pcx-timeline { list-style: none; margin: .6em 0 0; padding: 0 0 0 16px; border-left: 2px solid var(--pcx-green-soft); }
.pcx-timeline li { position: relative; margin: 0 0 .7em; padding-left: 4px; }
.pcx-timeline li::before { content: ""; position: absolute; left: -23px; top: .45em; width: 10px; height: 10px; border-radius: 50%; background: var(--pcx-line); }
.pcx-timeline li:first-child::before { background: var(--pcx-green); }
.pcx-timeline time { display: block; font-size: .82em; color: var(--pcx-muted); }

/* ---------- Chat trực tuyến ---------- */
.pcx-chat { position: fixed; right: 16px; bottom: 16px; z-index: 99990; font-size: 15px; color: var(--pcx-ink); }
.pcx-chat * { box-sizing: border-box; }
.pcx-chat__fab { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.pcx-chat[data-state="open"] .pcx-chat__fab { display: none; }
.pcx-chat__mini { width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff !important; text-decoration: none !important; box-shadow: 0 4px 12px rgba(0,0,0,.18); font-weight: 700; font-size: 13px; }
.pcx-chat__mini--zalo { background: #0068ff; }
.pcx-chat__mini--call { background: #e8590c; }
.pcx-chat__btn { position: relative; display: flex !important; align-items: center; gap: 8px; min-height: 56px; padding: 0 20px 0 16px !important; border: 0 !important; border-radius: 28px !important; background: var(--pcx-green) !important; color: #fff !important; font-weight: 600; font-size: 15px; box-shadow: 0 6px 18px rgba(0,0,0,.22); cursor: pointer; margin: 0 !important; text-transform: none !important; letter-spacing: 0 !important; }
.pcx-chat__btn:hover { background: var(--pcx-green-dark) !important; }
.pcx-chat__btn:focus-visible, .pcx-chat__close:focus-visible, .pcx-chat__send:focus-visible, .pcx-chat__chips button:focus-visible { outline: 3px solid #f2b705; outline-offset: 2px; }
.pcx-chat__badge { position: absolute; top: -4px; right: -4px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--pcx-err); color: #fff; font-size: 12px; line-height: 22px; text-align: center; }
.pcx-chat__panel { width: 370px; height: min(600px, calc(100vh - 32px)); background: #fff; border-radius: 16px; box-shadow: 0 12px 40px rgba(0,0,0,.25); display: flex; flex-direction: column; overflow: hidden; }
.pcx-chat__panel[hidden] { display: none; }
.pcx-chat__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 14px; background: var(--pcx-green); color: #fff; }
.pcx-chat__head strong { display: block; font-size: 16px; }
.pcx-chat__status { display: flex; align-items: center; gap: 6px; font-size: 12px; opacity: .95; }
.pcx-chat__status i { width: 8px; height: 8px; border-radius: 50%; background: #f2b705; }
.pcx-chat.is-online .pcx-chat__status i { background: #6ee7a0; }
.pcx-chat__status em { font-style: normal; }
.pcx-chat__close { width: 40px; height: 40px; min-height: 0 !important; padding: 0 !important; margin: 0 !important; border: 0 !important; border-radius: 50% !important; background: rgba(255,255,255,.15) !important; color: #fff !important; font-size: 24px; line-height: 1; cursor: pointer; }
.pcx-chat__body { flex: 1; overflow-y: auto; padding: 14px; background: #f5f7f6; }
.pcx-chat__msgs { display: flex; flex-direction: column; gap: 8px; }
.pcx-chat__msg { max-width: 80%; padding: 8px 12px; border-radius: 14px; background: #fff; border: 1px solid var(--pcx-line); align-self: flex-start; word-wrap: break-word; line-height: 1.45; }
.pcx-chat__msg--me { align-self: flex-end; background: var(--pcx-green); border-color: var(--pcx-green); color: #fff; }
.pcx-chat__msg--me a { color: #fff; text-decoration: underline; }
.pcx-chat__msg--sys { align-self: center; max-width: 92%; background: #fff8e6; border-color: #f5dfa6; color: #5c4400; font-size: 13px; text-align: center; }
.pcx-chat__msg img { display: block; max-width: 100%; max-height: 220px; border-radius: 8px; margin-bottom: 4px; }
.pcx-chat__msg time { display: block; margin-top: 2px; font-size: 11px; opacity: .7; }
.pcx-chat__msg time.is-err { color: #ffd7d3; opacity: 1; }
.pcx-chat__note { display: block; font-size: 12px; }
.pcx-chat__chips { display: flex; gap: 6px; flex-wrap: wrap; padding: 8px 12px 0; }
.pcx-chat__chips[hidden] { display: none; }
.pcx-chat__chips:empty { display: none; }
.pcx-chat__chips button { min-height: 36px !important; padding: 4px 12px !important; margin: 0 !important; border: 1px solid var(--pcx-green) !important; border-radius: 18px !important; background: #fff !important; color: var(--pcx-green) !important; font-size: 13px; font-weight: 500; text-transform: none !important; cursor: pointer; }
.pcx-chat__info { padding: 10px 12px; border-top: 1px solid var(--pcx-line); background: var(--pcx-green-soft); }
.pcx-chat__info p { margin: 0 0 6px; font-size: 13px; }
.pcx-chat__info-row { display: flex; gap: 6px; margin-bottom: 6px; }
.pcx-chat__info-row input { flex: 1; min-width: 0; min-height: 40px; margin: 0 !important; padding: 6px 10px; border: 1px solid var(--pcx-line); border-radius: 8px; font-size: 16px; }
.pcx-chat__info-row button { min-height: 40px !important; margin: 0 !important; padding: 0 14px !important; border-radius: 8px !important; border: 1px solid var(--pcx-green) !important; background: var(--pcx-green) !important; color: #fff !important; text-transform: none !important; }
.pcx-chat__info-row .pcx-chat__skip { background: #fff !important; color: var(--pcx-green) !important; }
.pcx-chat__err { color: var(--pcx-err); }
.pcx-chat__compose { display: flex; align-items: flex-end; gap: 6px; padding: 10px 12px; border-top: 1px solid var(--pcx-line); margin: 0 !important; }
.pcx-chat__compose textarea { flex: 1; min-height: 44px; max-height: 120px; margin: 0 !important; padding: 10px 12px; border: 1px solid var(--pcx-line); border-radius: 22px; resize: none; font-size: 16px; line-height: 1.3; box-shadow: none; }
.pcx-chat__attach, .pcx-chat__send { flex: none; width: 44px; height: 44px; min-height: 0 !important; padding: 0 !important; margin: 0 !important; display: flex !important; align-items: center; justify-content: center; border: 0 !important; border-radius: 50% !important; cursor: pointer; }
.pcx-chat__attach { color: var(--pcx-muted); background: transparent; }
.pcx-chat__send { background: var(--pcx-green) !important; color: #fff !important; }
@media (max-width: 600px) {
	.pcx-chat { right: 12px; bottom: 12px; }
	.pcx-chat__btn-label { display: none; }
	.pcx-chat__btn { width: 56px; padding: 0 !important; justify-content: center; }
	.pcx-chat[data-state="open"] { inset: 0; }
	.pcx-chat__panel { width: 100%; height: 100%; height: 100dvh; border-radius: 0; }
}
@media print { .pcx-chat { display: none; } }

/* ---------- Thẻ sản phẩm nhỏ (đã xem, yêu thích, 404) ---------- */
.pcx-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
.pcx-card { display: flex; flex-direction: column; gap: 6px; padding: 10px; border: 1px solid var(--pcx-line); border-radius: var(--pcx-radius); background: #fff; color: var(--pcx-ink) !important; text-decoration: none !important; }
.pcx-card:hover { border-color: var(--pcx-green); }
.pcx-card img { width: 100%; aspect-ratio: 1; object-fit: contain; border-radius: 6px; background: #f6f7f6; }
.pcx-card__name { font-size: 14px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pcx-card__price { font-weight: 700; color: var(--pcx-green); font-size: 14px; }
.pcx-card-wrap { position: relative; }
.pcx-card-wrap .pcx-fav { position: absolute; top: 6px; right: 6px; }
.pcx-recent { margin: 32px 0; clear: both; }
.pcx-recent h2, .pcx-404 h2, .pcx-flashsale h2, .pcx-moquan h2 { font-size: 1.35em; margin: 0 0 14px; }

/* ---------- Thanh menu dưới (điện thoại) ---------- */
.pcx-bn { display: none; }
@media (max-width: 849px) {
	.pcx-bn { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 99980; background: #fff; border-top: 1px solid var(--pcx-line); box-shadow: 0 -2px 12px rgba(0,0,0,.06); padding-bottom: env(safe-area-inset-bottom); }
	.pcx-bn a { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 56px; color: var(--pcx-muted) !important; text-decoration: none !important; font-size: 11px; line-height: 1.1; }
	.pcx-bn a[aria-current="page"] { color: var(--pcx-green) !important; font-weight: 600; }
	.pcx-bn__count { position: absolute; top: 5px; left: 50%; margin-left: 4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--pcx-err); color: #fff; font-size: 11px; line-height: 18px; text-align: center; }
	body.pcx-has-bn { padding-bottom: calc(56px + env(safe-area-inset-bottom)); }
	body.pcx-has-bn .pcx-chat { bottom: calc(68px + env(safe-area-inset-bottom)); }
	body.pcx-has-bn .pcx-chat[data-state="open"] { bottom: 0; z-index: 99995; }
	body.pcx-has-bn .pcx-stickybar { bottom: calc(56px + env(safe-area-inset-bottom)); }
	body.pcx-sticky-on .pcx-chat { bottom: calc(136px + env(safe-area-inset-bottom)); }
	body.pcx-has-bn .pcx-cmpbar { bottom: calc(56px + env(safe-area-inset-bottom)); }
	body.pcx-sticky-on .pcx-cmpbar { bottom: calc(124px + env(safe-area-inset-bottom)); }
	body.pcx-sticky-on.pcx-cmp-on .pcx-chat { bottom: calc(204px + env(safe-area-inset-bottom)); }
	body.pcx-sticky-on .pcx-chat__mini, body.pcx-cmp-on .pcx-chat__mini { display: none; }
	body.pcx-has-bn .pcx-toast { bottom: calc(76px + env(safe-area-inset-bottom)); }
	body.pcx-cmp-on .pcx-chat { bottom: calc(140px + env(safe-area-inset-bottom)); }
}

/* ---------- Tìm nhanh ---------- */
.pcx-search { position: fixed; inset: 0; z-index: 99999; background: rgba(0,0,0,.45); display: flex; justify-content: center; align-items: flex-start; padding: 8vh 12px 12px; }
.pcx-search[hidden] { display: none; }
.pcx-search__box { width: 100%; max-width: 640px; max-height: 84vh; overflow: auto; background: #fff; border-radius: 14px; box-shadow: 0 12px 40px rgba(0,0,0,.25); }
.pcx-search__box form { position: sticky; top: 0; display: flex; gap: 6px; padding: 12px; background: #fff; border-bottom: 1px solid var(--pcx-line); margin: 0; }
.pcx-search__box input[type=search] { flex: 1; min-height: 46px; margin: 0 !important; padding: 0 14px; font-size: 16px; border: 1px solid var(--pcx-line); border-radius: 23px; }
.pcx-search__close { width: 46px; height: 46px; min-height: 0 !important; padding: 0 !important; margin: 0 !important; border: 0 !important; border-radius: 50% !important; background: #f1f3f2 !important; color: var(--pcx-ink) !important; font-size: 24px; line-height: 1; }
.pcx-search__res:empty { display: none; }
.pcx-search-host { position: relative; }
.pcx-search__drop { position: absolute; left: 0; right: 0; top: 100%; z-index: 9999; min-width: 300px; max-height: 70vh; overflow: auto; margin-top: 4px; background: #fff; border: 1px solid var(--pcx-line); border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,.15); text-align: left; }
.pcx-search__res ul, .pcx-search__drop ul { list-style: none; margin: 0; padding: 4px 0; }
.pcx-search__res li, .pcx-search__drop li { margin: 0; }
.pcx-search__res li a, .pcx-search__drop li a { display: flex; gap: 10px; align-items: center; padding: 8px 12px; color: var(--pcx-ink) !important; text-decoration: none !important; }
.pcx-search__res li a:hover, .pcx-search__res li a:focus, .pcx-search__drop li a:hover, .pcx-search__drop li a:focus { background: var(--pcx-green-soft); outline: none; }
.pcx-search__res img, .pcx-search__drop img { width: 48px; height: 48px; object-fit: contain; border-radius: 6px; background: #f6f7f6; flex: none; }
.pcx-search__res b, .pcx-search__drop b { display: block; font-weight: 500; font-size: 14px; line-height: 1.3; }
.pcx-search__res small, .pcx-search__drop small { color: var(--pcx-green); font-weight: 600; }
.pcx-search__cats { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 12px 4px; }
.pcx-search__cats a { padding: 4px 10px; border-radius: 14px; background: var(--pcx-green-soft); color: var(--pcx-green) !important; font-size: 13px; text-decoration: none !important; }
.pcx-search__cats small { color: var(--pcx-muted); }
.pcx-search__all { display: block; padding: 10px 12px; border-top: 1px solid var(--pcx-line); text-align: center; font-weight: 600; color: var(--pcx-green) !important; }
.pcx-search__none { padding: 14px 12px; margin: 0; color: var(--pcx-muted); }
.pcx-search-inline { display: flex; gap: 8px; max-width: 560px; margin: 0 0 20px; }
.pcx-search-inline input { flex: 1; min-height: 44px; margin: 0 !important; font-size: 16px; }

/* ---------- Thanh mua dính ---------- */
.pcx-stickybar { display: none; }
@media (max-width: 849px) {
	.pcx-stickybar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 99970; display: flex; align-items: center; gap: 10px; padding: 8px 12px; background: #fff; border-top: 1px solid var(--pcx-line); box-shadow: 0 -4px 14px rgba(0,0,0,.08); }
	.pcx-stickybar[hidden] { display: none; }
	.pcx-stickybar__info { flex: 1; min-width: 0; display: flex; flex-direction: column; font-size: 13px; }
	.pcx-stickybar__info strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
	.pcx-stickybar__info span { color: var(--pcx-green); font-weight: 700; }
	.pcx-stickybar__info .pcx-price-prefix { display: none; }
	.pcx-stickybar__btns { display: flex; gap: 6px; }
	.pcx-stickybar .pcx-btn { min-height: 44px; padding: .5em .9em; font-size: 14px; margin: 0; }
}

/* ---------- Thanh miễn phí ship ---------- */
.pcx-freeship { margin: 0 0 16px; padding: 10px 12px; border: 1px dashed var(--pcx-green); border-radius: var(--pcx-radius); background: var(--pcx-green-soft); font-size: 14px; }
.pcx-freeship[hidden] { display: none; }
.pcx-freeship p { margin: 0 0 6px; }
.pcx-freeship__bar { height: 8px; border-radius: 4px; background: #fff; overflow: hidden; }
.pcx-freeship__bar i { display: block; height: 100%; background: var(--pcx-green); border-radius: 4px; transition: width .4s; }
.widget_shopping_cart .pcx-freeship { margin: 10px 0; }

/* ---------- Yêu thích + So sánh ---------- */
.pcx-tools { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.pcx-tools--loop { justify-content: center; margin: 6px 0 0; }
.pcx-fav, .pcx-cmp { display: inline-flex !important; align-items: center; gap: 6px; min-height: 40px !important; padding: 0 12px !important; margin: 0 !important; border: 1px solid var(--pcx-line) !important; border-radius: 20px !important; background: #fff !important; color: var(--pcx-ink) !important; font-size: 13px; font-weight: 500; text-transform: none !important; letter-spacing: 0 !important; cursor: pointer; line-height: 1; }
.pcx-fav svg path { fill: none; stroke: currentColor; stroke-width: 2; }
.pcx-fav.is-on { color: #d63638 !important; border-color: #f3b4b4 !important; }
.pcx-fav.is-on svg path { fill: currentColor; }
.pcx-cmp.is-on { color: var(--pcx-green) !important; border-color: var(--pcx-green) !important; background: var(--pcx-green-soft) !important; }
.pcx-tools--loop .pcx-fav { width: 40px; padding: 0 !important; justify-content: center; }
.pcx-cmpbar { position: fixed; left: 50%; transform: translateX(-50%); bottom: 12px; z-index: 99975; display: flex; align-items: center; gap: 10px; width: min(720px, calc(100% - 24px)); padding: 8px 10px; background: #fff; border: 1px solid var(--pcx-line); border-radius: 14px; box-shadow: 0 8px 30px rgba(0,0,0,.18); }
.pcx-cmpbar[hidden] { display: none; }
.pcx-cmpbar__items { flex: 1; display: flex; gap: 6px; min-width: 0; overflow-x: auto; }
.pcx-cmpbar__item, .pcx-cmpbar__slot { position: relative; flex: none; display: flex; align-items: center; gap: 6px; max-width: 190px; padding: 4px 26px 4px 4px; border: 1px solid var(--pcx-line); border-radius: 10px; font-size: 12px; }
.pcx-cmpbar__slot { padding: 4px 10px; border-style: dashed; color: var(--pcx-muted); min-height: 44px; }
.pcx-cmpbar__item img { width: 36px; height: 36px; object-fit: contain; }
.pcx-cmpbar__item em { font-style: normal; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pcx-cmpbar__item button { position: absolute; right: 2px; top: 50%; transform: translateY(-50%); width: 24px; height: 24px; min-height: 0 !important; padding: 0 !important; margin: 0 !important; border: 0 !important; background: transparent !important; color: var(--pcx-muted) !important; font-size: 18px; line-height: 1; }
.pcx-cmpbar .pcx-btn { flex: none; margin: 0; }
.pcx-cmpbar .pcx-btn[aria-disabled] { opacity: .55; }
@media (max-width: 600px) { .pcx-cmpbar { bottom: 8px; } .pcx-cmpbar__item em, .pcx-cmpbar__slot { display: none; } .pcx-cmpbar__item { padding-right: 24px; } }
.pcx-specs { width: 100%; border-collapse: collapse; }
.pcx-specs th, .pcx-specs td { padding: 9px 12px; border-bottom: 1px solid var(--pcx-line); text-align: left; vertical-align: top; }
.pcx-specs th { width: 40%; font-weight: 600; background: #f7f9f8; }
.pcx-compare__scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.pcx-compare__table { width: 100%; min-width: 560px; border-collapse: collapse; table-layout: fixed; }
.pcx-compare__table th, .pcx-compare__table td { padding: 10px; border: 1px solid var(--pcx-line); vertical-align: top; text-align: left; font-size: 14px; }
.pcx-compare__table tbody th { background: #f7f9f8; width: 24%; }
.pcx-compare__table thead th { background: #fff; position: sticky; top: 0; }
.pcx-compare__table thead a { display: flex; flex-direction: column; gap: 6px; color: var(--pcx-ink) !important; text-decoration: none !important; }
.pcx-compare__table thead img { width: 100%; max-width: 140px; aspect-ratio: 1; object-fit: contain; }
.pcx-compare__table thead label { font-weight: 400; font-size: 13px; }
.pcx-compare__price td { color: var(--pcx-green); font-weight: 700; }
.pcx-compare__table td { background: #fff; }
.pcx-compare__table tr:not(.is-same) td { background: #fffdf3; }
.pcx-compare.only-diff tr.is-same { display: none; }
@media (max-width: 600px) { .pcx-compare__table { min-width: 0; } .pcx-compare__table th, .pcx-compare__table td { padding: 8px 6px; font-size: 13px; } .pcx-compare__table tbody th, .pcx-compare__table thead th:first-child { width: 84px; } }
.pcx-compare__empty, .pcx-favs__empty { padding: 24px; text-align: center; color: var(--pcx-muted); border: 1px dashed var(--pcx-line); border-radius: var(--pcx-radius); }
.pcx-favs__note { color: var(--pcx-muted); font-size: 14px; }

/* ---------- Báo có hàng ---------- */
.pcx-wait { margin: 14px 0; padding: 12px; border: 1px solid var(--pcx-line); border-radius: var(--pcx-radius); background: #fafbfa; }
.pcx-wait p { margin: 0 0 8px; }
.pcx-wait__row { display: flex; gap: 8px; }
.pcx-wait__row[hidden] { display: none; }
.pcx-wait__row input[type=email] { flex: 1; min-width: 0; min-height: 44px; margin: 0 !important; font-size: 16px; }
.pcx-wait__msg { margin: 6px 0 0 !important; font-size: 14px; }
.pcx-wait__msg.is-ok { color: var(--pcx-green); }
.pcx-wait__msg.is-err { color: var(--pcx-err); }

/* ---------- 404 ---------- */
.pcx-404 { margin: 0 0 32px; padding: 20px; border-radius: var(--pcx-radius); background: var(--pcx-green-soft); }
.pcx-404 .pcx-cards { margin: 16px 0; }
.pcx-404__help { margin: 0; }

/* ---------- Mở quán trọn gói ---------- */
.pcx-moquan { margin: 32px 0; }
.pcx-moquan__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.pcx-moquan__card { display: flex; flex-direction: column; padding: 20px; border: 1px solid var(--pcx-line); border-radius: 14px; background: #fff; }
.pcx-moquan__card.is-hot { border: 2px solid var(--pcx-green); box-shadow: 0 8px 24px rgba(31,122,61,.12); }
.pcx-moquan__card h3 { margin: 0 0 4px; font-size: 1.15em; }
.pcx-moquan__price { margin: 0 0 12px; font-size: 1.3em; font-weight: 700; color: var(--pcx-green); }
.pcx-moquan__card ul { flex: 1; margin: 0 0 16px; padding-left: 1.2em; }
.pcx-moquan__card li { margin: 4px 0; }

/* ---------- Voucher ---------- */
.pcx-vouchers { margin: 0 0 18px; text-align: left; }
.pcx-vouchers h3 { font-size: 1em; margin: 0 0 8px; }
.pcx-vouchers__list { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; width: 0; min-width: 100%; }
.pcx-voucher { flex: 0 0 auto; width: 280px; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--pcx-line); border-left: 4px solid var(--pcx-warn); border-radius: var(--pcx-radius); background: #fff; }
.pcx-voucher__main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; font-size: 13px; }
.pcx-voucher__main strong { font-size: 14px; }
.pcx-voucher__main small { color: var(--pcx-muted); }
.pcx-voucher__main em { color: var(--pcx-warn); font-style: normal; }
.pcx-voucher .pcx-btn { min-height: 38px; padding: .4em .9em; margin: 0; font-size: 13px; }
.pcx-voucher.is-locked { opacity: .7; }
.pcx-voucher.is-on { border-left-color: var(--pcx-green); background: var(--pcx-green-soft); }
.pcx-voucher__ok { color: var(--pcx-green); font-weight: 600; font-size: 13px; }

/* ---------- Flash sale ---------- */
.pcx-flash { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 8px 0 12px; padding: 8px 10px; border-radius: var(--pcx-radius); background: linear-gradient(90deg, #fff1e6, #fff8f2); font-size: 14px; }
.pcx-flash__tag { padding: 2px 8px; border-radius: 4px; background: #e8590c; color: #fff; font-weight: 700; font-size: 12px; }
.pcx-flash__time b { font-variant-numeric: tabular-nums; color: #c2410c; }
.pcx-flash__bar { position: relative; flex: 1 1 100%; height: 18px; border-radius: 9px; background: #fde2cf; overflow: hidden; }
.pcx-flash__bar i { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, #f97316, #e8590c); border-radius: 9px; }
.pcx-flash__bar em { position: relative; display: block; text-align: center; font-style: normal; font-size: 11px; line-height: 18px; color: #fff; text-shadow: 0 1px 1px rgba(0,0,0,.35); font-weight: 600; }
.pcx-flash--sm { justify-content: center; margin: 4px 0 6px; padding: 4px 6px; font-size: 12px; background: none; }
.pcx-flash--sm .pcx-flash__tag { font-size: 11px; }

/* ---------- Đánh giá có ảnh ---------- */
.pcx-review-imgs { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.pcx-review-imgs img { width: 72px; height: 72px; object-fit: cover; border-radius: 6px; }
.pcx-review-photos input { display: block; margin-top: 4px; }

/* ---------- Nguyên liệu: chai/thùng, thông tin, combo, thương hiệu, mua kèm ---------- */
.pcx-packs { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; width: 100%; margin: 0 0 12px; }
.pcx-pack { display: flex !important; flex-direction: column; align-items: flex-start; gap: 2px; min-height: 64px !important; margin: 0 !important; padding: 8px 10px !important; border: 1.5px solid var(--pcx-line) !important; border-radius: var(--pcx-radius) !important; background: #fff !important; color: var(--pcx-ink) !important; text-align: left; text-transform: none !important; letter-spacing: 0 !important; font-weight: 400 !important; line-height: 1.25 !important; cursor: pointer; }
.pcx-pack b { font-size: 14px; }
.pcx-pack span { font-size: 13px; color: var(--pcx-muted); }
.pcx-pack em { font-style: normal; font-size: 12px; font-weight: 600; color: #c2410c; }
.pcx-pack.is-on { border-color: var(--pcx-green) !important; background: var(--pcx-green-soft) !important; box-shadow: inset 0 0 0 1px var(--pcx-green); }
.pcx-pack:focus-visible { outline: 3px solid #f2b705; outline-offset: 2px; }
form.cart:has(.pcx-packs) { flex-wrap: wrap; }
.pcx-ing { margin: 8px 0 14px; font-size: 14px; }
.pcx-ing__chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.pcx-ing__chips span { padding: 4px 10px; border-radius: 14px; background: var(--pcx-green-soft); color: var(--pcx-ink); }
.pcx-ing p { margin: 0; color: var(--pcx-muted); }
.pcx-ing__hsd b { color: var(--pcx-green); }
.pcx-combo { margin: 10px 0 16px; padding: 12px 14px; border: 1px dashed var(--pcx-green); border-radius: var(--pcx-radius); background: #fbfdfb; }
.pcx-combo__title { margin: 0 0 6px; font-weight: 700; }
.pcx-combo ul { margin: 0 0 8px; padding-left: 1.2em; }
.pcx-combo__save { margin: 0; }
.pcx-combo__save b { color: #c2410c; }
.pcx-combo__oos { margin: 6px 0 0; color: var(--pcx-err); }
.pcx-card__save { font-size: 12px; font-weight: 700; color: #c2410c; }
.pcx-brand { position: relative; margin: 0 0 18px; padding: 28px 24px; border-radius: 16px; overflow: hidden; color: #fff; background: linear-gradient(120deg, rgba(21,92,45,.92), rgba(31,122,61,.75)), var(--pcx-brand-bg, none) center/cover no-repeat, #1f7a3d; }
.pcx-brand__in { display: flex; gap: 20px; align-items: center; }
.pcx-brand__logo { width: 96px; height: 96px; object-fit: contain; background: #fff; border-radius: 14px; padding: 8px; flex: none; }
.pcx-brand__name { margin: 0 0 6px !important; color: #fff !important; font-size: 26px; font-weight: 700; line-height: 1.2; }
.pcx-brand__badges { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 8px; }
.pcx-brand__badges span { padding: 3px 10px; border-radius: 12px; background: rgba(255,255,255,.18); font-size: 13px; }
.pcx-brand__badges .pcx-brand__ok { background: #fff; color: var(--pcx-green); font-weight: 700; }
.pcx-brand__intro { margin: 0; max-width: 760px; opacity: .95; line-height: 1.5; font-size: 15px; }
@media (max-width: 600px) { .pcx-brand { padding: 18px 16px; } .pcx-brand__in { flex-direction: column; align-items: flex-start; } .pcx-brand__logo { width: 72px; height: 72px; } }
.pcx-brand__filters { margin: 0 0 18px; }
.pcx-chips { display: flex; gap: 6px; align-items: center; overflow-x: auto; padding-bottom: 4px; margin-bottom: 6px; scrollbar-width: thin; }
.pcx-chips__label { flex: none; font-weight: 600; font-size: 13px; color: var(--pcx-muted); margin-right: 4px; }
.pcx-chips a { flex: none; display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border: 1px solid var(--pcx-line); border-radius: 18px; background: #fff; color: var(--pcx-ink) !important; font-size: 14px; text-decoration: none !important; white-space: nowrap; }
.pcx-chips a[aria-current] { border-color: var(--pcx-green); background: var(--pcx-green); color: #fff !important; }
.pcx-sug { margin-top: 10px; }
.pcx-sug p { margin: 0 0 4px; font-weight: 600; }
.pcx-sug ul { list-style: none; margin: 0; padding: 0; }
.pcx-sug li { display: flex; align-items: center; gap: 8px; padding: 5px 0; border-top: 1px solid #fff; margin: 0; }
.pcx-sug li > a:first-child { flex: 1; min-width: 0; color: var(--pcx-ink) !important; text-decoration: none !important; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.35; overflow-wrap: anywhere; }
.pcx-sug li span { font-weight: 600; white-space: nowrap; }
.pcx-sug__add { flex: none; padding: 4px 10px; border-radius: 14px; background: var(--pcx-green); color: #fff !important; font-size: 12px; font-weight: 600; text-decoration: none !important; }

/* ---------- Tra cứu bảo hành ---------- */
.pcx-wcheck { max-width: 640px; }
.pcx-wcheck label { display: block; font-weight: 600; margin-bottom: 6px; }
.pcx-wcheck input[name=q] { flex: 1; min-width: 0; min-height: 46px; margin: 0 !important; font-size: 16px; }
.pcx-wcheck__res { margin-top: 14px; }
.pcx-wcard { display: flex; flex-direction: column; gap: 4px; margin-bottom: 10px; padding: 14px; border: 1px solid var(--pcx-line); border-left: 4px solid var(--pcx-green); border-radius: var(--pcx-radius); background: #fff; }
.pcx-wcard.is-out { border-left-color: var(--pcx-err); }
.pcx-wcard em { font-style: normal; font-weight: 700; color: var(--pcx-green); }
.pcx-wcard.is-out em { color: var(--pcx-err); }
.pcx-wcard .pcx-btn { align-self: flex-start; margin-top: 6px; }
.pcx-wcheck__none { color: var(--pcx-muted); }
.pcx-ing__ship { display: block; margin-top: 4px; color: var(--pcx-green); font-weight: 600; }
.pcx-freeship--note { border-style: solid; }
.pcx-chat__prod { display: flex; align-items: center; gap: 10px; margin: 0; padding: 8px 12px; border-top: 1px solid var(--pcx-line); background: #fff; }
.pcx-chat__prod[hidden] { display: none; }
.pcx-chat__prod img { width: 44px; height: 44px; object-fit: cover; border-radius: 6px; flex: none; }
.pcx-chat__prod div { flex: 1; min-width: 0; line-height: 1.3; }
.pcx-chat__prod small { display: block; color: #667; font-size: 11px; }
.pcx-chat__prod strong { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 13px; }
.pcx-chat__prod span { font-size: 12px; color: var(--pcx-green); font-weight: 600; }
.pcx-chat .pcx-chat__prod button { flex: none; min-height: 0; margin: 0; box-shadow: none; width: 28px; height: 28px; border: 0; border-radius: 50%; background: #eef1ef !important; color: #444 !important; font-size: 18px; line-height: 1; cursor: pointer; padding: 0; }
.pcx-chat__prod em { display: block; font-size: 11px; font-style: normal; color: #b26a00; }
/* Khối nút mở popup (chân trang) */
.pcx-popup-cta { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.pcx-popup-cta p { margin: 0; }
.pcx-popup-cta__title { font-weight: 700; font-size: 1.1em; }
.pcx-popup-cta__desc { opacity: .85; font-size: .95em; line-height: 1.5; }
.pcx-popup-cta .pcx-popup-cta__btn { margin: 4px 0 0; }

/* ============ Cửa hàng ============ */
.pcx-topbar { background: var(--pcx-green, #1f7a3a); color: #fff; font-size: 13px; padding: 5px 12px; text-align: center; position: relative; z-index: 30; }
.pcx-contact { display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 16px; }
.pcx-contact a { color: inherit !important; text-decoration: none !important; }
.pcx-contact__tel b { letter-spacing: .3px; }
.pcx-contact__zalo { padding: 1px 10px; border-radius: 10px; background: #0068ff; color: #fff !important; font-weight: 600; }
.pcx-contact__hours { opacity: .85; }
.pcx-buywith { margin: 24px 0; }
.pcx-buywith h2 { font-size: 1.25em; margin: 0 0 12px; }
.pcx-buywith__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.pcx-buywith__item { display: flex; gap: 10px; align-items: center; padding: 10px; border: 1px solid var(--pcx-line); border-radius: var(--pcx-radius); background: #fff; }
.pcx-buywith__item img { width: 72px; height: 72px; object-fit: contain; border-radius: 6px; background: #f6f7f6; flex: none; }
.pcx-buywith__item > div { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.pcx-buywith__name { color: var(--pcx-ink) !important; font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pcx-buywith__price { font-size: 14px; color: var(--pcx-green); font-weight: 600; }
.pcx-buywith__add { align-self: flex-start; font-size: 13px; font-weight: 600; color: var(--pcx-green) !important; }
.pcx-home-block { margin: 28px 0; }
.pcx-home-block__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.pcx-home-block__head h2 { margin: 0; }
.pcx-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.pcx-cats__item { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 8px; border: 1px solid var(--pcx-line); border-radius: var(--pcx-radius); background: #fff; text-align: center; color: var(--pcx-ink) !important; text-decoration: none !important; font-weight: 600; }
.pcx-cats__item img, .pcx-cats__ph { width: 84px; height: 84px; object-fit: contain; border-radius: 50%; background: var(--pcx-green-soft, #eaf4ec); }
.pcx-cats__ph { display: flex; align-items: center; justify-content: center; font-size: 32px; color: var(--pcx-green); }
.pcx-cats__item small { color: #777; font-weight: 400; }

/* ============ Tiếp cận khách ============ */
.pcx-gift { padding: 18px; border-radius: var(--pcx-radius); background: var(--pcx-green-soft, #eaf4ec); border: 1px solid #cfe5d5; }
.pcx-gift p { margin: 0 0 8px; }
.pcx-gift__title { font-weight: 700; font-size: 1.15em; }
.pcx-gift__row { display: flex; flex-wrap: wrap; gap: 8px; }
.pcx-gift__row input:not(.pcx-hp) { flex: 1 1 180px; margin: 0 !important; min-height: 44px; }
.pcx-gift__row .button { margin: 0; min-height: 44px; }
.pcx-gift__msg { margin-top: 8px !important; font-weight: 600; }
.pcx-gift.is-done .pcx-gift__row { display: none; }
.pcx-gift__dl { display: inline-block; margin-left: 4px; padding: 4px 12px; border-radius: 6px; background: var(--pcx-green); color: #fff !important; }
.pcx-nl-optin { margin: 6px 0 12px !important; font-size: 14px; }
.pcx-acc-box { margin: 18px 0; padding: 16px; border: 1px solid var(--pcx-line); border-radius: var(--pcx-radius); background: #fff; }
.pcx-acc-box h3 { margin: 0 0 8px; font-size: 1.1em; }
.pcx-ref__code { display: inline-flex; align-items: center; gap: 10px; margin: 6px 0 10px; padding: 8px 14px; border: 2px dashed var(--pcx-green); border-radius: 8px; }
.pcx-ref__code b { font-size: 20px; letter-spacing: 2px; color: var(--pcx-green); }
.pcx-ref__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.pcx-ref__actions .button { margin: 0; }
.pcx-points__bal b { font-size: 26px; color: var(--pcx-green); }
.pcx-points__log { list-style: none; margin: 8px 0 0; padding: 0; font-size: 14px; }
.pcx-points__log li { display: flex; justify-content: space-between; gap: 8px; padding: 5px 0; border-top: 1px solid var(--pcx-line); }
.pcx-points__log .is-plus { color: var(--pcx-green); }
.pcx-points__log .is-minus { color: #b42318; }
.pcx-points-use { margin: 0 0 14px; padding: 10px 12px; border: 1px dashed var(--pcx-green); border-radius: 8px; background: var(--pcx-green-soft, #eaf4ec); }
.pcx-points-use label { display: flex; gap: 8px; align-items: center; margin: 0; font-weight: 600; }
.pcx-points-use small { display: block; margin-top: 4px; color: #555; }
.pcx-points-hint { font-size: 14px; margin: 6px 0 10px; }

/* Công cụ */
.pcx-tool { margin: 24px 0; padding: 18px; border: 1px solid var(--pcx-line); border-radius: var(--pcx-radius); background: #fff; }
.pcx-tool h2 { margin-top: 0; }
.pcx-tool__lead { color: #555; }
.pcx-tool__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px 16px; margin: 12px 0; }
.pcx-tool label { display: flex; flex-direction: column; gap: 4px; font-size: 14px; margin: 0 0 8px; }
.pcx-tool label small { color: #777; font-size: 12px; }
.pcx-tool input, .pcx-tool select { margin: 0 !important; min-height: 40px; }
.pcx-tool fieldset { margin: 0; padding: 10px 12px; border: 1px solid var(--pcx-line); border-radius: 8px; }
.pcx-tool legend { padding: 0 6px; font-weight: 700; }
.pcx-tool__result { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 14px 0; }
.pcx-tool__result > div { padding: 12px; border-radius: 8px; background: var(--pcx-green-soft, #eaf4ec); }
.pcx-tool__result small { display: block; color: #555; }
.pcx-tool__result b { font-size: 20px; color: var(--pcx-green); }
.pcx-tool__result b.is-bad { color: #b42318; }
.pcx-tool__result em { display: block; font-style: normal; font-size: 12px; margin-top: 2px; }
.pcx-tool__note { font-size: 13px; color: #666; }
.pcx-cost__head, .pcx-cost__row { display: grid; grid-template-columns: 2fr 1fr 1.3fr 1fr 1fr 32px; gap: 6px; align-items: center; }
.pcx-cost__head { font-size: 12px; color: #666; font-weight: 600; padding-bottom: 4px; }
.pcx-cost__row { padding: 4px 0; }
.pcx-cost__row input, .pcx-cost__row select { min-width: 0; width: 100%; }
.pcx-cost__unit { display: flex; gap: 4px; }
.pcx-cost__unit select { width: 64px; flex: none; }
.pcx-cost__line { font-weight: 600; text-align: right; white-space: nowrap; }
.pcx-cost__del { width: 32px; height: 32px; padding: 0; border: 0; border-radius: 50%; background: #f1f3f2; cursor: pointer; margin: 0; }
.pcx-cost__hint.is-ok { color: var(--pcx-green); } .pcx-cost__hint.is-mid { color: #b26a00; } .pcx-cost__hint.is-bad { color: #b42318; }
.pcx-cost__f { display: block; min-width: 0; margin: 0; font-weight: 400; }
/* 1.5.0: mỗi dòng là một thẻ: chọn nguyên liệu ở trên, các số ở dưới. */
.pcx-cost__head { display: none; }
.pcx-cost__row { grid-template-columns: 1fr 1.5fr 1fr 32px; gap: 8px 10px; padding: 12px 0; border-bottom: 1px solid var(--pcx-line); }
.pcx-cost__f small { display: block; font-size: 12px; color: #666; margin-bottom: 2px; }
.pcx-cost__row .pcx-cost__f--n { grid-column: 1 / 4; grid-row: 1; }
.pcx-cost__row .pcx-cost__del { grid-column: 4; grid-row: 1; align-self: end; }
.pcx-cost__row .pcx-cost__f--n2 { grid-column: 1 / 4; grid-row: 2; margin: 0; }
.pcx-cost__row .pcx-cost__line { grid-column: 1 / 5; text-align: right; }
.pcx-cost__row input, .pcx-cost__row select { margin: 0 !important; }
.pcx-cost__unit select { width: 64px; padding-left: 6px; padding-right: 20px; }
@media (max-width: 549px) { .pcx-cost__row { grid-template-columns: 1fr 1fr 32px; } .pcx-cost__row .pcx-cost__f--n, .pcx-cost__row .pcx-cost__f--n2 { grid-column: 1 / 3; } .pcx-cost__row .pcx-cost__del { grid-column: 3; } .pcx-cost__row .pcx-cost__f:nth-child(4) { grid-column: 2 / 4; } .pcx-cost__row .pcx-cost__line { grid-column: 2 / 4; align-self: end; padding-bottom: 10px; } }
.pcx-budget__models { display: flex; flex-wrap: wrap; gap: 8px; }
.pcx-budget__model { margin: 0 !important; padding: 8px 14px; border: 1px solid var(--pcx-line); border-radius: 20px; background: #fff; cursor: pointer; font-weight: 600; color: var(--pcx-ink); }
.pcx-budget__model.is-on { border-color: var(--pcx-green); background: var(--pcx-green); color: #fff; }
.pcx-thanks { max-width: 900px; margin: 24px auto; padding: 0 16px; }
.pcx-thanks section { margin: 22px 0; }
.pcx-thanks__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.pcx-thanks__note, .pcx-thanks__help { color: #666; font-size: 14px; }

/* ============ Trang Cửa hàng (1.4.0) ============ */
.pcx-qb { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.pcx-qb .button { margin: 0 !important; flex: 1 1 auto; }
.pcx-qb__qty { display: inline-flex; align-items: stretch; border: 1px solid var(--pcx-line); border-radius: 8px; overflow: hidden; background: #fff; height: 36px; }
.pcx-qb__qty button { width: 32px; margin: 0 !important; padding: 0 !important; border: 0 !important; background: #f3f6f4 !important; color: var(--pcx-ink) !important; font-size: 18px; line-height: 1; cursor: pointer; min-height: 0 !important; box-shadow: none !important; }
.pcx-qb__qty input { width: 40px !important; height: 100% !important; margin: 0 !important; padding: 0 !important; border: 0 !important; box-shadow: none !important; text-align: center; font-size: 14px; -moz-appearance: textfield; }
.pcx-qb__qty input::-webkit-inner-spin-button, .pcx-qb__qty input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }

.pcx-from { display: block; font-size: 12px; color: var(--pcx-green); margin-top: 2px; }

.pcx-more { text-align: center; margin: 8px 0 24px; }
.pcx-more .button { min-width: 220px; }

body.pcx-the-deu ul.products li.product { display: flex; flex-direction: column; }
body.pcx-the-deu ul.products li.product > a:first-child img { display: block; width: 100% !important; height: auto !important; aspect-ratio: 1 / 1; object-fit: cover; margin: 0 0 12px; }
body.pcx-the-deu .product-small .box-image { aspect-ratio: 1 / 1; overflow: hidden; padding: 0 !important; }
body.pcx-the-deu .product-small .box-image > div:not(.image-tools):not([class*="label"]), body.pcx-the-deu .product-small .box-image > div:not(.image-tools) > a { display: block; width: 100%; height: 100%; padding: 0 !important; }
body.pcx-the-deu .product-small .box-image > div:not(.image-tools) img { display: block; width: 100% !important; height: 100% !important; max-width: none !important; max-height: none !important; object-fit: cover; margin: 0 !important; padding: 0 !important; }
body.pcx-the-deu ul.products li.product .woocommerce-loop-product__title, body.pcx-the-deu .product-small .product-title, body.pcx-the-deu .product-small .name { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; line-height: 1.3; }
body.pcx-the-deu ul.products li.product > .button, body.pcx-the-deu ul.products li.product > .pcx-qb, body.pcx-the-deu ul.products li.product > .pcx-btn { margin-top: auto !important; }
body.pcx-the-deu .product-small .col-inner, body.pcx-the-deu .product-small .box { height: 100%; }
body.pcx-the-deu .product-small .box { display: flex; flex-direction: column; }
body.pcx-the-deu .product-small .box-text { flex: 1 1 auto; display: flex; flex-direction: column; }
body.pcx-the-deu .product-small .box-text .add-to-cart-button, body.pcx-the-deu .product-small .box-text .pcx-qb { margin-top: auto; }

.pcx-term-bottom { margin: 32px 0 16px; padding-top: 24px; border-top: 1px solid var(--pcx-line); }
.pcx-term-intro { max-width: 900px; color: #444; }
.pcx-faq details { border: 1px solid var(--pcx-line); border-radius: 10px; margin: 0 0 8px; background: #fff; }
.pcx-faq summary { cursor: pointer; padding: 12px 14px; font-weight: 600; }
.pcx-faq details > div { padding: 0 14px 12px; color: #444; }

.pcx-reorder ul { list-style: none; margin: 0; padding: 0; }
.pcx-reorder li { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 0; border-bottom: 1px solid var(--pcx-line); }
.pcx-reorder li small { display: block; color: #666; }
.pcx-review-bonus { padding: 8px 12px; border-radius: 8px; background: #ecfdf3; color: #067647; font-size: 14px; }
.pcx-cost__row.is-web [data-k=g], .pcx-cost__row [readonly] { background: #f3f6f4; color: #333; }
.pcx-cost__row select[data-k=pick] { width: 100%; min-width: 0; }
.pcx-cost__f--n2 { display: block; }
.pcx-cost__f--n2[hidden] { display: none; }

/* ===== 1.5.0: Đặt hàng nhanh, báo giá từ giỏ, video, báo giảm giá, đặt lịch, khuyến mãi ===== */
.pcx-qo__tools { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 6px; }
.pcx-qo__search { flex: 1 1 260px; margin: 0 !important; min-height: 44px; }
.pcx-qo__note { color: #667085; font-size: 13px; margin: 0 0 12px; }
.pcx-qo__group h3 { font-size: 16px; margin: 18px 0 6px; padding-bottom: 6px; border-bottom: 2px solid #1f7a3a; }
.pcx-qo__list { list-style: none; margin: 0; padding: 0; }
.pcx-qo__row { display: grid; grid-template-columns: 1fr auto 84px; gap: 10px; align-items: center; padding: 8px 4px; border-bottom: 1px solid #eef0f2; margin: 0; }
.pcx-qo__row.is-on { background: #f0f9f3; }
.pcx-qo__name { color: inherit; line-height: 1.35; }
.pcx-qo__name small { color: #98a2b3; margin-left: 4px; }
.pcx-qo__price { white-space: nowrap; font-weight: 600; }
.pcx-qo__qty { width: 84px !important; margin: 0 !important; text-align: center; min-height: 40px; }
.pcx-qo__bar { position: sticky; bottom: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 12px; background: #fff; border-top: 1px solid #e4e7ec; box-shadow: 0 -4px 14px rgba(16,24,40,.06); padding: 10px 4px; margin-top: 14px; }
.pcx-qo__sum { font-weight: 600; }
.pcx-qo__bar .button { margin: 0 !important; }
.pcx-qo__msg:empty { display: none; }
@media (max-width: 849px) { body.pcx-has-bn .pcx-qo__bar { bottom: calc(56px + env(safe-area-inset-bottom)); } }
@media (max-width: 549px) { .pcx-qo__bar { font-size: 14px; padding-right: 66px; } .pcx-qo__bar .button { padding: 0 14px; font-size: 14px; white-space: nowrap; } .pcx-qo__row { grid-template-columns: 1fr 72px; } .pcx-qo__price { grid-column: 1; grid-row: 2; font-size: 13px; } .pcx-qo__qty { grid-column: 2; grid-row: 1 / span 2; width: 72px !important; } }

.pcx-cartpdf { margin: 14px 0; border: 1px solid #e4e7ec; border-radius: 8px; padding: 10px 14px; background: #fafbfc; }
.pcx-cartpdf summary { cursor: pointer; font-weight: 600; }
.pcx-cartpdf__form { margin-top: 10px; }
.pcx-cartpdf__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px 12px; margin-bottom: 10px; }
.pcx-cartpdf__grid label span { display: block; font-size: 13px; margin-bottom: 2px; }
.pcx-cartpdf__grid input { margin: 0 !important; width: 100%; max-width: 100%; box-sizing: border-box; }
.pcx-cartpdf__form small { display: block; color: #667085; margin-top: 6px; }

.pcx-vid-btn { position: absolute; left: 12px; bottom: 12px; z-index: 30; display: inline-flex; align-items: center; gap: 6px; background: rgba(0,0,0,.72); color: #fff; border: 0; border-radius: 999px; padding: 8px 14px; font-size: 14px; cursor: pointer; margin: 0; min-height: 40px; }
.pcx-vid-btn:hover, .pcx-vid-btn:focus-visible { background: #d92d20; }
.pcx-vid { position: fixed; inset: 0; z-index: 100000; background: rgba(0,0,0,.82); display: flex; align-items: center; justify-content: center; padding: 16px; }
.pcx-vid__in { position: relative; width: min(960px, 100%); aspect-ratio: 16 / 9; }
.pcx-vid__in iframe { width: 100%; height: 100%; border: 0; border-radius: 6px; }
.pcx-vid__x { position: absolute; top: -44px; right: 0; background: none; border: 0; color: #fff; font-size: 32px; line-height: 1; cursor: pointer; width: 44px; height: 44px; margin: 0; }

.pcx-alert { margin: 8px 0 12px; font-size: 14px; }
.pcx-alert summary { cursor: pointer; color: #1f7a3a; }
.pcx-alert__row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.pcx-alert__row input[type=email] { flex: 1 1 200px; margin: 0 !important; }
.pcx-alert__row .button { margin: 0 !important; }
.pcx-alert__msg { margin: 6px 0 0; font-size: 13px; }
.pcx-alert__msg:empty { display: none; }
.pcx-book { margin: 6px 0 12px; }
.pcx-book__btn { margin: 0 !important; }

.pcx-promo__sec { margin-bottom: 28px; }
.pcx-promo__sec > h2 { font-size: 20px; margin-bottom: 12px; }
