/**
 * Product Info – deterministic separator (no !important)
 * Separator lives on the header via border-bottom.
 * Space between title and line: padding-bottom: var(--space-l)
 * No margins used -> no stacking with description/specs spacing.
 */

#product-text-container #product-category.badge.product__category{
  display: inline-block;
  width: auto;
  max-width: 100%;
  align-self: center;
}

/* Reset any other separator effects inside this component */
#product-text-container > header#product-header{
  border-bottom: 0;
  box-shadow: none;
  padding-bottom: 0;
}

/* ✅ Separator appears whenever there is visible description OR specs */
#product-text-container > header#product-header.product__header--has-below{
  padding-bottom: var(--space-l);
  border-bottom: 1px solid var(--border-primary, rgba(0,0,0,0.14));
}

/* Explicit none state */
#product-text-container > header#product-header.product__header--no-below{
  padding-bottom: 0;
  border-bottom: 0;
}

/* Avoid margin stacking with next blocks */
#product-text-container > #product-description,
#product-text-container > #product-specs{
  margin-top: 0;
}

/* Mobile centering */
@media (max-width: 767px){
  #product-header{
    text-align: center;
  }

  #product-title,
  #product-description,
  #product-specs{
    text-align: center;
  }

  #product-header > #product-category.badge.product__category{
    margin-inline: auto;
  }
}

/* Specs rows: padding + zebra striping (start dark) */
#product-text-container #product-specs.product__specs > .product-specs__row{
  padding: var(--space-xs, 0.75rem) var(--space-xs, 0.75rem);
  width: 100%;
  box-sizing: border-box;
  border: 0;
  background: transparent;
}

#product-text-container #product-specs.product__specs > .product-specs__row:nth-child(odd){
  background-color: var(--dark-5, rgba(0,0,0,0.04));
}

/* Predictable behavior in flex layouts */
#product-info-wrapper > #product-text-container{
  width: 100%;
  flex: 1 1 auto;
  align-self: stretch;
  min-width: 0;
}