.product-v3__tab {
  display: flex;
  flex-wrap: wrap;
  justify-content: var(--justify);
  align-items: center;
  gap: 1rem;
  padding-top: 1.8rem;
  padding-bottom: 5rem;
}
@media (min-width: 576px) {
  .product-v3__tab {
    gap: 5rem;
  }
}

.product-v3__tab-trigger {
  font-size: clamp(2rem, calc(0.5cqw + 1.8rem), 2.4rem);
  line-height: calc(1 + 0.2 / var(--font-heading-scale));
  font-weight: var(--font-heading-weight);
  width: 100%;
  background-color: rgba(var(--color-foreground), 0.05);
  padding: 1rem 0;
  text-align: center;
}
@media (min-width: 576px) {
  .product-v3__tab-trigger {
    position: relative;
    background: none;
    width: fit-content;
    padding: unset;
    padding-bottom: 0.5rem;
  }
}

.product-v3__tab-trigger:hover {
  color: rgba(var(--color-foreground));
}

.product-v3__tab-trigger:hover::after {
  width: 100%;
}

.product-v3__tab-trigger[xo-active]:not([xo-active=false]) {
  color: rgba(var(--color-foreground));
}

@media (min-width: 576px) {
  .product-v3__tab-trigger:after {
    position: absolute;
    display: inline-block;
    content: "";
    width: 0;
    background-color: rgba(var(--color-accent));
    height: 0.2rem;
    left: 50%;
    bottom: 0;
    transform: translate(-50%, 0);
    transition: all 0.3s ease;
  }
}

.product-v3__tab-trigger[xo-active]:not([xo-active=false]):after {
  width: 100%;
}