/* === NP78 Store — luxury product-page aesthetic === */
:root {
  --store-bg: #0a0a0a;
  --store-card-bg: #141414;
  --store-card-bg-hover: #1a1a1a;
  --store-ink: #f5f0e8;
  --store-muted: rgba(245, 240, 232, 0.55);
  --store-accent: #c48300;
  --store-radius: 18px;
}

.store-page {
  background: var(--store-bg);
  color: var(--store-ink);
  font-family: 'Inter', sans-serif;
  min-height: 100vh;
}

.store-main {
  padding-top: 4.5rem; /* clear the fixed header */
}

/* === Header cart icon === */
.header-cart {
  color: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  margin-right: 0.5rem;
  opacity: 0.85;
  transition: opacity 0.2s;
}
.header-cart:hover { opacity: 1; }

/* === HERO === */
.store-hero {
  position: relative;
  padding: clamp(4rem, 10vw, 9rem) clamp(1.5rem, 4vw, 5rem) clamp(3rem, 6vw, 5rem);
  overflow: hidden;
  text-align: center;
}

.store-hero-bg {
  position: absolute;
  inset: -10%;
  background:
    radial-gradient(circle at 30% 20%, rgba(196, 131, 0, 0.18), transparent 35%),
    radial-gradient(circle at 80% 70%, rgba(196, 131, 0, 0.08), transparent 40%),
    linear-gradient(180deg, #050505 0%, #0a0a0a 100%);
  z-index: 0;
}

.store-hero-content {
  position: relative;
  z-index: 1;
  max-width: 60rem;
  margin: 0 auto;
}

.store-eyebrow {
  display: inline-block;
  margin: 0 0 1rem;
  padding: 4px 14px;
  border: 1px solid rgba(245, 240, 232, 0.4);
  border-radius: 999px;
  font-family: 'Inter', sans-serif;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(245, 240, 232, 0.85);
}

.store-hero h1 {
  margin: 0;
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: clamp(2.6rem, 6vw, 5.2rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1;
  color: var(--store-ink);
}

.store-hero-sub {
  margin: 1.5rem auto 2rem;
  max-width: 36rem;
  font-size: clamp(1rem, 1.2vw, 1.15rem);
  line-height: 1.6;
  color: var(--store-muted);
}

.store-cta {
  display: inline-block;
  padding: 0.9rem 2rem;
  background: #fff;
  color: #1d1d1f;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  border-radius: 999px;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}
.store-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

/* === PRODUCT GRID === */
.store-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 2rem);
  padding: clamp(2rem, 4vw, 4rem) clamp(1.5rem, 4vw, 5rem);
  max-width: 1440px;
  margin: 0 auto;
}

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

/* === EMPTY STATE — product collection not yet live === */
.store-grid--empty {
  grid-template-columns: 1fr;
  min-height: clamp(22rem, 50vh, 36rem);
  place-items: center;
}

.store-empty {
  text-align: center;
  max-width: 34rem;
  padding: clamp(2rem, 4vw, 4rem) 1rem;
}

.store-empty-title {
  font-family: 'Bebas Neue', 'Inter', sans-serif;
  font-size: clamp(2.5rem, 6vw, 4.75rem);
  letter-spacing: 0.04em;
  line-height: 1;
  color: var(--paper, #f5f0e8);
  margin: 0 0 0.9rem;
}

.store-empty-sub {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: clamp(0.95rem, 1.4vw, 1.05rem);
  line-height: 1.55;
  color: rgba(245, 240, 232, 0.62);
  margin: 0;
}

.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--store-card-bg);
  border-radius: var(--store-radius);
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              background 0.35s ease,
              box-shadow 0.35s ease;
  isolation: isolate;
}

.product-card:hover {
  transform: translateY(-4px);
  background: var(--store-card-bg-hover);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.4);
}

