﻿/* Đổi nền cho toàn bộ trang web */
body {
    background-color: #1a1a1a; /* Màu đen xám sâu để không bị chói mắt */
    color: #ffffff; /* Chữ chuyển sang màu trắng để dễ đọc */
    margin-bottom: 60px;
}

html {
  font-size: 14px;
}

@media (min-width: 1400px) {
  html {
    font-size: 20px;
  }
  .container {
        max-width: 1350px;
    }
}
/* Thanh Menu phía trên */
.navbar {
    background-color: #111111 !important; /* Đen tuyền */
    border-bottom: 1px solid #333;
}

    /* Các liên kết menu */
    .navbar a, .nav-link {
        color: #333 !important;
    }

        .navbar a:hover {
            color: #ff4081 !important; /* Màu hồng nhấn khi di chuột qua */
        }
.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}
.product-card {
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s;
    border: 1px solid #eee;
}

    .product-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    }

.product-price {
    color: #d32f2f;
    font-weight: bold;
}
body {
  margin-bottom: 60px;
}
/* Bo góc cho khung Slider */
#bannerRoblox {
    border-radius: 15px; /* Độ bo góc */
    margin-top: 20px;
}

/* Đảm bảo hình ảnh bên trong cũng được bo góc */
.carousel-inner, .carousel-item img {
    border-radius: 15px;
    height: 350px; /* Bạn có thể chỉnh lại chiều cao theo ý muốn */
    object-fit: cover; /* Giúp ảnh không bị méo */
}

/* Tùy chỉnh nút điều hướng (tùy chọn) */
.carousel-control-prev-icon, .carousel-control-next-icon {
    background-color: rgba(0,0,0,0.3);
    border-radius: 50%;
    padding: 20px;
}
.card {
    background-color: #111111;
    border: 1px solid #333;
    color: white;
}

    .card:hover {
        border-color: #ff4081; /* Đổi màu viền khi hover giống mẫu bạn muốn */
    }
/* --- TỐI ƯU HEADER --- */

/* 1. Nền Navbar trên cùng (Đen xám) */
.navbar {
    background-color: #1a1a1a !important;
    border-bottom: 1px solid #333;
    padding: 10px 0;
}

/* 2. Ô tìm kiếm (Xám sáng hơn) */
.search-container input {
    background-color: #adb5bd !important; /* Xám sáng */
    color: #ff4081 !important;
    border: none !important;
    border-radius: 8px 0 0 8px !important;
    padding: 10px 15px;
}

    .search-container input::placeholder {
        color: #ffffff;
    }

/* Nút kính lúp */
.search-container .btn-search {
    background-color: #ff4081;
    border-radius: 0 8px 8px 0;
    padding: 0 20px;
    border: none;
    display: inline-block;
    transition: 0.3s;
}
    .search-container .btn-search:hover {
        transform: translateY(-3px); /* nảy lên */
        box-shadow: 0 0 10px #ff4081;
    }

/* 3. Thanh tùy chọn bên dưới (Xám đậm) */
.nav-links-container {
    background-color: #2a2a2a; /* Xám đậm trung tính */
    padding: 12px 0;
    width: 100%;
    box-shadow: 0 0 10px #ff4081;
}

    .nav-links-container a {
        color: #ffffff !important;
        text-decoration: none;
        font-weight: 500;
        font-size: 14px;
        transition: 0.3s;
        display: flex;
        align-items: center;
        gap: 8px;
    }

        .nav-links-container a i {
            color: #ff4081; /* Icon màu hồng làm điểm nhấn */
        }

        .nav-links-container a:hover {
            color: #ff4081 !important;
        }



/* 4. Các nút bổ trợ */
.btn-nap-tien {
    background-color: #ff4081;
    color: white;   
    border-radius: 8px;
    padding: 8px 20px;
}

    .btn-nap-tien:hover {
        transform: scale(1.1); /* Phóng to nhẹ */
        box-shadow: 0 0 10px #ff4081;
    
    }

