/* Apple single listing — ethereal dark · frosted glass · visual-first */
:root {
  --cream: #fff8ee;
  --cream-soft: rgba(255, 248, 238, 0.86);
  --muted: rgba(255, 248, 238, 0.58);
  --honey: #e8b84a;
  --rose: #e8a0b0;
  --apple-red: #e53935;
  --apple-green: #43a047;
  --violet: #b08ad4;
  --ink: #080510;
  --glass-border: rgba(220, 200, 255, 0.38);
  --radius: 18px;
  --font: "Source Sans 3", system-ui, sans-serif;
  --serif: "Cormorant Garamond", Georgia, serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--cream);
  line-height: 1.55;
  background:
    radial-gradient(ellipse at 18% 8%, rgba(140, 70, 190, 0.42), transparent 48%),
    radial-gradient(ellipse at 88% 22%, rgba(232, 110, 160, 0.22), transparent 42%),
    radial-gradient(ellipse at 50% 95%, rgba(212, 176, 106, 0.1), transparent 38%),
    linear-gradient(180deg, #140c28 0%, #0a0614 55%, #06040e 100%);
}
body.calm { --glass-border: rgba(200, 180, 255, 0.22); }

.banner {
  text-align: center;
  padding: 0.45rem 1rem;
  background: linear-gradient(90deg, rgba(180, 60, 90, 0.92), rgba(90, 40, 120, 0.92));
  color: var(--cream);
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(255, 200, 180, 0.35);
}
.banner a { color: #ffd978; text-decoration: none; margin-left: 0.65rem; }

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 1.35rem 1.1rem 3.5rem;
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.35rem;
  margin-bottom: 2rem;
}
@media (min-width: 860px) {
  .hero { grid-template-columns: 1.05fr 0.95fr; align-items: start; }
}

.hero__shot {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1.5px solid var(--glass-border);
  background: rgba(12, 8, 28, 0.65);
  box-shadow: 0 0 36px rgba(140, 100, 220, 0.28), 0 12px 32px rgba(0, 0, 0, 0.35);
  aspect-ratio: 4 / 3;
}
.hero__shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero__badge {
  position: absolute;
  left: 0.85rem;
  bottom: 0.85rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(12, 8, 28, 0.72);
  border: 1px solid rgba(255, 200, 180, 0.35);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.buy {
  padding: 1.35rem 1.4rem 1.5rem;
  border-radius: var(--radius);
  border: 1.5px solid var(--glass-border);
  background: linear-gradient(165deg, rgba(255, 248, 255, 0.14), rgba(170, 150, 255, 0.09) 42%, rgba(255, 200, 170, 0.07));
  backdrop-filter: blur(16px) saturate(1.25);
  -webkit-backdrop-filter: blur(16px) saturate(1.25);
  box-shadow: 0 0 28px rgba(140, 100, 220, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}
.buy__eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--honey);
}
.buy__title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.75rem, 3.5vw, 2.35rem);
  margin: 0 0 0.25rem;
  line-height: 1.15;
  text-shadow: 0 0 18px rgba(180, 140, 255, 0.35);
}
.buy__meta {
  margin: 0 0 0.85rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--muted);
}
.buy__price {
  margin: 0 0 0.85rem;
  font-size: clamp(1.85rem, 3vw, 2.25rem);
  font-weight: 800;
  color: #ffd978;
  letter-spacing: -0.02em;
}
.buy__price span {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.04em;
  margin-top: 0.15rem;
}
.buy__craft {
  margin: 0 0 1.15rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--cream-soft);
  max-width: 28rem;
}
.buy__craft em { color: var(--rose); font-style: normal; font-weight: 700; }

.buy__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.75rem;
}
.btn {
  appearance: none;
  cursor: pointer;
  border: 1.5px solid rgba(232, 184, 74, 0.65);
  background: linear-gradient(165deg, rgba(255, 248, 200, 0.22), rgba(120, 60, 160, 0.4));
  color: var(--cream);
  border-radius: 999px;
  padding: 0.65rem 1.25rem;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 0 18px rgba(232, 184, 74, 0.2);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}
