﻿@import url('https://fonts.googleapis.com/css2?family=Mali:wght@400;700&display=swap');

@media (max-width: 1280px) {

    body, p,button,div,input, select,a {
        line-height: 1.8;
        letter-spacing: 0.01em;
    }

    #grid-home-genre a {
        font-size: 20px !important;
    } 
}
#global-search-confirm, #global-search-clear {
    top: 50%;
    transform: translateY(-50%);
}
.label {
    min-width: 180px;
    font-weight: 450;
    color: #333;
    place-self:center;
}

.wrap_input {
    flex: 1;
}

.wrap_input_short {
    display: flex;
    align-items: center;
}

.thumb_img {
    display: block;
    width: 80px;
    height: 80px;
    overflow: hidden;
    border-radius: 4px;
    border: 1px solid #e5e5e5;
}

    .thumb_img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.choose-wrap {
    width: 80px;
    height: 80px;
    border: 2px dashed #d0d0d0;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fafafa;
    transition: all 0.3s;
}

    .choose-wrap:hover {
        border-color: #ee4d2d;
        background: #fff5f3;
    }

    .choose-wrap input[type="file"] {
        display: none;
    }

.choose-content {
    text-align: center;
}

    .choose-content i {
        font-size: 24px;
        color: #999;
        display: block;
        margin-bottom: 4px;
    }

    .choose-content span {
        font-size: 12px;
        color: #999;
    }

.delete {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 24px;
    height: 24px;
    background: #ee4d2d;
    border-radius: 50%;
    border: none;
    color: white;
    cursor: pointer;
    z-index: 10;
}

.btn-base {
    background-color: #ee4d2d;
    color: white;
}

    .btn-base:hover {
        background-color: #d73211;
    }

.btn-outline-base {
    border: 1px solid #ee4d2d;
    color: #ee4d2d;
}

    .btn-outline-base:hover {
        background-color: #fff5f3;
    }

.btn-add {
    border: 1px dashed #d0d0d0;
    color: #ee4d2d;
    background: white;
}

    .btn-add:hover {
        border-color: #ee4d2d;
        background: #fff5f3;
    }

.disabled {
    opacity: 0.6;
    pointer-events: none;
}

.note {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    pointer-events: none;
}

.price {
    position: relative;
}

.namesp {
    position: relative;
}

    .namesp .note {
        right: 12px;
        top: auto;
        bottom: 8px;
        transform: none;
        font-size: 12px;
    }

.edit {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
}

.select-option {
    display: none;
    position: absolute;
    background: white;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    z-index: 100;
    margin-top: 4px;
}

.items {
    position: relative;
}

.icon-action {
    color: #999;
    padding: 4px;
}

    .icon-action:hover {
        color: #ee4d2d;
    }

.switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

    .switch input {
        opacity: 0;
        width: 0;
        height: 0;
    }

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
}

    .slider.round {
        border-radius: 24px;
    }

        .slider.round:before {
            border-radius: 50%;
        }

    .slider:before {
        position: absolute;
        content: "";
        height: 18px;
        width: 18px;
        left: 3px;
        bottom: 3px;
        background-color: white;
        transition: .4s;
    }

input:checked + .slider {
    background-color: #ee4d2d;
}

    input:checked + .slider:before {
        transform: translateX(20px);
    }

.radio {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

    .radio input {
        display: none;
    }

.checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid #d0d0d0;
    border-radius: 50%;
    margin-right: 8px;
    position: relative;
}

.radio input:checked ~ .checkmark {
    border-color: #ee4d2d;
}

    .radio input:checked ~ .checkmark:after {
        content: '';
        position: absolute;
        width: 10px;
        height: 10px;
        background: #ee4d2d;
        border-radius: 50%;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }
.items .thumb_img img {
    width:244px;
}


.flex-input-choose {
    display: flex;
    align-items: center;
    gap: 12px;
}

    .flex-input-choose .thumb_img {
        width: 50px;
        height: 50px;
        flex-shrink: 0;
    }

