/* UA Electronics premium hero carousel + favicon delivery. Loaded after the base premium theme. */
.hero.has-product-carousel {
  min-height: clamp(390px, 31vw, 455px);
  padding-right: clamp(24px, 5.2vw, 78px);
  background: #11151c;
  isolation: isolate;
}
.hero.has-product-carousel::before {
  inset: 0;
  left: 0;
  background-image:
    radial-gradient(ellipse at 6% 42%, rgba(0,113,227,.19) 0%, rgba(0,113,227,.07) 23%, transparent 43%),
    radial-gradient(ellipse at 72% 80%, rgba(218,161,76,.09) 0%, transparent 34%);
  background-color: #11151c;
  transform: none;
  animation: none;
}
.hero.has-product-carousel::after {
  inset: 0;
  background:
    linear-gradient(90deg, rgba(12,15,21,.99) 0%, rgba(12,15,21,.96) 25%, rgba(12,15,21,.78) 40%, rgba(12,15,21,.28) 58%, rgba(12,15,21,.04) 100%),
    linear-gradient(0deg, rgba(0,0,0,.20), transparent 46%);
}
.hero.has-product-carousel .hero-copy {
  width: min(560px, 47%);
  max-width: 560px;
  z-index: 3;
}
.hero.has-product-carousel .hero h1 {
  text-wrap: balance;
}
.hero.has-product-carousel .hero-caption,
.hero.has-product-carousel .hero-scroll-cue {
  display: none;
}

