@charset "utf-8";
/* Container หลัก: จัดกึ่งกลาง และปรับขนาดตามหน้าจอ */
.h-act-wrap {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 12px;
	width: 50%;
	max-width: 480px;
	padding: 8px;
	box-sizing: border-box;
	height: auto;
	/* --- จุดที่แก้ไข --- */
	/* 1. ลบ float: left; ออก เพื่อไม่ให้มันบังคับชิดซ้าย */
	/* 2. ใช้ margin: auto สำหรับซ้าย-ขวา เพื่อดันให้มันอยู่กึ่งกลางหน้าจอพอดี */
	margin-top: 5%;
	margin-bottom: 5%;
	margin-left: auto;
	margin-right: auto;
}

/* ไอเทมแต่ละฝั่ง */
.h-act-item {
  flex: 1 1 180px; /* ยืดหยุ่นตามพื้นที่ ถ้าน้อยกว่า 180px จะขึ้นบรรทัดใหม่ */
  min-width: 0;
}

/* ปุ่มกดพื้นฐาน */
.h-act-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	padding: 12px 20px;
	border-radius: 8px;
	font-size: 16px;
	font-weight: 600;
	text-decoration: none;
	line-height: 1.2;
	box-sizing: border-box;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
	transition: all 0.25s ease-in-out;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent; /* ป้องกันไฮไลต์สีฟ้าบนมือถือ */
	font-family: serithairegular;
}

/* เอฟเฟกต์การกดและการวางเมาส์ */
.h-act-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}

