
    /* 1. Màn hình nền đen full */
    .mobile-lightbox {
        display: none;
        /* Mặc định ẩn */
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.95);
        /* Màu đen đậm */
        z-index: 999999;
        /* Đè lên tất cả */
        align-items: center;
        justify-content: center;
        overflow: hidden;
    }

    /* 2. Container chứa ảnh */
    .mobile-lightbox-container {
        width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
        /* Quan trọng để cắt phần thừa khi zoom */
    }

    /* 3. Ảnh chính */
    #mobile-lightbox-img {
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
        transition: transform 0.3s ease;
        /* Hiệu ứng zoom mượt */
        transform-origin: center center;
        will-change: transform;
        /* Tối ưu hiệu năng render */
    }

    /* 4. Nút đóng */
    .mobile-lightbox-close {
        position: absolute;
        top: 20px;
        right: 20px;
        color: #fff;
        font-size: 40px;
        font-weight: bold;
        z-index: 10;
        cursor: pointer;
        background: rgba(0, 0, 0, 0.3);
        width: 40px;
        height: 40px;
        line-height: 35px;
        text-align: center;
        border-radius: 50%;
    }

    /* 5. Gợi ý nhỏ bên dưới */
    .mobile-lightbox-hint {
        position: absolute;
        bottom: 80px;
        left: 0;
        width: 100%;
        text-align: center;
        color: #aaa;
        font-size: 13px;
        pointer-events: none;
    }


    /* CSS Status Mobile */
    .status-checking {
        background: #e3f2fd; 
        color: #0d47a1;
        border: 1px solid #bbdefb;
    }

    .status-success {
        background: #d4edda;
        color: #155724;
        border: 1px solid #c3e6cb;
        font-weight: bold;
    }

    .status-outbid {
        background: #fff3cd;
        color: #856404;
        border: 1px solid #ffeeba;
     }

    .status-error {
        background: #f8d7da;
        color: #721c24; 
        border: 1px solid #f5c6cb;
    }

    

    /* === CSS CHO STATUS OVERLAY (YAHOO STYLE) === */

    /* Container chứa ảnh phải là relative để banner bám theo */
    .mobile-gallery,
    .main-image {
        position: relative !important;
    }

    /* Định dạng chung cho Banner */
    .yhp-status-overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 999;
        /* Cao hơn ảnh */
        padding: 10px 15px;
        color: #fff;
        font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
        /* Hiệu ứng trong suốt nhẹ giống Yahoo */
        opacity: 0.95;
    }

    /* Dòng tiêu đề lớn */
    .yhp-status-overlay .status-title {
        display: block;
        font-size: 16px;
        font-weight: 700;
        margin-bottom: 2px;
    }

    /* Dòng mô tả nhỏ bên dưới */
    .yhp-status-overlay .status-desc {
        display: block;
        font-size: 12px;
        opacity: 0.9;
    }

    /* 1. TRẠNG THÁI THẮNG (Màu Xanh Yahoo đặc trưng) */
    .status-winning {
        background-color: #e3f2fd;
        /* Nền nhạt */
        border-bottom: 2px solid #2196f3;
        color: #0d47a1;
        /* Chữ xanh đậm */
    }

    .status-winning .status-title {
        color: #1565c0;
    }

    /* 2. TRẠNG THÁI THUA / BỊ VƯỢT (Màu Xám Đen hoặc Đỏ) */
    .status-losing {
        background-color: #666;
        /* Màu xám đen nổi bật sự nghiêm trọng */
        border-bottom: 2px solid #333;
    }

    /* 3. TRẠNG THÁI SNIPER (Màu Xanh Lá hoặc Tím hiện đại) */
    .status-sniper {
        background: linear-gradient(90deg, #007bff, #00d2ff);
        border-bottom: 2px solid #0056b3;
    }

    /* --- CSS CHO THÔNG BÁO TEXT BÊN DƯỚI (NOTICE) --- */
    .auction-notice {
        padding: 12px;
        border-radius: 8px;
        margin-bottom: 15px;
        font-size: 14px;
        line-height: 1.5;
        font-weight: 600;
    }

    .notice-winning {
        background: #e7fff2;
        color: #006c3a;
        border: 1px solid #006c3a;
    }

    .notice-losing {
        background: #ffe7e7;
        color: #c00;
        border: 1px solid #c00;
    }

    .notice-sniper {
        background: #e3f2fd;
        color: #0d47a1;
        border: 1px dashed #0d47a1;
    }

    /* Tinh chỉnh cho Mobile Gallery để Banner không bị che */
    .mobile-gallery .swiper-wrapper {
        z-index: 1;
    }

    /* === Layout Mobile === */
    .yhp-auction-mobile {
        background: #f7f8fa;
    }

    .mobile-gallery {
        background: #fff;
        border-bottom: 1px solid #eee;
        position: relative;
        /* FIX LỖI OVERLAP */
        z-index: 1;
        /* FIX LỖI OVERLAP */
    }

    .mobile-gallery .swiper-slide {
        display: flex;
        justify-content: center;
        align-items: center;
        background: #fff;
    }

    .mobile-gallery .swiper-slide img {
        width: 100%;
        height: auto;
        aspect-ratio: 1 / 1;
        object-fit: cover;
    }

    .swiper-pagination-bullet-active {
        background: #E60012 !important;
    }

    .mobile-info-wrapper {
        background: #fff;
        padding: 15px;
        margin-bottom: 10px;
        position: relative;
        /* FIX LỖI OVERLAP */
        z-index: 5;
        /* FIX LỖI OVERLAP */
    }

    .mobile-title {
        font-size: 18px;
        font-weight: 600;
        line-height: 1.4;
        margin-bottom: 5px;
    }

    .mobile-sid {
        font-size: 13px;
        color: #777;
        margin-bottom: 15px;
    }

    .mobile-price-box {
        text-align: center;
        margin-bottom: 15px;
    }

    .mobile-price-box .price-label {
        font-size: 14px;
        color: #555;
    }

    .mobile-price-box .price-jpy {
        font-size: 26px;
        font-weight: 700;
        color: #E60012;
        line-height: 1.2;
        display: block;
    }

    .mobile-price-box .price-vnd {
        font-size: 14px;
        font-weight: 500;
        color: #333;
    }

    .mobile-meta-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
        text-align: center;
        border-top: 1px dashed #eee;
        border-bottom: 1px dashed #eee;
        padding: 10px 0;
    }

    .mobile-meta-grid .meta-item .label {
        font-size: 13px;
        color: #777;
        display: block;
    }

    .mobile-meta-grid .meta-item .value {
        font-size: 15px;
        font-weight: 600;
        color: #222;
        display: block;
    }

    .mobile-meta-grid .meta-item.time-remaining .value {
        color: #E60012;
    }

    .mobile-end-time {
        display: block;
        text-align: center;
        font-size: 13px;
        color: #777;
        margin-top: 10px;
    }

    .mobile-section {
        background: #fff;
        padding: 15px;
        margin-bottom: 10px;
    }

    .mobile-section-title {
        font-size: 16px;
        font-weight: 600;
        margin-bottom: 15px;
        border-bottom: 1px solid #eee;
        padding-bottom: 10px;
    }

    .seller-section .seller-info-link {
        text-decoration: none;
        color: inherit;
    }

    .seller-section .seller-info {
        display: flex;
        align-items: center;
        gap: 15px;
    }

    .seller-section .seller-info .avatar {
        width: 45px;
        height: 45px;
        border-radius: 50%;
        object-fit: cover;
    }

    .seller-section .seller-info .details {
        flex-grow: 1;
    }

    .seller-section .seller-info .name {
        font-weight: 600;
        font-size: 15px;
    }

    .seller-section .seller-info .rating-summary {
        font-size: 13px;
        color: #555;
    }

    .seller-section .seller-info .fa-chevron-right {
        color: #ccc;
    }

    .seller-rating-table {
        width: 100%;
        border-collapse: collapse;
        margin-top: 15px;
        background: #f9f9f9;
        border-radius: 8px;
        overflow: hidden;
        text-align: center;
        border: 1px solid #eee;
    }

    .seller-rating-table th {
        padding: 8px;
        font-size: 12px;
        font-weight: 400;
        color: #555;
        border-left: 1px solid #eee;
    }

    .seller-rating-table th:first-child {
        border-left: none;
    }

    .seller-rating-table th strong {
        display: block;
        font-size: 14px;
        font-weight: 600;
        color: #222;
        margin-top: 2px;
    }

    .description-content img {
        max-width: 100%;
        height: auto;
    }

    #mobile-sticky-bid-bar {
        position: fixed;
        /* FIX LỖI FOOTER CHE: Nâng 55px (chiều cao menu footer) */
        bottom: 55px;
        left: 0;
        width: 100%;
        background: #fff;
        padding: 10px 0px;
        box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1);
        z-index: 100;
        border-top: 1px solid #eee;
    }

    .sticky-bid-button {
        width: 100%;
        background-color: #E60012;
        color: #fff;
        border: none;
        padding: 12px;
        font-size: 16px;
        font-weight: 600;
        border-radius: 0px;
        cursor: pointer;
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 8px;
    }

    /* Pop-up vẫn giữ z-index 1000 để che cả footer của bạn */
    .bid-popup-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.6);
        z-index: 1000;
        display: flex;
        align-items: flex-end;
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .bid-popup-content {
        background: #fff;
        width: 100%;
        padding: 20px;
        border-top-left-radius: 12px;
        border-top-right-radius: 12px;
        position: relative;
        transform: translateY(100%);
        transition: transform 0.3s ease-out;
    }

    .bid-popup-overlay.active {
        opacity: 1;
    }

    .bid-popup-overlay.active .bid-popup-content {
        transform: translateY(0);
    }

    .bid-popup-content .close-btn {
        position: absolute;
        top: 10px;
        right: 15px;
        font-size: 24px;
        color: #aaa;
        background: none;
        border: none;
        cursor: pointer;
        line-height: 1;
    }

    /* CSS cho .bidding-actions bên trong popup (lấy từ file gốc) */
    .bidding-actions {
        max-width: 450px;
        margin: 25px auto;
        background: #ffffff;
        border: 1px solid #e5e5e5;
        border-radius: 12px;
        padding: 20px;
        box-shadow: 0 3px 8px rgba(0, 0, 0, 0.05);
        font-family: 'Inter', sans-serif;
    }

    .bid-title {
        text-align: center;
        font-weight: 600;
        font-size: 18px;
        color: #222;
        margin-bottom: 15px;
    }

    .bid-input-wrapper {
        display: flex;
        flex-direction: column;
        margin-bottom: 15px;
    }

    .bid-input-wrapper label {
        font-weight: 500;
        color: #555;
        margin-bottom: 6px;
    }

    #bid-amount-input {
        padding: 10px 12px;
        font-size: 16px;
        border-radius: 8px;
        border: 1px solid #ddd;
        transition: border-color 0.2s;
    }

    #bid-amount-input:focus {
        outline: none;
        border-color: #007bff;
        box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.1);
    }

    .quick-bid-buttons {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
        margin-bottom: 20px;
    }

    .quick-bid-btn {
        background: #f9fafb;
        border: 1px solid #e0e0e0;
        color: #007bff;
        padding: 10px;
        border-radius: 8px;
        cursor: pointer;
        font-weight: 500;
        transition: all 0.25s ease;
    }

    .quick-bid-btn:hover {
        background: #007bff;
        color: #fff;
        transform: translateY(-2px);
    }

    .bid-submit-btn {
        width: 100%;
        background: linear-gradient(135deg, #007bff, #0056d2);
        color: #fff;
        border: none;
        padding: 12px;
        border-radius: 10px;
        font-weight: 600;
        font-size: 16px;
        cursor: pointer;
        transition: all 0.25s ease;
    }

    .bid-submit-btn:hover {
        background: linear-gradient(135deg, #0056d2, #0041a3);
        transform: translateY(-2px);
    }

    #bidding-message {
        margin-top: 10px;
        font-size: 14px;
        color: #333;
        text-align: center;
    }

    .seller-info .rating-summary {
        font-size: 14px;
        color: var(--light-text-color);
    }

    .seller-info .reputation-badge {
        display: inline-block;
        padding: 4px 10px;
        border-radius: 20px;
        font-size: 12px;
        font-weight: 500;
        margin-top: 8px;
    }

    .reputation-high {
        background: #eafaf1;
        color: #1e8449;
    }

    .reputation-good {
        background: #f0fff4;
        color: #2ecc71;
    }

    .reputation-average {
        background: #fff8e1;
        color: #f39c12;
    }

    .reputation-low {
        background: #fdecea;
        color: #e74c3c;
    }

    /* màu cho độ uy tín */

    .shop-reputation {
        display: flex;
        align-items: center;
        gap: 6px;
        font-size: 14px;
    }

    .shop-reputation i {
        font-size: 16px;
    }

    /* Cao */
    .reputation-high i {
        color: #0b9c31;
        /* xanh uy tín */
    }

    /* Khá */
    .reputation-good i {
        color: #2b7cff;
        /* xanh dương check */
    }

    /* Trung Bình */
    .reputation-average i {
        color: #b0a800;
        /* vàng nhẹ */
    }

    /* Thấp */
    .reputation-low i {
        color: #e63946;
        /* đỏ cảnh báo */
    }

    /* css săn phút Chót */

    /* CSS CHO STICKY BAR CHIA ĐÔI */
    #mobile-sticky-bid-bar {
        position: fixed;
        bottom: 55;
        /* Đã bao gồm padding bottom của body nếu cần */
        left: 0;
        width: 100%;
        background: #fff;
        padding-bottom: 10px;
        /* Padding xung quanh */
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
        z-index: 100;
        border-top: 1px solid #eee;

        /* QUAN TRỌNG: Để tránh footer che mất (nếu bạn có footer menu) */
        /* bottom: 55px; <--- Nếu bạn dùng menu dưới thì uncomment dòng này */
    }

    /* Container giữ nguyên */
    .sticky-buttons-container {
        display: flex;
        gap: 10px;
    }

    .sticky-bid-button {
        border: none;
        padding: 12px;
        font-size: 15px;
        font-weight: 700;
        /* Đậm hơn chút */
        border-radius: 0px;
        cursor: pointer;
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 6px;
        white-space: nowrap;
    }

    /* 1. Nút Săn Phút Chót (Bên Trái) */
    /* Style nhẹ nhàng hơn để không tranh chấp với nút đỏ */
    .btn-sniper {
        flex: 1;
        /* Chiếm 1 phần */
        background: #e3f2fd;
        /* Màu xanh rất nhạt */
        color: #007bff;
        /* Chữ xanh đậm */
        border: 1px solid #b3e5fc;
    }

    /* 2. Nút Đấu Ngay (Bên Phải - Primary) */
    /* Nổi bật nhất */
    .btn-bid-now {
        flex: 1.3;
        /* Mẹo: Cho nút này to hơn nút kia một chút (chiếm 1.3 phần) */
        background: linear-gradient(135deg, #E60012, #ff2f40);
        /* Gradient đỏ */
        color: #fff;
        box-shadow: 0 4px 10px rgba(230, 0, 18, 0.3);
        /* Đổ bóng nhẹ */
    }

    /* Màu nút Sniper */
    .btn-sniper {
        background: #007bff;
    }

    /* Fix modal đè lên nhau */
    .bid-popup-overlay {
        z-index: 1001;
        /* Cao hơn sticky bar */
    }
	
	  
                    .share-favorite-container {
                        display: flex;
                        justify-content: space-between;
                        align-items: center;
                        margin: 15px 0;
                        gap: 15px;
                        flex-wrap: wrap;
                    }

                    .social-share {
                        display: flex;
                        gap: 10px;
                    }

                    .share-btn {
                        width: 36px;
                        height: 36px;
                        display: flex;
                        justify-content: center;
                        align-items: center;
                        background: #f1f1f1;
                        border-radius: 50%;
                        color: #555;
                        transition: all 0.3s ease;
                        text-decoration: none;
                    }

                    .share-btn.fb:hover {
                        background: #1877f2;
                        color: #fff;
                    }

                    .share-btn.zalo:hover {
                        background: #0088ff;
                        color: #fff;
                    }

                    .favorite-actions {
                        display: flex;
                        align-items: center;
                        gap: 12px;
                    }

                    .like-btn {
                        display: flex;
                        align-items: center;
                    }

                    .follow-text {
                        font-size: 14px;
                        font-weight: 500;
                        color: #333;
                    }
                
                    .seller-name-row {
                        display: flex;
                        align-items: center;
                        gap: 10px;
                    }

                    .seller-name-row .seller-name {
                        font-size: 15px;
                        font-weight: 600;
                        color: #222;
                        text-decoration: none;
                    }

                    .seller-name-row .seller-name:hover {
                        text-decoration: underline;
                    }

                    .seller-name-row .view-shop {
                        font-size: 12px;
                        color: #ee4d2d;
                        /* màu cam kiểu Shopee */
                        border: 1px solid #ee4d2d;
                        padding: 2px 8px;
                        border-radius: 12px;
                        text-decoration: none;
                        white-space: nowrap;
                    }

                    .seller-name-row .view-shop:hover {
                        background: #ee4d2d;
                        color: #fff;
                    }

                    /* --- CSS CHO POPUP --- */

                    /* Lớp nền mờ bao phủ toàn màn hình */
                    .my-popup-overlay {
                        display: none;
                        /* Ẩn đi mặc định */
                        position: fixed;
                        /* Hiển thị đè lên mọi thứ */
                        top: 0;
                        left: 0;
                        width: 100%;
                        height: 100%;
                        background: rgba(0, 0, 0, 0.7);
                        /* Nền mờ */
                        z-index: 999;

                        /* Dùng Flexbox để căn giữa */
                        justify-content: center;
                        align-items: center;
                    }

                    /* Khung nội dung của popup */
                    .my-popup-content {
                        background: #fff;
                        padding: 30px;
                        border-radius: 8px;
                        width: 90%;
                        max-width: 500px;
                        /* Giới hạn độ rộng */
                        position: relative;
                        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
                    }

                    /* Nút đóng (dấu X) */
                    .my-popup-close {
                        position: absolute;
                        top: 10px;
                        right: 15px;
                        font-size: 28px;
                        font-weight: bold;
                        color: #888;
                        cursor: pointer;
                        line-height: 1;
                    }

                    .my-popup-close:hover {
                        color: #000;
                    }

                    /* Chi tiết ngân hàng */
                    .bank-details p {
                        font-size: 16px;
                        border-bottom: 1px dashed #eee;
                        padding-bottom: 10px;
                    }

                    .bank-details p strong {
                        display: inline-block;
                        min-width: 120px;
                    }

                    /* Nút Copy */
                    .copy-btn {
                        background: #007bff;
                        color: white;
                        border: none;
                        padding: 5px 10px;
                        border-radius: 4px;
                        cursor: pointer;
                        font-size: 12px;
                        margin-left: 10px;
                    }

                    .copy-btn:hover {
                        background: #0056b3;
                    }
               
                    /* --- CSS CHO NÚT XEM THÊM MOBILE --- */

                    /* Khung chứa nội dung */
                    #mobile-product-content {
                        position: relative;
                        overflow: hidden;
                        transition: all 0.3s ease;
                        /* Hiệu ứng mượt */
                    }

                    /* Trạng thái thu gọn: Chiều cao tối đa 500px (đủ cho mobile) */
                    .mobile-content-collapsed {
                        max-height: 200px;
                    }

                    /* Lớp phủ mờ bên dưới (Shadow/Fade) */
                    .mobile-content-collapsed::after {
                        content: "";
                        position: absolute;
                        bottom: 0;
                        left: 0;
                        width: 100%;
                        height: 120px;
                        /* Độ cao vùng mờ */
                        background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, 1));
                        pointer-events: none;
                    }

                    /* Trạng thái mở rộng: Hiện full */
                    .mobile-content-expanded {
                        max-height: none;
                    }

                    /* Vùng chứa nút bấm */
                    .mobile-show-more-wrapper {
                        text-align: center;
                        margin-top: 15px;
                        padding-bottom: 10px;
                    }

                    /* Style nút bấm */
                    #mobile-toggle-btn {
                        background: #fff;
                        border: 1px solid #ddd;
                        color: #007bff;
                        padding: 8px 20px;
                        border-radius: 20px;
                        /* Bo tròn kiểu nút mobile */
                        font-size: 14px;
                        font-weight: 600;
                        cursor: pointer;
                        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
                        display: inline-flex;
                        align-items: center;
                        gap: 5px;
                    }
                
