
/* V74.2 home card refinement: keep V74.1 structure, restore cleaner V73-like ad cards */
html[data-ui-version="74"] #productGrid.product-grid {
  grid-template-columns: repeat(3, minmax(0,1fr)) !important;
  gap: 16px !important;
  align-items: stretch;
}
html[data-ui-version="74"] #productGrid .product-card {
  display: block !important;
  min-height: 0 !important;
  height: 100% !important;
  border: 1px solid color-mix(in srgb, var(--v74-line) 78%, #e7d1d5) !important;
  border-radius: 24px !important;
  overflow: hidden !important;
  background: var(--v74-surface) !important;
  box-shadow: 0 6px 22px rgba(15,23,42,.05) !important;
}
html[data-ui-version="74"] #productGrid .product-link {
  display: grid !important;
  grid-template-rows: auto 1fr !important;
  min-height: 100% !important;
}
html[data-ui-version="74"] #productGrid .product-thumb {
  position: relative !important;
  width: 100% !important;
  aspect-ratio: 4 / 3 !important;
  min-height: 0 !important;
  border: 0 !important;
  border-bottom: 1px solid var(--v74-line) !important;
  overflow: hidden !important;
  background: linear-gradient(160deg, #f8eaed, #eef5f4) !important;
}
html[data-ui-version="74"] #productGrid .product-thumb > img,
html[data-ui-version="74"] #productGrid .product-thumb > .product-illustration {
  width: 100% !important;
  height: 100% !important;
  display: block !important;
}
html[data-ui-version="74"] #productGrid .product-thumb img {
  object-fit: cover !important;
  object-position: center center !important;
}
html[data-ui-version="74"] #productGrid .product-body {
  display: grid !important;
  grid-template-rows: auto auto 1fr auto !important;
  align-content: start !important;
  gap: 8px !important;
  min-height: 186px !important;
  padding: 14px 15px 16px !important;
}
html[data-ui-version="74"] #productGrid .listing-trust-line {
  min-height: 19px !important;
  font-size: 11px !important;
  color: #17805d !important;
}
html[data-ui-version="74"] #productGrid .product-body h3 {
  min-height: 50px !important;
  margin: 0 !important;
  color: #111827 !important;
  font-size: 16px !important;
  line-height: 1.6 !important;
  font-weight: 850 !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
}
html[data-ui-version="74"] #productGrid .product-meta-line {
  display: grid !important;
  gap: 4px !important;
  color: #6b7280 !important;
  font-size: 12px !important;
}
html[data-ui-version="74"] #productGrid .product-meta-line span {
  display: block !important;
}
html[data-ui-version="74"] #productGrid .product-price-row {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px !important;
  margin-top: 2px !important;
  padding-top: 10px !important;
  border-top: 1px solid var(--v74-line) !important;
}
html[data-ui-version="74"] #productGrid .price {
  color: #111827 !important;
  font-size: 17px !important;
  line-height: 1.45 !important;
  font-weight: 950 !important;
}
html[data-ui-version="74"] #productGrid .condition-chip {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 28px !important;
  padding: 0 10px !important;
  border: 1px solid rgba(167,25,40,.14) !important;
  border-radius: 999px !important;
  background: #fff7f8 !important;
  color: #8f3440 !important;
  font-size: 11px !important;
  font-weight: 800 !important;
}
html[data-ui-version="74"] #productGrid .product-save-btn {
  top: 11px !important;
  left: 11px !important;
  width: 36px !important;
  height: 36px !important;
}
html[data-ui-version="74"] #productGrid .listing-badges {
  inset: 10px 10px auto 10px !important;
}
html[data-ui-version="74"] #productGrid .listing-badge {
  font-size: 10px !important;
}
html[data-ui-version="74"] #productGrid .product-illustration {
  position: relative;
  overflow: hidden;
}
html[data-ui-version="74"] #productGrid .product-illustration::before,
html[data-ui-version="74"] #productGrid .product-illustration::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  opacity: .5;
}
html[data-ui-version="74"] #productGrid .product-illustration::before {
  width: 180px; height: 180px; right: -35px; top: -35px; background: rgba(255,255,255,.35);
}
html[data-ui-version="74"] #productGrid .product-illustration::after {
  width: 130px; height: 130px; left: -30px; bottom: -25px; background: rgba(255,255,255,.22);
}
html[data-ui-version="74"] #productGrid .product-illustration__stage {
  position: absolute; inset: 0; display: grid; place-items: center;
}
html[data-ui-version="74"] #productGrid .product-illustration__plate {
  width: 78%; height: 72%; border-radius: 28px; background: rgba(255,255,255,.72);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.45);
  transform: rotate(-6deg);
}
html[data-ui-version="74"] #productGrid .product-illustration__icon {
  position: absolute; inset: 0; display: grid; place-items: center; color: #253142;
}
html[data-ui-version="74"] #productGrid .product-placeholder-icon {
  width: 44%; height: 44%; display: grid; place-items: center;
}
html[data-ui-version="74"] #productGrid .product-placeholder-icon svg {
  width: 100%; height: 100%; display: block;
}
html[data-ui-version="74"] #productGrid .product-illustration--tools { background: linear-gradient(135deg,#dcefed,#f6d9de); }
html[data-ui-version="74"] #productGrid .product-illustration--digital { background: linear-gradient(135deg,#e2e9ff,#f6dde8); }
html[data-ui-version="74"] #productGrid .product-illustration--home { background: linear-gradient(135deg,#e7f4ea,#e4edf9); }
html[data-ui-version="74"] #productGrid .product-illustration--estate { background: linear-gradient(135deg,#e6f3f0,#f0e6ff); }
html[data-ui-version="74"] #productGrid .product-illustration--cars { background: linear-gradient(135deg,#e6edf5,#f7e2e2); }
html[data-ui-version="74"] #productGrid .product-illustration--personal { background: linear-gradient(135deg,#fde8ef,#f5edf7); }
html[data-ui-version="74"] #productGrid .product-illustration--art { background: linear-gradient(135deg,#f6ece1,#e4f0ff); }
html[data-ui-version="74"] #productGrid .product-illustration--food { background: linear-gradient(135deg,#fef3d8,#fce4dd); }

