/* Sticky / single product — ขยายโลโก้ให้ห้อย ไม่ดันความสูง header */
.whb-sticked .whb-main-header,
.whb-sticked .whb-general-header,
.whb-sticked .whb-general-header-inner,
.whb-sticked .whb-column,
.whb-sticked .site-logo,
.whb-sticked .wd-sticky-logo,
.single-product .whb-main-header,
.single-product .whb-general-header,
.single-product .whb-general-header-inner,
.single-product .whb-column,
.single-product .site-logo,
.single-product .wd-sticky-logo {
	overflow: visible;
}

.whb-sticked .site-logo,
.whb-sticked .wd-sticky-logo,
.single-product .site-logo,
.single-product .wd-sticky-logo {
	max-height: none;
	height: auto;
}

.whb-sticked .wd-sticky-logo img,
.single-product .wd-sticky-logo img {
	max-height: none;
	height: 120px;
	width: auto;
	max-width: none;
	padding-top: 0;
	padding-bottom: 0;
	margin-bottom: -24px;
	object-fit: contain;
}

/* Product loop — กรอบรูป 1:1 (Woodmart 8 ไม่ใช้ --wd-thumb-ratio) */
.wd-product-thumb .wd-product-img-link.product-image-link {
	display: block;
	position: relative;
	aspect-ratio: 1 / 1;
	overflow: hidden;
}

.wd-product-thumb .wd-product-img-link.product-image-link > img,
.wd-product-thumb .wd-product-img-hover img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: contain;
	object-position: center;
	transform: none;
}

/* Logo Brand ใน product loop — ใต้รูป ก่อน title */
.product-logo-brand {
	display: flex;
	justify-content: center;
	align-items: center;
	margin: 10px 0 6px;
	padding: 0 10px;
}

.product-logo-brand img {
	display: block;
	max-width: 120px;
	max-height: 48px;
	width: auto;
	height: auto;
	object-fit: contain;
}

/* Single product — logo ใต้ชื่อสินค้า */
.product-logo-brand--single {
	justify-content: flex-start;
	margin: 8px 0 12px;
	padding: 0;
}

.product-logo-brand--single img {
	max-width: 140px;
	max-height: 64px;
}

@media (max-width: 576px) {
	.product-logo-brand--single img {
		max-width: 96px;
		max-height: 48px;
	}
}

/* Single product — ปุ่มดาวน์โหลด PDF (ACF pdf_file) */
.utlift-pdf-download {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: 16px;
	padding: 14px 22px;
	min-height: 48px;
	border-radius: 8px;
	background: #20568c;
	color: #fff;
	text-decoration: none;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.utlift-pdf-download:hover,
.utlift-pdf-download:focus {
	background: #17436d;
	color: #fff;
	text-decoration: none;
}

.utlift-pdf-download__icon {
	display: flex;
	flex-shrink: 0;
}

.utlift-pdf-download svg {
	display: block;
}

/* Floating contact — LINE + โทรศัพท์ */
.utlift-floating-contact {
	position: fixed;
	right: 16px;
	bottom: 20px;
	z-index: 9999;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 10px;
	pointer-events: none;
}

.utlift-floating-contact > a {
	pointer-events: auto;
}

#line-footer {
	display: block;
	line-height: 0;
}

#line-footer img {
	display: block;
	width: 72px;
	height: auto;
	max-width: 72px;
}

.btn-chat {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 12px 16px;
	border-radius: 999px;
	background: #1f9d55;
	color: #fff;
	text-decoration: none;
	font-size: 14px;
	font-weight: 600;
	line-height: 1;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
	transition: background-color 0.2s ease, transform 0.2s ease;
}

.btn-chat:hover,
.btn-chat:focus {
	background: #178447;
	color: #fff;
	text-decoration: none;
}

.btn-chat svg {
	display: block;
	flex-shrink: 0;
}

.btn-chat._mobile {
	width: 48px;
	height: 48px;
	padding: 0;
	border-radius: 50%;
}

.btn-chat._desktop {
	display: none;
}

@media (min-width: 768px) {
	.btn-chat._mobile {
		display: none;
	}

	.btn-chat._desktop {
		display: inline-flex;
	}

	#line-footer img {
		width: 88px;
		max-width: 88px;
	}
}

/* Single product — Tags เป็นปุ่ม chip (ไม่โชว์ comma) */
.product_meta .tagged_as.detail-container {
	display: flex;
	flex-wrap: nowrap;
	align-items: flex-start;
	gap: 8px 10px;
}

.product_meta .tagged_as .detail-label {
	flex: 0 0 auto;
	margin: 0;
	padding-top: 6px;
	line-height: 1.2;
}

.product_meta .tagged_as .detail-content {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	/* ไม่ใช้ gap — text "," กลายเป็น flex item ทำให้ช่องว่างซ้ำ */
	gap: 0;
	flex: 1 1 0;
	width: auto;
	min-width: 0;
	font-size: 0; /* ซ่อน comma ให้เล็กสุด */
	color: transparent;
	letter-spacing: 0;
}

.product_meta .tagged_as .detail-content a {
	display: inline-flex;
	align-items: center;
	margin: 0 6px 6px 0;
	padding: 6px 12px;
	border-radius: 999px;
	font-size: 13px;
	font-weight: 500;
	line-height: 1.2;
	letter-spacing: normal;
	color: #20568c;
	background: rgba(32, 86, 140, 0.08);
	border: 1px solid rgba(32, 86, 140, 0.18);
	text-decoration: none;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.product_meta .tagged_as .detail-content a:hover,
.product_meta .tagged_as .detail-content a:focus {
	color: #fff;
	background: #20568c;
	border-color: #20568c;
	text-decoration: none;
}

/* Sidebar product categories — เส้นคั่นเบาๆ ไม่ให้โล่ง */
.widget_product_categories .product-categories > li {
	border-bottom: 1px solid #e4e4e4;
}

.widget_product_categories .product-categories > li > a {
	padding-top: 11px;
	padding-bottom: 11px;
}

.widget_product_categories .product-categories > li > .children {
	margin-bottom: 4px;
	padding-bottom: 4px;
}

.widget_product_categories .product-categories > li > .children > li > a {
	padding-top: 7px;
	padding-bottom: 7px;
}

/* Elementor — ซ่อนแผง loading (editor ใช้ #id) */
#elementor-panel-state-loading,
.elementor-panel-state-loading {
	display: none !important;
}
