/*
 * GBA additive UX fixes (ITD-46). Deliberately a raw stylesheet: main.css is
 * a Gulp build output and the server has no build tooling, so additive fixes
 * live here. Enqueued from lib/setup.php with a filemtime version.
 * Pattern proven on ABCM/MM (their gba-ux-fixes.css, ITD-48/49).
 */

/* ── 2-up product grid on phones (ITD-46) ─────────────────────────────────
 * The listing rendered one card per row at 8/page - roughly 6000px of
 * scrolling. col-sm-6 only engages at >=576px, so phones fell through to
 * full width. Float AND flex rules so the fix holds whichever grid the
 * compiled bootstrap in main.css is running. */
@media (max-width: 575.98px) {
  .woo-archive .product-item.grid-type {
    float: left;
    width: 50%;
    flex: 0 0 50%;
    max-width: 50%;
    padding-left: 8px;
    padding-right: 8px;
  }
  .woo-archive .product-item.grid-type .card-block {
    padding: 10px;
  }
  .woo-archive .product-item.grid-type .card h2,
  .woo-archive .product-item.grid-type .card h3 {
    font-size: 14px;
  }
}

/* ── WooCommerce notices (ITD-46 add-to-cart confirmation) ───────────────
 * Core already prints the "added to your cart" notice through
 * woocommerce_before_single_product; the theme just never styled it, so the
 * confirmation was invisible against the page. */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
  display: block;
  margin: 0 0 16px;
  padding: 12px 16px;
  border-left: 4px solid #2e7d32;
  background: #f0f7f0;
  color: #1d3a1f;
  font-size: 14px;
  list-style: none;
}
.woocommerce-info {
  border-left-color: #1c3557;
  background: #eef2f7;
  color: #1c3557;
}
.woocommerce-error {
  border-left-color: #b02a37;
  background: #fbeeef;
  color: #7a1c25;
}
.woocommerce-message .button,
.woocommerce-info .button,
.woocommerce-error .button {
  float: right;
  margin-left: 12px;
  font-weight: 600;
  text-decoration: underline;
}

/* ── Breadcrumbs (ITD-46, new on PDPs and listings) ──────────────────────── */
.woocommerce-breadcrumb {
  margin: 12px 0 4px;
  font-size: 13px;
  color: #777777;
}
.woocommerce-breadcrumb a {
  color: #555555;
  text-decoration: none;
}
.woocommerce-breadcrumb a:hover {
  text-decoration: underline;
}