.icon-circle {
    background-color: #adb5bd; /* Màu xám trắng nhạt như mẫu */
    width: 40px;
    height: 40px;
    border-radius: 50%; /* Tạo hình tròn */
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.3s;
}

    .icon-circle i {
        color: white; /* Màu icon xám đậm */
        font-size: 1.2rem;
    }

    .icon-circle:hover {
        background-color: #ff4081; /* Đổi màu nhẹ khi di chuột vào */
        transform: scale(1.1); /* Phóng to nhẹ */
        box-shadow: 0 0 10px #ff4081;
    }
/* Khung thẻ dịch vụ */
.service-card {
    background-color: #252525 !important; /* Màu xám đậm cho thẻ */
    border: 1px solid #333 !important;
    border-radius: 12px !important;
    overflow: hidden;
    transition: all 0.3s ease;
}

    .service-card:hover {
        transform: translateY(-8px); /* Nhảy lên khi di chuột */
        border-color: #ff4081 !important; /* Đổi viền sang màu hồng nhấn */
        box-shadow: 0 10px 20px rgba(255, 64, 129, 0.2);
    }

    /* Ảnh của dịch vụ */
    .service-card img {
        height: 150px;
        object-fit: cover;
        border-bottom: 1px solid #333;
    }

/* Badge góc ảnh (Chữ "Dịch vụ") */
.badge-category {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: #ff4081;
    color: white;
    padding: 2px 8px;
    border-radius: 5px;
    font-size: 0.7rem;
    font-weight: bold;
}

/* Nút MUA NGAY màu xanh dương giống mẫu */
.btn-buy-now {
    background-color: #0056b3;
    color: white;
    font-weight: bold;
    font-size: 0.85rem;
    border-radius: 6px;
    padding: 8px 0;
    transition: 0.2s;
}

    .btn-buy-now:hover {
        background-color: #004494;
        color: white;
    }

/* Tiêu đề thẻ */
.card-title {
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis; /* Nếu tên dài quá sẽ hiện dấu ... */
}
.chat-toggle{
    width:60px;
    height:60px;
    background:#007bff;
    color:white;
    border-radius:50%;
    position:fixed;
    bottom:20px;
    right:20px;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:24px;
    cursor:pointer;
    z-index:1000;
}

.chat-container{
    width:320px;
    height:450px;
    background:white;
    position:fixed;
    bottom:90px;
    right:20px;
    border-radius:12px;
    box-shadow:0 5px 20px rgba(0,0,0,0.2);
    display:none;
    flex-direction:column;
    overflow:hidden;
}

.chat-header{
    background:#007bff;
    color:white;
    padding:12px;
    font-weight:bold;
}

.chat-body{
    flex:1;
    padding:10px;
    overflow-y:auto;
    background:#f8f9fa;
}

.chat-footer{
    display:flex;
    border-top:1px solid #ddd;
}

.chat-footer input{
    flex:1;
    border:none;
    padding:10px;
}

.chat-footer button{
    background:#007bff;
    color:white;
    border:none;
    padding:10px;
}
/* css bang thanh toan*/
/* Màu chủ đạo của Tabs */
.nav-tabs .nav-link {
    border: none;
    color: #6c757d;
}
.nav-tabs .nav-link.active {
    color: #0d6efd !important;
    border-bottom: 3px solid #0d6efd !important;
    background: transparent;
}

/* Các ô mệnh giá */
.menh-gia-item {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 10px 5px;
    cursor: pointer;
    transition: all 0.2s;
}

.menh-gia-item:hover {
    border-color: #0d6efd;
    background-color: #f8f9fa;
}

.menh-gia-item.active {
    background-color: #e9ecef; /* Màu xám nhạt như trong ảnh */
    border-color: #adb5bd;
}

