/* PackMarket RFQ — Frontend Styles */

/* ── Supplier directory ─────────────────────────────────────────────────── */
.pm-supplier-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin: 24px 0;
}

.pm-supplier-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    transition: box-shadow .15s ease, transform .15s ease;
    text-decoration: none;
    color: inherit;
    display: block;
}
.pm-supplier-card:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,.08);
    transform: translateY(-2px);
}

.pm-supplier-card__header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 12px;
}
.pm-supplier-card__logo {
    width: 56px; height: 56px;
    border-radius: 10px;
    object-fit: cover;
    border: 1px solid #e2e8f0;
    flex-shrink: 0;
}
.pm-supplier-card__logo-placeholder {
    width: 56px; height: 56px;
    border-radius: 10px;
    background: #f1f5f9;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}
.pm-supplier-card__name {
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 2px;
    line-height: 1.3;
}
.pm-supplier-card__location {
    font-size: 13px;
    color: #64748b;
    display: flex; align-items: center; gap: 4px;
}
.pm-supplier-card__desc {
    font-size: 13px;
    color: #64748b;
    line-height: 1.5;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.pm-supplier-card__cats {
    display: flex; gap: 6px; flex-wrap: wrap;
}
.pm-supplier-card__cat {
    font-size: 11px;
    background: #f1f5f9;
    color: #475569;
    padding: 3px 8px;
    border-radius: 100px;
}

.pm-badge-package {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .5px;
    text-transform: uppercase;
    padding: 2px 7px;
    border-radius: 100px;
}
.pm-badge-gold   { background: #fef9c3; color: #713f12; }
.pm-badge-silver { background: #f1f5f9; color: #334155; }
.pm-badge-bronze { background: #fef3c7; color: #92400e; }
.pm-badge-free   { display: none; }

/* ── Directory filters ──────────────────────────────────────────────────── */
.pm-filters {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px 20px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: flex-end;
    margin-bottom: 24px;
}
.pm-filter-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    min-width: 160px;
}
.pm-filter-group label {
    font-size: 11px;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: .5px;
}
.pm-filter-group select,
.pm-filter-group input[type="text"] {
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 14px;
    color: #0f172a;
    background: #fff;
    height: 40px;
}
.pm-filter-btn {
    background: #1840f0;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 0 20px;
    height: 40px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s;
    align-self: flex-end;
}
.pm-filter-btn:hover { background: #1232c8; }

/* ── Supplier profile page ───────────────────────────────────────────────── */
.pm-profile-hero {
    background: linear-gradient(135deg, #1840f0 0%, #6b21a8 100%);
    color: #fff;
    border-radius: 14px;
    padding: 36px 40px;
    margin-bottom: 28px;
    display: flex;
    align-items: center;
    gap: 28px;
}
.pm-profile-logo {
    width: 80px; height: 80px;
    border-radius: 14px;
    object-fit: cover;
    border: 3px solid rgba(255,255,255,.3);
    flex-shrink: 0;
}
.pm-profile-name { font-size: 26px; font-weight: 800; margin-bottom: 4px; }
.pm-profile-meta { font-size: 14px; opacity: .75; }

.pm-profile-body { display: grid; grid-template-columns: 2fr 1fr; gap: 24px; }
@media (max-width: 640px) { .pm-profile-body { grid-template-columns: 1fr; } }

.pm-profile-section {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 22px 24px;
    margin-bottom: 20px;
}
.pm-profile-section h3 {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: #64748b;
    margin-bottom: 14px;
}

/* ── Supplier dashboard ──────────────────────────────────────────────────── */
.pm-dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 14px;
    margin-bottom: 24px;
}
.pm-dashboard-stat {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 16px;
    text-align: center;
}
.pm-dashboard-stat__num {
    font-size: 26px;
    font-weight: 700;
    color: #0f172a;
    display: block;
    line-height: 1;
    margin-bottom: 4px;
}
.pm-dashboard-stat__label { font-size: 12px; color: #64748b; }

.pm-status-banner {
    border-radius: 10px;
    padding: 14px 18px;
    margin-bottom: 20px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
    font-size: 14px;
}
.pm-status-pending  { background: #fef3c7; border: 1px solid #fcd34d; color: #92400e; }
.pm-status-rejected { background: #fee2e2; border: 1px solid #fca5a5; color: #991b1b; }
.pm-status-verified { background: #dcfce7; border: 1px solid #86efac; color: #166534; }

/* ── CTA / upgrade ───────────────────────────────────────────────────────── */
.pm-upgrade-cta {
    background: linear-gradient(135deg, #1840f0, #6b21a8);
    border-radius: 12px;
    padding: 24px 28px;
    color: #fff;
    margin-top: 20px;
}
.pm-upgrade-cta h3 { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.pm-upgrade-cta p  { opacity: .8; font-size: 14px; margin-bottom: 16px; }
.pm-upgrade-cta a  {
    display: inline-block;
    background: #fff;
    color: #1840f0;
    font-weight: 700;
    font-size: 14px;
    padding: 10px 22px;
    border-radius: 8px;
    text-decoration: none;
}
.pm-upgrade-cta a:hover { background: #f0f4ff; }

/* ── Company of the Week ─────────────────────────────────────────────────── */
.pm-company-of-week {
    background: linear-gradient(135deg, #fef9c3, #fef3c7);
    border: 2px solid #fcd34d;
    border-radius: 14px;
    padding: 24px 28px;
    display: flex;
    gap: 20px;
    align-items: center;
    margin-bottom: 28px;
}
.pm-company-of-week__label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #713f12;
    margin-bottom: 6px;
}
.pm-company-of-week__name {
    font-size: 20px;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 4px;
}
