/* =============================================================================
   CSS RIÊNG CỦA TRANG CHỦ - Quán ngon Quảng Bình ơi
   Phần dùng chung (màu sắc, nút, thanh trên, menu, chân trang) nằm ở chung.css.
   File này chỉ chứa các khối chỉ xuất hiện ở trang chủ.
   ========================================================================== */
/* =============================================================================
   3. KHỐI ẢNH LỚN ĐẦU TRANG (HERO)
   ========================================================================== */
.qbo-hero {
	position: relative;
	overflow: hidden;
	background-color: var(--qbo-nau);
	background-repeat: no-repeat;
	background-size: cover;
	/* Neo về bên phải để mâm món ăn luôn nằm trọn trong khung ở mọi cỡ màn hình */
	background-position: right center;
}

/* Lớp phủ tối dần từ trái sang phải, giúp chữ trắng luôn đọc rõ trên nền ảnh */
.qbo-hero::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(95deg,
		rgba(20, 11, 5, .92) 0%,
		rgba(22, 12, 6, .86) 26%,
		rgba(26, 15, 8, .60) 48%,
		rgba(30, 18, 10, .22) 68%,
		rgba(30, 18, 10, .10) 100%);
}

.qbo-hero__inner {
	position: relative;
	z-index: 2;
	display: flex;
	align-items: center;
	padding-top: 74px;
	padding-bottom: 74px;
	min-height: 500px;
}

.qbo-hero__text {
	max-width: 560px;
}

.qbo-hero__viet-tay {
	font-family: var(--qbo-font-tay);
	font-size: 44px;
	font-weight: 700;
	color: var(--qbo-vang);
	line-height: 1.1;
	margin-bottom: 6px;
}

.qbo-hero__tieu-de {
	font-size: 52px;
	font-weight: 800;
	letter-spacing: .01em;
	color: #fff;
	text-shadow: 0 3px 14px rgba(0, 0, 0, .45);
	margin-bottom: 18px;
}

.qbo-hero__tieu-de span {
	display: block;
}

.qbo-hero__mo-ta {
	max-width: 440px;
	color: rgba(255, 255, 255, .86);
	font-size: 16.5px;
	margin-bottom: 36px;
}

.qbo-hero__nut {
	display: flex;
	gap: 14px;
	flex-wrap: wrap;
}

/* =============================================================================
   4. BỐN CAM KẾT
   ========================================================================== */
.qbo-cam-ket {
	background: var(--qbo-kem);
	border-bottom: 1px solid rgba(63, 45, 33, .07);
}

.qbo-cam-ket__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 0;
	padding-top: 28px;
	padding-bottom: 28px;
}

.qbo-cam-ket__o {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	padding: 6px 22px;
	border-right: 1px solid rgba(63, 45, 33, .12);
}

.qbo-cam-ket__o:last-child {
	border-right: 0;
}

.qbo-cam-ket__icon .qbo-icon {
	width: 40px;
	height: 40px;
	color: var(--qbo-cam);
	stroke-width: 1.3;
}

.qbo-cam-ket__ten {
	font-size: 14px;
	font-weight: 700;
	letter-spacing: .05em;
	color: var(--qbo-chu);
	margin-bottom: 4px;
}

.qbo-cam-ket__mo-ta {
	font-size: 13.5px;
	color: var(--qbo-chu-mo);
	line-height: 1.55;
}

/* =============================================================================
   5. MÓN NGON - ĐẶC SẢN QUẢNG BÌNH
   ========================================================================== */
.qbo-mon-ngon {
	/* Nền kem rất nhạt, cùng tông với các khối còn lại để không bị tách khỏi tổng thể */
	background: #fffaf2;
	padding: 50px 0 54px;
}

.qbo-heading {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 14px;
}

.qbo-heading__chu {
	font-family: var(--qbo-font-serif);
	font-size: 34px;
	font-weight: 700;
	letter-spacing: .04em;
	color: var(--qbo-cam);
	text-align: center;
	text-transform: uppercase;
}

.qbo-heading__ke {
	display: block;
	width: 110px;
	height: 3px;
	background: linear-gradient(90deg, rgba(245, 196, 83, 0), var(--qbo-vang));
	border-radius: 3px;
}

.qbo-heading__ke:last-child {
	background: linear-gradient(90deg, var(--qbo-vang), rgba(245, 196, 83, 0));
}

.qbo-heading__cham {
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: var(--qbo-do);
	flex: 0 0 auto;
}

.qbo-heading__phu {
	text-align: center;
	color: var(--qbo-chu-mo);
	font-size: 15.5px;
	margin-top: 8px;
}

