/* ─── Page Stores ──────────────────────────────────────────────── */

.storesPageTitle {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.storesPageSubtitle {
  margin-bottom: 1.5rem;
}

/* Search */
.storesSearch {
  margin-bottom: 1.5rem;
}

.storesSearchRow {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.storesSearchInput {
  flex: 1;
  padding: 0.6rem 0.875rem;
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 8px;
  font-size: 0.95rem;
  background: var(--bg, #fff);
  color: var(--text, #1a202c);
  outline: none;
  transition: border-color 0.15s;
}

.storesSearchInput:focus {
  border-color: var(--primary, #3b82f6);
}

/* Chain filters */
.storesChainFilters {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.chainFilterBtn {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.3rem 0.75rem;
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 20px;
  background: transparent;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.15s;
  color: var(--text, #1a202c);
}

.chainFilterBtn img {
  height: 16px;
  width: auto;
}

.chainFilterBtn.active {
  background: var(--primary, #3b82f6);
  border-color: var(--primary, #3b82f6);
  color: #fff;
}

/* Count */
.storesCount {
  margin-bottom: 0.75rem;
}

/* Grid */
.storesGrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 0.75rem;
}

@media (max-width: 640px) {
  .storesGrid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.625rem;
  }

  .storeCard {
    padding: 0.875rem 0.5rem;
  }
}


.storeCard {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 14px;
  text-decoration: none;
  color: var(--text, #1a202c);
  transition: box-shadow 0.18s, transform 0.18s;
  background: rgba(255, 255, 255, 0.70);
}

.storeCard:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.10);
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.85);
}


.storeCardLogo {
  height: 44px;
  width: auto;
  max-width: 88px;
  object-fit: contain;
  margin-bottom: 0.625rem;
}

.storeCardLogoFallback {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary, #3b82f6);
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.625rem;
}

.storeCardName {
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 0.25rem;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
}

.storeCardAddress {
  font-size: 0.72rem;
  color: var(--muted, #718096);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
}

/* Loading / Empty */
.storesLoading,
.storesEmpty {
  padding: 2rem;
  color: var(--muted, #718096);
}

/* ─── Pagination stores (desktop + mobile) ──────────────────── */
.storesPager {
  display: none; /* JS bascule en flex quand totalPages > 1 */
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 1.25rem;
  padding-bottom: 0.5rem;
}

.storesPagerBtn {
  height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: rgba(255, 255, 255, 0.70);
  font-size: 0.82rem;
  cursor: pointer;
  color: var(--text, #1a202c);
  transition: background 0.15s;
}

.storesPagerBtn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.storesPagerInfo {
  font-size: 0.78rem;
  color: var(--muted, #718096);
  white-space: nowrap;
}
