/*
 * แก้ layout / touch ร่วมทุกหน้า (2026-11-21)
 * พื้นที่แตะ (touch target) ขั้นต่ำ ~44×44 CSS px — โหลดต่อจาก /assets/mix/main.css (Layouts/kuteshop/css.blade.php)
 * main.css เป็นไฟล์ build แล้ว (ไม่มี pipeline ใน repo) จึงแยกไว้ที่นี่
 * ห้ามใช้ media query ผูกความกว้างจอเฉพาะเครื่อง — ใช้ (pointer: coarse) สำหรับจอสัมผัส
 */

/* header มือถือ: ปุ่มเมนู / ค้นหา (แสดงเฉพาะ header มือถืออยู่แล้ว) */
.mh-head .mh-btns-left,
.mh-head .mh-btns-right {
	width: 44px;
}
.wrap .mobile .mh-head .mh-btns-left > *,
.wrap .mobile .mh-head .mh-btns-right > * {
	width: 44px;
	padding: 12px 0;
}
.wrap .mobile .mh-head .mburger {
	width: 44px !important;
	height: 44px !important;
	--mb-button-size: 44px;
}

/* ช่องค้นหามือถือ: ปุ่ม submit (เดิมเป็น <a href="#/">) + font 16px กัน iOS ซูมตอน focus */
.wrap .mobile .mh-head .mh-form input {
	font-size: 16px;
}
.wrap .mobile .mh-head .mh-form .fa {
	width: 44px;
	height: 44px;
	line-height: 44px;
	padding: 0;
	border: 0;
	background: none;
	color: #999;
	cursor: pointer;
}

/* แถบ cookie */
#snackbar .btn.accept,
#snackbar .btn.close {
	min-height: 44px;
	min-width: 44px;
}
#snackbar .btn.close {
	padding: 0 12px;
}

@media (pointer: coarse) {
	/* ลิงก์ใน footer */
	.footer .menu-footer-box .list-unstyled li {
		margin-bottom: 0;
	}
	.footer .menu-footer-box .list-unstyled li a {
		display: inline-block;
		min-height: 44px;
		padding: 14px 0;
	}

	/* ไอคอนโซเชียล footer */
	.footer-social a {
		width: 44px;
		height: 44px;
		padding: 10px;
	}

	/* ช่อง + ปุ่ม Subscribe ใน footer (แสดงตั้งแต่ tablet) */
	#subscribe .email,
	#subscribe .btn {
		height: 44px;
		min-height: 44px;
		font-size: 16px;
	}

	/* ลิงก์ Privacy Policy ในแถบ cookie */
	#snackbar ul li a {
		min-height: 44px;
		padding: 13px 0;
	}
}

/* row เต็มจอที่ไม่มี .container ครอบ (about-us, trade) — margin -15px ของ Bootstrap ดันเกินจอ → เลื่อนแนวนอนได้ */
.content-page > .row {
	margin-left: 0;
	margin-right: 0;
}

/* หน้าสินค้า: single-footer.css ตั้ง .container padding 10px (จอแคบ) แต่ .row ยังใช้ margin -15px → ล้น 5px
   (carousel สินค้าที่เกี่ยวข้อง) — ให้ margin ของ row เท่ากับ padding ของ container */
@media (max-width: 480px) {
	.product-related .container > .row,
	.product-detail .container > .row {
		margin-left: -10px;
		margin-right: -10px;
	}
}
