 /* 1. Thiết lập nền tối và chữ */
        body {
            font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
            background-color: #f5f5f7;
            color: #1d1d1f;
            margin: 0;
            padding: 0;
        }

        /* 2. THANH MENU TÔNG SÁNG INLINE */
        .header-container {
            display: flex;
            justify-content: center;
            padding-top: 15px;
            position: sticky;
            top: 0;
            z-index: 1000;
        }

        .thanh-menu {
            background-color: rgba(255, 255, 255, 0.7);
            backdrop-filter: blur(15px);
            border: 1px solid rgba(0, 0, 0, 0.05);
            border-radius: 30px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            width: 90%;
            max-width: 1200px;
            height: 50px;
            padding: 0 30px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
        }

        .thanh-menu .logo {
            color: #1d1d1f;
            font-size: 22px;
            font-weight: 800;
            font-style: italic;
            text-decoration: none;
            letter-spacing: 0.5px;
        }

        .cac-muc-menu a {
            color: #666666;
            text-decoration: none;
            margin-left: 25px;
            font-size: 13px;
            font-weight: 600;
            text-transform: uppercase;
            transition: all 0.3s ease;
        }

        .cac-muc-menu a.active {
            color: #000000;
            font-weight: 700;
        }

        .cac-muc-menu a:hover {
            color: #0071e3;
        }

        /* Điểm nhấn cho số lượng giỏ hàng */
        #so-luong-gio-hang {
            background-color: #0071e3;
            color: white;
            padding: 2px 6px;
            border-radius: 10px;
            font-size: 11px;
            margin-left: 4px;
        }

        /* 3. KHU VỰC TIÊU ĐỀ CHÍNH */
        .tieu-de-trang {
            max-width: 1100px;
            margin: 50px auto 25px auto;
            padding: 0 20px;
            text-align: center;
        }

        .tieu-de-trang h1 {
            font-size: 38px;
            margin: 0;
            font-weight: 700;
            letter-spacing: 0.5px;
            color: #1d1d1f;
        }

        .tieu-de-trang h1 span {
            font-weight: 300;
            color: #666666;
        }

        .tieu-de-trang p {
            color: #6e6e73;
            margin-top: 8px;
            font-size: 15px;
        }

        /* 4. THANH BỘ LỌC TABS */
        .bo-loc-container {
            display: flex;
            justify-content: center;
            margin-bottom: 40px;
        }

        .thanh-bo-loc {
            background-color: #e8e8ed;
            padding: 4px;
            border-radius: 20px;
            display: flex;
            gap: 5px;
        }

        .nut-loc {
            background: none;
            border: none;
            color: #6e6e73;
            padding: 6px 24px;
            font-size: 14px;
            font-weight: 600;
            border-radius: 16px;
            cursor: pointer;
            transition: all 0.3s;
        }

        .nut-loc.active {
            background-color: #ffffff;
            color: #1d1d1f;
            box-shadow: 0 2px 6px rgba(0,0,0,0.1);
        }

        /* 5. DANH SÁCH SẢN PHẨM */
        .danh-sach-san-pham {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 30px;
            max-width: 1100px;
            margin: 0 auto;
            padding: 0 20px;
            margin-bottom: 80px; /* Tạo khoảng trống với footer */
        }

        .the-san-pham {
            background-color: #ffffff;
            border-radius: 16px;
            padding: 16px;
            box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
            transition: all 0.3s ease;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
        }

        .the-san-pham:hover {
            transform: translateY(-6px);
            box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
        }

        .khung-anh {
            width: 100%;
            padding-top: 56.25%; 
            position: relative;
            border-radius: 10px;
            overflow: hidden;
            background-color: #f5f5f7;
        }

        .the-san-pham img {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .thong-tin {
            padding: 12px 4px 4px 4px;
            text-align: left;
        }

        .the-san-pham h3 {
            font-size: 16px;
            font-weight: 600;
            color: #1d1d1f;
            margin: 0 0 8px 0;
            line-height: 1.4;
        }

        .gia-tien {
            font-size: 18px;
            font-weight: 700;
            color: #e30000;
            margin-bottom: 15px;
        }

        .nut-mua {
            background-color: #0071e3;
            color: white;
            border: none;
            padding: 10px;
            width: 100%;
            border-radius: 10px;
            font-size: 14px;
            font-weight: 600;
            cursor: pointer;
            transition: background-color 0.2s;
        }

        .nut-mua:hover {
            background-color: #005bb5;
        }

        /* 6. THIẾT KẾ FOOTER ĐEN SANG TRỌNG (FORM ẢNH 3) */
        .chan-trang {
            background-color: #000000;
            color: #ffffff;
            padding: 60px 0 30px 0;
            font-size: 14px;
        }

        .footer-content {
            max-width: 1100px;
            margin: 0 auto;
            padding: 0 20px;
            display: grid;
            grid-template-columns: 2fr repeat(3, 1fr); /* Cột logo to hơn các cột link */
            gap: 40px;
        }

        .footer-logo h2 {
            font-size: 26px;
            font-weight: 800;
            font-style: italic;
            margin: 0 0 10px 0;
        }

        .footer-logo p {
            color: #666666;
            font-size: 13px;
        }

        .footer-links h4 {
            font-size: 15px;
            margin: 0 0 20px 0;
            color: #ffffff;
            font-weight: 600;
        }

        .footer-links ul {
            list-style: none;
            padding: 0;
            margin: 0;
        }

        .footer-links ul li {
            margin-bottom: 12px;
        }

        .footer-links ul li a {
            color: #888888;
            text-decoration: none;
            transition: color 0.2s;
        }

        .footer-links ul li a:hover {
            color: #ffffff;
        }

        /* Bản quyền dưới cùng */
        .footer-bottom {
            max-width: 1100px;
            margin: 40px auto 0 auto;
            padding: 20px 20px 0 20px;
            border-top: 1px solid #222222;
            text-align: center;
            color: #666666;
            font-size: 12px;
        }
/* ==================== ĐỒNG BỘ LẠI TOÀN BỘ THANH MENU ==================== */

/* 1. Thùng chứa menu chính: Đẩy 2 cụm Trái - Phải về 2 đầu màn hình */
.thanh-menu {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
    background-color: #111; /* Màu nền đen sang trọng */
}

/* 2. Cụm bên Trái: Logo và các mục menu xếp hàng ngang */
.menu-trai {
    display: flex;
    align-items: center;
    gap: 40px; /* Khoảng cách từ Logo đến các mục menu */
}

.logo {
    color: #fff;
    font-size: 22px;
    font-weight: bold;
    text-decoration: none;
    letter-spacing: 1px;
}

.cac-muc-menu {
    display: flex;
    gap: 20px; /* Khoảng cách giữa các mục Trang chủ, Giới thiệu... */
}

/* 3. Cụm bên Phải: Giỏ hàng và Nút Đăng nhập xếp hàng ngang */
.menu-phai {
    display: flex;
    align-items: center;
    gap: 25px;
}

/* 4. Định dạng chữ chung cho tất cả các liên kết trong menu */
.thanh-menu a {
    color: #999;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: 0.2s;
}

/* Khi di chuột vào các mục chữ sẽ sáng lên trắng */
.thanh-menu a:hover {
    color: #fff;
}

/* Mục nào đang được chọn (active) thì sáng trắng sẵn */
.thanh-menu a.active {
    color: #fff;
    font-weight: 600;
}

/* Định dạng riêng cho ô Giỏ Hàng */
#nut-gio-hang {
    color: #fff;
}
#so-luong-gio-hang {
    background-color: #e3001b; /* Màu đỏ cho số lượng giỏ hàng */
    color: white;
    padding: 2px 6px;
    border-radius: 50%;
    font-size: 12px;
    margin-left: 5px;
}

