/* Hide Scrollbar */
html,
body {
  overflow-x: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  display: none;
}

:root {
  --rta-primary: #ff4d3d;
  --rta-primary-deep: #e6352b;
  --rta-teal: #0d9488;
  --rta-amber: #f59e0b;
  --rta-sky: #38bdf8;
  --rta-ink: #0f172a;
  --rta-muted: #64748b;
}

/* Cart badge — hidden until count > 0 */
.rta-cart-count {
  display: none !important;
  align-items: center;
  justify-content: center;
}

.rta-cart-count.is-visible {
  display: flex !important;
}

/* Premium float for transparent product art */
@keyframes rta-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-18px);
  }
}

@keyframes rta-float-slow {
  0%,
  100% {
    transform: translateY(0) rotate(-3deg);
  }
  50% {
    transform: translateY(-12px) rotate(2deg);
  }
}

@keyframes rta-float-watch {
  0%,
  100% {
    transform: translateY(0) rotate(8deg);
  }
  50% {
    transform: translateY(-16px) rotate(14deg);
  }
}

@keyframes rta-pulse-soft {
  0%,
  100% {
    opacity: 0.4;
    transform: scale(1);
  }
  50% {
    opacity: 0.75;
    transform: scale(1.08);
  }
}

@keyframes rta-shimmer {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 100% 50%;
  }
}

@keyframes rta-rise {
  from {
    opacity: 0;
    transform: translateY(28px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.rta-float {
  animation: rta-float 5.2s ease-in-out infinite;
}

.rta-float-delay {
  animation: rta-float-slow 6.8s ease-in-out infinite;
  animation-delay: 0.5s;
}

.rta-float-delay-2 {
  animation: rta-float 5.6s ease-in-out infinite;
  animation-delay: 1s;
}

.rta-float-watch {
  animation: rta-float-watch 7s ease-in-out infinite;
  animation-delay: 0.3s;
}

.rta-orb {
  animation: rta-pulse-soft 7s ease-in-out infinite;
}

/* Hero atmosphere — full-bleed product stage */
.rta-hero {
  position: relative;
  min-height: auto;
  display: flex;
  align-items: flex-start;
  overflow: hidden;
  background:
    radial-gradient(ellipse 55% 55% at 78% 42%, rgba(255, 77, 61, 0.22), transparent 60%),
    radial-gradient(ellipse 45% 50% at 18% 65%, rgba(13, 148, 136, 0.18), transparent 55%),
    radial-gradient(ellipse 35% 35% at 55% 10%, rgba(245, 158, 11, 0.16), transparent 50%),
    linear-gradient(155deg, #fff9f6 0%, #eefcf8 42%, #fff8eb 100%);
}

.rta-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(15, 23, 42, 0.055) 1.2px, transparent 1.2px);
  background-size: 26px 26px;
  mask-image: linear-gradient(to bottom, black 35%, transparent 92%);
  pointer-events: none;
}

.rta-hero::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -20%;
  width: 90%;
  height: 45%;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.7), transparent 70%);
  pointer-events: none;
}

.rta-hero-copy {
  animation: rta-rise 0.9s ease both;
}

.rta-hero-stage {
  position: relative;
  width: 100%;
  height: clamp(320px, 52vw, 520px);
  animation: rta-rise 1.05s ease 0.12s both;
}

.rta-hero-glow {
  position: absolute;
  border-radius: 999px;
  filter: blur(40px);
  pointer-events: none;
}

.rta-hero-product {
  position: absolute;
  object-fit: contain;
  user-select: none;
  pointer-events: none;
  filter: drop-shadow(0 30px 45px rgba(15, 23, 42, 0.22));
}

.rta-hero-product--laptop {
  left: 8%;
  top: 18%;
  width: 78%;
  max-width: 520px;
  z-index: 2;
}

.rta-hero-product--phones {
  right: 2%;
  top: 6%;
  width: 28%;
  z-index: 4;
}

.rta-hero-product--headphones {
  left: 0;
  bottom: 2%;
  width: 46%;
  max-width: 280px;
  z-index: 5;
}

.rta-hero-product--watch {
  right: 14%;
  bottom: 4%;
  width: 22%;
  max-width: 140px;
  z-index: 3;
}

/* Laptop / desktop — tight under nav, no tall empty top */
@media (min-width: 1024px) {
  .rta-hero {
    min-height: auto;
    align-items: flex-start;
    padding-bottom: 1.5rem;
  }

  .rta-hero-stage {
    height: clamp(300px, 38vw, 420px);
  }
}