@media (max-width: 1100px) {
  html[data-ui-version="74"] #productGrid.product-grid { grid-template-columns: repeat(2, minmax(0,1fr)) !important; }
}
@media (max-width: 760px) {
  html[data-ui-version="74"] #productGrid.product-grid { grid-template-columns: repeat(2, minmax(0,1fr)) !important; gap: 10px !important; }
  html[data-ui-version="74"] #productGrid .product-card { border-radius: 18px !important; }
  html[data-ui-version="74"] #productGrid .product-body { min-height: 154px !important; padding: 11px !important; gap: 6px !important; }
  html[data-ui-version="74"] #productGrid .listing-trust-line { font-size: 9px !important; }
  html[data-ui-version="74"] #productGrid .product-body h3 { min-height: 42px !important; font-size: 13px !important; }
  html[data-ui-version="74"] #productGrid .product-meta-line { font-size: 10px !important; gap: 2px !important; }
  html[data-ui-version="74"] #productGrid .product-price-row { display: grid !important; justify-content: initial !important; }
  html[data-ui-version="74"] #productGrid .price { font-size: 14px !important; }
  html[data-ui-version="74"] #productGrid .condition-chip { min-height: 24px !important; padding: 0 8px !important; font-size: 10px !important; }
  html[data-ui-version="74"] #productGrid .product-save-btn { top: 8px !important; left: 8px !important; width: 32px !important; height: 32px !important; }
  html[data-ui-version="74"] #productGrid .listing-badge { font-size: 8.5px !important; }
}
