/* tml-virtual-try-on styles */
.tml-vto-container {
    width: 100%;
    font-family: 'Outfit', sans-serif;
    color: #F0F0F0;
}

/* Setup State */
.tml-vto-setup {
    text-align: center;
    padding: 4rem 2rem;
    background: rgba(30,30,30,0.5);
    border: 1px solid rgba(255,255,255,0.1);
}

.tml-dropzone {
    border: 2px dashed rgba(255,255,255,0.2);
    padding: 4rem 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(0,0,0,0.2);
}

.tml-dropzone:hover, .tml-dropzone.drag-active {
    border-color: #CD7F32;
    background: rgba(205,127,50,0.1);
}

.tml-dropzone .tml-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #A0A0A0;
}

/* Stage State */
.tml-vto-stage {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

@media (min-width: 992px) {
    .tml-vto-stage {
        flex-direction: row;
    }
}

.tml-vto-toolbar {
    flex: 0 0 300px;
    background: #1E1E1E;
    padding: 2rem;
    border: 1px solid rgba(255,255,255,0.1);
    order: 2;
}

@media (min-width: 992px) {
    .tml-vto-toolbar {
        order: 1;
    }
}

.tml-vto-canvas-area {
    flex: 1;
    background: rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.1);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    order: 1;
}

@media (min-width: 992px) {
    .tml-vto-canvas-area {
        order: 2;
    }
}

.tml-room-img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    pointer-events: none;
    user-select: none;
    display: block;
}

/* Sticker Element */
.tml-sticker-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 400px;
    height: 400px;
    transform-origin: center center;
    z-index: 10;
    touch-action: none;
}

.tml-product-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    mix-blend-multiply: multiply;
    transition: opacity 0.3s;
    user-select: none;
    pointer-events: none;
}

.tml-sticker-container:hover .tml-product-img {
    opacity: 0.9;
}

/* Handles */
.tml-vto-handle {
    position: absolute;
    width: 24px;
    height: 24px;
    background-color: #CD7F32;
    border: 2px solid white;
    border-radius: 50%;
    cursor: move;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
    touch-action: none;
    transition: transform 0.2s;
}

.tml-vto-handle:hover {
    transform: scale(1.1);
}

.tml-vto-handle::after {
    content: '';
    width: 6px;
    height: 6px;
    background: white;
    border-radius: 50%;
}

.tml-vto-handle { 
    display: none !important; 
}

.tml-vto-actions .wp-element-button {
    box-sizing: border-box;
    width: 100% !important;
}

/* Reset buttons and typography helpers */
.font-serif { font-family: 'Cormorant Garamond', serif; }
.text-4xl { font-size: 2.25rem; }
.mb-6 { margin-bottom: 1.5rem; }
.tracking-widest { letter-spacing: 0.1em; }
.text-muted-foreground { color: #A0A0A0; }
