*{
	box-sizing: border-box;
}

body{
	margin: 0px;
	font-family: arial;
	background-color: #FFF;
}

ul{
	margin: 0px;
	padding: 0px;
	list-style: none;
}

#header {
	height: 240px;
	width: 100%;
	background-color: #6CB4EE; /* Thay đổi từ gold */
}

#top {
	height: 48px;
	width: 100%;
	background-color: #6CB4EE; /* Thay đổi từ gold */
}

#top-content { 
	width: 80%; 
	height: 100%; 
	margin: 0px auto; 
}

#top-content-left { 
	width: 50%; 
	height: 100%; 
	float: left; 
	line-height: 48px; 
	color: #ffffff; 
}

#top-content-left span { 
	margin-right: 15px; 
}

#top-content-right { 
	width: 50%; 
	height: 100%; 
	float: right; 
	line-height: 48px; 
	color: #ffffff; 
	text-align: right; 
}

#top-content-right a { 
	color: #FFF; 
	text-decoration: none; 
}

#banner{
	height: 144px;
	width: 100%;
	background-color: #FFF;
}

#banner-content { 
	width: 80%; 
	height: 100%; 
	object-fit: contain;
	margin: 0px auto; 
}

#banner-content-logo, 
#banner-content-deliver, 
#banner-content-support, 
#banner-content-time, 
#banner-content-cart { 
	width: 20%; 
	height: 100%; 
	float: left; 
}

#banner-content-logo img { 
	margin-top: 50px; 
	float: left; 
	/* Thêm 3 dòng dưới đây vào */
	width: 200px;         /* Ép chiều rộng cố định (có thể tăng/giảm tuỳ ý) */
	height: 50px;        /* Ép chiều cao cố định để bằng với chiều rộng */
	object-fit: contain; /* Giúp hình không bị méo hay vỡ tỷ lệ khi ép size */
}

.banner-box {
	width: 100%;
	height: 58px;
	margin-top: 43px;
	display: flex; /* Dùng flexbox để ép các phần tử nằm ngang */
	align-items: center; /* Căn giữa icon và chữ theo chiều dọc */
	justify-content: flex-start;
}

.banner-box img {
	/* Đã bỏ float và margin-top */
	margin-right: 15px; /* Tạo khoảng cách giữa icon và chữ */
}

.banner-text {
	/* Đã bỏ float và width 75% để chữ tự động co giãn */
	font-size: 14px;
	line-height: 1.5; /* Khoảng cách giữa 2 dòng chữ thoáng hơn */
}

#banner-content-support .banner-text, 
#banner-content-time .banner-text { 
	margin-left: 20px; 
}

.cart-btn { 
	width: 180px; 
	height: 40px; 
	margin-top: 9px; 
	float: right; 
	text-align: center; 
	background-color: orange; 
	color: #FFF; 
	line-height: 40px; 
	border-radius: 20px; 
}

#menu {
	height: 48px;
	width: 100%;
	background-color: #3498DB; /* Thay đổi từ green */
}
#menu li{
	float: left;
	padding: 0px 20px;
	line-height: 48px;
	position: relative;
}
#menu ul ul{
	display: none;
	position: absolute;
	top: 48px;
	left: 0;
	width: 220px;
	z-index: 999;
	padding: 0;
}
#menu ul li:hover ul{
	display: block;
}
#menu li:hover{
	background-color: orange;
}
#menu li li {
	float: none;
	background-color: #3498DB; /* Đổi từ #DDD sang màu xanh dương giống thanh menu */
	border-bottom: 1px solid #FFF; /* Đổi viền từ xám sang trắng để ngăn cách các mục cho đẹp */
	width: 100%;
}

.menu-content { 
	width: 80%; 
	height: 100%; 
	color: #ffffff; 
	margin: 0px auto; 
}