.right-action {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.delete {
    text-align: center;
}

.select2 {
    height: 44px;
    align-content: center;
    border: none;
}
    .select2 .select2-selection {
        border: none;
        height: 42px;
        padding:none;
    }
.select2-container--default .select2-selection--multiple, .select2-container--default.select2-container--focus .select2-selection--multiple {
    border: none;
}

.product-item a{
    display:contents;
}



.product-card {
  
}

/* Ảnh sản phẩm */
.product-image {
    width: 100%;
    display: block;
}

/* Ribbon chéo góc */
.ribbon {
    position: absolute;
    top: 14px;
    left: -40px;
    background: linear-gradient(135deg, #6a00ff, #9b5cff);
    color: #fff;
    padding: 2px 50px;
    font-size: 12px;
    font-weight: 600;
    transform: rotate(-33deg);
    text-align: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.25);
    pointer-events: none;
}



/* Badge FREE SHIP */
.free-ship-badge {
    position: absolute;
    bottom: 0px;
    right: 0px;
    background: #ff4d4f;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    text-align: center;
    padding: 6px 6px;
    border-radius: 4px 4px 0 0;
    line-height: 1.2;
    box-shadow: 0 2px 6px rgba(0,0,0,0.25);
}

    /* Dòng phụ */
    .free-ship-badge small {
        font-size: 8px;
        font-weight: 500;
    }

    /* Mũi nhọn tam giác */
    .free-ship-badge::before {
        content: "";
        position: absolute;
        left: 0;
        bottom: -8px;
        width: 0;
        height: 0;
        border-left: 0 solid transparent;
        border-right: 100% solid transparent;
        border-top: 8px solid #ff4d4f;
    }


    /*Menu PC*/
.menu-item {
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    color: #DCDCDC;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
}

    .menu-item:hover {
        color: #D4A017; /* blue-600 */
    }

.submenu-item {
    display: block;
    padding: 0.75rem 1rem;
    color: #444444;
}

    .submenu-item:hover {
        background: #F5F0E9; /* gray-100 */
        color: #A0522D;
        border: 1px solid #A0522D;
    }


:root {
    --brand-red: #ff3b30;
}


h4.number{
    font-size:28px !important;
}
.price-disabled input {
    background:lightgray;
}

.img-voucher {
    position: relative;
    width: 120px;
    height: 80px;
    float: left;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    margin-right: 10px;
    color: #fff;
    font-size: 16px;

  
}
    .img-voucher span {
        position: relative;
    }

    .img-voucher .number {
        font-size: 20px;
        font-weight: 700;
        line-height: 1;
    }

    .img-voucher img {
        position: absolute;
        left: 0;
        top: 0;
        width:100%;
    }


@media (max-width: 640px) {
    .hot-truyen-item:nth-child(n+7) {
        display: none;
    }
}
.desktop-submenu {
    background: #FDFDFD;
    color: #444444;
}

/* Trạng thái mặc định cho link (để đảm bảo transition mượt) */
.flex.items-center.gap-2.md\/order-1 {
    transition: all 0.3s ease;
    cursor: pointer;
}

/* Hiệu ứng Hover cho cả cụm (Icon + Text) */
a.flex.items-center:hover svg path {
    fill: #FFB800; /* Đổi icon sang Vàng Đồng */
    transition: fill 0.3s ease;
}

a.flex.items-center:hover span {
    color: #FFB800 !important; /* Đổi chữ sang Vàng Đồng */
    transition: color 0.3s ease;
}

/* Hiệu ứng nhấc nhẹ (Optional) - tạo cảm giác nổi khối */
a.flex.items-center:hover {
    transform: translateY(-2px);
}

/* Tổng thể nền Menu Mobile */
#mobileMenuBody {
    background-color: #FDFDFD; /* Trắng khói cực nhạt cho sạch sẽ */
}

/* Các nhóm menu chính */
.menu-group {
    border-bottom-color: #E5E5E5 !important; /* Đường kẻ phân cách xám nhạt */
}

/* Nút bấm chính (Sản phẩm, Tin tức...) */
.accordion-btn {
    color: #333333; /* Chữ xám đậm */
    transition: background 0.3s ease, color 0.3s ease;
}

    /* Khi nhấn vào nút hoặc nút đang mở (Active) */
    .accordion-btn.active {
        background-color: #F5F0E9; /* Nền nâu kem nhạt khi mở */
        color: #A0522D; /* Chữ chuyển sang nâu hạt dẻ */
    }

/* Nội dung bên trong khi xổ xuống */
.accordion-content {
    background-color: #F9F7F5 !important; /* Màu xám kem hơi tối hơn nền chính một chút */
}

    /* Các item con (Điện thoại, Laptop...) */
    .accordion-content a {
        color: #555555;
        border-top-color: #E5E5E5 !important;
        transition: all 0.2s ease;
    }

        /* Hover/Active cho item con */
        .accordion-content a:active,
        .accordion-content a:hover {
            background-color: #EFEBE7;
            color: #A0522D;
            padding-left: 2.5rem; /* Hiệu ứng đẩy nhẹ sang phải khi nhấn */
        }

