/* ==========================================================================
   Modern UI — header, hero, สินค้า, ปุ่มติดต่อ, ติดต่อเรา, footer, หน้านโยบาย
   ========================================================================== */

:root {
	--pk-gold: #B48732;
	--pk-gold-2: #E9D36D;
	--pk-gold-dark: #8a6420;
	--pk-gold-soft: #faf5e8;
	--pk-ink: #1d1b16;
	--pk-muted: #6b665c;
	--pk-line: #ebe4d3;
	--pk-bg-soft: #fbf9f4;
	--pk-dark: #17140f;
	--pk-dark-2: #221e16;
	--pk-line-green: #06c755;
	--pk-messenger: #0a7cff;
	--pk-phone: #e8590c;
	--pk-radius: 18px;
	--pk-shadow: 0 10px 30px rgba(40, 30, 10, .08);
	--pk-shadow-lg: 0 20px 45px rgba(40, 30, 10, .16);
	--pk-gradient: linear-gradient(120deg, var(--pk-gold) 0%, var(--pk-gold-2) 100%);
	--pk-fab-bar-h: 0px;
}

.pk-section-soft { background: var(--pk-bg-soft); }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.pk-header .header-body { background: #fff; box-shadow: 0 6px 24px rgba(40, 30, 10, .06); }

.pk-topbar { background: var(--pk-gradient); color: #fff; font-size: 14px; }
.pk-topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 42px; padding-top: 6px; padding-bottom: 6px; }
.pk-topbar-brand { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.pk-topbar-brand strong { font-size: 16px; letter-spacing: -.2px; white-space: nowrap; text-shadow: 0 1px 2px rgba(0, 0, 0, .15); }
.pk-topbar-tagline { opacity: .92; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pk-topbar-links { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.pk-topbar-links a {
	display: inline-flex; align-items: center; gap: 6px;
	padding: 3px 12px; border-radius: 999px;
	color: #fff !important; text-decoration: none !important; font-weight: 600;
	background: rgba(255, 255, 255, .18); border: 1px solid rgba(255, 255, 255, .35);
	transition: background .2s ease;
}
.pk-topbar-links a:hover { background: rgba(255, 255, 255, .32); }

.pk-header .header-container { min-height: 84px; }
.pk-header .header-logo img.pk-logo { width: 240px; height: auto; max-width: 100%; display: block; }

.pk-header .header-nav-links { gap: 10px; }

.pk-header-cta {
	display: none;
	align-items: center; gap: 8px;
	margin-left: 10px;
	padding: 10px 20px; border-radius: 999px;
	color: #fff !important; text-decoration: none !important; font-weight: 700; font-size: 15px; white-space: nowrap;
	background: linear-gradient(120deg, var(--pk-line-green), #00a845);
	box-shadow: 0 8px 20px rgba(6, 199, 85, .3);
	transition: transform .2s ease, box-shadow .2s ease;
}
.pk-header-cta i { font-size: 20px; }
.pk-header-cta:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(6, 199, 85, .38); }

@media (min-width: 992px) {
	.pk-header-cta { display: inline-flex; }

	/* topbar เลื่อนหายไป เมนูหลักติดด้านบนเมื่อเลื่อนหน้า */
	html #header.pk-header { position: sticky; top: -54px; z-index: 1030; }

	.pk-header .header-nav-main nav > ul > li > a,
	.pk-header .header-nav-main nav > ul > li > a.dropdown-toggle {
		position: relative;
		font-family: 'Noto Sans Thai', sans-serif;
		font-size: 16px !important;
		font-weight: 600 !important;
		text-transform: none !important;
		color: var(--pk-ink) !important;
		background: transparent !important;
		padding: 0 16px !important;
		height: 44px;
		border-radius: 999px !important;
		transition: color .2s ease, background .2s ease;
	}
	.pk-header .header-nav-main nav > ul > li > a::before {
		content: ""; position: absolute; left: 16px; right: 16px; bottom: 6px; height: 2px;
		background: var(--pk-gradient); border-radius: 2px;
		transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
	}
	.pk-header .header-nav-main nav > ul > li:hover > a,
	.pk-header .header-nav-main nav > ul > li > a.active { color: var(--pk-gold-dark) !important; background: var(--pk-gold-soft) !important; }
	.pk-header .header-nav-main nav > ul > li:hover > a::before,
	.pk-header .header-nav-main nav > ul > li > a.active::before { transform: scaleX(1); }
	.pk-header .header-nav-main nav > ul > li > a.dropdown-toggle::after { border-color: currentColor transparent transparent; }

	.pk-header .header-nav-main nav > ul > li.dropdown .dropdown-menu {
		border: 1px solid var(--pk-line) !important;
		border-radius: 14px !important;
		box-shadow: var(--pk-shadow-lg) !important;
		padding: 8px !important;
		margin-top: 0;
		min-width: 230px;
	}
	.pk-header .header-nav-main nav > ul > li.dropdown .dropdown-menu::before { display: none; }
	.pk-header .header-nav-main nav > ul > li.dropdown .dropdown-menu li a {
		font-family: 'Noto Sans Thai', sans-serif;
		font-size: 15px !important; text-transform: none !important; font-weight: 500;
		color: var(--pk-ink) !important; border-radius: 10px; padding: 9px 14px !important; border: 0 !important;
	}
	.pk-header .header-nav-main nav > ul > li.dropdown .dropdown-menu li a:hover { background: var(--pk-gold-soft) !important; color: var(--pk-gold-dark) !important; }
}

@media (max-width: 991px) {
	.pk-header .header-container { min-height: 70px; }
	.pk-header .header-logo img.pk-logo { width: 200px; }
	/* ปุ่มเมนูมือถือ: สี่เหลี่ยมมุมมน ไอคอนอยู่กึ่งกลาง (ทับ padding/radius ของธีมและ custom.css) */
	html #header.pk-header .header-btn-collapse-nav {
		display: grid !important; place-items: center;
		width: 46px; height: 46px; padding: 0 !important; margin: 0 0 0 12px !important;
		border: 0 !important; border-radius: 14px !important;
		font-size: 20px; line-height: 1; color: #fff !important;
		background: var(--pk-gradient) !important;
		box-shadow: 0 6px 16px rgba(180, 135, 50, .35);
		transition: transform .15s ease, box-shadow .15s ease;
	}
	html #header.pk-header .header-btn-collapse-nav:active { transform: scale(.94); }
	html #header.pk-header .header-btn-collapse-nav:focus-visible { outline: 3px solid rgba(180, 135, 50, .4); outline-offset: 2px; }
	.pk-header .header-nav-main nav > ul > li > a { font-family: 'Noto Sans Thai', sans-serif; font-size: 16px !important; text-transform: none !important; color: var(--pk-ink) !important; }
	.pk-header .header-nav-main nav > ul > li > a.active { color: var(--pk-gold-dark) !important; background: var(--pk-gold-soft) !important; }
	.pk-header .header-nav-main nav > ul li a > i.fa-chevron-down { color: var(--pk-gold-dark) !important; }
	.pk-header .header-nav-main nav > ul li .dropdown-menu li a { font-family: 'Noto Sans Thai', sans-serif; font-size: 15px !important; text-transform: none !important; color: var(--pk-muted) !important; }
}

@media (max-width: 767px) {
	.pk-topbar-inner { flex-direction: column; justify-content: center; gap: 6px; text-align: center; }
	.pk-topbar-tagline { display: none; }
	.pk-topbar-links { justify-content: center; }
}

/* --------------------------------------------------------------------------
   Hero (หัวหน้าเพจ)
   -------------------------------------------------------------------------- */
.pk-hero {
	position: relative;
	padding: 72px 0 64px;
	background-size: cover;
	background-position: center;
	text-align: center;
	color: #fff;
	isolation: isolate;
	overflow: hidden;
}
.pk-hero::before {
	content: ""; position: absolute; inset: 0; z-index: -1;
	background: linear-gradient(120deg, rgba(23, 20, 15, .82) 0%, rgba(138, 100, 32, .78) 60%, rgba(180, 135, 50, .6) 100%);
}
.pk-hero::after {
	content: ""; position: absolute; left: 50%; bottom: -1px; transform: translateX(-50%);
	width: 120px; height: 4px; border-radius: 4px 4px 0 0; background: var(--pk-gradient);
}
.pk-hero-sm { padding: 54px 0 48px; }
.pk-hero-kicker {
	display: inline-flex; align-items: center; gap: 8px;
	padding: 5px 14px; margin-bottom: 14px; border-radius: 999px;
	font-family: 'Noto Sans Thai', sans-serif; font-size: 14px; font-weight: 600;
	background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .3);
	backdrop-filter: blur(4px);
}
.pk-hero-kicker i { color: var(--pk-gold-2); }
.pk-hero-title { color: #fff !important; font-size: clamp(30px, 5vw, 46px) !important; font-weight: 700 !important; line-height: 1.2 !important; margin: 0 0 10px !important; letter-spacing: -.5px; }
.pk-hero-sub { color: rgba(255, 255, 255, .9) !important; font-size: 17px !important; max-width: 640px; margin: 0 auto !important; }

/* --------------------------------------------------------------------------
   หน้าสินค้า: หมวด + ค้นหา + การ์ดสินค้า
   -------------------------------------------------------------------------- */
.pk-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 28px; }
.pk-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pk-chip {
	display: inline-flex; align-items: center; gap: 8px;
	padding: 9px 16px; border-radius: 999px;
	font-family: 'Noto Sans Thai', sans-serif; font-size: 15px; font-weight: 600;
	color: var(--pk-ink) !important; text-decoration: none !important;
	background: #fff; border: 1px solid var(--pk-line);
	transition: all .2s ease;
}
.pk-chip:hover { border-color: var(--pk-gold); color: var(--pk-gold-dark) !important; transform: translateY(-1px); }
.pk-chip.active { color: #fff !important; background: var(--pk-gradient); border-color: transparent; box-shadow: 0 8px 18px rgba(180, 135, 50, .3); }
.pk-chip-count { min-width: 24px; padding: 1px 7px; border-radius: 999px; font-size: 12px; text-align: center; background: var(--pk-gold-soft); color: var(--pk-gold-dark); }
.pk-chip.active .pk-chip-count { background: rgba(255, 255, 255, .25); color: #fff; }

.pk-search { position: relative; margin: 0; flex: 0 1 300px; }
.pk-search i { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--pk-muted); pointer-events: none; }
.pk-search input {
	width: 100%; height: 44px; padding: 0 16px 0 42px; border-radius: 999px;
	font-family: 'Noto Sans Thai', sans-serif; font-size: 15px;
	border: 1px solid var(--pk-line); background: #fff; outline: none;
	transition: border-color .2s ease, box-shadow .2s ease;
}
.pk-search input:focus { border-color: var(--pk-gold); box-shadow: 0 0 0 4px rgba(180, 135, 50, .15); }

.pk-products-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }

.pk-products { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 991px) { .pk-products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; } }
@media (max-width: 575px) { .pk-products { grid-template-columns: 1fr; } }

.pk-product {
	display: flex; flex-direction: column;
	background: #fff; border: 1px solid var(--pk-line); border-radius: var(--pk-radius);
	overflow: hidden; text-decoration: none !important; color: var(--pk-ink) !important;
	box-shadow: var(--pk-shadow);
	transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
	animation: pk-rise .6s ease both; animation-delay: calc(var(--i, 0) * 60ms);
}
.pk-product[hidden] { display: none; }
.pk-product:hover { transform: translateY(-6px); box-shadow: var(--pk-shadow-lg); border-color: rgba(180, 135, 50, .45); }
.pk-product-media { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--pk-gold-soft); }
.pk-product-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s ease; }
.pk-product:hover .pk-product-media img { transform: scale(1.07); }
.pk-product-media::after {
	content: ""; position: absolute; inset: 0;
	background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, .25));
	opacity: 0; transition: opacity .3s ease;
}
.pk-product:hover .pk-product-media::after { opacity: 1; }
.pk-product-badge {
	position: absolute; top: 12px; left: 12px; z-index: 1;
	padding: 4px 12px; border-radius: 999px;
	font-family: 'Noto Sans Thai', sans-serif; font-size: 12px; font-weight: 700; color: #fff;
	background: rgba(23, 20, 15, .72); backdrop-filter: blur(4px);
}
.pk-product-body { display: flex; flex-direction: column; gap: 10px; flex: 1; padding: 16px 18px 18px; }
.pk-product-title {
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
	font-size: 17px; font-weight: 600; line-height: 1.45; min-height: 2.9em;
}
.pk-product-more { margin-top: auto; font-family: 'Noto Sans Thai', sans-serif; font-size: 14px; font-weight: 700; color: var(--pk-gold-dark); }
.pk-product-more i { margin-left: 4px; transition: transform .25s ease; }
.pk-product:hover .pk-product-more i { transform: translateX(5px); }

