/* Patch: override lazy-load opacity since we load images directly */
.fade_box,
.fade_box img,
.touch_list .bg,
.product_list .item .static,
.product_list .item .gif,
.social_list img,
.footer_logo img,
.to_top img,
.launch_box img,
.poster_swiper img,
.video_list img {
    opacity: 1 !important;
}

/* Product card: show static by default, gif on hover */
.product_list .item .gif {
    opacity: 0 !important;
}
.product_list .item:hover .gif {
    opacity: 1 !important;
}
.product_list .item:hover .static {
    opacity: 0 !important;
}

/* Video carousel: all items visible, positioned by item-N classes from original CSS */
#product-carousel li {
    display: block !important;
}
#product-carousel li::before {
    transition: all 500ms !important;
}

/* Banner video section - keep original fixed positioning */

/* Fix warning bar visibility */
.warning.show {
    transform: translateY(0) !important;
}

/* Fix touch card images and entrance animation */
.touch_list .item .bg {
    opacity: 1 !important;
    visibility: visible !important;
}
.touch_list .item,
.touch_list .item:hover {
    opacity: 1 !important;
    transform: none !important;
    overflow: hidden !important;
    border-radius: 0 !important;
}
.touch_list {
    opacity: 1 !important;
}

/* Fix product card entrance - items hidden by GSAP */
.product_list .item {
    opacity: 1 !important;
    transform: none !important;
}

/* Ensure poster text is visible */
.poster_panel .text h3,
.poster_panel .text p,
.poster_panel .text span {
    opacity: 1 !important;
    left: 0 !important;
}

/* Fix video_con visibility */
.video_con {
    opacity: 1 !important;
    top: auto !important;
}

/* Fix video_list visibility */
.video_list {
    opacity: 1 !important;
    transform: none !important;
}

/* Fix poster swipers initial state */
.poster_first,
.poster_second,
.poster_third {
    transform: none !important;
}

/* Product panel title: force final state (no scale-up watermark) */
.product_panel .title h2 {
    transform: none !important;
    opacity: 1 !important;
}
.product_panel .title p {
    opacity: 1 !important;
    transform: none !important;
}

/* ========== Fake Chaport Chat Widget ========== */
.chaport-widget {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
.chaport-launcher {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
    transition: transform 0.2s;
}
.chaport-launcher:hover {
    transform: scale(1.08);
}
.chaport-window {
    display: none;
    position: absolute;
    bottom: 72px;
    right: 0;
    width: 360px;
    height: 460px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.2);
    overflow: hidden;
    flex-direction: column;
}
.chaport-window.open {
    display: flex;
}
.chaport-header {
    background: #1a1a1a;
    color: #fff;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.chaport-header-info {
    display: flex;
    align-items: center;
    gap: 12px;
}
.chaport-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4CAF50, #2E7D32);
}
.chaport-name {
    font-size: 14px;
    font-weight: 600;
}
.chaport-status {
    font-size: 11px;
    opacity: 0.6;
    margin-top: 2px;
}
.chaport-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
    opacity: 0.7;
}
.chaport-close:hover { opacity: 1; }
.chaport-body {
    flex: 1;
    padding: 24px 20px;
    background: #f7f7f7;
    overflow-y: auto;
}
.chaport-welcome p {
    background: #fff;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 14px;
    color: #333;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    max-width: 85%;
}
.chaport-input {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border-top: 1px solid #eee;
    gap: 8px;
    background: #fff;
}
.chaport-msg-input {
    flex: 1;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    padding: 10px 16px;
    font-size: 14px;
    outline: none;
}
.chaport-msg-input:focus { border-color: #999; }
.chaport-send {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #1a1a1a;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    flex-shrink: 0;
}

/* ========== Fake Google Translate Dropdown ========== */
.language {
    position: relative;
}
.google_translate_dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    width: 200px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    z-index: 1001;
    overflow: hidden;
    margin-top: 8px;
}
.language.open .google_translate_dropdown {
    display: block;
}
.gt_header {
    padding: 12px 16px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    font-weight: 600;
    color: #333;
}
.gt_powered {
    font-size: 10px;
    color: #999;
    font-weight: 400;
}
.gt_langs {
    list-style: none;
    max-height: 260px;
    overflow-y: auto;
    padding: 4px 0;
    margin: 0;
}
.gt_langs li {
    padding: 8px 16px;
    font-size: 13px;
    color: #555;
    cursor: pointer;
    transition: background 0.15s;
}
.gt_langs li:hover {
    background: #f5f5f5;
}
.gt_langs li.gt_active {
    color: #1a73e8;
    font-weight: 600;
    background: #e8f0fe;
}

/* ========== Fake Search Modal ========== */
.search_modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10001;
}
.search_modal.show {
    display: block;
}
.search_modal .search_header {
    position: relative;
    z-index: 2;
    background: #fff;
    padding: 20px 40px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}
.search_input_wrap {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f5f5f5;
    border-radius: 24px;
    padding: 12px 20px;
}
.search_icon_svg {
    flex-shrink: 0;
}
.search_input {
    flex: 1;
    border: none;
    background: none;
    font-size: 16px;
    outline: none;
    color: #333;
}
.search_input::placeholder {
    color: #999;
}
.search_close_btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    display: flex;
    opacity: 0.5;
}
.search_close_btn:hover { opacity: 1; }
.search_results {
    position: relative;
    z-index: 2;
    max-width: 600px;
    margin: 0 auto;
    background: #fff;
    padding: 20px;
    min-height: 100px;
}
.search_mask_overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: -1;
}

/* ========== Mobile adjustments for fake widgets ========== */
@media (max-width: 768px) {
    .chaport-window {
        width: calc(100vw - 32px);
        right: -8px;
        height: 400px;
    }
    .chaport-launcher {
        width: 50px;
        height: 50px;
    }
    .chaport-widget {
        bottom: 16px;
        right: 16px;
    }
    .google_translate_dropdown {
        position: fixed;
        top: auto;
        bottom: 0;
        right: 0;
        width: 100%;
        border-radius: 16px 16px 0 0;
        max-height: 50vh;
    }
    .search_modal .search_header {
        padding: 16px 20px;
    }
}
