/* Grid responsivo de produtos */
.store-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
}

@media (min-width: 581px) and (max-width: 860px) {
  .store-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }
}

@media (min-width: 861px) and (max-width: 1199px) {
  .store-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
  }
}

@media (min-width: 1200px) {
  .store-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
  }
}

.store-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-width: 0;
  border-radius: 14px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  text-decoration: none;
  position: relative;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.store-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

.store-card__photo {
  position: relative;
  width: 100%;
  aspect-ratio: 1.15;
  background: #f1f5f9;
  overflow: hidden;
  display: block;
  font-size: 0;
  color: transparent;
  line-height: 0;
  user-select: none;
}

.store-card__photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  font-size: 0;
}

/* Fallback visual neutro e intencional para itens sem foto */
.store-card__photo--empty {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: linear-gradient(145deg, #f8fafc 0%, #f1f5f9 100%) !important;
  border-bottom: 1px solid rgba(226, 232, 240, 0.6);
  user-select: none;
}

.store-card__empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 100%;
  color: #94a3b8;
  pointer-events: none;
}

.store-card__empty-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(226, 232, 240, 0.7);
  color: #64748b;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.store-card:hover .store-card__empty-icon-wrap {
  transform: scale(1.06);
  background: rgba(203, 213, 225, 0.85);
  color: #475569;
}

.store-card__empty-icon {
  width: 22px;
  height: 22px;
}

.store-card__empty-text {
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: #94a3b8;
  line-height: 1;
}


.store-card__badge {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.94);
  color: #334155;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
  box-shadow: 0 1px 4px rgba(13, 27, 61, 0.1);
  pointer-events: none;
}

.store-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 12px;
  min-width: 0;
}

.store-card__body h3 {
  margin: 0;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.35;
  color: #0f172a;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
  min-height: 36px;
}

.store-card__body p {
  margin: 4px 0 0;
  font-size: 11.5px;
  color: #64748b;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
  min-height: 32px;
}

.store-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-top: 10px;
}

.store-price {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--brand-price, var(--store-price, var(--loja-price, #16a34a)));
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.store-add {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 28px;
  min-width: 46px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--brand-primary, var(--loja-primary, #16a34a));
  color: var(--brand-primary-text, var(--loja-on-primary, #ffffff));
  font-size: 11px;
  font-weight: 700;
  border: 1.5px solid var(--brand-primary-border, transparent);
  flex-shrink: 0;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}

.store-add:hover {
  background: var(--brand-primary-hover, var(--store-primary-hover, #15803d));
  color: var(--brand-primary-text, var(--loja-on-primary, #ffffff));
  border-color: var(--brand-primary-border, transparent);
}

.store-add:active {
  background: var(--brand-primary-active, var(--store-primary-active, #166534));
  transform: scale(0.96);
}

.store-add:focus-visible {
  outline: 2px solid var(--brand-primary-border, currentColor);
  outline-offset: 2px;
}

@media (max-width: 440px) {
  .store-card__body {
    padding: 10px;
  }
  .store-card__body h3 {
    font-size: 12.5px;
    min-height: 34px;
  }
  .store-card__body p {
    font-size: 10.5px;
    min-height: 30px;
  }
  .store-price {
    font-size: 12.5px;
  }
  .store-add {
    min-width: 40px;
    height: 26px;
    padding: 0 8px;
    font-size: 10px;
  }
}
