/* ── Hero ─────────────────────────────────────────────────────────────────── */
.fp-hero {
  background: linear-gradient(135deg, #14532d 0%, #16a34a 55%, #22c55e 100%);
  padding: 52px 24px 44px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.fp-hero::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 240px; height: 240px;
  border-radius: 50%;
  background: rgba(255,255,255,.06);
  pointer-events: none;
}
.fp-hero-inner {
  max-width: 700px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.fp-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 99px;
  padding: 5px 14px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: rgba(255,255,255,.85);
  margin-bottom: 18px;
}
.fp-hero-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #86efac;
}
.fp-hero-h1 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.1;
  color: #fff;
  margin-bottom: 12px;
}
.fp-hero-sub {
  font-size: 16px;
  color: rgba(255,255,255,.65);
  font-weight: 300;
}

/* ── Controls bar ─────────────────────────────────────────────────────────── */
.fp-controls-wrap {
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  padding: 0 24px;
  position: sticky;
  top: 64px;
  z-index: 90;
}
.fp-controls {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  flex-wrap: wrap;
}
.fp-cats {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.fp-cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 500;
  color: #52525b;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 99px;
  padding: 5px 13px;
  text-decoration: none;
  transition: all .15s;
  white-space: nowrap;
}
.fp-cat-pill:hover { border-color: #86efac; color: #166534; background: #f0fdf4; }
.fp-cat-pill.active { background: #16a34a; border-color: #16a34a; color: #fff; font-weight: 600; }
.fp-cat-pill.active .fp-cat-count { background: rgba(255,255,255,.2); color: #fff; }
.fp-cat-count {
  font-size: 10px;
  font-weight: 700;
  background: #f0fdf4;
  color: #166534;
  padding: 1px 6px;
  border-radius: 99px;
}
.fp-sort {
  background: #fff;
  border: 1px solid #e5e7eb;
  color: #0f1a0f;
  border-radius: 99px;
  padding: 6px 14px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  outline: none;
  cursor: pointer;
  transition: border-color .15s;
}
.fp-sort:focus { border-color: #16a34a; }

/* ── Page wrap ────────────────────────────────────────────────────────────── */
.fp-page-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px 24px 80px;
}

/* ── Product grid ─────────────────────────────────────────────────────────── */
.fp-product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 18px;
}

/* ── Product card ─────────────────────────────────────────────────────────── */
.fpp-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1.5px solid #e5e7eb;
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: border-color .18s, box-shadow .18s, transform .18s;
  box-shadow: 0 2px 6px rgba(0,0,0,.05);
}
.fpp-card:hover {
  border-color: #86efac;
  box-shadow: 0 8px 28px rgba(22,163,74,.12);
  transform: translateY(-3px);
}
.fpp-img-wrap {
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: #f3f4f6;
  flex-shrink: 0;
}
.fpp-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .22s;
}
.fpp-card:hover .fpp-img { transform: scale(1.05); }
.fpp-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  background: #f0fdf4;
}
.fpp-info {
  padding: 12px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}
.fpp-merchant {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.fpp-merchant-logo {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  object-fit: contain;
  border: 1px solid #e5e7eb;
  flex-shrink: 0;
}
.fpp-merchant span:first-of-type {
  font-size: 11px;
  font-weight: 600;
  color: #52525b;
}
.fpp-cat {
  font-size: 10px;
  color: #9ca3af;
  background: #f3f4f6;
  padding: 1px 7px;
  border-radius: 99px;
}
.fpp-name {
  font-size: 14px;
  font-weight: 700;
  color: #0f1a0f;
  line-height: 1.35;
}
.fpp-price {
  font-size: 16px;
  font-weight: 800;
  color: #16a34a;
}
.fpp-cta {
  margin-top: auto;
  font-size: 12px;
  font-weight: 700;
  color: #16a34a;
  padding-top: 6px;
  border-top: 1px solid #f3f4f6;
}
.fpp-card:hover .fpp-cta { color: #14532d; }

/* ── Empty state ──────────────────────────────────────────────────────────── */
.fp-empty {
  text-align: center;
  padding: 80px 20px;
}
.fp-empty-icon { font-size: 52px; margin-bottom: 16px; opacity: .35; }
.fp-empty h2 { font-size: 22px; font-weight: 700; margin-bottom: 8px; }
.fp-empty p { color: #52525b; font-size: 15px; }
.fp-empty a { color: #16a34a; text-decoration: underline; }

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .fp-controls { gap: 10px; }
  .fp-product-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
  .fpp-img-wrap { height: 160px; }
  .fp-hero { padding: 40px 20px 36px; }
}
@media (max-width: 480px) {
  .fp-product-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .fp-controls-wrap { position: static; }
}