.btn-muangay {
    background-color: #007bff;   /* xanh dương */
    color: #fff;
    font-size: 12px;
    font-weight: bold;
    padding: 10px 22px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;

    transition: background-color 0.2s ease-in-out, transform 0.1s ease-in-out;
}

.btn-muangay i {
    margin-right: 8px; /* cách icon với chữ */
    font-size: 18px;
}

.btn-muangay:hover {
    background-color: #0069d9; /* xanh đậm hơn khi hover */
}

.btn-muangay:active {
    transform: scale(0.97); /* nhấn xuống */
}
.gia-sanpham {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #ff0000; /* viền đỏ liền */
    border-radius: 6px;
    padding: 6px 14px;
    font-size: 15px;
    font-weight: bold;
    color: #ff0000; /* chữ đỏ */
    background-color: #f9f9ff; /* nền nhạt nhẹ */
    cursor: default;
    transition: all 0.2s ease-in-out;
}


.gia-sanpham i {
    margin-right: 6px;
    font-size: 16px;
    color:  #ff0000;
}

.gia-sanpham:hover {
    background-color: #e6f0ff; /* hover sáng hơn */
}

.tag-label {
    position: absolute;
    top: 0.5rem; /* top-2 */
    background-color: #018ef6;
    font-size: 10px;
    font-weight: 500;
    color: #fff;
    padding: 0.25rem 0.625rem; /* px-2.5 py-1 */
    box-shadow: 0 2px 6px rgba(0,0,0,0.2); /* shadow-md */
    display: inline-block;
}

.tag-label::after {
    content: "";
    position: absolute;
    width: 0;
    height: 0;
    border-style: solid;
    border-top-width: 4px;
    border-top-color: #005a99; /* màu mũi nhọn */
    bottom: -4px;
    z-index: 0;
}

/* Bên trái */
.tag-left {
    left: -0.5rem; /* -left-2 */
    border-top-left-radius: 0.25rem;   /* rounded-tl-md */
    border-top-right-radius: 1rem;     /* rounded-tr-2xl */
    border-bottom-right-radius: 1rem;  /* rounded-br-2xl */
}

.tag-left::after {
    left: 0;
    border-left-width: 8px;
    border-left-color: transparent;
}

/* Bên phải */
.tag-right {
    right: -0.5rem; /* -right-2 */
    border-top-right-radius: 0.25rem;  /* rounded-tr-md */
    border-top-left-radius: 1rem;      /* rounded-tl-2xl */
    border-bottom-left-radius: 1rem;   /* rounded-bl-2xl */
}

.tag-right::after {
    right: 0;
    border-right-width: 8px;
    border-right-color: transparent;
}
.product-img {
    width: 500px;
    height: 200px;
    object-fit: contain;
    border-radius: 10px;
    display: block;
    background: aliceblue;
}
.detail-product-img{
    width: 500px;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
}

/* Menu chính */
.dropdown-menu-custom {
    display: none;
    flex-direction: column;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    position: absolute;
    right: 0;
    top: 50px;
    min-width: 220px;
    z-index: 999;
    padding: 10px 0;
}

.menu-item, .logout-btn {
    display: block;
    padding: 10px 15px;
    color: #333;
    text-decoration: none;
    cursor: pointer;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
}

.menu-item:hover,
.logout-btn:hover {
    background: #f3f3f3;
}

/* Sub menu */
.dropdown-sub {
    position: relative;
}

.dropdown-toggle-sub {
    padding: 10px 15px;
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    cursor: pointer;
    color: #333;
}

.dropdown-sub-menu {
    display: none;
    flex-direction: column;
    position: relative;
    padding-left: 15px;
    background: #fafafa;
}

.submenu-item {
    padding: 8px 15px;
    font-size: 14px;
    color: #444;
    text-decoration: none;
}

.submenu-item:hover {
    background: #eaeaea;
}

/* Số dư */
.menu-balance {
    display: flex;
    padding: 10px 15px;
    /*font-weight: bold;*/
    color: #000;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    gap: 10px;
}

/* Hiển thị menu khi click avatar */
.login-btn-wrapper.open .dropdown-menu-custom {
    display: flex;
}

/* Hiển thị submenu khi click */
.dropdown-sub.open .dropdown-sub-menu {
    display: flex;
}

/* Ẩn submenu mặc định */
.dropdown-sub .dropdown-sub-menu {
    display: none;
    padding-left: 10px;
}

.dropdown-sub.open .dropdown-sub-menu {
    display: block;
}

/* Icon mũi tên */
.arrow-icon {
    margin-left: auto;
    transition: transform 0.25s ease;
}

.dropdown-sub.open .arrow-icon {
    transform: rotate(180deg);
}

/* Canh icon đầu */
.dropdown-toggle-sub i[data-lucide]:first-child {
    margin-right: 6px;
}

.menu-item i[data-lucide] {
    margin-right: 6px;
    vertical-align: middle;
}

