/* ═══════════════════════════════════════════════════
   RayLynX · Clean Futuristic Light v3
   ═══════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&family=Fraunces:ital,wght@0,300;0,400;0,700;0,900;1,300;1,400;1,700;1,900&family=JetBrains+Mono:wght@400;500;600;700;800&family=Sora:wght@500;600;700;800&family=Space+Grotesk:wght@500;700&display=swap');

/* ── TOKENS ── */
:root {
  --bg:        #ebdccb;
  --glass:     rgba(255,255,255,0.55);
  --glass2:    rgba(255,255,255,0.85);
  --border:    rgba(255,255,255,0.65);
  --border2:   rgba(200,180,160,0.45);
  --ink:       #0A0F1E;
  --ink2:      #3A4560;
  --dim:       #8090A8;
  --dim2:      #B8C4D4;
  --green:     #16784A;
  --green-lt:  rgba(22,120,74,0.1);
  --blue:      #1A4A96;
  --blue-lt:   rgba(26,74,150,0.1);
  --red:       #B03030;
  --red-lt:    rgba(176,48,48,0.1);
  --shadow-sm: 0 2px 8px rgba(20,40,100,0.08);
  --shadow-md: 0 8px 28px rgba(20,40,100,0.1), 0 2px 8px rgba(20,40,100,0.06);
  --shadow-lg: 0 20px 56px rgba(20,40,100,0.13), 0 4px 16px rgba(20,40,100,0.07);
  --shadow-xl: 0 36px 80px rgba(20,40,100,0.15), 0 8px 24px rgba(20,40,100,0.08);
  --shadow-glass: 0 24px 70px rgba(20,40,100,0.14), inset 0 1px 0 rgba(255,255,255,0.72);
  --blur: blur(24px) saturate(1.6);
  --r-sm:  10px;
  --r-md:  16px;
  --r-lg:  24px;
  --r-xl:  36px;
  --r-full:999px;
  --nav-h: 70px;
  --ease: cubic-bezier(0.4,0,0.2,1);
  --spring: cubic-bezier(0.34,1.56,0.64,1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: var(--bg);
  color: var(--ink);
  min-height: 100vh;
  overflow-x: hidden;
  background-image:
    radial-gradient(ellipse 90% 70% at 0% 0%, rgba(120,170,255,0.14) 0%, transparent 55%),
    radial-gradient(ellipse 70% 50% at 100% 80%, rgba(22,120,74,0.09) 0%, transparent 55%),
    radial-gradient(ellipse 50% 40% at 60% 30%, rgba(255,255,255,0.5) 0%, transparent 60%);
  background-attachment: fixed;
  position: relative;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
input, textarea { font-family: inherit; }

::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 99px; }
::selection { background: var(--green); color: #fff; }

/* Ambient background blobs */
body::before, body::after {
  content: ''; position: fixed; border-radius: 50%;
  filter: blur(90px); pointer-events: none; z-index: -1;
}
/* Disable animated blur blobs on iOS to save GPU memory */
.rlx-ios body::before,
.rlx-ios body::after {
  display: none !important;
}
body::before {
  width: 600px; height: 600px;
  background: rgba(26,74,150,0.07);
  top: -150px; left: -150px;
  animation: blobFloat 15s ease-in-out infinite alternate;
}
body::after {
  width: 500px; height: 500px;
  background: rgba(22,120,74,0.06);
  bottom: -100px; right: -100px;
  animation: blobFloat 18s ease-in-out infinite alternate-reverse;
}
body > * {
  position: relative;
  z-index: 1;
}
@keyframes blobFloat {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(50px, 40px) scale(1.12); }
}

/* ══ NAVBAR ══ */
.navbar {
  position: sticky; top: 0; z-index: 900;
  height: var(--nav-h);
  background: linear-gradient(135deg, rgba(255,255,255,0.38), rgba(255,255,255,0.22));
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border-bottom: 1px solid var(--border2);
  box-shadow: var(--shadow-glass);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 clamp(1.2rem, 4vw, 3.5rem);
}

/* LOGO — single clean color, no multi-color */
.logo {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.65rem; font-weight: 800;
  letter-spacing: -0.065em;
  color: var(--ink);
  display: flex; align-items: center; gap: 0.5rem;
  user-select: none; white-space: nowrap;
  text-transform: uppercase;
}
.logo-icon {
  width: 36px; height: 36px;
  background: var(--ink);
  color: #fff; border-radius: 10px;
  display: grid; place-items: center;
  font-size: 0.95rem; font-weight: 900; flex-shrink: 0;
  transition: transform 0.3s var(--spring);
}
.logo-icon.logo-image {
  background: #fff;
  overflow: hidden;
  padding: 2px;
}
.logo-icon.logo-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  border-radius: 8px;
}
.logo:hover .logo-icon { transform: rotate(10deg) scale(1.08); }
/* Override color spans for logo — all same ink color */
.logo .g, .logo .y, .logo .p { color: inherit; }

.nav-links { display: flex; align-items: center; gap: 0.15rem; margin-left: auto; }
.nav-links a {
  font-size: 0.875rem; font-weight: 500; color: var(--ink2);
  padding: 0.48rem 0.85rem; border-radius: var(--r-full);
  transition: all 0.2s var(--ease);
}
.nav-links a:hover { color: var(--ink); background: rgba(255,255,255,0.75); }
.nav-links a.active { color: var(--ink); background: var(--glass2); box-shadow: var(--shadow-sm); }

.join-link {
  background: var(--ink) !important; color: #fff !important;
  padding: 0.48rem 1.25rem !important; border-radius: var(--r-full) !important;
  font-weight: 600 !important; box-shadow: 0 4px 14px rgba(10,15,30,0.2) !important;
  transition: all 0.25s var(--ease) !important;
}
.join-link:hover { opacity: 0.85 !important; transform: translateY(-1px) !important; }

.nav-user-panel {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-left: 0.3rem;
}

.nav-username {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0.48rem 0.95rem;
  border-radius: var(--r-full);
  background: rgba(255,255,255,0.82);
  border: 1.5px solid var(--border2);
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}

.nav-logout {
  min-height: 38px;
  padding: 0.48rem 1rem;
  border-radius: var(--r-full);
  background: transparent;
  border: 1.5px solid var(--border2);
  color: var(--ink2);
  font-size: 0.8rem;
  font-weight: 700;
  transition: all 0.2s var(--ease);
}

.nav-logout:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.cart-icon {
  display: flex !important; align-items: center !important; gap: 0.4rem !important;
  background: var(--glass2) !important; border: 1.5px solid var(--border2) !important;
  padding: 0.44rem 1rem !important; border-radius: var(--r-full) !important;
  font-size: 0.875rem !important; font-weight: 600 !important; color: var(--ink) !important;
  box-shadow: var(--shadow-sm) !important; transition: all 0.2s !important;
}
.cart-icon:hover { transform: translateY(-1px) !important; box-shadow: var(--shadow-md) !important; }

#globalCartCount {
  background: var(--green); color: #fff;
  font-size: 0.65rem; font-weight: 700;
  width: 18px; height: 18px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: 'JetBrains Mono', monospace;
}

.hamburger { display: none; flex-direction: column; gap: 5px; width: 36px; padding: 4px; }
.hamburger span { display: block; height: 2px; background: var(--ink); border-radius: 2px; transition: all 0.3s; transform-origin: center; }
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* ══ WRAPPER ══ */
.wrapper { max-width: 1340px; margin: 0 auto; padding: clamp(2rem,5vw,4rem) clamp(1.2rem,4vw,3rem); }
main { animation: pageIn 0.55s var(--ease) both; }
@keyframes pageIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }

/* ══ HERO ══ */
.hero {
  display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem;
  align-items: center;
  min-height: calc(100vh - var(--nav-h) - 60px);
  padding: 1rem 0 2rem;
}
.hero-left { display: flex; flex-direction: column; gap: 2rem; }

.hero-tag {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: 'JetBrains Mono', monospace; font-size: 0.7rem; font-weight: 500;
  color: var(--dim); letter-spacing: 0.14em; text-transform: uppercase;
  padding: 0.38rem 1rem;
  background: var(--glass); backdrop-filter: blur(10px);
  border: 1px solid var(--border); border-radius: var(--r-full);
  width: fit-content; box-shadow: var(--shadow-sm);
}
.hero-tag::before { content: '◆'; color: var(--green); font-size: 0.45rem; }

/* HERO H1 — single clean color, no rainbow */
.hero h1 {
  font-family: 'Sora', 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(3.15rem, 5.8vw, 5.85rem);
  line-height: 0.98;
  letter-spacing: -0.065em;
  font-weight: 700;
  color: var(--ink);
  text-wrap: balance;
}
.hero h1 span {
  display: inline-block;
  opacity: 0;
  transform: translateY(20px);
  animation: headlineRise 0.8s var(--spring) forwards;
}
.hero h1 span:nth-of-type(1) { animation-delay: 0.08s; }
.hero h1 span:nth-of-type(2) { animation-delay: 0.16s; }
.hero h1 span:nth-of-type(3) { animation-delay: 0.24s; }
.hero h1 span:nth-of-type(4) { animation-delay: 0.32s; }
@keyframes headlineRise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* Only the italic accent lines get color */
.line-green { color: var(--green); }
.line-yellow { color: var(--ink); }
.line-white  { color: var(--ink); }
.line-pink   { color: var(--blue); }