/* Tablet */
@media (max-width: 1023px) {
  .rta-hero {
    min-height: auto;
    padding-bottom: 1.5rem;
  }

  .rta-hero-stage {
    height: clamp(280px, 70vw, 400px);
    max-width: 560px;
    margin: 0.25rem auto 0;
  }

  .rta-hero-copy {
    text-align: left;
  }

  .rta-hero-product--laptop {
    left: 10%;
    top: 16%;
    width: 76%;
  }

  .rta-hero-product--headphones {
    left: 2%;
    bottom: 4%;
    width: 42%;
  }

  .rta-hero-product--watch {
    right: 10%;
    bottom: 6%;
    width: 20%;
  }
}

/* Mobile */
@media (max-width: 639px) {
  .rta-hero {
    min-height: auto;
    padding-bottom: 1rem;
  }

  .rta-hero > .rta-hero-glow {
    width: 14rem !important;
    height: 14rem !important;
  }

  .rta-hero-stage {
    height: clamp(240px, 78vw, 320px);
    max-width: 100%;
    margin-top: 0.5rem;
  }

  .rta-hero-stage > .rta-hero-glow {
    width: 7rem !important;
    height: 7rem !important;
    filter: blur(28px);
  }

  .rta-hero-product {
    filter: drop-shadow(0 16px 28px rgba(15, 23, 42, 0.18));
  }

  .rta-hero-product--laptop {
    left: 8%;
    top: 14%;
    width: 82%;
  }

  .rta-hero-product--headphones {
    left: 0;
    bottom: 2%;
    width: 48%;
    max-width: 180px;
  }

  .rta-hero-product--watch {
    right: 6%;
    bottom: 4%;
    width: 24%;
    max-width: 96px;
  }
}

.rta-grad-text {
  background: linear-gradient(115deg, #ff4d3d 0%, #f59e0b 45%, #0d9488 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: rta-shimmer 8s ease infinite alternate;
}

.rta-btn-primary {
  background: linear-gradient(135deg, #ff4d3d, #ff6b4a);
  box-shadow: 0 10px 24px rgba(255, 77, 61, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rta-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(255, 77, 61, 0.35);
}

.rta-cat-card {
  background: linear-gradient(180deg, #ffffff 0%, #fff8f6 100%);
  border: 1px solid rgba(255, 77, 61, 0.12);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.rta-cat-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 77, 61, 0.35);
  box-shadow: 0 12px 28px rgba(255, 77, 61, 0.1);
}

.rta-cat-icon {
  background: linear-gradient(135deg, rgba(255, 77, 61, 0.12), rgba(13, 148, 136, 0.12));
}

.rta-deal-banner {
  background:
    radial-gradient(ellipse 60% 80% at 100% 50%, rgba(13, 148, 136, 0.35), transparent 55%),
    radial-gradient(ellipse 40% 60% at 0% 0%, rgba(255, 77, 61, 0.35), transparent 50%),
    linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

/* Compare page */
.rta-compare-hero {
  background:
    radial-gradient(ellipse 50% 80% at 90% 20%, rgba(255, 77, 61, 0.15), transparent 50%),
    radial-gradient(ellipse 40% 60% at 10% 80%, rgba(13, 148, 136, 0.14), transparent 50%),
    linear-gradient(180deg, #fff7f4 0%, #ffffff 100%);
}

.rta-slot {
  min-height: 280px;
  border: 2px dashed rgba(100, 116, 139, 0.35);
  background: linear-gradient(180deg, #ffffff, #f8fafc);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.rta-slot.filled {
  border-style: solid;
  border-color: rgba(255, 77, 61, 0.45);
  box-shadow: 0 12px 32px rgba(255, 77, 61, 0.1);
}

.rta-pick-chip {
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.rta-pick-chip:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 77, 61, 0.5);
}

.rta-pick-chip.selected {
  border-color: #ff4d3d;
  background: linear-gradient(180deg, #fff5f4, #ffffff);
  box-shadow: 0 0 0 3px rgba(255, 77, 61, 0.12);
}

.rta-winner {
  color: #0d9488;
  font-weight: 700;
}

.rta-spec-bar {
  height: 6px;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
}

.rta-spec-bar > span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #ff4d3d, #f59e0b);
}
