/* UA Electronics — full-bleed cinematic hero + true frosted-glass controls.
   Loaded last so it corrects the previous dark-card treatment. */
.hero.has-product-carousel {
  position: relative;
  isolation: isolate;
  width: 100%;
  max-width: none;
  min-height: clamp(390px, 32vw, 480px);
  margin: 0 auto 0;
  padding: clamp(50px, 5.8vw, 82px) clamp(28px, 8vw, 122px) 104px;
  overflow: hidden;
  border-radius: 0;
  background: #101319;
  color: #f5f5f7;
}
.hero.has-product-carousel::before {
  content: "";
  position: absolute;
  z-index: -2;
  inset: 0;
  background-image: url("/images/ui/hero-scene-cooktop.webp");
  background-position: center 53%;
  background-repeat: no-repeat;
  background-size: cover;
  transform: scale(1.018);
  animation: hero-cinematic-settle 1.1s cubic-bezier(.2,.7,.2,1) both;
  transition: background-image .45s ease;
}
.hero.has-product-carousel[data-hero-background="cooktop"]::before {
  background-image: url("/images/ui/hero-scene-cooktop.webp");
}
.hero.has-product-carousel[data-hero-background="appliances"]::before {
  background-image: url("/images/ui/hero-scene-appliances.webp");
}
.hero.has-product-carousel[data-hero-background="cooler"]::before {
  background-image: url("/images/ui/hero-scene-cooler.webp");
}
.hero.has-product-carousel[data-hero-background="television"]::before {
  background-image: url("/images/ui/hero-scene-television.webp");
}
.hero.has-product-carousel[data-hero-background="audio"]::before {
  background-image: url("/images/ui/hero-scene-audio.webp");
}
.hero.has-product-carousel::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(8,11,16,.25) 0%, rgba(8,11,16,.15) 27%, rgba(8,11,16,.06) 47%, rgba(8,11,16,0) 73%),
    linear-gradient(0deg, rgba(0,0,0,.28) 0%, transparent 38%);
}
.hero.has-product-carousel .hero-copy {
  position: relative;
  z-index: 2;
  width: min(560px, 46%);
  max-width: 560px;
}
.hero.has-product-carousel .hero h1 { text-wrap: balance; }
.hero.has-product-carousel .hero-eyebrow { color: rgba(255,255,255,.84); }
.hero.has-product-carousel .hero-description {
  color: rgba(247,248,250,.9);
  text-shadow: 0 1px 14px rgba(0,0,0,.28);
}
.hero.has-product-carousel .hero-caption,
.hero.has-product-carousel .hero-scroll-cue { display: none !important; }

