/* v2.0.5 — refine latest products section, simpler and cleaner */
.vlg-latest-showcase {
  overflow: visible !important;
  padding: 18px 18px 22px !important;
  border-radius: 20px !important;
  border: 1px solid #dfe6ee !important;
  background: linear-gradient(180deg, #fffdfa 0%, #ffffff 100%) !important;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .05) !important;
}

.vlg-latest-showcase::before {
  height: 3px !important;
  opacity: .9 !important;
}

.vlg-latest-showcase .vlg-section-head {
  display: flex !important;
  justify-content: space-between !important;
  align-items: flex-start !important;
  gap: 14px !important;
  margin-bottom: 14px !important;
}

.vlg-latest-showcase .vlg-section-head h2 {
  margin: 8px 0 0 !important;
  font-size: clamp(22px, 1.8vw, 30px) !important;
  line-height: 1.08 !important;
}

.vlg-latest-showcase .vlg-section-head p {
  margin: 8px 0 0 !important;
  max-width: 56ch !important;
  font-size: 14px !important;
  line-height: 1.55 !important;
}

.vlg-latest-showcase .vlg-section-head > a {
  min-height: 40px !important;
  padding: 0 15px !important;
  border-radius: 999px !important;
  font-size: 12px !important;
  font-weight: 900 !important;
}

.vlg-latest-showcase .vlg-kicker {
  padding: 5px 9px !important;
  font-size: 10px !important;
}

.vlg-latest-showcase__grid,
.vlg-latest-showcase .vlg-products-grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 16px !important;
  align-items: stretch !important;
  margin-top: 0 !important;
}

.vlg-latest-showcase .vlg-product-card {
  height: auto !important;
  min-height: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  border-radius: 16px !important;
  overflow: hidden !important;
}

.vlg-latest-showcase .vlg-product-card .vlg-product-link {
  display: flex !important;
  flex-direction: column !important;
  height: auto !important;
}

.vlg-latest-showcase .vlg-product-card .vlg-card-image-wrap img {
  max-height: 158px !important;
}

.vlg-latest-showcase .vlg-product-card .vlg-card-content {
  flex: 1 1 auto !important;
  gap: 8px !important;
}

.vlg-latest-showcase .vlg-product-card h2 {
  min-height: 2.7em !important;
  font-size: 14px !important;
}

.vlg-latest-showcase .vlg-product-card .vlg-card-actions {
  margin-top: auto !important;
  padding: 0 12px 12px !important;
}

.vlg-latest-showcase .vlg-product-card .vlg-card-actions .button,
.vlg-latest-showcase .vlg-product-card .vlg-card-actions .vlg-card-cart {
  min-height: 40px !important;
  font-size: 12px !important;
}

.vlg-home .vlg-section + .vlg-section {
  margin-top: 24px !important;
}

@media (max-width: 1240px) {
  .vlg-latest-showcase__grid,
  .vlg-latest-showcase .vlg-products-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 900px) {
  .vlg-latest-showcase {
    padding: 16px 16px 20px !important;
  }

  .vlg-latest-showcase .vlg-section-head {
    flex-direction: column !important;
    align-items: flex-start !important;
  }

  .vlg-latest-showcase__grid,
  .vlg-latest-showcase .vlg-products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 620px) {
  .vlg-latest-showcase {
    padding: 14px 14px 18px !important;
    border-radius: 16px !important;
  }

  .vlg-latest-showcase__grid,
  .vlg-latest-showcase .vlg-products-grid {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }

  .vlg-latest-showcase .vlg-section-head h2 {
    font-size: 24px !important;
  }
}