.custom-modal {
    background-color: rgba(0, 0, 0, 0.7); /* nền đen mờ */
    backdrop-filter: blur(3px); /* làm mờ nền sau */
    animation: fadeIn 0.3s ease forwards;
}
.modal-box {
    animation: zoomIn 0.25s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Popup mặc định */
#order-popup-content {
    max-width: 600px !important;     /* Giữ popup không quá rộng */
    width: 90% !important;           /* Trên mobile chiếm 90% màn hình */
    margin: auto !important;         /* Căn giữa */
    border-radius: 12px !important;  /* Bo tròn cho đẹp */
}
/* Popup mặc định */
#order-popup-content {
    max-width: 600px !important;
    width: 90% !important;
    margin: auto !important;
    border-radius: 12px !important;

    /* Thêm hiệu ứng */
    transform: scale(0.5);
    opacity: 0;
    transition: all 0.3s ease-in-out;
}

/* Khi mở (JS thêm class scale-100 + opacity-100) */
#order-popup-content.scale-100.opacity-100 {
    transform: scale(1);
    opacity: 1;
}

/* Khi đóng (JS thêm class scale-50 + opacity-0) */
#order-popup-content.scale-50.opacity-0 {
    transform: scale(0.5);
    opacity: 0;
}

/* Overlay */
#order-popup {
    transition: background-color 0.3s ease-in-out;
}

/* Responsive cho điện thoại */
@media (max-width: 768px) {
    #order-popup {
        padding: 10px !important;
    }

    #order-popup-content {
        width: 95% !important;
        max-height: 70vh !important;
        overflow-y: auto !important;
        position: relative !important;
    }

    #order-popup-content img {
        max-width: 100% !important;
        height: auto !important;
    }

    #order-popup-content input,
    #order-popup-content textarea {
        width: 100% !important;
        font-size: 15px !important;
    }

    #order-popup-content .flex {
        flex-direction: column !important;
        gap: 10px !important;
    }

    #order-popup-content button {
        /*width: 100% !important;*/
    }

    /* Nút đóng căn gọn */
    #close-order-popup {
        top: 8px !important;
        right: 8px !important;
        font-size: 22px !important;
        background: #f1f1f1 !important;
        border-radius: 50% !important;
        width: 28px !important;
        height: 28px !important;
        line-height: 26px !important;
        text-align: center !important;
    }

    #close-order-popup:hover {
        background: #ff4d4f !important;
        color: #fff !important;
    }
}
.custom-scrollbar::-webkit-scrollbar {
    width: 0px;  /* Chrome, Safari, Edge */
    background: transparent;
}

.custom-scrollbar {
    scrollbar-width: none;  /* Firefox */
    -ms-overflow-style: none;  /* IE 10+ */
}



a:hover .icon-ctv {
    transform: scale(1.05);    /* ✨ chỉ phóng to nhẹ khi hover */
}

.text-gradient {
    background: linear-gradient(90deg, #38F3FF, #1B7BFB);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    -webkit-text-stroke: 0.2px rgba(0, 0, 0, 0.1); /* viền đen mờ */
}



.bottom-text
{
    font-size: 11px;
}


@media (min-width: 1024px) {
    .logo-shop-game-custom
    {
        height: 120px;
    }

}

@media (max-width: 639px) {
    .btn-muangay {
        font-size: 8px;
        padding: 9px 4px;
        border-radius: 6px;
    }

    .btn-muangay i {
        font-size: 8px;        /* icon nhỏ lại */
        margin-right: 6px;
    }

    .gia-sanpham {
        font-size: 8px;
        padding: 6px 4px;
        border-radius: 6px;
    }

    .gia-sanpham i {
        font-size: 8px;        /* icon giá nhỏ */
        margin-right: 4px;
    }
    .product-img {
        /*width: 500px;*/
        height: 80px;
        object-fit: contain;
        border-radius: 10px;
        display: block;
        background: aliceblue;
    }
    .tag-right {
        right: -0.5rem;
        border-top-right-radius: 0.25rem;
        border-top-left-radius: 1rem;
        border-bottom-left-radius: 1rem;
        top: 0;
        font-size: 8px;
    }
    .detail-product-img{
        width: 200px;
        height: 80px;
        object-fit: cover;
    }
}

@media (min-width: 1024px) {
    .dropdown-menu-custom.desktop-style {
        background: #fff;
        border: 1px solid #ccc;
        border-radius: 8px;
        padding: 8px 0;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        min-width: 220px;
        left: -200px;
        top: 100%;
        position: absolute;
        z-index: 1000;
        margin-left: -10px;
        /* ✅ Giới hạn chiều cao và bật cuộn */
        max-height: 600px;
        overflow-y: auto;
        scrollbar-width: thin; /* Firefox */
    }

    /* ✅ Tùy chỉnh thanh cuộn cho Chrome, Edge */
    .dropdown-menu-custom.desktop-style::-webkit-scrollbar {
        width: 6px;
    }
    .dropdown-menu-custom.desktop-style::-webkit-scrollbar-thumb {
        background-color: #ccc;
        border-radius: 3px;
    }
    .dropdown-menu-custom.desktop-style::-webkit-scrollbar-thumb:hover {
        background-color: #999;
    }

    .dropdown-menu-custom.desktop-style a {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 10px 16px;
        color: #333;
        font-size: 14px;
        text-decoration: none;
        transition: background 0.2s;
    }

    .dropdown-menu-custom.desktop-style a:hover {
        background: #f0f0f0;
    }
}