/* Final product-card layout guard: fixed rows prevent image/title/price/action overlap. */
.home-page .commerce-layout .product-grid[data-product-grid] {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(252px, 1fr)) !important;
  align-items: stretch !important;
  gap: 18px !important;
}

.home-page .commerce-layout .product-grid[data-product-grid] > article.product-card,
.home-page .commerce-layout .product-grid[data-product-grid] > article.product-card:nth-child(1),
.home-page .commerce-layout .product-grid[data-product-grid] > article.product-card:nth-child(8n + 1) {
  box-sizing: border-box !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  grid-template-rows: minmax(0, auto) 178px !important;
  min-width: 0 !important;
  min-height: 456px !important;
  height: 100% !important;
  padding: 10px !important;
  overflow: hidden !important;
}

.home-page .commerce-layout .product-grid[data-product-grid] > article.product-card .product-card-media,
.home-page .commerce-layout .product-grid[data-product-grid] > article.product-card:nth-child(1) .product-card-media,
.home-page .commerce-layout .product-grid[data-product-grid] > article.product-card:nth-child(8n + 1) .product-card-media {
  box-sizing: border-box !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  min-width: 0 !important;
  min-height: 0 !important;
  aspect-ratio: 1 / 1 !important;
  background: #f5f6f1 !important;
  border-radius: 8px !important;
  overflow: hidden !important;
}

.home-page .commerce-layout .product-grid[data-product-grid] > article.product-card .product-card-media img,
.home-page .commerce-layout .product-grid[data-product-grid] > article.product-card img,
.home-page .commerce-layout .product-grid[data-product-grid] > article.product-card:nth-child(1) img,
.home-page .commerce-layout .product-grid[data-product-grid] > article.product-card:nth-child(8n + 1) img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  min-width: 0 !important;
  min-height: 0 !important;
  object-fit: contain !important;
}

.home-page .commerce-layout .product-grid[data-product-grid] > article.product-card .product-copy,
.home-page .commerce-layout .product-grid[data-product-grid] > article.product-card:nth-child(1) .product-copy,
.home-page .commerce-layout .product-grid[data-product-grid] > article.product-card:nth-child(8n + 1) .product-copy {
  box-sizing: border-box !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  grid-template-rows: 16px 44px 24px 20px 40px !important;
  align-content: start !important;
  min-width: 0 !important;
  min-height: 178px !important;
  height: 178px !important;
  padding: 12px 2px 0 !important;
  gap: 7px !important;
  overflow: hidden !important;
}

.home-page .commerce-layout .product-grid[data-product-grid] > article.product-card .product-copy > small,
.home-page .commerce-layout .product-grid[data-product-grid] > article.product-card .product-copy > h3,
.home-page .commerce-layout .product-grid[data-product-grid] > article.product-card .product-meta,
.home-page .commerce-layout .product-grid[data-product-grid] > article.product-card .price-row,
.home-page .commerce-layout .product-grid[data-product-grid] > article.product-card .product-actions {
  position: static !important;
  inset: auto !important;
  transform: none !important;
  min-width: 0 !important;
  margin: 0 !important;
}

