/* ── PNS Remote — Styles ── */
.pns-r-grid { display: grid; gap: 16px; }
.pns-r-grid--2 { grid-template-columns: repeat(2, 1fr); }
.pns-r-grid--3 { grid-template-columns: repeat(3, 1fr); }
.pns-r-grid--4 { grid-template-columns: repeat(4, 1fr); }

/* ── Filters ── */
.pns-r-filters {
    display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px;
    padding: 16px 20px; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 12px;
}
.pns-r-filters input, .pns-r-filters select {
    padding: 10px 14px; font-size: 14px; border: 1.5px solid #e2e8f0; border-radius: 8px;
    background: #fff; color: #0f172a; font-family: inherit; outline: none; flex: 1; min-width: 130px;
}
.pns-r-filters input:focus, .pns-r-filters select:focus { border-color: #087439; }
.pns-r-filter-btn {
    padding: 10px 20px; background: #087439; color: #fff; border: none; border-radius: 8px;
    font-size: 14px; font-weight: 600; cursor: pointer; font-family: inherit;
}
.pns-r-filter-btn:hover { background: #065a2c; }

.pns-r-count { font-size: 14px; color: #64748b; margin-bottom: 16px; }

/* ── Service Card ── */
.pns-r-card {
    background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; overflow: hidden;
    text-decoration: none; display: flex; flex-direction: column;
    transition: box-shadow 0.2s, transform 0.2s;
}
.pns-r-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.08); transform: translateY(-2px); }

.pns-r-card-img {
    position: relative; width: 100%; aspect-ratio: 1/1; background: #f8fafc; overflow: hidden;
}
.pns-r-card-img img { width: 100%; height: 100%; object-fit: contain; padding: 16px; }

.pns-r-badge {
    position: absolute; left: 10px; padding: 4px 12px; border-radius: 6px;
    font-size: 11px; font-weight: 700; z-index: 2;
}
.pns-r-badge:first-of-type { top: 10px; }
.pns-r-badge:nth-of-type(2) { top: 36px; }
.pns-r-badge--green, .pns-r-badge--nouveau { background: #087439; color: #fff; }
.pns-r-badge--chaud { background: #E53935; color: #fff; }
.pns-r-badge--promo { background: #f59e0b; color: #fff; }

.pns-r-card-body { padding: 14px 16px; flex: 1; display: flex; flex-direction: column; }
.pns-r-card-provider { font-size: 12px; color: #94a3b8; margin-bottom: 4px; display: flex; align-items: center; gap: 6px; }
.pns-r-dot { width: 7px; height: 7px; border-radius: 50%; background: #087439; flex-shrink: 0; }
.pns-r-card-title { font-size: 14px; font-weight: 600; color: #0f172a; margin: 0 0 6px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pns-r-card-rating { font-size: 13px; color: #0f172a; margin-bottom: 8px; }
.pns-r-stars { color: #f59e0b; font-size: 12px; }
.pns-r-rating-count { color: #94a3b8; }
.pns-r-card-footer { margin-top: auto; display: flex; align-items: baseline; gap: 8px; }
.pns-r-price { font-size: 18px; font-weight: 800; color: #087439; }
.pns-r-old-price { font-size: 13px; color: #94a3b8; text-decoration: line-through; }

/* ── Provider Card ── */
.pns-r-pcard {
    background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; overflow: hidden;
    text-decoration: none; display: flex; flex-direction: column;
    transition: box-shadow 0.2s, transform 0.2s;
}
.pns-r-pcard:hover { box-shadow: 0 8px 28px rgba(0,0,0,0.08); transform: translateY(-2px); }

.pns-r-pcard-cover { height: 110px; background: linear-gradient(135deg, #ecfdf5, #d1fae5); overflow: hidden; position: relative; }
.pns-r-pcard-cover img { width: 100%; height: 100%; object-fit: cover; }
.pns-r-pcard-badge { position: absolute; top: 10px; right: 10px; padding: 4px 12px; border-radius: 100px; font-size: 11px; font-weight: 700; background: #087439; color: #fff; }

.pns-r-pcard-avatar {
    width: 52px; height: 52px; border-radius: 50%; overflow: hidden; border: 3px solid #fff;
    background: #f1f5f9; margin: -26px 0 0 16px; position: relative; z-index: 2; box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.pns-r-pcard-avatar img { width: 100%; height: 100%; object-fit: cover; }

.pns-r-pcard-body { padding: 10px 18px 18px; flex: 1; display: flex; flex-direction: column; }
.pns-r-pcard-name { font-size: 16px; font-weight: 700; color: #0f172a; margin: 0 0 4px; }
.pns-r-pcard-location { font-size: 13px; color: #94a3b8; margin-bottom: 6px; }
.pns-r-pcard-cat { display: inline-block; font-size: 11px; font-weight: 600; color: #087439; background: #ecfdf5; padding: 2px 8px; border-radius: 100px; margin-bottom: 6px; }
.pns-r-pcard-desc { font-size: 13px; color: #64748b; line-height: 1.5; margin: 0 0 auto; }

.pns-r-pcard-footer {
    display: flex; align-items: center; justify-content: space-between;
    padding-top: 12px; margin-top: 12px; border-top: 1px solid #f1f5f9;
}
.pns-r-pcard-rating { font-size: 13px; color: #f59e0b; font-weight: 700; }
.pns-r-pcard-cta {
    padding: 6px 14px; border: 1.5px solid #087439; border-radius: 8px;
    font-size: 13px; font-weight: 600; color: #087439;
}
.pns-r-pcard:hover .pns-r-pcard-cta { background: #087439; color: #fff; }

/* ── Load More ── */
.pns-r-loadmore { text-align: center; margin-top: 24px; }
.pns-r-loadmore-btn {
    display: inline-flex; align-items: center; gap: 8px; padding: 12px 28px;
    background: #fff; color: #0f172a; border: 1.5px solid #e2e8f0; border-radius: 100px;
    font-size: 14px; font-weight: 600; cursor: pointer; font-family: inherit;
}
.pns-r-loadmore-btn:hover { border-color: #087439; }
.pns-r-loadmore-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.pns-r-empty { text-align: center; padding: 48px; color: #94a3b8; font-size: 15px; }
.pns-r-error { background: #fef2f2; border: 1px solid #fecaca; border-radius: 12px; color: #991b1b; }

/* ── Responsive ── */
@media (max-width: 900px) {
    .pns-r-grid--3, .pns-r-grid--4 { grid-template-columns: repeat(2, 1fr); }
    .pns-r-filters { flex-direction: column; }
}
@media (max-width: 600px) {
    .pns-r-grid--2, .pns-r-grid--3, .pns-r-grid--4 { grid-template-columns: 1fr; }
}
