/* Shared catalog rows keep full product names and purchase controls aligned. */
.product-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 40px 24px;
  min-height: 0;
}
.product-grid > .product-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.product-card > .product-photo {
  height: auto;
  aspect-ratio: 1;
  margin: 0 0 20px;
}
.product-card > .product-photo img { padding: 24px; }
.product-card > .product-type {
  margin: 0 0 10px;
  color: #686452;
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: 1.2px;
  overflow-wrap: anywhere;
}
.product-card > h3 {
  min-height: 0;
  margin: 0 0 12px;
  font-size: clamp(23px, 1.7vw, 28px);
  line-height: 1.3;
  letter-spacing: -.3px;
  overflow-wrap: break-word;
}
.product-card > h3 a { display: block; }
.product-card > h3 a:hover { text-decoration: underline; text-underline-offset: 4px; }
.product-card > .product-meta {
  min-height: 0;
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}
.product-card > .product-meta span { display: block; }
.product-card > .product-meta span + span { margin-top: 3px; }
.product-card > .card-detail {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}
.product-card > .product-bottom {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-end;
  gap: 12px;
  margin: auto 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.product-card .price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 10px;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.4;
  white-space: normal;
  font-variant-numeric: tabular-nums;
}
.product-card .price del { color: var(--muted); font-size: 15px; font-weight: 400; }
.product-card .price ins { background: transparent; color: var(--ink); text-decoration: none; }
.product-card .price .amount { white-space: nowrap; }
.product-card .product-bottom > .btn {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  min-height: 48px;
  padding: 12px 16px;
  font-size: 15px;
  line-height: 1.4;
  text-align: center;
  white-space: normal;
}
.product-card > .quick-view {
  align-self: center;
  justify-self: center;
  min-height: 44px;
  margin: 6px 0 0;
  padding: 10px 16px;
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
}
@supports (grid-template-rows: subgrid) {
  .product-grid { row-gap: 0; }
  .product-grid > .product-card {
    display: grid;
    grid-row: span 6;
    grid-template-rows: subgrid;
    row-gap: 0;
    margin-bottom: 36px;
  }
  .product-card > .product-bottom { margin-top: 0; }
}
@media (max-width: 1100px) {
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-card > h3 { font-size: 25px; }
}
@media (max-width: 600px) {
  .product-grid { grid-template-columns: minmax(0, 1fr); }
  .product-card > .product-photo { margin-bottom: 18px; }
  .product-card > h3 { font-size: 26px; }
  .product-card > .product-meta, .product-card > .card-detail { font-size: 15px; }
}
