:root {
  --bg: #fafafa;
  --card: #ffffff;
  --text: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --chip: #f3f4f6;
  --ok: #059669;
  --brand: #0a0a0a;
  --radius: 5px;
  --shadow: 0 4px 12px rgba(17,24,39,.05);
  --ring: 0 0 0 3px rgba(17,24,39,.08);
  --hover: rgba(17,24,39,.04);
  --danger: #dc2626;
  --warning: #d97706;
  --accent: #1d4ed8;
}


.page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px;
}

/* Header */
.header {
  display: flex;
  flex-direction: row;
  gap: 10px;
  margin-bottom: 24px;
  justify-content: space-between;
  align-items: center;
  
}

@media (min-width: 768px) {
  .header {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 20px;
  font-weight: 600;
  margin-top:-10px ;
}

.title .material-symbols-outlined {
  font-size: 24px;
}

/* Search and Filters */
.search-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

@media (min-width: 640px) {
  .search-container {
    flex-direction: row;
    align-items: center;
  }
}

.search {
  position: relative;
  flex: 1;
  max-width: 400px;
}

.search input {
  width: 100%;
  padding: 10px 16px 10px 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 14px;
  background: white;
  transition: all 0.2s;
}

.search input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: var(--ring);
}

.search .material-symbols-outlined {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
}

.filters {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.filter-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: var(--chip);
  border: 1px solid var(--line);
  border-radius: 20px;
  font-size: 13px;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-chip.active {
  background: var(--brand);
  color: white;
  border-color: var(--brand);
}

.filter-chip .material-symbols-outlined {
  font-size: 16px;
}

/* Grid Layout */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

@media (max-width: 640px) {
  .grid {
    grid-template-columns: 1fr;
  }
}

/* Shop Card */
.shop-card {
  background: white;
  border: 0px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
  overflow: hidden;
}

.shop-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.shop-header {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
}

.shop-logo {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid var(--line);
  background: #f8fafc;
}

.shop-info {
  flex: 1;
  min-width: 0;
}

.shop-name {
  font-weight: 600;
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  padding: 2px 6px;
  border-radius: 4px;
  background: #ecfdf5;
  color: var(--ok);
}

.verified-badge .material-symbols-outlined {
  font-size: 14px;
}

.shop-stats {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.stat-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  padding: 4px 8px;
  background: var(--chip);
  border-radius: 4px;
  color: var(--muted);
}

.stat-badge .material-symbols-outlined {
  font-size: 14px;
}

.top-badge {
  background: #fef2e6;
  color: var(--warning);
}

.fast-badge {
  background: #eff6ff;
  color: var(--accent);
}

/* Shop Actions */
.shop-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  justify-content: right;
}

.follow-btn, .chat-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  border: 1px solid var(--line);
  background: white;
  z-index: 2;
  position: relative;
  width: 100%;
}

.follow-btn:hover, .chat-btn:hover {
  background: var(--hover);
}

.follow-btn.following {
  background: var(--brand);
  color: white;
  border-color: var(--brand);
}

.follow-btn.following:hover {
  background: #000000;
  border-color: #000000;
}

.chat-btn {
  background: #f5f5f5;
  border: none;
}

.chat-btn:hover {
  background: #e5e5e5;
}

.follow-btn .material-symbols-outlined,
.chat-btn .material-symbols-outlined {
  font-size: 16px;
}

/* Button States */
.follow-btn.loading, .chat-btn.loading {
  opacity: 0.7;
  pointer-events: none;
}

.follow-btn.error, .chat-btn.error {
  background: #ffebee;
  border-color: #ef9a9a;
  color: var(--danger);
}

/* Empty State */
.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px 20px;
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: white;
}

/* Mobile specific styles */
@media (max-width: 640px) {
  .filter-chip.hide-on-mobile {
    display: none;
  }
  .shop-name {
    font-size: 14px;
  }
  .verified-badge {
    font-size: 11px;
  }
  .shop-actions {
    flex-direction: row;
  }
  .follow-btn, .chat-btn {
    width: 100%;
  }
}