.grid-stores {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); /* slightly wider for meta data */
  gap: var(--space-lg);
  margin-block-end: 3rem;
}

.card-store {
  position: relative;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.card-store:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-primary);
}

/* Overlay Link Trick */
.card-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
}

/* Banner/Cover */
.store-banner {
  height: 150px;
  background-color: var(--color-bg);
  position: relative;
}

.banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.banner-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  opacity: 0.15;
}

/* Body container */
.store-card-body {
  padding: var(--space-md);
  padding-top: 0; /* pulls logo up */
  display: flex;
  flex-direction: column;
  flex: 1;
  position: relative;
}

/* Centered Overlapping Logo */
.store-brand-mark {
  width: 70px;
  height: 70px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  margin: -35px auto 0.5rem auto; /* Shifts overlap */
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2; /* Sits over the banner overlay */
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0.25rem;
}

.logo-placeholder {
  font-size: 1.75rem;
  color: var(--color-text-muted);
}

/* Typography Title area */
.store-identity {
  text-align: center;
  margin-bottom: 0.5rem;
}

.store-identity h4 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 0.25rem;
}

/* Ratings line */
.store-rating-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
}

.stars-track {
  color: #fbbf24;
}

.rating-digits {
  color: var(--color-text-muted);
}

.no-rating {
  color: var(--color-text-muted);
  font-size: 0.8rem;
  font-style: italic;
}

/* Metadata pills and Location */
.store-metadata {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-sm);
  margin-bottom: 0.75rem;
  font-size: 0.8rem;
}

.meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--color-text-muted);
  background: var(--color-bg);
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
}

.meta-link {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 600;
  position: relative;
  z-index: 2; /* Sits above standard card-click overlay */
  cursor: pointer;
}

.meta-link:hover {
  background-color: var(--color-primary);
  color: var(--color-surface);
}

/* Excerpt trimming description */
.store-excerpt {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  text-align: center;
  margin-top: auto; /* Pushes bottom constraints symmetrically */
  line-height: 1.5;
}
