/* ============================================================
   Search — Styles
   ============================================================ */

/* Search Form Card */
.search-form-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    margin-bottom: 20px;
}

.search-form-header {
    background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    padding: 12px 20px;
}

.search-form-body { padding: 20px; }

.search-radio-label {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 13.5px;
    cursor: pointer;
    color: #1e293b;
    font-weight: 500;
}

.search-select {
    border: 2px solid var(--color-accent) !important;
    background-color: var(--color-accent-soft) !important;
    color: var(--color-primary) !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    padding: 9px 36px 9px 12px !important;
    border-radius: var(--radius-sm) !important;
    cursor: pointer;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.search-select:focus {
    border-color: var(--color-primary) !important;
    box-shadow: 0 0 0 3px rgba(13,148,136,.22) !important;
}

.search-select:hover { border-color: var(--color-primary) !important; }

/* ============================================================
   Results Table
   ============================================================ */

.results-table-wrap {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    margin-bottom: 20px;
}

.results-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13.5px;
    color: #1e293b;
}

/* Header row */
.results-table thead tr {
    background: var(--color-primary);
    color: #fff;
}

.results-table thead th {
    padding: 11px 14px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border: none;
    white-space: nowrap;
}

/* Body rows */
.result-row {
    border-bottom: 1px solid #e2e8f0;
    transition: background 0.15s;
}

.result-row:last-child { border-bottom: none; }

.result-row:hover { background: rgba(13,148,136,.07); }

.result-row:nth-child(even) { background: #f8fafc; }
.result-row:nth-child(even):hover { background: rgba(13,148,136,.07); }

/* Image cell */
.result-img-cell {
    padding: 10px 12px;
    text-align: center;
    vertical-align: middle;
}

.result-img-cell img {
    width: 72px;
    height: 72px;
    object-fit: contain;
    border-radius: 6px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 3px;
    display: block;
}

/* Details cell */
.result-details-cell {
    padding: 10px 14px;
    vertical-align: middle;
}

.result-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--color-primary);
    display: block;
    margin-bottom: 3px;
    text-decoration: none;
    transition: color 0.15s;
    line-height: 1.3;
}

.result-title:hover { color: var(--color-accent); }

.result-meta {
    font-size: 12.5px;
    color: #334155;
    margin-bottom: 2px;
}

.result-brand { font-weight: 700; color: #1e293b; }

.result-sep { margin: 0 5px; color: #94a3b8; }

.result-expired { color: #b91c1c; font-weight: 700; }

.result-model {
    font-size: 12.5px;
    color: #1e293b;
    font-weight: 600;
    margin-bottom: 2px;
}

.result-ids {
    font-size: 12px;
    color: #475569;
}

.result-ids strong { color: var(--color-primary); }

.result-yield { color: #b91c1c; font-weight: 700; }

/* Stock cell */
.result-stock-cell {
    padding: 10px 14px;
    vertical-align: middle;
    text-align: center;
    white-space: nowrap;
}

.result-info-icon {
    font-size: 11px;
    color: #94a3b8;
    margin-left: 3px;
    cursor: help;
}

/* Price cell */
.result-price-cell {
    padding: 10px 14px;
    vertical-align: middle;
    text-align: right;
    white-space: nowrap;
}

.result-price-original {
    text-decoration: line-through;
    color: #64748b;
    font-size: 12.5px;
}

.result-price-final {
    font-size: 17px;
    font-weight: 800;
    color: var(--color-primary);
    line-height: 1.2;
}

/* Action cell */
.result-action-cell {
    padding: 10px 14px;
    vertical-align: middle;
    text-align: center;
    white-space: nowrap;
}

/* Responsive — stack on mobile */
@media (max-width: 768px) {
    .results-table thead { display: none; }

    .result-row {
        display: flex;
        flex-wrap: wrap;
        padding: 12px;
        gap: 10px;
        align-items: flex-start;
    }

    .result-img-cell  { padding: 0; width: 72px; }
    .result-details-cell { padding: 0; flex: 1; }
    .result-stock-cell,
    .result-price-cell,
    .result-action-cell {
        padding: 0;
        text-align: left;
        width: auto;
    }
}
