/* products-tiles.css — shared tiles styles used outside archive */

.grid-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--grid-gap);
}

@media (max-width:980px) {
  .grid-cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width:680px) {
  .grid-cards { grid-template-columns: 1fr; }
}

.card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 16px;
  height: 100%;
  box-sizing: border-box;
  transition: box-shadow .2s ease, transform .2s ease;
}
.card:hover { box-shadow: 0 4px 12px rgba(0,0,0,.06); transform: translateY(-2px); }

.card .top {
  display: grid;
  grid-template-columns: 84px 1fr auto;
  gap: 14px;
  align-items: center;
}
.thumb {
  width: 84px; height: 84px; border-radius: 16px;
  object-fit: cover; border: 1px solid var(--line);
}
.card h3 { margin: 0; font-size: 18px; }

.kv { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.kv .pill { background: rgba(255,255,255,.7); border-radius: 999px; padding: 4px 10px; }

.card .cta {
  margin-top: auto; display: flex; justify-content: space-between;
  align-items: center; gap: 10px; padding-top: 12px;
}
.card .cta-buttons { display: flex; gap: 10px; flex-wrap: wrap; }
.card .cta .btn { padding: 10px 16px; font-size: 14px; border-radius: 999px; text-align: center; }
.card .cta .badge { margin-left: auto; font-weight: 600; white-space: nowrap; }

@media (max-width: 680px) {
  .card { padding:16px; }
  .card .cta { flex-direction: column; align-items: stretch; gap: 10px; }
  .card .cta-buttons {
    flex-direction: row;
    gap: 10px;
    /* Override inline grid styles on mobile for better stacking */
    grid-template-columns: 1fr !important;
  }
  .card .cta-buttons .btn { flex: 1; }
  .card .cta .badge { text-align:center; width:100%; margin-left:0; }
}

/* Additional mobile breakpoint for very small screens */
@media (max-width: 480px) {
  .card .cta-buttons {
    grid-template-columns: 1fr !important;
  }
}

/* small helper also used by compare/toggle */
.hidden { display:none !important; }
th .dir {
  font-family: system-ui, sans-serif;
  color: #6b7280; /* e.g., muted gray */
  font-size: 0.8em;
}
