/* WRAPPER */
.ades-hotspot-wrapper {
    position: relative;
    width: 100%;
    display: inline-block;
}

.ades-hotspot-scene {
    display: block;
    width: 100%;
    height: auto;
}

.ades-hotspots {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* DOT - Ô vuông màu trắng */
.ades-dot {
    position: absolute;
    width: 24px;
    height: 24px;
    background: #ffffff;
    border: 2px solid #333333;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translate(-50%, -50%);
    cursor: pointer;
    pointer-events: auto;
    z-index: 10;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.ades-dot:hover {
    transform: translate(-50%, -50%) scale(1.1);
    background: #f5f5f5;
}

/* Dấu + bên trong */
.ades-dot::before {
    content: "+";
    font-size: 18px;
    font-weight: bold;
    color: #333333;
    line-height: 1;
}

/* Ẩn pulse nếu có */
.ades-dot::after {
    display: none;
}

/* PRODUCT PREVIEW */
.ades-preview {
    position: absolute;
    left: 32px;
    top: 50%;
    transform: translateY(-50%);
    width: 220px;
    background: #ffffff;
    border-radius: 12px;
    padding: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    z-index: 1000;
    pointer-events: auto;
    border: 1px solid #e0e0e0;
}

/* Hover trên desktop - hiện preview */
.ades-dot:hover .ades-preview {
    opacity: 1;
    visibility: visible;
}

/* Desktop: đảm bảo preview không bị đè */
.ades-dot {
    z-index: 10;
}

.ades-dot:hover {
    z-index: 1001;
}

/* Preview image */
.ades-preview img {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 10px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

/* Title */
.ades-title {
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 10px;
    color: #333333;
    line-height: 1.4;
}

/* Button */
.ades-btn {
    display: block;
    text-align: center;
    padding: 8px 12px;
    border: 1px solid #333333;
    border-radius: 6px;
    text-decoration: none;
    color: #333333;
    font-size: 13px;
    font-weight: 500;
    background: #ffffff;
    transition: all 0.25s ease;
}

.ades-btn:hover {
    background: #333333;
    color: #ffffff;
    border-color: #333333;
}

/* ============================================= */
/* MOBILE: Dot siêu nhỏ */
/* ============================================= */

@media (max-width: 768px) {
    /* Dot cực kỳ nhỏ - 8px */
    .ades-dot {
        width: 12px !important;
        height: 12px !important;
        border-width: 1px !important;
        border-radius: 2px !important;
    }
    
    /* Dấu + siêu nhỏ */
    .ades-dot::before {
        content: "+" !important;
        font-size: 8px !important;
        font-weight: bold !important;
        color: #333333 !important;
    }
    
    /* Vùng chạm rộng hơn để dễ bấm (ẩn, không làm to dot) */
    .ades-dot::after {
        content: "" !important;
        position: absolute !important;
        top: 50% !important;
        left: 50% !important;
        width: 30px !important;
        height: 30px !important;
        transform: translate(-50%, -50%) !important;
        display: block !important;
        background: transparent !important;
        pointer-events: auto !important;
        z-index: -1 !important;
    }
    
    /* Dot đang active */
    .ades-dot.active {
        z-index: 10001 !important;
    }
    
    /* Preview nhỏ gọn */
    .ades-preview {
        position: absolute !important;
        left: 20px !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        width: 140px !important;
        padding: 6px !important;
        background: #ffffff !important;
        border-radius: 8px !important;
        box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
        opacity: 0 !important;
        visibility: hidden !important;
        z-index: 10002 !important;
    }
    
    .ades-dot.active .ades-preview {
        opacity: 1 !important;
        visibility: visible !important;
    }
    
    .ades-preview img {
        margin-bottom: 4px !important;
        border-radius: 4px !important;
        max-height: 80px !important;
        object-fit: cover !important;
    }
    
    .ades-title {
        font-size: 10px !important;
        margin-bottom: 4px !important;
        font-weight: 600 !important;
    }
    
    .ades-btn {
        padding: 3px 6px !important;
        font-size: 9px !important;
        border-radius: 4px !important;
    }
}