.btn:hover { border-color: #ffd978; box-shadow: 0 0 24px rgba(232, 184, 74, 0.35); }
.btn:focus-visible { outline: 2px solid var(--violet); outline-offset: 2px; }
.btn--ghost {
  border-color: rgba(200, 180, 255, 0.35);
  background: rgba(20, 12, 40, 0.45);
  box-shadow: none;
  font-weight: 700;
  font-size: 0.86rem;
  padding: 0.55rem 0.95rem;
}
.btn--icon {
  width: 2.55rem;
  height: 2.55rem;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  border-color: rgba(200, 180, 255, 0.4);
  background: linear-gradient(165deg, rgba(255, 248, 255, 0.12), rgba(30, 18, 55, 0.45));
  box-shadow: 0 0 14px rgba(140, 100, 220, 0.25);
}
.btn--icon[aria-expanded="true"] {
  border-color: rgba(232, 184, 74, 0.85);
  box-shadow: 0 0 20px rgba(232, 184, 74, 0.3);
}

.buy__selected {
  min-height: 1.25rem;
  margin: 0 0 0.35rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--violet);
}
.buy__note {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
}

/* Palette drawer */
.palette {
  position: relative;
  margin-top: 0.85rem;
}
.palette__panel {
  display: none;
  margin-top: 0.75rem;
  padding: 1rem 1.05rem 1.1rem;
  border-radius: 16px;
  border: 1.5px solid var(--glass-border);
  background: linear-gradient(168deg, rgba(255, 255, 255, 0.1), rgba(30, 18, 55, 0.55) 55%, rgba(18, 12, 40, 0.45));
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  box-shadow: 0 0 28px rgba(140, 100, 220, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.palette__panel.is-open { display: block; }
.palette__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.palette__head h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 600;
}
.palette__close {
  appearance: none;
  cursor: pointer;
  border: none;
  background: transparent;
  color: var(--cream);
  font-size: 1.25rem;
  line-height: 1;
  padding: 0.25rem;
  opacity: 0.75;
}
.palette__close:hover { opacity: 1; }
.palette__hint {
  margin: 0 0 0.85rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
}
.palette__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(3.1rem, 1fr));
  gap: 0.55rem;
}
.swatch {
  appearance: none;
  cursor: pointer;
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  padding: 0.35rem 0.3rem 0.4rem;
  background: rgba(8, 5, 16, 0.45);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.28rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.swatch:hover { border-color: rgba(255, 217, 120, 0.55); }
.swatch.is-active {
  border-color: rgba(232, 184, 74, 0.9);
  box-shadow: 0 0 14px rgba(232, 184, 74, 0.35);
}
.swatch__triple {
  display: flex;
  gap: 3px;
}
.swatch__dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  flex-shrink: 0;
}
.swatch__n {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.swatch--freeform {
  grid-column: 1 / -1;
  flex-direction: row;
  justify-content: flex-start;
  gap: 0.55rem;
  padding: 0.55rem 0.75rem;
  margin-top: 0.25rem;
}
.swatch--freeform .swatch__n {
  font-size: 0.78rem;
  color: var(--cream-soft);
}

/* Gallery */
.section {
  margin: 2.25rem 0;
}
.section__head {
  margin-bottom: 0.95rem;
}
.section__eyebrow {
  margin: 0 0 0.25rem;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--honey);
}
.section__title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.45rem, 2.8vw, 1.9rem);
  margin: 0 0 0.35rem;
  text-shadow: 0 0 14px rgba(180, 140, 255, 0.3);
}
.section__lede {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--muted);
  max-width: 36rem;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.65rem;
}
@media (min-width: 700px) {
  .gallery { grid-template-columns: repeat(3, 1fr); gap: 0.85rem; }
}
.gallery__item {
  appearance: none;
  cursor: pointer;
  padding: 0;
  border: 1.5px solid var(--glass-border);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(12, 8, 28, 0.55);
  box-shadow: 0 0 18px rgba(140, 100, 220, 0.18);
  position: relative;
  aspect-ratio: 4 / 3;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.gallery__item:hover {
  border-color: rgba(255, 180, 210, 0.55);
  box-shadow: 0 0 26px rgba(232, 120, 160, 0.28);
}
.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.gallery__cap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 0.4rem 0.55rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  background: linear-gradient(transparent, rgba(8, 5, 16, 0.85));
  color: var(--cream-soft);
}

