/* Local product controls: view icons and product CTA only. */
.lmr-view-icon--4 { grid-template-columns: repeat(2, 6px); grid-template-rows: repeat(2, 6px); }
.lmr-view-icon--2 { grid-template-columns: repeat(2, 7px); grid-template-rows: 14px; }
.lmr-view-icon i { display: block; border: 1px solid currentColor; border-radius: 1px; background: currentColor; }

@media (max-width: 768px) {
  /* Both real controls: Home uses data-grid-view; Shop uses data-lmr-grid. */
  .lmr-home-products__view-controls [data-grid-view="4"] .lmr-view-icon--4,
  .lmr-catalog-view [data-lmr-grid="4"] .lmr-view-icon--4 {
    grid-template-columns: 14px;
    grid-template-rows: 14px;
  }
  .lmr-home-products__view-controls [data-grid-view="4"] .lmr-view-icon--4 i:nth-child(n + 2),
  .lmr-catalog-view [data-lmr-grid="4"] .lmr-view-icon--4 i:nth-child(n + 2) { display: none; }
}

.lmr-product-card__add-to-cart,
body.post-type-archive-product ul.products li.product a.add_to_cart_button {
  display: inline-flex;
  min-width: 44px;
  min-height: 44px !important;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: .7rem 1rem !important;
  border: 1px solid var(--lmr-stitch-forest, #173e2d);
  border-radius: 999px !important;
  background: var(--lmr-stitch-forest, #173e2d);
  color: #fff !important;
  font-size: .82rem !important;
  font-weight: 650 !important;
  line-height: 1.1;
  text-align: center;
  text-decoration: none;
  transition: background-color .15s ease, border-color .15s ease, transform .15s ease;
}
.lmr-product-card__add-to-cart:hover,
.lmr-product-card__add-to-cart:focus-visible,
body.post-type-archive-product ul.products li.product a.add_to_cart_button:hover,
body.post-type-archive-product ul.products li.product a.add_to_cart_button:focus-visible {
  border-color: var(--lmr-stitch-forest-deep, #0f2b1f);
  background: var(--lmr-stitch-forest-deep, #0f2b1f);
  color: #fff !important;
}
.lmr-product-card__add-to-cart:focus-visible,
body.post-type-archive-product ul.products li.product a.add_to_cart_button:focus-visible {
  outline: 3px solid rgba(201, 147, 53, .55);
  outline-offset: 3px;
}
