/* Ready-made products: category tiles, product cards, empty state. */

.tile-link {
  position: relative;
  overflow: hidden;
  justify-content: flex-end;
  min-height: 260px;
  padding: 0;
  transition: border-color .2s ease, transform .2s ease;
}
.tile-link:hover { border-color: var(--accent); transform: translateY(-2px); }
.tile-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.tile__ph { position: absolute; inset: 0; background-color: var(--surface); }

.tile__body {
  position: relative;
  z-index: 2;
  display: block;
  padding: var(--space-md);
  background: linear-gradient(to top, rgba(13,13,13,0.94) 18%, rgba(13,13,13,0.6) 62%, transparent);
}
.tile__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.4rem, 2.1vw, 1.85rem);
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin-bottom: 6px;
  color: var(--ink);
}
.tile__desc {
  display: block;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
  max-width: 44ch;
}
.tile__meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent);
}
.tile__meta::after {
  content: "";
  width: 6px;
  height: 6px;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform .18s ease;
}
.tile-link:hover .tile__meta::after { transform: rotate(45deg) translate(2px, -2px); }

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--space-md);
}
.product {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color .2s ease;
}
.product:hover { border-color: var(--panel); }
.product__media { position: relative; aspect-ratio: 4 / 5; background: var(--panel); }
.product__media img { width: 100%; height: 100%; object-fit: cover; }
.product__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: var(--space-md);
  flex: 1;
}
.product__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.product__desc { color: var(--muted); font-size: 0.94rem; margin: 0; }
.product__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  margin-top: auto;
  padding-top: var(--space-sm);
}
.product__price {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--ink);
}
.product__foot .btn { padding: 12px 18px; font-size: 0.9rem; }

.empty {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: var(--space-xl);
  align-items: center;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  background: var(--surface);
  padding: var(--space-lg);
}
.empty__art svg { width: 100%; height: auto; }
.empty__body h2 { margin-bottom: var(--space-sm); }
.empty__body p { color: var(--muted); margin-bottom: var(--space-md); }

@media (max-width: 900px) {
  .empty { grid-template-columns: 1fr; gap: var(--space-lg); }
  .empty__art { max-width: 240px; }
}
@media (max-width: 760px) {
  .tile-link { min-height: 220px; }
  .product-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
  .empty { padding: var(--space-md); }
}
