@font-face {
  font-family: "PrimeHaven Display";
  src: url("/fonts/PrimeHavenDisplay.otf") format("opentype");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --ph-black: #050507;
  --ph-carbon: #0a0b10;
  --ph-surface: rgba(13, 15, 22, 0.84);
  --ph-surface-solid: #0e1017;
  --ph-gold: #c9a227;
  --ph-gold-bright: #e7ca73;
  --ph-blue: #1034a6;
  --ph-blue-glow: #295bf2;
  --ph-ivory: #f5f2eb;
  --ph-muted: #a7a49d;
  --ph-border: rgba(201, 162, 39, 0.22);
  --ph-border-soft: rgba(255, 255, 255, 0.09);
  --ph-font-display: "PrimeHaven Display", "Georgia", serif;
  --ph-font-sans: "Inter", "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;
  --ph-font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
  --ph-ease: cubic-bezier(0.22, 1, 0.36, 1);
  transition: --ph-gold 0.6s ease, --ph-blue 0.6s ease;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--ph-black);
  color: var(--ph-ivory);
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--ph-black);
  color: var(--ph-ivory);
  font-family: var(--ph-font-sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  line-height: 1.5;
}

::selection {
  background: rgba(201, 162, 39, 0.35);
  color: #fff;
}

/* Shady Panoramic Roku-Style Canvas */
#ph-street-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

#ph-street-vignette {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 25%, transparent 18%, rgba(5, 5, 7, 0.72) 100%),
    linear-gradient(180deg, rgba(5, 5, 7, 0.62) 0%, rgba(5, 5, 7, 0.18) 38%, rgba(5, 5, 7, 0.88) 100%);
}

#ph-cursor-aura {
  position: fixed;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 2;
  transform: translate3d(-50%, -50%, 0);
  background: radial-gradient(circle, rgba(201, 162, 39, 0.08) 0%, rgba(16, 52, 166, 0.06) 40%, transparent 72%);
  transition: opacity 0.3s ease;
}

#app-shell {
  position: relative;
  z-index: 10;
  min-height: 100vh;
}

/* Typography */
.font-ph-display {
  font-family: var(--ph-font-display);
  letter-spacing: 0.04em;
}

.font-mono-tech {
  font-family: var(--ph-font-mono);
}

.gold-gradient-text {
  background: linear-gradient(135deg, #fff6d6 0%, var(--ph-gold-bright) 38%, var(--ph-gold) 70%, #8f6e14 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Luxury Obsidian Surfaces */
.ph-panel {
  background: linear-gradient(160deg, rgba(16, 19, 29, 0.84) 0%, rgba(7, 8, 13, 0.92) 100%);
  border: 1px solid var(--ph-border-soft);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.72), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.ph-panel-gold {
  border-color: var(--ph-border);
  box-shadow: 0 24px 65px rgba(0, 0, 0, 0.78), 0 0 0 1px rgba(16, 52, 166, 0.2), inset 0 1px 0 rgba(231, 202, 115, 0.14);
}

.ph-container {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Announcement & Occasion Bar */
.ph-occasion-bar {
  background: linear-gradient(90deg, rgba(16, 52, 166, 0.42) 0%, rgba(10, 11, 16, 0.95) 50%, rgba(201, 162, 39, 0.25) 100%);
  border-bottom: 1px solid rgba(201, 162, 39, 0.28);
  padding: 8px 16px;
  font-family: var(--ph-font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: center;
  color: var(--ph-ivory);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.ph-occasion-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 10px;
  border-radius: 999px;
  background: rgba(201, 162, 39, 0.16);
  border: 1px solid rgba(201, 162, 39, 0.45);
  color: var(--ph-gold-bright);
  font-weight: 600;
}

/* Sticky Flagship Shopify-Plus Header */
.ph-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(5, 6, 10, 0.84);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--ph-border-soft);
  transition: border-color 0.3s var(--ph-ease), background 0.3s var(--ph-ease);
}

.ph-header-inner {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.ph-brand-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.ph-brand-emblem {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(201, 162, 39, 0.38);
  background: radial-gradient(circle at 30% 25%, rgba(201, 162, 39, 0.18), rgba(8, 10, 16, 0.95));
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.35s var(--ph-ease), border-color 0.35s var(--ph-ease);
}

.ph-brand-lockup:hover .ph-brand-emblem {
  transform: scale(1.06) rotate(-2deg);
  border-color: var(--ph-gold-bright);
}

.ph-brand-emblem img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.ph-nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.ph-nav a, .ph-nav button {
  background: none;
  border: none;
  padding: 6px 0;
  color: #cfccc4;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  position: relative;
  transition: color 0.25s ease;
}

.ph-nav a::after, .ph-nav button::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1.5px;
  background: linear-gradient(90deg, var(--ph-gold), var(--ph-blue-glow));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ph-ease);
}

.ph-nav a:hover, .ph-nav button:hover {
  color: #fff;
}

.ph-nav a:hover::after, .ph-nav button:hover::after {
  transform: scaleX(1);
}

.ph-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ph-btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 13px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: var(--ph-ivory);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s var(--ph-ease);
}

