/* ============================================
   ILLUSIONS PAGE - CATALOG STYLES
   ============================================ */

/* ============================================
   PAGE HEADER
   ============================================ */

.page-header {
  position: relative;
  height: 50vh;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  /* Account for fixed top-bar (~38px) + nav (~70px) */
  padding-top: 120px;
  box-sizing: border-box;
}

.page-header__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.page-header__bg-image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.25) contrast(1.2) saturate(0.8);
  transform: scale(1.1);
  transition: transform 8s ease;
}

.page-header:hover .page-header__bg-image {
  transform: scale(1.15);
}

.page-header__overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center, transparent 0%, var(--black-void) 80%),
    linear-gradient(180deg, rgba(5,5,7,0.3) 0%, var(--black-void) 100%);
}

.page-header__content {
  position: relative;
  z-index: 1;
  padding: 2rem;
  animation: fade-in-up 1s ease forwards;
}

.page-header__pretitle {
  font-size: 0.85rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold-muted);
  margin-bottom: 1rem;
}

.page-header__title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  margin-bottom: 1rem;
  text-shadow: 0 0 60px rgba(212, 175, 55, 0.2);
}

.page-header__subtitle {
  max-width: 500px;
  margin: 0 auto;
}

/* ============================================
   CATALOG NAVIGATION
   ============================================ */

.catalog-nav {
  background: var(--black-deep);
  border-bottom: 1px solid rgba(212, 175, 55, 0.1);
  padding: 0;
  position: sticky;
  top: 108px;
  z-index: 100;
}

.catalog-nav__inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1.5rem 4%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}

.catalog-nav__link {
  color: rgba(248, 246, 240, 0.6);
  text-decoration: none;
  font-size: 0.9rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.5rem 1rem;
  position: relative;
  transition: color 0.3s ease;
}

.catalog-nav__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 1px;
  background: var(--gold-bright);
  transition: width 0.3s ease, left 0.3s ease;
}

.catalog-nav__link:hover,
.catalog-nav__link--active {
  color: var(--gold-bright);
}

.catalog-nav__link:hover::after,
.catalog-nav__link--active::after {
  width: 100%;
  left: 0;
}

.catalog-nav__divider {
  color: rgba(212, 175, 55, 0.3);
  font-weight: 300;
}

/* ============================================
   CATALOG SECTION
   ============================================ */

.catalog {
  background: var(--black-stage);
  padding: 6rem 4%;
}

.catalog__header {
  text-align: center;
  margin-bottom: 4rem;
}

.catalog__count {
  color: var(--gold-muted);
  font-size: 0.9rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-top: 1rem;
}

.catalog__subtitle {
  color: rgba(248, 246, 240, 0.6);
  font-style: italic;
  margin-top: 1rem;
}

/* ============================================
   CATALOG GRID
   ============================================ */

.catalog__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

/* Tier Headers - Full Width */
.catalog__tier {
  grid-column: 1 / -1;
  padding: 3rem 0 1.5rem;
  border-bottom: 1px solid rgba(212, 175, 55, 0.15);
  margin-top: 2rem;
}

.catalog__tier:first-of-type {
  margin-top: 0;
  padding-top: 0;
}

.catalog__tier-title {
  font-family: 'Cinzel Decorative', serif;
  font-size: 1.3rem;
  letter-spacing: 0.15em;
  color: var(--gold-bright);
  margin-bottom: 0.5rem;
}

.catalog__tier-desc {
  color: rgba(248, 246, 240, 0.5);
  font-size: 0.95rem;
  font-style: italic;
}

/* ============================================
   PRODUCT CARDS
   ============================================ */

/* Remove default link styling from product card links */
.product-card__link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.product-card__link:hover,
.product-card__link:visited,
.product-card__link:active {
  text-decoration: none;
  color: inherit;
}

.product-card {
  position: relative;
  background: var(--black-deep);
  border: 1px solid rgba(212, 175, 55, 0.08);
  transition: border-color 0.4s ease, transform 0.4s ease, box-shadow 0.4s ease;
}

.product-card:hover {
  border-color: rgba(212, 175, 55, 0.3);
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.product-card__image-wrapper {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--black-void);
}

.product-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease, filter 0.6s ease;
  filter: brightness(0.9) saturate(0.9);
}

.product-card:hover .product-card__image {
  transform: scale(1.08);
  filter: brightness(1) saturate(1);
}