.hero-desc {
  font-size: 1rem; color: var(--ink2); line-height: 1.78;
  max-width: 440px; font-weight: 400;
  animation: fadeUpSoft 0.8s var(--ease) 0.35s both;
}
@keyframes fadeUpSoft { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.btn-primary {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--ink); color: #fff;
  font-size: 0.9rem; font-weight: 700;
  padding: 0.9rem 2.2rem; border-radius: var(--r-full);
  transition: all 0.3s var(--ease); cursor: pointer; border: none;
  box-shadow: 0 10px 26px rgba(10,15,30,0.2); letter-spacing: 0.01em;
}
.btn-primary:hover { background: var(--green); transform: translateY(-3px); box-shadow: 0 16px 36px rgba(22,120,74,0.28); }

.btn-outline {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: linear-gradient(135deg, rgba(255,255,255,0.72), rgba(255,255,255,0.48)); backdrop-filter: blur(12px);
  color: var(--ink); font-size: 0.9rem; font-weight: 600;
  padding: 0.9rem 2.2rem; border-radius: var(--r-full);
  border: 1.5px solid var(--border2); transition: all 0.3s var(--ease);
  cursor: pointer; box-shadow: var(--shadow-sm);
}
.btn-outline:hover { border-color: var(--ink); transform: translateY(-2px); box-shadow: var(--shadow-md); }

.hero-stats {
  display: flex; gap: 2.5rem;
  padding: 1.4rem 2rem;
  background: var(--glass); backdrop-filter: var(--blur);
  border: 1px solid var(--border); border-radius: var(--r-lg);
  box-shadow: var(--shadow-glass); width: fit-content;
  animation: fadeUpSoft 0.85s var(--ease) 0.48s both;
}
.hero-stat { display: flex; flex-direction: column; gap: 0.15rem; }
.hero-stat strong {
  font-family: 'Fraunces', serif;
  font-size: 2rem; font-weight: 900; line-height: 1; color: var(--ink);
}
.hero-stat span { font-size: 0.7rem; color: var(--dim); font-weight: 500; text-transform: uppercase; letter-spacing: 0.1em; }

/* ── HERO RIGHT: Open shaped image, no rectangle frame ── */
.hero-right {
  position: relative;
  display: flex; align-items: center; justify-content: center;
}

/* The image container — circle/organic shape, no box */
.hero-img-wrap {
  position: relative;
  width: 100%;
  max-width: 560px;
  min-height: 620px;
}

/* Shaded gradient behind the person — no box frame */
.hero-img-bg {
  position: absolute;
  inset: -5% -8%;
  border-radius: 60% 40% 55% 45% / 50% 55% 45% 50%;
  background: radial-gradient(ellipse at 40% 30%,
    rgba(140,180,255,0.22) 0%,
    rgba(180,220,255,0.14) 35%,
    rgba(220,235,255,0.08) 60%,
    transparent 80%);
  animation: morphShape 8s ease-in-out infinite alternate;
  z-index: 0;
}
@keyframes morphShape {
  0%   { border-radius: 60% 40% 55% 45% / 50% 55% 45% 50%; transform: scale(1) rotate(0deg); }
  50%  { border-radius: 45% 55% 40% 60% / 55% 45% 55% 45%; transform: scale(1.03) rotate(2deg); }
  100% { border-radius: 55% 45% 60% 40% / 45% 50% 50% 55%; transform: scale(0.98) rotate(-1deg); }
}

/* Second glow layer */
.hero-img-bg2 {
  position: absolute;
  inset: 10% 15%;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(200,220,255,0.25) 0%, transparent 70%);
  z-index: 0;
  animation: glowPulse 4s ease-in-out infinite alternate;
}
@keyframes glowPulse {
  from { transform: scale(0.95); opacity: 0.7; }
  to   { transform: scale(1.05); opacity: 1; }
}

/* Image: NO rectangular clip — use mask for soft organic fade */
.hero-showcase {
  position: relative;
  width: 100%;
  min-height: 620px;
  display: grid;
  place-items: center;
  isolation: isolate;
}
.hero-spotlight {
  position: absolute;
  inset: 10% 4% 6%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 45%, rgba(255,255,255,0.98) 0%, rgba(236,244,255,0.56) 28%, rgba(184,245,226,0.12) 50%, transparent 75%),
    radial-gradient(circle at 50% 88%, rgba(16,20,32,0.1) 0%, transparent 46%);
  z-index: 0;
}
.hero-showcase-orbit {
  overflow: visible;
}
.hero-orbit { display: none; }
.hero-core-glow {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 320px;
  height: 320px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(26,74,150,0.14), rgba(22,120,74,0.11) 36%, rgba(255,255,255,0) 72%),
    conic-gradient(from 0deg, rgba(26,74,150,0.08), rgba(22,120,74,0.06), rgba(245,166,35,0.05), rgba(26,74,150,0.08));
  filter: blur(16px);
  z-index: 1;
  animation: glowPulseCore 3.2s ease-in-out infinite alternate;
}
@keyframes glowPulseCore {
  from { opacity: .55; transform: translate(-50%, -50%) scale(.92); }
  to { opacity: 1; transform: translate(-50%, -50%) scale(1.08); }
}
.orbit-shirt {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  width: 325px;
  display: flex;
  justify-content: center;
  align-items: center;
  transform: translate(-50%, -50%);
  animation: horizontalCarousel 7.1s cubic-bezier(.55,.08,.32,.99) infinite;
  opacity: .22;
}
.orbit-shirt img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  mix-blend-mode: multiply;
  filter: contrast(1.05) saturate(1.08) drop-shadow(0 24px 34px rgba(10,15,30,0.18)) drop-shadow(0 0 28px rgba(26,74,150,0.12));
}
.orbit-shirt-1 { animation-delay: 0s; }
.orbit-shirt-2 { animation-delay: -1.42s; }
.orbit-shirt-3 { animation-delay: -2.84s; }
.orbit-shirt-4 { animation-delay: -4.26s; }
.orbit-shirt-5 { animation-delay: -5.68s; }
@keyframes horizontalCarousel {
  0%, 20% {
    transform: translate(-50%, -50%) translateX(0) scale(1.16) rotate(-1deg);
    opacity: 1;
    z-index: 6;
  }
  10% {
    transform: translate(-50%, -50%) translateX(0) scale(1.22) rotate(1.7deg);
    opacity: 1;
    z-index: 6;
  }
  24%, 40% {
    transform: translate(-50%, -50%) translateX(185px) scale(.86);
    opacity: .42;
    z-index: 3;
  }
  44%, 60% {
    transform: translate(-50%, -50%) translateX(315px) scale(.64);
    opacity: .18;
    z-index: 1;
  }
  64%, 80% {
    transform: translate(-50%, -50%) translateX(-315px) scale(.64);
    opacity: .18;
    z-index: 1;
  }
  84%, 96% {
    transform: translate(-50%, -50%) translateX(-185px) scale(.86);
    opacity: .42;
    z-index: 3;
  }
  100% {
    transform: translate(-50%, -50%) translateX(0) scale(1.16) rotate(-1deg);
    opacity: 1;
    z-index: 6;
  }
}
.hero-beam {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 3px;
  height: 340px;
  transform-origin: center bottom;
  background: linear-gradient(to top, transparent, rgba(22,120,74,0.18), rgba(26,74,150,0.12), rgba(245,166,35,0.1), transparent);
  z-index: 1;
  filter: blur(.5px);
}
.hero-beam-1 { transform: translate(-50%, -50%) rotate(24deg); animation: beamPulse 2.8s ease-in-out infinite; }
.hero-beam-2 { transform: translate(-50%, -50%) rotate(90deg); animation: beamPulse 2.8s ease-in-out .8s infinite; }
.hero-beam-3 { transform: translate(-50%, -50%) rotate(156deg); animation: beamPulse 2.8s ease-in-out 1.4s infinite; }
@keyframes beamPulse {
  0%,100% { opacity: .18; height: 220px; }
  50% { opacity: .55; height: 290px; }
}
/* Floating cards */
.hero-float {
  position: absolute; z-index: 4;
  background: linear-gradient(145deg, rgba(255,255,255,0.86), rgba(255,255,255,0.58)); backdrop-filter: var(--blur);
  border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 0.9rem 1.3rem; box-shadow: var(--shadow-glass);
  display: flex; align-items: center; gap: 0.75rem;
}
.hero-float-1 { top: 8%; right: -4%; animation: floatA 3.5s ease-in-out infinite; }
.hero-float-2 { bottom: 12%; left: -4%; animation: floatB 3.5s ease-in-out infinite; }
@keyframes floatA { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes floatB { 0%,100% { transform: translateY(0); } 50% { transform: translateY(8px); } }

.hero-float-icon { font-size: 1.4rem; }
.hero-float-text strong { font-size: 0.85rem; font-weight: 700; color: var(--ink); display: block; line-height: 1.3; }
.hero-float-text span  { font-size: 0.7rem; color: var(--dim); }

/* Rotating badge */
.hero-badge {
  position: absolute; top: 0; left: 2%;
  width: 66px; height: 66px; z-index: 5;
  background: var(--ink);
  color: #fff; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: 'JetBrains Mono', monospace; font-size: 0.52rem; font-weight: 700;
  text-align: center; letter-spacing: 0.08em; line-height: 1.5;
  text-transform: uppercase;
  animation: rotateBadge 9s linear infinite;
  box-shadow: 0 4px 16px rgba(10,15,30,0.3);
}
@keyframes rotateBadge { to { transform: rotate(360deg); } }

/* Walker — NO rectangle background, floats freely */
/* ══ TICKER ══ */
.ticker-wrap {
  overflow: hidden; background: linear-gradient(135deg, rgba(10,15,30,0.92), rgba(24,36,66,0.88));
  padding: 0.72rem 0; border-radius: var(--r-lg); margin: 2rem 0;
  box-shadow: 0 14px 36px rgba(10,15,30,0.2);
  contain: paint;
  min-height: 2.35rem;
}
.ticker-track { position: absolute; top: 0.72rem; left: 0; display: flex; gap: 4rem; width: max-content; animation: ticker 34s linear infinite; }
.ticker-track:hover { animation-play-state: paused; }
.ticker-item {
  display: flex; align-items: center; gap: 0.6rem;
  font-family: 'JetBrains Mono', monospace; font-size: 0.68rem; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase; white-space: nowrap;
  color: rgba(255,255,255,0.65);
}
.ticker-dot { width: 4px; height: 4px; background: var(--green); border-radius: 50%; flex-shrink: 0; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ══ SECTION HEADER ══ */
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 2.5rem; }
.sec-head h2 {
  font-family: 'Fraunces', serif;
  font-size: clamp(1.8rem, 3vw, 2.8rem); letter-spacing: -0.035em; font-weight: 700;
}
.accent-g { color: var(--green); font-style: italic; }
.accent-y { color: var(--blue); font-style: italic; }
.sec-link {
  font-family: 'JetBrains Mono', monospace; font-size: 0.7rem; font-weight: 500;
  color: var(--dim); display: flex; align-items: center; gap: 0.4rem;
  transition: all 0.2s; white-space: nowrap; text-transform: uppercase; letter-spacing: 0.08em;
}
.sec-link:hover { color: var(--green); gap: 0.8rem; }

/* ══ FILTER PILLS ══ */
.cat-pills { display: flex; gap: 0.55rem; flex-wrap: wrap; margin-bottom: 2.5rem; }
.cat-pill, .filter {
  display: flex; align-items: center; gap: 0.45rem;
  padding: 0.5rem 1.2rem; border-radius: var(--r-full);
  background: var(--glass); backdrop-filter: blur(12px);
  border: 1.5px solid var(--border2);
  font-size: 0.82rem; font-weight: 500; color: var(--ink2);
  cursor: pointer; transition: all 0.22s var(--ease);
  box-shadow: var(--shadow-sm);
}
.cat-pill:hover, .filter:hover { border-color: var(--ink); color: var(--ink); transform: translateY(-1px); }
.cat-pill.active, .filter.active { background: var(--ink); color: #fff; border-color: transparent; box-shadow: 0 6px 18px rgba(10,15,30,0.2); }
.pill-count { font-family: 'JetBrains Mono', monospace; font-size: 0.63rem; opacity: 0.6; }

/* ══ PRODUCT CARDS ══ */
.products-grid, .featured-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(252px,1fr)); gap: 1.3rem;
}
.product-card {
  background: linear-gradient(145deg, rgba(255,255,255,0.78), rgba(255,255,255,0.58)); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden;
  cursor: pointer; transition: all 0.38s var(--ease);
  animation: fadeUp 0.5s both; box-shadow: var(--shadow-md); position: relative;
}
/* iOS Safari: disable backdrop-filter on product cards globally */
.rlx-ios .product-card {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  background: rgba(255,255,255,0.88);
}
.product-card::before {
  content: ''; position: absolute; inset: 0; border-radius: var(--r-lg);
  background: linear-gradient(145deg, rgba(255,255,255,0.28) 0%, transparent 55%);
  pointer-events: none; z-index: 1;
}
.product-card:hover { transform: translateY(-9px) scale(1.01); box-shadow: var(--shadow-xl); border-color: rgba(255,255,255,0.9); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: translateY(0); } }

