/* Existing MMM tokens and handlers remain the source of visual/interaction truth. */
:is(.brxe-ygvacj,.mmm-product-card) { --mmm-cpc-cell:44px; --mmm-cpc-card:260px; }
.mmm-cpc-price-row { display:flex; align-items:center; gap:8px; width:100%; min-width:0; }
.mmm-cpc-price-row > :first-child { flex:1 1 auto; min-width:0; width:auto!important; }
.mmm-cpc-price-row .mmm-cpc-heart { flex:0 0 44px; width:44px!important; margin:0!important; }
.mmm-cpc-heart .mmm-wishlist-button-container { width:44px!important; min-height:44px; }
body :is(.brxe-ygvacj,.mmm-product-card) .mmm-cpc-heart .mmm-wishlist-button {
  width:44px!important; height:44px!important; min-width:44px!important; min-height:44px!important; margin:0!important;
}
body :is(.brxe-ygvacj,.mmm-product-card) .mmm-cpc-actions {
  display:grid!important; grid-template-columns:minmax(0,1fr) 132px; gap:6px!important; align-items:center; width:100%;
}
.mmm-cpc-actions > :first-child { min-width:0; width:100%; }
body :is(.brxe-ygvacj,.mmm-product-card) .mmm-cpc-actions .add_to_cart_button {
  width:100%!important; min-width:0!important; height:44px!important; min-height:44px!important;
  padding:0 6px!important; letter-spacing:0!important; font-size:12px!important; white-space:nowrap;
}
.mmm-cpc-quantity { display:grid; grid-template-columns:repeat(3,44px); width:132px; }
body .mmm-cpc-quantity :is(button,input) {
  box-sizing:border-box; width:44px!important; min-width:44px!important; height:44px!important;
  min-height:44px!important; margin:0!important; padding:0!important; border:1px solid var(--mc-ink,#22201d);
  border-radius:0!important; background:transparent; color:var(--mc-ink,#22201d);
  font-family:inherit; font-size:16px!important; line-height:1; text-align:center; touch-action:manipulation;
}
.mmm-cpc-quantity input { appearance:textfield; -moz-appearance:textfield; }
.mmm-cpc-quantity input::-webkit-inner-spin-button,.mmm-cpc-quantity input::-webkit-outer-spin-button { -webkit-appearance:none; margin:0; }
.mmm-cpc-quantity > :not(:first-child) { border-left:0; }
.mmm-cpc-quantity button { cursor:pointer; }
.mmm-cpc-quantity button:disabled { opacity:.45; cursor:default; }
.mmm-cpc-quantity :is(button,input):focus-visible,.mmm-cpc-heart button:focus-visible {
  outline:2px solid var(--mc-teal,#2a8f8c); outline-offset:2px; position:relative; z-index:1;
}
.mmm-cpc-quantity input[aria-invalid="true"] { outline:2px solid var(--mc-sale,#a3392b); outline-offset:-2px; }
.mmm-cpc-error { color:var(--mc-sale,#a3392b); font-size:12px; line-height:1.4; }
.mmm-cpc-error:empty { display:none; }
@media (hover:hover) and (pointer:fine) {
  .mmm-cpc-quantity button:not(:disabled):hover { background:var(--mc-ink,#22201d); color:var(--mc-paper,#fbf9f5); }
}
/* Width is applied only to the existing product-card collections, never page overflow. */
:is(.splide__slide,.swiper-slide):has(> .brxe-ygvacj,> .mmm-product-card) { min-width:260px; }
.brxe-ygvacj.splide__slide,.mmm-product-card.swiper-slide { min-width:260px; }
@media (max-width:767px) {
  :is(.brxe-block,.brxe-container,.mmm-products-grid):has(> .brxe-ygvacj.mmm-cpc-ready,> .mmm-product-card.mmm-cpc-ready):not(.splide__list):not(.swiper-wrapper) {
    grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr))!important;
  }
}

/* Four narrow desktop archive columns cannot contain the approved action row. */
.brx-grid:has(> .brxe-ygvacj.mmm-cpc-ready),.mmm-products-grid:has(> .mmm-product-card.mmm-cpc-ready) {
  grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr))!important;
}

/* A phone shows one widened slide: let its content set height instead of inheriting the tallest slide. */
@media (max-width:767px) {
  body .brxe-ygvacj.mmm-cpc-ready.splide__slide { height:auto!important; align-self:flex-start; }
  body .brxe-ygvacj.mmm-cpc-ready.splide__slide .brxe-tawfzf { margin-top:0!important; }
  body .brxe-ygvacj.mmm-cpc-ready.splide__slide .brxe-fbkmob { width:100%!important; }
  body .brxe-ygvacj.mmm-cpc-ready.splide__slide .brxe-fbkmob img { width:100%!important; }
}
