/* Product archives only; no cart, payment, invoice or subcategory-card rules. */
body.woocommerce .mtg-catalog-badges {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: .35rem; min-height: 1.8rem; margin: 0 0 .45rem; padding: 0;
  position: static; box-sizing: border-box;
}
body.woocommerce .mtg-catalog-badge {
  display: inline-block; padding: .3rem .6rem; border-radius: .45rem;
  font-family: inherit; font-size: .75rem; font-weight: 700; line-height: 1.25;
  letter-spacing: .035em; white-space: nowrap;
}
body.woocommerce .mtg-catalog-badge--sold { background: #18473d; color: #fff; }
body.woocommerce .mtg-catalog-badge--new { background: #d5b45a; color: #123b32; }
body.woocommerce .mtg-catalog-image-stack { width: 100%; min-width: 0; }
body.woocommerce form.woocommerce-ordering { max-width: 100%; margin-block: .75rem 1rem; }
body.woocommerce form.woocommerce-ordering select.orderby {
  appearance: none; -webkit-appearance: none;
  box-sizing: border-box; max-width: 100%; min-height: 44px; width: min(100%, 18rem);
  padding: .7rem 2.8rem .7rem 1rem; border: 1px solid #b99b50; border-radius: 10px;
  background-color: #fcf8ef; color: #123b32; font: inherit; line-height: 1.4;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20'%3E%3Cpath d='M5 6h10M7 10h6M9 14h2' fill='none' stroke='%23123b32' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .85rem center; cursor: pointer;
}
body.woocommerce form.woocommerce-ordering select.orderby:focus-visible { outline: 3px solid #246b5a; outline-offset: 3px; }
@media (max-width: 600px) {
  body.woocommerce form.woocommerce-ordering { width: 100%; }
  body.woocommerce form.woocommerce-ordering select.orderby { width: 100%; font-size: 1rem; }
}
@media (forced-colors: active) {
  body.woocommerce form.woocommerce-ordering select.orderby { appearance: auto; background-image: none; }
  body.woocommerce .mtg-catalog-badge { border: 1px solid CanvasText; }
}
