/* ==========================================================================
   MO.shop — Multi-Product Storefront & Dynamic Product Themes
   Themes: [data-theme="store"] | [data-theme="galaxy"] | [data-theme="humidifier"]
   ========================================================================== */

:root,
[data-theme="store"] {
  --bg-main: #06070e;
  --bg-surface: #0d101d;
  --bg-card: rgba(16, 20, 36, 0.78);
  --bg-card-hover: rgba(24, 30, 52, 0.92);
  --border-subtle: rgba(255, 255, 255, 0.09);
  --border-accent: rgba(168, 85, 247, 0.42);
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --accent-1: #a855f7;
  --accent-2: #38bdf8;
  --accent-3: #f59e0b;
  --accent-glow: rgba(168, 85, 247, 0.25);
  --btn-gradient: linear-gradient(135deg, #9333ea 0%, #3b82f6 100%);
  --btn-shadow: 0 10px 28px -6px rgba(147, 51, 234, 0.48);
  --ambient-top: radial-gradient(ellipse 80% 50% at 50% -10%, rgba(147, 51, 234, 0.22), transparent 70%);
  --ambient-side: radial-gradient(circle at 85% 25%, rgba(56, 189, 248, 0.14), transparent 55%);
}

[data-theme="galaxy"] {
  --bg-main: #06040f;
  --bg-surface: #0e0a1f;
  --bg-card: rgba(19, 13, 41, 0.80);
  --bg-card-hover: rgba(28, 19, 58, 0.94);
  --border-subtle: rgba(216, 180, 254, 0.12);
  --border-accent: rgba(236, 72, 153, 0.48);
  --text-primary: #faf5ff;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --accent-1: #a855f7;
  --accent-2: #ec4899;
  --accent-3: #22d3ee;
  --accent-glow: rgba(236, 72, 153, 0.28);
  --btn-gradient: linear-gradient(135deg, #9333ea 0%, #ec4899 55%, #06b6d4 100%);
  --btn-shadow: 0 12px 30px -6px rgba(236, 72, 153, 0.50);
  --ambient-top: radial-gradient(ellipse 85% 55% at 50% -10%, rgba(168, 85, 247, 0.30), transparent 70%);
  --ambient-side: radial-gradient(circle at 15% 30%, rgba(236, 72, 153, 0.18), transparent 55%);
}

[data-theme="humidifier"] {
  --bg-main: #041017;
  --bg-surface: #091c26;
  --bg-card: rgba(11, 31, 42, 0.82);
  --bg-card-hover: rgba(15, 43, 58, 0.95);
  --border-subtle: rgba(45, 212, 191, 0.14);
  --border-accent: rgba(6, 182, 212, 0.50);
  --text-primary: #f0fdfa;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --accent-1: #06b6d4;
  --accent-2: #2dd4bf;
  --accent-3: #38bdf8;
  --accent-glow: rgba(6, 182, 212, 0.28);
  --btn-gradient: linear-gradient(135deg, #0891b2 0%, #14b8a6 55%, #38bdf8 100%);
  --btn-shadow: 0 12px 30px -6px rgba(6, 182, 212, 0.48);
  --ambient-top: radial-gradient(ellipse 85% 55% at 50% -10%, rgba(6, 182, 212, 0.28), transparent 70%);
  --ambient-side: radial-gradient(circle at 85% 25%, rgba(45, 212, 191, 0.18), transparent 55%);
}

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

html {
  scroll-behavior: smooth;
  font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-main);
  color: var(--text-primary);
}

body {
  min-height: 100vh;
  background-color: var(--bg-main);
  background-image: var(--ambient-top), var(--ambient-side);
  background-attachment: fixed;
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  padding-bottom: 72px;
}

@media (min-width: 768px) {
  body {
    padding-bottom: 0;
  }
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ==========================================================================
   Navigation Header
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(6, 8, 16, 0.78);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border-subtle);
}

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

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--btn-gradient);
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 0.95rem;
  color: #fff;
  box-shadow: 0 4px 16px var(--accent-glow);
}

.brand-dot {
  color: var(--accent-2);
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  transition: all 0.2s ease;
}