.product-img {
  aspect-ratio: 1; position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.product-img img { width: 100%; height: 100%; object-fit: contain; object-position: center; padding: 0.45rem; transition: transform 0.55s var(--ease); display: block; }
.product-card:hover .product-img img { transform: scale(1.07); }
.product-img-overlay { position: absolute; inset: 0; background: linear-gradient(to bottom, transparent 55%, rgba(10,20,50,0.28)); z-index: 2; }
.product-cat-badge {
  position: absolute; top: 0.7rem; right: 0.7rem; z-index: 3;
  font-family: 'JetBrains Mono', monospace; font-size: 0.58rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.08em;
  padding: 0.22rem 0.65rem; border-radius: var(--r-full);
  background: rgba(255,255,255,0.82); backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.6); color: var(--ink2);
}

.product-info { padding: 1rem 1.1rem 1.2rem; display: flex; flex-direction: column; gap: 0.35rem; position: relative; z-index: 2; }
.product-name {
  font-family: 'Fraunces', serif; font-size: 1rem; font-weight: 700;
  letter-spacing: -0.02em; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.product-bottom { display: flex; align-items: center; justify-content: space-between; margin-top: 0.35rem; padding-top: 0.65rem; border-top: 1px solid var(--border2); }
.product-price { font-family: 'Fraunces', serif; font-size: 1.12rem; font-weight: 900; letter-spacing: -0.03em; color: var(--ink); }
.preorder-price-wrap { display: flex; align-items: baseline; gap: 0.35rem; flex-wrap: wrap; }
.original-price { color: var(--dim); text-decoration: line-through; text-decoration-thickness: 0.08em; font-size: 0.9em; }
.price-arrow { color: var(--dim); font-size: 0.8em; }
.preorder-price { color: var(--ink); }
.preorder-badge { font-family: 'JetBrains Mono', monospace; font-size: 0.55rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--green); background: var(--glass); border: 1px solid var(--border2); border-radius: var(--r-full); padding: 0.14rem 0.42rem; }
.preorder-delivery { margin-top: 0.16rem; font-family: 'JetBrains Mono', monospace; font-size: 0.58rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--green); }
.cart-item-price .preorder-price-wrap { justify-content: flex-end; }
.cart-item-price .preorder-delivery { text-align: right; }
.cart-item-status { margin-top: 0.24rem; font-family: 'JetBrains Mono', monospace; font-size: 0.64rem; font-weight: 700; color: var(--green); text-transform: uppercase; letter-spacing: 0.07em; }
.product-add {
  width: 32px; height: 32px; background: var(--ink); color: #fff; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; font-weight: 300; transition: all 0.3s var(--spring); flex-shrink: 0;
  box-shadow: 0 3px 10px rgba(10,15,30,0.2);
}
.product-card:hover .product-add { background: var(--green); transform: rotate(90deg) scale(1.12); }

/* ══ STORE HEADER ══ */
.store-header { margin-bottom: 2.5rem; display: flex; flex-direction: column; gap: 1.4rem; }
.store-header h1 { font-family: 'Fraunces', serif; font-size: clamp(2.2rem,4.5vw,3.8rem); letter-spacing: -0.04em; font-weight: 900; }

.store-controls {
  padding: 1.2rem;
  display: flex;
  gap: 1rem;
  align-items: center;
  background: var(--glass2);
  border-radius: var(--r-lg);
  border: 1.5px solid var(--border2);
  box-shadow: var(--shadow-sm);
}

.store-input-wrap {
  position: relative;
  flex: 1;
}

.store-input {
  width: 100%;
  border: 1.5px solid var(--border2);
  border-radius: var(--r-md);
  background: #fff;
  padding: 0.75rem 1rem 0.75rem 2.5rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink);
  outline: none;
  transition: all 0.25s var(--ease);
}

/* Custom search icon */
.store-input-wrap::before {
  content: '🔍';
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1rem;
  color: var(--dim);
  pointer-events: none;
}

.store-select-wrap {
  position: relative;
  min-width: 180px;
}

.store-select {
  width: 100%;
  appearance: none;
  border: 1.5px solid var(--border2);
  border-radius: var(--r-md);
  background: #fff;
  padding: 0.75rem 2.5rem 0.75rem 1rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink);
  outline: none;
  cursor: pointer;
  transition: all 0.25s var(--ease);
}

/* Custom dropdown icon */
.store-select-wrap::after {
  content: '▼';
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.8rem;
  color: var(--dim);
  pointer-events: none;
}

.store-input:focus,
.store-select:focus {
  border-color: var(--ink);
  box-shadow: 0 0 0 4px rgba(10, 15, 30, 0.08);
}

.store-reset {
  padding: 0.75rem 1.5rem;
  background: var(--glass2);
  border: 1.5px solid var(--border2);
  border-radius: var(--r-md);
  color: var(--ink2);
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.25s var(--ease);
}

.store-reset:hover {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
  transform: translateY(-1px);
}

