/* "Lo nuevo" console dashboard (template-parts/new-arrivals.php). Motion only on focus, hover and
   scroll-in; nothing rotates by itself (the Black Friday shelf above already does). */
.omega-dash {
  background:
    radial-gradient(circle at 78% 62%, rgba(218, 12, 12, 0.22), transparent 34%),
    linear-gradient(180deg, #070000 0%, #110303 55%, #070000 100%);
  color: var(--omega-white);
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(2.2rem, 4vw, 3.2rem) clamp(2.4rem, 4.5vw, 3.6rem);
  position: relative;
}

.omega-dash::before {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 54px 54px;
  content: "";
  inset: 0;
  mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
  pointer-events: none;
  position: absolute;
  z-index: -1;
}

/* Status bar, like a console home screen. */
.omega-dash__bar {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.2rem;
  margin-bottom: 1.6rem;
}

.omega-dash__badge {
  align-items: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  display: inline-flex;
  font-size: 0.68rem;
  font-weight: 850;
  gap: 0.5rem;
  letter-spacing: 0.14em;
  margin: 0;
  padding: 0.4rem 0.85rem;
  text-transform: uppercase;
}

.omega-dash__badge span {
  background: var(--omega-red);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--omega-red);
  height: 7px;
  width: 7px;
}

