.product-window-shared-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(220px, 0.65fr);
  min-height: 0;
  gap: 16px;
}

.product-window-shared-detail-previews,
.product-window-shared-detail-panel {
  min-width: 0;
  min-height: 0;
  height: 100%;
}

.product-window-shared-detail-panel {
  display: grid;
}

.product-window-shared-detail-panel[hidden] {
  display: none;
}

.product-window-shared-detail-preview {
  position: relative;
  display: grid;
  justify-self: center;
  width: auto;
  max-width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  aspect-ratio: 896 / 1148;
  place-items: center;
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 24px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.product-window-shared-detail-preview:hover {
  background: transparent;
}

.product-window-shared-detail-preview:focus-visible,
.product-window-shared-detail-tab:focus-visible {
  outline: 2px solid var(--bar-focus-outline);
  outline-offset: -3px;
}

.product-window-shared-detail-image {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 14px 24px rgba(0, 0, 0, 0.16));
}

.product-window-shared-detail-open {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 7px 10px;
  border: 1px solid var(--list-row-border);
  border-radius: 999px;
  background: color-mix(in srgb, var(--site-shot-bg) 88%, transparent);
  color: var(--ink);
  font-size: 11px;
  font-weight: 740;
  line-height: 1;
  backdrop-filter: blur(10px);
}

.product-window-shared-detail-tabs {
  display: grid;
  grid-template-rows: repeat(3, minmax(0, 1fr));
  min-width: 0;
  min-height: 0;
  gap: 12px;
}

.product-window-shared-detail-tab {
  position: relative;
  display: grid;
  min-height: 0;
  align-content: center;
  gap: 6px;
  padding: 16px 18px;
  overflow: hidden;
  border: 1px solid var(--list-row-border);
  border-radius: 14px;
  background: var(--list-row-bg);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.product-window-shared-detail-tab:hover {
  border-color: var(--site-window-focused-border);
  background: var(--site-action-bg);
}

.product-window-shared-detail-tab.is-active {
  border-color: var(--site-window-focused-border);
  background: var(--site-action-bg);
  box-shadow: inset 3px 0 0 var(--ink);
}

.product-window-shared-detail-tab strong {
  font-size: 16px;
  font-weight: 760;
  line-height: 1.15;
}

.product-window-shared-detail-tab span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.3;
}