/* Định dạng Input */
.form-control, .form-select {
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.form-control::placeholder {
    color: #adb5bd;
    font-size: 0.9rem;
}

/* Màu cho ô mệnh giá bình thường */
.menh-gia-item {
    cursor: pointer;
    border: 1px solid #dee2e6;
    padding: 10px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

/* Màu khi ô được chọn (Active) */
.menh-gia-item.active {
    border-color: #0d6efd !important;
    background-color: #f0f7ff !important;
    color: #0d6efd !important;
    font-weight: bold;
}
/* Style cho các nút copy và bảng */
.btn-copy {
    cursor: pointer;
    padding: 5px;
    transition: all 0.2s;
}
.btn-copy:hover {
    color: #0d6efd !important;
    transform: scale(1.2);
}
.table td {
    font-size: 14px;
    padding: 12px 8px;
}
/* Hiệu ứng Tab khi active */
#modalNapTien .nav-link.active {
    color: #0d6efd !important;
    border-bottom: 2px solid #0d6efd !important;
}

/*giohang*/
.cart-box {
    display: flex;
    align-items: center;
    gap: 8px;
    border: 2px solid #f1c40f;
    padding: 6px 9px;
    border-radius: 6px;
    color: black;
    text-decoration: none; /* QUAN TRỌNG */
    cursor: pointer;
}

    .cart-box:hover {
        background-color: #f1c40f;
        color: black;
    }


    /*end*/
    .footer{
    background:#333;
    margin-top:50px;
}

.footer-container{
    max-width:1200px;
    margin:auto;
    display:grid;
    grid-template-columns:2fr 1fr 1fr 1fr;
    gap:40px;
    padding:40px 20px;
}

.footer-logo{
    width:180px;
    margin-bottom:10px;
}

.footer-col h3{
    font-size:18px;
    margin-bottom:15px;
}

.footer-col ul{
    list-style:none;
    padding:0;
}

.footer-col ul li{
    margin-bottom:8px;
}

.footer-col ul li a{
    text-decoration:none;
    color:#ebebeb;
}

.footer-col ul li a:hover{
    color:#ff7a00;
}

.footer-bottom{
    background:black;
    color:rgb(255, 255, 255);
    text-align:center;
    padding:10px;
    font-size:14px;
}

.fb-box{
    background:rgb(41, 41, 41);
    border:1px solid #333;
    padding:20px;
    margin-top:10px;
}

/* Tùy chỉnh Tab Active cho Đăng nhập/Đăng ký */
#authModal .nav-tabs .nav-link.active {
    background-color: transparent !important;
    color: black !important;
    border-bottom: 3px solid #ff4081 !important;
}

/* Style cho các ô Input */
#authModal .input-group-text {
    border-right: none;
}

#authModal .form-control {
    border-left: none;
}

    #authModal .form-control:focus {
        border-color: #ff4081;
    }

.form-control::placeholder {
    color: black !important;
}

#authModal a.forgot-link {
    color: #007bff !important;
}

    #authModal a.forgot-link:hover {
        color: #ff4081 !important;
    }
/* Style cho Icon Mạng xã hội */
/* Icon chung */
.social-icon i{
    font-size: 30px;
    transition: 0.3s;
}

/* Facebook */
.social-icon.fb i{
    color:#1877f2;   /* xanh Facebook */
}