/* ══ MODAL ══ */
.modal-overlay {
  display: none; position: fixed; inset: 0; z-index: 1000;
  background: rgba(8,12,28,0.5); backdrop-filter: blur(10px);
  align-items: center; justify-content: center; padding: 1.5rem;
}
.modal-overlay.is-open { display: flex; animation: fadeIn 0.2s; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal-box {
  background: var(--glass2); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
  border: 1.5px solid var(--border); border-radius: var(--r-xl);
  width: 100%; max-width: 840px; max-height: 90vh; overflow-y: auto;
  display: grid; grid-template-columns: 1fr 1fr; position: relative;
  box-shadow: var(--shadow-xl); animation: slideUp 0.32s var(--ease);
}
@keyframes slideUp { from { opacity: 0; transform: translateY(28px) scale(0.97); } to { opacity: 1; transform: none; } }

.modal-close {
  position: absolute; top: 1rem; right: 1rem;
  width: 36px; height: 36px;
  background: var(--glass2); backdrop-filter: blur(8px);
  border: 1.5px solid var(--border2); border-radius: 50%;
  font-size: 1rem; color: var(--ink); display: grid; place-items: center;
  transition: all 0.25s var(--spring); z-index: 2; cursor: pointer;
}
.modal-close:hover { background: var(--ink); color: #fff; transform: rotate(90deg) scale(1.08); }

.modal-img { min-height: 380px; border-radius: var(--r-xl) 0 0 var(--r-xl); position: relative; overflow: hidden; }
.modal-img img { width: 100%; height: 100%; object-fit: contain; object-position: center; padding: 0.85rem; transition: transform .45s var(--ease), filter .45s var(--ease); }
.modal-img.is-coming-soon img { filter: blur(24px) saturate(.28) contrast(.82); transform: scale(1.02); }
.modal-img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to bottom, transparent 55%, rgba(8,12,28,0.25)); }
.modal-img.is-coming-soon::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(40,175,255,0.16), rgba(4,12,30,0.55)); opacity: .88; pointer-events: none; }
.modal-img.is-coming-soon .coming-soon-overlay { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 1.2rem; z-index: 2; pointer-events: none; animation: revealBlur 0.45s ease-out forwards; }
.modal-img.is-coming-soon .coming-soon-overlay::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255,255,255,0.03), transparent 22%, rgba(255,255,255,0.05) 35%, transparent 54%, rgba(255,255,255,0.03) 100%); filter: blur(8px); opacity: .45; }
.modal-img.is-coming-soon .coming-soon-overlay > * { position: relative; z-index: 1; }
.coming-soon-card { width: min(88%, 340px); padding: 1rem 1.2rem; border-radius: 22px; background: rgba(4,14,30,0.58); border: 1px solid rgba(255,255,255,0.12); backdrop-filter: blur(18px); box-shadow: 0 20px 50px rgba(0,110,190,0.16); text-align: center; }
.coming-soon-card .title { font-family: 'Fraunces', serif; margin: 0; color: #e8fbff; text-transform: uppercase; letter-spacing: .32rem; font-size: 1.06rem; text-shadow: 0 10px 28px rgba(0,160,255,0.14); }
.coming-soon-card .subtitle { margin: 0; font-family: 'JetBrains Mono', monospace; color: #cdeafd; font-size: .78rem; letter-spacing: .16em; opacity: .88; }
.coming-soon-card .eye-icon { width: 44px; height: 44px; margin: 0 auto .65rem; opacity: .94; }
@keyframes revealBlur { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.modal-body { padding: 2.4rem 2rem 2.4rem 1.8rem; display: flex; flex-direction: column; gap: 0.95rem; overflow-y: auto; }
.modal-cat { font-family: 'JetBrains Mono', monospace; font-size: 0.67rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em; color: var(--green); }
.modal-title { font-family: 'Fraunces', serif; font-size: 1.85rem; font-weight: 900; letter-spacing: -0.04em; line-height: 1.1; }
.modal-desc { font-size: 0.88rem; color: var(--ink2); line-height: 1.75; }
.modal-price { font-family: 'Fraunces', serif; font-size: 2rem; font-weight: 900; letter-spacing: -0.04em; color: var(--ink); }
.modal-rating { display: flex; align-items: center; gap: 0.5rem; font-size: 0.85rem; color: #D4A017; }
.modal-rating span { color: var(--dim); font-size: 0.8rem; }
.modal-rate-section { padding-top: 1rem; border-top: 1px solid var(--border2); margin-top: 0.5rem; }
.modal-rate-label { font-family: 'JetBrains Mono', monospace; font-size: 0.67rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--dim); margin-bottom: 0.5rem; }
.star-rating-interactive { display: flex; gap: 0.35rem; font-size: 1.6rem; color: #d7dce5; cursor: pointer; line-height: 1; }
.star-rating-interactive .star { transition: color 0.2s var(--ease), transform 0.2s var(--ease); display: inline-block; }
.star-rating-interactive .star:hover, .star-rating-interactive .star.active { color: #D4A017; }
.star-rating-interactive .star.hover-active { color: #ebbc3b; transform: scale(1.15); }
.rating-feedback { display: none; font-size: 0.8rem; font-weight: 700; color: var(--green); margin-top: 0.5rem; animation: slideUp 0.3s var(--ease); }
.modal-size-label { font-family: 'JetBrains Mono', monospace; font-size: 0.67rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--dim); }
.modal-sizes { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.sz-btn {
  width: 44px; height: 44px;
  background: var(--glass); backdrop-filter: blur(8px);
  border: 1.5px solid var(--border2); border-radius: var(--r-sm);
  font-size: 0.82rem; font-weight: 600; color: var(--ink);
  cursor: pointer; transition: all 0.2s var(--ease); display: grid; place-items: center;
}
.sz-btn:hover { border-color: var(--ink); transform: scale(1.05); }
.sz-btn.picked { background: var(--ink); color: #fff; border-color: transparent; }
.modal-size-info {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.45rem;
  margin-top: -0.15rem;
  padding: 0.65rem;
  background: var(--glass);
  border: 1px solid var(--border2);
  border-radius: var(--r-sm);
}
.size-info-empty {
  grid-column: 1 / -1;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--dim);
}
.size-info-item {
  min-width: 0;
  padding: 0.45rem 0.5rem;
  background: rgba(255,255,255,0.58);
  border: 1px solid var(--border2);
  border-radius: var(--r-sm);
}
.size-info-item span,
.size-info-item strong {
  display: block;
  overflow-wrap: anywhere;
}
.size-info-item span {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--dim);
}
.size-info-item strong {
  margin-top: 0.18rem;
  font-family: 'Fraunces', serif;
  font-size: 1rem;
  font-weight: 900;
  color: var(--ink);
}

.modal-meta { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.modal-tag {
  font-family: 'JetBrains Mono', monospace; font-size: 0.63rem;
  padding: 0.28rem 0.75rem;
  background: var(--glass); backdrop-filter: blur(8px);
  border: 1px solid var(--border2); border-radius: var(--r-full);
  color: var(--dim); font-weight: 500; text-transform: uppercase; letter-spacing: 0.07em;
}
.modal-atc {
  width: 100%; padding: 1rem;
  background: var(--ink); color: #fff;
  border: none; border-radius: var(--r-md);
  font-size: 0.95rem; font-weight: 700; cursor: pointer;
  transition: all 0.25s var(--ease); margin-top: auto;
  box-shadow: 0 5px 18px rgba(10,15,30,0.2);
}
.modal-atc:hover { background: var(--green); transform: translateY(-2px); box-shadow: 0 10px 28px rgba(22,120,74,0.3); }
.modal-atc:disabled,
.modal-atc.is-disabled,
.modal-atc.is-disabled:hover {
  background: #aeb6c4;
  color: #eef2f7;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* ══ TOAST ══ */
#rlx-toast {
  position: fixed; bottom: 2rem; left: 50%;
  transform: translateX(-50%) translateY(18px);
  background: var(--glass2); backdrop-filter: var(--blur);
  color: var(--ink); padding: 0.85rem 1.9rem; border-radius: var(--r-full);
  font-size: 0.88rem; font-weight: 600; z-index: 9999;
  opacity: 0; transition: all 0.3s var(--ease);
  white-space: nowrap; box-shadow: var(--shadow-xl);
  pointer-events: none; border: 1.5px solid var(--border2);
}
#rlx-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ══ SOCIAL STRIP ══ */
.social-strip {
  display: flex; align-items: center; gap: 1rem;
  padding: 1.3rem 1.8rem;
  background: var(--glass); backdrop-filter: var(--blur);
  border: 1px solid var(--border); border-radius: var(--r-full);
  margin: 2rem 0 3rem; box-shadow: var(--shadow-sm); flex-wrap: wrap;
}
.social-strip > span { font-family: 'JetBrains Mono', monospace; font-size: 0.67rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--dim); font-weight: 500; margin-right: 0.4rem; }
.social-strip a {
  font-size: 0.85rem; font-weight: 600; color: var(--ink2);
  padding: 0.38rem 0.95rem; border-radius: var(--r-full);
  background: var(--glass2); border: 1px solid var(--border2);
  transition: all 0.22s var(--ease); box-shadow: var(--shadow-sm);
}
.social-strip a:hover { background: var(--ink); color: #fff; border-color: transparent; transform: translateY(-2px); }

.custom-order-section {
  margin: 2.4rem 0 0;
}

.custom-order-card {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1.2rem;
  align-items: center;
  padding: 1.6rem 1.8rem;
  background: var(--glass);
  backdrop-filter: var(--blur);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-sm);
}

.custom-order-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.67rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--green);
  margin-bottom: 0.5rem;
}

.custom-order-card h2 {
  font-family: 'Fraunces', serif;
  font-size: clamp(1.55rem, 2.5vw, 2.25rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
  color: var(--ink);
  margin-bottom: 0.7rem;
}

.custom-order-card p {
  color: var(--ink2);
  font-size: 0.9rem;
  line-height: 1.7;
  max-width: 720px;
}

.custom-order-checklist {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  justify-content: flex-end;
}

.custom-order-checklist span {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--ink2);
  padding: 0.42rem 0.8rem;
  background: var(--glass2);
  border: 1px solid var(--border2);
  border-radius: var(--r-full);
  box-shadow: var(--shadow-sm);
}

/* ══ TRUST STRIP ══ */
.trust-strip {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(145px,1fr));
  gap: 1px; background: var(--border2);
  border: 1px solid var(--border2); border-radius: var(--r-xl); overflow: hidden;
  margin: 3rem 0; box-shadow: var(--shadow-sm);
}
.trust-item { background: var(--glass); backdrop-filter: var(--blur); padding: 1.4rem 1rem; display: flex; flex-direction: column; align-items: center; gap: 0.45rem; text-align: center; text-decoration: none; transition: background 0.18s; }
.trust-item:hover { background: var(--glass2); }
.trust-icon { font-size: 1.5rem; }
.trust-item strong { font-size: 0.85rem; font-weight: 700; color: var(--ink); }
.trust-item span { font-size: 0.73rem; color: var(--dim); }

/* ══ CART ══ */
.page-title { font-family: 'Fraunces', serif; font-size: clamp(2rem,4vw,3.2rem); letter-spacing: -0.04em; margin-bottom: 2rem; font-weight: 900; }
.cart-layout { display: grid; grid-template-columns: 1fr 336px; gap: 2rem; align-items: start; }
.cart-items-section { background: var(--glass); backdrop-filter: var(--blur); border: 1px solid var(--border); border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow-sm); }
.cart-head-row { display: grid; grid-template-columns: 1fr 80px 110px 44px; padding: 0.95rem 1.5rem; background: rgba(255,255,255,0.5); border-bottom: 1px solid var(--border2); font-family: 'JetBrains Mono', monospace; font-size: 0.67rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--dim); }
.cart-item { display: grid; grid-template-columns: 1fr 80px 110px 44px; align-items: center; padding: 1.05rem 1.5rem; border-bottom: 1px solid var(--border2); animation: fadeUp 0.32s both; transition: background 0.15s; }
.cart-item:last-child { border-bottom: none; }
.cart-item:hover { background: rgba(255,255,255,0.5); }
.cart-item-product { display: flex; align-items: center; gap: 0.9rem; min-width: 0; }
.cart-item-img { width: 58px; height: 58px; border-radius: var(--r-md); overflow: hidden; flex-shrink: 0; border: 1px solid var(--border2); }
.cart-item-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-name { font-family: 'Fraunces', serif; font-size: 0.92rem; font-weight: 700; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: -0.02em; }
.cart-item-size { font-family: 'JetBrains Mono', monospace; font-size: 0.73rem; font-weight: 600; color: var(--dim); background: var(--glass); border: 1px solid var(--border2); padding: 0.22rem 0.6rem; border-radius: var(--r-sm); width: fit-content; }
.cart-item-qty { font-size: 0.82rem; color: var(--dim); font-weight: 700; text-align: center; }
.cart-item-price { font-family: 'Fraunces', serif; font-size: 0.98rem; font-weight: 900; color: var(--ink); letter-spacing: -0.03em; }
.cart-item-remove { width: 32px; height: 32px; background: var(--glass); border: 1.5px solid var(--border2); border-radius: 50%; color: var(--dim); font-size: 0.88rem; display: grid; place-items: center; cursor: pointer; transition: all 0.22s var(--spring); justify-self: center; }
.cart-item-remove:hover { background: var(--red-lt); border-color: var(--red); color: var(--red); transform: rotate(90deg) scale(1.08); }

