:root {
  --pink: #e88fa6;
  --pink-dark: #c96b85;
  --ink: #2b2320;
  --muted: #7a7069;
  --bg: #fff8f6;
  --card-bg: #ffffff;
  --border: #f0e0e0;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--ink);
}

.site-header {
  text-align: center;
  padding: 2.5rem 1rem 1.5rem;
}

.site-header h1 {
  margin: 0;
  font-size: 2.2rem;
  letter-spacing: 0.02em;
}

.tagline {
  margin: 0.4rem 0 0;
  color: var(--muted);
}

main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem 3rem;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: flex-end;
  padding: 1rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 1.5rem;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.filter-group label {
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.filter-group select {
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: white;
  font-size: 0.95rem;
  min-width: 160px;
}

#clear-filters {
  padding: 0.55rem 1rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: white;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.9rem;
}

#clear-filters:hover {
  border-color: var(--pink);
  color: var(--pink-dark);
}

.status {
  min-height: 1.2rem;
  color: var(--muted);
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.25rem;
}

.product-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.product-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #f2eae8;
}

.product-card .card-body {
  padding: 0.9rem 1rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex: 1;
}

.product-card h3 {
  margin: 0;
  font-size: 1rem;
}

.product-meta {
  font-size: 0.78rem;
  color: var(--muted);
  text-transform: capitalize;
}

.product-price {
  font-weight: 700;
  font-size: 1.05rem;
  margin-top: auto;
}

.buy-now {
  margin-top: 0.5rem;
  width: 100%;
  padding: 0.65rem;
  border: none;
  border-radius: 8px;
  background: var(--pink);
  color: white;
  font-weight: 600;
  cursor: pointer;
  font-size: 0.9rem;
}

.buy-now:hover {
  background: var(--pink-dark);
}

.buy-now:disabled {
  background: #d9d0cd;
  cursor: not-allowed;
}

.load-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

#load-more {
  padding: 0.7rem 1.6rem;
  border-radius: 999px;
  border: 1px solid var(--pink);
  background: white;
  color: var(--pink-dark);
  font-weight: 600;
  cursor: pointer;
}

#load-more:hover {
  background: var(--pink);
  color: white;
}

.toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: white;
  padding: 0.7rem 1.2rem;
  border-radius: 8px;
  font-size: 0.9rem;
}
