/* =====================================================
   FURLESTIAL SHOP — OFFICIAL ONLINE CATALOG
   Celestial Galaxy & Astronomy Design System (v4.0)
   Deep Space Nebulae • Starfields • Liquid Glass Optics
   ===================================================== */

/* ─────────────────────────────────────────────────────
   1. COLOR SYSTEM & DESIGN TOKENS
   ───────────────────────────────────────────────────── */
:root {
  /* CELESTIAL DARK (Deep Space Galaxy) */
  --theme-mode: 'dark';
  --bg-space: #060714;
  --bg-space-gradient: radial-gradient(ellipse 90% 70% at 50% -10%, #111438 0%, #08091c 55%, #04050d 100%);

  /* Translucent Liquid Celestial Glass Surfaces */
  --glass-surface: rgba(14, 17, 38, 0.65);
  --glass-surface-subtle: rgba(18, 22, 48, 0.45);
  --glass-card: rgba(17, 21, 46, 0.58);
  --glass-card-hover: rgba(26, 32, 68, 0.82);
  --glass-input: rgba(10, 13, 30, 0.75);
  --glass-modal: rgba(12, 15, 34, 0.92);

  /* Celestial Specular Rims & Starlight Borders */
  --hairline-border: 1px solid rgba(168, 85, 247, 0.16);
  --hairline-border-hover: 1px solid rgba(192, 132, 252, 0.45);
  --hairline-border-gold: 1px solid rgba(251, 191, 36, 0.45);
  --specular-rim: inset 0 1px 0 0 rgba(255, 255, 255, 0.22);
  --specular-rim-card: inset 0 1.5px 0 0 rgba(255, 255, 255, 0.25), inset 0 -1px 0 0 rgba(0, 0, 0, 0.4);

  /* Celestial Accents */
  --accent-gold: #fbbf24;
  --accent-gold-soft: rgba(251, 191, 36, 0.14);
  --accent-blue: #0284c7;
  --accent-blue-hover: #0369a1;
  --accent-cyan: #38bdf8;
  --accent-purple: #a855f7;
  --accent-magenta: #ec4899;
  --accent-green: #34d399;
  --accent-green-soft: rgba(52, 211, 153, 0.14);

  /* Typography */
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  /* Nebula Shadows */
  --shadow-subtle: 0 4px 20px rgba(0, 0, 0, 0.45);
  --shadow-card: 0 12px 32px -6px rgba(0, 0, 0, 0.6), 0 0 20px rgba(139, 92, 246, 0.12);
  --shadow-card-hover: 0 24px 50px -8px rgba(0, 0, 0, 0.8), 0 0 32px rgba(168, 85, 247, 0.28);
  --shadow-modal: 0 32px 80px -12px rgba(0, 0, 0, 0.95), 0 0 45px rgba(168, 85, 247, 0.25);

  /* Radii */
  --radius-xs: 7px;
  --radius-sm: 11px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --radius-xl: 30px;
  --radius-pill: 9999px;

  /* Optical Blur */
  --blur-depth: 30px;
  --saturate-depth: 195%;
}

/* ─────────────────────────────────────────────────────
   CELESTIAL LIGHT (Starlight Aurora & Dawn Cosmos)
   ───────────────────────────────────────────────────── */
[data-theme="light"] {
  --theme-mode: 'light';
  --bg-space: #f4f3fb;
  --bg-space-gradient: radial-gradient(ellipse 90% 70% at 50% -10%, #e8e4fc 0%, #f4f3fb 55%, #edf0f8 100%);

  --glass-surface: rgba(255, 255, 255, 0.78);
  --glass-surface-subtle: rgba(255, 255, 255, 0.58);
  --glass-card: rgba(255, 255, 255, 0.74);
  --glass-card-hover: rgba(255, 255, 255, 0.96);
  --glass-input: rgba(255, 255, 255, 0.9);
  --glass-modal: rgba(255, 255, 255, 0.96);

  --hairline-border: 1px solid rgba(139, 92, 246, 0.14);
  --hairline-border-hover: 1px solid rgba(139, 92, 246, 0.35);
  --hairline-border-gold: 1px solid rgba(217, 119, 6, 0.35);
  --specular-rim: inset 0 1.5px 0 0 rgba(255, 255, 255, 1);
  --specular-rim-card: inset 0 2px 0 0 rgba(255, 255, 255, 1), inset 0 -1px 0 0 rgba(100, 116, 139, 0.08);

  --accent-gold: #d97706;
  --accent-gold-soft: rgba(217, 119, 6, 0.12);
  --accent-blue: #0284c7;
  --accent-blue-hover: #0369a1;
  --accent-cyan: #0284c7;
  --accent-purple: #7c3aed;
  --accent-magenta: #db2777;
  --accent-green: #059669;
  --accent-green-soft: rgba(5, 150, 105, 0.12);

  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --text-dim: #94a3b8;

  --shadow-subtle: 0 4px 18px rgba(109, 40, 217, 0.06);
  --shadow-card: 0 8px 24px -4px rgba(109, 40, 217, 0.08), 0 0 1px rgba(0, 0, 0, 0.04);
  --shadow-card-hover: 0 20px 42px -6px rgba(109, 40, 217, 0.18), 0 0 20px rgba(192, 132, 252, 0.2);
  --shadow-modal: 0 28px 70px -10px rgba(15, 23, 42, 0.22), 0 0 35px rgba(139, 92, 246, 0.15);
}

/* ─────────────────────────────────────────────────────
   2. GLOBAL BASE & TYPOGRAPHY
   ───────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  color-scheme: dark light;
}

body {
  font-family: 'Plus Jakarta Sans', 'IBM Plex Sans Thai', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-space);
  background-image: var(--bg-space-gradient);
  background-attachment: fixed;
  color: var(--text-primary);
  line-height: 1.55;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.4s cubic-bezier(0.16, 1, 0.3, 1), color 0.3s ease;
}

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ─────────────────────────────────────────────────────
   3. CELESTIAL GALAXY & NEBULA CANVAS
   ───────────────────────────────────────────────────── */
.celestial-universe {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

/* Swirling Cosmic Nebulae */
.galaxy-nebula {
  position: absolute;
  border-radius: 50%;
  filter: blur(130px);
  will-change: transform;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

.nebula-cosmic {
  width: 720px;
  height: 720px;
  top: -200px;
  left: -100px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.5) 0%, rgba(79, 70, 229, 0.3) 45%, transparent 70%);
  animation: floatNebula 26s infinite alternate ease-in-out;
}

.nebula-violet {
  width: 650px;
  height: 650px;
  top: 15%;
  right: -150px;
  background: radial-gradient(circle, rgba(219, 39, 119, 0.42) 0%, rgba(147, 51, 234, 0.25) 50%, transparent 70%);
  animation: floatNebula 30s infinite alternate-reverse ease-in-out;
  animation-delay: -6s;
}

.nebula-cyan {
  width: 700px;
  height: 700px;
  bottom: 8%;
  left: 15%;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.32) 0%, rgba(59, 130, 246, 0.2) 50%, transparent 70%);
  animation: floatNebula 34s infinite alternate ease-in-out;
  animation-delay: -12s;
}