/* --- Băng chuyền món ăn --- */
.qbo-slider {
	position: relative;
	margin-top: 28px;
}

.qbo-slider__khung {
	overflow: hidden;
}

.qbo-slider__track {
	display: flex;
	gap: 22px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	padding-bottom: 4px;
	/* Ẩn thanh cuộn cho gọn, vẫn kéo được bằng tay trên điện thoại */
	scrollbar-width: none;
	-ms-overflow-style: none;
}

.qbo-slider__track::-webkit-scrollbar {
	display: none;
}

/* Mặc định hiện 6 món trên một hàng như bản thiết kế.
   Thêm món thứ 7 trở đi thì băng chuyền tự trượt được, không cần sửa gì ở đây. */
.qbo-slider__track > .qbo-mon {
	flex: 0 0 calc((100% - 5 * 22px) / 6);
	scroll-snap-align: start;
}

.qbo-slider__nut {
	position: absolute;
	top: 34%;
	z-index: 3;
	width: 42px;
	height: 42px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	border: 1px solid rgba(63, 45, 33, .12);
	border-radius: 50%;
	background: #fff;
	color: var(--qbo-cam);
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
	box-shadow: 0 4px 14px -4px rgba(63, 45, 33, .3);
	transition: background-color .2s ease, color .2s ease, opacity .2s ease,
	            transform .2s cubic-bezier(.2, .7, .3, 1), box-shadow .2s ease;
}

.qbo-slider__nut:hover {
	background: var(--qbo-cam);
	border-color: var(--qbo-cam);
	color: #fff;
	transform: scale(1.08);
	box-shadow: 0 8px 20px -5px rgba(176, 79, 16, .6);
}

.qbo-slider__nut:active {
	transform: scale(.96);
}

.qbo-slider__nut:focus-visible {
	outline: 3px solid rgba(210, 105, 30, .45);
	outline-offset: 2px;
}

.qbo-slider__nut--trai  { left: -18px; }
.qbo-slider__nut--phai  { right: -18px; }

/* Khi không còn gì để trượt thì mờ đi và không bấm được */
.qbo-slider__nut[disabled] {
	opacity: 0;
	pointer-events: none;
}

.qbo-mon {
	display: block;
	text-align: center;
}

.qbo-mon__anh {
	position: relative;
	border-radius: var(--qbo-bo-goc);
	overflow: hidden;
	box-shadow: var(--qbo-bong);
	background: var(--qbo-kem-dam);
	transition: transform .22s ease, box-shadow .22s ease;
}

.qbo-mon__anh img {
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	transition: transform .5s ease;
}

.qbo-mon:hover .qbo-mon__anh {
	transform: translateY(-5px);
	box-shadow: var(--qbo-bong-hover);
}

.qbo-mon:hover .qbo-mon__anh img {
	transform: scale(1.06);
}

/* Nhãn HẾT MÓN */
.qbo-mon__het {
	position: absolute;
	top: 12px;
	left: 12px;
	background: var(--qbo-do);
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: .04em;
	text-align: center;
	padding: 8px 10px;
	border-radius: 999px;
}

.qbo-mon__ten {
	margin-top: 20px;
	font-size: 14.5px;
	font-weight: 700;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: var(--qbo-chu);
	transition: color .18s ease;
}

.qbo-mon:hover .qbo-mon__ten {
	color: var(--qbo-cam);
}

.qbo-mon__gia {
	margin-top: 9px;
	font-size: 14px;
	font-weight: 600;
	color: var(--qbo-cam);
}

.qbo-mon__don-vi {
	font-size: 13px;
	font-weight: 400;
	color: var(--qbo-chu-mo);
}

.qbo-mon-ngon__nut {
	text-align: center;
	margin-top: 32px;
}

/* =============================================================================
   6. VỀ CHÚNG TÔI
   ========================================================================== */
.qbo-gioi-thieu {
	background: var(--qbo-kem);
	padding: 56px 0;
}

.qbo-gioi-thieu__inner {
	display: grid;
	grid-template-columns: 1fr 1fr;
	align-items: center;
	gap: 48px;
}

/* Ba ảnh quán: một ảnh lớn bên trái, hai ảnh nhỏ xếp dọc bên phải.
   Tỉ lệ cột 2:1 được tính sao cho ảnh lớn cao đúng bằng hai ảnh nhỏ cộng lại,
   nhờ vậy hai cột luôn bằng nhau, không hở mảng nền phía dưới. */
.qbo-gioi-thieu__anh {
	display: grid;
	grid-template-columns: 2fr 1fr;
	gap: 14px;
	align-items: stretch;
}