/* =============================================================================
   HIỆU ỨNG OUTBID MỚI (GLOW & POP)
========================================================================== */
/* 1. Hiệu ứng viền sáng cảnh báo cho khung Modal */
@keyframes outbidGlow {
    0% { box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2); border: 1px solid transparent; }
    50% { box-shadow: 0 0 25px 5px rgba(230, 0, 18, 0.35); border: 1px solid #E60012; }
    100% { box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2); border: 1px solid transparent; }
}

.outbid-glow-anim {
    animation: outbidGlow 1s ease-out;
}

/* 2. Hiệu ứng giật nhẹ text giá gợi ý để thu hút ánh nhìn */
@keyframes pricePop {
    0% { transform: scale(1); color: inherit; }
    50% { transform: scale(1.15); color: #E60012; }
    100% { transform: scale(1); color: inherit; }
}

.price-pop-anim {
    display: inline-block; /* Cần block hoặc inline-block để transform hoạt động */
    animation: pricePop 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* =============================================================================
   HIỆU ỨNG CHIẾN THẮNG / ĐANG CAO NHẤT (GLOW & PULSE)
========================================================================== */
/* 1. Hào quang xanh êm ái cho viền Popup */
@keyframes winningGlow {
    0% { box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2); border: 1px solid transparent; }
    50% { box-shadow: 0 0 30px 8px rgba(40, 167, 69, 0.3); border: 1px solid #28a745; }
    100% { box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2); border: 1px solid transparent; }
}

.winning-glow-anim {
    animation: winningGlow 1.5s ease-in-out; /* Dài hơn và êm hơn outbid */
}

/* 2. Nhịp đập tự hào cho Nút bấm và Text thông báo */
@keyframes successPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.success-pulse-anim {
    display: block; 
    animation: successPulse 0.8s ease-in-out;
}