* { 
    box-sizing: border-box; 
}
html {
  scroll-behavior: smooth;

} 
body{
    margin: 0px;
    padding: 0px; 
    font-family: Arial; 
} 
#header {
    background-color: black ; 
    padding: 10px 0;
    width: 100%;
}

#menu {
    background-color: black; 
    display: flex;             
    justify-content: space-between; 
    align-items: center;       
    height: 60px;              
    padding: 0 20px;           
}

.container-left ul {
    display: flex;            
    list-style: none;
    margin: 0;
    padding: 0;
}

.container-left ul li {
    position: relative;        
}

.container-left ul li a {
    color: white;
    text-decoration: none;
    padding: 0 15px;
    line-height: 60px;       
    font-size: 20px;       
    font-weight: bold;
    display: block;
}

.container-left ul li ul {
    display: none; 
    position: absolute;
    top: 60px;
    left: 0;
    background-color: white;
    min-width: 150px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    z-index: 9999;
}

/* Hiện menu con khi rê chuột vào li cha */
.container-left ul li:hover > ul {
    display: block;
}

/* Chỉnh chữ cho menu con */
.container-left ul li ul li a {
    color: #333;
    line-height: 30px;
    border-bottom: 1px solid #eee;
}

/* Định dạng phần Đăng nhập / Đăng ký bên phải */
#container-right a {
    color: white;
    text-decoration: none;
    font-size: 20px;           /* Chữ đăng nhập bé hơn menu một chút */
    margin-left: 15px;
    font-weight: bold;
}

#container-right a:hover {
    color: yellow;            /* Đổi màu khi di chuột vào */
}
#wrapper {
    text-align: center; /* Căn giữa toàn bộ nội dung trong wrapper */
    padding: 20px 0;
}

.banner-container {
    /* CHỈNH ĐỘ TO NHỎ Ở ĐÂY */
    max-width: 600px;         /* Số càng nhỏ thì ảnh càng bé lại (mặc định ảnh bạn gửi khoảng 700px) */
    
    margin: 0 auto;           /* Căn giữa khung ảnh */
    border-radius: 8px;       /* Bo góc cho giống ảnh mẫu */
    overflow: hidden;         /* Cắt bớt phần thừa nếu ảnh tràn ra ngoài bo góc */
    box-shadow: 0 4px 12px rgba(0,0,0,0.15); /* Đổ bóng cho "xịn" như web thật */
    line-height: 0; 
	position: relative;	/* Xóa khoảng trắng thừa dưới ảnh */
}

.banner-container img {
    width: 100%;              /* Ảnh luôn rộng bằng khung 650px ở trên */
    height: auto;             /* TỰ ĐỘNG nhảy chiều cao để hiện HẾT 100% ảnh, không bị méo */
    display: block;
    object-fit: contain;      /* Đảm bảo toàn bộ nội dung ảnh nằm gọn trong khung */
}
.banner-buttons {
    position: absolute;
    width: 100%;
    top: 50%;
}
/* Chỉnh lại kích thước nút mũi tên cho nhỏ xinh tương ứng với ảnh */
.prev, .next {
    font-size: 14px;
    padding: 8px 12px;
    background-color: rgba(0, 0, 0, 0.4);
    border-radius: 50%;
    color: white;
    border: none;
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%); /* Căn giữa nút theo chiều dọc chuẩn xác */
}

.prev { left: 10px; }
.next { right: 10px; }
/* Khung bao ngoài */
.brand-section {
    max-width: 1100px; /* Khớp với độ rộng banner bạn đã chỉnh */
    margin: 20px auto;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
}

/* Thanh tiêu đề màu xanh nhạt phía trên */
.brand-title {
    background-color: #a3c2e0; /* Màu xanh nhạt giống ảnh */
    color: #333;
    padding: 10px 20px;
    font-weight: bold;
    font-size: 20px;
    text-align: left;
}

/* Khung lưới chính */
.brand-grid {
    display: flex;            /* Chuyển sang Flexbox để dễ dàn hàng ngang */
    justify-content: center;  /* Căn giữa các ô vào giữa trang */
    flex-wrap: nowrap;        /* ÉP BUỘC tất cả nằm trên 1 hàng, không xuống dòng */
    gap: 20px;                /* Khoảng cách giữa các ô */
    padding: 15px 20px; /* thêm padding trái/phải */
    max-width: 100%;          /* Cho phép co giãn theo độ rộng màn hình */
    overflow-x: auto;         /* Nếu màn hình quá nhỏ, sẽ hiện thanh cuộn ngang thay vì vỡ khung */
}

