/* ============================================================
   WeedMe MAX Product Carousel — Scoped Styles
   All classes prefixed with .wm- to avoid theme conflicts
   ============================================================ */

.wm-carousel {
  position: relative;
  width: 100%;
  max-width: 1280px;
  height: 720px;
  margin: 0 auto;
  overflow: hidden;
  font-family: 'Barlow Condensed', 'Segoe UI', sans-serif;
  color: #fff;
  -webkit-font-smoothing: antialiased;
}

/* Stars */
.wm-stars { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.wm-star {
  position: absolute; border-radius: 50%; background: #fff;
  animation: wmTwinkle var(--d) ease-in-out infinite;
  opacity: var(--o);
}
@keyframes wmTwinkle {
  0%,100% { opacity: var(--o) }
  50% { opacity: calc(var(--o) * 0.15) }
}

/* ── SUBTABS ─────────────────────────────────────────────────── */
.wm-subtabs {
  position: absolute; top: 12px; left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; gap: 32px; z-index: 10;
}
.wm-subtab {
  display: flex; align-items: center; gap: 10px;
  padding: 7px 18px; border-radius: 100px;
  border: 1.5px solid transparent;
  cursor: pointer;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 14px; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  transition: all 0.3s ease; user-select: none;
  background: none;
}
.wm-subtab:hover { color: rgba(255,255,255,0.7) }
.wm-subtab.active {
  background: rgba(70,40,150,0.5);
  color: #fff;
  border-color: rgba(150,100,255,0.4);
}
.wm-tab-dot {
  width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid currentColor;
  position: relative; flex-shrink: 0;
}
.wm-subtab.active .wm-tab-dot::after {
  content: ''; position: absolute; inset: 2px;
  border-radius: 50%; background: currentColor;
}

/* ── SLIDE WRAPPER ───────────────────────────────────────────── */
.wm-slide-wrap { position: absolute; inset: 0; z-index: 1; }

/* Staggered reveal */
.wm-slide-wrap .wm-product-title,
.wm-slide-wrap .wm-center,
.wm-slide-wrap .wm-left,
.wm-slide-wrap .wm-right {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}
.wm-slide-wrap.reveal .wm-product-title { opacity:1; transform:translateY(0); transition-delay:0ms }
.wm-slide-wrap.reveal .wm-center         { opacity:1; transform:translateY(0); transition-delay:100ms }
.wm-slide-wrap.reveal .wm-left           { opacity:1; transform:translateY(0); transition-delay:180ms }
.wm-slide-wrap.reveal .wm-right          { opacity:1; transform:translateY(0); transition-delay:260ms }

/* ── PRODUCT TITLE ───────────────────────────────────────────── */
.wm-product-title {
  position: absolute; top: 56px; left: 0; right: 0;
  text-align: center; pointer-events: none; z-index: 5;
}
.wm-title-sub {
  font-size: 34px; font-weight: 600;
  letter-spacing: 5px; color: #c8a8e8;
  text-transform: uppercase; line-height: 1;
}
.wm-title-main {
  font-size: 66px; font-weight: 900;
  letter-spacing: 2px; color: #fff;
  text-transform: uppercase; line-height: 1;
  text-shadow: 0 2px 40px rgba(255,255,255,0.08);
}

/* ── CENTER VISUAL ───────────────────────────────────────────── */
.wm-center {
  position: absolute;
  left: calc(50% - 280px);
  top: calc(50% - 240px);
  width: 560px; height: 560px;
  pointer-events: none; z-index: 4;
  display: flex; align-items: center; justify-content: center;
}
.wm-visual-img {
  position: absolute;
  width: 480px; height: 480px;
  object-fit: contain;
  mix-blend-mode: screen;
  z-index: 1;
}
.wm-device-img {
  position: absolute;
  width: 240px; height: 360px;
  object-fit: contain;
  z-index: 3;
  filter: drop-shadow(0 12px 40px rgba(0,0,0,0.6));
  pointer-events: auto; cursor: pointer;
  animation: wmFloat 3s ease-in-out infinite;
}
@keyframes wmFloat {
  0%,100% { transform: translateY(0) }
  50% { transform: translateY(-10px) }
}

/* ── LEFT PANEL ──────────────────────────────────────────────── */
.wm-left {
  position: absolute; left: 160px; top: 280px; z-index: 5;
}
.wm-spec-row { display: flex; gap: 40px; margin-bottom: 16px; }
.wm-spec { display: flex; flex-direction: column; gap: 4px; }
.wm-spec-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px; font-weight: 700;
  letter-spacing: 2.5px; color: #FF1493;
  text-transform: uppercase;
}
.wm-spec-val {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 17px; font-weight: 700; color: #fff;
  text-transform: uppercase;
}
.wm-strain-val { color: #ADFF2F; font-size: 20px; }
.wm-thc-block { margin-top: 12px; }
.wm-thc-pct {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 60px; font-weight: 900;
  color: #ff8c00; line-height: 1; letter-spacing: -1px;
}
.wm-thc-word {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 46px; font-weight: 900;
  color: #fff; line-height: 1; letter-spacing: 4px;
}

/* ── RIGHT PANEL ─────────────────────────────────────────────── */
.wm-right {
  position: absolute; right: 120px; top: 280px;
  width: 240px; z-index: 5;
}
.wm-prov-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px; font-weight: 700;
  letter-spacing: 2.5px; color: #FF1493;
  text-transform: uppercase; margin-bottom: 4px;
}
.wm-prov-list {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 14px; font-weight: 800;
  color: #FF1493; text-transform: uppercase;
  letter-spacing: 0.5px; line-height: 1.5;
  margin-bottom: 16px;
}
.wm-desc-card {
  background: rgba(18,6,46,0.88);
  border: 1px solid rgba(110,70,200,0.3);
  border-radius: 14px; padding: 16px 18px;
  font-family: 'Barlow', 'Segoe UI', sans-serif;
  font-size: 13px; line-height: 1.65;
  color: rgba(255,255,255,0.82);
}

