/* Milestone 6B Step 3 — dynamic Armory pages: product detail + category listing
   + empty-category state. Loaded after armory.css, which supplies the shared
   recommendation-card language reused by the related / category grids. */

.armory-detail-main {
  padding-top: 4px;
}

/* --- Breadcrumb ------------------------------------------------------------ */
.armory-crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin: 16px 0 4px;
  font-family: var(--font-label);
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.armory-crumb a {
  color: var(--color-gold);
  text-decoration: none;
}

.armory-crumb a:hover,
.armory-crumb a:focus-visible {
  color: var(--color-gold-bright);
}

.armory-crumb span[aria-hidden] {
  color: var(--color-text-muted);
}

.armory-crumb span[aria-current] {
  color: var(--color-text-muted);
}

/* --- Product detail ----------------------------------------------------- */
.armory-detail {
  display: grid;
  gap: 16px;
  margin-top: 12px;
}

.armory-detail__media {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border: 1px solid rgb(56 197 220 / 0.24);
  border-radius: var(--radius-md);
  background: radial-gradient(circle at 50% 40%, #0e1315, #050708 78%);
}

.armory-detail__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

/* Multi-image gallery: stacked crossfade (auto, reduced-motion aware — matches
   the Featured Gear slider behaviour). */
.armory-detail__media.has-gallery img {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 360ms ease;
}

.armory-detail__media.has-gallery img.is-active {
  opacity: 1;
}

.armory-detail__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.armory-detail__brand {
  margin: 0;
  color: var(--color-cyan);
  font-family: var(--font-label);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.armory-detail__body h1 {
  margin: 7px 0 0;
  color: var(--color-text);
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 6.4vw, 2rem);
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1.02;
}

.armory-detail__category {
  margin: 8px 0 0;
  color: var(--color-gold-muted);
  font-family: var(--font-label);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.armory-detail__descriptor {
  margin: 10px 0 0;
  color: var(--color-text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.armory-detail__body .armory-featured__badge {
  margin: 12px 0 0;
  padding: 4px 7px;
  font-size: 0.58rem;
}

.armory-detail__cta.armory-price-cta {
  min-height: 46px;
  margin: 16px 0 0;
  padding: 0 18px;
  font-size: 0.74rem;
}

.armory-detail__cta.armory-price-cta svg {
  width: 14px;
  height: 14px;
}

.armory-detail__disclosure {
  margin: 10px 0 0;
  color: var(--color-text-muted);
  font-size: 0.66rem;
  line-height: 1.45;
}

.armory-detail__disclosure a {
  color: var(--color-gold-bright);
}

.armory-detail__related {
  margin-top: 26px;
}

.armory-detail__back {
  margin: 20px 0 0;
}

.armory-detail__back a {
  color: var(--color-gold-bright);
  font-family: var(--font-label);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-decoration: none;
}

.armory-detail__back a:hover,
.armory-detail__back a:focus-visible {
  color: var(--color-text);
}

/* --- Category page ---------------------------------------------------- */
.armory-category-intro {
  margin-top: 10px;
}

/* --- Empty category (GEAR INCOMING) --------------------------------- */
.armory-empty {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-top: 22px;
  padding: 26px 18px 24px;
  border: 1px solid rgb(140 101 31 / 0.7);
  border-radius: var(--radius-md);
  background: linear-gradient(150deg, #101615, #090d0e 78%);
}

.armory-empty__marker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--color-cyan);
  font-family: var(--font-label);
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.armory-empty__marker span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-cyan);
  box-shadow: 0 0 8px rgb(56 197 220 / 0.7);
  animation: armory-empty-pulse 2.4s ease-in-out infinite;
}

@keyframes armory-empty-pulse {
  0%, 100% { opacity: 0.35; transform: scale(0.82); }
  50% { opacity: 1; transform: scale(1); }
}

.armory-empty h2 {
  margin: 12px 0 0;
  color: var(--color-text);
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 8vw, 2.6rem);
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1;
}

.armory-empty p:not(.armory-empty__marker):not(.armory-detail__back) {
  max-width: 42ch;
  margin: 12px 0 0;
  color: var(--color-text-muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

@media (prefers-reduced-motion: reduce) {
  .armory-empty__marker span {
    animation: none;
  }
  .armory-detail__media.has-gallery img {
    transition: none;
  }
}

/* --- Tablet / desktop -------------------------------------------------- */
@media (min-width: 768px) {
  .armory-crumb {
    font-size: 0.64rem;
  }

  .armory-detail {
    grid-template-columns: minmax(0, 46%) minmax(0, 1fr);
    align-items: start;
    gap: 30px;
    margin-top: 20px;
  }

  .armory-detail__body {
    padding-top: 6px;
  }

  .armory-detail__body h1 {
    font-size: clamp(1.9rem, 3vw, 2.5rem);
  }

  .armory-detail__descriptor {
    font-size: 1rem;
  }

  .armory-detail__cta.armory-price-cta {
    min-height: 48px;
    font-size: 0.8rem;
  }

  .armory-empty {
    align-items: center;
    padding: 54px 32px;
    text-align: center;
  }
}

@media (min-width: 1024px) {
  .armory-detail {
    grid-template-columns: minmax(0, 480px) minmax(0, 1fr);
    gap: 48px;
  }

  .armory-detail__body {
    max-width: 46ch;
  }
}
