/* === ADV SEARCH: force proper grid layout (stop flex shrinking) === */

/* 1) Cancel the flex wrapper ONLY around our grid */
.gant-ai-wrap .search_suggestions_products_wrapper.pdts_wrapper{
  display: block !important;
}

/* 2) Ensure grid controls sizing */
.gant-ai-wrap #gant-ai-grid.results_list{
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 14px !important;
  justify-items: stretch !important;
  align-items: stretch !important;
}

/* 3) This is the key: remove the 126px constraint */
.gant-ai-wrap #gant-ai-grid.results_list > .search_suggestions_product{
  width: auto !important;          /* not 126px */
  min-width: 0 !important;
  max-width: none !important;
  justify-self: stretch !important; /* fill the column */
}

/* 4) Make the card fill its parent */
.gant-ai-wrap #gant-ai-grid.results_list > .search_suggestions_product > .box_product{
  width: 100% !important;
  max-width: none !important;
}

@media (max-width: 760px){
  .gant-ai-wrap #gant-ai-grid.results_list{
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .gant-ai-wrap #gant-ai-grid.results_list
  .search_suggestions_product
  .add_to_cart_button
  .button_label{
    white-space: nowrap !important;
    word-break: keep-all !important;
  }
}

