/* ─── THE SAGE CONSORTIUM — SHOP PAGE ─── */

body {
  background-color: var(--void);
  color: var(--parchment);
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  cursor: default;
}

body::before { opacity: 0.04; }

/* ─── NAV ─── */

.nav-logo {
  font-size: 0.72rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 400;
  text-decoration: none;
  transition: color 0.3s ease;
}

.nav-logo:hover,
.nav-logo:active { color: var(--gold-light); }

.nav-links {
  display: none;
  list-style: none;
  gap: 2.5rem;
  align-items: center;
}

.nav-links a {
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--mist);
  text-decoration: none;
  transition: color 0.4s ease;
}

.nav-links a:hover,
.nav-links a:active { color: var(--gold-light); }
.nav-links a[aria-current="page"],
.nav-links a.nav-shop { color: var(--gold); }

@media (min-width: 900px) {
  .nav-links { display: flex; }
}

/* ─── HERO ─── */

.shop-hero {
  min-height: 70vh;
  min-height: 70dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  padding: 9rem 5vw 6rem;
}

.shop-hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 50% 40%, rgba(212,168,67,0.07) 0%, transparent 65%),
    radial-gradient(ellipse 40% 30% at 20% 80%, rgba(212,168,67,0.03) 0%, transparent 60%),
    linear-gradient(180deg, #0c0b09 0%, #060504 50%, #030302 100%);
}

.shop-hero-inner {
  position: relative;
  z-index: 2;
  opacity: 0;
  animation: fadeInUp 1.1s ease forwards 0.4s;
}

.shop-eyebrow {
  font-size: 0.58rem;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: rgba(212,168,67,0.6);
  margin-bottom: 2.5rem;
}

.shop-title {
  font-size: clamp(4rem, 12vw, 9rem);
  font-weight: 300;
  line-height: 1;
  color: var(--cream);
  margin-bottom: 2rem;
  letter-spacing: -0.01em;
}

.shop-title em {
  font-style: italic;
  color: var(--gold-light);
}

.shop-subtitle {
  font-size: clamp(1rem, 2vw, 1.3rem);
  font-style: italic;
  color: var(--mist);
  max-width: 36rem;
  line-height: 1.7;
}

.shop-scroll {
  position: absolute;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  z-index: 2;
}

.scroll-label {
  font-size: 0.55rem;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: rgba(168,159,140,0.35);
}

.scroll-line {
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  opacity: 0.3;
  animation: scroll-drop 2.4s ease-in-out infinite;
}

@keyframes scroll-drop {
  0%   { transform: scaleY(0); transform-origin: top;    opacity: 0; }
  40%  { transform: scaleY(1); transform-origin: top;    opacity: 0.3; }
  60%  { transform: scaleY(1); transform-origin: bottom; opacity: 0.3; }
  100% { transform: scaleY(0); transform-origin: bottom; opacity: 0; }
}

/* ─── PRODUCT FEATURE ─── */

.product-feature {
  position: relative;
  padding: 8rem 5vw;
  overflow: hidden;
}

.product-feature-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 20% 50%, rgba(212,168,67,0.04) 0%, transparent 60%),
    radial-gradient(ellipse 40% 50% at 85% 30%, rgba(212,168,67,0.03) 0%, transparent 60%),
    linear-gradient(160deg, #0a0907 0%, #030302 100%);
}

.product-layout {
  max-width: 72rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7rem;
  align-items: center;
  position: relative;
  z-index: 2;
}

/* ─── JOURNAL COVER IMAGE ─── */

.product-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  opacity: 0;
  animation: fadeIn 1.4s ease forwards 0.6s;
}

.journal-img-wrap {
  position: relative;
  width: 100%;
  max-width: 400px;
  box-shadow:
    0 24px 60px rgba(0,0,0,0.55),
    0 0 0 1px rgba(212,168,67,0.1);
}