.empty-cart { text-align: center; padding: 5rem 2rem; display: flex; flex-direction: column; align-items: center; gap: 0.75rem; }
.empty-icon { font-size: 3.2rem; }
.empty-cart h3 { font-family: 'Fraunces', serif; font-size: 1.4rem; letter-spacing: -0.03em; }
.empty-cart p { color: var(--dim); font-size: 0.88rem; }

.order-summary { background: var(--glass); backdrop-filter: var(--blur); border: 1px solid var(--border); border-radius: var(--r-xl); padding: 1.8rem; display: flex; flex-direction: column; gap: 1rem; position: sticky; top: calc(var(--nav-h) + 1.5rem); box-shadow: var(--shadow-md); }
.order-summary h3 { font-family: 'Fraunces', serif; font-size: 1.25rem; letter-spacing: -0.03em; padding-bottom: 0.75rem; border-bottom: 1px solid var(--border2); }
.sum-row { display: flex; justify-content: space-between; align-items: center; font-size: 0.88rem; color: var(--ink2); }
.sum-row.total { font-family: 'Fraunces', serif; font-size: 1.25rem; font-weight: 900; color: var(--ink); letter-spacing: -0.03em; padding-top: 0.75rem; border-top: 2px solid var(--ink); margin-top: 0.25rem; }
.sum-free { color: var(--green) !important; font-weight: 700; }
.checkout-btn { width: 100%; padding: 1rem; background: var(--ink); color: #fff; border-radius: var(--r-md); font-size: 0.95rem; font-weight: 700; cursor: pointer; transition: all 0.25s var(--ease); border: none; box-shadow: 0 5px 18px rgba(10,15,30,0.2); }
.checkout-btn:hover { background: var(--green); transform: translateY(-2px); box-shadow: 0 10px 28px rgba(22,120,74,0.3); }
.clear-cart-btn { width: 100%; padding: 0.75rem; background: transparent; color: var(--red); border: 1.5px solid var(--red-lt); border-radius: var(--r-md); font-size: 0.85rem; font-weight: 600; cursor: pointer; transition: all 0.2s; }
.clear-cart-btn:hover { background: var(--red-lt); border-color: var(--red); }
.pay-badges { display: flex; gap: 0.45rem; justify-content: center; flex-wrap: wrap; padding-top: 0.25rem; }
.pay-badges span { font-family: 'JetBrains Mono', monospace; font-size: 0.63rem; font-weight: 500; padding: 0.28rem 0.75rem; background: var(--glass); border: 1px solid var(--border2); border-radius: var(--r-full); color: var(--dim); text-transform: uppercase; letter-spacing: 0.07em; }
.continue-link-wrap { padding: 1.1rem 1.5rem; border-top: 1px solid var(--border2); }
.continue-link { font-size: 0.85rem; font-weight: 600; color: var(--dim); display: flex; align-items: center; gap: 0.4rem; transition: all 0.2s; }
.continue-link:hover { color: var(--green); gap: 0.75rem; }

/* ══ ABOUT ══ */
.about-wrap { max-width: 920px; margin: 0 auto; }
.founders-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.3rem; margin-bottom: 3rem; }
.about-page .about-wrap {
  position: relative;
  isolation: isolate;
}
.about-page .about-wrap::before {
  content: '';
  position: absolute;
  inset: 5% -10% auto;
  height: 420px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 15% 20%, rgba(245, 164, 36, 0.22), transparent 34%),
    radial-gradient(circle at 82% 30%, rgba(26, 74, 150, 0.18), transparent 32%),
    radial-gradient(circle at 50% 85%, rgba(22, 120, 74, 0.16), transparent 36%);
  filter: blur(42px);
  z-index: -1;
  opacity: 0.95;
}
.founder-card {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(155deg, rgba(255,255,255,0.93), rgba(244,248,255,0.76) 45%, rgba(230,240,255,0.58) 100%);
  backdrop-filter: var(--blur);
  border: 1px solid rgba(255,255,255,0.86);
  border-radius: var(--r-xl);
  padding: 2.4rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.7rem;
  transition: transform 0.38s var(--spring), box-shadow 0.38s var(--ease), border-color 0.3s var(--ease);
  box-shadow: 0 22px 48px rgba(20,40,100,0.12), inset 0 1px 0 rgba(255,255,255,0.8);
}
.founder-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.42), transparent 34%, rgba(90,160,255,0.08) 74%, rgba(245,164,36,0.12));
  pointer-events: none;
}
.founder-card:hover {
  transform: translateY(-9px) rotateX(3deg) rotateY(-2deg);
  box-shadow: 0 28px 70px rgba(20,40,100,0.18), 0 10px 26px rgba(245,164,36,0.12);
  border-color: rgba(255,255,255,0.98);
}
.founder-avatar {
  font-size: 2.6rem;
  width: 72px;
  height: 72px;
  background: linear-gradient(145deg, rgba(255,255,255,0.95), rgba(225,237,255,0.76));
  border: 1.5px solid rgba(180,200,230,0.55);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.4rem;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.88), 0 14px 24px rgba(26,74,150,0.12);
}
.founder-card h3 { font-family: 'Fraunces', serif; font-size: 1.25rem; letter-spacing: -0.03em; }
.founder-role { font-family: 'JetBrains Mono', monospace; font-size: 0.67rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--green); font-weight: 600; }
.founder-desc { font-size: 0.88rem; color: var(--ink2); line-height: 1.7; }
.story-shell { margin: 2.9rem 0 3rem; }
.story-head { margin-bottom: 1.4rem; }
.story-card {
  position: relative;
  overflow: hidden;
  padding: 2.5rem;
  border-radius: var(--r-xl);
  border: 1px solid rgba(255,255,255,0.9);
  background:
    linear-gradient(160deg, rgba(255,255,255,0.96), rgba(240,246,255,0.82) 42%, rgba(231,243,238,0.82) 100%);
  backdrop-filter: var(--blur);
  box-shadow:
    0 30px 80px rgba(20,40,100,0.14),
    inset 0 1px 0 rgba(255,255,255,0.9),
    inset 0 -24px 60px rgba(255,255,255,0.26);
}
.story-card::before,
.story-card::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.story-card::before {
  width: 220px;
  height: 220px;
  top: -80px;
  right: -40px;
  background: radial-gradient(circle, rgba(245,164,36,0.22), transparent 70%);
}
.story-card::after {
  width: 260px;
  height: 260px;
  bottom: -130px;
  left: -80px;
  background: radial-gradient(circle, rgba(26,74,150,0.14), transparent 72%);
}
.story-card p {
  position: relative;
  z-index: 1;
  max-width: 760px;
}
.story-card p:last-child {
  font-family: 'Fraunces', serif;
  font-size: 1.16rem;
  line-height: 1.55;
  color: var(--ink);
}
.about-info {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: rgba(180,200,230,0.55);
  border: 1px solid rgba(180,200,230,0.58);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: 0 24px 52px rgba(20,40,100,0.1);
}
.info-block {
  background:
    linear-gradient(145deg, rgba(255,255,255,0.82), rgba(237,243,255,0.66));
  backdrop-filter: var(--blur);
  padding: 1.3rem 1.7rem;
  display: flex;
  align-items: center;
  gap: 1.1rem;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease);
}
.info-block:hover {
  background: linear-gradient(145deg, rgba(255,255,255,0.95), rgba(239,247,255,0.86));
  transform: translateX(4px);
}
.info-icon {
  font-size: 1.45rem;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, rgba(255,255,255,0.92), rgba(222,236,255,0.72));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.9), 0 10px 18px rgba(26,74,150,0.12);
}
.info-block strong { font-size: 0.88rem; font-weight: 700; display: block; margin-bottom: 0.2rem; color: var(--ink); }
.info-block p { font-size: 0.85rem; color: var(--ink2); margin: 0; }

