/* ============================================================================
   SPURA HUB v3 - Media Preview Components
   ============================================================================ */

.modal-media-preview {
    text-align: center;
}

.modal-media-preview img {
    max-width: 100%;
    max-height: min(60vh, 600px);
    border-radius: var(--radius-md);
}

.modal-media-meta {
    display: grid;
    gap: 0.375rem;
    margin-top: 1rem;
}

.modal-media-meta p {
    margin: 0;
}

.showroom-product-image--placeholder,
.showroom-main-image--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.product-detail-header {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.product-detail-header__image {
    width: 120px;
    height: 120px;
    border-radius: var(--radius-md);
    border: 2px solid var(--gray-200);
    object-fit: cover;
}

.product-detail-header__info {
    flex: 1;
}

.product-detail-header__sku {
    font-family: monospace;
    font-size: 0.8rem;
    color: var(--gray-500);
}

.product-detail-header__name {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0.25rem 0;
}

@media (max-width: 768px) {
    .product-detail-header {
        flex-direction: column;
    }
}

.wa-convo-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.85rem 1.25rem;
    border-bottom: 1px solid var(--glass-slate-12);
    text-decoration: none;
    color: inherit;
    transition: background 0.12s;
}

.wa-convo-item:hover {
    background: var(--glass-slate-06);
}

.wa-convo-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--whatsapp-green), var(--brand-600));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--bg-surface);
    flex-shrink: 0;
}

.wa-bubble {
    max-width: 72%;
    padding: 0.65rem 0.9rem;
    box-shadow: 0 1px 2px var(--glass-ink-06);
}

.wa-bubble--out {
    border-radius: var(--radius-md) 12px 3px 12px;
    background: var(--success-50);
    color: var(--ink-900);
}

.wa-bubble--in {
    border-radius: var(--radius-md) 12px 12px 3px;
    background: var(--bg-surface);
    border: 1px solid var(--glass-slate-10);
    color: var(--ink-800);
}

.ctr-code-preview {
    background: var(--bg-secondary);
    padding: 1rem;
    border-radius: var(--radius-sm);
    overflow-x: auto;
}

.modal-preview-image {
    display: block;
    max-width: 100%;
    max-height: min(70vh, 720px);
    width: auto;
    height: auto;
    margin: 0 auto;
    object-fit: contain;
}

/* Table/list thumbnails without explicit dimensions must not blow out layout */
[class$="-thumb-cell"] img[class$="-thumb"] {
    box-sizing: border-box;
}
