/* v2: align quotation and cart actions across equal-height product cards. */
.sgm-grid .sgm-card-body { padding-bottom: 27px; }
.sgm-grid .sgm-card-actions { width:100%; margin-top:auto; align-items:center; }
.sgm-grid .sgm-quote-wrap { position:relative; display:block; flex:1 1 auto; width:100%; min-width:0; margin:0; }
.sgm-grid .sgm-card-actions .sgm-quote-button {
  display:flex; flex:none; width:100%; max-width:none; height:42px; min-height:42px;
  padding:0 10px; box-sizing:border-box; border:0; border-radius:999px;
  align-items:center; justify-content:center; gap:8px; white-space:nowrap;
  font-family:inherit; font-size:13px; font-weight:700; line-height:1.2;
  text-align:center; text-decoration:none!important;
  background:#168347!important; color:#fff!important;
  box-shadow:none; transition:background .3s,color .3s,box-shadow .3s,transform .35s cubic-bezier(.22,1,.36,1);
}
.sgm-grid .sgm-card-actions .sgm-quote-button::before { background:linear-gradient(100deg,#168347,#0d6837)!important; }
.sgm-grid .sgm-card-actions .sgm-quote-button:hover,
.sgm-grid .sgm-card:hover .sgm-quote-button,
.sgm-grid .sgm-card:focus-within .sgm-quote-button { background:#0d6837!important; color:#fff!important; }
.sgm-grid .sgm-card-actions .sgm-quote-button i { color:#fff!important; font-size:14px; transform:none!important; }
.sgm-grid .sgm-quote-reply {
  position:absolute; left:0; right:0; top:calc(100% + 4px);
  display:flex; justify-content:center; align-items:center; gap:5px;
  margin:0; padding:0; font-family:Calibri,Arial,sans-serif;
  font-size:11px; font-weight:500; line-height:13px; white-space:nowrap;
  text-align:center; color:#78848a; pointer-events:none;
}
.sgm-grid .sgm-quote-reply i { font-size:11px; color:#168347; }
/* Home-page product cards use a slightly shorter Add to Cart button. */
#sgm-home .sgm-products .sgm-card-body { padding-bottom:27px; }
#sgm-home .sgm-products .sgm-quote-wrap { max-width:190px; margin:0 auto; }
#sgm-home .sgm-products .sgm-card-actions .sgm-quote-button {
  height:41px; min-height:41px; max-width:190px; margin:0 auto;
  border-radius:999px; background:#168347!important; color:#fff!important;
  box-shadow:none!important;
}
#sgm-home .sgm-products .sgm-card:hover .sgm-card-actions .sgm-quote-button,
#sgm-home .sgm-products .sgm-card:focus-within .sgm-card-actions .sgm-quote-button,
#sgm-home .sgm-products .sgm-card-actions .sgm-quote-button:hover {
  background:#0d6837!important; color:#fff!important;
  box-shadow:0 10px 22px rgba(22,131,71,.20)!important;
}
@media(max-width:600px) {
  .sgm-grid .sgm-card-actions .sgm-quote-button { height:38px; min-height:38px; font-size:12px; gap:5px; }
  #sgm-home .sgm-products .sgm-card-actions .sgm-quote-button { height:41px; min-height:41px; }
  .sgm-grid .sgm-quote-reply { font-size:10px; }
}
/* Keep existing non-grid product cards untouched. */
.button-group1 .sgm-quote-wrap { position:relative; width:100%; padding-bottom:18px; }
.button-group1 .sgm-quote-button { display:flex; width:100%; min-height:42px; border-radius:999px; align-items:center; justify-content:center; gap:8px; background:#168347; color:#fff; text-decoration:none; font-weight:700; padding:8px 10px; box-sizing:border-box; }
.button-group1 .sgm-quote-button:hover { background:#0d6837; color:#fff; text-decoration:none; }
.button-group1 .sgm-quote-reply { position:absolute; bottom:0; width:100%; display:flex; align-items:center; justify-content:center; gap:5px; font-size:11px; color:#78848a; }

/* v6: mobile single-column layout for category, manufacturer, and search product lists only. */
@media (max-width: 767px) {
  .sgm-main .sgm-content > .sgm-toolbar + .sgm-grid {
    grid-template-columns: 1fr !important;
    gap: 14px;
  }
}