/* Từng ô chứa logo/sản phẩm */
.brand-item {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;

    flex: 0 0 200px;
    height: 120px;

    display: flex;
    justify-content: center;
    align-items: center;
    padding: 8px;
    overflow: hidden;

    transition: all 0.3s ease; /* hiệu ứng mượt */
}

/* Hover vào cả khung */
.brand-item:hover {
    transform: scale(1.1); /* phóng to nhẹ */
    box-shadow: 0 6px 15px rgba(0,0,0,0.2);
    background-color: #f5f5f5;
}

/* Ảnh bên trong */
.brand-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

/* Hover ảnh */
.brand-item:hover img {
    transform: scale(1.15);
}

/* Click */
.brand-item:active {
    transform: scale(0.95);
}
/* Thêm khoảng cách phía trên để khi cuộn xuống không bị menu che mất tiêu đề */
.product-section {
    scroll-margin-top: 60px; /* Chỉnh số này bằng chiều cao thanh menu của bạn */
    margin-top: 30px;
}
/* --- PHẦN LINING TITLE --- */
.lining {
    scroll-margin-top: 60px; 
    width: 100%;
    background-color: black; 
    color: #FFF; 
    font-size: 30px; 
    line-height: 46px; 
    text-align: center; 
}
/* --- 1. Dàn các sản phẩm nằm ngang --- */
.list-product {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 cột đều nhau */
    gap: 30px;
    padding: 20px;
    justify-items: center; /* căn giữa từng item */
}

/* --- 2. Tạo khung cho mỗi sản phẩm --- */
.product {
    display: flex;
    flex-direction: column;   /* Xếp nội dung theo chiều dọc: Tên -> Giá -> Ảnh */
    align-items: center;      /* Căn giữa chữ và ảnh vào giữa khung */
    
    width: 250px;             /* Độ rộng mỗi khung vợt */
	min-height: 420px;/* QUAN TRỌNG: cố định chiều cao */
    border: 1px solid #ddd;   /* Viền khung màu xám nhạt */
    border-radius: 10px;      /* Bo tròn góc khung cho đẹp */
    padding: 20px;            /* Khoảng cách từ chữ/ảnh đến viền khung */
    background-color: #fff;   /* Nền trắng để nổi bật trên nền xám của bạn */
    box-shadow: 0 4px 8px rgba(0,0,0,0.1); /* Đổ bóng nhẹ cho chuyên nghiệp */
	gap: 8px; /* thêm khoảng cách đều */
	transition: all 0.3s ease;       /* Hiệu ứng mượt khi rê chuột vào */
	justify-content: space-between; /* dàn đều nội dung */
}

