/* ── All Products page ─────────────────────────────────────── */
.ap-hero {
    background: linear-gradient(135deg, var(--fs-primary) 0%, color-mix(in srgb, var(--fs-primary) 65%, #000) 100%);
    color: #fff;
    padding: 3rem 0 2.5rem;
}
.ap-hero-badge {
    display: inline-flex; align-items: center; gap: .4rem;
    background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.25);
    color: #fff; font-size: .78rem; font-weight: 600;
    padding: .3rem .9rem; border-radius: 50px; margin-bottom: .85rem;
}
.ap-hero-title {
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
    font-weight: 800; line-height: 1.2; margin-bottom: .6rem;
}
.ap-hero-sub { font-size: 1rem; opacity: .85; max-width: 520px; }

/* ── Filter bar ────────────────────────────────────────────── */
.ap-filter-bar {
    background: #fff; border-bottom: 1px solid #e8ecf0;
    position: sticky; top: 0; z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.ap-filter-scroll {
    display: flex; gap: .4rem; overflow-x: auto;
    padding: .65rem 0; scrollbar-width: none;
}
.ap-filter-scroll::-webkit-scrollbar { display: none; }
.ap-pill {
    display: inline-flex; align-items: center; gap: .4rem;
    white-space: nowrap; padding: .45rem 1.1rem;
    border-radius: 50px; font-size: .83rem; font-weight: 500;
    color: #64748b; background: #f1f5f9;
    border: 1.5px solid transparent; cursor: pointer;
    transition: all .18s; flex-shrink: 0;
}
.ap-pill:hover { background: #e2e8f0; color: var(--fs-primary); }
.ap-pill.active {
    background: var(--fs-primary); color: #fff;
    border-color: var(--fs-primary);
}
.ap-pill i { font-size: .85rem; }

/* ── Product cards ─────────────────────────────────────────── */
.ap-section { padding: 3rem 0 5rem; background: #f8fafc; }
.ap-card {
    background: #fff; border-radius: 16px;
    border: 1.5px solid #e8ecf0;
    transition: transform .2s, box-shadow .2s;
    height: 100%; display: flex; flex-direction: column;
    overflow: hidden; text-decoration: none;
}
.ap-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0,0,0,.1);
    border-color: var(--fs-primary);
}
.ap-card-body { padding: 1.5rem 1.5rem 1rem; flex: 1; }
.ap-icon {
    width: 52px; height: 52px; border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem; margin-bottom: 1rem;
}
.ap-card-name {
    font-size: 1.05rem; font-weight: 800; color: #1e293b;
    margin-bottom: .35rem;
}
.ap-card-desc {
    font-size: .85rem; color: #64748b; line-height: 1.6;
    margin-bottom: .85rem;
}
.ap-tags { display: flex; flex-wrap: wrap; gap: .35rem; }
.ap-tag {
    font-size: .75rem; font-weight: 600;
    background: #f1f5f9; color: #475569;
    padding: .2rem .6rem; border-radius: 50px;
}
.ap-card-footer {
    padding: .9rem 1.5rem;
    border-top: 1px solid #f1f5f9;
    display: flex; align-items: center; justify-content: space-between;
}
.ap-card-badge {
    font-size: .73rem; font-weight: 700; padding: .2rem .65rem;
    border-radius: 50px; background: #fef3c7; color: #92400e;
}
.ap-card-cta {
    font-size: .83rem; font-weight: 600;
    color: var(--fs-primary); display: flex; align-items: center; gap: .3rem;
}

/* ── Icon colour helpers (matching site.css classes) ───────── */
.ap-icon.fs-icon-blue   { background:#eff6ff; color:#2563eb; }
.ap-icon.fs-icon-orange { background:#fff7ed; color:#ea580c; }
.ap-icon.fs-icon-green  { background:#f0fdf4; color:#16a34a; }
.ap-icon.fs-icon-purple { background:#faf5ff; color:#7c3aed; }
.ap-icon.fs-icon-teal   { background:#f0fdfa; color:#0d9488; }
.ap-icon.fs-icon-indigo { background:#eef2ff; color:#4338ca; }
.ap-icon.fs-icon-pink   { background:#fdf2f8; color:#db2777; }
.ap-icon.fs-icon-amber  { background:#fffbeb; color:#d97706; }