.menu-content ul {
	margin: 0px;
	padding: 0px;
	list-style: none;
	display: flex; /* Chuyển ul thành khung linh hoạt */
	width: 100%;
}

.menu-content li {
	/* Đã bỏ float: left và padding */
	flex: 1; /* Lệnh này bắt buộc các thẻ li phải chia đều không gian bằng nhau */
	text-align: center; /* Căn giữa chữ trong mỗi ô */
	line-height: 48px;
	position: relative; /* Giữ lại để menu con (dropdown) không bị lệch */
}

.menu-content li a { 
	color: #FFF; 
	text-decoration: none; 
	display: block; 
}

.menu-content li a:hover { 
	color: orange; 
}

#wrapper{
	height: auto;
	min-height: 600px;
	width: 100%;
	background-color: white;
}

#container{
	width: 80%;	
	margin: 30px auto;
}

#list-cate{
	height: auto;
	width: 22%;
	background-color: #FFF;
	float: left;
	border: 1px solid #CCC;
	border-radius: 20px;
}

#list-cate h1{
	background-color: green;
	color: #FFF;
	font-size: 16px;
	text-align: center;
	border-radius: 20px;
	line-height: 48px;
	margin: 0px;
	padding: 0px;
}

#list-cate ul li {
	line-height: 36px;
	width: 100%;
	border-bottom: 1px solid #CCC;
}

#list-cate ul li:nth-child(10){
	border: 0px;
}

#list-cate a{
	display: block;
	width: 100%;
	line-height: 36px;
	padding-left: 15px;
	text-decoration: none;
	color: #333;
}

#list-cate a:hover{
	background-color: orange;
	color: #FFF;
}
#list-cate li.has-sub {
    position: relative;
}

/* 2. Cấu hình bảng menu con: ẩn đi, bay sang phải, đổ bóng */
#list-cate .sub-menu {
    display: none;
    position: absolute;
    top: -1px; /* Căn mép trên bằng với chữ Hãng sản xuất */
    left: 100%; /* Đẩy lơ lửng sang lề phải */
    width: 220px;
    background-color: #FFF;
    border: 1px solid #DDD;
    box-shadow: 2px 2px 6px rgba(0,0,0,0.1);
    z-index: 999;
}

/* 3. Hiển thị bảng con khi đưa chuột vào chữ Hãng sản xuất */
#list-cate li.has-sub:hover > .sub-menu {
    display: block;
}

/* 4. Trang trí các dòng chữ bên trong bảng con cho đẹp */
#list-cate .sub-menu li {
    border-bottom: 1px solid #EEE; /* Kẻ vạch xám mờ */
}

#list-cate .sub-menu li a {
    display: block;
    padding: 10px 15px;
    font-size: 13px;
    color: #333;
}

/* Đổi chữ sang màu xanh khi đưa chuột vào từng hãng */
#list-cate .sub-menu li a:hover {
    color: #3498DB; 
}
#slideshow{
	height: 430px;
	width: 78%;	
	float: right;
	padding-left: 30px;
}

#slideshow img{
	width: 100%;
	height: 100%;
	border-radius: 20px;
	object-fit: cover;
}

.promo-box{
	height: 220px;
	width: 100%;
	display: flex;
	gap: 30px;
	padding: 30px 0px;
	clear: both;
}

.promo-box img{
	flex: 1;
	height: 160px;
	border-radius: 20px;
	object-fit: cover;
}

.cate {
    clear: both;
    height: auto;
    width: 100%;
    margin-top: 50px; /* Đẩy toàn bộ phần này xuống dưới 50px so với phần trên */
    margin-bottom: 50px; /* Tạo khoảng cách 50px với phần bên dưới nó */
    padding-top: 20px; /* Thêm một chút không gian bên trong cho thoáng */
}

.cate-title{
	width: 300px;
	background-color: green;
	font-size: 16px;
	color: #FFF;
	text-align: center;
	border-radius: 20px;
	line-height: 48px;
	margin: 0px;
	padding: 0px;
}