.ph-btn-ghost:hover {
  border-color: rgba(201, 162, 39, 0.5);
  background: rgba(201, 162, 39, 0.1);
  transform: translateY(-1px);
}

.ph-btn-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 12px;
  border: 1px solid rgba(231, 202, 115, 0.55);
  background: linear-gradient(135deg, #e7ca73 0%, #c9a227 55%, #9f7c17 100%);
  color: #050507;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(201, 162, 39, 0.25);
  transition: transform 0.25s var(--ph-ease), box-shadow 0.25s var(--ph-ease), filter 0.25s ease;
}

.ph-btn-gold:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
  box-shadow: 0 14px 34px rgba(201, 162, 39, 0.36);
}

.ph-btn-gold:active {
  transform: translateY(0);
}

.ph-btn-blue {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 12px;
  border: 1px solid rgba(41, 91, 242, 0.55);
  background: linear-gradient(135deg, rgba(16, 52, 166, 0.9), rgba(10, 29, 98, 0.95));
  color: #f5f2eb;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.25s var(--ph-ease);
}

.ph-btn-blue:hover {
  border-color: #6b93ff;
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(16, 52, 166, 0.42);
}

.ph-badge-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: #050507;
  color: var(--ph-gold-bright);
  font-family: var(--ph-font-mono);
  font-size: 11px;
  font-weight: 700;
}

/* Hero Section */
.ph-hero {
  padding: 54px 0 42px;
}

.ph-hero-grid {
  display: grid;
  grid-template-columns: 1.18fr 0.82fr;
  gap: 44px;
  align-items: center;
}

.ph-hero-title {
  margin: 18px 0 0;
  font-family: var(--ph-font-display);
  font-size: clamp(2.6rem, 5.2vw, 4.4rem);
  line-height: 1.02;
  font-weight: 700;
  color: var(--ph-ivory);
  text-shadow: 0 8px 34px rgba(0, 0, 0, 0.85);
}

.ph-hero-sub {
  margin: 18px 0 0;
  max-width: 610px;
  font-size: 16px;
  color: #cac6bd;
  line-height: 1.65;
}

.ph-kpi-row {
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.ph-kpi-card {
  padding: 14px;
  border-radius: 14px;
  border: 1px solid rgba(201, 162, 39, 0.22);
  background: rgba(10, 12, 19, 0.78);
  transition: transform 0.28s var(--ph-ease), border-color 0.28s ease;
}

.ph-kpi-card:hover {
  transform: translateY(-3px);
  border-color: var(--ph-gold);
}

/* 3D Branding Monolith */
.ph-monolith-stage {
  perspective: 1100px;
  display: flex;
  justify-content: center;
}

.ph-monolith {
  position: relative;
  width: 100%;
  max-width: 370px;
  min-height: 410px;
  border-radius: 28px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(155deg, rgba(16, 22, 42, 0.88) 0%, rgba(6, 7, 11, 0.96) 55%, rgba(18, 15, 8, 0.94) 100%);
  border: 1px solid rgba(201, 162, 39, 0.38);
  box-shadow: 0 36px 90px rgba(0, 0, 0, 0.9), 0 0 55px rgba(16, 52, 166, 0.24), inset 0 1px 0 rgba(231, 202, 115, 0.25);
  transform-style: preserve-3d;
  transition: transform 0.16s ease-out;
}

.ph-monolith-glare {
  position: absolute;
  inset: 0;
  border-radius: 28px;
  pointer-events: none;
  background: radial-gradient(circle at 50% 35%, rgba(231, 202, 115, 0.16), transparent 60%);
}

.ph-monolith-logo {
  width: 196px;
  height: 196px;
  object-fit: contain;
  transform: translateZ(48px);
  filter: drop-shadow(0 16px 28px rgba(0, 0, 0, 0.95)) sepia(0.35) saturate(1.4) hue-rotate(-8deg);
}

/* Editorial Collection Runway */
.ph-runway-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 22px;
}

.ph-runway-card {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #090b11;
  aspect-ratio: 4 / 3;
  cursor: pointer;
  transition: transform 0.35s var(--ph-ease), border-color 0.35s ease;
}

.ph-runway-card:hover {
  transform: translateY(-4px);
  border-color: var(--ph-gold);
}

.ph-runway-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.72;
  transition: transform 0.55s var(--ph-ease), opacity 0.35s ease;
}

.ph-runway-card:hover img {
  transform: scale(1.07);
  opacity: 0.9;
}

.ph-runway-label {
  position: absolute;
  inset: auto 0 0 0;
  padding: 16px;
  background: linear-gradient(180deg, transparent, rgba(5, 5, 7, 0.94));
}

/* Product Grid (Shopify Plus Style) */
.ph-filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 20px;
  border-radius: 18px;
  margin-bottom: 24px;
}

.ph-chip {
  padding: 7px 15px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.03);
  color: #cfccc4;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.22s var(--ph-ease);
}

.ph-chip:hover {
  border-color: rgba(201, 162, 39, 0.5);
  color: #fff;
}

