/* Global styles for the .bt-product-card* family used by JS-rendered
   pages (/sets, /brands/[brand]). These rules apply to DOM that is
   built at runtime in src/lib/sets-ui.ts and src/lib/brand-ui.ts,
   so they MUST be global (not Astro component-scoped). */

.bt-product-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  border: var(--bt-border-width) solid var(--bt-border);
  background: var(--bt-card-bg, var(--bt-bg));
  font-family: var(--bt-font-ui);
  overflow: hidden;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.bt-product-card:hover {
  transform: translateY(-1px);
}

.bt-product-card__image {
  width: 100%;
  height: 280px;
  min-height: 0;
  flex: 0 0 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: var(--bt-border-width) solid var(--bt-border);
  background: #fff;
  overflow: hidden;
}

.bt-product-card__image img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
  padding: var(--bt-space-sm);
  display: block;
}

.bt-product-card__placeholder {
  width: 100%;
  height: 100%;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bt-muted);
  font-size: var(--bt-text-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.bt-product-card__info {
  padding: var(--bt-space-md);
  display: flex;
  flex-direction: column;
  gap: var(--bt-space-xs);
  min-height: 96px;
  min-width: 0;
}

.bt-product-card__meta {
  font-family: var(--bt-font-ui);
  font-size: var(--bt-text-sm);
  color: var(--bt-muted);
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bt-product-card__name {
  font-family: var(--bt-font-ui);
  font-size: var(--bt-text-lg);
  font-weight: 800;
  color: var(--bt-text);
  margin: 0;
  line-height: 1.25;
  text-transform: uppercase;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.bt-product-card__pricing {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: var(--bt-space-md);
  border-top: var(--bt-border-width) solid var(--bt-border);
  gap: var(--bt-space-xs);
  min-height: 104px;
  margin-top: auto;
  min-width: 0;
}

.bt-product-card__price {
  font-family: var(--bt-font-ui);
  font-size: var(--bt-text-xl);
  font-weight: 800;
  color: var(--bt-text);
  line-height: 1;
}

.bt-product-card__no-price {
  font-family: var(--bt-font-ui);
  font-size: var(--bt-text-sm);
  color: var(--bt-muted);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.bt-product-card__cta {
  border-top: var(--bt-border-width) solid var(--bt-border);
  padding: var(--bt-space-sm) var(--bt-space-md);
  display: flex;
  justify-content: flex-end;
  font-family: var(--bt-font-ui);
  font-size: var(--bt-text-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--bt-text);
  background: var(--bt-bg);
}

@media (max-width: 767px) {
  .bt-product-card__image {
    height: 240px;
    flex-basis: 240px;
  }
}

@media (max-width: 360px) {
  .bt-product-card__image {
    height: 210px;
    flex-basis: 210px;
  }
}
