/**
 * IndyDTF Brands mega menu.
 *
 * @package Astra Child
 */

.indydtf-brands-mega {
  position: fixed;
  top: var(--indydtf-brands-mega-top, 96px);
  right: 0;
  left: 0;
  z-index: 9998;
  background: linear-gradient(135deg, #0F2457 0%, #101E4F 54%, #252A8A 100%);
  box-shadow: 0 24px 60px rgba(3, 16, 41, 0.26);
  color: #FFFFFF;
  opacity: 0;
  transform: translateY(-10px);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.indydtf-brands-mega.is-open {
  opacity: 1;
  transform: translateY(0);
}

.indydtf-brands-mega[hidden] {
  display: none;
}

.indydtf-brands-mega__inner {
  display: grid;
  width: min(100% - 48px, 1180px);
  margin: 0 auto;
  grid-template-columns: minmax(340px, 1.2fr) minmax(260px, 0.75fr) minmax(260px, 0.72fr);
  gap: 34px;
  padding: 34px 0;
}

.indydtf-brands-mega a {
  color: inherit;
  text-decoration: none;
}

.indydtf-brands-mega__all {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  border-radius: 999px;
  background: #BE2B35;
  color: #FFFFFF;
  font-size: 1.28rem;
  font-weight: 850;
  line-height: 1;
  padding: 0.78rem 1.08rem;
  transition: transform 180ms ease, background 180ms ease;
}

.indydtf-brands-mega__all:hover,
.indydtf-brands-mega__all:focus-visible {
  background: #DF3730;
  color: #FFFFFF;
  transform: translateY(-2px);
}

.indydtf-brands-mega__links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.58rem 2rem;
  margin-top: 24px;
}

.indydtf-brands-mega__brand-link {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 0.72rem;
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.08rem;
  line-height: 1.2;
  transition: color 160ms ease, transform 160ms ease;
}

.indydtf-brands-mega__brand-link span {
  width: 10px;
  height: 10px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #BE2B35;
}

.indydtf-brands-mega__brand-link strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.indydtf-brands-mega__brand-link:hover,
.indydtf-brands-mega__brand-link:focus-visible {
  color: #FFD95A;
  transform: translateX(3px);
}

.indydtf-brands-mega__hint {
  max-width: 520px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1rem;
}

.indydtf-brands-mega__feature-stack {
  display: grid;
  align-content: center;
  gap: 18px;
}

.indydtf-brands-mega__rolling {
  display: grid;
  gap: 0.5rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  background: rgba(7, 30, 70, 0.62);
  box-shadow: 0 18px 38px rgba(3, 16, 41, 0.28);
  padding: 1rem;
}

.indydtf-brands-mega__rolling-signal {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  color: #FFD95A;
  font-size: 0.72rem;
  font-weight: 850;
  line-height: 1;
  text-transform: uppercase;
}

.indydtf-brands-mega__rolling-signal span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #00E676;
  animation: indydtfBrandsPulse 1.8s ease-out infinite;
}

.indydtf-brands-mega__rolling strong {
  color: #FFFFFF;
  font-size: 1.28rem;
  line-height: 1.1;
}

.indydtf-brands-mega__rolling small {
  max-width: 260px;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 750;
  line-height: 1.25;
}

.indydtf-brands-mega__rolling-strip {
  position: relative;
  display: block;
  overflow: hidden;
  height: 54px;
  border-radius: 8px;
  background: #FFFFFF;
}

.indydtf-brands-mega__rolling-strip i {
  position: absolute;
  top: 12px;
  display: block;
  width: 48px;
  height: 30px;
  border-radius: 7px;
  animation: indydtfBrandsRoll 5.6s linear infinite;
}

.indydtf-brands-mega__rolling-strip i:nth-child(1) {
  left: 12px;
  background: linear-gradient(135deg, #00AEEF, #173F8A);
}

.indydtf-brands-mega__rolling-strip i:nth-child(2) {
  left: 82px;
  background: linear-gradient(135deg, #EC008C, #DF3730);
}

.indydtf-brands-mega__rolling-strip i:nth-child(3) {
  left: 152px;
  background: linear-gradient(135deg, #FFCD00, #DF3730);
}

.indydtf-brands-mega__rolling-strip i:nth-child(4) {
  left: 222px;
  background: linear-gradient(135deg, #173F8A, #00AEEF);
}

.indydtf-brands-mega__product {
  display: grid;
  gap: 0.55rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  background:
    linear-gradient(180deg, #FFFFFF 0%, #E9EEF7 100%);
  color: #0F2457;
  box-shadow: 0 18px 38px rgba(3, 16, 41, 0.2);
  padding: 0.9rem;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.indydtf-brands-mega__product:hover,
.indydtf-brands-mega__product:focus-visible {
  color: #0F2457;
  box-shadow: 0 24px 48px rgba(3, 16, 41, 0.28);
  transform: translateY(-3px);
}

.indydtf-brands-mega__product-kicker {
  width: fit-content;
  border-radius: 999px;
  background: rgba(190, 43, 53, 0.1);
  color: #BE2B35;
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1;
  padding: 0.38rem 0.56rem;
  text-transform: uppercase;
}

.indydtf-brands-mega__product-copy {
  color: rgba(15, 36, 87, 0.7);
  font-size: 0.8rem;
  font-weight: 750;
  line-height: 1.25;
}

.indydtf-brands-mega__product-price {
  color: #0F2457;
  font-size: 0.78rem;
  font-weight: 800;
}

.indydtf-brands-mega__product img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 6px;
  background: #FFFFFF;
  object-fit: contain;
}

.indydtf-brands-mega__product strong {
  color: #0F2457;
  font-size: 0.9rem;
  line-height: 1.2;
}

.indydtf-brands-mega__product em {
  color: #BE2B35;
  font-size: 0.8rem;
  font-style: normal;
  font-weight: 850;
}

.indydtf-brands-mega__studio {
  display: grid;
  align-content: center;
  gap: 1rem;
  max-width: 290px;
  justify-self: end;
}

.indydtf-brands-mega__studio strong {
  display: block;
  color: #FFFFFF;
  font-size: 1rem;
  line-height: 1.18;
}

.indydtf-brands-mega__studio small {
  display: block;
  margin-top: 0.45rem;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.35;
}

.indydtf-brands-mega__studio img {
  display: block;
  width: 100%;
  border-radius: 8px;
  background: #FFFFFF;
  box-shadow: 0 18px 40px rgba(3, 16, 41, 0.24);
}

@keyframes indydtfBrandsPulse {
  0% { box-shadow: 0 0 0 0 rgba(0, 230, 118, 0.58); }
  70% { box-shadow: 0 0 0 10px rgba(0, 230, 118, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 230, 118, 0); }
}

@keyframes indydtfBrandsRoll {
  0% { transform: translateX(-22px); }
  100% { transform: translateX(36px); }
}

@media (max-width: 921px) {
  .indydtf-brands-mega {
    top: var(--indydtf-brands-mega-top, 80px);
    max-height: calc(100vh - var(--indydtf-brands-mega-top, 80px));
    overflow: auto;
  }

  .indydtf-brands-mega__inner {
    width: min(100% - 32px, 720px);
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    padding: 24px 0;
  }

  .indydtf-brands-mega__links {
    grid-template-columns: minmax(0, 1fr);
  }

  .indydtf-brands-mega__studio {
    max-width: none;
    justify-self: stretch;
  }
}
