/* Keep every approved catalog jacket inside the same photographic safe area. */
.product-card .product-image-link img,
.product-card .product-image-link img.landscape-photo {
  transform: translate(var(--photo-shift-x, 0%), var(--photo-shift-y, 0%)) scale(var(--photo-scale, 1));
  transform-origin: center;
}
@media (hover: hover) {
  .product-card .product-image-link:hover img {
    transform: translate(var(--photo-shift-x, 0%), var(--photo-shift-y, 0%)) scale(var(--photo-scale, 1));
  }
}

/* Approved desktop catalog card: compact price tiles, profit strip, size run. */
@media (min-width: 741px) {
  .product-grid { gap: 22px 18px; }
  .product-card {
    min-width: 0;
    padding: 8px;
    border: 1px solid #e9edf0;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 4px 16px #1d2e4307;
  }
  .product-card .product-image-link {
    aspect-ratio: 1 / 1.06;
    border-radius: 11px;
    background: #f4f4f5;
  }
  .product-card .product-image-link img { padding: 0; }
  .product-card .card-content { min-width: 0; padding: 10px 3px 3px; }
  .product-card .card-identity {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: baseline;
    column-gap: 8px;
    min-height: 25px;
    margin: 0 1px 7px;
  }
  .product-card .card-title-row { min-width: 0; grid-column: 1; grid-row: 1; }
  .product-card .product-name { overflow: hidden; margin: 0; font-size: 14px; font-weight: 620; letter-spacing: -.025em; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
  .product-card .card-color { grid-column: 2; grid-row: 1; max-width: 115px; overflow: hidden; margin: 0; color: #838c95; font-size: 10.5px; text-overflow: ellipsis; white-space: nowrap; }
  .product-card .card-stock.out { grid-column: 1 / -1; grid-row: 2; }
  .product-card .card-pricing-row { display: flex; flex-direction: column; gap: 5px; min-width: 0; margin-top: auto; }
  .product-card .prices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px; margin: 0; }
  .product-card .price-col,
  .product-card .price-col.retail {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    gap: 2px;
    width: 100%;
    min-width: 0;
    min-height: 44px;
    padding: 5px 8px;
    border: 0;
    border-radius: 8px;
    background: #f4f5f7;
    text-align: left;
  }
  .product-card .price-col .metric-label { display: block; color: #666f78; font-size: 11px; line-height: 1.3; }
  .product-card .price-col > strong,
  .product-card .price-col.retail > strong { flex: none; color: #19212a; font-size: 16px; line-height: 1.1; font-weight: 630; letter-spacing: -.045em; white-space: nowrap; }
  .product-card .price-col.retail > strong { font-size: 15px; font-weight: 560; }
  .product-card .card-currency { font-size: 1em; }
  .product-card .card-economics { display: block; min-height: 0; margin: 0; padding: 0; border: 0; background: none; }
  .product-card .card-metric:not(.card-markup) {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 28px;
    padding: 0 9px;
    border: 0;
    border-radius: 7px;
    background: #e8f5ec;
    color: #167447;
  }
  .product-card .card-metric .metric-copy { display: flex; flex-direction: row; align-items: center; justify-content: space-between; gap: 7px; width: 100%; }
  .product-card .card-metric .metric-label { display: block; color: #167447; font-size: 11px; line-height: 1.3; }
  .product-card .card-metric strong,
  .product-card .card-metric:first-child strong { color: #167447; font-size: 15px; line-height: 1.1; font-weight: 650; white-space: nowrap; }
  .product-card .card-markup { display: none; }
  .product-card .card-run {
    display: block;
    min-width: 0;
    margin: 5px 0 0;
    padding: 5px 9px 4px;
    border-radius: 8px;
    background: #edf3fc;
    color: #183864;
  }
  .product-card .card-run-top { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
  .product-card .card-run-top span { font-size: 10px; font-weight: 650; white-space: nowrap; }
  .product-card .card-run-top strong { font-size: 17px; line-height: 18px; font-weight: 680; letter-spacing: -.045em; white-space: nowrap; font-variant-numeric: tabular-nums; }
  .product-card .card-run small { display: block; overflow: hidden; margin-top: 1px; color: #607084; font-size: 10px; line-height: 12px; text-overflow: ellipsis; white-space: nowrap; }
  .product-card .card-action { height: 32px; margin-top: 7px; }
  .product-card .card-add,
  .product-card .card-quantity { width: 100%; height: 32px; min-height: 32px; border: 0; border-radius: 8px; background: #252d34; color: #fff; }
  .product-card .card-add { display: flex; align-items: center; justify-content: center; gap: 7px; max-width: none; padding: 0 6px; font-size: 11px; font-weight: 540; }
  .product-card .card-add:not(:disabled):hover { background: #353e46; }
  .product-card .card-add:disabled { background: #ededed; color: #686868; }
  .product-card .card-add::after { inset: 0; }
  .product-card .card-cart-icon { display: block; width: 16px; height: 16px; stroke: currentColor; stroke-width: 1.5; }
  .product-card .card-quantity { grid-template-columns: 32px minmax(0, 1fr) 32px; }
  .product-card .card-quantity > button { height: 32px; color: #fff; }
  .product-card .card-quantity > button:not(:disabled):hover { background: #353e46; }
  .product-card .card-quantity > span { color: #fff; font-size: 11px; }
}

@media (min-width: 741px) and (max-width: 820px) {
  .catalog-heading { flex-wrap: wrap; }
}

@media (max-width: 740px) {
  .product-card .card-identity { display: none; }
  .product-card .mobile-card-reference { flex: 1; }
  .product-card .detail-unit-prices { margin: 0; }
  .product-card .detail-price-card {
    padding: 4px 7px;
    border-radius: 9px;
    background: #f5f6f8;
  }
  .product-card .detail-price-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px;
    min-height: 31px;
  }
  .product-card .detail-price-icon { display: none; }
  .product-card .detail-price-label { font-size: 10.5px; line-height: 14px; }
  .product-card .detail-price-row strong { font-size: 13px; line-height: 16px; font-weight: 550; }
  .product-card .detail-price-row.profit {
    min-height: 31px;
    margin-top: 2px;
    padding: 0 4px;
    border-radius: 5px;
  }
  .product-card .detail-run-card {
    min-height: 45px;
    margin-top: 6px;
    padding: 4px 7px;
    row-gap: 2px;
    border-radius: 8px;
    background: #eef3fc;
  }
  .product-card .detail-run-copy > span { font-size: 10px; line-height: 13px; font-weight: 600; }
  .product-card .detail-run-card > strong { font-size: 16px; line-height: 19px; }
  .product-card .run-pack-summary {
    display: block;
    grid-column: 1 / -1;
    color: #596677;
    font-size: clamp(8px, 2.45vw, 10px);
    line-height: 12px;
    letter-spacing: -.025em;
    white-space: nowrap;
  }
  .product-dialog .detail-availability { padding: 14px 0; margin-bottom: 18px; }
}

@media (max-width: 360px) {
  .product-card .detail-price-card { padding-inline: 5px; }
  .product-card .detail-price-label { font-size: 9.5px; }
  .product-card .detail-price-row strong { font-size: 12px; }
  .product-card .detail-run-copy > span { font-size: 9.5px; }
  .product-card .detail-run-card > strong { font-size: 15px; }
}
