/* ── Summit First Run — first-run.css ─────────────────────────────────────── */
/* Extends the theme's design system. Uses existing tokens:
   --ink, --paper, --paper-2, --accent, --rule, --rule-strong,
   --f-display, --f-mono, .btn, .btn-accent, .chip, .cover-chip,
   .variation-sticker                                               */

/* ── Progress bar ────────────────────────────────────────────────────────── */
.fr-progress-wrap {
  margin-bottom: 20px;
}
.fr-eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.fr-pip {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  animation: fr-pulse 2s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes fr-pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(34,197,94,.3); }
  50%       { box-shadow: 0 0 0 6px rgba(34,197,94,.1); }
}
.fr-eyebrow__label { font-weight: 700; }
.fr-bar-wrap { margin-bottom: 18px; }
.fr-bar {
  height: 4px;
  background: var(--rule);
  position: relative;
  overflow: visible;
  margin-bottom: 20px;
}
.fr-bar__fill {
  position: absolute;
  inset-block: 0;
  left: 0;
  background: var(--accent);
  transition: width .8s cubic-bezier(.4,0,.2,1);
}
.fr-bar__label {
  position: absolute;
  right: 0;
  top: calc(100% + 5px);
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: .08em;
  opacity: .45;
  white-space: nowrap;
  text-transform: uppercase;
}
.fr-stretch-marker {
  position: absolute;
  top: -5px;
  bottom: -5px;
  width: 1.5px;
  background: var(--ink);
  cursor: pointer;
  z-index: 1;
}
.fr-stretch-marker__label {
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--f-mono);
  font-size: 8px;
  letter-spacing: .06em;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0;
  transition: opacity .12s;
  background: var(--ink);
  color: var(--paper);
  padding: 2px 5px;
  pointer-events: none;
}
.fr-stretch-marker:hover .fr-stretch-marker__label { opacity: 1; }
.fr-stats {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.fr-stat__val {
  display: block;
  font-family: var(--f-display);
  font-weight: 900;
  font-size: clamp(18px, 2.5vw, 26px);
  line-height: 1;
  letter-spacing: -.02em;
}
.fr-stat__label {
  display: block;
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: .14em;
  opacity: .4;
  margin-top: 2px;
}
.fr-stretch-list-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 10px;
}
.fr-stretch-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  opacity: .5;
}
.fr-stretch-item.is-reached { opacity: 1; }
.fr-stretch-item__icon { font-size: 10px; flex-shrink: 0; }
.fr-stretch-item__label { flex: 1; font-family: var(--f-mono); font-size: 10px; letter-spacing: .06em; }
.fr-stretch-item__units {
  font-family: var(--f-mono);
  font-size: 10px;
  opacity: .5;
}
.fr-progress-divider {
  height: 1.5px;
  background: var(--rule);
  margin: 16px 0;
}

/* ── Variation quantity grid ─────────────────────────────────────────────── */
/* Uses the theme's cover-chip pattern extended with qty steppers */
.fr-var-grid-section { margin-bottom: 16px; }
.fr-var-grid__label {
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: .14em;
  text-transform: uppercase;
  opacity: .45;
  margin-bottom: 3px;
}
.fr-var-grid__sub {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: .04em;
  opacity: .45;
  margin-bottom: 10px;
}
.fr-var-grid {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

/* Each row reuses cover-chip visual language */
.fr-var-row {
  display: grid;
  grid-template-columns: 48px 1fr auto auto;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1.5px solid var(--rule-strong);
  background: var(--paper);
  transition: border-color .12s;
  position: relative;
}
.fr-var-row:hover { border-color: var(--ink); }
.fr-var-row.is-selected { border-color: var(--ink); background: var(--paper-2); }
.fr-var-row.is-unavailable { opacity: .4; }

.fr-var-row__thumb {
  width: 48px;
  aspect-ratio: 2/3;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  flex-shrink: 0;
  background: var(--paper-2);
}
.fr-var-row__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fr-var-row__digital-thumb,
.fr-var-row__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--f-mono);
  font-size: 8px;
  letter-spacing: .06em;
  text-transform: uppercase;
  opacity: .4;
  color: var(--ink);
  padding: 4px;
  text-align: center;
}

/* Sticker — positioned at top-right of the entire row, above the qty stepper */
.fr-var-row { position: relative; }
.fr-var-row .variation-sticker {
  position: absolute;
  top: -1px;
  right: -1px;
  left: auto;
  font-size: 8px;
  padding: 3px 8px;
  border-radius: 0;
  z-index: 3;
}

.fr-var-row__cover {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: -.01em;
  line-height: 1.1;
}
.fr-var-row__artist {
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: .06em;
  opacity: .4;
  margin-top: 2px;
}
.fr-var-row__format {
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: .08em;
  opacity: .3;
  margin-top: 1px;
}
.fr-var-row__price {
  font-family: var(--f-mono);
  font-size: 11px;
  white-space: nowrap;
  flex-shrink: 0;
}
.fr-var-row__qty {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.fr-qty-oos {
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: .08em;
  opacity: .35;
}

/* Qty buttons match the theme's btn style */
.fr-qty-btn {
  width: 26px; height: 26px;
  display: flex; align-items: center; justify-content: center;
  border: 1.5px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-display);
  font-weight: 900;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  transition: background .1s, color .1s;
  flex-shrink: 0;
  padding: 0;
}
.fr-qty-btn:hover { background: var(--ink); color: var(--paper); }