.nav-pill:hover,
.nav-pill.active {
  color: var(--text-primary);
  border-color: var(--border-accent);
  background: rgba(255, 255, 255, 0.09);
}

.nav-pill.hide-mobile {
  display: none;
}

@media (min-width: 768px) {
  .nav-pill.hide-mobile {
    display: inline-flex;
  }
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 14px;
  background: var(--btn-gradient);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  box-shadow: var(--btn-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
}

.btn-sm {
  padding: 9px 16px;
  font-size: 0.85rem;
  border-radius: 11px;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.94rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.10);
  border-color: var(--border-accent);
}

/* ==========================================================================
   Storefront Home Hero & Catalog (index.html)
   ========================================================================== */
.store-hero {
  padding: 58px 0 38px;
  text-align: center;
}

.eyebrow-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-accent);
  color: var(--accent-2);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.store-hero h1 {
  font-size: clamp(2.1rem, 4.8vw, 3.5rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  max-width: 820px;
  margin: 0 auto 16px;
}

.gradient-text {
  background: var(--btn-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.store-hero p {
  font-size: 1.08rem;
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto 28px;
}

.store-metrics {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-bottom: 34px;
}

.metric-chip {
  padding: 10px 18px;
  border-radius: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  font-size: 0.86rem;
  color: var(--text-secondary);
}

.metric-chip strong {
  color: var(--text-primary);
}

/* Filter & Search Bar */
.catalog-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 28px;
  padding: 14px 18px;
  border-radius: 18px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
}

.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-btn {
  padding: 8px 15px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.09);
}

.filter-btn.active {
  background: var(--btn-gradient);
  color: #fff;
}

.search-box {
  position: relative;
  min-width: 240px;
  flex: 1;
  max-width: 320px;
}

.search-box input {
  width: 100%;
  padding: 10px 14px 10px 36px;
  border-radius: 11px;
  border: 1px solid var(--border-subtle);
  background: rgba(0, 0, 0, 0.35);
  color: var(--text-primary);
  font-size: 0.88rem;
  outline: none;
}

.search-box input:focus {
  border-color: var(--accent-2);
}

.search-box svg {
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}

/* Product Showcase Grid */
.catalog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 26px;
  margin-bottom: 56px;
}

@media (min-width: 820px) {
  .catalog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}

.product-card:hover {
  transform: translateY(-5px);
}

.product-card.card-galaxy:hover {
  border-color: rgba(236, 72, 153, 0.55);
  box-shadow: 0 22px 45px -15px rgba(168, 85, 247, 0.35);
}

.product-card.card-humidifier:hover {
  border-color: rgba(45, 212, 191, 0.55);
  box-shadow: 0 22px 45px -15px rgba(6, 182, 212, 0.35);
}

.card-media {
  position: relative;
  aspect-ratio: 16 / 11;
  overflow: hidden;
  background: #090d16;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

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

.card-badges {
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  pointer-events: none;
}

.theme-tag {
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  backdrop-filter: blur(10px);
  color: #fff;
}

.theme-tag.galaxy {
  background: rgba(147, 51, 234, 0.82);
  border: 1px solid rgba(236, 72, 153, 0.5);
}

.theme-tag.humidifier {
  background: rgba(8, 145, 178, 0.85);
  border: 1px solid rgba(45, 212, 191, 0.5);
}

.deal-tag {
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 800;
  background: rgba(15, 23, 42, 0.88);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.4);
}

.card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.card-stars {
  color: #fbbf24;
  font-weight: 700;
}