/* The product imagery is now the full-bleed scene. The floating glass tray holds controls. */
.hero.has-product-carousel .hero-product-carousel {
  position: absolute;
  z-index: 4;
  top: auto;
  right: clamp(24px, 5vw, 76px);
  bottom: 30px;
  left: auto;
  transform: none;
  width: min(690px, 56%);
  min-width: 0;
  height: auto;
  display: flex;
  color: #fff;
}
.hero.has-product-carousel .hero-carousel-frame {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: auto;
  min-width: 0;
  overflow: visible;
  border: 1px solid rgba(255,255,255,.48);
  border-radius: 25px;
  background: linear-gradient(130deg, rgba(255,255,255,.29) 0%, rgba(255,255,255,.16) 49%, rgba(255,255,255,.095) 100%);
  box-shadow: 0 24px 70px rgba(0,0,0,.24), inset 0 1px 0 rgba(255,255,255,.55), inset 0 -1px 0 rgba(255,255,255,.12);
  -webkit-backdrop-filter: blur(30px) saturate(175%);
  backdrop-filter: blur(30px) saturate(175%);
}
.hero.has-product-carousel .hero-carousel-stage { display: none !important; }
.hero.has-product-carousel .hero-carousel-footer {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 13px;
  padding: 12px 17px 4px 20px;
}
.hero.has-product-carousel .hero-carousel-caption {
  flex: 1 1 170px;
  min-width: 125px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.hero.has-product-carousel .hero-carousel-caption span {
  color: rgba(255,255,255,.8);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .18em;
  line-height: 1.3;
  text-transform: uppercase;
}
.hero.has-product-carousel .hero-carousel-caption strong {
  color: #fff;
  font-size: clamp(12px, .95vw, 14px);
  font-weight: 650;
  letter-spacing: -.02em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hero.has-product-carousel .hero-carousel-select-wrap {
  flex: 0 1 184px;
  min-width: 136px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 11px;
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 15px;
  background: linear-gradient(140deg, rgba(255,255,255,.32), rgba(255,255,255,.13));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.28), 0 6px 18px rgba(0,0,0,.06);
  -webkit-backdrop-filter: blur(22px) saturate(170%);
  backdrop-filter: blur(22px) saturate(170%);
}
.hero.has-product-carousel .hero-carousel-select-wrap span {
  flex: 0 0 auto;
  color: rgba(255,255,255,.82);
  font-size: 9px;
  font-weight: 650;
  letter-spacing: .035em;
}
.hero.has-product-carousel .hero-carousel-select-wrap select {
  width: 100%;
  min-width: 0;
  padding: 3px 17px 3px 0;
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  outline: 0;
  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 1px center;
  color: #fff;
  font: inherit;
  font-size: 10px;
  font-weight: 700;
  text-overflow: ellipsis;
  cursor: pointer;
}
.hero.has-product-carousel .hero-carousel-select-wrap select option { color: #1d1d1f; background: #f5f5f7; }
.hero.has-product-carousel .hero-carousel-select-wrap:focus-within {
  border-color: #fff;
  box-shadow: 0 0 0 3px rgba(255,255,255,.2), inset 0 1px 0 rgba(255,255,255,.32);
}
.hero.has-product-carousel .hero-carousel-actions { display: flex; align-items: center; flex: 0 0 auto; gap: 7px; }
.hero.has-product-carousel .hero-carousel-count { display: inline-flex; align-items: baseline; gap: 4px; margin-right: 1px; color: rgba(255,255,255,.77); font-size: 10px; font-variant-numeric: tabular-nums; }
.hero.has-product-carousel .hero-carousel-count strong { color: #fff; font-size: 13px; font-weight: 700; }
.hero.has-product-carousel .hero-carousel-actions button {
  width: 33px;
  height: 33px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255,255,255,.44);
  border-radius: 50%;
  background: rgba(255,255,255,.15);
  color: #fff;
  font: inherit;
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.hero.has-product-carousel .hero-carousel-actions button:hover { transform: translateY(-1px); background: rgba(255,255,255,.27); border-color: rgba(255,255,255,.8); }
.hero.has-product-carousel .hero-carousel-actions button:focus-visible,
.hero.has-product-carousel .hero-carousel-dots button:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.hero.has-product-carousel .hero-carousel-dots { display:flex; align-items:center; gap:6px; padding:0 19px 12px; }
.hero.has-product-carousel .hero-carousel-dots button { position:relative; width:22px; height:4px; overflow:hidden; border:0; border-radius:99px; padding:0; background:rgba(255,255,255,.32); cursor:pointer; }
.hero.has-product-carousel .hero-carousel-dots button::after { content:""; position:absolute; inset:0; border-radius:inherit; background:#fff; transform:scaleX(0); transform-origin:left; }
.hero.has-product-carousel .hero-carousel-dots button[aria-current="true"]::after { transform:scaleX(1); }
.hero.has-product-carousel .hero-carousel-dots button[data-current-progress="true"]::after { animation:hero-slide-progress 5.2s linear both; }
.hero.has-product-carousel .hero-carousel-pause { margin-left:auto; display:inline-grid; place-items:center; width:25px; height:25px; padding:0; border:1px solid transparent; border-radius:50%; background:transparent; color:rgba(255,255,255,.86); font-size:12px; cursor:pointer; }
.hero.has-product-carousel .hero-carousel-pause:hover { background:rgba(255,255,255,.15); color:#fff; }

/* Match the translucent benefit strip in the reference, with space at both sides. */
.trust-strip.glass-panel {
  position: relative;
  z-index: 5;
  width: min(1388px, calc(100% - 48px));
  max-width: 1388px;
  margin: -27px auto 25px;
  padding: 20px clamp(16px, 3vw, 40px);
  border: 1px solid rgba(255,255,255,.76);
  border-radius: 25px;
  background: rgba(255,255,255,.68);
  box-shadow: 0 18px 48px rgba(21,30,45,.14), inset 0 1px 0 rgba(255,255,255,.95);
  -webkit-backdrop-filter: blur(30px) saturate(170%);
  backdrop-filter: blur(30px) saturate(170%);
}
.trust-strip.glass-panel .trust-item { min-width:0; }
html[data-theme="dark"] .trust-strip.glass-panel {
  background: rgba(30,32,36,.78);
  border-color: rgba(255,255,255,.17);
  box-shadow: 0 18px 50px rgba(0,0,0,.32), inset 0 1px 0 rgba(255,255,255,.1);
}
html[data-theme="dark"] .trust-strip.glass-panel .trust-item strong { color: #f5f5f7; }
html[data-theme="dark"] .trust-strip.glass-panel .trust-item small { color: #b6b7bd; }
@keyframes hero-cinematic-settle { from { transform:scale(1.045); } to { transform:scale(1.018); } }

@media(max-width: 1050px) {
  .hero.has-product-carousel { padding-left: 5vw; padding-right: 5vw; }
  .hero.has-product-carousel .hero-copy { width: 43%; }
  .hero.has-product-carousel .hero-product-carousel { width: 57%; right: 3vw; }
  .hero.has-product-carousel .hero-carousel-footer { gap:8px; padding-left:13px; padding-right:12px; }
  .hero.has-product-carousel .hero-carousel-caption { flex-basis:130px; min-width:115px; }
  .hero.has-product-carousel .hero-carousel-select-wrap { flex-basis:150px; min-width:122px; }
}
@media(max-width: 760px) {
  .hero.has-product-carousel {
    min-height: 660px;
    padding: 46px 23px 178px;
    align-items: flex-start;
  }
  .hero.has-product-carousel::before { background-position: 62% center; }
  .hero.has-product-carousel::after {
    background: linear-gradient(180deg, rgba(9,12,17,.55) 0%, rgba(9,12,17,.35) 43%, rgba(9,12,17,.1) 100%), linear-gradient(90deg,rgba(9,12,17,.38),transparent 100%);
  }
  .hero.has-product-carousel .hero-copy { width:100%; max-width:560px; }
  .hero.has-product-carousel .hero-product-carousel { left:50%; right:auto; bottom:14px; transform:translateX(-50%); width:calc(100% - 28px); max-width:620px; }
  .hero.has-product-carousel .hero-carousel-frame { border-radius:20px; }
  .hero.has-product-carousel .hero-carousel-footer { min-height:60px; flex-wrap:wrap; padding:10px 12px 5px; gap:7px; }
  .hero.has-product-carousel .hero-carousel-caption { flex:1 1 130px; min-width:115px; }
  .hero.has-product-carousel .hero-carousel-caption span { font-size:8px; }
  .hero.has-product-carousel .hero-carousel-caption strong { font-size:11px; }
  .hero.has-product-carousel .hero-carousel-select-wrap { flex:0 1 166px; min-width:116px; padding:7px 8px; }
  .hero.has-product-carousel .hero-carousel-select-wrap span { font-size:8px; }
  .hero.has-product-carousel .hero-carousel-select-wrap select { font-size:9px; }
  .hero.has-product-carousel .hero-carousel-actions { gap:5px; }
  .hero.has-product-carousel .hero-carousel-actions button { width:28px; height:28px; }
  .hero.has-product-carousel .hero-carousel-dots { padding:0 13px 8px; }
  .hero.has-product-carousel .hero-carousel-dots button { width:18px; }
  .trust-strip.glass-panel { width:calc(100% - 28px); margin-top:-14px; border-radius:20px; }
}
@media(prefers-reduced-motion: reduce) {
  .hero.has-product-carousel::before { animation:none !important; }
  .hero.has-product-carousel .hero-carousel-actions button { transition:none !important; }
  .hero.has-product-carousel .hero-carousel-dots button[data-current-progress="true"]::after { animation:none !important; }
}
