.catalog-product-with-image {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.catalog-product-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.catalog-product-copy > strong,
.catalog-product-copy > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.catalog-product-thumb {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  padding: 0;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--border, #d8e1ee) 84%, #6c7cff 16%);
  border-radius: 9px;
  background: color-mix(in srgb, var(--panel, #fff) 86%, #eef3ff 14%);
  color: var(--muted, #74839b);
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(44, 61, 94, .08);
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.catalog-product-thumb:hover,
.catalog-product-thumb:focus-visible {
  border-color: var(--primary, #5262dc);
  box-shadow: 0 6px 16px rgba(72, 88, 190, .18);
  transform: translateY(-1px);
  outline: none;
}

.catalog-product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
}

.catalog-product-thumb.is-empty span {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border: 1px dashed currentColor;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 750;
}

.product-image-preview-body {
  gap: 14px;
}

.product-image-preview-stage {
  min-height: min(58vh, 540px);
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--border, #d8e1ee);
  border-radius: 12px;
  background:
    linear-gradient(45deg, rgba(96, 110, 146, .06) 25%, transparent 25%) 0 0 / 20px 20px,
    linear-gradient(-45deg, rgba(96, 110, 146, .06) 25%, transparent 25%) 0 10px / 20px 20px,
    var(--panel, #fff);
}

.product-image-preview-stage img {
  display: block;
  width: 100%;
  max-height: min(68vh, 680px);
  object-fit: contain;
}

.product-image-empty-state,
.product-image-preview-meta {
  display: grid;
  gap: 5px;
  text-align: center;
  color: var(--muted, #74839b);
}

.product-image-empty-state b,
.product-image-preview-meta strong {
  color: var(--ink, #17233b);
  font-size: 15px;
}

.product-image-form-button {
  width: 100%;
  min-height: 42px;
}

@media (max-width: 1100px) {
  .catalog-product-with-image {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 8px;
  }
  .catalog-product-thumb {
    width: 38px;
    height: 38px;
  }
}