/* Hiệu ứng khi di chuột vào khung (Tùy chọn) */
.product:hover {
    border-color: #ff0000;/* Đổi viền sang màu đỏ */
    transform: translateY(-5px) scale(1.05);/* Khung hơi bay lên một chút */
    transition: 0.3s;
	box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

/* --- 3. Ảnh sản phẩm --- */
.product-photo {
    order: 3;                 /* Luôn nằm dưới cùng */
    margin-top: 15px;         
    width: 100%;              /* Ảnh rộng bằng khung */
    height: 200px;
	object-fit: contain; /* không bị méo */
    display: block;
	transition: transform 0.3s ease;
}

/* --- 4. Tên sản phẩm --- */
.product-name {
    order: 1;                 /* Luôn nằm trên cùng */
    font-size: 18px;
    color: #333;
    margin-bottom: 8px;
}

/* --- 5. Giá tiền --- */
.product-money {
    order: 2;                 /* Nằm ở giữa */
    color: #ff0000;           /* Màu đỏ cho giá mới */
    font-weight: bold;
    font-size: 20px;
}

/* Chỉnh màu cho giá cũ (thẻ del) */
.product-money del {
    color: #999;              /* Màu xám cho giá cũ */
    font-size: 14px;
    font-weight: normal;
    margin-left: 10px;
}
.product:hover .product-photo {
    transform: scale(1.1);
}
.buy-btn {
    margin-top: 10px;
    padding: 8px 15px;
    background-color: red;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.buy-btn:hover {
    background-color: darkred;
}
/* --- PHẦN YONEX TITLE --- */
.yonex {
    scroll-margin-top: 60px; 
    width: 100%;
    background-color: black; 
    color: #FFF; 
    font-size: 30px; 
    line-height: 46px; 
    text-align: center; 
}
/* --- PHẦN Victor TITLE --- */
.victor {
    scroll-margin-top: 60px; 
    width: 100%;
    background-color: black; 
    color: #FFF; 
    font-size: 30px; 
    line-height: 46px; 
    text-align: center; 
}
/* --- PHẦN Quần Áo TITLE --- */
.quanao {
    scroll-margin-top: 60px; 
    width: 100%;
    background-color: black; 
    color: #FFF; 
    font-size: 30px; 
    line-height: 46px; 
    text-align: center; 
}
/* SIZE */
.size-box {
    display: flex;
    gap: 8px;
    margin: 10px 0;
}

.size {
    border: 1px solid #ccc;
    padding: 5px 10px;
    cursor: pointer;
    border-radius: 5px;
    font-size: 14px;
	
	min-width: 35px;
    text-align: center;
    transition: 0.3s;
}
.size-box::before {
    content: "Kích cỡ:";
    font-weight: bold;
    margin-right: 5px;
}

.size:hover {
    border-color: red;
    color: red;
	transform: translateY(-2px);
}

.size.active {
    background-color: red;
    color: white;
}

/* SỐ LƯỢNG */
.quantity {
    display: flex;
    align-items: center;
    gap: 5px;
    margin: 10px 0;
	justify-content: center;

}

.quantity button {
    width: 30px;
    height: 30px;
    border: none;
    background: #ddd;
    cursor: pointer;
}
.quantity button:hover {
    background-color: red;
    color: white;
}

.quantity input {
    width: 40px;
	height: 30px;
    border: 1px solid #ccc;
    border-radius: 5px;
    text-align: center;
}
/* --- PHẦN Giày TITLE --- */
.giay {
    scroll-margin-top: 60px; 
    width: 100%;
    background-color: black; 
    color: #FFF; 
    font-size: 30px; 
    line-height: 46px; 
    text-align: center; 
}
/* --- PHẦN Phụ kiện TITLE --- */
.phukien {
    scroll-margin-top: 60px; 
    width: 100%;
    background-color: black; 
    color: #FFF; 
    font-size: 30px; 
    line-height: 46px; 
    text-align: center; 
}

/* Footer tổng */
#footer {
    background-color: #333;
    color: white;
    padding: 40px 0;
}

/* Khung chứa 4 cột */
#footer-content {
    max-width: 1200px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

/* Mỗi cột */
.danhmuc {
    width: 100%;
}

/* Tiêu đề */
.danhmuc h1 {
    font-size: 18px;
    margin-bottom: 15px;
}

/* Danh sách */
.danhmuc ul {
    list-style: none;
    padding: 0;
}

.danhmuc ul li {
    margin-bottom: 8px;
    font-size: 14px;
    color: #ccc;
    cursor: pointer;
}

/* Hover đẹp hơn */
.danhmuc ul li:hover {
    color: #ffeb3b;
}
/* Mobile */
.col-s-12 {
    width: 100%;
}

/* Tablet */
@media (min-width: 768px) {
    .col-m-6 {
        width: 48%;
    }
}

/* PC */
@media (min-width: 1024px) {
    .col-x-3 {
        width: 23%;
    }
}
@media (max-width: 1024px) {
    .list-product {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .list-product {
        grid-template-columns: 1fr;
    }
}
/* KHUNG CHAT NỔI */
#chat {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
}

/* BOX CHAT */
.chat-box {
    width: 280px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    overflow: hidden;
    font-family: Arial;
}

/* HEADER */
.chat-header {
    background: red;
    color: white;
    padding: 10px;
    font-weight: bold;
}

/* BODY */
.chat-body {
    height: 150px;
    padding: 10px;
    overflow-y: auto;
    font-size: 14px;
}

/* FOOTER */
.chat-footer {
    display: flex;
    border-top: 1px solid #ddd;
}

.chat-footer input {
    flex: 1;
    border: none;
    padding: 8px;
}

.chat-footer button {
    background: red;
    color: white;
    border: none;
    padding: 8px 12px;
    cursor: pointer;
}
#cart {
    position: fixed;
    right: 0;
    top: 100px;
    width: 300px;
    background: #fff;
    border-left: 2px solid #ccc;
    box-shadow: -2px 0 5px rgba(0,0,0,0.1);
}

.cart-header {
    background: red;
    color: #fff;
    padding: 10px;
    font-weight: bold;
}

.cart-body {
    max-height: 300px;
    overflow-y: auto;
    padding: 10px;
}

.cart-item {
    border-bottom: 1px solid #ddd;
    margin-bottom: 10px;
    padding-bottom: 5px;
}

.cart-footer {
    padding: 10px;
    font-weight: bold;
    background: #f5f5f5;
}
