:root {
	--site-red: #BA0008;
	--site-red-dark: #A40007;
	--site-phone: #E8590C;
	--site-messenger: #4C6EF5;
	--site-line: #06A94D;
	--site-ink: #1a1a1a;
	--site-muted: #5c5c5c;
	--site-surface: #FFFFFF;
	--site-border: #E3E3E3;
	--site-shadow: 0 10px 30px rgba(0, 0, 0, .18);
	--dock-height: 64px;
}

/* Cookie consent */
.cookie-consent {
	position: fixed;
	left: 16px;
	bottom: 20px;
	z-index: 1050;
	width: min(440px, calc(100vw - 32px));
	padding: 18px 20px;
	border: 1px solid var(--site-border);
	border-radius: 14px;
	background: var(--site-surface);
	box-shadow: var(--site-shadow);
}
.cookie-consent[hidden], .cookie-consent [hidden] { display: none; }
.cookie-consent-title { margin: 0 0 6px; font-size: 18px; line-height: 1.4; font-weight: 600; color: var(--site-ink); }
.cookie-consent-text { font-size: 14px; line-height: 1.6 !important; color: var(--site-muted); }
.cookie-consent-text a { color: var(--site-red); text-decoration: underline; }
.cookie-consent-settings { margin-top: 12px; }
.cookie-consent-option { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 10px; font-size: 14px; line-height: 1.5; color: var(--site-ink); cursor: pointer; }
.cookie-consent-option input { margin-top: 4px; }
.cookie-consent-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.cookie-btn {
	flex: 1 1 auto;
	padding: 9px 14px;
	border: 1px solid var(--site-red);
	border-radius: 8px;
	background: var(--site-surface);
	color: var(--site-red);
	font-size: 14px;
	cursor: pointer;
}
.cookie-btn.is-primary { background: var(--site-red); color: #FFF; }

/* Consent-gated embeds */
.consent-embed { display: block; width: 100%; height: 450px; background: #EEE; }
.consent-embed iframe { display: block; width: 100%; height: 100%; border: 0; }
.consent-embed-prompt { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 20px; text-align: center; }

/* FAQ and policy pages */
.site-faq { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 20px; }
.site-faq-item { padding: 18px 20px; border-radius: 12px; background: var(--site-surface); }
.site-faq-question { margin: 0 0 8px; font-size: 19px; line-height: 1.45; font-weight: 600; color: var(--site-red); }
.site-policy { max-width: 860px; }
.site-policy h2 { margin: 28px 0 10px; font-size: 22px; line-height: 1.4; font-weight: 600; color: var(--site-red); }
.site-policy ul { padding-left: 22px; color: var(--site-ink); }
.site-policy a { color: var(--site-red); text-decoration: underline; }
.site-policy-date { color: var(--site-muted) !important; margin-bottom: 12px !important; }
.footer-policy-links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 6px; }
.footer-policy-links a, .footer-policy-links button { padding: 0; border: 0; background: none; color: inherit; font: inherit; text-decoration: underline; cursor: pointer; }


/* ---------- ปุ่มติดต่อลอย (แสดงตลอด ไม่ต้องกด toggle) ---------- */
.contact-dock {
	position: fixed; right: 18px; bottom: 22px; z-index: 1040;
	display: flex; flex-direction: column; align-items: flex-end; gap: 10px;
	font-family: 'Noto Sans Thai', sans-serif;
}
.contact-dock-item {
	display: inline-flex; align-items: center; gap: 10px;
	padding: 6px 18px 6px 6px; border-radius: 999px;
	background: rgba(255,255,255,.92); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
	color: var(--site-ink) !important; text-decoration: none !important;
	font-size: 15px; font-weight: 600; line-height: 1;
	border: 1px solid rgba(0,0,0,.06);
	box-shadow: 0 10px 28px -12px rgba(16,24,40,.45);
	transition: transform .2s ease, box-shadow .2s ease;
	animation: dock-in .45s cubic-bezier(.2,.8,.2,1) both;
}
.contact-dock-item:nth-child(2) { animation-delay: .06s; }
.contact-dock-item:nth-child(3) { animation-delay: .12s; }
.contact-dock-item:nth-child(4) { animation-delay: .18s; }
.contact-dock-item:nth-child(5) { animation-delay: .24s; }
.contact-dock-item:hover, .contact-dock-item:focus-visible { transform: translateX(-4px); box-shadow: 0 16px 34px -12px rgba(16,24,40,.55); }
.contact-dock-icon {
	display: inline-flex; align-items: center; justify-content: center;
	width: 38px; height: 38px; border-radius: 50%; color: #fff; font-size: 16px;
}
.contact-dock-item.is-phone .contact-dock-icon { background: linear-gradient(135deg,#e00000,var(--site-red)); }
.contact-dock-item.is-messenger .contact-dock-icon { background: linear-gradient(135deg,#00b2ff,#006aff); }
.contact-dock-item.is-line .contact-dock-icon { background: #06C755; font-size: 21px; }
.contact-dock-item.is-phone:first-child .contact-dock-icon { box-shadow: 0 0 0 0 rgba(186,0,8,.5); animation: dock-pulse 2.4s infinite; }
@keyframes dock-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes dock-pulse { 0% { box-shadow: 0 0 0 0 rgba(186,0,8,.45); } 70% { box-shadow: 0 0 0 12px rgba(186,0,8,0); } 100% { box-shadow: 0 0 0 0 rgba(186,0,8,0); } }
html .scroll-to-top { right: auto; left: 16px; border-radius: 10px; }

@media (max-width: 991.98px) {
	body { padding-bottom: calc(var(--dock-height) + env(safe-area-inset-bottom)); }
	html .scroll-to-top.visible { bottom: calc(var(--dock-height) + 12px); }
	.contact-dock {
		left: 10px; right: 10px; bottom: calc(8px + env(safe-area-inset-bottom));
		flex-direction: row; align-items: stretch; gap: 4px;
		height: var(--dock-height); padding: 6px;
		background: rgba(255,255,255,.94); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
		border: 1px solid rgba(0,0,0,.06); border-radius: 18px;
		box-shadow: 0 12px 30px -10px rgba(16,24,40,.45);
	}
	.contact-dock-item {
		flex: 1 1 0; min-width: 0; flex-direction: column; justify-content: center; gap: 4px;
		padding: 2px; border: 0; border-radius: 12px; background: transparent; box-shadow: none;
		-webkit-backdrop-filter: none; backdrop-filter: none;
		font-size: 11px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
	}
	.contact-dock-item:hover, .contact-dock-item:focus-visible { transform: none; box-shadow: none; background: rgba(0,0,0,.04); }
	.contact-dock-icon { width: 30px; height: 30px; font-size: 13px; }
	.contact-dock-item.is-line .contact-dock-icon { font-size: 18px; }
	.contact-dock-label { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
	.cookie-consent { left: 10px; right: 10px; width: auto; bottom: calc(var(--dock-height) + 18px); }
	.site-faq { grid-template-columns: 1fr; }
}
@media (max-width: 575.98px) { .consent-embed { height: 320px; } }
@media (prefers-reduced-motion: reduce) { .contact-dock-item, .contact-dock-icon { animation: none !important; transition: none; } }

/* ---------- เมนูแอดมินบน navtop ---------- */
#header .hx-admin-nav > a { color: #fff !important; background: var(--site-red); border-radius: 8px; }
#header .hx-admin-nav .dropdown-menu a { white-space: nowrap; }
h2.as-h1 { font-size: 2.2em; line-height: 1.3; font-weight: 400; letter-spacing: -.05em; margin: 0 0 32px 0; }
@media (max-width: 575.98px) { h2.as-h1 { font-size: 1.7em; } }

/* ---------- สินค้า: หน้า ?p=product และ widget-product ---------- */
.pg-hero {
	position: relative; padding: 72px 0 64px; color: #fff; text-align: center;
	background-size: cover; background-position: center; isolation: isolate;
}
.pg-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(120deg, rgba(120,0,6,.94), rgba(186,0,8,.82) 55%, rgba(20,20,24,.75)); }
.pg-eyebrow { background: rgba(255,255,255,.14); color: #fff; }
.pg-eyebrow::before { background: #fff; }
.pg-hero-title { font-family: 'Noto Sans Thai', sans-serif; color: #fff; font-size: 36px; line-height: 1.35; font-weight: 700; margin: 18px auto 12px; max-width: 760px; letter-spacing: 0; }
.pg-hero .pg-hero-sub { color: rgba(255,255,255,.88) !important; font-size: 17px; max-width: 640px; margin: 0 auto !important; line-height: 1.7 !important; }
.pg-hero-stats { list-style: none; display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; padding: 0; margin: 28px 0 0; }
.pg-hero-stats li { min-width: 150px; padding: 14px 18px; border-radius: 14px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.18); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.pg-hero-stats strong { display: block; font-size: 24px; line-height: 1.2; }
.pg-hero-stats span { font-size: 14px; opacity: .9; }

.pg-section { padding: 48px 0 24px !important; background: #fafafb; }
.pg-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-bottom: 24px; }
.pg-toolbar-title { font-family: 'Noto Sans Thai', sans-serif; font-size: 22px; font-weight: 700; color: #1d1f24; margin: 0; flex: 1 1 auto; letter-spacing: 0; text-transform: none; }
.pg-search { position: relative; flex: 1 1 320px; max-width: 460px; margin: 0; }
.pg-search i { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: #8a8f98; }
.pg-search input { width: 100%; height: 48px; padding: 0 16px 0 44px; border: 1px solid #e4e6eb; border-radius: 12px; background: #fff; font-size: 16px; outline: none; transition: border-color .2s, box-shadow .2s; }
.pg-search input:focus { border-color: #BA0008; box-shadow: 0 0 0 4px rgba(186,0,8,.1); }
.pg-count { color: #5d6470; font-size: 15px; }
.pg-admin-add { margin-left: auto; padding: 10px 16px; border-radius: 10px; background: #1d1f24; color: #fff !important; font-weight: 600; text-decoration: none !important; }

.pg-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.pg-card {
	display: flex; flex-direction: column; overflow: hidden; border-radius: 16px; background: #fff;
	border: 1px solid #eceef2; text-decoration: none !important; color: inherit !important;
	transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.pg-card[hidden] { display: none; }
.pg-card:hover, .pg-card:focus-visible { transform: translateY(-6px); border-color: rgba(186,0,8,.3); box-shadow: 0 20px 40px -24px rgba(16,24,40,.55); }
.pg-thumb { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: #f2f3f5; }
.pg-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.pg-card:hover .pg-thumb img { transform: scale(1.06); }
.pg-body { display: flex; flex-direction: column; gap: 10px; flex: 1; padding: 14px 16px 16px; }
.pg-title { font-size: 16px; font-weight: 600; line-height: 1.5; color: #1d1f24; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pg-more { margin-top: auto; font-size: 14px; font-weight: 600; color: #BA0008; }
.pg-more i { font-size: 12px; margin-left: 4px; transition: transform .2s; }
.pg-card:hover .pg-more i { transform: translateX(4px); }
.pg-empty { text-align: center; color: #5d6470 !important; padding: 32px 0 !important; }
.pg-empty[hidden] { display: none; }
.pg-more-wrap { text-align: center; margin-top: 28px; }
.pg-btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 12px; font-weight: 700; font-size: 16px; text-decoration: none !important; transition: transform .2s; }
.pg-btn:hover { transform: translateY(-2px); }
.pg-btn-outline { border: 2px solid #BA0008; color: #BA0008 !important; background: #fff; }
.pg-btn-light { background: #fff; color: #BA0008 !important; }
.pg-btn-line { background: #06C755; color: #fff !important; }

.pg-cta { padding: 24px 0 64px; background: #fafafb; }
.pg-cta-box {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px;
	padding: 32px 36px; border-radius: 20px; color: #fff;
	background: radial-gradient(600px 200px at 100% 0%, rgba(255,255,255,.14), transparent 60%), linear-gradient(120deg, #e00000, #8f0006);
	box-shadow: 0 24px 48px -28px rgba(186,0,8,.8);
}
.pg-cta-box h3 { font-family: 'Noto Sans Thai', sans-serif; color: #fff; font-size: 24px; font-weight: 700; margin: 0 0 6px; letter-spacing: 0; text-transform: none; }
.pg-cta-box p { color: rgba(255,255,255,.88) !important; }
.pg-cta-actions { display: flex; flex-wrap: wrap; gap: 10px; }

@media (max-width: 991.98px) { .pg-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 767.98px) {
	.pg-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
	.pg-hero { padding: 48px 0 44px; }
	.pg-hero-title { font-size: 26px; }
	.pg-hero-stats li { min-width: 0; flex: 1 1 0; padding: 10px 8px; }
	.pg-hero-stats strong { font-size: 20px; }
	.pg-hero-stats span { font-size: 12px; }
	.pg-body { padding: 10px 12px 12px; gap: 6px; }
	.pg-title { font-size: 14px; }
	.pg-more { font-size: 13px; }
	.pg-cta-box { padding: 24px 20px; }
	.pg-cta-actions, .pg-cta-actions .pg-btn { width: 100%; justify-content: center; }
	.pg-search { max-width: none; }
}

/* ---------- ติดต่อเรา ---------- */
.ct-section { padding: 56px 0 64px; background: #fafafb; }
.ct-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; }
.ct-card { display: flex; flex-direction: column; gap: 6px; padding: 22px; border-radius: 16px; background: #fff; border: 1px solid #eceef2; transition: transform .2s, box-shadow .2s; }
.ct-card:hover { transform: translateY(-4px); box-shadow: 0 18px 36px -24px rgba(16,24,40,.5); }
.ct-icon { width: 46px; height: 46px; border-radius: 12px; display: flex; align-items: center; justify-content: center; margin-bottom: 8px; background: rgba(186,0,8,.08); color: #BA0008; font-size: 19px; }
.ct-icon.is-line { background: rgba(6,199,85,.12); color: #06C755; font-size: 24px; }
.ct-icon.is-fb { background: rgba(24,119,242,.1); color: #1877F2; }
.ct-card h3 { font-family: 'Noto Sans Thai', sans-serif; font-size: 16px; font-weight: 600; color: #5d6470; margin: 0; letter-spacing: 0; text-transform: none; }
.ct-link { font-size: 18px; font-weight: 700; color: #1d1f24 !important; text-decoration: none !important; word-break: break-word; }
.ct-link:hover { color: #BA0008 !important; }
.ct-link i { font-size: 13px; }
.ct-note, .ct-addr { font-size: 14px; color: #5d6470; font-style: normal; line-height: 1.6; margin: 0; }
.ct-split { display: grid; grid-template-columns: 5fr 7fr; gap: 20px; margin-top: 20px; }
.ct-qr, .ct-map { border-radius: 16px; background: #fff; border: 1px solid #eceef2; overflow: hidden; }
.ct-qr { padding: 24px; }
.ct-qr h3 { font-family: 'Noto Sans Thai', sans-serif; font-size: 20px; font-weight: 700; color: #1d1f24; margin: 0 0 4px; letter-spacing: 0; text-transform: none; }
.ct-qr p { color: #5d6470 !important; font-size: 14px; }
.ct-qr-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 16px; }
.ct-qr-list figure { margin: 0; text-align: center; }
.ct-qr-list img { width: 100%; aspect-ratio: 1; object-fit: contain; border-radius: 12px; border: 1px solid #eceef2; background: #fff; padding: 6px; }
.ct-qr-list figcaption { font-size: 13px; font-weight: 600; margin-top: 6px; color: #5d6470; }
.ct-map .consent-embed { height: 100%; min-height: 340px; background: #f2f3f5; }
.ct-map-icon { font-size: 34px; color: #BA0008; }
.ct-desc { max-width: 860px; margin: 32px auto 0 !important; text-align: center; color: #5d6470 !important; line-height: 1.8 !important; }

/* ---------- เกี่ยวกับเรา ---------- */
.ab-section { padding: 64px 0; background: #fff; }
.ab-photo { position: relative; border-radius: 20px; overflow: hidden; box-shadow: 0 24px 48px -28px rgba(16,24,40,.6); }
.ab-photo > img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.ab-logo { position: absolute; left: 16px; bottom: 16px; padding: 10px 14px; border-radius: 14px; background: rgba(255,255,255,.95); box-shadow: 0 8px 20px -10px rgba(0,0,0,.4); }
.ab-logo img { width: 120px; display: block; }
.ab-title { font-family: 'Noto Sans Thai', sans-serif; font-size: 28px; line-height: 1.4; font-weight: 700; color: #1d1f24; margin: 14px 0 14px; letter-spacing: 0; }
.ab-section .ab-text { color: #4a505a !important; font-size: 16px; line-height: 1.85 !important; margin-bottom: 12px !important; }
.ab-section .ab-thanks { color: #BA0008 !important; font-weight: 600; }
.ab-values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 56px; }
.ab-value { padding: 22px; border-radius: 16px; border: 1px solid #eceef2; background: #fafafb; }
.ab-value .hx-icon { margin-bottom: 12px; }
.ab-value h3 { font-family: 'Noto Sans Thai', sans-serif; font-size: 17px; font-weight: 700; color: #1d1f24; margin: 0 0 6px; letter-spacing: 0; text-transform: none; }
.ab-section .ab-value p { font-size: 14px; color: #5d6470 !important; line-height: 1.65 !important; }
.ab-zh { margin-top: 40px; }
.ab-badges { list-style: none; padding: 0 !important; margin: 14px 0 0 !important; display: flex; flex-wrap: wrap; gap: 8px; }
.ab-badges li { padding: 4px 12px; border-radius: 999px; background: #fff; border: 1px solid #e4e6eb; font-weight: 700; font-size: 13px; color: #1d1f24; }
.ab-gallery-title { font-family: 'Noto Sans Thai', sans-serif; font-size: 24px; font-weight: 700; color: #1d1f24; margin: 48px 0 16px; letter-spacing: 0; }

/* ---------- footer ---------- */
#footer.ft { margin-top: 0; padding-top: 0; border-top: 0; background: #121317; color: rgba(255,255,255,.72); font-size: 15px; }
.ft-cta { position: relative; top: -32px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 28px; border-radius: 18px; color: #fff; background: linear-gradient(120deg, #e00000, #8f0006); box-shadow: 0 20px 40px -24px rgba(186,0,8,.9); }
.ft-cta strong { display: block; font-size: 20px; }
.ft-cta span { opacity: .88; font-size: 15px; }
.ft-cta-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.ft-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.3fr 1.2fr; gap: 32px; padding: 16px 0 36px; }
.ft-logo { height: 54px; width: auto; margin-bottom: 14px; background: #fff; border-radius: 10px; padding: 6px 10px; }
.ft-brand p { color: rgba(255,255,255,.65) !important; font-size: 14px; line-height: 1.75 !important; }
.ft-social { display: flex; gap: 8px; margin-top: 16px; }
.ft-social a { width: 38px; height: 38px; border-radius: 10px; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,.08); color: #fff !important; transition: background .2s, transform .2s; }
.ft-social a:hover { background: #BA0008; transform: translateY(-2px); }
.ft-col { display: flex; flex-direction: column; gap: 10px; }
.ft-col h3 { font-family: 'Noto Sans Thai', sans-serif; color: #fff; font-size: 16px; font-weight: 700; margin: 0 0 4px; letter-spacing: 0; text-transform: none; }
.ft-col a, .ft-col address { color: rgba(255,255,255,.72) !important; text-decoration: none !important; font-style: normal; margin: 0; line-height: 1.6; display: flex; gap: 10px; align-items: baseline; }
.ft-col a:hover { color: #fff !important; }
.ft-col i { width: 14px; color: #ff4d55; flex: 0 0 14px; }
.ft-qr { display: flex; gap: 12px; }
.ft-qr figure { margin: 0; text-align: center; }
.ft-qr img { width: 92px; height: 92px; object-fit: contain; border-radius: 10px; background: #fff; padding: 4px; }
.ft-qr figcaption { font-size: 12px; margin-top: 4px; }
.ft-stats { margin-top: 8px; font-size: 13px; opacity: .8; }
.ft-stats > div { color: inherit !important; }
.ft-stats div[style] { font-size: 13px !important; margin-top: 0 !important; }
.ft-tags { display: flex; flex-wrap: wrap; gap: 8px; padding: 20px 0 28px; border-top: 1px solid rgba(255,255,255,.08); }
.ft-tags a { padding: 4px 12px; border-radius: 999px; background: rgba(255,255,255,.06); color: rgba(255,255,255,.7) !important; font-size: 13px; text-decoration: none !important; }
.ft-tags a:hover { background: rgba(186,0,8,.6); color: #fff !important; }
.ft-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 18px 0; font-size: 13px; }
.ft-bottom .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; }
.ft-bottom .footer-policy-links { margin-top: 0; }
.ft-bottom .footer-policy-links a, .ft-bottom .footer-policy-links button { color: rgba(255,255,255,.7) !important; }

@media (max-width: 991.98px) {
	.ct-split { grid-template-columns: 1fr; }
	.ab-values { grid-template-columns: repeat(2, 1fr); }
	.ft-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 575.98px) {
	.ab-values { grid-template-columns: 1fr; }
	.ab-title { font-size: 23px; }
	.ft-grid { grid-template-columns: 1fr; gap: 24px; }
	.ft-cta { top: -24px; padding: 20px; }
	.ft-cta-actions, .ft-cta-actions .pg-btn { width: 100%; justify-content: center; }
	.ct-qr-list { grid-template-columns: repeat(3, 1fr); gap: 8px; }
}

/* ---------- หน้ารายละเอียดสินค้า ?p=pd ---------- */
.pd-section { padding: 40px 0 56px; background: #fff; }
.pd-admin { text-align: right; margin-bottom: 16px; }
.pd-admin a { display: inline-flex; gap: 8px; align-items: center; padding: 8px 14px; border-radius: 10px; background: #1d1f24; color: #fff !important; font-weight: 600; text-decoration: none !important; }
.pd-top { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 40px; align-items: start; }
.pd-main { position: relative; display: block; width: 100%; padding: 0; border: 0; border-radius: 18px; overflow: hidden; background: #f2f3f5; cursor: zoom-in; aspect-ratio: 4 / 3; }
.pd-main img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.pd-main:hover img { transform: scale(1.03); }
.pd-zoom { position: absolute; right: 14px; bottom: 14px; width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,.92); color: #1d1f24; box-shadow: 0 6px 16px -6px rgba(0,0,0,.4); }
.pd-thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.pd-thumb { flex: 0 0 84px; height: 64px; padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; background: #f2f3f5; cursor: pointer; opacity: .7; transition: opacity .2s, border-color .2s; }
.pd-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pd-thumb:hover, .pd-thumb.is-active { opacity: 1; border-color: #BA0008; }
.pd-info { position: sticky; top: 110px; }
.pd-title { font-family: 'Noto Sans Thai', sans-serif; font-size: 30px; line-height: 1.35; font-weight: 700; color: #1d1f24; margin: 14px 0 16px; letter-spacing: 0; text-transform: none; }
.pd-points { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 10px; }
.pd-points li { display: flex; gap: 10px; align-items: baseline; color: #3d424b; font-size: 16px; }
.pd-points i { color: #1a9a52; }
.pd-quote { padding: 20px; border-radius: 16px; background: #fafafb; border: 1px solid #eceef2; }
.pd-quote strong { display: block; font-size: 18px; color: #1d1f24; }
.pd-quote span { display: block; font-size: 14px; color: #5d6470; margin: 2px 0 14px; }
.pd-actions { display: grid; gap: 10px; }
.pd-actions .pg-btn { justify-content: center; width: 100%; }
.pd-btn-call { background: linear-gradient(120deg, #e00000, #BA0008); color: #fff !important; box-shadow: 0 10px 22px -12px rgba(186,0,8,.8); }
.pd-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-top: 16px; font-size: 14px; color: #6b7280; }
.pd-share { display: inline-flex; align-items: center; gap: 6px; }
.pd-share a, .pd-share button { width: 32px; height: 32px; border-radius: 50%; border: 1px solid #e4e6eb; background: #fff; display: inline-flex; align-items: center; justify-content: center; color: #3d424b !important; cursor: pointer; text-decoration: none !important; }
.pd-share a:hover, .pd-share button:hover { border-color: #BA0008; color: #BA0008 !important; }
.pd-detail { margin-top: 48px; padding: 28px 32px; border-radius: 18px; border: 1px solid #eceef2; }
.pd-detail-title { font-family: 'Noto Sans Thai', sans-serif; font-size: 22px; font-weight: 700; color: #1d1f24; margin: 0 0 16px; padding-bottom: 12px; border-bottom: 2px solid #BA0008; display: inline-block; letter-spacing: 0; text-transform: none; }
.pd-content { color: #3d424b; font-size: 16px; line-height: 1.8; overflow-x: auto; }
.pd-content p { line-height: 1.8 !important; margin: 0 0 12px !important; color: #3d424b; }
.pd-content img { max-width: 100%; height: auto; border-radius: 10px; }
.pd-content table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 14px; }
.pd-content td, .pd-content th { border: 1px solid #e4e6eb; padding: 8px 10px; }
.pd-content tr:nth-child(even) td { background: #fafafb; }
.pd-related { padding: 48px 0 64px; background: #fafafb; }
.pd-related-title { font-family: 'Noto Sans Thai', sans-serif; font-size: 24px; font-weight: 700; color: #1d1f24; margin: 0 0 20px; letter-spacing: 0; }
.pd-lightbox { position: fixed; inset: 0; z-index: 100000; display: flex; align-items: center; justify-content: center; padding: 40px 64px; background: rgba(10,10,12,.92); }
.pd-lightbox[hidden] { display: none; }
.pd-lightbox img { max-width: 100%; max-height: 100%; border-radius: 10px; }
.pd-lb-close, .pd-lb-nav { position: absolute; border: 0; border-radius: 50%; background: rgba(255,255,255,.14); color: #fff; width: 46px; height: 46px; font-size: 20px; cursor: pointer; }
.pd-lb-close { top: 16px; right: 16px; font-size: 26px; }
.pd-lb-nav.is-prev { left: 12px; top: 50%; margin-top: -23px; }
.pd-lb-nav.is-next { right: 12px; top: 50%; margin-top: -23px; }
.pd-lb-nav[hidden] { display: none; }
.pd-lb-count { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,.8); font-size: 14px; }
@media (max-width: 991.98px) {
	.pd-top { grid-template-columns: 1fr; gap: 24px; }
	.pd-info { position: static; }
}
@media (max-width: 575.98px) {
	.pd-section { padding: 24px 0 40px; }
	.pd-title { font-size: 24px; }
	.pd-detail { padding: 20px 16px; margin-top: 32px; }
	.pd-lightbox { padding: 56px 8px; }
	.pd-lb-nav { width: 38px; height: 38px; }
}

/* ---------- หน้าผลงาน ?p=portfolio ---------- */
.pf-section { padding: 48px 0 16px; background: #fafafb; }
.pf-photos { padding-bottom: 32px; }
.pf-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; margin-bottom: 18px; }
.pf-heading { font-family: 'Noto Sans Thai', sans-serif; font-size: 24px; font-weight: 700; color: #1d1f24; margin: 0 0 18px; letter-spacing: 0; text-transform: none; }
.pf-head .pf-heading { margin: 0; }
.pf-sub { color: #6b7280; font-size: 14px; }
.pf-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.pf-card { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: 18px; overflow: hidden; background: #1d1f24; text-decoration: none !important; box-shadow: 0 16px 36px -24px rgba(16,24,40,.6); }
.pf-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease, opacity .3s; }
.pf-card:hover img { transform: scale(1.06); opacity: .85; }
.pf-overlay { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; padding: 18px; background: linear-gradient(0deg, rgba(10,10,12,.88) 0%, rgba(10,10,12,.2) 55%, transparent 75%); color: #fff; }
.pf-tag { align-self: flex-start; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: rgba(186,0,8,.85); }
.pf-title { font-size: 18px; font-weight: 700; line-height: 1.4; }
.pf-more { font-size: 14px; font-weight: 600; opacity: 0; transform: translateY(6px); transition: opacity .25s, transform .25s; }
.pf-card:hover .pf-more, .pf-card:focus-visible .pf-more { opacity: 1; transform: none; }
.pf-masonry { columns: 4 220px; column-gap: 14px; }
.pf-photo { display: block; margin: 0 0 14px; break-inside: avoid; border-radius: 14px; overflow: hidden; background: #e9eaee; cursor: zoom-in; position: relative; }
.pf-photo[hidden] { display: none; }
.pf-photo img { width: 100%; height: auto; display: block; transition: transform .5s ease; }
.pf-photo::after { content: "\f00e"; font-family: "Font Awesome 6 Free"; font-weight: 900; position: absolute; right: 10px; bottom: 10px; width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,.92); color: #1d1f24; font-size: 14px; opacity: 0; transition: opacity .2s; }
.pf-photo:hover img { transform: scale(1.04); }
.pf-photo:hover::after { opacity: 1; }
@media (max-width: 991.98px) { .pf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 575.98px) {
	.pf-grid { grid-template-columns: 1fr; gap: 14px; }
	.pf-masonry { columns: 2; column-gap: 10px; }
	.pf-photo { margin-bottom: 10px; border-radius: 10px; }
	.pf-more { opacity: 1; transform: none; }
}