.pk-products-empty { text-align: center; padding: 50px 20px; color: var(--pk-muted); font-family: 'Noto Sans Thai', sans-serif; }
.pk-products-empty[hidden] { display: none; }
.pk-products-empty i { font-size: 40px; color: var(--pk-gold); margin-bottom: 10px; }

@keyframes pk-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* แถบ CTA ท้ายหน้า */
.pk-band { position: relative; padding: 60px 0; background: var(--pk-dark); color: #fff; overflow: hidden; isolation: isolate; }
.pk-band::before {
	content: ""; position: absolute; z-index: -1; width: 520px; height: 520px; right: -160px; top: -260px; border-radius: 50%;
	background: radial-gradient(circle, rgba(233, 211, 109, .35), transparent 65%);
}
.pk-band-head { text-align: center; margin-bottom: 28px; }
.pk-band-head h2 { color: #fff !important; font-size: clamp(22px, 3vw, 30px) !important; font-weight: 700; margin: 0 0 6px !important; }
.pk-band-head p { color: rgba(255, 255, 255, .75) !important; }

/* --------------------------------------------------------------------------
   การ์ดปุ่มติดต่อ (widget-btn-contact.php)
   -------------------------------------------------------------------------- */
.pk-cta { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.pk-cta-card {
	--c1: var(--pk-gold); --c2: var(--pk-gold-2);
	position: relative; overflow: hidden; isolation: isolate;
	display: flex; align-items: center; gap: 14px;
	padding: 18px 18px 18px 16px; border-radius: var(--pk-radius);
	color: #fff !important; text-decoration: none !important;
	background: linear-gradient(135deg, var(--c1), var(--c2));
	box-shadow: 0 12px 26px -8px var(--c1);
	transition: transform .3s cubic-bezier(.2, .8, .2, 1), box-shadow .3s ease;
	animation: pk-rise .6s ease both; animation-delay: calc(var(--i, 0) * 90ms);
}
.pk-cta-phone { --c1: #f76707; --c2: #ffa94d; }
.pk-cta-messenger { --c1: #0a66ff; --c2: #a334fa; }
.pk-cta-line { --c1: #00a845; --c2: #06c755; }
.pk-cta-mail { --c1: #495057; --c2: #868e96; }

/* แสงวิ่งผ่านการ์ด */
.pk-cta-card::before {
	content: ""; position: absolute; z-index: -1; top: 0; left: -75%; width: 50%; height: 100%;
	background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .35), transparent);
	transform: skewX(-20deg);
	animation: pk-shine 4.5s ease-in-out infinite; animation-delay: calc(var(--i, 0) * .8s + 1s);
}
.pk-cta-card::after {
	content: ""; position: absolute; z-index: -1; right: -30px; bottom: -40px; width: 130px; height: 130px; border-radius: 50%;
	background: rgba(255, 255, 255, .12); transition: transform .4s ease;
}
.pk-cta-card:hover { transform: translateY(-5px) scale(1.015); box-shadow: 0 20px 34px -10px var(--c1); }
.pk-cta-card:hover::after { transform: scale(1.5); }

.pk-cta-icon {
	position: relative; flex: none; display: grid; place-items: center;
	width: 54px; height: 54px; border-radius: 16px; font-size: 26px;
	background: rgba(255, 255, 255, .22); border: 1px solid rgba(255, 255, 255, .35);
	backdrop-filter: blur(4px);
}
.pk-cta-phone .pk-cta-icon i { animation: pk-ring 2.6s ease-in-out infinite; }
.pk-cta-line .pk-cta-icon::after, .pk-cta-messenger .pk-cta-icon::after {
	content: ""; position: absolute; inset: -1px; border-radius: inherit; border: 2px solid rgba(255, 255, 255, .7);
	animation: pk-pulse 2.2s ease-out infinite;
}
.pk-cta-text { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.pk-cta-title { font-family: 'Noto Sans Thai', sans-serif; font-size: 14px; opacity: .92; }
.pk-cta-value { font-family: 'Noto Sans Thai', sans-serif; font-size: 21px; font-weight: 700; letter-spacing: .2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pk-cta-badge {
	position: absolute; top: 10px; right: 12px;
	display: inline-flex; align-items: center; gap: 5px;
	padding: 2px 9px; border-radius: 999px; font-family: 'Noto Sans Thai', sans-serif; font-size: 11px; font-weight: 700;
	background: rgba(255, 255, 255, .95); color: var(--c1);
}
.pk-cta-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: pk-blink 1.4s ease-in-out infinite; }
.pk-cta-arrow {
	flex: none; display: grid; place-items: center; width: 34px; height: 34px; margin-top: 18px; border-radius: 50%;
	background: rgba(255, 255, 255, .2); transition: transform .3s ease, background .3s ease;
}
.pk-cta-card:hover .pk-cta-arrow { transform: translateX(4px); background: rgba(255, 255, 255, .35); }

@keyframes pk-shine { 0%, 60% { left: -75%; } 85%, 100% { left: 130%; } }
@keyframes pk-ring {
	0%, 50%, 100% { transform: rotate(0); }
	5%, 15%, 25% { transform: rotate(-14deg); }
	10%, 20%, 30% { transform: rotate(14deg); }
	35% { transform: rotate(0); }
}
@keyframes pk-pulse { 0% { opacity: .9; transform: scale(1); } 100% { opacity: 0; transform: scale(1.45); } }
@keyframes pk-blink { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }

/* --------------------------------------------------------------------------
   ปุ่มติดต่อลอย (_contact_fab.php) — แสดงตลอด ไม่ต้องกด toggle
   -------------------------------------------------------------------------- */
.pk-fab {
	position: fixed; right: 18px; bottom: 18px; z-index: 1040;
	display: flex; flex-direction: column; align-items: flex-end; gap: 10px;
}
.pk-fab-item {
	--c: var(--pk-gold);
	display: flex; align-items: center; gap: 10px;
	padding: 6px 16px 6px 6px; border-radius: 999px;
	background: rgba(255, 255, 255, .96); backdrop-filter: blur(8px);
	border: 1px solid rgba(0, 0, 0, .06);
	box-shadow: 0 10px 28px rgba(20, 15, 5, .18);
	color: var(--pk-ink) !important; text-decoration: none !important;
	transition: transform .25s ease, box-shadow .25s ease;
	animation: pk-fab-in .5s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--i, 0) * 120ms + .3s);
}
.pk-fab-item:hover { transform: translateX(-4px); box-shadow: 0 14px 32px rgba(20, 15, 5, .25); }
.pk-fab-phone { --c: var(--pk-phone); }
.pk-fab-phone2 { --c: #f59f00; }
.pk-fab-line { --c: var(--pk-line-green); }
.pk-fab-icon {
	position: relative; flex: none; display: grid; place-items: center;
	width: 44px; height: 44px; border-radius: 50%; color: #fff; font-size: 20px; background: var(--c);
}
.pk-fab-line .pk-fab-icon { font-size: 24px; }
.pk-fab-icon::after {
	content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--c);
	animation: pk-pulse 2.4s ease-out infinite; animation-delay: calc(var(--i, 0) * .4s);
}
.pk-fab-phone .pk-fab-icon i { animation: pk-ring 3s ease-in-out infinite; }
.pk-fab-text { display: flex; flex-direction: column; line-height: 1.25; font-family: 'Noto Sans Thai', sans-serif; }
.pk-fab-label { font-size: 12px; color: var(--pk-muted); }
.pk-fab-value { font-size: 15px; font-weight: 700; color: var(--pk-ink); white-space: nowrap; }
.pk-fab-short { display: none; }

@keyframes pk-fab-in { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: none; } }

/* ปุ่มเลื่อนขึ้นบนของธีม ย้ายไปซ้ายเพื่อไม่ให้ทับปุ่มติดต่อ */
html .scroll-to-top { right: auto; left: 18px; border-radius: 12px 12px 0 0; }

/* มือถือ: แถบปุ่มด้านล่างจอ */
@media (max-width: 767px) {
	:root { --pk-fab-bar-h: 64px; }
	body { padding-bottom: var(--pk-fab-bar-h); }
	.pk-fab {
		left: 0; right: 0; bottom: 0; flex-direction: row; align-items: stretch; gap: 8px;
		padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
		background: rgba(255, 255, 255, .97); backdrop-filter: blur(10px);
		border-top: 1px solid var(--pk-line); box-shadow: 0 -8px 24px rgba(20, 15, 5, .1);
	}
	.pk-fab-item {
		flex: 1 1 0; justify-content: center; gap: 8px; min-height: 48px; padding: 0 10px;
		border-radius: 14px; border: 0; color: #fff !important; background: var(--c); box-shadow: none;
		animation-name: pk-rise;
	}
	.pk-fab-item:hover { transform: none; box-shadow: none; }
	.pk-fab-icon { width: auto; height: auto; background: none; font-size: 18px; }
	.pk-fab-line .pk-fab-icon { font-size: 22px; }
	.pk-fab-icon::after, .pk-fab-text { display: none; }
	html .scroll-to-top { display: none !important; }
	.pk-fab-short { display: inline; font-family: 'Noto Sans Thai', sans-serif; font-size: 15px; font-weight: 700; }
}

/* --------------------------------------------------------------------------
   หน้ารายละเอียดสินค้า (pd.php)
   -------------------------------------------------------------------------- */
.pk-pd { padding: 40px 0 50px; }
.pk-pd-admin { text-align: right; margin-bottom: 16px; }

.pk-pd-media { position: sticky; top: 100px; }
@media (max-width: 991px) { .pk-pd-media { position: static; } }
.pk-pd-main {
	position: relative; display: block; width: 100%; padding: 0; border: 0; cursor: zoom-in;
	aspect-ratio: 4 / 3; overflow: hidden; border-radius: 22px; background: #fff;
	box-shadow: var(--pk-shadow-lg);
}
.pk-pd-main img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s ease; }
.pk-pd-main:hover img { transform: scale(1.04); }
.pk-pd-zoom, .pk-pd-count {
	position: absolute; bottom: 14px; display: inline-flex; align-items: center; gap: 6px;
	padding: 6px 12px; border-radius: 999px; font-family: 'Noto Sans Thai', sans-serif; font-size: 13px; font-weight: 600;
	color: #fff; background: rgba(23, 20, 15, .65); backdrop-filter: blur(6px);
}
.pk-pd-zoom { right: 14px; opacity: 0; transform: translateY(6px); transition: opacity .25s ease, transform .25s ease; }
.pk-pd-main:hover .pk-pd-zoom, .pk-pd-main:focus-visible .pk-pd-zoom { opacity: 1; transform: none; }
.pk-pd-count { left: 14px; }
.pk-pd-thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; padding: 4px 2px 6px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.pk-pd-thumbs::-webkit-scrollbar { display: none; }
.pk-pd-thumb {
	flex: 0 0 84px; height: 84px; padding: 0; border: 2px solid transparent; border-radius: 14px; overflow: hidden; cursor: pointer;
	background: #fff; opacity: .65; scroll-snap-align: start; transition: opacity .2s ease, border-color .2s ease, transform .2s ease;
}
.pk-pd-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pk-pd-thumb:hover { opacity: 1; transform: translateY(-2px); }
.pk-pd-thumb.active { opacity: 1; border-color: var(--pk-gold); box-shadow: 0 6px 14px rgba(180, 135, 50, .3); }

.pk-pd-info {
	padding: 26px; border-radius: 22px; background: #fff; border: 1px solid var(--pk-line); box-shadow: var(--pk-shadow);
	font-family: 'Noto Sans Thai', sans-serif;
}
.pk-pd-cate {
	display: inline-flex; align-items: center; gap: 6px; margin-bottom: 10px; padding: 4px 12px; border-radius: 999px;
	font-size: 13px; font-weight: 700; color: var(--pk-gold-dark) !important; text-decoration: none !important; background: var(--pk-gold-soft);
}
.pk-pd-title { font-size: clamp(24px, 3vw, 32px) !important; line-height: 1.3 !important; font-weight: 700 !important; color: var(--pk-ink) !important; margin: 0 0 8px !important; letter-spacing: -.3px; }
.pk-pd-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; font-size: 14px; color: var(--pk-muted); }
.pk-pd-stars { color: #f5b301; letter-spacing: 2px; }
.pk-pd-price {
	display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px;
	margin: 18px 0; padding: 16px 18px; border-radius: 16px;
	background: linear-gradient(120deg, var(--pk-gold-soft), #fff); border: 1px solid var(--pk-line);
}
.pk-pd-price-label { font-size: 14px; color: var(--pk-muted); }
.pk-pd-price-value { font-size: 28px; font-weight: 700; color: var(--pk-gold-dark); line-height: 1.2; }
.pk-pd-price-value.is-ask { font-size: 22px; }
.pk-pd-price-note { flex-basis: 100%; font-size: 13px; color: var(--pk-muted); }
.pk-pd-points { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 8px; }
.pk-pd-points li { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--pk-ink); }
.pk-pd-points i { width: 30px; height: 30px; display: grid; place-items: center; flex: none; border-radius: 9px; font-size: 14px; color: var(--pk-gold-dark); background: var(--pk-gold-soft); }
.pk-pd-actions { display: grid; gap: 10px; }
.pk-pd-btn {
	--c: var(--pk-gold);
	position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; gap: 10px;
	min-height: 52px; padding: 10px 18px; border-radius: 14px;
	font-size: 16px; font-weight: 700; color: #fff !important; text-decoration: none !important;
	background: var(--c); box-shadow: 0 10px 22px -10px var(--c);
	transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}
.pk-pd-btn i { font-size: 20px; }
.pk-pd-btn:hover { transform: translateY(-2px); filter: brightness(1.05); box-shadow: 0 14px 26px -10px var(--c); }
.pk-pd-btn.is-line { --c: var(--pk-line-green); }
.pk-pd-btn.is-line::before {
	content: ""; position: absolute; top: 0; left: -75%; width: 50%; height: 100%;
	background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .35), transparent); transform: skewX(-20deg);
	animation: pk-shine 4s ease-in-out infinite;
}
.pk-pd-btn.is-phone { --c: var(--pk-phone); }
.pk-pd-btn.is-phone i { animation: pk-ring 2.6s ease-in-out infinite; }
.pk-pd-btn.is-messenger { --c: var(--pk-messenger); }
.pk-pd-share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--pk-line); font-size: 14px; color: var(--pk-muted); }
.pk-pd-share span:first-child { margin-right: 4px; }
.pk-pd-share a, .pk-pd-share button {
	display: grid; place-items: center; width: 38px; height: 38px; padding: 0; border: 0; border-radius: 50%; cursor: pointer;
	font-size: 17px; color: #fff !important; text-decoration: none !important; transition: transform .2s ease;
}
.pk-pd-share a:hover, .pk-pd-share button:hover { transform: translateY(-2px); }
.pk-pd-share .is-line { background: var(--pk-line-green); font-size: 20px; }
.pk-pd-share .is-facebook { background: #1877f2; }
.pk-pd-share .is-copy { background: #495057; font-size: 15px; }
.pk-pd-copied { font-size: 13px; font-weight: 700; color: #2e7d32; }
.pk-pd-copied[hidden] { display: none; }

.pk-pd-detail { margin-top: 10px; border-radius: 22px; background: #fff; border: 1px solid var(--pk-line); box-shadow: var(--pk-shadow); overflow: hidden; }
.pk-pd-detail-head { padding: 18px 26px; font-size: 19px; font-weight: 700; color: var(--pk-ink); border-bottom: 1px solid var(--pk-line); background: var(--pk-bg-soft); }
.pk-pd-detail-head i { color: var(--pk-gold); margin-right: 6px; }
.pk-pd-content { padding: clamp(18px, 3vw, 30px); font-size: 17px; line-height: 1.9; color: var(--pk-ink); }
.pk-pd-content p { line-height: 1.9 !important; margin: 0 0 12px !important; }
.pk-pd-content img { max-width: 100% !important; height: auto !important; border-radius: 16px; margin: 14px 0; box-shadow: var(--pk-shadow); }
.pk-pd-content table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 15px; }
.pk-pd-content table td, .pk-pd-content table th { border: 1px solid var(--pk-line); padding: 8px 12px; }
.pk-pd-content table tr:nth-child(even) td { background: var(--pk-bg-soft); }

.pk-section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 10px; margin-bottom: 22px; }
.pk-section-head h2 { font-size: clamp(22px, 3vw, 30px) !important; font-weight: 700; color: var(--pk-ink); margin: 0 !important; }
.pk-section-head a { font-family: 'Noto Sans Thai', sans-serif; font-weight: 700; color: var(--pk-gold-dark); text-decoration: none; }
.pk-section-head a i { transition: transform .2s ease; }
.pk-section-head a:hover i { transform: translateX(4px); }

/* Lightbox */
.pk-lightbox { position: fixed; inset: 0; z-index: 10030; display: flex; align-items: center; justify-content: center; padding: 60px 16px; background: rgba(12, 10, 6, .92); animation: cc-pop .2s ease; }
.pk-lightbox[hidden] { display: none; }
.pk-lb-img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 10px; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); }
.pk-lb-close, .pk-lb-nav {
	position: absolute; z-index: 1; display: grid; place-items: center; width: 48px; height: 48px; padding: 0; border: 0; border-radius: 50%; cursor: pointer;
	font-size: 20px; color: #fff; background: rgba(23, 20, 15, .55); backdrop-filter: blur(4px); transition: background .2s ease;
}
.pk-lb-close:hover, .pk-lb-nav:hover { background: rgba(255, 255, 255, .28); }
.pk-lb-close { top: 14px; right: 14px; }
.pk-lb-nav { top: 50%; transform: translateY(-50%); }
.pk-lb-nav.is-prev { left: 14px; }
.pk-lb-nav.is-next { right: 14px; }
.pk-lb-counter { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); color: rgba(255, 255, 255, .8); font-family: 'Noto Sans Thai', sans-serif; font-size: 14px; }

