html {
    scroll-behavior: smooth; /* Để khi bấm menu nó trượt xuống mượt mà */

    /* ===== Fluid Typography (Mobile First) =====
       - Chữ tự co giãn theo kích thước màn hình (đặc biệt là mobile)
       - Giữ cỡ chữ dễ đọc: tối thiểu ~14px, tối đa ~16px
       - Tránh trình duyệt mobile tự phóng chữ (text-size-adjust)
    */
    font-size: clamp(14px, 3.2vw, 16px);
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}
* { box-sizing: border-box; }

/* ===== Typography helpers =====
   - Đồng bộ font giữa input/textarea/button (khỏi bị lệch font)
   - Fix iOS Safari tự zoom khi focus input nếu font < 16px
*/
input, textarea, select, button { font: inherit; }
input, textarea, select { font-size: max(16px, 1rem) !important; }
body {
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    padding: 0;
    color: #fff;
    line-height: 1.5;
    
    /* 🔥 MÀU TÍM HIỆN ĐẠI (Deep Purple Universe) */
    background: linear-gradient(135deg, #120c29, #302b63, #24243e);
    background-attachment: fixed; /* Giúp nền đứng yên tạo chiều sâu */
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite; /* Chuyển màu nhẹ nhàng */
    min-height: 100vh;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}


/* --- 2. Header (Menu kính) --- */
header {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 5%;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    text-shadow: 0 0 10px #ff003c, 0 0 20px #ff003c;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 2px;
}

nav ul {
    list-style: none; padding: 0; display: flex;
}

nav ul li { margin-left: 2rem; }

nav ul li a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 600;
    transition: all 0.3s;
}

nav ul li a:hover {
    color: #ff003c;
    text-shadow: 0 0 8px #ff003c;
}

/* --- 3. Hero Banner --- */
main {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1.5rem;
}

.hero {
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 3rem 1rem;
    border-radius: 25px;
    margin-bottom: 3rem;
    box-shadow: 0 0 20px rgba(255, 0, 60, 0.2);
    animation: floatHero 4s ease-in-out infinite;
}

@keyframes floatHero {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(to right, #ff003c, #3a7bd5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 900;
}

/* --- 4. Tiêu đề danh mục --- */
.category-header {
    text-align: center;
    margin: 3rem 0 2rem;
}

.category-header h2 {
    font-size: 2rem;
    color: #fff;
    text-transform: uppercase;
    border-bottom: 2px solid #ff003c;
    display: inline-block;
    padding-bottom: 5px;
    text-shadow: 0 0 10px #ff003c;
}

.category-header p { color: #aaa; margin-top: 5px; }

/* --- 5. Lưới sản phẩm --- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

/* --- 6. Thẻ sản phẩm (VIP) --- */
.product-card {
    background: rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 1.5rem;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-10px) scale(1.02);
    background: rgba(255, 255, 255, 0.15);
    border-color: #ff003c;
    box-shadow: 0 0 25px rgba(255, 0, 60, 0.4);
}

.product-icon {
    max-width: 70px; height: 70px;
    object-fit: contain; margin-bottom: 1rem;
    filter: drop-shadow(0 0 5px rgba(255,255,255,0.5));
}

.product-card h3 {
    margin: 0 0 0.5rem; font-size: 1.1rem; color: #fff;
    height: 3rem; display: flex; align-items: center; justify-content: center;
}

.product-card p { font-size: 0.85rem; color: #ccc; margin-bottom: 1rem; }

.price {
    font-size: 1.3rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 1.2rem;
    text-shadow: 0 0 10px #ffffff, 0 0 20px #ffffff; /* Bóng trắng mạnh hơn */
}

/* --- 7. Nút Mua ngay Neon --- */
.buy-button {
    display: inline-block; text-decoration: none;
    background: transparent; color: #ff003c;
    border: 2px solid #ff003c; padding: 0.6rem 1.2rem;
    font-size: 0.9rem; font-weight: 800; border-radius: 50px;
    text-transform: uppercase; transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(255, 0, 60, 0.1);
    position: relative; overflow: hidden; z-index: 1;
}

.buy-button::before {
    content: ""; position: absolute; top: 0; left: 0; width: 0%; height: 100%;
    background: #ff003c; z-index: -1; transition: width 0.3s ease;
}

.buy-button:hover {
    color: #fff;
    box-shadow: 0 0 20px #ff003c, 0 0 40px #ff003c;
}

.buy-button:hover::before { width: 100%; }

/* --- 8. POPUP BẢO HÀNH (Đã chỉnh màu tối) --- */
.popup-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.8); /* Nền đen mờ */
    backdrop-filter: blur(8px);
    display: flex; justify-content: center; align-items: center;
    z-index: 9999; animation: fadeIn 0.5s ease;
}

.popup-content {
    background: #1a1a2e; /* Nền tối */
    border: 1px solid #ff003c; /* Viền xanh neon */
    width: 90%; max-width: 500px;
    border-radius: 15px; overflow: hidden;
    box-shadow: 0 0 30px rgba(255, 0, 60, 0.3);
    animation: scaleUp 0.3s ease; color: #fff;
}

.popup-header {
    background: linear-gradient(to right, #ff003c, #24243e);
    padding: 1rem; text-align: center;
}

.popup-body { padding: 1.5rem; }
.popup-body ul { list-style: none; padding: 0; }
.popup-body li {
    margin-bottom: 12px; border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 8px; color: #ddd;
}

.close-btn {
    display: block; width: 100%; padding: 1rem; border: none;
    background-color: #ff003c; color: #000; /* Chữ đen trên nền xanh */
    font-weight: bold; cursor: pointer; transition: 0.3s;
}
.close-btn:hover { background-color: #fff; }

/* --- 9. MÈO MASCOT (Đã chỉnh vị trí) --- */
#mascot-container {
    position: fixed; bottom: 20px; right: 20px;
    z-index: 99999; /* Nổi lên trên cùng */
    display: flex; flex-direction: column; align-items: flex-end;
    pointer-events: none;
}

.mascot-img {
    width: 100px; height: auto;
    animation: floatMascot 3s ease-in-out infinite;
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.6));
}

/* --- Masot Bubble đã chỉnh nhỏ và mờ --- */
.bubble {
    background: rgba(255, 255, 255, 0.85); /* Thêm độ mờ cho nền */
    color: #333; 
    padding: 6px 12px; /* Nhỏ lại (cũ là 10px 15px) */
    border-radius: 12px; 
    font-size: 0.8rem; /* Chữ nhỏ lại (cũ là 0.9rem) */
    font-weight: bold;
    box-shadow: 0 0 10px rgba(255, 0, 60, 0.3); /* Bóng đổ mờ hơn */
    max-width: 160px; /* Thu hẹp chiều rộng (cũ là 200px) */
    text-align: right; 
    margin-bottom: 8px;
    border: 1.5px solid rgba(255, 0, 60, 0.5); /* Viền mờ hơn */
    position: relative;
    transition: opacity 0.5s ease;
    opacity: 0.9; /* Độ mờ tổng thể */
}

/* Đảm bảo bong bóng thoại không bị ép hiện quá đậm trên mobile */
#mascot-bubble {
    opacity: 0.9 !important;
}

.bubble::after {
    content: ''; position: absolute; bottom: -8px; right: 30px;
    border-width: 8px 8px 0; border-style: solid;
    border-color: #ff003c transparent transparent transparent;
}

