/* AR Visualization Styles */
.product-card {
    position: relative;
    overflow: hidden;
}

.btn-ar-trigger {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 242, 255, 0.3);
    color: #00f2ff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 10;
}

.btn-ar-trigger:hover {
    transform: scale(1.1) rotate(15deg);
    background: #00f2ff;
    color: #000;
    box-shadow: 0 0 20px rgba(0, 242, 255, 0.5);
}

.btn-ar-trigger i {
    font-size: 1rem;
}

/* AR Modal Container */
.ar-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(2, 6, 23, 0.95);
    backdrop-filter: blur(20px);
    z-index: 10000;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.4s ease;
}

.ar-modal-close {
    position: absolute;
    top: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.5rem;
    transition: 0.3s;
}

.ar-modal-close:hover {
    background: #ef4444;
    border-color: #ef4444;
    transform: rotate(90deg);
}

model-viewer {
    width: 100%;
    height: 80vh;
    background-color: transparent;
    --poster-color: transparent;
    animation: modelEntrance 1s cubic-bezier(0.19, 1, 0.22, 1) forwards;
}

@keyframes modelEntrance {
    from { opacity: 0; transform: scale(0.8) translateY(30px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.ar-controls-hint {
    position: absolute;
    bottom: 50px;
    background: rgba(255,255,255,0.05);
    padding: 10px 25px;
    border-radius: 50px;
    color: #94a3b8;
    font-size: 0.85rem;
    pointer-events: none;
    border: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    gap: 10px;
    animation: fadeInUp 0.6s 0.5s both;
}

@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
