/* ==========================================================================
   storefront-extras.css — small additions to the prototype stylesheet set for
   server-driven features: status badges, lightbox, gallery zoom button,
   chip links and the visible keyboard focus ring on the new controls.
   ========================================================================== */

.status-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: var(--radius-sm, 4px);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: var(--color-border, #ddd);
  color: var(--color-text, #222);
}

.status-badge--reserved {
  background: #fff3cd;
  color: #664d03;
}

.status-badge--sold {
  background: #f8d7da;
  color: #58151c;
}

.gallery__stage {
  position: relative;
}

.gallery__fullscreen {
  top: 12px;
  right: 12px;
  left: auto;
  bottom: auto;
  transform: none;
}

.gallery__image {
  cursor: zoom-in;
}

/* Lightbox: full-screen photo viewer */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.92);
}

.lightbox[hidden] {
  display: none;
}

.lightbox__image {
  max-width: 92vw;
  max-height: 86vh;
  object-fit: contain;
}

.lightbox__close,
.lightbox__arrow {
  position: absolute;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 1.25rem;
  cursor: pointer;
}

.lightbox__close:hover,
.lightbox__arrow:hover {
  background: rgba(255, 255, 255, 0.3);
}

.lightbox__close {
  top: 16px;
  right: 16px;
}

.lightbox__arrow {
  top: 50%;
  transform: translateY(-50%);
}

.lightbox__arrow--prev {
  left: 16px;
}

.lightbox__arrow--next {
  right: 16px;
}

.lightbox__count {
  position: absolute;
  bottom: 16px;
  left: 0;
  right: 0;
  text-align: center;
  color: #fff;
  font-size: 0.875rem;
}

.has-lightbox {
  overflow: hidden;
}

.lightbox button:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 2px;
}

a.chip__remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.alert {
  margin: 0 0 16px;
  padding: 12px 16px;
  border-radius: var(--radius-sm, 4px);
  background: #e8f0fe;
  color: #174ea6;
  font-size: 0.9375rem;
}

/* Sell your car */
.sell__step { margin: 8px 0 0; font-size: 1.125rem; font-weight: 700; color: var(--color-text-strong); }
.sell__hint { margin: 6px 0 0; color: var(--color-text-muted); font-size: .875rem; }
.sell__steps { list-style: decimal; display: grid; gap: 12px; margin: 0; padding-left: 20px; color: var(--color-text); }
