/* =====================================================
   Pièces Détachées – styles page
   ===================================================== */

/* ===== Formulaire ===== */
.pd-search-form {
    background: #fff;
    border: 1px solid #e8ecf0;
    border-radius: 10px;
    padding: 24px 28px;
    margin-bottom: 32px;
    box-shadow: 0 2px 8px rgba(0,0,0,.04);
}

.pd-label {
    font-weight: 700;
    font-size: 0.95rem;
    color: #222;
    margin-bottom: 2px;
    display: block;
}

.pd-hint {
    font-size: 0.78rem;
    color: #888;
    margin-bottom: 10px;
}

.pd-input-group {
    display: flex;
    gap: 8px;
    align-items: center;
}

.pd-advanced-row {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 8px;
}

.pd-input {
    flex: 1;
    border: 1.5px solid #d0d5dd;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 0.88rem;
    color: #333;
    outline: none;
    transition: border-color 0.2s;
    min-width: 0;
}
.pd-input:focus {
    border-color: #e50019;
}

.pd-select {
    flex: 1;
    border: 1.5px solid #d0d5dd;
    border-radius: 6px;
    padding: 8px 10px;
    font-size: 0.85rem;
    color: #333;
    background: #fff;
    outline: none;
    transition: border-color 0.2s;
    min-width: 0;
}
.pd-select:focus {
    border-color: #e50019;
}

.pd-btn-search {
    background: #e50019;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 9px 18px;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.pd-btn-search:hover {
    background: #c40016;
}

/* Séparateur ou */
.pd-separator {
    position: relative;
    text-align: center;
    color: #aaa;
    font-size: 0.8rem;
    font-weight: 600;
}
.pd-separator::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 1px;
    height: 60px;
    background: #e0e0e0;
}
.pd-separator span {
    position: relative;
    background: #fff;
    padding: 4px 0;
    z-index: 1;
}

/* ===== Bandeau remise client ===== */
.pd-discount-banner {
    background: #eefcf3;
    border: 1px solid #b7e8c9;
    border-radius: 6px;
    padding: 12px 18px;
    color: #0e6b32;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
}
.pd-discount-banner i {
    color: #1e9e5a;
}

/* ===== Colonne panier ===== */
.pd-cart-cell {
    text-align: center;
    white-space: nowrap;
}
.pd-add-to-cart-form {
    display: inline-block;
    margin: 0;
}
.pd-btn-cart {
    background: #e50019;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 6px 10px;
    cursor: pointer;
    transition: background 0.2s;
}
.pd-btn-cart:hover {
    background: #c40016;
    color: #fff;
}

/* ===== En-tête résultats ===== */
.pd-results-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.pd-results-count {
    font-size: 0.95rem;
    color: #444;
}
.pd-results-count strong {
    color: #e50019;
    font-size: 1.1rem;
}

.pd-reset-link {
    font-size: 0.82rem;
    color: #888;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: color 0.2s;
}
.pd-reset-link:hover {
    color: #e50019;
}

/* ===== Tableau ===== */
.pd-table-wrapper {
    border: 1px solid #e8ecf0;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 36px;
}

.pd-table {
    margin-bottom: 0;
    font-size: 0.85rem;
    width: 100%;
}

.pd-table thead th {
    background: #2d2d2d;
    color: #fff;
    font-weight: 600;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
    padding: 10px 12px;
    border: none;
}

.pd-table tbody tr:nth-child(even) {
    background: #f9fafc;
}
.pd-table tbody tr:hover {
    background: #fff5f6;
}

.pd-table tbody td {
    padding: 9px 12px;
    vertical-align: middle;
    border-color: #eef0f3;
    color: #333;
}

.pd-empty {
    color: #ccc;
}

.pd-product-link {
    color: #e50019;
    font-weight: 600;
    text-decoration: none;
}
.pd-product-link:hover {
    text-decoration: underline;
}

/* ===== Aucun résultat ===== */
.pd-no-results {
    text-align: center;
    padding: 50px 20px;
    color: #888;
}
.pd-no-results i {
    color: #ddd;
    margin-bottom: 14px;
    display: block;
}
.pd-no-results p {
    font-size: 1rem;
    margin-bottom: 12px;
}

/* ===== Alerte erreur fichier ===== */
.pd-alert {
    background: #fff8e1;
    border: 1px solid #ffe082;
    border-radius: 6px;
    padding: 14px 18px;
    color: #7a5800;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
}