.qbo-gioi-thieu__o {
	position: relative;
	margin: 0;
	overflow: hidden;
	border-radius: var(--qbo-bo-goc);
	box-shadow: var(--qbo-bong);
	background: var(--qbo-kem-dam);
	line-height: 0; /* Bỏ khoảng hở nhỏ dưới ảnh do dòng chữ tạo ra */
}

/* Ảnh lớn trải trọn hai hàng, chiều cao khớp đúng hai ảnh nhỏ cộng khoảng hở.
   Ảnh được đặt phủ tuyệt đối lên ô: ô cao bao nhiêu thì ảnh cao đúng bấy nhiêu.
   (Nếu để ảnh tự tính chiều cao thì nó luôn hụt đúng bằng khoảng hở giữa hai ảnh nhỏ.) */
.qbo-gioi-thieu__o--lon {
	grid-row: 1 / span 2;
}

.qbo-gioi-thieu__o--lon img {
	position: absolute;
	inset: 0;
}

/* Hai ảnh nhỏ giữ khung 4:3, chính chúng quyết định chiều cao của lưới */
.qbo-gioi-thieu__o:not(.qbo-gioi-thieu__o--lon) {
	aspect-ratio: 4 / 3;
}

.qbo-gioi-thieu__o img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	/* Bo góc ngay trên ảnh, không phụ thuộc vào overflow của thẻ bọc
	   (vài trình duyệt bỏ qua bo góc khi ảnh bên trong có hiệu ứng phóng to) */
	border-radius: inherit;
	transition: transform .5s ease;
}

.qbo-gioi-thieu__o:hover img {
	transform: scale(1.05);
}

.qbo-gioi-thieu__viet-tay {
	font-family: var(--qbo-font-tay);
	font-size: 32px;
	color: var(--qbo-cam-nhat);
	line-height: 1.1;
}

.qbo-gioi-thieu__tieu-de {
	font-family: var(--qbo-font-serif);
	font-size: 36px;
	font-weight: 800;
	color: var(--qbo-chu);
	letter-spacing: .02em;
	margin: 6px 0 18px;
}

.qbo-gioi-thieu__mo-ta {
	color: var(--qbo-chu-mo);
	font-size: 16px;
	margin-bottom: 22px;
}

.qbo-gioi-thieu__list {
	margin-bottom: 36px;
	display: grid;
	gap: 14px;
}

.qbo-gioi-thieu__list li {
	display: flex;
	align-items: flex-start;
	gap: 11px;
	font-size: 15.5px;
	font-weight: 500;
}

.qbo-gioi-thieu__list .qbo-icon {
	width: 21px;
	height: 21px;
	color: var(--qbo-cam);
	margin-top: 3px;
}

/* =============================================================================
   7. ĐẶC SẢN MANG VỀ
   ========================================================================== */
.qbo-dac-san {
	position: relative;
	background-color: #241610;
	background-size: cover;
	background-position: center;
	color: #fff;
	padding: 34px 0;
}

.qbo-dac-san__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 40px;
	flex-wrap: wrap;
}

.qbo-dac-san__text {
	flex: 1 1 320px;
}

.qbo-dac-san__tieu-de {
	font-family: var(--qbo-font-serif);
	font-size: 32px;
	font-weight: 800;
	letter-spacing: .03em;
	margin-bottom: 4px;
}

.qbo-dac-san__phu {
	font-family: var(--qbo-font-tay);
	font-size: 24px;
	color: var(--qbo-vang);
	margin-bottom: 16px;
}

/* Dải sản phẩm bên phải, ngăn cách bằng vạch dọc mảnh như bản thiết kế */
.qbo-dac-san__list {
	display: flex;
	align-items: flex-start;
	gap: 20px;
	flex: 0 1 auto;
	padding-left: 32px;
	border-left: 1px solid rgba(255, 255, 255, .18);
}

.qbo-dac-san__o {
	width: 116px;
	text-align: center;
}

.qbo-dac-san__anh {
	border-radius: 10px;
	overflow: hidden;
	box-shadow: 0 12px 26px rgba(0, 0, 0, .45);
}

.qbo-dac-san__anh img {
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	transition: transform .5s ease;
}

.qbo-dac-san__o:hover .qbo-dac-san__anh img {
	transform: scale(1.06);
}

.qbo-dac-san__ten {
	margin-top: 16px;
	font-size: 13.5px;
	font-weight: 700;
	line-height: 1.45;
	letter-spacing: .02em;
}

.qbo-dac-san__gia {
	margin-top: 7px;
	font-size: 13px;
	color: var(--qbo-vang);
}

/* =============================================================================
   RESPONSIVE RIÊNG CHO TRANG CHỦ
   ========================================================================== */
