/* Thiết lập chung */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f4f4f9;
    color: #333;
    line-height: 1.6;
}

/* Header - Thay màu vàng chanh bằng màu Navy đậm sang trọng */
header {
    background-color: #1a2a6c;
    color: #ffffff;
    padding: 2rem 0;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

header h1 {
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Thanh điều hướng */
nav {
    background-color: #b21f1f; /* Màu đỏ đô mạnh mẽ */
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
}

nav ul li {
    margin: 0 20px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: #fdbb2d; /* Đổi sang màu vàng kim khi di chuột */
}

/* Bố cục chính: Chia cột Sản phẩm và Sidebar */
.container {
    display: flex;
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 15px;
}

/* Danh sách sản phẩm - Grid Layout */
.product-list {
    flex: 3;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px;
}

/* Card sản phẩm */
.product-card {
    background: white;
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 15px;
}

.product-card h2 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    height: 50px; /* Giữ các tiêu đề đều nhau */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Nút bấm */
.button {
    background-color: #28a745;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s;
    margin-top: 10px;
}

.button:hover {
    background-color: #218838;
}

/* Sidebar */
.sidebar {
    flex: 1;
    background-color: #ffffff;
    margin-left: 20px;
    padding: 20px;
    border-radius: 10px;
    height: fit-content;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.social-icons a {
    display: block;
    margin: 10px 0;
    color: #1a2a6c;
    text-decoration: none;
    font-weight: 500;
}

.social-icons a:hover {
    text-decoration: underline;
}

/* Footer */
.footer {
    background-color: #222;
    color: white;
    display: flex;
    justify-content: space-around;
    padding: 40px 0;
    margin-top: 50px;
}

.footer-item h3 {
    margin-bottom: 15px;
    color: #fdbb2d;
}

/* Responsive cho di động */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }
    .sidebar {
        margin-left: 0;
        margin-top: 20px;
    }
}