/* Homepage product visuals: scalable SVG icons with category-specific accents. */
.home-product-grid { gap: 26px; }

.home-product-card {
  --card-accent: #2db89a;
  --card-accent-rgb: 45, 184, 154;
  border-color: #dfe7ee;
  box-shadow: 0 12px 34px rgba(16, 42, 72, .09);
}

.home-product-card:hover {
  border-color: rgba(var(--card-accent-rgb), .48);
  box-shadow: 0 22px 50px rgba(16, 42, 72, .16);
}

.home-card-visual {
  min-height: 154px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 84% 14%, rgba(var(--card-accent-rgb), .22), transparent 34%),
    linear-gradient(145deg, #173657 0%, #102843 100%);
  border-bottom: 4px solid var(--card-accent);
}

.home-card-visual::before,
.home-card-visual::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(255, 255, 255, .10);
  border-radius: 50%;
}

.home-card-visual::before { width: 150px; height: 150px; right: -52px; top: -78px; }
.home-card-visual::after { width: 72px; height: 72px; left: 22px; bottom: -48px; }

.home-card-label,
.home-card-code {
  position: absolute;
  z-index: 2;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.3px;
  text-transform: uppercase;
}

.home-card-label { top: 15px; left: 18px; color: rgba(255, 255, 255, .62); }
.home-card-code {
  right: 15px;
  bottom: 12px;
  padding: 4px 9px;
  border-radius: 999px;
  color: #fff;
  background: rgba(var(--card-accent-rgb), .24);
  border: 1px solid rgba(var(--card-accent-rgb), .58);
}

.home-card-icon {
  width: 82px;
  height: 82px;
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 22px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, .16), inset 0 1px rgba(255, 255, 255, .10);
  transform: translateY(3px);
  transition: transform .3s ease, background .3s ease;
}

.home-card-icon svg {
  width: 54px;
  height: 54px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.home-product-card:hover .home-card-icon {
  transform: translateY(-2px) scale(1.035);
  background: rgba(var(--card-accent-rgb), .22);
}

.home-card-visual--photo { background: linear-gradient(145deg, #f8fbfd 0%, #eaf2f4 100%); }
.home-card-visual--photo::before,
.home-card-visual--photo::after { border-color: rgba(var(--card-accent-rgb), .14); }
.home-card-visual--photo .home-card-label { color: #68798a; }
.home-card-visual--photo img {
  position: relative;
  z-index: 1;
  width: auto;
  max-width: 88%;
  height: 122px;
  object-fit: contain;
  filter: drop-shadow(0 12px 12px rgba(16, 42, 72, .18));
  transition: transform .3s ease;
}
.home-product-card:hover .home-card-visual--photo img { transform: translateY(-3px) scale(1.025); }

.home-product-card .card-body { padding: 26px 27px 28px; }
.home-product-card .en,
.home-product-card .card-link { color: var(--card-accent); }

.home-product-card--gstek { --card-accent: #d56b2d; --card-accent-rgb: 213, 107, 45; }
.home-product-card--cad { --card-accent: #27bea0; --card-accent-rgb: 39, 190, 160; }
.home-product-card--lims { --card-accent: #4e8ee8; --card-accent-rgb: 78, 142, 232; }
.home-product-card--prep { --card-accent: #8c75e6; --card-accent-rgb: 140, 117, 230; }
.home-product-card--used { --card-accent: #e3973e; --card-accent-rgb: 227, 151, 62; }
.home-product-card--rental { --card-accent: #3bb7d1; --card-accent-rgb: 59, 183, 209; }
@media (max-width: 760px) {
  .home-card-visual { min-height: 142px; }
  .home-card-icon { width: 74px; height: 74px; border-radius: 19px; }
  .home-card-icon svg { width: 48px; height: 48px; }
}

@media (prefers-reduced-motion: reduce) {
  .home-card-icon,
  .home-card-visual--photo img { transition: none; }
}