.nebula-gold {
  width: 580px;
  height: 580px;
  bottom: -150px;
  right: 10%;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.3) 0%, rgba(236, 72, 153, 0.18) 50%, transparent 70%);
  animation: floatNebula 28s infinite alternate-reverse ease-in-out;
  animation-delay: -4s;
}

[data-theme="light"] .nebula-cosmic {
  background: radial-gradient(circle, rgba(196, 181, 253, 0.65) 0%, rgba(167, 139, 250, 0.35) 45%, transparent 70%);
}
[data-theme="light"] .nebula-violet {
  background: radial-gradient(circle, rgba(251, 207, 232, 0.6) 0%, rgba(244, 114, 182, 0.3) 50%, transparent 70%);
}
[data-theme="light"] .nebula-cyan {
  background: radial-gradient(circle, rgba(186, 230, 253, 0.6) 0%, rgba(56, 189, 248, 0.25) 50%, transparent 70%);
}
[data-theme="light"] .nebula-gold {
  background: radial-gradient(circle, rgba(254, 240, 138, 0.5) 0%, rgba(251, 146, 60, 0.25) 50%, transparent 70%);
}

@keyframes floatNebula {
  0%   { transform: translate(0, 0) scale(1); }
  33%  { transform: translate(50px, 70px) scale(1.1); }
  66%  { transform: translate(-60px, 40px) scale(0.92); }
  100% { transform: translate(40px, -50px) scale(1.05); }
}

/* ─────────────────────────────────────────────────────
   STARFIELDS & CONSTELLATIONS (Twinkling Starlight)
   ───────────────────────────────────────────────────── */
