/* =========================================================
   NHA MAY THUAN - CUSTOM OVERRIDE (ADD AT END OF main.css)
   ========================================================= */

/* 1) Cho phép cuộn trang để đăng nhiều sản phẩm */
body {
	overflow-x: hidden;
	overflow-y: auto;
}

/* 2) Main không fixed toàn màn hình nữa để chứa nội dung dài */
#main {
	position: relative;
	top: auto;
	left: auto;
	width: 100%;
	height: auto;
	min-height: 100vh;
	padding: 5rem 1rem 4rem;
	text-align: center;
}

#main:before {
	display: none; /* bỏ trick căn giữa dọc của template cũ */
}

/* 3) Header giữ đẹp, dễ đọc hơn trên nền */
#header {
	top: 0;
	width: min(95%, 980px);
	margin: 0 auto 2rem auto;
	opacity: 1; /* đảm bảo hiện rõ */
}

#header h1 {
	font-size: clamp(2rem, 5vw, 3.6rem);
	line-height: 1.1;
	text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

#header p {
	font-size: clamp(1rem, 2.2vw, 1.25rem);
	opacity: 0.95;
	text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

/* 4) Khu vực sản phẩm (thêm section #products trong HTML) */
#products {
	width: min(95%, 1200px);
	margin: 1.25rem auto 0;
	text-align: left;
}

#products h2 {
	font-size: clamp(1.4rem, 3vw, 2rem);
	font-weight: 900;
	margin: 0 0 1rem;
	text-align: center;
	letter-spacing: -0.01em;
	text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

/* Grid sản phẩm responsive */
.product-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 1rem;
	align-items: stretch;
}

/* Card sản phẩm */
.product-card {
	background: rgba(255, 255, 255, 0.12);
	border: 1px solid rgba(255, 255, 255, 0.28);
	border-radius: 14px;
	overflow: hidden;
	backdrop-filter: blur(3px);
	-webkit-backdrop-filter: blur(3px);
	transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.product-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 10px 26px rgba(0, 0, 0, 0.25);
	border-color: rgba(255, 255, 255, 0.45);
}

.product-card img {
	display: block;
	width: 100%;
	height: 280px;
	object-fit: cover;
	background: #1f4f68;
}

.product-info {
	padding: 0.9rem 0.95rem 1rem;
}

.product-name {
	font-size: 1.02rem;
	font-weight: 700;
	line-height: 1.3;
}

.product-price {
	margin-top: 0.35rem;
	font-weight: 900;
	color: #ffe08a;
}

.product-desc {
	margin-top: 0.45rem;
	font-size: 0.92rem;
	line-height: 1.45;
	opacity: 0.95;
}

/* 5) Nút liên hệ đặt may (nếu có dùng class này) */
.btn-contact {
	display: inline-block;
	margin-top: 0.7rem;
	padding: 0.5rem 0.8rem;
	border: 1px solid rgba(255, 255, 255, 0.45);
	border-radius: 10px;
	font-size: 0.86rem;
	font-weight: 700;
	background: rgba(255, 255, 255, 0.08);
	color: #fff;
	text-decoration: none;
	transition: all 0.2s ease;
}

.btn-contact:hover {
	background: rgba(255, 255, 255, 0.2);
	border-color: rgba(255, 255, 255, 0.75);
}

/* 6) Footer cho gọn */
#footer {
	position: relative;
	height: auto;
	line-height: 1.6;
	padding: 1.2rem 1rem 1.8rem;
	background-image: linear-gradient(to top, rgba(0,0,0,0.45), rgba(0,0,0,0));
}

/* 7) Mobile tinh chỉnh */
@media screen and (max-width: 736px) {
	#main {
		padding: 4rem 0.8rem 2.5rem;
	}

	#header {
		margin-bottom: 1.25rem;
	}

	.product-card img {
		height: 230px;
	}
}

@media screen and (max-width: 480px) {
	.product-grid {
		grid-template-columns: 1fr;
		gap: 0.85rem;
	}

	.product-card img {
		height: 220px;
	}
}