/*
 * Artwork Mockups - Storefront enhancements (customer-facing).
 * Scoped to selectors the plugin adds — never touches core ecommerce styles.
 */

/* "See it on the wall" divider in the thumbnail strip */
.am-thumb-divider {
    flex-basis: 100%;
    text-align: center;
    margin: 12px 0 6px;
    position: relative;
    color: #6b6b6b;
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.am-thumb-divider::before,
.am-thumb-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: calc(50% - 90px);
    height: 1px;
    background: rgba(0, 0, 0, 0.08);
}

.am-thumb-divider::before { left: 0; }
.am-thumb-divider::after { right: 0; }

.am-thumb-divider span {
    background: #ffffff;
    padding: 0 12px;
    position: relative;
}

/* Tiny home glyph on mockup thumbnails */
.ecommerce-product-thumbnail[data-source-type="mockup_generated"] {
    position: relative;
}

.ecommerce-product-thumbnail[data-source-type="mockup_generated"] .am-mockup-glyph {
    position: absolute;
    bottom: 4px;
    right: 4px;
    width: 18px;
    height: 18px;
    background: rgba(255, 255, 255, 0.92);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1a1a1a;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
    pointer-events: none;
    transition: transform 0.15s ease;
}

.ecommerce-product-thumbnail[data-source-type="mockup_generated"]:hover .am-mockup-glyph {
    transform: scale(1.08);
}

/* One-time first-hover hint tooltip */
.am-mockup-hint {
    position: absolute;
    background: #1a1a1a;
    color: #ffffff;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.82rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
    z-index: 1050;
    pointer-events: none;
    opacity: 0;
    animation: am-hint-in 0.25s ease forwards;
}

.am-mockup-hint::before {
    content: '';
    position: absolute;
    top: -4px;
    left: 16px;
    border: 4px solid transparent;
    border-top: none;
    border-bottom-color: #1a1a1a;
}

.am-mockup-hint.is-fading {
    animation: am-hint-out 0.5s ease forwards;
}

@keyframes am-hint-in {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes am-hint-out {
    from { opacity: 1; }
    to   { opacity: 0; transform: translateY(-2px); }
}

@media (prefers-reduced-motion: reduce) {
    .am-mockup-hint {
        animation: none;
        opacity: 1;
    }
    .ecommerce-product-thumbnail[data-source-type="mockup_generated"]:hover .am-mockup-glyph {
        transform: none;
    }
}
