.stores-view {
  direction: rtl;
  color: var(--text);
  background: var(--bg);
}
.stores-header {
  margin-bottom: 20px;
}
.stores-title {
  margin: 0 0 6px;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
}
.stores-subtitle {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.6;
}
.stores-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.store-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.store-card:hover {
  border-color: var(--brand);
}
.store-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
}
/* The avatar is a company logo tile (brand-icons.css); a connected store gets a brand ring. */
.store-card--connected .store-avatar {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}
.store-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.store-name {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
}
.store-details {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.9rem;
  color: var(--muted);
}
.store-link {
  color: var(--brand);
  font-weight: 600;
  text-decoration: none;
  word-break: break-word;
}
.store-link:hover {
  color: var(--brand-hover);
  text-decoration: underline;
}
.store-sync-status {
  margin: 0;
  color: var(--brand);
  font-size: 0.88rem;
  font-weight: 600;
}
.store-error {
  margin: 0;
  color: var(--danger, var(--danger));
  font-size: 0.88rem;
  line-height: 1.5;
}
.store-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}
.store-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}
.store-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.store-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
}
.store-help {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.5;
}
.store-link:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}
@media (max-width: 960px) {
  .stores-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .stores-grid {
    grid-template-columns: 1fr;
  }
}
@media (prefers-reduced-motion: reduce) {
  .store-card {
    transition: none;
  }
}
/* Space between «متجرك» and the website section below it. */
.stores-host-slot {
  margin-bottom: 18px;
}
/* Platforms waiting for the official partnership: one line, not a card each. */
.stores-soon {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px dashed var(--border);
  border-radius: 14px;
  color: var(--muted);
  font-size: 13.5px;
}
.stores-soon-title {
  color: var(--text);
}
.stores-soon-names {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.stores-soon-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 4px 3px 10px;
  border-radius: 999px;
  background: var(--accent-soft, var(--accent-soft));
  color: var(--accent-text, var(--accent-text));
  font-weight: 600;
}
.stores-soon-note {
  flex-basis: 100%;
}