/* ══ CONTACT ══ */
.contact-wrap { max-width: 920px; margin: 0 auto; }
.contact-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.3rem; margin-bottom: 2rem; }
.contact-card { background: linear-gradient(145deg, rgba(255,255,255,0.78), rgba(255,255,255,0.56)); backdrop-filter: var(--blur); border: 1px solid var(--border); border-radius: var(--r-xl); padding: 2rem 1.6rem; display: flex; flex-direction: column; align-items: flex-start; gap: 0.45rem; transition: all 0.38s var(--ease); box-shadow: var(--shadow-md); }
.contact-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-xl); border-color: rgba(255,255,255,0.9); }
.contact-icon { font-size: 1.75rem; margin-bottom: 0.25rem; }
.contact-card h3 { font-family: 'Fraunces', serif; font-size: 1.1rem; letter-spacing: -0.02em; }
.contact-detail { font-family: 'JetBrains Mono', monospace; font-size: 0.77rem; color: var(--ink); font-weight: 500; }
.contact-note { font-size: 0.8rem; color: var(--dim); }
.map-box { background: var(--glass); backdrop-filter: var(--blur); border: 1px solid var(--border); border-radius: var(--r-xl); height: 175px; display: flex; align-items: center; justify-content: center; font-family: 'JetBrains Mono', monospace; font-size: 0.78rem; color: var(--dim); font-weight: 500; letter-spacing: 0.06em; position: relative; overflow: hidden; }
.map-box::before { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(0deg,var(--border2) 0,var(--border2) 1px,transparent 1px,transparent 44px), repeating-linear-gradient(90deg,var(--border2) 0,var(--border2) 1px,transparent 1px,transparent 44px); opacity: 0.5; }

/* ══ AUTH ══ */
.auth-wrap { display: flex; justify-content: center; align-items: center; min-height: calc(100vh - var(--nav-h) - 4rem); padding: 2rem; }
.auth-card { background: var(--glass); backdrop-filter: var(--blur); border: 1.5px solid var(--border); border-radius: var(--r-xl); padding: 2.6rem 2.4rem; width: 100%; max-width: 490px; box-shadow: var(--shadow-xl); }
.auth-card h2 { font-family: 'Fraunces', serif; font-size: 2.1rem; letter-spacing: -0.04em; margin-bottom: 0.35rem; font-weight: 900; }
.auth-sub { font-size: 0.88rem; color: var(--dim); margin-bottom: 1.8rem; }
.form-group { display: flex; flex-direction: column; gap: 0.42rem; margin-bottom: 1rem; }
.form-group label { font-family: 'JetBrains Mono', monospace; font-size: 0.67rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--dim); }
.form-group input, .form-group textarea { width: 100%; padding: 0.82rem 1rem; background: rgba(255,255,255,0.65); backdrop-filter: blur(8px); border: 1.5px solid var(--border2); border-radius: var(--r-md); font-size: 0.88rem; color: var(--ink); outline: none; transition: all 0.2s; resize: vertical; }
.form-group input:focus, .form-group textarea:focus { border-color: var(--ink); background: var(--glass2); box-shadow: 0 0 0 3px rgba(10,15,30,0.07); }
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--dim2); }
.auth-btn { width: 100%; padding: 1rem; background: var(--ink); color: #fff; border: none; border-radius: var(--r-md); font-size: 0.95rem; font-weight: 700; cursor: pointer; transition: all 0.25s var(--ease); margin-top: 0.5rem; box-shadow: 0 5px 18px rgba(10,15,30,0.2); }
.auth-btn:hover { background: var(--green); transform: translateY(-2px); box-shadow: 0 10px 28px rgba(22,120,74,0.3); }
.auth-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.msg-box { display: none; padding: 0.85rem 1.1rem; border-radius: var(--r-md); font-size: 0.85rem; font-weight: 500; margin-bottom: 1.1rem; }
.msg-success { background: var(--green-lt); color: var(--green); border: 1px solid rgba(22,120,74,0.25); }
.msg-error   { background: var(--red-lt); color: var(--red); border: 1px solid rgba(176,48,48,0.25); }
.spinner-wrap { display: none; text-align: center; padding: 2rem; margin-bottom: 1rem; }
.spinner { width: 36px; height: 36px; border: 3px solid var(--border2); border-top-color: var(--green); border-radius: 50%; animation: spin 0.7s linear infinite; margin: 0 auto; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ══ FOOTER ══ */
.footer { border-top: 1px solid var(--border2); background: linear-gradient(145deg, rgba(255,255,255,0.8), rgba(255,255,255,0.58)); backdrop-filter: var(--blur); display: flex; justify-content: space-between; align-items: center; gap: 2rem; padding: 1.8rem clamp(1.2rem,4vw,3.5rem); flex-wrap: wrap; box-shadow: var(--shadow-glass); }
.footer-brand {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.05em;
  margin-bottom: 0.4rem;
  text-transform: uppercase;
}
.footer > div { font-size: 0.83rem; color: var(--ink2); line-height: 1.85; }
.footer-links { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.footer-links a { font-size: 0.83rem; font-weight: 500; color: var(--dim); transition: color 0.15s; }
.footer-links a:hover { color: var(--ink); }
.legal-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 1rem clamp(1.2rem,4vw,3.5rem) 1.8rem;
  padding: 0.95rem 1.2rem;
  border: 1px solid rgba(180,200,230,0.42);
  border-radius: var(--r-lg);
  background: linear-gradient(135deg, rgba(255,255,255,0.66), rgba(255,255,255,0.42));
  backdrop-filter: blur(18px) saturate(1.3);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  box-shadow: 0 14px 32px rgba(20,40,100,0.08);
}
.legal-copy {
  font-size: 0.76rem;
  color: var(--ink2);
  line-height: 1.7;
  max-width: 980px;
}
.legal-links {
  display: flex;
  align-items: center;
  gap: 1.35rem;
  flex-wrap: wrap;
  row-gap: 0.45rem;
}
.legal-links + .legal-links {
  margin-top: 0.55rem;
}
.legal-links a,
.legal-links span {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dim);
  transition: color 0.2s var(--ease), transform 0.2s var(--ease);
}
.legal-links a:hover {
  color: var(--ink);
  transform: translateY(-1px);
}

/* ══ RESPONSIVE ══ */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 2rem; min-height: auto; }
  .hero-right { max-width: 480px; margin: 0 auto; }
  .custom-order-card { grid-template-columns: 1fr; }
  .custom-order-checklist { justify-content: flex-start; }
  .cart-layout { grid-template-columns: 1fr; }
  .order-summary { position: static; }
  .founders-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .modal-box { grid-template-columns: 1fr; max-width: 480px; }
  .modal-img { min-height: 240px; border-radius: var(--r-xl) var(--r-xl) 0 0; }
}
@media (max-width: 768px) {
  .hamburger { display: flex; }
  .nav-links { display: none; position: absolute; top: var(--nav-h); left: 0; right: 0; background: var(--glass2); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); border-bottom: 1px solid var(--border2); box-shadow: var(--shadow-lg); flex-direction: column; align-items: stretch; padding: 1rem; gap: 0.2rem; }
  .nav-links.is-open { display: flex; animation: slideDown 0.22s var(--ease); }
  @keyframes slideDown { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
  .nav-links a { border-radius: var(--r-md); padding: 0.78rem 1rem; }
  .nav-user-panel { margin-left: 0; flex-direction: column; align-items: stretch; }
  .nav-username, .nav-logout { width: 100%; justify-content: center; }
  .cart-head-row { display: none; }
  .cart-item { grid-template-columns: 1fr 70px 90px 38px; gap: 0.4rem; padding: 0.85rem 1rem; }
}
@media (max-width: 560px) {
  .sec-head { flex-direction: column; align-items: flex-start; }
  .hero-stats { gap: 1.2rem; padding: 1.2rem 1.5rem; }
  .hero h1 { font-size: 2.8rem; }
  .trust-strip { grid-template-columns: 1fr 1fr; }
  .hero-img-wrap,
  .hero-showcase { min-height: 500px; }
  .orbit-shirt { width: 242px; }
  .legal-strip { margin: 1rem 1.2rem 1.2rem; }
  .story-card { padding: 1.8rem; }
  .founder-card:hover,
  .info-block:hover { transform: none; }
}
/* ══ COLOUR BUTTON FIX ══ */
.color-btn {
  width: auto !important;
  padding: 0 0.9rem !important;
  font-size: 0.72rem !important;
  white-space: nowrap;
}
.accent-y { color: #C47D00; }

/* FUTURISTIC 3D LAYER */
:root {
  --neon-cyan: #18d7ff;
  --neon-green: #41f2a5;
  --neon-gold: #f5a623;
  --depth-line: rgba(220, 160, 80, 0.16);
  --depth-shadow: 0 30px 80px rgba(10, 15, 30, 0.18), 0 14px 32px rgba(220, 160, 80, 0.08);
}

body {
  background-color: #ebdccb;
  background-image:
    linear-gradient(115deg, rgba(255,255,255,0.78), rgba(245,235,225,0.64) 48%, rgba(240,230,220,0.54)),
    repeating-linear-gradient(90deg, rgba(139,90,43,0.05) 0 1px, transparent 1px 54px),
    repeating-linear-gradient(0deg, rgba(180,110,50,0.045) 0 1px, transparent 1px 54px),
    radial-gradient(ellipse 92% 62% at 50% -8%, rgba(220,160,80,0.14), transparent 58%),
    radial-gradient(ellipse 70% 48% at 100% 78%, rgba(176,48,48,0.06), transparent 62%);
  background-attachment: fixed;
}

body::before {
  inset: 0;
  width: auto;
  height: auto;
  border-radius: 0;
  filter: none;
  background:
    repeating-linear-gradient(90deg, transparent 0 118px, rgba(220,160,80,0.08) 119px 120px),
    repeating-linear-gradient(0deg, transparent 0 118px, rgba(139,90,43,0.05) 119px 120px);
  opacity: 0.34;
  animation: none;
}

body::after {
  width: 420px;
  height: 420px;
  right: -120px;
  bottom: -110px;
  border-radius: 50%;
  filter: blur(70px);
  background: rgba(176,48,48,0.06);
  opacity: 0.8;
  animation: none;
}

@keyframes gridDrift {
  from { background-position: 0 0, 0 0, 0 0; }
  to { background-position: 180px 0, 120px 0, 0 120px; }
}

@keyframes scannerSweep {
  0%, 18% { transform: translateX(-74%) skewX(-10deg); opacity: 0; }
  38%, 58% { opacity: 0.58; }
  82%, 100% { transform: translateX(74%) skewX(-10deg); opacity: 0; }
}

.navbar,
.hero-stats,
.trust-strip,
.cart-items-section,
.order-summary,
.auth-card,
.contact-card,
.founder-card,
.story-card,
.about-info,
.legal-strip,
.footer,
.modal-box,
.store-controls,
.store-summary {
  transform-style: preserve-3d;
}

.navbar {
  background:
    linear-gradient(135deg, rgba(255,255,255,0.32), rgba(239,247,255,0.18)),
    linear-gradient(90deg, rgba(24,215,255,0.06), transparent 38%, rgba(65,242,165,0.04));
  box-shadow: 0 18px 44px rgba(10,15,30,0.08), inset 0 1px 0 rgba(255,255,255,0.4);
}

.logo-icon {
  background: linear-gradient(145deg, #07101f, #14315c 52%, #16784a);
  box-shadow: 0 12px 26px rgba(10,15,30,0.22), 0 0 28px rgba(24,215,255,0.22);
}

.nav-links a,
.join-link,
.cart-icon,
.btn-primary,
.btn-outline,
.store-reset,
.checkout-btn,
.auth-btn,
.modal-atc {
  position: relative;
  overflow: hidden;
}

.nav-links a::after,
.join-link::after,
.cart-icon::after,
.btn-primary::after,
.btn-outline::after,
.store-reset::after,
.checkout-btn::after,
.auth-btn::after,
.modal-atc::after {
  content: "";
  position: absolute;
  inset: -40% auto -40% -80%;
  width: 58%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.42), transparent);
  transform: skewX(-18deg);
  transition: left 0.55s var(--ease);
  pointer-events: none;
}

