/* The catalog quick view shares the latest-drops product inspection structure. */
.uns-quickview {
  --fw-green: var(--uns-accent, #00ff6a);
  --fw-ink: var(--uns-ink, #0a0b0c);
  --fw-panel: var(--uns-ink-2, #141618);
  --fw-line: var(--uns-line, #2d3034);
  box-sizing: border-box;
  width: min(1080px, calc(100vw - 48px));
  max-height: calc(100dvh - 48px);
  margin: auto;
  padding: 0;
  overflow: auto;
  border: 1px solid #42474b;
  border-radius: 0;
  background: var(--fw-panel);
  color: var(--uns-white, #f4f5f4);
  box-shadow: -18px 18px 46px rgb(0 0 0 / .36);
  color-scheme: dark;
}
.uns-quickview::backdrop { background: rgb(2 3 3 / .78); }
.uns-quickview *, .uns-quickview *::before, .uns-quickview *::after { box-sizing: border-box; }
.uns-quickview [hidden] { display: none !important; }
.uns-quickview :is(button, input, select, a):focus-visible { outline: 2px solid var(--fw-green); outline-offset: 3px; }
.uns-quickview :is(p, h2, h3, form, fieldset, figure) { margin: 0; }
.uns-quickview :is(button, input, select) { border-radius: 0; }
.uns-quickview .uns-fw-dialog-bar {
  position: sticky;
  top: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 54px;
  padding-left: 20px;
  border-bottom: 1px solid var(--fw-line);
  background: var(--fw-panel);
  color: var(--fw-green);
  font: 500 11px/1 var(--uns-mono, "JetBrains Mono", monospace);
}
.uns-quickview .uns-fw-dialog-bar button {
  align-self: stretch;
  min-width: 44px;
  margin: 0;
  padding: 0 18px;
  border: 0;
  border-left: 1px solid var(--fw-line);
  background: transparent;
  color: var(--uns-white, #f4f5f4);
  font: 500 12px/1 var(--uns-mono, "JetBrains Mono", monospace);
  cursor: pointer;
}
.uns-quickview .uns-fw-dialog-bar button:hover,
.uns-quickview .uns-fw-dialog-bar button:focus-visible { background: var(--uns-white, #f4f5f4); color: var(--fw-ink); }
.uns-quickview .uns-fw-product-layout { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr); }
.uns-quickview .uns-fw-product-media { padding: 24px; border-right: 1px solid var(--fw-line); background: var(--fw-panel); }
.uns-quickview .uns-fw-product-stage { position: relative; aspect-ratio: 3 / 4; overflow: hidden; background: #fff; }
.uns-quickview .uns-fw-product-stage > img { display: block; width: 100%; height: 100%; object-fit: contain; transition: opacity .18s ease; }
.uns-quickview .uns-fw-product-stage > img.is-changing { opacity: .25; }
.uns-quickview .uns-fw-thumbnails { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-top: 8px; }
.uns-quickview .uns-fw-thumbnails button { min-width: 0; min-height: 0; padding: 0; aspect-ratio: 1; overflow: hidden; border: 1px solid transparent; background: #fff; cursor: pointer; }
.uns-quickview .uns-fw-thumbnails button:hover { border-color: var(--uns-white, #f4f5f4); background: #fff; }
.uns-quickview .uns-fw-thumbnails button[aria-current="true"] { border-color: var(--fw-green); }
.uns-quickview .uns-fw-thumbnails img { display: block; width: 100%; height: 100%; object-fit: contain; background: #fff; }
.uns-quickview .uns-fw-product-info { min-width: 0; padding: clamp(28px, 4vw, 48px); overflow: auto; }
.uns-quickview .uns-fw-label { margin: 0 0 14px; color: var(--fw-green); font: 500 12px/1.6 var(--uns-mono, "JetBrains Mono", monospace); letter-spacing: .035em; }
.uns-quickview .uns-fw-product-info h2 { margin: 0 0 12px; color: var(--uns-white, #f4f5f4); font: 400 clamp(28px, 3.4vw, 48px)/1.03 var(--uns-display, "Archivo Black", sans-serif); letter-spacing: -.025em; overflow-wrap: anywhere; }
.uns-quickview .uns-fw-product-price { margin: 0 0 24px; color: var(--fw-green); font: 700 24px/1.2 var(--uns-sans, Inter, sans-serif); }
.uns-quickview .uns-fw-product-copy { max-height: 180px; overflow: auto; margin: 0 0 26px; padding-right: 8px; color: #c6cbd0; font: 400 14px/1.7 var(--uns-sans, Inter, sans-serif); scrollbar-color: #69716e var(--fw-panel); scrollbar-width: thin; }
.uns-quickview .uns-fw-product-copy p { margin: 0 0 12px; }
.uns-quickview .uns-fw-product-copy :is(h3, ul) { display: none; }
.uns-quickview .uns-fw-product-info fieldset { min-width: 0; padding: 0; margin: 0 0 22px; border: 0; }
.uns-quickview .uns-fw-product-info legend { margin: 0 0 10px; padding: 0; color: #c6cbd0; font: 500 13px/1.5 var(--uns-sans, Inter, sans-serif); }
.uns-quickview .uns-fw-sizes { display: grid; grid-template-columns: repeat(5, 1fr); gap: 7px; }
.uns-quickview .uns-fw-sizes label { position: relative; min-width: 0; margin: 0; }
.uns-quickview .uns-fw-sizes input { position: absolute; opacity: 0; pointer-events: none; }
.uns-quickview .uns-fw-sizes span { display: grid; place-items: center; min-height: 44px; border: 1px solid #42474b; color: var(--uns-white, #f4f5f4); font: 500 12px/1 var(--uns-mono, "JetBrains Mono", monospace); cursor: pointer; }
.uns-quickview .uns-fw-sizes input:checked + span { border-color: var(--fw-green); background: var(--fw-green); color: var(--fw-ink); }
.uns-quickview .uns-fw-sizes input:focus-visible + span { outline: 2px solid var(--fw-green); outline-offset: 3px; }
.uns-quickview .uns-fw-sizes input:disabled + span { opacity: .42; text-decoration: line-through; cursor: not-allowed; }
.uns-quickview .uns-fw-choice-line { display: flex; align-items: end; justify-content: space-between; gap: 22px; margin-bottom: 10px; }
.uns-quickview .uns-fw-choice-line > span { display: flex; align-items: center; gap: 9px; min-height: 44px; color: #c6cbd0; font: 500 13px/1.5 var(--uns-sans, Inter, sans-serif); }
.uns-quickview .uns-fw-choice-line > span i { width: 18px; height: 18px; border: 1px solid #6a6d70; background: #151515; }
.uns-quickview .uns-fw-choice-line label { display: grid; gap: 7px; margin: 0; color: #c6cbd0; font: 500 13px/1.4 var(--uns-sans, Inter, sans-serif); }
.uns-quickview .uns-fw-choice-line select { width: 82px; height: 44px; margin: 0; padding: 8px 10px; border: 1px solid #42474b; background: var(--fw-ink); color: var(--uns-white, #f4f5f4); font-size: 16px; box-shadow: none; }
.uns-quickview .uns-fw-form-status { min-height: 22px; margin: 8px 0; color: #c6cbd0; font: 500 12px/1.55 var(--uns-mono, "JetBrains Mono", monospace); }
.uns-quickview .uns-fw-form-status[data-tone="error"] { color: #ffb4ad; }
.uns-quickview .uns-fw-form-status[data-tone="success"] { color: var(--fw-green); }
.uns-quickview .uns-fw-add { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 54px; margin: 0; padding: 0 18px; border: 1px solid var(--fw-green); background: var(--fw-green); color: var(--fw-ink); font: 700 13px/1 var(--uns-mono, "JetBrains Mono", monospace); cursor: pointer; }
.uns-quickview .uns-fw-add:not(:disabled):hover,
.uns-quickview .uns-fw-add:not(:disabled):focus-visible { border-color: var(--uns-white, #f4f5f4); background: var(--uns-white, #f4f5f4); color: var(--fw-ink); }
.uns-quickview .uns-fw-add:disabled { border-color: #42474b; background: transparent; color: #a7afb8; cursor: not-allowed; }
.uns-quickview .uns-quickview-product-link { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 54px; margin-top: 8px; padding: 0 18px; border: 1px solid #42474b; background: transparent; color: var(--uns-white, #f4f5f4); font: 600 12px/1 var(--uns-mono, "JetBrains Mono", monospace); text-decoration: none; }
.uns-quickview .uns-quickview-product-link:hover,
.uns-quickview .uns-quickview-product-link:focus-visible { border-color: var(--uns-white, #f4f5f4); background: var(--uns-white, #f4f5f4); color: var(--fw-ink); }
.uns-quickview .uns-fw-route-note { margin: 12px 0 0; color: #a7afb8; font: 400 11px/1.55 var(--uns-mono, "JetBrains Mono", monospace); }
.uns-quickview .uns-quickview-support { display: flex; align-items: center; gap: 12px; }
.uns-quickview .uns-quickview-support :is(button, a) { min-height: 44px; margin-top: 8px; padding: 0; border: 0; background: transparent; color: var(--fw-green); font: 500 11px/1.4 var(--uns-mono, "JetBrains Mono", monospace); text-decoration: none; cursor: pointer; }
.uns-quickview .uns-quickview-support :is(button, a):hover { color: var(--uns-white, #f4f5f4); background: transparent; }
.uns-quickview .uns-qb-photo-error { position: absolute; inset: 0; display: grid; place-content: center; padding: 24px; background: #fff; color: #34383b; font: 500 13px/1.6 var(--uns-sans, Inter, sans-serif); text-align: center; }
.uns-quickview .uns-qb-loading { display: grid; place-content: center; justify-items: center; gap: 16px; min-height: min(680px, calc(100dvh - 104px)); color: #c6cbd0; font: 500 12px/1.6 var(--uns-mono, "JetBrains Mono", monospace); }
.uns-quickview .uns-qb-loading > span { width: 36px; height: 36px; border: 2px solid #42474b; border-top-color: var(--fw-green); border-radius: 50%; animation: uns-qb-spin .8s linear infinite; }
@keyframes uns-qb-spin { to { transform: rotate(1turn); } }
.uns-quickview .uns-qb-recovery { min-height: 420px; padding: clamp(36px, 7vw, 80px); }
.uns-quickview .uns-qb-recovery h3 { margin: 0 0 12px; color: var(--uns-white, #f4f5f4); font: 400 32px/1.1 var(--uns-display, "Archivo Black", sans-serif); }
.uns-quickview .uns-qb-recovery p { max-width: 52ch; margin: 0 0 22px; color: #c6cbd0; font: 400 16px/1.7 var(--uns-sans, Inter, sans-serif); }
.uns-quickview .uns-qb-recovery > div { display: flex; flex-wrap: wrap; gap: 8px; }
.uns-quickview .uns-qb-recovery :is(button, a) { display: inline-flex; align-items: center; min-height: 46px; margin: 0; padding: 0 16px; border: 1px solid #42474b; background: transparent; color: var(--uns-white, #f4f5f4); font: 500 12px/1 var(--uns-mono, "JetBrains Mono", monospace); text-decoration: none; cursor: pointer; }
.uns-quickview .uns-qb-recovery button { border-color: var(--fw-green); background: var(--fw-green); color: var(--fw-ink); }
.uns-quickview .uns-qb-recovery :is(button, a):hover { border-color: var(--uns-white, #f4f5f4); background: var(--uns-white, #f4f5f4); color: var(--fw-ink); }

/* Quick-buy entry points on product cards. */
.uns-qb-card-action { box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 44px; max-width: 100%; padding: 12px 14px; border: 1px solid var(--uns-accent, #00ff6a); border-radius: 0; background: var(--uns-ink, #0a0b0c); color: var(--uns-accent, #00ff6a); font: 600 12px/1.5 "JetBrains Mono", monospace; text-decoration: none; overflow-wrap: anywhere; }
.uns-qb-card-action:hover { background: var(--uns-accent, #00ff6a); color: var(--uns-ink, #0a0b0c); }
.uns-qb-card-action:focus-visible { outline: 2px solid var(--uns-accent, #00ff6a); outline-offset: 3px; }
.uns-product-buy { flex-wrap: wrap; }
.uns-gallery-tile:has(> .uns-qb-card-action) { display: flex; flex-direction: column; aspect-ratio: auto; }
.uns-gallery-tile:has(> .uns-qb-card-action) > .uns-gallery-open { position: relative; inset: auto; display: block; width: 100%; aspect-ratio: 1; flex: 0 0 auto; }
.uns-gallery-tile:has(> .uns-qb-card-action) > .uns-gallery-open > img { position: absolute; inset: 0; }
.uns-gallery-tile:first-child:has(> .uns-qb-card-action) > .uns-gallery-open { flex: 1 1 auto; min-height: 0; aspect-ratio: auto; }
.uns-discovery-product:has(> .uns-qb-card-action) { display: flex; flex-direction: column; }
.uns-discovery-product:has(> .uns-qb-card-action) > .uns-discovery-gallery-link { height: auto; }
:is(.uns-gallery-tile, .uns-discovery-product) > .uns-qb-card-action { display: flex; flex: 0 0 auto; justify-content: space-between; width: 100%; min-width: 0; padding: 12px; border-width: 1px 0 0; color: var(--uns-accent, #00ff6a); }
:is(.uns-gallery-tile, .uns-discovery-product) > .uns-qb-card-action:hover { color: var(--uns-ink, #0a0b0c); }

@media (max-width: 850px) {
  .uns-quickview { width: calc(100vw - 28px); max-height: calc(100dvh - 28px); overflow: auto; }
  .uns-quickview .uns-fw-product-layout { grid-template-columns: 1fr; }
  .uns-quickview .uns-fw-product-media { border-right: 0; border-bottom: 1px solid var(--fw-line); }
  .uns-quickview .uns-fw-product-stage { max-height: 58dvh; }
  .uns-quickview .uns-fw-product-info { overflow: visible; }
  .uns-gallery-tile:first-child:has(> .uns-qb-card-action) > .uns-gallery-open { flex: 0 0 auto; aspect-ratio: 1.5; }
}
@media (max-width: 600px) {
  .uns-quickview { width: 100vw; max-height: 100dvh; border: 0; }
  .uns-quickview .uns-fw-product-media { padding: 14px; }
  .uns-quickview .uns-fw-product-info { padding: 24px 18px 32px; }
  .uns-quickview .uns-fw-thumbnails { grid-template-columns: repeat(4, 1fr); }
  .uns-quickview .uns-fw-sizes { grid-template-columns: repeat(5, 1fr); }
  .uns-quickview .uns-qb-loading { min-height: calc(100dvh - 54px); }
}
@media (max-width: 540px) {
  .uns-gallery-tile:first-child:has(> .uns-qb-card-action) > .uns-gallery-open { aspect-ratio: 1; }
}
@media (max-width: 370px) {
  .uns-quickview .uns-fw-choice-line { align-items: flex-start; flex-direction: column; }
  .uns-quickview .uns-fw-sizes { grid-template-columns: repeat(3, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .uns-quickview .uns-qb-loading > span { animation: none; }
  .uns-quickview .uns-fw-product-stage img { transition: none; }
}
