/** AppVault V8 — only the INSIDE of existing home product cards changes.
 * No changes to home shortcode, banner, sections, headings, number of cards/row.
 */
body.home.av-superprof-v2 .avsp-card-grid .av-card-row.avsp-product-card {
  display:grid!important;
  grid-template-columns:68px minmax(0,1fr);
  column-gap:12px;
  row-gap:0;
  align-content:start;
  align-items:start;
  padding:15px!important;
  min-height:145px;
  border:1px solid #e7eaf0!important;
  border-radius:16px;
  background:#fff;
  box-shadow:0 2px 10px rgba(30,40,55,.035)!important;
}
body.home.av-superprof-v2 .avsp-card-grid .av-card-row.avsp-product-card:hover {
  border-color:#e8c1aa!important;
  box-shadow:0 7px 22px rgba(30,40,55,.07)!important;
}
/* The original cover link contains BOTH the picture and its heading/overlay.
 * Turn that link into a compact two-column header without duplicating content. */
body.home.av-superprof-v2 .avsp-card-grid .avsp-product-card>.avsp-product-cover {
  display:grid!important;
  grid-template-columns:68px minmax(0,1fr);
  grid-template-rows:auto;
  column-gap:12px;
  grid-column:1/-1;
  grid-row:1;
  width:100%!important;
  min-width:0;
  height:auto!important;
  min-height:68px;
  aspect-ratio:auto!important;
  overflow:visible!important;
  background:transparent!important;
  border-radius:0!important;
  box-shadow:none!important;
  align-items:start;
}
/* This handles both image and icon-fallback card variants. */
body.home.av-superprof-v2 .avsp-card-grid .avsp-product-card>.avsp-product-cover>.avsp-cover-image,
body.home.av-superprof-v2 .avsp-card-grid .avsp-product-card>.avsp-product-cover>.avsp-cover-fallback {
  position:relative!important;
  grid-column:1;
  grid-row:1;
  display:flex;
  align-items:center;
  justify-content:center;
  width:68px!important;
  height:68px!important;
  min-width:0;
  max-width:68px;
  aspect-ratio:1/1!important;
  inset:auto!important;
  overflow:hidden;
  border-radius:12px!important;
  background:#f6f7f9!important;
  box-shadow:none!important;
  transform:none!important;
}
body.home.av-superprof-v2 .avsp-card-grid .avsp-product-card>.avsp-product-cover>img.avsp-cover-image {
  display:block;
  object-fit:contain!important;
  padding:4px;
}
body.home.av-superprof-v2 .avsp-card-grid .avsp-product-card .avsp-cover-fallback .avsp-icon-large {
  position:static!important;
  width:100%;height:100%;
  transform:none!important;
  filter:none!important;
}
body.home.av-superprof-v2 .avsp-card-grid .avsp-product-card .avsp-cover-fallback .avsp-icon-large img {
  width:100%!important;
  max-width:58px!important;
  max-height:58px!important;
  height:auto!important;
  object-fit:contain!important;
  border-radius:9px!important;
  filter:none!important;
}
body.home.av-superprof-v2 .avsp-card-grid .avsp-product-card .avsp-icon-large .av-icon {
  width:56px!important;height:56px!important;
  border-radius:11px!important;
}
body.home.av-superprof-v2 .avsp-card-grid .avsp-product-card .avsp-cover-dots {display:none!important;}
body.home.av-superprof-v2 .avsp-card-grid .avsp-product-card>.avsp-product-cover>.avsp-cover-overlay {
  position:static!important;
  inset:auto!important;
  grid-column:2;
  grid-row:1;
  display:flex!important;
  flex-direction:column;
  gap:5px;
  width:auto;
  min-width:0;
  padding:0!important;
  background:transparent!important;
  box-shadow:none!important;
  color:#17202d!important;
  text-shadow:none!important;
  pointer-events:auto;
}
body.home.av-superprof-v2 .avsp-card-grid .avsp-product-card .avsp-cover-overlay strong {
  color:#17202d!important;
  font-size:15px!important;
  font-weight:600!important;
  line-height:1.35!important;
  letter-spacing:-.025em!important;
  text-shadow:none!important;
  overflow-wrap:anywhere;
}
body.home.av-superprof-v2 .avsp-card-grid .avsp-product-card .avsp-cover-overlay small {
  color:#69717e!important;
  font-size:11px!important;
  line-height:1.45!important;
  text-shadow:none!important;
  opacity:1!important;
}
/* Rating, description, platform, pricing and actions remain beneath the heading,
 * aligned with the title, never below a giant thumbnail. */