.nav-links a:hover::after,
.join-link:hover::after,
.cart-icon:hover::after,
.btn-primary:hover::after,
.btn-outline:hover::after,
.store-reset:hover::after,
.checkout-btn:hover::after,
.auth-btn:hover::after,
.modal-atc:hover::after {
  left: 125%;
}

.modal-atc:disabled::after,
.modal-atc.is-disabled::after {
  display: none;
}

.hero {
  perspective: 1200px;
}

.hero-left {
  transform: translateZ(18px);
}

.hero h1 {
  text-shadow: 0 18px 42px rgba(10,15,30,0.12), 0 0 28px rgba(24,215,255,0.08);
}

.line-green,
.line-pink,
.accent-g {
  text-shadow: 0 0 24px rgba(65,242,165,0.18);
}

.hero-tag {
  border-color: rgba(24,215,255,0.22);
  box-shadow: 0 12px 32px rgba(24,215,255,0.1), inset 0 1px 0 rgba(255,255,255,0.8);
}

.hero-img-wrap,
.hero-showcase {
  transform-style: preserve-3d;
}

.hero-showcase {
  animation: stageHover 9s ease-in-out infinite;
}

@keyframes stageHover {
  0%, 100% { transform: rotateX(0deg) rotateY(0deg) translateY(0); }
  50% { transform: rotateX(2.5deg) rotateY(-3deg) translateY(-10px); }
}

.hero-spotlight {
  box-shadow: inset 0 0 90px rgba(24,215,255,0.14), 0 42px 80px rgba(10,15,30,0.12);
}

.hero-core-glow {
  filter: blur(12px) saturate(1.35);
}

.hero-beam {
  box-shadow: 0 0 18px rgba(24,215,255,0.26);
}

.orbit-shirt img {
  transform: translateZ(40px);
  filter: contrast(1.08) saturate(1.12) drop-shadow(0 30px 38px rgba(10,15,30,0.24)) drop-shadow(0 0 30px rgba(24,215,255,0.16));
}

.ticker-wrap {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(6,10,22,0.96), rgba(15,31,57,0.92)),
    repeating-linear-gradient(90deg, rgba(24,215,255,0.12) 0 1px, transparent 1px 34px);
  border: 1px solid rgba(24,215,255,0.18);
  box-shadow: 0 22px 52px rgba(10,15,30,0.24), inset 0 1px 0 rgba(255,255,255,0.12);
}

.ticker-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(24,215,255,0.16), transparent);
  transform: translateX(-100%);
  animation: none;
  opacity: 0;
  pointer-events: none;
}

@keyframes tickerFlash {
  0%, 35% { transform: translateX(-100%); opacity: 0; }
  50% { opacity: 1; }
  72%, 100% { transform: translateX(100%); opacity: 0; }
}

.products-grid,
.featured-grid,
.founders-grid,
.contact-grid,
.soon-grid {
  perspective: 1100px;
}

.product-card,
.founder-card,
.contact-card,
.soon-card,
.store-card,
.hero-stats,
.trust-item,
.auth-card,
.order-summary,
.cart-items-section {
  will-change: transform;
  transform-style: preserve-3d;
}

.product-card {
  background:
    linear-gradient(145deg, rgba(255,255,255,0.92), rgba(237,247,255,0.68)),
    linear-gradient(120deg, rgba(24,215,255,0.12), transparent 32%, rgba(65,242,165,0.1)) !important;
  border-color: rgba(255,255,255,0.9) !important;
  box-shadow: 0 22px 48px rgba(10,15,30,0.11), inset 0 1px 0 rgba(255,255,255,0.94) !important;
}

.product-card::after,
.founder-card::after,
.contact-card::after,
.soon-card::after,
.store-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255,255,255,0.34), transparent 38%, rgba(24,215,255,0.08));
  opacity: 0;
  transition: opacity 0.3s var(--ease);
  pointer-events: none;
  z-index: 3;
}

.product-card:hover,
.product-card.is-tilting {
  transform: perspective(900px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)) translateY(-9px) scale(1.018) !important;
  box-shadow: var(--depth-shadow) !important;
  border-color: rgba(24,215,255,0.26) !important;
}

.product-card:hover::after,
.product-card.is-tilting::after,
.founder-card:hover::after,
.contact-card:hover::after,
.soon-card:hover::after,
.store-card:hover::after {
  opacity: 1;
}

.product-img,
.product-image,
.modal-img {
  background:
    radial-gradient(circle at 50% 24%, rgba(255,255,255,0.92), transparent 38%),
    linear-gradient(155deg, #eef5ff, #dde8f5 54%, #edf8f0);
}

.product-img::before,
.product-image::before,
.modal-img::before {
  content: "";
  position: absolute;
  left: 12%;
  right: 12%;
  bottom: 7%;
  height: 18%;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(10,15,30,0.2), transparent 68%);
  filter: blur(12px);
  transform: translateZ(-20px);
  opacity: 0.58;
}

.product-card:hover .product-img img,
.product-card:hover .product-image img {
  transform: translateZ(34px) scale(1.075) rotateZ(-0.7deg);
  filter: drop-shadow(0 22px 22px rgba(10,15,30,0.2));
}

.product-image.is-teaser img,
.product-card.is-preview .product-image img,
.modal-img.is-coming-soon img,
.product-card.is-preview .product-img img {
  filter: blur(24px) !important;
  transform: none !important;
  transition: none !important;
  pointer-events: none !important;
}

.product-card:hover .product-image.is-teaser img,
.product-card:hover .product-img.is-teaser img,
.product-card:hover .modal-img.is-coming-soon img {
  transform: none !important;
  filter: blur(24px) !important;
  transition: none !important;
}

.product-image.is-teaser::before,
.modal-img.is-coming-soon::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15,130,240,0.2), rgba(2,12,30,0.55));
  pointer-events: none;
}

.product-image.is-teaser .teaser-overlay,
.modal-img.is-coming-soon .coming-soon-overlay {
  pointer-events: none;
}

.product-cat-badge,
.product-badge,
.modal-tag,
.active-chip,
.hero-point,
.pay-badges span {
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.86), 0 8px 18px rgba(10,15,30,0.07);
}