@media (max-width: 1180px) {
	/* Đưa nút mũi tên vào trong khung để không bị cắt mất ở màn hình hẹp */
	.qbo-slider__nut--trai { left: -4px; }
	.qbo-slider__nut--phai { right: -4px; }
}

@media (max-width: 1024px) {
	.qbo-hero__tieu-de  { font-size: 42px; }
	.qbo-hero__viet-tay { font-size: 38px; }
	.qbo-hero__inner    { min-height: 440px; }
	.qbo-heading__chu   { font-size: 28px; }
	.qbo-heading__ke    { width: 60px; }
	.qbo-cam-ket__o     { padding: 6px 14px; }

	/* Còn 4 món trên một hàng */
	.qbo-slider__track > .qbo-mon {
		flex: 0 0 calc((100% - 3 * 22px) / 4);
	}

	.qbo-dac-san__list {
		gap: 16px;
		padding-left: 24px;
	}

	.qbo-dac-san__o {
		width: 104px;
	}
}

@media (max-width: 860px) {
	/* Hero: ảnh nền lùi hẳn sang phải, chữ đặt trên nền tối bên trái */
	.qbo-hero {
		background-position: 78% center;
	}

	.qbo-hero::after {
		background: linear-gradient(180deg,
			rgba(20, 11, 5, .90) 0%,
			rgba(22, 12, 6, .82) 55%,
			rgba(24, 14, 7, .74) 100%);
	}

	.qbo-hero__inner {
		min-height: 360px;
		padding-top: 50px;
		padding-bottom: 54px;
	}

	/* Cam kết 2 cột */
	.qbo-cam-ket__grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 20px 0;
	}

	.qbo-cam-ket__o:nth-child(2n) {
		border-right: 0;
	}

	/* Băng chuyền còn 3 món một hàng */
	.qbo-slider__track > .qbo-mon {
		flex: 0 0 calc((100% - 2 * 18px) / 3);
	}

	.qbo-slider__track {
		gap: 18px;
	}

	/* Giới thiệu xếp dọc: ảnh lớn nằm trên, hai ảnh nhỏ chia đôi hàng dưới */
	.qbo-gioi-thieu__inner {
		grid-template-columns: 1fr;
		gap: 34px;
	}

	.qbo-gioi-thieu__anh {
		grid-template-columns: 1fr 1fr;
	}

	.qbo-gioi-thieu__o--lon {
		grid-row: auto;
		grid-column: span 2;
		aspect-ratio: 16 / 9;
	}

	/* Hàng order: chữ ở trên, dải sản phẩm xuống dưới */
	.qbo-dac-san__inner {
		flex-direction: column;
		align-items: center;
		gap: 26px;
	}

	.qbo-dac-san__text {
		text-align: center;
		flex: 0 0 auto;
	}

	.qbo-dac-san__list {
		padding-left: 0;
		border-left: 0;
		border-top: 1px solid rgba(255, 255, 255, .18);
		padding-top: 26px;
		justify-content: center;
		flex-wrap: wrap;
		gap: 24px;
	}

	.qbo-dac-san__o {
		width: 130px;
	}
}

@media (max-width: 620px) {
	.qbo-hero__viet-tay { font-size: 33px; }
	.qbo-hero__tieu-de  { font-size: 31px; }
	.qbo-hero__mo-ta    { font-size: 15px; }

	.qbo-heading {
		gap: 10px;
	}

	.qbo-heading__ke {
		width: 26px;
	}

	.qbo-heading__chu {
		font-size: 21px;
	}

	.qbo-mon-ngon { padding: 48px 0 54px; }
	.qbo-mon__ten { font-size: 13.5px; margin-top: 11px; }
	.qbo-mon__gia { font-size: 13px; }

	/* Băng chuyền còn 2 món một hàng, kéo ngang bằng ngón tay */
	.qbo-slider__track {
		gap: 14px;
	}

	.qbo-slider__track > .qbo-mon {
		flex: 0 0 calc((100% - 14px) / 2);
	}

	.qbo-slider__nut {
		display: none;
	}

	.qbo-dac-san__list {
		gap: 20px;
	}

	.qbo-dac-san__o {
		width: 118px;
	}

	.qbo-gioi-thieu          { padding: 50px 0; }
	.qbo-gioi-thieu__tieu-de { font-size: 28px; }
	.qbo-dac-san__tieu-de    { font-size: 27px; }
	.qbo-dac-san__phu        { font-size: 21px; }
}

@media (max-width: 380px) {
	.qbo-cam-ket__grid {
		grid-template-columns: 1fr;
	}

	.qbo-cam-ket__o {
		border-right: 0;
	}
}