/* Lightbox */
.lb {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(6, 4, 14, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.lb.is-open { display: flex; }
.lb__frame {
  position: relative;
  z-index: 1;
  max-width: min(920px, 96vw);
  max-height: 88vh;
  border-radius: 20px;
  border: 1.5px solid var(--glass-border);
  background: linear-gradient(165deg, rgba(255, 248, 255, 0.1), rgba(20, 12, 40, 0.75));
  box-shadow: 0 0 48px rgba(140, 100, 220, 0.4);
  overflow: hidden;
  /* soft polygon feel via clip-path + radius */
  clip-path: polygon(2% 0%, 98% 0%, 100% 3%, 100% 97%, 98% 100%, 2% 100%, 0% 97%, 0% 3%);
  pointer-events: none;
}
.lb__frame img, .lb__frame .lb__cap { pointer-events: auto; }
.lb__img {
  display: block;
  max-width: 100%;
  max-height: 78vh;
  width: auto;
  height: auto;
  margin: 0 auto;
}
.lb__cap {
  padding: 0.75rem 1.1rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--cream-soft);
  text-align: center;
}
.lb__nav, .lb__close {
  appearance: none;
  cursor: pointer;
  border: 2px solid rgba(255, 217, 120, 0.85);
  background: rgba(8, 4, 20, 0.88);
  color: #fff8ee;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 999px;
  width: 3.25rem;
  height: 3.25rem;
  min-width: 52px;
  min-height: 52px;
  font-size: 1.85rem;
  line-height: 1;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  z-index: 2147483001;
  box-shadow: 0 0 0 2px rgba(0,0,0,0.45), 0 0 22px rgba(232, 184, 74, 0.45);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.lb__close {
  top: max(0.75rem, env(safe-area-inset-top));
  right: max(0.75rem, env(safe-area-inset-right));
  font-size: 1.6rem;
}
.lb__nav--prev {
  left: max(0.45rem, env(safe-area-inset-left));
  top: 50%;
  transform: translateY(-50%);
}
.lb__nav--next {
  right: max(0.45rem, env(safe-area-inset-right));
  top: 50%;
  transform: translateY(-50%);
}
.lb__nav:hover, .lb__close:hover,
.lb__nav:focus-visible, .lb__close:focus-visible {
  border-color: #ffe6a0;
  background: rgba(40, 20, 70, 0.95);
  outline: none;
  box-shadow: 0 0 0 2px rgba(0,0,0,0.5), 0 0 28px rgba(255, 217, 120, 0.65);
}
@media (max-width: 720px) {
  .lb__nav, .lb__close {
    width: 3.6rem;
    height: 3.6rem;
    min-width: 58px;
    min-height: 58px;
    font-size: 2.1rem;
  }
  .lb__close { font-size: 1.75rem; }
  .lb { padding: 0.35rem; }
  .lb__frame { max-width: 100vw; max-height: 82vh; }
  .lb__img { max-height: 72vh; }
}

/* Ship section */
.ship-wrap {
  max-width: 720px;
  margin: 0 auto;
}
.ship-wrap .esp { max-width: none; }
.rsp__tiers, .rsp__zones {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
}
.rsp__choice {
  appearance: none;
  cursor: pointer;
  text-align: left;
  width: 100%;
  border: 1.5px solid rgba(200, 180, 255, 0.28);
  background: linear-gradient(165deg, rgba(255, 248, 255, 0.08), rgba(30, 18, 55, 0.4));
  color: var(--cream);
  border-radius: 14px;
  padding: 0.75rem 0.95rem;
  font: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.rsp__choice.is-active {
  border-color: rgba(232, 184, 74, 0.85);
  box-shadow: 0 0 18px rgba(232, 184, 74, 0.22);
}
.rsp__choice-label {
  margin: 0 0 0.15rem;
  font-size: 0.92rem;
  font-weight: 800;
}
.rsp__choice-tag {
  margin: 0;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--muted);
}
.rsp__line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.35rem 0;
  font-size: 0.9rem;
  font-weight: 700;
}
.rsp__line span:last-child { color: #ffd978; font-variant-numeric: tabular-nums; }
.rsp__standing {
  margin: 0.85rem 0 0;
  padding: 0.75rem 0.9rem;
  border-radius: 12px;
  border: 1px solid rgba(232, 184, 74, 0.35);
  background: rgba(232, 184, 74, 0.08);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--cream-soft);
}

.foot {
  margin-top: 2.5rem;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
}
.foot a { color: #d4b8ff; text-decoration: none; font-weight: 700; }
.foot a:hover { color: #ffd978; }

/* Optional soft embers — reduced-motion / calm safe */
.embers {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.embers span {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(255, 200, 160, 0.45);
  box-shadow: 0 0 8px rgba(255, 180, 140, 0.35);
  animation: float-ember 14s linear infinite;
  opacity: 0.5;
}
@keyframes float-ember {
  0% { transform: translateY(100vh) scale(0.6); opacity: 0; }
  10% { opacity: 0.5; }
  90% { opacity: 0.35; }
  100% { transform: translateY(-10vh) scale(1); opacity: 0; }
}
html.calm-mode .embers,
body.calm .embers { display: none !important; }
@media (prefers-reduced-motion: reduce) {
  .embers { display: none !important; }
}
.wrap, .banner { position: relative; z-index: 1; }

/* Lightbox MUST stay fixed fullscreen — never share the .wrap relative stack */
.lb {
  position: fixed !important;
  inset: 0 !important;
  z-index: 2147483000 !important;
}


/* ENCHANT lightbox polish */
.lb {
  background: rgba(4, 2, 12, 0.88);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
}
.lb__frame {
  border-color: rgba(220, 200, 255, 0.5);
  box-shadow:
    0 0 56px rgba(140, 100, 220, 0.5),
    0 0 80px rgba(255, 140, 180, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
  clip-path: polygon(2.2% 0%, 97.8% 0%, 100% 2.8%, 100% 97.2%, 97.8% 100%, 2.2% 100%, 0% 97.2%, 0% 2.8%);
}
.lb__nav:hover, .lb__close:hover {
  border-color: #ffd978;
  box-shadow: 0 0 16px rgba(232, 184, 74, 0.4);
}
.gallery__item {
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.2s ease;
}
.gallery__item:hover {
  transform: translateY(-3px);
}
@media (prefers-reduced-motion: reduce) {
  .gallery__item:hover { transform: none; }
}


/* Apple placeholder hero — premium card until product photo */
.apple-ph {
  width: 100%;
  height: 100%;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  text-align: center;
  padding: 2rem 1.25rem;
  background:
    radial-gradient(ellipse at 40% 35%, rgba(229, 57, 53, 0.28), transparent 55%),
    radial-gradient(ellipse at 65% 60%, rgba(67, 160, 71, 0.22), transparent 50%),
    linear-gradient(165deg, rgba(20, 12, 32, 0.92), rgba(10, 6, 18, 0.95));
}
.apple-ph__emoji {
  font-size: clamp(4.5rem, 14vw, 6.5rem);
  line-height: 1;
  filter: drop-shadow(0 8px 24px rgba(229, 57, 53, 0.45));
  user-select: none;
}
.apple-ph__title {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 600;
  color: #fff8ee;
  letter-spacing: 0.02em;
}
.apple-ph__note {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 217, 120, 0.85);
}
.apple-ph__meta {
  margin: 0.15rem 0 0;
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255, 248, 238, 0.55);
}
.pj-hero__shot--ph {
  background: rgba(8, 5, 16, 0.7);
}
.pj-palette__hint--simple {
  font-size: 0.78rem;
}


/* Hero tap-to-expand */
.pj-hero__shot[data-hero-open] { cursor: zoom-in; }


/* Impulse Buy Now */
.pj-btn--buy{
  background: linear-gradient(135deg,#ffe566 0%,#e8b84a 45%,#c4892a 100%) !important;
  color:#1a140e !important;
  border-color:#c4892a !important;
  font-weight:900 !important;
  letter-spacing:.02em;
  box-shadow:0 10px 28px rgba(200,140,40,.45), 0 0 0 1px rgba(255,229,102,.35) inset;
  transform:translateZ(0);
}
.pj-btn--buy:hover,.pj-btn--buy:focus-visible{
  filter:brightness(1.05);
  box-shadow:0 14px 34px rgba(200,140,40,.55), 0 0 0 1px rgba(255,229,102,.5) inset;
}