.home-page .commerce-layout .product-grid[data-product-grid] > article.product-card .product-copy > small {
  display: block !important;
  height: 16px !important;
  overflow: hidden !important;
  color: #66746f !important;
  font-size: 10px !important;
  font-weight: 850 !important;
  line-height: 16px !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.home-page .commerce-layout .product-grid[data-product-grid] > article.product-card .product-copy > h3,
.home-page .commerce-layout .product-grid[data-product-grid] > article.product-card:nth-child(1) h3,
.home-page .commerce-layout .product-grid[data-product-grid] > article.product-card:nth-child(8n + 1) h3 {
  display: -webkit-box !important;
  height: 44px !important;
  min-height: 44px !important;
  max-height: 44px !important;
  overflow: hidden !important;
  color: #10181b !important;
  font-size: 14px !important;
  font-weight: 850 !important;
  letter-spacing: 0 !important;
  line-height: 22px !important;
  overflow-wrap: anywhere !important;
  word-break: break-word !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 2 !important;
}

.home-page .commerce-layout .product-grid[data-product-grid] > article.product-card .product-copy > p {
  display: none !important;
}

.home-page .commerce-layout .product-grid[data-product-grid] > article.product-card .product-meta {
  display: flex !important;
  align-items: center !important;
  height: 24px !important;
  overflow: hidden !important;
}

.home-page .commerce-layout .product-grid[data-product-grid] > article.product-card .product-meta span {
  display: none !important;
}

.home-page .commerce-layout .product-grid[data-product-grid] > article.product-card .product-meta .price-status {
  display: inline-flex !important;
  align-items: center !important;
  max-width: 100% !important;
  height: 24px !important;
  padding: 0 8px !important;
  overflow: hidden !important;
  font-size: 11px !important;
  font-weight: 850 !important;
  line-height: 1 !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.home-page .commerce-layout .product-grid[data-product-grid] > article.product-card .price-row {
  display: block !important;
  height: 20px !important;
  min-height: 20px !important;
  max-height: 20px !important;
  overflow: hidden !important;
}

.home-page .commerce-layout .product-grid[data-product-grid] > article.product-card .price-row strong {
  display: block !important;
  height: 20px !important;
  overflow: hidden !important;
  color: #121a1d !important;
  font-size: 13px !important;
  font-weight: 850 !important;
  line-height: 20px !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.home-page .commerce-layout .product-grid[data-product-grid] > article.product-card .product-actions {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  width: 100% !important;
  height: 40px !important;
  min-height: 40px !important;
  max-height: 40px !important;
  gap: 7px !important;
}

.home-page .commerce-layout .product-grid[data-product-grid] > article.product-card .product-actions button,
.home-page .commerce-layout .product-grid[data-product-grid] > article.product-card .product-actions .chat-action {
  box-sizing: border-box !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  min-width: 0 !important;
  height: 40px !important;
  min-height: 40px !important;
  padding: 0 7px !important;
  overflow: hidden !important;
  font-size: 12px !important;
  font-weight: 850 !important;
  line-height: 1 !important;
  text-align: center !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

@media (max-width: 920px) {
  .home-page .commerce-layout .product-grid[data-product-grid] {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
  }

  .home-page .commerce-layout .product-grid[data-product-grid] > article.product-card,
  .home-page .commerce-layout .product-grid[data-product-grid] > article.product-card:nth-child(1),
  .home-page .commerce-layout .product-grid[data-product-grid] > article.product-card:nth-child(8n + 1) {
    grid-template-rows: minmax(0, auto) 214px !important;
    min-height: 456px !important;
    padding: 8px !important;
  }

  .home-page .commerce-layout .product-grid[data-product-grid] > article.product-card .product-copy,
  .home-page .commerce-layout .product-grid[data-product-grid] > article.product-card:nth-child(1) .product-copy,
  .home-page .commerce-layout .product-grid[data-product-grid] > article.product-card:nth-child(8n + 1) .product-copy {
    grid-template-rows: 16px 44px 24px 20px 78px !important;
    min-height: 214px !important;
    height: 214px !important;
    padding-top: 10px !important;
    gap: 7px !important;
  }

  .home-page .commerce-layout .product-grid[data-product-grid] > article.product-card .product-copy > h3,
  .home-page .commerce-layout .product-grid[data-product-grid] > article.product-card:nth-child(1) h3,
  .home-page .commerce-layout .product-grid[data-product-grid] > article.product-card:nth-child(8n + 1) h3 {
    font-size: 12px !important;
  }

  .home-page .commerce-layout .product-grid[data-product-grid] > article.product-card .product-actions {
    grid-template-columns: minmax(0, 1fr) !important;
    height: 78px !important;
    min-height: 78px !important;
    max-height: 78px !important;
    gap: 6px !important;
  }

  .home-page .commerce-layout .product-grid[data-product-grid] > article.product-card .product-actions button,
  .home-page .commerce-layout .product-grid[data-product-grid] > article.product-card .product-actions .chat-action {
    height: 36px !important;
    min-height: 36px !important;
    font-size: 11px !important;
  }
}

@media (max-width: 520px) {
  .home-page .commerce-layout .product-grid[data-product-grid] {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .home-page .commerce-layout .product-grid[data-product-grid] > article.product-card,
  .home-page .commerce-layout .product-grid[data-product-grid] > article.product-card:nth-child(1),
  .home-page .commerce-layout .product-grid[data-product-grid] > article.product-card:nth-child(8n + 1) {
    grid-template-rows: minmax(0, auto) 214px !important;
    min-height: 470px !important;
  }
}

/* 20260715 browser-comment guard: product text and actions must never share rows. */
.home-page .commerce-layout .product-grid[data-product-grid] > article.product-card.product-card--shelf {
  contain: layout paint !important;
  isolation: isolate !important;
}

.home-page .commerce-layout .product-grid[data-product-grid] > article.product-card.product-card--shelf .product-copy {
  display: grid !important;
  grid-template-areas:
    "tag"
    "title"
    "status"
    "price"
    "actions" !important;
  grid-template-rows: 18px 48px 26px 22px 44px !important;
  row-gap: 8px !important;
  height: 198px !important;
  min-height: 198px !important;
  max-height: 198px !important;
  overflow: hidden !important;
}

.home-page .commerce-layout .product-grid[data-product-grid] > article.product-card.product-card--shelf .product-copy > small {
  grid-area: tag !important;
  height: 18px !important;
  line-height: 18px !important;
}

.home-page .commerce-layout .product-grid[data-product-grid] > article.product-card.product-card--shelf .product-copy > h3 {
  grid-area: title !important;
  height: 48px !important;
  min-height: 48px !important;
  max-height: 48px !important;
  line-height: 24px !important;
}

.home-page .commerce-layout .product-grid[data-product-grid] > article.product-card.product-card--shelf .product-meta {
  grid-area: status !important;
  height: 26px !important;
  min-height: 26px !important;
  max-height: 26px !important;
}

.home-page .commerce-layout .product-grid[data-product-grid] > article.product-card.product-card--shelf .price-row {
  grid-area: price !important;
  height: 22px !important;
  min-height: 22px !important;
  max-height: 22px !important;
}

.home-page .commerce-layout .product-grid[data-product-grid] > article.product-card.product-card--shelf .product-actions {
  grid-area: actions !important;
  height: 44px !important;
  min-height: 44px !important;
  max-height: 44px !important;
}

@media (max-width: 920px) {
  .home-page .commerce-layout .product-grid[data-product-grid] > article.product-card.product-card--shelf {
    grid-template-rows: minmax(0, auto) 246px !important;
    min-height: 500px !important;
  }

  .home-page .commerce-layout .product-grid[data-product-grid] > article.product-card.product-card--shelf .product-copy {
    grid-template-rows: 18px 48px 26px 22px 80px !important;
    height: 246px !important;
    min-height: 246px !important;
    max-height: 246px !important;
  }

  .home-page .commerce-layout .product-grid[data-product-grid] > article.product-card.product-card--shelf .product-actions {
    grid-template-columns: minmax(0, 1fr) !important;
    height: 80px !important;
    min-height: 80px !important;
    max-height: 80px !important;
  }
}

/* 20260715 no-overlap-f: hard product-card strata for the browser-comment viewport. */
.home-page .commerce-layout .product-grid[data-product-grid] > article.product-card.product-card--shelf,
.home-page .commerce-layout .product-grid[data-product-grid] > article.product-card.product-card--shelf:nth-child(1),
.home-page .commerce-layout .product-grid[data-product-grid] > article.product-card.product-card--shelf:nth-child(8n + 1) {
  display: flex !important;
  flex-direction: column !important;
  min-width: 0 !important;
  min-height: 484px !important;
  height: 100% !important;
  padding: 10px !important;
  gap: 12px !important;
  overflow: hidden !important;
}

.home-page .commerce-layout .product-grid[data-product-grid] > article.product-card.product-card--shelf .product-card-media,
.home-page .commerce-layout .product-grid[data-product-grid] > article.product-card.product-card--shelf:nth-child(1) .product-card-media,
.home-page .commerce-layout .product-grid[data-product-grid] > article.product-card.product-card--shelf:nth-child(8n + 1) .product-card-media {
  flex: 0 0 auto !important;
  width: 100% !important;
  aspect-ratio: 1 / 1 !important;
  min-height: 0 !important;
  max-height: none !important;
}

.home-page .commerce-layout .product-grid[data-product-grid] > article.product-card.product-card--shelf .product-copy,
.home-page .commerce-layout .product-grid[data-product-grid] > article.product-card.product-card--shelf:nth-child(1) .product-copy,
.home-page .commerce-layout .product-grid[data-product-grid] > article.product-card.product-card--shelf:nth-child(8n + 1) .product-copy {
  display: flex !important;
  flex: 1 0 204px !important;
  flex-direction: column !important;
  min-width: 0 !important;
  min-height: 204px !important;
  height: auto !important;
  max-height: none !important;
  padding: 0 2px !important;
  gap: 8px !important;
  overflow: hidden !important;
}

.home-page .commerce-layout .product-grid[data-product-grid] > article.product-card.product-card--shelf .product-copy > small,
.home-page .commerce-layout .product-grid[data-product-grid] > article.product-card.product-card--shelf .product-copy > h3,
.home-page .commerce-layout .product-grid[data-product-grid] > article.product-card.product-card--shelf .product-meta,
.home-page .commerce-layout .product-grid[data-product-grid] > article.product-card.product-card--shelf .price-row,
.home-page .commerce-layout .product-grid[data-product-grid] > article.product-card.product-card--shelf .product-actions {
  position: static !important;
  inset: auto !important;
  flex: 0 0 auto !important;
  min-width: 0 !important;
  margin: 0 !important;
  transform: none !important;
}

.home-page .commerce-layout .product-grid[data-product-grid] > article.product-card.product-card--shelf .product-copy > p {
  display: none !important;
}

.home-page .commerce-layout .product-grid[data-product-grid] > article.product-card.product-card--shelf .product-copy > small {
  height: 18px !important;
  min-height: 18px !important;
  max-height: 18px !important;
  font-size: 11px !important;
  line-height: 18px !important;
}

.home-page .commerce-layout .product-grid[data-product-grid] > article.product-card.product-card--shelf .product-copy > h3,
.home-page .commerce-layout .product-grid[data-product-grid] > article.product-card.product-card--shelf:nth-child(1) h3,
.home-page .commerce-layout .product-grid[data-product-grid] > article.product-card.product-card--shelf:nth-child(8n + 1) h3 {
  height: 50px !important;
  min-height: 50px !important;
  max-height: 50px !important;
  font-size: 14px !important;
  line-height: 25px !important;
}

.home-page .commerce-layout .product-grid[data-product-grid] > article.product-card.product-card--shelf .product-meta {
  height: 26px !important;
  min-height: 26px !important;
  max-height: 26px !important;
}

.home-page .commerce-layout .product-grid[data-product-grid] > article.product-card.product-card--shelf .price-row {
  height: 22px !important;
  min-height: 22px !important;
  max-height: 22px !important;
}

.home-page .commerce-layout .product-grid[data-product-grid] > article.product-card.product-card--shelf .product-actions {
  height: 44px !important;
  min-height: 44px !important;
  max-height: 44px !important;
}

@media (max-width: 920px) {
  .home-page .commerce-layout .product-grid[data-product-grid] > article.product-card.product-card--shelf,
  .home-page .commerce-layout .product-grid[data-product-grid] > article.product-card.product-card--shelf:nth-child(1),
  .home-page .commerce-layout .product-grid[data-product-grid] > article.product-card.product-card--shelf:nth-child(8n + 1) {
    min-height: 512px !important;
  }

  .home-page .commerce-layout .product-grid[data-product-grid] > article.product-card.product-card--shelf .product-copy,
  .home-page .commerce-layout .product-grid[data-product-grid] > article.product-card.product-card--shelf:nth-child(1) .product-copy,
  .home-page .commerce-layout .product-grid[data-product-grid] > article.product-card.product-card--shelf:nth-child(8n + 1) .product-copy {
    flex-basis: 238px !important;
    min-height: 238px !important;
  }

  .home-page .commerce-layout .product-grid[data-product-grid] > article.product-card.product-card--shelf .product-actions {
    grid-template-columns: minmax(0, 1fr) !important;
    height: 80px !important;
    min-height: 80px !important;
    max-height: 80px !important;
  }
}

@media (max-width: 520px) {
  .home-page .commerce-layout .product-grid[data-product-grid] > article.product-card.product-card--shelf,
  .home-page .commerce-layout .product-grid[data-product-grid] > article.product-card.product-card--shelf:nth-child(1),
  .home-page .commerce-layout .product-grid[data-product-grid] > article.product-card.product-card--shelf:nth-child(8n + 1) {
    min-height: 500px !important;
  }
}

/* 20260715 no-overlap-g: browser-comment hard stop for 841px product wall. */
.home-page .commerce-layout .product-grid[data-product-grid] {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)) !important;
  gap: 18px !important;
}

.home-page .commerce-layout .product-grid[data-product-grid] > article.product-card.product-card--shelf,
.home-page .commerce-layout .product-grid[data-product-grid] > article.product-card.product-card--shelf:nth-child(1),
.home-page .commerce-layout .product-grid[data-product-grid] > article.product-card.product-card--shelf:nth-child(8n + 1) {
  display: flex !important;
  flex-direction: column !important;
  min-width: 0 !important;
  min-height: 520px !important;
  height: 100% !important;
  padding: 12px !important;
  gap: 12px !important;
  overflow: hidden !important;
}

.home-page .commerce-layout .product-grid[data-product-grid] > article.product-card.product-card--shelf .product-card-media,
.home-page .commerce-layout .product-grid[data-product-grid] > article.product-card.product-card--shelf:nth-child(1) .product-card-media,
.home-page .commerce-layout .product-grid[data-product-grid] > article.product-card.product-card--shelf:nth-child(8n + 1) .product-card-media {
  flex: 0 0 auto !important;
  width: 100% !important;
  aspect-ratio: 1 / 1 !important;
  border-radius: 8px !important;
}

.home-page .commerce-layout .product-grid[data-product-grid] > article.product-card.product-card--shelf .product-copy,
.home-page .commerce-layout .product-grid[data-product-grid] > article.product-card.product-card--shelf:nth-child(1) .product-copy,
.home-page .commerce-layout .product-grid[data-product-grid] > article.product-card.product-card--shelf:nth-child(8n + 1) .product-copy {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  grid-template-rows: 18px 52px 26px 22px minmax(40px, auto) !important;
  align-content: start !important;
  flex: 1 0 188px !important;
  min-width: 0 !important;
  min-height: 188px !important;
  height: auto !important;
  padding: 0 2px !important;
  gap: 8px !important;
  overflow: hidden !important;
}

.home-page .commerce-layout .product-grid[data-product-grid] > article.product-card.product-card--shelf .product-copy > p {
  display: none !important;
}

.home-page .commerce-layout .product-grid[data-product-grid] > article.product-card.product-card--shelf .product-copy > small,
.home-page .commerce-layout .product-grid[data-product-grid] > article.product-card.product-card--shelf .product-copy > h3,
.home-page .commerce-layout .product-grid[data-product-grid] > article.product-card.product-card--shelf .product-meta,
.home-page .commerce-layout .product-grid[data-product-grid] > article.product-card.product-card--shelf .price-row,
.home-page .commerce-layout .product-grid[data-product-grid] > article.product-card.product-card--shelf .product-actions {
  position: static !important;
  min-width: 0 !important;
  margin: 0 !important;
  transform: none !important;
}

.home-page .commerce-layout .product-grid[data-product-grid] > article.product-card.product-card--shelf .product-copy > small {
  height: 18px !important;
  overflow: hidden !important;
  font-size: 11px !important;
  line-height: 18px !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.home-page .commerce-layout .product-grid[data-product-grid] > article.product-card.product-card--shelf .product-copy > h3,
.home-page .commerce-layout .product-grid[data-product-grid] > article.product-card.product-card--shelf:nth-child(1) h3,
.home-page .commerce-layout .product-grid[data-product-grid] > article.product-card.product-card--shelf:nth-child(8n + 1) h3 {
  display: -webkit-box !important;
  height: 52px !important;
  min-height: 52px !important;
  max-height: 52px !important;
  overflow: hidden !important;
  font-size: 14px !important;
  line-height: 26px !important;
  letter-spacing: 0 !important;
  overflow-wrap: anywhere !important;
  word-break: break-word !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 2 !important;
}

.home-page .commerce-layout .product-grid[data-product-grid] > article.product-card.product-card--shelf .product-meta {
  display: flex !important;
  align-items: center !important;
  height: 26px !important;
  min-height: 26px !important;
  max-height: 26px !important;
  overflow: hidden !important;
}

.home-page .commerce-layout .product-grid[data-product-grid] > article.product-card.product-card--shelf .price-row {
  display: block !important;
  height: 22px !important;
  min-height: 22px !important;
  max-height: 22px !important;
  overflow: hidden !important;
}

.home-page .commerce-layout .product-grid[data-product-grid] > article.product-card.product-card--shelf .product-actions {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  align-self: end !important;
  width: 100% !important;
  min-width: 0 !important;
  min-height: 40px !important;
  gap: 8px !important;
}

.home-page .commerce-layout .product-grid[data-product-grid] > article.product-card.product-card--shelf .product-actions button,
.home-page .commerce-layout .product-grid[data-product-grid] > article.product-card.product-card--shelf .product-actions .chat-action {
  min-width: 0 !important;
  min-height: 40px !important;
  padding: 0 8px !important;
  overflow: hidden !important;
  font-size: 12px !important;
  line-height: 1 !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

@media (max-width: 980px) {
  .home-page .commerce-layout .product-grid[data-product-grid] {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 14px !important;
  }

  .home-page .commerce-layout .product-grid[data-product-grid] > article.product-card.product-card--shelf,
  .home-page .commerce-layout .product-grid[data-product-grid] > article.product-card.product-card--shelf:nth-child(1),
  .home-page .commerce-layout .product-grid[data-product-grid] > article.product-card.product-card--shelf:nth-child(8n + 1) {
    min-height: 530px !important;
    padding: 10px !important;
  }

  .home-page .commerce-layout .product-grid[data-product-grid] > article.product-card.product-card--shelf .product-copy,
  .home-page .commerce-layout .product-grid[data-product-grid] > article.product-card.product-card--shelf:nth-child(1) .product-copy,
  .home-page .commerce-layout .product-grid[data-product-grid] > article.product-card.product-card--shelf:nth-child(8n + 1) .product-copy {
    grid-template-rows: 18px 52px 26px 22px 84px !important;
    flex-basis: 248px !important;
    min-height: 248px !important;
  }

  .home-page .commerce-layout .product-grid[data-product-grid] > article.product-card.product-card--shelf .product-actions {
    grid-template-columns: minmax(0, 1fr) !important;
    min-height: 84px !important;
    gap: 6px !important;
  }

  .home-page .commerce-layout .product-grid[data-product-grid] > article.product-card.product-card--shelf .product-actions button,
  .home-page .commerce-layout .product-grid[data-product-grid] > article.product-card.product-card--shelf .product-actions .chat-action {
    min-height: 39px !important;
    font-size: 11px !important;
  }
}

@media (max-width: 560px) {
  .home-page .commerce-layout .product-grid[data-product-grid] {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}

/* 20260715 no-overlap-h: last-mile shelf geometry for browser-comment viewport. */
.home-page .commerce-layout .product-grid[data-product-grid] {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)) !important;
  align-items: stretch !important;
  gap: 18px !important;
}

.home-page .commerce-layout .product-grid[data-product-grid] > article.product-card.product-card--shelf,
.home-page .commerce-layout .product-grid[data-product-grid] > article.product-card.product-card--shelf:nth-child(1),
.home-page .commerce-layout .product-grid[data-product-grid] > article.product-card.product-card--shelf:nth-child(8n + 1) {
  box-sizing: border-box !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  grid-template-rows: minmax(0, auto) 216px !important;
  min-width: 0 !important;
  min-height: 536px !important;
  height: 100% !important;
  padding: 12px !important;
  gap: 12px !important;
  overflow: hidden !important;
}

.home-page .commerce-layout .product-grid[data-product-grid] > article.product-card.product-card--shelf .product-card-media,
.home-page .commerce-layout .product-grid[data-product-grid] > article.product-card.product-card--shelf:nth-child(1) .product-card-media,
.home-page .commerce-layout .product-grid[data-product-grid] > article.product-card.product-card--shelf:nth-child(8n + 1) .product-card-media {
  box-sizing: border-box !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  min-width: 0 !important;
  min-height: 0 !important;
  aspect-ratio: 1 / 1 !important;
  overflow: hidden !important;
}

.home-page .commerce-layout .product-grid[data-product-grid] > article.product-card.product-card--shelf .product-card-media img,
.home-page .commerce-layout .product-grid[data-product-grid] > article.product-card.product-card--shelf img,
.home-page .commerce-layout .product-grid[data-product-grid] > article.product-card.product-card--shelf:nth-child(1) img,
.home-page .commerce-layout .product-grid[data-product-grid] > article.product-card.product-card--shelf:nth-child(8n + 1) img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  min-width: 0 !important;
  min-height: 0 !important;
  object-fit: contain !important;
}

.home-page .commerce-layout .product-grid[data-product-grid] > article.product-card.product-card--shelf .product-copy,
.home-page .commerce-layout .product-grid[data-product-grid] > article.product-card.product-card--shelf:nth-child(1) .product-copy,
.home-page .commerce-layout .product-grid[data-product-grid] > article.product-card.product-card--shelf:nth-child(8n + 1) .product-copy {
  box-sizing: border-box !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  grid-template-rows: 18px 52px 26px 22px 42px !important;
  align-content: start !important;
  min-width: 0 !important;
  min-height: 216px !important;
  height: 216px !important;
  max-height: 216px !important;
  padding: 0 2px !important;
  gap: 8px !important;
  overflow: hidden !important;
}

.home-page .commerce-layout .product-grid[data-product-grid] > article.product-card.product-card--shelf .product-copy > small,
.home-page .commerce-layout .product-grid[data-product-grid] > article.product-card.product-card--shelf .product-copy > h3,
.home-page .commerce-layout .product-grid[data-product-grid] > article.product-card.product-card--shelf .product-meta,
.home-page .commerce-layout .product-grid[data-product-grid] > article.product-card.product-card--shelf .price-row,
.home-page .commerce-layout .product-grid[data-product-grid] > article.product-card.product-card--shelf .product-actions {
  position: static !important;
  inset: auto !important;
  min-width: 0 !important;
  margin: 0 !important;
  transform: none !important;
}

.home-page .commerce-layout .product-grid[data-product-grid] > article.product-card.product-card--shelf .product-copy > small {
  display: block !important;
  height: 18px !important;
  overflow: hidden !important;
  font-size: 11px !important;
  line-height: 18px !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.home-page .commerce-layout .product-grid[data-product-grid] > article.product-card.product-card--shelf .product-copy > h3,
.home-page .commerce-layout .product-grid[data-product-grid] > article.product-card.product-card--shelf:nth-child(1) h3,
.home-page .commerce-layout .product-grid[data-product-grid] > article.product-card.product-card--shelf:nth-child(8n + 1) h3 {
  display: -webkit-box !important;
  height: 52px !important;
  min-height: 52px !important;
  max-height: 52px !important;
  overflow: hidden !important;
  font-size: 14px !important;
  line-height: 26px !important;
  letter-spacing: 0 !important;
  overflow-wrap: anywhere !important;
  word-break: break-word !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 2 !important;
}

.home-page .commerce-layout .product-grid[data-product-grid] > article.product-card.product-card--shelf .product-copy > p,
.home-page .commerce-layout .product-grid[data-product-grid] > article.product-card.product-card--shelf .product-meta span {
  display: none !important;
}

.home-page .commerce-layout .product-grid[data-product-grid] > article.product-card.product-card--shelf .product-meta,
.home-page .commerce-layout .product-grid[data-product-grid] > article.product-card.product-card--shelf .price-row,
.home-page .commerce-layout .product-grid[data-product-grid] > article.product-card.product-card--shelf .price-row strong {
  display: block !important;
  height: 26px !important;
  min-height: 0 !important;
  max-height: 26px !important;
  overflow: hidden !important;
}

.home-page .commerce-layout .product-grid[data-product-grid] > article.product-card.product-card--shelf .price-row,
.home-page .commerce-layout .product-grid[data-product-grid] > article.product-card.product-card--shelf .price-row strong {
  height: 22px !important;
  max-height: 22px !important;
  font-size: 13px !important;
  line-height: 22px !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.home-page .commerce-layout .product-grid[data-product-grid] > article.product-card.product-card--shelf .product-meta .price-status {
  display: inline-flex !important;
  align-items: center !important;
  max-width: 100% !important;
  height: 26px !important;
  padding: 0 8px !important;
  overflow: hidden !important;
  font-size: 11px !important;
  font-weight: 850 !important;
  line-height: 1 !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.home-page .commerce-layout .product-grid[data-product-grid] > article.product-card.product-card--shelf .product-actions {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  width: 100% !important;
  height: 42px !important;
  min-height: 42px !important;
  max-height: 42px !important;
  gap: 8px !important;
}

.home-page .commerce-layout .product-grid[data-product-grid] > article.product-card.product-card--shelf .product-actions button,
.home-page .commerce-layout .product-grid[data-product-grid] > article.product-card.product-card--shelf .product-actions .chat-action {
  box-sizing: border-box !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  min-width: 0 !important;
  height: 42px !important;
  min-height: 42px !important;
  padding: 0 8px !important;
  overflow: hidden !important;
  font-size: 12px !important;
  font-weight: 850 !important;
  line-height: 1 !important;
  text-align: center !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

@media (max-width: 1040px) {
  .home-page .commerce-layout .product-grid[data-product-grid] {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 14px !important;
  }

  .home-page .commerce-layout .product-grid[data-product-grid] > article.product-card.product-card--shelf,
  .home-page .commerce-layout .product-grid[data-product-grid] > article.product-card.product-card--shelf:nth-child(1),
  .home-page .commerce-layout .product-grid[data-product-grid] > article.product-card.product-card--shelf:nth-child(8n + 1) {
    min-height: 566px !important;
    padding: 10px !important;
  }
}

@media (max-width: 560px) {
  .home-page .commerce-layout .product-grid[data-product-grid] {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}