.product-card__overlay {
  position: absolute;
  inset: 0;
  background: rgba(5, 5, 7, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.product-card:hover .product-card__overlay {
  opacity: 1;
}

.product-card__cta {
  padding: 0.8rem 2rem;
  border: 1px solid var(--gold-bright);
  color: var(--gold-bright);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.3s ease, color 0.3s ease;
}

.product-card:hover .product-card__cta:hover {
  background: var(--gold-bright);
  color: var(--black-void);
}

.product-card__info {
  padding: 1.5rem;
}

.product-card__name {
  font-family: 'Cinzel Decorative', serif;
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.product-card__price {
  color: var(--gold-bright);
  font-size: 1.1rem;
  font-weight: 600;
}

/* ============================================
   ARCHIVE SECTION
   ============================================ */

.catalog--archive {
  background: var(--black-void);
  border-top: 1px solid rgba(212, 175, 55, 0.1);
}

.archive-intro {
  max-width: 800px;
  margin: 0 auto 4rem;
  text-align: center;
  padding: 2rem;
  border: 1px solid rgba(212, 175, 55, 0.1);
  background: rgba(212, 175, 55, 0.02);
}

.archive-intro p {
  color: rgba(248, 246, 240, 0.7);
  font-style: italic;
  line-height: 1.8;
  margin: 0 auto;
}

.catalog__grid--archive {
  grid-template-columns: repeat(2, 1fr);
  max-width: 900px;
  gap: 3rem;
}

/* Archive Card Styles */
.product-card--archive {
  border-color: rgba(100, 100, 120, 0.2);
}

.product-card--archive:hover {
  border-color: rgba(100, 100, 120, 0.4);
}

.product-card__badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 10;
  background: rgba(80, 40, 120, 0.9);
  color: #fff;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.4rem 0.8rem;
}

.product-card--archive .product-card__image {
  filter: grayscale(70%) brightness(0.7);
}

.product-card--archive:hover .product-card__image {
  filter: grayscale(40%) brightness(0.85);
}

.product-card__overlay--archive {
  background: rgba(5, 5, 7, 0.7);
}

.product-card__status {
  color: rgba(248, 246, 240, 0.8);
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.8rem 1.5rem;
  border: 1px solid rgba(248, 246, 240, 0.3);
}

.product-card__price--archive {
  color: rgba(248, 246, 240, 0.4);
  text-decoration: line-through;
  font-weight: 400;
}

.product-card__note {
  color: rgba(248, 246, 240, 0.5);
  font-size: 0.85rem;
  font-style: italic;
  margin-top: 0.8rem;
  line-height: 1.6;
}

/* ============================================
   CATALOG CTA
   ============================================ */

.catalog-cta {
  background: var(--black-deep);
  padding: 8rem 4%;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.catalog-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(ellipse, rgba(212, 175, 55, 0.03) 0%, transparent 70%);
  pointer-events: none;
}

.catalog-cta__content {
  position: relative;
  z-index: 1;
}

.catalog-cta__content h2 {
  font-family: 'Cinzel Decorative', serif;
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

.catalog-cta__content .tagline {
  margin-bottom: 2rem;
}

/* ============================================
   ACTIVE NAV LINK
   ============================================ */

.nav__link--active {
  color: var(--gold-bright);
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1200px) {
  .catalog__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  .catalog__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .catalog__grid--archive {
    grid-template-columns: 1fr;
    max-width: 450px;
  }
}

@media (max-width: 768px) {
  .page-header {
    /* Mobile: top-bar (~45px) + nav with logo (~60px) + buffer */
    padding-top: 150px;
    min-height: 380px;
    /* Align content to start below nav instead of center */
    align-items: flex-start;
    padding-bottom: 2rem;
  }

  .page-header__content {
    margin-top: 1rem;
  }

  .page-header__title {
    font-size: clamp(1.8rem, 8vw, 3rem);
  }

  .page-header__pretitle {
    font-size: 0.75rem;
    letter-spacing: 0.3em;
  }

  .catalog-nav {
    top: 115px;
  }
}

@media (max-width: 600px) {
  .catalog__grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }

  .catalog-nav__inner {
    flex-direction: column;
    gap: 1rem;
  }

  .catalog-nav__divider {
    display: none;
  }

  .page-header {
    height: auto;
    min-height: 300px;
    padding-top: 140px;
    padding-bottom: 3rem;
  }

  .page-header__content {
    padding: 1rem;
    margin-top: 0.5rem;
  }

  .catalog {
    padding: 4rem 5%;
  }

  .catalog-nav {
    top: 100px;
  }
}

@media (max-width: 480px) {
  .page-header {
    padding-top: 130px;
    min-height: 260px;
  }

  .page-header__title {
    font-size: clamp(1.5rem, 7vw, 2.5rem);
  }

  .catalog-nav {
    top: 95px;
  }
}

/* ============================================
   HOVER STATES - TOUCH DEVICES
   ============================================ */

@media (hover: none) {
  .product-card__overlay {
    opacity: 1;
    background: linear-gradient(180deg, transparent 50%, rgba(5, 5, 7, 0.9) 100%);
  }

  .product-card__cta {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
  }
}