/* SỬA LỖI LAYOUT SẢN PHẨM Ở ĐÂY */
.list-product{
	margin-top: 30px;
	overflow: hidden; /* Clear float cho các cột con */
	margin-left: -15px; /* Bù trừ padding của cột đầu tiên */
	margin-right: -15px; /* Bù trừ padding của cột cuối cùng */
}

.product {
	width: 100%;
	height: 280px; /* Ép chiều cao của TẤT CẢ ô trắng bằng nhau */
	text-align: center;
	border: 1px solid #CCC;
	border-radius: 20px;
	margin-bottom: 30px;
	padding-bottom: 15px;
	overflow: hidden;
}

.photo {
	width: 100%;
	height: 180px; /* Ép chiều cao của TẤT CẢ ảnh bằng nhau */
	object-fit: cover; /* Giữ tỷ lệ ảnh, tự động cắt phần thừa để không bị méo */
}

.name{
	color: green;
	font-size: 16px;
	font-weight: bold;
}

.price {
	color: orange;
	font-size: 14px;
	font-weight: bold;
}

#main {
	width: 100%; 
	height: auto; 
	background-color: white; 
	padding-bottom: 50px;
}

#main-content {
	width: 80%; 
	height: 100%; 
	margin: 40px auto; 
	min-height: 300px;
}

#main-content h1 {
	font-size: 24px;
	margin-bottom: 30px;
	text-transform: uppercase;
}

.form-row {
	width: 100%; 
	min-height: 40px; 
	margin-bottom: 15px;
}

.form-label {
	width: 48%; 
	height: 100%; 
	float: left; 
	text-align: right; 
	line-height: 40px;
}

.form-input {
	width: 50%; 
	height: 100%; 
	float: right; 
	padding-left: 15px;
	line-height: 40px;
}

.form-input input[type="text"],
.form-input input[type="password"],
.form-input input[type="email"],
.form-input input[type="tel"],
.form-input input[type="date"] {
	height: 40px; 
	width: 300px;
	border: 1px solid #ccc;
	padding: 0 10px;
}

.form-input select {
	width: 148px; 
	height: 40px;
	border: 1px solid #ccc;
	padding: 0 5px;
}

.required {
	color: red;
}

.submit-btn {
	height: 35px; 
	padding: 0 20px; 
	cursor: pointer; 
	background-color: green;
	color: white; 
	border: 1px solid #ccc;
	font-weight: bold;
}

.clear {
	clear: both;
}

#footer{
	height: auto;
	min-height: 300px;
	width: 100%;
	background-color: #3498DB;
	clear: both;
	padding: 30px 0;
}

#footer-content { 
	width: 80%; 
	height: 100%; 
	margin: 0px auto; 
	color: #FFF; 
	display: flex; 
	flex-direction: row; 
	flex-wrap: wrap; /* Hỗ trợ rớt dòng cho mobile */
}

#footer-content-1 { 
	flex: 1.2; 
	padding-right: 20px; 
	min-width: 250px; /* Đảm bảo footer không bị bóp méo quá nhỏ */
}

#footer-content-2, 
#footer-content-3, 
#footer-content-4 { 
	flex: 1; 
	padding: 0 10px; 
	min-width: 150px;
}

#footer h2, 
#footer h3 { 
	font-size: 18px; 
	text-transform: uppercase; 
	margin-top: 0; 
	margin-bottom: 15px; 
}

#footer p { 
	font-size: 14px; 
	line-height: 1.5; 
	margin-bottom: 20px; 
}

.contact-list li { 
	display: flex; 
	align-items: flex-start; 
	margin-bottom: 15px; 
	font-size: 14px; 
	border-bottom: none !important; 
}

.contact-list i { 
	color: orange; 
	width: 25px; 
	font-size: 18px; 
	margin-top: 3px; 
}