/* Màu của Icon mũi tên */
.accordion-icon {
    color: #A0522D; /* Mũi tên màu nâu hạt dẻ làm điểm nhấn */
}
@media (max-width: 767px) {
    /* Tìm class bao quanh toàn bộ Bảng Xếp Hạng */
    .bang-xep-hang-container {
        width: auto; /* Để chiều rộng tự động co giãn */
        margin-left: 5px; /* Chỉnh lại cho khớp với margin của card trên */
        margin-right: 5px; /* Chỉnh lại cho khớp với margin của card trên */
        padding: 5px; /* Khoảng cách bên trong bảng */
        border-radius: 8px; /* Bo góc để đồng bộ với card truyện */
        box-sizing: border-box; /* Đảm bảo padding không làm tăng chiều rộng */
    }

    /* Nếu bạn dùng Tailwind CSS, hãy thêm các class này vào thẻ div: */
    /* mx-3 rounded-lg overflow-hidden (mx-3 tương đương ~12px) */
}


/* Dải hiển thị thông tin trên ảnh truyện */
.info-overlay {
    /* Gradient từ Xám Titan đậm sang trong suốt để không che mất ảnh */
    background: linear-gradient(to top, rgba(47, 47, 47, 0.9) 0%, rgba(47, 47, 47, 0.4) 100%);
    /* Màu chữ trắng ngà để dịu mắt hơn trên nền tối */
    color: #F5F5F5;
    /* Làm mịn font chữ trên nền tối */
    backdrop-filter: blur(2px);
    border-bottom-left-radius: 0.75rem; /* rounded-xl tương ứng */
    border-bottom-right-radius: 0.75rem;
}

    /* Màu của các icon SVG bên trong dải */
    .info-overlay svg {
        /* Sử dụng màu Vàng Đồng để làm điểm nhấn nổi bật trên nền xám */
        color: #D4A017;
    }

/* Khi di chuột vào card truyện, dải này có thể đậm lên một chút (tùy chọn) */
.group:hover .info-overlay {
    background: rgba(47, 47, 47, 0.95);
    color: #FFB800; /* Chuyển sang vàng sáng khi hover */
}

/* Thu nhỏ toàn bộ nút điều hướng */
.swiper-nav-custom {
    width: 32px !important; /* Thu nhỏ đường kính nút */
    height: 32px !important;
    background-color: #F5F0E9 !important; /* Nền màu Kem Nâu nhạt */
    color: #A0522D !important; /* Mũi tên màu Nâu Hạt Dẻ */
    border: 1px solid #D4A373 !important; /* Viền nâu đồng mảnh */
    border-radius: 50% !important;
    transition: all 0.2s ease-in-out !important;
}

    /* Loại bỏ hoàn toàn mũi tên xanh mặc định của Swiper */
    .swiper-nav-custom::after {
        content: '' !important;
        display: none !important;
    }

    /* Hiệu ứng Hover - Đổi màu sang Xám Titan */
    .swiper-nav-custom:hover {
        background-color: #4A4A4A !important; /* Nền Xám Titan */
        color: #FFFFFF !important; /* Mũi tên trắng */
        border-color: #4A4A4A !important;
        transform: scale(1.05);
    }

/* Vị trí trên Mobile (nhỏ hơn nữa nếu cần) */
@media (max-width: 767px) {
    .swiper-nav-custom {
        width: 28px !important;
        height: 28px !important;
    }
}

#main-content {
    -webkit-user-select: none; /* Safari */
    -ms-user-select: none; /* IE 10+ and Edge */
    user-select: none; /* Standard syntax */
}

/* Khi đã lưu: Icon sẽ được tô đầy màu nâu và viền cũng đổi màu tương ứng */
.is-saved svg {
    fill: #8B735B;
    stroke: #8B735B;
}

/* Hiệu ứng rung nhẹ khi nhấn để tạo cảm giác phản hồi vật lý */
.is-saved {
    background-color: #FDF5E6; /* Màu nền nhẹ khi đã lưu */
}

/* Trạng thái mặc định của các nút */
.leaderboard-period {
    transition: all 0.3s ease; /* Hiệu ứng chuyển màu mượt mà */
    cursor: pointer;
}

    /* Trạng thái khi nút được kích hoạt (Active) */
    .leaderboard-period.active, .pagination-btn.active {
        background-color: #A0522D !important; /* Màu nâu của bạn */
        color: #F5F5F5 !important;
        font-weight: 600;
    }

    /* Trạng thái khi không active và di chuột qua (Hover) */
    .leaderboard-period:not(.active):hover {
        background-color: #f3f4f6; /* Xám nhạt */
        color: #1f2937;
    }



