/* Make product information as readable as the surrounding catalog controls. */
.storefront .catalog-heading-row h1 { font-size: clamp(25px, 2.1vw, 30px); }
.storefront .results-count { font-size: 11px; }
.storefront .product-list { gap: 9px; }
.storefront .product-card {
  grid-template-columns: minmax(0, 1fr) 38px 44px 172px 124px 106px;
  gap: 9px;
  min-height: 104px;
  padding: 12px 14px;
}
.storefront .product-card-link { gap: 12px; }
.storefront .product-icon { width: 50px; height: 50px; }
.storefront .product-card-title {
  margin-bottom: 7px;
  color: #14171d;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.38;
}
.storefront .product-card:not(.seo-domain-card) .product-card-body.is-title-only .product-card-title { margin: 0; }
.storefront .product-card-meta .product-source,
.storefront .product-card-meta .product-sold { font-size: 12px; line-height: 1.3; }
.storefront .product-rating { min-height: 19px; font-size: 10px; }
.storefront .product-favorite { width: 38px; height: 42px; }
.storefront .product-info-box { width: 44px; height: 44px; }
.storefront .product-stat-box { height: 58px; }
.storefront .product-stat-box small { font-size: 11px; line-height: 1.2; }
.storefront .product-stock { font-size: 12px; }
.storefront .product-price { font-size: 16px; }
.storefront .product-add { width: 106px; height: 46px; min-height: 46px; font-size: 11px; }

@media (max-width: 1100px) {
  .storefront .product-card {
    grid-template-columns: minmax(0, 1fr) 36px 42px 172px 112px 96px;
    gap: 7px;
    padding: 11px 12px;
  }
  .storefront .product-card-title { font-size: 15px; }
  .storefront .product-price { font-size: 15px; }
  .storefront .product-add { width: 96px; }
}

@media (max-width: 1000px) {
  .storefront .product-card {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    grid-template-areas: none;
    gap: 9px;
    min-height: 0;
    padding: 12px;
  }
  .storefront .product-card-link {
    grid-column: 1 / 5;
    grid-row: 1;
    min-height: 58px;
    padding-right: 0;
    gap: 11px;
  }
  .storefront .product-favorite {
    position: static;
    grid-column: 5;
    grid-row: 1;
    justify-self: end;
    width: 44px;
    height: 44px;
  }
  .storefront .product-info-box {
    position: static;
    grid-column: 6;
    grid-row: 1;
    justify-self: end;
    width: 44px;
    height: 44px;
  }
  .storefront .product-stock-box {
    grid-column: 1 / 3;
    grid-row: 2;
  }
  .storefront .product-price-wrap {
    grid-column: 3 / 5;
    grid-row: 2;
  }
  .storefront .product-add {
    grid-column: 5 / 7;
    grid-row: 2;
    width: 100%;
    height: 54px;
    min-height: 54px;
  }
  .storefront .product-card-title { font-size: 15px; }
  .storefront .product-icon { width: 48px; height: 48px; }
  .storefront .product-card-meta .product-source,
  .storefront .product-card-meta .product-sold { font-size: 11px; }
  .storefront .product-stat-box { height: 54px; min-height: 54px; }
  .storefront .product-stat-box small { font-size: 10px; }
  .storefront .product-stock { font-size: 11px; }
  .storefront .product-price { font-size: 15px; }
  .storefront .product-add { font-size: 11px; }
}