.card-title {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.card-desc {
  font-size: 0.93rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.card-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 22px;
}

.spec-pill {
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 0.76rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
}

.card-actions {
  margin-top: auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.card-galaxy .btn-product-open {
  background: linear-gradient(135deg, #9333ea 0%, #ec4899 100%);
  box-shadow: 0 8px 22px -6px rgba(236, 72, 153, 0.48);
}

.card-humidifier .btn-product-open {
  background: linear-gradient(135deg, #0891b2 0%, #14b8a6 100%);
  box-shadow: 0 8px 22px -6px rgba(20, 184, 166, 0.48);
}

/* ==========================================================================
   Dedicated Product Page Layout (products/*.html)
   ========================================================================== */
.product-hero {
  padding: 40px 0 46px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1.08fr 0.92fr;
    gap: 44px;
  }
}

.rating-strip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  font-size: 0.84rem;
  margin-bottom: 14px;
}

.rating-strip .stars {
  color: #fbbf24;
  font-weight: 700;
}

.product-hero h1 {
  font-size: clamp(2rem, 4.2vw, 3.15rem);
  font-weight: 800;
  line-height: 1.13;
  letter-spacing: -0.03em;
  margin-bottom: 14px;
}

.hero-subtitle {
  font-size: 1.04rem;
  color: var(--text-secondary);
  margin-bottom: 22px;
}

.price-callout {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border-radius: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-accent);
  margin-bottom: 22px;
}

.price-tag {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--accent-2);
}

.price-note {
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.hero-bullets {
  list-style: none;
  display: grid;
  gap: 10px;
  margin-bottom: 26px;
}

.hero-bullets li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.check-dot {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--border-accent);
  color: var(--accent-2);
  display: grid;
  place-items: center;
  font-size: 0.78rem;
  font-weight: 800;
  flex-shrink: 0;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-visual-frame {
  position: relative;
  border-radius: 26px;
  overflow: hidden;
  border: 1px solid var(--border-accent);
  box-shadow: 0 28px 60px -15px var(--accent-glow);
  background: var(--bg-surface);
}

.hero-visual-frame img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.visual-caption-bar {
  position: absolute;
  bottom: 14px;
  left: 14px;
  right: 14px;
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(5, 10, 20, 0.80);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
}

/* Section Headers */
.section-block {
  padding: 46px 0;
}

.section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 32px;
}

.section-head h2 {
  font-size: clamp(1.65rem, 3.2vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.section-head p {
  color: var(--text-secondary);
  font-size: 0.98rem;
}

/* ==========================================================================
   Feature Cards Grid
   ========================================================================== */
.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

@media (min-width: 680px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 980px) {
  .features-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.feature-card {
  padding: 22px;
  border-radius: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  transition: transform 0.22s ease, border-color 0.22s ease;
}

.feature-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-accent);
}

.feature-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-accent);
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  margin-bottom: 14px;
}

.feature-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 7px;
}