/* ── ARROWS ──────────────────────────────────────────────────── */
.wm-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 50px; height: 50px; border-radius: 50%;
  background: rgba(70,40,130,0.5);
  border: 2px solid rgba(140,100,255,0.35);
  color: rgba(255,255,255,0.85);
  cursor: pointer; display: flex;
  align-items: center; justify-content: center;
  font-size: 24px; font-weight: 300; z-index: 20;
  transition: all 0.2s ease; line-height: 1;
}
.wm-arrow:hover {
  background: rgba(100,60,180,0.7);
  border-color: rgba(180,140,255,0.6);
  transform: translateY(-50%) scale(1.08);
}
.wm-arrow:disabled { opacity: 0.15; cursor: not-allowed; transform: translateY(-50%); }
.wm-prev { left: 20px; }
.wm-next { right: 20px; }

/* ── DOTS ────────────────────────────────────────────────────── */
.wm-dots {
  position: absolute; bottom: 16px; left: 50%;
  transform: translateX(-50%);
  display: flex; gap: 8px; z-index: 20;
}
.wm-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: rgba(255,255,255,0.25);
  cursor: pointer; border: none; padding: 0;
  transition: all 0.3s;
}
.wm-dot.active { background: #FF1493; transform: scale(1.4); }

/* ── RESPONSIVE ──────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .wm-carousel { height: 600px; }
  .wm-title-main { font-size: 48px; }
  .wm-title-sub { font-size: 26px; }
  .wm-left { left: 40px; top: 240px; }
  .wm-right { right: 40px; top: 240px; width: 200px; }
  .wm-center { left: calc(50% - 220px); top: calc(50% - 200px); width: 440px; height: 440px; }
  .wm-visual-img { width: 380px; height: 380px; }
  .wm-device-img { width: 180px; height: 280px; }
  .wm-thc-pct { font-size: 44px; }
  .wm-thc-word { font-size: 34px; }
}
@media (max-width: 768px) {
  .wm-carousel { height: 520px; }
  .wm-title-main { font-size: 32px; }
  .wm-title-sub { font-size: 18px; }
  .wm-left { left: 20px; top: 200px; }
  .wm-right { display: none; }
  .wm-center { left: calc(50% - 140px); top: calc(50% - 140px); width: 280px; height: 280px; }
  .wm-visual-img { width: 260px; height: 260px; }
  .wm-device-img { width: 140px; height: 220px; }
  .wm-thc-pct { font-size: 36px; }
  .wm-thc-word { font-size: 28px; }
}