/* Google (màu thật) */
.social-icon.gg i {
    background: linear-gradient( 45deg, #4285F4 20%, /* xanh */
    #34A853 15% 16%, /* xanh lá */
    #FBBC05 45% 30%, /* vàng */
    #EA4335 70% /* đỏ */
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Hover */
.social-icon:hover i{
    color:#ff4081;
    -webkit-text-fill-color:#ff4081; /* để google cũng đổi màu */
    transform: scale(1.2);
}

.register-link {
    display: inline-block;
    transition: 0.3s;
}

    .register-link:hover {
        transform: translateY(-3px); /* nảy lên */
        box-shadow: 0 0 10px #ff4081;
    }
/* Chữ "Hoặc" giữa dòng kẻ */
.bg-dark {
    background-color: beige !important;
}

/* Hiệu ứng xoay Flip Card */
.auth-flip-card {
    width: 100%;
    height: 100%;
    perspective: 400px;
}

.auth-flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
}

.flipped {
    transform: rotateY(180deg);
}

.auth-front, .auth-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.auth-back {
    transform: rotateY(180deg);
}

/* Hình nền cho Modal Đăng nhập/Đăng ký */
.auth-custom-bg {
    background-image: url("../images/aka.jfif");
    background-size: cover;
    background-position: center;
    position: relative;
    border-radius: 15px;
}
    /* Lớp phủ mờ để chữ nổi bật hơn */
    .auth-custom-bg::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.7); /* Độ mờ đen 70% */
        border-radius: 15px;
    }

    /* Tối ưu riêng cho tiêu đề danh mục */