@keyframes floatMascot {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes scaleUp { from { transform: scale(0.8); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* --- 10. Footer --- */
footer {
    text-align: center; padding: 2rem; margin-top: 4rem;
    background: rgba(0, 0, 0, 0.6); color: #888;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* =========================================
   📱 RESPONSIVE (Điện thoại)
========================================= */
@media (max-width: 768px) {
    /* Header */
    header { padding: 0.8rem; }
    nav { flex-direction: column; gap: 0.5rem; }
    nav ul { gap: 15px; justify-content: center; }
    nav ul li { margin: 0; }
    .logo { font-size: 1.5rem; }

    /* Sản phẩm: 2 cột */
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .product-card { padding: 1rem 0.5rem; }
    .product-icon { width: 45px; height: 45px; }
    .product-card h3 { font-size: 0.85rem; min-height: 2.5rem; }
    .buy-button { width: 100%; font-size: 0.8rem; padding: 0.5rem; }

    /* Popup & Mascot nhỏ lại */
    .mascot-img { width: 70px; }
    .bubble { font-size: 0.8rem; max-width: 160px; }
    #mascot-container { bottom: 10px; right: 10px; }
    .popup-body { max-height: 50vh; overflow-y: auto; }
}
/* --- SỬA LỖI BỐ CỤC (Dán vào cuối file style.css) --- */
.category-wrapper {
    width: 100%;
    display: block; /* Bắt buộc xuống dòng */
    position: relative;
    margin-bottom: 4rem; /* Khoảng cách an toàn giữa các nhóm */
    clear: both; /* Ngăn không cho các phần tử dính vào nhau */
}
/* =========================================
   📦 HIỂN THỊ KHO HÀNG (STOCK STATUS) - Đã sửa màu
========================================= */

.stock-wrapper {
    margin-bottom: 10px;
    width: 100%;
    padding: 0 5px;
}

/* Thanh nền xám mờ */
.progress-bar-bg {
    width: 100%;
    height: 6px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 5px;
}

/* --- TRẠNG THÁI 1: CÒN NHIỀU HÀNG (Mặc định) --- */
/* Màu xanh ngọc (Green/Cyan) */
.progress-bar-fill {
    height: 100%;
    border-radius: 10px;
    background: linear-gradient(to right, #ff003c, #b8002a); 
    transition: width 0.5s ease;
}

.stock-text {
    font-size: 0.75rem;
    color: #ccc;
    display: flex;
    justify-content: space-between;
    font-weight: 600;
}

/* Chữ trạng thái bên phải (Mặc định màu xanh) */
.stock-status-text {
    color: #00f260; 
}

/* --- TRẠNG THÁI 2: SẮP HẾT HÀNG (Thêm class "low-stock") --- */
/* Màu đỏ rực (Red/Orange) */
.low-stock .progress-bar-fill {
    background: linear-gradient(to right, #ff416c, #ff4b2b) !important;
    box-shadow: 0 0 10px #ff4b2b; /* Phát sáng đỏ */
}

.low-stock .stock-status-text {
    color: #ff4b2b !important;
    animation: blinkStock 1s infinite; /* Nhấp nháy */
}

@keyframes blinkStock {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}
/* =========================================
   🎟️ CSS CHO MODAL THANH TOÁN (CHECKOUT)
========================================= */

/* Kích thước modal to hơn popup bảo hành xíu */
.checkout-modal {
    max-width: 450px;
    background: #141e30; /* Nền tối */
    border: 1px solid #ff003c;
}

.close-x {
    float: right;
    font-size: 1.5rem;
    cursor: pointer;
    color: white;
}

.checkout-info {
    text-align: center;
    border-bottom: 1px dashed rgba(255,255,255,0.2);
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}

.old-price {
    text-decoration: line-through; /* Gạch ngang giá cũ */
    color: #888;
}

/* Ô nhập mã */
.coupon-section label {
    display: block;
    margin-bottom: 5px;
    font-size: 0.9rem;
    color: #ccc;
}

.coupon-input-group {
    display: flex;
    gap: 5px;
}

#input-coupon {
    flex: 1;
    padding: 8px;
    border-radius: 5px;
    border: 1px solid #444;
    background: #0f0c29;
    color: white;
    outline: none;
}

#input-coupon:focus {
    border-color: #ff003c;
}

.btn-apply {
    background: #444;
    color: white;
    border: none;
    padding: 0 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s;
}

.btn-apply:hover {
    background: #ff003c;
    color: black;
}

.coupon-msg {
    font-size: 0.8rem;
    margin-top: 5px;
    min-height: 1.2rem;
}
.coupon-super-sale {
    padding: 10px 12px;
    border-radius: 8px;
    margin-top: 8px;
    background: linear-gradient(135deg, rgba(255, 230, 109, 0.15), rgba(255, 70, 85, 0.15));
    border: 1px solid #ff4655;
    box-shadow: 0 0 15px rgba(255, 70, 85, 0.4);
    font-size: 0.85rem;
}


/* Tổng tiền */
.total-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.2rem;
    font-weight: bold;
    margin: 1.5rem 0;
    padding: 10px;
    background: rgba(255, 0, 60, 0.1);
    border-radius: 8px;
    color: #fff;
}

.final-price {
    color: #ff4655; /* Màu xanh lá tiền tài */
    font-size: 1.5rem;
    text-shadow: 0 0 10px #ff4655;
}

/* Nút chốt đơn FB */
.btn-checkout-fb {
    width: 100%;
    padding: 12px;
    background: linear-gradient(to right, #ff003c, #b8002a);
    border: none;
    color: white;
    font-weight: bold;
    font-size: 1rem;
    border-radius: 50px;
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 0 4px 15px rgba(0, 114, 255, 0.4);
}

.btn-checkout-fb:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 114, 255, 0.6);
}
/* =========================================
   🔐 LOGIN / REGISTER MODAL CSS
========================================= */

.login-modal {
    max-width: 400px;
    background: rgba(20, 30, 48, 0.95); /* Nền tối đậm */
    border: 1px solid #ff003c;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 0 30px rgba(255, 0, 60, 0.2);
}

.login-title {
    color: #fff;
    margin-bottom: 1.5rem;
    text-shadow: 0 0 10px #ff003c;
    letter-spacing: 2px;
}

.input-group {
    position: relative;
    margin-bottom: 1.2rem;
}

.input-group i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #ff003c;
}

.input-group input {
    width: 100%;
    padding: 12px 15px 12px 40px; /* Chừa chỗ cho icon */
    background: #0f0c29;
    border: 1px solid #444;
    border-radius: 50px;
    color: white;
    outline: none;
    transition: 0.3s;
}

.input-group input:focus {
    border-color: #ff003c;
    box-shadow: 0 0 10px rgba(255, 0, 60, 0.3);
}

.btn-neon {
    width: 100%;
    padding: 12px;
    background: linear-gradient(to right, #ff003c, #b8002a);
    border: none;
    color: white;
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
    margin-top: 10px;
    transition: 0.3s;
}

.btn-neon:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(0, 114, 255, 0.6);
}

.switch-link {
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: #aaa;
}

.switch-link a {
    color: #ff003c;
    text-decoration: none;
    font-weight: bold;
}
/* =========================================
   📝 HIỂN THỊ MÔ TẢ CHI TIẾT (MOBILE & PC)
========================================= */

/* Định dạng lại phần mô tả cho đẹp hơn */
.product-card p {
    display: block !important; /* Bắt buộc hiện trên mọi thiết bị */
    font-size: 0.85rem;
    color: #ccc;
    margin: 5px 0 15px 0;
    line-height: 1.4;
    text-align: left; /* Căn trái cho dễ đọc dòng tính năng */
    padding: 0 5px;
    border-top: 1px dashed rgba(255,255,255,0.1); /* Kẻ ngang ngăn cách */
    padding-top: 10px;
}

/* Trên điện thoại, chữ nhỏ lại một chút để không bị dài quá */
@media (max-width: 768px) {
    .product-card p {
        font-size: 0.75rem; /* Chữ nhỏ gọn */
        margin-bottom: 10px;
    }
    
    /* Điều chỉnh lại chiều cao thẻ để chứa đủ chữ */
    .product-card {
        height: auto; /* Tự động giãn theo nội dung */
        padding-bottom: 15px;
    }
}
/* --- CSS CHO MÔ TẢ TRONG MODAL --- */
.product-details-preview {
    background: rgba(255, 255, 255, 0.05);
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 15px;
    text-align: left; /* Căn trái cho dễ đọc */
    font-size: 0.85rem;
    color: #ddd;
    border-left: 3px solid #ff003c; /* Viền xanh điểm nhấn */
}
/* =========================================
   📱 CHỈNH 3 CỘT SẢN PHẨM TRÊN MOBILE
========================================= */
@media (max-width: 768px) {
    /* 1. Chỉnh lưới từ 2 thành 3 cột */
    .product-grid {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important; /* Hiện 3 ô 1 hàng */
        gap: 5px !important; /* Thu nhỏ khoảng cách giữa các ô */
        padding: 0 2px !important;
    }

    /* 2. Thu nhỏ nội dung bên trong để vừa với 3 cột */
    .product-card {
        padding: 8px 4px !important;
        min-height: 180px !important; /* Giảm chiều cao tối thiểu */
    }

    /* Thu nhỏ Icon sản phẩm */
    .product-icon {
        max-width: 35px !important; 
        height: 35px !important;
        margin-bottom: 5px !important;
    }

    /* Thu nhỏ tên sản phẩm */
    .product-card h3 {
        font-size: 0.65rem !important; /* Chữ nhỏ lại để không bị tràn */
        min-height: 1.8rem !important;
        -webkit-line-clamp: 2; /* Giữ tối đa 2 dòng */
    }

    /* Thu nhỏ giá tiền */
    .price {
        font-size: 0.75rem !important;
        margin-bottom: 5px !important;
    }

    /* Thu nhỏ nút mua */
    .buy-button {
        font-size: 0.65rem !important;
        padding: 4px 0 !important;
        border-radius: 4px !important;
    }

    /* Thu nhỏ nhãn Sale/Mới */
    .sale-tag {
        font-size: 0.55rem !important;
        padding: 2px 4px !important;
    }
    
    /* Ẩn bớt giỏ hàng mini trên 3 cột để đỡ rối mắt (tùy chọn) */
    .mini-cart-btn {
        width: 25px !important;
        height: 25px !important;
        font-size: 0.8rem !important;
        bottom: 5px !important;
        right: 5px !important;
    }
}
    
    /* Header & Menu điện thoại */
    header { padding: 10px; }
    .logo { font-size: 1.2rem; }
    nav ul { gap: 10px; margin-top: 5px; flex-wrap: wrap; justify-content: center; }
    nav ul li { margin: 0 5px; }
    nav ul li a { font-size: 0.8rem; }
}
/* =========================================
   🔧 TINH CHỈNH CHI TIẾT SẢN PHẨM TRONG LƯỚI
   (Dán vào cuối file style.css)
========================================= */

