/* Product detail only. Catalog and the three-column mobile purchase bar stay intact. */
.storefront .detail-buy .detail-purchase-row {
  display:grid;
  grid-template-columns:112px minmax(0,1fr);
  gap:8px;
  align-items:stretch;
}
.storefront .detail-buy .detail-quantity {
  display:grid;
  grid-template-columns:44px minmax(24px,1fr) 44px;
  align-items:center;
  min-width:0;
  min-height:48px;
  background:var(--soft-green,#edf6ef);
  border-radius:12px;
}
.storefront .detail-buy .detail-quantity button {
  min-width:44px;
  width:44px;
  min-height:48px;
  padding:0;
  border:0;
  background:transparent;
  color:var(--green,#166c3f);
  font-size:22px;
  font-weight:400;
  line-height:1;
  touch-action:manipulation;
}
.storefront .detail-buy .detail-quantity button:not(:disabled):hover {
  background:#dfeee0;
}
.storefront .detail-buy .detail-quantity button:disabled {
  color:#748177;
  opacity:.45;
  cursor:default;
}
.storefront .detail-buy .detail-quantity-value {
  text-align:center;
  color:var(--ink,#24272b);
  font-size:15px;
  font-weight:500;
  font-variant-numeric:tabular-nums;
}
.storefront .detail-buy .detail-purchase-row>.add {
  min-width:0;
  min-height:48px;
  padding:8px 5px;
  font-size:13px;
  line-height:1.2;
  white-space:normal;
}
.storefront .detail-buy .detail-cart-link span {
  font-size:19px;
  vertical-align:-1px;
}
.storefront .detail-buy .detail-quantity button:focus-visible,
.storefront .detail-buy .detail-purchase-row>.add:focus-visible {
  outline:3px solid var(--green,#166c3f);
  outline-offset:3px;
}
@media (max-width:760px) {
  /* Show the selector in the product itself, without adding a fourth bar column. */
  .storefront .purchase-column .detail-buy {
    display:block;
    margin-bottom:16px;
    padding:18px 16px 14px;
  }
  .storefront .detail-buy .detail-purchase-row {
    grid-template-columns:minmax(112px,.85fr) minmax(0,1.15fr);
  }
  .storefront .detail-buy .detail-purchase-row>.add,
  .storefront .detail-buy .buy-now {
    min-height:48px;
    font-size:14px;
  }
}

.storefront .detail-info .product-return-link {
  display:flex;
  align-items:center;
  gap:9px;
  width:fit-content;
  max-width:100%;
  min-height:44px;
  margin-top:8px;
  padding:6px 0;
  font-size:12px;
  line-height:1.4;
  color:var(--ink,#24272b);
  text-decoration:none;
}
.storefront .detail-info .product-return-link svg {
  width:18px;
  height:18px;
  flex:none;
  fill:none;
  stroke:currentColor;
  stroke-width:1.6;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.storefront .detail-info .product-return-link:hover { color:var(--green,#166c3f); }
.storefront .detail-info .product-return-link:focus-visible {
  outline:3px solid var(--green,#166c3f);
  outline-offset:3px;
  border-radius:4px;
}

/* One product favorite, beside Share. Shared data-favorite handling stays unchanged. */
.storefront .product-breadcrumb .detail-actions {
  display:flex;
  align-items:center;
  flex:none;
  gap:6px;
  margin-left:auto;
}
.storefront .detail-actions .share-button,
.storefront .detail-actions .favorite {
  position:static;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex:none;
  min-width:44px;
  min-height:44px;
  padding:6px;
  border:0;
  border-radius:8px;
  background:transparent;
  color:#454e48;
  box-shadow:none;
  touch-action:manipulation;
}
.storefront .detail-actions .favorite {
  width:44px;
  height:44px;
  font-size:29px;
  line-height:1;
}
.storefront .detail-actions .favorite.selected { color:#fd7707; }
.storefront .detail-actions .share-button:hover,
.storefront .detail-actions .favorite:hover { background:var(--soft-green,#edf6ef); }
.storefront .detail-actions .share-button:focus-visible,
.storefront .detail-actions .favorite:focus-visible {
  outline:3px solid var(--green,#166c3f);
  outline-offset:3px;
}