.h-act-btn:active {
  transform: translateY(0);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

/* ปุ่ม Reserve (ปุ่มหลัก - สีทองพรีเมียม) */
.h-act-btn--reserve {
  background-color: #a38258;
  color: #ffffff !important;
  border: 1px solid #a38258;
}

.h-act-btn--reserve:hover {
  background-color: #8c6d46;
  border-color: #8c6d46;
}

/* ปุ่ม Menu (ปุ่มรอง - สีขาวมินิมอล) */
.h-act-btn--menu {
  background-color: #ffffff;
  color: #2c2c2c !important;
  border: 1px solid #dcdcdc;
}

.h-act-btn--menu:hover {
  background-color: #f8f8f8;
  border-color: #b5b5b5;
}

/* ปรับแต่งไอคอนและข้อความ */
.h-act-btn .fa {
  font-size: 1.1em;
  flex-shrink: 0;
}

.h-act-text {
  white-space: nowrap;
}

/* Responsive: ปรับแต่งพิเศษสำหรับหน้าจอมือถือขนาดเล็ก (ต่ำกว่า 400px) */
@media (max-width: 400px) {
  .h-act-wrap {
    gap: 8px;
  }
  
  .h-act-btn {
    padding: 10px 14px;
    font-size: 14px;
  }
}
/* ----------------------------------------------------
   1. Wrapper นอกสุด (บังคับจัดกึ่งกลางหน้าจอ 100%)
   ---------------------------------------------------- */
/* ----------------------------------------------------
   1. Wrapper นอกสุด (บังคับจัดกึ่งกลางหน้าจอ 100%)
   ---------------------------------------------------- */
.menu-center-wrapper {
	width: 100% !important;
	display: flex !important;
	justify-content: center !important;
	align-items: center !important;
	text-align: center !important;
	padding: 0 !important;
	clear: both !important;
	margin-top: 26px;
	margin-right: auto;
	margin-bottom: 20px;
	margin-left: auto;	
}

/* ----------------------------------------------------
   2. Container กรอบใหญ่ (เอาพื้นหลังและขอบออก)
   ---------------------------------------------------- */
.link-cafe-res {
	display: flex !important;
	flex-direction: row !important;
	flex-wrap: nowrap !important;
	justify-content: center !important; 
	align-items: center !important;
	
	width: fit-content !important; 
	min-width: 360px !important;
	max-width: 95% !important; 
	margin: 0 !important;
	
	gap: 20px !important;
	padding: 12px 16px !important;
	background-color: transparent !important; 
	border: none !important;     
	border-radius: 0 !important;
	box-shadow: none !important; 
}

/* ----------------------------------------------------
   3. ปุ่มเมนู & ลิงก์ (ฟอนต์ Times New Roman, serithairegular, 2rem, สีดำ)
   ---------------------------------------------------- */
.link-cafe,
.link-cafe.image {
	display: flex !important;            
	justify-content: center !important;
	align-items: center !important;
	float: none !important;
จ	clear: both !important;
	font-family: "Times New Roman", serithairegular, sans-serif !important;
	font-size: 2rem !important;
	text-align: center !important;
	
	flex: 0 1 auto !important;
	min-width: auto !important;
	max-width: none !important;
	
	padding: 0 !important;               
	border-radius: 0 !important; 
	border: none !important;
	background-color: transparent !important; 
	margin: 0 !important; 
	
	transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
	cursor: pointer;
	user-select: none;
	-webkit-tap-highlight-color: transparent;
}

.link-cafe a {
	color: #666666 !important;
	text-decoration: none !important;
	display: flex !important;
	justify-content: center !important;
	align-items: center !important;
	text-align: center !important;
	width: 100% !important;
	height: 100% !important;
	padding: 8px 12px !important;
	margin: 0 !important;
	line-height: 1.2 !important;
	font-weight: normal;
	letter-spacing: 0.3px;
	white-space: nowrap;
	transition: color 0.25s ease, border-bottom 0.25s ease;
	/* --- ตั้งค่าเส้นด้านล่างและใส่แอนิเมชันกระพริบจางๆ รอไว้ --- */
	
	animation: blinkIdle 2.5s infinite ease-in-out !important;
}

/* คีย์เฟรมสำหรับกระพริบความโปร่งใส (จางลงแล้วสว่างขึ้นวนไป) */
@keyframes blinkIdle {
	0%, 100% {
		opacity: 0.45; /* จางลง */
	}
	50% {
		opacity: 0.95; /* ชัดขึ้น */
	}
}

/* Hover State: เมื่อเอาเมาส์ชี้ ให้หยุดกระพริบและแสดงเส้นชัดเจน */
.link-cafe:hover {
	background-color: transparent !important;
}

.link-cafe:hover a {
	color: #8E6839 !important;
	border-bottom-color: #8E6839 !important;
	opacity: 1 !important;
	animation: none !important; 
}

/* ----------------------------------------------------
   4. Active State (สำหรับเมนูที่ถูกเลือก ปิดกระพริบและแสดงเส้นทึบสีดำ)
   ---------------------------------------------------- */
.link-cafe-res .active {
	background-color: transparent !important; 
	box-shadow: none !important; 
	transform: none !important; 
	pointer-events: auto !important; 
}

.link-cafe-res .active a {
	color: #000000 !important; 
	font-weight: normal !important;
	border-bottom: 2px solid #000000 !important; 
	opacity: 1 !important;
	animation: none !important; /* ปิดแอนิเมชันกระพริบสำหรับเมนูที่เลือกแล้ว */
}

/* ----------------------------------------------------
   5. สไตล์สำหรับเครื่องหมาย & ตรงกลาง
   ---------------------------------------------------- */
.menu-divider {
	font-family: "Times New Roman", serithairegular, sans-serif !important;
	font-size: 2rem !important;
	color: #000000 !important;
	user-select: none;
}

/* ----------------------------------------------------
   6. Responsive Adjustments (แท็บเล็ตและมือถือ)
   ---------------------------------------------------- */
@media (min-width: 769px) and (max-width: 1024px) {
	.menu-center-wrapper {
		display: flex !important;
		justify-content: center !important;
		align-items: center !important;
		width: 100% !important;
		box-sizing: border-box !important;
		padding: 12px 15px !important;
		margin: 15px auto !important;
	}

	.link-cafe-res {
		display: flex !important;
		flex-direction: row !important;
		justify-content: center !important;
		align-items: center !important;
		width: 100% !important;
		gap: 24px !important;
		margin: 0 auto !important;
	}
	
	.link-cafe, 
	.link-cafe.image {
		font-size: 1.5rem !important;
	}

	.menu-divider {
		font-size: 1.4rem !important;
	}
}

@media (max-width: 768px) {
	.menu-center-wrapper {
		display: flex !important;
		justify-content: center !important;
		align-items: center !important;
		width: 100% !important;
		box-sizing: border-box !important;
		padding-top: 10px !important;
		padding-bottom: 10px !important;
		padding-right: 10px !important;
		padding-left: 10px !important;
		margin-top: 15px !important;
		margin-bottom: 15px !important;
	}

	.link-cafe-res {
		display: flex !important;
		flex-direction: row !important;
		justify-content: center !important; 
		align-items: center !important;
		min-width: unset !important;
		width: 100% !important;
		padding: 8px 10px !important;
		gap: 20px !important;
		max-width: 100% !important;
		margin: 0 auto !important;
		box-sizing: border-box !important;
	}
	
	.link-cafe, 
	.link-cafe.image {
		font-size: 1.3rem !important;
		flex: 0 1 auto !important;
		min-width: auto !important; 
		padding: 0 !important;
	}
	
	.link-cafe a {
		padding: 4px 6px !important; 
		line-height: 1.2 !important;       
	}

	.menu-divider {
		font-size: 1.2rem !important;
		margin: 0 2px !important; 
	}
}