body.home.av-superprof-v2 .avsp-card-grid .avsp-product-card>.avsp-product-content {
  grid-column:2;
  grid-row:2;
  min-width:0;
  width:100%;
  padding:7px 0 0!important;
  margin:0;
}
body.home.av-superprof-v2 .avsp-card-grid .avsp-product-card .avsp-card-heading {
  min-height:0;
  font-size:11.5px;
  line-height:1.48;
  margin:6px 0 9px;
}
body.home.av-superprof-v2 .avsp-card-grid .avsp-product-card .avsp-card-meta {
  flex-wrap:wrap;
  gap:4px 8px;
  margin:0;
}
body.home.av-superprof-v2 .avsp-card-grid .avsp-product-card .avsp-type-label {
  padding:3px 6px;
  border-radius:6px;
  font-size:10px;
}
body.home.av-superprof-v2 .avsp-card-grid .avsp-product-card .avsp-rating {gap:4px;font-size:11px;}
body.home.av-superprof-v2 .avsp-card-grid .avsp-product-card .avsp-card-bottom {
  flex-wrap:wrap;
  gap:6px;
  border-top:1px solid #f0f1f3;
  margin-top:8px;
  padding-top:9px;
}
body.home.av-superprof-v2 .avsp-card-grid .avsp-product-card .avsp-card-price {font-size:11px;}
body.home.av-superprof-v2 .avsp-card-grid .avsp-product-card .avsp-vote {height:29px;padding:5px 8px;font-size:10px;}
/* Never force 1 item per row. Preserve all original 3-/4-column grids. */
@media(max-width:700px){
  body.home.av-superprof-v2 .avsp-card-grid .av-card-row.avsp-product-card {
    grid-template-columns:46px minmax(0,1fr);
    gap:0 9px;
    padding:10px!important;
    min-height:118px;
    border-radius:12px;
  }
  body.home.av-superprof-v2 .avsp-card-grid .avsp-product-card>.avsp-product-cover {
    grid-template-columns:46px minmax(0,1fr);
    column-gap:9px;min-height:46px;
  }
  body.home.av-superprof-v2 .avsp-card-grid .avsp-product-card>.avsp-product-cover>.avsp-cover-image,
  body.home.av-superprof-v2 .avsp-card-grid .avsp-product-card>.avsp-product-cover>.avsp-cover-fallback {
    width:46px!important;height:46px!important;max-width:46px;border-radius:9px!important;
  }
  body.home.av-superprof-v2 .avsp-card-grid .avsp-product-card .avsp-icon-large .av-icon {width:40px!important;height:40px!important;}
  body.home.av-superprof-v2 .avsp-card-grid .avsp-product-card .avsp-cover-fallback .avsp-icon-large img {max-width:40px!important;max-height:40px!important;}
  body.home.av-superprof-v2 .avsp-card-grid .avsp-product-card .avsp-cover-overlay strong {font-size:12.5px!important;line-height:1.35!important;}
  body.home.av-superprof-v2 .avsp-card-grid .avsp-product-card .avsp-cover-overlay small {font-size:10px!important;}
  body.home.av-superprof-v2 .avsp-card-grid .avsp-product-card .avsp-card-heading {font-size:10.5px;}
  body.home.av-superprof-v2 .avsp-card-grid .avsp-product-card .avsp-rating small {display:none;}
}
