:root {
  --green: #00b860;
  --green-dark: #009e52;
  --green-tint: #f0fdf4;
  --purple: #70198a;
  --purple-tint: #faf5ff;
  --bg: #f5f5f7;
  --card: #ffffff;
  --card-soft: rgba(255, 255, 255, 0.5);
  --text: #1a1a1a;
  --text-muted: #6b7280;
  --border: #e5e7eb;
  --muted: #f0f1f3;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a { text-decoration: none; color: inherit; }

.container {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.text-primary {
  color: var(--green);
  position: relative;
}
.text-primary::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 3px;
  background: var(--purple);
  border-radius: 9999px;
  opacity: 0.4;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  border-radius: 9999px;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
}
.btn-primary {
  background: var(--green);
  color: #fff;
}
.btn-primary:hover {
  background: var(--green-dark);
  box-shadow: 0 4px 12px rgba(0, 184, 96, 0.3);
}
.btn-white {
  background: #fff;
  color: var(--green);
}
.btn-white:hover { background: #f0fdf4; }
.btn-sm { padding: 0.55rem 1.1rem; font-size: 0.85rem; }
.btn-lg { padding: 0.85rem 2rem; font-size: 1rem; }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245, 245, 247, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  padding-bottom: 1rem;
}
.logo {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--green);
  letter-spacing: -0.5px;
}

/* ===== Hero ===== */
.hero-section {
  padding: 4rem 0 2.5rem;
}
.hero-content {
  max-width: 48rem;
  margin: 0 auto;
  text-align: center;
}
.hero-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.75rem;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 1rem;
  line-height: 1.2;
}
.hero-subtitle {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 32rem;
  margin: 0 auto 2.5rem;
  line-height: 1.6;
}
.search-bar {
  position: relative;
  max-width: 30rem;
  margin: 0 auto;
}
.search-glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0, 184, 96, 0.2), rgba(112, 25, 138, 0.2));
  border-radius: 9999px;
  filter: blur(12px);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.search-bar:focus-within .search-glow { opacity: 1; }
.search-container {
  position: relative;
  display: flex;
  align-items: center;
}
.search-icon {
  position: absolute;
  left: 1.25rem;
  width: 1.25rem;
  height: 1.25rem;
  color: var(--text-muted);
  transition: color 0.3s ease;
  pointer-events: none;
  z-index: 1;
}
.search-bar:focus-within .search-icon { color: var(--green); }
.search-input {
  position: relative;
  width: 100%;
  padding: 1rem 4rem 1rem 3.5rem;
  font-size: 1.125rem;
  font-family: 'Inter', sans-serif;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  border-radius: 9999px;
  outline: none;
  transition: border-color 0.3s ease;
  color: var(--text);
}
.search-bar:focus-within .search-input {
  border-color: rgba(0, 184, 96, 0.5);
}
.search-input::placeholder { color: var(--text-muted); }
.search-button {
  position: absolute;
  right: 0.5rem;
  width: 2.75rem;
  height: 2.75rem;
  background: var(--green);
  border: none;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s ease;
  z-index: 1;
}
.search-button:hover { transform: scale(1.05); }
.arrow-icon {
  width: 1.25rem;
  height: 1.25rem;
  color: white;
}
.spinner {
  width: 1.25rem;
  height: 1.25rem;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 9999px;
  animation: dir-spin 0.6s linear infinite;
}
@keyframes dir-spin {
  to { transform: rotate(360deg); }
}
.hero-stats {
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.hero-stats strong { color: var(--text); font-weight: 700; }
.stat-dot { margin: 0 0.5rem; }

/* ===== Categories ===== */
.filter-section {
  padding: 0.5rem 0 1rem;
}
.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}
.chip {
  padding: 0.5rem 1rem;
  background: var(--muted);
  border: 1px solid var(--border);
  border-radius: 9999px;
  font-size: 0.875rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: 'Inter', sans-serif;
}
.chip:hover {
  background: rgba(0, 184, 96, 0.1);
  color: var(--green);
  border-color: rgba(0, 184, 96, 0.3);
}
.chip-active {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}
.chip-active:hover {
  color: #fff;
  background: var(--green-dark);
}

/* ===== Store Cards ===== */
.stores-section {
  padding: 2rem 0 4rem;
}
.stores-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 1.5rem;
}
.store-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: var(--card-soft);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  padding: 1.25rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.store-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.08);
}
.store-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
}
.store-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.store-letter {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.3rem;
  font-weight: 800;
  color: #fff;
}
.store-info {
  flex: 1;
  min-width: 0;
}
.store-name {
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}
.store-desc {
  font-size: 0.84rem;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.store-tags {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
}
.tag {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.22rem 0.6rem;
  background: var(--green-tint);
  color: var(--green-dark);
  border-radius: 9999px;
}
.tag-accent {
  background: var(--purple-tint);
  color: var(--purple);
}
.store-product-count {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 0.22rem 0;
}
.store-sold-out {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.22rem 0.6rem;
  background: #fef2f2;
  color: #dc2626;
  border-radius: 9999px;
}

/* ===== Empty State ===== */
.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ===== CTA Section ===== */
.cta-section {
  padding: 1rem 0 4rem;
}
.cta-card {
  background: var(--green);
  border-radius: 1.5rem;
  padding: 4rem 2rem;
  text-align: center;
}
.cta-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 1rem;
  letter-spacing: -0.5px;
}
.cta-subtitle {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 2rem;
  max-width: 28rem;
  margin-left: auto;
  margin-right: auto;
}

/* ===== Footer ===== */
.site-footer {
  border-top: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(8px);
  padding: 3rem 0 2rem;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}
.footer-brand p {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-top: 0.5rem;
  max-width: 18rem;
}
.footer-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.footer-links a {
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--green); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  text-align: center;
}
.footer-bottom p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ===== Mobile ===== */
@media (max-width: 768px) {
  .logo { font-size: 1.1rem; }
  .btn-sm { padding: 0.45rem 0.85rem; font-size: 0.75rem; }
  .header-inner { padding-top: 1rem; padding-bottom: 1rem; }
  .hero-title { font-size: 1.85rem; }
  .hero-subtitle { font-size: 0.95rem; }
  .stores-grid { grid-template-columns: 1fr; }
  .cta-title { font-size: 1.4rem; }
  .cta-card { padding: 2.5rem 1.5rem; }
  .footer-top { flex-direction: column; }
}

@media (max-width: 480px) {
  .container { padding: 0 1rem; }
  .logo { font-size: 1rem; letter-spacing: -0.3px; }
  .btn-sm { padding: 0.4rem 0.75rem; font-size: 0.7rem; }
  .header-inner { padding-top: 0.85rem; padding-bottom: 0.85rem; }
  .hero-title { font-size: 1.5rem; }
  .hero-section { padding: 2.5rem 0 1.5rem; }
  .search-input { font-size: 0.9rem; padding: 0.85rem 1.25rem 0.85rem 2.75rem; }
  .store-card { padding: 1rem; }
  .store-avatar { width: 44px; height: 44px; }
  .store-letter { font-size: 1.1rem; }
  .stores-grid { gap: 1rem; }
}
