.product-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
    gap: 16px;
    margin: 24px 0;
}
.product-gallery img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 480px;
    object-fit: contain;
    border-radius: 12px;
}
.product-description {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    margin: 24px 0;
}
.lab-products {
    padding-top: 56px;
    padding-bottom: 56px;
}
.lab-products .template-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
    gap: 24px;
}
.product-image-drop {
    display: grid;
    gap: 8px;
    padding: 12px;
    border: 2px dashed rgba(127, 127, 127, 0.45);
    border-radius: 12px;
    transition: border-color 120ms ease, background-color 120ms ease;
}
.product-image-drop.is-dragover {
    border-color: currentColor;
    background-color: rgba(127, 127, 127, 0.12);
}
.product-admin-list {
    display: grid;
    gap: 6px;
    margin: 16px 0;
    padding: 0;
    list-style: none;
}
.product-admin-row {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) auto auto auto;
    align-items: center;
    gap: 12px;
    padding: 6px 12px 6px 6px;
    border: 1px solid rgba(127, 127, 127, 0.25);
    border-radius: 10px;
}
.product-admin-thumb {
    display: block;
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 6px;
    background: rgba(127, 127, 127, 0.15);
}
.product-admin-title {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.product-admin-price {
    white-space: nowrap;
}
.product-admin-listing {
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 0.8em;
    white-space: nowrap;
    background: rgba(127, 127, 127, 0.15);
}
.product-admin-listing-lab {
    background: rgba(46, 160, 67, 0.18);
}
.product-admin-actions {
    display: flex;
    gap: 12px;
    white-space: nowrap;
}
@media (max-width: 640px) {
    .product-admin-row {
        grid-template-columns: 48px minmax(0, 1fr) auto;
    }
    .product-admin-listing,
    .product-admin-actions {
        grid-column: 2 / -1;
    }
}
.product-drop-hint {
    margin: 0;
    font-size: 0.875em;
    opacity: 0.75;
}
