/* --- 1. Reset & Cài đặt chung --- */
* {
    box-sizing: border-box; /* Giúp padding không làm tăng chiều rộng phần tử */
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    width: 100%;
    background-color: #f0f2f5; /* Màu nền trang nhẹ nhàng */
}

a {
    text-decoration: none; /* Bỏ gạch chân link */
    transition: 0.3s;      /* Hiệu ứng mượt mà khi hover */
}

ul {
    list-style: none; /* Bỏ dấu chấm tròn của danh sách */
}

/* --- 2. Top Header (Sản phẩm, Tin tức...) --- */
.top-header {
    background-color: #1a1a1a;
    color: white;
    padding: 10px 5%; /* Thụt lề 5% hai bên cho thoáng */
    display: flex;
    justify-content: flex-end; /* Đẩy cụm link sang phải */
}

.top-header-links {
    display: flex;
    gap: 25px;
}

.top-header-links a {
    color: #ccc;
    font-size: 14px;
}

.top-header-links a:hover {
    color: white;
}

/* --- 3. Navigation (KHÚC BẠN MUỐN GIÃN ĐỀU) --- */
.navigation {
    background-color: #333;
    border-top: 1px solid #444;
}

.nav-menu {
    display: flex;
    /* justify-content: space-around: Giãn đều các mục ra toàn bộ chiều ngang */
    justify-content: space-around; 
    align-items: center;
    padding: 15px 5%;
}

.nav-menu a {
    color: white;
    font-weight: 600;
    text-transform: uppercase; /* Cho chữ in hoa cho sang */
    font-size: 15px;
}

.nav-menu a:hover {
    color: #ffcc00; /* Đổi màu vàng khi rê chuột vào */
}

/* --- 4. Header (Logo & Banner) --- */
.header {
    display: flex;
    height: 150px;
}

.logo {
    width: 20%;
    background-color: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    font-weight: 900;
    color: #222;
    border-right: 2px solid #fff;
}

.banner {
    width: 80%;
    background-color: #d1d1d1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #555;
    letter-spacing: 5px;
}

/* --- 5. Thân trang (Sidebar & Content Area) --- */
.main-layout {
    display: flex;
    width: 100%;
    min-height: 500px;
}

.sidebar {
    width: 20%;
    background-color: #fff;
    padding: 30px 20px;
    border-right: 1px solid #ddd;
}

.sidebar h3 {
    font-size: 18px;
    margin-bottom: 20px;
    border-left: 4px solid #333;
    padding-left: 10px;
}

.featured-products li {
    margin-bottom: 15px;
}

.featured-products a {
    color: #0066cc;
}

.featured-products a:hover {
    text-decoration: underline;
}

/* --- 6. Content Area (Item Grid) --- */
.content-area {
    width: 80%;
    padding: 30px;
}

.item-grid {
    display: flex;
    flex-wrap: wrap; /* Tự xuống dòng khi hết chỗ */
    gap: 25px;      /* Khoảng cách giữa các ô */
}

.item {
    /* calc(50% - 13px) để chia đúng 2 cột đều nhau trừ đi khoảng cách gap */
    flex: 1 1 calc(50% - 13px); 
    background-color: white;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    border: 1px solid #eee;
    font-weight: bold;
    color: #444;
}

.item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0,0,0,0.1);
}

/* --- 7. Footer --- */
.footer {
    background-color: #1a1a1a;
    color: #888;
    text-align: center;
    padding: 30px;
    width: 100%;
    line-height: 1.8;
}

.footer strong {
    color: #fff;
}