.hp-container {
    position: relative;
    width: 100%;
    overflow: visible;
}

.hp-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hp-hotspot {
    position: absolute;
    left: var(--hp-x, 50%);
    top: var(--hp-y, 50%);
    transform: translate(-50%, -50%);
    z-index: 10;
}

@media (max-width: 1024px) {
    .hp-hotspot {
        left: var(--hp-x-tablet, var(--hp-x, 50%));
        top: var(--hp-y-tablet, var(--hp-y, 50%));
    }
}

@media (max-width: 767px) {
    .hp-hotspot {
        left: var(--hp-x-mobile, var(--hp-x-tablet, var(--hp-x, 50%)));
        top: var(--hp-y-mobile, var(--hp-y-tablet, var(--hp-y, 50%)));
    }
}

.hp-hotspot-dot {
    position: relative;
    width: 20px;
    height: 20px;
    background: #fff;
    border: 2px solid #333;
    border-radius: 50%;
    cursor: pointer;
    z-index: 2;
}

/* Ripple Animation */
.hp-hotspot-ripple {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    border: 2px solid rgba(255,255,255,0.6);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: ripple 2s ease-out infinite;
    pointer-events: none;
}

.hp-hotspot-ripple.hp-ripple-delay {
    animation-delay: 0.5s;
}

@keyframes ripple {
    0% {
        width: 100%;
        height: 100%;
        opacity: 1;
    }
    100% {
        width: 300%;
        height: 300%;
        opacity: 0;
    }
}

/* Popup */
.hp-popup {
    position: absolute;
    left: 50%;
    top: calc(100% + 15px);
    transform: translateX(-50%);
    width: 300px;
    background: #fff;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 100;
}

.hp-hotspot:hover .hp-popup,
.hp-hotspot.active .hp-popup {
    opacity: 1;
    visibility: visible;
}

.hp-popup::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid #fff;
}

.hp-popup-content {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
}

.hp-popup-image {
    flex-shrink: 0;
    width: 80px;
    background: #f5f5f5;
}

.hp-popup-image img {
    width: 100%;
    height: auto;
    display: block;
}

.hp-popup-info {
    flex: 1;
    min-width: 0;
}

.hp-popup-title {
    margin: 0 0 5px;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    line-height: 1.3;
}

.hp-popup-price {
    margin-bottom: 8px;
    font-size: 14px;
    color: #666;
}

.hp-popup-price del {
    opacity: 0.6;
    margin-right: 5px;
}

.hp-popup-price ins {
    text-decoration: none;
}

.hp-popup-button {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #e67e22;
    text-decoration: none;
    transition: color 0.3s ease;
}

.hp-popup-button:hover {
    color: #d35400;
}

.hp-popup-button i,
.hp-popup-button svg {
    font-size: 12px;
    width: 12px;
    height: 12px;
}

/* Popup Position Adjustments */
.hp-hotspot[data-position="top"] .hp-popup {
    top: auto;
    bottom: calc(100% + 15px);
}

.hp-hotspot[data-position="top"] .hp-popup::before {
    top: auto;
    bottom: -8px;
    border-bottom: none;
    border-top: 8px solid #fff;
}

/* Mobile Responsive */
@media (max-width: 767px) {
    .hp-container {
        height: auto !important;
        min-height: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .hp-bg-image {
        position: static;
        width: 100% !important;
        height: auto !important;
        object-fit: contain;
        display: block;
        max-width: 100%;
    }
    
    .hp-popup {
        width: 250px;
        left: 50%;
        transform: translateX(-50%);
    }
    
    .hp-hotspot {
        transform: translate(-50%, -50%);
    }
    
    .hp-popup-content {
        padding: 10px;
        gap: 10px;
    }
    
    .hp-popup-image {
        width: 60px;
    }
    
    .hp-popup-title {
        font-size: 13px;
    }
}