.fr-qty-val {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: 15px;
  min-width: 18px;
  text-align: center;
}
.fr-subtotal-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 8px 0;
  border-top: 1.5px solid var(--rule-strong);
  margin-top: 6px;
}
.fr-subtotal-label {
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: .12em;
  text-transform: uppercase;
  opacity: .4;
}
.fr-subtotal-val {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: 18px;
  letter-spacing: -.02em;
}

/* ── ATC button area ─────────────────────────────────────────────────────── */
.fr-atc-wrap { margin: 14px 0; }
.fr-atc-validation {
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #e53935;
  margin-bottom: 8px;
  min-height: 13px;
}
.fr-atc-btn.is-loading { opacity: .6; pointer-events: none; }
.fr-atc-btn.is-loading::after { content: '…'; margin-left: 4px; }
.fr-atc-btn.is-success { background: #22c55e !important; border-color: #22c55e !important; }

/* ── Add-ons ─────────────────────────────────────────────────────────────── */
.fr-addons-divider { height: 1.5px; background: var(--rule); margin: 16px 0; }
.fr-addons-title {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 3px;
}
.fr-addons-sub {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: .06em;
  opacity: .4;
  margin-bottom: 10px;
}
.fr-addon-cards { display: flex; flex-direction: column; gap: 1px; }
.fr-addon-card {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1.5px solid var(--rule-strong);
  background: var(--paper);
  transition: border-color .12s;
}
.fr-addon-card:not(.is-unavailable):hover { border-color: var(--ink); }
.fr-addon-card.is-unavailable { opacity: .35; }
.fr-addon-card__thumb {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  overflow: hidden;
  background: var(--paper-2);
}
.fr-addon-card__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fr-addon-card__thumb--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--f-mono);
  font-size: 8px;
  letter-spacing: .06em;
  opacity: .3;
  color: var(--ink);
}
.fr-addon-card__body {
  flex: 1;
  min-width: 0;
}
.fr-addon-card__label {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: -.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fr-addon-card__price {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: .06em;
  opacity: .55;
  margin-top: 2px;
}
.fr-addon-badge {
  font-family: var(--f-mono);
  font-size: 8px;
  letter-spacing: .1em;
  padding: 2px 5px;
  border: 1px solid var(--rule-strong);
  display: inline-block;
  text-transform: uppercase;
  margin-top: 3px;
}
.fr-addon-badge--closed, .fr-addon-badge--oos { opacity: .4; }
.fr-addon-card__qty {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

/* ── Archive page — /run/ ────────────────────────────────────────────────── */
.fr-archive-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--f-display);
  font-weight: 900;
  font-size: 9px;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 4px 8px;
  background: var(--ink);
  color: var(--paper);
  border: 1.5px solid var(--paper);
  position: absolute;
  bottom: 8px;
  left: 8px;
}
.fr-archive-badge::before {
  content: '';
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.campaign-live .fr-archive-badge {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--ink);
}

/* ── Lightbox ────────────────────────────────────────────────────────────── */
#fr-lightbox {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100% !important;
  height: 100% !important;
  z-index: 99999 !important;
  background: rgba(10,10,13,.93) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 40px !important;
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease;
  margin: 0 !important;
}
#fr-lightbox.is-open {
  opacity: 1 !important;
  pointer-events: all !important;
}
#fr-lightbox .fr-lightbox__inner {
  position: relative;
  max-width: min(460px, 85vw);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
#fr-lightbox .fr-lightbox__img {
  max-width: 100%;
  max-height: 78vh;
  object-fit: contain;
  display: block;
  box-shadow: 0 24px 64px rgba(0,0,0,.7);
  transform: scale(.95);
  transition: transform .2s cubic-bezier(.4,0,.2,1);
}
#fr-lightbox.is-open .fr-lightbox__img {
  transform: scale(1);
}
#fr-lightbox .fr-lightbox__caption {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(246,241,230,.55);
  text-align: center;
}
#fr-lightbox .fr-lightbox__close {
  position: absolute;
  top: -48px;
  right: -8px;
  background: none;
  border: none;
  color: rgba(246,241,230,.5);
  font-size: 24px;
  cursor: pointer;
  line-height: 1;
  padding: 8px;
  transition: color .12s;
}
#fr-lightbox .fr-lightbox__close:hover { color: #f6f1e6; }
#fr-lightbox .fr-lightbox__prev,
#fr-lightbox .fr-lightbox__next {
  position: absolute;
  top: 40%;
  background: rgba(246,241,230,.1);
  border: 1.5px solid rgba(246,241,230,.2);
  color: rgba(246,241,230,.75);
  font-family: var(--f-display);
  font-weight: 900;
  font-size: 20px;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background .1s, color .1s;
  padding: 0;
}
#fr-lightbox .fr-lightbox__prev { left: -60px; transform: translateY(-50%); }
#fr-lightbox .fr-lightbox__next { right: -60px; transform: translateY(-50%); }
#fr-lightbox .fr-lightbox__prev:hover,
#fr-lightbox .fr-lightbox__next:hover {
  background: rgba(246,241,230,.18);
  color: #f6f1e6;
}
#fr-lightbox .fr-lightbox__prev.is-hidden,
#fr-lightbox .fr-lightbox__next.is-hidden { display: none !important; }

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .fr-var-row { grid-template-columns: 44px 1fr; gap: 8px; }
  .fr-var-row__price { grid-column: 2; margin-top: -4px; }
  .fr-var-row__qty   { grid-column: 1 / -1; justify-self: end; }
  .fr-addon-card { flex-wrap: wrap; }
  .fr-addon-card__qty { margin-left: auto; }
}