.ph-chip.active {
  background: linear-gradient(135deg, var(--ph-gold-bright), var(--ph-gold));
  border-color: var(--ph-gold-bright);
  color: #050507;
  font-weight: 700;
}

.ph-product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.ph-product-grid.cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ph-card {
  display: flex;
  flex-direction: column;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: linear-gradient(180deg, rgba(14, 16, 24, 0.88), rgba(7, 8, 13, 0.95));
  transition: transform 0.35s var(--ph-ease), border-color 0.35s ease, box-shadow 0.35s ease;
}

.ph-card:hover {
  transform: translateY(-6px);
  border-color: rgba(201, 162, 39, 0.52);
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.85), 0 0 32px rgba(16, 52, 166, 0.2);
}

.ph-card-media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #07080b;
}

.ph-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ph-ease);
}

.ph-card:hover .ph-card-media img {
  transform: scale(1.06);
}

.ph-quick-sizes {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  padding: 8px;
  border-radius: 12px;
  background: rgba(6, 7, 12, 0.88);
  border: 1px solid rgba(201, 162, 39, 0.35);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.25s var(--ph-ease), transform 0.25s var(--ph-ease);
}

.ph-card:hover .ph-quick-sizes {
  opacity: 1;
  transform: translateY(0);
}

.ph-size-pill {
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.05);
  color: var(--ph-ivory);
  font-family: var(--ph-font-mono);
  font-size: 10px;
  padding: 4px 8px;
  border-radius: 7px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.ph-size-pill:hover {
  background: var(--ph-gold);
  border-color: var(--ph-gold-bright);
  color: #050507;
  font-weight: 700;
}

/* Interactive Atmosphere & Season Bar */
.ph-season-dock {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 35;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(201, 162, 39, 0.36);
  background: rgba(7, 9, 14, 0.86);
  backdrop-filter: blur(14px);
  font-size: 11px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.75);
}

.ph-season-dock select {
  background: transparent;
  border: none;
  color: var(--ph-gold-bright);
  font-family: var(--ph-font-mono);
  font-size: 11px;
  outline: none;
  cursor: pointer;
}

.ph-season-dock option {
  background: #0a0c12;
  color: #f5f2eb;
}

/* Modals & Drawers */
.ph-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(3, 4, 7, 0.82);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  animation: phFadeIn 0.22s var(--ph-ease);
}

.ph-drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(3, 4, 7, 0.78);
  backdrop-filter: blur(6px);
  display: flex;
  justify-content: flex-end;
  animation: phFadeIn 0.2s ease;
}

.ph-drawer {
  width: 100%;
  max-width: 440px;
  height: 100%;
  background: #080a10;
  border-left: 1px solid rgba(201, 162, 39, 0.28);
  display: flex;
  flex-direction: column;
  animation: phSlideLeft 0.28s var(--ph-ease);
}

.ph-modal {
  width: 100%;
  max-width: 960px;
  max-height: 92vh;
  overflow-y: auto;
  border-radius: 26px;
  padding: 28px;
  animation: phScaleUp 0.26s var(--ph-ease);
}

/* Inputs */
.ph-input, .ph-select, .ph-textarea {
  width: 100%;
  padding: 10px 13px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(6, 8, 13, 0.86);
  color: var(--ph-ivory);
  font-size: 13px;
  outline: none;
  transition: border-color 0.2s ease;
}

.ph-input:focus, .ph-select:focus, .ph-textarea:focus {
  border-color: var(--ph-gold);
}

/* Custom Cartoon 404 Page */
.ph-404-wrap {
  min-height: 78vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 20px;
}

.ph-404-stage {
  position: relative;
  width: 100%;
  max-width: 520px;
  padding: 24px;
  border-radius: 28px;
}

.ph-404-bubble {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(16, 52, 166, 0.28);
  border: 1px solid rgba(41, 91, 242, 0.55);
  color: #dbe6ff;
  font-family: var(--ph-font-mono);
  font-size: 12px;
  margin-bottom: 12px;
}

/* Scroll Reveal Animation */
.ph-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.65s var(--ph-ease), transform 0.65s var(--ph-ease);
}

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

/* Toasts */
#ph-toast-root {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ph-toast {
  padding: 11px 16px;
  border-radius: 12px;
  background: rgba(8, 11, 18, 0.95);
  border: 1px solid rgba(201, 162, 39, 0.5);
  color: var(--ph-ivory);
  font-size: 12px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.8);
  animation: phScaleUp 0.22s var(--ph-ease);
}

@keyframes phFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes phSlideLeft {
  from { transform: translateX(40px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes phScaleUp {
  from { transform: scale(0.96) translateY(8px); opacity: 0; }
  to { transform: scale(1) translateY(0); opacity: 1; }
}

@media (max-width: 1080px) {
  .ph-hero-grid { grid-template-columns: 1fr; }
  .ph-product-grid, .ph-product-grid.cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ph-runway-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ph-nav { display: none; }
}

@media (max-width: 640px) {
  .ph-product-grid, .ph-product-grid.cols-3 { grid-template-columns: 1fr; }
  .ph-kpi-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ph-season-dock { left: 12px; bottom: 12px; }
}

