/* V63: category navigation only. Existing controls, product cards and handlers remain. */
#builder #categories,
#stationery-builder .stationery-grid.stationery-families,
#stationery-builder .stationery-grid:has(> .byo49-category) {
  display:flex;
  flex-wrap:wrap;
  justify-content:flex-start;
  align-items:stretch;
  gap:10px 8px;
  margin-top:14px;
}
#builder #categories>button,
#builder #categories>button[data-compact-label],
#stationery-builder .stationery-families>.stationery-choice,
#stationery-builder .stationery-grid>.byo49-category {
  box-sizing:border-box;
  position:relative;
  display:flex;
  flex-direction:column;
  flex:0 0 112px;
  width:112px;
  min-width:0;
  min-height:124px;
  height:auto;
  align-items:center;
  justify-content:flex-start;
  gap:8px;
  padding:10px 4px;
  font-size:14px;
  font-weight:600;
  line-height:1.35;
  text-align:center;
  white-space:normal;
  overflow-wrap:anywhere;
  border-radius:12px;
}
#builder #categories>button[data-compact-label]::after {content:none;}
#builder #categories>button[data-compact-label].selected::after {
  content:"✓";
  position:absolute;
  top:5px;
  right:7px;
  font-size:13px;
  line-height:1;
  color:var(--blue,#3d6ce7);
}
#builder #categories .byo50-book-image,
#stationery-builder .stationery-families>.stationery-choice .byo47-image,
#stationery-builder .byo49-category .byo47-image {
  width:76px;
  height:76px;
  flex-shrink:0;
  background:transparent;
  border:0;
  border-radius:0;
}
#builder #categories .byo50-book-image img,
#stationery-builder .stationery-families .byo47-image img,
#stationery-builder .byo49-category .byo47-image img {
  width:100%;
  height:100%;
  object-fit:contain;
}
#stationery-builder .stationery-families .byo47-image>svg,
#stationery-builder .byo49-category .byo47-image>svg {
  width:76px;
  height:76px;
  padding:18px;
  background:transparent;
  border-radius:0;
}
#stationery-builder .byo49-category-name,
#stationery-builder .stationery-families>.stationery-choice>span:not(.byo47-image) {
  font-size:14px;
  line-height:1.35;
  white-space:normal;
  overflow-wrap:anywhere;
}
@media(max-width:767px) {
  #builder #categories,
  #stationery-builder .stationery-grid.stationery-families,
  #stationery-builder .stationery-grid:has(> .byo49-category) {
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:10px 4px;
    margin-top:10px;
  }
  #builder #categories>button,
  #builder #categories>button[data-compact-label],
  #stationery-builder .stationery-families>.stationery-choice,
  #stationery-builder .stationery-grid>.byo49-category {
    width:100%;
    min-height:110px;
    padding:8px 2px;
    gap:7px;
    font-size:13px;
    line-height:1.3;
  }
  #builder #categories .byo50-book-image,
  #stationery-builder .stationery-families .byo47-image,
  #stationery-builder .byo49-category .byo47-image {
    width:56px;
    height:56px;
  }
  #stationery-builder .stationery-families .byo47-image>svg,
  #stationery-builder .byo49-category .byo47-image>svg {
    width:56px;
    height:56px;
    padding:12px;
  }
  #stationery-builder .byo49-category-name,
  #stationery-builder .stationery-families>.stationery-choice>span:not(.byo47-image) {
    font-size:13px;
    line-height:1.3;
  }
}