/* Class hiển thị lỗi input cho đồng bộ tông màu */
.client-auth-input.is-invalid {
    border-color: #d9534f; /* Màu đỏ cảnh báo */
    background-color: #fff8f8;
}

.client-auth-error-text {
    color: #d9534f;
    font-size: 12px;
    margin-top: 5px;
    display: block;
}

/* Overlay làm mờ nền */
.client-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none; /* Ẩn mặc định */
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

/* Khung Popup */
.client-modal-card {
    background: #fff;
    width: 90%;
    max-width: 350px;
    padding: 25px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    border-top: 4px solid #8d5524;
}

.client-modal-title {
    font-weight: bold;
    font-size: 18px;
    color: #333;
    margin-bottom: 15px;
}

.client-modal-body {
    font-size: 15px;
    color: #666;
    margin-bottom: 25px;
}

/* Group nút nhấn trong popup */
.client-modal-actions {
    display: flex;
    gap: 10px;
}

.btn-modal-cancel {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    background: #f5f5f5;
    cursor: pointer;
    border-radius: 4px;
    font-weight: 600;
}

.btn-modal-confirm {
    flex: 1;
    padding: 10px;
    border: none;
    background: #8d5524;
    color: #fff;
    cursor: pointer;
    border-radius: 4px;
    font-weight: 600;
}

    .btn-modal-confirm:hover {
        background: #72441c;
    }

.client-logo-text {
    /* font-family: 'Itim', cursive;*/
    font-family: 'Mali', cursive;
    font-weight: bold;
    text-transform: none; /* Bỏ viết hoa toàn bộ để trông mềm mại, gần gũi hơn */
    letter-spacing: 0.3px;
    /* Màu sắc: Chuyển sang tone Vàng Bơ và Cam Sữa để tương phản tốt hơn */
    background: linear-gradient(to bottom, #fff9c4 0%, #ffca28 40%, #f57c00 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    /* Đổ bóng: Dùng bóng tối mờ rộng để chữ không bị sắc lẹm, dễ đọc hơn */
    filter: drop-shadow(0px 2px 4px rgba(0, 0, 0, 0.5));
    white-space: nowrap;
    transition: all 0.3s ease;
    text-transform: capitalize;
}

    .client-logo-text:hover {
        /* Hiệu ứng phát sáng nhẹ màu vàng kem */
        filter: drop-shadow(0px 0px 10px rgba(255, 249, 196, 0.6));
        letter-spacing: 1px;
    }






    #main-content, #main-content p {
        font-size: 18px !important;
        line-height: 1.8;
        letter-spacing: 0.01em;
    }

/* Responsive cho Mobile */
@media (max-width: 1280px) {

    #main-content, #main-content p {
        font-size: 20px !important;
        line-height: 1.8;
        letter-spacing: 0.01em;
    }
}
/* Ẩn thanh cuộn để giao diện sạch sẽ hơn */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}

.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}
/* Tổng thể Select2 */
.select2-container--default .select2-selection--multiple {
    border: 1px solid #e5e7eb !important;
    border-radius: 0.5rem !important;
    min-height: 48px !important;
    display: flex !important;
    align-items: center !important;
    transition: all 0.2s;
    padding: 0 4px !important;
}

.select2-container--default.select2-container--focus .select2-selection--multiple {
    border-color: #9A512C !important;
    box-shadow: 0 0 0 1px #9A512C !important;
    outline: none !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__rendered {
    font-size: 16px !important;
    display: flex !important;
    flex-wrap: wrap;
    gap: 6px;
    padding: 4px 8px !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice {
    background-color: #f3f4f6 !important;
    border: 1px solid #d1d5db !important;
    border-radius: 6px !important;
    padding: 4px 10px !important;
    color: #1f2937 !important;
    margin: 2px 0 !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    color: #9A512C !important;
    margin-right: 8px !important;
    font-weight: bold;
}

.select2-results__option {
    padding: 12px 16px !important;
    font-size: 16px !important;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: #3b82f6 !important;
}

.select2-container--default .select2-search--inline .select2-search__field {
    font-size: 16px !important;
    margin-top: 0 !important;
    height: 32px !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__display {
    padding-left: 15px;
}

.select2-container--default .select2-selection--multiple .select2-selection__clear {
    margin-right: 10px;
    margin-top: 0px;
    margin-bottom: 10px;
    font-size: 19px;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    font-size: 19px;
}