.shop-section-title {
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Hiệu ứng cho giá tiền trong trang chi tiết */
.price-box-detail h1 {
    text-shadow: 0 0 10px rgba(255, 64, 129, 0.4);
}

/* Chỉnh lại nút xem chi tiết khớp màu hồng */
.btn-view-detail {
    background-color: #ff4081;
    color: white;
    border: none;
    transition: 0.3s;
}

.btn-view-detail:hover {
    background-color: #e91e63;
    box-shadow: 0 0 15px rgba(255, 64, 129, 0.5);
    color: white;
}

/* Responsive cho Mobile */
@media (max-width: 768px) {
    .detail-container {
        flex-direction: column;
    }
    .carousel-inner, .carousel-item img {
        height: 250px;
    }
}
.acc-card {
        background: #1a1a1a;
        border: 1px solid #333;
        border-radius: 15px; /* Bo góc thẻ lớn */
        padding: 15px; /* KHOẢNG CÁCH ĐỀU TỪ CẠNH THẺ ĐẾN ẢNH VÀ CHỮ */
        transition: all 0.3s ease;
        overflow: hidden;
        display: flex;
        flex-direction: column;
    }

    /* Hiệu ứng hover cho thẻ */
    .acc-card:hover {
        transform: translateY(-5px);
        border-color: #ff0090;
        box-shadow: 0 10px 20px rgba(255, 0, 183, 0.2);
    }

    /* 2. Phần chứa ảnh: Đảm bảo ảnh không tràn ra ngoài padding */
    .acc-card-img-wrapper {
        width: 100%;
        height: 180px; /* Chiều cao khung ảnh */
        border-radius: 10px; /* BO GÓC RIÊNG CHO ẢNH */
        overflow: hidden; /* Cắt phần ảnh thừa nếu có */
        margin-bottom: 15px; /* Khoảng cách dưới ảnh */
    }

    /* Style cho chính tấm ảnh */
    .acc-card-img {
        width: 100%;
        height: 100%;
        object-fit: cover; /* Giữ tỷ lệ ảnh đẹp */
        display: block;
    }

    /* 3. Chỉnh lại phần chữ và giá cho hợp lý */
    .acc-id { color: #888; font-size: 1rem; }
    .acc-desc { color: #bbb; font-size: 0.9rem; min-height: 40px; margin-bottom: 10px; }
    .acc-price { color: #ff4081; font-weight: 800; font-size: 1.2rem; margin-bottom: 15px; }

    /* Nút xem chi tiết */
    .btn-detail {
        background: linear-gradient(45deg, #ff00bf, #0056b3);
        border: none;
        border-radius: 8px;
        font-weight: bold;
        transition: 0.3s;
        margin-top: auto; /* Đẩy nút xuống đáy nếu chữ mô tả ngắn */
    }
    .btn-detail:hover {
        background: linear-gradient(45deg, #b30071, #004085);
        box-shadow: 0 4px 12px rgba(0, 86, 179, 0.4);
    }
    
    /* Làm nền Modal đen sâu hơn và bo góc xịn */
    .custom-payment-modal {
        background-color: #0f0f0f !important; /* Đen sâu */
        border: 1px solid #2a2a2a !important;
        border-radius: 24px !important;
        box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
    }

    /* Các khối thông tin bên trong */
    .info-row {
        background: #1a1a1a;
        padding: 12px 15px;
        border-radius: 12px;
        margin-bottom: 8px;
        border: 1px solid #222;
    }

    /* Ô nhập mã giảm giá kiểu hiện đại */
    .coupon-input {
        background: #151515 !important;
        border: 1px solid #333 !important;
        color: white !important;
        border-radius: 10px 0 0 10px !important;
    }

    /* Nút thanh toán màu hồng tím theo tông logo */
    .btn-checkout {
        background: linear-gradient(90deg, #ff4081, #d81b60);
        border: none;
        color: white;
        font-weight: 700;
        border-radius: 12px;
        transition: 0.3s;
    }

    .btn-checkout:hover {
        opacity: 0.9;
        transform: scale(1.02);
        box-shadow: 0 0 15px rgba(255, 64, 129, 0.4);
    }
    
    /* Làm đẹp các nút trong Menu */
    .btn-menu {
        background: #1a1a1a;
        color: white !important;
        border: 1px solid #333;
        text-align: left;
        padding: 12px 15px;
        border-radius: 12px;
        font-weight: 500;
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
        text-decoration: none;
    }

    .btn-menu i {
        margin-right: 12px;
        font-size: 1.2rem;
        color: #ff4081; /* Màu hồng tím làm điểm nhấn */
    }

    .btn-menu:hover {
        background: #252525;
        border-color: #ff4081;
        transform: translateX(5px);
    }

    /* Nút nạp tiền nổi bật hơn */
    .btn-highlight {
        background: linear-gradient(90deg, #ff4081, #d81b60);
        border: none;
    }
    
    .btn-highlight i {
        color: white;
    }

    /* Bo góc cho Chatbox */
    .chat-container {
        position: fixed;
        bottom: 90px;
        right: 20px;
        /* THAY ĐỔI Ở ĐÂY */
        width: 320px;         /* Độ rộng cố định cho màn hình máy tính */
        max-width: 85vw;     /* Không bao giờ rộng quá 85% chiều ngang màn hình */
        z-index: 10000 !important;
        background: #0f0f0f;
        border-radius: 20px;
        border: 1px solid #2a2a2a;
        box-shadow: 0 10px 25px rgba(0,0,0,0.5);
        display: none;        /* Mặc định ẩn, hiện khi nhấn nút */
    }
    @media (max-width: 576px) {
        .chat-container {
            width: 280px;      /* Thu nhỏ lại một chút */
            right: 10px;       /* Đẩy sát lề hơn một tí để tiết kiệm diện tích */
            bottom: 80px;
        }
        .chat-toggle {
            right: 10px;
            bottom: 10px;
            width: 50px;       /* Icon nhỏ lại cho đỡ chiếm chỗ */
            height: 50px;
        }
    }
    .chat-header {
        background: #1a1a1a;
        padding: 15px;
        font-weight: bold;
        color: #ff4081;
    }
    .btn-menu .bi-messenger {
        background: -webkit-linear-gradient(45deg, #00B2FF, #006AFF, #BC3DFF);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        font-size: 1.3rem; /* Làm icon to hơn một chút cho nổi bật */
    }

    /* Hiệu ứng khi di chuột vào nút */
    .btn-menu:hover .bi-messenger {
        filter: drop-shadow(0 0 5px rgba(0, 178, 255, 0.5));
    }
    .bg-pink {
    background-color: #ff4081 !important;
    height: 2px;
    border: none;
    width: 100px;
    }

    h2 i {
        color: #ff4081;
        margin-right: 10px;
    }