/* ============================================================
   Populaire producten [apd_popular] — always 4 columns, also with fewer products.
   Card and token styles copied from ACF Smart Filter with apd- class names.
   ============================================================ */

.apd-popular__grid {
  list-style: none;
  margin: 0;
  padding: 0 !important;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
@media (max-width: 768px) {
  .apd-popular__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
  .apd-popular__grid { grid-template-columns: 1fr; }
}

/* Card */
.apd-popular__card {
  border: 1px solid #e4e4e4;
  border-radius: 0;
  overflow: hidden;
  background: #fff;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.apd-popular__card:hover {
  box-shadow: 0 4px 14px rgba(0,0,0,.08);
  transform: translateY(-2px);
}
.apd-card__link {
  display: block;
  text-decoration: none;
  color: inherit;
}
.apd-card__image img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
}
.apd-card__body { padding: 12px; }
.apd-card__title {
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 5px;
  line-height: 1.3;
}

/* Token output */
.apd-token-label {
  font-weight: 600;
  margin-right: 4px;
  color: #888;
  font-size: .9em;
}
.apd-token-value {
  color: #1a1a1a;
}
/* Inside a link (e.g. a field in the card title) the value takes the link colour */
a .apd-token-value {
  color: inherit;
}
.apd-card__img {
  width: 100%;
  height: auto;
  display: block;
}
.apd-card__title-link {
  text-decoration: none;
  color: inherit;
}
.apd-card__title-link:hover {
  text-decoration: underline;
}

/* SKU image gallery ({sku_images:...} token) */
.apd-sku-images {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.apd-sku-images .apd-sku-img {
  flex: 1 1 auto;
  min-width: 0;
  object-fit: cover;
}
