/* Shared rhythm for browsing cards and lightweight, accessible sheets. */
.nk-card { height: 100%; }
.nk-card .nk-card-media { border: 0; }
.nk-card .nk-card-media img { object-position: center; }
.nk-card .nk-card-body { flex: 1; gap: 6px; }
.nk-card h3 { min-block-size: 3.2em; }
.nk-card h3 a { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.nk-card .nk-card-size { min-height: 1.8em; font-weight: 400; }
.nk-card .nk-card-row { align-items: flex-start; margin-top: auto; min-height: 48px; }
.nk-card .nk-price { display: flex; flex-direction: column; gap: 2px; }
.nk-card .nk-swatches { padding-top: 6px; }
.favorite[aria-busy="true"] { opacity: .55; cursor: progress; }
.nk-feedback {
  position: fixed; z-index: 180; bottom: 24px; inset-inline: 16px; margin-inline: auto;
  display: flex; align-items: center; gap: 12px; width: fit-content; max-width: min(520px, calc(100% - 32px));
  padding: 8px 16px; border: 1px solid var(--line); border-radius: 16px;
  background: var(--surface); color: var(--ink); box-shadow: 0 8px 28px #241d121f;
}
.nk-feedback[hidden] { display: none; }
.nk-feedback p { min-width: 0; font-size: 14px; line-height: 1.8; }
.nk-feedback button { flex: none; min-height: 44px; padding: 0 8px; border: 0; background: none; color: var(--accent-dark); font: 600 14px var(--font); cursor: pointer; }
.nk-feedback-close { width: 44px; font-size: 21px !important; }
.nk-feedback :focus-visible, .nk-detail-sheet :focus-visible { outline: 2px solid var(--accent-dark); outline-offset: 3px; }
.nk-detail-sheet {
  width: min(600px, calc(100% - 32px)); max-width: 100%; max-height: min(86dvh, 800px);
  margin: auto; padding: 0; border: 0; border-radius: 24px; overflow: hidden;
  background: var(--surface); color: var(--ink); font-family: var(--font);
  box-shadow: 0 20px 80px #241d122e;
}
.nk-detail-sheet[open] { display: flex; flex-direction: column; }
.nk-detail-sheet::backdrop { background: #201b1766; }
.nk-detail-sheet-head { display: flex; flex: none; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 24px; border-bottom: 1px solid var(--line); }
.nk-detail-sheet-head h2 { margin: 0; font-size: 18px; }
.nk-detail-sheet-head .nk-icon-btn { flex: none; border: 0; border-radius: 50%; background: var(--soft); width: 44px; height: 44px; }
.nk-detail-sheet-body { overflow-y: auto; overscroll-behavior: contain; min-height: 0; padding: 24px; }
body:has(.nk-detail-sheet[open]) { overflow: hidden; }
@media (max-width: 800px) {
  .nk-card h3 { min-block-size: 3.6em; }
  .nk-card .nk-card-row { flex-direction: column; min-height: 72px; gap: 4px; }
  .nk-card .nk-price { min-height: 44px; }
  .nk-card .nk-swatches { padding-top: 0; }
  .nk-feedback { bottom: calc(var(--tabbar-height) + 12px); gap: 6px; padding: 6px 10px; }
  .nk-immersive .nk-feedback { bottom: calc(116px + var(--safe-bottom)); }
  .nk-detail-sheet { width: 100%; max-height: calc(92dvh - var(--safe-top)); margin: auto 0 0; border-radius: 24px 24px 0 0; }
  .nk-detail-sheet-head { padding: 14px 20px; }
  .nk-detail-sheet-body { padding: 20px 20px calc(24px + var(--safe-bottom)); }
}