/* 1. Chỉnh lại chữ mô tả để không bị tràn ra ngoài ô */
.product-card p {
    font-size: 0.8rem; /* Chữ nhỏ gọn lại */
    line-height: 1.4;
    padding: 0 5px;
    margin-bottom: 15px;
    word-wrap: break-word; /* Tự xuống dòng nếu chữ quá dài */
}

/* 2. Chỉnh ảnh logo cho cân đối */
.product-icon {
    max-width: 60px; /* Giới hạn chiều rộng */
    height: 60px; /* Giữ chiều cao cố định */
    object-fit: contain; /* Ảnh không bị méo */
    margin-bottom: 10px;
}

/* 3. Đảm bảo thẻ Lửa (Fire) co giãn tốt trong lưới */
.fire-border-only {
    width: 100%; /* Chiếm 100% ô lưới được chia */
    box-sizing: border-box; /* Tính cả viền vào kích thước */
    margin: 0; /* Xóa lề thừa */
}
/* --- NÚT CHỌN SỐ LƯỢNG --- */
.quantity-section {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 15px 0;
    gap: 10px;
}

.quantity-btn {
    width: 35px;
    height: 35px;
    background: #0f0c29;
    border: 1px solid #ff003c;
    color: #ff003c;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quantity-btn:hover {
    background: #ff003c;
    color: #000;
}

#so-luong-mua {
    width: 50px;
    text-align: center;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1.2rem;
    font-weight: bold;
}
/* --- NÚT ZALO & NHÓM NÚT --- */
.checkout-actions {
    display: flex;
    gap: 10px; /* Khoảng cách giữa 2 nút */
    margin-top: 15px;
}

.btn-checkout-fb, .btn-checkout-zalo {
    flex: 1; /* Chia đều chiều rộng */
    padding: 12px;
    border: none;
    color: white;
    font-weight: bold;
    font-size: 0.9rem;
    border-radius: 50px;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

/* Màu nút Facebook cũ */
.btn-checkout-fb {
    background: linear-gradient(to right, #ff003c, #b8002a);
    box-shadow: 0 4px 15px rgba(0, 114, 255, 0.4);
}

/* Màu nút Zalo mới (Xanh dương đậm) */
.btn-checkout-zalo {
    background: linear-gradient(to right, #0068ff, #0041a3);
    box-shadow: 0 4px 15px rgba(0, 104, 255, 0.4);
}

.btn-checkout-zalo:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 104, 255, 0.6);
}
/* --- PHẦN THANH TOÁN QR --- */
.payment-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 10px;
}

.tab-btn {
    background: transparent;
    border: 1px solid #ff003c;
    color: #ff003c;
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: 0.3s;
}

.tab-btn.active {
    background: #ff003c;
    color: #000;
    font-weight: bold;
}

.qr-section {
    text-align: center;
    background: #fff;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 15px;
}

.qr-img {
    width: 100%;
    max-width: 200px;
    height: auto;
    display: block;
    margin: 0 auto;
}

.qr-note {
    color: #333;
    font-size: 0.8rem;
    margin-top: 10px;
    font-weight: bold;
}

.btn-confirm-pay {
    width: 100%;
    padding: 12px;
    background: linear-gradient(to right, #ff003c, #ff4655);
    border: none;
    color: white;
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
    margin-top: 10px;
    box-shadow: 0 4px 15px rgba(56, 239, 125, 0.4);
}
/* =========================================
   TRANG THANH TOÁN (CHECKOUT PAGE)
========================================= */
.checkout-container {
    max-width: 1000px;
    margin: 2rem auto;
    padding: 0 20px;
}

.checkout-title {
    text-align: center;
    color: #ff003c;
    text-shadow: 0 0 15px rgba(255, 0, 60, 0.5);
    margin-bottom: 2rem;
}

.checkout-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr; /* Cột trái to, phải nhỏ */
    gap: 2rem;
}

/* Khung chung */
.checkout-form, .checkout-summary {
    background: #1a1a2e;
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 0, 60, 0.2);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.checkout-form h3, .checkout-summary h3 {
    border-bottom: 1px dashed #444;
    padding-bottom: 10px;
    margin-top: 0;
    color: #eee;
}