@media (max-width: 650px) {
  .storefront .product-card { align-items: start; }
  .storefront .product-card-link {
    align-items: center;
    align-self: start;
  }
  .storefront .product-card-body { min-width: 0; align-self: center; }
  .storefront .product-icon { flex: none; align-self: center; margin-top: 0; }
  .storefront .product-favorite,
  .storefront .product-info-box { align-self: start; }
  .storefront .product-favorite {
    border: 1px solid #ecedee;
    border-radius: 10px;
    background: #f8f8f9;
  }
  .storefront .product-favorite.active { border-color: #e4e5e7; background: #f7f7f8; }
  .storefront .product-card-title {
    font-size: 14px;
    line-height: 1.42;
    -webkit-line-clamp: 3;
    overflow-wrap: anywhere;
  }
  .storefront .product-card-link { gap: 10px; }
  .storefront .product-stat-box { height: 50px; min-height: 50px; }
  .storefront .product-stat-box small { font-size: 10px; }
  .storefront .product-stock { font-size: 11px; }
  .storefront .product-price { font-size: 14px; }
  .storefront .product-add {
    height: 50px;
    min-height: 50px;
    font-size: 12px;
  }
}

@media (max-width: 500px) {
  .storefront .product-card-link {
    grid-column: 1 / -1;
    grid-row: 1;
    min-height: 60px;
    padding-right: 0;
  }
  .storefront .product-favorite {
    grid-column: 1;
    grid-row: 3;
    justify-self: stretch;
    width: 100%;
    height: 48px;
    border: 1px solid #eff0f1;
    border-radius: 8px;
    background: #f6f6f7;
  }
  .storefront .product-info-box {
    grid-column: 2;
    grid-row: 3;
    justify-self: stretch;
    width: 100%;
    height: 48px;
  }
  .storefront .product-stock-box {
    grid-column: 1 / 4;
    grid-row: 2;
  }
  .storefront .product-price-wrap {
    grid-column: 4 / 7;
    grid-row: 2;
  }
  .storefront .product-add {
    grid-column: 3 / 7;
    grid-row: 3;
    height: 48px;
    min-height: 48px;
  }
}

/* Give the actual stock count the same visual weight as the price. */
.storefront .product-stock-box {
  height: auto;
  min-height: 58px;
  background: #f0faf4;
  border-color: #cfe9d8;
}
.storefront .product-stock-box small {
  margin-bottom: 3px;
  color: #4b8060;
  font-weight: 700;
  max-width: 100%;
  white-space: nowrap;
  overflow-wrap: normal;
}
.storefront .product-stock-box .product-stock {
  color: #167a47;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: normal;
}
.storefront .product-stock-box .product-stock::before { display: none; }
.storefront .product-stock-box.is-out {
  background: #f6f6f7;
  border-color: #ebebec;
}
.storefront .product-stock-box.is-out .product-stock {
  color: #68798b;
  font-size: 12px;
  line-height: 1.25;
  text-align: center;
  white-space: nowrap;
}

@media (max-width: 1000px) {
  .storefront .product-stock-box { min-height: 54px; }
}
@media (max-width: 650px) {
  .storefront .product-stock-box { min-height: 50px; }
  .storefront .product-stock-box .product-stock { font-size: 12px; }
}

/* Support is part of the catalog flow on narrow screens, so it never covers purchase buttons. */
.storefront .catalog-support-banner { display: none; }

@media (max-width: 800px) {
  .storefront .catalog-support-banner {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr) 24px;
    align-items: center;
    gap: 11px;
    min-height: 78px;
    margin: 0 0 13px;
    padding: 12px 14px;
    border: 1px solid #e2e4e7;
    border-radius: 15px;
    background: linear-gradient(110deg, #f6f7f8, #f8f8f9);
    color: #161a1f;
    box-shadow: 0 7px 19px rgba(28, 32, 39, .055);
    text-decoration: none;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
  }
  .storefront .catalog-support-banner:hover {
    border-color: #a9d8ee;
    box-shadow: 0 10px 22px rgba(28, 32, 39, .1);
    transform: translateY(-1px);
  }
  .storefront .catalog-support-banner:focus-visible {
    outline: 3px solid #69bde5;
    outline-offset: 3px;
  }
  .storefront .catalog-support-icon {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border: 1px solid #e4e5e8;
    border-radius: 13px;
    background: #fff;
  }
  .storefront .catalog-support-icon img { display: block; width: 28px; height: 28px; }
  .storefront .catalog-support-copy { display: grid; gap: 3px; min-width: 0; }
  .storefront .catalog-support-copy strong { font-size: 14px; font-weight: 800; line-height: 1.2; }
  .storefront .catalog-support-copy small { color: #61768a; font-size: 11px; font-weight: 600; line-height: 1.35; }
  .storefront .catalog-support-arrow { color: #1b202a; font-size: 22px; font-weight: 600; text-align: right; }
}
