/* Cards only: the heading and the "Zobraziť všetky" button use the theme's .widget-title and .hm-viewall. */

.avw-widget { margin-bottom: 40px; }

/* .hm-viewall floats right, so the row has to clear it. */
.avw-widget .avw-row { clear: both; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.avw-widget .avw-card:nth-child(n+4) { display: none; }

.avw-widget .avw-card { display: block; text-decoration: none !important; color: #404040; background: #fff; box-shadow: none !important; border: 0 !important; }
.avw-widget .avw-thumb { position: relative; display: block; aspect-ratio: 3 / 2; overflow: hidden; background: #eee; }
.avw-widget .avw-thumb img { width: 100%; height: 100%; max-width: none; object-fit: cover; display: block; margin: 0; transition: transform .3s; }
.avw-widget .avw-badge { position: absolute; left: 12px; top: 12px; background: #2fb1ee; color: #fff; font: 700 10px/1 Inter, sans-serif; text-transform: uppercase; padding: 5px 8px; letter-spacing: .3px; }
.avw-widget .avw-body { display: block; padding: 12px 0 0; }
.avw-widget .avw-title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font: 600 16px/1.35 Inter, sans-serif; color: #404040; min-height: 43px; }
.avw-widget .avw-meta { display: block; margin-top: 6px; font: 400 13px/1.4 Inter, sans-serif; color: #8a8a8a; }
.avw-widget .avw-price { display: block; margin-top: 6px; font: 700 18px/1.2 Inter, sans-serif; color: #1a1a1a; }

/* Mouse only, so a tapped card on a touch screen does not stay highlighted. */
@media (hover: hover) {
  .avw-widget .avw-card:hover .avw-thumb img { transform: scale(1.04); }
  .avw-widget .avw-card:hover .avw-title { color: #2fb1ee; }
}

@media (max-width: 768px) {
  .avw-widget .avw-brand { display: none; }
  .avw-widget .avw-row { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px; margin-right: -25px; padding-right: 25px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .avw-widget .avw-row::-webkit-scrollbar { display: none; }
  .avw-widget .avw-card { flex: 0 0 76%; scroll-snap-align: start; }
  .avw-widget .avw-card:nth-child(n+4) { display: block; }
}
