/* 2 · Shop Terminal: a green phosphor CRT with scanlines and a glow. Every row and option is a
   button styled as terminal text; the product photo is shown in the screen's green. */
.spc--terminal { --t-fg: #7DFF9B; --t-dim: #3FA65A; --t-bg: #02140A; --spc-fg: var(--t-fg); --spc-muted: var(--t-dim); --spc-line: rgba(125, 255, 155, 0.25); }
.spc--terminal[data-site='f4f'] { --t-fg: #FFC86B; --t-dim: #B07C2A; --t-bg: #140C02; --spc-line: rgba(255, 200, 107, 0.25); }
.term { flex: 1; display: flex; min-height: 0; padding: 14px; background: #101418; }
.term__glass {
  position: relative; flex: 1; display: flex; flex-direction: column; min-height: 0; padding: 18px 20px 12px; border-radius: 22px / 18px; overflow: hidden;
  background: radial-gradient(120% 100% at 50% 40%, color-mix(in srgb, var(--t-bg) 70%, #0a3a1c) 0%, var(--t-bg) 70%, #000 100%);
  color: var(--t-fg); font: 400 21px/1.2 'VT323', ui-monospace, monospace; text-shadow: 0 0 6px color-mix(in srgb, var(--t-fg) 55%, transparent);
  box-shadow: inset 0 0 60px rgba(0, 0, 0, 0.8), 0 0 0 10px #22282E, 0 0 0 12px #0B0E10;
  animation: crtOn 0.55s ease-out;
}
.spc--terminal[data-site='f4f'] .term__glass { background: radial-gradient(120% 100% at 50% 40%, #2A1A04 0%, var(--t-bg) 70%, #000 100%); }
.term__glass::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 3;
  background: repeating-linear-gradient(180deg, rgba(0, 0, 0, 0.22) 0 1px, transparent 1px 3px);
}
@keyframes crtOn { 0% { transform: scaleY(0.006) scaleX(0.4); filter: brightness(4); } 45% { transform: scaleY(0.006) scaleX(1); } 100% { transform: none; filter: none; } }
.term__log { flex: 1; min-height: 0; overflow-y: auto; padding-right: 6px; scrollbar-color: var(--t-dim) transparent; overscroll-behavior: contain; }
.term__out { margin: 0 0 10px; white-space: pre-wrap; }
.term__out p { margin: 0 0 2px; }
.term__out.is-err { color: #FF7B7B; }
.term__out.is-ok, .term__ok { color: #C8FFD4; }
.term__out.is-live { padding: 8px 10px; border: 1px dashed var(--t-dim); }
.term__echo { color: var(--t-dim); }
.term__head { color: var(--t-bg); background: var(--t-fg); display: inline-block; padding: 0 6px; text-shadow: none; }
.term__sub { color: var(--t-dim); }
.term__boot { color: var(--t-dim); }
.term__rows { margin: 4px 0; padding: 0; list-style: none; }
.term__rows li { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.term__store .term__rows li { white-space: normal; }
.term__btn {
  display: inline; min-height: 28px; padding: 0 4px; border: 0; background: none; color: inherit; font: inherit; text-shadow: inherit; text-align: left; cursor: pointer;
}
.term__btn:hover, .term__btn:focus-visible { background: var(--t-fg); color: var(--t-bg); text-shadow: none; outline: none; }
.term__btn[aria-pressed='true'] { background: color-mix(in srgb, var(--t-fg) 25%, transparent); }
.term__btn[aria-pressed='true']::before { content: '>'; }
.term__btn[data-primary] { padding: 0 8px; box-shadow: inset 0 0 0 1px var(--t-fg); }
.term__btn:disabled { opacity: 0.4; cursor: default; background: none; color: inherit; }
.term__rows .term__btn { display: block; width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.term__n { color: var(--t-dim); white-space: pre; }
.term__px { color: #D7FFE0; }
.term__st { font-size: 0.85em; }
.term__st--pre { color: #C9A7FF; }
.term__st--sale { color: #FF9DD0; }
.term__st--out { color: #7C8A80; text-decoration: line-through; }
.term__wrap { white-space: normal; }
.term__wrap .term__btn { margin: 0 6px 6px 0; box-shadow: inset 0 0 0 1px var(--spc-line); }
.term__help { display: grid; grid-template-columns: max-content 1fr; gap: 0 14px; margin: 4px 0; }
.term__help dd { margin: 0; color: var(--t-dim); }
.term__product { display: grid; grid-template-columns: minmax(120px, 200px) minmax(0, 1fr); gap: 14px; align-items: start; }
.term__photo { display: block; aspect-ratio: 1; border: 1px solid var(--t-dim); background: #000; }
.term__photo img { width: 100%; height: 100%; object-fit: contain; filter: grayscale(1) sepia(1) hue-rotate(70deg) saturate(3) brightness(0.95) contrast(1.1); mix-blend-mode: screen; }
.spc--terminal[data-site='f4f'] .term__photo img { filter: grayscale(1) sepia(1) saturate(2.4) brightness(0.95) contrast(1.1); }
.term__opt span { color: var(--t-dim); }
.term__qty { padding: 0 6px; }
.term__ask { margin-top: 6px; padding: 4px 6px; border: 1px solid var(--t-fg); white-space: normal; }
.term__link { color: inherit; }
.term__chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 0 6px; border-top: 1px solid var(--spc-line); }
.term__chip { min-height: 36px; padding: 2px 12px; border: 0; background: color-mix(in srgb, var(--t-fg) 14%, transparent); color: inherit; font: inherit; text-shadow: inherit; cursor: pointer; }
.term__chip:hover, .term__chip:focus-visible { background: var(--t-fg); color: var(--t-bg); text-shadow: none; outline: none; }
.term__prompt { display: flex; align-items: center; gap: 8px; }
.term__ps { white-space: nowrap; }
.term__in {
  flex: 1; min-width: 0; min-height: 40px; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-shadow: inherit; caret-color: var(--t-fg); outline: none;
}
.term__prompt:focus-within .term__ps::after { content: '_'; animation: termCaret 1s steps(1) infinite; }
@keyframes termCaret { 50% { opacity: 0; } }
@container pc (max-width: 640px) {
  .term { padding: 6px; }
  .term__glass { padding: 12px 12px 8px; font-size: 18px; border-radius: 14px; }
  .term__product { grid-template-columns: minmax(0, 1fr); }
  .term__photo { max-width: 180px; }
}
@media (prefers-reduced-motion: reduce) { .term__glass { animation: none; } }