.journal-img {
  display: block;
  width: 100%;
  height: auto;
}

/* Subtle gold glow behind cover */
.journal-img-wrap::after {
  content: '';
  position: absolute;
  inset: -1px;
  box-shadow: 0 0 60px 12px rgba(212,168,67,0.07);
  pointer-events: none;
}

.product-tag {
  font-size: 0.58rem;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  color: rgba(168,159,140,0.45);
  border: 1px solid rgba(212,168,67,0.15);
  padding: 0.5em 1.2em;
}

/* ─── PRODUCT DETAILS ─── */

.product-details {
  opacity: 0;
  animation: fadeInUp 1.2s ease forwards 0.8s;
}

.product-eyebrow {
  font-size: 0.58rem;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: rgba(212,168,67,0.55);
  margin-bottom: 1.5rem;
}

.product-name {
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  font-weight: 300;
  color: var(--cream);
  line-height: 1.1;
  margin-bottom: 2rem;
}

.product-name em {
  font-style: italic;
  color: var(--gold-light);
}

.product-desc {
  font-size: 1rem;
  font-style: italic;
  color: var(--mist);
  line-height: 1.9;
  margin-bottom: 1.2rem;
}

.product-divider {
  height: 1px;
  background: linear-gradient(to right, rgba(212,168,67,0.2), transparent);
  margin: 2.5rem 0;
}

.product-meta {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.meta-item {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.meta-label {
  font-size: 0.55rem;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  color: rgba(212,168,67,0.5);
}

.meta-value {
  font-size: 0.95rem;
  color: var(--parchment);
  font-style: italic;
}

.product-price-row {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.product-price-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.product-price-label {
  font-size: 0.55rem;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  color: rgba(212,168,67,0.5);
}

.product-price {
  font-size: 3rem;
  font-weight: 300;
  color: var(--cream);
  line-height: 1;
}

.product-price-cents {
  font-size: 1.5rem;
  color: var(--mist);
}

.product-cta {
  flex-shrink: 0;
}

.product-note {
  font-size: 0.72rem;
  font-style: italic;
  color: rgba(168,159,140,0.45);
  line-height: 1.7;
}


/* ─── LIFESTYLE SECTION ─── */

.lifestyle-section {
  padding: 0 5vw 8rem;
  background: var(--void);
}

.lifestyle-inner {
  max-width: 72rem;
  margin: 0 auto;
}

.lifestyle-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 2px;
}

.lifestyle-main,
.lifestyle-spread {
  overflow: hidden;
  position: relative;
}

.lifestyle-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
  filter: brightness(0.92) contrast(1.02);
}

.lifestyle-main:hover .lifestyle-img,
.lifestyle-spread:hover .lifestyle-img {
  transform: scale(1.02);
}

.lifestyle-caption {
  position: absolute;
  bottom: 1.2rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.52rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: rgba(212,168,67,0.5);
  white-space: nowrap;
  background: rgba(3,3,2,0.6);
  padding: 0.4em 1em;
}

/* ─── CONTENTS ─── */

.contents-section {
  padding: 8rem 5vw;
  background: var(--charcoal);
}

.contents-inner {
  max-width: 72rem;
  margin: 0 auto;
}

.contents-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border: 1px solid rgba(212,168,67,0.1);
  margin-top: 4rem;
}

.content-item {
  padding: 3rem 2.5rem;
  border-right: 1px solid rgba(212,168,67,0.08);
  border-bottom: 1px solid rgba(212,168,67,0.08);
  transition: background 0.4s ease;
}

.content-item:nth-child(even) { border-right: none; }
.content-item:nth-child(3),
.content-item:nth-child(4)    { border-bottom: none; }
.content-item:hover            { background: rgba(212,168,67,0.03); }

.content-number {
  font-size: 0.58rem;
  letter-spacing: 0.45em;
  color: rgba(212,168,67,0.3);
  margin-bottom: 1rem;
}