/* --------------------------------------------------------------------------
   หน้าแรก: ประโยชน์ของรั้วลวดหนาม + เครื่องคำนวณ
   -------------------------------------------------------------------------- */
.pk-benefit { position: relative; padding: 80px 0 50px; background: linear-gradient(180deg, var(--pk-bg-soft) 0%, #fff 100%); overflow: hidden; }
.pk-benefit::before {
	content: ""; position: absolute; width: 600px; height: 600px; left: -250px; top: -260px; border-radius: 50%;
	background: radial-gradient(circle, rgba(233, 211, 109, .25), transparent 65%); pointer-events: none;
}
.pk-kicker {
	display: inline-flex; align-items: center; gap: 8px; margin-bottom: 10px; padding: 5px 14px; border-radius: 999px;
	font-size: 14px; font-weight: 700; color: var(--pk-gold-dark); background: var(--pk-gold-soft); border: 1px solid var(--pk-line);
}
.pk-benefit-head { position: relative; text-align: center; max-width: 680px; margin: 0 auto 44px; }
.pk-benefit-head h2 { font-size: clamp(28px, 4vw, 40px) !important; font-weight: 700 !important; line-height: 1.25 !important; margin: 0 0 8px !important; letter-spacing: -.4px;
	background: linear-gradient(120deg, var(--pk-gold-dark), var(--pk-gold) 60%, #cda54a); -webkit-background-clip: text; background-clip: text; color: transparent !important; }
.pk-benefit-head p { color: var(--pk-muted) !important; font-size: 17px; }

.pk-benefit-grid { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; margin-bottom: 50px; }
@media (max-width: 991px) { .pk-benefit-grid { grid-template-columns: 1fr; max-width: 560px; margin-left: auto; margin-right: auto; } }

.pk-benefit-card {
	position: relative; display: flex; flex-direction: column; overflow: hidden;
	background: #fff; border-radius: 22px; border: 1px solid var(--pk-line); box-shadow: var(--pk-shadow);
	transition: transform .35s ease, box-shadow .35s ease;
}
.pk-benefit-card::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--pk-gradient); transform: scaleX(0); transform-origin: left; transition: transform .4s ease; z-index: 2; }
.pk-benefit-card:hover { transform: translateY(-8px); box-shadow: var(--pk-shadow-lg); }
.pk-benefit-card:hover::after { transform: scaleX(1); }
.pk-benefit-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.pk-benefit-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .7s ease; }
.pk-benefit-card:hover .pk-benefit-media img { transform: scale(1.08); }
.pk-benefit-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(23, 20, 15, .55)); }
.pk-benefit-num { position: absolute; right: 16px; bottom: 6px; z-index: 1; font-size: 54px; font-weight: 800; line-height: 1; color: rgba(255, 255, 255, .9); text-shadow: 0 4px 16px rgba(0, 0, 0, .3); letter-spacing: -2px; }
.pk-benefit-body { position: relative; padding: 34px 24px 26px; flex: 1; }
.pk-benefit-icon {
	position: absolute; top: -28px; left: 24px; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px;
	font-size: 22px; color: #fff; background: var(--pk-gradient); box-shadow: 0 10px 22px rgba(180, 135, 50, .4); border: 3px solid #fff;
	transition: transform .35s ease;
}
.pk-benefit-card:hover .pk-benefit-icon { transform: rotate(-8deg) scale(1.08); }
.pk-benefit-body h3 { font-size: 21px !important; font-weight: 700 !important; color: var(--pk-ink) !important; margin: 0 0 10px !important; line-height: 1.35 !important; }
.pk-benefit-body p { font-size: 15.5px; line-height: 1.75 !important; color: var(--pk-muted) !important; }

