/* ------------ Product Card typography & layout ------------ */

.product-header-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
  flex-wrap: wrap; /* helps on small screens */
}

.product-brand {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}

.product-brand-generic {
  opacity: 0.85;
}

.product-header-left {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.product-rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.1rem;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.35);
  font-size: 0.75rem;
  font-weight: 600;
  color: #ffffff;
}

.product-score-tag {
  font-size: 0.78rem;
  font-weight: 500;
  border-radius: 999px;
  padding-inline: 0.8rem;
  white-space: nowrap;
}

.product-accessory-tag {
  font-size: 0.72rem;
  border-radius: 999px;
  white-space: nowrap;
}

/* Brand line under the title */
.product-brand-line {
  margin-top: 0.1rem;
  margin-bottom: 0.25rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.product-brand-name {
  font-weight: 500;
}


.product-title {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 0.35rem;
  color: #ffffff;
}

/* Multi-line clamp for very long titles */
.product-title {
  display: -webkit-box;
  -webkit-line-clamp: 2; /* Chrome, Safari */
  line-clamp: 2;         /* Not supported, but silences linter */
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-meta-line {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  align-items: center;
}

.product-price {
  font-weight: 600;
  color: #ffffff;
}

.product-dot {
  opacity: 0.6;
}

.product-capacity,
.product-year {
  color: var(--text-muted);
}

.product-prime-tag {
  margin-left: 0.4rem;
}

.product-summary {
  margin-top: 0.45rem;
  font-size: 0.9rem;
  color: var(--text-main);
}

.product-cta {
  min-width: 150px;
}

/* ------------ Product result cards ------------ */

.product-card {
  position: relative;
  padding: 1.4rem 1.6rem;
  border-radius: 1.25rem;
  margin: 1.4rem 0;
  overflow: hidden;  /* ensure children (image) never bleed out */

  /* Inner background matches hero/search panel */
  background-image:
    var(--panel-gradient),
    linear-gradient(135deg, var(--neon-blue), var(--neon-purple), var(--neon-pink));
  background-origin: border-box;
  background-clip: padding-box, border-box;

  box-shadow:
    0 0 6px rgba(0, 234, 255, 0.35),
    0 0 15px rgba(255, 0, 204, 0.3);

  transition:
    transform 0.16s ease-out,
    box-shadow 0.16s ease-out,
    background 0.16s ease-out;
}

.product-card .title {
  color: #ffffff;
}

.product-meta {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.product-summary {
  margin-top: 0.4rem;
  color: var(--text-main);
}

/* Image column: square container that clips inside the card */
.product-card .image {
  width: 96px;
  height: 96px;
  border-radius: 1rem;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #05050a;
}

/* Keep the image contained inside that square */
.product-card .image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 0.8rem;
}

.product-pill-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.product-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.1rem;                /* same as .product-rank */
  padding: 0.15rem 0.6rem;          /* same as .product-rank */
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.35);  /* same as .product-rank */
  font-size: 0.75rem;               /* same as .product-rank */
  font-weight: 600;
  color: #ffffff;
}

@media (max-width: 768px) {
  .product-header-line {
    align-items: flex-start;
    gap: 0.35rem;
  }

  .product-pill {
    font-size: 0.7rem;
    padding: 0.12rem 0.5rem;
  }
}

/* CTA button styling remains the same */
.product-card .button.is-link {
  border-radius: 999px;
  background: linear-gradient(135deg, var(--neon-blue), var(--neon-green));
  border: none;
  color: #020308;
  font-weight: 600;
  box-shadow: 0 0 16px rgba(0, 255, 198, 0.55);
}
 
.product-card .button.is-link:hover {
  box-shadow: 0 0 24px rgba(0, 255, 198, 0.8);
}