/* === 3D MEDIA AREA (model-viewer) === */
.product-media {
  position: relative;
  width: 100%;
  height: clamp(20rem, 38vw, 30rem);
  background:
    radial-gradient(circle at 50% 40%, rgba(196, 131, 0, 0.12), transparent 60%),
    linear-gradient(180deg, #1c1c1c 0%, #0e0e0e 100%);
  overflow: hidden;
}

.product-media model-viewer {
  width: 100%;
  height: 100%;
  --poster-color: transparent;
  background-color: transparent;
}

/* Subtle vignette so the model floats nicely */
.product-media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 55%, rgba(0,0,0,0.5) 100%);
}

/* === INFO BELOW === */
.product-info {
  padding: 1.6rem 1.8rem 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.product-tag {
  display: inline-block;
  width: fit-content;
  padding: 3px 10px;
  border: 1px solid rgba(196, 131, 0, 0.4);
  border-radius: 999px;
  color: var(--store-accent);
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

.product-info h3 {
  margin: 0;
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: clamp(1.6rem, 2.2vw, 2.1rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--store-ink);
}

.product-desc {
  margin: 0 0 0.6rem;
  color: var(--store-muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.product-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: auto;
  padding-top: 0.6rem;
}

.product-price {
  font-family: 'Inter', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--store-ink);
}

.product-buy {
  padding: 0.6rem 1.2rem;
  background: var(--store-accent);
  color: #fff;
  border: none;
  border-radius: 999px;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: transform 0.2s, opacity 0.2s;
}
.product-buy:hover {
  transform: translateY(-1px);
  opacity: 0.92;
}

/* === FOOTER === */
.store-footer {
  margin-top: 4rem;
  padding: 3rem clamp(1.5rem, 4vw, 5rem);
  border-top: 1px solid rgba(245, 240, 232, 0.08);
  text-align: center;
}

.store-footer-inner {
  max-width: 40rem;
  margin: 0 auto;
}

.store-footer-logo {
  height: 1.8rem;
  width: auto;
  margin: 0 auto 1rem;
  display: block;
}

.store-footer p {
  margin: 0;
  color: var(--store-muted);
  font-size: 0.85rem;
  line-height: 1.6;
}

/* ─── Store drop-alert signup ───────────────────────────────────────
   Lives inside the .store-empty block. Same shape as the footer
   newsletter form but styled to match the store's slightly more
   product-page palette (white text on the warm black background). */
.store-notify {
  width: min(28rem, 100%);
  margin: 1.6rem auto 0;
  text-align: left;
}
.store-notify-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1.3fr auto;
  gap: 0.45rem;
}
@media (max-width: 820px) {
  .store-notify-row { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .store-notify-row { grid-template-columns: 1fr; }
}
.store-notify-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 0.5rem;
  padding: 0.7rem 0.9rem;
  color: var(--paper, #f5f0e8);
  font: 400 0.95rem/1.3 'Inter', system-ui, sans-serif;
  transition: border-color 180ms ease, background 180ms ease;
}
.store-notify-input:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(214, 194, 143, 0.7);
}
.store-notify-input::placeholder { color: rgba(245, 240, 232, 0.35); }
.store-notify-input[aria-invalid="true"] { border-color: rgba(230, 59, 59, 0.7); }

.store-notify-btn {
  background: var(--paper, #f5f0e8);
  color: var(--ink, #160f13);
  border: 0;
  border-radius: 0.5rem;
  padding: 0.7rem 1.3rem;
  font: 600 0.8rem/1 'Inter', system-ui, sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 180ms ease, opacity 180ms ease;
}
.store-notify-btn:hover { transform: translateY(-1px); }
.store-notify-btn:disabled { opacity: 0.5; cursor: progress; transform: none; }

.store-notify-status {
  min-height: 1.2em;
  margin: 0.75rem 0 0;
  text-align: center;
  font: 400 0.86rem/1.4 'Inter', system-ui, sans-serif;
  color: rgba(245, 240, 232, 0.65);
}
.store-notify-status[data-state="success"] { color: rgba(122, 220, 130, 0.92); }
.store-notify-status[data-state="error"]   { color: rgba(248, 113, 113, 0.92); }

.store-notify[data-submitted="true"] .store-notify-row { display: none; }