.pk-wire { position: relative; }
.pk-wire-card, .pk-calc { height: 100%; padding: clamp(22px, 3vw, 32px); border-radius: 22px; background: #fff; border: 1px solid var(--pk-line); box-shadow: var(--pk-shadow); }
.pk-wire-card h3, .pk-calc h3 { font-size: clamp(21px, 2.5vw, 26px) !important; font-weight: 700 !important; color: var(--pk-ink) !important; margin: 0 0 10px !important; }
.pk-wire-card { display: flex; flex-direction: column; align-items: flex-start; }
.pk-wire-card > p { color: var(--pk-muted) !important; line-height: 1.75 !important; }
.pk-wire-card .pk-spec { align-self: stretch; }
.pk-wire-card .pk-wire-fit { margin-top: auto; align-self: stretch; }

.pk-spec { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 22px 0; }
@media (max-width: 480px) { .pk-spec { grid-template-columns: 1fr; } }
.pk-spec-item { display: flex; flex-direction: column; gap: 4px; padding: 16px 12px; border-radius: 16px; text-align: center; background: var(--pk-gold-soft); border: 1px solid var(--pk-line); transition: transform .25s ease, background .25s ease; }
.pk-spec-item:hover { transform: translateY(-3px); background: #fff; }
.pk-spec-value { font-size: 26px; font-weight: 800; line-height: 1.1; color: var(--pk-gold-dark); }
.pk-spec-value small { font-size: 14px; font-weight: 600; }
.pk-spec-label { font-size: 13px; color: var(--pk-muted); }

.pk-wire-fit { display: flex; gap: 14px; padding: 18px; border-radius: 16px; background: var(--pk-dark); color: rgba(255, 255, 255, .8); font-size: 15px; line-height: 1.75; }
.pk-wire-fit i { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; font-size: 18px; color: var(--pk-dark); background: var(--pk-gold-2); }
.pk-wire-fit strong { display: block; color: #fff; margin-bottom: 2px; }

.pk-steps { list-style: none; counter-reset: pk-step; padding: 0; margin: 0 0 20px; display: grid; gap: 8px; }
.pk-steps li { counter-increment: pk-step; display: flex; align-items: center; gap: 12px; font-size: 15px; color: var(--pk-ink); }
.pk-steps li::before {
	content: counter(pk-step); flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
	font-size: 13px; font-weight: 800; color: #fff; background: var(--pk-gradient);
}

.pk-calc-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 16px; border-radius: 16px; background: var(--pk-bg-soft); border: 1px solid var(--pk-line); }
@media (max-width: 480px) { .pk-calc-form { grid-template-columns: 1fr; } }
.pk-calc-form label, .pk-calc-roll { display: flex; flex-direction: column; gap: 6px; margin: 0; font-size: 13px; font-weight: 600; color: var(--pk-muted); }
.pk-calc-form input[type="number"] {
	width: 100%; height: 46px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--pk-line); background: #fff;
	font: inherit; font-size: 18px; font-weight: 700; color: var(--pk-ink); outline: none; transition: border-color .2s ease, box-shadow .2s ease;
}
.pk-calc-form input[type="number"]:focus { border-color: var(--pk-gold); box-shadow: 0 0 0 4px rgba(180, 135, 50, .15); }
.pk-seg { display: flex; height: 46px; padding: 4px; border-radius: 12px; background: #fff; border: 1px solid var(--pk-line); }
.pk-seg label { flex: 1; position: relative; margin: 0; }
.pk-seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.pk-seg span { display: grid; place-items: center; height: 100%; border-radius: 9px; font-size: 15px; font-weight: 700; color: var(--pk-muted); transition: background .2s ease, color .2s ease; }
.pk-seg input:checked + span { color: #fff; background: var(--pk-gradient); box-shadow: 0 4px 10px rgba(180, 135, 50, .3); }
.pk-seg input:focus-visible + span { outline: 3px solid rgba(180, 135, 50, .4); }

.pk-calc-result {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px;
	margin-top: 14px; padding: 18px 20px; border-radius: 16px; color: #fff;
	background: linear-gradient(120deg, var(--pk-dark) 0%, #3a2e14 100%);
	position: relative; overflow: hidden;
}
.pk-calc-result::after { content: ""; position: absolute; right: -40px; top: -60px; width: 180px; height: 180px; border-radius: 50%; background: radial-gradient(circle, rgba(233, 211, 109, .35), transparent 70%); pointer-events: none; }
.pk-calc-result-label { font-size: 13px; color: rgba(255, 255, 255, .7); }
.pk-calc-result-value { font-size: 40px; font-weight: 800; line-height: 1.1; color: var(--pk-gold-2); }
.pk-calc-result-value small { font-size: 18px; font-weight: 600; color: #fff; }
.pk-calc-result-note { font-size: 13px; color: rgba(255, 255, 255, .7); }
.pk-calc-cta {
	position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 999px;
	font-weight: 700; color: #fff !important; text-decoration: none !important; background: var(--pk-line-green);
	box-shadow: 0 8px 20px rgba(6, 199, 85, .35); transition: transform .2s ease;
}
.pk-calc-cta i { font-size: 20px; }
.pk-calc-cta:hover { transform: translateY(-2px); }

/* แสดงเมื่อเลื่อนมาถึง (เปิดใช้เมื่อ JS ทำงานเท่านั้น) */
.pk-reveal-on .pk-reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease, box-shadow .35s ease; transition-delay: calc(var(--i, 0) * 120ms); }
.pk-reveal-on .pk-reveal.is-visible { opacity: 1; transform: none; }
.pk-reveal-on .pk-benefit-card.is-visible:hover { transform: translateY(-8px); transition-delay: 0s; }

/* --------------------------------------------------------------------------
   หน้าติดต่อเรา
   -------------------------------------------------------------------------- */
.pk-contact-intro { margin-bottom: 22px; }
.pk-contact-intro h2 { font-size: clamp(24px, 3vw, 30px) !important; font-weight: 700; color: var(--pk-ink); margin: 0 0 6px !important; }
.pk-contact-intro p { color: var(--pk-muted) !important; }

.pk-contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 575px) { .pk-contact-grid { grid-template-columns: 1fr; } }

.pk-contact-card {
	--c: var(--pk-gold);
	position: relative; overflow: hidden;
	display: flex; align-items: center; gap: 14px;
	padding: 18px; border-radius: var(--pk-radius);
	background: #fff; border: 1px solid var(--pk-line); box-shadow: var(--pk-shadow);
	color: var(--pk-ink) !important; text-decoration: none !important;
	transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
	animation: pk-rise .6s ease both; animation-delay: calc(var(--i, 0) * 70ms);
}
.pk-contact-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--c); transform: scaleY(0); transition: transform .3s ease; }
.pk-contact-card:hover { transform: translateY(-4px); box-shadow: var(--pk-shadow-lg); border-color: transparent; }
.pk-contact-card:hover::before { transform: scaleY(1); }
.pk-contact-card.is-phone { --c: var(--pk-phone); }
.pk-contact-card.is-line { --c: var(--pk-line-green); }
.pk-contact-card.is-messenger { --c: var(--pk-messenger); }
.pk-contact-card.is-mail { --c: #7048e8; }
.pk-contact-card.is-facebook { --c: #1877f2; }
.pk-contact-icon {
	flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; font-size: 22px;
	color: var(--c); background: color-mix(in srgb, var(--c) 12%, #fff);
	transition: background .3s ease, color .3s ease;
}
.pk-contact-card:hover .pk-contact-icon { background: var(--c); color: #fff; }
.pk-contact-body { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.pk-contact-label { font-size: 13px; color: var(--pk-muted); font-family: 'Noto Sans Thai', sans-serif; }
.pk-contact-value { font-size: 17px; font-weight: 700; font-family: 'Noto Sans Thai', sans-serif; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pk-contact-card.is-mail .pk-contact-value { white-space: normal; word-break: break-all; font-size: 15px; }
.pk-contact-action { flex: none; font-size: 13px; font-weight: 700; color: var(--c); font-family: 'Noto Sans Thai', sans-serif; white-space: nowrap; }
.pk-contact-action i { transition: transform .25s ease; }
.pk-contact-card:hover .pk-contact-action i { transform: translateX(4px); }

.pk-qr-card, .pk-fb-card {
	background: #fff; border: 1px solid var(--pk-line); border-radius: var(--pk-radius); box-shadow: var(--pk-shadow);
	padding: 22px; text-align: center;
}
.pk-qr-card img { width: 180px; height: 180px; padding: 10px; border-radius: 16px; border: 1px solid var(--pk-line); background: #fff; transition: transform .3s ease; }
.pk-qr-card a:hover img { transform: scale(1.04); }
.pk-qr-title { margin-top: 12px; font-size: 18px; font-weight: 700; color: var(--pk-ink); }
.pk-qr-title i { color: var(--pk-line-green); }
.pk-qr-sub { color: var(--pk-muted); font-size: 15px; }
.pk-fb-card { padding: 14px; overflow: hidden; }
.consent-placeholder:not([hidden]) ~ .fb-page { display: none; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
#footer.pk-footer {
	position: relative; margin-top: 0; padding: 0; border-top: 0;
	background: var(--pk-dark); color: rgba(255, 255, 255, .72); font-size: 15px;
}
#footer.pk-footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--pk-gradient); }
#footer.pk-footer a { color: rgba(255, 255, 255, .85); text-decoration: none; transition: color .2s ease; }
#footer.pk-footer a:hover { color: var(--pk-gold-2); }
#footer.pk-footer p { color: rgba(255, 255, 255, .72); }
.pk-footer-main { padding-top: 64px; }
.pk-footer-logo img { width: 220px; height: auto; display: block; margin-bottom: 18px; }
.pk-footer-about { line-height: 1.7 !important; margin-bottom: 20px !important; max-width: 360px; }
.pk-footer-social { display: flex; gap: 10px; }
.pk-footer-social a {
	display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; font-size: 18px;
	background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1);
	transition: transform .2s ease, background .2s ease !important;
}
#footer.pk-footer .pk-footer-social a:hover { background: var(--pk-gradient); color: #fff; transform: translateY(-3px); }
.pk-footer-title {
	position: relative; margin-bottom: 18px; padding-bottom: 10px;
	font-size: 17px; font-weight: 700; color: #fff;
}
.pk-footer-title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 32px; height: 3px; border-radius: 3px; background: var(--pk-gradient); }
.pk-footer-contact, .pk-footer-links { list-style: none; padding: 0; margin: 0; }
.pk-footer-contact li { display: flex; gap: 12px; margin-bottom: 12px; line-height: 1.5; word-break: break-word; }
.pk-footer-contact li i { flex: none; width: 18px; margin-top: 4px; color: var(--pk-gold-2); text-align: center; }
.pk-footer-links li { margin-bottom: 9px; }
.pk-footer-links a { display: inline-flex; align-items: center; gap: 8px; }
.pk-footer-links a::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--pk-gold); transition: transform .2s ease; }
.pk-footer-links a:hover::before { transform: scale(1.5); }
.pk-footer-qr { display: flex; align-items: center; gap: 14px; line-height: 1.5; }
.pk-footer-qr img { width: 96px; height: 96px; padding: 6px; border-radius: 12px; background: #fff; flex: none; }
.pk-footer-qr strong { color: var(--pk-gold-2); }
.pk-footer-stats { padding: 4px 14px; border-radius: 14px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .08); }
.pk-footer-stats > div { color: rgba(255, 255, 255, .72) !important; }
.pk-footer-stats > div > div { margin-top: 4px !important; font-size: 14px !important; }
.pk-footer-stats td { padding: 3px 0; border-bottom: 1px dashed rgba(255, 255, 255, .08); }
.pk-footer-stats tr:last-child td { border-bottom: 0; color: var(--pk-gold-2); font-weight: 700; }
.pk-footer-stats td + td { text-align: right; }
.pk-footer-tags { padding: 22px 0 30px; border-top: 1px solid rgba(255, 255, 255, .08); }
#footer.pk-footer .pk-footer-tags .badge {
	font-family: 'Noto Sans Thai', sans-serif; font-weight: 500; font-size: 13px; padding: 6px 12px; margin: 0 4px 6px 0;
	color: rgba(255, 255, 255, .8); background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1);
}
#footer.pk-footer .pk-footer-tags .badge:hover { color: #fff; background: var(--pk-gold); }
.pk-footer-bottom { background: rgba(0, 0, 0, .3); padding: 16px 0; font-size: 14px; }
.pk-footer-bottom-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.pk-footer-legal { display: flex; flex-wrap: wrap; gap: 6px 18px; }
/* เว้นที่ด้านขวาให้ปุ่มติดต่อลอย ไม่ให้ทับลิงก์นโยบาย */
@media (min-width: 768px) { .pk-footer-bottom-inner { justify-content: flex-start; gap: 10px 28px; padding-right: 230px; } }

/* --------------------------------------------------------------------------
   หน้านโยบาย (Privacy / Cookie policy)
   -------------------------------------------------------------------------- */
.pk-legal { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 30px; align-items: start; }
@media (max-width: 991px) { .pk-legal { grid-template-columns: 1fr; } }
.pk-legal-toc {
	position: sticky; top: 90px; display: flex; flex-direction: column; gap: 2px;
	padding: 18px; border-radius: var(--pk-radius); background: #fff; border: 1px solid var(--pk-line); box-shadow: var(--pk-shadow);
	font-family: 'Noto Sans Thai', sans-serif; font-size: 14px;
}
@media (max-width: 991px) { .pk-legal-toc { position: static; } }
.pk-legal-toc-title { font-weight: 700; margin-bottom: 8px; color: var(--pk-ink); }
.pk-legal-toc a { padding: 6px 10px; border-radius: 8px; color: var(--pk-muted); text-decoration: none; }
.pk-legal-toc a:hover { background: var(--pk-gold-soft); color: var(--pk-gold-dark); }
.pk-legal-body {
	padding: clamp(20px, 4vw, 40px); border-radius: var(--pk-radius); background: #fff; border: 1px solid var(--pk-line); box-shadow: var(--pk-shadow);
	font-family: 'Noto Sans Thai', sans-serif; font-size: 16px; color: var(--pk-ink);
}
.pk-legal-body h2 { scroll-margin-top: 90px; font-size: 21px !important; font-weight: 700; color: var(--pk-ink); margin: 32px 0 12px !important; padding-top: 22px; border-top: 1px solid var(--pk-line); }
.pk-legal-body h2:first-of-type { margin-top: 24px !important; }
.pk-legal-body p { line-height: 1.8 !important; margin: 0 0 12px !important; }
.pk-legal-body ul { padding-left: 22px; margin: 0 0 12px; }
.pk-legal-body li { line-height: 1.8; margin-bottom: 4px; }
.pk-legal-body a { color: var(--pk-gold-dark); text-decoration: underline; }
.pk-legal-lead { font-size: 17px; padding: 16px 18px; border-radius: 14px; background: var(--pk-gold-soft); border-left: 4px solid var(--pk-gold); }
.pk-legal-note { font-size: 14px; color: var(--pk-muted) !important; }
.pk-legal-table { overflow-x: auto; margin-bottom: 14px; border: 1px solid var(--pk-line); border-radius: 14px; }
.pk-legal-table table { width: 100%; border-collapse: collapse; font-size: 14px; }
.pk-legal-table th { background: var(--pk-gold-soft); color: var(--pk-ink); font-weight: 700; text-align: left; padding: 10px 14px; white-space: nowrap; }
.pk-legal-table td { padding: 10px 14px; border-top: 1px solid var(--pk-line); vertical-align: top; line-height: 1.6; }
.pk-legal-cards { display: grid; gap: 12px; margin-bottom: 12px; }
.pk-legal-card { padding: 16px 18px; border: 1px solid var(--pk-line); border-radius: 14px; }
.pk-legal-card p { margin: 6px 0 0 !important; color: var(--pk-muted) !important; font-size: 15px; }
.pk-legal-card-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-weight: 700; }
.pk-legal-card-head i { color: var(--pk-gold); }
.pk-legal-card-head .cc-always { margin-left: auto; font-size: 12px; font-weight: 700; color: #2e7d32; background: #e8f5e9; padding: 3px 10px; border-radius: 999px; }
.pk-legal-contact { display: grid; gap: 8px; padding: 18px; border-radius: 14px; background: var(--pk-bg-soft); border: 1px solid var(--pk-line); }
.pk-legal-contact i { width: 20px; color: var(--pk-gold); }
.pk-legal-toc .cc-btn, .pk-legal-body .cc-btn { font-family: 'Noto Sans Thai', sans-serif; }

/* --------------------------------------------------------------------------
   หน้าแอดมิน: สถิติความยินยอม
   -------------------------------------------------------------------------- */
.pk-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
.pk-stat { padding: 18px; border-radius: var(--pk-radius); background: #fff; border: 1px solid var(--pk-line); box-shadow: var(--pk-shadow); }
.pk-stat-num { font-size: 30px; font-weight: 700; color: var(--pk-gold-dark); font-family: 'Noto Sans Thai', sans-serif; }
.pk-stat-label { font-size: 14px; color: var(--pk-muted); font-family: 'Noto Sans Thai', sans-serif; }
.pk-admin-card { padding: 20px; border-radius: var(--pk-radius); background: #fff; border: 1px solid var(--pk-line); box-shadow: var(--pk-shadow); }

/* --------------------------------------------------------------------------
   ลดการเคลื่อนไหวสำหรับผู้ที่ตั้งค่าไว้
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
	.pk-product, .pk-cta-card, .pk-fab-item, .pk-contact-card, .pk-lightbox { animation: none; }
	.pk-pd-btn.is-line::before, .pk-pd-btn.is-phone i { animation: none; }
	.pk-reveal-on .pk-reveal { opacity: 1; transform: none; transition: none; }
	.pk-cta-card::before, .pk-cta-icon::after, .pk-cta-icon i, .pk-fab-icon::after, .pk-fab-icon i, .pk-cta-dot { animation: none; }
	.pk-product, .pk-product-media img, .pk-cta-card, .pk-fab-item, .pk-contact-card { transition: none; }
}