/* Form nhập liệu */
.form-group { margin-bottom: 15px; }
.form-group label { display: block; margin-bottom: 5px; color: #ccc; }
.form-group input, .form-group textarea {
    width: 100%;
    padding: 10px;
    background: #0f0c29;
    border: 1px solid #444;
    color: white;
    border-radius: 5px;
}

/* Tóm tắt đơn hàng */
.product-summary-box {
    background: rgba(255,255,255,0.05);
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.quantity-control {
    display: flex; align-items: center; gap: 5px; margin-top: 10px;
}
.quantity-control button {
    width: 30px; height: 30px; background: #333; border: 1px solid #ff003c; color: #fff; cursor: pointer;
}
.quantity-control input {
    width: 40px; text-align: center; background: transparent; border: none; color: #fff; font-weight: bold;
}

.price-row {
    display: flex; justify-content: space-between; margin-bottom: 10px; color: #aaa;
}
.price-row.total {
    color: #fff; font-size: 1.2rem; font-weight: bold; border-top: 1px solid #444; padding-top: 10px; margin-top: 10px;
}

/* Phương thức thanh toán */
.method-card {
    display: block;
    padding: 10px;
    border: 1px solid #444;
    border-radius: 8px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: 0.3s;
    color: #ccc;
}
.method-card:hover { background: rgba(255,255,255,0.05); }
.method-card.active {
    border-color: #ff003c;
    background: rgba(255, 0, 60, 0.1);
    color: #fff;
}

.btn-checkout-final {
    width: 100%;
    padding: 15px;
    background: linear-gradient(to right, #ff003c, #b8002a);
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1.1rem;
    margin-top: 20px;
    cursor: pointer;
    box-shadow: 0 0 20px rgba(0, 114, 255, 0.4);
}

/* Mobile */
@media (max-width: 768px) {
    .checkout-grid { grid-template-columns: 1fr; }
}
/* =========================================
   🤖 CHATBOT TỰ ĐỘNG (TRỢ LÝ ẢO)
========================================= */

/* Nút mở chat (Nằm trên con mèo) */
.chat-toggle-btn {
    position: fixed;
    bottom: 140px; /* Cao hơn con mèo để không bị che */
    right: 20px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #ff003c, #b8002a);
    border-radius: 50%;
    box-shadow: 0 5px 20px rgba(0, 114, 255, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 30px;
    color: white;
    cursor: pointer;
    z-index: 99999;
    transition: 0.3s;
    animation: pulseChat 2s infinite;
}

.chat-toggle-btn:hover { transform: scale(1.1); }

/* Khung chat chính */
.chat-box-container {
    position: fixed;
    bottom: 210px; /* Hiện ra phía trên nút */
    right: 20px;
    width: 320px;
    height: 450px;
    background: #141e30;
    border: 1px solid #ff003c;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    display: none; /* Mặc định ẩn */
    flex-direction: column;
    z-index: 99999;
    overflow: hidden;
    animation: slideUp 0.3s ease;
}
/* =========================================
   ☰ MENU TRƯỢT (SIDEBAR) & NÚT BẤM
========================================= */

/* Nút mở menu (3 gạch) */
.menu-toggle-btn {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 10001; /* Cao hơn cả Header */
    background: linear-gradient(to right, #ff003c, #b8002a);
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 114, 255, 0.4);
    transition: 0.3s;
}
.menu-toggle-btn:hover { transform: scale(1.1); }

/* Thanh Sidebar (Giao diện Cinematic Kính Mờ) */
.sidebar-panel {
    position: fixed;
    top: 0; left: -280px; /* Mặc định ẩn */
    width: 280px;
    height: 100%;
    
    /* --- HIỆU ỨNG KÍNH MỚI --- */
    background: rgba(10, 15, 30, 0.85) !important; /* Màu tối trong suốt */
    backdrop-filter: blur(20px);        /* Làm mờ hậu cảnh */
    -webkit-backdrop-filter: blur(20px);
    
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 10px 0 50px rgba(0, 0, 0, 0.9);
    
    /* --- SỬA LỖI NÚT BỊ ĐÈ --- */
    z-index: 10002 !important; 
    
    padding-top: 60px;
    transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    
    display: flex;
    flex-direction: column;
    gap: 5px;
    overflow-y: auto; /* Cho phép cuộn nếu màn hình ngắn */
}

/* Khi có class 'active' thì hiện ra */
.sidebar-panel.active { left: 0; }

/* Các mục trong menu */
.sidebar-link {
    display: flex;
    align-items: center;
    padding: 15px 25px;
    color: #ccc;
    text-decoration: none;
    font-size: 1rem;
    transition: 0.2s;
    border-left: 3px solid transparent;
}

.sidebar-link i { width: 30px; color: #ff003c; }

.sidebar-link:hover {
    background: rgba(255,255,255,0.05);
    color: white;
    border-left: 3px solid #ff003c;
}

/* Nút đóng menu (X) */
.close-sidebar {
    position: absolute;
    top: 20px; right: 20px;
    font-size: 1.5rem;
    color: #fff;
    cursor: pointer;
}

/* Overlay làm tối màn hình khi mở menu */
.menu-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 9999;
    display: none; /* Mặc định ẩn */
    backdrop-filter: blur(3px);
}

/* CHỈNH LẠI HEADER CHO CÂN ĐỐI */
header {
    padding-left: 80px; /* Để tránh bị nút Menu che logo */
}
@media (max-width: 768px) {
    header { padding-left: 70px; }
    .logo { font-size: 1.2rem; }
}
/* =========================================
   🎬 GIAO DIỆN ĐIỆN ẢNH (CINEMATIC THEME)
========================================= */

/* 1. Nền tối có chiều sâu (Vignette) */
body {
    font-family: 'Montserrat', sans-serif;
    margin: 0; 
    padding: 0;
    color: #fff; /* Chữ màu trắng nổi bật trên nền tối */
    min-height: 100vh;
    
    /* MÀU NỀN MÔ PHỎNG 100% ẢNH BẠN GỬI */
    background-color: #0f0518; /* Màu nền gốc (Đen tím thẫm) */
    
    background-image: 
        /* 1. Góc Trái Trên: Vàng Kim Loại (#fcd667) */
        radial-gradient(circle at 0% 0%, #fcd667 0%, transparent 55%),
        
        /* 2. Góc Phải Trên: Xanh Đen (#221e6b) */
        radial-gradient(circle at 100% 0%, #221e6b 0%, transparent 50%),
        
        /* 3. Góc Trái Dưới: Tím Lavender (#c4a6e0) */
        radial-gradient(circle at 0% 100%, #c4a6e0 0%, transparent 50%),
        
        /* 4. Góc Phải Dưới: Trắng Vàng Sáng (#fffae6) */
        radial-gradient(circle at 100% 100%, #fffae6 0%, transparent 55%),
        
        /* 5. Tâm giữa: Ánh đỏ cam nhẹ tạo chiều sâu */
        radial-gradient(circle at 50% 50%, rgba(200, 50, 50, 0.2) 0%, transparent 40%);

    /* Cấu hình hiển thị nền */
    background-repeat: no-repeat;
    background-attachment: fixed; /* Giúp nền đứng yên khi cuộn trang (Rất sang) */
    background-size: cover;
}

/* 2. Hero Banner (Như Poster phim) */
.hero {
    position: relative;
    background: url('https://w.wallhaven.cc/full/l3/wallhaven-l365mq.jpg') no-repeat center center/cover;
    /* Lớp phủ đen mờ để chữ nổi bật */
    box-shadow: inset 0 0 100px #000; 
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

/* Tạo lớp phủ tối lên ảnh nền hero */
.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(10,12,17, 1));
    z-index: 0;
}

/* Đưa chữ lên trên lớp phủ */
.hero h1, .hero p {
    position: relative;
    z-index: 1;
    text-shadow: 0 5px 15px black;
}

.hero h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.8rem;
    text-transform: uppercase; /* Viết hoa toàn bộ cho ngầu */
    letter-spacing: 4px; /* Giãn chữ ra */
    /* Giữ nguyên các hiệu ứng màu sắc cũ */
    background: linear-gradient(to right, #fff, #ff003c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}


/* 3. Thẻ sản phẩm (Kiểu Netflix Card) */
.product-card {
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 8px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

/* Hiệu ứng Hover cực ngầu */
.product-card:hover {
    transform: scale(1.05); /* Phóng to nhẹ */
    box-shadow: 0 10px 30px rgba(255, 0, 60, 0.2); /* Phát sáng xanh */
    border-color: #ff003c;
    z-index: 10;
}

/* Ảnh sản phẩm tối đi một chút, sáng lên khi hover */
.product-icon {
    filter: brightness(0.8);
    transition: 0.3s;
}
.product-card:hover .product-icon {
    filter: brightness(1.2) drop-shadow(0 0 10px rgba(255,255,255,0.5));
}

/* 4. Tiêu đề danh mục (Kiểu Rạp phim) */
.category-wrapper h3 {
    font-size: 1.5rem;
    border-left: none !important; /* Bỏ viền trái cũ */
    text-align: center;
    position: relative;
    display: inline-block;
    width: 100%;
    text-shadow: 0 0 10px currentColor; /* Chữ phát sáng */
}

/* Đường kẻ ngang mờ 2 bên tiêu đề */
.category-wrapper h3::before, .category-wrapper h3::after {
    content: "";
    display: inline-block;
    width: 50px;
    height: 2px;
    background: currentColor;
    vertical-align: middle;
    margin: 0 10px;
    opacity: 0.5;
}

/* 5. Nút bấm (Kiểu đèn Neon rạp phim) */
.buy-button {
    background: transparent;
    border: 1px solid #e50914; /* Đỏ Netflix */
    color: #e50914;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: 0.3s;
}

.buy-button:hover {
    background: #e50914;
    color: white;
    box-shadow: 0 0 20px #e50914;
}
/* =========================================
   🏷️ HIỆU ỨNG GIẢM GIÁ (SALE)
========================================= */

/* Giá cũ (Gạch ngang) */
.old-price {
    text-decoration: line-through; /* Gạch ngang chữ */
    color: #888; /* Màu xám chìm */
    font-size: 0.9rem;
    margin-bottom: 2px;
    display: block; /* Xuống dòng nằm trên giá mới */
}

/* Nhãn SALE (Gắn góc trái trên) */
.sale-tag {
    position: absolute;
    top: 0;
    left: 0;
    background: linear-gradient(to right, #ff416c, #ff4b2b); /* Màu đỏ cam */
    color: white;
    padding: 5px 10px;
    border-bottom-right-radius: 10px; /* Bo góc cho đẹp */
    border-top-left-radius: 20px; /* Bo theo khung thẻ */
    font-size: 0.8rem;
    font-weight: bold;
    z-index: 5;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.3);
    animation: pulseSale 2s infinite;
}

/* Hiệu ứng nhịp tim cho nhãn Sale */
@keyframes pulseSale {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}
/* CSS Modal Cảnh Báo */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.9); /* Nền đen mờ đậm */
    z-index: 9999;
    justify-content: center; align-items: center;
    backdrop-filter: blur(5px);
}
.modal-box {
    background: #1a1a2e;
    padding: 25px;
    border-radius: 15px;
    border: 2px solid #ff4500; /* Viền đỏ cảnh báo */
    width: 90%; max-width: 400px;
    text-align: center;
    box-shadow: 0 0 30px rgba(255, 69, 0, 0.4);
    animation: popIn 0.3s ease;
}
@keyframes popIn { from {transform: scale(0.8); opacity: 0;} to {transform: scale(1); opacity: 1;} }
//* =========================================
   📱 CHỈNH 3 CỘT SẢN PHẨM TRÊN MOBILE
========================================= */
@media (max-width: 768px) {
    /* 1. Chỉnh lưới từ 2 thành 3 cột */
    .product-grid {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important; /* Hiện 3 ô 1 hàng */
        gap: 5px !important; /* Thu nhỏ khoảng cách giữa các ô */
        padding: 0 2px !important;
    }

    /* 2. Thu nhỏ nội dung bên trong để vừa với 3 cột */
    .product-card {
        padding: 8px 4px !important;
        min-height: 180px !important; /* Giảm chiều cao tối thiểu */
    }

    /* Thu nhỏ Icon sản phẩm */
    .product-icon {
        max-width: 35px !important; 
        height: 35px !important;
        margin-bottom: 5px !important;
    }

    /* Thu nhỏ tên sản phẩm */
    .product-card h3 {
        font-size: 0.65rem !important; /* Chữ nhỏ lại để không bị tràn */
        min-height: 1.8rem !important;
        -webkit-line-clamp: 2; /* Giữ tối đa 2 dòng */
    }

    /* Thu nhỏ giá tiền */
    .price {
        font-size: 0.75rem !important;
        margin-bottom: 5px !important;
    }

    /* Thu nhỏ nút mua */
    .buy-button {
        font-size: 0.65rem !important;
        padding: 4px 0 !important;
        border-radius: 4px !important;
    }

    /* Thu nhỏ nhãn Sale/Mới */
    .sale-tag {
        font-size: 0.55rem !important;
        padding: 2px 4px !important;
    }
    
    /* Ẩn bớt giỏ hàng mini trên 3 cột để đỡ rối mắt (tùy chọn) */
    .mini-cart-btn {
        width: 25px !important;
        height: 25px !important;
        font-size: 0.8rem !important;
        bottom: 5px !important;
        right: 5px !important;
    }
}
/* --- GIAO DIỆN TAB HIỆN ĐẠI --- */
.tab-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 20px 0 30px 0;
    flex-wrap: wrap;
    position: sticky; /* Dính thanh menu khi cuộn */
    top: 0;
    z-index: 100;
    background: rgba(15, 12, 41, 0.95); /* Nền tối mờ đè lên nội dung khi cuộn */
    padding: 15px 0;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.tab-btn {
    background: transparent;
    border: 1px solid #444;
    color: #aaa;
    padding: 10px 20px;
    border-radius: 30px;
    cursor: pointer;
    font-family: 'Science Gothic', sans-serif;
    font-weight: bold;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tab-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    transform: translateY(-2px);
}

/* Trạng thái đang chọn */
.tab-btn.active {
    background: linear-gradient(135deg, #ff003c, #b8002a); /* Màu xanh neon chủ đạo */
    color: white;
    border-color: transparent;
    box-shadow: 0 0 15px rgba(0, 114, 255, 0.5);
}

/* Ẩn tất cả danh mục mặc định */
.category-wrapper {
    display: none;
    animation: fadeIn 0.5s ease;
}

/* Chỉ hiện danh mục đang active */
.category-wrapper.active {
    display: block;
}

/* Hiệu ứng hiện ra từ từ */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
/* --- NÚT GIỎ HÀNG MINI TRONG THẺ SẢN PHẨM --- */

/* Đảm bảo thẻ cha có relative để nút con bám theo */
.product-card {
    position: relative !important; 
}

/* Nút tròn icon giỏ hàng */
.mini-cart-btn {
    position: absolute;
    bottom: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: rgba(255, 70, 85, 0.2); /* Nền xanh mờ */
    border: 1px solid #ff4655;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #ff4655;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 0 10px rgba(255, 70, 85, 0.1);
}

/* Khi di chuột vào thẻ sản phẩm -> Nút giỏ hàng sáng rực lên */
.product-card:hover .mini-cart-btn {
    background: #ff4655;
    color: #000;
    transform: scale(1.1) rotate(-10deg); /* Phóng to và nghiêng nhẹ */
    box-shadow: 0 0 20px rgba(255, 70, 85, 0.6);
}
/* --- CẬP NHẬT: 2 VÙNG CLICK RIÊNG BIỆT --- */

.product-card {
    position: relative !important;
    cursor: pointer !important; /* ✅ Hiện bàn tay để khách biết là bấm được */
    padding-bottom: 20px;
}

/* Nút giỏ hàng mini */
.mini-cart-btn {
    position: absolute;
    bottom: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: rgba(255, 70, 85, 0.1);
    border: 1px solid #ff4655;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #ff4655;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    z-index: 10;
    cursor: pointer; /* Bàn tay riêng cho nút này */
}

/* Hiệu ứng khi di chuột vào nút giỏ hàng */
.mini-cart-btn:hover {
    background: #ff4655;
    color: #000;
    transform: scale(1.2); /* Phóng to hơn chút */
    box-shadow: 0 0 15px #ff4655;
}
/* --- LOGIC ẨN HIỆN TAB --- */

/* 1. Mặc định ẩn tất cả danh mục */
.category-wrapper {
    display: none;
    animation: fadeIn 0.4s ease; /* Hiệu ứng hiện dần */
}

/* 2. Chỉ hiện danh mục nào có class "active" */
.category-wrapper.active {
    display: block;
}

/* Hiệu ứng trượt nhẹ lên khi hiện */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
@media (max-width: 768px) {
    #mascot-container { display: none !important; } /* Ẩn mèo trên điện thoại */
    .chat-toggle-btn { bottom: 90px !important; } /* Hạ nút chat xuống thấp hơn */
    #btn-scroll-top { bottom: 20px !important; right: 50% !important; transform: translateX(50%) !important; } /* Đưa nút lên đầu ra giữa màn hình hoặc ẩn đi */
}
/* --- CON MẮT SOI PASS --- */
.input-group {
    position: relative; /* Để con mắt bám theo khung này */
}

.toggle-pass-btn {
    position: absolute;
    right: 15px;      /* Nằm sát bên phải */
    top: 50%;
    transform: translateY(-50%); /* Căn giữa theo chiều dọc */
    color: #ff003c;   /* Màu xanh neon */
    cursor: pointer;  /* Hiện bàn tay khi di chuột */
    z-index: 10;
    font-size: 1rem;
}

.toggle-pass-btn:hover {
    color: #fff;      /* Sáng lên khi di chuột */
}
/* ===== HIỆU ỨNG HOT DEALS ===== */
#hot-deals .product-card {
    animation: hotGlow 2.8s ease-in-out infinite;
}

/* Dừng animation khi hover */
#hot-deals .product-card:hover {
    animation: none;
}

/* Ánh sáng quét */
#hot-deals .product-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        120deg,
        transparent 30%,
        rgba(255, 0, 60, 0.25),
        transparent 70%
    );
    transform: translateX(-120%);
    animation: hotShimmer 4s infinite;
    pointer-events: none;
}

@keyframes hotGlow {
    0%,100% { box-shadow: 0 0 0 rgba(255,0,60,0); }
    50% { box-shadow: 0 0 25px rgba(255,0,60,0.35); }
}

@keyframes hotShimmer {
    0% { transform: translateX(-120%); }
    60% { transform: translateX(120%); }
    100% { transform: translateX(120%); }
}
/* ===== LỊCH SỬ ĐƠN HÀNG (NÂNG CẤP) ===== */

.history-modal {
    max-width: 720px;
}

.history-search {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.history-search input {
    flex: 1;
    padding: 12px;
    background: #000;
    border: 1px solid #ff003c;
    color: #fff;
    border-radius: 8px;
}

.history-note {
    font-size: 0.8rem;
    color: #aaa;
    margin-bottom: 10px;
}

.history-list {
    max-height: 360px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Card đơn hàng */
.order-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    padding: 12px;
    animation: fadeUp 0.3s ease;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.order-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.order-code {
    font-weight: bold;
    color: #ff003c;
    cursor: pointer;
}

.order-code:hover {
    text-decoration: underline;
}

.order-time {
    font-size: 0.75rem;
    color: #888;
}

.order-product {
    margin: 6px 0;
    font-size: 0.9rem;
    color: #ddd;
}

/* Badge trạng thái */
.order-status {
    font-size: 0.75rem;
    font-weight: bold;
    padding: 4px 8px;
    border-radius: 6px;
    display: inline-block;
}

.status-done { background: rgba(255,70,85,0.15); color:#ff4655; }
.status-wait { background: rgba(255,193,7,0.15); color:#ffc107; }
.status-cancel { background: rgba(255,75,75,0.15); color:#ff4b2b; }

.order-actions {
    margin-top: 8px;
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

.order-actions button {
    font-size: 0.7rem;
    padding: 5px 10px;
    border-radius: 5px;
    border: none;
    cursor: pointer;
}

.btn-huy {
    background: #ff4b2b;
    color: white;
}

.btn-disabled {
    background: #555;
    color: #aaa;
    cursor: not-allowed;
}
.chat-input-area {
  display: flex;
  gap: 6px;
  padding: 8px;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.chat-input-area input {
  flex: 1;
  padding: 8px 12px;
  border-radius: 20px;
  border: none;
  outline: none;
}
.chat-input-area button {
  background: #ff003c;
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-weight: bold;
  cursor: pointer;
}
/* ===== GỢI Ý CHAT GIỐNG YOUTUBE ===== */
.chat-input-wrap {
    position: relative;
    flex: 1;
}

.chat-suggest {
    position: absolute;
    bottom: 48px;
    left: 0;
    right: 0;
    background: #0f172a;
    border: 1px solid #ff003c;
    border-radius: 10px;
    overflow: hidden;
    display: none;
    z-index: 100001;
    box-shadow: 0 10px 30px rgba(0,0,0,0.6);
}

.chat-suggest div {
    padding: 10px 12px;
    cursor: pointer;
    font-size: 0.85rem;
    color: #ddd;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.chat-suggest div:hover,
.chat-suggest .active {
    background: #ff003c;
    color: #000;
    font-weight: bold;
}
/* ⚡ TỐI ƯU HIỆU NĂNG – TẮT ANIMATION HOT DEAL */
#hot-deals .product-card,
#hot-deals .product-card::before {
    animation: none !important;
}
/* =========================================
   ✅ FLUID TYPOGRAPHY (Tự co giãn chữ theo màn hình)
   - Dán cuối file để ưu tiên cao nhất
   - Mục tiêu: chữ dễ đọc trên mọi điện thoại (320px -> 768px) và vẫn đẹp trên PC
========================================= */
:root{
  --fs-logo: clamp(1.2rem, 3.6vw, 1.8rem);
  --fs-hero: clamp(1.35rem, 4.8vw, 2.8rem);
  --fs-category-title: clamp(1.1rem, 3.2vw, 1.6rem);

  --fs-card-title: clamp(0.95rem, 2.4vw, 1.1rem);
  --fs-card-desc: clamp(0.82rem, 2.2vw, 0.95rem);

  --fs-price: clamp(1.05rem, 2.8vw, 1.3rem);
  --fs-btn: clamp(0.9rem, 2.4vw, 1rem);
  --fs-nav: clamp(0.9rem, 2.2vw, 1rem);
}

/* Headings */
.logo { font-size: var(--fs-logo); }
.hero h1 { font-size: var(--fs-hero); }
.category-header h2,
.category-wrapper h3 { font-size: var(--fs-category-title); }

/* Cards */
.product-card h3 { font-size: var(--fs-card-title); }
.product-card p { font-size: var(--fs-card-desc); }
.price { font-size: var(--fs-price); }

/* Buttons / Nav */
.buy-button,
.btn-neon,
.btn-checkout-fb,
.btn-checkout-zalo,
.btn-apply,
.tab-btn { font-size: var(--fs-btn); }

nav ul li a { font-size: var(--fs-nav); }

/* Tối ưu riêng cho màn hình nhỏ (đỡ quá to/hoặc quá nhỏ) */
@media (max-width: 480px){
  :root{
    --fs-logo: clamp(1.1rem, 4.6vw, 1.45rem);
    --fs-hero: clamp(1.2rem, 5.8vw, 1.75rem);
    --fs-category-title: clamp(1.05rem, 4.2vw, 1.25rem);

    --fs-card-title: clamp(0.82rem, 3.6vw, 0.95rem);
    --fs-card-desc: clamp(0.74rem, 3.2vw, 0.85rem);

    --fs-price: clamp(0.95rem, 4.2vw, 1.05rem);
    --fs-btn: clamp(0.82rem, 3.4vw, 0.95rem);
    --fs-nav: clamp(0.82rem, 3.2vw, 0.95rem);
  }
}



/* Premium Monthly Banner */
.hero.hero-monthly{
  position: relative; overflow: hidden; isolation:isolate;
  animation:none !important;
  background: linear-gradient(180deg, rgba(255,255,255,0.10), rgba(255,255,255,0.04));
  border:1px solid rgba(255,255,255,0.14);
  box-shadow:0 20px 50px rgba(0,0,0,.35);
  border-radius: clamp(16px,3vw,28px);
}
.hero.hero-monthly::before{
  content:""; position:absolute; inset:-2px;
  background: radial-gradient(600px circle at var(--mx,50%) var(--my,50%), rgba(255,0,60,.18), transparent 40%);
  opacity:0; transition:opacity .25s ease; pointer-events:none;
}
.hero.hero-monthly.is-hover::before{ opacity:1; }
.hero.hero-monthly .hero-inner{ position:relative; z-index:1; max-width:900px; margin:0 auto; padding:clamp(20px,4vw,40px); text-align:center; }
.hero-kicker{ display:flex; gap:10px; justify-content:center; align-items:center; margin-bottom:8px; }
.hero-pill{ font-size:12px; letter-spacing:.12em; padding:6px 10px; border-radius:999px; background:rgba(255,255,255,.12); border:1px solid rgba(255,255,255,.25); }
.hero-month{ font-size:13px; color:#cfd9ff; }
.hero.hero-monthly h1{ font-family:'Montserrat',system-ui; font-size:clamp(22px,5vw,36px); font-weight:800; background:linear-gradient(90deg,#fff,#bfefff); -webkit-background-clip:text; -webkit-text-fill-color:transparent; }
.hero.hero-monthly .hero-sub{ font-size:clamp(14px,3.5vw,16px); color:#e6ecff; opacity:.9; margin-bottom:18px; }
.btn-cta{ border:1px solid rgba(255,255,255,.35); background:linear-gradient(135deg,#ff003c,#3a7bd5); color:#00111a; font-weight:800; padding:12px 22px; border-radius:999px; text-decoration:none; box-shadow:0 10px 25px rgba(255,0,60,.35); }

/* =========================================
   🧹 TẮT CHATBOT + BẬT MÈO LỜI THOẠI (FIX)
   (Auto-added)
========================================= */
.chat-toggle-btn,
.chat-box-container {
  display: none !important;
}

/* Luôn hiện mèo + bong bóng (kể cả mobile) */
#mascot-container {
  opacity: 1 !important;
  filter: none !important;
}
#mascot-bubble {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

@media (max-width: 768px) {
  #mascot-container { display: flex !important; }
}




/* =========================================
   🎮 VALORANT / ESPORT RED-BLACK SKIN (Overrides)
   - Keep layout, only reskin.
========================================= */
:root{
  --v-accent:#ff003c;
  --v-accent2:#ff4655;
  --v-bg0:#07070a;
  --v-bg1:#0f0f14;
  --v-card:rgba(15,15,18,0.82);
  --v-border:rgba(255,0,60,0.28);
  --v-text:#ffffff;
  --v-muted:rgba(255,255,255,0.70);
}

body{
  background: var(--v-bg0) !important;
  color: var(--v-text);
}

/* Cinematic red glow */
body::before{
  content:"";
  position:fixed;
  inset:-20%;
  z-index:-2;
  pointer-events:none;
  background:
    radial-gradient(circle at 18% 20%, rgba(255, 0, 60, 0.45), transparent 55%),
    radial-gradient(circle at 82% 18%, rgba(120, 0, 25, 0.55), transparent 55%),
    radial-gradient(circle at 14% 86%, rgba(255, 70, 85, 0.32), transparent 55%),
    radial-gradient(circle at 86% 86%, rgba(255, 255, 255, 0.08), transparent 55%),
    linear-gradient(120deg, rgba(255, 0, 60, 0.18), rgba(0, 0, 0, 0), rgba(120, 0, 25, 0.12));
  background-size:170% 170%;
  filter: blur(26px) saturate(120%);
  animation: cinematicFlow 26s ease-in-out infinite;
}
body::after{
  content:"";
  position:fixed;
  inset:0;
  z-index:-1;
  pointer-events:none;
  background-image: radial-gradient(rgba(255,255,255,0.10) 1px, transparent 1px);
  background-size: 3px 3px;
  opacity: 0.07;
  mix-blend-mode: overlay;
}

/* Cards & panels */
.product-card,
.popup-content,
.checkout-modal,
.checkout-form, .checkout-summary{
  background: var(--v-card) !important;
  border-color: var(--v-border) !important;
  box-shadow: 0 18px 60px rgba(0,0,0,0.55) !important;
  border-radius: 14px !important; /* sharper than before */
}

/* Header + tabs */
header{
  background: rgba(10,10,14,0.70) !important;
  border-bottom: 1px solid rgba(255,0,60,0.16) !important;
}
.tab-container{
  background: rgba(10,10,14,0.92) !important;
  border-bottom: 1px solid rgba(255,0,60,0.55) !important;
}

/* Accent texts & hovers */
.logo,
nav ul li a:hover{
  text-shadow: 0 0 10px rgba(255,0,60,0.55) !important;
}
.buy-button,
.btn-neon,
.btn-apply,
.btn-checkout-fb,
.btn-checkout-zalo{
  border-color: rgba(255,0,60,0.55) !important;
}
.buy-button:hover,
.btn-neon:hover,
.btn-apply:hover,
.btn-checkout-fb:hover,
.btn-checkout-zalo:hover{
  box-shadow: 0 0 22px rgba(255,0,60,0.55) !important;
}

/* Primary CTA */
.btn-neon,
.btn-checkout-fb,
.btn-checkout-final{
  background: linear-gradient(to right, #ff003c, #b8002a) !important;
}

/* Scrollbar */
::-webkit-scrollbar-track { background: #0b0b0f; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(to bottom, #ff003c, #b8002a);
  border-radius: 10px;
}

/* Reduce blur on mobile for performance */
@media (max-width: 768px), (prefers-reduced-motion: reduce) {
  body::before{ filter:none !important; animation:none !important; opacity:0.85; }
  body::after{ opacity:0.05; }
}



/* =========================================================
   ✅ VALORANT FIX OVERRIDES (Đỏ đậm / Đen - Esport)
   - Giữ nguyên bố cục, chỉ thay skin
   - Fix icon phóng to / layout vỡ
   - Bỏ phụ thuộc login (UI/JS đã xử lý trong HTML)
========================================================= */
:root{
  --v-accent:#ff003c;
  --v-accent2:#ff4655;
  --v-bg:#07070a;
  --v-bg2:#0f0f14;
  --v-panel:rgba(255,255,255,0.06);
  --v-panel2:rgba(255,255,255,0.10);
  --v-text:#f2f2f4;
  --v-muted:rgba(255,255,255,0.72);
  --v-border:rgba(255,0,60,0.28);
  --v-shadow:0 18px 45px rgba(0,0,0,0.55);
}

html,body{background-color:var(--v-bg) !important;}
body{
  color:var(--v-text) !important;
  background-image:
    radial-gradient(circle at 18% 12%, rgba(255,0,60,0.22) 0%, transparent 48%),
    radial-gradient(circle at 82% 8%, rgba(255,70,85,0.14) 0%, transparent 55%),
    radial-gradient(circle at 50% 100%, rgba(255,0,60,0.10) 0%, transparent 55%),
    linear-gradient(180deg, #050507 0%, #0a0a0f 55%, #050507 100%) !important;
  background-attachment: fixed !important;
}

/* Header + nav */
header{
  background: rgba(10,10,14,0.65) !important;
  border-bottom: 1px solid rgba(255,0,60,0.18) !important;
  box-shadow: 0 8px 26px rgba(0,0,0,0.55) !important;
}
.logo{
  text-shadow: 0 0 10px rgba(255,0,60,0.65), 0 0 20px rgba(255,0,60,0.25) !important;
}
nav ul li a:hover{
  color: var(--v-accent) !important;
  text-shadow: 0 0 10px rgba(255,0,60,0.75) !important;
}

/* Hero */
.hero{
  background: rgba(255,255,255,0.05) !important;
  border: 1px solid rgba(255,0,60,0.22) !important;
  box-shadow: 0 0 26px rgba(255,0,60,0.18) !important;
}
.hero h1{
  background: linear-gradient(90deg, #ffffff 0%, var(--v-accent) 55%, var(--v-accent2) 100%) !important;
  -webkit-background-clip:text !important;
  -webkit-text-fill-color: transparent !important;
}

/* Category title */
.category-header h2,
.category-wrapper h3{
  border-color: var(--v-accent) !important;
  text-shadow: 0 0 12px rgba(255,0,60,0.55) !important;
}

/* Tabs / filters (nếu có) */
.tab-btn.active,
.tab-btn:hover{
  background: var(--v-accent) !important;
  color:#000 !important;
  border-color: var(--v-accent) !important;
}

/* Product grid & cards */
.product-grid{
  display:grid !important;
}
.product-card{
  background: rgba(255,255,255,0.055) !important;
  border: 1px solid rgba(255,255,255,0.10) !important;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25) !important;
}
.product-card:hover{
  border-color: rgba(255,0,60,0.55) !important;
  box-shadow: 0 0 26px rgba(255,0,60,0.22), 0 20px 45px rgba(0,0,0,0.45) !important;
}

/* 🔧 FIX ICON BỊ PHÓNG TO / VỠ LAYOUT */
.product-card img,
img.product-icon{
  max-width: 72px !important;
  width: 72px !important;
  height: 72px !important;
  object-fit: contain !important;
  display:block !important;
  margin: 0 auto 12px !important;
}
@media (max-width:768px){
  .product-card img,
  img.product-icon{
    max-width: 48px !important;
    width: 48px !important;
    height: 48px !important;
    margin-bottom: 8px !important;
  }
}

/* Price */
.price{
  text-shadow: 0 0 10px rgba(255,255,255,0.65) !important;
}

/* Buttons */
.buy-button,
.btn-checkout-fb,
.btn-checkout-final,
.btn-confirm-pay{
  border-color: var(--v-accent) !important;
}
.buy-button{
  color: var(--v-accent) !important;
  border-radius: 10px !important;
}
.buy-button::before{ background: var(--v-accent) !important; }
.buy-button:hover{ box-shadow: 0 0 18px rgba(255,0,60,0.7), 0 0 42px rgba(255,0,60,0.25) !important; }

.btn-checkout-fb,
.btn-checkout-final,
.btn-confirm-pay{
  background: linear-gradient(90deg, var(--v-accent) 0%, #b8002a 65%, #8f001f 100%) !important;
  box-shadow: 0 10px 28px rgba(255,0,60,0.18) !important;
}
.btn-checkout-fb:hover,
.btn-checkout-final:hover,
.btn-confirm-pay:hover{
  transform: translateY(-1px);
  box-shadow: 0 14px 35px rgba(255,0,60,0.25) !important;
}

/* Inputs focus */
input:focus, textarea:focus, select:focus{
  border-color: rgba(255,0,60,0.75) !important;
  box-shadow: 0 0 0 3px rgba(255,0,60,0.12) !important;
}

/* Popups */
.popup-content{
  background: #0f0f14 !important;
  border-color: rgba(255,0,60,0.6) !important;
  box-shadow: 0 0 35px rgba(255,0,60,0.18) !important;
}
.popup-header{
  background: linear-gradient(90deg, rgba(255,0,60,0.95), rgba(15,15,20,0.95)) !important;
}
.close-btn{
  background: var(--v-accent) !important;
  color:#000 !important;
}

/* Sidebar */
.sidebar-panel{
  background: rgba(10,10,14,0.88) !important;
  border-right: 1px solid rgba(255,0,60,0.15) !important;
}
.sidebar-link i{ color: var(--v-accent) !important; }
.sidebar-link:hover{ border-left-color: var(--v-accent) !important; }

/* Footer */
footer{
  background: rgba(0,0,0,0.65) !important;
  border-top: 1px solid rgba(255,0,60,0.12) !important;
}
/* =========================================
   🛒 CSS GIỎ HÀNG NỔI (FIXED CART)
========================================= */

/* 1. Nút biểu tượng giỏ hàng nổi ở góc màn hình */
#cart-icon-float {
    position: fixed;
    bottom: 30px;
    left: 30px; /* Đặt bên trái để không bị đè lên con mèo mascot bên phải */
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #ff4655, #ff003c);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10000;
    box-shadow: 0 5px 20px rgba(255, 0, 60, 0.4);
    transition: 0.3s;
}

#cart-icon-float:hover {
    transform: scale(1.1) rotate(-5deg);
}

/* Con số hiển thị số lượng trên biểu tượng */
#cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: white;
    color: #ff003c;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 800;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 2px solid #ff003c;
}

/* 2. Lớp nền mờ khi mở giỏ hàng (Overlay) */
.cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 10001;
    display: none; /* Mặc định ẩn, sẽ hiện kiểu flex bằng Javascript */
    justify-content: center;
    align-items: center;
    padding: 20px;
}

/* Khung chứa nội dung giỏ hàng */
.cart-box {
    background: #1a1a2e;
    width: 100%;
    max-width: 450px;
    border-radius: 20px;
    border: 1px solid rgba(255, 0, 60, 0.3);
    overflow: hidden;
    animation: slideUpCart 0.3s ease;
}

.cart-header {
    background: linear-gradient(to right, #ff003c, #b8002a);
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-header h3 { margin: 0; font-size: 1.1rem; color: #fff; text-transform: uppercase; }
.close-cart { cursor: pointer; font-size: 1.5rem; color: #fff; }

#cart-items-container {
    padding: 20px;
    max-height: 400px;
    overflow-y: auto; /* Cho phép cuộn nếu nhiều món */
}

/* Định dạng từng dòng sản phẩm trong giỏ */
.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.cart-item-info h4 { margin: 0; font-size: 0.95rem; color: #fff; }
.cart-item-info small { color: #aaa; }
.cart-item-remove { 
    color: #ff4655; 
    cursor: pointer; 
    margin-left: 10px; 
    font-size: 1.1rem; 
    transition: 0.2s;
}
.cart-item-remove:hover { transform: scale(1.2); color: #fff; }

/* Phần chân giỏ hàng (Tổng tiền & Nút bấm) */
.cart-footer {
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-weight: bold;
    font-size: 1.1rem;
}

.btn-checkout-cart {
    width: 100%;
    padding: 15px;
    background: #00ff88; /* Màu xanh lá nổi bật */
    color: #000;
    border: none;
    border-radius: 50px;
    font-weight: 800;
    font-size: 1rem;
    cursor: pointer;
    transition: 0.3s;
    text-transform: uppercase;
}

.btn-checkout-cart:hover { 
    transform: translateY(-2px); 
    box-shadow: 0 5px 15px rgba(0, 255, 136, 0.4); 
}

/* Hiệu ứng hiện giỏ hàng từ dưới lên */
@keyframes slideUpCart {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Tối ưu cho mobile */
@media (max-width: 480px) {
    #cart-icon-float {
        bottom: 20px;
        left: 20px;
        width: 50px;
        height: 50px;
    }
    .cart-box { width: 95%; }
}


/* Giao diện đánh giá kiểu Shopee/Tiktok */
#review-list div {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 0, 60, 0.1) !important;
    padding: 15px !important;
    margin-bottom: 12px !important;
    border-radius: 12px !important;
    transition: 0.3s;
}

#review-list div:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: #ff003c !important;
}

#review-list b {
    font-size: 1rem;
    color: #ff4655;
    display: block;
    margin-bottom: 5px;
}

#review-list span {
    color: #ffd700; /* Màu vàng của sao */
    font-size: 0.8rem;
}
/* Hiệu ứng rung nhẹ liên tục (khi đang xử lý) */
@keyframes continuous-shake {
    0% { transform: translate(1px, 1px) rotate(0deg); }
    10% { transform: translate(-1px, -2px) rotate(-1deg); }
    20% { transform: translate(-3px, 0px) rotate(1deg); }
    30% { transform: translate(3px, 2px) rotate(0deg); }
    40% { transform: translate(1px, -1px) rotate(1deg); }
    50% { transform: translate(-1px, 2px) rotate(-1deg); }
    60% { transform: translate(-3px, 1px) rotate(0deg); }
    70% { transform: translate(3px, 1px) rotate(-1deg); }
    80% { transform: translate(-1px, -1px) rotate(1deg); }
    90% { transform: translate(1px, 2px) rotate(0deg); }
    100% { transform: translate(1px, -2px) rotate(-1deg); }
}

/* Hiệu ứng rung mạnh một lần (giật cục) */
@keyframes hard-shake {
    0% { transform: translateX(0); }
    25% { transform: translateX(8px); }
    50% { transform: translateX(-8px); }
    75% { transform: translateX(8px); }
    100% { transform: translateX(0); }
}

.shaking-btn {
    animation: continuous-shake 0.5s infinite; /* Rung liên tục */
    background: #ff4655 !important;
}

.success-vibrate {
    animation: hard-shake 0.4s ease-in-out; /* Rung giật một cái */
}
/* =========================================
   🎮 ANIMATIONS LOGO GAMING (GLITCH & SHINE)
========================================= */

/* 1. Hiệu ứng hào quang đỏ nhịp thở cho Logo tròn */
.logo img {
    border: 2px solid #ff003c;
    box-shadow: 0 0 10px #ff003c;
    animation: logo-pulse 2s infinite ease-in-out;
    transition: 0.5s;
}

@keyframes logo-pulse {
    0%, 100% { box-shadow: 0 0 5px #ff003c; transform: scale(1); }
    50% { box-shadow: 0 0 20px #ff003c, 0 0 30px #ff4655; transform: scale(1.05); }
}

/* 2. Hiệu ứng Glitch (Lỗi điện tử) cho chữ ShopCuaBoo */
.logo {
    font-family: 'Orbitron', sans-serif !important; /* Font chữ đậm chất game */
    position: relative;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 3px;
    cursor: pointer;
}

.logo:hover {
    animation: glitch 0.3s linear infinite;
    text-shadow: 2px 0 #ff003c, -2px 0 #00ffff;
}

@keyframes glitch {
    0% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(-2px, -2px); }
    60% { transform: translate(2px, 2px); }
    80% { transform: translate(2px, -2px); }
    100% { transform: translate(0); }
}

/* 3. Hiệu ứng Ánh sáng quét qua chữ (Metal Shine) */
.logo::after {
    content: "ShopCuaBoo";
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, transparent 0%, transparent 40%, rgba(255,255,255,0.8) 50%, transparent 60%, transparent 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine 3s infinite linear;
    z-index: 1;
    pointer-events: none;
}

@keyframes shine {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* 4. Hiệu ứng hạt sáng bay quanh (nếu muốn cầu kỳ hơn) */
.logo:active {
    transform: scale(0.95);
    filter: brightness(1.5);
}
/* =========================================
   🎮 LOGO EFFECTS: SILVER SHINE & GLITCH
========================================= */

/* 1. HIỆU ỨNG CHỮ KIM LOẠI QUÉT BẠC (SILVER SHINE) */
.logo-text {
    position: relative;
    font-family: 'Orbitron', sans-serif; /* Font chữ gaming */
    font-weight: 900;
    font-size: 1.5rem;
    letter-spacing: 2px;
    
    /* Tạo màu nền dải bạc */
    background: linear-gradient(120deg, 
        #ffffff 30%, 
        #8e8e8e 45%, 
        #ffffff 50%, 
        #8e8e8e 55%, 
        #ffffff 70%);
    background-size: 200% auto;
    
    /* Cắt nền theo chữ và làm chữ trong suốt để hiện nền */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    
    /* Animation quét sáng liên tục */
    animation: silver-shine 4s linear infinite;
}

@keyframes silver-shine {
    0% { background-position: 200% center; }
    100% { background-position: -200% center; }
}

/* 2. HIỆU ỨNG GLITCH KHI DI CHUỘT (HOVER) */
.logo:hover img, 
.logo:hover .logo-text {
    animation: glitch-jitter 0.2s infinite; /* Rung mạnh kiểu lỗi kỹ thuật */
}

.logo:hover .logo-text {
    /* Khi hover sẽ hiện bóng mờ Cyan và Red đặc trưng Esports */
    text-shadow: 
        3px 0 #00ffff, 
        -3px 0 #ff003c;
    
    /* Tạm thời bỏ màu gradient để hiện rõ bóng mờ glitch */
    -webkit-text-fill-color: #ffffff;
    background: none;
}

/* Hiệu ứng rung giật (Jitter) */
@keyframes glitch-jitter {
    0% { transform: translate(0); }
    20% { transform: translate(-2px, 1px); }
    40% { transform: translate(2px, -1px); }
    60% { transform: translate(-1px, 2px); }
    80% { transform: translate(1px, -2px); }
    100% { transform: translate(0); }
}

/* Hiệu ứng hào quang cho Logo tròn khi hover */
.logo:hover img {
    border: 2px solid #fff;
    box-shadow: 0 0 15px #00ffff, 0 0 30px #ff003c;
    filter: brightness(1.3) contrast(1.2);
}
/* =========================================
   💬 CHIA CỘT CHO DANH SÁCH ĐÁNH GIÁ
========================================= */
#review-list {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr); /* 3 cột trên máy tính */
    gap: 15px; /* Khoảng cách giữa các ô */
    margin-top: 25px;
    text-align: left;
}

/* Tùy chỉnh mỗi ô đánh giá để khớp với lưới */
#review-list .review-item {
    margin-bottom: 0 !important; /* Bỏ margin cũ vì đã có gap */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%; 
}

/* Tối ưu trên điện thoại */
@media (max-width: 768px) {
    #review-list {
        grid-template-columns: repeat(2, 1fr); /* 2 cột trên điện thoại */
        gap: 10px;
    }
    
    #review-list .review-item {
        padding: 12px !important;
        font-size: 0.8rem; /* Chữ nhỏ lại một chút cho vừa ô */
    }
}

/* Nếu màn hình cực nhỏ (dưới 400px) thì về 1 cột để dễ đọc */
@media (max-width: 400px) {
    #review-list {
        grid-template-columns: 1fr;
    }
}
/* =========================================
   ✨ HIỆU ỨNG ĐỔ BÓNG & GLOW CHO ĐÁNH GIÁ
========================================= */
.review-item {
    background: rgba(255, 255, 255, 0.05) !important; /* Nền tối mờ nhẹ */
    border: 1px solid rgba(255, 0, 60, 0.15) !important; /* Viền đỏ tinh tế */
    border-radius: 15px !important;
    padding: 18px !important;
    
    /* 1. Đổ bóng tạo chiều sâu (Shadow) */
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    
    /* Hiệu ứng chuyển cảnh mượt mà */
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

/* 2. Hiệu ứng khi di chuột vào (Hover) */
.review-item:hover {
    transform: translateY(-8px) scale(1.02); /* Nhảy nhẹ lên và phóng to */
    
    /* 3. Đổ bóng Neon (Glow) phát sáng màu đỏ theo tông shop */
    box-shadow: 0 15px 35px rgba(255, 0, 60, 0.3), 
                0 0 15px rgba(255, 0, 60, 0.2);
    
    border-color: #ff003c !important; /* Làm sáng viền lên */
    background: rgba(255, 255, 255, 0.08) !important; /* Nền sáng hơn một chút */
}

/* Làm cho các ngôi sao phát sáng */
.review-item span {
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.6);
}
@media (prefers-reduced-motion: reduce) {
  body::before,
  body::after,
  .hero,
  .mascot-img,
  #hot-deals .product-card::before,
  #hot-deals .product-card,
  .logo-text {
    animation: none !important;
  }

  /* Giữ transition nhỏ nếu bạn muốn, hoặc tắt luôn */
  /* .product-card, .buy-button { transition: none !important; } */
}
/* Nút đã đăng nhập */
#user-name.is-logged-in {
  color: #00ff88;
  font-weight: 800;
}