/* AntoHub listing grid. Loaded after Epsilon so the parent theme can be updated in place. */

body .products.grid:not(.nice-scroll) .simple-prod.ah-card .simple-wrap {
  background: var(--ah-card, #fff);
  border: 1px solid var(--ah-card-border, rgba(0, 0, 0, 0.08));
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
  height: 100%;
  box-sizing: border-box;
}

body .products.grid:not(.nice-scroll) .simple-prod.ah-card .img-wrap,
body .products.grid:not(.nice-scroll) .simple-prod.ah-card.tall .img-wrap,
body .products.grid:not(.nice-scroll) .simple-prod.ah-card.medium .img-wrap,
body .products.grid:not(.nice-scroll) .simple-prod.ah-card.normal .img-wrap {
  padding-top: 72%;
}

body .products.grid:not(.nice-scroll) .simple-prod.ah-card .img-wrap .bar {
  background: none;
  padding: 0;
}

body .products.grid:not(.nice-scroll) .simple-prod.ah-card .img-wrap .bar .price {
  display: none;
}

body .products.grid:not(.nice-scroll) .simple-prod.ah-card .img-wrap .bar .image-counter {
  right: 8px;
  bottom: 8px;
  background: rgba(0, 0, 0, 0.62);
  color: #fff;
  border-radius: 4px;
  padding: 3px 6px;
}

body .products.grid:not(.nice-scroll) .simple-prod.ah-card .data {
  display: flex;
  flex-direction: column;
  padding: 12px 4px 8px;
}

body .products.grid:not(.nice-scroll) .simple-prod.ah-card .title {
  order: 1;
  color: var(--ah-title, #171717);
  font-size: 16px;
  line-height: 21px;
  max-height: 42px;
  min-height: 0;
  margin: 0 0 6px;
}

body .products.grid:not(.nice-scroll) .simple-prod.ah-card .ah-price {
  display: block;
  order: 2;
  float: none;
  color: var(--ah-price, #0e6d69);
  font-size: 18px;
  font-weight: 700;
  line-height: 22px;
  margin: 0 0 8px;
}

body .products.grid:not(.nice-scroll) .simple-prod.ah-card .description {
  display: -webkit-box;
  order: 3;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  max-height: none;
  color: var(--ah-muted, #555);
  margin: 0 0 8px;
}

body .products.grid:not(.nice-scroll) .simple-prod.ah-card .info {
  order: 4;
  color: var(--ah-muted, #555);
  margin: 0 0 6px;
}

body .products.grid:not(.nice-scroll) .simple-prod.ah-card .extra {
  display: block;
  order: 5;
  max-height: none;
  color: var(--ah-muted, #555);
}

body #latest-items .simple-prod.ah-card .title,
body #recent-ads .simple-prod.ah-card .title,
body #search-items #recent-ads .simple-prod.ah-card .title {
  max-height: 42px;
  min-height: 0;
  margin: 0 0 6px;
  font-size: 16px;
  line-height: 21px;
}

body #latest-items .simple-prod.ah-card .extra,
body #recent-ads .simple-prod.ah-card .extra {
  display: block;
}

@media screen and (min-width: 1081px) {
  body #search-items .products.grid:not(.nice-scroll) .simple-prod.ah-card,
  body #latest-items.products.grid .simple-prod.ah-card,
  body #recent-ads .products.grid:not(.nice-scroll) .simple-prod.ah-card,
  body #search-items #recent-ads .products .simple-prod.ah-card,
  body .products.grid:not(.nice-scroll) .simple-prod.ah-card {
    width: calc(33.333% - 16px);
    max-width: none;
    margin: 0 8px 16px;
  }
}

@media screen and (min-width: 768px) and (max-width: 1080px) {
  body #search-items .products.grid:not(.nice-scroll) .simple-prod.ah-card,
  body #latest-items.products.grid .simple-prod.ah-card,
  body #recent-ads .products.grid:not(.nice-scroll) .simple-prod.ah-card,
  body #search-items #recent-ads .products .simple-prod.ah-card,
  body .products.grid:not(.nice-scroll) .simple-prod.ah-card {
    width: calc(50% - 16px);
    max-width: none;
    margin: 0 8px 16px;
  }
}

@media screen and (max-width: 767px) {
  body #search-items .products.grid:not(.nice-scroll) .simple-prod.ah-card,
  body #latest-items.products.grid .simple-prod.ah-card,
  body #recent-ads .products.grid:not(.nice-scroll) .simple-prod.ah-card,
  body #search-items #recent-ads .products .simple-prod.ah-card,
  body .products.grid:not(.nice-scroll) .simple-prod.ah-card {
    width: calc(100% - 16px);
    max-width: none;
    margin: 0 8px 16px;
  }
}