#footer-content-2 ul, 
#footer-content-3 ul { 
	list-style: disc inside; 
}

#footer ul li { 
	margin-top: 10px; 
	border-bottom: none !important; 
}

#footer a { 
	text-decoration: none; 
	color: #FFF; 
}

#footer a:hover { 
	color: orange; 
	background: none; 
}
#chat{
	width: 80px;
	height: 80px;
	border-radius: 40px;
	background-color: orange;
	position: fixed;
	bottom: 40px;
	right: 40px;
}

/* ----------------------------------- */
/* RESPONSIVE CHO CÁC THIẾT BỊ         */
/* ----------------------------------- */

[class*="col-"]{
	width: 100%;
	float: left;
	padding: 0 15px; /* Thêm padding tạo khoảng trống giữa các cột */
}

/* Cho mobile (màn hình nhỏ hơn 768px) */
@media only screen and (max-width: 767px){
	#header { display: none; }
	#list-cate { display: none; }
	#slideshow { display: none; }
	
	.col-s-1 { width: 8.33%; }
	.col-s-2 { width: 16.66%; }
	.col-s-3 { width: 25.00%; }
	.col-s-4 { width: 33.33%; }
	.col-s-5 { width: 41.66%; }
	.col-s-6 { width: 50.00%; }
	.col-s-7 { width: 58.33%; }
	.col-s-8 { width: 66.66%; }
	.col-s-9 { width: 75.00%; }
	.col-s-10 { width: 83.33%; }
	.col-s-11 { width: 91.66%; }
	.col-s-12 { width: 100%; }
}

/* Cho tablet (màn hình từ 768px đến 1023px) */
@media only screen and (min-width: 768px) and (max-width: 1023px){
	#header { display: block; }
	#list-cate { display: none; }
	#slideshow { display: none; }
	
	.col-m-1 { width: 8.33%; }
	.col-m-2 { width: 16.66%; }
	.col-m-3 { width: 25.00%; }
	.col-m-4 { width: 33.33%; }
	.col-m-5 { width: 41.66%; }
	.col-m-6 { width: 50.00%; }
	.col-m-7 { width: 58.33%; }
	.col-m-8 { width: 66.66%; }
	.col-m-9 { width: 75.00%; }
	.col-m-10 { width: 83.33%; }
	.col-m-11 { width: 91.66%; }
	.col-m-12 { width: 100%; }
}

/* Cho laptop/PC (màn hình từ 1024px trở lên) */
@media only screen and (min-width: 1024px){
	#header { display: block; }
	#list-cate { display: block; float: left; }
	#slideshow { display: block; float: right; }
	
	.col-x-1 { width: 8.33%; }
	.col-x-2 { width: 16.66%; }
	.col-x-3 { width: 25.00%; }
	.col-x-4 { width: 33.33%; }
	.col-x-5 { width: 41.66%; }
	.col-x-6 { width: 50.00%; }
	.col-x-7 { width: 58.33%; }
	.col-x-8 { width: 66.66%; }
	.col-x-9 { width: 75.00%; }
	.col-x-10 { width: 83.33%; }
	.col-x-11 { width: 91.66%; }
	.col-x-12 { width: 100%; }
}
.name {
	color: #3498DB; /* Mình để màu xanh dương cho hợp với màu thanh menu ở trên nhé */
	font-size: 16px;
	font-weight: bold;
	text-transform: capitalize; /* Tự động viết hoa chữ cái đầu cho đẹp (vd: Rolls-royce) */
	margin-top: 15px; /* Tạo khoảng cách vừa đủ với bức ảnh bên trên */
	margin-bottom: 5px; /* Khoảng cách với giá tiền bên dưới */
	display: block; /* Ép nó nằm riêng một dòng */
}

.price {
	color: orange;
	font-size: 16px;
	font-weight: bold;
	display: block; /* Ép giá tiền nằm riêng một dòng ngay dưới tên xe */
}