.hero-product-carousel {
  --carousel-ink: #f5f5f7;
  position: absolute;
  z-index: 1;
  top: 18px;
  right: clamp(18px, 4.4vw, 66px);
  bottom: 24px;
  width: min(47%, 620px);
  min-width: 360px;
  display: flex;
  color: var(--carousel-ink);
}
.hero-carousel-frame {
  min-width: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.42);
  border-radius: 27px;
  background: linear-gradient(140deg, rgba(255,255,255,.25) 0%, rgba(255,255,255,.14) 46%, rgba(255,255,255,.075) 100%);
  box-shadow: 0 24px 64px rgba(0,0,0,.25), inset 0 1px 0 rgba(255,255,255,.48), inset 0 -1px 0 rgba(255,255,255,.08);
  -webkit-backdrop-filter: blur(24px) saturate(155%);
  backdrop-filter: blur(24px) saturate(155%);
}
.hero-carousel-stage {
  position: relative;
  min-height: 0;
  flex: 1 1 auto;
  margin: 12px 12px 0;
  overflow: hidden;
  border-radius: 17px;
  background: linear-gradient(145deg, rgba(255,255,255,.075), rgba(255,255,255,.015));
  border: 1px solid rgba(255,255,255,.10);
}
.hero-carousel-slide {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(18px) scale(.985);
  transition: opacity .62s cubic-bezier(.2,.7,.2,1), transform .62s cubic-bezier(.2,.7,.2,1), visibility .62s;
}
.hero-carousel-slide.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(0) scale(1);
}
.hero-carousel-slide img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  border-radius: 13px;
  filter: drop-shadow(0 14px 25px rgba(0,0,0,.22));
  user-select: none;
  -webkit-user-drag: none;
}
.hero-carousel-footer {
  min-height: 66px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 9px 16px 10px 19px;
}
.hero-carousel-caption { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.hero-carousel-caption span {
  color: rgba(245,245,247,.69);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .19em;
  line-height: 1.25;
  text-transform: uppercase;
}
.hero-carousel-caption strong {
  overflow: hidden;
  color: #fff;
  font-size: clamp(12px, 1vw, 15px);
  font-weight: 620;
  letter-spacing: -.025em;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hero-carousel-select-wrap {
  flex: 0 1 154px;
  min-width: 112px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px 5px 10px;
  border: 1px solid rgba(255,255,255,.36);
  border-radius: 13px;
  background: linear-gradient(135deg, rgba(255,255,255,.21), rgba(255,255,255,.075));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 5px 15px rgba(0,0,0,.07);
  -webkit-backdrop-filter: blur(16px) saturate(145%);
  backdrop-filter: blur(16px) saturate(145%);
}
.hero-carousel-select-wrap span {
  flex: 0 0 auto;
  color: rgba(255,255,255,.67);
  font-size: 9px;
  font-weight: 650;
  letter-spacing: .045em;
}
.hero-carousel-select-wrap select {
  appearance: none;
  -webkit-appearance: none;
  min-width: 0;
  width: 100%;
  padding: 4px 17px 4px 0;
  border: 0;
  outline: 0;
  color: #fff;
  background-color: transparent;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 2px center;
  font: inherit;
  font-size: 10px;
  font-weight: 650;
  text-overflow: ellipsis;
  cursor: pointer;
}
.hero-carousel-select-wrap select option {
  color: #1d1d1f;
  background: #f5f5f7;
}
.hero-carousel-select-wrap:focus-within {
  border-color: rgba(255,255,255,.76);
  box-shadow: 0 0 0 3px rgba(255,255,255,.12), inset 0 1px 0 rgba(255,255,255,.24);
}
.hero-carousel-actions { display: flex; flex: 0 0 auto; align-items: center; gap: 7px; }
.hero-carousel-count { display: inline-flex; align-items: baseline; gap: 5px; margin-right: 5px; color: rgba(255,255,255,.62); font-size: 10px; font-variant-numeric: tabular-nums; }
.hero-carousel-count strong { color: #fff; font-size: 13px; font-weight: 650; }
.hero-carousel-actions button {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid rgba(255,255,255,.27);
  border-radius: 50%;
  color: #fff;
  background: rgba(255,255,255,.075);
  font: inherit;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.hero-carousel-actions button:hover { transform: translateY(-1px); background: rgba(255,255,255,.18); border-color: rgba(255,255,255,.5); }
.hero-carousel-actions button:focus-visible,
.hero-carousel-dots button:focus-visible { outline: 2px solid #77baff; outline-offset: 3px; }
.hero-carousel-dots { display: flex; align-items: center; gap: 6px; padding: 0 16px 11px; }
.hero-carousel-dots button {
  display: block;
  position: relative;
  overflow: hidden;
  width: 21px;
  height: 4px;
  border: 0;
  border-radius: 999px;
  padding: 0;
  background: rgba(255,255,255,.26);
  cursor: pointer;
}
.hero-carousel-dots button::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: #fff; transform: scaleX(0); transform-origin: left; }
.hero-carousel-dots button[aria-current="true"]::after { transform: scaleX(1); }
.hero-carousel-dots button[data-current-progress="true"]::after { animation: hero-slide-progress 5.2s linear both; }
.hero-carousel-pause { margin-left: auto; display: inline-grid !important; place-items: center; width: 24px !important; height: 24px !important; border-radius: 50% !important; border-color: transparent !important; background: transparent !important; color: rgba(255,255,255,.72) !important; font-size: 12px !important; }
.hero-carousel-pause:hover { color: #fff !important; background: rgba(255,255,255,.1) !important; }
@keyframes hero-slide-progress { to { transform: scaleX(1); } }

@media (max-width: 950px) {
  .hero.has-product-carousel { min-height: 390px; padding-left: 5.5vw; padding-right: 3vw; }
  .hero.has-product-carousel .hero-copy { width: min(500px, 48%); }
  .hero-product-carousel { right: 3vw; width: 46%; min-width: 0; top: 20px; bottom: 24px; }
  .hero-carousel-stage { margin: 10px 10px 0; }
  .hero-carousel-footer { min-height: 58px; padding: 8px 10px 8px 13px; gap: 8px; }
  .hero-carousel-select-wrap { flex-basis: 136px; }
  .hero-carousel-dots { padding: 0 13px 10px; }
}
@media (max-width: 680px) {
  .hero.has-product-carousel {
    min-height: 655px;
    padding: 41px 23px 255px;
    align-items: flex-start;
  }
  .hero.has-product-carousel::after {
    background: linear-gradient(180deg, rgba(12,15,21,.99) 0%, rgba(12,15,21,.96) 35%, rgba(12,15,21,.64) 57%, rgba(12,15,21,.28) 100%);
  }
  .hero.has-product-carousel .hero-copy { width: 100%; max-width: 520px; }
  .hero-product-carousel { top: auto; right: auto; bottom: 14px; left: 50%; transform: translateX(-50%); width: calc(100% - 30px); max-width: 440px; height: 231px; }
  .hero-carousel-frame { border-radius: 19px; }
  .hero-carousel-stage { margin: 7px 7px 0; border-radius: 12px; }
  .hero-carousel-slide img { border-radius: 9px; }
  .hero-carousel-footer { min-height: 49px; padding: 6px 9px 5px 11px; gap: 6px; flex-wrap: wrap; }
  .hero-carousel-select-wrap { flex-basis: 122px; min-width: 104px; gap: 4px; padding: 4px 6px 4px 8px; }
  .hero-carousel-select-wrap span { font-size: 8px; }
  .hero-carousel-select-wrap select { font-size: 9px; }
  .hero-carousel-caption span { font-size: 7px; letter-spacing: .12em; }
  .hero-carousel-caption strong { font-size: 11px; max-width: 195px; }
  .hero-carousel-count { font-size: 9px; margin-right: 1px; }
  .hero-carousel-count strong { font-size: 11px; }
  .hero-carousel-actions { gap: 5px; }
  .hero-carousel-actions button { width: 28px; height: 28px; }
  .hero-carousel-dots { padding: 0 11px 7px; gap: 5px; }
  .hero-carousel-dots button { width: 18px; height: 3px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-carousel-slide,
  .hero-carousel-actions button { transition: none !important; }
  .hero-carousel-dots button[data-current-progress="true"]::after { animation: none !important; }
}