.trust-strip {
  background:
    linear-gradient(135deg, rgba(24,215,255,0.16), rgba(180,200,230,0.36), rgba(65,242,165,0.14));
  box-shadow: 0 24px 54px rgba(10,15,30,0.1);
}

.trust-item {
  position: relative;
  overflow: hidden;
  transition: transform 0.3s var(--spring), background 0.2s var(--ease), box-shadow 0.3s var(--ease);
}

.trust-item:hover {
  transform: translateY(-6px) translateZ(20px);
  box-shadow: 0 18px 36px rgba(10,15,30,0.1);
}

.store-panel,
.store-card,
.store-summary,
.soon-card,
.empty-state {
  position: relative;
  overflow: hidden;
}

.store-panel::before,
.story-card::before {
  animation: none;
}

@keyframes pulseGlow {
  from { opacity: 0.55; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1.06); }
}

.modal-box {
  box-shadow: 0 42px 100px rgba(3,8,20,0.32), 0 0 0 1px rgba(24,215,255,0.08), inset 0 1px 0 rgba(255,255,255,0.88);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }

  .product-card:hover,
  .product-card.is-tilting,
  .hero-showcase {
    transform: none !important;
  }
}

@media (max-width: 768px) {
  body::after {
    animation: none;
    opacity: 0.28;
  }

  .product-card:hover,
  .product-card.is-tilting,
  .trust-item:hover {
    transform: translateY(-5px) !important;
  }
}

/* Performance stabilizers */
.product-card,
.store-card,
.soon-card,
.navbar,
.modal-box,
.product-img img,
.product-image img,
.orbit-shirt img {
  transform: translateZ(0);
}
/* Only promote to GPU layer on desktop — on iOS this creates 55+ GPU layers
   that exceed Mobile Safari's ~300MB process limit and cause a crash */
@media (min-width: 769px) {
  .product-card,
  .store-card,
  .soon-card {
    will-change: transform;
  }
}
.rlx-ios .product-card,
.rlx-ios .store-card,
.rlx-ios .soon-card {
  will-change: auto !important;
}

.product-img,
.product-image,
.modal-img,
.cart-item-img {
  background-size: 200% 100%;
}

.product-img::before,
.product-image::after,
.cart-item-img::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, rgba(255,255,255,.12), rgba(255,255,255,.46), rgba(255,255,255,.12));
  transform: translateX(-100%);
  animation: skeletonSweep 1.2s ease-in-out infinite;
  pointer-events: none;
  opacity: .52;
}
/* iOS Safari: disable skeleton shimmer animation to reduce GPU layers */
.rlx-ios .product-img::before,
.rlx-ios .product-image::after,
.rlx-ios .cart-item-img::before {
  animation: none !important;
  opacity: 0 !important;
}

.product-img img,
.product-image img,
.cart-item-img img,
.modal-img img {
  position: relative;
  z-index: 1;
}

.is-skeleton { pointer-events: none; }
.is-skeleton .product-image { min-height: 220px; }
.skeleton-line { height: 12px; border-radius: 999px; background: rgba(10,15,30,.08); margin-top: .6rem; overflow: hidden; }
.skeleton-line.short { width: 42%; }
.skeleton-line.tiny { width: 64%; }

@keyframes skeletonSweep {
  from { transform: translateX(-100%); }
  to { transform: translateX(100%); }
}

@media (max-width: 768px) {
  .glass,
  .card,
  .navbar,
  .product-card,
  .store-panel,
  .store-card,
  .store-controls,
  .store-summary,
  .empty-state,
  .soon-card,
  .modal-box,
  .modal-overlay,
  .cat-pill,
  .filter,
  .product-cat-badge,
  .modal-close,
  .modal-tag,
  .sz-btn,
  .coming-soon-card,
  .teaser-content {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  .products-grid,
  .featured-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: .85rem;
  }

  .product-name,
  .modal-title {
    overflow-wrap: anywhere;
  }
}

/* ═══ iOS SAFARI GLOBAL OVERRIDES ═══
   Applied via JS-added .rlx-ios class on <html>.
   These rules catch any screen size (including landscape and large iPhones)
   that the 768px media query might miss.
*/
.rlx-ios .glass,
.rlx-ios .card,
.rlx-ios .navbar,
.rlx-ios .product-card,
.rlx-ios .store-panel,
.rlx-ios .store-card,
.rlx-ios .store-controls,
.rlx-ios .store-summary,
.rlx-ios .empty-state,
.rlx-ios .soon-card,
.rlx-ios .modal-box,
.rlx-ios .modal-overlay,
.rlx-ios .cat-pill,
.rlx-ios .filter,
.rlx-ios .product-cat-badge,
.rlx-ios .modal-close,
.rlx-ios .modal-tag,
.rlx-ios .sz-btn,
.rlx-ios .coming-soon-card,
.rlx-ios .teaser-content,
.rlx-ios .hero-float,
.rlx-ios .hero-tag,
.rlx-ios .hero-stats,
.rlx-ios .btn-outline,
.rlx-ios .trust-item,
.rlx-ios .cart-items-section,
.rlx-ios .order-summary,
.rlx-ios .social-strip,
.rlx-ios .custom-order-card,
.rlx-ios #rlx-toast,
.rlx-ios .founder-card,
.rlx-ios .story-card,
.rlx-ios .contact-card,
.rlx-ios .auth-card,
.rlx-ios .delivery-modal-overlay {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/* iOS: disable all filter: blur() on decorative elements */
.rlx-ios body::before,
.rlx-ios body::after {
  filter: none !important;
  display: none !important;
}

.rlx-ios .hero-core-glow {
  filter: none !important;
  opacity: 0.3;
}

/* iOS: prevent fadeUp animation from creating excessive compositing layers */
.rlx-ios .product-card {
  animation: none !important;
  opacity: 1 !important;
  transform: none !important;
}

.rlx-ios .product-card:hover {
  transform: none !important;
}

/* iOS: disable will-change everywhere */
.rlx-ios * {
  will-change: auto !important;
}


/* Stability fixes for product and delivery surfaces */
.product-card { display: flex; flex-direction: column; min-width: 0; height: 100%; overflow: hidden; contain: layout paint; }
.product-img,
.product-image { width: 100%; aspect-ratio: 1 / 1; min-height: 0; overflow: hidden; flex: 0 0 auto; isolation: isolate; position: relative; display: flex; align-items: center; justify-content: center; }
.product-img img,
.product-image img { max-width: 100%; max-height: 100%; object-fit: contain; object-position: center; position: relative; z-index: 1; }
.product-info { flex: 1 1 auto; min-width: 0; position: relative; z-index: 2; background: inherit; }
.product-meta-row,
.product-bottom { min-width: 0; }
.product-fit,
.product-meta,
.product-price { overflow-wrap: anywhere; }
.product-badge,
.product-cat-badge { z-index: 3; }

@media (min-width: 769px) {
  .product-image { height: 320px; aspect-ratio: auto; }
}

.delivery-modal-overlay { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 1.2rem; background: rgba(3,8,20,.38); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); opacity: 0; pointer-events: none; transition: opacity .2s var(--ease); }
.delivery-modal-overlay.is-open { opacity: 1; pointer-events: auto; }
.delivery-modal { width: min(420px, 100%); position: relative; padding: 1.25rem; border-radius: var(--r-lg); background: linear-gradient(145deg, rgba(255,255,255,.9), rgba(237,247,255,.76)); border: 1px solid rgba(255,255,255,.88); box-shadow: 0 32px 80px rgba(3,8,20,.26), inset 0 1px 0 rgba(255,255,255,.9); color: var(--ink); }
.delivery-modal-close { position: absolute; top: .72rem; right: .72rem; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--border2); background: rgba(255,255,255,.76); color: var(--ink); cursor: pointer; font-size: 1.2rem; line-height: 1; }
.delivery-modal-kicker { font-family: 'JetBrains Mono', monospace; text-transform: uppercase; letter-spacing: .12em; font-size: .64rem; font-weight: 800; color: var(--green); margin-bottom: .45rem; }
.delivery-modal h3 { font-family: 'Fraunces', serif; font-size: 1.45rem; letter-spacing: -.04em; margin: 0 2rem .45rem 0; }
.delivery-modal p { margin: 0 0 1rem; color: var(--dim); font-size: .86rem; line-height: 1.55; }
.delivery-modal-row { display: grid; grid-template-columns: 1fr auto; gap: .55rem; }
.delivery-modal-input { min-width: 0; width: 100%; border: 1.5px solid var(--border2); border-radius: var(--r-md); background: rgba(255,255,255,.82); color: var(--ink); padding: .82rem .9rem; outline: none; font-size: .92rem; }
.delivery-modal-input:focus { border-color: var(--ink); box-shadow: 0 0 0 4px rgba(26,74,150,.08); }
.delivery-modal-apply { border: 1.5px solid transparent; border-radius: var(--r-md); background: var(--ink); color: #fff; font-weight: 800; min-height: 44px; padding: 0 1rem; cursor: pointer; box-shadow: 0 5px 18px rgba(10,15,30,.18); transition: transform .2s var(--ease), background .2s var(--ease); }
.delivery-modal-apply:hover { background: var(--green); transform: translateY(-1px); }
.delivery-modal-status { min-height: 1rem; margin-top: .6rem; color: #b7791f; font-size: .78rem; line-height: 1.45; }

@media (max-width: 768px) {
  body { overflow-x: hidden; }
  .cart-item { grid-template-columns: 1fr auto; gap: .7rem; }
  .cart-item-product { grid-column: 1 / -1; }
  .cart-item-price { text-align: right; }
  .cart-item-size { max-width: 100%; white-space: normal; }
  .delivery-modal-row { grid-template-columns: 1fr; }
}
