.product-v4__heading {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  margin-bottom: 1rem;
}
@media (min-width: 768px) {
  .product-v4__heading {
    flex-direction: row;
    flex-wrap: wrap;
    border-bottom: 0.1rem solid rgba(var(--color-foreground), 0.1);
    margin-bottom: 3rem;
  }
}

.product-v4__title {
  position: relative;
  padding: 1rem 0;
  margin: 0;
  font-size: calc(var(--font-heading-scale) * 1.8rem);
  text-transform: uppercase;
}

@media (min-width: 768px) {
  .product-v4__title:after {
    position: absolute;
    display: inline-block;
    content: "";
    width: 50%;
    height: 0.3rem;
    background-color: rgba(var(--color-foreground));
    left: 0;
    bottom: -0.2rem;
  }
}

.product-v4__tab {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  width: 100%;
  margin-bottom: 3rem;
}
@media (min-width: 576px) {
  .product-v4__tab {
    gap: 5rem;
    width: fit-content;
    margin: 0;
  }
}

.product-v4__tab-trigger {
  font-size: calc(var(--font-body-scale) * 1.6rem);
  font-weight: var(--font-heading-weight);
  color: rgba(var(--color-foreground), 0.5);
  width: 100%;
  background-color: rgba(var(--color-foreground), 0.05);
  text-align: center;
}
@media (min-width: 576px) {
  .product-v4__tab-trigger {
    position: relative;
    background: none;
    width: fit-content;
  }
}

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

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

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

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

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