.celestial-stars {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.stars-layer-1 {
  background-image:
    radial-gradient(1px 1px at 25px 35px, #ffffff, transparent),
    radial-gradient(1px 1px at 85px 120px, #e0e7ff, transparent),
    radial-gradient(1.5px 1.5px at 160px 45px, #fef08a, transparent),
    radial-gradient(1px 1px at 240px 190px, #ffffff, transparent),
    radial-gradient(1px 1px at 310px 80px, #c7d2fe, transparent),
    radial-gradient(1.5px 1.5px at 420px 260px, #ffffff, transparent),
    radial-gradient(1px 1px at 530px 140px, #fbcfe8, transparent),
    radial-gradient(2px 2px at 640px 50px, #fde047, transparent),
    radial-gradient(1px 1px at 720px 220px, #ffffff, transparent),
    radial-gradient(1.5px 1.5px at 850px 110px, #bae6fd, transparent),
    radial-gradient(1px 1px at 960px 280px, #ffffff, transparent),
    radial-gradient(2px 2px at 1050px 70px, #ffffff, transparent);
  background-size: 550px 320px;
  animation: starsTwinkleA 5s ease-in-out infinite alternate;
  opacity: 0.85;
}

.stars-layer-2 {
  background-image:
    radial-gradient(1px 1px at 45px 85px, #fde047, transparent),
    radial-gradient(1.5px 1.5px at 125px 210px, #ffffff, transparent),
    radial-gradient(1px 1px at 200px 115px, #c4b5fd, transparent),
    radial-gradient(2px 2px at 290px 270px, #ffffff, transparent),
    radial-gradient(1px 1px at 380px 160px, #fed7aa, transparent),
    radial-gradient(1.5px 1.5px at 470px 40px, #ffffff, transparent),
    radial-gradient(2px 2px at 590px 210px, #93c5fd, transparent),
    radial-gradient(1px 1px at 690px 130px, #ffffff, transparent),
    radial-gradient(1.5px 1.5px at 780px 290px, #fef08a, transparent),
    radial-gradient(1px 1px at 890px 60px, #ffffff, transparent),
    radial-gradient(2.5px 2.5px at 990px 200px, #ffffff, transparent);
  background-size: 680px 380px;
  animation: starsTwinkleB 7s ease-in-out infinite alternate;
  animation-delay: -2.5s;
  opacity: 0.75;
}

.stars-layer-3 {
  background-image:
    radial-gradient(2px 2px at 140px 90px, #ffffff, transparent),
    radial-gradient(2.5px 2.5px at 360px 220px, #fde047, transparent),
    radial-gradient(2px 2px at 610px 110px, #c084fc, transparent),
    radial-gradient(3px 3px at 820px 260px, #ffffff, transparent),
    radial-gradient(2px 2px at 1040px 150px, #38bdf8, transparent);
  background-size: 850px 450px;
  animation: starsTwinkleC 9s ease-in-out infinite alternate;
  animation-delay: -5s;
  opacity: 0.9;
}

[data-theme="light"] .stars-layer-1,
[data-theme="light"] .stars-layer-2,
[data-theme="light"] .stars-layer-3 {
  opacity: 0.22;
}

@keyframes starsTwinkleA {
  0%   { opacity: 0.55; transform: scale(0.98); }
  100% { opacity: 0.95; transform: scale(1.02); }
}
@keyframes starsTwinkleB {
  0%   { opacity: 0.45; }
  100% { opacity: 0.85; }
}
@keyframes starsTwinkleC {
  0%   { opacity: 0.6; }
  50%  { opacity: 1; }
  100% { opacity: 0.7; }
}

/* Shooting Stars across the night sky */
.shooting-star {
  position: absolute;
  width: 140px;
  height: 2px;
  background: linear-gradient(90deg, #ffffff 0%, rgba(251, 191, 36, 0.6) 40%, transparent 100%);
  border-radius: 999px;
  filter: drop-shadow(0 0 6px #ffffff);
  opacity: 0;
  transform: rotate(-35deg);
  pointer-events: none;
}

.star-1 {
  top: 15%;
  right: 25%;
  animation: shootMeteorA 14s infinite ease-in;
  animation-delay: 3s;
}

.star-2 {
  top: 35%;
  left: 20%;
  animation: shootMeteorB 18s infinite ease-in;
  animation-delay: 9s;
}

@keyframes shootMeteorA {
  0% {
    transform: translate(0, 0) rotate(-35deg);
    opacity: 0;
  }
  2% {
    opacity: 1;
  }
  6% {
    transform: translate(-300px, 210px) rotate(-35deg);
    opacity: 0;
  }
  100% {
    transform: translate(-300px, 210px) rotate(-35deg);
    opacity: 0;
  }
}

@keyframes shootMeteorB {
  0% {
    transform: translate(0, 0) rotate(-30deg);
    opacity: 0;
  }
  2% {
    opacity: 0.9;
  }
  5% {
    transform: translate(-260px, 150px) rotate(-30deg);
    opacity: 0;
  }
  100% {
    transform: translate(-260px, 150px) rotate(-30deg);
    opacity: 0;
  }
}

/* Stardust overlay texture */
.stardust-dust {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, transparent 60%, rgba(6, 7, 20, 0.4) 100%);
}

/* ─────────────────────────────────────────────────────
   4. NAVIGATION BAR (Telescope Glass Header)
   ───────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--glass-surface);
  backdrop-filter: blur(var(--blur-depth)) saturate(var(--saturate-depth));
  -webkit-backdrop-filter: blur(var(--blur-depth)) saturate(var(--saturate-depth));
  border-bottom: var(--hairline-border);
  box-shadow: var(--specular-rim), var(--shadow-subtle);
  transition: all 0.3s ease;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 82px;
  gap: 1.25rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 1.05rem;
  text-decoration: none;
  cursor: pointer;
  user-select: none;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.brand:hover {
  transform: scale(1.02);
}

.brand-avatar {
  width: 56px;
  height: 56px;
  border-radius: 15px;
  object-fit: cover;
  border: 2px solid rgba(251, 191, 36, 0.55);
  box-shadow: 0 0 22px rgba(251, 191, 36, 0.35), 0 4px 14px rgba(0, 0, 0, 0.4);
}

.brand-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-title-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.brand-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.62rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  background: linear-gradient(135deg, #ffffff 35%, #fde047 80%, #fbbf24 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.15;
}

[data-theme="light"] .brand-title {
  background: linear-gradient(135deg, #1e1b4b 30%, #7c3aed 70%, #d97706 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-tag {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: var(--accent-gold-soft);
  color: var(--accent-gold);
  border: var(--hairline-border-gold);
  box-shadow: 0 0 12px rgba(251, 191, 36, 0.25);
  white-space: nowrap;
}

.brand-caption {
  font-size: 0.84rem;
  color: var(--text-secondary);
  font-weight: 500;
  letter-spacing: 0.01em;
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

/* iOS Segmented Theme Pill */
.theme-toggle-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  background: var(--glass-surface-subtle);
  border: var(--hairline-border);
  box-shadow: var(--specular-rim);
  border-radius: var(--radius-pill);
  padding: 3px;
  cursor: pointer;
  outline: none;
  user-select: none;
  transition: all 0.2s ease;
}

.theme-toggle-pill:hover {
  border-color: rgba(251, 191, 36, 0.4);
}

.theme-slider-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 58px;
  height: 28px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.16);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.2s ease;
}

[data-theme="light"] .theme-slider-thumb {
  transform: translateX(58px);
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12), inset 0 1px 0 #ffffff;
}

.theme-btn-label {
  position: relative;
  z-index: 2;
  width: 58px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.theme-btn-label .icon {
  font-size: 0.85rem;
}

[data-theme="dark"] .label-dark,
[data-theme="light"] .label-light {
  color: var(--text-primary);
  font-weight: 700;
}

/* Nav Link Subtle */
.nav-link-subtle {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-pill);
  transition: all 0.2s ease;
}
.nav-link-subtle:hover {
  color: var(--text-primary);
  background: var(--glass-surface-subtle);
}

/* Starlight Order Button */
.btn-facebook-order {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: #ffffff;
  text-decoration: none;
  background: linear-gradient(135deg, #0284c7 0%, #2563eb 100%);
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 4px 18px rgba(37, 99, 235, 0.4);
  padding: 0.55rem 1.2rem;
  border-radius: var(--radius-pill);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn-facebook-order:hover {
  transform: translateY(-2px);
  filter: brightness(1.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 6px 24px rgba(37, 99, 235, 0.55);
}
.fb-svg {
  flex-shrink: 0;
}

/* ─────────────────────────────────────────────────────
   5. HERO SECTION (Celestial Constellation Banner)
   ───────────────────────────────────────────────────── */
.hero-section {
  padding: 3.5rem 1.25rem 2.25rem;
  position: relative;
  z-index: 1;
  text-align: center;
}

.hero-inner {
  max-width: 840px;
  margin: 0 auto;
}

.announcement-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--glass-surface-subtle);
  border: var(--hairline-border-gold);
  box-shadow: var(--specular-rim), 0 0 14px rgba(251, 191, 36, 0.15);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 0.38rem 1.15rem;
  border-radius: var(--radius-pill);
  margin-bottom: 1.35rem;
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-gold);
  box-shadow: 0 0 10px var(--accent-gold);
  animation: pulseDot 2s infinite ease-in-out;
}
@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.35); opacity: 0.7; }
}

.badge-text {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent-gold);
  letter-spacing: 0.02em;
}

.hero-heading {
  font-family: 'Plus Jakarta Sans', 'IBM Plex Sans Thai', sans-serif;
  font-size: clamp(2.3rem, 5.2vw, 3.6rem);
  font-weight: 900;
  line-height: 1.16;
  letter-spacing: -0.02em;
  margin-bottom: 0.95rem;
  background: linear-gradient(135deg, #ffffff 30%, #c4b5fd 65%, #fde047 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

[data-theme="light"] .hero-heading {
  background: linear-gradient(135deg, #0f172a 30%, #6366f1 70%, #d97706 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: clamp(0.98rem, 1.9vw, 1.12rem);
  color: var(--text-secondary);
  line-height: 1.75;
  max-width: 720px;
  margin: 0 auto 2.25rem;
  font-weight: 400;
}

/* Minimalist Spec Pillars */
.hero-metrics {
  display: inline-flex;
  align-items: center;
  gap: 1.85rem;
  background: var(--glass-card);
  backdrop-filter: blur(var(--blur-depth)) saturate(var(--saturate-depth));
  -webkit-backdrop-filter: blur(var(--blur-depth)) saturate(var(--saturate-depth));
  border: var(--hairline-border);
  box-shadow: var(--specular-rim-card), var(--shadow-card);
  border-radius: var(--radius-xl);
  padding: 1rem 2.5rem;
}

.metric-block {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.metric-val {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.65rem;
  font-weight: 900;
  color: var(--accent-cyan);
  line-height: 1.2;
}

.metric-val.highlight {
  color: var(--accent-gold);
}

.metric-lbl {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 2px;
}

.metric-sep {
  width: 1px;
  height: 36px;
  background: var(--hairline-border);
}

/* ─────────────────────────────────────────────────────
   6. TOOLBAR & FILTER SECTION (Starlight Spotlight)
   ───────────────────────────────────────────────────── */
.toolbar-section {
  position: relative;
  z-index: 10;
  margin-bottom: 2.25rem;
}

.toolbar-glass {
  background: var(--glass-surface);
  backdrop-filter: blur(var(--blur-depth)) saturate(var(--saturate-depth));
  -webkit-backdrop-filter: blur(var(--blur-depth)) saturate(var(--saturate-depth));
  border: var(--hairline-border);
  box-shadow: var(--specular-rim-card), var(--shadow-card);
  border-radius: var(--radius-xl);
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

/* Spotlight Search */
.search-bar-wrap {
  position: relative;
  width: 100%;
}

.search-svg {
  position: absolute;
  left: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

#search-input {
  width: 100%;
  background: var(--glass-input);
  border: var(--hairline-border);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.2);
  border-radius: var(--radius-pill);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.96rem;
  padding: 0.85rem 3rem 0.85rem 3.2rem;
  outline: none;
  transition: all 0.25s ease;
}

#search-input::placeholder {
  color: var(--text-dim);
}

#search-input:focus {
  border-color: var(--accent-purple);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1), 0 0 0 3px rgba(168, 85, 247, 0.25);
}

.search-clear-btn {
  position: absolute;
  right: 1.15rem;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--glass-surface-subtle);
  border: var(--hairline-border);
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.74rem;
  transition: all 0.2s ease;
}
.search-clear-btn:hover {
  color: #fff;
  background: #ef4444;
  border-color: #ef4444;
}

/* Category Filter Row */
.category-filter-row {
  display: flex;
  gap: 0.55rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.category-filter-row::-webkit-scrollbar {
  display: none;
}

.filter-pill {
  background: var(--glass-surface-subtle);
  border: var(--hairline-border);
  box-shadow: var(--specular-rim);
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 0.86rem;
  font-weight: 500;
  padding: 0.5rem 1.15rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
  white-space: nowrap;
  user-select: none;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.filter-pill:hover {
  color: var(--text-primary);
  border-color: rgba(192, 132, 252, 0.4);
  transform: translateY(-2px);
}

.filter-pill.active {
  background: linear-gradient(135deg, #a855f7 0%, #ec4899 100%);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.35);
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(168, 85, 247, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  transform: translateY(-1px);
}

/* Controls Subrow */
.toolbar-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.95rem;
  border-top: var(--hairline-border);
  padding-top: 0.95rem;
}

.controls-left {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  flex-wrap: wrap;
}

.select-wrapper {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.select-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
}

.ios-select {
  background: var(--glass-input);
  border: var(--hairline-border);
  box-shadow: var(--specular-rim);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.84rem;
  padding: 0.45rem 1.9rem 0.45rem 0.85rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  outline: none;
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg fill='%2394a3b8' height='16' viewBox='0 0 24 24' width='16' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 0.45rem center;
  transition: all 0.2s ease;
}

.ios-select:focus {
  border-color: var(--accent-purple);
}

.results-badge {
  font-size: 0.84rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-left: auto;
}

/* ─────────────────────────────────────────────────────
   7. PRODUCT CARDS (Celestial Observatory Glass)
   ───────────────────────────────────────────────────── */
.products-section {
  position: relative;
  z-index: 1;
  padding-bottom: 4.5rem;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(285px, 1fr));
  gap: 1.65rem;
}

.product-card {
  background: var(--glass-card);
  backdrop-filter: blur(var(--blur-depth)) saturate(var(--saturate-depth));
  -webkit-backdrop-filter: blur(var(--blur-depth)) saturate(var(--saturate-depth));
  border: var(--hairline-border);
  box-shadow: var(--specular-rim-card), var(--shadow-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.32s ease, border-color 0.32s ease;
  position: relative;
  cursor: pointer;
}

.product-card:hover {
  transform: translateY(-8px) scale(1.01);
  border-color: rgba(192, 132, 252, 0.45);
  box-shadow: var(--specular-rim-card), var(--shadow-card-hover);
}

.card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: rgba(4, 5, 15, 0.4);
  overflow: hidden;
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Celestial Badges */
.card-badge-code {
  position: absolute;
  top: 11px;
  left: 11px;
  background: rgba(8, 10, 26, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(251, 191, 36, 0.4);
  color: var(--accent-gold);
  font-family: 'Plus Jakarta Sans', monospace;
  font-size: 0.74rem;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  box-shadow: 0 0 12px rgba(251, 191, 36, 0.2);
}

.card-badge-status {
  position: absolute;
  top: 11px;
  right: 11px;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  letter-spacing: 0.04em;
}

.status-preorder {
  background: rgba(52, 211, 153, 0.2);
  color: #34d399;
  border-color: rgba(52, 211, 153, 0.4);
}
.status-ordered {
  background: rgba(59, 130, 246, 0.2);
  color: #60a5fa;
  border-color: rgba(59, 130, 246, 0.4);
}
.status-arrived {
  background: rgba(245, 158, 11, 0.2);
  color: #fde047;
  border-color: rgba(245, 158, 11, 0.4);
}
.status-closed {
  background: rgba(148, 163, 184, 0.2);
  color: #cbd5e1;
  border-color: rgba(148, 163, 184, 0.4);
}

.card-gallery-pill {
  position: absolute;
  bottom: 9px;
  right: 9px;
  background: rgba(8, 10, 26, 0.8);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
}

/* Card Body */
.card-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-title {
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.48;
  color: var(--text-primary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 3rem;
  margin-bottom: 0.35rem;
}

.card-shop {
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-bottom: 0.95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-price-row {
  margin-top: auto;
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 0.55rem;
}

.card-price-main {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.42rem;
  font-weight: 900;
  color: var(--accent-gold);
  line-height: 1;
}

.card-price-orig {
  font-size: 0.85rem;
  color: var(--text-dim);
  text-decoration: line-through;
}

.card-price-multi {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent-cyan);
  background: rgba(6, 182, 212, 0.12);
  border: 1px solid rgba(6, 182, 212, 0.3);
  padding: 1px 7px;
  border-radius: var(--radius-pill);
  margin-left: auto;
}

.card-ship-badge {
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--accent-green);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.95rem;
}

.card-cta-btn {
  width: 100%;
  padding: 0.65rem 0.95rem;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--text-primary);
  background: var(--glass-surface-subtle);
  border: var(--hairline-border);
  box-shadow: var(--specular-rim);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

.product-card:hover .card-cta-btn {
  background: linear-gradient(135deg, #7c3aed 0%, #0284c7 100%);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 4px 18px rgba(124, 58, 237, 0.4);
}

/* Skeleton Loading */
.skeleton-card {
  background: var(--glass-card);
  border: var(--hairline-border);
  border-radius: var(--radius-lg);
  aspect-ratio: 1 / 1.45;
  animation: pulseSkeleton 1.6s infinite ease-in-out;
}
@keyframes pulseSkeleton {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 0.75; }
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 4.5rem 1.5rem;
  background: var(--glass-surface);
  border: var(--hairline-border);
  border-radius: var(--radius-xl);
  max-width: 540px;
  margin: 0 auto;
}
.empty-icon-wrap {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: var(--glass-surface-subtle);
  border: var(--hairline-border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.35rem;
  color: var(--text-muted);
}
.empty-state h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.empty-state p {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 1.65rem;
}
.btn-reset-filters {
  background: linear-gradient(135deg, #7c3aed, #0284c7);
  color: #fff;
  border: none;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 0.65rem 1.45rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-reset-filters:hover {
  filter: brightness(1.15);
}

/* ─────────────────────────────────────────────────────
   8. ORDERING GUIDE & ASSURANCE
   ───────────────────────────────────────────────────── */
.guide-section {
  padding: 4rem 1.25rem;
  position: relative;
  z-index: 1;
}

.guide-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.guide-pretitle {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--accent-gold);
  display: block;
  margin-bottom: 0.4rem;
}

.guide-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-primary);
}

.guide-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.65rem;
  margin-bottom: 2.5rem;
}

.step-card {
  background: var(--glass-card);
  backdrop-filter: blur(var(--blur-depth));
  border: var(--hairline-border);
  box-shadow: var(--specular-rim-card), var(--shadow-card);
  border-radius: var(--radius-lg);
  padding: 1.95rem 1.65rem;
  position: relative;
  transition: transform 0.25s ease;
}
.step-card:hover {
  transform: translateY(-5px);
}

.step-num {
  position: absolute;
  top: 1.35rem;
  right: 1.45rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 2rem;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.09);
}

.step-icon {
  font-size: 2.2rem;
  margin-bottom: 0.85rem;
}

.step-card h3 {
  font-size: 1.18rem;
  font-weight: 700;
  margin-bottom: 0.55rem;
  color: var(--text-primary);
}

.step-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

.trust-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.35rem;
  background: var(--glass-surface);
  backdrop-filter: blur(var(--blur-depth));
  border: var(--hairline-border);
  box-shadow: var(--specular-rim-card);
  border-radius: var(--radius-lg);
  padding: 1.65rem;
}

.trust-point {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.trust-point .trust-icon {
  font-size: 1.5rem;
  line-height: 1;
}

.trust-point strong {
  display: block;
  font-size: 0.94rem;
  color: var(--text-primary);
  margin-bottom: 3px;
}

.trust-point span {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.45;
}

/* ─────────────────────────────────────────────────────
   9. FOOTER
   ───────────────────────────────────────────────────── */
.site-footer {
  background: var(--glass-surface);
  backdrop-filter: blur(var(--blur-depth));
  border-top: var(--hairline-border);
  padding: 3.5rem 0 1.75rem;
  position: relative;
  z-index: 1;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.75rem;
  margin-bottom: 2.25rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.5rem;
}

.footer-brand-name {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  background: linear-gradient(135deg, #ffffff 40%, #fde047 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

[data-theme="light"] .footer-brand-name {
  background: linear-gradient(135deg, #1e1b4b 40%, #d97706 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.footer-brand-pill {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 2px 7px;
  border-radius: var(--radius-pill);
  background: var(--accent-gold-soft);
  color: var(--accent-gold);
  border: var(--hairline-border-gold);
}

.footer-tagline {
  font-size: 0.86rem;
  color: var(--text-muted);
  max-width: 500px;
}

.footer-fb-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: linear-gradient(135deg, #0284c7, #2563eb);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  padding: 0.6rem 1.35rem;
  border-radius: var(--radius-pill);
  transition: all 0.2s ease;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.35);
}
.footer-fb-link:hover {
  filter: brightness(1.12);
  transform: translateY(-2px);
}

.footer-bottom {
  border-top: var(--hairline-border);
  padding-top: 1.35rem;
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-dim);
}

/* ─────────────────────────────────────────────────────
   10. MODAL SHEET (Celestial Spec Observatory Sheet)
   ───────────────────────────────────────────────────── */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(3, 4, 12, 0.76);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  overflow-y: auto;
  opacity: 0;
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-backdrop.open {
  display: flex;
  opacity: 1;
}

.modal-sheet {
  background: var(--glass-modal);
  backdrop-filter: blur(40px) saturate(200%);
  -webkit-backdrop-filter: blur(40px) saturate(200%);
  border: var(--hairline-border);
  box-shadow: var(--specular-rim-card), var(--shadow-modal);
  border-radius: var(--radius-xl);
  max-width: 980px;
  width: 92%;
  max-height: 90vh;
  overflow-y: auto;
  overflow-x: hidden;
  position: relative;
  animation: sheetSpring 0.32s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes sheetSpring {
  from { opacity: 0; transform: scale(0.94) translateY(24px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.sheet-handle {
  display: none;
}
@media (max-width: 600px) {
  .sheet-handle {
    display: block;
    width: 38px;
    height: 4px;
    border-radius: 2px;
    background: var(--hairline-border);
    margin: 12px auto 0;
  }
}

.sheet-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--glass-surface-subtle);
  border: var(--hairline-border);
  box-shadow: var(--specular-rim);
  color: var(--text-primary);
  font-size: 1.05rem;
  cursor: pointer;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.sheet-close-btn:hover {
  background: #ef4444;
  border-color: #ef4444;
  color: #fff;
  transform: rotate(90deg);
}

.sheet-layout {
  display: grid;
  grid-template-columns: minmax(0, 420px) minmax(0, 1fr);
  gap: 2rem;
  padding: 2rem;
  align-items: start;
  min-width: 0;
  max-width: 100%;
}

@media (max-width: 840px) {
  .sheet-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
    padding: 1.25rem;
  }
}

/* Gallery Column */
.sheet-media-column {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  min-width: 0;
  max-width: 100%;
}

.media-stage {
  position: relative;
  width: 100%;
  max-width: 420px;
  aspect-ratio: 1 / 1;
  max-height: 440px;
  background: rgba(0, 0, 0, 0.35);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: var(--hairline-border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

.stage-image {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: opacity 0.2s ease;
  display: block;
}

.stage-counter {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(8, 10, 26, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #fff;
  font-family: 'Plus Jakarta Sans', monospace;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
}

.stage-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(8, 10, 26, 0.75);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 0.95rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}
.stage-nav-btn:hover {
  background: var(--accent-purple);
  transform: translateY(-50%) scale(1.08);
}
.stage-nav-btn.prev { left: 8px; }
.stage-nav-btn.next { right: 8px; }

/* Thumbnails Track */
.thumbnails-track {
  display: flex;
  gap: 0.55rem;
  overflow-x: auto;
  max-width: 100%;
  min-width: 0;
  padding-bottom: 0.35rem;
  scrollbar-width: thin;
}
.thumbnails-track::-webkit-scrollbar {
  height: 4px;
}
.thumbnails-track::-webkit-scrollbar-thumb {
  background: var(--hairline-border);
  border-radius: 2px;
}

.thumb-cell,
.thumb-item {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-xs);
  object-fit: cover;
  background: rgba(0, 0, 0, 0.2);
  border: 1.5px solid var(--hairline-border);
  cursor: pointer;
  opacity: 0.55;
  flex-shrink: 0;
  overflow: hidden;
  transition: all 0.2s ease;
}
.thumb-cell:hover,
.thumb-item:hover {
  opacity: 0.88;
}
.thumb-cell.active,
.thumb-item.active {
  opacity: 1;
  border-color: var(--accent-purple);
  box-shadow: 0 0 0 2px rgba(168, 85, 247, 0.45);
}
.thumb-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Info Column */
.sheet-info-column {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  min-width: 0;
  max-width: 100%;
}

.modal-meta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag-code {
  background: var(--glass-surface-subtle);
  border: var(--hairline-border-gold);
  color: var(--accent-gold);
  font-family: 'Plus Jakarta Sans', monospace;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  box-shadow: 0 0 10px rgba(251, 191, 36, 0.2);
}

.tag-status {
  font-size: 0.74rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.04em;
}

.tag-free-ship {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--accent-green);
  background: var(--accent-green-soft);
  border: 1px solid rgba(52, 211, 153, 0.3);
  padding: 3px 10px;
  border-radius: var(--radius-pill);
}

.modal-heading {
  font-size: 1.4rem;
  font-weight: 800;
  line-height: 1.35;
  color: var(--text-primary);
}

.modal-creator {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Price Box */
.modal-price-card {
  background: var(--glass-surface-subtle);
  border: var(--hairline-border);
  box-shadow: var(--specular-rim);
  border-radius: var(--radius-md);
  padding: 1.1rem 1.25rem;
}

.price-header-row {
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
  margin-bottom: 0.25rem;
}

.price-thb-val {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.75rem;
  font-weight: 900;
  color: var(--accent-gold);
}

.price-orig-val {
  font-size: 0.95rem;
  color: var(--text-dim);
  text-decoration: line-through;
}

.price-sub-note {
  font-size: 0.8rem;
  color: var(--accent-green);
}

/* Spec Blocks */
.modal-spec-block {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.spec-heading {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--text-primary);
}

.variants-pill-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.v-pill,
.v-chip {
  cursor: pointer;
  background: var(--glass-surface-subtle);
  border: var(--hairline-border);
  box-shadow: var(--specular-rim);
  color: var(--text-secondary);
  font-size: 0.84rem;
  padding: 0.45rem 0.95rem;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}
.v-pill:hover,
.v-chip:hover {
  border-color: rgba(192, 132, 252, 0.5);
  color: var(--text-primary);
  transform: translateY(-1px);
}
.v-pill.selected {
  background: linear-gradient(135deg, rgba(235, 87, 87, 0.25) 0%, rgba(246, 211, 101, 0.25) 100%), rgba(255, 255, 255, 0.08);
  border-color: rgba(246, 211, 101, 0.8);
  color: #ffffff;
  box-shadow: 0 0 16px rgba(246, 211, 101, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transform: translateY(-1px) scale(1.02);
}
[data-theme="light"] .v-pill.selected {
  background: linear-gradient(135deg, rgba(217, 119, 6, 0.15) 0%, rgba(245, 158, 11, 0.25) 100%), rgba(255, 255, 255, 0.9);
  border-color: rgba(217, 119, 6, 0.7);
  color: #1a162b;
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.2);
}
.v-pill-price,
.v-price {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  color: var(--accent-gold);
  background: var(--accent-gold-soft);
  padding: 1px 6px;
  border-radius: var(--radius-pill);
  font-size: 0.76rem;
}

/* Size Table */
.spec-table-frame {
  overflow-x: auto;
  max-width: 100%;
  min-width: 0;
  border-radius: var(--radius-sm);
  border: var(--hairline-border);
  box-shadow: var(--specular-rim);
  background: var(--glass-surface-subtle);
}

.ios-data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.ios-data-table th {
  background: rgba(0, 0, 0, 0.15);
  color: var(--text-muted);
  font-weight: 700;
  padding: 0.65rem 0.95rem;
  text-align: left;
  border-bottom: var(--hairline-border);
  font-size: 0.78rem;
}

[data-theme="light"] .ios-data-table th {
  background: rgba(0, 0, 0, 0.04);
}

.ios-data-table td {
  padding: 0.7rem 0.95rem;
  border-bottom: var(--hairline-border);
  color: var(--text-secondary);
}

.ios-data-table tr:last-child td {
  border-bottom: none;
}

.spec-size-key,
.size-badge {
  font-weight: 800;
  color: var(--text-primary);
}

.modal-desc-box {
  font-size: 0.86rem;
  color: var(--text-secondary);
  line-height: 1.65;
  white-space: pre-wrap;
  background: var(--glass-surface-subtle);
  padding: 0.85rem 1.05rem;
  border-radius: var(--radius-sm);
  border: var(--hairline-border);
}

.delivery-time-pill {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  background: var(--glass-surface-subtle);
  border: var(--hairline-border);
  border-radius: var(--radius-sm);
  padding: 0.8rem 1.05rem;
  font-size: 0.84rem;
  color: var(--text-secondary);
}

/* Modal Actions */
.modal-action-row {
  display: flex;
  gap: 0.8rem;
  margin-top: 0.4rem;
  flex-wrap: wrap;
}

.btn-sheet-primary {
  flex: 2;
  min-width: 190px;
  background: linear-gradient(135deg, #0284c7 0%, #2563eb 100%);
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 4px 18px rgba(37, 99, 235, 0.45);
  color: #ffffff;
  font-family: inherit;
  font-size: 0.94rem;
  font-weight: 700;
  padding: 0.85rem 1.35rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn-sheet-primary:hover {
  transform: translateY(-2px);
  filter: brightness(1.12);
  box-shadow: 0 6px 24px rgba(37, 99, 235, 0.6);
}

.btn-sheet-secondary {
  flex: 1;
  min-width: 130px;
  background: var(--glass-surface-subtle);
  border: var(--hairline-border);
  box-shadow: var(--specular-rim);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  transition: all 0.2s ease;
}
.btn-sheet-secondary:hover {
  background: var(--glass-card-hover);
  border-color: rgba(192, 132, 252, 0.4);
  transform: translateY(-2px);
}

/* ─────────────────────────────────────────────────────
   11. BACK TO TOP & TOAST
   ───────────────────────────────────────────────────── */
.ios-floating-btt {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--glass-surface);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: var(--hairline-border);
  box-shadow: var(--specular-rim), var(--shadow-card);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 90;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px) scale(0.9);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.ios-floating-btt.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.ios-floating-btt:hover {
  background: linear-gradient(135deg, #7c3aed, #0284c7);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-3px) scale(1.06);
}

.ios-toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(30px);
  background: rgba(12, 14, 32, 0.94);
  backdrop-filter: blur(24px) saturate(190%);
  -webkit-backdrop-filter: blur(24px) saturate(190%);
  border: 1px solid rgba(168, 85, 247, 0.3);
  box-shadow: var(--shadow-modal);
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.7rem 1.6rem;
  border-radius: var(--radius-pill);
  z-index: 2000;
  pointer-events: none;
  opacity: 0;
  transition: all 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
  white-space: nowrap;
}

[data-theme="light"] .ios-toast {
  background: rgba(255, 255, 255, 0.95);
  color: #0f172a;
  border-color: rgba(139, 92, 246, 0.35);
  box-shadow: 0 12px 36px rgba(109, 40, 217, 0.2);
}

.ios-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ─────────────────────────────────────────────────────
   12. RESPONSIVE BREAKPOINTS (Mobile-First Luxury Optimization)
   ───────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .hero-section {
    padding: 1.75rem 1rem 1.35rem;
  }
  .hero-heading {
    font-size: 1.75rem;
  }
  .header-actions .nav-link-subtle {
    display: none;
  }
  .brand-caption {
    display: none;
  }
  .header-inner {
    height: 68px;
    padding: 0 1rem;
  }
  .brand-avatar {
    width: 44px;
    height: 44px;
    border-radius: 12px;
  }
  .brand-title {
    font-size: 1.25rem;
  }
  .brand-tag {
    font-size: 0.6rem;
    padding: 2px 7px;
  }
  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 1rem;
  }
  .ios-floating-btt {
    bottom: 16px;
    right: 16px;
    width: 42px;
    height: 42px;
  }
}

/* SMARTPHONE OPTIMIZATION (iPhone & Android 360px - 640px) */
@media (max-width: 640px) {
  /* Site Header */
  .header-inner {
    height: 60px;
    padding: 0 0.85rem;
  }
  .brand {
    gap: 0.65rem;
  }
  .brand-avatar {
    width: 38px;
    height: 38px;
    border-radius: 10px;
  }
  .brand-title {
    font-size: 1.12rem;
  }
  .brand-tag {
    display: none; /* Hide on small mobile to give room to buttons */
  }
  .header-actions {
    gap: 0.45rem;
  }

  /* Compact Segmented Theme Toggle */
  .theme-toggle-pill {
    padding: 2px;
  }
  .theme-btn-label {
    width: 28px;
    height: 26px;
  }
  .theme-btn-label .txt {
    display: none; /* Icon only: 🌙 / ☀️ */
  }
  .theme-slider-thumb {
    width: 28px;
    height: 26px;
  }
  [data-theme="light"] .theme-slider-thumb {
    transform: translateX(28px);
  }

  /* Facebook Button in Header: Clean Compact Pill */
  .btn-facebook-order {
    padding: 0.42rem 0.75rem;
    font-size: 0.78rem;
    gap: 0.35rem;
  }
  .btn-facebook-order span {
    display: inline !important;
  }

  /* Hero Section */
  .hero-section {
    padding: 1.25rem 0.85rem 1rem;
  }
  .hero-tag {
    font-size: 0.68rem;
    padding: 2px 9px;
    margin-bottom: 0.5rem;
  }
  .hero-heading {
    font-size: 1.48rem;
    letter-spacing: -0.02em;
    margin-bottom: 0.35rem;
  }
  .hero-sub {
    font-size: 0.8rem;
    line-height: 1.4;
    margin-bottom: 0.95rem;
    padding: 0 0.25rem;
  }

  /* Modern Inline Stats Pill (Dashboard Capsule) */
  .hero-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.25rem;
    padding: 0.55rem 0.65rem;
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
    border-radius: var(--radius-pill);
    background: var(--glass-surface-subtle);
  }
  .metric-item {
    text-align: center;
    padding: 0 0.2rem;
  }
  .metric-val {
    font-size: 1.05rem;
    margin-bottom: 0.1rem;
  }
  .metric-label {
    font-size: 0.64rem;
    white-space: nowrap;
  }
  .metric-sep {
    display: none;
  }

  /* Search & Toolbar */
  .toolbar-glass {
    padding: 0.75rem;
    margin-bottom: 1rem;
    border-radius: var(--radius-md);
    gap: 0.65rem;
  }
  #search-input {
    font-size: 0.84rem;
    padding: 0.65rem 2.2rem 0.65rem 2.4rem;
  }
  .search-icon-decor {
    left: 0.8rem;
    font-size: 0.88rem;
  }
  .category-filter-row {
    gap: 0.35rem;
    padding-bottom: 0.15rem;
  }
  .filter-pill {
    font-size: 0.76rem;
    padding: 0.38rem 0.75rem;
  }
  .toolbar-controls {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 0.4rem;
    padding-top: 0.65rem;
  }
  .controls-left {
    gap: 0.4rem;
    flex: 1;
  }
  .select-wrapper {
    flex: 1;
  }
  .select-label {
    display: none;
  }
  .ios-select {
    width: 100%;
    font-size: 0.72rem;
    padding: 0.35rem 1.4rem 0.35rem 0.55rem;
  }
  .results-badge {
    font-size: 0.72rem;
    white-space: nowrap;
    margin-left: 0;
  }

  /* 2-COLUMN LUXURY E-COMMERCE PRODUCT GRID */
  .products-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.65rem !important;
  }
  .product-card {
    border-radius: var(--radius-md);
  }
  .card-media {
    aspect-ratio: 1 / 1;
  }
  .card-badge-code {
    top: 6px;
    left: 6px;
    font-size: 0.62rem;
    padding: 2px 6px;
  }
  .card-badge-status {
    top: 6px;
    right: 6px;
    font-size: 0.6rem;
    padding: 2px 6px;
  }
  .card-gallery-pill {
    bottom: 5px;
    right: 5px;
    font-size: 0.58rem;
    padding: 1px 5px;
  }
  .card-body {
    padding: 0.65rem 0.65rem 0.75rem;
  }
  .card-title {
    font-size: 0.82rem;
    line-height: 1.35;
    min-height: 2.25rem;
    margin-bottom: 0.2rem;
  }
  .card-shop {
    font-size: 0.68rem;
    margin-bottom: 0.35rem;
  }
  .card-price-row {
    gap: 0.3rem;
    margin-bottom: 0.25rem;
    flex-wrap: wrap;
  }
  .card-price-main {
    font-size: 1.12rem;
  }
  .card-price-orig {
    font-size: 0.72rem;
  }
  .card-price-multi {
    font-size: 0.58rem;
    padding: 1px 4px;
  }
  .card-ship-badge {
    font-size: 0.66rem;
    margin-bottom: 0.45rem;
  }
  .card-cta-btn {
    padding: 0.42rem 0.5rem;
    font-size: 0.74rem;
    border-radius: var(--radius-pill);
  }

  /* ─────────────────────────────────────────────────────
     NATIVE APPLE iOS BOTTOM SHEET MODAL (Mobile Link View)
     ───────────────────────────────────────────────────── */
  .modal-backdrop {
    padding: 0 !important;
    align-items: flex-end !important;
    overflow: hidden !important;
  }
  .modal-sheet {
    max-width: 100% !important;
    width: 100% !important;
    max-height: 92vh !important;
    border-radius: 24px 24px 0 0 !important;
    border-left: none !important;
    border-right: none !important;
    border-bottom: none !important;
    animation: sheetSlideUp 0.32s cubic-bezier(0.16, 1, 0.3, 1) !important;
    padding-bottom: 0 !important;
    display: flex;
    flex-direction: column;
  }
  @keyframes sheetSlideUp {
    from { opacity: 0; transform: translateY(100%); }
    to   { opacity: 1; transform: translateY(0); }
  }
  .sheet-handle {
    display: block !important;
    width: 42px;
    height: 4.5px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.3);
    margin: 8px auto 2px;
    flex-shrink: 0;
  }
  [data-theme="light"] .sheet-handle {
    background: rgba(0, 0, 0, 0.2);
  }
  .sheet-close-btn {
    top: 10px;
    right: 12px;
    width: 32px;
    height: 32px;
    font-size: 0.85rem;
    background: rgba(255, 255, 255, 0.12);
  }
  .sheet-layout {
    grid-template-columns: 1fr !important;
    gap: 0.95rem !important;
    padding: 0.65rem 0.95rem 5.8rem !important; /* Extra bottom padding for sticky CTA */
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    flex: 1;
  }

  /* Gallery inside modal on mobile */
  .media-stage {
    aspect-ratio: 16 / 11 !important;
    max-height: 270px;
    border-radius: var(--radius-sm);
  }
  .stage-image {
    object-fit: contain;
  }
  .thumbnails-track {
    gap: 0.4rem;
    padding-bottom: 0.15rem;
  }
  .thumb-cell,
  .thumb-item {
    width: 48px !important;
    height: 48px !important;
    border-radius: var(--radius-xs);
  }

  /* Modal Details */
  .sheet-info-column {
    gap: 0.85rem;
  }
  .modal-meta-row {
    gap: 0.35rem;
  }
  .tag-code {
    font-size: 0.72rem;
    padding: 2px 7px;
  }
  .tag-status {
    font-size: 0.68rem;
    padding: 2px 7px;
  }
  .tag-free-ship {
    font-size: 0.68rem;
    padding: 2px 7px;
  }
  .modal-heading {
    font-size: 1.15rem !important;
    line-height: 1.35;
  }
  .modal-creator {
    font-size: 0.75rem;
  }

  /* Modal Price Card */
  .modal-price-card {
    padding: 0.75rem 0.9rem;
  }
  .price-thb-val {
    font-size: 1.48rem !important;
  }
  .price-orig-val {
    font-size: 0.85rem;
  }
  .price-sub-note {
    font-size: 0.74rem;
  }

  /* Modal Variants Pill */
  .spec-heading {
    font-size: 0.82rem;
  }
  .v-pill,
  .v-chip {
    font-size: 0.76rem;
    padding: 0.35rem 0.75rem;
  }
  .v-pill-price {
    font-size: 0.7rem;
  }

  /* Modal Sizes Table */
  .ios-data-table {
    font-size: 0.74rem;
  }
  .ios-data-table th,
  .ios-data-table td {
    padding: 0.5rem 0.65rem;
  }

  /* Description & Timeline */
  .modal-desc-box {
    font-size: 0.8rem;
    padding: 0.7rem 0.85rem;
  }
  .delivery-time-pill {
    padding: 0.65rem 0.85rem;
    font-size: 0.76rem;
    gap: 0.5rem;
  }

  /* ⚡ STICKY BOTTOM ACTION DOCK (ALWAYS VISIBLE AT FINGERTIPS) */
  .modal-action-row {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 100 !important;
    background: rgba(11, 14, 38, 0.92) !important;
    backdrop-filter: blur(28px) saturate(200%) !important;
    -webkit-backdrop-filter: blur(28px) saturate(200%) !important;
    border-top: var(--hairline-border) !important;
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.5) !important;
    padding: 0.65rem 0.95rem calc(0.65rem + env(safe-area-inset-bottom, 0px)) !important;
    margin-top: 0 !important;
    display: flex !important;
    gap: 0.5rem !important;
  }
  [data-theme="light"] .modal-action-row {
    background: rgba(255, 255, 255, 0.92) !important;
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.12) !important;
  }
  .btn-sheet-primary {
    flex: 1 !important;
    min-width: 0 !important;
    padding: 0.75rem 0.85rem !important;
    font-size: 0.88rem !important;
    border-radius: var(--radius-pill) !important;
    justify-content: center !important;
  }
  .btn-sheet-secondary {
    padding: 0.75rem 0.85rem !important;
    font-size: 0.82rem !important;
    border-radius: var(--radius-pill) !important;
    white-space: nowrap !important;
  }

  /* Guide Section on Mobile */
  .guide-container {
    padding: 1.5rem 1rem;
  }
  .guide-header h2 {
    font-size: 1.35rem;
  }
  .guide-grid {
    grid-template-columns: 1fr;
    gap: 0.95rem;
  }
  .trust-bar {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  /* Footer on Mobile */
  .footer-content {
    flex-direction: column;
    text-align: center;
    gap: 1.1rem;
  }
  .footer-right {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    align-items: center;
    width: 100%;
  }
  .footer-fb-link {
    width: 100%;
    max-width: 280px;
    justify-content: center;
    margin-left: 0 !important;
  }
}

/* Extra small devices (<= 360px, iPhone SE) */
@media (max-width: 360px) {
  .brand-title {
    font-size: 1rem;
  }
  .btn-facebook-order span {
    font-size: 0.72rem;
  }
  .products-grid {
    gap: 0.45rem !important;
  }
  .card-body {
    padding: 0.55rem;
  }
  .card-title {
    font-size: 0.78rem;
  }
}
