/**
 * NextGen Manufacturer - Frontend Styles
 * Prefix: .ngm-
 */

.ngm-product-grid,
.ngm-manufacturers-grid,
.ngm-testimonials-grid,
.ngm-awards-grid,
.ngm-kb-categories-grid,
.ngm-career-perks {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin: 20px 0;
}

.ngm-product-card,
.ngm-manufacturer-card,
.ngm-testimonial-card,
.ngm-award-badge,
.ngm-job-card,
.ngm-kb-category-card,
.ngm-perk-card {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px;
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ngm-product-card:hover,
.ngm-manufacturer-card:hover,
.ngm-job-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
}

.ngm-product-thumb img,
.ngm-mfg-logo img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    display: block;
}

.ngm-product-title,
.ngm-mfg-title,
.ngm-job-title,
.ngm-kb-cat-title {
    font-size: 1.25rem;
    margin: 12px 0 8px 0;
}

.ngm-product-sku,
.ngm-mfg-origin,
.ngm-meta-pill {
    font-size: 0.85rem;
    color: #64748b;
}

.ngm-meta-pill {
    display: inline-block;
    padding: 2px 8px;
    background: #f1f5f9;
    border-radius: 12px;
    margin-right: 6px;
}

.ngm-product-specs-table,
.ngm-table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
}

.ngm-product-specs-table th,
.ngm-product-specs-table td,
.ngm-table th,
.ngm-table td {
    padding: 10px 14px;
    border: 1px solid #e2e8f0;
    text-align: left;
}

.ngm-product-specs-table th,
.ngm-table th {
    background-color: #f8fafc;
    font-weight: 600;
}

/* Forms */
.ngm-form {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 24px;
    margin: 20px 0;
}

.ngm-form-row {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}

.ngm-form-group {
    flex: 1;
    margin-bottom: 16px;
}

.ngm-form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
}

.ngm-form-group input[type="text"],
.ngm-form-group input[type="email"],
.ngm-form-group input[type="number"],
.ngm-form-group select,
.ngm-form-group textarea {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    box-sizing: border-box;
}

.ngm-btn-submit,
.ngm-btn-apply,
.button.button-primary {
    background: #0f172a;
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    font-weight: 500;
}

.ngm-btn-submit:hover,
.ngm-btn-apply:hover {
    background: #1e293b;
    color: #ffffff;
}

/* Badges */
.ngm-badge-status,
.ngm-badge-priority {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.ngm-priority-critical { background: #fee2e2; color: #991b1b; }
.ngm-priority-high { background: #ffedd5; color: #9a3412; }
.ngm-priority-medium { background: #fef9c3; color: #854d0e; }
.ngm-priority-low { background: #f1f5f9; color: #475569; }

.ngm-notice-success {
    background: #dcfce7;
    color: #166534;
    padding: 12px 16px;
    border-left: 4px solid #22c55e;
    margin-bottom: 20px;
    border-radius: 4px;
}

/* Responsive */
@media (max-width: 768px) {
    .ngm-form-row {
        flex-direction: column;
        gap: 0;
    }
}