.feature-card p {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

/* ==========================================================================
   Interactive Simulators (Galaxy & Humidifier)
   ========================================================================== */
.simulator-box {
  border-radius: 26px;
  background: var(--bg-card);
  border: 1px solid var(--border-accent);
  padding: 24px;
  box-shadow: 0 24px 55px -20px var(--accent-glow);
}

@media (min-width: 860px) {
  .simulator-box {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 28px;
    padding: 30px;
    align-items: center;
  }
}

.sim-stage {
  position: relative;
  height: 330px;
  border-radius: 20px;
  overflow: hidden;
  background: #04060d;
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding-bottom: 24px;
  transition: background 0.5s ease;
}

/* Galaxy Simulator Visuals */
.galaxy-nebula-layer {
  position: absolute;
  inset: -30%;
  background: radial-gradient(circle at 50% 45%, rgba(168, 85, 247, 0.72), rgba(236, 72, 153, 0.35) 45%, transparent 72%);
  filter: blur(22px);
  animation: nebulaSpin 16s linear infinite;
  transition: background 0.5s ease, opacity 0.4s ease;
}

.galaxy-stars-layer {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(2px 2px at 20% 25%, #fff, transparent),
    radial-gradient(2px 2px at 72% 18%, #67e8f9, transparent),
    radial-gradient(1.5px 1.5px at 45% 60%, #fff, transparent),
    radial-gradient(2px 2px at 82% 52%, #f0abfc, transparent),
    radial-gradient(1.5px 1.5px at 15% 72%, #fff, transparent),
    radial-gradient(2px 2px at 60% 35%, #fff, transparent);
}

@keyframes nebulaSpin {
  0% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(180deg) scale(1.08); }
  100% { transform: rotate(360deg) scale(1); }
}

.sim-status-pill {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.76rem;
  font-weight: 700;
  z-index: 4;
}

/* Humidifier Simulator Visuals */
.humidifier-stage.scene-bedroom {
  background: radial-gradient(circle at 50% 25%, rgba(30, 58, 138, 0.42), #040914 80%);
}
.humidifier-stage.scene-car {
  background: radial-gradient(circle at 50% 25%, rgba(14, 116, 144, 0.45), #030b12 80%);
}
.humidifier-stage.scene-desk {
  background: radial-gradient(circle at 50% 25%, rgba(15, 118, 110, 0.42), #051017 80%);
}

.mist-plume {
  position: relative;
  width: 74px;
  height: 150px;
  margin-bottom: -10px;
  pointer-events: none;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  transition: opacity 0.35s ease;
}

.mist-plume.off {
  opacity: 0;
}

.mist-plume.intermittent {
  animation: intermittentMist 5s ease-in-out infinite;
}

@keyframes intermittentMist {
  0%, 55% { opacity: 1; }
  65%, 92% { opacity: 0.08; }
  100% { opacity: 1; }
}

.mist-puff {
  position: absolute;
  bottom: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(224, 242, 254, 0.78) 0%, rgba(103, 232, 249, 0.25) 55%, transparent 75%);
  filter: blur(5px);
  animation: riseMist 2.6s ease-out infinite;
}

.mist-puff:nth-child(2) { animation-delay: 0.65s; left: 16px; }
.mist-puff:nth-child(3) { animation-delay: 1.3s; right: 16px; }
.mist-puff:nth-child(4) { animation-delay: 1.95s; }

@keyframes riseMist {
  0% {
    transform: translateY(0) scale(0.7);
    opacity: 0.9;
  }
  100% {
    transform: translateY(-135px) scale(2.5);
    opacity: 0;
  }
}

.mini-humidifier-unit {
  position: relative;
  width: 112px;
  height: 142px;
  border-radius: 26px 26px 22px 22px;
  background: linear-gradient(145deg, #27323f 0%, #111822 100%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.65);
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 2;
}

.humidifier-top-halo {
  width: 96px;
  height: 22px;
  margin-top: 6px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, #ff4d6d, #ffbe0b, #06d6a0, #38bdf8, #a855f7, #ff4d6d);
  box-shadow: 0 0 22px rgba(56, 189, 248, 0.65);
  display: grid;
  place-items: center;
  animation: haloSpin 6s linear infinite;
  transition: all 0.35s ease;
}

.humidifier-top-halo.mode-aqua {
  background: radial-gradient(circle, #67e8f9, #06b6d4);
  box-shadow: 0 0 24px rgba(6, 182, 212, 0.8);
  animation: none;
}

.humidifier-top-halo.mode-sunset {
  background: radial-gradient(circle, #fde68a, #f97316);
  box-shadow: 0 0 24px rgba(249, 115, 22, 0.75);
  animation: none;
}

.humidifier-top-halo.mode-off {
  background: #334155;
  box-shadow: none;
  animation: none;
}

@keyframes haloSpin {
  to { filter: hue-rotate(360deg); }
}

.humidifier-nozzle {
  width: 24px;
  height: 8px;
  border-radius: 50%;
  background: #090d14;
}

.humidifier-stripe {
  width: 100%;
  height: 3px;
  margin-top: 10px;
  background: linear-gradient(90deg, #ec4899, #2dd4bf, #38bdf8);
  transition: opacity 0.3s ease;
}

.humidifier-stripe.off {
  opacity: 0.15;
}

.humidifier-label {
  margin-top: 26px;
  font-size: 0.62rem;
  letter-spacing: 0.24em;
  color: rgba(255, 255, 255, 0.55);
  font-weight: 700;
  writing-mode: vertical-rl;
}

.sim-controls {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 20px;
}

@media (min-width: 860px) {
  .sim-controls {
    margin-top: 0;
  }
}

.control-group-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 7px;
  display: block;
}

.preset-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.preset-btn {
  padding: 8px 13px;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.preset-btn:hover {
  border-color: var(--border-accent);
  color: var(--text-primary);
}

.preset-btn.active {
  background: var(--btn-gradient);
  color: #ffffff;
  border-color: transparent;
}

/* ==========================================================================
   Gallery Grid & Lightbox
   ========================================================================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

@media (min-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}

.gallery-item {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  cursor: zoom-in;
  aspect-ratio: 1 / 1;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 28px 12px 10px;
  background: linear-gradient(to top, rgba(3, 7, 18, 0.90), transparent);
  font-size: 0.8rem;
  font-weight: 600;
  color: #f8fafc;
}

.lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(2, 6, 15, 0.92);
  backdrop-filter: blur(12px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.lightbox-modal.open {
  display: flex;
}

.lightbox-content {
  position: relative;
  max-width: 760px;
  width: 100%;
  text-align: center;
}

.lightbox-content img {
  max-height: 78vh;
  margin: 0 auto 12px;
  border-radius: 18px;
  border: 1px solid var(--border-accent);
}

.lightbox-close {
  position: absolute;
  top: -14px;
  right: -6px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: #0f172a;
  color: #fff;
  font-size: 1.25rem;
  cursor: pointer;
}

/* ==========================================================================
   Pro-Tip Banner
   ========================================================================== */
.protip-banner {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 20px 24px;
  border-radius: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-accent);
  margin: 24px 0;
}

.protip-badge {
  padding: 4px 10px;
  border-radius: 8px;
  background: var(--btn-gradient);
  color: #fff;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ==========================================================================
   Reviews: Leave a Review (Top) + Single Auto-Fading Spotlight (Bottom)
   ========================================================================== */
.reviews-wrapper {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.review-form-card {
  padding: 24px;
  border-radius: 22px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
}

.review-form-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 14px;
}

.star-picker {
  display: flex;
  gap: 6px;
  margin-bottom: 14px;
}

.star-btn {
  background: none;
  border: none;
  font-size: 1.65rem;
  color: #475569;
  cursor: pointer;
  transition: transform 0.15s ease, color 0.15s ease;
}

.star-btn.active,
.star-btn:hover {
  color: #fbbf24;
  transform: scale(1.12);
}

.review-form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 12px;
}

@media (min-width: 600px) {
  .review-form-row {
    grid-template-columns: 1fr 1fr;
  }
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 11px 14px;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  background: rgba(0, 0, 0, 0.32);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.92rem;
  outline: none;
}

.form-input:focus,
.form-textarea:focus {
  border-color: var(--accent-2);
}

.form-textarea {
  min-height: 86px;
  resize: vertical;
  margin-bottom: 12px;
}

.spotlight-card {
  padding: 26px;
  border-radius: 22px;
  background: var(--bg-card);
  border: 1px solid var(--border-accent);
  position: relative;
}

.spotlight-stage {
  min-height: 126px;
  transition: opacity 0.45s ease;
}

.spotlight-stage.fading {
  opacity: 0;
}

.spotlight-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.reviewer-name {
  font-weight: 700;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.verified-pill {
  font-size: 0.72rem;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.16);
  color: #34d399;
  border: 1px solid rgba(52, 211, 153, 0.35);
}

.spotlight-quote {
  font-size: 0.98rem;
  color: var(--text-primary);
  line-height: 1.6;
  margin-bottom: 8px;
}

.spotlight-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.spotlight-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
}

.spotlight-dots {
  display: flex;
  gap: 7px;
}

.dot-btn {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.22);
  cursor: pointer;
  transition: all 0.25s ease;
}

.dot-btn.active {
  width: 22px;
  border-radius: 999px;
  background: var(--accent-2);
}

.spotlight-arrows {
  display: flex;
  gap: 8px;
}

.arrow-btn {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  cursor: pointer;
}

.arrow-btn:hover {
  border-color: var(--border-accent);
}

/* ==========================================================================
   Footer & Mobile Sticky CTA
   ========================================================================== */
.site-footer {
  margin-top: 48px;
  padding: 32px 0;
  border-top: 1px solid var(--border-subtle);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.mobile-sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 60;
  padding: 10px 16px;
  background: rgba(6, 10, 20, 0.92);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--border-accent);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

@media (min-width: 768px) {
  .mobile-sticky-cta {
    display: none;
  }
}