.content-name {
  font-size: 1.3rem;
  font-style: italic;
  color: var(--gold);
  margin-bottom: 1rem;
}

.content-desc {
  font-size: 0.92rem;
  color: var(--mist);
  line-height: 1.9;
}

.content-desc em {
  color: var(--parchment);
  font-style: normal;
}

/* ─── PROVENANCE ─── */

.provenance-section {
  padding: 8rem 5vw;
  background: var(--void);
}

.provenance-inner {
  max-width: 72rem;
  margin: 0 auto;
}

.provenance-layout {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6rem;
  align-items: start;
  margin-top: 4rem;
}

.provenance-img-wrap {
  width: clamp(220px, 30vw, 380px);
  flex-shrink: 0;
  box-shadow: 0 16px 40px rgba(0,0,0,0.5), 0 0 0 1px rgba(212,168,67,0.08);
  overflow: hidden;
}

.provenance-img {
  display: block;
  width: 100%;
  height: auto;
  filter: brightness(0.9) contrast(1.02);
}

.provenance-text p {
  font-size: 1rem;
  font-style: italic;
  color: var(--mist);
  line-height: 1.9;
  margin-bottom: 1.4rem;
}

.provenance-text em {
  color: var(--parchment);
  font-style: normal;
}

.prov-quote {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-style: italic;
  color: rgba(242,234,216,0.55);
  border-left: 1px solid rgba(212,168,67,0.35);
  padding-left: 1.8rem;
  margin: 2.5rem 0 1rem;
  line-height: 1.7;
}

.prov-cite {
  font-size: 0.62rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: rgba(212,168,67,0.45);
  font-style: normal;
  display: block;
}

/* ─── CLOSE CTA ─── */

.shop-close {
  padding: 9rem 5vw;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: #000;
}

.shop-close-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 55% 65% at 50% 50%, rgba(212,168,67,0.05) 0%, transparent 65%);
}

.shop-close-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.close-label {
  font-size: 0.58rem;
  letter-spacing: 0.55em;
  text-transform: uppercase;
  color: rgba(212,168,67,0.45);
}

.close-statement {
  font-size: clamp(1.6rem, 3.5vw, 2.8rem);
  font-style: italic;
  color: rgba(242,234,216,0.55);
  line-height: 1.55;
  max-width: 32rem;
}

.close-note {
  font-size: 0.72rem;
  font-style: italic;
  color: rgba(168,159,140,0.35);
  margin-top: -0.5rem;
}

/* ─── REVEAL ON SCROLL ─── */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── RESPONSIVE ─── */

@media (max-width: 900px) {
  .product-layout {
    grid-template-columns: 1fr;
    gap: 4rem;
    text-align: center;
  }

  .product-visual { margin: 0 auto; }

  .product-name   { text-align: center; }
  .product-divider { background: linear-gradient(to right, transparent, rgba(212,168,67,0.2), transparent); }

  .product-meta { justify-items: start; }

  .product-price-row {
    justify-content: center;
    text-align: left;
  }

  .provenance-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .provenance-img-wrap {
    margin: 0 auto;
    width: 100%;
    max-width: 420px;
  }
}

@media (max-width: 600px) {
  .lifestyle-grid {
    grid-template-columns: 1fr;
  }

  .contents-grid {
    grid-template-columns: 1fr;
  }

  .content-item:nth-child(even) { border-right: 1px solid rgba(212,168,67,0.08); }
  .content-item:nth-child(3)    { border-bottom: 1px solid rgba(212,168,67,0.08); }
  .content-item:last-child      { border-bottom: none; }

  .journal-cover {
    width: 260px;
    height: 260px;
  }

  .product-meta {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }
}

/* ─── REDUCED MOTION ─── */

@media (prefers-reduced-motion: reduce) {
  .scroll-line { animation: none !important; }
  .journal-img-wrap,
  .lifestyle-img { transition: none !important; }
}
