/* Final Collections layout corrections.
   Keep card actions stable before and after the details enhancer runs. */
.actions{
  grid-template-columns:repeat(auto-fit,minmax(0,1fr));
}

.actions > *{
  width:100%;
  min-width:0;
}

/* The global shell owns navigation and footer spacing. */
body{
  min-width:0;
}

main{
  min-width:0;
}

.collection-grid,
.featured-grid,
.collection-card,
.card-body,
.controls,
.control-actions{
  min-width:0;
}

@media(max-width:760px){
  .actions{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  .actions > :last-child:nth-child(odd){
    grid-column:1 / -1;
  }
}

@media(max-width:420px){
  .actions,
  .secondary-actions{
    grid-template-columns:1fr;
  }

  .actions > :last-child:nth-child(odd){
    grid-column:auto;
  }
}