.omega-dash__title,
.omega-dash__name { color: #fff; }

.omega-dash__title {
  font-size: clamp(1.25rem, 2.2vw, 1.7rem);
  font-weight: 850;
  margin: 0;
}

.omega-dash__clock {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.95rem;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  margin-left: auto;
}

.omega-dash__all {
  align-items: center;
  color: #fff;
  display: inline-flex;
  font-size: 0.9rem;
  font-weight: 800;
  gap: 0.3rem;
  text-decoration: none;
}

.omega-dash__all:hover { color: #ff5a5a; }
.omega-dash__all svg { height: 14px; width: 14px; }

/* Tile row. */
.omega-dash__tiles {
  align-items: flex-end;
  display: flex;
  gap: 0.9rem;
  list-style: none;
  margin: 0 0 1.8rem;
  min-height: 160px;
  overflow-x: auto;
  padding: 0.6rem 0.3rem 0.4rem;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}

.omega-dash__tiles::-webkit-scrollbar { display: none; }

.omega-dash__tile {
  flex: 0 0 auto;
  scroll-snap-align: center;
}

.omega-dash__tile a {
  background: linear-gradient(160deg, #ffffff, #e9e8ee);
  border-radius: 16px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45);
  display: block;
  height: 104px;
  opacity: 0.62;
  outline: none;
  padding: 10px;
  position: relative;
  transition: width 420ms cubic-bezier(0.2, 0.8, 0.2, 1), height 420ms cubic-bezier(0.2, 0.8, 0.2, 1), opacity 300ms ease, box-shadow 300ms ease;
  width: 104px;
}

.omega-dash__tile a::after {
  border: 3px solid transparent;
  border-radius: 20px;
  content: "";
  inset: -6px;
  position: absolute;
  transition: border-color 300ms ease, box-shadow 300ms ease;
}

.omega-dash__tile img {
  display: block;
  height: 100%;
  mix-blend-mode: multiply;
  object-fit: contain;
  width: 100%;
}

.omega-dash__tile a:hover,
.omega-dash__tile a:focus-visible { opacity: 0.9; }

.omega-dash__tile.is-focus a {
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55), 0 0 36px rgba(218, 12, 12, 0.35);
  height: 148px;
  opacity: 1;
  width: 148px;
}

.omega-dash__tile.is-focus a::after {
  border-color: #fff;
  box-shadow: 0 0 0 2px var(--omega-red), 0 0 22px rgba(218, 12, 12, 0.6);
}

/* Detail of the focused product. */
.omega-dash__detail {
  align-items: center;
  display: grid;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
}

.omega-dash__meta {
  align-items: center;
  color: #ff6b6b;
  display: flex;
  flex-wrap: wrap;
  font-size: 0.78rem;
  font-weight: 850;
  gap: 0.6rem;
  letter-spacing: 0.1em;
  margin: 0 0 0.7rem;
  text-transform: uppercase;
}

.omega-dash__dot {
  background: rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  height: 4px;
  width: 4px;
}

.omega-dash__name {
  font-size: clamp(1.9rem, 4vw, 3.2rem);
  font-weight: 850;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0 0 1rem;
}

.omega-dash__price {
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  font-weight: 900;
  margin-bottom: 1.5rem;
}

.omega-dash__price del { color: rgba(255, 255, 255, 0.5); font-size: 0.6em; margin-right: 0.4rem; }
.omega-dash__price ins { text-decoration: none; }

.omega-dash__stage {
  aspect-ratio: 1;
  display: block;
  isolation: isolate;
  justify-self: center;
  max-width: 380px;
  position: relative;
  width: 100%;
}

/* Light plate; the photo multiplies onto it so its own white background disappears. */
.omega-dash__stage::before {
  background: radial-gradient(circle at 50% 38%, #ffffff, #e6e5ec 78%);
  border-radius: 28px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55), inset 0 0 0 1px rgba(255, 255, 255, 0.7);
  content: "";
  inset: 0;
  position: absolute;
  z-index: 1;
}

.omega-dash__ring {
  animation: omega-dash-spin 18s linear infinite;
  background: conic-gradient(from 0deg, transparent, rgba(255, 26, 26, 0.6) 80deg, transparent 160deg, rgba(255, 160, 80, 0.3) 240deg, transparent 320deg);
  border-radius: 50%;
  filter: blur(30px);
  inset: -6%;
  position: absolute;
  z-index: 0;
}

.omega-dash__stage img {
  display: block;
  height: 100%;
  mix-blend-mode: multiply;
  object-fit: contain;
  padding: 9%;
  position: relative;
  width: 100%;
  z-index: 2;
}

/* Change of focus: the detail slides in. */
.omega-dash__detail.is-swap .omega-dash__info > *,
.omega-dash__detail.is-swap .omega-dash__stage {
  animation: omega-dash-in 460ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.omega-dash__detail.is-swap .omega-dash__info > :nth-child(2) { animation-delay: 40ms; }
.omega-dash__detail.is-swap .omega-dash__info > :nth-child(3) { animation-delay: 80ms; }
.omega-dash__detail.is-swap .omega-dash__stage { animation-name: omega-dash-pop; }

/* Scroll-in cascade (only once JS marks the section; without JS everything is visible). */
.omega-dash.is-armed .omega-dash__tile { opacity: 0; transform: translateY(18px); }

.omega-dash.is-in .omega-dash__tile {
  opacity: 1;
  transform: none;
  transition: opacity 500ms ease calc(var(--i) * 55ms), transform 600ms cubic-bezier(0.2, 0.8, 0.2, 1) calc(var(--i) * 55ms);
}

@keyframes omega-dash-in { from { opacity: 0; transform: translateY(14px); } }
@keyframes omega-dash-pop { from { opacity: 0; transform: scale(0.92) rotate(-2deg); } }
@keyframes omega-dash-spin { to { transform: rotate(360deg); } }

@media (max-width: 860px) {
  .omega-dash__clock { display: none; }
  .omega-dash__all { margin-left: auto; }
  .omega-dash__title { flex-basis: 100%; order: 3; }
  .omega-dash__detail { grid-template-columns: 1fr; text-align: center; }
  .omega-dash__stage { grid-row: 1; max-width: 260px; }
  .omega-dash__meta { justify-content: center; }
  .omega-dash .omega-actions { justify-content: center; }
  .omega-dash__tiles { margin-bottom: 1.4rem; min-height: 126px; }
  .omega-dash__tile a { height: 84px; width: 84px; }
  .omega-dash__tile.is-focus a { height: 116px; width: 116px; }
}

@media (prefers-reduced-motion: reduce) {
  .omega-dash *, .omega-dash *::before, .omega-dash *::after { animation: none !important; transition: none !important; }
  .omega-dash.is-armed .omega-dash__tile { opacity: 1; transform: none; }
}