/* 5. Định dạng riêng cho NÚT ĐĂNG NHẬP màu xanh bo tròn xịn sò */
.nut-dang-nhap {
    color: #fff !important; /* Ép buộc lấy màu trắng */
    background-color: #0071e3; /* Màu xanh Apple */
    padding: 8px 18px;
    border-radius: 20px;
    font-weight: 600 !important;
}

.nut-dang-nhap:hover {
    background-color: #005bb5 !important;
    transform: scale(1.05);
}
/* ==================== CSS CHO AVATAR & DROPDOWN MENU ==================== */

/* Thùng chứa bọc ngoài để định vị */
.user-profile-container {
    position: relative;
    display: none; /* Mặc định ẩn đi, chỉ hiện bằng JS khi đã đăng nhập */
}

/* Thiết kế Icon Avatar tròn xinh xắn */
.avatar-tron {
    width: 38px;
    height: 38px;
    background-color: #0071e3; /* Màu xanh công nghệ */
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
    text-transform: uppercase;
    user-select: none;
    transition: 0.2s;
    border: 2px solid #fff;
}

.avatar-tron:hover {
    transform: scale(1.05);
    box-shadow: 0 0 10px rgba(0, 113, 227, 0.5);
}

/* Bảng Menu nhỏ thả xuống */
.menu-tha-xuong {
    position: absolute;
    top: 48px;
    right: 0;
    background-color: white;
    min-width: 180px;
    border-radius: 12px;
    box-shadow: 0 4px 25px rgba(0,0,0,0.15);
    padding: 10px 0;
    display: none; /* Mặc định ẩn, bấm avatar mới hiện */
    z-index: 1000;
}

/* Hiển thị menu khi thêm class .active bằng JS */
.menu-tha-xuong.active {
    display: block;
}

/* Phần chữ chào hỏi trong menu */
.thong-tin-nhanh {
    padding: 5px 15px 8px 15px;
}
.txt-xin-chao {
    margin: 0;
    font-size: 11px;
    color: #888;
}
.txt-ten-user {
    margin: 2px 0 0 0;
    font-size: 14px;
    font-weight: bold;
    color: #111;
}

.menu-tha-xuong hr {
    border: 0;
    border-top: 1px solid #eee;
    margin: 5px 0;
}

/* Các nút bấm bên trong menu thả xuống */
.menu-tha-xuong a {
    display: block;
    padding: 10px 15px;
    color: #333 !important;
    text-decoration: none;
    font-size: 13px;
    transition: 0.2s;
    text-align: left;
}

.menu-tha-xuong a:hover {
    background-color: #f4f4f9;
    color: #0071e3 !important;
}

/* Chữ Đăng xuất màu đỏ báo hiệu */
.menu-tha-xuong a.txt-dang-xuat {
    color: #dc3545 !important;
}
.menu-tha-xuong a.txt-dang-xuat:hover {
    background-color: #fff0f1;
}