/* Product card hover → start 360° turntable video */
.pc360 {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #f8f9fa;
}

.pc360-thumb {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.35s ease, transform 0.5s ease;
}

.pc360-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
    background: #f8f9fa;
}

.pc360.is-playing .pc360-thumb {
    opacity: 0;
}

.pc360.is-playing .pc360-video {
    opacity: 1;
}

.pc360-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(7, 116, 65, 0.18);
    color: #077441;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
    pointer-events: none;
}

.pc360-badge::before {
    content: '';
    width: 10px;
    height: 10px;
    border: 1.5px solid currentColor;
    border-radius: 50%;
    border-top-color: transparent;
    animation: pc360Spin 1.1s linear infinite;
    opacity: 0.85;
}

@keyframes pc360Spin {
    to { transform: rotate(360deg); }
}

.product-card:hover .pc360-thumb,
.single-product-box:hover .pc360-thumb,
.product-image-wrapper:hover .pc360-thumb {
    transform: none;
}

/* /products listing: overlay covers the image and was blocking hover + dimming the video */
.product-image-container > .product-overlay,
.product-image-container .product-overlay {
    pointer-events: none;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.5) 0%, transparent 42%);
}

.product-image-container .quick-action-btn {
    pointer-events: auto;
}

.product-image-container .pc360 {
    position: relative;
    z-index: 1;
}

.product-image-container > .product-overlay {
    z-index: 2;
}

@media (hover: none), (pointer: coarse) {
    .pc360-video {
        display: none !important;
    }

    .pc360.is-playing .pc360-thumb {
        opacity: 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    .pc360-video,
    .pc360-badge::before {
        display: none !important;
    }

    .pc360.is-playing .pc360-thumb {
        opacity: 1;
    }
}
